1 2015-12-08 Jakub Jelinek <jakub@redhat.com>
5 * common.opt (Wframe-larger-than=): Add Warning.
6 * opts.h (control_warning_option): Add ARG argument.
7 * opts-common.c (cmdline_handle_error): New function.
8 (read_cmdline_option): Use it.
9 (control_warning_option): Likewise. Add ARG argument.
10 If non-NULL, decode it if needed and pass through
11 to handle_generated_option. Handle CLVC_ENUM like
13 * opts.c (common_handle_option): Adjust control_warning_option
15 (enable_warning_as_error): Likewise.
17 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
19 * config/aarch64/aarch64-options-extensions.def: Remove
20 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
22 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
23 (AARCH64_FL_LOR): Remove.
24 (AARCH64_FL_RDMA): Remove.
25 (AARCH64_FL_V8_1): New.
26 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
27 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
28 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
29 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
30 section on -march=native. Group descriptions of permitted
31 architecture names together. Expand description of
33 (AArch64 -mtune): Slightly rework section on -march=native.
34 (AArch64 -mcpu): Slightly rework section on -march=native.
35 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
36 State that -march=armv8.1-a enables "crc" and "lse".
38 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
40 * doc/invoke.texi (SPARC options): Fix typo.
42 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
44 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
45 (output_probe_stack_range): Rotate the loop and simplify.
47 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
49 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
50 infinity filterning code.
52 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
54 PR tree-optimization/68766
55 * tree-vectorizer.c (vectorize_loops): Check for
56 if-converted loops when debug counters are used.
58 2015-12-07 DJ Delorie <dj@redhat.com>
60 * config/rl78/constraints.md (Wfr): Change to be a non-memory
62 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
63 * config/rl78/rl78.c (rl78_one_far_p): Define.
64 * config/rl78/rl78-virt (movqi_virt): Fix far memory
66 (movhi_virt): Likewise.
67 (zero_extendqihi2_virt): Likewise.
68 (extendqihi2_virt): Likewise.
69 (add<mode>3_virt): Likewise.
70 (sub<mode>3_virt): Likewise.
71 (andqi3_virt): Likewise.
72 (iorqi3_virt): Likewise.
73 (xorqi3_virt): Likewise.
74 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
75 overflow in large files.
77 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
80 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
81 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
82 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
83 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
85 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
87 * reorg.c (optimize_skip): Do not put frame related instructions
88 in annulled delay slots.
89 (steal_delay_list_from_target): Ditto.
90 (fill_slots_from_thread): Ditto.
92 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
94 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
95 * config/aarch64/aarch64.md: Include "exynos-m1.md".
96 * config/arm/arm.md: Likewise.
97 * config/arm/exynos-m1.md: New file.
99 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
101 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
103 2015-12-07 Nathan Sidwell <nathan@acm.org>
105 * config//nvptx/nvptx.c (write_return): New.
106 (write_fn_proto, nvptx_declare_function_name): Call it.
108 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
111 * symtab.c (ultimate_transparent_alias_target): New inline function.
112 (symbol_table::assembler_names_equal_p): New method; break out from ...
113 (symbol_table::decl_assembler_name_equal): ... here.
114 (symbol_table::change_decl_assembler_name): Also update names and
115 translation links of transparent aliases.
116 (symtab_node::dump_base): Dump transparent_alias.
117 (symtab_node::verify_base): Implement basic transparent alias
119 (symtab_node::make_decl_local): Support localization of weakrefs;
120 recurse to transparent aliases; set TREE_STATIC.
121 (symtab_node::ultimate_alias_target_1): Handle visibility of
123 (symtab_node::resolve_alias): New parmaeter transparent; handle
124 transparent aliases; recurse to aliases of aliases to fix comdat
126 (symtab_node::get_partitioning_class): Handle transparent aliases.
127 * ipa-visibility.c (cgraph_externally_visible_p,
128 varpool_node::externally_visible_p): Visibility of transparent alias
129 depends on its target.
130 (function_and_variable_visibility): Do not tweak visibility of
132 (function_and_variable_visibility): Likewise.
133 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
134 transparent_alias flag.
135 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
136 Support transparent aliases.
137 * cgraph.h (symtab_node): Update prototype of resolve_alias;
138 add transparent_alias flag.
139 (symbol_table: Add assembler_names_equal_p.
140 (symtab_node::real_symbol_p): Skip transparent aliases.
141 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
142 (handle_alias_pairs): Set transparent_alias for weakref.
143 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
145 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
146 skip symbols not put into boundary; stream transparent_alias.
147 (lto_output_varpool_node): Likewise.
148 (input_overwrite_node, input_varpool_node): Stream transparent alias.
149 * varpool.c (ctor_for_folding, varpool_node::get_availability,
150 varpool_node::assemble_aliases,
151 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
152 (varpool_node::create_alias): Set transparent_alias.
154 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
158 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
159 SSA names based on RESULT_DECLs.
160 * function.c (expand_function_start): Do not create BLKmode REGs
161 for GIMPLE registers when coalescing is enabled.
163 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
165 * final.c (shorten_branches): Fix check for basic asm.
166 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
169 2015-12-07 Nathan Sidwell <nathan@acm.org>
171 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
174 2015-12-07 David Malcolm <dmalcolm@redhat.com>
176 * pretty-print.c (text_info::set_range): Rename to...
177 (text_info::set_location): ...this, converting 2nd param
178 from source_range to a location_t.
179 * pretty-print.h (text_info::set_location): Convert
180 from inline function to external definition.
181 (text_info::set_range): Delete.
183 2015-12-07 Nathan Sidwell <nathan@acm.org>
185 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
186 complex and vector types. Cope with packed structs.
188 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
191 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
192 Force destination to 512 bits register.
194 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
197 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
198 (define_insn "kunpcksi"): Ditto.
199 (define_insn "kunpckdi"): Ditto.
201 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
203 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
205 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
207 * common/config/i386/i386-common.c
208 (OPTION_MASK_ISA_CLZERO_SET): New.
209 (ix86_handle_option): Handle clzero.
210 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
211 (x86_64-*-*): Likewise.
212 * config/i386/clzerointrin.h: New header.
213 * config/i386/cpuid.h (bit_CLZERO): Define.
214 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
216 * config/i386/i386.opt (clzero): New.
217 * config/i386/i386-c.c: Define __CLZERO__ if needed.
218 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
220 (ix86_option_override_internal): Handle new option.
221 (processor_alias_table): Added PTA_CLZERO.
222 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
223 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
224 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
225 IX86_BUILTIN_CLZERO built-ins.
226 * config/i386/i386.h (TARGET_CLZERO): New.
227 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
228 (clzero): New pattern.
229 (clzero_<mode>): New pattern.
230 * config/i386/x86intrin.h: Include clzerointrin.h.
231 * doc/extend.texi: Document clzero builtins.
232 * doc/invoke.texi: Document -mclzero option.
234 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
236 * ipa-icf.c (sem_function::merge): Check that local_original exists.
238 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
241 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
243 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
245 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
246 (sqrt<mode>2): Replace define_insn with define_expand that may call
249 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
250 Sebastian Pop <s.pop@samsung.com>
252 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
254 (get_rename_from_scev): Check that all the ops in an expression
255 have their uses dominated by corresponding defs.
257 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
258 Sebastian Pop <s.pop@samsung.com>
260 PR tree-optimization/68693
261 * graphite-scop-detection.c (dot_all_sese): New
262 (dot_all_scops_1): Renamed to dot_all_sese.
263 (dot_all_scops): Removed.
266 (scop_detection::get_nearest_dom_with_single_entry): Check that
267 preds are from different loop levels.
268 (scop_detection::get_nearest_pdom_with_single_exit): Check that
269 succs are from different loop levels.
270 (scop_detection::print_sese): Inlined.
271 (scop_detection::print_edge): New.
272 (scop_detection::merge_sese): Added dumps.
273 * graphite.h: Add declarations.
275 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
277 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
280 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
282 PR rtl-optimization/68349
283 * lra-eliminations.c (move_plus_up): New function.
284 (lra_eliminate_regs_1): Use the function.
286 2015-12-04 Nathan Sidwell <nathan@acm.org>
288 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
289 (init_output_initializer): ... this.
290 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
291 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
292 nvptx_assemble_decl_begin.
294 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
296 * sancov.c: New file.
297 * Makefile.in (OBJS): Add sancov.o.
298 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
299 * passes.def (sancov_pass): Add.
300 * tree-pass.h (sancov_pass): Add.
301 * common.opt (-fsanitize-coverage=trace-pc): Add.
302 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
303 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
304 flag_sanitize_coverage.
306 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
309 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
310 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
311 * config/arm/arm.md (probe_stack_range): Adjust.
312 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
313 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
314 (probe_stack_range_<PTR:mode>): Adjust.
316 2015-12-04 David Malcolm <dmalcolm@redhat.com>
318 * convert.c (convert_to_real_1): When converting from a
319 REAL_TYPE, preserve the location of EXPR in the result.
320 * tree.c (get_pure_location): Make non-static.
321 (set_source_range): Return the resulting location_t.
322 (make_location): New function.
323 * tree.h (get_pure_location): New decl.
324 (get_finish): New inline function.
325 (set_source_range): Convert return type from void to location_t.
326 (make_location): New decl.
328 2015-12-04 Jakub Jelinek <jakub@redhat.com>
331 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
332 input_location to inform.
333 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
334 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
335 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
337 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
339 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
340 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
341 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
342 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
343 comdat and non-comdat.
344 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
345 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
348 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
350 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
351 instead of register_operand. Remove empty constraints. Use std::swap.
352 (cstore_si_as_di, cstore<mode>4_signed_imm,
353 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
354 gpc_reg_operand instead of register_operand.
355 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
356 register_operand. Remove empty constraints.
358 2015-12-04 Nick Clifton <nickc@redhat.com>
360 * config.gcc (extra_gcc_objs): Define for MSP430.
361 * common/config/msp430/msp430-common.c (msp430_handle_option):
362 Pass both -mmcu and -mcpu on to the back end if they are both defined.
363 * config/msp430/msp430.c (hwmult_name): New function.
364 (msp430_option_override): If an unrecognised MCU name is
365 detected only warn if the user has not provided suitable
366 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
367 warning messages. Generate warnings about conflicts between
368 -mmcu and -mcpu and -mhwmult options.
369 If neither -mcpu nor -mmcu have been specified but -mhwmult=
370 f5series has the select the 430X isa.
371 (msp430_no_hwmult): If -mmcu has not been specified and
372 msp430_hwmult_type is AUTO then return true.
373 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
374 (LIB_SPEC): Add hardware multiply library selection.
375 * config/msp430/t-msp430: Delete hardware multiply multilibs.
376 Add rule to build driver-msp430.o
377 * config/msp430/driver-msp430.c: New file.
378 * config/msp430/msp430.opt (warn-mcu): New option.
379 * doc/invoke.texi: Update description of -mhwmult=auto.
380 Document -mwarn-mcu option.
382 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
384 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
385 (cstore<mode>4): Call it.
387 2015-12-04 Jakub Jelinek <jakub@redhat.com>
389 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
391 PR tree-optimization/68680
392 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
393 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
396 PR tree-optimization/68671
397 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
398 blocks starting with the successor of first bb we've modified
399 and ending with last_bb call reset_flow_sensitive_info_in_bb.
401 2015-12-04 Jeff Law <law@redhat.com>
403 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
404 indicating if a gimple conditional was optimized to true/false.
405 (reassociate_bb): Bubble up return value from
406 maybe_optimize_range_tests.
407 (do_reassoc): Similarly, but for reassociate_bb.
408 (execute_reassoc): Return TODO_cleanup_cfg as needed.
410 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
412 * config/aarch64/aarch64.c (aarch64_override_options_internal):
413 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
414 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
415 does not affect the assembler directives.
417 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
419 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
420 emit .machine and .machinemode to the top of the assembler file.
421 (TARGET_ASM_FILE_START): Provide target hook.
422 (s390_asm_output_machine_for_arch): Protect with
423 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
425 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
427 * config/s390/s390.opt (s390_arch_string): Remove.
428 (s390_tune_string): Likewise.
429 (s390_cost_pointer): Add Variable.
430 (s390_tune_flags): Add TargetVariable.
431 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
432 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
433 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
434 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
435 (mwarn-framesize=): Save option.
436 (mno-stack-guard, mno-stack-guard): New option.
437 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
438 (mwarn-framesize=): Convert to UInteger (negative values are rejected
440 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
441 macros changeable through the GCC target pragma into a separate
443 (s390_cpu_cpp_builtins): Likewise.
444 (s390_pragma_target_parse): New function, implement GCC target pragma
446 (s390_register_target_pragmas): Register s390_pragma_target_parse if
448 * common/config/s390/s390-common.c (s390_handle_option):
450 Move setting s390_arch_flags to s390.c.
451 Remove s390_tune_flags.
452 Allow 0 as argument to -mstack-size (switch to default value).
453 Allow 0 as argument to -mstack-guard (switch off).
454 Remove now unnecessary explicit parsing code for -mwarn-framesize.
455 * config/s390/s390-protos.h (s390_handle_option): Export.
456 (s390_valid_target_attribute_tree): Export.
457 (s390_reset_previous_fndecl): Export.
458 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
459 and end of HTM and VX builtins.
460 (s390_asm_output_function_prefix): Declare hook.
461 (s390_asm_declare_function_size): Likewise.
462 * config/s390/s390-builtins.h (B_GROUP): Use macro.
463 * config/s390/s390-opts.h: Add comment about processor_type usage.
464 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
465 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
466 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
467 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
468 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
469 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
470 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
471 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
472 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
473 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
474 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
475 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
476 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
477 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
479 (vec_all_nan): Rewrite as macro using statement expressions to avoid
480 that the vector keyword needs to be defined when including the file.
481 (vec_all_numeric): Likewise.
482 (vec_any_nan): Likewise.
483 (vec_any_numeric): Likewise.
484 * config/s390/s390.c (s390_previous_fndecl): New static variable.
485 (s390_set_current_function): New function.
486 (s390_cost): Wrapper macro to allow defining the cost table pointer in
488 (processor_table): Table for march= and mtune= parsing.
489 (s390_init_builtins): Enable all builtins and types unconditionally.
490 (s390_expand_builtin): Generate an error message if builtin is not
491 supported by current options.
492 Correct an error message.
493 (s390_function_specific_restore): New function to set s390_cost.
494 (s390_asm_output_machine_for_arch): New function for emitting .machine
495 and .machinmode directives to the assembler file.
496 (s390_asm_output_function_prefix): Likewise.
497 (s390_asm_declare_function_size): Likewise.
498 (s390_asm_output_function_label): Add mdebug output for feature testing.
499 (s390_option_override): Move implementation into internal function.
500 (s390_option_override_internal): Likewise.
501 Implement option overriding based on current options.
502 (s390_valid_target_attribute_inner_p): New function implementing target
504 (s390_valid_target_attribute_tree): Likewise.
505 (s390_valid_target_attribute_p): Likewise.
506 (s390_reset_previous_fndecl): Likewise.
507 (s390_set_current_function): Likewise.
508 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
509 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
510 (TARGET_OPTION_RESTORE): Likewise.
511 * doc/extend.texi: S390: Document target attribute and pragma.
512 * config.in: Regenerated.
513 * configure: Regenerated.
514 * configure.ac: S390: Check for .machinemode and .machine in gas.
515 S390: Check for architecture modifiers support in gas.
517 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
519 * doc/extend.texi ("simd"): Describe new flags.
521 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
523 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
524 operand checked for alignment.
526 2015-12-04 Nathan Sidwell <nathan@acm.org>
528 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
529 emission too. Change 'no_arg_types' to 'prototyped'.
530 (write_fn_proto): Use write_one_arg for stdarg, static chain &
532 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
534 2015-12-04 Richard Biener <rguenther@suse.de>
536 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
537 member and initialize it.
538 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
540 (sccvn_dom_walker::before_dom_children): If unreachable_dom
541 is set BB is not reachable either. Set unreachable_dom
542 if not set and BB is unreachable.
544 2015-12-04 Richard Biener <rguenther@suse.de>
546 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
547 query with GATHER_STATISTICS.
549 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
552 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
553 fields, add keep_stack and reorder them.
554 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
555 set it to false. Do not insert a stack save/restore pair if it has
556 been set to true by the gimplification of the statements.
557 Restore it to the saved value on exit if it is still false.
558 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
559 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
560 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
561 * doc/extend.texi (Variable Length): Document new behavior.
562 * doc/generic.texi (Blocks): Document new handling of VLAs.
564 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
565 Tristan Gingold <gingold@adacore.com>
568 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
570 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
571 UNSPEC_PROBE_STACK_RANGE.
572 (blockage): New instruction.
573 (probe_stack_range_<PTR:mode>): Likewise.
574 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
576 (aarch64_output_probe_stack_range): Likewise.
577 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
578 static builtin stack checking is enabled.
579 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
582 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
585 * config/arm/arm.md (*call_mem): Delete pattern.
586 (*call_value_mem): Likewise.
587 * config/arm/arm.c (output_call_mem): Delete.
588 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
590 2015-12-04 Bin Cheng <bin.cheng@arm.com>
592 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
593 aarch64_sync_memory_operand.
595 2015-12-04 Jakub Jelinek <jakub@redhat.com>
598 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
599 (expand_vec_perm_1): Use it and recurse if everything else
600 failed. Use nd.perm instead of perm2.
601 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
602 instead of gen_lowpart for the target.
603 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
604 and recurse if everything else failed.
606 2015-12-04 Richard Biener <rguenther@suse.de>
609 * builtins.c (get_pointer_alignment_1): Take care of byte to
610 bit alignment computation overflow.
612 2015-12-04 Richard Biener <rguenther@suse.de>
615 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
616 a constant with single_use.
618 2015-12-04 Bin Cheng <bin.cheng@arm.com>
619 Jiong Wang <jiong.wang@arm.com>
621 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
622 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
624 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
626 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
627 Add short circuit for !flag_strict_aliasing
628 (get_alias_set): Remove flag_strict_aliasing check.
629 (new_alias_set): Likewise.
631 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
633 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
634 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
635 (exynosm1_regmove_cost): Likewise.
636 (exynosm1_vector_cost): Likewise.
637 (exynosm1_tunings): Likewise.
638 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
639 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
641 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
642 Richard Biener <richard.guenther@gmail.com>
644 * cfgexpand.c (pass_expand::execute): Replace call to
645 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
646 * tree-ssa.c (delete_tree_ssa): Likewise.
647 * function.c (set_cfun): Call redirect_edge_var_map_empty.
648 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
649 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
650 (redirect_edge_var_map_empty): New.
651 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
652 (redirect_edge_var_map_empty): New.
654 2015-12-03 Jeff Law <law@redhat.com>
656 PR tree-optimization/68599
657 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
658 in call to loop_optimizer_init.
659 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
660 optimization to drop the assumptions/infinite notations if
661 the loop has a single exit.
663 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
665 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
666 the pattern cannot FAIL.
667 (vec_store_lanes@var{m}@var{n}): Likewise.
668 (maskload@var{m}@var{n}): Likewise.
669 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
670 in the name of the pattern.
671 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
672 floating-point mode and that all operands have that mode.
673 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
675 (sqrt@var{m}2): Document that mode m must be a scalar or vector
676 floating-point mode, that all operands have that mode, and that
677 the patterns cannot FAIL. Remove previous documentation referring
678 to @code{double} and @code{float}.
679 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
680 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
681 (copysign@var{m}3): Likewise.
682 (exp@var{m}2): Likewise. Explicitly state the base.
683 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
684 (btrunc@var{m}2, rint@var{m}2): Likewise.
685 (round@var{m}2): Likewise. Fix incorrect description of rounding
687 (ceil@var{m}2): As for round@var{m}2.
688 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
689 the instruction must not raise an inexact condition.
690 (scalb@var{m}3): Document previously-undocumented pattern
691 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
692 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
693 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
694 (significand@var{m}2): Likewise.
695 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
696 mode m and operand 0 is defined more freely. Document that @var{m}
697 can be a scalar or vector integer mode and that the pattern is not
699 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
700 (clrsb@var{m}2): Likewise, except that the description of the
701 mode was missing in this case.
703 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
705 * internal-fn.def (RSQRT): New function.
706 * optabs.def (rsqrt_optab): New optab.
707 * doc/md.texi (rsqrtM2): Document.
708 * target.def (builtin_reciprocal): Replace gcall argument with
709 a function decl. Restrict hook to machine functions.
710 * doc/tm.texi: Regenerate.
711 * targhooks.h (default_builtin_reciprocal): Update prototype.
712 * targhooks.c (default_builtin_reciprocal): Likewise.
713 * tree-ssa-math-opts.c: Include internal-fn.h.
714 (internal_fn_reciprocal): New function.
715 (pass_cse_reciprocals::execute): Call it, and build a call to an
716 internal function on success. Only call targetm.builtin_reciprocal
717 for machine functions.
718 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
720 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
721 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
722 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
724 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
725 (aarch64_builtin_reciprocal): Replace gcall argument with a
726 function decl. Use use_rsqrt_p. Remove optimize_size check.
727 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
728 (aarch64_optab_supported_p): New function.
729 (TARGET_OPTAB_SUPPORTED_P): Define.
730 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
731 (rsqrt<mode>2): ...this.
732 * config/i386/i386.c (use_rsqrt_p): New function.
733 (ix86_builtin_reciprocal): Replace gcall argument with a
734 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
735 check. Only handle machine functions.
736 (ix86_optab_supported_p): Handle rsqrt_optab.
737 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
738 (rs6000_builtin_reciprocal): Replace gcall argument with a
739 function decl. Remove optimize_insn_for_size_p check.
740 Only handle machine functions.
741 (rs6000_optab_supported_p): New function.
743 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
747 * config/i386/i386.c (ix86_mitigate_rop): Don't call
748 compute_bb_for_insn again. Call df_insn_rescan_all.
749 * config/i386/i386.md (set_got_rex64): Override modrm_class.
751 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
753 2015-12-03 Nathan Sidwell <nathan@acm.org>
755 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
756 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
757 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
758 (nvptx_option_override): Set data ares for worker vars.
759 (nvptx_addr_space_from_sym): Delete.
760 (nvptx_encode_section_info): New.
761 (section_for_sym, section_for_decl): New.
762 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
763 (nvptx_section_from_addr_space): Delete.
764 (nvptx_section_for_decl): Delete.
765 (nvptx_output_aligned, nvptx_declare_object_name,
766 nvptx_assemble_undefined_decl): Use section_for_decl, remove
768 (nvptx_print_operand): Add 'D', adjust 'A'.
769 (nvptx_expand_worker_addr): Adjust unspec generation.
770 (TARGET_ENCODE_SECTION_INFO): Override.
771 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
772 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
773 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
774 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
775 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
776 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
777 (UNSPEC_TO_GENERIC): New.
778 (nvptx_register_or_symbolic_operand): Delete.
779 (cvt_code, cvt_name, cvt_str): Delete.
780 (convaddr_<cvt_name><mode> [P]): Delete.
781 (convaddr_<mode> [P]): New.
783 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
785 PR rtl-optimization/68624
786 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
787 blocks if they exist and simplify the logic choosing the order to emit
790 2015-12-03 Richard Biener <rguenther@suse.de>
792 PR tree-optimization/66051
793 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
794 on load group size. Do not pass in vectorization_factor.
795 (vect_transform_slp_perm_load): Do not require any permute support.
796 (vect_build_slp_tree): Do not pass in vectorization factor.
797 (vect_analyze_slp_instance): Do not compute vectorization
798 factor estimate. Use vector size instead of vectorization factor
799 estimate to split store groups for BB vectorization.
801 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
803 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
804 DECL as return value is allowed to have NULL bounds.
806 2015-12-03 Tom de Vries <tom@codesourcery.com>
808 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
809 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
810 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
812 2015-12-03 Richard Biener <rguenther@suse.de>
814 PR tree-optimization/67800
815 PR tree-optimization/68333
816 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
817 restriction to reduction contexts but allow SLP reductions as well.
818 (vect_recog_sad_pattern): Likewise.
819 (vect_recog_widen_sum_pattern): Likewise.
821 2015-12-03 Richard Biener <rguenther@suse.de>
823 PR tree-optimization/68639
824 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
825 belonging to different loops.
826 (vect_analyze_data_ref_accesses): Likewise.
828 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
830 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
831 Remove "prefix_extra".
832 (define_insn "vec_extract_hi_<mode>_mask"): New.
833 (define_insn "vec_extract_hi_<mode>"): Remove masking.
835 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
837 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
838 (propagate_pure_const): Use it; fix comments and optimize loops.
840 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
842 * ipa-pure-const.c (ignore_edge): Rename to ...
843 (ignore_edge_for_nothrow) ... this one; also ignore eges to
844 interposable functions or ones that can not throw.
845 (propagate_nothrow): Fix handling of availability.
847 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
850 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
852 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
853 Sebastian Pop <s.pop@samsung.com>
855 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
857 (gcc_expression_from_isl_expr_op): Same.
859 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
860 Sebastian Pop <s.pop@samsung.com>
862 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
863 that insertion point is still in the region.
865 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
866 Sebastian Pop <s.pop@samsung.com>
868 PR tree-optimization/68550
869 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
870 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
873 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
875 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
876 * configure: Regenerate.
877 * config.in: Regenerate.
878 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
880 (rs6000_output_function_prologue): Use it instead of checking
881 cfun->machine->r2_setup_needed. Use internal labels instead of
882 GNU as local label extension. Handle ELFv2 large code model.
883 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
884 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
886 2015-12-02 Jakub Jelinek <jakub@redhat.com>
889 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
891 (expand_unop): Use them.
893 2015-12-02 Marek Polacek <polacek@redhat.com>
896 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
898 2015-12-02 Nathan Sidwell <nathan@acm.org>
900 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
902 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
904 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
905 Sebastian Pop <s.pop@samsung.com>
907 * graphite-dependences.c (scop_get_reads): Add extra dumps.
908 (scop_get_must_writes): Same.
909 (scop_get_may_writes): Same.
910 (compute_deps): Same.
911 * graphite-sese-to-poly.c (bounds_are_valid): New.
912 (pdr_add_data_dimensions): Call bounds_are_valid.
914 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
915 Sebastian Pop <s.pop@samsung.com>
917 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
918 * graphite-poly.c (apply_poly_transforms): Same.
919 * graphite.c (gate_graphite_transforms): Same.
920 * toplev.c (process_options): Same.
922 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
924 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
925 (mips_output_probe_stack_range): Rotate the loop and simplify.
927 2015-12-02 David Sherwood <david.sherwood@arm.com>
929 * config/aarch64/aarch64.md: New pattern.
930 * config/aarch64/aarch64-simd.md: Likewise.
931 * config/aarch64/iterators.md: New unspecs, iterators.
933 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
935 * dwarf2out.c (dwar2out_var_location): In addition to notes,
936 process indirect calls whose target is compile-time known.
937 Enhance pattern matching to get the SYMBOL_REF they embed.
938 (gen_subprogram_die): Handle such calls.
939 * final.c (final_scan_insn): For call instructions, invoke the
940 var_location debug hook only after the call has been emitted.
942 2015-12-02 Tom de Vries <tom@codesourcery.com>
944 * gimplify.c (enum gimplify_omp_var_data): Add enum value
946 (oacc_default_clause): Fix default for scalars in oacc kernels.
947 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
949 2015-12-02 Tom de Vries <tom@codesourcery.com>
951 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
952 parameter base_pointers_restrict.
953 (omp_target_base_pointers_restrict_p): New function.
954 (scan_omp_target): Call scan_sharing_clauses with
955 base_pointers_restrict arg.
957 2015-12-02 Nathan Sidwell <nathan@acm.org>
959 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
960 (nvptx_underlying_object_mode): Delete.
961 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
963 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
964 (nvptx_output_mov_insn): New.
965 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
966 Use output_reg. Merge 't' and 'u' handling.
967 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
968 (struct machine_function): Remvoe punning_buffer_size.
969 (REGISTER_NAMES): Remove %punbuffer.
970 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
971 UNSPEC_CPLX_HIGHPART): Delete.
972 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
973 nvptx_output_mov_insn.
974 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
975 Use nvptx_output_mov_insn.
976 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
978 (mov<mode> [SDCM]): Delete.
980 2015-12-02 Richard Biener <rguenther@suse.de>
982 * tree.h (tree_invariant_p): Declare.
983 * tree.c (tree_invariant_p): Export.
984 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
985 create SAVE_EXPRs but reject patterns if we would need to.
987 2015-12-02 Tom de Vries <tom@codesourcery.com>
989 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
990 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
992 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
994 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
995 (cstore<mode>4): Use it.
997 2015-12-02 Richard Biener <rguenther@suse.de>
999 PR tree-optimization/68625
1000 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1001 cleanup_control_flow_bb.
1002 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1003 on all BBs, then cleanup_tree_cfg_bb and finally iterate
1004 over the worklist doing both.
1006 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1008 PR tree-optimization/68432
1009 * coretypes.h (optimization_type): New enum.
1010 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1011 * doc/tm.texi: Regenerate.
1012 * target.def (optab_supported_p): New hook.
1013 * targhooks.h (default_optab_supported_p): Declare.
1014 * targhooks.c (default_optab_supported_p): New function.
1015 * predict.h (function_optimization_type): Declare.
1016 (bb_optimization_type): Likewise.
1017 * predict.c (function_optimization_type): New function.
1018 (bb_optimization_type): Likewise.
1019 * optabs-query.h (convert_optab_handler): Define an overload
1020 that takes an optimization type.
1021 (direct_optab_handler): Likewise.
1022 * optabs-query.c (convert_optab_handler): Likewise.
1023 (direct_optab_handler): Likewise.
1024 * internal-fn.h (direct_internal_fn_supported_p): Take an
1025 optimization_type argument.
1026 * internal-fn.c (direct_optab_supported_p): Likewise.
1027 (multi_vector_optab_supported_p): Likewise.
1028 (direct_internal_fn_supported_p): Likewise.
1029 * builtins.c (replacement_internal_fn): Update call to
1030 direct_internal_fn_supported_p.
1031 * gimple-match-head.c (build_call_internal): Likewise.
1032 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1033 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1034 * tree.c (maybe_build_call_expr_loc): Likewise.
1035 * config/i386/i386.c (ix86_optab_supported_p): New function.
1036 (TARGET_OPTAB_SUPPORTED_P): Define.
1037 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1038 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1039 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1040 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1041 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1042 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1044 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1046 * Makefile.in (GENSUPPORT_H): New macro.
1047 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1048 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1049 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1050 (build/genconstants.o, build/genextract.o, build/genflags.o)
1051 (build/gentarget-def.o): Use it.
1052 (build/genemit.o): Likewise. Depend on internal-fn.def.
1053 * genopinit.c: Move block comment to optabs.def.
1054 (optab_tag, optab_def): Move to gensupport.h
1055 (pattern): Likewise, renaming to optab_pattern.
1056 (match_pattern): Move to gensupport.c
1057 (gen_insn): Use find_optab.
1058 (patterns, pattern_cmp): Replace pattern with optab_pattern.
1059 (main): Likewise. Use num_optabs.
1060 * optabs.def: Add comment that was previously in genopinit.c.
1061 * gensupport.h (optab_tag): Moved from genopinit.c
1062 (optab_def): Likewise, expanding commentary.
1063 (optab_pattern): Likewise, after renaming from pattern.
1064 (optabs, num_optabs, find_optab): Declare.
1065 * gensupport.c (optabs): Moved from genopinit.c.
1066 (num_optabs): New variable.
1067 (match_pattern): Moved from genopinit.c.
1068 (find_optab): New function, extracted from genopinit.c:gen_insn.
1069 * genemit.c (nofail_optabs): New variable.
1070 (emit_c_code): New function.
1071 (gen_expand): Check whether the instruction is an optab that isn't
1072 allowed to fail. Call emit_c_code.
1073 (gen_split): Call emit_c_code here too.
1074 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
1076 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1078 * config/s390/predicates.md (const_mask_operand): New predicate.
1079 * config/s390/s390-builtins.def: Set a smaller bitmask
1081 * config/s390/vector.md: Change predicate from immediate_operand
1082 to either const_int_operand or const_mask_operand. Add special
1083 insn conditions on patterns which have to exclude certain values.
1084 * config/s390/vx-builtins.md: Likewise.
1086 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1088 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1091 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1093 * config/s390/s390-builtin-types.def: New builtin types added.
1094 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1095 * config/s390/s390.c (s390_expand_builtin): Always truncate
1096 constants to the mode in the pattern.
1097 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1098 respective builtin __builtin_s390_vec_splat_*.
1100 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1102 * config/s390/s390-builtin-types.def: Sort builtin types.
1104 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1106 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1107 condition for the RT flag.
1109 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1111 * config/s390/constraints.md ("jKK"): New constraint.
1112 * config/s390/s390.c (tm-constrs.h): Include for
1113 satisfies_constraint_*.
1114 (s390_legitimate_constant_p): Allow jKK constants. Use
1115 satisfies_constraint_* also for the others.
1116 (legitimate_reload_vector_constant_p): Likewise.
1117 (print_operand): Allow h output modifier on vectors.
1118 * config/s390/vector.md ("mov<mode>"): Add vrepi.
1120 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1122 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1125 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1127 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1128 ("bswaphi2"): New pattern.
1129 New splitter for HI reg-reg bswap.
1131 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
1134 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1135 if it is the first parameter.
1137 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1139 PR tree-optimization/68577
1140 * tree-vect-stmts.c (simple_integer_narrowing): New function.
1141 (vectorizable_call): Restrict internal function handling
1142 to NONE and NARROW cases, using simple_integer_narrowing
1143 to test for the latter. Add cost of narrowing operation
1144 and insert it where necessary.
1146 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
1148 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1149 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1150 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1152 2015-12-01 Nathan Sidwell <nathan@acm.org>
1154 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1155 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1156 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1157 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1158 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1159 (init_output_initializer): Call write_var_marker.
1160 (nvptx_output_aligned_decl): New.
1161 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1163 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1165 * c-common.c (parse_optimize_options): Do not silently ignore
1166 -fstrict-aliasing changes.
1168 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1170 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1171 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1172 stream TYPE_ALIAS_SET.
1173 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1174 stream TYPE_ALIAS_SET.
1176 2015-12-01 Nathan Sidwell <nathan@acm.org>
1178 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1181 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1183 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1184 indirection for large and small code models.
1185 (adjust_vperm): Likewise.
1187 2015-12-01 Julian Brown <julian@codesourcery.com>
1188 Cesar Philippidis <cesar@codesourcery.com>
1189 James Norris <James_Norris@mentor.com>
1191 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1192 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1193 (is_gimple_omp_oacc): Add support for above.
1194 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1195 (omp_notice_variable): Diagnose undefined implicit uses of
1196 use_device variables in offloaded regions.
1197 (gimplify_scan_omp_clauses): Add host_data, use_device
1198 support. Diagnose undefined mapping of use_device variables in
1200 (gimplify_omp_workshare): Add host_data support.
1201 (gimplify_expr): Likewise.
1202 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1203 * omp-low.c (lookup_decl_in_outer_ctx)
1204 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1206 (scan_sharing_clauses): Support use_device.
1207 (check_omp_nesting_restrictions): Support host_data.
1208 (expand_omp_target): Support host_data.
1209 (lower_omp_target): Skip over outer host_data regions when looking
1210 up decls. Support use_device.
1211 (make_gimple_omp_edges): Support host_data.
1212 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1214 2015-12-01 Marek Polacek <polacek@redhat.com>
1217 * cgraphunit.c (check_global_declaration): Only depend
1218 on TREE_THIS_VOLATILE for VAR_DECLs.
1220 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1222 PR tree-optimization/68474
1223 * tree-call-cdce.c (use_internal_fn): Protect call to
1224 gen_shrink_wrap_conditions.
1226 2015-12-01 Christian Bruel <christian.bruel@st.com>
1229 * config/arm/arm.opt (unaligned_access): Save.
1230 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1231 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1232 (arm_option_override_internal): ... here.
1233 * config/arm/arm.h (TARGET_32BIT_P): New macro.
1235 2015-12-01 Richard Biener <rguenther@suse.de>
1237 PR tree-optimization/68379
1238 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1239 always base loads on the first used DR of a group.
1240 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1241 Compute alignment of the first scalar element unconditionally.
1243 2015-12-01 Richard Biener <rguenther@suse.de>
1246 * genmatch.c (struct capture_info): Add match_use_count.
1247 (capture_info::walk_match): Increment match_use_count.
1248 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1249 replacements in a save_expr if they occur more often than
1250 in the original expression.
1252 2015-12-01 Richard Biener <rguenther@suse.de>
1255 * ipa-split.c (split_function): Handle main part not returning.
1257 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1260 * tree-vect-stmts.c (vect_init_vector): Cast boolean
1261 scalars to a proper value before building a vector.
1263 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1265 * genattrtab.c (check_attr_test): Take an attr_desc instead of
1266 an is_const flag. Put the file_location argument first.
1267 Update recursive calls. Improve error messages.
1268 (check_attr_value): Take a file location and use it instead
1269 of attr->loc. Improve error messages. Update calls to
1271 (check_defs): Update call to check_attr_value.
1272 (make_canonical): Likewise.
1273 (gen_attr): Likewise.
1275 (gen_insn_reserv): Update call to check_attr_test.
1277 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1279 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1281 2015-12-01 Richard Biener <rguenther@suse.de>
1284 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1286 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1288 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1289 odr_type_p): Move to ...
1290 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1291 odr_type_p): here; miscro-optimize.
1293 2015-12-01 Bin Cheng <bin.cheng@arm.com>
1295 PR tree-optimization/68529
1296 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1297 Compute no-overflow information for control iv.
1298 (number_of_iterations_lt, number_of_iterations_le): Add new param.
1299 (number_of_iterations_cond): Pass new argument to above functions.
1301 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
1303 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1304 inlining -fno-strict-aliasing into -fstrict-aliasing body.
1306 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1307 Sebastian Pop <s.pop@samsung.com>
1309 PR tree-optimization/68565
1310 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1311 codegen_error. Fail when rhs of division operations is integer_zerop.
1312 (ternary_op_to_tree): Early return on codegen_error.
1313 (unary_op_to_tree): Same.
1314 (nary_op_to_tree): Same.
1315 (gcc_expression_from_isl_expr_op): Same.
1316 (gcc_expression_from_isl_expression): Same.
1317 (graphite_create_new_loop): On codegen_error continue generating
1319 (graphite_create_new_loop_guard): Same.
1320 (build_iv_mapping): Same.
1321 (graphite_create_new_guard): Same.
1323 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1324 Sebastian Pop <s.pop@samsung.com>
1326 * graphite-isl-ast-to-gimple.c: Fix dump messages.
1327 * graphite-scop-detection.c: Same.
1328 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1330 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
1332 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1333 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1334 (convert_local_omp_clauses): Likewise.
1336 2015-11-30 Tom de Vries <tom@codesourcery.com>
1338 PR tree-optimization/46032
1339 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1341 (find_func_aliases_for_call): ... here.
1342 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1343 BUILT_IN_GOMP_PARALLEL.
1344 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
1347 2015-11-30 Jakub Jelinek <jakub@redhat.com>
1349 PR tree-optimization/68501
1350 * target.def (builtin_reciprocal): Replace the 3 arguments with
1351 a gcall * one, adjust description.
1352 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1354 * targhooks.c (default_builtin_reciprocal): Likewise.
1355 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1356 targetm.builtin_reciprocal even on internal functions, adjust
1357 the arguments and allow replacing an internal function with normal
1359 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1360 with a gcall * one. Handle internal fns too.
1361 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1362 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1363 * doc/tm.texi (builtin_reciprocal): Document.
1365 2015-11-30 Richard Biener <rguenther@suse.de>
1367 PR tree-optimization/68592
1368 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1369 on the pattern def sequence.
1371 2015-11-30 Nathan Sidwell <nathan@acm.org>
1373 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1374 (write_one_arg): Reorder parms, add 'sep' param.
1375 (nvptx_write_function_decl): Rename to ...
1376 (write_fn_proto): ... here. Do name replacement. Emit linaer
1377 comment marker. Deal with both decls and defns. Simplify argument
1379 (write_function_decl_and_comment): Delete.
1380 (write_func_decl_from_insn): Rename to ...
1381 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1382 (nvptx_record_fndecl): Call write_fn_proto.
1383 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1384 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1385 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1387 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1389 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1390 (define_insn "*k<logic><mode>"): Use new iterator.
1392 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1395 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1396 (sparc_adjust_cost): Add missing space.
1398 2015-11-30 Richard Biener <rguenther@suse.de>
1401 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
1403 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1405 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
1406 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1407 base ref, DR pairs and store base_predicate for write type DRs.
1408 (ifcvt_memrefs_wont_trap): Guard checks with
1409 -ftree-loop-if-convert-stores flag.
1411 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1413 * cgraph.c (cgraph_node::make_local): No name is unique during
1414 incremental linking.
1415 * cgraph.h (can_be_discarded_p): Update comment; also common and
1416 WEAK in named sections can be discarded; when doing incremental
1417 link do not rely on resolution being the final one.
1418 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1419 When symbol can be discarded, do not rely on resolution info.
1420 * symtab.c (symtab_node::nonzero_address): Take into account that
1421 symbol can be discarded.
1422 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1423 definition correctly.
1424 (function_and_variable_visibility): Do not set unique_name when
1425 incrementally linking.
1427 2015-11-29 Nathan Sidwell <nathan@acm.org>
1429 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1430 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1431 (ctrap<mode>): Use const0_operand.
1433 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1435 * ipa-devirt.c (add_type_duplicate): Remove redundant
1438 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1441 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1442 recog_memoized test for insn and check recog_memoized for dep_insn.
1444 2015-11-28 Nathan Sidwell <nathan@acm.org>
1446 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1447 (FRAME_POINTER_CFA_OFFSET): Define.
1448 (struct nvptx_args): Use 'tree' type.
1449 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1451 2015-11-28 Tom de Vries <tom@codesourcery.com>
1453 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1455 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1457 * doc/invoke.texi (Option Summary): Use negative form of
1458 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1459 sort alphabetically and re-justify.
1461 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1463 PR rtl-optimization/68536
1464 * lra.c (lra_emit_add): Add code for null base.
1465 * lra-constraints.c (curr_insn_transform): Skip operators for
1468 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1471 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1473 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1475 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1476 are not modified by the final modified insns in the basic blocks.
1478 2015-11-27 Nathan Sidwell <nathan@acm.org>
1480 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1482 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1483 (nvptx_maybe_convert_symbolic_operand): Simplify.
1484 (nvptx_addr_space_from_address): Delete.
1485 (nvptx_print_operand): Adjust 'A' case.
1487 2015-11-27 Richard Biener <rguenther@suse.de>
1489 PR tree-optimization/68559
1490 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1491 peeling for gap checks ...
1492 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
1493 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1494 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1496 2015-11-27 Nathan Sidwell <nathan@acm.org>
1498 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
1499 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1500 (nvptx_record_fndecl): Don't return value, remove force
1501 argument. Require fndecl.
1502 (nvptx_record_libfunc): New.
1503 (nvptx_record_needed_decl): Deteermine how to record decl here.
1504 (nvptx_maybe_record_fnsym): New.
1505 (nvptx_expand_call): Don't record libfuncs here,
1506 (nvptx_maybe_convert_symbolic_operand): Use
1507 nvptx_maye_record_fnsym.
1508 (nvptx_assemble_integer): Reimplement with single switch.
1509 (nvptx_output_call_insn): Register libfuncs here.
1510 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1511 * config/nvptx/nvptx.md (expand_movdi): Don't call
1512 nvptx_record_needed_decl.
1514 2015-11-27 Richard Biener <rguenther@suse.de>
1516 PR tree-optimization/68553
1517 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1518 generation for 1:1 permutations.
1519 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1521 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1523 * gimple.h (nonbarrier_call_p): Declare.
1524 * gimple.c (nonbarrier_call_p): New function.
1525 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1526 Also increment call phase for ASMs with vdef and potential barrier
1529 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1531 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1533 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1534 are not modified by the final modified insns in the basic blocks.
1536 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1538 PR rtl-optimization/68506
1539 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1540 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1543 2015-11-27 Martin Liska <mliska@suse.cz>
1546 * vec.h (release_vec_vec): New function.
1548 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1550 PR tree-optimization/68552
1551 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1552 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1553 or whether v0 == v1.
1555 2015-11-27 Martin Liska <mliska@suse.cz>
1557 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1558 The change is just automatical.
1560 2015-11-27 Martin Liska <mliska@suse.cz>
1562 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1565 2015-11-27 Martin Liska <mliska@suse.cz>
1567 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1568 Do not release memory for comp_alias_ddrs.
1569 * tree-vect-loop.c (destroy_loop_vec_info): Release
1570 the memory for all loop_vec_info.
1572 2015-11-27 Martin Liska <mliska@suse.cz>
1574 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1575 of a local-scope vec.
1576 (struct final_warning_record): Use auto_vec instead of vec.
1578 2015-11-27 Richard Biener <rguenther@suse.de>
1580 PR tree-optimization/68553
1581 * tree-vect-slp.c (vect_get_mask_element): Remove.
1582 (vect_transform_slp_perm_load): Implement in a simpler way.
1584 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1586 PR rtl-optimization/67753
1587 PR rtl-optimization/64164
1588 * function.c (assign_parm_setup_block): Right-shift
1589 upward-padded big-endian args when bypassing the stack slot.
1591 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1593 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1594 `-mcompact-branches='.
1595 (MIPS Options): Likewise.
1597 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1599 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1601 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1603 * doc/install.texi (Prerequisites): Increase ISL requirement to
1606 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1608 * config/aarch64/arm_neon.h
1609 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1610 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1611 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1612 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1613 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1614 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1615 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1616 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1617 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1618 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1619 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1620 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1622 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1624 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1625 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1626 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1627 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1629 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1631 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1634 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1637 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1638 hold the frame base address.
1639 * dwarf2out.c (gen_subprogram_die): Generate for
1640 DW_AT_static_link a location description that computes the value
1643 2015-11-26 Tom de Vries <tom@codesourcery.com>
1646 2015-11-25 Tom de Vries <tom@codesourcery.com>
1648 * cfgloop.c (find_single_latch): New function, factored out of ...
1649 (flow_loops_find): ... here.
1650 (verify_loop_structure): Improve verification of loop->latch.
1651 * cfgloop.h (find_single_latch): Declare.
1652 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1654 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1656 * config/aarch64/aarch64-simd-builtins.def:
1657 Add missing changes from r230962.
1659 2015-11-26 Nathan Sidwell <nathan@acm.org>
1661 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1662 arg with name. Don't deal with split regs. Tweak formatting.
1663 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1664 (nvptx_output_call_insn): Don't deal with split regs here.
1666 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1668 * config/aarch64/aarch64-simd-builtins.def
1669 (sqrdmlah, sqrdmlsh): New.
1670 (sqrdmlah_lane, sqrdmlsh_lane): New.
1671 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1673 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1675 * config/aarch64/aarch64-simd.md
1676 (aarch64_sqmovun<mode>): Fix some white-space.
1677 (aarch64_<sur>qmovun<mode>): Likewise.
1678 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1679 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1680 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1681 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1682 (UNSPEC_SQRDMLSH): New.
1686 2015-11-26 Richard Biener <rguenther@suse.de>
1688 PR tree-optimization/66721
1689 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1690 iteration cost earlier. Re-do analysis without SLP when
1691 vectorization using SLP fails and without has a chance to succeed.
1693 2015-11-26 Richard Biener <rguenther@suse.de>
1695 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1696 multi-result-use captures in a SAVE_EXPR.
1698 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1700 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1701 (TARGET_SIMD_RDMA): New.
1703 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1705 * combine.c (subst): Do not return clobber of zero in widening mult
1706 case. Just return x unchanged if it is a no-op substitution.
1708 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1711 * config/i386/i386.h (enum reg_class): Add
1712 bounds registers to ALL_REGS.
1714 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1716 PR tree-optimization/68128
1717 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1718 * gimplify.c: Include gimple-walk.h.
1719 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1720 (omp_notice_variable): Set flags to n->value if n already
1721 exists in target region, but we need to jump to do_outer.
1722 (omp_shared_to_firstprivate_optimizable_decl_p,
1723 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1725 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1726 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1727 not modified in the body. Call omp_mark_stores for outer
1728 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1729 in the body or on OMP_CLAUSE_LASTPRIVATE.
1730 (gimplify_adjust_omp_clauses): Add body argument, call
1731 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1732 Set OMP_CLAUSE_SHARED_READONLY
1733 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1734 not modified in the body. Call omp_mark_stores for outer
1735 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1736 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1737 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1738 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1739 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1740 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1741 * tree-nested.c (convert_nonlocal_omp_clauses,
1742 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1743 non-local vars or local vars referenced from nested routines.
1744 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1745 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1746 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1747 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1749 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1751 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1752 about signed left shift stronger and clarify the cases when they're
1755 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1756 Bernd Schmidt <bschmidt@redhat.com>
1758 PR rtl-optimization/67226
1759 * calls.c (store_one_arg): Take into account
1760 crtl->args.pretend_args_size when checking for overlap between
1761 arg->value and argblock + arg->locate.offset during sibcall
1764 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1766 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1767 aarch64_fp_compare_operand.
1768 (store_pairsf): Use aarch64_reg_or_fp_zero.
1769 (store_pairdf): Likewise.
1770 (cstore<mode>4): Use aarch64_fp_compare_operand.
1771 (cmov<mode>6): Likewise.
1772 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1774 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1775 Sebastian Pop <s.pop@samsung.com>
1777 PR tree-optimization/68453
1778 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1779 not redirect edges already pointing to their destination.
1780 (translate_isl_ast_node_for): Split edges after loops to create
1781 basic blocks for close phi nodes. Save merge points at the end of
1783 (translate_isl_ast_node_if): Save merge points at the end of the
1785 (add_close_phis_to_outer_loops): New.
1786 (add_close_phis_to_merge_points): New.
1787 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1788 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1789 loop close phi locations.
1791 2015-11-25 Jan Hubicka <jh@suse.cz>
1793 * ipa-visibility.c (cgraph_externally_visible_p,
1794 varpool_node::externally_visible_p): When doing incremental linking,
1795 hidden symbols may be still used later.
1796 (update_visibility_by_resolution_info): Do not drop weak during
1798 (function_and_variable_visibility): Fix formating.
1799 * flag-types.h (lto_linker_output): Declare.
1800 * common.opt 9flag_incremental_link): New flag.
1802 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1804 * config/rs6000/constraints.md (wb constraint): New constraint for
1805 ISA 3.0 d-form scalar addressing.
1807 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1808 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1809 Altivec registers. Add wb constraint for Altivec registers with
1810 D-form addressing. If we have ISA 3.0 d-form support, undo
1811 secondary reload support for using FPR registers if we want to do
1813 (rs6000_debug_reg_global): Likewise.
1814 (rs6000_setup_reg_addr_masks): Likewise.
1815 (rs6000_init_hard_regno_mode_ok): Likewise.
1816 (rs6000_secondary_reload): Likewise.
1817 (rs6000_preferred_reload_class): Likewise.
1818 (rs6000_secondary_reload_class): Likewise.
1820 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1823 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1824 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1825 (f32_lm2): Likewise.
1826 (f32_li2): Likewise.
1827 (f32_sr2): Likewise.
1828 (f32_sm2): Likewise.
1829 (f32_si2): Likewise.
1831 (extendsfdf2_fpr): Likewise.
1832 (mov<mode>_hardfloat): Likewise.
1833 (mov<mode>_hardfloat32): Likewise.
1834 (mov<mode>_hardfloat64): Likewise.
1836 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1837 Fixup we constraint documentation.
1839 2015-11-25 Tom de Vries <tom@codesourcery.com>
1841 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1842 * passes.def: Add pass_oacc_kernels pass group.
1843 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1845 2015-11-25 Tom de Vries <tom@codesourcery.com>
1847 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1849 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1850 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1851 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1852 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1854 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1856 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1857 TV_IPA_LTO_OUTPUT): New.
1858 * lto-compress.c: Include timevar.h
1859 (lto_end_compression, lto_end_uncompression): Add timers.
1860 * langhooks.c: Include timevar.h.
1861 (lhd_append_data): Add timer.
1863 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1865 * varasm.c (default_elf_asm_output_limited_string,
1866 default_elf_asm_output_ascii): Replace fprintf by putc.
1868 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
1870 PR rtl-optimization/67954
1871 * lra-constraints.c (curr_insn_transform): Add check on scratch
1872 pseudo when change class to NO_REGS. Add an assert.
1874 2015-11-25 Nathan Sidwell <nathan@acm.org>
1876 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1878 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
1879 (nvptx_write_function_decl): Number args from 0.
1880 (nvptx_declare_function_name): Likewise.
1881 (nvptx_function_incoming_arg): Likewise.
1882 (nvptx_output_call_insn): Correct formatting.
1884 2015-11-25 David Sherwood <david.sherwood@arm.com>
1886 * optabs.def: Add new optabs fmax_optab/fmin_optab.
1887 * internal-fn.def: Add new fmax/fmin internal functions.
1888 * doc/md.texi: Add fmin and fmax patterns.
1890 2015-11-25 Jason Merrill <jason@redhat.com>
1893 * tree.c (integer_zerop, integer_onep, integer_each_onep)
1894 (integer_all_onesp, integer_minus_onep, integer_pow2p)
1895 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1896 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1898 2015-11-25 Richard Biener <rguenther@suse.de>
1901 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1902 on stripped operands.
1904 2015-11-25 Nathan Sidwell <nathan@acm.org>
1906 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1907 (nvptx_declare_function_name): Move assignments next to register
1908 declarations, and process params here.
1910 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
1912 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1913 both the symbol and the "dot" symbol for function descriptors. Fix
1914 inversion for rename of symbols with dollar sign.
1916 2015-11-25 Tom de Vries <tom@codesourcery.com>
1918 * cfgloop.c (find_single_latch): New function, factored out of ...
1919 (flow_loops_find): ... here.
1920 (verify_loop_structure): Improve verification of loop->latch.
1921 * cfgloop.h (find_single_latch): Declare.
1922 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1924 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1926 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1927 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1928 (STARTFILE_SPEC): Use %(startfile_vtv).
1929 (ENDFILE_SPEC): Use %(endfile_vtv).
1930 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1933 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1935 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
1937 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1938 noce_can_store_speculate): Delete.
1939 (noce_process_if_block): Don't try to handle single MEM stores.
1940 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1941 * alias.c (memory_must_be_modified_in_insn_p): Delete.
1943 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1945 PR rtl-optimization/68435
1946 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1947 for conflicts between a, b and the set destinations.
1949 2015-11-25 Richard Biener <rguenther@suse.de>
1951 PR tree-optimization/68517
1952 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1953 Properly handle zero-sized types.
1955 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1957 * ipa-inline-analysis.c: Include gimplify.h
1958 (set_cond_stmt_execution_predicate,
1959 set_switch_stmt_execution_predicate): Be sure to not leak locations
1962 2015-11-25 Jakub Jelinek <jakub@redhat.com>
1965 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1966 match_uaddsub_overflow): New functions.
1967 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1969 2015-11-25 Richard Biener <rguenther@suse.de>
1971 PR tree-optimization/68492
1972 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1973 op from scalars after operand swapping.
1975 2015-11-25 Richard Biener <rguenther@suse.de>
1977 PR tree-optimization/68502
1978 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1979 check that the step is a multiple of the type size.
1981 2015-11-24 Michael Collison <michael.collison@linaro.org>
1983 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1984 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1985 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1987 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
1989 * frame-header-opt.c (gate): Check for optimize > 0.
1990 (has_inlined_assembly): New function.
1991 (needs_frame_header_p): Remove is_leaf_function check,
1992 add argument type check.
1993 (callees_functions_use_frame_header): Add is_leaf_function
1994 and has_inlined_assembly calls..
1995 (set_callers_may_not_allocate_frame): New function.
1996 (frame_header_opt): Add is_leaf_function call, add
1997 set_callers_may_not_allocate_frame call.
1998 * config/mips/mips.c (mips_compute_frame_info): Add check
1999 to see if callee saved regs can be put in frame header.
2000 (mips_expand_prologue): Add check to see if step1 is zero,
2001 fix cfa restores when using frame header to store regs.
2002 (mips_can_use_return_insn): Check to see if registers are
2003 stored in frame header.
2004 * config/mips/mips.h (machine_function): Add
2005 callers_may_not_allocate_frame and
2006 use_frame_header_for_callee_saved_regs fields.
2008 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2010 PR rtl-optimization/68520
2011 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2012 its bit was already set in BB_WITH.
2014 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2016 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2017 double check that type is main variant.
2018 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2020 (verify_type_variant): Verify that variants have no
2021 TYPE_ALIAS_SET_KNOWN_P set
2022 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2023 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2024 only for main variants; stream TYPE_ALIAS_SET as a bit.
2025 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2028 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2030 * tree.c (make_vector_type): Properly compute canonical type of the
2032 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2035 2015-11-24 Nathan Sidwell <nathan@acm.org>
2037 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2038 VOIDmode, don't alter incoming mode.
2039 (nvptx_split_reg_p): Delete.
2040 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2041 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2042 maybe_split_mode calls.
2043 (nvptx_print_operand): Use maybe_split_mode.
2045 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2047 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2048 only for types where LTO sets them.
2049 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2050 (make_vector_type): Likewise.
2051 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2052 * tree.h (canonical_type_used_p): New inline.
2053 * alias.c (get_alias_set): Handle structural equality for all
2054 types that pass canonical_type_used_p.
2055 (record_component_aliases): Look through all types with
2056 record_component_aliases for possible pointers; sanity check that
2057 the alias sets match.
2059 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2061 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2063 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2065 * tree.c (free_node): New function.
2066 (type_hash_canon): Use it.
2067 * tree.h (free_node): Declare.
2069 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
2070 Michael Meissner <meissner@linux.vnet.ibm.com>
2072 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2073 (Fv2): New mode attribute to be used when ISA 2.07 instructions
2074 are used on SF values, and ISA 2.06 instructions on DF values.
2075 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2076 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2077 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2078 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2079 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2080 (fre<Fs>): Use <Fv2> instead of <Fv>.
2081 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2082 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2083 (xsrdpi<mode>): Add support for the lround function.
2084 (lround<mode>di2): Likewise.
2085 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2086 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2087 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2088 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2090 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2091 Sebastian Pop <s.pop@samsung.com>
2093 PR tree-optimization/67984
2094 * graphite-isl-ast-to-gimple.c (is_constant): New.
2095 (get_rename): Call is_constant.
2096 (get_new_name): Same.
2098 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2099 Sebastian Pop <s.pop@samsung.com>
2101 * graphite-dependences.c: Only include graphite.h.
2102 * graphite-isl-ast-to-gimple.c: Same.
2103 * graphite-optimize-isl.c: Same.
2104 * graphite-poly.c: Same.
2105 * graphite-scop-detection.c: Same.
2106 * graphite-sese-to-poly.c: Same.
2108 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2109 * graphite-poly.h: Same.
2110 * graphite-scop-detection.h: Same.
2113 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
2115 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2116 DW_TAG_namespace for IMPORTED_DECL declarations. Call
2117 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2118 function already takes care of checking what it can emit.
2120 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2122 * doc/invoke.texi (-fpic): Add the AArch64 limit.
2123 (-fPIC): Add AArch64.
2125 2015-11-24 Tom de Vries <tom@codesourcery.com>
2127 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2128 (pass_lim::execute): Allow to run outside pass_tree_loop.
2130 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
2132 * config/aarch64/aarch64.md (add<mode>3):
2133 Block early expansion into 2 add instructions.
2134 (add<mode>3_pluslong): New pattern to combine complex
2135 immediates into 2 additions.
2137 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2142 * config/rs6000/predicates.md (and_operand): Check that the operand
2143 is a const_int before calling rs6000_is_valid_and_mask.
2145 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2147 * config/aarch64/aarch64.md (*condjump): Rename to...
2148 (condjump): ... This.
2149 (*compare_condjump<mode>): New define_insn_and_split.
2150 (*compare_cstore<mode>_insn): Likewise.
2151 (*cstore<mode>_insn): Rename to...
2152 (cstore<mode>_insn): ... This.
2153 * config/aarch64/iterators.md (CMP): Handle ne code.
2154 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2156 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
2159 * config/i386/i386.c (output_387_binary_op): Fix assertion for
2162 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2164 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2165 (val_ssa_equiv_hash_traits::remove): Likewise.
2166 (pass_uncprop::execute): Adjust.
2168 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2170 * hash-map-traits.h (simple_hashmap_traits ::remove): call
2171 destructors on values that are being removed.
2172 * mem-stats.h (hash_map): Pass type of values to
2173 simple_hashmap_traits.
2174 * tree-sra.c (sra_deinitialize): Remove work around for hash
2175 maps not destructing values.
2176 * genmatch.c (sinfo_hashmap_traits): Adjust.
2177 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2179 2015-11-24 Richard Biener <rguenther@suse.de>
2180 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2183 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2186 2015-11-24 Jakub Jelinek <jakub@redhat.com>
2189 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2190 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2192 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2193 whenever first is nelt or above. Don't mask expected with
2196 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2199 * gimple-fold.c: Include ipa-chkp.h.
2200 (gimple_fold_builtin_memory_op): Don't fold call if we
2201 are going to instrument it and it may copy pointers.
2203 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
2204 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2206 PR rtl-optimization/68194
2207 PR rtl-optimization/68328
2208 PR rtl-optimization/68185
2209 * ree.c (combine_reaching_defs): Reject copy_needed case if
2210 copies_list is not empty.
2212 2015-11-24 Richard Biener <rguenther@suse.de>
2215 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2218 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2220 PR rtl-optimization/68381
2221 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2224 2015-11-23 Nick Clifton <nickc@redhat.com>
2225 Jeff Law <law@redhat.com>
2227 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2228 the source/dest of the target extension require a different number of
2230 (combine_set_extension): Remove #if 0 code.
2232 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2233 Sebastian Pop <s.pop@samsung.com>
2235 PR tree-optimization/68314
2236 * graphite-optimize-isl.c (optimize_isl): Do not call
2237 isl_union_map_is_equal.
2238 * graphite-poly.c (new_scop): Remove original_schedule.
2240 * graphite-poly.h (struct scop): Same.
2241 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2243 (build_pbb_scattering_polyhedrons): Add back.
2244 (build_scop_minimal_scattering): Remove.
2245 (build_scop_scattering): Add back.
2246 (build_scop_original_schedule): Remove.
2247 (build_poly_scop): Revert to only call build_scop_scattering.
2249 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2250 Sebastian Pop <s.pop@samsung.com>
2252 PR tree-optimization/68493
2253 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2254 missing early return when codegen_error is set.
2256 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2257 Sebastian Pop <s.pop@samsung.com>
2259 PR tree-optimization/68279
2260 * graphite-poly.c (new_scop): Remove poly_scop_p.
2261 * graphite-poly.h (struct scop): Same.
2262 (build_poly_scop): Declare.
2263 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2264 (cleanup_loop_iter_dom): New.
2265 (build_loop_iteration_domains): Early return when scev analysis fails.
2266 (create_pw_aff_from_tree): Same.
2267 (add_condition_to_pbb): Same.
2268 (add_conditions_to_domain): Same.
2269 (add_conditions_to_constraints): Same.
2270 (build_scop_iteration_domain): Same.
2271 (build_poly_scop): Same. Do not initialize poly_scop_p.
2272 * graphite-sese-to-poly.h: Remove.
2273 * graphite.c: Do not include graphite-sese-to-poly.h.
2274 (graphite_transform_loops): Stop before code generation when
2275 build_poly_scop fails.
2276 * sese.c (scalar_evolution_in_region): Add fixme note about scev
2279 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2280 Sebastian Pop <s.pop@samsung.com>
2282 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2283 Remove call to update_ssa.
2284 * sese.c (sese_insert_phis_for_liveouts): Same.
2286 2015-11-23 Marek Polacek <polacek@redhat.com>
2288 PR tree-optimization/68455
2289 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2290 extract_range_from_multiplicative_op_1 on symbolic ranges.
2292 2015-11-23 Richard Henderson <rth@redhat.com>
2294 * optabs.def (uaddv4_optab, usubv4_optab): New.
2295 * internal-fn.c (expand_addsub_overflow): Use them.
2296 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2298 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2299 to reversed operands.
2300 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2301 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2302 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2303 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2304 (*add<SWI>3_cconly_overflow_2): New.
2305 (*add<SWI>3_cc_overflow_2): New.
2306 (*addsi3_zext_cc_overflow_2): New.
2308 2015-11-23 Richard Biener <rguenther@suse.de>
2310 PR tree-optimization/68465
2311 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2312 Also record equalities from multiple predecessor blocks if
2313 only one non-backedge exists.
2315 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2318 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2319 that are not INSN_P.
2321 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
2323 * config/aarch64/aarch64-builtins.c
2324 (aarch64_gimple_fold_builtin): Fold FMULX.
2326 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
2328 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2329 * graphite-dependences.c: Define USES_ISL. Include ISL header files
2330 after GCC header files and before graphite header files.
2331 * graphite-dependences.c: Same.
2332 * graphite-isl-ast-to-gimple.c: Same.
2333 * graphite-optimize-isl.c: Same.
2334 * graphite-poly.c: Same.
2335 * graphite-scop-detection.c: Same.
2336 * graphite-sese-to-poly.c: Same.
2339 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
2340 Jiong Wang <jiong.wang@arm.com>
2342 PR tree-optimization/68317
2343 PR tree-optimization/68326
2344 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2345 final min and max are not infinity.
2347 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2348 Richard Biener <rguenther@suse.de>
2350 PR tree-optimization/68327
2351 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2352 compute vectype for non-relevant mask producers.
2353 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2356 2015-11-23 Tom de Vries <tom@codesourcery.com>
2358 PR tree-optimization/68460
2359 * tree-parloops.c (gather_scalar_reductions): Also call
2360 free_stmt_vec_info_vec if simple_loop_info == NULL.
2362 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2364 * opts.c (finish_options): Allow -fsanitize-recover=address for
2365 userspace sanitization.
2366 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2367 * doc/invoke.texi (fsanitize-recover): Update documentation.
2369 2015-11-23 Tom de Vries <tom@codesourcery.com>
2371 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2373 2015-11-23 Richard Biener <rguenther@suse.de>
2375 PR tree-optimization/68445
2376 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2377 two different strides.
2379 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2381 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2382 * config/s390/s390.c (s390_check_symref_alignment): Use new
2383 symref flags, early abort on wrong alignment
2384 (s390_secondary_reload): Use new symref flags.
2385 (s390_encode_section_info): Likewise.
2386 * config/s390/predicates.md: Likewise.
2388 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2391 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2392 for indirect function call.
2394 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2396 * config/aarch64/aarch64-simd.md
2397 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2398 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2399 (*aarch64_mulx_elt_to_64v2df): Likewise.
2400 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2401 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2402 (vmulx_lane_f64): Likewise.
2403 (vmulxq_lane_f32): Refactored & moved.
2404 (vmulxq_lane_f64): Likewise.
2405 (vmulx_laneq_f32): New.
2406 (vmulx_laneq_f64): Likewise.
2407 (vmulxq_laneq_f32): Likewise.
2408 (vmulxq_laneq_f64): Likewise.
2409 (vmulxs_lane_f32): Likewise.
2410 (vmulxs_laneq_f32): Likewise.
2411 (vmulxd_lane_f64): Likewise.
2412 (vmulxd_laneq_f64): Likewise.
2414 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2416 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2417 In LTO we do not compute TYPE_CANONICAL of pointers.
2418 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2419 that pointers do not have canonical type that would make us believe
2421 * alias.c (get_alias_set): Do structural type equality on pointers;
2422 enable pointer path for LTO; also glob pointer to vector with pointer
2423 to vector element; glob pointers and references for LTO; do more strict
2424 sanity checking about build_pointer_type returning the canonical type
2425 which is also the main variant.
2426 (record_component_aliases): When component type is pointer and we
2427 do LTO; record void_type_node alias set.
2429 2015-11-21 Nathan Sidwell <nathan@acm.org>
2431 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2433 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2435 (write_func_decl_from_insn): Likewise.
2436 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2437 (nvptx_file_end): Likewise.
2438 (nvptx_function_end): Undent output.
2439 (nvptx_expand_call): Fix formatting.
2440 (nvptx_output_call_insn): Indent output.
2441 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2442 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2444 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2447 * tree-inline.c (copy_debug_stmt): If
2448 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2449 in decl_debug_args, don't call remap_gimple_op_r on it.
2451 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2453 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2454 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2455 Check that all record types are complete.
2456 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2457 compare alias sets for types w/o alias sets.
2459 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2461 * config/sparc/sparc.md (umulxhi_vis): Move around.
2462 (*umulxhi_sp64): Likewise.
2463 (umulxhi_v8plus): Likewise.
2464 (xmulx_vis): Likewise.
2465 (*xmulx_sp64): Likewise.
2466 (xmulx_v8plus): Likewise.
2467 (xmulxhi_vis): Likewise.
2468 (*xmulxhi_sp64): Likewise.
2469 (xmulxhi_v8plus): Likewise.
2471 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2474 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2475 (class layout): Update comment
2476 (layout::print_any_fixits): New method.
2477 (layout::move_to_column): New method.
2478 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2480 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2483 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2484 has non-zero bias, subtract it in integer type instead of
2485 pointer plus of negated bias.
2488 * omp-low.c (expand_simd_clones): Call node->get_body () before
2489 allocating stuff in GC.
2491 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2493 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2495 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2497 * config/aarch64/aarch64.md (predicated): Copy attribute from
2499 * config/arm/arm.md (predicated): Added description.
2501 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2503 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2504 for unaligned_access.
2505 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2506 from matching condition.
2507 (unaligned_loadhis): Likewise.
2508 (unaligned_loadhiu): Likewise.
2509 (unaligned_storesi): Likewise.
2510 (unaligned_storehi): Likewise.
2512 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2515 * config/arm/arm.md (unaligned_loaddi): Delete.
2516 (unaligned_storedi): Likewise.
2517 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2518 unaligned DImode memory ops. Instead perform two back-to-back
2519 unaligned SImode ops.
2521 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2522 James Norris <jnorris@codesourcery.com>
2524 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2525 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2527 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2529 PR tree-optimization/68413
2530 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2532 (vectorizable_reduction): Use cached base
2534 2015-11-20 Tom de Vries <tom@codesourcery.com>
2536 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2538 (try_create_reduction_list): Same. Fix typo in dump-file string.
2540 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2542 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2543 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2544 glitch in entries for cbranch4 and jump.
2546 2015-11-20 Tom de Vries <tom@codesourcery.com>
2548 PR tree-optimization/68373
2549 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2551 (scev_const_prop): ... here.
2552 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2553 * tree-parloops.c (try_create_reduction_list): Call
2554 final_value_replacement_loop.
2556 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2558 PR tree-optimization/52272
2559 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2560 (struct iv_common_cand_hasher): New struct.
2561 (iv_common_cand_hasher::hash): New function.
2562 (iv_common_cand_hasher::equal): New function.
2563 (struct ivopts_data): New fields, iv_common_cand_tab and
2565 (tree_ssa_iv_optimize_init): Initialize above fields.
2566 (record_common_cand, common_cand_cmp): New functions.
2567 (add_iv_candidate_derived_from_uses): New function.
2568 (add_iv_candidate_for_use): Record iv_common_cands derived from
2569 iv use in hash table, instead of adding candidates directly.
2570 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2571 (record_important_candidates): Add important candidates to iv uses'
2572 related_cands. Always keep related_cands for future use.
2573 (try_add_cand_for): Use iv uses' related_cands.
2574 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2575 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2577 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2579 * config/s390/s390.md ("bswaphi2"): New pattern.
2581 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2583 * config/s390/s390.md (GPR1_REGNUM): New constant.
2584 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2585 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2586 ("trunc<BFP:mode><DFP_ALL:mode>2")
2587 ("trunc<DFP_ALL:mode><BFP:mode>2")
2588 ("*extend<BFP:mode><DFP_ALL:mode>2")
2589 ("*extend<DFP_ALL:mode><BFP:mode>2")
2590 ("extend<BFP:mode><DFP_ALL:mode>2")
2591 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2593 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2594 Sebastian Pop <s.pop@samsung.com>
2596 PR tree-optimization/68428
2597 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2598 over basic blocks outside the scop.
2600 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2601 Sebastian Pop <s.pop@samsung.com>
2603 PR tree-optimization/68341
2604 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2605 gcc_unreachable and safely fail codegen.
2606 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2607 block with loop phi nodes.
2608 (edge_for_new_close_phis): New.
2609 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2611 2015-11-19 Nathan Sidwell <nathan@acm.org>
2613 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2614 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2615 (nvptx_declare_objec_name): Likewise.
2617 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2619 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2620 (get_false_edge_from_guard_bb): Move...
2621 * sese.c (get_false_edge_from_guard_bb)
2622 (get_true_edge_from_guard_bb): ... here.
2624 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2627 2015-11-18 Alan Modra <amodra@gmail.com>
2629 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2630 type-limits warning.
2633 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2635 * tree.h (desired_pro_or_demotion_p): New function.
2636 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2638 2015-11-19 Michael Matz <matz@suse.de>
2640 * fwprop.c (update_uses): Use flag_checking instead of
2641 gcc_checking_assert.
2643 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2645 * doc/gty.texi (Support for inheritance): Fix missing
2646 parentheses in example.
2648 2015-11-19 Marek Polacek <polacek@redhat.com>
2650 PR tree-optimization/68431
2651 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2653 2015-11-19 Nathan Sidwell <nathan@acm.org>
2655 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2656 atomic_exchange<mode>): Input values can be immediates.
2658 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2661 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2663 * configure: Regenerate.
2665 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2668 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2669 (DTORS_SECTION_ASM_OP): Likewise.
2671 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2673 PR rtl-optimization/68376
2674 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2675 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2677 2015-11-19 Richard Biener <rguenther@suse.de>
2680 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2681 redirect_edge_var_map_destroy.
2683 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2686 * config/i386/i386.md (simple_return): Disable if
2687 ix86_static_chain_on_stack is true.
2689 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2692 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2695 2015-11-18 Jeff Law <law@redhat.com>
2697 PR tree-optimization/68198
2698 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2699 between threading a multi-way branch and a thread path that contains
2700 a multi-way branch. Disallow the case where a path contains a
2701 multi-way branch and does not thread a multi-way branch.
2702 (thread_through_all_blocks): Update comment.
2704 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2707 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2708 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2709 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2710 functions before defining as macros.
2712 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2714 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2715 (nvptx_record_offload_symbol): Remove code compensating for lack
2716 of default dimension handling.
2717 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2719 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2721 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2722 type to bool for early exit.
2723 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2725 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2726 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2727 predecessor dominates the other.
2728 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2729 element is not found it returns -1.
2730 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2731 out early when codegen fails.
2732 (graphite_regenerate_ast_isl): Remove codegen region when pending
2733 phis could not be generated.
2735 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2737 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2739 (class translate_isl_ast_to_gimple): Indentation.
2740 (translate_pending_phi_nodes): Comment.
2741 (add_parameters_to_ivs_params): Moved from sese.c inside class
2742 translate_isl_ast_to_gimple.
2743 (get_max_schedule_dimensions): Same.
2744 (generate_isl_context): Same.
2745 (extend_schedule): Same.
2746 (generate_isl_schedule): Same.
2747 (set_options): Same.
2748 (scop_to_isl_ast): Same.
2749 (is_valid_rename): Same.
2751 (get_rename_from_scev): Same.
2752 (get_def_bb_for_const): Same.
2753 (get_new_name): Same.
2754 (collect_all_ssa_names): Same.
2755 (copy_loop_phi_args): Same.
2756 (copy_loop_phi_nodes): Same.
2757 (copy_loop_close_phi_args): Same.
2758 (copy_loop_close_phi_nodes): Same.
2759 (copy_cond_phi_args): Same.
2760 (copy_cond_phi_nodes): Same.
2761 (graphite_copy_stmts_from_block): Same.
2762 (copy_bb_and_scalar_dependences): Same.
2763 (add_phi_arg_for_new_expr): Same.
2764 (rename_uses): Same.
2766 (set_rename_for_each_def): Same.
2767 (gsi_insert_earliest): Same.
2768 (rename_all_uses): Same.
2769 (codegen_error_p): Same.
2770 (print_isl_ast_node): Same.
2771 (translate_isl_ast_for_loop): Call function codegen_error_p.
2772 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2773 (translate_isl_ast_node_user): Make nb_loops const and release
2775 (get_true_edge_from_guard_bb): Move all free-functions early.
2776 (get_false_edge_from_guard_bb): Same.
2777 (bb_contains_loop_close_phi_nodes): Same.
2778 (bb_contains_loop_phi_nodes): Same.
2779 (is_loop_closed_ssa_use): Same.
2780 (number_of_phi_nodes): Same.
2781 (phi_uses_name): Same.
2782 (later_of_the_two): Same.
2783 (substitute_ssa_name):
2786 (get_loop_init_value): Same.
2787 (find_init_value): Same.
2788 (find_init_value_close_phi): Same.
2789 (ast_build_before_for): Same.
2790 (graphite_regenerate_ast_isl): Formatting changes.
2791 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2792 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2794 (gsi_insert_earliest): Same.
2795 (collect_all_ssa_names): Same.
2796 (rename_all_uses): Same.
2797 (rename_uses): Same.
2798 (get_def_bb_for_const): Same.
2799 (copy_loop_phi_nodes): Same.
2800 (copy_loop_close_phi_args): Same.
2801 (copy_loop_close_phi_nodes): Same.
2802 (copy_cond_phi_args): Same.
2803 (copy_cond_phi_nodes): Same.
2804 (set_rename_for_each_def): Same.
2805 (graphite_copy_stmts_from_block): Same.
2806 (copy_bb_and_scalar_dependences): Same.
2807 (if_region_set_false_region): Same.
2808 (scev_analyzable_p): Same.
2809 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2811 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2813 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2814 commit from r125920 for FreeBSD.
2816 2015-11-18 Jason Merrill <jason@redhat.com>
2818 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2820 (add_finalizer): Split out from ggc_internal_alloc.
2821 (ggc_handle_finalizers): Run finalizers for the current depth.
2822 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2824 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2827 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2830 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2832 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2833 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2835 * doc/avr-mmcu.texi: Regenerate.
2837 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2839 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2840 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2841 (struct bb_sese): New struct.
2842 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2843 (BB_GET_SESE, BB_SET_SESE): Define.
2844 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2845 (nvptx_find_sese): New.
2846 (nvptx_neuter_pars): Find SESE regions when optimizing.
2848 2015-11-18 Alan Modra <amodra@gmail.com>
2850 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2851 type-limits warning.
2853 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2856 * hash-set.h (hash_set::traverse): Expand Key typedef.
2858 2015-11-18 Martin Liska <mliska@suse.cz>
2860 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2863 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2865 * config/nvptx/nvptx.c (global_lock_var): New.
2866 (nvptx_global_lock_addr): New.
2867 (nvptx_lockless_update): Recomment and adjust for clarity.
2868 (nvptx_lockfull_update): New.
2869 (nvptx_reduction_update): New.
2870 (nvptx_goacc_reduction_fini): Call it.
2872 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
2874 * regrename.h (struct du_head): Add target_data_1 and target_data_2
2876 * regrename.c (create_new_chain): Clear entire struct after allocating.
2878 * config/i386/i386.opt (mmitigate-rop): New option.
2879 * doc/invoke.texi (mmitigate-rop): Document.
2880 * config/i386/i386.c: Include "regrename.h".
2881 (ix86_rop_should_change_byte_p, reg_encoded_number,
2882 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2884 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2885 * config/i386/i386.md (attr "modrm_class"): New.
2886 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2887 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2888 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2890 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2893 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2895 2015-11-18 Jakub Jelinek <jakub@redhat.com>
2897 PR tree-optimization/68157
2898 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2899 pow_stmt or mul_stmt from stmt's uid.
2900 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2902 2015-11-18 Martin Liska <mliska@suse.cz>
2904 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2906 2015-11-18 Martin Liska <mliska@suse.cz>
2908 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2909 Fix GNU coding style.
2910 (find_def_preds): Use auto_vec.
2911 (destroy_predicate_vecs): Change signature of the function.
2912 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2914 (simplify_preds_4): Use destroy_predicate_vecs instread of
2915 just releasing preds vector.
2916 (normalize_preds): Likewise.
2917 (is_use_properly_guarded): Use new signature of
2918 destroy_predicate_vecs.
2919 (find_uninit_use): Likewise.
2921 2015-11-18 Richard Biener <rguenther@suse.de>
2923 PR tree-optimization/67790
2924 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2925 IL rewrite for MINUS_EXPR reductions, rename back to ...
2926 (vect_is_simple_reduction): ... this, removing the wrapper.
2927 (vect_force_simple_reduction): Adjust.
2928 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2929 reductions and make use if reduc_index in all places. For
2930 the final reduction of MINUS_EXPR use PLUS_EXPR.
2932 2015-11-18 Alan Modra <amodra@gmail.com>
2934 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2936 * configure: Regenerate.
2938 2015-11-17 Tom de Vries <tom@codesourcery.com>
2940 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2942 2015-11-17 Tom de Vries <tom@codesourcery.com>
2944 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2945 uses of ssa_name with constant.
2947 2015-11-17 Tom de Vries <tom@codesourcery.com>
2949 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2952 2015-11-17 Tom de Vries <tom@codesourcery.com>
2954 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2955 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2956 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2958 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
2960 * regrename.c (regrename_find_superclass): New function, code moved
2962 (rename_chains): ... here. Call it.
2963 * regrename.h (regrename_find_superclass): Declare.
2965 * regrename.c (record_out_operands): Terminate earlyclobbered
2969 * regrename.c (record_operand_use): Keep track of failed operands
2970 and stop appending if we see any.
2971 * regrename.h (struct operand_rr_info): Add a failed field and shrink
2974 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2977 * doc/extend.texi (Common Function Attributes) [visibility]:
2978 Add cross-references to matching variable and type attributes.
2979 (Common Variable Attributes) [visibility]: Add missing entry.
2981 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2983 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2984 entries that map directly to optabs.
2986 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2988 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2989 entries that map directly to optabs.
2991 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2993 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2994 * internal-fn.c (direct_internal_fn_array): Update accordingly.
2995 * tree-vectorizer.h (vectorizable_function): Delete.
2996 * tree-vect-stmts.c: Include internal-fn.h.
2997 (vectorizable_internal_function): New function.
2998 (vectorizable_function): Inline into...
2999 (vectorizable_call): ...here. Explicitly reject calls that read
3000 from or write to memory. Try using an internal function before
3001 falling back on the old vectorizable_function behavior.
3003 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3005 * target.def (builtin_vectorized_function): Take a combined_fn (in
3006 the form of an unsigned int) rather than a function decl.
3007 (builtin_md_vectorized_function): New.
3008 * targhooks.h (default_builtin_vectorized_function): Replace the
3009 fndecl argument with an unsigned int.
3010 (default_builtin_md_vectorized_function): Declare.
3011 * targhooks.c (default_builtin_vectorized_function): Replace the
3012 fndecl argument with an unsigned int.
3013 (default_builtin_md_vectorized_function): New function.
3014 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3016 * doc/tm.texi: Regenerate.
3017 * tree-vect-stmts.c (vectorizable_function): Update call to
3018 builtin_vectorized_function, also passing internal functions.
3019 Call builtin_md_vectorized_function for target-specific builtins.
3020 * config/aarch64/aarch64-protos.h
3021 (aarch64_builtin_vectorized_function): Replace fndecl argument
3022 with an unsigned int.
3023 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3024 (aarch64_builtin_vectorized_function): Update after above changes.
3026 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3027 fndecl argument with an unsigned int.
3028 * config/arm/arm-builtins.c: Include case-cfn-macros.h
3029 (arm_builtin_vectorized_function): Update after above changes.
3031 * config/i386/i386.c: Include case-cfn-macros.h
3032 (ix86_veclib_handler): Take a combined_fn rather than a
3034 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
3035 mathfn_built_in rather than calling builtin_decl_implicit directly.
3036 (ix86_builtin_vectorized_function) Update after above changes.
3038 * config/rs6000/rs6000.c: Include case-cfn-macros.h
3039 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3040 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
3041 than calling builtin_decl_implicit directly.
3042 (rs6000_builtin_vectorized_function): Update after above changes.
3043 Use CASE_CFN_*. Move BUILT_IN_MD to...
3044 (rs6000_builtin_md_vectorized_function): ...this new function.
3045 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3047 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3049 * tree-vect-patterns.c: Include internal-fn.h.
3050 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3052 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3054 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3055 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3057 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3059 * builtins.c (expand_errno_check, expand_builtin_mathfn)
3060 (expand_builtin_mathfn_2): Delete.
3061 (expand_builtin): Remove handling of functions with
3062 internal function equivalents.
3063 * internal-fn.def (SET_EDOM): New internal function.
3064 * internal-fn.h (set_edom_supported_p): Declare.
3065 * internal-fn.c (expand_SET_EDOM): New function.
3066 (set_edom_supported_p): Likewise.
3067 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3068 Rewrite comment at head of file.
3069 (is_call_dce_candidate): Rename to...
3070 (can_test_argument_range): ...this. Don't check gimple_call_lhs
3071 or gimple_call_builtin_p here.
3072 (edom_only_function): New function.
3073 (shrink_wrap_one_built_in_call_with_conds): New function, split out
3075 (shrink_wrap_one_built_in_call): ...here.
3076 (can_use_internal_fn, use_internal_fn): New functions.
3077 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3078 for calls that have an lhs.
3079 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3080 (pass_call_cdce::execute): Skip blocks that are optimized for size.
3081 Check gimple_call_builtin_p here. Use can_use_internal_fn for
3083 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3086 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3088 * builtins.h (called_as_built_in): Declare.
3089 * builtins.c (called_as_built_in): Make external.
3090 * internal-fn.h (expand_internal_call): Define a variant that
3091 specifies the internal function explicitly.
3092 * internal-fn.c (expand_load_lanes_optab_fn)
3093 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3094 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3095 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3096 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3097 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3098 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3099 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3100 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3101 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3102 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3103 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3104 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3105 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3107 (internal_fn_expanders): Update prototype.
3108 (expand_internal_call): Define a variant that specifies the
3109 internal function explicitly. Use it to implement the previous
3111 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3112 functions as calls to internal functions.
3114 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3116 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3117 (generated_files): Likewise.
3118 (s-cfn-operators, cfn-operators.pd): New rules.
3119 (s-match): Depend on cfn-operators.pd.
3120 * gencfn-macros.c: Expand comment to describe -o behavior.
3121 (print_define_operator_list): New function.
3122 (main): Accept -o. Call print_define_operator_list.
3123 * genmatch.c (main): Add the current directory to the include path.
3124 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
3127 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3129 * doc/match-and-simplify.texi: Document the "null" identifier.
3130 * genmatch.c (id_base::NULL_ID): New kind.
3131 (null_id): New variable.
3132 (get_operator): Add a parameter that says whether null identifiers
3134 (contains_id): New function.
3135 (lower_for): Skip substitutions that would have a null_id in
3136 either the match or the result.
3137 (parser::parse_for): Allow the null identifier to be used.
3138 (parser::parse_operator_list): Likewise.
3139 (main): Initialize null_id.
3141 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3143 * match.pd: Use HYPOT and COS rather than hypot and cos.
3144 Use CASE_CFN_* macros. Guard log/exp folds with
3145 SCALAR_FLOAT_TYPE_P.
3146 * genmatch.c (internal_fn): New enum.
3147 (fn_id::fn): Change to an unsigned int.
3148 (fn_id::fn_id): Accept internal_fn too.
3149 (add_builtin): Rename to...
3150 (add_function): ...this and turn into a template.
3151 (get_operator): Only try one variation if the original name fails.
3152 Only add _EXPR if the original name was all lower case.
3153 Try converting internal and built-in function names to their
3155 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3156 (dt_simplify::gen_1): Likewise.
3157 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3158 and get_call_combined_fn for generic.
3159 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3160 (decision_tree::gen): Likewise.
3161 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3162 Use add_function rather than add_builtin. Register internal
3164 * generic-match-head.c: Include case-cfn-macros.h.
3165 * gimple-fold.c (replace_stmt_with_simplification): Use
3166 gimple_call_combined_fn to test whether we can keep an
3168 * gimple-match.h (code_helper): Replace built_in_function
3170 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3171 and case-fn-macros.h.
3172 (gimple_resimplify1): Use fold_const_call.
3173 (gimple_resimplify2, gimple_resimplify3): Likewise.
3174 (build_call_internal, build_call): New functions.
3175 (maybe_push_res_to_seq): Use them.
3176 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
3177 rather than a built-in function.
3178 * tree.h (build_call_expr_internal_loc): Declare.
3179 (maybe_build_call_expr_loc): Likewise.
3180 * tree.c (build_call_expr_internal_loc_array): New function.
3181 (maybe_build_call_expr_loc): Likewise.
3183 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3185 * builtins.h (mathfn_built_in): Add a variant that takes
3187 * builtins.c: Include case-cfn-macros.h.
3188 (CASE_MATHFN): Use CASE_CFN_*.
3189 (CASE_MATHFN_REENT): Use CFN_ codes.
3190 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3191 argument with a combined_fn.
3192 (mathfn_built_in): Add a variant that takes a combined_fn.
3193 (expand_builtin_int_roundingfn_2): Update callers accordingly.
3194 (fold_builtin_sincos, fold_builtin_classify): Likewise.
3196 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3198 * tree-vect-patterns.c: Include case-cfn-macros.h.
3199 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3201 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3203 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3204 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3205 (pass_cse_sincos::execute): Likewise.
3207 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3209 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3210 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3211 (decrement_power, acceptable_pow_call): Likewise.
3212 (attempt_builtin_copysign): Likewise.
3214 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3216 * tree-vrp.c: Include case-cfn-macros.h.
3217 (extract_range_basic): Switch on combined_fn rather than handling
3218 built-in functions and internal functions separately.
3220 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3222 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3223 than a built_in_function.
3224 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3226 (integer_valued_real_call_p): Likewise.
3227 * fold-const.c: Include case-cfn-macros.h
3228 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3229 (negate_expr_p): Update accordingly.
3230 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3232 (integer_valued_real_call_p): Likewise.
3233 (tree_invalid_nonnegative_warnv_p): Update accordingly.
3234 (integer_valued_real_p): Likewise.
3235 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3236 to tree_call_nonnegative_warnv_p.
3237 (gimple_call_integer_valued_real_p): Likewise
3238 integer_valued_real_call_p.
3239 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3240 (backprop::process_builtin_call_use): Extend to combined_fn.
3241 (strip_sign_op_1): Likewise.
3242 (backprop::process_use): Don't check for built-in calls here.
3243 (backprop::execute): Likewise.
3244 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3246 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3248 * fold-const-call.h (fold_const_call): Replace built_in_function
3249 arguments with combined_fn arguments.
3250 * fold-const-call.c: Include case-cfn-macros.h.
3251 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3252 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3253 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3254 built_in_function arguments with combined_fn arguments.
3255 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3256 (fold_builtin_3): Update calls to fold_const_call.
3258 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3260 * Makefile.in (HASH_TABLE_H): Add GGC_H.
3261 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3262 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3263 (build/gencfn-macros$(build_exeext): New rules.
3264 (genprogerr): Add cfn-macros.
3265 * hash-set.h (hash_set): Use the traits value_type as the key.
3266 * gencfn-macros.c: New file.
3268 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3270 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3271 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3272 * builtins.c (associated_internal_fn): Handle them.
3274 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3276 * builtins.h (associated_internal_fn): Declare.
3277 (replacement_internal_fn): Likewise.
3278 * builtins.c: Include internal-fn.h
3279 (associated_internal_fn, replacement_internal_fn): New functions.
3280 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3281 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3282 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3283 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3284 (LDEXP): New functions.
3285 * internal-fn.c: Include recog.h.
3286 (unary_direct, binary_direct): New macros.
3287 (expand_direct_optab_fn): New function.
3288 (expand_unary_optab_fn): New macro.
3289 (expand_binary_optab_fn): Likewise.
3290 (direct_unary_optab_supported_p): Likewise.
3291 (direct_binary_optab_supported_p): Likewise.
3293 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3295 * coretypes.h (tree_pair): New type.
3296 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
3297 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3298 * internal-fn.h (direct_internal_fn_info): New structure.
3299 (direct_internal_fn_array): Declare.
3300 (direct_internal_fn_p, direct_internal_fn): New functions.
3301 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3302 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3303 (mask_store_direct, store_lanes_direct): New macros.
3304 (direct_internal_fn_array) New array.
3305 (get_multi_vector_move): Return the optab handler without asserting
3306 that it is available.
3307 (expand_LOAD_LANES): Rename to...
3308 (expand_load_lanes_optab_fn): ...this and add an optab argument.
3309 (expand_STORE_LANES): Rename to...
3310 (expand_store_lanes_optab_fn): ...this and add an optab argument.
3311 (expand_MASK_LOAD): Rename to...
3312 (expand_mask_load_optab_fn): ...this and add an optab argument.
3313 (expand_MASK_STORE): Rename to...
3314 (expand_mask_store_optab_fn): ...this and add an optab argument.
3315 (direct_internal_fn_types, direct_optab_supported_p)
3316 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3317 (direct_internal_fn_supported_p): New functions.
3318 (direct_mask_load_optab_supported_p): New macro.
3319 (direct_load_lanes_optab_supported_p): Likewise.
3320 (direct_mask_store_optab_supported_p): Likewise.
3321 (direct_store_lanes_optab_supported_p): Likewise.
3323 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3325 * tree-core.h (internal_fn): Move immediately after the definition
3326 of built_in_function.
3327 (combined_fn): New enum.
3328 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3329 (internal_fn_p, as_internal_fn): New functions.
3330 (get_call_combined_fn, combined_fn_name): Declare.
3331 * tree.c (get_call_combined_fn): New function.
3332 (combined_fn_name): Likewise.
3333 * gimple.h (gimple_call_combined_fn): Declare.
3334 * gimple.c (gimple_call_combined_fn): New function.
3336 2015-11-17 Martin Sebor <msebor@redhat.com>
3339 * cp/init.c (build_new_1): Check for expression constness
3342 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3345 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3347 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3348 discussion of the Microsoft structure layout details here from
3349 its former home in extend.texi.
3350 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3351 discussion with pointer to its new location. Add cross-reference
3352 to corresponding type attributes.
3353 (x86 Type Attributes): Add cross-references to command-line options
3354 and variable attributes.
3356 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3359 * targhooks.c (default_get_mask_mode): Filter out
3360 scalar modes returned by mode_for_vector.
3362 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3365 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3366 offset from dstbase and use it appropriately in
3367 adjust_automodify_address.
3368 (arm_block_set_aligned_vect): Likewise.
3370 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3372 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3373 (MULTILIB_DIRNAMES): Adjust accordingly.
3375 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3377 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3378 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3379 * config/aarch64/aarch64-tune.md: Regenerate.
3380 * doc/invoke.texi (-mcpu): Add Cortex-A35
3382 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3385 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3387 * config/i386/sse.md (*mov<mode>_internal): Always enable
3388 AVX and SSE unaligned moves for IAMCU.
3390 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3392 * tree-if-conv.c: Include varasm.h
3393 (ref_DR_map): Define.
3394 (baseref_DR_map): Like wise
3395 (struct ifc_dr): Add new tree predicate field.
3396 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3397 (memrefs_read_or_written_unconditionally): Remove.
3398 (write_memrefs_written_at_least_once): Remove.
3399 (ifcvt_memrefs_wont_trap): Use hash maps to query
3400 unconditional read/written information.
3401 (if_convertible_loop_p_1): Initialize hash maps and predicates
3402 before hashing data references and delete hashmaps at the end.
3404 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3407 * doc/invoke.texi (Optimize Options): Move @end table to the right
3410 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3413 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3416 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3418 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3419 128-bit types, just types that fit in a single vector.
3420 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3422 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3424 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3425 in the user documentation.
3426 (define_peephole2, define_split): Similarly.
3428 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3430 * lto-streamer-out.c (write_global_references): Adjust integer type.
3431 (lto_output_decl_state_refs): Likewise.
3433 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3435 * config/arm/arm-cores.def (cortex-a35): New.
3436 * config/arm/arm.c (arm_cortex_a35_tune): New.
3437 * config/arm/arm-tables.opt: Regenerate.
3438 * config/arm/arm-tune.md: Regenerate.
3439 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3440 * config/arm/t-aprofile: Likewise.
3441 * doc/invoke.texi (-mcpu): Likewise.
3443 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3445 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3446 and qdf24xx and xgene1 to match -march=armv8-a.
3448 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3450 PR rtl-optimization/68330
3451 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3452 of LSHIFTRT by a non-zero constant integer.
3454 2015-11-16 Richard Biener <rguenther@suse.de>
3456 PR tree-optimization/68306
3457 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3458 bogus copying from verify_data_ref_alignment and use continue
3461 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3462 Kaz Kojima <kkojima@gcc.gnu.org>
3465 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3467 (*addsi3): Add another insn_and_split variant for reload.
3469 2015-11-16 Richard Biener <rguenther@suse.de>
3472 * cfgexpand.c (pass_expand::execute): Destroy the edge
3473 redirection var map before setting RTL CFG hooks.
3475 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3477 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3478 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3480 (reduc_splus_v4df): Rename to...
3481 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3483 (reduc_splus_v2df): Rename to...
3484 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3486 (reduc_splus_v16sf): Rename to...
3487 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3489 (reduc_splus_v8sf): Rename to...
3490 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3492 (reduc_splus_v4sf): Rename to...
3493 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3495 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3496 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3498 (reduc_umin_v8hf): Rename to...
3499 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3501 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3503 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3504 without additional conditions.
3505 * doc/extend.texi (@item simd): New.
3507 2015-11-16 Tom de Vries <tom@codesourcery.com>
3509 * passes.c (first_pass_instance): Remove variable.
3510 (execute_todo): Remove setting of first_pass_instance.
3511 * tree-pass.h (first_pass_instance): Remove declaration.
3513 2015-11-16 Tom de Vries <tom@codesourcery.com>
3515 * passes.def: Add arg to pass_ccp pass instantiation.
3516 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3517 instead of first_pass_instance.
3518 (do_ssa_ccp): Add and handle param nonzero_p.
3519 (pass_ccp::pass_ccp): Initialize nonzero_p.
3520 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3521 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3522 (pass_ccp::nonzero_p): New private member.
3524 2015-11-16 Tom de Vries <tom@codesourcery.com>
3526 * passes.def: Add arg to pass_object_sizes pass instantiation.
3527 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3529 (pass_object_sizes::set_pass_param): New member function. Set
3531 (pass_object_sizes::insert_min_max_p): New private member.
3532 (pass_object_sizes::execute): Use insert_min_max_p instead of
3533 first_pass_instance.
3535 2015-11-16 Tom de Vries <tom@codesourcery.com>
3537 * passes.def: Add arg to pass_dominator pass instantiation.
3538 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3540 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3541 may_peel_loop_headers_p.
3542 (pass_dominator::set_pass_param): New member function. Set
3543 may_peel_loop_headers_p.
3544 (pass_dominator::may_peel_loop_headers_p): New private member.
3545 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3546 first_pass_instance.
3548 2015-11-16 Tom de Vries <tom@codesourcery.com>
3550 * passes.def: Add arg to pass_reassoc pass instantiation.
3551 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3552 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3553 of first_pass_instance.
3554 (execute_reassoc): Add and handle insert_powi_p parameter.
3555 (pass_reassoc::insert_powi_p): New private member.
3556 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3557 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3558 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3560 2015-11-16 Tom de Vries <tom@codesourcery.com>
3562 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3563 * gen-pass-instances.awk (handle_line): Same.
3564 * pass_manager.h (class pass_manager): Define and undefine
3566 * passes.c (opt_pass::set_pass_param): New function.
3567 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3568 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3569 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3570 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3571 warn_array_bounds_p parameter.
3572 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3573 (pass_vrp::set_pass_param): New function.
3574 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3575 (pass_vrp::warn_array_bounds_p): New private member.
3577 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3579 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3580 (output_probe_stack_range): Rotate the loop and simplify.
3582 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3584 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3585 (output_probe_stack_range): Rotate the loop and simplify.
3587 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3589 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3590 an lea instruction when possible.
3591 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3592 (ix86_emit_probe_stack_range): Adjust.
3593 (output_probe_stack_range): Rotate the loop and simplify.
3595 2015-11-16 Christian Bruel <christian.bruel@st.com>
3597 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3598 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3599 with appropriate pragma GCC target.
3601 2015-11-16 Christian Bruel <christian.bruel@st.com>
3604 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3605 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3607 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3609 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3610 (cortexa57_tunings): Use it.
3612 2015-11-16 Christian Bruel <christian.bruel@st.com>
3615 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3616 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3617 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3619 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3620 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3621 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3622 * doc/extend.texi (-mfpu=): Describe attribute.
3624 2015-11-16 Christian Bruel <christian.bruel@st.com>
3627 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3628 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3629 arm_init_neon_builtins.
3630 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3631 (arm_init_neon_builtins_internal)
3632 (arm_init_crypto_builtins_internal):
3633 Test and set neon_set_p, neon_crypto_set_p.
3634 (neon_set_p, neon_crypto_set_p): New static booleans.
3636 2015-11-16 Christian Bruel <christian.bruel@st.com>
3639 * config/arm/arm.c (arm_fpu_desc): Remove.
3640 (all_fpus): Make global.
3641 (arm_option_override): Use FPU TARGET accessors.
3642 (arm_declare_function_name): Likewise.
3643 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3644 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3645 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3646 (TARGET_NEON): Likewise.
3647 (all_fpus): Declare extern.
3648 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3649 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3651 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3654 * sdbout.c: Include emit-rtl.h and function.h.
3656 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3658 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3659 Remove support for FreeBSD 5 and earlier.
3661 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3663 * configure: Regenerate.
3664 * configure.ac: Always define ENABLE_OFFLOADING.
3665 * cgraph.c (cgraph_node::create): Adjust.
3666 * gcc.c (process_command): Likewise.
3667 * omp-low.c (create_omp_child_function): Likewise.
3668 (expand_omp_target): Likewise.
3669 * varpool.c (varpool_node::get_create): Likewise.
3671 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3673 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3674 * df-scan.c (df_get_exit_block_use_set): Adjust.
3675 * except.c (expand_eh_return): Likewise.
3677 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3679 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3680 * defaults.h (TARGET_PECOFF): New default definition.
3681 * varasm.c (handle_vtv_comdat_section): Adjust.
3683 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3685 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3686 * doc/tm.texi: Regenerate.
3687 * doc/tm.texi.in: Adjust.
3688 * final.c (rest_of_clean_state): Remove check if
3689 SDB_DEBUGGING_INFO is defined.
3690 * function.c (number_blocks): Likewise.
3691 * output.h: Likewise.
3692 * sdbout.c: Likewise.
3693 * toplev.c (process_options): Likewise.
3695 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3697 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3698 (enum sdb_masks): Likewise.
3699 * sdbout.c (plain_type_1): Likewise.
3700 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3702 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3704 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3705 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3706 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3707 argument is 1, replace it with GOMP_ordered_* call instead of removing
3710 2015-11-13 Rich Felker <dalias@libc.org>
3712 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3713 address loading hack for FDPIC targets.
3715 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3716 Jeff Law <law@redhat.com>
3718 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3719 * common.opt (-fsplit-paths): New flag controlling path splitting.
3720 * doc/invoke.texi (fsplit-paths): Document.
3721 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3722 * passes.def: Add split_paths pass.
3723 * timevar.def (TV_SPLIT_PATHS): New timevar.
3724 * tracer.c: Include "tracer.h"
3725 (ignore_bb_p): No longer static.
3726 (transform_duplicate): New function, broken out of tail_duplicate.
3727 (tail_duplicate): Use transform_duplicate.
3728 * tracer.h (ignore_bb_p): Declare
3729 (transform_duplicate): Likewise.
3730 * tree-pass.h (make_pass_split_paths): Declare.
3731 * gimple-ssa-split-paths.c: New file.
3733 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3734 Marek Polacek <polacek@redhat.com>
3735 Jason Merrill <jason@redhat.com>
3737 * convert.c (maybe_fold_build1_loc): New.
3738 (maybe_fold_build2_loc): New.
3739 (convert_to_pointer_1): Split out from convert_to_pointer.
3740 (convert_to_pointer_nofold): New.
3741 (convert_to_real_1): Split out from convert_to_real.
3742 (convert_to_real_nofold): New.
3743 (convert_to_integer_1): Split out from convert_to_integer.
3744 (convert_to_integer_nofold): New.
3745 (convert_to_complex_1): Split out from convert_to_complex.
3746 (convert_to_complex_nofold): New.
3747 * convert.h: Declare new functions.
3748 * tree-complex.c (create_one_component_var): Break up line to
3749 avoid sequence point issues.
3751 2015-11-13 Jason Merrill <jason@redhat.com>
3753 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3756 * hash-map.h (hash_map::empty): New.
3758 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3760 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3761 (oacc_loop_fixed_partitions): Correct return type to bool.
3762 (oacc_loop_auto_partitions): New.
3763 (oacc_loop_partition): Take mask argument, call
3764 oacc_loop_auto_partitions.
3765 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3767 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3769 * config/rs6000/constraints.md (we constraint): New constraint for
3770 64-bit power9 vector support.
3771 (wL constraint): New constraint for the element in a vector that
3772 can be addressed by the MFVSRLD instruction.
3774 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3776 (convert_int_to_float128): Likewise.
3777 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3778 hardware support for IEEE 128-bit floating point.
3779 (rs6000_expand_float128_convert): Likewise.
3780 (convert_float128_to_int): Likewise.
3781 (convert_int_to_float128): Likewise.
3783 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3784 ISA 3.0 hardware IEEE 128-bit floating point.
3785 (UNSPEC_IEEE128_MOVE): Likewise.
3786 (UNSPEC_IEEE128_CONVERT): Likewise.
3787 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3788 (Ff): Add support for DImode.
3790 (any_fix code iterator): New and updated iterators for IEEE
3791 128-bit floating point hardware support.
3792 (any_float code iterator): Likewise.
3793 (s code attribute): Likewise.
3794 (su code attribute): Likewise.
3795 (az code attribute): Likewise.
3796 (uns code attribute): Likewise.
3797 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3798 floating point hardware support.
3799 (abs<mode>2, FLOAT128 iterator): Likewise.
3800 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3801 floating point hardware.
3802 (sub<mode>3, IEEE128 iterator): Likewise.
3803 (mul<mode>3, IEEE128 iterator): Likewise.
3804 (div<mode>3, IEEE128 iterator): Likewise.
3805 (copysign<mode>3, IEEE128 iterator): Likewise.
3806 (sqrt<mode>2, IEEE128 iterator): Likewise.
3807 (neg<mode>2, IEEE128 iterator): Likewise.
3808 (abs<mode>2, IEEE128 iterator): Likewise.
3809 (nabs<mode>2, IEEE128 iterator): Likewise.
3810 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3811 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3812 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3813 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3814 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3815 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3816 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3817 (fix_fixuns code attribute): Likewise.
3818 (float_floatuns code attribute): Likewise.
3819 (fix<uns>_<mode>si2_hw): Likewise.
3820 (fix<uns>_<mode>di2_hw): Likewise.
3821 (float<uns>_<mode>si2_hw): Likewise.
3822 (float<uns>_<mode>di2_hw): Likewise.
3823 (xscvqp<su>wz_<mode>): Likewise.
3824 (xscvqp<su>dz_<mode>): Likewise.
3825 (xscv<su>dqp_<mode): Likewise.
3826 (ieee128_mfvsrd): Likewise.
3827 (ieee128_mfvsrwz): Likewise.
3828 (ieee128_mtvsrw): Likewise.
3829 (ieee128_mtvsrd): Likewise.
3830 (trunc<mode>df2_odd): Likewise.
3831 (cmp<mode>_h): Likewise.
3832 (128-bit GPR splitters): Don't split a 128-bit move that is a
3833 direct move between GPR and vector registers using ISA 3.0 direct
3835 (maddld4): Add support for the ISA 3.0 integer multiply-add
3838 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3840 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3841 constraint. Disable the VSX<->GPR direct move helpers if we have
3842 the MFVSRLD and MTVSRDD instructions.
3843 (rs6000_secondary_reload_simple_move): Add support for doing
3844 vector direct moves directly without additional scratch registers
3845 if we have ISA 3.0 instructions.
3846 (rs6000_secondary_reload_direct_move): Update comments.
3847 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3850 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3851 direct move instructions.
3852 (vsx_movti_64bit): Likewise.
3853 (vsx_extract_<mode>): Likewise.
3855 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3856 macros for ISA 3.0 direct move instructions.
3857 (TARGET_DIRECT_MOVE_128): Likewise.
3858 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3861 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3862 constraints. Update wa documentation to say not to use %x<n> on
3863 instructions that only take Altivec registers.
3865 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3867 * Makefile.in (OBJS): Add gcc-rich-location.o.
3868 * diagnostic.c (diagnostic_append_note): Pass line_table to
3870 (emit_diagnostic): Likewise.
3872 (inform_n): Likewise.
3873 (warning): Likewise.
3874 (warning_at): Likewise.
3875 (warning_n): Likewise.
3876 (pedwarn): Likewise.
3877 (permerror): Likewise.
3879 (error_n): Likewise.
3880 (error_at): Likewise.
3882 (fatal_error): Likewise.
3883 (internal_error): Likewise.
3884 (internal_error_no_backtrace): Likewise.
3885 (source_range::debug): Likewise.
3886 * gcc-rich-location.c: New file.
3887 * gcc-rich-location.h: New file.
3888 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3889 (warning_at): Likewise.
3890 * gimple.h (gimple_set_block): Use set_block function.
3891 * input.c (dump_line_table_statistics): Dump stats on how many
3892 ranges were optimized vs how many needed ad-hoc table.
3893 (write_digit_row): Add "map" param; use its range_bits
3894 to calculate the per-character offset.
3895 (dump_location_info): Print the range and column bits for each
3896 ordinary map. Use the range bits to calculate the per-character
3897 offset. Pass the map as a new param to the various calls to
3898 write_digit_row. Eliminate uses of
3899 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3900 * print-tree.c (print_node): Print any source range information.
3901 * rtl-error.c (diagnostic_for_asm): Likewise.
3902 * toplev.c (general_init): Initialize line_table's
3904 * tree-cfg.c (move_block_to_fn): Likewise.
3905 (move_block_to_fn): Likewise.
3906 * tree-inline.c (copy_phis_for_bb): Likewise.
3907 * tree.c (tree_set_block): Likewise.
3908 (get_pure_location): New function.
3909 (set_source_range): New functions.
3910 (set_block): New function.
3911 (set_source_range): New functions.
3912 * tree.h (CAN_HAVE_RANGE_P): New.
3913 (EXPR_LOCATION_RANGE): New.
3914 (EXPR_HAS_RANGE): New.
3915 (get_expr_source_range): New inline function.
3916 (DECL_LOCATION_RANGE): New.
3917 (set_source_range): New decls.
3918 (get_decl_source_range): New inline function.
3920 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
3922 PR tree-optimization/67682
3923 * tree-vect-slp.c (vect_split_slp_store_group): New.
3924 (vect_analyze_slp_instance): During basic block SLP, recurse on
3925 subgroups if vect_build_slp_tree fails after 1st vector.
3927 2015-11-13 Christian Bruel <christian.bruel@st.com>
3930 * config/arm/arm.c (arm_option_override): Move NEON check...
3931 (arm_option_check_internal): here
3932 (arm_file_start): Move .fpu print...
3933 (arm_declare_function_name): here
3934 (arm_option_print): Dump current fpu name.
3935 * config/arm/arm.opt (arm_fpu_index): Mark Save.
3937 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
3938 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3940 * combine.c (subst): Don't substitute or simplify when
3941 handling register-wise widening multiply.
3942 (force_to_mode): Likewise.
3944 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
3946 PR tree-optimization/68264
3947 * tree-call-cdce.c (gen_one_condition): Update commentary.
3948 (gen_conditions_for_pow_int_base): Invert the sense of the tests
3949 passed to gen_one_condition.
3950 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
3951 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3952 using EDGE_FALSE_VALUE for edges to the call block and
3953 EDGE_TRUE_VALUE for the others.
3955 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3957 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3960 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3962 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3964 2015-11-13 Tom de Vries <tom@codesourcery.com>
3966 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3969 2015-11-13 Tom de Vries <tom@codesourcery.com>
3971 * gen-pass-instances.awk (handle_line): Add args_str variable.
3973 2015-11-13 Martin Liska <mliska@suse.cz>
3975 * graphite-poly.c (free_scop): Release scop->drs vector.
3976 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3978 (try_generate_gimple_bb): Use vNULL as a default initialization
3981 2015-11-13 Martin Liska <mliska@suse.cz>
3984 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3985 Replace array initialization (using a variable post-increment)
3986 that possible triggers multiple unsequenced modifications
3987 with a pair of pushes to a vector.
3989 2015-11-13 Richard Biener <rguenther@suse.de>
3991 PR tree-optimization/68306
3992 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3993 loop related checks ...
3994 (vect_verify_datarefs_alignment): ... here.
3995 (vect_slp_analyze_and_verify_node_alignment): Compute and
3996 verify alignment of the single DR that it matters.
3997 * tree-vect-stmts.c (vectorizable_store): Add an assert.
3998 (vectorizable_load): Add a comment.
3999 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4000 for determining load cost.
4002 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4004 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4005 mix of boolean and integer vectors in a single statement.
4006 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4007 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4008 determine constant type.
4009 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4010 for loop invariants.
4012 2015-11-13 Alan Hayward <alan.hayward@arm.com>
4014 PR tree-optimization/66558
4015 * tree-vect-loop.c (is_integer_induction):Add.
4016 (vectorizable_reduction): Add integer induction checks.
4018 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4020 Revert [ARM] Remove neon-testgen.ml and generated tests.
4022 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4024 [ARM] Remove neon-testgen.ml and generated tests.
4026 * config/arm/neon-testgen.ml: Remove.
4028 2015-11-13 Richard Biener <rguenther@suse.de>
4030 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4031 Signal fatal failure if early checks fail.
4032 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4033 do not bother testing further vector sizes.
4035 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
4037 * config/i386/predicates.md (misaligned_operand): Return true if
4038 operand is aligned to less than its natural alignmnet.
4040 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4042 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4043 (vec_cmpu@var{m}@var{n}): New item.
4044 (vcond@var{m}@var{n}): Specify comparison is signed.
4045 (vcondu@var{m}@var{n}): New item.
4046 (vcond_mask_@var{m}@var{n}): New item.
4047 (maskload@var{m}@var{n}): New item.
4048 (maskstore@var{m}@var{n}): New item.
4050 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4052 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4053 types of stored value and storage are compatible.
4055 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
4057 * gcc.c (POST_LINK_SPEC): Define if not already defined.
4058 (LINK_COMMAND_SPEC): Use post_link.
4059 (post_link_spec): New, initialize to POST_LINK_SPEC.
4060 (post_link): Initialize new static spec.
4061 * doc/tm.texi.in (POST_LINK_SPEC): Document.
4062 * doc/tm.texi: Regenerated.
4064 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4067 * Makefile.in (GCC_OBJS): Add spellcheck.o.
4068 (OBJS): Add spellcheck-tree.o.
4069 * gcc.c: Include "spellcheck.h".
4070 (suggest_option): New function.
4071 (driver::handle_unrecognized_options): Call suggest_option to
4072 provide a hint about misspelled options.
4073 * spellcheck.c: Update file comment.
4074 (levenshtein_distance): Convert 4-param implementation from static
4075 to extern scope. Remove note about unit tests from leading
4076 comment for const char * implementation. Move tree
4077 implementation to...
4078 * spellcheck-tree.c: New file.
4079 * spellcheck.h (levenshtein_distance): Add 4-param decl.
4081 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4083 * Makefile.in (OBJS): Add spellcheck.o.
4084 * spellcheck.c: New file.
4085 * spellcheck.h: New file.
4087 2015-11-13 James Bowman <james.bowman@ftdichip.com>
4089 * config/ft32/ft32.md (*sne): New insn pattern.
4091 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
4093 * cprop.c (is_too_expensive): Remove.
4095 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4097 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4098 * gcse.c (is_too_expensive): Rename to ...
4099 (gcse_or_cprop_is_too_expensive): ... this.
4100 Expand warning to add required size of max-gcse-memory.
4101 (one_pre_gcse_pass): Use it.
4102 (one_code_hoisting_pass): Use it.
4103 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4105 2015-11-12 James Norris <jnorris@codesourcery.com>
4106 Joseph Myers <joseph@codesourcery.com>
4108 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4109 GF_OMP_TARGET_KIND_OACC_DECLARE.
4110 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4111 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4112 * gimplify.c (oacc_declare_returns): New.
4113 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4114 (device_resident_p): New function.
4115 (oacc_default_clause): Handle device_resident clause.
4116 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4117 (gimplify_expr): Handle OACC_DECLARE.
4118 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4119 * omp-low.c (expand_omp_target): Handle
4120 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4121 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4122 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4123 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4124 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4125 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4126 GOMP_MAP_DEVICE_RESIDENT.
4128 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4130 [ARM] Remove neon-testgen.ml and generated tests.
4132 * config/arm/neon-testgen.ml: Remove.
4134 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
4136 * config/aarch64/aarch64-cores.def (qdf24xx): New.
4137 * config/aarch64/aarch64-tune.md: Regenerated.
4138 * config/arm/arm-cores.def (qdf24xx): New.
4139 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4140 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4141 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4142 (ARM Options/-mtune): Likewise.
4144 2015-11-12 Martin Liska <mliska@suse.cz>
4146 * config/i386/i386.c (ix86_valid_target_attribute_p):
4147 Finalize options at the of the function.
4148 * gcc.c (driver_get_configure_time_options): Call newly
4149 introduced init_opts_obstack.
4150 * lto-wrapper.c (main): Likewise.
4151 * opts.c (init_opts_obstack): New function.
4152 (init_options_struct): Call newly introduced init_opts_obstack.
4153 * opts.h (init_options_struct): Declare.
4155 2015-11-12 Martin Liska <mliska@suse.cz>
4158 * ipa-icf.c (void sem_item::set_hash): New function.
4159 (sem_function::get_hash): Use renamed m_hash member variable.
4160 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4161 (sem_item::update_hash_by_local_refs): Likewise.
4162 (sem_variable::get_hash): Use renamed m_hash member variable.
4163 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4164 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4165 (sem_item_optimizer::build_graph): As the hash value of an item
4166 is lazy initialized, force the calculation.
4167 * ipa-icf.h (set_hash): Declare new function and rename hash member
4170 2015-11-12 Richard Biener <rguenther@suse.de>
4172 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4173 Rename to vect_slp_analyze_instance_dependence.
4174 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4175 Remove WAR special-case.
4176 (vect_slp_analyze_node_dependences): Instead add more specific
4177 code here, not relying on other instances being vectorized.
4178 (vect_slp_analyze_instance_dependence): Adjust accordingly.
4179 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4180 vertical space in dump files.
4181 (vect_print_slp_tree): Likewise.
4182 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4183 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4184 not vectorized stmts until after dependence analysis removed
4185 instances. Merge alignment and dependence checks.
4186 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4189 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
4191 * config/aarch64/aarch64-protos.h (tune_params): Add new members
4192 "max_case_values" and "cache_line_size".
4193 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4195 (aarch64_override_options_internal): Tune heuristics based on new
4196 members in "tune_params".
4197 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4199 2015-11-12 Richard Biener <rguenther@suse.de>
4201 PR tree-optimization/68306
4202 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4203 relevant and vectorizable checks here.
4204 (vect_verify_datarefs_alignment): Add relevant check here.
4206 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4208 * gimplify.c (oacc_default_clause): New.
4209 (omp_notice_variable): Call it.
4211 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4213 PR tree-optimization/68305
4214 * tree-vect-slp.c (vect_get_constant_vectors): Support
4215 COND_EXPR with SSA_NAME as a condition.
4217 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4219 * config/visium/visium-protos.h (notice_update_cc): Delete.
4220 (print_operand): Likewise.
4221 (print_operand_address): Likewise.
4223 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4225 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4226 FUNCTION_VALUE_REGNO_P): Remove.
4227 * config/alpha/alpha-protos.h (function_value): Remove.
4228 * config/alpha/alpha.c (function_value): Rename to...
4229 (alpha_function_value_1): ... this. Make static.
4230 (alpha_function_value, alpha_libcall_value,
4231 alpha_function_value_regno_p): New functions.
4232 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4233 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4235 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4237 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4238 * config/alpha/alpha.c (alpha_memory_latency): Make static.
4239 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4240 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4242 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4245 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4246 assertion on the CFA register.
4248 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4250 * expr.c (do_store_flag): Expand vector comparison as
4251 VEC_COND_EXPR if vector comparison is not supported by target.
4253 2015-11-12 Renlin Li <renlin.li@arm.com>
4255 * config/arm/arm.md (addsi3_compare_op2): Make the order of
4256 assembly pattern consistent with constraint order.
4258 2015-11-12 Tom de Vries <tom@codesourcery.com>
4260 * gen-pass-instances.awk (handle_line): Simplify match regexp.
4262 2015-11-12 Tom de Vries <tom@codesourcery.com>
4264 * gen-pass-instances.awk (handle_line): Simplify init of
4267 2015-11-12 Tom de Vries <tom@codesourcery.com>
4269 * gen-pass-instances.awk (handle_line): Rename var where to
4272 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
4274 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4275 do not expand to rtl.
4277 2015-11-12 Richard Biener <rguenther@suse.de>
4279 PR tree-optimization/58497
4280 * tree-vect-generic.c: Include gimplify.h.
4281 (tree_vec_extract): Lookup constant/constructor DEFs.
4282 (do_cond): Unshare cond.
4284 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4286 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4287 combined insn if the alignment of vector mode memory operand
4288 is less than ssememalign.
4290 2015-11-12 Tom de Vries <tom@codesourcery.com>
4292 * gen-pass-instances.awk (handle_line): Print parentheses and
4293 pass_name explicitly.
4295 2015-11-12 Tom de Vries <tom@codesourcery.com>
4297 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4300 2015-11-12 Tom de Vries <tom@codesourcery.com>
4302 * gen-pass-instances.awk (handle_line): Add comments.
4304 2015-11-12 Tom de Vries <tom@codesourcery.com>
4306 * gen-pass-instances.awk (handle_line): Rename len_of_end to
4309 2015-11-12 Tom de Vries <tom@codesourcery.com>
4311 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4313 2015-11-12 Tom de Vries <tom@codesourcery.com>
4315 * gen-pass-instances.awk (handle_line): Restructure using early-out.
4317 2015-11-12 Tom de Vries <tom@codesourcery.com>
4319 * gen-pass-instances.awk (handle_line): Unify semicolon use.
4321 2015-11-12 Tom de Vries <tom@codesourcery.com>
4323 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4325 2015-11-12 Tom de Vries <tom@codesourcery.com>
4327 * gen-pass-instances.awk: Add emacs indent setting.
4329 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4331 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4333 Move Convert A/(B/C) to (A/B)*C to match.pd.
4334 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4335 Move Optimize (X & (-A)) / A where A is a power of 2, to
4336 X >> log2(A) to match.pd.
4338 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4339 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4340 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4342 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4344 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4346 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4348 (neon_vst2_lane<mode>): Likewise.
4349 (neon_vld3_lane<mode>): Likewise.
4350 (neon_vst3_lane<mode>): Likewise.
4351 (neon_vld4_lane<mode>): Likewise.
4352 (neon_vst4_lane<mode>): Likewise.
4354 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4355 Sebastian Pop <s.pop@samsung.com>
4357 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4358 New member codegen_error
4359 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4361 (translate_isl_ast_node_user): Early return in case of error.
4362 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4363 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4364 (add_parameters_to_ivs_params): Remove macro.
4365 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4366 * graphite-poly.c (new_poly_dr): Remove macro.
4368 (new_gimple_poly_bb): Same.
4369 (free_gimple_poly_bb): Same.
4370 (print_scop_params): Same.
4371 * graphite-poly.h (struct poly_dr): Same.
4372 (struct poly_bb): Add new_bb.
4373 (gbb_from_bb): Remove dead code.
4374 (pbb_from_bb): Same.
4375 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4376 (parameter_index_in_region): Same.
4377 (find_scop_parameters): Same.
4378 (build_cross_bb_scalars_def): New.
4379 (build_cross_bb_scalars_use): New.
4380 (graphite_find_cross_bb_scalar_vars): New
4381 (try_generate_gimple_bb): Reads and Writes.
4382 (build_alias_set): Move.
4383 (gather_bbs::before_dom_children): Gather bbs visited.
4384 (build_scops): call build_alias_set.
4385 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4386 (remove_simple_copy_phi): Delete.
4387 (remove_invariant_phi): Delete.
4388 (simple_copy_phi_p): Delete.
4389 (reduction_phi_p): Delete.
4390 (isl_id_for_dr): Remove unused param.
4391 (parameter_index_in_region_1): Remove macro usage.
4392 (set_scop_parameter_dim): Same.
4393 (add_param_constraints): Same.
4394 (add_conditions_to_constraints): Same
4395 (build_scop_iteration_domain): Same.
4396 (pdr_add_alias_set): Comment.
4397 (add_scalar_version_numbers): New.
4398 (build_poly_dr): ISL id.
4399 (build_scop_drs): Move.
4400 (build_poly_sr_1): Same.
4401 (insert_stmts): Remove.
4402 (build_poly_sr): New.
4403 (new_pbb_from_pbb): Delete.
4404 (insert_out_of_ssa_copy_on_edge): Delete.
4405 (create_zero_dim_array): Delete.
4406 (scalar_close_phi_node_p): Delete.
4407 (propagate_expr_outside_region): Delete.
4408 (rewrite_close_phi_out_of_ssa): Delete.
4409 (rewrite_phi_out_of_ssa): Delete.
4410 (rewrite_degenerate_phi): Delete.
4411 (rewrite_reductions_out_of_ssa): Delete.
4412 (rewrite_cross_bb_scalar_dependence): Delete.
4413 (handle_scalar_deps_crossing_scop_limits):
4414 (rewrite_cross_bb_scalar_deps): Delete.
4415 (build_poly_scop): Remove calls to out-of-ssa functions.
4416 * graphite.c (graphite_transform_loops): Early return in case of
4418 * sese.c (debug_rename_map_1): Delete.
4419 (debug_rename_map): Delete.
4420 (sese_record_loop): Remove macro.
4421 (build_sese_loop_nests): Same.
4422 (new_sese_info): Same.
4423 (free_sese_info): Same.
4424 (sese_insert_phis_for_liveouts):
4425 (is_loop_closed_ssa_use): New.
4426 (number_of_phi_nodes): New.
4427 (bb_contains_loop_close_phi_nodes): New.
4428 (bb_contains_loop_phi_nodes): New.
4429 (phi_uses_name): New.
4431 (get_rename): Add old_bb and loop_phi for more precise matching of
4433 (set_rename): Pass region.
4434 (later_of_the_two): New.
4435 (gsi_insert_earliest): New.
4436 (collect_all_ssa_names): New.
4437 (substitute_ssa_name): New.
4438 (rename_all_uses): New.
4439 (get_rename_from_scev): New.
4440 (rename_uses): Pass old_bb for more precise matching of exprs.
4441 (get_def_bb_for_const): New.
4442 (get_new_name): New.
4445 (copy_loop_phi_args): New.
4446 (copy_loop_phi_nodes): New.
4447 (get_loop_init_value): New.
4448 (find_init_value): New.
4449 (find_init_value_close_phi): New.
4450 (copy_loop_close_phi_args): New.
4451 (copy_loop_close_phi_nodes): New.
4452 (add_phi_arg_for_new_expr): New.
4453 (copy_cond_phi_args): New.
4454 (copy_cond_phi_nodes): New.
4455 (copy_phi_nodes): New.
4456 (should_copy_to_new_region): New.
4457 (set_rename_for_each_def): New.
4458 (graphite_copy_stmts_from_block): Early return in case of error.
4459 (copy_bb_and_scalar_dependences): Same.
4460 * sese.h (vec_find): New.
4461 (SESE_PARAMS): Delete.
4462 (SESE_LOOPS): Delete.
4463 (SESE_LOOP_NEST): Delete.
4464 (sese_contains_loop): Remove macro usage.
4465 (sese_nb_params): Same.
4466 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4468 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4470 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4471 isl_union_map_add_map on every pbb->schedule.
4473 2015-11-11 Tom de Vries <tom@codesourcery.com>
4475 * tree-parloops.c (create_parallel_loop): Return void.
4477 2015-11-11 Tom de Vries <tom@codesourcery.com>
4479 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4480 block only when needed.
4482 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4484 * config/alpha/alpha-protos.h (print_operand): Remove.
4485 (print_operand_address): Remove.
4486 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4487 (PRINT_OPERAND_ADDRESS): Remove.
4488 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4489 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4490 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4491 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4492 (print_operand_address): Rename to...
4493 (alpha_print_operand_address): ...this and make static.
4494 (print_operand): Rename to...
4495 (alpha_print_operand): ...this and make static.
4496 (alpha_print_operand_punct_valid_p): New static function.
4498 2015-11-11 Richard Biener <rguenther@suse.de>
4500 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4502 (vect_analyze_data_refs_alignment): Make loop vect specific.
4503 (vect_verify_datarefs_alignment): Likewise.
4504 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4505 Add missing continue.
4506 (vect_compute_data_ref_alignment): Export.
4507 (vect_compute_data_refs_alignment): Merge into...
4508 (vect_analyze_data_refs_alignment): ... this.
4509 (verify_data_ref_alignment): Split out from ...
4510 (vect_verify_datarefs_alignment): ... here.
4511 (vect_slp_analyze_and_verify_node_alignment): New function.
4512 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4513 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4514 misplaced checks on alignment.
4515 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4516 alignment analysis after SLP discovery and do it per instance.
4517 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4518 bother to re-try using different vector sizes.
4520 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4521 Cesar Philippidis <cesar@codesourcery.com>
4523 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4524 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4525 (gimple_add_tmp_var): Add ORT_ACC checks.
4526 (gimplify_var_or_parm_decl): Likewise.
4527 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4528 (omp_add_variable): Look in outer contexts for openacc and allow
4529 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4530 (omp_notice_variable, omp_is_private, omp_check_private): Add
4532 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4533 Permit private openacc reductions.
4534 (gimplify_oacc_cache): Specify ORT_ACC.
4535 (gimplify_omp_workshare): Adjust OpenACC region types.
4536 (gimplify_omp_target_update): Likewise.
4537 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4538 (lower-rec_input_clauses): Don't handle openacc firstprivate
4540 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4542 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4545 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4546 frame pointer for stack checking if non-call exceptions aren't used.
4547 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4549 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4551 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4554 2015-11-11 Martin Liska <mliska@suse.cz>
4555 Richard Biener <rguenther@suse.de>
4557 PR rtl-optimization/68287
4558 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4561 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4563 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4564 (mips_break_sequence): New function.
4565 (mips_reorg_process_insns): Use them. Use compact branches in selected
4568 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4570 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4572 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4573 Jim Wilson <wilson@gcc.gnu.org>
4576 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4577 be true and eliminable registers mentioned.
4579 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4581 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4583 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4584 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4585 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4586 situation, and store instructions with large offsets.
4587 (arc_secondary_reload_conv): New function.
4588 (arc_init): Add ARCv2 options.
4589 (arc_conditional_register_usage): Select the proper register usage
4590 for ARCv2 processors.
4591 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4593 (arc_compute_function_type): Likewise.
4594 (arc_print_operand): Handle new ARCv2 punctuation characters.
4595 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4596 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4598 (arc_reorg, arc_hazard): Use it.
4599 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4600 (ASM_SPEC): Add ARCv2 options.
4601 (TARGET_NORM): ARC HS has norm instructions by default.
4602 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4603 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4604 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4605 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4607 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4608 (TARGET_LP_WR_INTERLOCK): Likewise.
4610 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4611 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4612 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4613 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4615 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4616 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4617 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4618 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4619 (extzvsi): New pattern.
4620 * config/arc/arc.opt: New ARCv2 options.
4621 * config/arc/arcEM.md: New file.
4622 * config/arc/arcHS.md: Likewise.
4623 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4625 (Cm2): A signed 9-bit integer constant constraint.
4626 (C62): An unsigned 6-bit integer constant constraint.
4627 (C16): A signed 16-bit integer constant constraint.
4628 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4629 (short_const_int_operand): New predicate.
4630 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4631 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4632 -mcode-density and -mdiv-rem.
4634 2015-11-11 Julia Koval <julia.koval@intel.com>
4636 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4638 2015-11-11 Julia Koval <julia.koval@intel.com>
4640 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4642 2015-11-11 Martin Liska <mliska@suse.cz>
4644 * gimple-ssa-strength-reduction.c (create_phi_basis):
4646 * passes.c (release_dump_file_name): New function.
4647 (pass_init_dump_file): Used from this function.
4648 (pass_fini_dump_file): Likewise.
4649 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4650 * var-tracking.c (vt_initialize): Use pool_allocator.
4652 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4653 Jiong Wang <jiong.wang@arm.com>
4655 PR tree-optimization/68234
4656 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4657 node which estimiated to be VR_VARYING initially.
4659 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4661 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4662 registers when tying chains.
4663 (build_def_use): Move terminated_this_insn earlier in the function.
4665 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4667 * configure.ac: Use = with test and not ==.
4668 * configure: Regenerated.
4670 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4672 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4673 machine asserts. Update defines for 64 bit.
4675 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4678 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4680 (neon_vst1_lane<mode>): Likewise.
4681 (neon_vld2_lane<mode>): Likewise.
4682 (neon_vst2_lane<mode>): Likewise.
4683 (neon_vld3_lane<mode>): Likewise.
4684 (neon_vst3_lane<mode>): Likewise.
4685 (neon_vld4_lane<mode>): Likewise.
4686 (neon_vst4_lane<mode>): Likewise.
4688 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4691 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4692 qualifier_struct_load_store_lane_index.
4693 (arm_storestruct_lane_qualifiers) Likewise.
4694 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4696 (neon_vst1_lane<mode>) Likewise.
4697 (neon_vld2_lane<mode>) Likewise.
4698 (neon_vst2_lane<mode>) Likewise.
4699 (neon_vld3_lane<mode>) Likewise.
4700 (neon_vst3_lane<mode>) Likewise.
4701 (neon_vld4_lane<mode>) Likewise.
4702 (neon_vst4_lane<mode>) Likewise.
4704 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4707 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4708 qualifier_struct_load_store_lane_index.
4709 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4710 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4711 argument qualifiers.
4712 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4713 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4715 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4717 * config/nvptx/nvptx.opt (moptimize): New flag.
4718 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4720 (nvptx_optimize_inner): New.
4721 (nvptx_process_pars): Call it when optimizing.
4722 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4724 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4726 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4727 Remove redundant code.
4729 2015-11-10 Jeff Law <law@redhat.com>
4731 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4732 call to output_address.
4733 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4734 Add unnamed machine_mode argument.
4736 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4738 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4741 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4743 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4744 size directives for -masm=intel.
4745 (*movabs<mode>_2): Ditto.
4747 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4749 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4750 tried to avoid (%rip) for call operands.
4752 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4754 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4755 argument. Do not use RIP relative addressing when no_rip is set.
4756 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4757 (ix86_print_operand_address): Ditto.
4758 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4759 absolute movabs operand 0. Add square braces for -masm=intel.
4760 (*movabs<mode>_2): Ditto for operand 1.
4762 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4764 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4765 combine_vcvtf2i pattern.
4767 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4769 * config/arm/arm.c (neon_valid_immediate): Remove integer
4770 CONST_DOUBLE handling. It should never occur.
4772 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4774 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4775 (ATOMIC_LDOP): Likewise.
4776 (atomic_ldop): Likewise.
4777 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4778 (ATOMIC_LDOP): Likewise.
4779 (atomic_ldop): Likewise.
4781 2015-11-10 Martin Liska <mliska@suse.cz>
4783 * alloc-pool.h (allocate_raw): New function.
4784 (operator new (size_t, object_allocator<T> &a)): Use the
4785 function instead of object_allocator::allocate).
4787 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4789 * config/i386/sse.md (HALFMASKMODE): New attribute.
4790 (DOUBLEMASKMODE): New attribute.
4791 (vec_pack_trunc_qi): New.
4792 (vec_pack_trunc_<mode>): New.
4793 (vec_unpacks_lo_hi): New.
4794 (vec_unpacks_lo_si): New.
4795 (vec_unpacks_lo_di): New.
4796 (vec_unpacks_hi_hi): New.
4797 (vec_unpacks_hi_<mode>): New.
4799 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4801 * optabs.c (expand_binop_directly): Allow scalar mode for
4802 vec_pack_trunc_optab.
4803 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4804 boolean vector producers from pattern sequence when computing VF.
4805 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4806 vect_recog_mask_conversion_pattern.
4807 (search_type_for_mask): Choose the smallest
4808 type if different size types are mixed.
4809 (build_mask_conversion): New.
4810 (vect_recog_mask_conversion_pattern): New.
4811 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4812 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4814 (vectorizable_conversion): Support boolean vectors.
4815 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4816 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4818 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4820 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4821 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4822 Cast mask to FP mode if required.
4823 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4824 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4825 (vcond_mask_<mode><sseintvecmodelower>): New.
4826 (vcond_mask_<mode><sseintvecmodelower>): New.
4827 (vcond_mask_v2div2di): New.
4828 (vcond_mask_<mode><sseintvecmodelower>): New.
4829 (vcond_mask_<mode><sseintvecmodelower>): New.
4831 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4833 * optabs-query.h (get_vcond_mask_icode): New.
4834 * optabs-tree.c (expand_vec_cond_expr_p): Use
4835 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4836 * optabs.c (expand_vec_cond_mask_expr): New.
4837 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4838 * optabs.def (vcond_mask_optab): New.
4839 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4840 generate redundant comparison for COND_EXPR.
4841 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4843 (vectorizable_condition): Likewise.
4844 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4845 cond_exp with no embedded comparison.
4846 (vect_build_slp_tree_1): Likewise.
4848 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4850 * config/i386/sse.md (maskload<mode>): Rename to ...
4851 (maskload<mode><sseintvecmodelower>): ... this.
4852 (maskstore<mode>): Rename to ...
4853 (maskstore<mode><sseintvecmodelower>): ... this.
4854 (maskload<mode><avx512fmaskmodelower>): New.
4855 (maskstore<mode><avx512fmaskmodelower>): New.
4857 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4859 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4860 (expand_MASK_STORE): Adjust to maskstore optab changes.
4861 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4862 Adjust to maskload, maskstore optab changes.
4863 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4864 * optabs.def (maskload_optab): Transform into convert optab.
4865 (maskstore_optab): Likewise.
4866 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4867 can_vec_mask_load_store_p signature change.
4868 (predicate_mem_writes): Use boolean mask.
4869 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4870 can_vec_mask_load_store_p signature change. Allow invariant masks.
4871 (vectorizable_operation): Ignore type precision for boolean vectors.
4873 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4875 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4876 (const_vector_mask_from_tree): New.
4877 (const_vector_from_tree): Use const_vector_mask_from_tree
4878 for boolean vectors.
4879 * optabs-query.h (get_vec_cmp_icode): New.
4880 * optabs-tree.c (expand_vec_cmp_expr_p): New.
4881 * optabs-tree.h (expand_vec_cmp_expr_p): New.
4882 * optabs.c (vector_compare_rtx): Add OPNO arg.
4883 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4884 (expand_vec_cmp_expr): New.
4885 * optabs.def (vec_cmp_optab): New.
4886 (vec_cmpu_optab): New.
4887 * optabs.h (expand_vec_cmp_expr): New.
4888 * tree-vect-generic.c (expand_vector_comparison): Add vector
4889 comparison optabs check.
4890 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
4891 operations for VF. Add mask type computation.
4892 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4893 (vectorizable_comparison): New.
4894 (vect_analyze_stmt): Add vectorizable_comparison.
4895 (vect_transform_stmt): Likewise.
4896 (vect_init_vector): Support boolean vector invariants.
4897 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4898 (vectorizable_condition): Directly provide vectype for invariants
4900 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4901 (enum vect_var_kind): Add vect_mask_var.
4902 (enum stmt_vec_info_type): Add comparison_vec_info_type.
4903 (vectorizable_comparison): New.
4904 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4905 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4906 (vect_create_destination_var): Likewise.
4907 * tree-vect-patterns.c (check_bool_pattern): Check fails
4908 if we can vectorize comparison directly.
4909 (search_type_for_mask): New.
4910 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4911 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4912 comparison statements.
4913 (vect_get_constant_vectors): Support boolean vector constants.
4914 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4915 (ix86_expand_int_vec_cmp): New.
4916 (ix86_expand_fp_vec_cmp): New.
4917 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4918 op_true and op_false.
4919 (ix86_int_cmp_code_to_pcmp_immediate): New.
4920 (ix86_fp_cmp_code_to_pcmp_immediate): New.
4921 (ix86_cmp_code_to_pcmp_immediate): New.
4922 (ix86_expand_mask_vec_cmp): New.
4923 (ix86_expand_fp_vec_cmp): New.
4924 (ix86_expand_int_sse_cmp): New.
4925 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4926 (ix86_expand_int_vec_cmp): New.
4927 (ix86_get_mask_mode): New.
4928 (TARGET_VECTORIZE_GET_MASK_MODE): New.
4929 * config/i386/sse.md (avx512fmaskmodelower): New.
4930 (vec_cmp<mode><avx512fmaskmodelower>): New.
4931 (vec_cmp<mode><sseintvecmodelower>): New.
4932 (vec_cmpv2div2di): New.
4933 (vec_cmpu<mode><avx512fmaskmodelower>): New.
4934 (vec_cmpu<mode><sseintvecmodelower>): New.
4935 (vec_cmpuv2div2di): New.
4937 2015-11-10 Richard Biener <rguenther@suse.de>
4939 PR tree-optimization/68240
4940 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4942 (visit_phi): For PHIs with just a single executable edge
4943 take its value directly.
4944 (expressions_equal_p): Handle VN_TOP properly.
4946 2015-11-10 Richard Biener <rguenther@suse.de>
4948 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4949 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4952 2015-11-10 Richard Biener <rguenther@suse.de>
4954 PR tree-optimization/56118
4955 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4956 cost favor vectorized version.
4958 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4960 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4961 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4962 (neg_not_op): New code attribute.
4964 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4966 * ifcvt.c (noce_try_inverse_constants): New function.
4967 (noce_process_if_block): Call it.
4968 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4969 * optabs.def (negcc_optab, notcc_optab): Declare.
4970 * optabs.c (emit_conditional_neg_or_complement): New function.
4971 * doc/tm.texi (Standard Names): Document negcc, notcc names.
4973 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4975 PR rtl-optimization/68236
4976 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4977 if insn_queue doesn't exist.
4978 (haifa_sched_finish): Reset insn_queue to NULL.
4980 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
4982 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4983 (build_def_use): Initialize terminated_this_insn.
4984 (find_best_rename_reg): Pick and check register from the tied chain.
4985 (regrename_do_replace): Mark head as renamed.
4986 (struct du_head *terminated_this_insn). New static variable.
4987 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
4988 * regrename.h (struct du_head): Add tied_chain, renamed members.
4990 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4993 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4996 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4999 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5000 not promote the mode for aggregate types.
5002 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5004 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5005 * omp-low.c (build_oacc_routine_dims): New.
5007 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5009 * config/rs6000/constraints.md (wF constraint): New constraints
5010 for power9/toc fusion.
5011 (wG constraint): Likewise.
5013 * config/rs6000/predicates.md (u6bit_cint_operand): New
5014 predicate, recognize 0..63.
5015 (upper16_cint_operand): New predicate for power9 and toc fusion.
5016 (fpr_reg_operand): Likewise.
5017 (toc_fusion_or_p9_reg_operand): Likewise.
5018 (toc_fusion_mem_raw): Likewise.
5019 (toc_fusion_mem_wrapped): Likewise.
5020 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5022 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5024 (fusion_addis_mem_combo_load): Add support for power9 fusion of
5025 floating point loads, floating point stores, and gpr stores.
5026 (fusion_addis_mem_combo_store): Likewise.
5027 (fusion_offsettable_mem_operand): Likewise.
5029 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5030 (emit_fusion_load_store): Likewise.
5031 (fusion_p9_p): Likewise.
5032 (expand_fusion_p9_load): Likewise.
5033 (expand_fusion_p9_store): Likewise.
5034 (emit_fusion_p9_load): Likewise.
5035 (emit_fusion_p9_store): Likewise.
5036 (fusion_wrap_memory_address): Likewise.
5038 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5039 elements for power9 fusion.
5040 (rs6000_debug_print_mode): Rework debug information to print more
5041 information about fusion.
5042 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5043 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5044 offsettable memory address.
5045 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5046 (emit_fusion_gpr_load): Move most of the code from
5047 emit_fusion_gpr_load into emit_fusion-addis that handles both
5048 power8 and power9 fusion.
5049 (emit_fusion_addis): Likewise.
5050 (emit_fusion_load_store): Likewise.
5051 (fusion_wrap_memory_address): Add support for TOC fusion.
5052 (fusion_split_address): Likewise.
5053 (fusion_p9_p): Add support for power9 fusion.
5054 (expand_fusion_p9_load): Likewise.
5055 (expand_fusion_p9_store): Likewise.
5056 (emit_fusion_p9_load): Likewise.
5057 (emit_fusion_p9_store): Likewise.
5059 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5060 new instructions in ISA 3.0.
5061 (TARGET_CTZ): Likewise.
5062 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5063 (TARGET_TOC_FUSION_FP): Likewise.
5065 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5067 (UNSPEC_FUSION_ADDIS): Likewise.
5068 (QHSI mode iterator): New iterator for power9 fusion.
5069 (GPR_FUSION): Likewise.
5070 (FPR_FUSION): Likewise.
5071 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5072 (umod<mode>3): Likewise.
5073 (divmod peephole): Likewise.
5074 (udivmod peephole): Likewise.
5075 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5077 (ctz<mode>2_h): Likewise.
5078 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5079 (ashdi3_extswsli_dot): Likewise.
5080 (ashdi3_extswsli_dot2): Likewise.
5081 (power9 fusion splitter): New power9/toc fusion support.
5082 (toc_fusionload_<mode>): Likewise.
5083 (toc_fusionload_di): Likewise.
5084 (fusion_gpr_load_<mode>): Update predicate function.
5085 (power9 fusion peephole2s): New power9/toc fusion support.
5086 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5087 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5088 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5089 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5090 (fusion_p9_<mode>_constant): Likewise.
5092 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
5094 * optabs.c (prepare_libcall_arg): New function.
5095 (expand_fixed_convert): Add call to prepare_libcall_arg.
5097 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
5099 * sched-int.h (dump_rgn_dependencies_dot): Declare
5100 * sched-rgn.c (dump_rgn_dependencies_dot): New function
5101 * print-rtl.h (print_insn): Add prototype
5103 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5104 * common.opt (-fsched-verbose): Set default value to 1.
5105 * invoke.texi (-fsched-verbose): Update the option's description.
5107 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5109 * config/visium/visium.h (PRINT_OPERAND): Delete.
5110 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5111 (PRINT_OPERAND_ADDRESS): Likewise.
5112 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5114 (visium_print_operand_punct_valid_p): ...this. New function.
5115 (TARGET_PRINT_OPERAND): Define to...
5116 (print_operand): Rename to...
5117 (visium_print_operand): ...this.
5118 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5119 (visium_output_address): Rename to...
5120 (visium_print_operand_address): ...this.
5121 (print_operand_address): Delete.
5123 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5126 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5127 Check that the type of the first operand is an aggregate type.
5129 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5131 * omp-low.c: Fix some OpenACC comment typos.
5132 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5133 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5134 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5136 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
5138 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5140 2015-11-09 Jeff Law <law@redhat.com>
5142 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5143 being in gimple/ssa form. Remove redundant check for SSA_NAME.
5146 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5147 Peter Bergner <bergner@vnet.ibm.com>
5149 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5151 (-mpower9-vector): Likewise.
5152 (-mpower9-dform): Likewise.
5153 (-mpower9-minmax): Likewise.
5154 (-mtoc-fusion): Likewise.
5155 (-mmodulo): Likewise.
5156 (-mfloat128-hardware): Likewise.
5158 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5159 mask for ISA 3.0 (power9).
5160 (POWERPC_MASKS): Add new ISA 3.0 switches.
5161 (power9 cpu): Add power9 cpu.
5163 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5164 (ASM_CPU_SPEC): Likewise.
5165 (EXTRA_SPECS): Likewise.
5167 * config/rs6000/rs6000-opts.h (enum processor_type): Add
5170 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5171 (rs6000_debug_reg_global): Add support for power9 fusion.
5172 (rs6000_setup_reg_addr_masks): Cache mode size.
5173 (rs6000_option_override_internal): Until real power9 tuning is
5174 added, use -mtune=power8 for -mcpu=power9.
5175 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5176 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5177 of Altivec registers.
5178 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5179 (rs6000_loop_align): Add support for power9 cpu.
5180 (rs6000_file_start): Likewise.
5181 (rs6000_adjust_cost): Likewise.
5182 (rs6000_issue_rate): Likewise.
5183 (insn_must_be_first_in_group): Likewise.
5184 (insn_must_be_last_in_group): Likewise.
5185 (force_new_group): Likewise.
5186 (rs6000_register_move_cost): Likewise.
5187 (rs6000_opt_masks): Likewise.
5189 * config/rs6000/rs6000.md (cpu attribute): Add power9.
5190 * config/rs6000/rs6000-tables.opt: Regenerate.
5192 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5193 _ARCH_PWR9 if power9 support is available.
5195 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5196 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5198 * configure.ac: Determine if the assembler supports the ISA 3.0
5200 * config.in (HAVE_AS_POWER9): Likewise.
5201 * configure: Regenerate.
5203 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5206 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5208 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5209 Remove integer CONST_DOUBLE handling. It should never occur.
5211 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5214 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5215 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5216 Delete VOIDmode case. Assert that mode is not VOIDmode.
5217 * config/aarch64/predicates.md (const0_operand): Remove const_double
5220 2015-11-09 Martin Liska <mliska@suse.cz>
5222 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5223 body_info release function.
5224 * ipa-prop.c (ipa_release_body_info): New function.
5225 (ipa_analyze_node): Call the function.
5226 (ipa_node_params::~ipa_node_params): Release known_csts.
5227 * ipa-prop.h (ipa_release_body_info): Declare.
5229 2015-11-09 Martin Liska <mliska@suse.cz>
5231 * gcc.c (record_temp_file): Release name string.
5232 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5233 * lra-lives.c (free_live_range_list): Utilize
5234 lra_live_range_pool for allocation and deallocation.
5235 (create_live_range): Likewise.
5236 (copy_live_range): Likewise.
5237 (lra_merge_live_ranges): Likewise.
5238 (remove_some_program_points_and_update_live_ranges): Likewise.
5239 (lra_create_live_ranges_1): Release point_freq_vec that can
5240 be not freed from previous iteration of the function.
5241 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5242 * tree-sra.c (sra_deinitialize): Release all vectors in
5244 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5245 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5246 Release edge_info for a removed edge.
5247 (thread_through_all_blocks): Free region vector.
5248 * tree-ssa.h (free_dom_edge_info): Declare function extern.
5250 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
5252 * optabs.c (expand_vec_cond_expr): Always get sign from type.
5253 * tree.c (wide_int_to_tree): Support negative values for boolean.
5254 (build_nonstandard_boolean_type): Use signed type for booleans.
5256 2015-11-09 Richard Biener <rguenther@suse.de>
5258 PR tree-optimization/68248
5259 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5261 2015-11-09 Richard Biener <rguenther@suse.de>
5263 PR tree-optimization/56118
5264 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5265 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5266 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5268 (vect_slp_analyze_data_ref_dependences): Instead of computing
5269 all dependences of the region DRs just analyze the code motions
5270 SLP vectorization will perform. Remove SLP instances that
5271 cannot have their store/load motions applied.
5272 (vect_analyze_data_refs): Allow DRs without a vectype
5273 in BB vectorization.
5275 2015-11-09 Julian Brown <julian@codesourcery.com>
5277 * final.c (output_asm_insn): Pass VOIDmode to output_address.
5278 (output_address): Add MODE argument. Pass to print_operand_address
5280 * targhooks.c (default_print_operand_address): Add MODE argument.
5281 * targhooks.h (default_print_operand_address): Update prototype.
5282 * output.h (output_address): Update prototype.
5283 * target.def (print_operand_address): Add MODE argument.
5284 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5286 (print_operand): Pass access mode to output_address.
5287 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5289 (mcore_print_operand): Update calls to mcore_print_operand_address.
5290 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5292 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5294 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5296 (tilegx_print_operand): Don't set above global. Update calls to
5298 (tilegx_print_operand_address): Add MODE argument. Use instead of
5299 output_memory_reference_mode global.
5300 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5301 (frv_print_operand): Pass mode to frv_print_operand_address calls.
5302 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5304 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5305 (cris_print_operand): Pass mode to output_address calls.
5306 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5307 * config/aarch64/aarch64.h (aarch64_print_operand)
5308 (aarch64_print_operand_address): Remove prototypes.
5309 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5311 (aarch64_print_operand): Make static. Update calls to output_address.
5312 (aarch64_print_operand_address): Add MODE argument. Use instead of
5313 aarch64_memory_reference_mode global.
5314 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5316 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5317 Delete macro definitions.
5318 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5319 * config/xtensa/xtensa.c (print_operand): Pass mode in
5320 output_address calls.
5321 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5323 (h83000_print_operand): Update calls to h8300_print_operand_address
5325 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5326 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5328 (tilepro_print_operand): Pass mode to output_address.
5329 (tilepro_print_operand_address): Add MODE argument. Use instead of
5330 output_memory_reference_mode.
5331 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5332 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5333 to output_address calls.
5334 (nvptx_print_operand_address): Add MODE argument.
5335 * config/alpha/alpha.c (print_operand): Pass mode argument in
5336 output_address calls.
5337 * config/m68k/m68k.c (print_operand): Pass mode argument in
5338 output_address call.
5339 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5340 (avr_print_operand): Update calls to avr_print_operand_address.
5341 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5342 argument. Update calls to output_address.
5343 (sparc_print_operand): Pass mode to output_address.
5344 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5346 (iq2000_print_operand): Pass mode in output_address calls.
5347 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5349 (xstormy16_print_operand): Pass mode to
5350 xstormy16_print_operand_address calls.
5351 * config/mips/mips.c (mips_print_operand): Update calls to
5353 (mips_print_operand_address): Add MODE argument.
5354 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5356 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5357 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5359 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5360 (rx_print_operand): Update calls to output_address,
5361 rx_print_operand_address.
5362 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5364 (nds32_print_operand_address): Add MODE argument.
5365 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5366 output_address calls.
5367 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5368 output_address call.
5369 (c6x_print_address_operand): Update calls to output_address.
5370 (c6x_print_operand_address): Pass mode to above.
5371 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5372 (v850_print_operand): Pass mode to v850_print_operand_address,
5374 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5375 (mmix_print_operand): Pass mode in output_address calls.
5376 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5377 (sh_print_operand): Pass mem mode to output_address,
5378 sh_print_operand_address.
5379 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5380 (cr16_print_operand): Pass mode to output_address,
5381 cr16_print_operand_address.
5382 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5384 * config/microblaze/microblaze.c (print_operand): Pass mode to
5386 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5388 (nios2_print_operand_address): Add MODE argument. Update call to
5389 nios2_print_operand_address.
5390 * config/s390/s390.c (print_operand): Pass mode to output_address.
5391 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5392 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5394 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5395 Use instead of output_memory_reference_mode.
5396 (output_memory_reference_mode): Delete global.
5397 (arm_print_operand): Pass mem mode to output_address.
5398 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5399 (m32r_print_operand): Pass mode to output_address.
5400 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5402 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5403 * config/i386/i386.c (ix86_print_operand): Pass mode to
5404 output_address calls.
5405 (ix86_print_operand_address): Add MODE argument.
5407 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5410 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5411 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5412 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5413 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5415 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5417 PR rtl-optimization/67749
5418 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5419 case before emitting the two blocks. Instead modify the register
5420 in the corresponding final insn of the basic block.
5422 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5424 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5427 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5429 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5430 HAVE_INITFINI_ARRAY_SUPPORT.
5431 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5433 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5434 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5435 Don't check HAVE_AS_SPARC_NOBITS.
5436 Heed SECTION_NOTYPE.
5438 * configure: Regenerate.
5439 * config.in: Regenerate.
5441 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5444 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5446 2015-11-09 Richard Henderson <rth@redhat.com>
5448 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5449 __SEG_GS, __SEG_TLS.
5450 (ix86_register_pragmas): Register address spaces __seg_fs,
5451 __seg_gs, __seg_tls.
5452 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5453 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5454 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5455 * config/i386/i386.c (ix86_decompose_address): Likewise.
5456 (ix86_legitimate_address_p): Likewise.
5457 (memory_address_length): Likewise. Check mem address space too.
5458 (ix86_print_operand): Use ix86_print_operand_address_as.
5459 (ix86_print_operand_address_as): Rename from
5460 ix86_print_operand_address, add new addr_space_t parameter.
5461 Validate that either the parameter or the ix86_address segment
5462 is default address space. Handle ADDR_SPACE_SEG_TLS.
5463 (ix86_print_operand_address): New.
5464 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5465 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5466 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5467 (ix86_addr_space_zero_address_valid): New.
5468 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5469 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5470 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5471 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5472 (vsib_address_operand): Likewise.
5473 (address_mpx_no_base_operand): Likewise.
5474 (address_mpx_no_index_operand): Likewise.
5475 * doc/extend.texi (x86 Named Address Spaces): New section.
5477 * config/i386/i386.c (ix86_check_no_addr_space): New.
5478 (decide_alg): Add have_as parameter.
5479 (alg_usable_p): Likewise; disable rep algorithms if set.
5480 (ix86_expand_set_or_movmem): Notice if either MEM has a
5481 non-default address space.
5482 (ix86_expand_strlen): Likewise.
5483 * config/i386/i386.md (strmov, strset): Likewise.
5484 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5485 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5486 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5487 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5488 *cmpstrnqi_1, *strlenqi_1): Likewise.
5490 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5491 (*movabs<mode>_2): Likewise.
5493 * dwarf2out.c (modified_type_die): Pass the address space number
5494 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5495 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5496 * targhooks.c (default_addr_space_debug): New.
5497 * targhooks.h (default_addr_space_debug): Declare.
5498 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5499 * doc/tm.texi: Rebuild.
5501 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5502 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5503 null when 0 is valid in the source address space.
5504 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5505 * targhooks.c (default_addr_space_zero_address_valid): New.
5506 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5507 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5508 * doc/tm.texi: Rebuild.
5510 * cselib.c (add_mem_for_addr): Compare address spaces when
5512 (cselib_lookup_mem): Likewise.
5513 * fold-const.c (operand_equal_p): Check address spaces of
5514 pointer types before checking integer constants.
5517 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5518 the correct type for the base.
5520 2015-11-09 Jeff Law <law@redhat.com>
5522 * tree-into-ssa.c (names_to_release): No longer static.
5523 * tree-into-ssa.h (names_to_release): Declare.
5524 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5525 (release_free_names_and_compact_live_names): New function extracted
5526 from pass_release_ssa_names::execute.
5527 (pass_release_ssa_names::execute): Use it.
5529 2015-11-09 Alan Modra <amodra@gmail.com>
5531 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5532 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5533 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5536 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5538 PR rtl-optimization/68182
5539 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5540 branch with only one successor just like unconditional branches.
5542 2015-11-08 Jeff Law <law@redhat.com>
5544 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5545 non-FSM path has no edges marked with EDGE_DFS_BACK.
5546 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5547 (thread_single_edge, def_split_header_continue_p): Remove.
5548 (bb_ends_with_multiway_branch): Likewise.
5549 (thread_through_loop_header): Remove cases of threading from
5550 latch through the header. Simplify knowing we won't thread
5552 (thread_through_all_blocks): Simplify knowing that only the FSM
5553 threader needs to handle backedges.
5555 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5557 * doc/extend.texi (type attributes): Document scalar_storage_order.
5558 (Structure-Packing Pragmas): Rename into...
5559 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5560 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5561 (Warnings): Document -Wno-scalar-storage-order.
5562 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5563 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5564 extract_bit_field and store_bit_field.
5565 (initialize_argument_information): Adjust call to store_expr.
5566 (load_register_parameters): Adjust call to extract_bit_field.
5567 * expmed.c (check_reverse_storage_order_support): New function.
5568 (check_reverse_float_storage_order_support): Likewise.
5569 (flip_storage_order): Likewise.
5570 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5571 of the value if it is true. Pass REVERSE to recursive call after
5572 adjusting the target offset.
5573 Do not use extraction or movstrict instruction if REVERSE is true.
5574 Pass REVERSE to store_fixed_bit_field.
5575 (store_bit_field): Add REVERSE parameter and pass to it to above.
5576 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5577 store_split_bit_field and store_fixed_bit_field_1.
5578 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5579 order of the value if it is true and adjust the target offset.
5580 (store_split_bit_field): Add REVERSE parameter and pass it to
5581 store_fixed_bit_field. Adjust the target offset if it is true.
5582 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5583 of the value if it is true. Pass REVERSE to recursive call after
5584 adjusting the target offset.
5585 Do not use extraction or subreg instruction if REVERSE is true.
5586 Pass REVERSE to extract_fixed_bit_field.
5587 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5588 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5589 extract_split_bit_field and extract_fixed_bit_field_1.
5590 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5591 order of the value if it is true and adjust the target offset.
5592 (extract_split_bit_field): Add REVERSE parameter and pass it to
5593 extract_fixed_bit_field. Adjust the target offset if it is true.
5594 * expmed.h (flip_storage_order): Declare.
5595 (store_bit_field): Adjust prototype.
5596 (extract_bit_field): Likewise.
5597 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5598 (emit_group_store): Adjust call to store_bit_field.
5599 (copy_blkmode_from_reg): Likewise.
5600 (copy_blkmode_to_reg): Likewise.
5601 (write_complex_part): Likewise.
5602 (read_complex_part): Likewise.
5603 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5604 that it isn't true if the target is a register.
5605 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5606 and flip the storage order of the value.
5607 <BIT_IOR_EXPR>: Flip the storage order of the value.
5608 (get_bit_range): Adjust call to get_inner_reference.
5609 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5610 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5611 with reverse storage order.
5612 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5613 recursive calls and call to store_bit_field. Force the value into a
5614 register if it is true and then flip the storage order of the value.
5615 (store_expr): Add REVERSE parameter and pass it to above.
5616 (categorize_ctor_elements_1): Adjust call to
5617 initializer_constant_valid_p.
5618 (store_constructor_field): Add REVERSE parameter and pass it to
5619 recursive calls and call to store_field.
5620 (store_constructor): Add REVERSE parameter and pass it to calls to
5621 store_constructor_field and store_expr. Set it to true for an
5622 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5623 (store_field): Add REVERSE parameter and pass it to recursive calls
5624 and calls to store_expr and store_bit_field. Temporarily flip the
5625 storage order of the value with record type and integral mode and
5626 adjust the shift if it is true.
5627 (get_inner_reference): Add PREVERSEP parameter and set it to true
5628 upon encoutering a reference with reverse storage order.
5629 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5630 (expand_constructor): Adjust call to store_constructor.
5631 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5632 of the union type to store_expr in the MEM case and assert that it
5633 isn't set in the REG case. Adjust call to store_field.
5634 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5635 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5636 get_inner_reference and extract_bit_field. Temporarily flip the
5637 storage order of the value with record type and integral mode and
5638 adjust the shift if it is true. Flip the storage order of the value
5639 at the end if it is true.
5640 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5641 get_inner_reference. Do not fetch an inner reference if it is true.
5642 * expr.h (store_expr_with_bounds): Ajust prototype.
5643 (store_expr): Likewise.
5644 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5645 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5646 (optimize_bit_field_compare): Deal with reverse storage order.
5647 Adjust calls to get_inner_reference and make_bit_field_ref.
5648 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5649 get_inner_reference.
5650 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5651 to decode_field_reference and make_bit_field_ref.
5652 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5653 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5654 (fold_comparison): Adjust call to get_inner_reference.
5655 (split_address_to_core_and_offset): Adjust call to
5656 get_inner_reference.
5657 * gimple-expr.c (useless_type_conversion_p): Return false for array
5658 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5659 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5660 REF_REVERSE_STORAGE_ORDER flag.
5661 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5662 * output.h (assemble_real): Adjust prototype.
5663 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5664 * stor-layout.c (finish_record_layout): Propagate the
5665 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5666 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5667 (TYPE_SATURATING): Adjust.
5668 (REF_REVERSE_STORAGE_ORDER): Document.
5669 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5670 set it to true upon encoutering a reference with reverse storage order.
5671 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5672 * tree-inline.c (remap_gimple_op_r): Propagate the
5673 REF_REVERSE_STORAGE_ORDER flag.
5674 (copy_tree_body_r): Likewise.
5675 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5677 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5678 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5679 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5680 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5681 REF_REVERSE_STORAGE_ORDER flag.
5682 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5683 (gimple_canonical_types_compatible_p): Likewise.
5684 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5685 (TYPE_SATURATING): Adjust.
5686 (REF_REVERSE_STORAGE_ORDER): New flag.
5687 (reverse_storage_order_for_component_p): New inline predicate.
5688 (storage_order_barrier_p): Likewise.
5689 (get_inner_reference): Adjust prototype.
5690 * varasm.c: Include expmed.h.
5691 (assemble_variable_contents): Adjust call to output_constant.
5692 (assemble_real): Add REVERSE parameter. Flip the storage
5693 order of the value if REVERSE is true.
5694 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5695 (assemble_constant_contents): Adjust call to output_constant.
5696 (output_constant_pool_2): Adjust call to assemble_real.
5697 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5698 TYPE_REVERSE_STORAGE_ORDER.
5699 (initializer_constant_valid_p): Add REVERSE parameter.
5700 (output_constant): Add REVERSE parameter.
5701 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5702 <REAL_TYPE>: Adjust call to assemble_real.
5703 <COMPLEX_TYPE>: Pass it to recursive calls.
5704 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5705 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5706 (struct oc_local_state): Add REVERSE field.
5707 (output_constructor_array_range): Adjust calls to output_constant.
5708 (output_constructor_regular_field): Likewise.
5709 (output_constructor_bitfield): Adjust call to output_constructor.
5710 Flip the storage order of the value if REVERSE is true.
5711 (output_constructor): Add REVERSE parameter. Set it to true for an
5712 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5713 output_constructor_bitfield.
5714 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5715 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5716 * builtins.c (get_object_alignment_2): Likewise.
5717 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5718 and get_ref_base_and_extent.
5719 * dbxout.c (dbxout_expand_expr): Likewise.
5720 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5721 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5722 (loc_list_from_tree): Likewise.
5723 (fortran_common): Likewise.
5724 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5725 get_ref_base_and_extent.
5726 (get_base_constructor): Likewise.
5727 (fold_const_aggregate_ref_1): Likewise.
5728 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5729 get_inner_reference.
5730 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5731 get_inner_reference and bail out on reverse storage order.
5732 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5733 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5734 build_ref_for_offset.
5735 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5736 get_ref_base_and_extent.
5737 (ipa_polymorphic_call_context): Likewise.
5738 (extr_type_from_vtbl_ptr_store): Likewise.
5739 (check_stmt_for_type_change): Likewise.
5740 (get_dynamic_type): Likewise.
5741 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5742 get_ref_base_and_extent.
5743 (compute_complex_assign_jump_func): Likewise.
5744 (get_ancestor_addr_info): Likewise.
5745 (compute_known_type_jump_func): Likewise.
5746 (determine_known_aggregate_parts): Likewise.
5747 (ipa_get_adjustment_candidate): Likewise.
5748 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5749 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5750 (build_ref_for_offset): Adjust prototype.
5751 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5752 get_inner_reference.
5753 * tree-affine.c (tree_to_aff_combination): Adjust call to
5754 get_inner_reference.
5755 (get_inner_reference_aff): Likewise.
5756 * tree-data-ref.c (split_constant_offset_1): Likewise.
5757 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5758 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5759 get_inner_reference.
5760 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5761 (dump_access): Print new fields.
5762 (create_access): Adjust call to get_ref_base_and_extent and set the
5763 REVERSE flag according to the result.
5764 (completely_scalarize_record): Set the REVERSE flag.
5765 (scalarize_elem): Add REVERSE parameter.
5766 (build_access_from_expr_1): Preserve storage order barriers.
5767 (build_accesses_from_assign): Likewise.
5768 (build_ref_for_offset): Add REVERSE parameter and set the
5769 REF_REVERSE_STORAGE_ORDER flag accordingly.
5770 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5771 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5772 (analyze_access_subtree): Likewise.
5773 (create_artificial_child_access): Set the REVERSE flag.
5774 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5775 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5776 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5777 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5778 get_ref_base_and_extent.
5779 (aliasing_component_refs_p): Likewise.
5780 (stmt_kills_ref_p_1): Likewise.
5781 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5782 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5783 Return true if reverse storage order.
5784 <BIT_FIELD_REF>: Likewise.
5785 <COMPONENT_REF>: Likewise.
5786 <ARRAY_REF>: Likewise.
5787 <ARRAY_RANGE_REF>: Likewise.
5788 (split_address_cost): Likewise. Bail out if reverse storage order.
5789 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5790 get_inner_reference. Bail out if reverse storage order.
5791 (bswap_replace): Adjust call to get_inner_reference.
5792 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5793 the REF_REVERSE_STORAGE_ORDER flag.
5794 <BIT_FIELD_REF>: Likewise.
5795 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5797 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5798 to the REF_REVERSE_STORAGE_ORDER flag.
5799 <BIT_FIELD_REF>: Likewise.
5800 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5801 (contains_storage_order_barrier_p): New predicate.
5802 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5803 Punt on storage order barriers if necessary.
5804 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5805 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5806 call to get_ref_base_and_extent.
5807 (do_structure_copy): Likewise.
5808 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5809 get_inner_reference.
5810 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5811 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5812 * ubsan.c (instrument_bool_enum_load): Likewise.
5813 (instrument_object_size): Likewise.
5814 * var-tracking.c (track_expr_p): Adjust call to
5815 get_ref_base_and_extent.
5816 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5817 get_inner_reference.
5818 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5820 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5822 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5824 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5826 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5828 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5830 PR rtl-optimization/67864
5831 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5832 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5835 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5837 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5840 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5842 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5843 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5845 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5847 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5848 * internal-fn.c: Don't undef it here.
5849 * tree-core.h: Likewise.
5851 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5853 * builtins.c (fold_builtin_nan): Delete.
5854 (fold_builtin_memcmp): Remove case where both arguments are constant.
5855 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5856 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5857 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5858 * fold-const-call.c: Include fold-const.h.
5859 (host_size_t_cst_p): New function.
5860 (build_cmp_result, fold_const_builtin_nan): Likewise.
5861 (fold_const_call_1): New function, split out from...
5862 (fold_const_call): ...here (for all three interfaces). Handle
5863 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5865 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5867 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5868 (fold_builtin_1): Don't call them.
5869 * fold-const-call.c: Include tm.h.
5870 (fold_const_call_ss): New variant for integer-to-integer folds.
5871 (fold_const_call): Call it.
5873 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5875 * builtins.c (fold_builtin_classify): Move constant cases to...
5876 * fold-const-call.c (fold_const_call_ss): ...here.
5878 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5880 * builtins.h (c_getstr): Move to...
5881 * fold-const.h (c_getstr): ...here.
5882 * builtins.c (c_getstr): Move to...
5883 * fold-const.c (c_getstr): ...here.
5885 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5887 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5888 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5890 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5892 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5893 the dominance info; free it if we can't.
5894 (pass_call_cdce::execute): Don't free the dominance info here.
5896 2015-11-06 Jeff Law <law@redhat.com>
5898 * tree-ssa-threadedge.c (dummy_simplify): Remove.
5899 (thread_around_empty_blocks): Remove backedge_seen_p argument.
5900 If we thread to a backedge, then return false. Update recursive
5901 call to eliminate backedge_seen_p argument.
5902 (thread_through_normal_block): Remove backedge_seen_p argument.
5903 Remove backedge_seen_p argument from calls to
5904 thread_around_empty_blocks. Remove checks on backedge_seen_p.
5905 If we thread to a backedge, then return 0.
5906 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
5907 pass it to thread_through_normal_block or thread_through_empty_blocks.
5908 For joiner handling, if we see a backedge, do not try normal
5911 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5913 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5914 * graphite-poly.c (new_scop): Initialize original_schedule.
5915 (free_scop): Free original_schedule.
5916 * graphite-poly.h (struct scop): Add field original_schedule.
5917 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5918 (build_poly_scop): Call build_scop_original_schedule.
5920 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5922 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5923 (build_pbb_minimal_scattering_polyhedrons): New.
5924 (build_scop_scattering): Remove.
5925 (build_scop_minimal_scattering): New.
5926 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5927 (build_poly_scop): Call build_scop_minimal_scattering.
5929 2015-11-06 Jeff Law <law@redhat.com>
5931 * cfg-flags.def (IGNORE): New edge flag.
5932 * tree-vrp.c (identify_jump_threads): Mark and clear edges
5933 scheduled for removal with EDGE_IGNORE around call into
5934 jump threader. Do no thread across edges with EDGE_IGNORE,
5935 but do allow threading across those with EDGE_DFS_BACK.
5937 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
5939 * doc/md.texi (multi-alternative constraints): Don't document
5940 alternatives inherently tied to reload for the user documentation.
5942 2015-11-06 Michael Collison <michael.collison@linaro.org>
5943 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5946 2015-08-01 Michael Collison <michael.collison@linaro.org
5947 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5949 * config/arm/arm.md (*arm_smin_cmp): New pattern.
5950 (*arm_umin_cmp): Likewise.
5952 2015-11-06 Jakub Jelinek <jakub@redhat.com>
5954 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5955 * omp-low.c (check_omp_nesting_restrictions): Update for the
5956 various new OpenMP 4.5 nesting restrictions, clarified
5957 nesting glossary, closely nested region relationship clarified
5958 to mean explicit or implicit parallel regions (target/teams),
5959 use %</%> or %qs where appropriate.
5961 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5962 Sebastian Pop <s.pop@samsung.com>
5964 * graphite-scop-detection.c (loop_is_valid_scop): Call
5965 optimize_loop_nest_for_speed_p.
5967 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5968 Sebastian Pop <s.pop@samsung.com>
5970 * graphite-optimize-isl.c (optimize_isl): Call
5971 isl_options_set_schedule_maximize_band_depth.
5973 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5974 Sebastian Pop <s.pop@samsung.com>
5976 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5977 and exit edges should not be a part of irreducible loop.
5978 (scop_detection::can_represent_loop_1): Loops should not be
5980 (scop_detection::harmful_stmt_in_region): All the basic block
5981 should belong to reducible loops.
5983 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5985 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5986 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5987 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5988 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5989 (aarch64_tbx4v8qi): Rename to...
5990 aarch64_tbx4<mode>): ... this.
5991 (aarch64_qtbl3<mode>): New pattern.
5992 (aarch64_qtbx3<mode>): New pattern.
5993 (aarch64_qtbl4<mode>): New pattern.
5994 (aarch64_qtbx4<mode>): New pattern.
5995 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5996 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5997 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5998 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5999 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6000 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6001 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6002 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6005 2015-11-06 Mike Stump <mikestump@comcast.net>
6008 * dwarf2out.c (get_full_len): Return a value based upon the actual
6009 precision needed for the value.
6010 (add_const_value_attribute): Use a maximal wide-int for
6011 CONST_WIDE_INTs, not VOIDmode.
6012 (output_die): Don't ever output NULL with printf.
6014 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6015 BLKmode nor VOIDmode values.
6017 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6019 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6021 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6022 * diagnostic-core.h (warning_at_rich_loc): New declaration.
6023 (error_at_rich_loc): New declaration.
6024 (permerror_at_rich_loc): New declaration.
6025 (inform_at_rich_loc): New declaration.
6026 * diagnostic-show-locus.c (adjust_line): Delete.
6027 (struct point_state): New struct.
6028 (class colorizer): New class.
6029 (class layout_point): New class.
6030 (class layout_range): New class.
6031 (struct line_bounds): New.
6032 (class layout): New class.
6033 (colorizer::colorizer): New ctor.
6034 (colorizer::~colorizer): New dtor.
6035 (layout::layout): New ctor.
6036 (layout::print_source_line): New method.
6037 (layout::print_annotation_line): New method.
6038 (layout::get_state_at_point): New method.
6039 (layout::get_x_bound_for_row): New method.
6040 (diagnostic_show_locus): Reimplement in terms of class layout.
6041 (diagnostic_print_caret_line): Delete.
6042 * diagnostic.c (diagnostic_initialize): Replace
6043 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6044 (diagnostic_set_info_translated): Convert param from location_t
6045 to rich_location *. Eliminate calls to set_location on the
6046 message in favor of storing the rich_location ptr there.
6047 (diagnostic_set_info): Convert param from location_t to
6049 (diagnostic_build_prefix): Break out array into...
6050 (diagnostic_kind_color): New variable.
6051 (diagnostic_get_color_for_kind): New function.
6052 (diagnostic_report_diagnostic): Colorize the option_text
6053 using the color for the severity.
6054 (diagnostic_append_note): Update for change in signature of
6055 diagnostic_set_info.
6056 (diagnostic_append_note_at_rich_loc): New function.
6057 (emit_diagnostic): Update for change in signature of
6058 diagnostic_set_info.
6060 (inform_at_rich_loc): New function.
6061 (inform_n): Update for change in signature of diagnostic_set_info.
6062 (warning): Likewise.
6063 (warning_at): Likewise.
6064 (warning_at_rich_loc): New function.
6065 (warning_n): Update for change in signature of diagnostic_set_info.
6066 (pedwarn): Likewise.
6067 (permerror): Likewise.
6068 (permerror_at_rich_loc): New function.
6069 (error): Update for change in signature of diagnostic_set_info.
6070 (error_n): Likewise.
6071 (error_at): Likewise.
6072 (error_at_rich_loc): New function.
6073 (sorry): Update for change in signature of diagnostic_set_info.
6074 (fatal_error): Likewise.
6075 (internal_error): Likewise.
6076 (internal_error_no_backtrace): Likewise.
6077 (source_range::debug): New function.
6078 * diagnostic.h (struct diagnostic_info): Eliminate field
6079 "override_column". Add field "richloc".
6080 (struct diagnostic_context): Add field "colorize_source_p".
6081 (diagnostic_override_column): Delete.
6082 (diagnostic_set_info): Convert param from location_t to
6084 (diagnostic_set_info_translated): Likewise.
6085 (diagnostic_append_note_at_rich_loc): New function.
6086 (diagnostic_num_locations): New function.
6087 (diagnostic_expand_location): Get the location from the
6089 (diagnostic_print_caret_line): Delete.
6090 (diagnostic_get_color_for_kind): New declaration.
6091 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6092 (error_cb): Update for change in signature of "error" callback.
6093 (fatal_at): Likewise.
6094 (warning_at): Likewise.
6095 * input.c (linemap_client_expand_location_to_spelling_point): New.
6096 * pretty-print.c (text_info::set_range): New method.
6097 (text_info::get_location): New method.
6098 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6099 (struct text_info): Eliminate "locations" array in favor of
6100 "m_richloc", a rich_location *.
6101 (textinfo::set_location): Add a "caret_p" param, and reimplement
6102 in terms of a call to set_range.
6103 (textinfo::get_location): Eliminate inline implementation in favor of
6104 an out-of-line reimplementation.
6105 (textinfo::set_range): New method.
6106 * rtl-error.c (diagnostic_for_asm): Update for change in signature
6107 of diagnostic_set_info.
6108 * tree-diagnostic.c (default_tree_printer): Update for new
6109 "caret_p" param for textinfo::set_location.
6110 * tree-pretty-print.c (percent_K_format): Likewise.
6112 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6115 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6116 * config/aarch64/aarch64.c
6117 (aarch64_can_use_per_function_literal_pools_p): New.
6118 (aarch64_use_blocks_for_constant_p): Adjust declaration
6119 and use aarch64_can_use_function_literal_pools_p.
6120 (aarch64_select_rtx_section): Update.
6122 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6124 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6125 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6126 (arm_output_multireg_pop): Likewise.
6127 (output_move_double): Likewise.
6128 (output_move_quad): Likewise.
6129 (output_return_instruction): Likewise.
6130 (arm_print_operand): Remove support for %( and %. print modifiers.
6131 (arm_output_shift): Make unified asm.
6132 (arm_declare_function_name): Likewise.
6133 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6134 (ASM_APP_OFF): Adjust.
6135 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6136 (ASM_OUTPUT_REG_POP): Likewise.
6137 * config/arm/arm.md: Adjust uses of %., %(, %)
6138 * config/arm/sync.md: Likewise.
6139 * config/arm/thumb2.md: Likewise.
6140 * config/arm/ldmstm.md: Regenerate.
6141 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6142 * doc/invoke.texi (masm-unified-syntax): Update documentation.
6144 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6146 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6148 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6150 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6151 add OEP_MATCH_SIDE_EFFECTS.
6152 * fold-const.c (operand_equal_p): Update documentation; handle
6153 OEP_MATCH_SIDE_EFFECTS.
6154 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6155 OEP_MATCH_SIDE_EFFECTS.
6157 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
6158 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6160 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6161 * config/aarch64/aarch64-protos.h: Declare.
6162 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6164 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6165 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6166 code when applicable.
6167 * config/aarch64/aarch64.md: Added enum entries.
6168 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6170 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6174 * ipa-polymorphic-call.c
6175 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6176 issue when offset is out of range.
6177 (contains_type_p): Fix out of range check, clear dynamic flag.
6179 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
6181 * config.gcc (e6500): Fix cpu_is_64bit typo.
6183 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
6185 * tree-sra.c (completely_scalarize): Properly handle negative array
6186 indices using offset_int.
6188 2015-11-06 Richard Biener <rguenther@suse.de>
6190 * alloc-pool.h (object_allocator::allocate): Default-initialize
6193 2015-11-06 Richard Biener <rguenther@suse.de>
6195 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6196 * lra.c (init_reg_info): Truncate copy_vec instead of
6197 re-allocating a new one and leaking the old.
6198 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6200 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6201 * postreload-gcse.c (free_mem): Free modify_mem_list and
6202 canon_modify_mem_list.
6204 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
6206 PR tree-optimization/68145
6207 * tree-vect-stmts.c (vectorizable_operation): Fix
6208 determination for booleans.
6210 2015-11-06 Tom de Vries <tom@codesourcery.com>
6212 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6213 cond_jump, instead of split after last nondebug insn before cond_jump.
6214 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6217 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6220 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6221 subregs from accumulator and make sure it's a register.
6223 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
6225 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6227 (reduc_uplus_<mode>): Remove.
6228 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6229 loongson_extract_lo_<mode>.
6230 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6231 reduc_smax_<mode>, reduc_smax_<mode>, use vec
6232 loongson_extract_lo_<mode>.
6233 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6235 2015-11-06 Richard Biener <rguenther@suse.de>
6237 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6239 (vect_stmt_in_region_p): Declare.
6240 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6241 (destroy_bb_vec_info): Likewise.
6242 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6243 (vect_get_and_check_slp_defs): Likewise.
6244 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6245 (vect_slp_bb): Likewise.
6246 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6247 in terms of vect_stmt_in_region_p.
6248 (vect_pattern_recog): Iterate over the BB region.
6249 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6250 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6251 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6252 * config/i386/i386.c: Include gimple-iterator.h.
6253 * config/aarch64/aarch64.c: Likewise.
6255 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
6257 PR rtl-optimization/67753
6258 PR rtl-optimization/64164
6259 * function.c (assign_parm_setup_block): Avoid allocating a
6260 stack slot if we don't have an ABI-reserved one. Emit the
6261 copy to target_reg in the conversion seq if the copy from
6262 entry_parm is in it too. Don't use the conversion seq to copy
6263 a PARALLEL to a REG or a CONCAT.
6265 2015-11-06 Richard Biener <rguenther@suse.de>
6267 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6270 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6271 Thomas Schwinge <thomas@codesourcery.com>
6272 James Norris <jnorris@codesourcery.com>
6275 * gimplify.c (gimplify_scan_omp_clauses): Add support for
6276 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
6277 (gimplify_adjust_omp_clauses): Likewise.
6278 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6279 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6280 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6281 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6282 (omp_clause_code_name): Likewise.
6283 (walk_tree_1): Handle OMP_CLAUSE_TILE.
6284 * tree.h (OMP_TILE_LIST): New macro.
6286 2015-11-05 Martin Sebor <msebor@redhat.com>
6289 * doc/invoke.texi (-Wplacement-new): Document new option.
6291 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
6293 PR tree-optimization/65963
6294 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6295 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6297 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
6299 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6300 (noce_convert_multiple_sets): Likewise.
6301 (noce_process_if_block): Call them.
6303 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6305 * gimple-fold.c: Include omp-low.h.
6306 (fold_internal_goacc_dim): New.
6307 (gimple_fold_call): Call it.
6309 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6310 Ilya Verbin <ilya.verbin@intel.com>
6313 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6314 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6315 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6316 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6317 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6318 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6319 (struct cgraph_simd_clone_arg): Adjust comment.
6320 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6321 to GOMP_target_ext. Add num_teams and thread_limit arguments.
6322 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6323 to GOMP_target_data_ext.
6324 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6325 to GOMP_target_update_ext.
6326 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6327 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6328 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6329 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6330 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6331 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6332 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6333 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6334 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6335 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6336 * tree-core.h (enum omp_clause_schedule_kind): Add
6337 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6338 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6339 OMP_CLAUSE_SCHEDULE_LAST value.
6340 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6341 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6342 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6343 OMP_FOR_CHECK. Remove comment.
6344 * tree-pretty-print.c (dump_omp_clause): Handle
6345 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6346 Simplify. Print schedule clause modifiers.
6347 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6348 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6350 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6351 (omp_default_clause): Tweak for
6352 private/firstprivate/is_device_ptr variables on target
6353 construct and use_device_ptr on target data.
6354 (omp_check_private): Likewise.
6355 (omp_notice_variable): For references check whether what it refers
6356 to has mappable type, rather than the reference itself.
6357 (omp_is_private): Diagnose linear iteration variables on non-simd
6359 (omp_no_lastprivate): Return true only for Fortran.
6360 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6361 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6362 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6363 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6364 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6365 lastprivate and linear when combined with distribute. Gimplify
6366 variable low-bound for array reduction. Look through
6367 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6369 (gimplify_adjust_omp_clauses_1): For implicit references to
6370 variables with reference type and when not ref to scalar or
6371 ref to pointer, map what they refer to using tofrom and
6372 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6373 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6374 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6375 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6376 Diagnose the same var on both firstprivate and lastprivate on
6377 distribute construct.
6378 (gimplify_omp_for): Fix up handling of predetermined
6379 lastprivate or linear iter vars when combined with distribute.
6380 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6382 (gimplify_omp_workshare): Call optimize_target_teams.
6383 * omp-low.c (struct omp_region): Add sched_modifiers field.
6384 (struct omp_for_data): Likewise.
6385 (omp_any_child_fn_dumped): New variable.
6386 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6387 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6389 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6390 bits of OMP_CLAUSE_SCHED_KIND.
6391 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6392 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6393 for array section reductions.
6394 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6395 for distribute parallel for, if there are lastprivate clauses on the
6397 (lower_rec_input_clauses): Handle non-zero low-bound on array
6399 (lower_reduction_clauses): Likewise.
6400 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6401 for array section reductions.
6402 (expand_parallel_call): Use nonmonotonic entrypoints for
6403 nonmonotonic: dynamic/guided.
6404 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6405 child_fn if current_function_decl has assembler name set, but child_fn
6406 does not. Dump the header and IL of the child function when not in SSA
6408 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6409 arguments to BUILT_IN_GOMP_TARGET.
6410 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6411 Initialize the extra _looptemp_ clause to fd->loop.n2.
6412 (expand_omp_for): Use nonmonotonic entrypoints for
6413 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6414 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6415 again if we have dumped any child functions.
6416 (lower_omp_for_lastprivate): Determine the right count variable
6417 for distribute simd, or distribute parallel for{, simd}.
6418 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6419 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6421 (simd_clone_clauses_extract): Handle variable step
6422 for references and arguments passed by reference.
6423 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6424 (simd_clone_adjust_argument_types): Handle
6425 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6426 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6427 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6428 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6429 (simd_clone_linear_addend): New function.
6430 (simd_clone_adjust): Handle variable step like similarly
6431 to constant step, use simd_clone_linear_addend to determine
6432 the actual step at runtime.
6434 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6436 * target.def (goacc.dim_limit): New hook.
6437 * targhooks.h (default_goacc_dim_limit): Declare.
6438 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6439 * doc/tm.texi: Rebuilt.
6440 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6441 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6442 (default_goacc_dim_limit): New.
6443 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6444 (nvptx_goacc_dim_limit) New.
6445 (TARGET_GOACC_DIM_LIMIT): Override.
6446 * tree-vrp.c: Include omp-low.h, target.h.
6447 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6450 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6452 * tree-vect-generic.c (do_compare): Use -1 for true
6453 result instead of 1.
6455 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6457 * config/aarch64/aarch64.c
6458 (aarch64_can_use_per_function_literal_pools_p): New.
6459 (aarch64_use_blocks_for_constant_p): Adjust declaration
6460 and use aarch64_can_use_function_literal_pools_p.
6461 (aarch64_select_rtx_section): Update.
6463 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6465 * targhooks.c (default_get_mask_mode): Use BLKmode in
6466 case target doesn't support required vector mode.
6467 * stor-layout.c (layout_type); Check for BLKmode.
6469 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6470 Sebastian Pop <s.pop@samsung.com>
6472 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6473 Remove use of parameter_rename_map.
6475 (copy_internal_parameters): Remove.
6476 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6477 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6478 (free_sese_info): Do not free parameter_rename_map.
6479 (set_rename): Do not use parameter_rename_map.
6480 (rename_uses): Update call to set_rename.
6481 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6482 * sese.h (parameter_rename_map_t): Remove.
6483 (struct sese_info_t): Remove field parameter_rename_map.
6485 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6486 Sebastian Pop <s.pop@samsung.com>
6488 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6489 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6490 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6491 anonymous namespace.
6492 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6493 (isl_id_for_pbb): Use a buffer of size 10.
6494 (isl_id_for_ssa_name): Same.
6495 * sese.c (set_rename): Add more dumps.
6497 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6499 * omp-low.c (struct omp_context): Remove reduction_map field.
6500 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6501 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6502 reduction_map handling.
6503 (lower_omp_target): Remove obsolete openacc reduction handling.
6505 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6507 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6509 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6510 Cesar Philippidis <cesar@codesourcery.com>
6512 * config/nvptx/nvptx.c: Include gimple headers.
6513 (worker_red_size, worker_red_align, worker_red_name,
6514 worker_red_sym): New.
6515 (nvptx_option_override): Initialize worker reduction buffer.
6516 (nvptx_file_end): Write out worker reduction buffer var.
6517 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6518 nvptx_expand_cmp_swap): New builtin expanders.
6519 (enum nvptx_builtins): New.
6520 (nvptx_builtin_decls): New.
6521 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6522 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6523 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6524 nvptx_lockless_update): New helpers.
6525 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6526 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6527 (nvptx_goacc_reduction): New.
6528 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6529 TARGET_BUILTIN_DECL): Override.
6530 (TARGET_GOACC_REDUCTION): Override.
6532 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6533 Cesar Philippidis <cesar@codesourcery.com>
6535 * internal-fn.def (GOACC_REDUCTION): New.
6536 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6537 * internal-fn.c (expand_GOACC_REDUCTION): New.
6538 * target.def (goacc.reduction): New OpenACC hook.
6539 * targhooks.h (default_goacc_reduction): Declare.
6540 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6541 * doc/tm.texi: Rebuilt.
6542 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6543 scan_sharing_clauses): Remove oacc reduction handling here.
6544 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6545 (oacc_lower_reduction_var_helper): Delete.
6546 (lower_oacc_reductions): New.
6547 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6548 (lower_oacc_head_tail): Call lower_oacc_reductions.
6549 (oacc_gimple_assign, oacc_init_reduction_array,
6550 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6551 oacc_process_reduction_data): Delete.
6552 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6553 dummy OpenACC gang reduction for reductions at outer level.
6554 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6555 (default_goacc_reduction): New.
6556 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6558 2015-11-04 Martin Liska <mliska@suse.cz>
6560 * cgraphunit.c (cgraph_node::expand_thunk): Call
6561 allocate_struct_function before init_function_start.
6562 (cgraph_node::expand): Use push_cfun and pop_cfun.
6563 * config/i386/i386.c (ix86_code_end): Call
6564 allocate_struct_function before init_function_start.
6565 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6566 * function.c (init_function_start): Move preamble to all
6568 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6569 (execute_one_pass): Handle newly added TODO_discard_function.
6570 (execute_pass_list_1): Terminate if cfun equals to NULL.
6571 (execute_pass_list): Do not push and pop cfun, expect that
6573 * tree-pass.h (TODO_discard_function): Define.
6575 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6577 * cfganal.c (inverted_post_order_compute): Remove conditional
6578 compilation, use flag_checking.
6579 * config.in: Regenerate.
6580 * configure: Regenerate.
6581 * configure.ac: Remove ENABLE_CHECKING.
6582 * genconditions.c: Do not #undef ENABLE_CHECKING.
6583 * sese.h (bb_in_region): Comment out broken check.
6584 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6585 conditional compilation, use flag_checking.
6587 2015-11-04 Tom de Vries <tom@codesourcery.com>
6589 PR tree-optimization/67742
6590 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6592 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6593 (create_variable_info_for_1): Add and handle handle_param parameter.
6594 Add restrict handling.
6595 (create_variable_info_for): Call create_variable_info_for_1 with extra
6597 (make_param_constraints): Drop restrict_name parameter. Ignore
6598 vi->only_restrict_pointers.
6599 (intra_create_variable_infos): Call create_variable_info_for_1 with
6600 extra arg. Remove restrict handling. Call make_param_constraints with
6603 2015-11-04 Tom de Vries <tom@codesourcery.com>
6605 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6608 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6610 * config/arm/coff.h: Remove.
6612 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6614 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6615 check for aggregate types and beef up comment for mode check.
6617 2015-11-03 Richard Biener <rguenther@suse.de>
6619 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6620 data references here.
6621 * tree-vect-loop.c: Include cgraph.h.
6622 (vect_analyze_loop_2): Collect data references here.
6623 * tree-vect-slp.c (find_bb_location): Inline ...
6624 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6625 Factor in vect_slp_transform_bb.
6626 (vect_slp_transform_bb): Removed.
6627 (vect_slp_analyze_bb_1): Collect data references here.
6628 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6630 * tree-vectorizer.h (vect_slp_bb): Declare.
6631 (vect_slp_analyze_bb): Remove.
6632 (vect_slp_transform_bb): Remove.
6633 (find_bb_location): Remove.
6634 (vect_analyze_data_refs): Remove stmt count reference parameter.
6636 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6638 * multiple_target.c (create_dispatcher_calls): Add target check
6640 (create_target_clone): Change assembler name for versioned declarations.
6642 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6643 Chung-Lin Tang <cltang@codesourcery.com>
6645 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6646 * omp-low.c (check_omp_nesting_restrictions): Allow
6647 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6650 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6652 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6653 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6654 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6656 (vmulxq_f32): Likewise.
6658 (vmulxq_f64): Rewrite to call fmulx builtin.
6659 (vmulxs_f32): Likewise.
6660 (vmulxd_f64): Likewise.
6661 (vmulx_lane_f32): Remove.
6662 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6664 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6666 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6667 aarch64_reg_or_fp_zero for second operand.
6669 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6671 * gimple-expr.c: Include hash-set.h and rtl.h.
6672 (mark_addressable_queue): New var.
6673 (mark_addressable): Factor actual marking into...
6674 (mark_addressable_1): ... this. Queue it up during expand.
6675 (mark_addressable_2): New.
6676 (flush_mark_addressable_queue): New.
6677 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6678 * cfgexpand.c: Include gimple-expr.h.
6679 (pass_expand::execute): Flush mark_addressable queue.
6681 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6683 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6684 bb_no_side_effects_p tests...
6685 (tree_ssa_ifcombine_bb): ... here.
6687 PR tree-optimization/68083
6688 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6689 (bb_no_side_effects_p): Test for undefined uses too.
6690 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6691 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6693 2015-11-02 Jeff Law <law@redhat.com>
6695 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6696 cases where the loop latch edge is in the middle of an FSM path.
6698 2015-11-03 Tom de Vries <tom@codesourcery.com>
6700 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6701 (make_param_constraints): ... this. Add and handle restrict_name
6702 parameter. Handle is_full_var case.
6703 (intra_create_variable_infos): Use make_param_constraints.
6705 2015-11-03 Tom de Vries <tom@codesourcery.com>
6707 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6708 make_copy_constraint call with make_constraint_from call.
6710 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6712 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6715 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6717 * builtins.h (fold_fma): Move to fold-const-call.h.
6718 * builtins.c: Include fold-const-call.h.
6719 (mathfn_built_in_2): New function, split out from...
6720 (mathfn_built_in_1): ...here.
6721 (do_real_to_int_conversion, fold_const_builtin_pow)
6722 (fold_const_builtin_logb, fold_const_builtin_significand)
6723 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6724 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6725 (fold_builtin_sincos): Use fold_const_call to handle constants.
6726 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6727 checks for ERROR_MARK. Use fold_const_call to handle constant
6728 folds for math functions.
6729 (fold_fma): Move to fold-const-call.c.
6730 * fold-const.c: Include fold-const-call.h.
6731 * Makefile.in (OBJS): Add fold-const-call.o.
6732 (PLUGIN_HEADERS): Add fold-const-call.h.
6733 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6735 * realmpfr.c (real_from_mpfr): Likewise.
6736 * fold-const-call.h, fold-const-call.c: New files.
6738 2015-11-02 Julian Brown <julian@codesourcery.com>
6740 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6741 brackets and semicolon.
6743 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6746 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6748 PR tree-optimization/65963
6749 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6750 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6752 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6755 * fold-const.c: Include "md5.h".
6757 2015-11-01 Jeff Law <law@redhat.com>
6759 * vmsdbgout.c: Revert unused header file reduction patch.
6761 * config/mcore/mcore.c: Include regs.h.
6763 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6765 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6767 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6769 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6770 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6771 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6773 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6775 * ggc-common.c: Restore needed header for checking=release.
6777 2015-10-31 Tom de Vries <tom@codesourcery.com>
6779 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6781 2015-10-31 Tom de Vries <tom@codesourcery.com>
6783 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6784 existing varinfo for arguments.
6786 2015-10-31 Tom de Vries <tom@codesourcery.com>
6788 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6789 create_function_info_for. Dump constraints generated during
6790 create_function_info_for. Move intra_create_variable_infos call and
6791 function-return-values-escape bit to ...
6792 (create_function_info_for): ... here, and merge
6793 intra_create_variable_infos call with argument loop. Add and handle
6794 nonlocal_p parameter.
6796 2015-10-31 Tom de Vries <tom@codesourcery.com>
6798 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6799 updating is alap, and seperated from preceding code. Make sure
6800 insert_vi_for_tree is seperated from surrounding code.
6802 2015-10-31 Tom de Vries <tom@codesourcery.com>
6804 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6806 2015-10-30 Jeff Law <law@redhat.com>
6807 Nathan Sidwell <nathan@acm.org>
6809 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6811 (MOVE_MAX): Set to 8.
6813 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6815 * cgraph.c: Include context.h for offloading.
6816 * varpool.c: Include context.h and omp-low.h.
6818 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6820 * rtl.h (contains_symbol_ref_p): Declare.
6821 (SYMBOL_REF_P): Define.
6822 * rtlanal.c (contains_symbol_ref_p: New function.
6823 * lra-constraints.c (contains_symbol_ref_p): Remove.
6824 * var-tracking.c (contains_symbol_ref): Remove.
6825 (track_expr_p): Use contains_symbol_ref_p instead of
6826 contains_symbol_ref.
6828 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6830 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6831 * fold-const.c (get_array_ctor_element_at_index): New.
6832 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6834 * fold-const.h (get_array_ctor_element_at_index): New.
6836 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6838 * Makefile.in (OBJS): Add multiple_target.o.
6839 * attrib.c (make_attribute): Moved from config/i386/i386.c
6840 * config/i386/i386.c (make_attribute): Deleted.
6841 * multiple_target.c (create_dispatcher_calls): New.
6842 (get_attr_len): Ditto.
6843 (get_attr_str): Ditto.
6844 (separate_attrs): Ditto.
6845 (is_valid_asm_symbol): Ditto.
6846 (create_new_asm_name): Ditto.
6847 (create_target_clone): Ditto.
6848 (expand_target_clones): Ditto.
6849 (ipa_target_clone): Ditto.
6850 (ipa_dispatcher_calls): Ditto.
6851 * passes.def (pass_target_clone): Two new ipa passes.
6852 * tree-pass.h (make_pass_target_clone): Ditto.
6853 * doc/extend.texi (target_clones): New attribute description.
6855 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6857 PR rtl-optimization/68106
6858 * lra-remat.c (input_regno_present_p): Process hard regs
6859 explicitly present in machine description insns.
6860 (call_used_input_regno_present_p): Ditto.
6861 (calculate_gen_cands): Ditto.
6864 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
6866 * config/arm/neon-testgen.ml: Fix comment typo.
6868 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6870 * rtlanal.c (reg_set_p): Expand function comment.
6872 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
6874 * alias.c: Remove unused headers.
6876 * attribs.c: Likewise.
6877 * auto-inc-dec.c: Likewise.
6878 * auto-profile.c: Likewise.
6879 * bb-reorder.c: Likewise.
6880 * bitmap.c: Likewise.
6881 * bt-load.c: Likewise.
6882 * builtins.c: Likewise.
6883 * caller-save.c: Likewise.
6884 * calls.c: Likewise.
6887 * cfganal.c: Likewise.
6888 * cfgbuild.c: Likewise.
6889 * cfgcleanup.c: Likewise.
6890 * cfgexpand.c: Likewise.
6891 * cfghooks.c: Likewise.
6892 * cfgloop.c: Likewise.
6893 * cfgloopanal.c: Likewise.
6894 * cfgloopmanip.c: Likewise.
6895 * cfgrtl.c: Likewise.
6896 * cgraph.c: Likewise.
6897 * cgraphbuild.c: Likewise.
6898 * cgraphclones.c: Likewise.
6899 * cgraphunit.c: Likewise.
6900 * cilk-common.c: Likewise.
6901 * combine-stack-adj.c: Likewise.
6902 * combine.c: Likewise.
6903 * compare-elim.c: Likewise.
6904 * convert.c: Likewise.
6905 * coverage.c: Likewise.
6906 * cppbuiltin.c: Likewise.
6907 * cprop.c: Likewise.
6909 * cselib.c: Likewise.
6910 * data-streamer-in.c: Likewise.
6911 * data-streamer-out.c: Likewise.
6912 * data-streamer.c: Likewise.
6913 * dbxout.c: Likewise.
6916 * debug.c: Likewise.
6917 * df-core.c: Likewise.
6918 * df-problems.c: Likewise.
6919 * df-scan.c: Likewise.
6921 * dojump.c: Likewise.
6922 * dominance.c: Likewise.
6923 * domwalk.c: Likewise.
6924 * double-int.c: Likewise.
6926 * dumpfile.c: Likewise.
6927 * dwarf2asm.c: Likewise.
6928 * dwarf2cfi.c: Likewise.
6929 * dwarf2out.c: Likewise.
6930 * emit-rtl.c: Likewise.
6931 * except.c: Likewise.
6932 * explow.c: Likewise.
6933 * expmed.c: Likewise.
6935 * final.c: Likewise.
6936 * fixed-value.c: Likewise.
6937 * fold-const.c: Likewise.
6938 * function.c: Likewise.
6939 * fwprop.c: Likewise.
6941 * generic-match-head.c: Likewise.
6942 * ggc-common.c: Likewise.
6943 * gimple-builder.c: Likewise.
6944 * gimple-expr.c: Likewise.
6945 * gimple-fold.c: Likewise.
6946 * gimple-iterator.c: Likewise.
6947 * gimple-low.c: Likewise.
6948 * gimple-match-head.c: Likewise.
6949 * gimple-pretty-print.c: Likewise.
6950 * gimple-ssa-isolate-paths.c: Likewise.
6951 * gimple-ssa-strength-reduction.c: Likewise.
6952 * gimple-streamer-in.c: Likewise.
6953 * gimple-streamer-out.c: Likewise.
6954 * gimple-walk.c: Likewise.
6955 * gimple.c: Likewise.
6956 * gimplify-me.c: Likewise.
6957 * gimplify.c: Likewise.
6958 * godump.c: Likewise.
6959 * graph.c: Likewise.
6960 * graphds.c: Likewise.
6961 * haifa-sched.c: Likewise.
6962 * hw-doloop.c: Likewise.
6963 * ifcvt.c: Likewise.
6964 * init-regs.c: Likewise.
6965 * internal-fn.c: Likewise.
6966 * ipa-chkp.c: Likewise.
6967 * ipa-comdats.c: Likewise.
6968 * ipa-cp.c: Likewise.
6969 * ipa-devirt.c: Likewise.
6970 * ipa-icf-gimple.c: Likewise.
6971 * ipa-icf.c: Likewise.
6972 * ipa-inline-analysis.c: Likewise.
6973 * ipa-inline-transform.c: Likewise.
6974 * ipa-inline.c: Likewise.
6975 * ipa-polymorphic-call.c: Likewise.
6976 * ipa-profile.c: Likewise.
6977 * ipa-prop.c: Likewise.
6978 * ipa-pure-const.c: Likewise.
6979 * ipa-ref.c: Likewise.
6980 * ipa-reference.c: Likewise.
6981 * ipa-split.c: Likewise.
6982 * ipa-utils.c: Likewise.
6983 * ipa-visibility.c: Likewise.
6985 * ira-build.c: Likewise.
6986 * ira-color.c: Likewise.
6987 * ira-conflicts.c: Likewise.
6988 * ira-costs.c: Likewise.
6989 * ira-emit.c: Likewise.
6990 * ira-lives.c: Likewise.
6993 * langhooks.c: Likewise.
6995 * lists.c: Likewise.
6996 * loop-doloop.c: Likewise.
6997 * loop-init.c: Likewise.
6998 * loop-invariant.c: Likewise.
6999 * loop-iv.c: Likewise.
7000 * loop-unroll.c: Likewise.
7001 * lower-subreg.c: Likewise.
7002 * lra-assigns.c: Likewise.
7003 * lra-coalesce.c: Likewise.
7004 * lra-constraints.c: Likewise.
7005 * lra-eliminations.c: Likewise.
7006 * lra-lives.c: Likewise.
7007 * lra-remat.c: Likewise.
7008 * lra-spills.c: Likewise.
7010 * lto-cgraph.c: Likewise.
7011 * lto-compress.c: Likewise.
7012 * lto-opts.c: Likewise.
7013 * lto-section-in.c: Likewise.
7014 * lto-section-out.c: Likewise.
7015 * lto-streamer-in.c: Likewise.
7016 * lto-streamer-out.c: Likewise.
7017 * lto-streamer.c: Likewise.
7019 * mode-switching.c: Likewise.
7020 * modulo-sched.c: Likewise.
7021 * optabs.c: Likewise.
7022 * opts-global.c: Likewise.
7023 * passes.c: Likewise.
7024 * plugin.c: Likewise.
7025 * postreload-gcse.c: Likewise.
7026 * postreload.c: Likewise.
7027 * predict.c: Likewise.
7028 * print-tree.c: Likewise.
7029 * profile.c: Likewise.
7031 * realmpfr.c: Likewise.
7032 * recog.c: Likewise.
7034 * reg-stack.c: Likewise.
7035 * regcprop.c: Likewise.
7036 * reginfo.c: Likewise.
7037 * regrename.c: Likewise.
7038 * regstat.c: Likewise.
7039 * reload.c: Likewise.
7040 * reload1.c: Likewise.
7041 * reorg.c: Likewise.
7042 * resource.c: Likewise.
7043 * rtl-chkp.c: Likewise.
7044 * rtl-error.c: Likewise.
7045 * rtlanal.c: Likewise.
7046 * rtlhooks.c: Likewise.
7047 * sanopt.c: Likewise.
7048 * sched-deps.c: Likewise.
7049 * sched-ebb.c: Likewise.
7050 * sched-rgn.c: Likewise.
7051 * sdbout.c: Likewise.
7052 * sel-sched-dump.c: Likewise.
7053 * sel-sched-ir.c: Likewise.
7054 * sel-sched.c: Likewise.
7056 * shrink-wrap.c: Likewise.
7057 * simplify-rtx.c: Likewise.
7058 * stack-ptr-mod.c: Likewise.
7059 * statistics.c: Likewise.
7061 * stor-layout.c: Likewise.
7062 * store-motion.c: Likewise.
7063 * stringpool.c: Likewise.
7064 * symtab.c: Likewise.
7065 * target-globals.c: Likewise.
7066 * targhooks.c: Likewise.
7067 * toplev.c: Likewise.
7068 * tracer.c: Likewise.
7069 * trans-mem.c: Likewise.
7070 * tree-affine.c: Likewise.
7071 * tree-call-cdce.c: Likewise.
7072 * tree-cfg.c: Likewise.
7073 * tree-cfgcleanup.c: Likewise.
7074 * tree-chkp-opt.c: Likewise.
7075 * tree-chkp.c: Likewise.
7076 * tree-chrec.c: Likewise.
7077 * tree-complex.c: Likewise.
7078 * tree-data-ref.c: Likewise.
7079 * tree-dfa.c: Likewise.
7080 * tree-diagnostic.c: Likewise.
7081 * tree-dump.c: Likewise.
7082 * tree-eh.c: Likewise.
7083 * tree-emutls.c: Likewise.
7084 * tree-if-conv.c: Likewise.
7085 * tree-inline.c: Likewise.
7086 * tree-into-ssa.c: Likewise.
7087 * tree-iterator.c: Likewise.
7088 * tree-loop-distribution.c: Likewise.
7089 * tree-nested.c: Likewise.
7090 * tree-nrv.c: Likewise.
7091 * tree-object-size.c: Likewise.
7092 * tree-outof-ssa.c: Likewise.
7093 * tree-parloops.c: Likewise.
7094 * tree-phinodes.c: Likewise.
7095 * tree-predcom.c: Likewise.
7096 * tree-pretty-print.c: Likewise.
7097 * tree-profile.c: Likewise.
7098 * tree-scalar-evolution.c: Likewise.
7099 * tree-sra.c: Likewise.
7100 * tree-ssa-address.c: Likewise.
7101 * tree-ssa-alias.c: Likewise.
7102 * tree-ssa-ccp.c: Likewise.
7103 * tree-ssa-coalesce.c: Likewise.
7104 * tree-ssa-copy.c: Likewise.
7105 * tree-ssa-dce.c: Likewise.
7106 * tree-ssa-dse.c: Likewise.
7107 * tree-ssa-forwprop.c: Likewise.
7108 * tree-ssa-ifcombine.c: Likewise.
7109 * tree-ssa-live.c: Likewise.
7110 * tree-ssa-loop-ch.c: Likewise.
7111 * tree-ssa-loop-im.c: Likewise.
7112 * tree-ssa-loop-ivcanon.c: Likewise.
7113 * tree-ssa-loop-ivopts.c: Likewise.
7114 * tree-ssa-loop-manip.c: Likewise.
7115 * tree-ssa-loop-niter.c: Likewise.
7116 * tree-ssa-loop-prefetch.c: Likewise.
7117 * tree-ssa-loop-unswitch.c: Likewise.
7118 * tree-ssa-loop.c: Likewise.
7119 * tree-ssa-math-opts.c: Likewise.
7120 * tree-ssa-operands.c: Likewise.
7121 * tree-ssa-phiopt.c: Likewise.
7122 * tree-ssa-phiprop.c: Likewise.
7123 * tree-ssa-pre.c: Likewise.
7124 * tree-ssa-propagate.c: Likewise.
7125 * tree-ssa-reassoc.c: Likewise.
7126 * tree-ssa-scopedtables.c: Likewise.
7127 * tree-ssa-sink.c: Likewise.
7128 * tree-ssa-strlen.c: Likewise.
7129 * tree-ssa-structalias.c: Likewise.
7130 * tree-ssa-tail-merge.c: Likewise.
7131 * tree-ssa-ter.c: Likewise.
7132 * tree-ssa-threadupdate.c: Likewise.
7133 * tree-ssa-uncprop.c: Likewise.
7134 * tree-ssa-uninit.c: Likewise.
7135 * tree-ssa.c: Likewise.
7136 * tree-ssanames.c: Likewise.
7137 * tree-stdarg.c: Likewise.
7138 * tree-streamer-in.c: Likewise.
7139 * tree-streamer-out.c: Likewise.
7140 * tree-streamer.c: Likewise.
7141 * tree-switch-conversion.c: Likewise.
7142 * tree-tailcall.c: Likewise.
7143 * tree-vect-data-refs.c: Likewise.
7144 * tree-vect-generic.c: Likewise.
7145 * tree-vect-loop-manip.c: Likewise.
7146 * tree-vect-loop.c: Likewise.
7147 * tree-vect-patterns.c: Likewise.
7148 * tree-vect-slp.c: Likewise.
7149 * tree-vect-stmts.c: Likewise.
7150 * tree-vectorizer.c: Likewise.
7151 * tree-vrp.c: Likewise.
7154 * ubsan.c: Likewise.
7155 * value-prof.c: Likewise.
7156 * var-tracking.c: Likewise.
7157 * varasm.c: Likewise.
7158 * varpool.c: Likewise.
7159 * vmsdbgout.c: Likewise.
7160 * vtable-verify.c: Likewise.
7162 * wide-int-print.cc: Likewise.
7163 * wide-int.cc: Likewise.
7164 * xcoffout.c: Likewise.
7166 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
7168 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7169 between pass numbering and execution order.
7171 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7173 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7174 check for dependencies.
7176 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7178 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7181 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7183 * real.h (format_helper): New.
7184 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7185 (real_from_target, real_nan, real_2expN, real_value_truncate)
7186 (significand_size, real_from_string2, exact_real_inverse)
7187 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7188 (real_round, real_isinteger, real_from_integer): Replace
7189 machine_mode arguments with format_helper arguments.
7190 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7191 (real_from_integer, real_nan, real_2expN, real_convert)
7192 (real_value_truncate, exact_real_truncate, real_to_target)
7193 (real_from_target, significand_size, real_powi, real_trunc)
7194 (real_floor, real_ceil, real_round, real_isinteger): Replace
7195 machine_mode arguments with format_helper arguments.
7196 (real_to_target_fmt, real_from_target_fmt): Delete.
7197 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7198 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7199 argument with real_format.
7200 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7202 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7204 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7205 (fixed_to_decimal, fixed_convert_from_real)
7206 (real_convert_from_fixed): Fix mode arguments to real_2expN.
7208 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7210 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7211 SCALAR_FLOAT_MODE_P.
7213 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7215 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7216 (completely_scalarize): Comment zero-length arrays.
7217 (get_access_replacement): Correct comment re. precondition.
7219 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7221 * config/i386/i386.c (get_builtin_code_for_version): Set priority
7222 for PROCESSOR_ZNVER1.
7223 (enum processor_model): Add M_AMDFAM17H_znver1.
7224 (struct arch_names_table): Likewise.
7225 * doc/extend.texi: ADD znver1.
7227 2015-10-30 Richard Biener <rguenther@suse.de>
7229 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7230 fold () on single RHSs. Allow CONSTRUCTORS with trailing
7231 zeros to be folded to VECTOR_CSTs.
7232 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7233 * fold-const.c (fold): Use build_vector_from_ctor.
7235 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
7237 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7238 "mov %0.h[0], %1.h[0] to "neon_move".
7239 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7240 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7242 (*cmovsi_insn_uxtw): Likewise.
7244 2015-10-30 Tom de Vries <tom@codesourcery.com>
7246 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7247 unsigned, and initialize, and use initial value instead of hardcoded
7248 constant. Add generic constraints dumping section. Don't dump global
7249 initializers constraints dumping section if empty. Don't update
7250 variable from if unused.
7252 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7254 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7255 flag_checking and/or CHECKING_P to eliminate conditional compilation
7257 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7258 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7259 * config/i386/i386.c (ix86_print_operand_address): Likewise.
7260 (output_387_binary_op): Likewise.
7261 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7262 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7263 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7265 * config/rs6000/rs6000.h: Likewise.
7266 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7268 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
7270 * config/sh/sh.opt (mfdpic): Add missing period.
7272 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7274 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7275 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7276 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7277 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7278 mcore_base_register_rtx_p, mcore_legitimate_index_p,
7279 mcore_legitimate_address_p): New functions.
7280 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7282 2015-10-29 Jeff Law <law@redhat.com>
7284 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7286 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7287 * tree-ssa-threadedge.c
7288 (record_temporary_equivalences_from_stmts_at_dest): Remove
7289 backedge_seen argument and associated code which invalidated
7290 equivalences based on the value of that argument.
7291 (thread_through_normal_block): Corresponding changes.
7293 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7295 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7296 function earlier in the file.
7297 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7298 df_regs_ever_live_p.
7300 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7302 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7305 2015-10-29 Richard Henderson <rth@redhat.com>
7309 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7310 sse check to the exact conditions of PR 67609.
7312 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7314 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7315 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7316 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7317 of the traditional names that TFmode uses for handling IEEE
7318 extended double. If -mfloat128, add KFmode functions for all of
7319 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7320 make TFmode use the same emulation functions as KFmode.
7321 (init_float128_ibm): Likewise.
7322 (init_float128_ieee): Likewise.
7323 (rs6000_generate_compare): For IEEE 128-bit floating point
7324 comparisons, call the unordered comparison function instead of the
7325 ordered comparison function.
7326 (rs6000_expand_float128_convert): Deal with operands that are
7327 memory operands. Restructure the code to use a switch statement on
7328 the mode. Add support for TFmode defaulting to either IBM extended
7329 double or IEEE 128-bit floating point. If the underlying types are
7330 the same, use a move instead of a conversion function.
7331 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7332 use for IEEE 128-bit floating point constants with -mfloat128.
7333 (rs6000_c_mode_for_suffix): Likewise.
7334 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7335 128-bit floating point with IBM extended double floating point.
7336 (rs6000_invalid_binary_op): Likewise.
7337 (rs6000_gen_le_vsx_permute): On little endian systems generate a
7338 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7339 types that can go in vector registers.
7340 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7341 point types that can go in vector registers on little endian
7343 (mark_swaps_for_removal): Likewise.
7344 (rs6000_analyze_swaps): Likewise.
7345 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7347 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7348 rework IEEE 128-bit floating point insns to deal with TFmode being
7349 either IBM extended double or IEEE 128-bit floating point.
7351 (IBM128): Update iterator to add condition that the mode is IBM
7353 (IEEE128): New iterator for IEEE 128-bit floating point.
7354 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7355 (FLOAT128): Likewise.
7356 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7358 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7359 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7360 instead of hard coding TFmode or KFmode.
7361 (negtf2_internal): Likewise.
7362 (neg<mode>2_internal): Likewise.
7363 (abs<mode>2): Likewise.
7364 (abstf2_internal): Likewise.
7365 (abs<mode>2_internal): Likewise.
7366 (ieee_128bit_neg<mode>2): Likewise.
7367 (ieee_128bit_neg<mode>2_internal): Likewise.
7368 (ieee_128bit_abs<mode>2): Likewise.
7369 (ieee_128bit_abs<mode>2_internal): Likewise.
7370 (ieee_128bit_nabs<mode>2): Likewise.
7371 (ieee_128bit_nabs<mode>2_internal): Likewise.
7372 (extendiftf2): Add explicit conversions between 128-bit floating
7373 point types. Drop the old conversions that had become unwieldy.
7374 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7375 (extendifkf2): Likewise.
7376 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7377 (extendtfkf2): Likewise.
7378 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7379 (trunciftf2): Likewise.
7380 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7381 (truncifkf2): Likewise.
7382 (float<SDI:mode><IFKF:mode>2): Likewise.
7383 (trunckftf2): Likewise.
7384 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7385 (trunctfif2): Likewise.
7386 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7387 (extenddftf2): Rework 128-bit floating point conversions to
7388 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7389 KFmode expanders into one function.
7390 (extenddf<mode>2): Likewise.
7391 (extenddftf2_fprs): Likewise.
7392 (extenddf<mode>2_fprs): Likewise.
7393 (extenddftf2_vsx): Likewise.
7394 (extenddf<mode>2_vsx): Likewise.
7395 (extendsftf2): Likewise.
7396 (extendsf<mode>2): Likewise.
7397 (trunctfdf2): Likewise.
7398 (trunc<mode>df2): Likewise.
7399 (trunctfdf2_internal1): Likewise.
7400 (trunc<mode>df2_internal1): Likewise.
7401 (trunctfdf2_internal2): Likewise.
7402 (trunc<mode>df2_internal2): Likewise.
7403 (trunctfsf2): Likewise.
7404 (trunc<mode>sf2): Likewise.
7405 (trunctfsf2_fprs): Likewise.
7406 (trunc<mode>sf2_fprs): Likewise.
7407 (floatsit2f): Likewise.
7408 (floatsi<mode>2): Likewise.
7409 (fix_trunc_helper): Likewise.
7410 (fix_trunc_helper<mode>): Likewise.
7411 (fix_trunctfsi2): Likewise.
7412 (fix_trunc<mode>si2): Likewise.
7413 (fix_trunctfsi2_fprs): Likewise.
7414 (fix_trunc<mode>si2_fprs): Likewise.
7415 (fix_trunctfsi2_internal): Likewise.
7416 (fix_trunc<mode>si2_internal): Likewise.
7417 (fix_trunctfdi2): Likewise.
7418 (fix_trunc<mode>di2): Likewise.
7419 (fixuns_trunctf<mode>2): Likewise.
7420 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7421 (floatditf2): Likewise.
7422 (floatdi<mode>2): Likewise.
7423 (floatuns<mode>tf2): Likewise.
7424 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7425 (cmptf_internal1): Use a mode iterator to add support for both
7426 types (IFmode, TFmode) that support IBM extended double.
7427 (cmp<mode>_internal1): Likewise.
7428 (cmptf_internal2): Likewise.
7429 (cmp<mode>_internal2): Likewise.
7431 * doc/extend.texi (Floating Types): Document __ibm128 and
7432 __float128 on PowerPC.
7434 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7435 -mfloat128 and -mno-float128.
7437 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7439 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7440 floating point modes that can go in vector registers.
7441 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7442 scalar floating point, so that IEEE 128-bit floating point that
7443 can go in vector registers bind with vectors and not FP.
7444 (struct rs6000_args): Add libcall field.
7446 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7447 and -mfloat128-software switches. Replace them with a binary
7449 (-mfloat128): Likewise.
7451 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7452 128-bit floating point types in GPRs, even if the appropriate
7453 option enabling the type was not used.
7454 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7456 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7457 pre-decrement on IEEE 128-bit floating point values.
7458 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7459 is IEEE 128-bit floating point.
7460 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7461 128-bit floating point types that can go in vector registers.
7462 (rs6000_option_override_internal): Change -mfloat128-none and
7463 -mfloat128-software to -mfloat128, and move code to be near other
7464 VSX option handling.
7465 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7466 have the Altivec ABI.
7467 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7468 KFmode floating point nodes. Instead, have three separate nodes.
7469 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7470 eventually moving the long double default to IEEE 128-bit floating
7472 (rs6000_opt_masks): Add -mfloat128.
7473 (struct rs6000_opt_var): Fix typo in comment.
7474 (init_cumulative_args): Initialize libcall field in
7476 (rs6000_function_arg): Treat library functions as if they had
7477 prototypes to prevent IEEE 128-bit support functions from passing
7478 arguments in both GPRs and vector registers.
7479 (rs6000_arg_partial_bytes): Likewise.
7481 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7482 an option that can be turned on via -mcpu=<xxx>.
7484 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7487 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7488 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7489 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7490 double is IBM extended double.
7492 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7495 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7497 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7498 * genconditions.c: Define CHECKING_P in the generated code.
7499 * genextract.c: Use flag_checking in insn_extract.
7500 * gengtype.c (main): Remove conditional compilation.
7501 * gengtype.h: Likewise.
7503 2015-10-29 Jeff Law <law@redhat.com>
7505 PR tree-optimization/67892
7506 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7508 (thread_through_normal_block): If we have seen a backedge, then
7509 do nothing. No longer call find_jump_threads_backwards here.
7510 (thread_across_edge): Use find_jump_threads_backwards to find
7511 jump threads if the old style threader was not successful.
7512 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7513 gsi_last_nondebug_bb. Return NULL if the block does not end
7514 with a control statement.
7515 (find_jump_threads_backwards): Setup code moved here from
7516 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7517 single edge argument instead of name & block.
7518 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7521 2015-10-29 Tom de Vries <tom@codesourcery.com>
7523 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7526 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7528 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7531 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7533 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7535 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7537 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7538 guard_bb0 and use guard_bb throughout.
7540 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7542 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7545 2015-10-29 Richard Biener <rguenther@suse.de>
7548 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7551 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7553 * alias.c: Reorder #include statements and remove duplicates.
7555 * attribs.c: Likewise.
7556 * auto-inc-dec.c: Likewise.
7557 * auto-profile.c: Likewise.
7558 * bb-reorder.c: Likewise.
7559 * bt-load.c: Likewise.
7560 * builtins.c: Likewise.
7561 * caller-save.c: Likewise.
7562 * calls.c: Likewise.
7565 * cfganal.c: Likewise.
7566 * cfgbuild.c: Likewise.
7567 * cfgcleanup.c: Likewise.
7568 * cfgexpand.c: Likewise.
7569 * cfghooks.c: Likewise.
7570 * cfgloop.c: Likewise.
7571 * cfgloopanal.c: Likewise.
7572 * cfgloopmanip.c: Likewise.
7573 * cfgrtl.c: Likewise.
7574 * cgraph.c: Likewise.
7575 * cgraphbuild.c: Likewise.
7576 * cgraphclones.c: Likewise.
7577 * cgraphunit.c: Likewise.
7578 * cilk-common.c: Likewise.
7579 * combine-stack-adj.c: Likewise.
7580 * combine.c: Likewise.
7581 * compare-elim.c: Likewise.
7582 * convert.c: Likewise.
7583 * coverage.c: Likewise.
7584 * cppbuiltin.c: Likewise.
7585 * cprop.c: Likewise.
7587 * cselib.c: Likewise.
7588 * data-streamer-in.c: Likewise.
7589 * data-streamer-out.c: Likewise.
7590 * data-streamer.c: Likewise.
7591 * dbxout.c: Likewise.
7594 * debug.c: Likewise.
7595 * df-core.c: Likewise.
7596 * df-problems.c: Likewise.
7597 * df-scan.c: Likewise.
7599 * dojump.c: Likewise.
7600 * dominance.c: Likewise.
7601 * double-int.c: Likewise.
7603 * dumpfile.c: Likewise.
7604 * dwarf2asm.c: Likewise.
7605 * dwarf2cfi.c: Likewise.
7606 * dwarf2out.c: Likewise.
7607 * emit-rtl.c: Likewise.
7608 * except.c: Likewise.
7609 * explow.c: Likewise.
7610 * expmed.c: Likewise.
7612 * final.c: Likewise.
7613 * fixed-value.c: Likewise.
7614 * fold-const.c: Likewise.
7615 * function.c: Likewise.
7616 * fwprop.c: Likewise.
7618 * generic-match-head.c: Likewise.
7619 * ggc-common.c: Likewise.
7620 * gimple-builder.c: Likewise.
7621 * gimple-expr.c: Likewise.
7622 * gimple-fold.c: Likewise.
7623 * gimple-iterator.c: Likewise.
7624 * gimple-low.c: Likewise.
7625 * gimple-match-head.c: Likewise.
7626 * gimple-pretty-print.c: Likewise.
7627 * gimple-ssa-isolate-paths.c: Likewise.
7628 * gimple-ssa-strength-reduction.c: Likewise.
7629 * gimple-streamer-in.c: Likewise.
7630 * gimple-streamer-out.c: Likewise.
7631 * gimple-walk.c: Likewise.
7632 * gimple.c: Likewise.
7633 * gimplify-me.c: Likewise.
7634 * gimplify.c: Likewise.
7635 * godump.c: Likewise.
7636 * graph.c: Likewise.
7637 * graphite-poly.c: Likewise.
7638 * haifa-sched.c: Likewise.
7639 * hw-doloop.c: Likewise.
7640 * ifcvt.c: Likewise.
7641 * incpath.c: Likewise.
7642 * init-regs.c: Likewise.
7643 * internal-fn.c: Likewise.
7644 * ipa-chkp.c: Likewise.
7645 * ipa-comdats.c: Likewise.
7646 * ipa-cp.c: Likewise.
7647 * ipa-devirt.c: Likewise.
7648 * ipa-icf-gimple.c: Likewise.
7649 * ipa-icf.c: Likewise.
7650 * ipa-inline-analysis.c: Likewise.
7651 * ipa-inline-transform.c: Likewise.
7652 * ipa-inline.c: Likewise.
7653 * ipa-polymorphic-call.c: Likewise.
7654 * ipa-profile.c: Likewise.
7655 * ipa-prop.c: Likewise.
7656 * ipa-pure-const.c: Likewise.
7657 * ipa-ref.c: Likewise.
7658 * ipa-reference.c: Likewise.
7659 * ipa-split.c: Likewise.
7660 * ipa-utils.c: Likewise.
7661 * ipa-visibility.c: Likewise.
7663 * ira-build.c: Likewise.
7664 * ira-color.c: Likewise.
7665 * ira-conflicts.c: Likewise.
7666 * ira-costs.c: Likewise.
7667 * ira-emit.c: Likewise.
7668 * ira-lives.c: Likewise.
7671 * langhooks.c: Likewise.
7673 * lists.c: Likewise.
7674 * loop-doloop.c: Likewise.
7675 * loop-init.c: Likewise.
7676 * loop-invariant.c: Likewise.
7677 * loop-iv.c: Likewise.
7678 * loop-unroll.c: Likewise.
7679 * lower-subreg.c: Likewise.
7680 * lra-assigns.c: Likewise.
7681 * lra-coalesce.c: Likewise.
7682 * lra-constraints.c: Likewise.
7683 * lra-eliminations.c: Likewise.
7684 * lra-lives.c: Likewise.
7685 * lra-remat.c: Likewise.
7686 * lra-spills.c: Likewise.
7688 * lto-cgraph.c: Likewise.
7689 * lto-compress.c: Likewise.
7690 * lto-opts.c: Likewise.
7691 * lto-section-in.c: Likewise.
7692 * lto-section-out.c: Likewise.
7693 * lto-streamer-in.c: Likewise.
7694 * lto-streamer-out.c: Likewise.
7695 * lto-streamer.c: Likewise.
7696 * mode-switching.c: Likewise.
7697 * modulo-sched.c: Likewise.
7698 * omp-low.c: Likewise.
7699 * optabs.c: Likewise.
7700 * opts-global.c: Likewise.
7701 * passes.c: Likewise.
7702 * plugin.c: Likewise.
7703 * postreload-gcse.c: Likewise.
7704 * postreload.c: Likewise.
7705 * predict.c: Likewise.
7706 * print-tree.c: Likewise.
7707 * profile.c: Likewise.
7709 * realmpfr.c: Likewise.
7710 * recog.c: Likewise.
7712 * reg-stack.c: Likewise.
7713 * regcprop.c: Likewise.
7714 * reginfo.c: Likewise.
7715 * regrename.c: Likewise.
7716 * regstat.c: Likewise.
7717 * reload.c: Likewise.
7718 * reload1.c: Likewise.
7719 * reorg.c: Likewise.
7720 * resource.c: Likewise.
7721 * rtl-chkp.c: Likewise.
7722 * rtl-error.c: Likewise.
7723 * rtlanal.c: Likewise.
7724 * rtlhooks.c: Likewise.
7725 * sanopt.c: Likewise.
7726 * sched-deps.c: Likewise.
7727 * sched-ebb.c: Likewise.
7728 * sched-rgn.c: Likewise.
7730 * shrink-wrap.c: Likewise.
7731 * simplify-rtx.c: Likewise.
7732 * stack-ptr-mod.c: Likewise.
7733 * statistics.c: Likewise.
7735 * stor-layout.c: Likewise.
7736 * store-motion.c: Likewise.
7737 * stringpool.c: Likewise.
7738 * symtab.c: Likewise.
7739 * target-globals.c: Likewise.
7740 * targhooks.c: Likewise.
7741 * toplev.c: Likewise.
7742 * tracer.c: Likewise.
7743 * trans-mem.c: Likewise.
7744 * tree-affine.c: Likewise.
7745 * tree-call-cdce.c: Likewise.
7746 * tree-cfg.c: Likewise.
7747 * tree-cfgcleanup.c: Likewise.
7748 * tree-chkp-opt.c: Likewise.
7749 * tree-chkp.c: Likewise.
7750 * tree-chrec.c: Likewise.
7751 * tree-complex.c: Likewise.
7752 * tree-data-ref.c: Likewise.
7753 * tree-dfa.c: Likewise.
7754 * tree-diagnostic.c: Likewise.
7755 * tree-dump.c: Likewise.
7756 * tree-eh.c: Likewise.
7757 * tree-emutls.c: Likewise.
7758 * tree-if-conv.c: Likewise.
7759 * tree-inline.c: Likewise.
7760 * tree-into-ssa.c: Likewise.
7761 * tree-iterator.c: Likewise.
7762 * tree-loop-distribution.c: Likewise.
7763 * tree-nested.c: Likewise.
7764 * tree-nrv.c: Likewise.
7765 * tree-object-size.c: Likewise.
7766 * tree-outof-ssa.c: Likewise.
7767 * tree-parloops.c: Likewise.
7768 * tree-phinodes.c: Likewise.
7769 * tree-predcom.c: Likewise.
7770 * tree-pretty-print.c: Likewise.
7771 * tree-profile.c: Likewise.
7772 * tree-scalar-evolution.c: Likewise.
7773 * tree-sra.c: Likewise.
7774 * tree-ssa-address.c: Likewise.
7775 * tree-ssa-alias.c: Likewise.
7776 * tree-ssa-ccp.c: Likewise.
7777 * tree-ssa-coalesce.c: Likewise.
7778 * tree-ssa-copy.c: Likewise.
7779 * tree-ssa-dce.c: Likewise.
7780 * tree-ssa-dom.c: Likewise.
7781 * tree-ssa-dse.c: Likewise.
7782 * tree-ssa-forwprop.c: Likewise.
7783 * tree-ssa-ifcombine.c: Likewise.
7784 * tree-ssa-live.c: Likewise.
7785 * tree-ssa-loop-ch.c: Likewise.
7786 * tree-ssa-loop-im.c: Likewise.
7787 * tree-ssa-loop-ivcanon.c: Likewise.
7788 * tree-ssa-loop-ivopts.c: Likewise.
7789 * tree-ssa-loop-manip.c: Likewise.
7790 * tree-ssa-loop-niter.c: Likewise.
7791 * tree-ssa-loop-prefetch.c: Likewise.
7792 * tree-ssa-loop-unswitch.c: Likewise.
7793 * tree-ssa-loop.c: Likewise.
7794 * tree-ssa-math-opts.c: Likewise.
7795 * tree-ssa-operands.c: Likewise.
7796 * tree-ssa-phiopt.c: Likewise.
7797 * tree-ssa-phiprop.c: Likewise.
7798 * tree-ssa-pre.c: Likewise.
7799 * tree-ssa-propagate.c: Likewise.
7800 * tree-ssa-reassoc.c: Likewise.
7801 * tree-ssa-sccvn.c: Likewise.
7802 * tree-ssa-scopedtables.c: Likewise.
7803 * tree-ssa-sink.c: Likewise.
7804 * tree-ssa-strlen.c: Likewise.
7805 * tree-ssa-structalias.c: Likewise.
7806 * tree-ssa-tail-merge.c: Likewise.
7807 * tree-ssa-ter.c: Likewise.
7808 * tree-ssa-threadedge.c: Likewise.
7809 * tree-ssa-threadupdate.c: Likewise.
7810 * tree-ssa-uncprop.c: Likewise.
7811 * tree-ssa-uninit.c: Likewise.
7812 * tree-ssa.c: Likewise.
7813 * tree-ssanames.c: Likewise.
7814 * tree-stdarg.c: Likewise.
7815 * tree-streamer-in.c: Likewise.
7816 * tree-streamer-out.c: Likewise.
7817 * tree-streamer.c: Likewise.
7818 * tree-switch-conversion.c: Likewise.
7819 * tree-tailcall.c: Likewise.
7820 * tree-vect-data-refs.c: Likewise.
7821 * tree-vect-generic.c: Likewise.
7822 * tree-vect-loop-manip.c: Likewise.
7823 * tree-vect-loop.c: Likewise.
7824 * tree-vect-patterns.c: Likewise.
7825 * tree-vect-slp.c: Likewise.
7826 * tree-vect-stmts.c: Likewise.
7827 * tree-vectorizer.c: Likewise.
7828 * tree-vrp.c: Likewise.
7831 * ubsan.c: Likewise.
7832 * value-prof.c: Likewise.
7833 * var-tracking.c: Likewise.
7834 * varasm.c: Likewise.
7835 * varpool.c: Likewise.
7836 * vtable-verify.c: Likewise.
7838 * wide-int-print.cc: Likewise.
7839 * wide-int.cc: Likewise.
7840 * xcoffout.c: Likewise.
7842 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7844 * Makefile.in (NO_PIE_CFLAGS): New.
7845 (NO_PIE_FLAG): Likewise.
7846 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7847 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7848 (BUILD_NO_PIE_CFLAGS): Likewise.
7849 (BUILD_NO_PIE_FLAG): Likewise.
7850 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7851 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7852 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7853 $(BUILD_NO_PIE_CFLAGS).
7854 (BUILD_CXXFLAGS): Likewise.
7855 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7856 $(BUILD_NO_PIE_FLAG).
7857 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7858 (BUILD_NO_PIE_FLAG): Likewise.
7859 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7860 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7861 * configure: Regenerated.
7863 2015-10-29 Richard Biener <rguenther@suse.de>
7866 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7867 unsigned conditonal negation to ABS_EXPR.
7869 2015-10-29 Richard Biener <rguenther@suse.de>
7871 * gimple-match-head.c (gimple_simplify): Remove premature checking
7872 of builtin_decl_implicit of function calls we simplify.
7874 2015-10-29 Bin Cheng <bin.cheng@arm.com>
7876 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7877 (get_computation_cost_at): Ditto.
7878 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7881 2015-10-28 Tom de Vries <tom@codesourcery.com>
7883 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7886 2015-10-28 Jason Merrill <jason@redhat.com>
7888 * Makefile.in (TAGS): Include libcpp and libiberty.
7890 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7892 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7893 (extract_omp_for_data): Remove OpenACC special handling of
7896 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7897 (struct parallel): Update comment.
7898 (nvptx_reorg): Likewise.
7899 (nvptx_neuter): Cleanup whitespace.
7901 2015-10-28 Richard Henderson <rth@redhat.com>
7903 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7905 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7908 * config/avr/predicates.md (low_io_address_operand): Don't
7909 consider MODE when computing upper bound.
7910 (io_address_operand): Likewise.
7912 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
7914 * fold-const.c (operand_equal_p): Do not verify that types are
7915 compatible for MEM_REFs.
7917 2015-10-28 Richard Biener <rguenther@suse.de>
7919 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7920 in simplifying VEC_COND_EXPR conditions.
7922 2015-10-28 Tom de Vries <tom@codesourcery.com>
7924 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7925 into vi_next of a full_var.
7927 2015-10-28 Tom de Vries <tom@codesourcery.com>
7929 * tree-ssa-structalias.c (new_var_info, make_heapvar)
7930 (make_constraint_from_restrict, make_constraint_from_global_restrict)
7931 (create_function_info_for, create_variable_info_for_1)
7932 (create_variable_info_for): Add and handle add_id parameter.
7933 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7934 (init_base_vars): Add extra argument to calls to new_var_info.
7935 (get_vi_for_tree): Add extra argument to call to
7936 create_variable_info_for.
7937 (process_constraint, do_deref, process_all_all_constraints): Add extra
7938 argument to calls to new_scalar_tmp_constraint_exp.
7939 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7940 argument to calls to make_heapvar.
7941 (make_restrict_var_constraints): Add extra argument to call to
7942 make_constraint_from_global_restrict.
7943 (intra_create_variable_infos): Add extra argument to call to
7944 create_variable_info_for_1.
7945 (ipa_pta_execute): Add extra argument to call to
7946 create_function_info_for.
7948 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7950 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7951 (sibcall_value): Likewise.
7953 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7955 * config/nvptx/nvptx.h (struct machine_function): Add
7957 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7958 nvptx_expand_oacc_join): Declare.
7959 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7960 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7961 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7962 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7963 UNSPECV_JOINING, UNSPECV_JOIN): New.
7964 (BITS, BITD): New mode iterators.
7965 (br_true_uni, br_false_uni): New.
7966 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7967 (oacc_dim_size, oacc_dim_pos): New.
7968 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7969 (oacc_fork, oacc_join): New.
7970 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7971 (worker_load<mode>, worker_store<mode>): New.
7972 (nvptx_barsync): New.
7973 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7974 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7975 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7976 worker_bcast_sym): New.
7977 (nvptx_option_override): Initialize worker broadcast buffer.
7978 (nvptx_emit_forking, nvptx_emit_joining): New.
7979 (nvptx_init_axis_predicate): New.
7980 (nvptx_declare_function_name): Init axis predicates.
7981 (nvptx_expand_call): Add fork/join markers around routine call.
7982 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7983 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7984 (nvptx_gen_vcast): New.
7985 (struct wcast_data_t): New.
7986 (enum propagate_mask): New.
7987 (nvptx_gen_wcast): New.
7988 (nvptx_print_operand): Add 'S' case.
7989 (struct parallel): New.
7990 (parallel::parallel, parallel::~parallel): New.
7991 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7992 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7993 nvptx_find_par, nvptx_discover_pars): New.
7994 (nvptx_propagate): New.
7995 (vprop_gen, nvptx_vpropagate): New.
7996 (wprop_gen, nvptx_wpropagate): New.
7998 (nvptx_single, nvptx_skip_par): New.
7999 (nvptx_process_pars, nvptx_neuter_pars): New.
8000 (ntptx_reorg): Split blocks, generate parallel structure, apply
8002 (nvptx_cannot_copy_insn_p): New.
8003 (nvptx_file_end): Emit worker broadcast decl.
8004 (nvptx_goacc_fork_join): New.
8005 (TARGET_CANNOT_COPY_INSN_P): Override.
8006 (TARGET_GOACC_FORK_JOIN): Override.
8008 2015-10-28 Richard Biener <rguenther@suse.de>
8010 * fold-const.c (negate_expr_p): Adjust the division case to
8011 properly avoid introducing undefined overflow.
8012 (fold_negate_expr): Likewise.
8014 2015-10-28 Richard Biener <rguenther@suse.de>
8016 PR tree-optimization/65962
8017 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8018 Avoid creating loop carried dependences also for outer loops
8019 of the loop a use to replace is in.
8021 2015-10-28 Richard Biener <rguenther@suse.de>
8023 * common.opt (fchecking): New flag controlling flag_checking.
8024 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8025 * timevar.c (timer::print): Adjust output.
8026 * doc/invoke.texi (fchecking): Document.
8028 2015-10-28 Richard Biener <rguenther@suse.de>
8031 * fold-const.c (negate_expr_p): We cannot negate plus or minus
8032 if overflow is not wrapping. Likewise multiplication unless
8033 one operand is constant and not power of two.
8034 (fold_negate_expr): Adjust accordingly.
8036 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8038 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8040 (is_oacc_parallel, is_oacc_kernels): New.
8041 (enclosing_target_ctx): May return NULL.
8042 (ctx_in_oacc_kernels_region): New.
8043 (check_oacc_kernel_gwv): New.
8044 (oacc_loop_or_target_p): Delete.
8045 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
8046 operands. Strip reductions fro kernels.
8047 (scan_omp_target): Don't calculate gwv mask.
8048 (lower_oacc_head_mark, lower_oacc_loop_marker,
8049 lower_oacc_head_tail): New.
8050 (struct oacc_collapse): New.
8051 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8052 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8053 Remove OpenACC handling.
8054 (expand_oacc_for): New.
8055 (expand_omp_for): Call expand_oacc_for.
8056 (lower_omp_for): Call lower_oacc_head_tail.
8058 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
8060 * attribs.c (check_attribute_tables): New function, broken out from...
8061 (init_attributes): Use it.
8062 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8063 gcc_checking_assert and checking_* functions to eliminate
8064 ENABLE_CHECKING conditionals.
8065 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8066 (pass_expand::execute): Likewise.
8067 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8068 * cgraphunit.c (mark_functions_to_output): Likewise.
8069 (cgraph_node::expand_thunk): Likewise.
8070 (symbol_table::compile): Likewise.
8071 * ddg.c (add_cross_iteration_register_deps): Likewise.
8072 (create_ddg_all_sccs): Likewise.
8073 * df-core.c (df_finish_pass, df_analyze): Likewise.
8074 * diagnostic-core.h: Likewise.
8075 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8076 * dominance.c (calculate_dominance_info): Likewise.
8077 * dwarf2out.c (add_AT_die_ref): Likewise.
8078 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8079 (loc_list_from_tree, gen_lexical_block_die): Likewise.
8080 gen_type_die_with_usage, gen_type_die): Likewise.
8081 (dwarf2out_decl): Likewise.
8082 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8083 * except.c (duplicate_eh_regions): Likewise.
8084 * fwprop.c (register_active_defs, update_df_init): Likewise.
8085 (fwprop_init, fwprop_done): Likewise.
8086 (update_uses): Likewise.
8087 * ggc-page.c (ggc_grow): Likewise.
8088 * gimplify.c (gimplify_body): Likewise.
8089 (gimplify_hasher::equal): Likewise.
8090 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8091 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8093 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8094 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8095 * hash-table.h (::find_empty_slot_for_expand): Likewise.
8096 * ifcvt.c (if_convert): Likewise.
8097 * ipa-cp.c (ipcp_propagate_stage): Likewise.
8098 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8099 (odr_type_p, odr_types_equivalent_p): Likewise.
8100 (add_type_duplicate, get_odr_type): Likewise.
8101 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8102 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8103 (sem_item_optimizer::verify_classes): Likewise.
8104 (sem_item_optimizer::traverse_congruence_split): Likewise.
8105 (sem_item_optimizer::checking_verify_classes): New.
8106 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8108 * cfgrtl.c (commit_edge_insertions): Likewise.
8109 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8110 (rtl_flow_call_edges_add): Likewise.
8111 * cgraph.c (symbol_table::create_edge): Likewise.
8112 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8113 * cgraph.h (symtab_node): Likewise.
8114 (symtab_node::checking_verify_symtab_nodes): Define.
8115 (cgraph_node::checking_verify_cgraph_nodes): Define.
8116 * cfghooks.h (checking_verify_flow_info): Define.
8117 * cfgloop.h (checking_verify_loop_structure): Define.
8118 * dominance.h (checking_verify_dominators): Define.
8119 * et-forest.c: Fix comment.
8120 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8121 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8122 ENABLE_CHECKING conditionals.
8123 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8124 * ipa-inline.c (inline_small_functions): Likewise.
8125 (early_inliner): Likewise.
8126 * ipa-inline.h (estimate_edge_growth): Likewise.
8127 * ipa-visibility.c (function_and_variable_visibility): Likewise.
8128 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8129 (ipa_single_use): Likewise.
8130 * ira-int.h: Likewise.
8131 * ira.c (ira): Likewise.
8132 * loop-doloop.c (doloop_optimize_loops): Likewise.
8133 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8134 * loop-invariant.c (move_loop_invariants): Likewise.
8135 * lra-assigns.c (lra_assign): Likewise.
8136 * lra-constraints.c (lra_constraints): Likewise.
8137 * lra-eliminations.c (lra_eliminate): Likewise.
8138 * lra-int.h (struct lra_reg): Likewise.
8139 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8140 (lra_create_live_ranges_1): Likewise.
8141 * lra-remat.c (create_remat_bb_data): Likewise.
8142 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8144 (check_rtl): Always define. Remove incorrect guard around
8145 extract_constrain_insn call.
8146 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8147 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8148 ENABLE_CHECKING conditionals.
8149 * lto-streamer-out.c (DFS::DFS): Likewise.
8150 (lto_output): Likewise.
8151 * lto-streamer.c (lto_streamer_init): Likewise.
8152 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8153 expand_omp_target, execute_expand_omp): Likewise.
8154 (lower_omp_target): Likewise.
8155 * passes.c (execute_function_todo): Likewise.
8156 (execute_todo, execute_one_pass): Likewise.
8157 (verify_curr_properties): Always define.
8158 * predict.c (tree_estimate_probability: Use flag_checking,
8159 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8160 ENABLE_CHECKING conditionals.
8161 (propagate_freq): Likewise.
8162 * pretty-print.c (pp_format): Likewise.
8163 * real.c (real_to_decimal_for_mode): Likewise.
8164 * recog.c (split_all_insns): Likewise.
8165 * regcprop.c (kill_value_one_regno): Likewise.
8166 (copy_value): Likewise.
8167 (validate_value_data): Define unconditionally.
8168 * reload.c: Fix comment.
8169 * timevar.c: Include options.h
8170 * tree-ssa.h (checking_verify_ssa): Define.
8171 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8172 * sched-deps.c (CHECK): Remove unused macro.
8173 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8174 gcc_checking_assert and checking_* functions to eliminate
8175 ENABLE_CHECKING conditionals.
8176 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8177 * sel-sched.c (struct moveop_static_params): Likewise.
8178 (find_best_reg_for_expr, move_cond_jump): Likewise.
8179 (move_op_orig_expr_not_found): Likewise.
8180 (code_motion_process_successors, move_op): Likewise.
8181 * ssa-iterators.h (first_readonly_imm_use): Likewise.
8182 (next_readonly_imm_use): Likewise.
8183 * store-motion.c (compute_store_table): Likewise.
8184 * symbol-summary.h (function_summary::function_summary): Likewise.
8185 * target.h (cumulative_args_t): Likewise.
8186 (get_cumulative_args, pack_cumulative_args): Likewise.
8187 * timevar.c: (timer::print): Likewise.
8188 * trans-mem.c (ipa_tm_execute): Likewise.
8189 * tree-cfg.c (move_stmt_op): Likewise.
8190 (move_sese_region_to_fn): Likewise.
8191 (gimple_flow_call_edges_add): Likewise.
8192 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8194 * tree-eh.c (remove_unreachable_handlers): Likewise.
8195 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8196 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8197 * tree-into-ssa.c (update_ssa): Likewise.
8198 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8199 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8200 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8201 * tree-predcom.c (suitable_component_p): Likewise.
8202 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8203 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8204 * tree-ssa-live.c (verify_live_on_entry): Likewise.
8205 * tree-ssa-live.h (register_ssa_partition): Likewise.
8206 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8207 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8208 (tree_transform_and_unroll_loop): Likewise.
8209 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8210 * tree-ssa-operands.c (get_expr_operands): Likewise.
8211 * tree-ssa-propagate.c (replace_exp_1): Likewise.
8212 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8213 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8214 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8215 * tree-ssanames.c (release_ssa_name_fn): Likewise.
8216 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8217 * tree-vect-loop-manip.c
8218 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8219 (slpeel_checking_verify_cfg_after_peeling): Likewise.
8220 (vect_do_peeling_for_loop_bound): Likewise.
8221 (vect_do_peeling_for_alignment): Likewise.
8222 * tree-vrp.c (supports_overflow_infinity): Likewise.
8223 (set_value_range): Likewise.
8224 * tree.c (free_lang_data_in_cgraph): Likewise.
8225 * value-prof.c (gimple_remove_histogram_value): Likewise.
8226 (free_hist): Likewise.
8227 * var-tracking.c (canonicalize_values_star): Likewise.
8228 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8230 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8232 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8233 IFN_GOACC_LOOP): New.
8234 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8235 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8236 IFN_UNIQUE_OACC_TAIL_MARK.
8237 (enum ifn_goacc_loop_kind): New.
8238 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8239 IFN_UNIQUE_OACC_JOIN cases.
8240 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8241 (expand_GOACC_LOOP): New.
8242 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8243 * omp-low.c: Include gimple-pretty-print.h.
8244 (struct oacc_loop): New.
8245 (enum oacc_loop_flags): New.
8246 (oacc_thread_numbers): New.
8247 (oacc_xform_loop): New.
8248 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8249 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8250 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8251 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8252 oacc_loop_discovery): New.
8253 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8254 oacc_loop_process): New.
8255 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8256 (execute_oacc_device_lower): Discover & process loops. Process
8258 * target.def (goacc.fork_join): Change sense of hook, clarify
8260 * doc/tm.texi: Regenerated.
8262 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8264 * target-insns.def (oacc_fork, oacc_join): Define.
8265 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8266 (goacc.fork_join): New GOACC hook.
8267 * targhooks.h (default_goacc_fork_join): Declare.
8268 * omp-low.c (default_goacc_forkjoin): New.
8269 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8270 * doc/tm.texi: Regenerate.
8272 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8274 * omp-low.c (oacc_init_rediction_array): New.
8275 (oacc_initialize_reduction_data): Initialize array.
8277 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8279 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8281 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8283 * internal-fn.c (expand_UNIQUE): New.
8284 * internal-fn.h (enum ifn_unique_kind): New.
8285 * internal-fn.def (IFN_UNIQUE): New.
8286 * target-insns.def (unique): Define.
8287 * gimple.h (gimple_call_internal_unique_p): New.
8288 * gimple.c (gimple_call_same_target_p): Check internal fn
8290 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8291 * tree-ssa-threadedge.c
8292 (record_temporary_equivalences_from_stmts): Likewise.
8293 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8295 2015-10-27 Richard Henderson <rth@redhat.com>
8298 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8299 narrowing subregs on SSE and MMX registers.
8300 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8301 appear to be sub-words of multi-register pseudos must be rejected.
8302 * doc/tm.texi: Regenerate.
8304 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8307 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8308 operands[0] is a reg before taking its REGNO in split condition.
8309 (*movdi_aarch64): Likewise.
8311 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8313 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8314 Handle floating point inner modes properly.
8316 2015-10-27 Alan Hayward <alan.hayward@arm.com>
8319 (vectorizable_live_operation): Change iterator.
8321 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8322 Aditya Kumar <aditya.k7@samsung.com>
8324 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8325 function to schedule based on isl_schedule_node.
8326 (get_schedule_map_st): New schedule optimizer based on
8328 (scop_get_domains): New. Return the isl_union_set containing the
8329 domains of all the pbbs.
8330 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8332 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
8335 * calls.c (prepare_call_address): Don't handle -fno-plt here.
8336 * config/i386/i386.c (ix86_expand_call): Generate indirect call
8337 via GOT for -fno-plt. Support indirect call via GOT for x32.
8338 * config/i386/predicates.md (sibcall_memory_operand): Allow
8341 2015-10-27 Richard Biener <rguenther@suse.de>
8343 PR tree-optimization/68104
8344 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8345 strided access check ...
8346 (vect_compute_data_refs_alignment): ... here.
8348 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8349 Joseph Myers <joseph@codesourcery.com>
8350 Mark Shinwell <shinwell@codesourcery.com>
8351 Andrew Stubbs <ams@codesourcery.com>
8352 Rich Felker <dalias@libc.org>
8354 * config.gcc: Handle --enable-fdpic.
8355 * config/sh/constraints.md (Ccl): New constraint.
8356 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8357 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8359 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8361 * config/sh/sh-protos.h (function_symbol_result): New struct.
8362 (function_symbol): Return function_symbol_result.
8363 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8365 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8367 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8368 (sh_option_override): Force -fPIC if FDPIC is in effect.
8369 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8370 UNSPEC_GOTOFFFUNCDESC cases.
8371 (prepare_move_operands): Use FDPIC initial GOT register for
8372 TLS-related GOT access; inhibit cross-section address offset constants
8374 (sh_assemble_integer): New function.
8375 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8376 PC-relative call sites.
8377 (expand_ashiftrt): Adapt invocation of function_symbol.
8378 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8379 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8380 UNSPEC_GOTOFFFUNCDESC.
8381 (legitimize_pic_address): Resolve function symbols to function
8382 descriptors for FDPIC. Do not use GOT-relative addressing for local
8383 data that may be read-only on FDPIC.
8384 (sh_emit_storesi, sh_emit_storehi): New functions.
8385 (sh_trampoline_init): Generate FDPIC trampolines.
8386 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8387 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8388 (sh_output_mi_thunk): Generate FDPIC call.
8389 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8390 FDPIC, generate call site labels to use PC-relative addressing rather
8391 than GOT-relative addressing.
8392 (sh_conditional_register_usage): Make PIC register fixed and call used
8393 when FDPIC is in effect.
8394 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8395 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8396 sh_get_fdpic_reg_initial_val): New functions.
8397 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8399 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8400 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8401 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8402 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8404 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8405 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8406 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8407 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8409 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8410 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8411 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8412 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8413 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8414 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8415 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8416 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8417 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8418 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8419 block_move_real, block_lump_real, block_move_real_i4,
8420 block_lump_real_i4): Add support for FDPIC calls.
8421 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8422 call_value_pop): Adjust for new function_symbol signature.
8423 * config/sh/sh.opt (-mfdpic): New option.
8424 * doc/install.texi (Options specification): Document --enable-fdpic.
8425 * doc/invoke.texi (SH Options): Document -mfdpic.
8428 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8430 PR tree-optimization/65963
8431 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8432 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8434 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8437 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8438 * config/arm/constraints.md (Dp): Update callsite.
8439 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8441 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8443 * builtins.c (fold_builtin_load_exponent): Rename to...
8444 (fold_const_builtin_load_exponent): ...this and only handle
8446 (fold_builtin_2): Update accordingly.
8447 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8449 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8451 * builtins.c (fold_builtin_logb): Rename to...
8452 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8453 (fold_builtin_significand): Rename to...
8454 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8455 (fold_builtin_1): Update accordingly.
8457 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8459 * builtins.c (fold_builtin_fmin_fmax): Delete.
8460 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8461 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8463 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8465 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8466 for register extension into sign and zero register extension.
8467 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8468 for sign and zero register extension.
8469 (cortexa57_addrcost_table): Likewise.
8470 (xgene1_addrcost_table): Likewise.
8472 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8474 * fold-const.c (fold_minmax): Delete.
8475 (fold_binary_loc): Don't call it.
8476 * match.pd: Add rules previously handled by fold_minmax.
8478 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8480 * builtins.c (fold_builtin_fma): Remove constant handling.
8481 (fold_builtin_3): Handle constant fma arguments here.
8483 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8485 * builtins.c (fold_builtin_fabs): Remove constant handling.
8486 (fold_builtin_abs): Likewise.
8488 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8490 * builtins.c (fold_builtin_copysign): Delete.
8491 (fold_builtin_2): Handle constant copysign arguments here.
8492 * match.pd: Add rules previously handled by fold_builtin_copysign.
8494 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8496 * builtins.c (fold_builtin_signbit): Delete.
8497 (fold_builtin_2): Handle constant signbit arguments here.
8498 * match.pd: Add rules previously handled by fold_builtin_signbit.
8500 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8502 * match.pd: Handle sqrt(x) cmp 0 specially.
8504 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8506 * tree-vect-generic.c (expand_vector_operations_1): Check
8507 optab type before using it.
8509 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8511 * config/aarch64/aarch64-protos.h
8512 (struct tune_params): Add autoprefetcher_model field.
8513 * config/aarch64/aarch64.c: Include params.h
8514 (generic_tunings): Specify autoprefetcher_model value.
8515 (cortexa53_tunings): Likewise.
8516 (cortexa57_tunings): Likewise.
8517 (cortexa72_tunings): Likewise.
8518 (thunderx_tunings): Likewise.
8519 (xgene1_tunings): Likewise.
8520 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8521 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8522 (aarch64_override_options_internal): Set
8523 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8525 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8527 * builtins.c (fold_builtin_exponent): Delete.
8528 (fold_builtin_2): Handle constant expN arguments here.
8529 * match.pd: Fold expN(logN(x)) -> x.
8531 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8533 * builtins.c (fold_builtin_powi): Delete.
8534 (fold_builtin_2): Handle constant powi arguments here.
8535 * match.pd: Add rules previously handled by fold_builtin_powi.
8537 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8539 * builtins.c (fold_builtin_pow): Delete in favor of...
8540 (fold_const_builtin_pow): ...this new function. Only handle constant
8542 (fold_builtin_2): Update accordingly.
8543 * match.pd: Add rules previously handled by fold_builtin_pow.
8545 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8547 * builtins.c (fold_builtin_hypot): Delete.
8548 (fold_builtin_2): Handle constant hypot arguments here.
8549 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8550 hypot(x, x) to fabs(x)*sqrt(2).
8552 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8554 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8555 instead of make_ssa_name if not yet in SSA form.
8557 2015-10-27 Richard Biener <rguenther@suse.de>
8559 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8560 (clear_edges): Likewise.
8561 * cfg.h (clear_edges): Adjust prototype.
8562 * cfgexpand.c (pass_expand::execute): Adjust.
8563 * cfgloop.c (release_recorded_exits): Add function argument and use
8565 * cfgloop.h (release_recorded_exits): Adjust prototype.
8566 (loops_state_satisfies_p): Add overload with function argument.
8567 (loops_state_set): Likewise.
8568 (loops_state_clear): Likewise.
8569 (struct loop_iterator): Add function argument to constructor
8570 and iterator and use it instead of cfun.
8571 (FOR_EACH_LOOP_FN): New macro.
8572 (loop_optimizer_finalize): Add overload with function argument.
8573 * loop-init.c (loop_optimizer_init): Adjust.
8574 (fix_loop_structure): Likewise.
8575 (loop_optimizer_finaliz): Add function argument and use it
8577 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8578 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8579 * cgraph.c (release_function_body): Do not push/pop cfun.
8580 * final.c (rest_of_clean_state): Adjust.
8581 * graphite.c (graphite_finalize): Likewise.
8582 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8583 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8584 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8585 (tree_unroll_loops_completely): Likewise.
8586 (pass_complete_unrolli::execute): Likewise.
8587 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8588 Add function argument and use it instead of cfun.
8589 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8591 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8592 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8594 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8595 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8597 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8598 * tree-vrp.c (execute_vrp): Adjust.
8599 * value-prof.c (free_histograms): Add function argument and use it
8601 * value-prof.h (free_histograms): Adjust prototype.
8603 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8605 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8606 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8607 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8609 2015-10-27 Tom de Vries <tom@codesourcery.com>
8611 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8614 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8616 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8617 (inv_can_prop_to_addr_use): New function.
8618 (record_use): Call can_prop_to_addr_uses, set the new field.
8619 (get_inv_cost): Count cost if inv can't be propagated into its
8622 2015-10-26 Doug Evans <dje@google.com>
8624 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8626 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8628 * match.pd (fold_widened_comparison): Apply simplifications to all
8631 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8633 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8634 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8635 * doc/tm.texi: Regenerated.
8636 * reorg.c (dbr_schedule): Use new hook.
8637 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8639 2015-10-26 Jeff Law <law@redhat.com>
8641 PR tree-optimization/68013
8642 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8643 Make sure the first block in the path is in VISITED_BBs.
8645 2015-10-26 Richard Biener <rguenther@suse.de>
8646 Dominik Vogt <vogt@linux.vnet.ibm.com>
8649 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8650 Properly prune ref->ref for accesses outside of ref.
8652 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8654 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8655 new statements to be inserted if inplace. Allow calls to have
8658 2015-10-26 Richard Biener <rguenther@suse.de>
8660 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8661 (do_valueize): New function.
8662 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8664 * tree-ssa-threadedge.c: Remove builtins.h include, include
8666 (fold_assignment_stmt): Remove.
8667 (threadedge_valueize): New function.
8668 (record_temporary_equivalences_from_stmts): Use
8669 gimple_fold_stmt_to_constant_1, note additional cleanup
8672 2015-10-26 Richard Biener <rguenther@suse.de>
8674 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8675 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8677 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8679 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8680 VEC_COND_EXPR types.
8682 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8684 * auto-inc-dec.c (insert_move_insn_before): Delete.
8685 (attempt_change): Remember to cost the simple move in the
8686 FORM_PRE_ADD and FORM_POST_ADD cases.
8688 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8691 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8692 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8694 2015-10-26 Tom de Vries <tom@codesourcery.com>
8696 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8698 (intra_create_variable_infos): ... here.
8700 2015-10-26 Tom de Vries <tom@codesourcery.com>
8702 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8703 restrict_pointer_p and recursive_restrict_p variables.
8705 2015-10-26 Tom de Vries <tom@codesourcery.com>
8707 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8708 get_vi_for_tree call.
8710 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8713 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8714 ptarget_oval or ptarget_bool are const0_rtx.
8716 2015-10-26 Christian Bruel <christian.bruel@st.com>
8718 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8719 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8720 * cp/method.c (implicitly_declare_fn): Likewise.
8721 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8722 * java/class.c (add_method_1): Likewise.
8724 2015-10-26 Richard Biener <rguenther@suse.de>
8726 * alloc-pool.h (base_pool_allocator): Use placement new.
8727 (base_pool_allocator::remove): Likewise. Compute size outside of
8730 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8732 * builtins.c (do_real_to_int_conversion): New function.
8733 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8734 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8736 * match.pd: Add rules previously handled by fold_fixed_mathfn
8737 and fold_builtin_int_roundingfn.
8739 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8741 * match.pd: Use macros to define built-in operator lists.
8743 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8744 Richard Biener <rguenther@suse.de>
8746 * genmatch.c (dt_simplify::gen): Skip captures that are
8748 (parser::parse_expr): Allow captures in results too.
8749 * builtins.c (fold_builtin_cexp): Delete.
8750 (fold_builtin_1): Handle constant cexp arguments here.
8751 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8753 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8755 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8756 conditional compilation.
8757 (base_pool_allocator::remove): Use flag_checking.
8759 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8761 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8764 * dojump.c (do_compare_and_jump): Canonicalize both function and
8767 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8770 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8773 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8776 * ipa-polymorphic-call.c
8777 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8778 instance offset with offset of outer type.
8780 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8782 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8784 2015-10-23 Caroline Tice <cmtice@google.com>
8786 (from Richard Biener
8787 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8788 call to iterative_hash_host_wide_int.
8790 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8792 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8795 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8797 * tree-vect-generic.c (expand_vector_operations_1): Check
8798 optab exists before use it.
8800 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8802 * tree-vect-generic.c (expand_vector_condition): Avoid
8803 uninitialized variable warning.
8805 2015-10-23 Jeff Law <law@redhat.com>
8807 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8809 (execute_todo): Call it here.
8810 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8812 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8814 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8815 Szabolcs Nagy <szabolcs.nagy@arm.com>
8817 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8819 2015-10-23 Jeff Law <law@redhat.com>
8821 PR tree-optimization/67830
8822 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8823 Explicitly verify the mask has no bits outside the type of
8824 the innermost operands.
8826 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8827 Szabolcs Nagy <szabolcs.nagy@arm.com>
8829 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8830 (MUSL_DYNAMIC_LINKER64): Define.
8831 (GNU_USER_DYNAMIC_LINKER32): Update.
8832 (GNU_USER_DYNAMIC_LINKER64): Update.
8833 (CHOOSE_DYNAMIC_LINKER): Update.
8835 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8836 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8837 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8838 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8839 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8840 (CHOOSE_DYNAMIC_LINKER): Update.
8841 (INCLUDE_DEFAULTS): Redefine.
8843 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8845 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8847 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8848 comparing addresses.
8850 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8852 * fold-const.c (operand_equal_p): Handle matching of vector
8855 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8857 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8859 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8860 Andrew Pinski <apinski@cavium.com>
8862 PR rtl-optimization/67736
8863 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8866 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8869 * tree.c (build_truth_vector_type): Support BLK mode
8870 returned for boolean vector.
8872 2015-10-23 Alan Hayward <alan.hayward@arm.com>
8874 PR tree-optimization/65947
8876 (vect_is_simple_reduction_1): Find condition reductions.
8877 (vect_model_reduction_cost): Add condition reduction costs.
8878 (get_initial_def_for_reduction): Add condition reduction initial var.
8879 (vect_create_epilog_for_reduction): Add condition reduction epilog.
8880 (vectorizable_reduction): Condition reduction support.
8881 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8882 * doc/sourcebuild.texi (Vector-specific attributes): Document
8885 2015-10-23 Richard Biener <rguenther@suse.de>
8887 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8890 2015-10-23 Richard Biener <rguenther@suse.de>
8891 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8893 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8894 into (A ^ B) - B to match.pd
8895 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8897 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8899 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8901 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8903 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8905 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8906 INTEGER_CST@1)): New simplifier.
8908 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
8910 * builtins.c (integer_valued_real_p): Move to fold-const.c.
8911 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8912 (fold_builtin_ceil, fold_builtin_round): Delete.
8913 (fold_builtin_1): Handle constant trunc, floor, ceil and round
8915 * convert.c (convert_to_real): Remove narrowing of rounding
8917 * fold-const.h (integer_valued_real_unary_p)
8918 (integer_valued_real_binary_p, integer_valued_real_call_p)
8919 (integer_valued_real_single_p, integer_valued_real_p): Declare.
8920 * fold-const.c (tree_single_nonnegative_warnv_p): Move
8921 name_registered_for_update_p check to SSA_NAME case statement.
8922 Don't call tree_simple_nonnegative_warnv_p for SSA names.
8923 (integer_valued_real_unary_p, integer_valued_real_binary_p)
8924 (integer_valued_real_call_p, integer_valued_real_single_p)
8925 (integer_valued_real_invalid_p): New functions.
8926 (integer_valued_real_p): Move from fold-const.c and rework
8927 to call the functions above. Handle SSA names.
8928 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8929 * gimple-fold.c (gimple_assign_integer_valued_real_p)
8930 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8931 (gimple_stmt_integer_valued_real_p): New functions.
8932 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8933 Fold f(x)->x for the same f if x is known to be integer-valued.
8934 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8935 the result. Canonicalize floor(x) as trunc(x) if x is
8938 2015-10-23 Tom de Vries <tom@codesourcery.com>
8940 * tree-ssa-structalias.c (intra_create_variable_infos): Use
8941 make_constraint_from.
8943 2015-10-23 Tom de Vries <tom@codesourcery.com>
8945 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8946 setting of is_full_var in case of a single field.
8948 2015-10-22 Martin Sebor <msebor@redhat.com>
8951 * config/i386/i386.opt: Add missing periods to the ends of sentences.
8952 * config/msp430/msp430.opt: Same.
8954 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8956 * doc/extend.exp (Global Register Variables): Rewrite.
8958 2015-10-22 Jeff Law <law@redhat.com>
8960 * genattrtab.c (main): If we do not have any annul-true or annul-false
8961 slots, then write out a dummy eligible_for_annul_true or
8962 eligible_for_annul_false as needed.
8964 2015-10-22 Nick Clifton <nickc@redhat.com>
8966 * config/msp430/msp430.opt: Add -msilicon-errata and
8967 -msilicon-errata-warn.
8968 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8970 * doc/invoke.texi: Document new options.
8972 2015-10-22 Richard Biener <rguenther@suse.de>
8974 PR tree-optimization/58497
8975 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8976 (expand_vector_operations_1): Use it. Lower operations on
8977 all uniform vectors to scalar operations if the HW supports it.
8979 2015-10-22 Richard Biener <rguenther@suse.de>
8981 PR tree-optimization/19049
8982 PR tree-optimization/65962
8983 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8984 to strided accesses if single-element interleaving doesn't work.
8986 2015-10-22 Richard Biener <rguenther@suse.de>
8990 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8991 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8992 (expand_unop): Likewise.
8994 2015-10-22 Richard Biener <rguenther@suse.de>
8996 * fold-const.c (fold_addr_of_array_ref_difference): Properly
8997 convert operands before folding a MINUS_EXPR.
8998 (fold_binary_loc): Move simplification of MINUS_EXPR on
8999 converted POINTER_PLUS_EXPRs ...
9000 * match.pd: ... here.
9002 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9004 * builtins.c (fold_builtin_tan): Delete.
9005 (fold_builtin_1): Handle constant tan arguments here.
9006 * match.pd: Simplify (tan (atan x)) to x.
9008 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9010 * builtins.c (fold_builtin_cproj): Delete.
9011 (fold_builtin_1): Handle constant arguments here.
9012 (build_complex_cproj): Move and rename to...
9013 * tree.c: (build_complex_inf): ...this.
9014 * tree.h (build_complex_inf): Declare.
9015 * match.pd: Fold cproj(x)->x if x has no infinity.
9016 Use build_complex_inf for existing cproj rules.
9018 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9021 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9022 already have a comparison result.
9024 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9027 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9028 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9029 (aarch64_classify_address): Likewise.
9030 (aarch64_secondary_reload): Likewise.
9031 (aarch64_override_options_after_change_1): Adjust.
9032 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9033 Use aarch64_nopcrelative_literal_loads.
9034 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9035 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9038 2015-10-21 Martin Sebor <msebor@redhat.com>
9041 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9042 (print_filtered_help): Reference aliased option's name and encourage
9043 readers to use it in preference to the alias if the former is not
9044 documented. Mention when using an option is diagnosed.
9045 * gcc.c (display_help): End each sentence with a period.
9047 * common.opt: End each sentence that describes an option with
9049 * config/aarch64/aarch64.opt: Same.
9050 * config/alpha/alpha.opt: Same.
9051 * config/arc/arc.opt: Same.
9052 * config/arm/arm.opt: Same.
9053 * config/avr/avr.opt: Same.
9054 * config/bfin/bfin.opt: Same.
9055 * config/c6x/c6x.opt: Same.
9056 * config/cr16/cr16.opt: Same.
9057 * config/cris/cris.opt: Same.
9058 * config/cris/linux.opt: Same.
9059 * config/darwin.opt: Same.
9060 * config/epiphany/epiphany.opt: Same.
9061 * config/fr30/fr30.opt: Same.
9062 * config/frv/frv.opt: Same.
9063 * config/ft32/ft32.opt: Same.
9064 * config/g.opt: Same.
9065 * config/h8300/h8300.opt: Same.
9066 * config/i386/cygming.opt: Same.
9067 * config/i386/djgpp.opt: Same.
9068 * config/i386/i386.opt: Same.
9069 * config/i386/interix.opt: Same.
9070 * config/i386/mingw-w64.opt: Same.
9071 * config/i386/mingw.opt: Same.
9072 * config/ia64/ia64.opt: Same.
9073 * config/ia64/ilp32.opt: Same.
9074 * config/iq2000/iq2000.opt: Same.
9075 * config/linux.opt: Same.
9076 * config/lm32/lm32.opt: Same.
9077 * config/lynx.opt: Same.
9078 * config/m32c/m32c.opt: Same.
9079 * config/m32r/m32r.opt: Same.
9080 * config/m68k/ieee.opt: Same.
9081 * config/m68k/m68k.opt: Same.
9082 * config/mcore/mcore.opt: Same.
9083 * config/mep/mep.opt: Same.
9084 * config/microblaze/microblaze.opt: Same.
9085 * config/mips/mips.opt: Same.
9086 * config/mmix/mmix.opt: Same.
9087 * config/mn10300/mn10300.opt: Same.
9088 * config/moxie/moxie.opt: Same.
9089 * config/msp430/msp430.opt: Same.
9090 * config/nios2/elf.opt: Same.
9091 * config/nios2/nios2.opt: Same.
9092 * config/nvptx/nvptx.opt: Same.
9093 * config/pa/pa-hpux.opt: Same.
9094 * config/pa/pa-hpux1010.opt: Same.
9095 * config/pa/pa-hpux1111.opt: Same.
9096 * config/pa/pa-hpux1131.opt: Same.
9097 * config/pa/pa.opt: Same.
9098 * config/pa/pa64-hpux.opt: Same.
9099 * config/pdp11/pdp11.opt: Same.
9100 * config/rl78/rl78.opt: Same.
9101 * config/rs6000/476.opt: Same.
9102 * config/rs6000/aix64.opt: Same.
9103 * config/rs6000/darwin.opt: Same.
9104 * config/rs6000/linux64.opt: Same.
9105 * config/rs6000/rs6000.opt: Same.
9106 * config/rs6000/sysv4.opt: Same.
9107 * config/s390/s390.opt: Same.
9108 * config/s390/tpf.opt: Same.
9109 * config/sh/sh.opt: Same.
9110 * config/sol2.opt: Same.
9111 * config/sparc/long-double-switch.opt: Same.
9112 * config/sparc/sparc.opt: Same.
9113 * config/spu/spu.opt: Same.
9114 * config/stormy16/stormy16.opt: Same.
9115 * config/tilegx/tilegx.opt: Same.
9116 * config/tilepro/tilepro.opt: Same.
9117 * config/v850/v850.opt: Same.
9118 * config/vax/vax.opt: Same.
9119 * config/visium/visium.opt: Same.
9120 * config/vms/vms.opt: Same.
9121 * config/vxworks.opt: Same.
9122 * config/xtensa/xtensa.opt: Same.
9124 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9125 Sebastian Pop <s.pop@samsung.com>
9127 * graphite-scop-detection.c (parameter_index_in_region): Update call to
9128 invariant_in_sese_p_rec.
9129 * graphite-sese-to-poly.c (extract_affine): Same.
9130 * sese.c (invariant_in_sese_p_rec): Pass in an extra
9131 parameter has_vdefs.
9132 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9133 variable depends on virtual definitions in the current region.
9134 * sese.h (invariant_in_sese_p_rec): Update declaration.
9136 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9137 Sebastian Pop <s.pop@samsung.com>
9139 * graphite-scop-detection.c (build_scops): Do not handle scops
9140 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9141 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9143 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
9145 * config.in: Regenerate.
9146 * configure: Regenerate.
9147 * configure.ac (CHECKING_P): Define.
9148 * system.h: Use CHECKING_P.
9150 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9153 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9154 is negative we don't know the type.
9155 (check_stmt_for_type_change): Skip constructors of non-polymorphic
9156 types as those won't help devirutalization.
9158 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9160 * fold-const.c (operand_equal_p): Add code matching empty constructors.
9162 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
9164 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9166 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9167 Add comments on sign of the result.
9168 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9169 Recurse on operand #1 instead of operand #0.
9170 <CEIL_MOD_EXPR>: Do not recurse.
9171 <ROUND_MOD_EXPR>: Likewise.
9173 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9175 * cfgrtl.c (pass_free_cfg::execute): Adjust.
9176 * final.c (dbr_sequence_length): Always define.
9177 (shorten_branches): Adjust.
9178 * genattr-common.c (main): Always define DELAY_SLOTS.
9179 * genattr.c (main): Unconditionally declare functions and define
9180 macros related to delay slots.
9181 * genattrtab.c (write_eligible_delay): Adjust.
9182 (main): Always write out delay slot functions.
9183 * opts.c (default_options_table): Adjust.
9184 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9185 (redirect_with_delay_list_safe_p): Likewise.
9186 (fill_simple_delay_slots): Likewise.
9187 (fill_slots_from_thread): Likewise.
9188 (make_return_insns): Likewise.
9189 (dbr_schedule): Likewise.
9190 (rest_of_handle_delay_slots): Likewise.
9191 (pass_delay_slots::gate): Likewise.
9192 * toplev.c (process_options): Likewise.
9194 2015-10-21 Richard Henderson <rth@redhat.com>
9196 * targhooks.c (default_addr_space_pointer_mode): Remove check
9197 for generic address space.
9198 (default_addr_space_address_mode): Likewise.
9199 (default_addr_space_valid_pointer_mode): Likewise.
9200 (default_addr_space_legitimate_address_p): Likewise.
9201 (default_addr_space_legitimize_address): Likewise.
9202 * target.def (addr_space.pointer_mode): Update documentation
9203 of default behavior.
9204 (addr_space.address_mode): Likewise.
9207 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9210 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9212 * builtins.c (fold_builtin_cabs): Delete.
9213 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9214 * match.pd: Add rules previously handled by fold_builtin_cabs.
9216 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9218 * fold-const.h (fold_strip_sign_ops): Delete.
9219 * fold-const.c (fold_strip_sign_ops): Likewise.
9220 (fold_unary_loc, fold_binary_loc): Remove calls to it.
9221 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9222 (fold_builtin_ccos): Delete.
9223 (fold_builtin_pow): Don't call fold_strip_sign_ops.
9224 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9225 Remove fndecl argument.
9226 (fold_builtin_1): Update calls accordingly. Handle constant
9227 cos, cosh, ccos and ccosh here.
9229 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9231 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9232 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9233 * common.opt (fssa-backprop): New option.
9234 * fold-const.h (negate_mathfn_p): Declare.
9235 * fold-const.c (negate_mathfn_p): Make public.
9236 * timevar.def (TV_TREE_BACKPROP): New.
9237 * tree-pass.h (make_pass_backprop): Declare.
9238 * passes.def (pass_backprop): Add.
9239 * gimple-ssa-backprop.c: New file.
9241 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9242 Sebastian Pop <s.pop@samsung.com>
9244 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9245 Do not call create_empty_if_region_on_edge when cond_expr is true.
9246 (translate_isl_ast_node_for): Check whether a guard has been generated.
9248 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9250 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9251 (operator=): Removed.
9252 (dr_info): Make alias_set number the last argument with default
9253 value of invalid_alias_set.
9254 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9256 (rewrite_reductions_out_of_ssa): Iterate only through the
9257 basic blocks which are inside region.
9258 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9259 * sese.h (struct sese_l): Removed assignment operator.
9260 (split_region_for_bb): Removed dead code.
9262 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9264 * graphite-poly.h (struct dr_info): Removed conversion constructor.
9265 (struct scop): Renamed scop::region to scop::scop_info
9266 (scop_set_region): Same.
9267 (SCOP_REGION): Removed
9268 (SCOP_CONTEXT): Removed.
9269 (POLY_SCOP_P): Removed.
9270 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9271 Rename scop->region to scop->scop_info.
9272 (add_parameters_to_ivs_params): Same.
9273 (graphite_regenerate_ast_isl): Same.
9274 * graphite-poly.c (new_scop): Same.
9276 (print_scop_params): Same.
9277 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9278 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9279 (dot_all_scops_1): Rename scop->region to scop->scop_info.
9280 (scop_detection::nb_pbbs_in_loops): Same.
9281 (find_scop_parameters): Same.
9282 (try_generate_gimple_bb): Same.
9283 (gather_bbs::before_dom_children): Same.
9284 (gather_bbs::after_dom_children): Same.
9285 (build_scops): Same.
9286 * graphite-sese-to-poly.c (build_scop_scattering): Same.
9287 (extract_affine_chrec): Same.
9288 (extract_affine): Same.
9289 (set_scop_parameter_dim): Same.
9290 (build_loop_iteration_domains): Same.
9291 (create_pw_aff_from_tree): Same.
9292 (add_param_constraints): Same.
9293 (build_scop_iteration_domain): Same.
9294 (build_scop_drs): Same.
9295 (analyze_drs_in_stmts): Same.
9296 (insert_out_of_ssa_copy_on_edge): Same.
9297 (rewrite_close_phi_out_of_ssa):Same.
9298 (rewrite_reductions_out_of_ssa):Same.
9299 (handle_scalar_deps_crossing_scop_limits):Same.
9300 (rewrite_cross_bb_scalar_deps):Same.
9301 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9302 (build_poly_scop):Same.
9303 (build_alias_set): Use pointer to dr_info.
9304 * graphite.c (print_graphite_scop_statistics):
9305 (graphite_transform_loops):
9306 * sese.h (struct sese_l): Remove conversion constructor.
9308 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9311 * tree.c (verify_type): Verify that TYPE_MODE match
9312 between TYPE_CANONICAL and type.
9313 * expr.c (store_expr_with_bounds): Revert my previous change.
9314 * expmed.c (store_bit_field_1): Revert prevoius change.
9315 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9316 to match for all types.
9318 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
9320 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9323 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9325 * doc/tm.texi: Regenerated.
9326 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9327 * stor-layout.c (layout_type): Use mode to get vector mask size.
9328 * target.def (get_mask_mode): New.
9329 * targhooks.c (default_get_mask_mode): New.
9330 * targhooks.h (default_get_mask_mode): New.
9331 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9333 * tree.c (MAX_BOOL_CACHED_PREC): New.
9334 (nonstandard_boolean_type_cache): New.
9335 (build_nonstandard_boolean_type): New.
9336 (make_vector_type): Vector mask has no canonical type.
9337 (build_truth_vector_type): New.
9338 (build_same_sized_truth_vector_type): New.
9339 (truth_type_for): Support vector masks.
9340 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9341 (build_truth_vector_type): New.
9342 (build_same_sized_truth_vector_type): New.
9343 (build_nonstandard_boolean_type): New.
9344 * tree-cfg.c (verify_gimple_comparison) Require boolean
9345 vector type for vector comparison.
9346 (verify_gimple_assign_ternary): Likewise.
9347 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9349 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9350 vector type for vector comparison.
9351 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9353 (do_unop): Adjust to modified function type.
9354 (do_binop): Likewise.
9355 (do_plus_minus): Likewise.
9356 (do_negate); Likewise.
9357 (expand_vector_piecewise): Likewise.
9358 (do_cond): Likewise.
9359 (do_compare): Use comparison instead of condition.
9360 (expand_vector_divmod): Use boolean vector type for comparison.
9361 (expand_vector_operations_1): Skip scalar mask operations.
9363 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9365 * omp-low.c (simd_clone_create): Set in_other_partition
9368 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9370 * doc/extend.exp (Local Register Variables): Rewrite.
9372 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9374 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9375 and x*x in cases where the operands are sign ops. Extend these
9376 rules to handle copysign as a sign op (including for cos, cosh
9377 and pow, which already treated negate and abs as sign ops).
9379 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9382 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9383 for 64-bit MS_ABI targets also when default incoming stack boundary
9386 2015-10-21 Richard Biener <rguenther@suse.de>
9388 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9389 cond stmts, enhanced and split out from ...
9390 (vn_phi_eq): ... here.
9392 2015-10-21 Richard Biener <rguenther@suse.de>
9395 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9396 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9397 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9398 make sure they are not registered for update.
9400 2015-10-21 Richard Biener <rguenther@suse.de>
9402 PR tree-optimization/68026
9403 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9404 unsigned VARYING values.
9406 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9408 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9409 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9410 NULL and use local stack than.
9411 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9412 in addition to __asan_init.
9413 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9414 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9415 * asan.h (asan_intercepted_p): Handle new string builtins.
9416 * ubsan.c (ubsan_use_new_style_p): New function.
9417 (ubsan_instrument_float_cast): If location is unknown, assign
9418 input_location to loc. Propagate loc to ubsan_create_data if
9419 ubsan_use_new_style_p returned true.
9421 2015-10-21 Jeff Law <law@redhat.com>
9423 * Makefile.in (OBJS): Remove sched-vis.c
9424 * sched-vis.c: Removed. Code moved into...
9425 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9426 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9427 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9428 * auto-inc-dec.c: Include print-rtl.h
9429 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9430 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9432 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9435 2015-10-21 Richard Biener <rguenther@suse.de>
9436 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9438 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9440 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9441 about signed left shift stronger and clarify the cases when they're
9443 Move (a * (1 << b)) is (a << b) to match.pd.
9444 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9445 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9446 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9448 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9450 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9451 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9452 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9454 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9456 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9458 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9459 Szabolcs Nagy <szabolcs.nagy@arm.com>
9460 Alan Modra <amodra@gmail.com>
9462 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9463 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9464 (LINK_SPEC): Add %(link_secure_plt).
9465 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9466 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9468 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9469 Szabolcs Nagy <szabolcs.nagy@arm.com>
9471 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9472 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9474 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9476 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9478 (fusion_load_store): Use it.
9479 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9480 ldp and stp in VD modes.
9481 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9482 (store_pair<mode>, VD): Likewise.
9484 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9486 PR rtl-optimization/67609
9487 * lra-splill.c (lra_final_code_change): Don't remove all
9490 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9492 * simplify-rtx.c (simplify_binary_operation): If either operand was
9493 a constant pool reference use them if all other simplifications failed.
9495 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9497 * config/aarch64/aarch64.md
9498 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9499 * config/aarch64/aarch64-simd.md
9500 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9501 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9502 (aarch64_fpconst_pow_of_2): New function.
9503 (aarch64_vec_fpconst_pow_of_2): Likewise.
9504 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9506 (aarch64_vec_fpconst_pow_of_2): Likewise.
9507 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9508 (aarch64_fp_vec_pow2): Likewise.
9510 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9512 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9513 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9514 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9515 ALPHA_ARG_SIZE usage.
9516 (alpha_arg_partial_bytes): Ditto.
9518 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9521 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9522 error_mark_node decls.
9524 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9528 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9529 OPT_miamcu handling.
9530 * config/i386/i386.c (PTA_NO_80387): New macro.
9531 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9532 (ix86_option_override_internal): Update MASK_80387 from
9533 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9534 SSE math only if 80387 is supported. Don't change
9536 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9538 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9539 if TARGET_80387 is true and TARGET_IAMCU is false.
9540 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9541 is true and TARGET_IAMCU_P is false.
9543 2015-10-20 Richard Biener <rguenther@suse.de>
9545 PR tree-optimization/68017
9546 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9548 2015-10-20 Martin Liska <mliska@suse.cz>
9550 * cgraphclones.c (cgraph_node::create_virtual_clone):
9551 Verify cgraph_node.local.versionable instead of calling
9552 tree_versionable_function_p.
9553 * ipa-cp.c (determine_versionability): Save the information
9554 to ipa_node_params summary.
9555 (ipcp_versionable_function_p): Use it.
9556 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9557 (ipcp_generate_summary): Do not compute cgraph_node
9559 * ipa-inline-analysis.c (inline_generate_summary): Compute
9560 versionability for all cgraph nodes.
9561 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9562 ipa_node_params::versionability.
9563 * ipa-prop.h (struct ipa_node_params): Declare it.
9565 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9568 * varasm.c (assemble_variable): Move special vtv handling to..
9569 (handle_vtv_comdat_sections): .. here. New function.
9570 (output_object_block): Handle vtv sections.
9572 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9575 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9577 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9579 * doc/extend.texi: Update documentation WRT inline functions.
9581 2015-10-20 Alan Modra <amodra@gmail.com>
9584 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9585 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9586 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9588 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9590 PR rtl-optimization/66790
9591 * df.h (DF_MIR): New macro.
9592 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9593 (DF_MIR_INFO_BB): New macro.
9594 (DF_MIR_IN, DF_MIR_OUT): New macros.
9595 (struct df_mir_bb_info): New.
9596 (df_mir): New macro.
9597 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9599 (df_mir_get_bb_info): New.
9600 * df-problems.c (struct df_mir_problem_data): New.
9601 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9602 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9603 df_mir_confluence_0, df_mir_confluence_n,
9604 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9605 df_mir_bottom_dump, df_mir_verify_solution_start,
9606 df_mir_verify_solution_end): New.
9608 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9609 * timevar.def (TV_DF_MIR): New.
9610 * ree.c: Include bitmap.h
9611 (add_removable_extension): Add an INIT_REGS parameter. Use it
9612 to skip zero-extensions that may get an uninitialized register.
9613 (find_removable_extensions): Compute must-initialized registers
9614 using the MIR dataflow problem. Update the call to
9615 add_removable_extension.
9616 (find_and_remove_re): Call df_mir_add_problem.
9618 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9620 * common/config/mn10300/mn10300-common.c
9621 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9622 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9624 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9626 * doc/extend.texi (Explicit Register Variables): Simplify and
9627 avoid unnecessary and confusion abbreviations. Update cross
9629 doc/implement-c.tex: Update cross reference.
9631 2015-10-19 Jeff Law <law@redhat.com>
9633 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9634 that create irreducible loops unless the path elimiantes a multiway
9637 2015-10-19 Richard Biener <rguenther@suse.de>
9639 PR tree-optimization/67975
9640 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9641 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9642 core worker from ...
9643 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9644 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9645 instead of block number for PHIs with two or one args.
9646 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9649 2015-10-19 Richard Biener <rguenther@suse.de>
9651 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9652 (gimple_stmt_nonnegative_warnv_p): Use it.
9653 * match.pd (CPROJ): New operator list.
9654 (cproj (complex ...)): Move simplifications from ...
9655 * builtins.c (fold_builtin_cproj): ... here.
9657 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9659 * config/i386/i386.c (ix86_expand_vector_move): Use
9660 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9663 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9665 * doc/invoke.texi: Replace @optindex with @opindex.
9667 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9670 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9671 arch= is set, clear all bits in x_ix86_isa_flags, except for
9672 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9674 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9677 * common.opt (fkeep-static-functions): New option.
9678 * doc/invoke.texi: Document it.
9679 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9681 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9683 * sched-int.h (struct autopref_multipass_data_): Remove offset
9684 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9685 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9686 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9687 (autopref_rank_data): New function.
9688 (autopref_rank_for_schedule): Use it.
9689 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9691 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9694 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9696 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9698 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9699 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9700 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9701 (STANDARD_STARTFILE_PREFIX_1): New.
9702 (STANDARD_STARTFILE_PREFIX_2): New.
9704 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9706 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9707 (darwin_driver_init): Note a version-min when provided on the c/l.
9708 * config/darwin.h (%darwin_minversion): Remove.
9709 * config/i386/darwin.h: Likewise.
9710 * config/rs6000/darwin.h: Likewise.
9711 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9712 rather than an arbitrary constant.
9714 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9716 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9717 PPC, detect conflicts between -arch and multilib settings. Detect
9718 and warn about conflicts between multiple -arch definitions.
9720 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9722 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9724 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9726 * lra-constraints.c (add_next_usage_insn): Change argument type
9727 from rtx to rtx_insn *.
9729 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9731 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9734 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9736 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9737 * config/tilegx/mul-tables.c: Regenerate.
9738 * config/tilepro/mul-tables.c: Regenerate.
9740 * config/tilegx/tilegx-c.c: Adjust include files.
9741 * config/tilegx/tilegx.c: Likewise.
9742 * config/tilepro/tilepro-c.c: Likewise.
9743 * config/tilepro/tilepro.c: Likewise.
9744 * config/aarch64/aarch64-builtins.c: Likewise.
9745 * config/aarch64/aarch64.c: Likewise.
9746 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9747 * config/alpha/alpha.c: Likewise.
9748 * config/arc/arc.c: Likewise.
9749 * config/arm/aarch-common.c: Likewise.
9750 * config/arm/arm-builtins.c: Likewise.
9751 * config/arm/arm-c.c: Likewise.
9752 * config/arm/arm.c: Likewise.
9753 * config/avr/avr-c.c: Likewise.
9754 * config/avr/avr-devices.c: Likewise.
9755 * config/avr/avr-log.c: Likewise.
9756 * config/avr/avr.c: Likewise.
9757 * config/bfin/bfin.c: Likewise.
9758 * config/c6x/c6x.c: Likewise.
9759 * config/cr16/cr16.c: Likewise.
9760 * config/cris/cris.c: Likewise.
9761 * config/darwin-c.c: Likewise.
9762 * config/darwin-driver.c: Likewise.
9763 * config/darwin.c: Likewise.
9764 * config/default-c.c: Likewise.
9765 * config/epiphany/epiphany.c: Likewise.
9766 * config/epiphany/mode-switch-use.c: Likewise.
9767 * config/epiphany/resolve-sw-modes.c: Likewise.
9768 * config/fr30/fr30.c: Likewise.
9769 * config/frv/frv.c: Likewise.
9770 * config/ft32/ft32.c: Likewise.
9771 * config/glibc-c.c: Likewise.
9772 * config/h8300/h8300.c: Likewise.
9773 * config/i386/host-cygwin.c: Likewise.
9774 * config/i386/host-mingw32.c: Likewise.
9775 * config/i386/i386-c.c: Likewise.
9776 * config/i386/i386.c: Likewise.
9777 * config/i386/msformat-c.c: Likewise.
9778 * config/i386/winnt-cxx.c: Likewise.
9779 * config/i386/winnt-stubs.c: Likewise.
9780 * config/i386/winnt.c: Likewise.
9781 * config/ia64/ia64-c.c: Likewise.
9782 * config/ia64/ia64.c: Likewise.
9783 * config/iq2000/iq2000.c: Likewise.
9784 * config/lm32/lm32.c: Likewise.
9785 * config/m32c/m32c-pragma.c: Likewise.
9786 * config/m32c/m32c.c: Likewise.
9787 * config/m32r/m32r.c: Likewise.
9788 * config/mcore/mcore.c: Likewise.
9789 * config/mep/mep-pragma.c: Likewise.
9790 * config/mep/mep.c: Likewise.
9791 * config/microblaze/microblaze-c.c: Likewise.
9792 * config/microblaze/microblaze.c: Likewise.
9793 * config/mips/mips-tables.opt
9794 * config/mips/mips.c: Likewise.
9795 * config/mmix/mmix.c: Likewise.
9796 * config/mn10300/mn10300.c: Likewise.
9797 * config/moxie/moxie.c: Likewise.
9798 * config/msp430/msp430-c.c: Likewise.
9799 * config/msp430/msp430.c: Likewise.
9800 * config/nds32/nds32-cost.c: Likewise.
9801 * config/nds32/nds32-fp-as-gp.c: Likewise.
9802 * config/nds32/nds32-intrinsic.c: Likewise.
9803 * config/nds32/nds32-isr.c: Likewise.
9804 * config/nds32/nds32-md-auxiliary.c: Likewise.
9805 * config/nds32/nds32-memory-manipulation.c: Likewise.
9806 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9807 * config/nds32/nds32-predicates.c: Likewise.
9808 * config/nds32/nds32.c: Likewise.
9809 * config/nios2/nios2.c: Likewise.
9810 * config/nvptx/mkoffload.c: Likewise.
9811 * config/nvptx/nvptx.c: Likewise.
9812 * config/pa/pa.c: Likewise.
9813 * config/pdp11/pdp11.c: Likewise.
9814 * config/rl78/rl78-c.c: Likewise.
9815 * config/rl78/rl78.c: Likewise.
9816 * config/rs6000/host-darwin.c: Likewise.
9817 * config/rs6000/rs6000-c.c: Likewise.
9818 * config/rs6000/rs6000-linux.c: Likewise.
9819 * config/rs6000/rs6000.c: Likewise.
9820 * config/rx/rx.c: Likewise.
9821 * config/s390/s390-c.c: Likewise.
9822 * config/s390/s390.c: Likewise.
9823 * config/sh/sh-c.c: Likewise.
9824 * config/sh/sh-mem.cc: Likewise.
9825 * config/sh/sh.c: Likewise.
9826 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9827 * config/sh/sh_treg_combine.cc: Likewise.
9828 * config/sol2-c.c: Likewise.
9829 * config/sol2-cxx.c: Likewise.
9830 * config/sol2-stubs.c: Likewise.
9831 * config/sol2.c: Likewise.
9832 * config/sparc/sparc-c.c: Likewise.
9833 * config/sparc/sparc.c: Likewise.
9834 * config/spu/spu-c.c: Likewise.
9835 * config/spu/spu.c: Likewise.
9836 * config/stormy16/stormy16.c: Likewise.
9837 * config/v850/v850-c.c: Likewise.
9838 * config/v850/v850.c: Likewise.
9839 * config/vax/vax.c: Likewise.
9840 * config/visium/visium.c: Likewise.
9841 * config/vms/vms-c.c: Likewise.
9842 * config/vms/vms.c: Likewise.
9843 * config/vxworks.c: Likewise.
9844 * config/winnt-c.c: Likewise.
9845 * config/xtensa/xtensa.c: Likewise.
9847 2015-10-16 Christian Bruel <christian.bruel@st.com>
9850 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9851 (FUNCTION_BOUNDARY_P): New macro:
9852 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9854 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9855 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9856 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9857 * function.c (allocate_struct_function): Call
9858 relayout_function hook.
9859 * passes.c (rest_of_decl_compilation): Likewise.
9861 2015-10-16 Christian Bruel <christian.bruel@st.com>
9864 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9865 * config/arm/arm.c (arm_option_override_internal): Call
9866 arm_override_options_after_change_1.
9867 (arm_override_options_after_change): New function.
9868 (arm_override_options_after_change_1): Likewise.
9869 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9871 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9874 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9877 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
9879 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9880 argument is an ADDR_EXPR.
9882 2015-10-16 Richard Biener <rguenther@suse.de>
9884 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9885 and get rid of force_gimple_operand_gsi.
9886 (gimple_fold_builtin_memory_chk): Likewise.
9887 (gimple_fold_builtin_stxcpy_chk): Likewise.
9888 (rewrite_to_defined_overflow): Likewise.
9889 (gimple_convert_to_ptrofftype): New function.
9890 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9892 2015-10-16 Richard Biener <rguenther@suse.de>
9894 * tree-nested.h (build_addr): Adjust prototype.
9895 * tree-nested.c (build_addr): Remove context argument and use
9897 (get_static_chain): Adjust calls to build_addr.
9898 (convert_nl_goto_reference): Likewise.
9899 (convert_tramp_reference_op): Likewise.
9900 (finalize_nesting_tree_1): Likewise.
9901 * value-prof.c (gimple_ic): Likewise.
9902 * gimple-low.c (lower_builtin_setjmp): Likewise.
9903 * tree-parloops.c (take_address_of): Likewise.
9904 (create_call_for_reduction_1): Likewise.
9905 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9906 (gimple_gen_ic_func_profiler): Likewise.
9908 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9910 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9913 2015-10-16 Michael Collison <michael.collison@linaro.org>
9914 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9916 * match.pd ((x < y) && (x < z) -> x < min (y,z),
9917 (x > y) and (x > z) -> x > max (y,z))
9919 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
9920 Szabolcs Nagy <szabolcs.nagy@arm.com>
9922 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9923 (DYNAMIC_LINKER): Renamed to ...
9924 (GLIBC_DYNAMIC_LINKER): This.
9925 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9927 2015-10-15 Marek Polacek <polacek@redhat.com>
9929 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9930 gimple_call_builtin instead of is_gimple_call.
9932 2015-10-15 Richard Biener <rguenther@suse.de>
9934 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9936 2015-10-15 Richard Biener <rguenther@suse.de>
9938 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9939 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9940 * tree-vect-loop.c (get_initial_def_for_induction): Drop
9941 use of force_gimple_operand in favor of gimple_build.
9942 Use vect_get_new_ssa_name.
9943 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9944 (vectorizable_mask_load_store): Likewise.
9945 (vectorizable_call): Likewise.
9946 (vectorizable_store): Likewise.
9947 (vectorizable_load): Likewise.
9948 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9950 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
9952 PR tree-optimization/67945
9953 * tree-pass.h (PROP_gimple_opt_math): New property flag.
9954 * generic-match-head.c (canonicalize_math_p): New function.
9955 * gimple-match-head.c: Include tree-pass.h.
9956 (canonicalize_math_p): New function.
9957 * match.pd: Group math built-in rules into simplifications
9958 and canonicalizations. Guard the latter with canonicalize_math_p.
9959 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9960 PROP_gimple_opt_math property.
9962 2015-10-15 Marek Polacek <polacek@redhat.com>
9964 PR tree-optimization/67953
9965 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9967 2015-10-15 Jiong Wang <jiong.wang@arm.com>
9969 * config.gcc: Recognize "." in architecture base name for AArch64.
9971 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9973 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9975 * config/mips/mips.c (mips_setup_incoming_varargs): Use
9976 ROUND_DOWN to calculate off.
9977 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9978 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9981 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
9983 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9985 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
9986 Torvald Riegel <triegel@redhat.com>
9989 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9990 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9991 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9992 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9993 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
9994 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9995 trechkpt, treclaim, tsr, ttest): New define_expands.
9996 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9997 __TM_FENCE__ for htm.
9998 * doc/extend.texi: Update documentation for htm builtins.
10000 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10003 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10004 REG_CFA_EXPRESSION to aligned SSE stores.
10006 2015-10-14 Jeff Law <law@redhat.com>
10008 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10009 num_threaded_edges for successful FSM threads too.
10011 2015-10-14 Richard Biener <rguenther@suse.de>
10013 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10014 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
10015 (vect_get_vec_def_for_operand): Remove unused parameter.
10016 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10017 (vect_create_epilog_for_reduction): Likewise.
10018 (vectorizable_reduction): Likewise.
10019 (vectorizable_live_operation): Likewise.
10020 * tree-vect-patterns.c (type_conversion_p): Likewise.
10021 (vect_recog_vector_vector_shift_pattern): Likewise.
10022 (check_bool_pattern): Likewise.
10023 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10024 (vect_analyze_slp_cost_1): Likewise.
10025 * tree-vect-stmts.c (process_use): Likewise.
10026 (vect_get_vec_def_for_operand): Do not handle reductions.
10027 (vect_get_vec_defs): Adjust.
10028 (vectorizable_mask_load_store): Likewise.
10029 (vectorizable_call): Likewise.
10030 (vectorizable_simd_clone_call): Likewise.
10031 (vect_get_loop_based_defs): Likewise.
10032 (vectorizable_conversion): Likewise.
10033 (vectorizable_assignment): Likewise.
10034 (vectorizable_shift): Likewise.
10035 (vectorizable_operation): Likewise.
10036 (vectorizable_store): Likewise.
10037 (vectorizable_load): Likewise.
10038 (vect_is_simple_cond): Likewise.
10039 (vectorizable_condition): Likewise.
10040 (vect_is_simple_use): Remove unused parameters.
10041 (vect_is_simple_use_1): Adjust and rename.
10043 2015-10-14 Richard Biener <rguenther@suse.de>
10045 PR tree-optimization/67915
10046 * match.pd: Handle comparisons of addresses of STRING_CSTs.
10047 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10048 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10049 stmt folding in favor of GIMPLE one.
10051 2015-10-14 Marek Polacek <polacek@redhat.com>
10053 PR tree-optimization/67815
10054 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10055 (reassociate_bb): Call it.
10057 2015-10-14 Richard Biener <rguenther@suse.de>
10059 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10060 Reset info at start.
10061 (vect_analyze_group_access_1): Add debug print.
10062 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10063 (vect_compute_single_scalar_iteration_cost): ... to this.
10064 (vect_analyze_loop_2): Adjust.
10065 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10066 * tree-vectorizer.h: ... here.
10067 (add_stmt_info_to_vec): Remove.
10068 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10070 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
10072 * targhooks.c (default_target_option_pragma_parse): Do not warn if
10073 called on behalf of "#pragma GCC pop_options".
10075 2015-10-14 Tom de Vries <tom@codesourcery.com>
10077 * cfganal.c (verify_no_unreachable_blocks): New function.
10078 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10079 verify_no_unreachable_blocks.
10080 cfganal.h (verify_no_unreachable_blocks): Declare.
10082 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
10084 * common.opt: Add flag_checking.
10085 * system.h (CHECKING_P): Define.
10087 2015-10-13 Jakub Jelinek <jakub@redhat.com>
10088 Aldy Hernandez <aldyh@redhat.com>
10089 Ilya Verbin <ilya.verbin@intel.com>
10091 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10092 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10093 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10094 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10095 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10096 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10097 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10098 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10099 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10100 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10101 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10102 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10103 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10104 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10105 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10106 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10107 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10108 (struct cgraph_simd_clone_arg): Adjust comment.
10109 * coretypes.h (struct gomp_ordered): New forward decl.
10110 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10111 set critical clauses to it.
10112 (gimple_build_omp_ordered): Return gomp_ordered * instead of
10113 gimple *. Add CLAUSES argument, set ordered clauses to it.
10114 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10115 GIMPLE_OMP_ORDERED.
10116 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10117 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10118 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
10119 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10120 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
10121 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10122 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
10123 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10125 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10126 (gomp_critical): Add clauses field.
10127 (gomp_ordered): New struct.
10128 (is_a_helper <gomp_ordered *>::test): New inline.
10129 (gimple_build_omp_critical): Add CLAUSES argument.
10130 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
10131 instead of gimple *.
10132 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10133 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10134 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10135 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10137 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10138 (dump_gimple_omp_target): Handle enter data and exit data.
10139 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10140 (dump_gimple_omp_critical): Print clauses.
10141 (dump_gimple_omp_ordered): New function.
10142 (dump_gimple_omp_task): Handle taskloop.
10143 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10144 GIMPLE_OMP_ORDERED.
10145 * gimple-walk.c (walk_gimple_op): Walk clauses on
10146 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10147 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10148 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10149 (struct gimplify_omp_ctx): Add loop_iter_var,
10150 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10151 and target_firstprivatize_array_bases fields.
10152 (delete_omp_context): Release loop_iter_var.
10153 (gimplify_bind_expr): Handle ORT_NONE.
10154 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10155 ORT_COMBINED_TARGET.
10156 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10157 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10158 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
10159 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
10160 ctx->target_map_scalars_firstprivate.
10161 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
10162 data sharing clauses. For data sharing clause with VLA decl
10163 on omp target/target data don't add firstprivate for the pointer.
10164 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10165 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10166 the addition of ORT_COMBINED_TARGET.
10167 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
10168 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
10169 pointers as zero length array sections and
10170 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10172 (omp_check_private): Handle omp_member_access_dummy_var vars.
10173 (find_decl_expr): New function.
10174 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
10175 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10176 Handle OMP_CLAUSE_GANG separately. Handle
10177 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10178 clauses. Diagnose linear clause on combined
10179 distribute {, parallel for} simd construct, unless it is the loop
10180 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10181 Handle map clauses with COMPONENT_REF. Initialize
10182 ctx->target_map_scalars_firstprivate,
10183 ctx->target_firstprivatize_array_bases and
10184 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
10185 linear clause even to target region if combined. Remove
10186 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10187 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
10188 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10189 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
10190 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10191 For linear clause on worksharing loop combined with parallel add
10192 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
10193 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
10194 omp_member_access_dummy_var vars. Add lastprivate clause to outer
10195 taskloop if needed.
10196 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10197 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10198 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10200 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
10201 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10202 in target body. Handle removal of struct mapping if struct is not
10203 seen in target body. Remove GOMP_MAP_STRUCT map clause on
10204 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
10205 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
10206 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10207 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10208 clause appear together. Handle
10209 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
10210 clause if it has map-type-modifier always. Handle
10211 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10213 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10214 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10216 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
10217 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
10218 iterators in doacross loops.
10219 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10220 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
10221 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
10222 for the addition of ORT_COMBINED_TARGET.
10223 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10224 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
10225 and OMP_TARGET_EXIT_DATA.
10226 (gimplify_omp_ordered): New function.
10227 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10228 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
10229 Gimplify clauses on OMP_CRITICAL.
10230 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10231 expand_GOMP_SIMD_ORDERED_END): New functions.
10232 * internal-fn.def (GOMP_SIMD_ORDERED_START,
10233 GOMP_SIMD_ORDERED_END): New internal functions.
10234 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10235 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10236 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10237 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10238 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10239 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10240 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10241 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10242 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10243 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10244 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10245 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10246 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10247 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10249 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10250 GOMP_target_data_41, adjust type.
10251 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10252 GOMP_target_update_41, adjust type.
10253 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10255 (struct omp_for_data): Add ordered and simd_schedule fields.
10256 (omp_member_access_dummy_var, unshare_and_remap_1,
10257 unshare_and_remap, is_taskloop_ctx): New functions.
10258 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10259 (extract_omp_for_data): Handle taskloops and doacross loops
10260 and simd schedule modifier.
10261 (omp_adjust_chunk_size): New function.
10262 (get_ws_args_for): Use it.
10263 (lookup_sfield): Change first argument to splay_tree_key,
10264 add overload with first argument tree.
10265 (maybe_lookup_field): Likewise.
10266 (use_pointer_for_field): Handle omp_member_access_dummy_var.
10267 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10268 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10269 (build_outer_var_ref): Add LASTPRIVATE argument, handle
10270 taskloops and omp_member_access_dummy_var vars.
10271 (build_sender_ref): Change first argument to splay_tree_key,
10272 add overload with first argument tree.
10273 (install_var_field): For mask & 8 use &DECL_UID as key instead
10274 of the tree itself.
10275 (fixup_child_record_type): Const qualify *.omp_data_i.
10276 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10277 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10278 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10279 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10280 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10281 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10282 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10284 (add_taskreg_looptemp_clauses): New function.
10285 (scan_omp_parallel): Use it.
10286 (scan_omp_task): Likewise.
10287 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10288 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10289 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10290 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
10291 sandwiched taskloop constructs. Type check
10292 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
10293 region. Diagnose depend(source) or depend(sink:...) on
10294 target constructs or task/taskloop.
10295 (handle_simd_reference): Use get_name.
10296 (lower_rec_input_clauses): Likewise. Ignore all
10297 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10298 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
10299 before passing it to omp_clause_{default,copy}_ctor. Handle
10300 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
10301 lastprivate_firstprivate flag for linear that needs copyin and
10302 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10303 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10304 on taskloop lookup decl in outer context. Pass true to
10305 build_outer_var_ref lastprivate argument. Handle
10306 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10307 outside of outer taskloop for.
10308 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10310 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10311 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
10312 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
10313 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
10314 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10315 abstract origin. Handle omp_member_access_dummy_var vars.
10316 (expand_parallel_call): Use expand_omp_build_assign.
10317 (expand_task_call): Handle taskloop construct expansion. Add
10318 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
10319 integers. Add priority argument to GOMP_task* calls. Or in
10320 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10322 (expand_omp_build_assign): Add prototype. Add AFTER
10323 argument, if true emit statements after *GSI_P and continue linking.
10324 (expand_omp_taskreg): Adjust expand_task_call caller.
10325 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10326 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10327 zero_iter2_bb and first_zero_iter2 arguments, handle computation
10328 of counts even for ordered loops.
10329 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10330 (expand_omp_ordered_source, expand_omp_ordered_sink,
10331 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10333 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
10334 clauses on worksharing loop. Handle DOACROSS loop expansion.
10335 (expand_omp_for_static_nochunk): Handle linear clauses on
10336 worksharing loop. Adjust expand_omp_for_init_counts
10338 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
10339 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
10340 expand_omp_for_init_counts callers.
10341 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10343 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10344 Handle doacross loops.
10345 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10346 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10347 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10348 (expand_omp): Don't expand ordered depend constructs here, record
10349 ord_stmt instead for later expand_omp_for_generic.
10350 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10351 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10352 clause as stand-alone directive.
10353 (lower_omp_ordered_clauses): New function.
10354 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10355 don't lower anything.
10356 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10357 on taskloop for comparison.
10358 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10359 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10360 expansion for linear adjustments.
10361 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10362 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10363 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10364 to tree * pointing to the stmt's clauses.
10365 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10366 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10367 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10368 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10369 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10370 clauses. Always use short kind and 8-bit align shift.
10371 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10372 (struct lower_omp_regimplify_operands_data): New type.
10373 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10375 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10376 gimple_regimplify_operands.
10377 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10378 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10379 clause as stand-alone directive.
10380 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10381 (simd_clone_mangle): Mangle the various linear kinds
10383 (simd_clone_adjust_argument_types): Handle
10384 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10385 (simd_clone_init_simd_arrays): Don't do anything for uval.
10386 (simd_clone_adjust): Handle
10387 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10388 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10389 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10390 * omp-low.h (omp_member_access_dummy_var): New prototype.
10391 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10392 pass after all optimizations.
10393 * tree.c (omp_clause_code_name): Add entries for
10394 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10395 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10396 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10397 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10398 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10399 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10400 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10401 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10403 * tree-core.h (enum omp_clause_linear_kind): New.
10404 (struct tree_omp_clause): Change type of map_kind
10405 from unsigned char to unsigned int. Add subcode.if_modifier
10406 and subcode.linear_kind fields.
10407 (enum omp_clause_code): Add
10408 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10409 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10410 (OMP_CLAUSE_REDUCTION): Document
10411 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10412 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10413 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10414 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10416 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10418 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10420 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10421 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10423 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10424 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10425 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10426 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10427 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10428 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10429 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10430 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10431 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10432 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10433 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10434 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10435 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10436 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10437 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10438 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10439 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10440 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10441 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10442 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10443 (convert_local_omp_clauses): Likewise.
10444 * tree-pretty-print.c (dump_omp_clause): Handle
10445 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10446 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10447 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10448 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10449 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10450 GOMP_MAP_FORCE_DEALLOC. Handle
10451 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10452 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10453 and clauses on OMP_ORDERED and OMP_CRITICAL.
10454 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10455 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10456 (vectorize_loops): Adjust comments.
10457 (pass_simduid_cleanup::execute): Likewise.
10458 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10459 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10460 * wide-int.h (wi::gcd): New.
10462 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10464 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10465 (ix86_function_arg_advance): Ditto.
10466 (ix86_function_arg): Ditto.
10467 (ix86_gimplify_va_arg): Ditto.
10468 (ix86_class_max_nregs): Ditto.
10469 (inline_memory_move_cost): Ditto.
10470 (ix86_set_reg_reg_cost): Ditto.
10471 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10473 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10475 PR middle-end/67912
10476 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10478 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10480 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10481 ROUND_UP macro and UNITS_PER_WORD * 2.
10482 * config/sparc/sparc.c (sparc_compute_frame_size):
10483 Use ROUND_UP and ROUND_DOWN macros where applicable.
10484 (function_arg_record_value, function_arg_record_value_1)
10485 (function_arg_record_value_1): Ditto.
10486 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10487 alignment to double-word.
10488 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10489 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10492 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10494 * rtl.h (print_insn): Fix prototype.
10496 2015-10-13 Tom de Vries <tom@codesourcery.com>
10498 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10499 -1. Add assert that returned entry matches phi argument.
10500 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10501 free_stmt_vec_info_vec ...
10502 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10505 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10507 PR tree-optimization/67909, 67947
10508 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10509 really skip the inner loop.
10511 2015-10-13 Jeff Law <law@redhat.com>
10513 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10514 Allow single block jump threading paths.
10516 2015-10-13 Tom de Vries <tom@codesourcery.com>
10518 PR tree-optimization/67476
10519 * doc/invoke.texi (@item parloops-schedule): New item.
10520 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10521 * tree-parloops.c: Include params-enum.h.
10522 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10524 2015-10-13 Tom de Vries <tom@codesourcery.com>
10526 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10527 * params-enum.h: New file.
10528 * opts.c (handle_param): Handle case that param arg is a string.
10529 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10530 * params.c (find_param): New function, factored out of ...
10531 (set_param_value): ... here.
10532 (param_string_value_p): New function.
10533 * params.h (struct param_info): Add value_names field.
10534 (find_param, param_string_value_p): Declare.
10536 2015-10-13 Tom de Vries <tom@codesourcery.com>
10538 PR tree-optimization/67476
10539 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10541 2015-10-13 Richard Biener <rguenther@suse.de>
10543 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10544 the data dependence vector.
10545 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10546 (vect_peeling_hash_get_lowest_cost): Likewise.
10547 (vect_enhance_data_refs_alignment): Adjust.
10548 (struct _vect_peel_info, struct _vect_peel_extended_info,
10549 struct peel_info_hasher): Move from ...
10550 * tree-vectorizer.h: ... here.
10551 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10552 (LOOP_VINFO_PEELING_HTAB): Likewise.
10553 (struct _loop_vec_info): Remove min_profitable_iters and
10554 peeling_htab members.
10555 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10557 (destroy_loop_vec_info): Adjust.
10558 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10559 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10560 to estimate alias versioning cost.
10561 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10563 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10565 * real.h (real_isinteger): Declare.
10566 * real.c (real_isinteger): New function.
10567 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10568 if y is an even integer.
10570 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10573 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10574 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10575 counts when these are more informative.
10577 2015-10-12 Jeff Law <law@redhat.com>
10579 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10580 (fsm_find_control_stmt_paths): Change name of first argument to
10581 more accurately relfect what it really is. Handle simplification
10582 of GIMPLE_COND after finding a thread path for NAME.
10583 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10584 nontrivial conditions to be handled by FSM threader.
10585 (thread_through_normal_block): Extract the name to looup via
10586 FSM threader from COND_EXPR.
10588 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10589 restriction that traced SSA_NAME is a user variable.
10591 2015-10-12 Tom de Vries <tom@codesourcery.com>
10593 PR tree-optimization/67476
10594 * omp-low.c (expand_omp_for_generic): Add missing phis.
10596 2015-10-12 Tom de Vries <tom@codesourcery.com>
10598 PR tree-optimization/67476
10599 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10601 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10603 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10604 tables: add tbl3 and tbx4.
10605 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10606 (aarch64_tbx4v8qi): New.
10607 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10608 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10609 Rewrite using builtin functions.
10610 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10612 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10614 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10616 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10617 Use ROUND_UP and ROUND_DOWN macros where applicable.
10618 (rs6000_darwin64_record_arg_flush): Ditto.
10619 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10620 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10623 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10625 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10626 (AARCH64_ROUND_DOWN): Ditto.
10627 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10629 2015-10-12 Richard Biener <rguenther@suse.de>
10632 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10633 code that analyzes IVs on each stmt but in a cheaper way avoiding
10634 quadratic behavior.
10636 2015-10-12 Nick Clifton <nickc@redhat.com>
10638 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10639 msp430_mcu_data, add fields for ISA and hardware multiply
10640 support. Import latest data from the devices.csv file.
10641 (msp430_override_option): Use the data from the new array.
10642 (msp430_use_f5_series_hwmult): Likewise.
10643 (use_32bit_hwmult): Likewise.
10644 (msp430_no_hwmult): Likewise.
10645 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10647 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10648 not recognised then no hardware multiply support is assumed and
10649 that only the MSP430 ISA is allowed.
10651 2015-10-12 Richard Biener <rguenther@suse.de>
10653 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10655 (vect_analyze_loop_2): ... here.
10657 2015-10-11 Jason Merrill <jason@redhat.com>
10660 * expr.c (store_field): Call store_constructor directly when
10661 storing a CONSTRUCTOR into a target smaller than its type.
10662 Guard against unsafe bitwise copy.
10664 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10666 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10667 counts when these are more informative.
10669 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10671 * tree-profile.c (tree_profiling): Do not clear
10672 pure/const when not instrumenting.
10673 (pass tree_profile): Add dump of symtab.
10675 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10677 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10679 (fold_addr_of_array_ref_difference): Likewise.
10681 2015-10-11 Jeff Law <law@redhat.com>
10683 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10684 tree-ssa-threadbackward.c.
10685 (fsm_find_control_statement_thread_paths): Likewise.
10686 (thread_through_normal_block): Break out FSM bits and move them
10687 into a new function in tree-ssa-threadbackward.c. Call new function
10689 Minimize header file usage.
10690 * tree-ssa-threadbackward.h: New file.
10691 * tree-ssa-threadbackward.c: Likewise.
10692 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10694 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10696 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10698 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10700 PR rtl-optimization/67864
10701 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10702 fallthrough edges for conditional jumps. Don't sort candidate
10703 edges if not optimizing for speed.
10705 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10707 * defaults.h (REVERSE_CONDITION): New default definition.
10708 * jump.c (reversed_comparison_code_parts): Adjust.
10710 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10712 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10713 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10715 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10717 * defaults.h (FRAME_ADDR_RTX): New default definition.
10718 * builtins.c (expand_builtin_return_addr): Adjust.
10720 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10722 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10723 * builtins.c (expand_builtin_return_addr): Adjust.
10725 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10727 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10728 * builtins.c (expand_builtin_return_addr): Adjust.
10729 * doc/tm.texi: Likewise.
10730 * doc/tm.texi.in: Likewise.
10731 * except.c (expand_builtin_unwind_init): Likewise.
10733 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10735 * builtins.c (expand_builtin_return_addr): Adjust.
10736 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10738 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10740 * tree.c (type_with_interoperable_signedness): New.
10741 (gimple_canonical_types_compatible_p): Use it.
10742 * tree.h (type_with_interoperable_signedness): Declare
10744 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10746 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10747 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10748 when OEP_ADDRESS_OF is se.
10750 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10751 Sebastian Pop <s.pop@samsung.com>
10753 * graphite-dependences.c (scop_get_dependences): Add dump of the
10754 data dependence graph.
10755 * graphite-poly.c (print_isl_union_map): New.
10756 (debug_isl_union_map): New.
10757 * graphite-poly.h (print_isl_union_map): Declare.
10758 (debug_isl_union_map): Declare.
10760 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10761 Sebastian Pop <s.pop@samsung.com>
10763 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10764 Remove OpenScop formatting.
10765 (print_iteration_domains): Same.
10766 (debug_iteration_domain): Same.
10767 (debug_iteration_domains): Same.
10770 (dump_gbb_cases): Same.
10771 (dump_gbb_conditions): Same.
10772 (print_pdrs): Same.
10773 (debug_pdrs): Same.
10774 (print_pbb_body): Same.
10776 (print_scop_params): Same.
10777 (print_scop_context): Same.
10778 (print_scop): Same.
10779 (debug_pbb_domain): Same.
10781 (debug_scop_context): Same.
10782 (debug_scop): Same.
10783 (debug_scop_params): Same.
10784 * graphite-poly.h: Same.
10785 * graphite.c (graphite_transform_loops): Same.
10787 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10789 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10790 call that isn't needed.
10792 2015-10-09 Jeff Law <law@redhat.com>
10794 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10795 rather than moving each name to the freelist individually.
10797 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10799 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10800 * frame-header-opt.c: New file.
10801 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10803 * config/mips/mips.c (mips_compute_frame_info): Check
10804 optimize_call_stack flag.
10805 (mips_option_override): Register new frame_header_opt pass.
10806 (mips_frame_info, mips_int_mask, mips_shadow_set,
10807 machine_function): Move these types to...
10808 * config/mips/mips.h: here.
10809 (machine_function): Add does_not_use_frame_header and
10810 optimize_call_stack fields.
10811 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10812 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10813 Document new flags.
10814 * config/mips/mips.opt (mframe-header-opt): Add new option.
10816 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10818 * config/i386/i386.c
10819 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10820 ROUND_DOWN where applicable.
10822 2015-10-09 Jeff Law <law@redhat.com>
10824 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10827 2015-10-09 Renlin Li <renlin.li@arm.com>
10829 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10830 operands[0] and operands[2].
10831 (neon_vtrn<mode>_insn): Likewise.
10832 (neon_vzip<mode>_insn): Likewise.
10834 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10836 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10837 ((X & C2) << C1): Expand to...
10838 (X {&,^,|} C2 << C1): ...This.
10839 ((X & C2) >> C1): Expand to...
10840 (X {&,^,|} C2 >> C1): ...This.
10842 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10845 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10846 Adjust embedded rounding/SAE specifier position.
10847 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10848 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10849 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10850 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10851 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10853 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10855 2015-10-09 Martin Jambor <mjambor@suse.cz>
10857 tree-optimization/67794
10858 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10859 between types of state,ents but accept original definitions as a
10861 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10862 iterate over definitions.
10864 2015-10-09 James Norris <jnorris@codesourcery.com>
10866 * config/rs6000/rs6000.c (rs6000_offload_options): New.
10867 (TARGET_OFFLOAD_OPTIONS): New.
10869 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
10871 PR middle-end/67891
10872 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10874 PR middle-end/67766
10875 * function.c (expand_function_end): Move return value
10876 promotion past the handling of PARALLELs and CONCATs.
10878 PR rtl-optimization/67828
10879 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10880 (tree_may_unswitch_on): Don't unswitch on expressions
10881 involving undefined values.
10883 2015-10-09 Richard Biener <rguenther@suse.de>
10885 * genmatch.c (print_operand): Fix formatting.
10886 (dt_node::append_simplify): Warn for multiple simplifiers
10887 that match the same pattern.
10888 * match.pd (log (exp @0)): Remove duplicates.
10890 2015-10-09 Richard Biener <rguenth@suse.de>
10893 * gimple-fold.c (optabs-query.h): Include
10894 (gimple_fold_builtin_memory_op): Allow unaligned stores
10895 when movmisalign_optabs are available.
10897 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10900 * config/arm/arm.md (movmisalign<mode>): New.
10901 * config/arm/iterators.md (HSI): New.
10903 2015-10-09 Richard Biener <rguenther@suse.de>
10905 PR tree-optimization/67891
10906 * gimple-match.h (gimple_simplified_result_is_gimple_val):
10908 (gimple_resimplify1): Declare.
10909 (gimple_resimplify2): Likewise.
10910 (gimple_resimplify3): Likewise.
10911 * gimple-match-head.c (gimple_resimplify1): Export.
10912 (gimple_resimplify2): Likewise.
10913 (gimple_resimplify3): Likewise.
10914 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10915 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10916 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10917 to avoid creating stmts without VN info.
10919 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
10921 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10924 2015-10-08 Jeff Law <law@redhat.com>
10926 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10927 and release_ssa_name in two places.
10928 (gimple_stringop_fixed_value): Similarly.
10930 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10933 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10934 unlink_stmt_vdef and release_ssa_name_fn.
10936 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10939 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
10941 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10942 SSE register save area to 16 bytes only if the incoming stack
10943 boundary is no less than 16 bytes.
10945 2015-10-08 Jeff Law <law@redhat.com>
10947 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10948 release_ssa_name. Fix typo in comment.
10950 2015-10-08 Nathan Sidwell <nathan@acm.org>
10952 * config/nvptx/nvptx.h (struct machine_function): Add comment.
10953 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10954 may return pointer as well as in memory.
10955 (nvptx_output_return): Likewise.
10957 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10959 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10960 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10961 * match.pd: Add rules previously handled by fold_builtin_sqrt
10962 and fold_builtin_cbrt.
10964 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10966 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10967 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10968 * fold-const.h (tree_unary_nonnegative_warnv_p)
10969 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10970 (tree_expr_nonnegative_warnv_p): Add depth parameters.
10971 * fold-const.c: Include gimple-fold.h and params.h.
10972 (tree_ssa_name_nonnegative_warnv_p): New function.
10973 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10974 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10975 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10976 Add a depth parameter and increment it for recursive calls to
10977 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
10978 to handle SSA names.
10979 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10980 (gimple_stmt_nonnegative_warnv_p): Declare.
10981 * tree-vrp.c (remove_range_assertions): Remove assert that condition
10982 cannot be proven false.
10983 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10984 (gimple_stmt_nonnegative_warnv_p): Move to...
10985 * gimple-fold.c: ...here. Add depth parameters and pass them
10986 down to the tree routines. Accept statements that aren't
10987 assignments or calls but just return false for them.
10988 (gimple_val_nonnegative_real_p): Delete.
10989 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10990 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10991 Check HONOR_NANs first.
10993 2015-10-08 Martin Jambor <mjambor@suse.cz>
10995 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
10998 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11000 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11001 in the tail of outer-loop.
11003 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
11005 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11008 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11010 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11011 "cfghooks.h", add prototypes for introduced new functions.
11012 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11013 checks on ability of loop unswitching to tree_unswitch_single_loop;
11014 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11015 on innermost loop check.
11016 (tree_unswitch_single_loop): Add all required checks on ability of
11017 loop unswitching under zero recursive level guard.
11018 (tree_unswitch_outer_loop): New function.
11019 (find_loop_guard): Likewise.
11020 (empty_bb_without_guard_p): Likewise.
11021 (used_outside_loop_p): Likewise.
11022 (get_vop_from_header): Likewise.
11023 (hoist_guard): Likewise.
11024 (check_exit_phi): Likewise.
11026 2015-10-08 Marek Polacek <polacek@redhat.com>
11028 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11031 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11034 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11035 create_tmp_var_raw instead of create_tmp_var.
11037 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
11039 * expr.c (store_expr_with_bounds): Handle aggregate moves from
11041 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11042 to define gimple type system; compare aggregates only by size.
11044 2015-10-07 Jeff Law <law@redhat.com>
11046 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11047 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11048 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
11051 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11052 Sebastian Pop <s.pop@samsung.com>
11054 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11055 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11056 (generate_isl_schedule): Same.
11057 * graphite-optimize-isl.c (scop_get_domains): Same.
11058 (apply_schedule_map_to_scop): Same.
11059 * graphite-poly.c (print_iteration_domains): Same.
11060 (remove_gbbs_in_scop): Same.
11063 (print_scop): Same.
11064 * graphite-poly.h (struct scop): Rename bbs to pbbs.
11065 (SCOP_BBS): Remove.
11066 * graphite-scop-detection.c (compare_bb_depths): Remove.
11067 (graphite_sort_dominated_info): Remove.
11068 (try_generate_gimple_bb): Move out of scop_detection.
11069 (all_non_dominated_preds_marked_p): Remove.
11070 (build_scop_bbs_1): Remove.
11071 (build_scop_bbs): Remove.
11072 (nb_pbbs_in_loops): Do not use SCOP_BBS.
11073 (find_scop_parameters): Same.
11074 (sese_dom_walker): Rename gather_bbs.
11075 (before_dom_children): Call try_generate_gimple_bb and collect gbb
11077 (build_scops): Call gather_bbs.
11078 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11079 (add_conditions_to_constraints): Same.
11080 (build_scop_iteration_domain): Same.
11081 (build_scop_drs): Same.
11082 (new_pbb_from_pbb): Same.
11083 * sese.c (new_sese_info): Create bbs.
11084 * sese.h (struct sese_info_t): Add bbs.
11086 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
11088 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11089 encoding in 64-bit mode.
11091 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
11094 * config/i386/i386.c (ix86_option_override_internal): Always use
11095 8-byte minimum stack boundary in 64-bit mode.
11096 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11097 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11098 Add a REG_CFA_EXPRESSION note if needed.
11099 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11100 (ix86_handle_force_align_arg_pointer_attribute): New.
11101 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11102 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11103 with ix86_handle_force_align_arg_pointer_attribute.
11104 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11106 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11107 Sebastian Pop <s.pop@samsung.com>
11109 * graphite-scop-detection.c (parameter_index_in_region): Remove
11110 use of SESE_ADD_PARAMS.
11111 (find_scop_parameters): Same.
11112 * sese.c (new_sese_info): Same.
11113 * sese.h (struct sese_info_t): Remove add_params.
11114 (SESE_ADD_PARAMS): Remove.
11116 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11117 Sebastian Pop <s.pop@samsung.com>
11119 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11122 (copy_internal_parameters): Same.
11123 (translate_isl_ast_to_gimple): Use an sese_l.
11124 (build_iv_mapping): Same.
11125 * graphite-poly.c (new_sese): Rename new_sese_info.
11126 (free_sese): Rename free_sese_info.
11127 * graphite-poly.h (struct scop): Use an sese_info_p.
11128 (scop_set_region): Same.
11129 * graphite-scop-detection.c (struct sese_l): Moved...
11130 (get_entry_bb): Moved...
11131 (get_exit_bb): Moved...
11132 (parameter_index_in_region_1): Use an sese_info_p.
11133 (parameter_index_in_region): Same.
11134 (scan_tree_for_params): Same.
11135 (find_params_in_bb): Same.
11136 (sese_dom_walker): Use an sese_l.
11137 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11138 (reduction_phi_p): Same.
11139 (parameter_index_in_region_1): Use an sese_info_p.
11140 (propagate_expr_outside_region): Use an sese_l.
11141 * graphite.c: Replace uses of SCOP_REGION.
11142 * sese.c (sese_record_loop): Use an sese_info_p.
11143 (build_sese_loop_nests): Same.
11144 (sese_build_liveouts_use): Same.
11145 (sese_build_liveouts_bb): Same.
11146 (sese_build_liveouts_bb): Same.
11147 (sese_bad_liveouts_use): Same.
11148 (sese_reset_debug_liveouts_bb): Same.
11149 (sese_build_liveouts): Same.
11150 (new_sese): Renamed new_sese_info.
11151 (free_sese): Renamed free_sese_info.
11152 (set_rename): Use an sese_info_p.
11153 (graphite_copy_stmts_from_block): Same.
11154 (copy_bb_and_scalar_dependences): Same.
11155 (outermost_loop_in_sese_1): Use an sese_l.
11156 (outermost_loop_in_sese): Same.
11157 (if_region_set_false_region): Use an sese_info_p.
11158 (move_sese_in_condition): Same.
11159 (scalar_evolution_in_region): Use an sese_l.
11160 * sese.h (struct sese_l): ... here.
11161 (SESE_ENTRY): Remove.
11162 (SESE_ENTRY_BB): Remove.
11163 (SESE_EXIT): Remove.
11164 (SESE_EXIT_BB): Remove.
11165 (sese_contains_loop): Use an sese_info_p.
11166 (sese_nb_params): Same.
11167 (bb_in_sese_p): Use an sese_l.
11168 (stmt_in_sese_p): Same.
11169 (defined_in_sese_p): Same.
11170 (loop_in_sese_p): Same.
11171 (sese_loop_depth): Same.
11172 (struct ifsese_s): Use an sese_info_p.
11173 (gbb_loop_at_index): Use an sese_l.
11174 (nb_common_loops): Same.
11175 (scev_analyzable_p): Same.
11177 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11179 * config/i386/i386.c (ix86_conditional_register_usage): Use
11180 CALL_USED_REGISTERS_MASK.
11181 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11183 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11186 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11187 * configure: Regenerated.
11189 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11192 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11193 (ix86_set_current_function): This.
11194 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11196 2015-10-07 Richard Biener <rguenther@suse.de>
11198 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11199 (vinfo_for_stmt): Adjust.
11200 (set_vinfo_for_stmt): Likewise.
11201 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11202 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11203 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11205 (vect_analyze_loop_1): Remove.
11206 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11207 inner loop when vectorizing an outer loop by splitting out from ...
11208 (vect_analyze_loop_form): ... here.
11210 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11213 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11214 Use create_tmp_var_raw instead of create_tmp_var.
11216 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
11218 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11219 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11220 * real.c (CACHED_FRACTION): New helper macro.
11221 (dconst_third_ptr): Use it.
11222 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11223 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11225 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11227 2015-10-06 Jeff Law <law@redhat.com>
11229 PR tree-optimization/67816
11230 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11231 from remove_jump_threads_starting_at. Accept an edge rather than
11233 * tree-ssa-threadupdate.c (removed_edges): New hash table.
11234 (remove_jump_threads_including): Note edges that get removed from
11235 the CFG for later pruning of jump threading paths including them.
11236 (thread_through_all_blocks): Remove paths which include edges that
11238 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11239 on each outgoing edges when optimizing away a control statement.
11241 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11243 * reorg.c (emit_delay_sequence): Store list of delay slot insns
11244 in a vector instead of rtx_insn_list.
11245 (add_to_delay_list): Likewise.
11246 (delete_from_delay_slot): Likewise.
11247 (optimize_skip): Likewise.
11248 (redirect_with_delay_list_safe_p): Likewise.
11249 (check_annul_list_true_false): Likewise.
11250 (steal_delay_list_from_target): Likewise.
11251 (steal_delay_list_from_fallthrough): Likewise.
11252 (redundant_insn): Likewise.
11253 (fill_simple_delay_slots): Likewise.
11254 (fill_slots_from_thread): Likewise.
11255 (fill_eager_delay_slots): Likewise.
11256 (relax_delay_slots): Likewise.
11258 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
11260 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11261 For -mgpopt=local, also exclude unintialized common symbols.
11262 * doc/invoke.texi (Nios II Options): Document the change.
11264 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11266 * config/aarch64/iterators.md (vwcore): Add missing cases for
11269 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11270 Sebastian Pop <s.pop@samsung.com>
11272 * graphite-poly.c (new_scop): Initialize drs.
11273 * graphite-poly.h (struct dr_info): New.
11274 (struct scop): Add drs.
11275 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11276 (pdr_add_memory_accesses): Same.
11277 (build_poly_dr): Same.
11278 (build_alias_set): Same.
11279 (build_scop_drs): Same.
11280 (build_pbb_drs): Remove.
11281 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11282 * tree-data-ref.h (data_reference): Remove alias_set.
11284 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11285 Sebastian Pop <s.pop@samsung.com>
11287 * graphite-poly.c (free_data_refs_aux): Remove.
11288 (free_gimple_poly_bb): Do not call free_data_refs_aux.
11289 * graphite-poly.h (struct base_alias_pair): Remove.
11290 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11291 base_alias_pair and dr->aux.
11292 (build_alias_set): Same.
11293 * tree-data-ref.c (create_data_ref): Initialize alias_set.
11294 * tree-data-ref.h (data_reference): Add alias_set.
11296 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11297 Sebastian Pop <s.pop@samsung.com>
11299 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11300 Do not set PDR_BASE_OBJECT_SET.
11301 * graphite-poly.h (poly_dr): Same.
11302 (PDR_BASE_OBJECT_SET): Remove.
11303 (new_poly_dr): Update decl.
11304 * graphite-sese-to-poly.c (build_poly_dr): Update call to
11306 (write_alias_graph_to_ascii_dimacs): Remove.
11307 (write_alias_graph_to_ascii_dot): Remove.
11308 (write_alias_graph_to_ascii_ecc): Remove.
11309 (dr_same_base_object_p): Remove.
11310 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
11312 (build_base_obj_set_for_drs): Remove.
11313 (dump_alias_graphs): Remove.
11314 (build_scop_drs): Remove dead code.
11316 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11317 Peter Bergner <bergner@vnet.ibm.com>
11320 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11321 allow registers, but provide insns for the combiner to create for
11322 loads from memory. Separate VSX code from non-VSX code. For
11323 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11324 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11325 so that registers come before memory operations. Drop support from
11326 converting DFmode to TFmode, if the DFmode value is in a GPR
11328 (extenddftf2_fprs): Likewise.
11329 (extenddftf2_internal): Likewise.
11330 (extenddftf2_vsx): Likewise.
11331 (extendsftf2): In the expander, only allow registers, but provide
11332 insns for the combiner to create for stores and loads.
11334 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11336 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11337 from the decl parameter.
11339 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
11342 * gimple-fold.c (gimple_fold_builtin): Add break after
11343 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11345 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11347 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11348 to scop->isl_context.
11350 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11352 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11353 (output_probe_stack_range): Rotate the loop and simplify.
11354 (thumb1_expand_prologue): Tweak sorry message.
11355 * config/arm/arm.md (probe_stack): Use bare string.
11357 2015-10-06 Nick Clifton <nickc@redhat.com>
11359 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11361 2015-10-06 Nick Clifton <nickc@redhat.com>
11363 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11364 (ATTR_PERSIST): New constant.
11365 (msp430_data_attr): New function - verifies an attribute that only
11366 applies to variables.
11367 (msp430_attributes): Add noinit and persistent attributes.
11368 (noinit_section): New variable.
11369 (presis_section): New variable.
11370 (TARGET_ASM_INIT_SECTIONS): Define.
11371 (msp430_init_sections): New function - initialises the noinit and
11372 persist section variables.
11373 (msp430_select_section): Add support for noinit and persist
11375 (msp430_section_type_flags): Likewise.
11376 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11377 and persistent attributes.
11379 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11380 Sebastian Pop <s.pop@samsung.com>
11382 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11383 (no_violations): Remove.
11384 (subtract_commutative_associative_deps): Remove.
11385 (compute_deps): Do not call subtract_commutative_associative_deps.
11386 (transform_is_safe): Remove.
11387 (graphite_legal_transform): Remove.
11388 * graphite-poly.h (graphite_legal_transform): Remove.
11390 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11392 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11393 which are in this region are passed so gcc_assert and remove redundant
11395 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11397 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11398 gcc_assert on that and remove unnecessary computation.
11399 (sese_build_liveouts_use): Same.
11401 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11403 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11404 to scop->param_context.
11405 (scop_get_must_writes): Same.
11406 (scop_get_may_writes): Same.
11407 (scop_get_original_schedule): Same.
11408 (scop_get_transformed_schedule): Same.
11409 (subtract_commutative_associative_deps): Same.
11410 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11411 (generate_isl_context): Same.
11412 (generate_isl_schedule): Same.
11413 (scop_to_isl_ast): Same.
11414 (graphite_regenerate_ast_isl): Same.
11415 * graphite-optimize-isl.c (scop_get_domains): Same.
11416 (optimize_isl): Renamed scop->context to scop->param_context.
11417 * graphite-poly.c (new_poly_bb): Change the type of argument to
11419 (new_scop): Renamed scop->context to scop->param_context.
11421 (print_scop_context): Same.
11422 * graphite-poly.h (new_poly_dr): Change the type of argument from
11423 void* to data_reference_p.
11424 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11425 (new_poly_bb): Change the type of argument from void* to
11427 (pbb_set_black_box): Same.
11428 (struct scop): Rename context to param_context, ctx to isl_context.
11429 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11430 Move declarations closer to assignment.
11431 (find_params_in_bb): Same.
11432 (find_scop_parameters): Same.
11433 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11434 Global to be used for statement IDs.
11435 (isl_id_for_pbb): Use ssa_name_version_typesize.
11436 (simple_copy_phi_p): Move declarations closer to assignment.
11437 (build_pbb_scattering_polyhedrons): Same.
11438 (build_scop_scattering): Same.
11439 (isl_id_for_ssa_name): Same.
11440 (extract_affine_name): Same.
11441 (extract_affine_int): Same.
11442 (extract_affine): Same.
11443 (set_scop_parameter_dim): Use renamed member.
11444 (build_loop_iteration_domains): Same.
11445 (add_param_constraints): Same.
11446 (build_scop_iteration_domain): Same.
11447 (pdr_add_data_dimensions): Same.
11448 (build_poly_dr): Same.
11449 (build_scop_drs): Move declarations closer to assignment.
11450 (analyze_drs_in_stmts): Same.
11451 (insert_out_of_ssa_copy): Same.
11452 (insert_out_of_ssa_copy_on_edge): Same.
11453 (propagate_expr_outside_region): Same.
11454 (rewrite_phi_out_of_ssa): Same.
11455 (rewrite_degenerate_phi): Same.
11456 (rewrite_reductions_out_of_ssa): Same.
11457 (rewrite_cross_bb_scalar_dependence): Same.
11458 (handle_scalar_deps_crossing_scop_limits): Same.
11459 (rewrite_cross_bb_scalar_deps): Same.
11460 * graphite.c (graphite_transform_loops): Use renamed member.
11462 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11465 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11466 create_tmp_var_raw instead of create_tmp_var.
11468 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11471 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11472 Use create_tmp_var_raw instead of create_tmp_var.
11474 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11477 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11478 split for upper-bank registers when target does not support
11480 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11481 split when target does not support AVX512VL.
11483 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11486 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11487 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11489 2015-10-06 Nick Clifton <nickc@redhat.com>
11491 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11494 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11496 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11497 (case ${target}): Add znver1.
11498 * config/i386/cpuid.h(bit_CLZERO): Define.
11499 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11500 -march=native recognize znver1 processors.
11501 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11502 znver1, clzero def_and_undef.
11503 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11504 (m_znver1): New definition.
11505 (m_AMD_MULTIPLE): Includes m_znver1.
11506 (processor_target_table): Add znver1 entry.
11507 (ix86_target_string) : Add clzero entry.
11508 (static const char *const cpu_names): Add znver1 entry.
11509 (ix86_option_override_internal): Add znver1 instruction sets.
11510 (PTA_CLZERO) : New definition.
11511 (ix86_option_override_internal): Handle new clzerooption.
11512 (ix86_issue_rate): Add znver1.
11513 (ix86_adjust_cost): Add znver1.
11514 (ia32_multipass_dfa_lookahead): Add znver1.
11515 (has_dispatch): Add znver1.
11516 * config/i386/i386.h (TARGET_znver1): New definition.
11517 (TARGET_CLZERO): Define.
11518 (TARGET_CLZERO_P): Define.
11519 (struct ix86_size_cost): Add TARGET_ZNVER1.
11520 (enum processor_type): Add PROCESSOR_znver1.
11521 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11522 (set_attr znver1_decode): New definitions for znver1.
11523 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11525 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11527 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11528 * config/i386/x86-tune.def: Add znver1 tunings.
11529 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11530 * doc/invoke.texi: Add details about znver1
11532 2015-10-06 Richard Biener <rguenther@suse.de>
11534 PR tree-optimization/67859
11535 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11536 discard not inserted stmts.
11538 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11540 * doc/extend.texi (Template Instantiation): Reorder options and
11541 de-emphasize -frepo.
11542 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11543 example instead of -frepo.
11545 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11548 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11549 use create_tmp_var_raw rather than create_tmp_var.
11551 2015-10-06 Richard Biener <rguenther@suse.de>
11553 * tree-vectorizer.h (vec_info): New base class for...
11554 (_loop_vec_info): ... this and ...
11555 (_bb_vec_info): ... this.
11556 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11557 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11558 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11559 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11560 vect_destroy_datarefs): Adjust interface to take a vec_info *
11561 rather than both a loop_vec_info and a bb_vec_info argument.
11562 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11563 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11564 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11565 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11567 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11568 (destroy_loop_vec_info, vect_analyze_loop_2,
11569 vect_is_simple_reduction_1, get_initial_def_for_induction,
11570 vect_create_epilog_for_reduction, vectorizable_reduction,
11571 vectorizable_live_operation, vect_transform_loop): Adjust.
11572 * tree-vect-patterns.c (type_conversion_p,
11573 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11574 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11575 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11576 check_bool_pattern, vect_recog_bool_pattern,
11577 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11578 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11579 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11580 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11581 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11582 (new_bb_vec_info): Initialize base classs.
11583 * tree-vect-stmts.c (record_stmt_cost, process_use,
11584 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11585 vectorizable_mask_load_store, vectorizable_call,
11586 vectorizable_simd_clone_call, vectorizable_conversion,
11587 vectorizable_assignment, vectorizable_shift,
11588 vectorizable_operation, vectorizable_store,
11589 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11590 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11591 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11593 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11596 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11597 create_tmp_var_raw rather than create_tmp_var.
11599 2015-10-05 Marek Polacek <polacek@redhat.com>
11601 * tree-ssa-loop-im.c
11602 (move_computations_dom_walker::before_dom_children): Don't set
11603 SSA_NAME_ANTI_RANGE_P.
11604 * tree-ssa-phiopt.c (value_replacement): Likewise.
11606 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11607 Sebastian Pop <s.pop@samsung.com>
11609 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11611 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11612 Sebastian Pop <s.pop@samsung.com>
11614 * graphite-poly.c (new_gimple_poly_bb): ... here.
11615 (free_data_refs_aux): ... here.
11616 (free_gimple_poly_bb): ... here.
11617 (remove_gbbs_in_scop): ... here.
11618 (new_scop): Call new_sese.
11619 (free_scop): Call remove_gbbs_in_scop and free_sese.
11620 * graphite-poly.h (base_alias_pair): ... here.
11621 (new_gimple_poly_bb): Declare.
11622 (free_gimple_poly_bb): Declare.
11623 * graphite-scop-detection.c (parameter_index_in_region_1):
11624 (parameter_index_in_region): ... here.
11625 (scan_tree_for_params): ... here.
11626 (find_params_in_bb): ... here.
11627 (find_scop_parameters): ... here.
11628 (build_scops): Call find_scop_parameters.
11629 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11630 (free_scops): Move...
11631 (single_pred_cond_non_loop_exit): Move...
11632 (sese_dom_walker::before_dom_children): Move...
11633 (sese_dom_walker::after_dom_children): Move...
11634 (build_poly_scop): Move...
11635 * graphite-sese-to-poly.h (base_alias_pair): Move...
11636 * graphite.c (free_scops): ... here.
11638 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11639 Sebastian Pop <s.pop@samsung.com>
11641 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11642 (trivially_empty_bb_p): Move...
11643 (same_close_phi_node): Move...
11644 (new_gimple_poly_bb): Move...
11645 (compare_bb_depths): Move...
11646 (graphite_sort_dominated_info): Move...
11647 (remove_duplicate_close_phi): Move...
11648 (make_close_phi_nodes_unique): Move...
11649 (canonicalize_loop_closed_ssa): Move...
11650 (canonicalize_loop_closed_ssa_form): Move...
11651 (loop_ivs_can_be_represented): Move...
11652 (single_pred_cond_non_loop_exit): Move...
11653 (graphite_can_represent_init): Move...
11654 (graphite_can_represent_scev): Move...
11655 (stmt_has_simple_data_refs_p): Move...
11656 (stmt_has_side_effects): Move...
11657 (graphite_can_represent_stmt): Move...
11658 (scop_detection): ... here.
11659 (sese_dom_walker): ... and here.
11660 (build_scops): Call all moved functions.
11661 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11662 (all_non_dominated_preds_marked_p): Move...
11663 (build_scop_bbs_1): Move...
11664 (build_scop_bbs): Move...
11665 (set_scop_parameter_dim): Move...
11666 (nb_pbbs_in_loops): Move...
11667 (build_poly_scop): Do not call all the moved functions.
11669 2015-10-05 Martin Jambor <mjambor@suse.cz>
11670 Jan Hubicka <hubicka@ucw.cz>
11672 * ipa-cp.c (ipcp_alignment_lattice): New type.
11673 (ipcp_param_lattices): Use the above to represent alignment.
11674 (ipcp_alignment_lattice::print): New function.
11675 (print_all_lattices): Use it to print alignment information.
11676 (ipcp_alignment_lattice::top_p): New function.
11677 (ipcp_alignment_lattice::bottom_p): Likewise.
11678 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11679 (ipcp_alignment_lattice::meet_with_1): Likewise.
11680 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11681 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11682 (initialize_node_lattices): Likewise.
11683 (propagate_alignment_accross_jump_function): Work with the new class
11684 for alignment lattices.
11685 (propagate_constants_accross_call): Pass only the alignment lattice to
11686 propagate_alignment_accross_jump_function.
11687 (ipcp_store_alignment_results): Work with the new class for alignment
11690 2015-10-05 Marek Polacek <polacek@redhat.com>
11692 PR tree-optimization/67821
11693 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11695 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11698 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11700 (mkoffload_cleanup): ... this. Adjust all users.
11701 (maybe_unlink): Look at save_temps and verbose flags instead of
11703 (main): Parse "-save-temps" flag.
11704 (generate_target_descr_file, generate_target_offloadend_file)
11705 (generate_host_descr_file, prepare_target_image): Pass it on.
11706 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11707 (mkoffload_cleanup): New function.
11708 (maybe_unlink): Look at save_temps and verbose flags instead of
11710 (main): Instead of calling utils_cleanup, register atexit handler
11711 for mkoffload_cleanup.
11712 (main): Parse "-save-temps" flag.
11713 (compile_native, main): Pass it on.
11714 * lto-wrapper.c (compile_offload_image): Likewise.
11716 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11718 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11719 (gimple_assign_lhs_ptr): Likewise.
11720 (gimple_assign_rhs1_ptr): Likewise.
11721 (gimple_assign_rhs2_ptr): Likewise.
11722 (gimple_assign_rhs3_ptr): Likewise.
11723 (gimple_call_lhs_ptr): Likewise.
11724 (gimple_call_fn_ptr): Likewise.
11725 (gimple_call_chain_ptr): Likewise.
11726 (gimple_call_arg_ptr): Likewise.
11727 (gimple_cond_lhs_ptr): Likewise.
11728 (gimple_cond_rhs_ptr): Likewise.
11729 (gimple_switch_index_ptr): Likewise.
11730 (gimple_return_retval_ptr): Likewise.
11732 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11734 * gimple.h (gimple_asm_input_op_ptr): Remove.
11735 (gimple_asm_output_op_ptr): Likewise.
11737 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11739 * gimple.h (gimple_location_ptr): Remove.
11740 * tree-vrp.c (check_all_array_refs): Adjust.
11742 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11744 * tree-ssa-operands.c (build_uses): store tree * instead of
11746 (finalize_ssa_uses): Adjust.
11747 (append_use): Likewise.
11748 (verify_ssa_operands): Likewise.
11750 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11752 * real.h (build_real_truncate): Declare.
11753 * tree.c (build_real_truncate): New function.
11754 (strip_float_extensions): Use it.
11755 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11756 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11757 * match.pd: Likewise.
11759 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11760 Jiong Wang <jiong.wang@arm.com>
11762 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11764 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11766 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11767 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11768 (aarch64_print_operand, aarch64_float_const_representable_p)
11769 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11770 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11771 * config/arc/arc.c (arc_print_operand): Likewise.
11772 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11773 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11774 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11776 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11777 (consttable_16): Likewise.
11778 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11779 * config/avr/avr.c (avr_print_operand): Likewise.
11780 * config/bfin/bfin.md: Likewise (in a define_split).
11781 * config/c6x/c6x.md: Likewise (in a define_split).
11782 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11783 (cr16_print_operand): Likewise.
11784 * config/cris/cris.c (cris_print_operand): Likewise.
11785 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11786 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11787 (fr30_const_double_is_zero): Likewise.
11788 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11789 * config/frv/frv.md: Likewise (in a define_split).
11790 * config/frv/predicates.md (int_2word_operand): Likewise.
11791 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11792 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11793 (ix86_print_operand, ix86_split_to_parts): Likewise.
11794 * config/i386/i386.md: Likewise (in a define_split).
11795 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11796 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11797 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11798 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11799 (print_operand): Likewise.
11800 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11801 * config/mep/mep.md: Likewise (in define_split).
11802 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11803 (print_operand): Likewise.
11804 * config/mips/mips.md (consttable_float): Likewise.
11805 * config/mmix/mmix.c (mmix_intval): Likewise.
11806 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11807 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11808 * config/pa/pa.c (pa_singlemove_string): Likewise.
11809 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11810 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11811 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11812 (output_toc): Likewise.
11813 * config/rs6000/rs6000.md: Likewise (in define_splits).
11814 * config/rx/rx.c (rx_print_operand): Likewise.
11815 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11816 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11817 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11818 (and also in define_splits).
11819 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11820 (fp_high_losum_p): Likewise.
11821 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11822 (*movsf_high): Likewise.
11823 * config/spu/spu.c (const_double_to_hwint): Likewise.
11824 * config/v850/v850.c (const_double_split): Likewise.
11825 * config/vax/vax.c (vax_float_literal): Likewise.
11826 * config/visium/visium.c (visium_expand_copysign): Likewise.
11827 * config/visium/visium.md: Likewise (in define_split).
11828 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11829 * config/xtensa/xtensa.c (print_operand): Likewise.
11830 (xtensa_output_literal): Likewise.
11831 * cprop.c (implicit_set_cond_p): Likewise.
11832 * dwarf2out.c (insert_float): Likewise.
11833 * expmed.c (expand_mult, make_tree): Likewise.
11834 * expr.c (compress_float_constant): Likewise.
11835 * rtlanal.c (split_double): Likewise.
11836 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11837 (simplify_const_unary_operation, simplify_binary_operation_1)
11838 (simplify_const_binary_operation): Likewise.
11839 (simplify_const_relational_operation): Likewise.
11840 * varasm.c (output_constant_pool_2): Likewise.
11842 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11844 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11845 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11846 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11847 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11848 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11849 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11850 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11851 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11852 (ix86_emit_swsqrtsf): Likewise.
11853 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11854 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11855 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11856 * config/pa/pa.c (pa_expand_builtin): Likewise.
11857 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11858 (rs6000_scale_v2df): Likewise.
11859 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11860 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11861 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11862 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11863 (vec_ctul): Likewise.
11864 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11865 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11866 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11867 * cse.c (fold_rtx): Likewise.
11868 * emit-rtl.c (immed_double_const): Likewise (in comments).
11869 (init_emit_once): Likewise.
11870 * expr.c (compress_float_constant, expand_expr_real_1)
11871 (const_vector_from_tree): Likewise.
11872 * optabs.c (expand_float, expand_fix): Likewise.
11873 * reg-stack.c (reg_to_stack): Likewise.
11874 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11875 (simplify_const_unary_operation, simplify_binary_operation_1)
11876 (simplify_const_binary_operation, simplify_relational_operation)
11877 (simplify_immed_subreg): Likewise.
11879 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11881 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11882 * doc/tm.texi: Regenerate.
11883 * real.h (REAL_ARITHMETIC): Delete.
11884 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11885 (ix86_expand_round_sse4): Use real_arithmetic instead of
11887 * config/i386/sse.md (round<mode>2): Likewise.
11888 * rtl.h (rtx_to_tree_code): Likewise (in comment).
11889 * explow.c (rtx_to_tree_code): Likewise (in comment).
11890 * match.pd: Likewise.
11891 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11892 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11893 (expand_pow_as_sqrts): Likewise.
11894 * tree-pretty-print.c (dump_generic_node): Remove code that
11895 was conditional on REAL_ARITHMETIC being undefined.
11897 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11899 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11900 * doc/tm.texi: Regenerate.
11901 * real.h (real_less): Declare.
11902 (REAL_VALUES_LESS): Delete.
11903 * real.c (real_less): New function.
11904 (real_compare): Use it.
11905 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11906 of REAL_VALUES_LESS.
11907 * config/microblaze/microblaze.c (microblaze_const_double_ok):
11909 * fold-const.c (fold_convert_const_int_from_real): Likewise.
11910 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11911 (simplify_const_relational_operation): Likewise.
11912 * tree-call-cdce.c (check_pow): Likewise.
11913 (gen_conditions_for_pow_cst_base): Likewise.
11915 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11917 * real.h (REAL_VALUES_IDENTICAL): Delete.
11918 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11919 instead of REAL_VALUES_IDENTICAL.
11920 * fold-const.c (operand_equal_p): Likewise.
11921 * ipa-icf.c (sem_variable::equals): Likewise.
11922 * tree-complex.c (some_nonzerop): Likewise.
11923 (expand_complex_multiplication): Likewise.
11924 * tree.c (simple_cst_equal): Likewise.
11925 * varasm.c (compare_constant): Likewise.
11927 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11929 * real.h (real_equal): Declare.
11930 (REAL_VALUES_EQUAL): Delete.
11931 * real.c (real_equal): New function.
11932 (real_compare): Use it.
11933 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11934 * doc/tm.texi: Regenerate.
11935 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11936 real_equal instead of REAL_VALUES_EQUAL.
11937 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11938 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11939 (fp_const_from_val): Likewise.
11940 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11941 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11942 (floating_exact_log2): Likewise.
11943 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11944 * config/vax/vax.c (vax_float_literal): Likewise.
11945 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11946 * cprop.c (implicit_set_cond_p): Likewise.
11947 * expmed.c (expand_mult): Likewise.
11948 * fold-const.c (const_binop): Likewise.
11949 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11950 (simplify_const_binary_operation): Likewise.
11951 (simplify_const_relational_operation): Likewise.
11952 * tree-call-cdce.c (check_pow): Likewise.
11953 (gen_conditions_for_pow_cst_base): Likewise.
11954 * tree-inline.c (estimate_num_insns): Likewise.
11955 * tree-ssa-dom.c (record_equality): Likewise.
11956 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11957 (gimple_expand_builtin_pow): Likewise.
11958 (pass_optimize_widening_mul::execute): Likewise.
11959 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11960 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11961 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11963 2015-10-05 Richard Biener <rguenther@suse.de>
11966 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11967 consider loop header PHI defs as IVs.
11969 2015-10-05 Richard Biener <rguenther@suse.de>
11971 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11973 (create_expression_by_pieces): ... here and build GIMPLE
11974 calls directly. Use gimple_build API and avoid force_gimple_operand.
11975 (insert_into_preds_of_block): Simplify.
11976 (do_regular_insertion): Add comment.
11978 2015-10-04 Jason Merrill <jason@redhat.com>
11980 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11982 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
11984 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11985 check for general register.
11986 (ix86_emit_save_regs): Ditto.
11987 (ix86_emit_save_regs_using_mov): Ditto.
11988 (ix86_emit_restore_regs_using_pop): Ditto.
11989 (ix86_emit_restore_regs_using_mov): Ditto.
11991 2015-10-03 Marek Polacek <polacek@redhat.com>
11993 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11994 (insn-dfatab.o): Likewise.
11996 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
11998 * config.gcc (xtensa*-*-uclinux*): New configuration.
11999 * config/xtensa/uclinux.h: New file.
12000 * config/xtensa/uclinux.opt: New file.
12002 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
12004 * doc/cpp.texi (Standard Predefined Macros): Document value of
12005 __cplusplus for C++14.
12007 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
12009 * gcc.c (process_command): Use spec_machine rather than
12010 spec_host_machine to build tooldir_prefix2.
12012 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12013 Bernd Schmidt <bernds@codesourcery.com>
12015 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12016 (Token, Stmt): Remove structs.
12017 (decls, vars, fns): Remove variables.
12018 (alloc_comment, append_stmt, is_keyword): Remove macros.
12019 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12020 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12021 (parse_init, parse_file): Remove functions.
12022 (read_file): Accept a pointer to a length and store into it.
12023 (process): Don't try to parse the input file, just write it out as
12024 a string, but looking for maps. Also write out the length.
12025 (main): Don't use "-S" to compile PTX code.
12027 2015-10-02 Jeff Law <law@redhat.com>
12029 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12032 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12035 * config/nvptx/mkoffload.c (main): Scan the argument vector for
12036 -fopenmp, and skip generating an offloading image if specified.
12038 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
12040 * system.h (ROUND_UP): New macro definition.
12041 (ROUND_DOWN): Ditto.
12042 * ggc-page.c (ROUND_UP): Remove local macro definition.
12043 (PAGE_ALIGN): Implement using ROUND_UP macro.
12045 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12046 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12048 (ix86_compute_frame_layout): Ditto.
12049 (ix86_expand_prologue): Ditto.
12050 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12051 to round down values.
12052 (expand_set_or_movmem_via_rep): Ditto.
12054 2015-10-02 Marek Polacek <polacek@redhat.com>
12056 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12058 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
12060 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12061 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12062 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12063 (free_gimple_bb): Renamed free_gimple_poly_bb.
12064 (try_generate_gimple_bb): Hoist loop invariant code.
12065 (analyze_drs_in_stmts): Same.
12066 (build_scop_drs): Call renamed functions.
12067 (new_pbb_from_pbb): Same.
12068 (scop_ivs_can_be_represented): Delete as functionality now moved to
12069 graphite-scop-detection.c
12070 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12072 2015-10-02 Aditya Kumar <hiraditya@msn.com>
12074 * graphite-scop-detection.c (stmt_has_side_effects): New function
12075 outlined from stmt_simple_for_scop_p.
12076 (graphite_can_represent_stmt): Same.
12077 (stmt_simple_for_scop_p): Moved code out of this function for better
12080 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12082 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12084 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12086 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12088 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12090 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
12092 PR rtl-optimization/67756
12093 * lra-constraints.c (match_reload): Add a new parameter. Use it
12094 for creating a pseudo with the same value.
12095 (curr_insn_transform): Pass a new argument to match_reload.
12097 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12099 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12100 (expand_vec_perm_even_odd_1): Handle V64QImode.
12101 (ix86_expand_vec_perm_const_1): Try expansion with
12102 expand_vec_perm_even_odd_trunc as well.
12103 * config/i386/sse.md (VI124_AVX512F): Rename to ...
12104 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12106 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12107 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12108 to V32HI and V16SI.
12109 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12110 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12111 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12112 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12113 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12114 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12116 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12118 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12119 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12121 2015-10-02 Jason Merrill <jason@redhat.com>
12124 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12125 (diagnose_tm_1_op): Also diagnose volatile accesses in
12126 transaction_safe function.
12128 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
12130 * system.h (malloc.h): Don't include obsolete header.
12132 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12134 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12135 (TLS_SECTION_ASM_FLAG): Delete.
12137 2015-10-02 Marek Polacek <polacek@redhat.com>
12140 * doc/invoke.texi: Document -Wduplicated-cond.
12141 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12142 (insn-dfatab.o): Likewise.
12143 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12146 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
12148 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12151 2015-10-02 Renlin Li <renlin.li@arm.com>
12153 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12155 2015-10-02 Renlin Li <renlin.li@arm.com>
12158 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12160 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12162 PR rtl-optimization/67786
12163 PR rtl-optimization/67787
12164 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12165 it modifies a reg used in the condition calculation.
12167 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
12169 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12170 alternatives for reads from memory and moves from general-purpose
12172 (*aarch64_combinez_be<mode>): Likewise.
12174 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
12177 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12178 selectany within this function without need to keep attribute.
12179 (i386_pe_encode_section_info): Remove selectany-code.
12181 2015-10-02 Richard Biener <rguenther@suse.de>
12183 * tree-ssa-sccvn.c (has_VN_INFO): New function.
12184 (free_scc_vn): Use it.
12185 (visit_use): Remove dead code and refactor to use gassign
12186 and use less indentation.
12188 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12192 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12193 (rs6000_cannot_copy_insn_p): New function.
12194 * config/rs6000/rs6000.md (cannot_copy): New attribute.
12195 (load_toc_v4_PIC_1_normal): Set cannot_copy.
12196 (load_toc_v4_PIC_1_476): Ditto.
12198 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12200 * graphite-scop-detection.c (struct sese_l): New conversion constructor
12201 so that this type can be pushed into a vec.
12202 (class scop_builder): use sese_l to collect scops.
12203 (get_scops): New getter function.
12204 (remove_intersecting_scops): Use sese_l instead of scops_p.
12205 (intersects): Same.
12208 (remove_subscops): Same.
12209 (build_scops): Add scops to vec<scops_p> once all the scops have been
12212 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12214 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12215 Renamed type from gimple_bb_p to gimple_poly_bb_p.
12216 (translate_isl_ast_node_user): Same.
12217 * graphite-poly.c (new_poly_bb): Same.
12218 * graphite-poly.h (gbb_from_bb): Same.
12220 * graphite-sese-to-poly.c (new_gimple_bb):
12221 gimple_bb_p -> gimple_poly_bb_p
12222 (build_scop_scattering): Same.
12223 (find_params_in_bb): Same.
12224 (add_conditions_to_domain): Same.
12225 (sese_dom_walker::before_dom_children): Same.
12226 (analyze_drs_in_stmts): Same.
12227 (new_pbb_from_pbb): Same.
12228 (free_data_refs_aux): New pointer to type base_alias_pair.
12229 * graphite-sese-to-poly.h: Same.
12230 * sese.c (if_region_set_false_region): Fixed Indentation.
12231 (move_sese_in_condition): Same.
12233 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12234 Aditya Kumar <aditya.k7@samsung.com>
12236 PR tree-optimization/66980
12237 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12238 when data reference analysis has failed.
12240 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12241 Aditya Kumar <aditya.k7@samsung.com>
12243 PR tree-optimization/67754
12244 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12245 scev analysis on the same loop nest as analyze_drs_in_stmts.
12246 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12248 (try_generate_gimple_bb): Call outermost_loop_in_sese.
12249 (analyze_drs_in_stmts): Same.
12250 * sese.c (outermost_loop_in_sese): ...here.
12252 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12253 Aditya Kumar <aditya.k7@samsung.com>
12255 PR tree-optimization/67754
12256 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12257 recursion on the inner loops.
12259 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12261 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12262 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12263 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12264 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12265 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12267 2015-10-01 Marek Polacek <polacek@redhat.com>
12270 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12271 create_tmp_var_raw rather than create_tmp_var.
12273 2015-10-01 Marek Polacek <polacek@redhat.com>
12275 PR tree-optimization/67769
12276 * tree-ssa-phiopt.c (conditional_replacement): Call
12277 reset_flow_sensitive_info_in_bb.
12278 (minmax_replacement): Likewise.
12279 (abs_replacement): Likewise.
12281 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
12283 * builtins.c: Don't include gomp-constants.h.
12284 (fold_builtin_1): Don't fold acc_on_device here.
12285 * gimple-fold.c: Include gomp-constants.h.
12286 (gimple_fold_builtin_acc_on_device): New.
12287 (gimple_fold_builtin): Call it.
12289 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
12291 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12292 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12294 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
12296 * config/arm/aarch-common-protos.h
12297 (aarch_accumulator_forwarding): New.
12298 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12299 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12300 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12301 * config/arm/cortex-a53.md: Rewrite.
12303 2015-10-01 Richard Biener <rguenther@suse.de>
12305 * gimple-match.h (mprts_hook): Declare.
12306 * gimple-match.head.c (mprts_hook): Define.
12307 (maybe_push_res_to_seq): Use new hook.
12308 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12309 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12310 (vn_ssa_aux::has_constants): Remove.
12311 * tree-ssa-sccvn.c: Include gimple-match.h.
12312 (VN_INFO_GET): Assert we don't re-use SSA names.
12313 (vn_get_expr_for): Remove.
12314 (expr_has_constants): Likewise.
12315 (stmt_has_constants): Likewise.
12316 (simplify_binary_expression): Likewise.
12317 (simplify_unary_expression): Likewise.
12318 (vn_lookup_simplify_result): New hook.
12319 (visit_copy): Adjust.
12320 (visit_reference_op_call): Likewise.
12321 (visit_phi): Likewise.
12322 (visit_use): Likewise.
12323 (process_scc): Likewise.
12324 (init_scc_vn): Likewise.
12325 (visit_reference_op_load): Likewise. Use match-and-simplify and
12326 a gimple seq for inserted expressions.
12327 (try_to_simplify): Remove GENERIC stmt combining code.
12328 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12329 * tree-ssa-pre.c (eliminate_insert): Adjust.
12330 (eliminate_dom_walker::before_dom_children): Likewise.
12332 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12334 * doc/invoke.texi (Optimization Options): Add
12335 -freorder-blocks-algorithm=.
12336 (Optimize Options) <-O>: Add -freorder-blocks.
12337 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
12338 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12339 <-freorder-blocks>: Also enabled at levels -O and -Os.
12340 <-freorder-blocks-algorithm=>: Document new option.
12342 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12344 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12345 with flag_reorder_blocks_algorithm.
12346 * common.opt (freorder-blocks-algorithm=): New flag.
12347 (reorder_blocks_algorithm): New enum.
12348 * flag-types.h (reorder_blocks_algorithm): New enum.
12349 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12350 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12352 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12354 * bb-reorder.c: Add intro comment.
12355 (reorder_basic_blocks_software_trace_cache): Print a header to
12357 (edge_order): New function.
12358 (reorder_basic_blocks_simple): New function.
12359 (reorder_basic_blocks): Choose between the STC and the simple
12360 algorithms (always choose the former).
12362 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12364 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12365 function, factored out from ...
12366 (reorder_basic_blocks): ... here.
12368 2015-10-01 Tom de Vries <tom@codesourcery.com>
12370 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12371 __attribute__(()) string. Move dumping of function attributes to before
12374 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12377 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12378 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12379 based on gold linker version.
12380 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12381 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12382 * configure, config.in: Regenerate.
12384 2015-10-01 Alan Modra <amodra@gmail.com>
12386 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12387 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12388 (rs6000_output_mi_thunk): Likewise.
12390 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12392 * config/nvptx/mkoffload.c (process): Change offload data format.
12394 2015-09-30 Jeff Law <law@redhat.com>
12396 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12397 with constant conditions.
12398 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12399 (remove_ctrl_stmt_and_useless_edges): No longer static.
12400 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12401 (remove_ctrl_stmt_and_useless_edges): Likewise.
12403 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12404 Cesar Philippidis <cesar@codesourcery.com>
12406 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12407 (TARGET_GOACC_VALIDATE_DIMS): Override.
12408 * target.def (TARGET_GOACC): New target hook prefix.
12409 (validate_dims): New hook.
12410 * targhooks.h (default_goacc_validate_dims): New.
12411 * omp-low.c (oacc_validate_dims): New.
12412 (execute_oacc_device_lower): New.
12413 (default_goacc_validate_dims): New.
12414 (pass_data_oacc_device_lower): New.
12415 (pass_oacc_device_lower): New pass.
12416 (make_pass_oacc_device_lower): New.
12417 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12418 * passes.def (pass_oacc_device_lower): Add it.
12419 * doc/tm.texi: Rebuilt.
12420 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12421 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12423 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12425 PR rtl-optimization/67037
12426 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12428 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12430 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12431 * passes.c: Include tree-ssanames.h.
12432 (execute_function_todo): Flush the pending free SSA_NAMEs after
12433 eliminating unreachable basic blocks.
12434 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12435 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12436 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12437 (flush_ssanames_freelist): New function.
12438 (release_ssaname_fn): Put released names on the queue.
12439 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12440 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12442 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12444 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12445 (generate_target_descr_file, generate_target_offloadend_file)
12446 (generate_host_descr_file, prepare_target_image): Pass it on.
12447 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12448 (compile_native, main): Pass it on.
12449 * lto-wrapper.c (compile_offload_image): Likewise.
12451 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12452 Ilya Verbin <ilya.verbin@intel.com>
12453 Andrey Turetskiy <andrey.turetskiy@intel.com>
12455 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12456 (prepare_target_image, main): Refactor argv building to use
12459 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12461 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12462 * config/spu/spu.c (spu_expand_atomic_op): New function.
12463 * config/spu/spu.md (AINT): New mode iterator.
12464 (ATOMIC): New code iterator.
12465 (atomic_name, atomic_pred): New code predicates.
12466 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12467 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12468 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12469 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12471 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12473 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12475 (scalar_chain::convert_reg): Likewise.
12477 2015-09-30 Richard Biener <rguenther@suse.de>
12479 * builtins.c: Add comment that no new simplifications should
12482 2015-09-30 Marek Polacek <polacek@redhat.com>
12484 PR tree-optimization/67690
12485 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12486 reset_flow_sensitive_info_in_bb.
12487 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12488 * tree-ssanames.c: Include "gimple-iterator.h".
12489 (reset_flow_sensitive_info_in_bb): New function.
12490 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12492 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12494 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12495 variable, replacing it with...
12496 (offload_abi): ... this new variable. Adjust all users.
12497 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12499 2015-09-30 Matthias Klose <doko@ubuntu.com>
12501 * configure.ac: Remove extraneous ;;.
12502 * configure: Regenerate.
12504 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12506 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12507 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12508 predicate, disallow register for operand 2.
12510 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12512 * graphite-dependences.c (scop_get_dependences): Moved in down
12513 in order to be visible to its caller.
12514 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12516 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12517 Aditya Kumar <aditya.k7@samsung.com>
12519 PR tree-optimization/67754
12520 * graphite-optimize-isl.c (optimize_isl): Call
12521 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12523 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12525 * builtins.c (expand_builtin_acc_on_device): Delete.
12526 (expand_builtin): Don't call it.
12527 (fold_builtin_1): Fold acc_on_device.
12529 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12531 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12532 (ix86_nsaved_sseregs): Likewise.
12534 2015-09-29 Jeff Law <law@redhat.com>
12536 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12537 computation of unused value.
12539 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12540 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12541 inline macro expansion.
12543 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12545 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12546 (gen_shl_sext): Likewise.
12547 * config/sh/sh.md (divsi3): Likewise.
12548 (imm->ext_dest_operand splitter): Likewise.
12550 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12551 Aditya Kumar <aditya.k7@samsung.com>
12553 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12554 (nb_data_writes_in_bb): Remove.
12555 (split_pbb): Remove.
12556 (split_reduction_stmt): Remove.
12557 (is_reduction_operation_p): Remove.
12558 (phi_contains_arg): Remove.
12559 (follow_ssa_with_commutative_ops): Remove.
12560 (detect_commutative_reduction_arg): Remove.
12561 (detect_commutative_reduction_assign): Remove.
12562 (follow_inital_value_to_phi): Remove.
12563 (edge_initial_value_for_loop_phi): Remove.
12564 (initial_value_for_loop_phi): Remove.
12565 (used_outside_reduction): Remove.
12566 (detect_commutative_reduction): Remove.
12567 (translate_scalar_reduction_to_array_for_stmt): Remove.
12568 (remove_phi): Remove.
12569 (dr_indices_valid_in_loop): Remove.
12570 (close_phi_written_to_memory): Remove.
12571 (translate_scalar_reduction_to_array): Remove.
12572 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12573 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12574 (rewrite_commutative_reductions_out_of_ssa): Remove.
12575 (build_poly_scop): Remove call to
12576 rewrite_commutative_reductions_out_of_ssa.
12578 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12580 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12581 Add new insn types for vector load and store pairs.
12582 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12583 types "neon_ldp{,_q}".
12584 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12586 (neon_store_complex): Add insn types "neon_stp{,_q}".
12587 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12588 "neon_{ldp,stp}_q".
12590 2015-09-29 Jeff Law <law@redhat.com>
12592 * config/rx/constraints.md (Int08): Fix undefined left shift
12594 (Sint08, Sint16, Sint24): Likewise.
12595 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12597 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12600 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12601 left shift behaviour.
12602 * config/msp430/constraints.md ('L' constraint): Similarly.
12603 ('Ys' constraint): Similarly.
12605 2015-09-29 Richard Biener <rguenther@suse.de>
12607 PR tree-optimization/67170
12608 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12609 the translate function pointer parameter to get the
12610 bool whether to disambiguate only by reference.
12611 (walk_non_aliased_vuses): Likewise.
12612 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12613 (get_continuation_for_phi_1): Likewise.
12614 (get_continuation_for_phi): Likewise.
12615 (walk_non_aliased_vuses): Likewise.
12616 * tree-ssa-sccvn.c (const_parms): New bitmap.
12617 (vn_reference_lookup_3): Adjust for interface change.
12618 Disambiguate parameters pointing to readonly memory.
12619 (free_scc_vn): Free const_parms.
12620 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12622 2015-09-29 Richard Biener <rguenther@suse.de>
12624 PR tree-optimization/67741
12625 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12626 builtin calls with correct signature.
12628 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12631 * config/i386/i386.c: Include dbgcnt.h.
12632 (has_non_address_hard_reg): New.
12633 (convertible_comparison_p): New.
12634 (scalar_to_vector_candidate_p): New.
12635 (remove_non_convertible_regs): New.
12636 (scalar_chain): New.
12637 (scalar_chain::scalar_chain): New.
12638 (scalar_chain::~scalar_chain): New.
12639 (scalar_chain::add_to_queue): New.
12640 (scalar_chain::mark_dual_mode_def): New.
12641 (scalar_chain::analyze_register_chain): New.
12642 (scalar_chain::add_insn): New.
12643 (scalar_chain::build): New.
12644 (scalar_chain::compute_convert_gain): New.
12645 (scalar_chain::replace_with_subreg): New.
12646 (scalar_chain::replace_with_subreg_in_insn): New.
12647 (scalar_chain::emit_conversion_insns): New.
12648 (scalar_chain::make_vector_copies): New.
12649 (scalar_chain::convert_reg): New.
12650 (scalar_chain::convert_op): New.
12651 (scalar_chain::convert_insn): New.
12652 (scalar_chain::convert): New.
12653 (convert_scalars_to_vector): New.
12654 (pass_data_stv): New.
12656 (make_pass_stv): New.
12657 (ix86_option_override): Created and register stv pass.
12658 (flag_opts): Add -mstv.
12659 (ix86_option_override_internal): Likewise.
12660 * config/i386/i386.md (SWIM1248x): New.
12661 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12662 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12663 (*anddi3_doubleword): New.
12664 (*zext<mode>_doubleword): New.
12665 (*zextsi_doubleword): New.
12666 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12667 (*<code>di3_doubleword): New.
12668 * config/i386/i386.opt (mstv): New.
12669 * dbgcnt.def (stv_conversion): New.
12671 2015-09-29 Tom de Vries <tom@codesourcery.com>
12673 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12675 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12678 * config/sh/sh.c (sh_override_options_after_change): New.
12679 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12680 (sh_option_override): Move align_loops, align_jumps and
12681 align_functions handling into sh_override_options_after_change.
12683 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12685 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12686 (nvptx_record_offload_symbol): Record function execution geometry.
12687 * config/nvptx/mkoffload.c (process): Include launch geometry in
12689 * omp-low.c (oacc_launch_pack): New.
12690 (replace_oacc_fn_attrib): New.
12691 (set_oacc_fn_attrib): New.
12692 (get_oacc_fn_attrib): New.
12693 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12695 * omp-low.h (get_oacc_fn_attrib): Declare.
12696 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12697 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12698 * tree.h (OMP_CLAUSE_EXPR): New.
12699 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12701 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12702 Sebastian Pop <s.pop@samsung.com>
12704 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12706 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12707 Sebastian Pop <s.pop@samsung.com>
12709 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12710 * graphite-scop-detection.c (struct sese_l): New type.
12711 (get_entry_bb): API for getting entry bb of SESE.
12712 (get_exit_bb): API for getting exit bb of SESE.
12713 (class debug_printer): New type. Simple printer in debug mode.
12714 (trivially_empty_bb_p): New. Return true when BB is empty or
12715 contains only debug instructions.
12716 (graphite_can_represent_expr): Call scalar_evoution_in_region
12717 instead of analyze_scalar_evolution. Pass in scop instead of only
12719 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12721 (stmt_simple_for_scop_p): Same.
12722 (harmful_stmt_in_bb): Same.
12723 (graphite_can_represent_loop): Deleted.
12724 (struct scopdet_info): Deleted.
12725 (scopdet_basic_block_info): Deleted.
12726 (build_scops_1): Deleted.
12727 (bb_in_sd_region): Deleted.
12728 (find_single_entry_edge): Deleted.
12729 (find_single_exit_edge): Deleted.
12730 (create_single_entry_edge): Deleted.
12731 (sd_region_without_exit): Deleted.
12732 (create_single_exit_edge): Deleted.
12733 (unmark_exit_edges): Deleted.
12734 (mark_exit_edges): Deleted.
12735 (create_sese_edges): Deleted.
12736 (build_graphite_scops): Deleted.
12737 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12738 (build_scops): Use the new scop_builder to build scops.
12739 (dot_all_scops_1): Use the new pretty printer. Print loop father
12741 (loop_body_is_valid_scop): New. Return true if loop body is a
12743 (class scop_builder): New. Builds SCoPs for polyhedral
12745 (scop_builder): New constructor.
12746 (static sese_l invalid_sese): sese_l with invalid edges.
12747 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12749 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12750 basic_block with single entry. Return NULL if we get to the
12751 beginning of a function.
12752 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12753 a basic_block with single exit. Return NULL if we get to the
12754 beginning of a function.
12755 (print_sese): Pretty-print SESE.
12756 (merge_sese): Merge two SESEs if possible and return the new SESE.
12757 (build_scop_depth): Start building the SCoP within a loop nest.
12758 (build_scop_breadth): Start building the SCoP at a single loop
12759 depth. Merge adjacent SESEs if valid.
12760 (can_represent_loop_1): Returns true if Graphite can represent
12761 loop inside SCoP. Helper for can_represent_loop.
12762 (can_represent_loop): Returns true if Graphite can represent LOOP
12763 and all its nested loops in SCoP.
12764 (loop_is_valid_scop): Returns true if LOOP and all its nests
12765 constitute a valid SCoP.
12766 (region_has_one_loop): Returns true of a region has only one loop.
12767 (add_scop): Add SCoP to the list of valid scops. Removes an
12768 already existing scop if it intersects with or subsumed by this one.
12769 (harmful_stmt_in_region): Returns true if SCoP has any statment
12770 which cannot be represented by Graphite.
12771 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12772 (remove_subscops): Remove any SCoP from the list of already found
12773 SCoPs, if subsumed by S1.
12774 (intersects): Return true if region bounded by SCoPs S1 and S2
12776 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12777 * graphite.c (print_graphite_scop_statistics):
12778 (print_graphite_statistics): Print SCoP info while debugging.
12779 (graphite_initialize): Early exit in case number of loops in a
12780 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12781 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12782 (graphite_finalize):
12783 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12784 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12785 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12786 * tree-cfg.c (print_loops): Print the function name while printing
12789 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12790 Sebastian Pop <s.pop@samsung.com>
12792 PR tree-optimization/67700
12793 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12794 invariant_in_sese_p_rec.
12795 (extract_affine): Same.
12796 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12797 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12798 * sese.h (invariant_in_sese_p_rec): Declare.
12800 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12802 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12804 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12807 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12808 Jiong Wang <jiong.wang@arm.com>
12810 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12811 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12812 (REG_CLASS_NAMES): Likewise.
12813 (REG_CLASS_CONTENTS): Likewise.
12814 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12815 (aarch64_register_move_cost): Likewise.
12816 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12818 * config/aarch64/constraints.md (Uc0): New constraint.
12820 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12822 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12824 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12826 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12827 SECTION_EXCLUDE in XO mapping class.
12829 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12832 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12833 and handle ne and eq codes.
12834 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12835 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12836 CONST_INT_P. Use reverse_condition.
12837 (sh_split_treg_set_expr): Likewise.
12839 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12841 * config/arm/types.md (type): Add rotate_imm.
12842 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12843 ROR immediate case.
12844 (*rorsi3_insn_uxtw): Likewise.
12845 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12846 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12847 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12849 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12851 PR rtl-optimization/67481
12852 * ifcvt.c (contains_ccmode_rtx_p): New function.
12853 (insn_valid_noce_process_p): Use it.
12855 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12857 PR rtl-optimization/67456
12858 PR rtl-optimization/67464
12859 PR rtl-optimization/67465
12860 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12861 move in the mode of x. Handle combination of complex and simple
12862 block pairs as well as the case when one is empty.
12864 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12866 * doc/gimple.texi: Update references to gimple_statement_base.
12867 * gdbhooks.py: Likewise.
12868 * gimple.h: Likewise.
12870 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12872 * config/sparc/driver-sparc.c: map LEON to leon3
12874 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12876 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12877 and make it inverse to change default
12878 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12880 * doc/invoke.texi: Document change of default
12882 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12884 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12885 true on %f0 for a target without FPU.
12886 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12888 (untyped_return): Do not load %f0 for a target without FPU.
12890 2015-09-28 Andrew Pinski <apinski@cavium.com>
12892 * config/aarch64/aarch64.md (prefetch):
12893 Change the predicate of operand 0 to register_operand.
12895 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
12897 * config/i386/predicates.md (register_sse4nonimm_operand): New
12899 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12900 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12901 Use register_sse4nonimm_operand as operand 0 predicate.
12902 (*vec_extractv8hi_sse2): Remove insn pattern.
12903 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12904 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12906 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
12907 Kaz Kojima <kkojima@gcc.gnu.org>
12910 * config/sh/sh-protos.h (sh_lra_p): Declare.
12911 * config/sh/sh.c (sh_lra_p): Make non-static.
12912 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12913 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
12914 Expand into addsi3_scr if operands[2] if needed.
12915 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
12916 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
12917 (addsi3_scr, *addsi3): New insn_and_split patterns.
12919 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
12921 PR rtl-optimization/64164
12922 PR tree-optimization/67312
12923 PR middle-end/67340
12924 PR middle-end/67490
12926 * cfgexpand.c (parm_in_stack_slot_p): Remove.
12927 (ssa_default_def_partition): Remove.
12928 (get_rtl_for_parm_ssa_default_def): Remove.
12929 (set_rtl): Check that RTL assignments match expectations.
12930 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
12931 default def location for params and results. Record SSA names
12932 or types in REG and MEM attrs, respectively.
12933 (set_parm_rtl): New.
12934 (expand_one_ssa_partition): Drop logic that assigned MEMs with
12935 unassigned addresses.
12936 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12937 deferred stack alloc vars.
12938 (expand_used_vars): Skip partitions holding parm default defs.
12939 Move adjust_one_expanded_partition_var loop...
12940 (pass_expand::execute): ... here. Drop redundant assert.
12941 Adjust comments before the final loop over all ssa names.
12942 Require assigned rtl of parms and results to match exactly.
12943 Reset its attributes to match them, not any other variables in
12944 the same partition.
12945 (expand_debug_expr): Use entry value for PARM's default defs
12946 only iff they have zero nondebug uses.
12947 * cfgexpand.h (parm_in_stack_slot_p): Remove.
12948 (get_rtl_for_parm_ssa_default_def): Remove.
12949 (set_parm_rtl): Declare.
12950 * doc/invoke.texi: Improve wording.
12951 * explow.c (promote_decl_mode): Fix promote_function_mode for
12952 result decls not by reference.
12953 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12954 bypass TYPE_MODE to get the actual vector mode.
12955 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
12956 2015-08-19's changes as follows. Drop include of
12957 basic-block.h and df.h.
12958 (rtl_for_parm): Remove.
12959 (maybe_reset_rtl_for_parm): Remove.
12960 (parm_in_unassigned_mem_p): Remove.
12961 (use_register_for_decl): Add logic for RESULT_DECLs matching
12962 assign_parms' behavior.
12963 (split_complex_args): Revert.
12964 (assign_parms_augmented_arg_list): Revert. Add comment
12965 referencing the logic above.
12966 (assign_parm_adjust_stack_rtl): Revert.
12967 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
12968 of SET_DECL_RTL. Set up a REG if the parm demands so.
12969 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
12970 calls into a single set_parm_rtl. Set up a temporary RTL
12971 temporarily for expand_assignment.
12972 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
12973 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
12974 (assign_bounds): Revert.
12975 (assign_parms): Revert. Use set_parm_rtl.
12976 (allocate_struct_function): Relayout result and parms of
12977 non-abstruct functions.
12978 (expand_function_start): Revert. Use set_parm_rtl. If the
12979 result is not a hard reg, create a pseudo from the promoted
12980 mode of the default def. Promote static chain mode.
12981 * tree-outof-ssa.c (remove_ssa_form): Drop unused
12982 partition_has_default_def. Set up
12983 partitions_for_parm_default_defs.
12984 (finish_out_of_ssa): Remove partition_has_default_def.
12985 Release partitions_for_parm_default_defs.
12986 * tree-outof-ssa.h (struct ssaexpand): Remove
12987 partition_has_default_def. Add
12988 partitions_for_parm_default_defs.
12989 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12991 (build_ssa_conflict_graph): Fix conflict-detection of default
12992 defs of even unused default defs of params and results.
12993 (for_all_parms): New.
12994 (create_default_def): New.
12995 (register_default_def): New.
12996 (coalesce_with_default): New.
12997 (create_outofssa_var_map): Create default defs for all parms
12998 and results, and register their partitions. Add GIMPLE_RETURN
12999 operands as coalesce candidates with results. Add default
13000 defs of each parm or result as coalesce candidates with its
13001 other defs. Mark each result def, and each default def of
13002 parms, as used_in_copy.
13003 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
13004 with the ssa names, even anonymous ones. Drop
13005 parm_in_stack_slot_p calls. Require same signedness and
13007 (coalesce_ssa_name): Add coalesce candidates for all defs of
13008 each parm and result, even unused ones.
13009 (parm_default_def_partition_arg): New type.
13010 (set_parm_default_def_partition): New.
13011 (get_parm_default_def_partitions): New.
13012 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13013 * tree-ssa-live.c (partition_view_init): Regard unused defs of
13014 parms and results as used.
13015 (verify_live_on_entry): Don't error out just because they're
13018 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
13020 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13021 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13022 (output_fde): Don't output length for debug_frame on AIX.
13023 (output_call_frame_info): Don't output length for debug_frame on AIX.
13024 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13025 HAVE_XCOFF_DWARF_EXTRAS.
13026 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13027 HAVE_XCOFF_DWARF_EXTRAS.
13028 (output_compilation_unit_header): Don't output length on AIX.
13029 (output_pubnames): Don't output length on AIX.
13030 (output_aranges): Delete argument. Compute length locally. Don't
13031 output length on AIX.
13032 (output_line_info): Don't output length on AIX.
13033 (dwarf2out_finish): Don't compute aranges_length.
13034 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13035 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13036 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13037 symbol decoration for AIX.
13038 (rs6000_xcoff_debug_unwind_info): New.
13039 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13041 (rs6000_xcoff_declare_function_name): Emit different
13042 .function pseudo-op when DWARF2_DEBUG. Don't call
13043 xcoffout_declare_function for DWARF2_DEBUG.
13044 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13046 * config/rs6000/aix71.h: New.
13047 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13049 * configure: Regenerate.
13050 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13053 2015-09-26 Jeff Law <law@redhat.com>
13055 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13057 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13060 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13063 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13064 undefined behaviour.
13066 * config/cris/cris.md (asrandb): Fix left shift undefined
13068 (asrandw): Likewise.
13070 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
13073 * lra-constarints.c (match_reload): Check presence of the input pseudo
13074 in the output operand.
13076 2015-09-25 Tobias Burnus <burnus@net-b.de>
13078 * doc/invoke.texi (-fsanitize): Minor wording tweak.
13080 2015-09-25 Tobias Burnus <burnus@net-b.de>
13082 * doc/invoke.texi (-fsanitize): Update URLs.
13084 2015-09-25 Teresa Johnson <tejohnson@google.com>
13086 * opts.c (finish_options): Unset -freorder-blocks-and-partition
13087 if not using profile.
13089 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13091 PR pretty-print/67567
13092 * pretty-print.c (pp_string): Add gcc_checking_assert.
13093 * pretty-print.h (output_buffer_append_r): Likewise.
13095 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13098 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13099 addr2 individually. Don't emit logical or insn if one is known to
13100 be aligned approriately.
13101 (sh_expand_cmpnstr): Likewise.
13103 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
13105 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13106 __builtin_aarch64_fp[sc]r arguments into a register.
13108 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
13110 * config.gcc (x86_archs): Replace lakemount with lakemont.
13111 (with_cpu): Likewise.
13112 (with_arch): Likewise.
13113 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13114 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
13115 __tune_lakemount__ with __tune_lakemont__.
13116 * config/i386/i386.c (lakemount_cost): Renamed to ...
13117 (lakemont_cost): This.
13118 (m_LAKEMOUNT): Renamed to ...
13119 (m_LAKEMONT): This.
13120 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13121 (processor_target_table): Replace "lakemount" with "lakemont".
13122 (processor_alias_table): Likewise.
13123 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13124 PROCESSOR_LAKEMONT.
13125 (ix86_adjust_cost): Likewise.
13126 (ia32_multipass_dfa_lookahead): Likewise.
13127 * config/i386/i386.h (processor_type): Likewise.
13128 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13129 * doc/invoke.texi: Replace lakemount with lakemont. Replace
13130 Lakemount with Lakemont.
13132 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
13134 * config.gcc (x86_archs): Replace iamcu with lakemount.
13135 (with_cpu): Likewise.
13136 (with_arch): Likewise.
13137 * doc/invoke.texi: Likewise.
13138 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13139 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
13140 __tune_iamcu__ with __tune_lakemount__.
13141 * config/i386/i386.c (iamcu_cost): Renamed to ...
13142 (lakemount_cost): This.
13143 (m_IAMCU): Renamed to ...
13144 (m_LAKEMOUNT): This.
13145 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13146 (processor_target_table): Replace "iamcu" with "lakemount".
13147 (processor_alias_table): Likewise.
13148 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13149 PROCESSOR_LAKEMOUNT.
13150 (ix86_adjust_cost): Likewise.
13151 (ia32_multipass_dfa_lookahead): Likewise.
13152 * config/i386/i386.h (processor_type): Likewise.
13153 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13155 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
13157 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13158 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13160 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13161 (pa_expand_compare_and_swap_loop): New.
13162 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13163 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13164 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13165 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13166 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13169 2015-09-24 Michael Collison <michael.collison@linaro.org>
13172 * read-md.c (read_name): Allow mode iterators inside angle
13173 brackets in rtl expressions.
13175 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
13178 * ira-color.c (update_allocno_cost): Add parameter.
13179 (update_costs_from_allocno): Decrease conflict cost. Pass the new
13182 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13185 * opts-common.c (prune_options): Discard all -fdiagnostics-color
13186 but the last one, which is moved to the front to be processed
13188 * opts.c (enable_warning_as_error): Reject options that do not
13191 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13193 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13195 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13197 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13198 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13199 (aarch64_cannot_force_const_mem): Likewise.
13200 (aarch64_classify_address): Likewise.
13201 (aarch64_classify_symbolic_expression): Likewise.
13202 (aarch64_print_operand): Likewise.
13203 (aarch64_classify_symbol): Likewise.
13204 (aarch64_mov_operand_p): Likewise.
13205 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13206 (aarch64_mov_operand): Likewise.
13208 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
13210 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13211 for info->spe_gp_size.
13213 2015-09-24 Richard Biener <rguenther@suse.de>
13216 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13219 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
13221 * tree-object-size.c (plus_stmt_object_size)
13222 (cond_expr_object_size): Change the formal parameters from gimple
13224 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13225 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13226 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13228 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13230 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13231 Check for ld -type pie on Solaris 11.x and 12.
13232 * configure: Regenerate.
13233 * config.in: Regenerate.
13235 * gcc.c (LD_PIE_SPEC): Allow redefinition.
13237 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13238 (STARTFILE_SPEC): Use it.
13239 (ENDFILE_CRTEND_SPEC): Define.
13240 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13241 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13242 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13243 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13244 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13245 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13246 (ENDFILE_ARCH_SPEC): Define.
13247 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13249 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13251 * configure.ac (gcc_cv_solaris_crts): New test.
13252 * configure. Regenerate.
13253 * config.in: Regenerate.
13254 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13255 HAVE_SOLARIS_CRTS variant.
13257 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13259 * tree-inline.h (count_insns_seq): Delete prototype.
13260 (estimate_num_insns_seq): Define prototype.
13261 * tree-inline.c (count_insns_seq): Delete.
13262 (estimate_num_insns_seq): Remove static qualifier.
13263 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13264 with estimate_num_insns_seq.
13266 2015-09-24 Richard Biener <rguenther@suse.de>
13268 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13270 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13271 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
13273 (ao_ref_init_from_vn_reference): Record clique and base in the
13275 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13277 2015-09-24 Richard Biener <rguenther@suse.de>
13279 PR tree-optimization/48885
13280 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13281 as not including any restrict tags from other pointers.
13283 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13285 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13286 character when appending to offload_targets.
13288 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13289 offload targets by commas, not colons.
13290 * config.in: Regenerate.
13291 * configure: Likewise.
13292 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13293 instead of setting up the default offload targets here...
13294 (process_command): ..., do it here.
13296 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13297 targets are separated by commas.
13298 * config.h.in: Regenerate.
13300 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13301 Nathan Sidwell <nathan@codesourcery.com>
13303 * omp-low.h (omp_reduction_init_op): Declare.
13304 * omp-low.c (omp_reduction_init_op): New, broken out of ...
13305 (omp_reduction_init): ... here. Call it.
13306 * tree-parloops.c (initialize_reductions): Use
13307 omp_reduction_init_op.
13309 2015-09-23 Richard Biener <rguenther@suse.de>
13311 PR middle-end/67662
13312 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13313 undefined overflow unless they will cancel out.
13315 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13317 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13320 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13323 * opts.h (write_langs): Declare.
13324 * opts-global.c (write_langs): Make it extern.
13326 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
13329 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13330 overlapping regs when matching the pattern.
13332 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13334 * config/aarch64/aarch64-simd.md
13335 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13336 (aarch64_float_truncate_hi_v4sf_le): New.
13337 (aarch64_float_truncate_hi_v4sf_be): Likewise.
13339 2015-09-23 Richard Biener <rguenther@suse.de>
13341 * tree-ssa-structalias.c (intra_create_variable_infos): Build
13342 representatives for all restrict qualified pointer destinations.
13344 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13346 * config/i386/i386.md (define_code_attr mshift): New.
13347 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13348 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13350 (define_insn "*k<logic><mode>"): Use new iterator name.
13351 (define_insn "*<mshift><mode>3"): New.
13353 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13355 PR middle-end/67649
13356 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13357 mark the block as accessible.
13359 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13361 * function.c (thread_prologue_and_epilogue_insns): Delete
13362 orig_entry_edge argument to try_shrink_wrapping.
13363 * shrink-wrap.c (can_get_prologue): New function.
13364 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13365 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13366 can_get_prologue where needed. Remove code that finds a single
13367 edge for the prologue. Remove code that tests if any reg clobbered
13368 by the prologue is live on the prologue edge. Remove code that finds
13369 the new prologue edge after duplicating blocks. Make a new prologue
13371 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13373 2015-09-22 Jeff Law <law@redhat.com>
13375 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13378 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13380 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13381 -Wtemplates, -Wnamespaces): Document.
13383 2015-09-22 Tom de Vries <tom@codesourcery.com>
13385 PR tree-optimization/67671
13386 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13387 pointer references as restrict.
13389 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13391 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13392 'reg + reloc' cases, allow first operand to be non-REG, and use
13393 force_reg() to enforce address pattern.
13395 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13398 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13399 (define_mode_iterator VI12_AVX_AVX512F): New.
13400 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13401 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13402 (define_insn "*<code><mode>3"): ... Into new pattern using
13403 VI12_AVX_AVX512F iterators without masking.
13405 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13407 * config.gcc: Support "skylake-avx512".
13408 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13409 PROCESSOR_SKYLAKE_AVX512.
13410 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13411 (processor_target_table): Add "skylake-avx512".
13412 (PTA_SKYLAKE_AVX512): Define.
13413 (ix86_option_override_internal): Add "skylake_avx512".
13414 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13415 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13416 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13417 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13418 * doc/invoke.texi (skylake-avx512): New.
13420 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13422 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13423 operand in pattern.
13424 (define_insn "kunpcksi"): Ditto.
13425 (define_insn "kunpckdi"): Ditto.
13427 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13429 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13430 iterator instead of fixed modes.
13432 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13434 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13435 Adjust declaration.
13436 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13437 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13438 out_result. Update to support update-fetch operations.
13439 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13440 Adjust for change to aarch64_gen_atomic_ldop.
13441 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13442 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13443 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13444 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13445 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13447 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13449 * config/aarch64/aarch64-protos.h
13450 (aarch64_atomic_ldop_supported_p): Declare.
13451 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13452 (enum aarch64_atomic_load_op_code): New.
13453 (aarch64_emit_atomic_load_op): New.
13454 (aarch64_gen_atomic_ldop): Update to support load-operate
13456 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13458 (aarch64_atomic_<atomic_optab><mode>): New.
13459 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13460 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13461 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13462 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13464 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13466 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13467 (UNSPECV_ATOMIC_LDOP_OR): New.
13468 (UNSPECV_ATOMIC_LDOP_BIC): New.
13469 (UNSPECV_ATOMIC_LDOP_XOR): New.
13470 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13471 (ATOMIC_LDOP): New.
13472 (atomic_ldop): New.
13473 (aarch64_atomic_load<atomic_ldop><mode>): New.
13475 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13477 * config/aarch64/aarch64.md
13478 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13481 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13483 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13485 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13486 (aarch64_gen_atomic_ldop): New.
13487 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13488 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13489 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13490 (atomic_exchange<mode>): Replace with an expander.
13491 (aarch64_atomic_exchange<mode>): New.
13492 (aarch64_atomic_exchange<mode>_lse): New.
13493 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13494 (aarch64_atomic_swp<mode>): New.
13496 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13498 * tree-inline.c (expand_call_inline): Use inform for extra note.
13499 Do not give a note with UNKNOWN_LOCATION.
13500 Replace input_location with gimple_location (stmt).
13501 Use true/false instead of TRUE/FALSE.
13503 2015-09-22 Tom de Vries <tom@codesourcery.com>
13505 PR tree-optimization/67666
13506 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13507 with single field non-conservative.
13509 2015-09-21 David S. Miller <davem@davemloft.net>
13513 2015-09-11 David S. Miller <davem@davemloft.net>
13515 * config/sparc/constraints.md: Make "U" constraint a real register
13517 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13518 (D_MODES, DF_MODES): Add missing cast.
13519 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13520 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13521 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13523 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13524 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13525 provide these insn when flag_pic.
13527 2015-09-17 David S. Miller <davem@davemloft.net>
13529 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13531 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13533 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13534 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13535 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13536 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13537 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13538 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13539 provide when flag_pic.
13541 2015-09-21 Jeff Law <law@redhat.com>
13543 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13546 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13548 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13550 2015-09-21 Richard Biener <rguenther@suse.de>
13552 * passes.c (rest_of_decl_compilation): Do not call
13553 dwarf2out_early_global_decl for aliases.
13555 2015-09-21 Richard Biener <rguenther@suse.de>
13558 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13559 attribute parameter. Early exit if either DW_AT_const_value
13560 or DW_AT_location are present already.
13561 (gen_variable_die): Adjust caller.
13562 (dwarf2out_late_global_decl): Likewise.
13564 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13567 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13568 sh_peephole_emit_move_insn): Add new functions.
13569 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13570 sh_peephole_emit_move_insn): Declere them.
13571 * config/sh/sh.md: Use them in various peephole2 patterns.
13573 2015-09-21 Richard Biener <rguenther@suse.de>
13575 PR middle-end/67651
13576 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13577 address with -fno-delete-null-pointer-checks.
13579 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13581 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13582 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13583 (reduc_uplus_v16qi): Remove.
13585 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13586 (reduc_<VEC_reduc_name>_v2df): Remove.
13587 (reduc_<VEC_reduc_name>_v4sf): Remove.
13588 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13590 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13591 gen_ function by removing * prefix.
13592 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13594 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13596 PR middle-end/60832
13597 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13598 Print i_bound without converting it to a tree.
13600 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13602 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13603 operands[4] operands[5] swap with std::swap, removed tmp variable.
13604 (arm_evpc_neon_vzip): Replaced in0/in1 and
13605 out0/out1 swaps with std::swap, removed x variable.
13606 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13607 out0/out1 swaos with std::swap, removed x variable.
13608 (arm_expand_vec_perm_const_1): Replaced
13609 d->op0/d->op1 swap with std::swap, removed x variable.
13610 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13611 out0/out1 swaps with std::swap, removed x variable.
13613 2015-09-21 Jonathan Yong <10walls@gmail.com>
13615 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13616 sysroot/usr/lib/32api for additional win32 libraries,
13617 fixes failing Cygwin bootstrapping.
13619 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13621 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13623 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13626 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13627 (*mov_t_msb_neg): Rewrite negc pattern.
13629 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13631 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13632 immediate generation code.
13634 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13636 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13637 redundant immediate generation code.
13639 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13641 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13642 (AARCH64_NUM_BITMASKS): Remove.
13643 (aarch64_bitmasks_cmp): Remove.
13644 (aarch64_build_bitmask_table): Remove.
13646 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13648 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13649 slow immediate matching loops with a faster algorithm.
13651 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13653 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13656 2015-09-20 Jeff Law <law@redhat.com>
13658 PR tree-optimization/47679
13659 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13660 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13661 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13662 (thread_through_normal_block): Use record_temporary_equivalences.
13664 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13666 * coretypes.h (gimple): Change typedef to be a forward declaration.
13667 * gimple.h (gimple_statement_base): rename to gimple.
13668 * (all functions and types using gimple): Adjust.
13669 * *.[ch]: Likewise.
13671 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13672 David Edelsohn <dje.gcc@gmail.com>
13674 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13675 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13676 (EH_FRAME_THROUGH_COLLECT2): Define.
13677 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13678 (ASM_OUTPUT_DWARF_PCREL): Define.
13679 (ASM_OUTPUT_DWARF_DATAREL): Define.
13681 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13683 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13686 2015-09-18 Jeff Law <law@redhat.com>
13688 PR tree-optimization/47679
13689 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13691 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13692 object. Update constructor.
13693 (pass_dominator::execute): Corresponding chagnes to declaration
13694 and initialization of avail_exprs_stack. Update constructor call
13695 for dom_opt_dom_walker object.
13696 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13697 it down to children as needed.
13698 (record_equivalences_from_incoming_edge): Likewise.
13699 (eliminate_redundant_computations): Likewise.
13700 (record_equivalences_from_stmt): Likewise.
13701 (simplify_stmt_for_jump_threading): Likewise.
13702 (record_temporary_equivalences): Likewise.
13703 (optimize_stmt): Likewise.
13704 (dom_opt_dom_walker::thread_across_edge): Update access to
13705 avail_exprs_stack object and pass it to children as needed.
13706 (dom_opt_dom_walker::before_dom_children): Similarly.
13707 (dom_opt_dom_walker::after_dom_children): Similarly.
13708 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13709 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13710 Add avail_expr_stack argument. Pass it to children as needed.
13711 (dummy_simplify): Likewise.
13712 (simplify_control_stmt_condition): Likewise.
13713 (thread_around_empty_blocks): Likewise.
13714 (thread_through_normal_block): Likewise.
13715 (thread_across_edge): Likewise.
13716 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13717 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13719 PR tree-optimization/47679
13720 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13722 (dom_opt_dom_walker): New private member holding the const_and_copies
13723 object. Update constructor.
13724 (pass_dominator::execute): Corresponding changes to declaration
13725 and initialization of const_and_copies. Update constructor call
13726 for the dom_opt_dom_walker object.
13727 (record_temporary_equivalences): Accept const_and_copies argument
13728 pass it down to children as needed.
13729 (record_equality): Likewise.
13730 (record_equivalences_from_incoming_edge): Likewise.
13731 (cprop_into_successor_phis, optimize_stmt): Likewise.
13732 (eliminate_redundant_computations): Likewise.
13733 (dom_opt_dom_walker::thread_across_edge): Update access to
13734 const_and_copies object and pass it to children as needed.
13735 (dom_opt_dom_walker::before_dom_children): Similarly.
13736 (dom_opt_dom_walker::after_dom_children): Similarly.
13738 PR tree-optimization/47679
13739 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13740 it into the avail_exprs_stack class.
13741 (pass_dominator::execute): Corresponding changes to declaration
13742 and initialization of avail_exprs. Pass avail_exprs to
13743 dump_dominator_optimization_stats.
13744 (record_cond): Extract avail_exprs from avail_exprs_stack.
13745 (lookup_avail_expr): Similarly.
13746 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13748 (dump_dominator_optimization_stats): Make static and prototype.
13749 Add argument for the hash table to dump.
13750 (debug_dominator_optimization_stats): Remove.
13751 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13753 (debug_dominator_optimization_stats): Similarly.
13754 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13755 "void" in prototype for pop_to_marker method. Add accessor method
13756 for the underlying avail_exprs table.
13758 * tree-ssa-threadedge.c: Remove trailing whitespace.
13760 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13762 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13764 (pa_ldil_cint_p): Likewise.
13765 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13766 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13768 * config/pa/pa.md: Likewise.
13770 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13772 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13773 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13774 (diagnostic_show_locus): Likewise.
13775 (diagnostic_print_caret_line): Likewise.
13776 * diagnostic-show-locus.c: New file.
13778 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13780 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13781 "back" parameter. Declare label in #if block.
13783 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13785 PR middle-end/67619
13786 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13787 the address to a register.
13789 2015-09-18 Jeff Law <law@redhat.com>
13791 PR tree-optimization/47679
13792 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13793 * tree-ssa-dom.c: Remove unnecessary header includes.
13794 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13795 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13796 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13797 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13798 (pass_phi_only_cprop::execute): Likewise.
13799 (make_pass_phi_only_cprop): Likewise.
13800 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13801 uses of file scoped statics by passing the required objects
13802 as parameters wherever needed.
13804 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13805 David Edelsohn <dje.gcc@gmail.com>
13807 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13808 EH_FRAME_THROUGH_COLLECT2.
13809 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13811 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13812 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13813 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13814 * except.c (switch_to_exception_section): Use a read-only section
13815 even if EH_FRAME_SECTION_NAME is undefined.
13816 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13817 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13818 (scan_prog_file): Don't export __dso_handle nor
13819 __gcc_unwind_dbase.
13820 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13821 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13822 (ASM_OUTPUT_DWARF_PCREL): Define.
13823 (ASM_OUTPUT_DWARF_DATAREL): Define.
13824 (EH_FRAME_THROUGH_COLLECT2): Define.
13825 (EH_FRAME_IN_DATA_SECTION): Delete.
13826 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13827 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13829 (rs6000_asm_output_dwarf_datarel): Declare.
13830 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13831 (rs6000_aix_asm_output_dwarf_datarel): New.
13832 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13833 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13834 (EH_FRAME_THROUGH_COLLECT2): Define.
13835 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13836 (EH_FRAME_THROUGH_COLLECT2): Define.
13837 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13838 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13839 (EH_FRAME_THROUGH_COLLECT2): New.
13840 (ASM_OUTPUT_DWARF_DATAREL): New.
13841 * doc/tm.texi: Regenerate.
13843 2015-09-18 Richard Biener <rguenther@suse.de>
13845 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13846 we're in early phase.
13847 (schedule_generic_params_dies_gen): Likewise.
13848 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13849 work as possible, retaining unhandled cases.
13850 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13851 clear out generic_type_instances at the end.
13852 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13853 (dwarf2out_early_finish): ... here. Do most of
13854 gen_remaining_tmpl_value_param_die_attribute here.
13856 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13858 PR tree-optimization/67283
13859 * tree-sra.c (type_consists_of_records_p): Rename to...
13860 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13861 (completely_scalarize_record): Rename to...
13862 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13863 (scalarize_elem): New.
13864 (analyze_all_variable_accesses): Follow renamings.
13866 2015-09-18 Richard Biener <rguenther@suse.de>
13868 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13871 2015-09-18 Richard Biener <rguenther@suse.de>
13873 PR tree-optimization/66142
13874 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13875 treat MEM[&x] and x the same.
13876 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13877 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13878 when we simplified sth.
13879 (vn_reference_maybe_forwprop_address): Likewise.
13880 (valueize_refs_1): When we simplified through
13881 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13882 set valueized_anything to true.
13883 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13884 one ref kills the other instead of just a offset-based test.
13885 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13886 for the operand_equal_p test to compare bases and also compare
13889 2015-09-17 Christian Bruel <christian.bruel@st.com>
13891 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13893 2015-09-17 Richard Henderson <rth@redhat.com>
13896 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13897 pointers that encode the alignment of the object.
13899 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13901 PR rtl-optimization/66790
13902 * df-problems.c (LIVE): Amend documentation.
13904 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
13906 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13908 (GTFILES): Replace optabs.c with optabs-libfunc.c.
13909 * genopinit.c (main): Add an include guard to insn-opinit.h.
13910 Protect the rtx_code parts with NUM_RTX_CODE.
13911 * optabs.h: Split parts out to...
13912 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13913 * optabs.c: Split parts out to...
13914 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13915 * cilk-common.c: Include optabs-query.h rather than optabs.h.
13916 * fold-const.c: Likewise.
13917 * target-globals.c: Likewise.
13918 * tree-if-conv.c: Likewise.
13919 * tree-ssa-forwprop.c: Likewise.
13920 * tree-ssa-loop-prefetch.c: Likewise.
13921 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13922 Remove unncessary include files.
13923 * tree-ssa-phiopt.c: Likewise.
13924 * tree-ssa-reassoc.c: Likewise.
13925 * tree-switch-conversion.c: Likewise.
13926 * tree-vect-data-refs.c: Likewise.
13927 * tree-vect-generic.c: Likewise.
13928 * tree-vect-loop.c: Likewise.
13929 * tree-vect-patterns.c: Likewise.
13930 * tree-vect-slp.c: Likewise.
13931 * tree-vect-stmts.c: Likewise.
13932 * tree-vrp.c: Likewise.
13933 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13934 rather than optabs.h.
13935 * expr.c: Include optabs-tree.h.
13936 * function.c: Likewise.
13938 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13940 PR middle-end/65958
13941 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13942 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13943 * config/arm/arm.c: Include common/common-target.h.
13944 (use_return_insn): Return 0 if the static chain register was saved
13945 above a non-APCS frame.
13946 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13947 (struct scratch_reg): New.
13948 (get_scratch_register_on_entry): New function.
13949 (release_scratch_register_on_entry): Likewise.
13950 (arm_emit_probe_stack_range): Likewise.
13951 (output_probe_stack_range): Likewise.
13952 (arm_expand_prologue): Factor out code dealing with the IP register
13953 for nested function and adjust it for stack checking.
13954 Invoke arm_emit_probe_stack_range if static builtin stack checking
13956 (thumb1_expand_prologue): Sorry out if static builtin stack checking
13958 (arm_expand_epilogue): Add the saved static chain register, if any, to
13959 the amount of pre-pushed registers to pop.
13960 (arm_frame_pointer_required): Return true if static stack checking is
13961 enabled and we want to catch the exception with the EABI unwinder.
13962 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13963 (UNSPEC_PROBE_STACK_RANGE): Likewise.
13964 * config/arm/arm.md (probe_stack): New insn.
13965 (probe_stack_range): Likewise.
13967 2015-09-17 Richard Biener <rguenther@suse.de>
13969 * genmatch.c (parser::parse_expr): Improve error message
13970 for mis-placed flags.
13972 2015-09-17 Richard Biener <rguenther@suse.de>
13974 * passes.c (rest_of_decl_compilation): Always call early_global_decl
13975 debug hook when we created a varpool node.
13976 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13977 dwarf2out_early_global_decl, when not just add location or
13978 value attributes to existing DIEs.
13980 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
13982 * config/aarch64/aarch64.md (copysigndf3): New.
13983 (copysignsf3): Likewise.
13985 2015-09-17 David S. Miller <davem@davemloft.net>
13987 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13988 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13989 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13990 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13991 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13992 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13993 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13994 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13995 provide when flag_pic.
13997 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
13999 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14000 object_allocator change.
14002 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14004 PR tree-optimization/66388
14005 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14006 (dump_iv): Dump no_overflow information.
14007 (alloc_iv): Initialize new field for struct iv.
14008 (mark_bivs): Count number of no_overflow bivs.
14009 (find_deriving_biv_for_expr, record_biv_for_address_use): New
14011 (idx_find_step): Call new functions above.
14012 (add_candidate_1, add_candidate): New paramter.
14013 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14014 (get_computation_aff): Simplify convertion of cand for BIV.
14015 (get_computation_cost_at): Step cand's base if necessary.
14017 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14019 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14021 (tree_simplify_using_condition): Ditto.
14022 (simplify_using_initial_conditions): Ditto.
14023 (loop_exits_before_overflow): Pass new argument to function
14024 simplify_using_initial_conditions. Remove case for type conversions
14026 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14028 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14029 in iv base using loop initial conditions.
14031 2015-09-16 Jeff Law <law@redhat.com>
14033 PR tree-optimization/47679
14034 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14035 (free_all_edge_infos): Use it.
14036 (allocate_edge_info): Free preexisting edge info data.
14037 (pass_dominator::execute): Set up initial edge info structures.
14038 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14039 thread_across_edge.
14040 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14041 If non-null, then push/pop markers appropriately.
14042 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14043 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14044 thread-across_edge.
14046 2015-09-16 James Bowman <james.bowman@ftdichip.com>
14048 * config/ft32/ft32.c: Fix the memory address space predicate.
14050 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
14053 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14054 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14056 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14058 * toplev.h (check_global_declaration): Remove declaration.
14059 * toplev.c (check_global_declaration): Move to ...
14060 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14061 (analyze_functions): Update call.
14063 2015-09-16 David S. Miller <davem@davemloft.net>
14065 * lra-constraints.c (simplify_operand_subreg): Do not assume that
14066 lowpart of a SUBREG has offset zero.
14068 2015-09-16 Jeff Law <law@redhat.com>
14070 PR tree-optimization/47679
14071 * tree-ssa-dom.c (enum expr_kind): Moved from here to
14072 tree-ssa-scopedtables.h.
14073 (struct hashable_expr, class expr_hash_elt): Likewise.
14074 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14075 Move associated methods into tree-ssa-scopedtables.c.
14076 (avail_expr_hash, initialize_expr_from_cond): Similarly.
14077 (hashable_expr_equal_p, add_expr_commutative): Likewise.
14078 (add_hashable_expr): Likewise.
14079 (record_cond): Delete element directly.
14080 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14081 private copy ctor and assignment operator methods.
14082 (expr_elt_hasher): Inline trivial methods.
14083 (initialize_expr_from_cond): Prototype.
14084 * tree-ssa-scopedtables.c: Add necessary includes, functions and
14085 methods that were previously in tree-ssa-dom.c. Improve various
14088 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
14090 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14092 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
14095 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14098 2015-09-16 Richard Biener <rguenther@suse.de>
14100 PR middle-end/67253
14101 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14102 location of possibly shared trees.
14104 2015-09-16 Richard Biener <rguenther@suse.de>
14106 PR middle-end/67271
14107 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14109 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
14111 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14112 offset and size computations instead of HOST_WIDE_INT.
14114 2015-09-16 Richard Biener <rguenther@suse.de>
14116 PR middle-end/67442
14117 * fold-const.c (extract_muldiv_1): Properly extend multiplication
14118 result before builting a tree via wide_int_to_tree.
14120 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
14122 * Makefile.in: Add memory-block.cc
14123 (pool_allocator::initialize): Use fixed block size.
14124 (pool_allocator::release): Use memory_block_pool.
14125 (pool_allocator::allocate): Likewise.
14126 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14128 * cfg.c (initialize_original_copy_tables): Likewise.
14129 * cselib.c (elt_list_pool, elt_loc_list_pool,
14130 cselib_val_pool): Likewise.
14131 * df-problems.c (df_chain_alloc): Likewise.
14132 * df-scan.c (df_scan_alloc): Likewise.
14133 * dse.c (cse_store_info_pool, rtx_store_info_pool,
14134 read_info_type_pool, insn_info_type_pool, bb_info_pool,
14135 group_info_pool, deferred_change_pool): Likewise.
14136 * et-forest.c (et_nodes, et_occurrences): Likewise.
14137 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14138 ipcp_agg_lattice_pool): Likewise.
14139 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14140 * ipa-profile.c (histogram_pool): Likewise.
14141 * ipa-prop.c (ipa_refdesc_pool): Likewise.
14142 * ira-build.c (live_range_pool, allocno_pool, object_pool,
14143 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14144 * ira-color.c (update_cost_record_pool): Likewise.
14145 * lra-lives.c (lra_live_range_pool): Likewise.
14146 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14147 * memory-block.cc: New file.
14148 * memory-block.h: New file.
14149 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14150 * sched-deps.c (sched_deps_init): Likewise.
14151 * sel-sched-ir.c (sched_lists_pool): Likewise.
14152 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14153 * tree-sra.c (access_pool): Likewise.
14154 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14155 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14156 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14157 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14158 * tree-ssa-strlen.c (strinfo_pool): Likewise.
14159 * tree-ssa-structalias.c (variable_info_pool): Likewise.
14160 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14161 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14163 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14165 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14167 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14170 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14172 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14173 to pass TLS call argument, according to current ABI.
14174 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14175 callx0 for TLS call, according to current ABI.
14177 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14179 * tree-eh.c (lower_try_finally_dup_block): Clear location information
14180 on stack restore statements.
14181 (decide_copy_try_finally): Do not consider a stack restore statement as
14182 coming from sources.
14184 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
14186 * config/alpha/alpha.c (alpha_expand_block_clear): Use
14187 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14189 2015-09-15 Jeff Law <law@redhat.com>
14191 PR tree-optimization/47679
14192 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14193 methods and private members.
14194 (avail_exprs_stack): Similarly. Change type of global
14195 from a pair of expr_hash_elt_t to the new class.
14196 (expr_elt_hasher::hash): Corresponding changes.
14197 (expr_elt_hasher::equal): Similarly.
14198 (avail_expr_hash): Similarly.
14199 (pass_dominator::execute): Similarly.
14200 (dom_opt_dom_walker::thread_across_edge): Similarly.
14201 (record_cond): Similarly.
14202 (dom_opt_dom_walker::before_dom_children): Similarly.
14203 (dom_opt_dom_walker::after_dom_children): Similarly.
14204 (lookup_avail_expr): Likewise.
14205 (initialize_hash_element): Now a expr_hash_elt constructor.
14206 (initialize_hash_element_from_expr): Similarly.
14207 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14208 (free_expr_hash_elt): Call dtor for the element.
14209 (remove_local_expressions_from_table): Now the "pop_to_marker"
14210 method in the available_exprs_stack class.
14211 (avail_expr_stack::record_expr): Method factored out.
14212 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14214 (hashable_expr_equal_p): Fix formatting.
14216 2015-09-15 David Malcolm <dmalcolm@redhat.com>
14218 * input.h (location_get_source_line): Drop "expanded_location"
14219 param in favor of a file and line number.
14220 * input.c (location_get_source_line): Likewise.
14221 (dump_location_info): Update for change in signature of
14222 location_get_source_line.
14223 * diagnostic.c (diagnostic_print_caret_line): Likewise.
14225 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14227 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14228 Bump to 4KB for SJLJ exceptions.
14229 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
14230 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14231 * doc/tm.texi: Regenerate.
14233 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14235 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14236 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
14239 2015-09-15 Richard Biener <rguenther@suse.de>
14241 PR tree-optimization/67470
14242 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14243 structure for PHI hoisting by inserting a forwarder block
14246 2015-09-15 Christian Bruel <christian.bruel@st.com>
14248 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14249 (arm_option_print): New function.
14251 2015-09-15 Christian Bruel <christian.bruel@st.com>
14254 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14255 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14256 Remove flags parameter.
14257 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14258 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14259 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14260 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14261 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14262 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14263 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14264 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14266 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14268 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14270 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14271 AARCH64_VALID_SIMD_DREG_MODE.
14273 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14275 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14276 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14277 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14278 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14279 aarch64_ld4_lane<mode>): Combine together, making...
14280 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14281 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14282 aarch64_st4_lane<mode>): Combine together, making...
14283 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14284 * config/aarch64/iterators.md (nregs): Add comment.
14286 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14288 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14289 Change operand mode from <V_TWO_ELEM> to BLK.
14290 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14291 (aarch64_vec_store_lanesoi_lane<mode): Likewise
14292 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14293 (aarch64_ld2_lane<mode>): Likewise.
14294 (aarch64_st2_lane<VQ:mode>): Likewise.
14295 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14297 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14299 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14300 Change operand mode from <V_FOUR_ELEM> to BLK.
14301 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14302 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14303 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14304 (aarch64_ld4_lane<mode>): Likewise.
14305 (aarch64_st4_lane<mode>): Likewise.
14306 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14308 2015-09-15 Richard Biener <rguenther@suse.de>
14310 PR middle-end/67563
14311 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14312 transfer EH info from old to new stmt.
14313 (replace_call_with_value): Likewise.
14314 (replace_call_with_call_and_fold): Likewise.
14315 (gimple_fold_builtin_memory_op): Likewise.
14316 (gimple_fold_builtin_memset): Likewise.
14317 (gimple_fold_builtin_stpcpy): Likewise.
14318 (gimple_fold_call): Likewise.
14320 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14322 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14324 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14325 (aarch64_simd_intEI_type_node): Likewise.
14326 (aarch64_simd_builtin_std_type): Remove EImode case.
14327 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14328 * config/aarch64/aarch64-modes.def: Remove EImode.
14330 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14332 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14333 Change operand mode from <V_THREE_ELEM> to BLK.
14334 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14335 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14336 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14337 (aarch64_ld3_lane<mode>): Likewise.
14338 (aarch64_st3_lane<mode>): Likewise.
14339 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14341 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14343 * config/aarch64/aarch64-simd.md
14344 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14345 Change all TImode operands to BLKmode.
14346 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14347 Change all EImode operands to BLKmode.
14348 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14349 Change all OImode operands to BLKmode.
14351 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14352 and call set_mem_size.
14353 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14355 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14357 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14359 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14361 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14363 (vec_store_lanesci_lane<mode>): Rename to...
14364 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14366 (vec_store_lanesxi_lane<mode>): Rename to...
14367 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14369 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14370 aarch64_st4_lane<mode>): Follow renaming.
14372 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14374 * config/s390/s390.c (s390_const_operand_ok): Add missing
14377 2015-09-15 Richard Biener <rguenther@suse.de>
14380 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14382 * lto-streamer-out.c (clear_line_info): Likewise.
14384 2015-09-15 Richard Biener <rguenther@suse.de>
14386 * doc/match-and-simplify.texi: Fix wording.
14388 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14390 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14391 unnecessary type conversion in op1.
14393 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14395 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14396 (dup_block_and_redirect): Delete function.
14397 (can_dup_for_shrink_wrapping): New function.
14398 (fix_fake_fallthrough_edge): New function.
14399 (try_shrink_wrapping): Rewrite function.
14400 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14402 2015-09-14 Rich Felker <dalias@libc.org>
14404 * configure.ac: Change target pattern for sh TLS support
14405 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14406 * configure: Regenerate.
14408 2015-09-14 Jeff Law <law@redhat.com>
14410 PR tree-optimization/47679
14411 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14412 type rather than void *.
14414 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14417 * diagnostic.c (diagnostic_initialize): Do not set
14418 some_warnings_are_errors.
14419 (diagnostic_finish): Use DK_WERROR count instead.
14420 (diagnostic_report_diagnostic): Do not set
14421 some_warnings_are_errors.
14422 * diagnostic.h (struct diagnostic_context): Remove
14423 some_warnings_are_errors.
14425 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14427 * config/sparc/predicates.md (const_all_ones_operand): Use
14428 CONSTM1_RTX to simplify definition.
14430 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14433 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14436 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14438 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14439 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14440 OPT_fshow_column to handled saved option cases.
14441 (append_compiler_options): Do not skip the above added options.
14443 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14446 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14447 nopcrelative_literal_loads.
14448 (aarch64_classify_address): Likewise.
14449 (aarch64_constant_pool_reload_icode): Define.
14450 (aarch64_secondary_reload): Handle secondary reloads for
14452 (aarch64_override_options): Handle nopcrelative_literal_loads.
14453 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14454 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14456 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14457 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14458 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14460 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14462 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14464 PR middle-end/67401
14465 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14466 sync_compare_and_swap_optab libcall to target_oval.
14468 2015-09-14 Marek Polacek <polacek@redhat.com>
14470 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14472 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14474 2015-09-11 Mark Wielaard <mjw@redhat.com>
14477 * toplev.c (check_global_declaration): Check and use
14478 warn_unused_const_variable.
14479 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14480 (-Wunused-variable): Remove non-constant. For C implies
14481 -Wunused-const-variable.
14482 (-Wunused-const-variable): New.
14484 2015-09-14 Richard Biener <rguenther@suse.de>
14486 * doc/match-and-simplify.texi: Update for changed syntax
14487 of inner ifs and the new switch expression.
14489 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14491 * config/i386/haswell.md: New file describing Haswell pipeline.
14492 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14493 haswell-like processors.
14494 (ix86_reassociation_width): Increase reassociation width for 64-bit
14495 Haswell processor family.
14496 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14498 2015-09-14 Richard Biener <rguenther@suse.de>
14500 * doc/match-and-simplify.texi: Fixup some formatting issues
14501 and document the 's' flag.
14503 2015-09-13 Olivier Hainque <hainque@adacore.com>
14504 Eric Botcazou <ebotcazou@adacore.com>
14506 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14507 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14508 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14509 (TARGET_CPU_gr5): Likewise.
14510 (TARGET_CPU_gr6): Likewise.
14511 (MULTILIB_DEFAULTS): Likewise.
14512 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14513 for mcpu=gr5 and mcpu=gr6.
14514 (MULTILIB_DIRNAMES): Adjust accordingly.
14516 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14518 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14519 (mem_ref_p): Likewise.
14520 (outermost_indep_loop): Adjust.
14521 (mem_ref_in_stmt): Likewise.
14522 (determine_max_movement): Likewise.
14523 (mem_ref_alloc): Likewise.
14524 (record_mem_ref_loc): Likewise.
14525 (set_ref_stored_in_loop): Likewise.
14526 (mark_ref_stored): Likewise.
14527 (gather_mem_refs_stmt): Likewise.
14528 (mem_refs_may_alias_p): Likewise.
14529 (for_all_locs_in_loop): Likewise.
14530 (struct rewrite_mem_ref_loc): Likewise.
14531 (rewrite_mem_refs): Likewise.
14532 (struct first_mem_ref_loc_1): Likewise.
14533 (first_mem_ref_loc): Likewise.
14534 (struct sm_set_flag_if_changed): Likewise.
14535 (execute_sm_if_changed_flag_set): Likewise.
14536 (execute_sm): Likewise.
14537 (hoist_memory_references):
14538 (struct ref_always_accessed): Likewise.
14539 (ref_always_accessed_p): Likewise.
14540 (refs_independent_p): Likewise.
14541 (record_dep_loop): Likewise.
14542 (ref_indep_loop_p_1): Likewise.
14543 (ref_indep_loop_p_2): Likewise.
14544 (ref_indep_loop_p): Likewise.
14545 (can_sm_ref_p): Likewise.
14546 (find_refs_for_sm): Likewise.
14547 (tree_ssa_lim_finalize): Likewise.
14549 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14551 * dwarf2out.c (dw_attr_ref): Remove typedef.
14552 (dw_line_info_ref): Likewise.
14553 (pubname_ref): Likewise.
14554 (dw_ranges_ref): Likewise.
14555 (dw_ranges_by_label_ref): Likewise.
14556 (comdat_type_node_ref): Likewise.
14558 (get_AT_low_pc): Likewise.
14559 (get_AT_hi_pc): Likewise.
14560 (get_AT_string): Likewise.
14561 (get_AT_flag): Likewise.
14562 (get_AT_unsigned): Likewise.
14563 (get_AT_ref): Likewise.
14564 (get_AT_file): Likewise.
14565 (remove_AT): Likewise.
14566 (print_die): Likewise.
14567 (check_die): Likewise.
14568 (die_checksum): Likewise.
14569 (attr_checksum_ordered): Likewise.
14570 (struct checksum_attributes): Likewise.
14571 (collect_checksum_attributes): Likewise.
14572 (die_checksum_ordered): Likewise.
14573 (same_die_p): Likewise.
14574 (is_declaration_die): Likewise.
14575 (clone_die): Likewise.
14576 (clone_as_declaration): Likewise.
14577 (copy_declaration_context): Likewise.
14578 (break_out_comdat_types): Likewise.
14579 (copy_decls_walk): Likewise.
14580 (output_location_lists): Likewise.
14581 (external_ref_hasher::hash): Likewise.
14582 (optimize_external_refs_1): Likewise.
14583 (build_abbrev_table): Likewise.
14584 (size_of_die): Likewise.
14585 (unmark_all_dies): Likewise.
14586 (size_of_pubnames): Likewise.
14587 (output_die_abbrevs): Likewise.
14588 (output_die): Likewise.
14589 (output_pubnames): Likewise.
14590 (add_ranges_num): Likewise.
14591 (add_ranges_by_labels): Likewise.
14592 (add_high_low_attributes): Likewise.
14593 (gen_producer_string): Likewise.
14594 (dwarf2out_set_name): Likewise.
14595 (new_line_info_table): Likewise.
14596 (prune_unused_types_walk_attribs): Likewise.
14597 (prune_unused_types_update_strings): Likewise.
14598 (prune_unused_types): Likewise.
14599 (resolve_addr): Likewise.
14600 (optimize_location_lists_1): Likewise.
14601 (index_location_lists): Likewise.
14602 (dwarf2out_finish): Likewise.
14604 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14606 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14608 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14610 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14611 (dump_asserts_for): Adjust.
14612 (register_new_assert_for): Likewise.
14613 (process_assert_insertions): Likewise.
14614 (insert_range_assertions): Likewise.
14616 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14618 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14619 and remove typedef.
14620 (new_temp_expr_table): Adjust.
14621 (free_temp_expr_table): Likewise.
14622 (version_to_be_replaced_p): Likewise.
14623 (make_dependent_on_partition): Likewise.
14624 (add_to_partition_kill_list): Likewise.
14625 (remove_from_partition_kill_list): Likewise.
14626 (add_dependence): Likewise.
14627 (finished_with_expr): Likewise.
14628 (process_replaceable): Likewise.
14629 (kill_expr): Likewise.
14630 (kill_virtual_exprs): Likewise.
14631 (mark_replaceable): Likewise.
14632 (find_replaceable_in_bb): Likewise.
14633 (find_replaceable_exprs): Likewise.
14634 (debug_ter): Likewise.
14636 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14638 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14639 (struct btr_user): Rename from btr_user_s.
14640 (struct btr_def): Rename from btr_def_s.
14641 (find_btr_def_group): Adjust.
14642 (add_btr_def): Likewise.
14643 (new_btr_user): Likewise.
14644 (note_other_use_this_block): Likewise.
14645 (compute_defs_uses_and_gen): Likewise.
14646 (link_btr_uses): Likewise.
14647 (build_btr_def_use_webs): Likewise.
14648 (block_at_edge_of_live_range_p): Likewise.
14649 (btr_def_live_range): Likewise.
14650 (combine_btr_defs): Likewise.
14651 (move_btr_def): Likewise.
14652 (migrate_btr_def): Likewise.
14653 (migrate_btr_defs): Likewise.
14655 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14657 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14658 (shared_hash): Remove typedef.
14659 (struct dataflow_set): Adjust.
14660 (shared_hash_unshare): Likewise.
14661 (dataflow_set_merge): Likewise.
14662 (vt_initialize): Likewise.
14663 (vt_finalize): Likewise.
14665 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14667 * var-tracking.c (struct location_chain): Rename from
14668 location_chain_def.
14669 (struct variable_part): Adjust.
14670 (variable_htab_free): Likewise.
14671 (unshare_variable): Likewise.
14672 (get_init_value): Likewise.
14673 (get_addr_from_local_cache): Likewise.
14674 (drop_overlapping_mem_locs): Likewise.
14675 (val_reset): Likewise.
14676 (struct variable_union_info): Likewise.
14677 (variable_union): Likewise.
14678 (find_loc_in_1pdv): Likewise.
14679 (insert_into_intersection): Likewise.
14680 (intersect_loc_chains): Likewise.
14681 (canonicalize_loc_order_check): Likewise.
14682 (canonicalize_values_mark): Likewise.
14683 (canonicalize_values_star): Likewise.
14684 (canonicalize_vars_star): Likewise.
14685 (variable_merge_over_cur): Likewise.
14686 (remove_duplicate_values): Likewise.
14687 (variable_post_merge_new_vals): Likewise.
14688 (variable_post_merge_perm_vals): Likewise.
14689 (find_mem_expr_in_1pdv): Likewise.
14690 (dataflow_set_preserve_mem_locs): Likewise.
14691 (dataflow_set_remove_mem_locs): Likewise.
14692 (variable_part_different_p): Likewise.
14693 (onepart_variable_different_p): Likewise.
14694 (find_src_set_src): Likewise.
14695 (dump_var): Likewise.
14696 (set_slot_part): Likewise.
14697 (clobber_slot_part): Likewise.
14698 (delete_slot_part): Likewise.
14699 (vt_expand_var_loc_chain): Likewise.
14700 (emit_note_insn_var_location): Likewise.
14701 (vt_finalize): Likewise.
14703 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14705 * dse.c (store_info_t): Remove typedef.
14706 (group_info_t): Likewise.
14707 (const_group_info_t): Likewise.
14708 (deferred_change_t): Likewise.
14709 (get_group_info): Adjust.
14710 (free_store_info): Likewise.
14711 (canon_address): Likewise.
14712 (clear_rhs_from_active_local_stores): Likewise.
14713 (record_store): Likewise.
14714 (replace_read): Likewise.
14715 (check_mem_read_rtx): Likewise.
14716 (scan_insn): Likewise.
14717 (remove_useless_values): Likewise.
14718 (dse_step1): Likewise.
14719 (dse_step2_init): Likewise.
14720 (dse_step2_nospill): Likewise.
14721 (scan_stores_nospill): Likewise.
14722 (scan_reads_nospill): Likewise.
14723 (dse_step3_exit_block_scan): Likewise.
14724 (dse_step3): Likewise.
14725 (dse_step5_nospill): Likewise.
14726 (dse_step6): Likewise.
14728 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14730 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14731 (alias_set_entry): Remove typedef.
14732 (alias_set_subset_of): Adjust.
14733 (alias_sets_conflict_p): Likewise.
14734 (init_alias_set_entry): Likewise.
14735 (get_alias_set): Likewise.
14736 (new_alias_set): Likewise.
14737 (record_alias_subset): Likewise.
14739 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14741 * doc/install.texi (Downloading the source): Mark up
14742 contrib/download_prerequisites properly and drop leading "./".
14744 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14746 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14747 * config/lm32/lm32.h: Likewise.
14748 * config/mep/mep.h: Likewise.
14749 * config/visium/visium.h: Likewise.
14750 * system.h: Poison STRUCT_VALUE macro.
14752 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14754 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14755 CONSTANT_P operands.
14757 2015-09-11 David S. Miller <davem@davemloft.net>
14759 * config/sparc/constraints.md: Make "U" constraint a real register
14761 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14762 (D_MODES, DF_MODES): Add missing cast.
14763 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14764 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14765 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14767 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14768 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14769 provide these insn when flag_pic.
14771 2015-09-11 Jeff Law <law@redhat.com>
14773 PR tree-optimization/47679
14774 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14775 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14776 member with m_. Update inline member functions as necessary. Add
14778 * tree-ssa-scopedtables.c: Update const_and_copies's member
14779 functions to use m_ prefix to access the stack.
14781 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14783 * graphite-optimize-isl.c (disable_tiling): Remove.
14784 (get_schedule_for_band): Do not use disable_tiling.
14785 (get_prevector_map): Delete function.
14786 (enable_polly_vector): Remove.
14787 (get_schedule_for_band_list): Remove dead code.
14789 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14791 * graphite-optimize-isl.c (get_tile_map): Refactor.
14792 (get_schedule_for_band): Same.
14793 (getScheduleForBand): Same.
14794 (get_prevector_map): Same.
14795 (get_schedule_for_band_list): Same.
14796 (get_schedule_map): Same.
14797 (get_single_map): Same.
14798 (apply_schedule_map_to_scop): Same.
14799 (optimize_isl): Same.
14801 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14804 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14806 * config/aarch64/iterators.md (GPF_TF_F16): New.
14809 2015-09-10 Nathan Sidwell <nathan@acm.org>
14811 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14812 (nvptx_reorg): Adjust comments.
14814 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14817 * configure.ac: Check if setenv and unsetenv are declared.
14818 * configure: Rebuild.
14819 * config.in: Rebuild.
14820 * system.h: Declare setenv and unsetenv if not declared.
14822 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14824 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14825 commentary to simplify permute mask adjustment equation.
14826 (special_handling_values): Add SH_VPERM.
14827 (const_load_sequence_p): New function.
14828 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14829 the mask loaded from the constant pool.
14830 (adjust_vperm): New function.
14831 (handle_special_swappables): Call adjust_vperm.
14832 (dump_swap_insn_table): Handle SH_VPERM.
14834 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14836 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14837 * shrink-wrap.h (requires_stack_frame_p): Put back.
14839 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14841 * reload1.c (elimination_costs_in_insn): Locally turn
14842 -Wmaybe-uninitialized into a warning.
14844 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14846 * shrink-wrap.c (requires_stack_frame_p): Make static.
14847 (prepare_shrink_wrap): Likewise.
14848 (dup_block_and_redirect): Likewise.
14849 * shrink-wrap.h: Remove declarations of those functions.
14851 2015-09-10 Mark Wielaard <mjw@redhat.com>
14853 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14855 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14858 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14859 missing simplify_gen_subreg.
14861 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14863 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14864 the vector element is bigger than 64 bit.
14866 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14868 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14869 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14871 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14873 * config/s390/s390.c: Add V1TImode to constant pool modes.
14875 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14878 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14879 predicate. Set predicable_short_it attr to "no".
14881 2015-09-10 Jiong Wang <jiong.wang@arm.com>
14883 PR rtl-optimization/67421
14884 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14885 left wide shift tranformation.
14887 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14889 * common/config/arc/arc-common.c: Remove references to A5.
14890 * config/arc/arc-opts.h: Likewise.
14891 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14892 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14893 * config/arc/t-arc-newlib: Likewise.
14895 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14897 * config/arc/arc.md (length): Fix attribute length for conditional
14898 executed instructions with long immediate.
14900 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14902 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14903 type for second alternative.
14905 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
14907 * doc/invoke.texi (Downloading GCC): Mention
14908 contrib/download_prerequisites script.
14910 2015-09-10 Jakub Jelinek <jakub@redhat.com>
14913 * gimplify.c (gimplify_omp_for): If inner stmt is not found
14914 for combined loop, assert seen_error () and return GS_ERROR.
14916 PR middle-end/67521
14917 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14918 if decl is already in outer->variables.
14920 PR middle-end/67517
14921 * gimplify.c (gimplify_scan_omp_clauses): Instead of
14922 asserting that decl is not specified in octx->variables,
14923 break out of the loop if it is.
14926 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14927 iterator is not explicitly determined, but is defined inside
14928 of the combined workshare region, handle it like if it has
14929 DECL_EXPR in OMP_FOR_PRE_BODY.
14931 2015-09-09 Nathan Sidwell <nathan@acm.org>
14933 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14934 (*cmp<mode>): Add assembler spacing.
14935 (setcc_int<mode>, set_cc_float<mode>): Likewise.
14936 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14938 (write_func_decl_from_insn): Refactor argument loops & comma emission.
14939 (nvptx_expand_call): Likewise.
14940 (nvptx_output_call_insn): Likewise.
14941 (nvptx_reorg_subreg): Add spacing.
14943 2015-09-09 Marek Polacek <polacek@redhat.com>
14945 PR middle-end/67512
14946 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14949 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14952 * doc/invoke.texi ([Wsubobject-linkage]): Document.
14954 2015-09-09 Tom de Vries <tom@codesourcery.com>
14956 * params-list.h: Add missing copyright notice.
14958 2015-09-09 Nathan Sidwell <nathan@acm.org>
14960 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14961 sel_truesi, not andsi.
14963 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14965 * config/arm/arm.md (*subsi3_compare0): Rename to...
14966 (subsi3_compare0): ... This.
14967 (modsi3): New define_expand.
14968 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14969 when operand is power of 2.
14971 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14973 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14974 (*neg<mode>2_compare0): Rename to...
14975 (neg<mode>2_compare0): ... This.
14976 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14977 Move check for speed inside the if-then-elses. Reflect
14978 CSNEG sequence in MOD by power of 2 case.
14980 2015-09-09 Alan Modra <amodra@gmail.com>
14983 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14984 reload replacement for PRE_MODIFY address reg.
14986 2015-09-09 Sebastian Pop <s.pop@samsung.com>
14988 PR tree-optimization/53852
14989 * config.in: Regenerate.
14990 * configure: Regenerate.
14991 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14992 * graphite-optimize-isl.c (optimize_isl): Stop computation when
14993 PARAM_MAX_ISL_OPERATIONS is reached.
14994 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14995 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14996 result equal to isl_stat_ok as the status now can be isl_error_quota.
14997 (subtract_commutative_associative_deps): Same.
14998 (compute_deps): Same.
15000 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15001 Sebastian Pop <s.pop@samsung.com>
15003 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15004 Return the parameter if it was saved in corresponding
15005 parameter_rename_map of the region.
15006 (copy_def): Copy def from sese region to the newly created region.
15007 (copy_internal_parameters): Copy all the internal parameters defined
15008 within a region to the newly created region.
15009 (graphite_regenerate_ast_isl): Copy parameters to the new region before
15010 translating isl to gimple.
15011 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15012 the loop-nest does not have any data-references.
15013 (build_graphite_scops): Create a scop only when there is at least one
15015 (contains_only_close_phi_nodes): Deleted.
15016 (print_graphite_scop_statistics): Deleted
15017 (print_graphite_statistics): Deleted
15018 (limit_scops): Deleted.
15019 (build_scops): Removed call to limit_scops.
15020 * sese.c (new_sese): Construct.
15021 (free_sese): Destruct.
15022 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15024 (set_rename): Pass sese region so that parameters inside the region can
15025 be added to its parameter_rename_map.
15026 (rename_uses): Pass sese region.
15027 (graphite_copy_stmts_from_block): Do not copy parameters that have been
15028 generated in the header of the scop. For each SSA_NAME in the
15029 parameter_rename_map rename its usage.
15030 (invariant_in_sese_p_rec): Return false if tree t is defined outside
15032 (scalar_evolution_in_region): If the tree t is invariant just return t.
15033 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15034 struct sese to keep track of all the parameters which need renaming.
15035 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15037 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15039 2015-09-08 Tom de Vries <tom@codesourcery.com>
15041 * Makefile.in (generated_files): Add params.list.
15042 (params.list, s-params.list): Add rule.
15043 * params.h (enum compiler_param): Include params-list.h. Move define
15044 DEFPARAM, include params.def and undef DEFPARAM ...
15045 * params-list.h: ... here. New file.
15047 2015-09-08 David Malcolm <dmalcolm@redhat.com>
15049 * pretty-print.h (printer_fn): Fix typo in comment.
15051 2015-09-07 Jeff Law <law@redhat.com>
15053 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15055 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15057 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15058 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15059 (arm_neon_fp16_hw): New.
15061 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15063 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15064 UNITS_PER_WORD >= 4.
15066 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15068 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15069 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15070 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15071 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15072 (aarch64_float_extend_lo_v2df): Rename to...
15073 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15075 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15076 (float_extend_lo): Add v4sf.
15078 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15079 * config/aarch64/iterators.md (VQ_HSF): New iterator.
15080 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15081 (Vwide): New mode_attr.
15083 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15085 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15086 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15087 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15088 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15089 V4HF and V8HF variants to iterator.
15091 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15093 * config/aarch64/iterators.md (VDQF_F16): New.
15094 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15096 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15098 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15099 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15100 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15101 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15102 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15103 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15104 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15105 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15106 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15107 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15108 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15109 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15110 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15111 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15112 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15113 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15114 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15115 vld1q_dup_f16): New.
15117 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15119 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15120 Reparameterize to...
15121 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15122 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15123 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15125 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15127 (float_truncate_lo_): Use BUILTIN_VDF iterator.
15129 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15131 * config/aarch64/iterators.md (VDF, Vdtype): New.
15132 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15134 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15136 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15137 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15138 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15139 Add __builtin_aarch64_simd_hf.
15140 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15141 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15142 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15143 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15144 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15145 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15146 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15147 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15148 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15150 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15151 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15152 (VDC, Vdbl): Add V4HF.
15154 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15156 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15157 V4HFmode and V8HFmode.
15158 (aarch64_split_simd_move): Add case for V8HFmode.
15159 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15160 (aarch64_simd_builtin_std_type): Handle HFmode.
15161 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15163 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15164 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15165 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15167 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15170 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15171 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15173 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15174 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15175 vst1q_lane_f16): New.
15176 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15177 (VALLDI_F16, VALL_F16): New.
15178 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15179 Add cases for V4HF and V8HF.
15180 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15182 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15184 * config/arm/arm-builtins.c (VAR11, VAR12): New.
15185 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15186 vld4_dup): Add v4hf variant.
15187 (vget_high, vget_low): Add v8hf variant.
15188 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15189 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15190 v4hf and v8hf variants.
15192 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15194 (V_DOUBLE): Add case for V4HF.
15196 (V_HALF): Add case for V8HF.
15197 (VDQX): Add V4HF, V8HF.
15198 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15199 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15201 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15202 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15203 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15204 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15205 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15206 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15207 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15208 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15209 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15211 (neon_vcreate, neon_vreinterpretv8qi<mode>,
15212 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15213 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15214 Change VDX to VD_RE.
15216 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15217 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15218 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15220 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15221 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15222 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15223 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15224 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15225 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15226 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15227 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15228 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15230 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15232 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15233 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15234 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15235 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15236 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15237 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15238 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15239 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15240 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15241 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15244 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15246 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15248 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15250 * config/arm/arm-builtins.c (v8hf_UP): New.
15251 (arm_init_simd_builtin_types): Initialise Float16x8_t.
15253 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15255 * config/arm/arm_neon.h (float16x8_t): New typedef.
15257 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15259 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15260 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15261 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15262 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15263 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15264 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15265 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15266 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15267 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15268 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15270 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
15272 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15273 non-alphanumeric characters in the symbol name.
15275 2015-09-07 Marek Polacek <polacek@redhat.com>
15277 PR inline-asm/67448
15278 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15281 2015-09-07 Marek Polacek <polacek@redhat.com>
15283 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15285 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
15287 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15290 2015-09-04 Jakub Jelinek <jakub@redhat.com>
15292 PR middle-end/67452
15293 * tree-ssa-live.c: Include cfgloop.h.
15294 (remove_unused_locals): Clear loop->simduid if simduid is about
15295 to be removed from cfun->local_decls.
15297 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15300 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15303 2015-09-04 Tom de Vries <tom@codesourcery.com>
15305 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15307 2015-09-04 Jeff Law <law@redhat.com>
15309 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15310 unnecessary constructor. It's now trivial and implemented inside...
15311 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15312 constructor. Add comments to various methods. Remove unused
15314 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15315 * tree-vrp.c (identify_jump_threads): Likewise.
15316 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15317 indentation issues.
15318 (thread_across_edge): Similarly.
15319 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15320 arguments in constructor call.
15322 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
15324 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15325 temp path contains a '-'.
15327 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15328 Petr Murzin <petr.murzin@intel.com>
15329 Kirill Yukhin <kirill.yukhin@intel.com>
15331 * config/i386/i386-builtin-types.def
15332 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15333 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15334 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15335 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15336 * config/i386/i386.c
15337 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15338 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15339 IX86_BUILTIN_SCATTERALTDIV16SI.
15340 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15341 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15342 __builtin_ia32_scatteraltdiv8si.
15343 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15344 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15345 IX86_BUILTIN_SCATTERALTDIV16SI.
15346 (ix86_vectorize_builtin_scatter): New.
15347 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15348 ix86_vectorize_builtin_scatter.
15350 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15351 Petr Murzin <petr.murzin@intel.com>
15352 Kirill Yukhin <kirill.yukhin@intel.com>
15354 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15355 * doc/tm.texi: Regenerate.
15356 * target.def: Add scatter builtin.
15357 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15358 for loads/stores in case of gather/scatter accordingly.
15359 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15360 STMT_VINFO_GATHER_P(S).
15361 (vect_check_gather): Rename to ...
15362 (vect_check_gather_scatter): this.
15363 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15364 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15365 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15366 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15367 variable and new checkings for it accordingly.
15368 * tree-vect-stmts.c
15369 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15370 STMT_VINFO_GATHER_P(S).
15371 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15372 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15374 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15376 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15378 (mulv16qi3): New define_expand.
15380 2015-09-03 Martin Sebor <msebor@redhat.com>
15383 * doc/extend.texi (Other Builtins): Document when the address
15384 of a built-in function can be taken.
15386 2015-09-03 Richard Biener <rguenther@suse.de>
15388 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15389 (dwarf2out_early_finish): ... here.
15390 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15391 flush_limbo_die_list. Assert we have no deferred asm names.
15393 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15395 * optabs.c (expand_binop): Don't create a broadcast vector with a
15396 source element wider than the inner mode.
15398 2015-09-03 Richard Biener <rguenther@suse.de>
15400 * varasm.c (output_constant): Use fold_convert instead of
15403 2015-09-03 Tom de Vries <tom@codesourcery.com>
15405 PR tree-optimization/65637
15406 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15407 fin_bb has 2 predecessors.
15409 2015-09-03 Tom de Vries <tom@codesourcery.com>
15411 PR tree-optimization/65637
15412 * omp-low.c (find_phi_with_arg_on_edge): New function.
15413 (expand_omp_for_static_chunk): Fix inner loop phi.
15415 2015-09-03 Tom de Vries <tom@codesourcery.com>
15417 PR tree-optimization/65637
15418 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15421 2015-09-03 Tom de Vries <tom@codesourcery.com>
15423 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15425 2015-09-03 Tom de Vries <tom@codesourcery.com>
15427 * doc/invoke.texi (parloops-chunk-size): Add item.
15428 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15429 * tree-parloops.c: Include params.h.
15430 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15431 param parloops-chunk-size is used.
15433 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15435 PR middle-end/67351
15436 * fold-const.c (fold_binary_loc) : Move
15437 Transform (x >> c) << c into x & (-1<<c) or
15438 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15439 types using simplify and match.
15440 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15441 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15443 2015-09-03 Richard Biener <rguenther@suse.de>
15446 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15447 (create_variable_info_for_1): Use ctor_for_analysis instead
15448 of get_constructor.
15449 (create_variable_info_for): Likewise.
15451 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15454 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15455 in new callgraph edge.
15457 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15462 * config/aarch64/aarch64-simd.md
15463 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15464 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15465 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15466 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15468 2015-09-02 Alan Modra <amodra@gmail.com>
15470 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15471 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15472 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15474 2015-09-02 Alan Modra <amodra@gmail.com>
15477 * config/rs6000/predicates.md (current_file_function_operand): Don't
15478 return true for weak symbols.
15479 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15481 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15482 Andrew Bennett <andrew.bennett@imgtec.com>
15484 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15485 * config/mips/mips-protos.h: Add definitions for
15486 mips_output_jump and mips_output_equal_conditional_branch
15487 * config/mips/mips.c (MIPS_JR): Change to support the
15489 (mips_emit_compare): Add support for the MIPS R6 conditional
15491 (mips_process_sync_loop): Likewise.
15492 (mips_output_order_conditional_branch): Likewise.
15493 (mips16_build_call_stub): Change MIPS_CALL to
15495 (mips_print_operand_punctuation): Update 's' case to only
15496 apply to micromips r2.
15497 (mips_adjust_insn_length): Add support for forbidden slot
15499 (mips_avoid_hazard): Likewise.
15500 (mips_reorg_process_insns): Likewise.
15501 (mips_output_jump): New function.
15502 (mips_output_equal_conditional_branch): Likewise.
15503 (mips_output_conditional_branch): Use jrc/bc if compact
15504 branch support is enabled. Ensure the forbidden slots
15505 between the two branch instructions is filled with a nop.
15506 (mips_option_override): Add support to process the compact
15507 branch option and set the correct defaults. Prevent
15508 non-explict relocs being using for MIPS R6.
15509 (mips_trampoline_init): Add compact branch support.
15510 (mips_mult_zero_zero_cost): Allow zero initialisation of
15511 accumulators with TARGET_DSP.
15512 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15513 (TARGET_CB_MAYBE): New define.
15514 (TARGET_CB_ALWAYS): New define.
15515 (ISA_HAS_DELAY_SLOTS): New define.
15516 (ISA_HAS_COMPACT_BRANCHES): New define.
15517 (ISA_HAS_JRC): New define.
15518 (MIPS_BRANCH_C): New define.
15519 (MIPS_CALL): Removed.
15520 (MICROMIPS_J): Removed.
15521 * config/mips/mips.md (compact_form): New attr.
15522 (hazard): Add support for forbidden slots.
15523 (define_delay): Add support for compact branches.
15524 (*branch_order<mode>): Likewise.
15525 (*branch_order<mode>_inverted): Likewise.
15526 (*branch_equality<mode>): Likewise.
15527 (*branch_equality<mode>_inverted): Likewise.
15528 (*jump_absolute): Likewise.
15529 (*jump_pic): Likewise.
15530 (indirect_jump): Use mips_output_jump to produce assembly output.
15531 (tablejump_<mode>"): Likewise.
15532 (*<optab>"): Likewise.
15533 (<optab>_internal): Likewise.
15534 (sibcall_internal): Likewise.
15535 (sibcall_value_internal): Likewise.
15536 (sibcall_value_multiple_internal): Likewise.
15537 (call_internal): Likewise.
15538 (call_split): Likewise.
15539 (call_internal_direct): Likewise.
15540 (call_direct_split): Likewise.
15541 (call_value_internal): Likewise.
15542 (call_value_split): Likewise.
15543 (call_value_internal_direct): Likewise.
15544 (call_value_direct_split): Likewise.
15545 (call_value_multiple_internal): Likewise.
15546 (call_value_multiple_split): Likewise.
15547 (mips_get_fcsr_mips16_<mode>): Likewise.
15548 (mips_set_fcsr_mips16_<mode>): Likewise.
15549 (tls_get_tp_mips16_<mode>): Likewise.
15550 * config/mips/mips.opt: Add -mcompact-branches option.
15551 * config/mips/predicates.md (order_operator): Ensure the
15552 conditional compact branches are only used if the ISA them.
15553 * doc/invoke.texi: Document -mcompact-branches option.
15555 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15558 * lra-lives.c (process_bb_lives): Process move pseudos with the
15559 same value for copies and preferences
15560 * lra-constraints.c (match_reload): Create match reload pseudo
15561 with the same value from single dying input pseudo.
15563 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15566 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15568 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15570 * trans-mem.c: Add contributed-by.
15571 * trans-mem.h: Same.
15573 2015-09-01 Richard Biener <rguenther@suse.de>
15575 * expr.c (expand_expr_real_1): For expanding TERed defs
15576 set the current location to that of the def if not UNKNOWN.
15578 2015-09-01 David Sherwood <david.sherwood@arm.com>
15580 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15582 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15584 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15585 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15586 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15587 Include rtl-iter.h.
15588 (noce_simple_bbs): New function.
15589 (noce_try_move): Bail if basic blocks are not simple.
15590 (noce_try_store_flag): Likewise.
15591 (noce_try_store_flag_constants): Likewise.
15592 (noce_try_addcc): Likewise.
15593 (noce_try_store_flag_mask): Likewise.
15594 (noce_try_cmove): Likewise.
15595 (noce_try_minmax): Likewise.
15596 (noce_try_abs): Likewise.
15597 (noce_try_sign_mask): Likewise.
15598 (noce_try_bitop): Likewise.
15599 (bbs_ok_for_cmove_arith): New function.
15600 (noce_emit_all_but_last): Likewise.
15601 (noce_emit_insn): Likewise.
15602 (noce_emit_bb): Likewise.
15603 (noce_try_cmove_arith): Handle non-simple basic blocks.
15604 (insn_valid_noce_process_p): New function.
15605 (contains_mem_rtx_p): Likewise.
15606 (bb_valid_for_noce_process_p): Likewise.
15607 (noce_process_if_block): Allow non-simple basic blocks
15610 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15612 * tree-ssa-dom.c (record_equivalences_from_phis,
15613 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15614 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15616 2015-09-01 Nick Clifton <nickc@redhat.com>
15618 * config/msp430/msp430.opt (mcpu): Fix typo.
15620 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15622 * config/aarch64/aarch64.c (aarch64_set_current_function):
15623 Re-layout any vector parameters have non-simd layout.
15624 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15626 (aarch64_simd_expand_args): Delete call to the above.
15628 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15630 * doc/invoke.texi (asan-stack): Add space before option.
15632 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15634 * tree.h (zerop): New function.
15635 * tree.c (zerop): Likewise.
15636 (element_precision): Handle expressions.
15637 * match.pd (define_predicates): Add zerop.
15638 (x <= +Inf): Fix comment.
15639 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15640 * fold-const.c (fold_binary_loc): ... here. Remove.
15642 2015-08-31 Richard Biener <rguenther@suse.de>
15644 PR middle-end/67381
15645 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15647 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15649 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15650 (CEXPI): New operator list.
15651 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15652 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15654 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15656 2015-08-31 Tom de Vries <tom@codesourcery.com>
15658 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15659 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15661 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15662 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15663 (rewrite_into_loop_closed_ssa): ... here.
15664 (replace_uses_in_dominated_bbs): Remove function.
15665 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15666 rewrite_into_loop_closed_ssa_1.
15668 2015-08-31 Michael Matz <matz@suse.de>
15670 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15671 enter entry and exit blocks for reverse post order.
15673 2015-08-31 Richard Biener <rguenther@suse.de>
15675 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15676 (lto_location_cache::current_sysp): Likewise.
15677 (output_block::current_sysp): Likewise.
15678 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15679 (lto_location_cache::apply_location_cache): Properly record
15680 system header locations.
15681 (lto_location_cache::input_location): Input whether a file
15682 is a system header.
15683 * lto-streamer-out.c (lto_output_location): Stream whether a file
15684 is a system header.
15686 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15689 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15691 2015-08-31 Tom de Vries <tom@codesourcery.com>
15693 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15694 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15695 Improve function header comments.
15697 2015-08-30 Michael Collison <michael.collison@linaro.org>
15700 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15703 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15705 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15706 special_handling bitfield.
15707 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15708 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15709 that represents a general xxpermdi.
15710 (insn_is_swappable_p): Add handling for vec_concat of two
15711 doublewords, which maps to a specific xxpermdi.
15712 (adjust_xxpermdi): New function.
15713 (adjust_concat): Likewise.
15714 (handle_special_swappables): Call adjust_xxpermdi and
15716 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15718 2015-08-30 Rich Felker <dalias@libc.org>
15720 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15721 case instead of sh[123456ble]-*-*.
15723 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15725 * ira.c (print_unform_and_important_classes,
15726 print_translated_classes): Remove reg_class_names static array.
15727 (print_unform_and_important_classes): Rename to ...
15728 (print_uniform_and_important_classes): ... this.
15729 (ira_debug_allocno_classes): Update accordingly.
15731 2015-08-29 Tom de Vries <tom@codesourcery.com>
15733 PR tree-optimization/46193
15734 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15737 2015-08-28 Jeff Law <law@redhat.com>
15740 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15741 unable to find X NE 0 in the tables, return X as the simplified
15743 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15744 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15746 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15747 after removing the control flow statement and unnecessary edges.
15749 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15752 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15754 PR tree-optimization/67283
15755 * tree-sra.c (type_consists_of_records_p): Rename to...
15756 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15758 (completely_scalarize_record): Rename to...
15759 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15761 (scalarize_elem): New.
15763 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15765 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15766 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15767 (aarch64_symbol_type): Likewise.
15768 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15770 (aarch64_expand_mov_immediate): Likewise.
15771 (aarch64_print_operand): Likewise.
15772 (aarch64_classify_tls_symbol): Likewise.
15774 2015-08-28 Richard Biener <rguenther@suse.de>
15776 * cgraphunit.c (symbol_table::compile): Move early debug generation
15778 (symbol_table::finalize_compilation_unit): ... back here and
15779 add a !seen_error () guard.
15781 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15783 * toplev.c (process_options): Do not use flag_loop_block,
15784 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15785 flag_loop_optimize_isl.
15787 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15789 * Makefile.in (OBJS): Remove graphite-blocking.o and
15790 graphite-interchange.o.
15791 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15792 Alias of floop-nest-optimize.
15793 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15794 Document as alias of -floop-nest-optimize.
15795 * graphite-blocking.c: Remove.
15796 * graphite-interchange.c: Remove.
15797 * graphite-optimize-isl.c: Include dumpfile.h.
15798 (getScheduleForBand): Add dump for tiled loops. Use
15799 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15800 * graphite-poly.c (scop_max_loop_depth): Remove.
15801 (print_scattering_function_1): Remove.
15802 (print_scattering_function): Remove.
15803 (print_scattering_functions): Remove.
15804 (debug_scattering_function): Remove.
15805 (debug_scattering_functions): Remove.
15806 (apply_poly_transforms): Remove use of flag_loop_block,
15807 flag_loop_strip_mine, and flag_loop_interchange.
15808 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15810 (print_pdr_access_layout): Remove.
15811 (print_pdr): Print ISL representation.
15812 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15813 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15815 (openscop_print_pbb_domain): Remove.
15816 (print_pbb): Remove call to print_scattering_function.
15817 (openscop_print_scop_context): Remove.
15818 (print_scop_context): Do not print matrices anymore.
15819 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15820 SCOP_TRANSFORMED_SCHEDULE.
15821 (print_isl_set): Add printing of a new line.
15822 (print_isl_map): Same.
15823 (print_isl_aff): Same.
15824 (print_isl_constraint): Same.
15825 (loop_to_lst): Remove.
15826 (scop_to_lst): Remove.
15827 (lst_indent_to): Remove.
15828 (print_lst): Remove.
15829 (debug_lst): Remove.
15830 (dot_lst_1): Remove.
15832 (reverse_loop_at_level): Remove.
15833 (reverse_loop_for_pbbs): Remove.
15834 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15835 (pdr_nb_params): Remove.
15836 (pdr_alias_set_dim): Remove.
15837 (pdr_subscript_dim): Remove.
15838 (pdr_iterator_dim): Remove.
15839 (pdr_parameter_dim): Remove.
15840 (same_pdr_p): Remove.
15841 (struct poly_scattering): Remove.
15842 (struct poly_bb): Remove _original, _transformed, _saved.
15843 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15844 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15845 (PBB_NB_LOCAL_VARIABLES): Remove.
15846 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15847 (schedule_to_scattering): Remove.
15848 (number_of_write_pdrs): Remove.
15849 (pbb_dim_iter_domain): Remove.
15850 (pbb_nb_params): Remove.
15851 (pbb_nb_scattering_orig): Remove.
15852 (pbb_nb_scattering_transform): Remove.
15853 (pbb_nb_dynamic_scattering_transform): Remove.
15854 (pbb_nb_local_vars): Remove.
15855 (pbb_iterator_dim): Remove.
15856 (pbb_parameter_dim): Remove.
15857 (psco_scattering_dim): Remove.
15858 (psct_scattering_dim): Remove.
15859 (psct_local_var_dim): Remove.
15860 (psco_iterator_dim): Remove.
15861 (psct_iterator_dim): Remove.
15862 (psco_parameter_dim): Remove.
15863 (psct_parameter_dim): Remove.
15864 (psct_dynamic_dim): Remove.
15865 (psct_static_dim): Remove.
15866 (psct_add_local_variable): Remove.
15867 (new_lst_loop): Remove.
15868 (new_lst_stmt): Remove.
15869 (free_lst): Remove.
15870 (copy_lst): Remove.
15871 (lst_add_loop_under_loop): Remove.
15872 (lst_depth): Remove.
15873 (lst_dewey_number): Remove.
15874 (lst_dewey_number_at_depth): Remove.
15875 (lst_pred): Remove.
15876 (lst_succ): Remove.
15877 (lst_find_pbb): Remove.
15878 (find_lst_loop): Remove.
15879 (lst_find_first_pbb): Remove.
15880 (lst_empty_p): Remove.
15881 (lst_find_last_pbb): Remove.
15882 (lst_contains_p): Remove.
15883 (lst_contains_pbb): Remove.
15884 (lst_create_nest): Remove.
15885 (lst_remove_from_sequence): Remove.
15886 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15887 (lst_niter_for_loop): Remove.
15888 (pbb_update_scattering): Remove.
15889 (lst_update_scattering_under): Remove.
15890 (lst_update_scattering): Remove.
15891 (lst_insert_in_sequence): Remove.
15892 (lst_replace): Remove.
15893 (lst_substitute_3): Remove.
15894 (lst_distribute_lst): Remove.
15895 (lst_remove_all_before_including_pbb): Remove.
15896 (lst_remove_all_before_excluding_pbb): Remove.
15897 (struct scop): Remove original_schedule, transformed_schedule, and
15899 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15900 (SCOP_SAVED_SCHEDULE): Remove.
15901 (poly_scattering_new): Remove.
15902 (poly_scattering_free): Remove.
15903 (poly_scattering_copy): Remove.
15904 (store_scattering_pbb): Remove.
15905 (store_lst_schedule): Remove.
15906 (restore_lst_schedule): Remove.
15907 (store_scattering): Remove.
15908 (restore_scattering_pbb): Remove.
15909 (restore_scattering): Remove.
15910 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15911 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
15912 compute the scattering polyhedron dimension from the dimension of
15914 (build_scop_scattering): Update call to
15915 build_pbb_scattering_polyhedrons.
15916 (build_poly_scop): Remove call to scop_to_lst.
15917 * graphite.c (graphite_transform_loops): Add call to print_scop.
15918 (gate_graphite_transforms): Remove use of flag_loop_block,
15919 flag_loop_interchange, and flag_loop_strip_mine.
15921 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15923 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15924 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15925 -floop-nest-optimize.
15926 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15927 (generate_luj_sepclass): Remove.
15928 (generate_luj_options): Remove.
15929 (set_options): Remove opt_luj.
15930 (scop_to_isl_ast): Remove opt_luj.
15931 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15932 flag_loop_unroll_jam.
15933 (getPrevectorMap_full): Remove.
15934 (getScheduleForBandList): Remove map_sepcl.
15935 (getScheduleMap): Same.
15936 (apply_schedule_map_to_scop): Remove sepcl.
15937 (optimize_isl): Same.
15938 * graphite-poly.c (apply_poly_transforms): Remove check for
15939 flag_loop_unroll_jam.
15940 (new_poly_bb): Remove map_sepclass.
15941 * graphite-poly.h (struct poly_bb): Same.
15942 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15943 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15944 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15945 * toplev.c (process_options): Remove flag_loop_unroll_jam.
15947 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
15950 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15951 (addqi3_cc): Ditto.
15952 (UNSPEC_ADD_CARRY): Remove.
15953 (addqi3_cconly_overflow): New expander.
15954 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15955 Adjust for changed add<mode>3_carry.
15956 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15957 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15958 (<plusminus_insn><mode>3_carry): Remove expander.
15959 (*<plusminus_insn><mode>3_carry): Split insn pattern to
15960 add<mode>3_carry and sub<mode>3_carry.
15961 (plusminus_carry_mnemonic): Remove code attribute.
15962 (add<mode>3_carry): Canonicalize insn pattern.
15963 (*addsi3_carry_zext): Ditto.
15964 (sub<mode>3_carry): Ditto.
15965 (*subsi3_carry_zext): Ditto.
15966 (adcx<mode>3): Remove insn pattern.
15967 (addcarry<mode>): New insn pattern.
15968 (subborrow<mode>): Ditto.
15969 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15970 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15971 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15972 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15973 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15974 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15975 Rewrite expander to not clobber carry flag chains.
15977 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
15979 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15980 instead of a rotate.
15982 2015-08-27 Marek Polacek <polacek@redhat.com>
15984 PR middle-end/67005
15985 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15986 an entry into an irreducible region.
15988 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15990 * configure: Regenerate.
15992 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15994 PR tree-optimization/67283
15995 * tree-sra.c (type_consists_of_records_p): Rename to...
15996 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15998 (completely_scalarize_record): Rename to...
15999 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16000 (scalarize_elem): New.
16002 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16004 * tree-sra.c (completely_scalarize_var): Rename to...
16005 (create_total_scalarization_access): ... Here. Drop call to
16006 completely_scalarize_record.
16008 (analyze_all_variable_accesses): Replace completely_scalarize_var
16009 with create_total_scalarization_access and completely_scalarize_record.
16011 2015-08-27 Alan Modra <amodra@gmail.com>
16014 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16017 2015-08-27 Richard Biener <rguenther@suse.de>
16019 * passes.c (rest_of_decl_compilation): Guard early_global_decl
16020 call with !seen_error ().
16021 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16022 early debug generation and finish...
16023 (symbol_table::compile): ... here to put it after a !seen_error ()
16026 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16028 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16031 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16032 Andre Vieira <andre.simoesdiasvieira@arm.com>
16034 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16035 (*cb<optab><mode>1): Likewise.
16036 (*tb<optab><mode>1): Likewise.
16037 (*cb<optab><mode>1): Likewise.
16038 * config/aarch64/iterators.md (inv_cb): New code attribute.
16039 (inv_tb): Likewise.
16040 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16041 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16043 2015-08-27 Richard Biener <rguenther@suse.de>
16045 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16047 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16049 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16052 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16054 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16057 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16059 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16060 floating point in VSX registers.
16061 (rs6000_output_move_128bit): Always print out the set insn if we
16062 can't generate an appropriate 128-bit move.
16063 (rs6000_generate_compare): Add support for IEEE 128-bit floating
16064 point in VSX registers comparisons.
16065 (rs6000_expand_float128_convert): Likewise.
16067 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16068 predicate for only GPR hard registers.
16070 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16071 modes to iterators. Add new iterators for moving 128-bit values in
16072 scalar FPR registers and VSX registers.
16073 (FMOVE128): Likewise.
16074 (FMOVE128_FPR): Likewise.
16075 (FMOVE128_GPR): Likewise.
16076 (FMOVE128_VSX): Likewise.
16077 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16080 (IBM128): Likewise.
16081 (TFIFKF): Likewise.
16082 (RELOAD): Add IEEE 128-bit floating point modes.
16083 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16084 floating point in VSX registers modes.
16085 (signbit<mode>2, IBM128 iterator): Likewise.
16086 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16087 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16088 (negtf2): Likewise.
16089 (neg<mode>2, TFIFKF iterator): Likewise.
16090 (negtf2_internal): Likewise.
16091 (abstf2): Likewise.
16092 (abs<mode>2, TFIFKF iterator): Likewise.
16093 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16094 VSX insn support for negate, absolute value, and negative absolute
16096 (ieee_128bit_vsx_neg<mode>2): Likewise.
16097 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16098 (ieee_128bit_vsx_abs<mode>2): Likewise.
16099 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16100 (ieee_128bit_vsx_nabs<mode>2): Likewise.
16101 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16102 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16103 floating point in VSX registers.
16104 (unpack<mode>_dm): Likewise.
16105 (unpack<mode>_nodm): Likewise.
16106 (pack<mode>): Likewise.
16107 (unpackv1ti): Likewise.
16108 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16109 (packv1ti): Likewise.
16110 (pack<mode>, FMOVE128_VSX iterator): Likewise.
16111 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16113 (extenddftf2_internal): Likewise.
16114 (trunctfdf2): Likewise.
16115 (trunctfdf2_internal2): Likewise.
16116 (fix_trunc_helper): Likewise.
16117 (fix_trunctfdi2"): Likewise.
16118 (floatditf2): Likewise.
16119 (floatuns<mode>tf2): Likewise.
16120 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16121 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16122 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16123 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16124 (float<SDI:mode><IFKF:mode>2): Likewise.
16125 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16127 2015-08-26 Renlin Li <renlin.li@arm.com>
16129 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16131 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16132 Jiong Wang <jiong.wang@arm.com>
16134 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16135 (tlsie_tiny_<mode>): New define_insn.
16136 (tlsie_tiny_sidi): Likewise.
16137 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16139 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16140 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16142 (aarch64_expand_mov_immediate): Likewise.
16143 (aarch64_print_operand): Likewise.
16144 (arch64_classify_tls_symbol): Likewise.
16146 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16148 * config/arm/arm-arches.def: Replace single value flags with
16149 an initializer built from ARM_FSET_MAKE_CPU1.
16150 * config/arm/arm-cores.def: Likewise.
16151 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16152 derivation from the ARM_CORE macro definition, use the given value
16154 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16155 ARM_ARCH macro definition, use the given value instead.
16157 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16159 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16161 (struct builtin_description): Replace field mask with field
16163 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16164 (IWMMXT2_BUILTIN): Likewise.
16165 (IWMMXT2_BUILTIN2): Likewise.
16166 (FP_BUILTIN): Likewise.
16167 (CRC32_BUILTIN): Likewise.
16168 (CRYPTO_BUILTIN): Likewise.
16169 (iwmmx_mbuiltin): Likewise.
16170 (iwmmx2_mbuiltin): Likewise.
16171 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16172 struct builtin_description.
16174 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16176 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16177 (struct builtin_description): Change type of mask to unsigned
16179 * config/arm/arm-protos.h (insn_flags): Declare as type
16181 (tune_flags): Likewise.
16182 * config/arm/arm.c (feature_count): New.
16183 (insn_flags): Define as type arm_feature_set.
16184 (tune_flags): Likewise.
16185 (struct processors): Define field flags as type arm_feature_set.
16186 (all_cores): Update for change to struct processors.
16187 (all_architectures): Likewise.
16188 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16190 (arm_option_override_internal): Likewise.
16191 (arm_option_override): Likewise.
16193 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16194 Jiong Wang <jiong.wang@arm.com>
16196 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16197 tls size for tiny, small, large memory model.
16198 (aarch64_load_symref_appropriately): Support new symbol types.
16199 (aarch64_expand_mov_immediate): Likewise.
16200 (aarch64_print_operand): Likewise.
16201 (aarch64_classify_tls_symbol): Likewise.
16202 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16203 (aarch64_symbol_type): Likewise.
16204 * config/aarch64/aarch64.md (tlsle): Deleted.
16205 (tlsle12_<mode>): New define_insn.
16206 (tlsle24_<mode>): Likewise.
16207 (tlsle32_<mode>): Likewise.
16208 (tlsle48_<mode>): Likewise.
16209 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16212 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16214 * config/arm/arm-protos.h (FL_NONE): New.
16216 (arm_feature_set): New.
16217 (ARM_FSET_MAKE): New.
16218 (ARM_FSET_MAKE_CPU1): New.
16219 (ARM_FSET_MAKE_CPU2): New.
16220 (ARM_FSET_CPU1): New.
16221 (ARM_FSET_CPU2): New.
16222 (ARM_FSET_EMPTY): New.
16223 (ARM_FSET_ANY): New.
16224 (ARM_FSET_HAS_CPU1): New.
16225 (ARM_FSET_HAS_CPU2): New.
16226 (ARM_FSET_HAS_CPU): New.
16227 (ARM_FSET_ADD_CPU1): New.
16228 (ARM_FSET_ADD_CPU2): New.
16229 (ARM_FSET_DEL_CPU1): New.
16230 (ARM_FSET_DEL_CPU2): New.
16231 (ARM_FSET_UNION): New.
16232 (ARM_FSET_INTER): New.
16233 (ARM_FSET_XOR): New.
16234 (ARM_FSET_EXCLUDE): New.
16235 (AFM_FSET_IS_EMPTY): New.
16236 (ARM_FSET_CPU_SUBSET): New.
16238 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16240 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16241 SYMBOL_TLSLE to SYMBOL_TLSLE24.
16242 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16244 (aarch64_expand_mov_immediate): Likewise.
16245 (aarch64_print_operand): Likewise.
16246 (aarch64_classify_symbol): Likewise.
16248 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16250 * config/aarch64/aarch64.opt (mtls-size): New entry.
16251 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16252 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16253 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16255 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16257 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16258 ARM_CORE entry. Fix some white-space.
16259 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16260 ARM_CORE definition.
16262 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16264 * fold-const.c (fold_binary_loc) : Move Optimize
16265 root(x)*root(y) as root(x*y) to match.pd.
16266 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16267 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16268 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16269 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16270 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16271 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16272 (mult (exps:s @0) (exps:s @1)) : New simplifier.
16273 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16274 (rdiv @0 (exps:s @1)) : New simplifier.
16276 2015-08-25 Joseph Myers <joseph@codesourcery.com>
16278 * gcc.c (driver::finalize): Only assign to extra_specs if
16281 2015-08-25 Marek Polacek <polacek@redhat.com>
16283 PR middle-end/67330
16284 * varasm.c (declare_weak): Return after giving an error.
16286 2015-08-25 David Malcolm <dmalcolm@redhat.com>
16288 * gcc-main.c (main): Add params to driver ctor.
16289 * gcc.c (class env_manager): New.
16291 (env_manager::init): New.
16292 (env_manager::get): New.
16293 (env_manager::xput): New.
16294 (env_manager::restore): New.
16295 Poison getenv and putenv.
16296 (DEFAULT_TARGET_SYSTEM_ROOT): New.
16297 (target_system_root): Update initialization to use
16298 DEFAULT_TARGET_SYSTEM_ROOT.
16299 (struct spec_list): Add field "default_ptr".
16300 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16301 (init_spec): Likewise.
16302 (set_spec): Clear field "default_ptr".
16303 (read_specs): Free "spec" and "buffer".
16304 (xputenv): Reimplement in terms of env_manager.
16305 (process_command): Replace ::getenv calls with calls to the
16306 env_manager singleton.
16307 (process_brace_body): Free string in three places.
16308 (driver::driver): New.
16309 (driver::~driver): New.
16310 (used_arg): Convert from a function to...
16311 (class used_arg_t): ...this class, and...
16312 (used_arg): ...this new global instance.
16313 (used_arg_t::finalize): New function.
16314 (getenv_spec_function): Add "const" to local "value". Replace
16315 ::getenv call with call to the env_manager singleton.
16316 (path_prefix_reset): New function.
16317 (driver::finalize): New function.
16318 * gcc.h (driver::driver): New.
16319 (driver::~driver): New.
16320 (driver::finalize): New.
16322 2015-08-25 Nathan Sidwell <nathan@acm.org>
16324 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16325 target doesn't have one.
16327 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16330 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16332 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16335 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16336 a define_insn, remove second alternative.
16338 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
16339 Joseph Myers <joseph@codesourcery.com>
16341 * gcc.c (struct switchstr): Expand comment.
16343 2015-08-25 Nathan Sidwell <nathan@acm.org>
16345 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16346 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16348 2015-08-25 Richard Biener <rguenther@suse.de>
16350 PR middle-end/67306
16351 * genmatch.c (expr::gen_transform): Verify the result of
16352 builtin_decl_implicit.
16353 (dt_simplify::gen_1): Likewise.
16355 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16357 * config/arm/constraints.md: Also list Cs and US ARM-specific
16358 constraints as used.
16360 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16363 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16365 (nonpic_symbol_mentioned_p): Likewise.
16366 (sh_delegitimize_address): Likewise.
16367 (sh_function_ok_for_sibcall): Take into account weak symbols.
16368 (sh_expand_sym_label2reg): New.
16369 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16370 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16371 (call_pcrel): Use sh_expand_sym_label2reg.
16372 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16373 (symPCREL_label2reg) New expand.
16375 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16377 * graphite-poly.c: Change type of region from void* to sese.
16378 * graphite-poly.h (struct scop): Changing the type of scop::region
16379 from void* to sese. Change accessor macro accordingly.
16380 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16382 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16384 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16385 Constrain only on INTEGER_TYPE.
16387 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16390 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16391 -mefficient-unaligned-vsx on ISA 2.7.
16393 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16394 option to a masked option.
16396 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16397 logic for -mefficient-unaligned-vsx so that it is set via an arch
16398 ISA option, instead of being set if -mtune=power8 is set. Move
16399 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16400 near other default option handling.
16402 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16404 * genflags.c (gen_macro): Delete.
16405 (gen_proto): Don't create GEN.*CALL.* macros.
16406 * gensupport.h (get_file_location): Declare.
16407 * gensupport.c (rtx_locs): New variable.
16408 (read_md_rtx): Record rtx locations.
16409 (get_file_location): New function.
16410 * target-insns.def (call, call_pop, call_value, call_value_pop)
16411 (sibcall, sibcall_value): New patterns.
16412 * gentarget-def.c (parse_argument): New function.
16413 (def_target_insn): Use it. Handle optional operands. Raise an
16414 error if an .md pattern has the wrong number of operands for the
16415 pattern name. Remove the names of unused operands from the prototype.
16416 * builtins.c (expand_builtin_apply): Use targetm functions
16417 instead of HAVE_call_value and GEN_CALL_VALUE.
16418 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16419 and sibcall_value_pop.
16420 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16422 * config/alpha/alpha.md (untyped_call): Likewise.
16423 * config/iq2000/iq2000.md (untyped_call): Likewise.
16424 * config/m68k/m68k.md (untyped_call): Likewise.
16425 * config/mips/mips.md (untyped_call): Likewise.
16426 * config/pa/pa.md (untyped_call): Likewise.
16427 * config/rs6000/rs6000.md (untyped_call): Likewise.
16428 * config/sparc/sparc.md (untyped_call): Likewise.
16429 * config/tilegx/tilegx.md (untyped_call): Likewise.
16430 * config/tilepro/tilepro.md (untyped_call): Likewise.
16431 * config/visium/visium.md (untyped_call): Likewise.
16432 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16433 gen_call_value instead of GEN_CALL_VALUE.
16434 * config/arm/arm.md (untyped_call): Likewise.
16435 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16438 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16440 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16441 (have_cbranchcc4): New variable.
16442 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16443 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16444 (if_convert): Initialize have_cbranchcc4.
16446 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16448 * builtins.c (expand_cmpstrn): Rename to...
16449 (expand_cmpstrn_or_cmpmem): ...this.
16450 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16451 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16452 Remove mode argument.
16453 (expand_builtin): Update accordingly.
16455 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16457 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16458 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16459 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16460 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16461 Add predicates for operands 0 and 3.
16462 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16464 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16465 immediate_operand to nonmemory_operand.
16467 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16469 * df-scan.c (df_insn_info_init_fields): New function, split out
16471 (df_insn_create_insn_record): ...here.
16472 (df_insn_info_free_fields): New function, split out from...
16473 (df_insn_info_delete): ...here.
16474 (df_insn_rescan): Use the new functions instead of freeing and
16475 reallocating the df_insn_info.
16477 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16479 * doc/install.texi (Binaries): Remove links no longer valid.
16481 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16483 * config/nvptx/mkoffload.c (process): Replace
16484 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16486 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16489 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16491 2015-08-24 Renlin Li <renlin.li@arm.com>
16493 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16494 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16495 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16496 * config/arm/constraints.md ("j"): Add check for high code.
16498 2015-08-24 Tom de Vries <tom@codesourcery.com>
16500 PR tree-optimization/65468
16501 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16504 2015-08-24 Nathan Sidwell <nathan@acm.org>
16506 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16507 change to nvptx_type_from_mode call. Use arg_promotion for both
16508 split and non-split args.
16510 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16512 * target-insns.def (movstr): New pattern.
16513 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16514 (expand_movstr): Use targetm rather than HAVE_movstr/
16517 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16519 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16522 2015-08-24 Andrew Pinski <apinski@cavium.com>
16524 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16525 AARCH64_EXTRA_TUNING_OPTION.
16526 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16528 (aarch64_extra_tuning_flags): Base the shifted value on the index
16529 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16530 * config/aarch64/aarch64.c: Remove the last argument to
16531 AARCH64_EXTRA_TUNING_OPTION.
16533 2015-08-23 Nathan Sidwell <nathan@acm.org>
16535 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16537 (nvptx_declare_function_name): Insert formatting tabs for
16540 2015-08-23 Tom de Vries <tom@codesourcery.com>
16542 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16543 parm_decl, rather than generating a dummy default def in cfun.
16544 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16545 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16546 (move_stmt_op): Handle PARM_DECl.
16547 (gather_ssa_name_hash_map_from): New function.
16548 (move_sese_region_to_fn): Add default defs for function params, and add
16549 them to vars_map. Release copied ssa names.
16550 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16552 2015-08-23 Tom de Vries <tom@codesourcery.com>
16554 * doc/sourcebuild.texi: Rename vect_no_int_max with
16555 vect_no_int_min_max. Update description.
16557 2015-08-22 Andrew Pinski <apinski@cavium.com>
16559 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16560 * config/aarch64/aarch64-protos.h
16561 (aarch64_fusion_pairs_index): New enum.
16562 (aarch64_fusion_pairs): Base the shifted value on the index instead
16563 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16564 of the argument to AARCH64_FUSION_PAIR.
16565 * config/aarch64/aarch64.c: Remove the last argument to
16566 AARCH64_FUSION_PAIR.
16568 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16570 * dominance.c (new_zero_array): Define.
16571 (dom_info): Redefine as class with proper encapsulation.
16572 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16574 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16575 allocations/deallocations. Pass function as parameter (instead of
16577 (dom_info::get_idom): Define accessor method.
16578 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16579 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16580 (calculate_dominance_info): Adjust to use dom_info class.
16581 (verify_dominators): Likewise.
16583 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16585 * print-rtl.c (print_rtx): Check the correct range for
16586 flag_dump_unnumbered_links to behave as documented.
16588 PR rtl-optimization/67227
16589 PR rtl-optimization/64164
16590 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16591 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16592 identical gimple_reg exprs.
16594 2015-08-21 Nathan Sidwell <nathan@acm.org>
16596 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16598 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16599 crtl->stack_alignment_needed to determine alignment.
16600 (nvptx_get_drap_rtx): New.
16601 (TARGET_GET_DRAP_RTX): Override.
16602 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16604 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16606 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16608 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16610 * configure.ac: Remove uwin* cases.
16611 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16612 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16613 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16614 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16615 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16616 i[34567]86-*-uwin*, powerpc-*-beos*.
16618 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16620 * gencodes.c (gencodes): Print the comma for the preceding
16621 enum value rather than the current one. Use aliased enum values
16622 rather than #defines for compiled-out patterns.
16623 (main): Update accordingly. Replace LAST_INSN_CODE with
16625 * lra.c (insn_code_data): Update accordingly.
16626 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16627 * recog.h (target_recog): Likewise.
16628 (preprocess_insn_constraints): Change parameter to unsigned int.
16629 * recog.c (preprocess_insn_constraints): Likewise.
16630 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16631 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16633 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16635 PR rtl-optimization/61657
16636 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16637 unsigned. Remove superflous uint64_t cast.
16639 2014-08-21 Felix Yang <felix.yang@huawei.com>
16640 Jiji Jiang <jiangjiji@huawei.com>
16642 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16643 argument and get builtin function code directly from CALL.
16644 (gimple_stringop_fixed_value): Modified accordingly.
16645 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16646 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16648 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16650 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16652 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16654 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16656 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16657 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16658 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16659 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16660 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16661 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16662 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16663 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16664 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16665 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16667 * match.pd (SIN ) : New Operator.
16668 (TAN) : New Operator.
16669 (mult (SQRT@1 @0) @1) : New simplifier.
16670 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16671 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16672 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16673 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16674 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16675 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16676 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16677 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16678 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16679 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16681 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16683 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16684 loop if EXPR is simplified to const value.
16686 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16688 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16689 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16691 2015-08-21 Richard Biener <rguenther@suse.de>
16693 PR middle-end/67285
16694 * gimple-fold.c (replace_stmt_with_simplification): Assert
16695 seq is empty when replacing a call with itself but different
16697 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16698 a call require that it is const.
16700 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16702 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16703 * builtins.c (get_object_alignment_2): Adjust.
16704 * varasm.c (align_variable): Likewise.
16705 (get_variable_align): Likewise.
16706 (build_constant_desc): Likewise.
16707 (force_const_mem): Likewise.
16708 * doc/tm.texi.in: Likewise.
16709 * doc/tm.texi: Regenerate.
16711 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16713 * genconfig.c (main): Always define HAVE_cc0.
16714 * recog.c (rest_of_handle_peephole2): Adjust.
16716 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16718 * reorg.c (relax_delay_slots): Don't use #if to check value of
16721 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16723 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16724 * targhooks.c (default_have_conditional_execution): Adjust.
16726 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16728 * rtl.h (rtvec_all_equal_p): Declare.
16729 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16730 * rtl.c (rtvec_all_equal_p): New function.
16731 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16732 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16733 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16734 * config/arm/arm.c (neon_vdup_constant): Likewise.
16735 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16736 * config/tilegx/constraints.md (W, Y): Likewise.
16737 * config/tilepro/constraints.md (W, Y): Likewise.
16738 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16739 (classify_immediate): Use unwrap_const_vec_duplicate.
16740 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16741 (reg_or_v2s8bit_operand): Likewise.
16742 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16743 (reg_or_v4s8bit_operand): Likewise.
16745 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16747 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16748 (vec_shasigma_be): New #define.
16749 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16750 (VPMSUMH): Likewise.
16751 (VPMSUMW): Likewise.
16752 (VPMSUMD): Likewise.
16753 (VPMSUM): New BU_P8V_OVERLOAD_2.
16754 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16755 entries for VEC_MADD and VEC_VPMSUM.
16757 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16759 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16760 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16761 (avr_pgm_check_var_decl): Same.
16763 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16765 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16766 initialization of HFmode scalar type (float16_t) to...
16767 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16770 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16772 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16773 having an -mfp16-format.
16775 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16777 * config/i386/predicates.md (vector_all_ones_operand): Use
16778 CONSTM1_RTX to simplify definition.
16780 2015-08-20 Richard Biener <rguenther@suse.de>
16782 * toplev.c (compile_file): Remove loop calling late_global_decl
16784 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16785 on decls we assembled.
16787 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16789 * common/config/aarch64/aarch64-common.c
16790 (AARCH64_CPU_NAME_LENGTH): Delete.
16791 (aarch64_option_extension): New.
16792 (all_extensions): Likewise.
16793 (processor_name_to_arch): Likewise.
16794 (arch_to_arch_name): Likewise.
16796 (all_architectures): Likewise.
16797 (aarch64_get_extension_string_for_isa_flags): Likewise.
16798 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16799 architecture names.
16800 * config/aarch64/aarch64-protos.h
16801 (aarch64_get_extension_string_for_isa_flags): New.
16802 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16803 (aarch64_option_print): Get the string to print from
16804 aarch64_get_extension_string_for_isa_flags.
16805 (aarch64_declare_function_name): Likewise.
16806 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16807 (MCPU_TO_MARCH_SPEC): This.
16808 (ASM_CPU_SPEC): Use it.
16809 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16810 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16811 (EXTRA_SPEC_FUNCTIONS): Use it.
16813 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16815 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16816 expansion when !ISA_HAS_LWL_LWR.
16817 (mips_block_move_straight): Update the size of elements copied to
16818 account for alignment when !ISA_HAS_LWL_LWR.
16819 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16821 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16823 * expr.c (expand_expr_real_2): Check gimple statement during
16824 LSHIFT_EXPR expand.
16826 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16828 * common.opt (fstack-protector): Initialize to -1.
16829 (fstack-protector-all): Likewise.
16830 (fstack-protector-strong): Likewise.
16831 (fstack-protector-explicit): Likewise.
16832 * configure.ac: Add --enable-default-ssp.
16833 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16834 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16836 * doc/install.texi: Document --enable-default-ssp.
16837 * config.in: Regenerated.
16838 * configure: Likewise.
16840 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16842 PR rtl-optimization/64164
16843 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16844 (parm_in_stack_slot_p): ... this. Disregard mode, what
16845 matters is whether the parm will live in a pseudo or a stack
16847 (expand_one_ssa_partition): Deal with params without a default
16848 def. Disregard mode.
16849 * cfgexpand.h: Renamed function declaration.
16850 * tree-ssa-coalesce.c: Adjust.
16851 * function.c (split_complex_args): Allocate stack slot for
16852 unassigned parms before splitting.
16853 (parm_in_unassigned_mem_p): New. Use it instead of
16854 parm_maybe_byref_p throughout this file.
16855 (assign_parm_setup_block): Use it. Accept pseudos in the
16856 expand-assigned rtl.
16857 (assign_parm_setup_reg): Drop BLKmode requirement.
16858 (assign_parm_setup_stack): Allocate and fill in the address of
16859 unassigned MEM parms.
16861 2015-08-19 David Sherwood <david.sherwood@arm.com>
16863 * genmodes.c (emit_mode_unit_size_inline): New function.
16864 (emit_mode_unit_precision_inline): New function.
16865 (emit_insn_modes_h): Emit new #define. Emit new functions.
16866 (emit_mode_unit_size): New function.
16867 (emit_mode_unit_precision): New function.
16868 (emit_mode_adjustments): Add mode_unit_size adjustments.
16869 (emit_insn_modes_c): Emit new arrays.
16870 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16871 use new inline methods.
16873 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16875 * config/aarch64/aarch64.c (bit_count): Delete prototype
16877 (aarch64_print_operand): Use popcount_hwi instead of the above.
16879 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16881 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16884 2015-08-19 Marek Polacek <polacek@redhat.com>
16886 PR middle-end/67133
16887 * gimple-ssa-isolate-paths.c
16888 (insert_trap_and_remove_trailing_statements): Rename to ...
16889 (insert_trap): ... this. Don't remove trailing statements; split
16891 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16893 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
16896 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16897 conditionalize the whole on __GNUC__. Add fallback code
16898 depending neither on undefined nor implementation-defined behaviour.
16900 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16902 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16903 whitespaces with tab.
16905 2015-08-19 Florian Weimer <fweimer@redhat.com>
16907 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16908 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16909 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16910 Move Name_Ids instantiation to the Prj.Proc package, to avoid
16913 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16915 * config/arm/arm.c (bounds_check): Use %wd print format
16916 for HOST_WIDE_INT arguments.
16918 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
16920 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16921 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16922 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16923 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16924 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16925 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16926 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16927 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16928 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16931 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
16933 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16934 function.c, graphite-scop-detection.c, haifa-sched.c,
16935 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16936 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16937 varasm.c: Remove typedefs of structs.
16939 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16941 * config/rs6000/altivec.h (vec_adde): New define.
16942 (vec_addec): Likewise.
16943 (vec_double): Likewise.
16944 (vec_bperm): Likewise.
16945 (vec_gb): Likewise.
16946 * config/rs6000/rs6000-builtin.def (ADDE): New
16947 BU_ALTIVEC_OVERLOAD_3.
16949 (DOUBLE): New BU_VSX_OVERLOAD_1.
16950 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16951 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16952 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16953 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16954 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16955 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16956 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16957 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16958 and P8V_BUILTIN_VEC_VBPERMQ.
16960 2015-08-18 Jason Merrill <jason@redhat.com>
16962 * print-tree.c (print_node): Handle TREE_BINFO.
16964 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16966 PR middle-end/36757
16967 * builtins.c (expand_builtin_signbit): Add asserts to make sure
16968 we can expand BUILT_IN_SIGNBIT inline.
16969 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16970 * doc/extend.texi: Document the type-generic __builtin_signbit.
16972 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
16974 PR rtl-optimization/67218
16975 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16976 (simplify_unary_operation_1): Use it.
16978 2015-08-18 Marek Polacek <polacek@redhat.com>
16980 PR middle-end/67222
16981 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16982 if the call isn't valid.
16983 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16984 gimple_call_builtin_p.
16985 (call_may_clobber_ref_p_1): Likewise.
16986 (stmt_kills_ref_p): Likewise.
16988 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
16990 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16991 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16992 (mips_hard_regno_scratch_ok): Likewise.
16993 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16994 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16996 2015-08-18 Bin Cheng <bin.cheng@arm.com>
16998 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16999 (determine_value_range): Call refine_value_range_using_guard for
17000 each loop initial condition to improve value range.
17002 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
17004 * config/i386/i386.c: Remove include of fibheap.h.
17006 2015-08-17 Richard Biener <rguenther@suse.de>
17008 PR tree-optimization/67221
17009 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17010 (sccvn_dom_walker::before_dom_children): Mark backedges of
17011 non-executable blocks as not executable.
17013 2015-08-17 David Sherwood <david.sherwood@arm.com>
17015 * config/arm/arm.c (neon_element_bits): Replace call to
17016 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17017 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17018 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17019 (neon_vdup_lane<mode>): Likewise.
17020 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17021 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17022 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17023 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17024 * config/spu/spu.c (arith_immediate_p): Likewise.
17025 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17026 * expr.c (expand_expr_real_2): Likewise.
17027 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17028 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17029 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17030 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17032 * fold-const.c (fold_binary_loc): Replace call to
17033 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17034 GET_MODE_UNIT_PRECISION (m).
17036 2015-08-17 Mike Stump <mikestump@comcast.net>
17038 * config/arm/arm.c (arm_block_move_unaligned_straight):
17039 Emit normal move instead of unaligned load when source or destination
17040 are appropriately aligned.
17042 2015-08-17 Richard Biener <rguenther@suse.de>
17043 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17045 PR middle-end/16107
17046 * match.pd (div (coss (op @0) : New simplifier.
17048 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
17050 PR rtl-optimization/64164
17052 PR middle-end/66983
17053 PR rtl-optimization/67000
17054 PR middle-end/67034
17055 PR middle-end/67035
17056 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17057 * tree-ssa-copyrename.c: Removed.
17058 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17059 -ftree-coalesce-vars.
17060 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17061 * common.opt (ftree-copyrename): Ignore.
17062 (ftree-coalesce-inlined-vars): Likewise.
17063 * doc/invoke.texi: Remove the ignored options above.
17064 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17065 * tree-ssa-coalesce.h: ... here.
17066 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17067 headers required by it.
17068 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17069 across variables when flag_tree_coalesce_vars. Check register
17070 use and promoted modes to allow coalescing. Do not coalesce
17071 maybe-byref parms with SSA_NAMEs of other variables, or
17072 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
17073 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17074 with its member functions to tree-ssa-coalesce.c.
17075 (var_map_base_init): Likewise. Renamed to
17076 compute_samebase_partition_bases.
17077 (partition_view_normal): Drop want_bases parameter.
17078 (partition_view_bitmap): Likewise.
17079 * tree-ssa-live.h: Adjust declarations.
17080 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17081 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17082 default defs at the entry point.
17083 (dump_part_var_map): New.
17084 (compute_optimized_partition_bases): New, called by...
17085 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17086 of compute_samebase_partition_bases. Adjust.
17087 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17088 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17089 (ssa_default_def_partition): New.
17090 (get_rtl_for_parm_ssa_default_def): New.
17091 (align_local_variable, add_stack_var): Support anonymous SSA
17093 (defer_stack_allocation): Likewise. Declare earlier.
17094 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17095 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17096 Do no record deferred-allocation marker in
17097 SA.partition_to_pseudo.
17098 (expand_stack_vars): Adjust check for the marker in it.
17099 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17100 redundant MEM attr setting.
17101 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17103 (expand_one_stack_var): ... this. New wrapper to check and
17104 skip already expanded SSA partitions.
17105 (record_alignment_for_reg_var): New, factored out of...
17106 (expand_one_var): ... this.
17107 (expand_one_ssa_partition): New.
17108 (adjust_one_expanded_partition_var): New.
17109 (expand_one_register_var): Check and skip already expanded SSA
17111 (expand_used_vars): Don't create DECLs for anonymous SSA
17112 names. Expand all SSA partitions, then adjust all SSA names.
17113 (pass::execute): Replace the loops that set
17114 SA.partition_to_pseudo from partition leaders and cleared
17115 DECL_RTL for multi-location variables, and that which used to
17116 rename vars and set attrs, with one that clears DECL_RTL and
17117 checks that PARMs and RESULTs default_defs match DECL_RTL.
17118 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17119 * emit-rtl.c: Include stor-layout.h.
17120 (set_reg_attrs_for_parm): Handle NULL decl.
17121 (set_reg_attrs_for_decl_rtl): Take mode from expression if
17123 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17124 rather than its possibly-NULL DECL.
17125 * explow.c (promote_ssa_mode): New.
17126 * explow.h (promote_ssa_mode): Declare.
17127 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17128 (read_complex_part): Export.
17129 * expr.h (read_complex_part): Declare.
17130 * cfgexpand.h (parm_maybe_byref_p): Declare.
17131 * function.c: Include cfgexpand.h.
17132 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17133 (use_register_for_parm_decl): Wrapper for the above to
17134 special-case the result_ptr.
17135 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17136 (split_complex_args): Take assign_parm_data_all argument.
17137 Pass it to rtl_for_parm. Set up rtl and context for split
17138 args. Reset complex parm before fetching its default decl
17140 (assign_parms_unsplit_complex): Use the default-def complex
17141 parm rtl if it matches the components.
17142 (assign_parms_augmented_arg_list): Adjust.
17143 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17144 multiple locations. Recognize split complex args.
17145 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17146 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17147 (assign_parm_setup_block): Prefer SSA-assigned location, and
17148 fill in its address if the memory location of a maybe-byref
17149 parm was not assigned by cfgexpand.
17150 (assign_parm_setup_reg): Likewise. Adjust its mode as
17151 needed. Use entry_parm for equiv if stack_parm is NULL. Make
17152 sure passed_pointer parms don't need conversion. Copy address
17153 or value as needed.
17154 (assign_parm_setup_stack): Prefer SSA-assigned location.
17155 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17156 rtl before testing for pointer bounds. Special-case result_ptr.
17157 (expand_function_start): Maybe reset DECL_RTL of result.
17158 Prefer SSA-assigned location for result and static chain.
17159 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
17160 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
17161 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17162 anonymous SSA names. Use promote_ssa_mode.
17163 (get_temp_reg): Likewise.
17164 (remove_ssa_form): Adjust.
17165 * stor-layout.c (layout_decl): Don't set mem attributes of
17167 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17168 and get its reg_usage for reg invalidation.
17169 (compute_bb_dataflow): Pass it insn.
17170 (emit_notes_in_bb): Likewise.
17172 2015-08-14 Marek Polacek <polacek@redhat.com>
17174 * tree-core.h (tree_base): Fix typo.
17176 2015-08-14 Marek Polacek <polacek@redhat.com>
17178 PR middle-end/67133
17179 * gimple.c (infer_nonnull_range_by_attribute): Check that the
17180 nonnull argument position is not outside function arguments.
17182 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
17185 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17186 'lconst_atomic' with 'const_atomic'.
17187 (atomic_fetch_<optab><mode>): Likewise.
17188 (atomic_<optab>_fetch<mode>): Likewise.
17189 * config/aarch64/iterators.md (lconst-atomic): Move below
17191 (const_atomic): New.
17193 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
17194 Bernd Schmidt <bernds@codesourcery.com>
17196 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17198 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17199 (DWARF2_DEBUGGING_INFO): Don't define.
17200 * debug.h (dwarf2_lineno_debug_hooks): Declare.
17201 * toplev.c (process_options): Add a case for it.
17202 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17203 (dwarf2out_init): Skip most initializations if
17204 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17206 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17207 DWARF2_LINENO_DEBUGGING_INFO.
17208 * opts.c (set_debug_level): Likewise.
17210 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
17212 * config/arm/types.md (is_neon_type): Add missing types.
17214 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
17216 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17218 * config/i386/i386.c (PTA_SKYLAKE): New macros.
17219 (processor_alias_table): Add skylake description.
17220 (enum processor_model): Add skylake processor.
17221 (arch_names_table): Add skylake record.
17222 * doc/invoke.texi: Add skylake item.
17224 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
17226 * ira-int.h: Include recog.h.
17227 * ira-build.c: Don't include recog.h.
17228 * ira-color.c: Likewise.
17229 * ira-conflicts.c: Likewise.
17230 * ira-costs.c: Likewise.
17231 * ira-emit.c: Likewise.
17232 * ira-lives.c: Likewise.
17234 * sched-deps.c: Likewise.
17235 * sel-sched.c: Likewise.
17236 * target-globals.c: Likewise.
17238 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
17241 * reload1.c (elimination_costs_in_insn): Make it obvious to the
17242 compiler that the n_dups and n_operands loop bounds are invariant.
17244 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17246 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17247 expressions in A and B.
17249 2015-08-13 Richard Biener <rguenther@suse.de>
17251 * tree.c (nonnull_arg_p): Move from ...
17252 * tree-vrp.c (nonnull_arg_p): ... here.
17253 * tree.h (nonnull_arg_p): Declare.
17254 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17255 here, register ptr != 0 for nonnull_arg_p pointer arguments.
17256 Properly initialize static chain and by-reference result pointer.
17257 (run_scc_vn): Adjust.
17259 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17261 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17264 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17266 * config/aarch64/aarch64-protos.h
17267 (aarch64_gen_atomic_cas): Declare.
17268 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17269 Choose appropriate instruction pattern for the target.
17270 (aarch64_gen_atomic_cas): New.
17271 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17272 (atomic_compare_and_swap<mode>_1): Rename to
17273 aarch64_compare_and_swap<mode>. Fix some indentation.
17274 (aarch64_compare_and_swap<mode>_lse): New.
17275 (aarch64_atomic_cas<mode>): New.
17277 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17279 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17282 2015-08-13 Richard Biener <rguenther@suse.de>
17284 PR tree-optimization/67191
17285 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17286 assert we value-numbered last stmts operand because it can validly
17287 trigger for unreachable code.
17289 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17291 PR rtl-optimization/67103
17292 * ifcvt.c (noce_try_store_flag_constants): Move
17293 x = (-(test != 0) & (b - a)) + a transformation to...
17294 (noce_try_cmove): ... Here. Try it if normal conditional
17297 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17299 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17301 * config/mips/mips.md (processor): Remove w32 and w64.
17303 2015-08-13 Richard Biener <rguenther@suse.de>
17305 PR tree-optimization/66502
17306 PR tree-optimization/67167
17307 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17308 backedge arguments.
17309 (vn_phi_lookup): Adjust.
17310 (vn_phi_insert): Likewise.
17311 (visit_phi): Prefer to value-number to another PHI node
17312 over value-numbering to a PHI argument.
17313 (init_scc_vn): Mark DFS back edges.
17315 2015-08-13 Richard Biener <rguenther@suse.de>
17317 * gimple.h (gcall::code_): New constant static member.
17318 (gcond::code_): Likewise.
17319 * gimple.c (gcall::code_): Define.
17320 (gcond::code_): Likewise.
17321 (is_a_helper <const gcond *>): Add.
17322 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17323 and forward to a new gcall overload with less checking and a
17324 cheaper way to access the operand.
17325 (gimple_call_lhs_ptr): Likewise.
17326 (gimple_call_set_lhs): Likewise.
17327 (gimple_call_internal_p): Likewise.
17328 (gimple_call_with_bounds_p): Likewise.
17329 (gimple_call_set_with_bounds): Likewise.
17330 (gimple_call_internal_fn): Likewise.
17331 (gimple_call_set_ctrl_altering): Likewise.
17332 (gimple_call_ctrl_altering_p): Likewise.
17333 (gimple_call_fntype): Likewise.
17334 (gimple_call_fn): Likewise.
17335 (gimple_call_fn_ptr): Likewise.
17336 (gimple_call_set_fndecl): Likewise.
17337 (gimple_call_fndecl): Likewise.
17338 (gimple_call_chain): Likewise.
17339 (gimple_call_num_args): Likewise.
17340 (gimple_call_arg): Likewise.
17341 (gimple_call_arg_ptr): Likewise.
17342 (gimple_call_set_arg): Likewise.
17343 (gimple_call_noreturn_p): Likewise.
17344 (gimple_cond_code): Likewise.
17345 (gimple_cond_lhs): Likewise.
17346 (gimple_cond_rhs): Likewise.
17347 (gimple_has_lhs): Reduce checking.
17349 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17351 PR middle-end/25529
17352 * match.pd (div (mult @0 @1) @1) : New simplifier.
17354 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17357 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17358 predicate to allow construction of vector constants using the
17359 VSLDOI vector shift instruction.
17361 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17364 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17365 the number of bytes to be shifted left and filled in with either
17366 all zero or all one bits.
17367 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17369 (output_vec_const_move): On power8, generate XXLORC to generate
17370 a vector constant with all 1's. Do a split if we need to use a
17371 VSLDOI instruction.
17373 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17374 properly test for the MSB.
17376 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17377 vector constants that can be created with VSLDOI.
17379 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17382 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17383 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17384 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17385 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17386 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17387 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17388 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17389 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17390 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17392 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17394 * config/xtensa/constraints.md (define_constraint "Y"): New
17396 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17397 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17398 * config/xtensa/predicates.md (move_operand): Match constants
17399 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17400 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17401 immediate references to TLS data.
17402 (xtensa_emit_move_sequence): Don't force constants to memory in
17403 the presence of TARGET_AUTO_LITPOOLS.
17404 (print_operand): Add 'y' format, same as default, but capable of
17405 printing SF mode constants as well.
17406 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17407 (movsf_internal): Add movi pattern that loads literal.
17408 (movsf, movdf): Don't force constants to memory in the presence
17409 of TARGET_AUTO_LITPOOLS.
17410 (movdf_internal): Add 'Y' constraint.
17411 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17412 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17414 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17416 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17418 * config/arm/arm.c (ARM_FPU): Update macro.
17419 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17420 (TARGET_FP16): Likewise.
17421 (TARGET_CRYPTO): Likewise.
17422 (TARGET_NEON): Likewise.
17423 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17426 2015-08-12 Tom de Vries <tom@codesourcery.com>
17430 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17431 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17432 accordingly. Mention default for --with-stage1-ldflags.
17434 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17436 * config/arm/arm.h (arm_fpu_feature_set): New.
17437 (ARM_FPU_FSET_HAS): New.
17438 (FPU_FL_NONE): New.
17439 (FPU_FL_NEON): New.
17440 (FPU_FL_FP16): New.
17441 (FPU_FL_CRYPTO): New.
17443 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17445 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17446 after -mcmodel=large -fPIC sorry.
17448 2015-08-12 Richard Biener <rguenther@suse.de>
17450 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17451 comparison operand order and commutative ternary op operand order.
17452 (sccvn_dom_walker::cond_stack): New state to track temporary
17454 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17456 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17458 (sccvn_dom_walker::record_conds): Add a temporary conditional
17459 expressions and all related expressions also true/false.
17460 (sccvn_dom_walker::before_dom_children): Record temporary
17461 expressions based on the controlling condition of a single
17462 predecessor. When trying to simplify a conditional statement
17463 lookup expressions we might have inserted earlier.
17465 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17468 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17469 to ARM core registers.
17471 2015-08-12 Nathan Sidwell <nathan@acm.org>
17473 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17474 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17476 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17478 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17479 line with comments.
17480 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17482 2015-08-12 Richard Biener <rguenther@suse.de>
17484 * gimple.h (remove_pointer): New trait.
17485 (GIMPLE_CHECK2): New inline template function.
17486 (gassign::code_): New constant static member.
17487 (is_a_helper<const gassign *>): Add.
17488 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17489 and forward to a new gassign overload with less checking and a
17490 cheaper way to access the operand.
17491 (gimple_assign_lhs_ptr): Likewise.
17492 (gimple_assign_set_lhs): Likewise.
17493 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17495 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17497 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17499 (gimple_assign_rhs_code): Likewise.
17500 * gimple.c (gassign::code_): Define.
17502 2015-08-12 Richard Biener <rguenther@suse.de>
17504 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17505 Eliminate edges marked as not executable by SCCVN.
17506 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17507 (cond_dom_walker): Rename to sccvn_dom_walker.
17508 (sccvn_dom_walker::before_dom_children): Value-number defs
17510 (run_scc_vn): Remove loop value-numbering all SSA names.
17511 Drop not visited SSA names to varying.
17513 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17515 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17516 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17517 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17518 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17519 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17520 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17521 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17522 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17523 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17525 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17528 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17529 to enum feature_priority and feature_list.
17530 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17531 and isa_names_table.
17533 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17535 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17536 vect_induction_def.
17538 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17542 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17543 account when deciding what was the command-line status.
17545 2015-08-11 Nathan Sidwell <nathan@acm.org>
17547 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17549 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17550 we're not the only contributor to target phi.
17552 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17554 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17557 2015-08-11 Tom de Vries <tom@codesourcery.com>
17559 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17561 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17563 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17565 * config/i386/i386.md (cpu): Remove knl.
17567 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17570 PR middle-end/66332
17571 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17572 open-coded sequence.
17573 * omp-low.c (oacc_process_reduction_data): Remove handline of
17574 GOMP_DEVICE_HOST_NONSHM.
17576 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17577 GET_MODE_INNER changes.
17579 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17580 Ilya Verbin <ilya.verbin@intel.com>
17582 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17584 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17586 * doc/options.texi (EnabledBy): Document that the argument must be
17588 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17589 Not enabled by -Wall.
17590 * optc-gen.awk: Give nicer error messages. Detect if the argument
17591 of EnabledBy is not a Common option.
17592 * common.opt (Wnull-dereference): Not enabled by -Wall.
17593 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17595 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17597 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17598 model == 0x4f as Broadwell.
17600 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17602 PR rtl-optimization/67028
17603 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17604 Add test to see if a const_int fits in the new mode.
17606 2015-08-07 DJ Delorie <dj@redhat.com>
17608 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17610 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17612 PR rtl-optimization/67029
17613 * ira-color.c: Include "recog.h" before including "ira-int.h".
17614 * target-globals.c: Likewise.
17615 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17616 adds an alternative_mask argument and use it instead of
17617 preferred_alternatives.
17618 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17619 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17620 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17621 (sched_analyze_insn): Update call to
17622 ira_implicitly_set_insn_hard_regs.
17623 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17624 (implicit_clobber_conflict_p): Update call to
17625 ira_implicitly_set_insn_hard_regs.
17627 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17629 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17631 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17634 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17635 currently_expanding_to_rtl is set.
17637 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17639 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17640 * configure: Regenerate.
17642 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17643 Jiong Wang <jiong.wang@arm.com>
17645 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17646 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17647 (REG_CLASS_NAMES): Likewise.
17648 (REG_CLASS_CONTENTS): Likewise.
17649 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17650 (aarch64_register_move_cost): Likewise.
17651 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17653 * config/aarch64/constraints.md (Uc0): New constraint.
17655 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17657 * config/aarch64/constraints.md (Usf): Add the test of
17658 aarch64_is_noplt_call_p.
17660 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17662 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17664 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17665 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17666 (call_symbol): Likewise.
17668 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17670 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17671 for vectorizing multiplication patterns.
17672 * tree-vectorizer.h: Adjust the number of patterns.
17674 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17676 * config/i386/sse.md (*vec_concatv2df): Declare added
17677 alternatives as sselog type.
17679 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17681 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17684 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17686 * config/s390/s390.c (s390_expand_tbegin): Expand either
17687 tbegin_1_z13 or tbegin_1 depending on VX flag.
17688 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17690 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17692 * config/s390/s390.opt: Clarify description for -mzvector
17693 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17696 2015-08-06 Richard Biener <rguenther@suse.de>
17698 * gimple.h (gimple_call_set_fn): Access op member directly.
17699 (gimple_call_chain_ptr): Likewise.
17700 (gimple_call_set_chain): Likewise.
17701 (gimple_cond_lhs_ptr): Likewise.
17702 (gimple_cond_set_lhs): Likewise.
17703 (gimple_cond_rhs_ptr): Likewise.
17704 (gimple_cond_set_rhs): Likewise.
17705 (gimple_cond_true_label): Likewise.
17706 (gimple_cond_set_true_label): Likewise.
17707 (gimple_cond_set_false_label): Likewise.
17708 (gimple_cond_false_label): Likewise.
17709 (gimple_label_label): Likewise.
17710 (gimple_label_set_label): Likewise.
17711 (gimple_goto_set_dest): Likewise.
17712 (gimple_asm_input_op): Likewise.
17713 (gimple_asm_input_op_ptr): Likewise.
17714 (gimple_asm_set_input_op): Likewise.
17715 (gimple_asm_output_op): Likewise.
17716 (gimple_asm_output_op_ptr): Likewise.
17717 (gimple_asm_set_output_op): Likewise.
17718 (gimple_asm_clobber_op): Likewise.
17719 (gimple_asm_set_clobber_op): Likewise.
17720 (gimple_asm_label_op): Likewise.
17721 (gimple_asm_set_label_op): Likewise.
17722 (gimple_switch_index): Likewise.
17723 (gimple_switch_index_ptr): Likewise.
17724 (gimple_return_retval_ptr): Likewise.
17725 (gimple_return_retval): Likewise.
17726 (gimple_return_set_retval): Likewise.
17727 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17728 (gimple_switch_label): Likewise.
17729 (gimple_switch_set_label): Likewise.
17731 2015-08-06 Richard Biener <rguenther@suse.de>
17733 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17734 bool comparison canonicalization and restrict to integers.
17736 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17738 * coretypes.h (enum symbol_visibility): Relocate here.
17739 * flag-types.h (enum symbol_visibility): Remove.
17740 * tree-core.h (enum symbol_visibility): Remove.
17742 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17745 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17746 for no_split_stack function attribute along with
17748 (rs6000_expand_split_stack_prologue): Likewise.
17750 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17751 Jeff Law <law@redhat.com>
17754 * doc/invoke.texi (Wnull-dereference): New.
17755 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17756 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17757 Warn for potential NULL dereferences.
17758 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17759 * ubsan.c (instrument_nonnull_arg): Call
17760 infer_nonnull_range_by_attribute.
17761 (instrument_nonnull_return): Likewise.
17762 * common.opt (Wnull-dereference); New.
17763 * gimple.c (infer_nonnull_range): Remove bool arguments.
17764 (infer_nonnull_range_by_dereference): New.
17765 (infer_nonnull_range_by_attribute): New.
17766 * gimple.h: Update declarations.
17768 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17770 * gensupport.c (sequence_num): Replace with...
17771 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17772 ...these new variables.
17773 (init_rtx_reader_args_cb): Update accordingly.
17774 (get_num_code_insns): Likewise.
17775 (read_md_rtx): Rework to use a while loop and get_c_test.
17776 Use the new counters. Remove redundant DEFINE_SUBST case.
17777 * genoutput.c (gen_split): Delete.
17778 (main): Don't call it.
17780 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17782 * gensupport.h (get_c_test): Declare.
17783 * gensupport.c (get_c_test): New function.
17784 * genconditions.c (main): Use it.
17785 * genrecog.c (validate_pattern): Likewise.
17786 (match_pattern_1): Likewise. Remove c_test argument.
17787 (match_pattern): Update accordingly and remove c_test argument.
17788 (main): Update accordingly.
17790 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17792 * gensupport.h (get_num_insn_codes): Declare.
17793 * gensupport.c (get_num_insn_codes): New function.
17794 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17796 (main): Likewise. Use get_num_insn_codes.
17797 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17799 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17801 PR middle-end/66311
17802 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17803 is zero- rather than sign-extended.
17805 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17807 * target-insns.def (can_extend): Delete.
17809 2015-08-05 Richard Biener <rguenther@suse.de>
17811 PR tree-optimization/67121
17812 * tree-if-conv.c (combine_blocks): Clear range-info produced
17813 by stmts no longer executed conditionally.
17815 2015-08-05 Nick Clifton <nickc@redhat.com>
17817 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17818 to allow identical far pointers to remain.
17820 2015-08-05 Richard Biener <rguenther@suse.de>
17822 PR middle-end/67120
17823 * match.pd: Compare address bases with == if they are decls
17824 or SSA names, not operand_equal_p. Otherwise fail.
17826 2015-08-05 Richard Biener <rguenther@suse.de>
17828 PR tree-optimization/67055
17829 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17832 * g++.dg/torture/pr67055.C: New testcase.
17834 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17836 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17838 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17839 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17840 AVX-512 alternative out of SSE.
17841 (define_insn "*vec_concatv2df"): Ditto.
17843 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17845 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17846 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17847 CODE_FOR_avx_ptestv4di.
17848 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17849 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17850 (define_insn "avx_ptest256"): Merge this ...
17851 (define_insn "sse4_1_ptest"): And this ...
17852 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17854 2015-08-05 Richard Biener <rguenther@suse.de>
17856 PR tree-optimization/67109
17857 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17858 against too big groups. Print whether this is a load or store
17859 group. Rename from ...
17860 (vect_analyze_group_access): ... this which is now a wrapper
17861 dissolving an invalid group.
17862 (vect_analyze_data_ref_accesses): Print whether this is a load
17865 2015-08-05 Richard Biener <rguenther@suse.de>
17867 PR middle-end/67107
17868 * match.pd: Guard const_binop result checking against NULL_TREE
17871 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
17873 * cse.c (cse_insn): Restoring old behaviour for src_eqv
17874 when dest and value in the REG_EQUAL are same and dest
17875 is STRICT_LOW_PART.
17877 2015-08-04 Anatoly Sokolov <aesok@post.ru>
17879 * config/moxie/moxie.h (PRINT_OPERAND,
17880 PRINT_OPERAND_ADDRESS): Remove macros.
17881 * config/moxie/moxie-protos.h (moxie_print_operand,
17882 moxie_print_operand_address): Remove declaration.
17883 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17884 TARGET_PRINT_OPERAND_ADDRESS): Define.
17885 (moxie_print_operand, moxie_print_operand_address): Make static.
17887 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17890 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17891 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17893 2015-08-04 Richard Biener <rguenther@suse.de>
17895 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17897 (dt_operand::gen_gimple_expr): Adjust.
17899 2015-08-04 Richard Biener <rguenther@suse.de>
17901 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17902 bool compares on RHS.
17903 * match.pd: Add X ==/!= !X is false/true pattern.
17905 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
17907 * config/aarch64/aarch64.c: Change inner loop statement cost
17908 to be consistent with other targets.
17910 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
17912 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17915 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
17917 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17918 (machine_function): Remove pseudos field.
17920 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17922 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17923 Exit early and use target_option_current_node if processing current
17926 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17928 * doc/extend.texi (AArch64 Function Attributes): New node.
17929 (AArch64 Pragmas): Likewise.
17931 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17933 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17934 Initialize simd builtins if TARGET_SIMD.
17935 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17936 Make sure that the builtins are initialized only once no matter how
17937 many times the function is called.
17938 (aarch64_init_builtins): Unconditionally initialize crc builtins.
17939 (aarch64_relayout_simd_param): New function.
17940 (aarch64_simd_expand_args): Use above during argument expansion.
17941 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17942 simd builtins if TARGET_SIMD.
17943 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17945 (aarch64_relayout_simd_types): Likewise.
17947 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17949 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17950 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17951 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17952 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17954 (aarch64_reset_previous_fndecl): New function.
17955 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17957 * config/aarch64/aarch64-c.c: New file.
17958 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17959 Push and pop options at beginning and end. Remove ifdef
17960 __ARM_FEATURE_CRC32.
17961 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17962 Add pragma +nothing+simd and +nothing+crypto where appropriate.
17963 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17964 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17966 (aarch64_register_pragmas): Likewise.
17967 (aarch64_reset_previous_fndecl): Likewise.
17968 (aarch64_process_target_attr): Likewise.
17969 (aarch64_override_options_internal): Likewise.
17971 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17973 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17975 (aarch64_can_inline_p): Likewise.
17976 (TARGET_CAN_INLINE_P): Define.
17978 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17980 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17981 Remove static. Handle OPT_mgeneral_regs_only,
17982 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17983 OPT_momit_leaf_frame_pointer.
17984 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17985 (aarch64_attr_opt_type): New enum.
17986 (aarch64_attribute_info): New struct.
17987 (aarch64_handle_attr_arch): New function.
17988 (aarch64_handle_attr_cpu): Likewise.
17989 (aarch64_handle_attr_tune): Likewise.
17990 (aarch64_handle_attr_isa_flags): Likewise.
17991 (aarch64_attributes): New table.
17992 (aarch64_process_one_target_attr): New function.
17993 (num_occurences_in_str): Likewise.
17994 (aarch64_process_target_attr): Likewise.
17995 (aarch64_option_valid_attribute_p): Likewise.
17996 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17997 * config/aarch64/aarch64-protos.h: Include input.h
17998 (aarch64_handle_option): Declare prototype.
18000 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18002 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18003 * config/aarch64/aarch64.c: Include target-globals.h
18004 (aarch64_previous_fndecl): New variable.
18005 (aarch64_set_current_function): New function.
18006 (TARGET_SET_CURRENT_FUNCTION): Define.
18008 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18010 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18011 (explicit_arch): Likewise.
18012 (x_aarch64_isa_flags): Likewise.
18013 (mgeneral-regs-only): Mark as Save.
18014 (mfix-cortex-a53-835769): Likewise.
18015 (mcmodel=): Likewise.
18016 (mstrict-align): Likewise.
18017 (momit-leaf-frame-pointer): Likewise.
18018 (mtls-dialect): Likewise.
18019 (master=): Likewise.
18020 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18021 (aarch64_isa_flags): Remove extern declaration.
18022 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18023 to indicate success or failure.
18024 (aarch64_validate_march): Likewise.
18025 (aarch64_validate_mtune): Likewise.
18026 (aarch64_isa_flags): Delete.
18027 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18028 instead of aarch64_isa_flags.
18029 (aarch64_get_tune_cpu): New function.
18030 (aarch64_get_arch): Likewise.
18031 (aarch64_override_options): Use above and set up explicit_tune_core
18033 (aarch64_print_extension): Move earlier in file. Add isa_flags
18034 argument and use that instead of the global aarch64_isa_flags.
18035 (aarch64_option_save): New function.
18036 (aarch64_option_restore): Likewise.
18037 (aarch64_option_print): Likewise.
18038 (aarch64_declare_function_name): Likewise.
18039 (aarch64_start_file): Delete.
18040 (TARGET_ASM_FILE_START): Do not define.
18041 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18042 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18045 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18047 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18048 flag_omit_leaf_frame_pointer to 2.
18050 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18052 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18054 (TARGET_FIX_ERR_A53_835769): New macro.
18055 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18056 handling of opts->x_aarch64_fix_a53_err835769.
18057 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18058 than aarch64_fix_a53_err835769.
18059 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18060 * config/aarch64/aarch64-linux.h: Likewise.
18062 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
18064 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18065 ix86_expand_int_movcc as boolean.
18067 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18069 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18070 (aarch64_cpu_string): Likewise.
18071 (aarch64_tune_string): Likewise.
18072 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18073 (aarch64_parse_extension): Return aarch64_parse_opt_result.
18074 Add extra argument to put result into.
18075 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
18076 (aarch64_parse_cpu): Add arguments to put results into. Return
18077 aarch64_parse_opt_result.
18078 (aarch64_parse_tune): Likewise.
18079 (aarch64_override_options_after_change_1): New function.
18080 (aarch64_override_options_internal): New function.
18081 (aarch64_validate_mcpu): Likewise.
18082 (aarch64_validate_march): Likewise.
18083 (aarch64_validate_mtune): Likewise.
18084 (aarch64_override_options): Update to reflect above changes.
18085 Move some logic into aarch64_override_options_internal.
18086 Initialize target_option_default_node and target_option_current_node.
18087 (aarch64_override_options_after_change): Move logic into
18088 aarch64_override_options_after_change_1 and call it with global_options.
18089 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18090 flag values from that.
18092 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18094 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18095 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18096 * config/aarch64/aarch64.c (struct processor): Add arch field.
18097 (all_architectures): Handle above, move above all_cores.
18098 (all_cores): Handle above.
18099 (aarch64_parse_arch): Handle above changes.
18100 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18101 above. Update comments.
18102 (armv8.1-a): Likewise.
18103 * config/aarch64/aarch64-cores.def: Update according to above.
18104 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18105 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18106 aarch64_arch_driver_info.
18108 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18110 * config/aarch64/aarch64.c (struct processor): Add ident field.
18111 Rename core sched_core.
18112 (all_cores): Handle above changes.
18113 (all_architectures): Likewise.
18114 (aarch64_parse_arch): Likewise.
18115 (aarch64_override_options): Likewise.
18117 2015-08-04 Richard Biener <rguenther@suse.de>
18119 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18120 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18121 comparisons embedded in [VEC_]COND_EXPRs.
18123 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
18125 * tree-if-conv.c: Fix various typos in comments.
18126 * tree-vect-stmts.c: Likewise.
18128 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18130 PR tree-optimization/67043
18131 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18132 preheader after hoisting invariant in it.
18133 (find_defs): Force recomputation of all luids.
18135 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
18137 * config/rs6000/htm.md (tabort.): Restrict the source operand to
18138 using a base register.
18140 2015-08-03 David Malcolm <dmalcolm@redhat.com>
18142 * main.c (main): Pass in NULL for toplev's external_timer.
18143 * timevar.c: Include coretypes.h.
18144 (class timer::named_items): New.
18145 (timer::named_items::named_items): New.
18146 (timer::named_items::~named_items): New.
18147 (timer::named_items::push): New.
18148 (timer::named_items::pop): New.
18149 (timer::named_items::print): New.
18150 (timer::timer): Initialize field "m_jit_client_items".
18151 (timer::~timer): New.
18152 (timer::push): Move bulk of implementation to...
18153 (timer::push_internal): ...here. New function.
18154 (timer::pop): Move bulk of implementation to...
18155 (timer::pop_internal): ...here. New function.
18156 (timer::push_client_item): New.
18157 (timer::pop_client_item): New.
18158 (timer::print_row): New function, taken from timer::print.
18159 (timer::print): Print "GCC items" header if we also have client
18160 items. Move row-printing to timer::print_row. Print any client
18162 (timer::get_topmost_item_name): New method.
18163 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18164 (TV_JIT_CLIENT_CODE): New.
18165 * timevar.h (timer::push_client_item): New declaration.
18166 (timer::pop_client_item): New declaration.
18167 (timer::get_topmost_item_name): New method.
18168 (timer::push_internal): New declaration.
18169 (timer::pop_internal): New declaration.
18170 (timer::print_row): New declaration.
18171 (timer::named_items): New declaration.
18172 (timer::m_jit_client_items): New field.
18173 (timer): Add friend class named_items.
18174 (auto_timevar::auto_timevar): Add timer param.
18175 (auto_timevar::~auto_timevar): Use field "m_timer".
18176 (auto_timevar::m_timer): New field.
18177 * toplev.c (initialize_rtl): Add g_timer as param when
18178 constructing auto_timevar instance.
18179 (toplev::toplev): Add "external_timer" param, and use it to
18180 initialize the "g_timer" global if non-NULL.
18181 (toplev::~toplev): If this created "g_timer", delete it.
18182 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18183 with "external_timer" timer *.
18185 2015-08-03 Alexander Basov <coohpt@gmail.com>
18187 PR middle-end/64744
18188 PR middle-end/48470
18189 PR middle-end/43404
18190 * cfgexpand.c (expand_one_var): Add check if stack is going to
18191 be used in naked function.
18192 * expr.c (expand_expr_addr_expr_1): Remove excess checking
18193 whether expression should not reside in MEM.
18194 * function.c (use_register_for_decl): Do not use registers for
18195 non-register things (volatile, float, BLKMode) in naked functions.
18197 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
18200 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18201 Adjust splits to match new pattern.
18203 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18205 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18208 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18209 point in VSX registers.
18211 * config/rs6000/constraints.md (wb constraint): Document unused
18213 (we constraint): Likewise.
18214 (wo constraint): Likewise.
18215 (wp constraint): New constraint for IEEE 128-bit floating point in
18217 (wq constraint): Likewise.
18219 * config/rs6000/predicates.md (easy_fp_constant): Add support for
18220 IEEE 128-bit floating point in VSX registers.
18221 (easy_scalar_constant): Likewise.
18223 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18224 constraints (wp, wq) for IEEE 128-bit floating point in VSX
18226 (rs6000_init_hard_regno_mode_ok): Likewise.
18228 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18229 floating point in VSX registers.
18232 (VSX_M2): Likewise.
18238 (vsx_le_permute_<mode>): Add support to properly swap bytes for
18239 IEEE 128-bit floating point in VSX registers on little endian.
18240 (vsx_le_undo_permute_<mode>): Likewise.
18241 (vsx_le_perm_load_<mode>): Likewise.
18242 (vsx_le_perm_store_<mode>): Likewise.
18243 (splitters for IEEE 128-bit fp moves): Likewise.
18245 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18248 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18249 floating point in VSX registers.
18252 * doc/md.text (Machine Constraints): Document wp and wq
18253 constraints on PowerPC.
18255 2015-08-03 Jeff Law <law@redhat.com>
18257 PR middle-end/66314
18258 PR gcov-profile/66899
18259 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18260 iterate over the jump threading paths when an element in the
18261 jump threading paths array is eliminated.
18263 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
18265 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18267 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
18269 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18270 is_use_properly_guarded the variable def_preds. Free its
18271 contents before returning.
18272 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18273 (is_use_properly_guarded): Replace local variable def_preds with
18274 a parameter. Adjust accordingly. Only update *def_preds if it's
18277 2015-08-03 Richard Biener <rguenther@suse.de>
18279 * genmatch.c (simplify::for_subst_vec): New member.
18280 (binary_ok): New helper for for lowering.
18281 (lower_for): Delay substituting operators into result expressions
18282 if we can merge the results eventually again.
18283 (capture_info::walk_result): Adjust for user_id appearing as
18284 result expression operator.
18285 (expr::gen_transform): Likewise.
18286 (dt_simplify::gen_1): Likewise.
18287 (dt_simplify::gen): Pass not substituted operators to tail
18288 functions or initialize local variable with it.
18289 (decision_tree::gen): Adjust function signature.
18290 * match.pd: Fix tests against global code and add default
18291 cases to switch stmts.
18293 2015-08-03 Richard Biener <rguenther@suse.de>
18295 * genmatch.c (dt_simplify::gen): Create captures array
18296 with an initializer.
18298 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18300 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18301 the host compiler is affected by placement new aliasing bug.
18302 * configure: Regenerate.
18303 * Makefile.in (ALIASING_FLAGS): New variable.
18304 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18306 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18309 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18310 (negmulsf3_vfp): Likewise.
18311 (muldf3negdf_vfp): Disable for -frounding-math.
18312 (mulsf3negsf_vfp): Likewise.
18313 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18314 fix MULT cost with -frounding-math.
18316 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18318 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18319 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18320 explicit. Prefer to add the flag whenever possible.
18321 (noce_process_if_block): Try noce_try_store_flag_constants before
18324 2015-08-03 Richard Biener <rguenther@suse.de>
18326 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18327 New hash-map to record equivalent transforms.
18328 (dt_node::analyze): Populate the equivalent transforms hash-map.
18329 (dt_simplify::info): Add reference to hash-map entry.
18330 (dt_simplify::gen): If we have split out a function for the
18331 transform, generate a call to it.
18332 (sinfo_hashmap_traits::hash): New function.
18333 (compare_op): New helper function for ...
18334 (sinfo_hashmap_traits::equal_keys): ... this new function.
18335 (decision_tree::gen): Split out common equivalent transforms
18338 2015-08-03 Richard Biener <rguenther@suse.de>
18340 * gimple-fold.c (fold_gimple_assign): Remove folding of
18341 the comparison in COND_EXPRs.
18343 2015-08-03 Richard Biener <rguenther@suse.de>
18345 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18346 on the rhs of assignments first simplify the embedded
18349 2015-08-03 Richard Biener <rguenther@suse.de>
18351 PR tree-optimization/66917
18352 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18354 (DR_VECT_AUX): New macro.
18355 (set_dr_misalignment): Adjust.
18356 (dr_misalignment): Likewise.
18357 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18358 Compute whether the base is at least element aligned.
18359 * tree-vect-stmts.c (ensure_base_align): Adjust.
18360 (vectorizable_store): If the base is not element aligned
18361 preserve alignment of the original access if misalignment is unknown.
18362 (vectorizable_load): Likewise.
18364 2015-08-02 Martin Sebor <msebor@redhat.com>
18366 * doc/invoke.texi (Wframe-address): Document it.
18367 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18368 Clarify possible effects of calling the functions with non-zero
18369 arguments and mention -Wframe-address.
18370 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18372 2015-08-01 Michael Collison <michael.collison@linaro.org
18373 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18375 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18376 (*arm_umin_cmp): Likewise.
18378 2015-08-01 Caroline Tice <cmtice@google.com>
18381 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18383 (vtbl_find_mangled_name): New function.
18384 (vtbl_register_mangled_name): New function.
18385 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18386 mangled name in mangled name vectors.
18387 (find_or_create_vtbl_map_node): Ditto.
18388 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18389 update recursion_depth on function entry; pass it to every recursive
18390 call; automatically exit if depth > 25 (give up looking at that point).
18391 (verify_bb_vtables): Initialize recursion_depth and pass it to
18392 var_is_used_for_virtual_call_p.
18393 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18394 global variable decls.
18395 (vtbl_register_mangled_name): New extern function decl.
18397 2015-08-01 Tom de Vries <tom@codesourcery.com>
18399 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18401 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18403 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18404 operation_no_trapping_overflow. Allow non-overflow operations.
18405 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18408 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18411 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18413 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18415 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18416 Enable for TARGET_32BIT.
18417 (*if_move_neg): Likewise.
18419 2015-07-31 Nick Clifton <nickc@redhat.com>
18421 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18422 Returns true for __model__.
18423 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18425 2015-07-31 Alan Modra <amodra@gmail.com>
18428 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18429 (rs6000_emit_prologue): Set it.
18430 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18432 2015-07-31 Richard Biener <rguenther@suse.de>
18434 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18435 -> X == (C1 ^ C2) which is already implemented in match.pd.
18436 Remove redundant dispatching to fold_relational_const.
18437 Move unordered self and NaN compares ...
18438 * match.pd: ... as patterns here. Remove some stray captures
18441 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18443 * config/i386/i386.c
18444 (bdesc_special_args): Convert mask type from signed to unsigned for
18446 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18447 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18448 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18449 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18450 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18451 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18452 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18453 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18454 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18455 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18456 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18457 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18458 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18459 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18460 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18461 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18462 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18463 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18464 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18465 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18466 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18467 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18468 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18469 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18470 * config/i386/i386-builtin-types.def
18471 (V16QI_FTYPE_V16SI): Remove.
18472 (V8DF_FTYPE_V8SI): Ditto.
18473 (V8HI_FTYPE_V8DI): Ditto.
18474 (V8SI_FTYPE_V8DI): Ditto.
18475 (V8SF_FTYPE_V8DF): Ditto.
18476 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18477 (V16HI_FTYPE_V16SI): Ditto.
18478 (V16SF_FTYPE_V16HI): Ditto.
18479 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18480 (V16SF_FTYPE_V16SI): Ditto.
18481 (V4DI_FTYPE_V4DI): Ditto.
18482 (V16SI_FTYPE_V16SF): Ditto.
18483 (V16SF_FTYPE_FLOAT): Ditto.
18484 (V8DF_FTYPE_DOUBLE): Ditto.
18485 (V8DI_FTYPE_INT64): Ditto.
18486 (V8DI_FTYPE_V4DI): Ditto.
18487 (V16QI_FTYPE_V8DI): Ditto.
18488 (UINT_FTYPE_V4SF): Ditto.
18489 (UINT64_FTYPE_V4SF): Ditto.
18490 (UINT_FTYPE_V2DF): Ditto.
18491 (UINT64_FTYPE_V2DF): Ditto.
18492 (V16SI_FTYPE_V16SI): Ditto.
18493 (V8DI_FTYPE_V8DI): Ditto.
18494 (V16SI_FTYPE_PV4SI): Ditto.
18495 (V16SF_FTYPE_PV4SF): Ditto.
18496 (V8DI_FTYPE_PV2DI): Ditto.
18497 (V8DF_FTYPE_PV2DF): Ditto.
18498 (V4DI_FTYPE_PV2DI): Ditto.
18499 (V4DF_FTYPE_PV2DF): Ditto.
18500 (V16SI_FTYPE_PV2SI): Ditto.
18501 (V16SF_FTYPE_PV2SF): Ditto.
18502 (V8DI_FTYPE_PV4DI): Ditto.
18503 (V8DF_FTYPE_PV4DF): Ditto.
18504 (V8SF_FTYPE_FLOAT): Ditto.
18505 (V4SF_FTYPE_FLOAT): Ditto.
18506 (V4DF_FTYPE_DOUBLE): Ditto.
18507 (V8SF_FTYPE_PV4SF): Ditto.
18508 (V8SI_FTYPE_PV4SI): Ditto.
18509 (V4SI_FTYPE_PV2SI): Ditto.
18510 (V8SF_FTYPE_PV2SF): Ditto.
18511 (V8SI_FTYPE_PV2SI): Ditto.
18512 (V16SF_FTYPE_PV8SF): Ditto.
18513 (V16SI_FTYPE_PV8SI): Ditto.
18514 (V8DI_FTYPE_V8SF): Ditto.
18515 (V4DI_FTYPE_V4SF): Ditto.
18516 (V2DI_FTYPE_V4SF): Ditto.
18517 (V64QI_FTYPE_QI): Ditto.
18518 (V32HI_FTYPE_HI): Ditto.
18519 (V8UHI_FTYPE_V8UHI): Ditto.
18520 (V16UHI_FTYPE_V16UHI): Ditto.
18521 (V32UHI_FTYPE_V32UHI): Ditto.
18522 (V2UDI_FTYPE_V2UDI): Ditto.
18523 (V4UDI_FTYPE_V4UDI): Ditto.
18524 (V8UDI_FTYPE_V8UDI): Ditto.
18525 (V4USI_FTYPE_V4USI): Ditto.
18526 (V8USI_FTYPE_V8USI): Ditto.
18527 (V16USI_FTYPE_V16USI): Ditto.
18528 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18529 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18530 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18531 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18532 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18533 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18534 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18535 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18536 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18537 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18538 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18539 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18540 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18541 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18542 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18543 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18544 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18545 (V16SI_FTYPE_V16SI_SI): Ditto.
18546 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18547 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18548 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18549 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18550 (QI_FTYPE_QI): Ditto.
18551 (SI_FTYPE_SI): Ditto.
18552 (DI_FTYPE_DI): Ditto.
18553 (QI_FTYPE_QI_QI): Ditto.
18554 (QI_FTYPE_QI_INT): Ditto.
18555 (HI_FTYPE_HI_INT): Ditto.
18556 (SI_FTYPE_SI_INT): Ditto.
18557 (DI_FTYPE_DI_INT): Ditto.
18558 (HI_FTYPE_V16QI_V16QI): Ditto.
18559 (SI_FTYPE_V32QI_V32QI): Ditto.
18560 (DI_FTYPE_V64QI_V64QI): Ditto.
18561 (QI_FTYPE_V8HI_V8HI): Ditto.
18562 (HI_FTYPE_V16HI_V16HI): Ditto.
18563 (SI_FTYPE_V32HI_V32HI): Ditto.
18564 (QI_FTYPE_V4SI_V4SI): Ditto.
18565 (QI_FTYPE_V8SI_V8SI): Ditto.
18566 (QI_FTYPE_V2DI_V2DI): Ditto.
18567 (QI_FTYPE_V4DI_V4DI): Ditto.
18568 (QI_FTYPE_V8DI_V8DI): Ditto.
18569 (HI_FTYPE_V16SI_V16SI): Ditto.
18570 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18571 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18572 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18573 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18574 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18575 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18576 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18577 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18578 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18579 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18580 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18581 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18582 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18583 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18584 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18585 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18586 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18587 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18588 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18589 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18590 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18591 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18592 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18593 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18594 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18595 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18596 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18597 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18598 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18599 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18600 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18601 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18602 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18603 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18604 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18605 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18606 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18607 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18608 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18609 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18610 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18611 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18612 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18613 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18614 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18615 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18616 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18617 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18618 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18619 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18620 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18621 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18622 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18623 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18624 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18625 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18626 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18627 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18628 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18629 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18630 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18631 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18632 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18633 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18634 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18635 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18636 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18637 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18638 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18639 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18640 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18641 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18642 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18643 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18644 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18645 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18646 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18647 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18648 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18649 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18650 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18651 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18652 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18653 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18654 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18655 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18656 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18657 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18658 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18659 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18660 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18661 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18662 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18663 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18664 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18665 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18666 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18667 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18668 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18669 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18670 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18671 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18672 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18673 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18674 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18675 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18676 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18677 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18678 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18679 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18680 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18681 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18682 (HI_FTYPE_HI): Ditto.
18683 (HI_FTYPE_V16QI): Ditto.
18684 (SI_FTYPE_V32QI): Ditto.
18685 (DI_FTYPE_V64QI): Ditto.
18686 (QI_FTYPE_V8HI): Ditto.
18687 (HI_FTYPE_V16HI): Ditto.
18688 (SI_FTYPE_V32HI): Ditto.
18689 (QI_FTYPE_V4SI): Ditto.
18690 (QI_FTYPE_V8SI): Ditto.
18691 (HI_FTYPE_V16SI): Ditto.
18692 (QI_FTYPE_V2DI): Ditto.
18693 (QI_FTYPE_V4DI): Ditto.
18694 (QI_FTYPE_V8DI): Ditto.
18695 (V16QI_FTYPE_HI): Ditto.
18696 (V32QI_FTYPE_SI): Ditto.
18697 (V64QI_FTYPE_DI): Ditto.
18698 (V8HI_FTYPE_QI): Ditto.
18699 (V16HI_FTYPE_HI): Ditto.
18700 (V32HI_FTYPE_SI): Ditto.
18701 (V4SI_FTYPE_QI): Ditto.
18702 (V4SI_FTYPE_HI): Ditto.
18703 (V8SI_FTYPE_QI): Ditto.
18704 (V8SI_FTYPE_HI): Ditto.
18705 (V2DI_FTYPE_QI): Ditto.
18706 (V4DI_FTYPE_QI): Ditto.
18707 (HI_FTYPE_HI_HI): Ditto.
18708 (SI_FTYPE_SI_SI): Ditto.
18709 (DI_FTYPE_DI_DI): Ditto.
18710 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18711 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18712 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18713 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18714 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18715 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18716 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18717 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18718 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18719 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18720 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18721 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18722 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18723 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18724 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18725 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18726 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18727 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18728 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18729 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18730 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18731 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18732 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18733 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18734 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18735 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18736 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18737 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18738 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18739 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18740 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18741 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18742 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18743 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18744 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18745 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18746 (V16SI_FTYPE_HI): Ditto.
18747 (V8DI_FTYPE_QI): Ditto.
18748 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18749 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18750 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18751 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18752 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18753 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18754 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18755 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18756 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18757 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18758 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18759 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18760 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18761 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18762 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18763 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18764 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18765 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18766 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18767 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18768 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18769 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18770 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18771 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18772 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18773 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18774 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18775 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18776 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18777 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18778 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18779 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18780 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18781 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18782 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18783 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18784 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18785 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18786 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18787 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18788 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18789 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18790 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18791 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18792 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18793 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18794 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18795 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18796 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18797 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18798 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18799 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18800 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18801 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18802 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18803 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18804 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18805 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18806 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18807 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18808 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18809 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18810 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18811 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18812 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18813 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18814 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18815 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18816 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18817 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18818 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18819 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18820 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18821 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18822 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18823 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18824 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18825 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18826 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18827 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18828 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18829 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18830 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18831 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18832 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18833 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18834 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18835 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18836 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18837 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18838 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18839 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18840 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18841 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18842 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18843 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18844 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18845 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18846 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18847 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18848 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18849 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18850 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18851 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18852 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18853 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18854 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18855 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18856 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18857 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18858 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18859 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18860 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18861 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18862 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18863 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18864 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18865 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18866 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18867 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18868 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18869 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18870 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18871 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18872 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18873 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18874 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18875 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18876 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18877 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18878 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18879 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18880 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18881 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18882 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18883 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18884 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18885 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18886 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18887 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18888 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18889 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18890 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18891 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18892 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18893 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18894 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18895 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18896 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18897 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18898 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18899 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18900 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18901 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18902 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18903 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18904 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18905 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18906 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18907 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18908 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18909 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18910 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18911 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18912 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18913 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18914 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18915 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18916 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18917 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18918 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18919 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18920 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18921 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18922 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18923 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18924 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18925 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18926 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18927 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18928 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18929 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18930 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18931 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18932 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18933 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18934 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18935 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18936 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18937 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18938 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18939 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18940 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18941 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18942 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18943 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18944 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18945 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18946 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18947 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18948 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18949 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18950 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18951 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18952 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18953 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18954 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18955 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18956 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18957 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18958 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18959 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18960 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18961 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18962 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18963 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18964 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18965 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18966 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18967 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18968 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18969 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18970 (QI_FTYPE_V8DF_INT_QI): Ditto.
18971 (QI_FTYPE_V4DF_INT_QI): Ditto.
18972 (QI_FTYPE_V2DF_INT_QI): Ditto.
18973 (HI_FTYPE_V16SF_INT_HI): Ditto.
18974 (QI_FTYPE_V8SF_INT_QI): Ditto.
18975 (QI_FTYPE_V4SF_INT_QI): Ditto.
18976 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18978 2015-07-31 Richard Biener <rguenther@suse.de>
18980 * gimple-fold.c (fold_gimple_assign): Remove folding of
18983 2015-07-31 Tom de Vries <tom@codesourcery.com>
18985 PR tree-optimization/66846
18986 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18987 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18988 (expand_omp_target) [ENABLE_CHECKING]: Same.
18989 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18990 cfun if !LOOPS_NEED_FIXUP.
18991 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
18992 that omp_for already has its own loop struct.
18993 * tree-parloops.c (create_phi_for_local_result)
18994 (create_call_for_reduction): Handle simple latch bb.
18995 (create_parallel_loop): Add simple latch bb to preserve
18996 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
18997 (gen_parallel_loop): Remove call to cancel_loop_tree.
18998 (parallelize_loops): Skip loops that are inner loops of parallelized
19000 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19001 verify_loop_structure.
19003 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19005 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19006 * config/v850/v850.md (RV_REGNUM): New constants.
19007 * config/v850/v850.c (v850_libcall_value): New functions.
19008 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19009 (TARGET_LIBCALL_VALUE): Define.
19011 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19013 * rtl.h (lowpart_subreg): Move in file.
19014 * loop-iv.c (lowpart_subreg): Move to...
19015 * simplify-rtx.c (lowpart_subreg): ...here.
19016 (simplify_binary_operation_1): Use lowpart_subreg instead of
19017 simplify_gen_subreg.
19018 * expr.c (expand_expr_real_2): Ditto.
19019 * emit-rtl.c (gen_lowpart_common): Ditto.
19020 * combine.c (gen_lowpart_for_combine): Ditto.
19021 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19022 expand_debug_source_expr): Ditto.
19024 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
19026 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19027 (expand_builtin_atomic_clear): Remove support for atomic_clear
19030 2015-07-30 Richard Biener <rguenther@suse.de>
19032 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19033 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19034 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
19035 redundant operand canonicalization.
19037 2015-07-30 David Sherwood <david.sherwood@arm.com>
19039 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19040 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19041 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19042 * config/arm/arm.c (neon_valid_immediate): Likewise.
19043 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19044 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19045 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19046 (expand_vec_perm_vpshufb2_vpermq): Likewise.
19047 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19048 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19049 * config/i386/sse.md
19050 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19051 (*ssse3_palignr<mode>_perm): Likewise.
19052 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19053 * config/spu/spu.c (arith_immediate_p): Likewise.
19054 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19055 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19057 2015-07-30 Richard Biener <rguenther@suse.de>
19059 * genmatch.c (decision_tree::gen_gimple): Merge with ...
19060 (decision_tree::gen_generic): ... this into ...
19061 (decision_tree::gen): ... this.
19062 (main): Adjust callers.
19064 2015-07-30 Richard Biener <rguenther@suse.de>
19066 * genmatch.c (verbose): New global.
19067 (warning_at): Add overload with source_location.
19068 (capture_info::capture_info): Add bool whether generating gimple
19069 or generic. Add gimple member.
19070 (capture_info::cinfo): Add capture member.
19071 (capture_info::walk_match): Record capture. Warn on
19072 non-captured leafs.
19073 (capture_info::walk_c_expr): Add more fragments captures cannot
19074 escape through. Warn on escaped captures.
19075 (dt_simplify::gen_1): Warn on operands we force to have no
19077 (main): Initialize verbose.
19078 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19080 2015-07-30 Richard Biener <rguenther@suse.de>
19082 PR middle-end/67053
19083 * match.pd: Allow both operands to independently have conversion
19084 when simplifying compares of addresses.
19086 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
19090 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19091 around those cases that need one.
19093 2015-07-29 Aditya Kumar <hiraditya@msn.com>
19095 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19097 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
19099 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19100 New. Copied from config/i386/gnu-user.h.
19101 (ASM_COMMENT_START): Likewise.
19102 (DBX_REGISTER_NUMBER): Likewise.
19104 2015-07-29 Richard Biener <rguenther@suse.de>
19106 * gimple-fold.c (fold_gimple_cond): Remove.
19107 (fold_stmt_1): Do not call it.
19109 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
19111 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19112 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19114 * config/aarch64/aarch64-modes.def: Add HFmode.
19116 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19117 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19119 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19120 aarch64_promoted_type): New.
19122 (aarch64_float_const_representable_p): Disable HFmode.
19123 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19124 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19125 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19127 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19128 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19130 * config/aarch64/iterators.md (GPF_F16): New.
19132 2015-07-29 Richard Biener <rguenther@suse.de>
19134 * match.pd: Merge address comparison patterns and make them
19135 handle some more cases.
19137 2015-07-29 Richard Biener <rguenther@suse.de>
19139 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19140 (parser::parse_capture): Add bool argument on whether to reject
19142 (parser::parse_expr): Adjust.
19143 (parser::parse_op): Likewise.
19144 (parser::parse_pattern): Likewise.
19146 2015-07-29 Richard Biener <rguenther@suse.de>
19148 * gimple-fold.c (has_use_on_stmt): New function.
19149 (replace_stmt_with_simplification): Use it to allow
19150 abnormals originally referenced in the stmt.
19151 (fold_stmt_1): Canonicalize operand order.
19153 2015-07-28 David Sherwood <david.sherwood@arm.com>
19155 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19156 GET_MODE_INNER unconditionally.
19157 * config/spu/spu.c (arith_immediate_p): Likewise.
19158 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19159 * expmed.c (synth_mult): Remove check for VOIDmode result from
19161 (expand_mult_const): Likewise.
19162 * fold-const.c (fold_binary_loc): Replace call to element_precision
19163 with call to GET_MODE_PRECISION.
19164 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19166 (emit_mode_inner): Likewise.
19167 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19169 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19170 (GET_MODE_UNIT_PRECISION): Likewise.
19171 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19172 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19173 * stor-layout.c (bitwise_type_for_mode): Update assert.
19174 (element_precision): Remove.
19176 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19178 * target-insns.def (reload_load_address): New targetm instruction
19180 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19182 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19184 * target-insns.def (atomic_test_and_set): New targetm instruction
19186 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19187 HAVE_*/gen_* interface.
19189 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19191 * target-insns.def (can_extend, ptr_extend): New targetm instruction
19193 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19194 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19195 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19196 * rtlanal.c (nonzero_bits1): Likewise.
19197 (num_sign_bit_copies1): Likewise.
19199 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19201 * target-insns.def (eh_return): New targetm instruction pattern.
19202 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19204 * function.c (thread_prologue_and_epilogue_insns): Remove
19205 preprocessor condition.
19207 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19209 * target-insns.def (indirect_jump): New targetm instruction pattern.
19210 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19213 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19215 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19216 instead of nonimmediate_operand. Remove C condiition.
19218 2015-07-28 Richard Biener <rguenther@suse.de>
19220 * match.pd: Add more simplification of address comparisons.
19222 2015-07-28 Richard Biener <rguenther@suse.de>
19224 * match.pd: Re-order two cases in comparison with max/min
19225 value simplification to make it apply for bools.
19227 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19229 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19230 Handle simple SIGN_EXTEND or ZERO_EXTEND.
19231 (aarch64_rtx_costs): Properly strip extend or extract before
19232 passing down to rtx costs again.
19234 2015-07-28 Nick Clifton <nickc@redhat.com>
19236 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19237 Optimizes the case where -mes0 is active and a constant symbolic
19239 * config/rl78/rl78-protos.h: Prototype the new function.
19240 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19242 2015-07-28 Tom de Vries <tom@codesourcery.com>
19244 * tree-parloops.c (reduc_stmt_res): New function.
19245 (initialize_reductions, add_field_for_reduction)
19246 (create_phi_for_local_result, create_loads_for_reductions)
19247 (create_stores_for_reduction, build_new_reduction): Handle case that
19248 reduc_stmt is a phi.
19249 (gather_scalar_reductions): Allow double_reduc reductions.
19251 2015-07-28 Richard Biener <rguenther@suse.de>
19253 * fold-const.c (fold_comparison): Remove equality folding
19254 of decl addresses ...
19255 * match.pd: ... here and merge with existing pattern.
19257 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19259 PR tree-optimization/66828
19260 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19261 from int64_t to uint64_t.
19263 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
19265 * opts-common.c (read_cmdline_option): List DriverOnly enum values
19266 as valid only in the error message of the driver, not in the
19267 messages of the language compilers.
19269 2015-07-27 Tom de Vries <tom@codesourcery.com>
19271 * tree-parloops.c (gather_scalar_reductions): Simplify function
19274 2015-07-27 Marek Polacek <polacek@redhat.com>
19276 * ipa-devirt.c (types_same_for_odr): Fix typo.
19278 2015-07-27 Jason Merrill <jason@redhat.com>
19281 * dwarf2out.c (gen_inlined_subroutine_die): Check
19282 cgraph_function_possibly_inlined_p.
19284 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19286 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19287 Place integer variant first.
19288 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19290 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19293 * config/arm/arm-builtins.c (enum arm_builtins):
19294 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19295 (ARM_BUILTIN_NEON_BASE): Rename macro to....
19296 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19297 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19298 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19300 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19303 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19304 Add qualifier_lane_index.
19305 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19306 (arm_getlane_qualifiers): Use qualifier_lane_index.
19307 (arm_lanemac_qualifiers): Rename to...
19308 (arm_mac_n_qualifiers): ...this.
19309 (LANEMAC_QUALIFIERS): Rename to...
19310 (MAC_N_QUALIFIERS): ...this.
19311 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19312 (arm_setlane_qualifiers): Use qualifier_lane_index.
19313 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19314 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19315 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19316 (arm_expand_neon_builtin): Handle qualifier_lane_index.
19318 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19319 * config/arm/arm.c (bounds_check): Likewise, improve error message.
19320 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19321 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19322 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19323 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19324 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19325 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19326 qualifiers to TERNOP_IMM.
19327 (vdup_lane): Change qualifiers to GETLANE.
19328 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19329 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19330 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19331 vqdmlsl_n): Change qualifiers to MAC_N.
19333 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19334 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19335 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19336 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19337 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19338 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19339 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19340 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19341 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19342 Remove call to neon_lane_bounds.
19344 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19346 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19347 Place integer variant first.
19349 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19351 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19352 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19353 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19354 for armv6kz targets.
19355 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19356 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19357 (FL_FOR_ARCH6ZK): Remove.
19358 (FL_FOR_ARCH6KZ): New.
19359 (arm_arch6zk): New declaration.
19360 * config/arm/arm-tables.opt: Regenerate.
19361 * config/arm/arm.c (arm_arch6kz): New.
19362 (arm_option_override): Set arm_arch6kz.
19363 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19364 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19365 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19367 2015-07-27 Marek Polacek <polacek@redhat.com>
19371 * doc/invoke.texi: Document -Wtautological-compare.
19373 2015-07-27 Richard Biener <rguenther@suse.de>
19375 * genmatch.c (decision_tree::gen_gimple): Split out large
19376 subtrees into separate functions.
19377 (decision_tree::gen_generic): Likewise.
19379 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19381 * config/alpha/alpha.c: Use SUBREG_P predicate.
19382 * config/alpha/predicates.md: Ditto.
19384 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19386 * config.host (s390*-*-*): Include driver-native.c only when
19387 building with s390* as host *and* target.
19389 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19392 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19393 T bit register modified_between_p check.
19395 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19397 * config/i386/i386.c: Use SUBREG_P predicate.
19398 * config/i386/i386.md: Ditto.
19399 * config/i386/sse.md: Ditto.
19400 * config/i386/predicates.md: Ditto.
19402 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19405 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19406 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19408 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19410 * Makefile.in: Remove use of TREEBROWSER.
19411 * config.in: Regenerated.
19412 * configure: Regenerated.
19413 * configure.ac: Remove definition of TREEBROWSER.
19414 * tree-browser.c: Removed.
19415 * tree-browser.def: Removed.
19417 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19419 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19420 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19422 (scopdet_basic_block_info): Print when a loop or bb cannot be
19423 represented in Graphite.
19425 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19428 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19429 execution guard when min_size is less than size_needed.
19431 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19433 * doc/install.texi: Document supported versions of ISL.
19435 2015-07-25 Jeff Law <law@redhat.com>
19439 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19440 unable to find X NE 0 in the tables, return X as the simplified
19442 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19443 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19444 to VISISTED_BBS. */
19445 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19446 after removing the control flow statement and unnecessary edges.
19448 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19451 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19453 PR rtl-optimization/64164
19454 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19455 * tree-ssa-copyrename.c: Removed.
19456 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19457 -ftree-coalesce-vars.
19458 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19459 * common.opt (ftree-copyrename): Ignore.
19460 (ftree-coalesce-inlined-vars): Likewise.
19461 * doc/invoke.texi: Remove the ignored options above.
19462 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19463 * tree-ssa-coalesce.h: ... here.
19464 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19465 headers required by it.
19466 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19467 across variables when flag_tree_coalesce_vars. Check register
19468 use and promoted modes to allow coalescing. Moved to
19469 tree-ssa-coalesce.c.
19470 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19471 with its member functions to tree-ssa-coalesce.c.
19472 (var_map_base_init): Likewise. Renamed to
19473 compute_samebase_partition_bases.
19474 (partition_view_normal): Drop want_bases parameter.
19475 (partition_view_bitmap): Likewise.
19476 * tree-ssa-live.h: Adjust declarations.
19477 * tree-ssa-coalesce.c: Include explow.h.
19478 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19479 default defs at the entry point.
19480 (dump_part_var_map): New.
19481 (compute_optimized_partition_bases): New, called by...
19482 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19483 of compute_samebase_partition_bases. Adjust.
19484 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19485 * cfgexpand.c (leader_merge): New.
19486 (get_rtl_for_parm_ssa_default_def): New.
19487 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19488 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19489 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19490 redundant MEM attr setting.
19491 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19493 (expand_one_stack_var): ... this. New wrapper to check and
19494 skip already expanded SSA partitions.
19495 (record_alignment_for_reg_var): New, factored out of...
19496 (expand_one_var): ... this.
19497 (expand_one_ssa_partition): New.
19498 (adjust_one_expanded_partition_var): New.
19499 (expand_one_register_var): Check and skip already expanded SSA
19501 (expand_used_vars): Don't create DECLs for anonymous SSA
19502 names. Expand all SSA partitions, then adjust all SSA names.
19503 (pass::execute): Replace the loops that set
19504 SA.partition_to_pseudo from partition leaders and cleared
19505 DECL_RTL for multi-location variables, and that which used to
19506 rename vars and set attrs, with one that clears DECL_RTL and
19507 checks that PARMs and RESULTs default_defs match DECL_RTL.
19508 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19509 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19510 * explow.c (promote_ssa_mode): New.
19511 * explow.h (promote_ssa_mode): Declare.
19512 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19513 * function.c: Include cfgexpand.h.
19514 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19515 (use_register_for_parm_decl): Wrapper for the above to
19516 special-case the result_ptr.
19517 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19518 (split_complex_args): Take assign_parm_data_all argument.
19519 Pass it to rtl_for_parm. Set up rtl and context for split
19521 (assign_parms_augmented_arg_list): Adjust.
19522 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19523 multiple locations. Recognize split complex args.
19524 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19525 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19526 (assign_parm_setup_block): Prefer SSA-assigned location.
19527 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19528 if stack_parm is NULL.
19529 (assign_parm_setup_stack): Prefer SSA-assigned location.
19530 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19531 rtl before testing for pointer bounds. Special-case result_ptr.
19532 (expand_function_start): Maybe reset DECL_RTL of result.
19533 Prefer SSA-assigned location for result and static chain.
19534 Factor out DECL_RESULT and SET_DECL_RTL.
19535 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19536 anonymous SSA names. Use promote_ssa_mode.
19537 (get_temp_reg): Likewise.
19538 (remove_ssa_form): Adjust.
19539 * stor-layout.c (layout_decl): Don't set mem attributes of
19541 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19542 and get its reg_usage for reg invalidation.
19543 (compute_bb_dataflow): Pass it insn.
19544 (emit_notes_in_bb): Likewise.
19546 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19548 * config/i386/i386.c (ix86_va_start): Remove
19549 unneeded !TARGET_64BIT check.
19550 (ix86_gimplify_va_arg): Ditto.
19552 2015-07-24 Tom de Vries <tom@codesourcery.com>
19554 * graphite-sese-to-poly.c (build_poly_scop): Always call
19555 rewrite_commutative_reductions_out_of_ssa.
19557 2015-07-24 Tom de Vries <tom@codesourcery.com>
19559 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19560 flag_associative_math to FLOAT_TYPE_P. Honour
19561 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19563 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19566 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19567 and "%qD" in warning_at instead of "%q+D" in warning.
19569 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19571 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19572 (ix86_function_abi): Cleanup.
19574 2015-07-24 Michael Darling <darlingm@gmail.com>
19577 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19578 * configure: Likewise
19579 * configure.ac: Likewise
19580 * doc/install.texi: Likewise
19581 * doc/tm.texi: Likewise
19582 * doc/tm.texi.in: Likewise
19584 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19586 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19587 manually swapping values.
19588 * cse.c (fold_rtx): Likewise.
19589 * lra-eliminations.c (form_sum): Likewise.
19591 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19594 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19595 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19596 (*jcc_1, *jcc_2, jump, simple_return_internal)
19597 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19598 Set length_nobnd attribute instead of length attribute.
19599 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19600 (length_nobnd): Remove attribute.
19601 (length): Remove length_nobnd processing.
19603 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19605 * gimplify.c (omp_default_clause): New function. Reorganize flow
19606 for clarity. Broken out of ...
19607 (omp_notice_variable): ... here.
19609 2015-07-24 Gary Funck <gary@intrepid.com>
19611 PR middle-end/66984
19612 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19613 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19615 2015-07-24 Tom de Vries <tom@codesourcery.com>
19617 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19618 exit-first loop transform.
19620 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19623 * tree-cfg.c (struct replace_decls_d): New struct.
19624 (replace_block_vars_by_duplicates_1): New function.
19625 (replace_block_vars_by_duplicates): Use it to replace the decls
19626 in the value exprs by duplicates.
19628 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19630 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19631 -shared, -symbolic, -rdynamic.
19633 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19636 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19637 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19640 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19643 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19644 edge summary is available.
19646 2015-07-24 Richard Biener <rguenther@suse.de>
19648 * genmatch.c (struct dt_node): Add statistic fields.
19649 (dt_node::analyze): New method.
19650 (decision_tree::gen_gimple): Call analyze on the root node
19651 and print statistics to stderr.
19652 (decision_tree::gen_generic): Likewise.
19654 2015-07-24 Richard Biener <rguenther@suse.de>
19656 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19657 against the highest or lowest possible integer ...
19658 * match.pd: ... as patterns here.
19660 2015-07-24 Richard Biener <rguenther@suse.de>
19662 * genmatch.c (struct capture_info): Add same_as field.
19663 (capture_info::capture_info): Initialize same_as.
19664 (capture_info::walk_match): Compute same_as.
19665 (capture_info::walk_result): Compute stuff for the leader.
19666 (capture_info::walk_c_expr): Likewise.
19667 (dt_simplify::gen_1): Only look at leaders when deciding
19668 to force no side-effects or emit side-effects of omitted operands.
19670 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19672 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19673 reg note to the GPR -> FPR save instructions.
19675 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19677 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19679 (s390_expand_insv): Don't generate risbg pattern for constant zero
19681 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19682 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19685 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19687 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19690 (s390_issue_rate): Likewise.
19691 (s390_sched_reorder): Likewise.
19692 (s390_sched_variable_issue): Likewise.
19693 (s390_loop_unroll_adjust): Likewise.
19694 (s390_option_override): Likewise.
19696 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19698 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19699 processor capabilities with -march=native.
19700 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19701 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19702 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19704 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19706 * config/s390/s390.c (s390_issue_rate): Handle
19707 PROCESSOR_2094_Z9_EC.
19708 (s390_option_override): Likewise.
19709 (s390_adjust_priority): Likewise.
19711 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19713 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19714 when cross compiling.
19716 2015-07-24 Richard Biener <rguenther@suse.de>
19718 * fold-const.c (maybe_canonicalize_comparison_1): Move
19719 A code CST canonicalization ...
19720 * match.pd: ... to a pattern here.
19722 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19725 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19727 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19728 (HONOR_REG_ALLOC_ORDER): Define.
19730 2015-07-24 Richard Biener <rguenther@suse.de>
19732 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19733 * fold-const.c (fold_comparison): Move parameter does not
19734 alias &local simplification ...
19735 * match.pd: ... as a pattern here.
19737 2015-07-24 Richard Biener <rguenther@suse.de>
19739 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19740 valueizing call operands.
19741 * gimple-match-head.c (maybe_push_res_to_seq): Take
19742 number of call arguments from ops array.
19743 (do_valueize): New function.
19744 (gimple_simplify): Return true if valueization changed
19745 any operand even if the result didn't simplify further.
19747 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19749 PR middle-end/25530
19750 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19752 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19754 PR middle-end/25529
19755 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19757 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19759 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19762 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19764 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19767 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19769 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19770 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19772 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19773 ms_va_list_type_node initialization.
19775 2015-07-23 Jeff Law <law@redhat.com>
19778 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19779 unable to find X NE 0 in the tables, return X as the simplified
19781 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19782 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19783 to VISISTED_BBS. */
19784 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19785 after removing the control flow statement and unnecessary edges.
19787 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19789 * tree-pass.h (get_current_pass_name): Removed.
19791 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19793 PR rtl-optimization/64164
19794 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19795 * tree-ssa-copyrename.c: Removed.
19796 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19797 -ftree-coalesce-vars.
19798 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19799 * common.opt (ftree-copyrename): Ignore.
19800 (ftree-coalesce-inlined-vars): Likewise.
19801 * doc/invoke.texi: Remove the ignored options above.
19802 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19803 * tree-ssa-coalesce.h: ... here.
19804 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19805 headers required by it.
19806 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19807 across variables when flag_tree_coalesce_vars. Check register
19808 use and promoted modes to allow coalescing. Moved to
19809 tree-ssa-coalesce.c.
19810 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19811 with its member functions to tree-ssa-coalesce.c.
19812 (var_map_base_init): Likewise. Renamed to
19813 compute_samebase_partition_bases.
19814 (partition_view_normal): Drop want_bases parameter.
19815 (partition_view_bitmap): Likewise.
19816 * tree-ssa-live.h: Adjust declarations.
19817 * tree-ssa-coalesce.c: Include explow.h.
19818 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19819 default defs at the entry point.
19820 (dump_part_var_map): New.
19821 (compute_optimized_partition_bases): New, called by...
19822 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19823 of compute_samebase_partition_bases. Adjust.
19824 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19825 * cfgexpand.c (leader_merge): New.
19826 (get_rtl_for_parm_ssa_default_def): New.
19827 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19828 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19829 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19830 redundant MEM attr setting.
19831 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19833 (expand_one_stack_var): ... this. New wrapper to check and
19834 skip already expanded SSA partitions.
19835 (record_alignment_for_reg_var): New, factored out of...
19836 (expand_one_var): ... this.
19837 (expand_one_ssa_partition): New.
19838 (adjust_one_expanded_partition_var): New.
19839 (expand_one_register_var): Check and skip already expanded SSA
19841 (expand_used_vars): Don't create DECLs for anonymous SSA
19842 names. Expand all SSA partitions, then adjust all SSA names.
19843 (pass::execute): Replace the loops that set
19844 SA.partition_to_pseudo from partition leaders and cleared
19845 DECL_RTL for multi-location variables, and that which used to
19846 rename vars and set attrs, with one that clears DECL_RTL and
19847 checks that PARMs and RESULTs default_defs match DECL_RTL.
19848 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19849 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19850 * explow.c (promote_ssa_mode): New.
19851 * explow.h (promote_ssa_mode): Declare.
19852 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19853 * function.c: Include cfgexpand.h.
19854 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19855 (use_register_for_parm_decl): Wrapper for the above to
19856 special-case the result_ptr.
19857 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19858 (split_complex_args): Take assign_parm_data_all argument.
19859 Pass it to rtl_for_parm. Set up rtl and context for split
19861 (assign_parms_augmented_arg_list): Adjust.
19862 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19863 multiple locations. Recognize split complex args.
19864 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19865 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19866 (assign_parm_setup_block): Prefer SSA-assigned location.
19867 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19868 if stack_parm is NULL.
19869 (assign_parm_setup_stack): Prefer SSA-assigned location.
19870 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19871 rtl before testing for pointer bounds. Special-case result_ptr.
19872 (expand_function_start): Maybe reset DECL_RTL of result.
19873 Prefer SSA-assigned location for result and static chain.
19874 Factor out DECL_RESULT and SET_DECL_RTL.
19875 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19876 anonymous SSA names. Use promote_ssa_mode.
19877 (get_temp_reg): Likewise.
19878 (remove_ssa_form): Adjust.
19879 * stor-layout.c (layout_decl): Don't set mem attributes of
19881 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19882 and get its reg_usage for reg invalidation.
19883 (compute_bb_dataflow): Pass it insn.
19884 (emit_notes_in_bb): Likewise.
19886 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
19889 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19891 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19892 (rs6000_emit_2insn_and): Handle dot forms.
19893 * config/rs6000/rs6000.md (and<mode>3): Adjust.
19894 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
19895 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19897 2015-07-23 Richard Biener <rguenther@suse.de>
19899 * generic-match-head.c: Include cgraph.h.
19900 * gimple-match-head.c: Likewise.
19901 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19903 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19904 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
19907 2015-07-23 Richard Biener <rguenther@suse.de>
19909 * gimple-fold.c (fold_gimple_cond): Do not require folding
19910 results to pass valid_gimple_rhs_p.
19911 * tree-cfg.h (fold_cond_expr_cond): Remove.
19912 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19913 (make_edges): Do not call it.
19914 * tree-inline.c (tree_function_versioning): Likewise.
19916 2015-07-23 Tom de Vries <tom@codesourcery.com>
19918 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19919 vect_force_simple_reduction.
19920 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19921 (vect_is_simple_reduction_1): Add and handle
19922 need_wrapping_integral_overflow parameter.
19923 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19924 need_wrapping_integral_overflow parameter.
19925 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19926 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19929 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
19931 PR tree-optimization/66926,66951
19932 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19933 INNER_LOOP and fix up condition for renaming virtual operands.
19935 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19937 * combine.c (try_combine): Use std::swap instead of manually
19940 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
19942 * config/mips/i6400.md: New file.
19943 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19944 (mips64r6): Likewise.
19946 * config/mips/mips-tables.opt: Regenerate.
19947 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19948 (mips_issue_rate): Add support for i6400.
19949 (mips_multipass_dfa_lookahead): Likewise.
19950 * config/mips/mips.h (TUNE_I6400): Define.
19951 * config/mips/mips.md: Include i6400.md.
19952 (processor): Add i6400.
19953 * doc/invoke.texi (-march=@var{arch}): Add i6400.
19955 2015-07-23 Richard Biener <rguenther@suse.de>
19957 PR middle-end/66916
19958 * match.pd: Guard widen and sign-change comparison simplification
19961 2015-07-23 Richard Biener <rguenther@suse.de>
19963 PR tree-optimization/66945
19964 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19965 ::before_dom_children): Force the propagators idea of
19966 non-executable edges to materialize, not what the folder
19969 2015-07-23 Richard Biener <rguenther@suse.de>
19971 * gimple.h (gimple_cond_make_false): Use 0 != 0.
19972 (gimple_cond_make_true): Use 1 != 0.
19974 2015-07-22 DJ Delorie <dj@redhat.com>
19976 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19979 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19980 (ashrhi3): Likewise.
19981 (lshrhi3): Likewise.
19982 (movhi): Take advantage of zero-extend to load small constants.
19983 (movpsi): Likewise.
19984 (and<mode>3): Likewise.
19985 (zero_extendqihi2): Likewise.
19986 (zero_extendqisi2): New.
19987 * config/msp430/constraints.md (N,O): New.
19988 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19990 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
19993 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19994 to enum feature_priority and feature_list.
19995 (fold_builtin_cpu): Add F_AES to enum processor_features
19996 and isa_names_table.
19998 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20001 * config/i386/linux-common.h (MPX_SPEC): Use linker option
20002 for 64bit target only.
20004 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
20006 * config/nvptx/nvptx.c: Expand some comments.
20008 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
20010 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20011 (cortex_a53_advsimd): ...This.
20013 2015-07-22 Richard Biener <rguenther@suse.de>
20015 * genmatch.c (expr::gen_transform): Clarify error message
20016 and display location.
20018 2015-07-22 Richard Biener <rguenther@suse.de>
20020 * genmatch.c (struct operand): Add location member.
20021 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20023 (struct simplify): Remove match_location and result_location
20025 (elsehwere): Adjust.
20027 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
20029 * config/mips/m5100.md: New file.
20030 * config/mips/mips-cpus.def (m5100, m5101): Define.
20031 * config/mips/mips-tables.opt: Regenerate.
20032 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20033 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20034 -march=m5101 to -mips32r5.
20035 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20036 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20038 * config/mips/mips.md: Include m5100.md.
20039 (processor): Add m5100.
20040 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20042 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
20044 * config/mips/mips-cpus.def (interaptiv): Define.
20045 * config/mips/mips-tables.opt: Regenerate.
20046 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20048 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20049 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20051 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20054 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20055 (HONOR_REG_ALLOC_ORDER): Define.
20057 2015-07-22 Richard Biener <rguenther@suse.de>
20059 PR tree-optimization/66952
20060 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20061 blocks we end up executing unconditionally reset all SSA
20062 info such as range and alignment.
20063 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20064 * tree-ssanames.c (reset_flow_sensitive_info): New function.
20066 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20068 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20071 2015-07-22 Richard Biener <rguenther@suse.de>
20073 * genmatch.c (parser::parse_result): Properly handle
20074 match with result operands and conditions.
20076 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20079 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20080 Add qualifier_struct_load_store_lane_index.
20081 (aarch64_types_loadstruct_lane_qualifiers): Use
20082 qualifier_struct_load_store_lane_index for lane index argument for
20084 (aarch64_types_storestruct_lane_qualifiers): Ditto.
20085 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20086 (aarch64_simd_expand_args): Add new argument describing mode of
20087 builtin. Check lane bounds for arguments with
20088 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20089 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20090 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20091 (aarch64_simd_expand_builtin): Handle arguments with
20092 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20093 aarch64_simd_expand_args.
20094 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20095 vst[234]_lane with BUILTIN_VALLDIF.
20096 * config/aarch64/aarch64-simd.md:
20097 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20098 endianness reversal on lane index.
20099 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20100 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20101 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20102 (vec_store_lanesci_lane<mode>): Ditto.
20103 (vec_store_lanesxi_lane<mode>): Ditto.
20104 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20105 reversal of lane index.
20106 (aarch64_ld3_lane<mode>): Ditto.
20107 (aarch64_ld4_lane<mode>): Ditto.
20108 (aarch64_st2_lane<mode>): Ditto.
20109 (aarch64_st3_lane<mode>): Ditto.
20110 (aarch64_st4_lane<mode>): Ditto.
20111 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20112 to qmode. Add new mode parameter. Update uses.
20113 (__LD3_LANE_FUNC): Ditto.
20114 (__LD4_LANE_FUNC): Ditto.
20115 (__ST2_LANE_FUNC): Ditto.
20116 (__ST3_LANE_FUNC): Ditto.
20117 (__ST4_LANE_FUNC): Ditto.
20119 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
20121 * doc/invoke.texi (Language Independent Options): Rename node to
20122 Diagnostic Message Formatting Options.
20124 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
20127 * lra-remat.c (operand_to_remat): Prevent using insns with input
20128 subregs processed separately by IRA.
20130 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
20132 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20134 (single_imm_use): Check for iterator node.
20135 (num_imm_uses): Likewise.
20136 * tree-ssa-operands.c (has_zero_uses_1): Delete.
20137 (single_imm_use_1): Check for iterator node.
20139 2015-07-21 Mike Frysinger <vapier@gentoo.org>
20140 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20142 * configure.ac: Add check for new options in isl-0.15.
20143 * config.in, configure: Rebuilt.
20144 * graphite-blocking.c: Include <isl/constraint.h>
20145 * graphite-interchange.c, graphite-poly.c: Likewise.
20146 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20147 * graphite.c: Likewise.
20148 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20150 * graphite-dependences.c: Include <isl/constraint.h>.
20151 (max_number_of_out_dimensions): Returns isl_stat.
20152 (extend_schedule_1): Likewise
20153 (extend_schedule): Corresponding changes.
20154 * graphite-optimize-isl.c: Include <isl/constraint.h> and
20156 (getSingleMap): Change return type of isl_stat.
20157 (optimize_isl): Conditionally use
20158 isl_options_set_schedule_serialize_sccs.
20159 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20160 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20162 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
20165 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20166 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20168 2015-07-21 Richard Biener <rguenther@suse.de>
20170 PR tree-optimization/66948
20171 * genmatch.c (capture_info::walk_match): Also recurse to
20172 captures. Properly compute expr state from captures of
20174 * match.pd: Add single-use guards to
20175 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20177 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
20179 * config/nvptx/mkoffload.c (process): Add static destructor call.
20181 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20183 PR middle-end/66915
20184 * match.pd (A - B -> A + (-B)): Don't allow folding
20185 when type if a fixed-point type.
20187 2015-07-20 DJ Delorie <dj@redhat.com>
20189 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20190 (iorqi3_real): Likewise for set1.
20192 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
20194 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20197 2015-07-20 Aditya Kumar <hiraditya@msn.com>
20199 * graphite-isl-ast-to-gimple.c:
20200 Refactor so that each function can access 'region'. This will help
20201 maintain a parameter rename_map within a region.
20203 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20205 * config/rs6000/rs6000.md (*lt0_disi): New.
20207 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20210 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
20211 "available letters" comment.
20212 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20213 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20214 and_2rld_operand): Delete.
20215 (and_operand): Adjust.
20216 (rotate_mask_operator): New.
20217 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20218 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20219 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20220 extract_ME): Delete.
20221 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20222 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20223 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20224 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20225 rs6000_emit_2insn_and): New.
20226 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20227 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20228 includes_rldic_lshift_p, includes_rldicr_lshift_p,
20229 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20230 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20231 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20232 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20233 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20234 rs6000_emit_2insn_and): New.
20235 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20236 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20238 <NOT>: Don't fall through to next case.
20239 <AND>: Handle the various rotate-and-mask cases directly.
20240 <IOR>: Always cost as one insn.
20241 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20242 (and<mode>3): Adjust expander for the new patterns.
20243 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20244 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20245 (*and<mode>3_imm_dot_shifted): New.
20246 (*and<mode>3_mask): Delete, rewrite as ...
20247 (and<mode>3_mask): ... New.
20248 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20249 (andsi3_internal0_nomc): Delete.
20250 (*andsi3_internal6): Delete.
20251 (*and<mode>3_2insn): New.
20252 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20253 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20254 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20255 *insvdi_internal3): Delete.
20256 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20257 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20258 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20259 *ior<mode>_mask): New.
20260 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20261 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20262 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20263 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20265 (ashr<mode>3): Delete expander.
20266 (*ashr<mode>3): Rename to ...
20267 (ashr<mode>3): ... This.
20268 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20269 (*rotldi3_internal4, *rotldi3_internal5 and split,
20270 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20271 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20272 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20273 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20274 (splitter for loading a mask): Adjust.
20275 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20277 2015-07-20 Marek Polacek <polacek@redhat.com>
20279 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20280 output_add_clobbers, output_added_clobbers_hard_reg_p,
20281 gen_rtx_scratch): Remove declarations.
20283 2015-07-20 Marek Polacek <polacek@redhat.com>
20286 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20288 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20290 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20291 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20293 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20295 * combine.c (combine_simplify_rtx): Move simplification step
20296 before various transformations/substitutions.
20298 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
20300 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20301 (struct int_traits): Likewise.
20303 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20305 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20306 function to vmsdbgout_function_decl.
20308 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20311 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20312 from misaligned positions.
20313 (ix86_expand_pinsr): Reject insertions to misaligned positions.
20315 2015-07-18 Sebastian Pop <s.pop@samsung.com>
20317 PR middle-end/46851
20318 PR middle-end/60340
20319 * Makefile.in: Removed omega.o.
20320 * common.opt: Document flag fcheck-data-deps as deprecated.
20321 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20322 its associated params: omega-max-vars, omega-max-geqs,
20323 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20324 omega-max-keys, omega-eliminate-redundant-constraints.
20325 * doc/loop.texi: Remove all the section on Omega.
20326 * graphite-blocking.c: Include missing params.h: it used to be
20327 included through tree-data-ref.h and omega.h.
20328 * graphite-isl-ast-to-gimple.c: Same.
20329 * graphite-optimize-isl.c: Same.
20330 * graphite-sese-to-poly.c: Same.
20331 * graphite.c: Same.
20334 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20335 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20336 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20337 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20338 * passes.def: Remove pass_check_data_deps.
20339 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20340 (dump_conflict_function): Same.
20341 (dump_subscript): Same.
20342 (print_direction_vector): Same.
20343 (print_dir_vectors): Same.
20344 (print_lambda_vector): Same.
20345 (print_dist_vectors): Same.
20346 (dump_data_dependence_relation): Same.
20347 (dump_data_dependence_relations): Same.
20348 (dump_dist_dir_vectors): Same.
20350 (init_omega_eq_with_af): Removed.
20351 (omega_extract_distance_vectors): Removed.
20352 (omega_setup_subscript): Removed.
20353 (init_omega_for_ddr_1): Removed.
20354 (init_omega_for_ddr): Removed.
20355 (ddr_consistent_p): Removed.
20356 (compute_affine_dependence): Do not use omega to check data
20358 (compute_data_dependences_for_bb): Removed.
20359 (analyze_all_data_dependences): Removed.
20360 (tree_check_data_deps): Removed.
20361 * tree-data-ref.h: Do not include omega.h.
20362 (compute_data_dependences_for_bb): Removed.
20363 (tree_check_data_deps): Removed.
20364 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20365 (make_pass_check_data_deps): Removed.
20366 * tree-ssa-phiopt.c: Include params.h.
20367 * tree-vect-data-refs.c: Same.
20368 * tree-vect-slp.c: Same.
20370 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20372 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20373 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20374 (mem->fpreg splitters): Ditto.
20375 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20376 Disable DFmode for TARGET_64BIT.
20378 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20381 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20382 chain on the stack.
20384 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20386 * config/nvptx/mkoffload.c (process): Constify host data.
20387 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20388 Constify host data.
20389 (generate_host_descr_file): Likewise.
20391 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20392 Sebastian Pop <s.pop@samsung.com>
20394 PR middle-end/61929
20395 * graphite-dependences.c (add_pdr_constraints): Renamed
20396 pdr->extent to pdr->subscript_sizes.
20397 * graphite-interchange.c (build_linearized_memory_access): Add
20398 back all gcc_assert's that the "isl_int to isl_val conversion"
20399 patch has removed. Refactored.
20400 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20401 * graphite-poly.c (new_poly_dr): Same.
20402 (free_poly_dr): Same.
20403 * graphite-poly.h (struct poly_dr): Same.
20404 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20405 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20406 * graphite-scop-detection.h: Fix space.
20407 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20408 back all gcc_assert's removed by a previous patch.
20409 (wrap): Remove the_isl_ctx global variable that the same patch has
20411 (build_loop_iteration_domains): Same.
20412 (add_param_constraints): Same.
20413 (pdr_add_data_dimensions): Same. Refactored.
20414 (build_poly_dr): Renamed extent to subscript_sizes.
20416 2015-07-17 Marek Polacek <polacek@redhat.com>
20418 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20419 * match.pd: ... here.
20421 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20423 * config/nvptx/mkoffload.c (process): Constify target data.
20424 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20425 Constify target data.
20426 (generate_target_offloadend_file): Likewise.
20428 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20430 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20431 to allow renaming of PHI arguments on edges incoming from outer
20432 loop header, add corresponding check before start PHI iterator.
20433 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20434 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20435 with true force_vectorize. Set-up dominator for outer loop too.
20436 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20437 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20438 was marked with force_vectorize and has restricted cfg.
20439 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20441 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20442 do peeling for outer loops.
20444 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20445 Matthias Klose <doko@ubuntu.com>
20447 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20448 build-sysroot, sysroot from the `Miscenalleous configure options' to
20449 the `Directories' section and strip trailing `/' from with_sysroot.
20450 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20451 * configure: Regenerated.
20453 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20456 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20457 (TARGET_HARD_DF_REGS): Ditto.
20458 (TARGET_HARD_XF_REGS): Ditto.
20459 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20460 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20461 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20462 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20463 (*movsf_internal): Add alternatives 16 and 17. Enable
20464 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20466 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20468 PR rtl-optimization/66891
20469 * calls.c (expand_call): Wrap precompute_register_parameters with
20470 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20472 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20474 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20475 Define target data struct and initialize it.
20477 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20479 PR rtl-optimization/66626
20480 * ira.h (emit-rtl.h): Include.
20481 (non_spilled_static_chain_regno_p): New.
20482 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20483 unless it is non spilled static chain pseudo.
20484 (assign_hard_rego): Spill memory profitable allocno unless it is
20485 non spilled static chain pseudo.
20486 (allocno_spill_priority_compare): Put non spilled static chain
20487 pseudo at the end of sorted array.
20488 (improve_allocation): Do nothing if we have static chain and
20490 (allocno__priority_compare_func): Put non spilled static chain
20491 pseudo at the beginning of sorted array.
20492 (move_spill_restore): Ignore non spilled static chain pseudo.
20493 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20494 to non spilled static chain pseudo.
20495 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20496 pseudo at the beginning of sorted array.
20497 (spill_for): Spill non spilled static chain pseudo last.
20498 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20499 check for equivalence.
20501 2015-07-16 Martin Liska <mliska@suse.cz>
20504 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20505 dst_ctx if it does not exist.
20507 2015-07-16 Martin Liska <mliska@suse.cz>
20509 * hash-set.h (remove): New function.
20510 (iterator): New iteration class for hash_set.
20512 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20514 * genattrtab.c (make_canonical): Add a file_location parameter.
20515 Use fatal_at rather than fatal.
20516 (get_attr_value): Likewise. Update call to make_canonical.
20517 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20518 (make_internal_attr): Update calls accordingly.
20520 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20522 * read-md.h (message_with_line, error_with_line): Delete.
20523 * read-md.c (message_with_line, error_with_line): Delete.
20524 * gensupport.h: Include read-md.h.
20525 (md_rtx_info): New structure.
20526 (read_md_rtx): Use it. Return a bool success value.
20527 * gensupport.c (read_md_rtx): Likewise.
20528 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20529 (main): Update after interface changes.
20530 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20531 (main): Update after interface changes.
20532 * genattrtab.c (insn_code_number): Delete.
20533 (optimize_attrs): Add a max_insn_code parameter and use it instead
20534 of insn_code_number.
20535 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20536 Use *_at rather than *_with_line functions.
20537 (gen_insn): Likewise.
20538 (gen_delay): Likewise.
20539 (gen_insn_reserv): Likewise.
20540 (gen_bypass): Take an md_rtx_info rather than an rtx.
20541 (main): Update after interface changes. Use a local max_insn_code
20542 variable instead of insn_code_number.
20543 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20544 an rtx. Use fatal_at rather than fatal.
20545 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20546 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20547 (gen_absence_set, gen_final_absence_set, gen_automaton)
20548 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20549 (main): Update after interface changes.
20550 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20552 (main): Update after interface changes.
20553 * genconditions.c (main): Use new read_md_rtx interface.
20554 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20555 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20556 (main): Update after interface changes.
20557 * genemit.c (insn_code_number, insn_index_number): Delete.
20558 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20559 Use fatal_at rather than fatal.
20560 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20562 (gen_split): Likewise.
20563 (main): Update after interface changes.
20564 * genextract.c (line_no): Delete.
20565 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20566 Update call to walk_rtx.
20567 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20568 rather than message_with_line.
20569 (walk_rtx): Add an md_rtx_info argument. Update call to
20570 VEC_safe_set_locstr.
20571 (main): Update after interface changes.
20572 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20573 and lineno. Use error_at rather than separate message_with_line
20574 calls and have_error assignments.
20575 (main): Update after interface changes.
20576 * genmddump.c (main): Use new read_md_rtx interface.
20577 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20578 (main): Update after interface changes.
20579 * genoutput.c (next_code_number): Delete.
20580 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20581 (gen_peephole, gen_expand, gen_split): Likewise.
20582 (note_constraint): Likewise. Use *_at rather than *_with_line
20584 (main): Update after interface changes.
20585 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20587 (main): Update after interface changes.
20588 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20589 than an rtx and lineno.
20590 (process_define_constraint): Likewise.
20591 (process_define_register_constraint): Likewise.
20592 (main): Update after interface changes.
20593 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20594 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20595 Use *_at rather than *_with_line functions.
20596 (match_pattern_2): Likewise.
20597 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20598 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20599 Use *_at rather than *_with_line functions.
20600 * gentarget-def.c (add_insn): New function.
20601 (main): Use it. Use new read_md_rtx interface.
20603 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20605 * gensupport.h (compute_test_codes): Take a file_location rather
20606 than a line number.
20607 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20608 rather than *_with_line functions.
20609 (process_define_predicate): Update call to compute_test_codes.
20610 * genpreds.c (validate_exp): Take a file_location rather than a
20611 line number. Use *_at functions rather than *_with_line functions.
20612 (process_define_predicate): Update call to validate_exp.
20613 (constraint_data): Replace lineno field with a file_location.
20614 (add_constraint): Take a file_location rather than a line number.
20615 Use *_at functions rather than *_with_line functions. Fix error
20616 message for address constraints. Update after changes to
20617 validate_exp, constraint_data and compute_test_codes.
20618 (process_define_constraint): Update accordingly.
20619 (process_define_register_constraint): Likewise.
20621 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20623 * genoutput.c (data): Use a file_location to record the source
20626 (idata, idata_end): Remove initialization.
20627 (constraint_data): Replace lineno with a file_location.
20628 (output_insn_data): Update after changes to data.
20629 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20630 (scan_operands): Likewise, using *_at rather than *_with_line
20632 (process_template): Likewise.
20633 (validate_insn_alternatives): Likewise.
20634 (validate_insn_operands): Likewise.
20635 (validate_optab_operands): Likewise.
20636 (init_insn_for_nothing): Initialize idata and idata_end.
20637 (note_constraint): Update after changes to constraint_data,
20638 using at rather than with_line functions.
20639 (mdep_constraint_len): Take a file_location rather than a
20640 line number. Use at rather than with_line functions.
20642 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20644 * read-md.h (fatal_at): Declare.
20645 * read-md.c (fatal_at): New function.
20646 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20647 to record the source position.
20648 (check_attr_test): Take a file_location instead of a line number.
20649 Use fatal_at instead of fatal.
20650 (check_attr_value): Update after above changes, using "at"
20651 rather than "with_line" reporting functions.
20652 (convert_set_attr_alternative): Likewise.
20653 (gen_attr): Likewise.
20654 (check_defs): Likewise. Don't assign to read_md_filename.
20655 (gen_insn): Update initialization after above changes.
20656 (gen_delay): Likewise.
20657 (write_insn_cases): Print the filename for a define_peephole.
20658 (gen_insn_reserv): Take a line number as argument and update
20659 the call to check_attr_test.
20660 (main): Pass a line number to gen_insn_reserv.
20662 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20664 * read-md.h (file_location): New structure.
20665 (directive_handler_t): Take a file_location rather than a line number.
20666 (message_at, error_at): Declare.
20667 (read_skip_construct): Delete.
20668 * read-md.c (message_with_line_1): Replace with...
20669 (message_at_1): ...this new function.
20670 (message_at, error_at): New functions.
20671 (message_with_line, error_with_line): Update to use message_at_1.
20672 (handle_enum): Take a file_location rather than a line number
20673 and use error_at for error reporting.
20674 (handle_include): Likewise.
20675 (read_skip_construct): Likewise. Make static.
20676 (handle_file): Update after above changes. Pass a file_location
20677 rather than a line number to handle_directive.
20678 * gensupport.c (queue_elem): Replace separate filename and lineno
20679 with a file_location.
20680 (queue_pattern): Replace filename and lineno arguments with a
20681 file_location. Update after change to queue_elem.
20682 (process_define_predicate): Replace lineno argument with a
20683 file_location and use error_at for error reporting. Update
20684 after above changes.
20685 (process_rtx): Likewise.
20686 (subst_pattern_match): Likewise.
20687 (get_alternatives_number): Likewise.
20688 (alter_predicate_for_insn): Likewise.
20689 (rtx_handle_directive): Likewise.
20690 (is_predicable): Update after above changes, using error_at rather
20691 than error_with_line.
20692 (has_subst_attribute): Likewise.
20693 (identify_predicable_attribute): Likewise.
20694 (alter_attrs_for_subst_insn): Likewise.
20695 (process_one_cond_exec): Likewise.
20696 (process_substs_on_one_elem): Likewise.
20697 (process_define_subst): Likewise.
20698 (check_define_attr_duplicates): Likewise.
20699 (read_md_rtx): Update after change to queue_elem.
20701 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20703 * genoutput.c (next_index_number): Delete.
20704 (data): Remove index_number.
20705 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20706 (main): Remove manipulation of next_index_number.
20708 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20710 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20711 (make_canonical): Likewise.
20713 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20715 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20716 instead of adjust_address_nv.
20717 (restore_stack_nonlocal): Likewise.
20718 (nonlocal_goto): Likewise.
20720 2015-07-16 Tom de Vries <tom@codesourcery.com>
20722 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20723 not have a corresponding loop header phi.
20725 2015-07-16 Tom de Vries <tom@codesourcery.com>
20727 * tree-parloops.c (create_loads_for_reductions): Handle case that
20728 reduction is unused.
20730 2015-07-16 Richard Biener <rguenther@suse.de>
20732 PR tree-optimization/66894
20733 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20734 about deriving NE_EXPR from truncated values.
20736 2015-07-16 Martin Liska <mliska@suse.cz>
20739 (object_allocator): Add new class.
20740 (pool_allocator::initialize): Use the underlying class.
20741 (pool_allocator::allocate): Likewise.
20742 (pool_allocator::remove): Likewise.
20743 (operator new): A new generic allocator.
20744 * asan.c (struct asan_mem_ref): Remove unused members.
20745 (asan_mem_ref_new): Replace new operator with
20746 object_allocator::allocate.
20747 (free_mem_ref_resources): Change deallocation.
20748 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20749 with object_allocator.
20750 * config/sh/sh.c (add_constant): Replace new operator with
20751 object_allocator::allocate.
20752 (sh_reorg): Change call to a release method.
20753 * cselib.c (struct elt_list): Remove unused members.
20754 (new_elt_list): Replace new operator with
20755 object_allocator::allocate.
20756 (new_elt_loc_list): Likewise.
20757 (new_cselib_val): Likewise.
20758 (unchain_one_elt_list): Change delete operator with remove method.
20759 (unchain_one_elt_loc_list): Likewise.
20760 (unchain_one_value): Likewise.
20761 (cselib_finish): Release newly added static allocators.
20762 * cselib.h (struct cselib_val): Remove unused members.
20763 (struct elt_loc_list): Likewise.
20764 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20766 * df-scan.c (struct df_scan_problem_data): Likewise.
20767 (df_scan_alloc): Likewise.
20768 * df.h (struct dataflow): Likewise.
20769 * dse.c (struct read_info_type): Likewise.
20770 (struct insn_info_type): Likewise.
20771 (struct dse_bb_info_type): Likewise.
20772 (struct group_info): Likewise.
20773 (struct deferred_change): Likewise.
20774 (get_group_info): Likewise.
20775 (delete_dead_store_insn): Likewise.
20776 (free_read_records): Likewise.
20777 (replace_read): Likewise.
20778 (check_mem_read_rtx): Likewise.
20779 (scan_insn): Likewise.
20780 (dse_step1): Likewise.
20781 (dse_step7): Likewise.
20782 * et-forest.c (struct et_occ): Remove unused members.
20783 (et_new_occ): Use allocate instead of new operator.
20784 (et_new_tree): Likewise.
20785 (et_free_tree): Call release method explicitly.
20786 (et_free_tree_force): Likewise.
20787 (et_free_pools): Likewise.
20788 (et_split): Use remove instead of delete operator.
20789 * et-forest.h (struct et_node): Remove unused members.
20790 * ipa-cp.c: Change pool_allocator to object_allocator.
20791 * ipa-inline-analysis.c: Likewise.
20792 * ipa-profile.c: Likewise.
20793 * ipa-prop.c: Likewise.
20794 * ipa-prop.h: Likewise.
20795 * ira-build.c (initiate_cost_vectors): Cast return value.
20796 (ira_allocate_cost_vector): Likewise.
20797 * ira-color.c (struct update_cost_record): Remove unused members.
20798 * lra-int.h (struct lra_live_range): Likewise.
20799 (struct lra_copy): Likewise.
20800 (struct lra_insn_reg): Likewise.
20801 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20802 * lra.c (new_insn_reg): Replace new operator with allocate method.
20803 (free_insn_regs): Same for operator delete.
20804 (finish_insn_regs): Release new static allocator.
20805 (finish_insn_recog_data): Likewise.
20806 (lra_free_copies): Replace delete operator with remove method.
20807 (lra_create_copy): Replace operator new with allocate method.
20808 (invalidate_insn_data_regno_info): Same for remove method.
20809 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20810 (free_debug_insn_changes): Replace delete operator with remove method.
20811 (replace_oldest_value_reg): Replace operator new with allocate method.
20812 (pass_cprop_hardreg::execute): Release new static variable.
20813 * sched-deps.c (sched_deps_init): Change pool_allocator to
20815 * sel-sched-ir.c: Likewise.
20816 * sel-sched-ir.h: Likewise.
20817 * stmt.c (expand_case): Likewise.
20818 (expand_sjlj_dispatch_table): Likewise.
20819 * tree-sra.c (struct access): Remove unused members.
20820 (struct assign_link): Likewise.
20821 (sra_deinitialize): Release newly added static pools.
20822 (create_access_1):Replace operator new with allocate method.
20823 (build_accesses_from_assign): Likewise.
20824 (create_artificial_child_access): Likewise.
20825 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20826 pool_allocator to object_allocator.
20827 * tree-ssa-pre.c: Likewise.
20828 * tree-ssa-reassoc.c: Likewise.
20829 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20830 * tree-ssa-strlen.c: Likewise.
20831 * tree-ssa-structalias.c: Likewise.
20832 * var-tracking.c (onepart_pool_allocate): New function.
20833 (unshare_variable): Use the newly added function.
20834 (variable_merge_over_cur): Likewise.
20835 (variable_from_dropped): Likewise.
20836 (variable_was_changed): Likewise.
20837 (set_slot_part): Likewise.
20838 (emit_notes_for_differences_1): Likewise.
20839 (vt_finalize): Release newly added static pools.
20841 2015-07-16 Martin Jambor <mjambor@suse.cz>
20843 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20844 all uses. Fix two typos in its general comment.
20845 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20847 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20849 * config/i386/linux-common.h (LINK_MPX): New.
20850 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20851 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20852 indicating '-z bndplt' support by linker.
20853 * configure: Regenerate.
20854 * config.in: Regenerate.
20856 2015-07-16 Richard Biener <rguenther@suse.de>
20858 * fold-const.c (fold_widened_comparison): Remove.
20859 (fold_sign_changed_comparison): Likewise.
20860 (fold_comparison): Move widened and sign-changed comparison
20862 * match.pd: ... to patterns here.
20863 * generic-match-head.c: Include target.h.
20864 * gimple-match-head.c: Likewise.
20866 2015-07-16 Richard Biener <rguenther@suse.de>
20868 * tree-ssa-dom.c (dom_valueize): New function.
20869 (record_temporary_equivalences): Also record equivalences
20870 for dominating stmts that have uses of equivalences we are
20873 2015-07-16 Bin Cheng <bin.cheng@arm.com>
20875 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20876 add_autoinc_candidates.
20877 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20878 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20879 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20880 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20882 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20883 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20884 Remove parameter struct iv*. Call add_autoinc_candidates here.
20885 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20886 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20888 (find_iv_candidates): Call new functions.
20890 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
20892 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20893 uninitialized-variable warning.
20895 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
20898 * config/sh/sh.md (movdi): Split simple reg move to two movsi
20899 when the destination is R0.
20901 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
20904 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20905 * config/i386/i386.c (ix86_expand_pextr): New function.
20906 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
20907 for non-lowpart subregs.
20908 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20909 (insv<mode>): Use SWI248 mode iterator.
20910 (insv<mode>_1): Ditto.
20912 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20913 Sebastian Pop <s.pop@samsung.com>
20915 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20916 iterator to use_stmt.
20918 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20919 Sebastian Pop <s.pop@samsung.com>
20921 * graphite-scop-detection.c (build_scops_1): Discard scops for
20924 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20925 Sebastian Pop <s.pop@samsung.com>
20927 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20928 case of a return statement in scop.
20930 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20931 Sebastian Pop <s.pop@samsung.com>
20933 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20934 INTEGER_TYPE parameters.
20935 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20936 VECTOR_CST in scan_tree_for_params.
20937 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20939 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20941 * gimple-pretty-print.h: Don't include pretty-print.h.
20942 * tree-streamer.h: Don't include lto-streamer.h.
20943 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20944 * gimple-streamer-in.c: Remove redundant includes.
20945 * gimple-streamer-out.c: Likewise.
20946 * ipa-devirt.c: Likewise.
20947 * ipa-icf.c: Likewise.
20948 * ipa-inline-analysis.c: Likewise.
20949 * ipa-polymorphic-call.c: Likewise.
20950 * ipa-profile.c: Likewise.
20951 * ipa-prop.c: Likewise.
20952 * ipa-pure-const.c: Likewise.
20953 * lto-cgraph.c: Likewise.
20954 * lto-streamer-in.c: Likewise.
20955 * lto-streamer-out.c: Likewise.
20956 * lto-streamer.c: Likewise.
20957 * tree-streamer-in.c: Likewise.
20958 * tree-streamer-out.c: Likewise.
20959 * tree-streamer.c: Likewise.
20961 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20963 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20965 * opts.c: Remove multiline #include comment.
20967 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
20969 * config/nvptx/mkoffload.c (process): Add C++ protection to
20972 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20975 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20976 null before IEEE 128-bit floating point support patch.
20978 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20980 * simplify-rtx.c (simplify_ternary_operation): Add simplification
20981 for (!c) != {0,...,0} ? a : b for vector modes.
20983 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
20984 Martin Jambor <mjambor@suse.cz>
20986 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20987 struct func_body_info* instead of struct ipa_node_params*, expecting
20988 fbi->info to be filled in. Replace throughout. Adjust call to
20989 ipa_load_from_parm_agg.
20990 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20991 instead of struct ipa_node_params*. Adjust calls to other functions
20992 so that they pass either fbi or fbi->info.
20993 (set_switch_stmt_execution_predicate): Likewise.
20994 (will_be_nonconstant_predicate): Likewise.
20995 (compute_bb_predicates): Likewise.
20996 (estimate_function_body_sizes): Move asserts earlier. Fill in
20997 struct func_body_info, replace parms_info with fbi.info. Adjust
20998 calls to functions that now accept struct func_body_info.
20999 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21000 (struct func_body_info): Likewise.
21001 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21002 remove static. Adjust callers.
21003 (ipa_load_from_parm_agg): Remove.
21004 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21005 (func_body_info): Likewise.
21006 (ipa_load_from_parm_agg): Adjust prototype.
21008 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21010 * gensupport.c (rtx_handle_directive): Adjust.
21011 * read-rtl.c (apply_iterators): Take vector to add rtxs to
21012 instead of expr list rtx.
21013 (add_define_attr_for_define_subst): Likewise.
21014 (add_define_subst_attr): Likewise.
21015 (read_subst_mapping): Likewise.
21016 (read_rtx): Likewise.
21017 * rtl.h (read_rtx): Adjust.
21019 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21021 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21023 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21026 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21027 (*tls_local_dynamic_base_64_<mode>): Ditto.
21028 (*tls_local_dynamic_base_64_largepic): Ditto.
21029 (tls_global_dynamic_64_<mode>): Update expander pattern.
21030 (tls_local_dynamic_base_64_<mode>): Ditto.
21032 2015-07-15 Richard Biener <rguenther@suse.de>
21034 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21035 and bool_var == 1 -> bool_var simplifications ...
21036 * match.pd: ... to patterns here. Factor out negate_expr_p
21037 cases from the A - B -> A + (-B) patterns as negate_expr_p
21038 predicate and add a -(A + B) -> (-B) - A pattern.
21040 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21042 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21044 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
21045 Robert Suchanek <robert.suchanek@imgtec.com>
21047 * config/mips/mips.c (mips_int_mask): New enum.
21048 (mips_shadow_set): Likewise.
21049 (int_mask): New variable.
21050 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21051 (machine_function): Add int_mask and use_shadow_register_set.
21052 (mips_attribute_table): Add attribute handlers for interrupt and
21053 use_shadow_register_set.
21054 (mips_interrupt_mask): New static function.
21055 (mips_handle_interrupt_attr): Likewise.
21056 (mips_handle_use_shadow_register_set_attr): Likewise.
21057 (mips_use_shadow_register_set): Change return type to enum
21058 mips_shadow_set. Add argument handling for use_shadow_register_set
21060 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21061 compare with mips_shadow_set enum.
21062 (mips_compute_frame_info): Add interrupt mask and
21063 use_shadow_register_set to per-function information structure.
21064 Add a stack slot for EPC unconditionally.
21065 (mips_expand_prologue): Compare use_shadow_register_set value
21066 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
21067 masked interrupt register but in EIC mode use K0 and save Cause in K0.
21068 EPC saved and restored unconditionally. Use PMODE_INSN macro when
21069 copying the stack pointer from the shadow register set.
21070 * config/mips/mips.h (SR_IM0): New define.
21071 * config/mips/mips.md (mips_rdpgpr): Rename to...
21072 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
21073 * doc/extend.texi (Declaring Attributes of Functions): Document
21074 optional arguments for interrupt and use_shadow_register_set
21077 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21079 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21080 interrupt attribute.
21081 (mips_expand_prologue): Disable the floating point unit in an ISR.
21082 * config/mips/mips.h (SR_COP1): New define.
21084 2015-07-15 Richard Biener <rguenther@suse.de>
21086 * genmatch.c (parser::peek, parser::peek_ident): Add argument
21087 to tell how many tokens to peek ahead (default 1).
21088 (parser::eat_token, parser::eat_ident): Return token consumed.
21089 (parser::parse_result): Parse new switch statement.
21090 * match.pd: Use case statements where appropriate.
21092 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21094 PR rtl-optimization/58066
21095 * calls.c (expand_call): Precompute register parameters before stack
21096 alignment is performed.
21098 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21100 PR rtl-optimization/66838
21101 * postreload.c (reload_cse_move2add): Also process
21102 CALL_INSN_FUNCTION_USAGE when resetting information of
21103 call-clobbered registers.
21105 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21106 Cesar Philippidis <cesar@codesourcery.com>
21107 Chung-Lin Tang <cltang@codesourcery.com>
21109 * config/nios2/constraints.md (U, v): New constraints.
21110 * config/nios2/predicates.md (rdprs_dcache_operand): New.
21111 (ldstex_memory_operand): New.
21112 * config/nios2/sync.md: New file.
21113 * config/nios2/nios2.md (unspecv): Add new builtin function
21115 (rdprs, flushd, flushda, wrpie, eni): New patterns.
21116 (top-level): Include sync.md.
21117 * config/nios2/nios2.c (N2_FTYPES): Add function types for
21119 (N2_BUILTINS): Add arch field setting, add new builtins.
21120 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21122 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21123 Also handle ldex/stex/ldsex/stsex builtins.
21124 (nios2_expand_rdprs_builtin): New function.
21125 (nios2_expand_cache_builtin): New function.
21126 (nios2_expand_wrpie_builtin): New function.
21127 (nios2_expand_eni_builtin): New function.
21128 (nios2_expand_builtin): Add arch field handling and new builtin
21130 * doc/extend.texi (Altera Nios II Built-in Functions): Document
21132 * doc/md.texi (Machine Constraints): Document U and v constraints.
21134 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21135 Cesar Philippidis <cesar@codesourcery.com>
21136 Chung-Lin Tang <cltang@codesourcery.com>
21138 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21139 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21140 callee_save_reg_size and uses_anonymous_args fields.
21141 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21142 (nios2_create_cfa_notes): New function.
21143 (nios2_adjust_stack): New function for adjusting stack.
21144 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21145 Use nios2_adjust_stack.
21146 (nios2_expand_epilogue): Likewise.
21147 (nios2_expand_return): New function.
21148 (nios2_can_use_return_insn): Update for CDX pop.n usage.
21149 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21150 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21151 * config/nios2/nios2.md (return): Use nios2_expand_return.
21153 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21154 Cesar Philippidis <cesar@codesourcery.com>
21155 Chung-Lin Tang <cltang@codesourcery.com>
21157 * config/nios2/predicates.md (pop_operation): New.
21158 (ldwm_operation, stwm_operation): New.
21159 (nios2_hard_register_operand): New.
21160 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21161 (ldstwm_operation_p): Declare.
21162 (gen_ldstwm_peep): Declare.
21163 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21164 (base_reg_adjustment_p): New.
21165 (pop_operation_p): New.
21166 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21167 (nios2_ldstwm_regset_p): New.
21168 (ldstwm_operation_p): New.
21170 (nios2_ldst_parallel): New.
21171 (struct ldswm_operand): Declare.
21172 (compare_ldstwm_operands): New.
21173 (can_use_cdx_ldstw): New.
21174 (gen_ldstwm_peep): New.
21175 * config/nios2/nios2-ldstwm.sml: New.
21176 * config/nios2/nios2.md: Include ldstwm.md.
21177 * config/nios2/ldstwm.md: Generated.
21179 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21180 Cesar Philippidis <cesar@codesourcery.com>
21181 Chung-Lin Tang <cltang@codesourcery.com>
21183 * config/nios2/nios2.h (LABEL_ALIGN): Define.
21184 (REG_ALLOC_ORDER): Define.
21185 (ADJUST_REG_ALLOC_ORDER): Define.
21186 (HONOR_REG_ALLOC_ORDER): Define.
21187 (CDX_REG_P): Define.
21188 (ANDCLEAR_INT): Define.
21189 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21190 (nios2_label_align): Declare.
21191 (nios2_cdx_narrow_form_p): Declare.
21192 (nios2_adjust_reg_alloc_order): Declare.
21193 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21195 (nios2_large_unspec_reloc_p): New function, split from...
21196 (nios2_legitimate_pic_operand_p): ...here.
21197 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21198 (nios2_print_operand_punct_valid_p): New.
21199 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
21200 (split_mem_address): New.
21201 (split_alu_insn): New.
21203 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21204 (enum nios2_add_insn_kind): New.
21205 (nios2_add_insn_names, nios2_add_insn_narrow): New.
21206 (nios2_add_insn_classify): New.
21207 (nios2_add_insn_asm): New.
21208 (nios2_cdx_narrow_form_p): New.
21209 (label_align, min_labelno, max_labelno): New.
21210 (nios2_reorg): New.
21211 (nios2_label_align): New.
21212 (nios2_adjust_reg_alloc_order): New.
21213 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21214 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21215 * config/nios2/constraints.md (P): New constraint.
21216 * config/nios2/predicates.md (const_and_operand): New.
21217 (and_operand): New.
21218 (stack_memory_operand): New.
21219 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21220 (length): Update to use nios2_cdx_narrow_form_p().
21221 (type): Add new insn type values.
21222 (control, alu, st, ld, shift): Update insn reservations with
21223 new insn type values.
21224 (*high, *lo_sum): Define new insn patterns for constant generation.
21225 (movqi_internal, movhi_internal, movsi_internal): Reduce
21226 alternatives, update asm template to handle CDX variants, update
21228 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21229 template, update type attributes.
21230 (extendhisi2, extendqi<mode>2): Likewise.
21231 (addsi3): Change to use function for asm string.
21232 (subsi3): Add CDX notation to asm template, update type attributes.
21233 (negsi3, one_cmplsi3): Likewise.
21234 (andsi3): New pattern, specialized from logical patterns.
21235 (<code>si3): Remove and case, combine alternatives, update asm
21237 (<shift_op>si3): Add CDX notation, update type attributes.
21238 (rotrsi3): Update type attribute.
21239 (*merge, extzv, insv): New insn patterns.
21240 (return): Change to define_expand.
21241 (simple_return): Add CDX notation, update type attributes.
21242 (indirect_jump): Add CDX notation.
21243 (jump): Update asm cases, update length attribute expression.
21244 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21245 (nios2_cbranch): Update asm cases and length attribute expression
21246 to handle CDX variants.
21247 (nios2_cmp<code>): Update asm template.
21248 (nop): Add CDX notation, update type attributes.
21249 (trap): Add CDX notation.
21250 (ctrapsi4): Update asm cases and length attribute expression to
21251 handle CDX variant.
21252 * doc/md.texi (Machine Constraints): Document P constraint.
21254 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21255 Cesar Philippidis <cesar@codesourcery.com>
21256 Chung-Lin Tang <cltang@codesourcery.com>
21258 * config/nios2/nios2.h (SMALL_INT12): New macro.
21259 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21260 (nios2_valid_addr_expr_p): Use it.
21261 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21262 with implicit "io" instructions on R2.
21263 * config/nios2/constraints.md (w): New constraint.
21264 * config/nios2/predicates.md (ldstio_memory_operand): New.
21265 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21266 operand predicate and constraint.
21267 (ld<bh>io_signed, st<bhw>io>): Likewise.
21268 * doc/md.texi (Machine Constraints): Document w constraint.
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.opt (march, mbmx, mcdx): New options.
21275 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21276 Nios II architecture level.
21277 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21278 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21279 (OPTION_DEFAULT_SPECS): Define.
21280 (ASM_SPEC): Add -march= spec strings.
21281 * config/nios2/nios2.c (nios2_option_override): Check for
21282 conflicts involving new options.
21283 * config.gcc (nios2*-*-*): Support --with-arch=.
21284 * doc/invoke.texi (Option Summary, Nios II Options): Document
21285 -march=, -mbmx, and -mcdx.
21287 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
21289 PR rtl-optimization/66626
21290 * lra-constraints.c (lra_constraints): Prevent equivalence
21291 substitution for static chain pseudo in functions with nonlocal
21294 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21296 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21297 (nios2_emit_stack_limit_check): Add size parameter. Handle
21298 -fstack-limit-symbol as well as -fstack-limit-register.
21299 (nios2_expand_prologue): Emit only a single stack limit check,
21300 even if multiple stack adjustments are required.
21301 (nios2_option_override): Diagnose unsupported combination of -fpic
21302 and -stack-limit-symbol.
21304 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
21306 * Makefile.in (top_srcdir): New.
21307 * configure.ac: Use AM_ZLIB.
21308 * configure: Regeneated.
21310 2015-07-14 Matthias Klose <doko@ubuntu.com>
21313 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21315 2015-07-14 Richard Biener <rguenther@suse.de>
21317 PR tree-optimization/66863
21318 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21319 what we record for conversion use stmt lhs inequalities.
21321 2015-07-14 Richard Biener <rguenther@suse.de>
21323 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21324 (decision_tree::gen_gimple): Likewise.
21326 2015-07-14 Tom de Vries <tom@codesourcery.com>
21328 * gcc.c (greater_than_spec_func): Declare forward.
21329 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21330 -ftree-parallelize-loops={0,1}.
21331 (static_spec_functions): Add greater_than_spec_func function with name
21333 (greater_than_spec_func): New function.
21335 2015-07-14 Richard Biener <rguenther@suse.de>
21337 * tree-ssa-dom.c (record_temporary_equivalences): Merge
21338 wideing type conversion case from record_equivalences_from_incoming_edge
21339 and use record_equality to record equivalences.
21340 (record_equivalences_from_incoming_edge): Call
21341 record_temporary_equivalences.
21343 2015-07-14 Richard Biener <rguenther@suse.de>
21345 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21346 (struct if_expr): New.
21347 (struct with_expr): Likewise.
21348 (is_a_helper): Add helpers for if_expr and with_expr.
21349 (struct simplify): Add simplify_kind enum and member. Remove
21351 (simplify::simplify): Adjust.
21352 (lower_commutative): Adjust.
21353 (lower_opt_convert): Likewise.
21354 (lower_cond): Likewise.
21355 (replace_id): Handle with_expr and if_expr.
21356 (lower_for): Adjust.
21357 (dt_simplify::gen_1): New recursive worker, split out from ...
21358 (dt_simplify::gen): ... here. Deal with if and with expansion
21360 (capture_info::capture_info): Take context argument
21361 (capture_info::walk_result): Only analyze specific result.
21362 (parser::parse_result): New function.
21363 (parser::parse_simplify): Adjust to parse ifs with then end
21365 (parser::parse_if): Simplify.
21366 (parser::parse_pattern): Pass down simplify kind.
21367 * match.pd: Convert if structure to new syntax.
21369 2015-07-13 Marek Polacek <polacek@redhat.com>
21371 * rtl.c (rtx_equal_p_cb): Fix typo.
21373 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21375 * omega.h: Don't include config.h, don't include params.h again if
21376 omega.h has already been included.
21377 * graphite-poly.h: Include sese.h.
21378 * graphite.c: Don't include sese.h, remove needless includes and
21379 minimize includes outside #ifdef HAVE_isl block.
21380 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21381 and wrap entire file in #ifdef HAVE_isl
21382 * graphite-dependences.c: Likewise.
21383 * graphite-interchange.c: Likewise.
21384 * graphite-isl-ast-to-gimple.c: Likewise.
21385 * graphite-optimize-isl.c: Likewise.
21386 * graphite-poly.c: Likewise.
21387 * graphite-scop-detection.c: Likewise.
21388 * graphite-sese-to-poly.c: Likewise.
21390 2015-07-13 Tom de Vries <tom@codesourcery.com>
21392 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21394 2015-07-13 Renlin Li <renlin.li@arm.com>
21397 * simplify-rtx.c (simplify_const_relational_operation): Add
21398 side_effects_p checks.
21400 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21402 * bitmap.h: Fix double word typos.
21403 * builtins.c: Same.
21405 * cfgloopmanip.c: Same.
21408 * cgraphclones.c: Same.
21410 * config/aarch64/aarch64-protos.h: Same.
21411 * config/aarch64/aarch64.c: Same.
21412 * config/aarch64/aarch64.md: Same.
21413 * config/arm/arm.md: Same.
21414 * config/arm/arm1020e.md: Same.
21415 * config/arm/arm1026ejs.md: Same.
21416 * config/arm/arm926ejs.md: Same.
21417 * config/arm/fa526.md: Same.
21418 * config/arm/fa606te.md: Same.
21419 * config/arm/fa626te.md: Same.
21420 * config/arm/fa726te.md: Same.
21421 * config/arm/fmp626.md: Same.
21422 * config/darwin.c: Same.
21423 * config/epiphany/epiphany.c: Same.
21424 * config/frv/frv.c: Same.
21425 * config/ft32/ft32.c: Same.
21426 * config/gnu-user.h: Same.
21427 * config/h8300/constraints.md: Same.
21428 * config/i386/i386.c: Same.
21429 * config/i386/i386.md: Same.
21430 * config/iq2000/iq2000.md: Same.
21431 * config/mips/mips.c: Same.
21432 * config/mmix/mmix.md: Same.
21433 * config/moxie/moxie.c: Same.
21434 * config/nds32/nds32.md: Same.
21435 * config/pa/pa.h: Same.
21436 * config/rs6000/aix.h: Same.
21437 * config/rs6000/rs6000.h: Same.
21438 * config/sh/sh.c: Same.
21439 * config/tilegx/tilegx.md: Same.
21440 * config/tilepro/gen-mul-tables.cc: Same.
21443 * doc/invoke.texi: Same.
21445 * dwarf2out.c: Same.
21448 * genmatch.c: Same.
21449 * gimplify.c: Same.
21450 * hash-table.h: Same.
21451 * internal-fn.c: Same.
21453 * ipa-devirt.c: Same.
21456 * ipa-profile.c: Same.
21457 * ipa-prop.c: Same.
21458 * ipa-prop.h: Same.
21461 * reg-stack.c: Same.
21462 * regcprop.c: Same.
21467 * tree-inline.c: Same.
21468 * tree-sra.c: Same.
21469 * tree-ssa-dom.c: Same.
21470 * tree-ssa-loop-ivopts.c: Same.
21471 * tree-ssa-structalias.c: Same.
21472 * tree-ssa-tail-merge.c: Same.
21473 * tree-ssa-ter.c: Same.
21474 * tree-ssa-threadupdate.c: Same.
21475 * tree-ssa-uninit.c: Same.
21476 * tree-ssanames.c: Same.
21477 * tree-vect-loop-manip.c: Same.
21478 * tree-vrp.c: Same.
21480 * valtrack.c: Same.
21483 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21485 PR middle-end/66726
21486 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21487 tree_ssa_phiopt_worker): Call it.
21489 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21491 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21492 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21495 2015-07-11 Marek Polacek <polacek@redhat.com>
21497 PR middle-end/66353
21498 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21499 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21500 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21501 rather than bb_has_abnormal_call_pred.
21502 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21503 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21504 rather than bb_has_abnormal_call_pred.
21506 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21508 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21509 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21510 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21511 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21512 v850_legitimate_address_p): New functions.
21513 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21515 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21518 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21519 indirect sibcall with register arguments if register available
21520 for argument passing.
21521 (init_cumulative_args): Set cfun->machine->arg_reg_available
21522 to (cum->nregs > 0) or to true if function has a variable
21524 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21525 to false if cum->nregs <= 0.
21526 * config/i386/i386.h (machine_function): Add arg_reg_available.
21528 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21530 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21531 and gen_higpart instead of gen_rtx_SUBREG.
21532 * config/i386/i386.md
21533 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21534 (read-modify peephole2): Use gen_lowpart instead of
21535 gen_rtx_SUBREG for operand 5.
21537 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21539 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21541 * config/tilepro/mul-tables.c: Regenerate.
21542 * config/tilegx/mul-tables.c: Regenerate.
21544 2015-07-10 Richard Biener <rguenther@suse.de>
21546 * fold-const.c (distribute_bit_expr): Remove.
21547 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21548 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21549 to A & (B | C) and simplifying A << C1 << C2 to ...
21550 * match.pd: ... patterns here.
21552 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21554 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21555 Mark mem as READONLY and NOTRAP for PIC symbol.
21557 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21559 * gimple-predict.h: New file.
21560 (gimple_predict_predictor, gimple_predict_set_predictor,
21561 gimple_predict_outcome, gimple_predict_set_outcome,
21562 gimple_build_predict): Relocate here.
21563 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21564 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21566 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21567 * basic-block.h: Don't include cfghooks.h.
21568 * backend.h: Don't include predict.h.
21569 * cfghooks.h: Include predict.h.
21570 * gimple-pretty-print.c: Include gimple-predict.h.
21571 * gimplify.c: Likwise.
21572 * predict.c: Adjust includes.
21573 * tree-inline.c: Likewise.
21574 * asan.c: Likewise.
21575 * auto-inc-dec.c: Likewise.
21576 * auto-profile.c: Likewise.
21577 * bb-reorder.c: Likewise.
21578 * builtins.c: Likewise.
21579 * caller-save.c: Likewise.
21580 * calls.c: Likewise.
21581 * cfganal.c: Likewise.
21582 * cfgbuild.c: Likewise.
21584 * cfgcleanup.c: Likewise.
21585 * cfgexpand.c: Likewise.
21586 * cfghooks.c: Likewise.
21587 * cfgloopanal.c: Likewise.
21588 * cfgloop.c: Likewise.
21589 * cfgloopmanip.c: Likewise.
21590 * cfgrtl.c: Likewise.
21591 * cgraph.c: Likewise.
21592 * cgraphunit.c: Likewise.
21593 * combine.c: Likewise.
21594 * cprop.c: Likewise.
21597 * dojump.c: Likewise.
21599 * except.c: Likewise.
21600 * expmed.c: Likewise.
21601 * expr.c: Likewise.
21602 * final.c: Likewise.
21603 * fold-const.c: Likewise.
21604 * function.c: Likewise.
21605 * fwprop.c: Likewise.
21606 * gcc-plugin.h: Likewise.
21607 * gcse.c: Likewise.
21608 * genattrtab.c: Likewise.
21609 * genemit.c: Likewise.
21610 * gengtype.c: Likewise.
21611 * genopinit.c: Likewise.
21612 * genoutput.c: Likewise.
21613 * genpreds.c: Likewise.
21614 * genrecog.c: Likewise.
21615 * gimple-fold.c: Likewise.
21616 * gimple-iterator.c: Likewise.
21617 * gimple-ssa-isolate-paths.c: Likewise.
21618 * gimple-ssa-strength-reduction.c: Likewise.
21619 * graph.c: Likewise.
21620 * graphite-blocking.c: Likewise.
21621 * graphite.c: Likewise.
21622 * graphite-dependences.c: Likewise.
21623 * graphite-interchange.c: Likewise.
21624 * graphite-isl-ast-to-gimple.c: Likewise.
21625 * graphite-optimize-isl.c: Likewise.
21626 * graphite-poly.c: Likewise.
21627 * graphite-scop-detection.c: Likewise.
21628 * graphite-sese-to-poly.c: Likewise.
21629 * haifa-sched.c: Likewise.
21630 * ifcvt.c: Likewise.
21631 * internal-fn.c: Likewise.
21632 * ipa-cp.c: Likewise.
21633 * ipa-profile.c: Likewise.
21634 * ipa-split.c: Likewise.
21635 * ipa-utils.c: Likewise.
21636 * ira-build.c: Likewise.
21637 * ira-color.c: Likewise.
21638 * ira-conflicts.c: Likewise.
21639 * ira-costs.c: Likewise.
21640 * ira-emit.c: Likewise.
21641 * ira-lives.c: Likewise.
21642 * jump.c: Likewise.
21643 * loop-doloop.c: Likewise.
21644 * loop-init.c: Likewise.
21645 * loop-invariant.c: Likewise.
21646 * loop-unroll.c: Likewise.
21647 * lower-subreg.c: Likewise.
21648 * lra-assigns.c: Likewise.
21650 * lra-coalesce.c: Likewise.
21651 * lra-constraints.c: Likewise.
21652 * lra-lives.c: Likewise.
21653 * lto-cgraph.c: Likewise.
21654 * lto-streamer-in.c: Likewise.
21655 * mode-switching.c: Likewise.
21656 * modulo-sched.c: Likewise.
21657 * omp-low.c: Likewise.
21658 * optabs.c: Likewise.
21659 * passes.c: Likewise.
21660 * postreload.c: Likewise.
21661 * postreload-gcse.c: Likewise.
21662 * profile.c: Likewise.
21663 * recog.c: Likewise.
21664 * regstat.c: Likewise.
21665 * reload1.c: Likewise.
21666 * reorg.c: Likewise.
21667 * rtlanal.c: Likewise.
21668 * sched-ebb.c: Likewise.
21669 * sel-sched-ir.c: Likewise.
21670 * sese.c: Likewise.
21671 * shrink-wrap.c: Likewise.
21672 * simplify-rtx.c: Likewise.
21673 * stmt.c: Likewise.
21674 * store-motion.c: Likewise.
21675 * tracer.c: Likewise.
21676 * trans-mem.c: Likewise.
21677 * tree-call-cdce.c: Likewise.
21678 * tree-cfg.c: Likewise.
21679 * tree-cfgcleanup.c: Likewise.
21680 * tree-chkp.c: Likewise.
21681 * tree-complex.c: Likewise.
21682 * tree-eh.c: Likewise.
21683 * tree-if-conv.c: Likewise.
21684 * tree-loop-distribution.c: Likewise.
21685 * tree-outof-ssa.c: Likewise.
21686 * tree-parloops.c: Likewise.
21687 * tree-predcom.c: Likewise.
21688 * tree-pretty-print.c: Likewise.
21689 * tree-profile.c: Likewise.
21690 * tree-sra.c: Likewise.
21691 * tree-ssa.c: Likewise.
21692 * tree-ssa-coalesce.c: Likewise.
21693 * tree-ssa-dce.c: Likewise.
21694 * tree-ssa-dom.c: Likewise.
21695 * tree-ssa-forwprop.c: Likewise.
21696 * tree-ssa-ifcombine.c: Likewise.
21697 * tree-ssa-loop-ch.c: Likewise.
21698 * tree-ssa-loop-im.c: Likewise.
21699 * tree-ssa-loop-ivcanon.c: Likewise.
21700 * tree-ssa-loop-ivopts.c: Likewise.
21701 * tree-ssa-loop-manip.c: Likewise.
21702 * tree-ssa-loop-prefetch.c: Likewise.
21703 * tree-ssa-loop-unswitch.c: Likewise.
21704 * tree-ssa-math-opts.c: Likewise.
21705 * tree-ssa-phiopt.c: Likewise.
21706 * tree-ssa-pre.c: Likewise.
21707 * tree-ssa-reassoc.c: Likewise.
21708 * tree-ssa-sink.c: Likewise.
21709 * tree-ssa-tail-merge.c: Likewise.
21710 * tree-ssa-threadedge.c: Likewise.
21711 * tree-ssa-threadupdate.c: Likewise.
21712 * tree-switch-conversion.c: Likewise.
21713 * tree-tailcall.c: Likewise.
21714 * tree-vect-data-refs.c: Likewise.
21715 * tree-vect-loop.c: Likewise.
21716 * tree-vect-loop-manip.c: Likewise.
21717 * tree-vectorizer.c: Likewise.
21718 * tree-vrp.c: Likewise.
21719 * ubsan.c: Likewise.
21720 * value-prof.c: Likewise.
21721 * varasm.c: Likewise.
21722 * var-tracking.c: Likewise.
21723 * config/aarch64/aarch64-builtins.c: Likewise.
21724 * config/aarch64/aarch64.c: Likewise.
21725 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21726 * config/alpha/alpha.c: Likewise.
21727 * config/arc/arc.c: Likewise.
21728 * config/arm/arm.c: Likewise.
21729 * config/avr/avr.c: Likewise.
21730 * config/bfin/bfin.c: Likewise.
21731 * config/c6x/c6x.c: Likewise.
21732 * config/cr16/cr16.c: Likewise.
21733 * config/cris/cris.c: Likewise.
21734 * config/darwin.c: Likewise.
21735 * config/darwin-c.c: Likewise.
21736 * config/epiphany/epiphany.c: Likewise.
21737 * config/epiphany/mode-switch-use.c: Likewise.
21738 * config/epiphany/resolve-sw-modes.c: Likewise.
21739 * config/fr30/fr30.c: Likewise.
21740 * config/frv/frv.c: Likewise.
21741 * config/ft32/ft32.c: Likewise.
21742 * config/h8300/h8300.c: Likewise.
21743 * config/i386/i386.c: Likewise.
21744 * config/i386/winnt.c: Likewise.
21745 * config/ia64/ia64.c: Likewise.
21746 * config/iq2000/iq2000.c: Likewise.
21747 * config/lm32/lm32.c: Likewise.
21748 * config/m32c/m32c.c: Likewise.
21749 * config/m32r/m32r.c: Likewise.
21750 * config/m68k/m68k.c: Likewise.
21751 * config/mcore/mcore.c: Likewise.
21752 * config/mep/mep.c: Likewise.
21753 * config/microblaze/microblaze.c: Likewise.
21754 * config/mips/mips.c: Likewise.
21755 * config/mmix/mmix.c: Likewise.
21756 * config/mn10300/mn10300.c: Likewise.
21757 * config/moxie/moxie.c: Likewise.
21758 * config/msp430/msp430.c: Likewise.
21759 * config/nds32/nds32.c: Likewise.
21760 * config/nds32/nds32-cost.c: Likewise.
21761 * config/nds32/nds32-fp-as-gp.c: Likewise.
21762 * config/nds32/nds32-intrinsic.c: Likewise.
21763 * config/nds32/nds32-isr.c: Likewise.
21764 * config/nds32/nds32-md-auxiliary.c: Likewise.
21765 * config/nds32/nds32-memory-manipulation.c: Likewise.
21766 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21767 * config/nds32/nds32-predicates.c: Likewise.
21768 * config/nios2/nios2.c: Likewise.
21769 * config/nvptx/nvptx.c: Likewise.
21770 * config/pa/pa.c: Likewise.
21771 * config/pdp11/pdp11.c: Likewise.
21772 * config/rl78/rl78.c: Likewise.
21773 * config/rs6000/rs6000.c: Likewise.
21774 * config/rx/rx.c: Likewise.
21775 * config/s390/s390.c: Likewise.
21776 * config/sh/sh.c: Likewise.
21777 * config/sh/sh-mem.cc: Likewise.
21778 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21779 * config/sh/sh_treg_combine.cc: Likewise.
21780 * config/sparc/sparc.c: Likewise.
21781 * config/spu/spu.c: Likewise.
21782 * config/stormy16/stormy16.c: Likewise.
21783 * config/tilegx/tilegx.c: Likewise.
21784 * config/tilepro/tilepro.c: Likewise.
21785 * config/v850/v850.c: Likewise.
21786 * config/vax/vax.c: Likewise.
21787 * config/visium/visium.c: Likewise.
21788 * config/xtensa/xtensa.c: Likewise.
21790 2015-07-10 Richard Biener <rguenther@suse.de>
21792 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21793 (decision_tree::gen_gimple): Likewise.
21794 (decision_tree::gen_generic): Likewise.
21796 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21799 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21800 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21802 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21804 PR middle-end/66820
21805 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21806 or ORT_TASK contexts.
21807 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21810 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21812 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21815 2015-07-10 Tom de Vries <tom@codesourcery.com>
21817 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21818 insert nit + 1 bound.
21820 2015-07-10 Richard Biener <rguenther@suse.de>
21822 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21823 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21824 (if_convertible_loop_p_1): For this always compute bb predicates.
21825 (if_convertible_loop_p): And free them.
21827 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21829 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21832 2015-07-10 Richard Biener <rguenther@suse.de>
21834 PR tree-optimization/66823
21835 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21836 inverted predicate.
21838 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21840 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21841 to handle mips[32|64]r3 and mips[32|64]r5.
21843 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21845 PR middle-end/66633
21846 * tree-nested.c (get_static_chain): Or in a flag into
21847 info->static_chain_added.
21848 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21849 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21850 2015-07-01 changes.
21851 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21852 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21855 PR tree-optimization/66718
21856 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21858 (vect_simd_lane_linear): New function.
21859 (vectorizable_simd_clone_call): Support using linear arguments for
21860 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21862 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21865 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21867 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21869 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21870 Use machine mode, not enum machine_mode in the prototype.
21872 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21873 classify 128-bit floating point support.
21874 (FLOAT128_IBM_P): Likewise.
21875 (FLOAT128_VECTOR_P): Likewise.
21876 (FLOAT128_2REG_P): Likewise.
21877 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21878 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21879 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21880 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21882 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21883 tests against TFmode/TDmode, since those modes do not use VSX
21885 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21887 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21888 tests against TFmode, etc.
21889 (invalid_e500_subreg): Add tests against IFmode/KFmode.
21890 (reg_offset_addressing_ok_p): Likewise.
21891 (rs6000_legitimate_offset_address_p): Likewise.
21892 (rs6000_legitimize_address): Likewise.
21893 (rs6000_legitimize_reload_address): Likewise.
21894 (rs6000_legitimate_address_p): Clean up tests against TFmode and
21895 TDmode to use the new helper macros, which will include IFmode and
21897 (rs6000_emit_move): Likewise.
21898 (rs6000_darwin64_record_arg_recurse): Likewise.
21899 (print_operand): Likewise.
21900 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21901 that uses a single vector register as a vector and not as a
21902 floating point register in terms of the calling sequence.
21903 (rs6000_discover_homogeneous_aggregate): Likewise.
21904 (rs6000_return_in_memory): Likewise.
21905 (init_cumulative_args): Likewise.
21906 (rs6000_function_arg_boundary): Likewise.
21907 (rs6000_function_arg_advance_1): Likewise.
21908 (rs6000_function_arg): Likewise.
21909 (rs6000_pass_by_reference): Likewise.
21910 (rs6000_gimplify_va_arg): Likewise.
21911 (rs6000_secondary_reload_memory): Use machine_mode not enum
21913 (rs6000_split_multireg_move): Use new helper macros.
21914 (spe_func_has_64bit_regs_p): Likewise.
21915 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21916 (output_toc): Use new helper macros.
21917 (rs6000_register_move_cost): Likewise.
21918 (rs6000_function_value): Add IEEE 128-bit floating point calling
21920 (rs6000_libcall_value): Likewise.
21921 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21922 floating point support.
21923 (rs6000_vector_mode_supported_p): Likewise.
21925 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
21927 PR rtl-optimization/66782
21928 * lra-int.h (struct lra_insn_recog_data): Add comment about
21929 clobbered hard regs for arg_hard_regs.
21930 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21931 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21932 Add condition for processing used hard regs.
21933 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21934 Process clobbered hard regs.
21936 2015-07-09 Michael Matz <matz@suse.de>
21938 * genmatch.c (fprintf_indent): New function.
21939 (operand::gen_transform): Add indent parameter.
21940 (expr::gen_transform, c_expr::gen_transform,
21941 capture::gen_transform): Ditto and use fprintf_indent.
21942 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21943 (dt_operand::gen, dt_operand::gen_predicate,
21944 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21945 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21946 (decision_tree::gen_gimple): Adjust calls and indent generated
21948 (decision_tree::gen_generic): Ditto.
21949 (write_predicate): Ditto.
21951 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21954 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21955 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21956 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21957 {GENERAL,SSE,MMX}_REG_P where appropriate.
21959 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21961 * lto-streamer.h: Don't include target.h and alloc-pool.h.
21962 * builtins.c: Adjust includes.
21963 * gimple.c: Likewise.
21964 * ipa-icf.c: Likewise.
21965 * lto-opts.c: Likewise.
21966 * ipa-reference.c: Likewise.
21967 * lto-section-out.c: Likewise.
21968 * lto-streamer-in.c: Likewise.
21969 * lto-streamer-out.c: Likewise.
21970 * opts-global.c: Likewise.
21971 * symtab.c: Likewise.
21972 * tree-chkp.c: Likewise.
21973 * tree-ssa-live.c: Likewise.
21974 * tree-streamer-in.c: Likewise.
21975 * tree-streamer-out.c: Likewise.
21976 * config/darwin.c: Likewise.
21977 * config/i386/winnt.c: Likewise.
21979 2015-07-09 Richard Biener <rguenther@suse.de>
21981 * genmatch.c (struct expr): Add force_single_use flag.
21982 (expr::expr): Add copy constructor.
21983 (capture_info::walk_match): Gather force_single_use captures.
21984 (expr::gen_transform): Use possibly NULLified sequence.
21985 (dt_simplify::gen): Apply single-use restrictions by NULLifying
21986 seq if any constrained expr is not single-use.
21987 (parser::parse_expr): Refactor to allow multiple flags. Handle
21988 's' flag to force an expression have a single-use if the pattern
21989 simplifies to more than one statement.
21990 * match.pd: Convert most single_use conditionals to :s flags.
21992 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21994 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21995 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21996 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21998 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22000 * flags.h: Don't include flag-types.h or options.h.
22001 * opts-common.c: Adjust includes.
22002 * opts-global.c: Likewise.
22003 * common/config/epiphany/epiphany-common.c: Likewise.
22005 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22008 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22011 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22014 * config/i386/i386.c (ix86_return_in_memory): Return true
22015 if int_size_in_bytes returns negative for IA MCU.
22017 2015-07-09 Marek Polacek <polacek@redhat.com>
22019 PR tree-optimization/66718
22020 * Makefile.in (OBJS): Add gimple-laddress.o.
22021 * passes.def: Schedule pass_laddress.
22022 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22023 * tree-pass.h (make_pass_laddress): Declare.
22024 * gimple-laddress.c: New file.
22026 2015-07-09 Richard Biener <rguenther@suse.de>
22028 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22030 2015-07-09 Richard Biener <rguenther@suse.de>
22032 PR tree-optimization/66807
22033 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22035 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
22037 * function.c (stack_protect_epilogue): Use if rather than switch for
22038 check targetm.have_stack_protect_test.
22040 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22042 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22043 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22044 * config/arc/arc.h: Likewise.
22045 * config/arm/arm.h: Likewise.
22046 * config/bfin/bfin.h: Likewise.
22047 * config/epiphany/epiphany.h: Likewise.
22048 * config/frv/frv.h: Likewise.
22049 * config/ia64/ia64.h: Likewise.
22050 * config/iq2000/iq2000.h: Likewise.
22051 * config/lm32/lm32.h: Likewise.
22052 * config/m32r/m32r.h: Likewise.
22053 * config/mcore/mcore.h: Likewise.
22054 * config/mep/mep.h: Likewise.
22055 * config/microblaze/microblaze.h: Likewise.
22056 * config/mips/mips.h: Likewise.
22057 * config/mmix/mmix.h: Likewise.
22058 * config/mn10300/mn10300.h: Likewise.
22059 * config/nds32/nds32.h: Likewise.
22060 * config/nios2/nios2.h: Likewise.
22061 * config/pa/pa.h: Likewise.
22062 * config/rl78/rl78.h: Likewise.
22063 * config/sh/sh.h: Likewise.
22064 * config/sparc/sparc.h: Likewise.
22065 * config/stormy16/stormy16.h: Likewise.
22066 * config/tilegx/tilegx.h: Likewise.
22067 * config/tilepro/tilepro.h: Likewise.
22068 * config/v850/v850.h: Likewise.
22069 * config/xtensa/xtensa.h: Likewise.
22070 * doc/tm.texi: Regenerate.
22071 * doc/tm.texi.in: Adjust.
22072 * combine.c (simplify_set): Likewise.
22073 (simplify_comparison): Likewise.
22074 * expr.c (store_constructor): Likewise.
22075 * internal-fn.c (expand_arith_overflow): Likewise.
22076 * reload.c (push_reload): Likewise.
22077 (find_reloads): Likewise.
22078 (find_reloads_subreg_address): Likewise.
22079 * reload1.c (eliminate_regs_1): Likewise.
22080 * rtlanal.c (nonzero_bits1): Likewise.
22081 (num_sign_bit_copies1): Likewise.
22082 * simplify-rtx.c (simplify_truncation): Likewise.
22084 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22086 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22087 of AUTO_INC_DEC with the preprocessor.
22088 * combine.c (combine_instructions): Likewise.
22089 (can_combine_p): Likewise.
22090 (try_combine): Likewise.
22091 * emit-rtl.c (try_split): Likewise.
22092 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22093 * lower-subreg.c (resolve_simple_move): Likewise.
22094 * lra.c (update_inc_notes): Likewise.
22095 * recog.c (asm_operand_ok): Likewise.
22096 (constrain_operands): Likewise.
22097 * regrename.c (scan_rtx_address): Likewise.
22098 * reload.c (update_auto_inc_notes): Likewise.
22099 (reg_inc_found_and_valid_p): Likewise.
22100 * reload1.c (reload): Likewise.
22101 (emit_input_reload_insns): Likewise.
22102 (delete_output_reload): Likewise.
22103 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22104 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22106 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22108 * rtl.h: Always define AUTO_INC_DEC.
22109 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22110 * combine.c (combine_instructions): Likewise.
22111 (can_combine_p): Likewise.
22112 (try_combine): Likewise.
22113 * emit-rtl.c (try_split): Likewise.
22114 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22115 * lower-subreg.c (resolve_simple_move): Likewise.
22116 * lra.c (update_inc_notes): Likewise.
22117 * recog.c (asm_operand_ok): Likewise.
22118 (constrain_operands): Likewise.
22119 * regrename.c (scan_rtx_address): Likewise.
22120 * reload.c (update_auto_inc_notes): Likewise.
22121 (find_equiv_reg): Likewise.
22122 * reload1.c (reload): Likewise.
22123 (reload_as_needed): Likewise.
22124 (choose_reload_regs): Likewise.
22125 (emit_input_reload_insns): Likewise.
22126 (delete_output_reload): Likewise.
22127 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22128 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22130 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22132 * combine.c (can_combine_def_p): Don't check the value of
22133 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22134 (combinable_i3pat): Likewise.
22135 (mark_used_regs_combine): Likewise.
22136 * regrename.c (rename_chains): Likewise.
22137 * reload.c (find_reloads_address): Likewise.
22138 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22140 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22142 * combine.c (update_rsp_from_reg_equal): Don't check if
22143 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22144 (reg_nonzero_bits_for_combine): Likewise.
22145 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22147 * config/frv/frv.h: Likewise.
22148 * config/lm32/lm32.h: Likewise.
22149 * config/mep/mep.h: Likewise.
22150 * config/mips/mips.h: Likewise.
22151 * config/rs6000/rs6000.h: Likewise.
22152 * config/sh/sh.h: Likewise.
22153 * config/tilegx/tilegx.h (enum reg_class): Likewise.
22154 * config/tilepro/tilepro.h: Likewise.
22155 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22156 * doc/tm.texi: Regenerate.
22157 * doc/tm.texi.in: Adjust.
22158 * rtlanal.c (nonzero_bits1): Likewise.
22160 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22162 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22163 with the preprocessor.
22164 (combine_instructions): Likewise.
22165 (try_combine): Likewise.
22167 (distribute_notes): Likewise.
22169 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22171 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22173 (simplify_set): Likewise.
22174 * cse.c (cse_insn): Likewise.
22175 * fold-const.c (fold_single_bit_test): Likewise.
22176 (fold_unary_loc): Likewise.
22177 * postreload.c (reload_cse_simplify_set): Likewise.
22178 (reload_cse_simplify_operands): Likewise.
22180 2015-07-08 Jiong Wang <jiong.wang@arm.com>
22182 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22183 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22185 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22188 * config/i386/x86intrin.h: Include <adxintrin.h> even if
22189 __iamcu__ is defined.
22191 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22193 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22195 2015-07-08 Iain Sandoe <iain@codesourcery.com>
22198 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22199 names from preservation.
22201 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22204 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22206 (function_arg_advance_32): Don't pass vectors in registers for
22208 (function_arg_32): Likewise.
22209 (ix86_return_in_memory): Don't return vectors in registers for
22212 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
22214 PR middle-end/66334
22215 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22216 hard regno live at the start of BB with incoming abnormal edges.
22217 * lra-lives.c (process_bb_lives): Ditto.
22219 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
22222 * config/nvptx/mkoffload.c (main): Create an offload image only in
22223 64-bit configurations.
22225 2015-07-08 Martin Liska <mliska@suse.cz>
22228 * tree-sra.c (create_access_1): Call ctor without brackets.
22229 (create_artificial_child_access): Likewise.
22231 2015-07-08 Richard Biener <rguenther@suse.de>
22233 PR tree-optimization/66793
22234 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22235 Properly split the block after stmts ending it.
22237 2015-07-08 Richard Biener <rguenther@suse.de>
22239 PR tree-optimization/66794
22240 * passes.c (execute_function_todo): Assert that post-dominators
22242 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22243 Free post-dominators.
22245 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22247 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22250 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22252 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22253 more than or equal 8 and less than 32 when optimizing for size.
22255 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22257 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22258 COSTS_N_INSNS (1) and increment it appropriately throughout the
22261 2015-07-08 Richard Biener <rguenther@suse.de>
22263 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22265 2015-07-08 Alan Modra <amodra@gmail.com>
22267 * target.def (rtx_costs): Remove "code" param, add "mode".
22268 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22269 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
22270 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22271 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
22272 call. Track mode when given in rtx.
22273 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
22274 (default_address_cost): Pass Pmode to rtx_cost.
22275 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22276 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22278 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
22279 (notreg_cost): Add mode param. Use it.
22280 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
22281 mode param and pass to set_src_cost. Update all calls.
22282 (hash_scan_set): Formatting.
22283 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22284 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22286 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22287 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22288 emit_store_flag): Update set_src_cost and rtx_cost calls.
22289 * auto-inc-dec.c (attempt_change): Likewise.
22290 * calls.c (precompute_register_parameters): Likewise.
22291 * combine.c (expand_compound_operation, make_extraction,
22292 force_to_mode, distribute_and_simplify_rtx): Likewise.
22293 * dojump.c (prefer_and_bit_test): Likewise.
22294 * dse.c (find_shift_sequence): Likewise.
22295 * expr.c (compress_float_constant): Likewise.
22296 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22297 * ifcvt.c (noce_try_sign_mask): Likewise.
22298 * loop-doloop.c (doloop_optimize): Likewise.
22299 * loop-invariant.c (create_new_invariant): Likewise.
22300 * lower-subreg.c (shift_cost, compute_costs): Likewise.
22301 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22302 lshift_cheap_p): Likewise.
22303 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22304 try_replace_in_use, reload_cse_move2add): Likewise.
22305 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22307 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22308 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22309 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22310 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22311 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22312 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
22314 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22315 * config/arc/arc.c (arc_rtx_costs): Likewise.
22316 * config/arm/arm.c (arm_rtx_costs): Likewise.
22317 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22318 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22319 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22320 * config/cris/cris.c (cris_rtx_costs): Likewise.
22321 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22322 * config/frv/frv.c (frv_rtx_costs): Likewise.
22323 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22324 * config/i386/i386.c (ix86_rtx_costs): Likewise.
22325 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22326 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22327 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22328 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22329 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22330 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22331 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22332 * config/mep/mep.c (mep_rtx_cost): Likewise.
22333 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22334 * config/mips/mips.c (mips_rtx_costs): Likewise.
22335 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22336 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22337 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22338 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22339 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22340 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22341 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22342 * config/pa/pa.c (hppa_rtx_costs): Likewise.
22343 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22344 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22345 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22346 * config/s390/s390.c (s390_rtx_costs): Likewise.
22347 * config/sh/sh.c (sh_rtx_costs): Likewise.
22348 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22349 * config/spu/spu.c (spu_rtx_costs): Likewise.
22350 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22351 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22352 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22353 * config/v850/v850.c (v850_rtx_costs): Likewise.
22354 * config/vax/vax.c (vax_rtx_costs): Likewise.
22355 * config/visium/visium.c (visium_rtx_costs): Likewise.
22356 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22357 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22358 "code" param, and pass as outer_code to first rtx_cost call. Pass
22359 mode to rtx_cost calls.
22360 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22362 (aarch64_rtx_costs_wrapper): Update.
22363 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22364 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22366 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22367 and rtx_cost calls.
22368 (avr_operand_rtx_cost): Similarly.
22369 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22370 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22371 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22372 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22373 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22374 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22376 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22377 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22378 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22379 * doc/tm.texi: Regenerate.
22381 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22383 * tree-core.h: Include symtab.h.
22384 * rtl.h: Include hard-reg-set.h but not flags.h.
22385 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22386 hard-reg-set.h is always included.
22387 * regs.h: Don't include hard-reg-set.h or rtl.h.
22388 * cfg.h: Include dominance.h.
22389 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22390 * backend.h: New. Aggregate commonly used backend header files.
22391 * gimple-ssa.h: Don't include tree-hasher.h.
22392 * ssa.h: New. Aggregate commonly used SSA header files.
22393 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22394 * sel-sched-ir.h: Flatten includes.
22395 * lra-int.h: Flatten completely.
22396 * sel-sched-dump.h: Flatten includes.
22397 * ira-int.h: Flatten includes.
22398 * gimple-streamer.h: Remove all includes.
22399 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22400 * resource.h: Flatten hard-reg-set.h and df.h.
22401 * sched-int.h: Flatten insn-arrt.h and df.h.
22402 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22403 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22404 * genattrtab.c (write_header): Adjust generated includes.
22405 * genautomata.c (main): Likewise.
22406 * genconditions.c (write-header): Likewise.
22407 * genemit.c (main): Likewise.
22408 * gengtype.c (open_base_files): Likewise.
22409 * genopinit.c (main): Likewise.
22410 * genoutput.c (output_prologue): Likewise.
22411 * genpeep.c (main): Likewise.
22412 * genpreds.c (write_insn_preds_c): Likewise.
22413 * genrecog.c (write_header): Likewise.
22414 * alias.c: Adjust includes.
22415 * asan.c: Likewise.
22416 * attribs.c: Likewise.
22417 * auto-inc-dec.c: Likewise.
22418 * auto-profile.c: Likewise.
22419 * bb-reorder.c: Likewise.
22420 * bt-load.c: Likewise.
22421 * builtins.c: Likewise.
22422 * caller-save.c: Likewise.
22423 * calls.c: Likewise.
22424 * ccmp.c: Likewise.
22426 * cfganal.c: Likewise.
22427 * cfgbuild.c: Likewise.
22428 * cfgcleanup.c: Likewise.
22429 * cfgexpand.c: Likewise.
22430 * cfghooks.c: Likewise.
22431 * cfgloop.c: Likewise.
22432 * cfgloopanal.c: Likewise.
22433 * cfgloopmanip.c: Likewise.
22434 * cfgrtl.c: Likewise.
22435 * cgraph.c: Likewise.
22436 * cgraphbuild.c: Likewise.
22437 * cgraphclones.c: Likewise.
22438 * cgraphunit.c: Likewise.
22439 * cilk-common.c: Likewise.
22440 * combine-stack-adj.c: Likewise.
22441 * combine.c: Likewise.
22442 * compare-elim.c: Likewise.
22443 * convert.c: Likewise.
22444 * coverage.c: Likewise.
22445 * cppbuiltin.c: Likewise.
22446 * cprop.c: Likewise.
22448 * cselib.c: Likewise.
22449 * data-streamer-in.c: Likewise.
22450 * data-streamer-out.c: Likewise.
22451 * data-streamer.c: Likewise.
22452 * dbxout.c: Likewise.
22455 * debug.c: Likewise.
22456 * df-core.c: Likewise.
22457 * df-problems.c: Likewise.
22458 * df-scan.c: Likewise.
22460 * dojump.c: Likewise.
22461 * dominance.c: Likewise.
22462 * domwalk.c: Likewise.
22463 * double-int.c: Likewise.
22465 * dumpfile.c: Likewise.
22466 * dwarf2asm.c: Likewise.
22467 * dwarf2cfi.c: Likewise.
22468 * dwarf2out.c: Likewise.
22469 * emit-rtl.c: Likewise.
22470 * et-forest.c: Likewise.
22471 * except.c: Likewise.
22472 * explow.c: Likewise.
22473 * expmed.c: Likewise.
22474 * expr.c: Likewise.
22475 * final.c: Likewise.
22476 * fixed-value.c: Likewise.
22477 * fold-const.c: Likewise.
22478 * function.c: Likewise.
22479 * fwprop.c: Likewise.
22480 * gcc-plugin.h: Likewise.
22481 * gcse-common.c: Likewise.
22482 * gcse.c: Likewise.
22483 * generic-match-head.c: Likewise.
22484 * ggc-page.c: Likewise.
22485 * gimple-builder.c: Likewise.
22486 * gimple-expr.c: Likewise.
22487 * gimple-fold.c: Likewise.
22488 * gimple-iterator.c: Likewise.
22489 * gimple-low.c: Likewise.
22490 * gimple-match-head.c: Likewise.
22491 * gimple-pretty-print.c: Likewise.
22492 * gimple-ssa-isolate-paths.c: Likewise.
22493 * gimple-ssa-strength-reduction.c: Likewise.
22494 * gimple-streamer-in.c: Likewise.
22495 * gimple-streamer-out.c: Likewise.
22496 * gimple-walk.c: Likewise.
22497 * gimple.c: Likewise.
22498 * gimplify-me.c: Likewise.
22499 * gimplify.c: Likewise.
22500 * godump.c: Likewise.
22501 * graph.c: Likewise.
22502 * graphite-blocking.c: Likewise.
22503 * graphite-dependences.c: Likewise.
22504 * graphite-interchange.c: Likewise.
22505 * graphite-isl-ast-to-gimple.c: Likewise.
22506 * graphite-optimize-isl.c: Likewise.
22507 * graphite-poly.c: Likewise.
22508 * graphite-scop-detection.c: Likewise.
22509 * graphite-sese-to-poly.c: Likewise.
22510 * graphite.c: Likewise.
22511 * haifa-sched.c: Likewise.
22512 * hw-doloop.c: Likewise.
22513 * ifcvt.c: Likewise.
22514 * init-regs.c: Likewise.
22515 * internal-fn.c: Likewise.
22516 * ipa-chkp.c: Likewise.
22517 * ipa-comdats.c: Likewise.
22518 * ipa-cp.c: Likewise.
22519 * ipa-devirt.c: Likewise.
22520 * ipa-icf-gimple.c: Likewise.
22521 * ipa-icf.c: Likewise.
22522 * ipa-inline-analysis.c: Likewise.
22523 * ipa-inline-transform.c: Likewise.
22524 * ipa-inline.c: Likewise.
22525 * ipa-polymorphic-call.c: Likewise.
22526 * ipa-profile.c: Likewise.
22527 * ipa-prop.c: Likewise.
22528 * ipa-pure-const.c: Likewise.
22529 * ipa-ref.c: Likewise.
22530 * ipa-reference.c: Likewise.
22531 * ipa-split.c: Likewise.
22532 * ipa-utils.c: Likewise.
22533 * ipa-visibility.c: Likewise.
22535 * ira-build.c: Likewise.
22536 * ira-color.c: Likewise.
22537 * ira-conflicts.c: Likewise.
22538 * ira-costs.c: Likewise.
22539 * ira-emit.c: Likewise.
22540 * ira-lives.c: Likewise.
22542 * jump.c: Likewise.
22543 * langhooks.c: Likewise.
22545 * loop-doloop.c: Likewise.
22546 * loop-init.c: Likewise.
22547 * loop-invariant.c: Likewise.
22548 * loop-iv.c: Likewise.
22549 * loop-unroll.c: Likewise.
22550 * lower-subreg.c: Likewise.
22551 * lra-assigns.c: Likewise.
22552 * lra-coalesce.c: Likewise.
22553 * lra-constraints.c: Likewise.
22554 * lra-eliminations.c: Likewise.
22555 * lra-lives.c: Likewise.
22556 * lra-remat.c: Likewise.
22557 * lra-spills.c: Likewise.
22559 * lto-cgraph.c: Likewise.
22560 * lto-compress.c: Likewise.
22561 * lto-opts.c: Likewise.
22562 * lto-section-in.c: Likewise.
22563 * lto-section-out.c: Likewise.
22564 * lto-streamer-in.c: Likewise.
22565 * lto-streamer-out.c: Likewise.
22566 * lto-streamer.c: Likewise.
22568 * mode-switching.c: Likewise.
22569 * modulo-sched.c: Likewise.
22570 * omega.c: Likewise.
22571 * omp-low.c: Likewise.
22572 * optabs.c: Likewise.
22573 * opts-global.c: Likewise.
22574 * passes.c: Likewise.
22575 * plugin.c: Likewise.
22576 * postreload-gcse.c: Likewise.
22577 * postreload.c: Likewise.
22578 * predict.c: Likewise.
22579 * print-rtl.c: Likewise.
22580 * print-tree.c: Likewise.
22581 * profile.c: Likewise.
22582 * real.c: Likewise.
22583 * realmpfr.c: Likewise.
22584 * recog.c: Likewise.
22586 * reg-stack.c: Likewise.
22587 * regcprop.c: Likewise.
22588 * reginfo.c: Likewise.
22589 * regrename.c: Likewise.
22590 * regstat.c: Likewise.
22591 * reload.c: Likewise.
22592 * reload1.c: Likewise.
22593 * reorg.c: Likewise.
22594 * resource.c: Likewise.
22595 * rtl-chkp.c: Likewise.
22596 * rtlanal.c: Likewise.
22597 * rtlhooks.c: Likewise.
22598 * sanopt.c: Likewise.
22599 * sched-deps.c: Likewise.
22600 * sched-ebb.c: Likewise.
22601 * sched-rgn.c: Likewise.
22602 * sched-vis.c: Likewise.
22603 * sdbout.c: Likewise.
22604 * sel-sched-dump.c: Likewise.
22605 * sel-sched-ir.c: Likewise.
22606 * sel-sched.c: Likewise.
22607 * sese.c: Likewise.
22608 * shrink-wrap.c: Likewise.
22609 * simplify-rtx.c: Likewise.
22610 * stack-ptr-mod.c: Likewise.
22611 * stmt.c: Likewise.
22612 * stor-layout.c: Likewise.
22613 * store-motion.c: Likewise.
22614 * stringpool.c: Likewise.
22615 * symtab.c: Likewise.
22616 * target-globals.c: Likewise.
22617 * targhooks.c: Likewise.
22618 * toplev.c: Likewise.
22619 * tracer.c: Likewise.
22620 * trans-mem.c: Likewise.
22621 * tree-affine.c: Likewise.
22622 * tree-browser.c: Likewise.
22623 * tree-call-cdce.c: Likewise.
22624 * tree-cfg.c: Likewise.
22625 * tree-cfgcleanup.c: Likewise.
22626 * tree-chkp-opt.c: Likewise.
22627 * tree-chkp.c: Likewise.
22628 * tree-chrec.c: Likewise.
22629 * tree-complex.c: Likewise.
22630 * tree-data-ref.c: Likewise.
22631 * tree-dfa.c: Likewise.
22632 * tree-diagnostic.c: Likewise.
22633 * tree-dump.c: Likewise.
22634 * tree-eh.c: Likewise.
22635 * tree-emutls.c: Likewise.
22636 * tree-if-conv.c: Likewise.
22637 * tree-inline.c: Likewise.
22638 * tree-into-ssa.c: Likewise.
22639 * tree-iterator.c: Likewise.
22640 * tree-loop-distribution.c: Likewise.
22641 * tree-nested.c: Likewise.
22642 * tree-nrv.c: Likewise.
22643 * tree-object-size.c: Likewise.
22644 * tree-outof-ssa.c: Likewise.
22645 * tree-parloops.c: Likewise.
22646 * tree-phinodes.c: Likewise.
22647 * tree-predcom.c: Likewise.
22648 * tree-pretty-print.c: Likewise.
22649 * tree-profile.c: Likewise.
22650 * tree-scalar-evolution.c: Likewise.
22651 * tree-sra.c: Likewise.
22652 * tree-ssa-address.c: Likewise.
22653 * tree-ssa-alias.c: Likewise.
22654 * tree-ssa-ccp.c: Likewise.
22655 * tree-ssa-coalesce.c: Likewise.
22656 * tree-ssa-copy.c: Likewise.
22657 * tree-ssa-copyrename.c: Likewise.
22658 * tree-ssa-dce.c: Likewise.
22659 * tree-ssa-dom.c: Likewise.
22660 * tree-ssa-dse.c: Likewise.
22661 * tree-ssa-forwprop.c: Likewise.
22662 * tree-ssa-ifcombine.c: Likewise.
22663 * tree-ssa-live.c: Likewise.
22664 * tree-ssa-loop-ch.c: Likewise.
22665 * tree-ssa-loop-im.c: Likewise.
22666 * tree-ssa-loop-ivcanon.c: Likewise.
22667 * tree-ssa-loop-ivopts.c: Likewise.
22668 * tree-ssa-loop-manip.c: Likewise.
22669 * tree-ssa-loop-niter.c: Likewise.
22670 * tree-ssa-loop-prefetch.c: Likewise.
22671 * tree-ssa-loop-unswitch.c: Likewise.
22672 * tree-ssa-loop.c: Likewise.
22673 * tree-ssa-math-opts.c: Likewise.
22674 * tree-ssa-operands.c: Likewise.
22675 * tree-ssa-phiopt.c: Likewise.
22676 * tree-ssa-phiprop.c: Likewise.
22677 * tree-ssa-pre.c: Likewise.
22678 * tree-ssa-propagate.c: Likewise.
22679 * tree-ssa-reassoc.c: Likewise.
22680 * tree-ssa-sccvn.c: Likewise.
22681 * tree-ssa-scopedtables.c: Likewise.
22682 * tree-ssa-sink.c: Likewise.
22683 * tree-ssa-strlen.c: Likewise.
22684 * tree-ssa-structalias.c: Likewise.
22685 * tree-ssa-tail-merge.c: Likewise.
22686 * tree-ssa-ter.c: Likewise.
22687 * tree-ssa-threadedge.c: Likewise.
22688 * tree-ssa-threadupdate.c: Likewise.
22689 * tree-ssa-uncprop.c: Likewise.
22690 * tree-ssa-uninit.c: Likewise.
22691 * tree-ssa.c: Likewise.
22692 * tree-ssanames.c: Likewise.
22693 * tree-stdarg.c: Likewise.
22694 * tree-streamer-in.c: Likewise.
22695 * tree-streamer-out.c: Likewise.
22696 * tree-streamer.c: Likewise.
22697 * tree-switch-conversion.c: Likewise.
22698 * tree-tailcall.c: Likewise.
22699 * tree-vect-data-refs.c: Likewise.
22700 * tree-vect-generic.c: Likewise.
22701 * tree-vect-loop-manip.c: Likewise.
22702 * tree-vect-loop.c: Likewise.
22703 * tree-vect-patterns.c: Likewise.
22704 * tree-vect-slp.c: Likewise.
22705 * tree-vect-stmts.c: Likewise.
22706 * tree-vectorizer.c: Likewise.
22707 * tree-vrp.c: Likewise.
22708 * tree.c: Likewise.
22709 * tsan.c: Likewise.
22710 * ubsan.c: Likewise.
22711 * valtrack.c: Likewise.
22712 * value-prof.c: Likewise.
22713 * var-tracking.c: Likewise.
22714 * varasm.c: Likewise.
22715 * varpool.c: Likewise.
22716 * vmsdbgout.c: Likewise.
22717 * vtable-verify.c: Likewise.
22719 * wide-int.cc: Likewise.
22720 * xcoffout.c: Likewise.
22721 * config/aarch64/aarch64-builtins.c: Likewise.
22722 * config/aarch64/aarch64.c: Likewise.
22723 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22724 * config/alpha/alpha.c: Likewise.
22725 * config/arc/arc.c: Likewise.
22726 * config/arm/aarch-common.c: Likewise.
22727 * config/arm/arm-builtins.c: Likewise.
22728 * config/arm/arm-c.c: Likewise.
22729 * config/arm/arm.c: Likewise.
22730 * config/avr/avr-c.c: Likewise.
22731 * config/avr/avr-log.c: Likewise.
22732 * config/avr/avr.c: Likewise.
22733 * config/bfin/bfin.c: Likewise.
22734 * config/c6x/c6x.c: Likewise.
22735 * config/cr16/cr16.c: Likewise.
22736 * config/cris/cris.c: Likewise.
22737 * config/darwin-c.c: Likewise.
22738 * config/darwin.c: Likewise.
22739 * config/epiphany/epiphany.c: Likewise.
22740 * config/epiphany/mode-switch-use.c: Likewise.
22741 * config/epiphany/resolve-sw-modes.c: Likewise.
22742 * config/fr30/fr30.c: Likewise.
22743 * config/frv/frv.c: Likewise.
22744 * config/ft32/ft32.c: Likewise.
22745 * config/h8300/h8300.c: Likewise.
22746 * config/i386/i386-c.c: Likewise.
22747 * config/i386/i386.c: Likewise.
22748 * config/i386/msformat-c.c: Likewise.
22749 * config/i386/winnt-cxx.c: Likewise.
22750 * config/i386/winnt-stubs.c: Likewise.
22751 * config/i386/winnt.c: Likewise.
22752 * config/ia64/ia64-c.c: Likewise.
22753 * config/ia64/ia64.c: Likewise.
22754 * config/iq2000/iq2000.c: Likewise.
22755 * config/lm32/lm32.c: Likewise.
22756 * config/m32c/m32c-pragma.c: Likewise.
22757 * config/m32c/m32c.c: Likewise.
22758 * config/m32r/m32r.c: Likewise.
22759 * config/m68k/m68k.c: Likewise.
22760 * config/mcore/mcore.c: Likewise.
22761 * config/mep/mep-pragma.c: Likewise.
22762 * config/mep/mep.c: Likewise.
22763 * config/microblaze/microblaze-c.c: Likewise.
22764 * config/microblaze/microblaze.c: Likewise.
22765 * config/mips/mips.c: Likewise.
22766 * config/mmix/mmix.c: Likewise.
22767 * config/mn10300/mn10300.c: Likewise.
22768 * config/moxie/moxie.c: Likewise.
22769 * config/msp430/msp430-c.c: Likewise.
22770 * config/msp430/msp430.c: Likewise.
22771 * config/nds32/nds32-cost.c: Likewise.
22772 * config/nds32/nds32-fp-as-gp.c: Likewise.
22773 * config/nds32/nds32-intrinsic.c: Likewise.
22774 * config/nds32/nds32-isr.c: Likewise.
22775 * config/nds32/nds32-md-auxiliary.c: Likewise.
22776 * config/nds32/nds32-memory-manipulation.c: Likewise.
22777 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22778 * config/nds32/nds32-predicates.c: Likewise.
22779 * config/nds32/nds32.c: Likewise.
22780 * config/nios2/nios2.c: Likewise.
22781 * config/nvptx/nvptx.c: Likewise.
22782 * config/pa/pa.c: Likewise.
22783 * config/pdp11/pdp11.c: Likewise.
22784 * config/rl78/rl78-c.c: Likewise.
22785 * config/rl78/rl78.c: Likewise.
22786 * config/rs6000/rs6000-c.c: Likewise.
22787 * config/rs6000/rs6000.c: Likewise.
22788 * config/rx/rx.c: Likewise.
22789 * config/s390/s390-c.c: Likewise.
22790 * config/s390/s390.c: Likewise.
22791 * config/sh/sh-c.c: Likewise.
22792 * config/sh/sh-mem.cc: Likewise.
22793 * config/sh/sh.c: Likewise.
22794 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22795 * config/sh/sh_treg_combine.cc: Likewise.
22796 * config/sol2-c.c: Likewise.
22797 * config/sol2-cxx.c: Likewise.
22798 * config/sol2-stubs.c: Likewise.
22799 * config/sol2.c: Likewise.
22800 * config/sparc/sparc-c.c: Likewise.
22801 * config/sparc/sparc.c: Likewise.
22802 * config/spu/spu-c.c: Likewise.
22803 * config/spu/spu.c: Likewise.
22804 * config/stormy16/stormy16.c: Likewise.
22805 * config/tilegx/mul-tables.c: Likewise.
22806 * config/tilegx/tilegx-c.c: Likewise.
22807 * config/tilegx/tilegx.c: Likewise.
22808 * config/tilepro/mul-tables.c: Likewise.
22809 * config/tilepro/tilepro-c.c: Likewise.
22810 * config/tilepro/tilepro.c: Likewise.
22811 * config/v850/v850-c.c: Likewise.
22812 * config/v850/v850.c: Likewise.
22813 * config/vax/vax.c: Likewise.
22814 * config/visium/visium.c: Likewise.
22815 * config/vms/vms-c.c: Likewise.
22816 * config/vms/vms.c: Likewise.
22817 * config/vxworks.c: Likewise.
22818 * config/xtensa/xtensa.c: Likewise.
22820 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22822 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22823 Remove operand constraints. Change operand 2 predicate to
22824 nonmemory operand. Limit const_int values to mode bitsize. Only
22825 allow const_int values less than 32 when optimizing for size.
22826 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22827 Remove operand constraints.
22828 (*bt<mode>): Use SImode for const_int values less than 32.
22829 (regmode): Remove mode attribute.
22831 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22833 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22834 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22835 moxie_legitimate_address_p): New functions.
22836 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22838 2015-07-07 Tom de Vries <tom@codesourcery.com>
22840 PR tree-optimization/66642
22841 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22842 header comment. Rename split_edge variable to edge_at_split. Split
22843 exit edge to create new loop exit bb. Insert loop exit phis in new
22846 2015-07-07 Tom de Vries <tom@codesourcery.com>
22848 * tree-cfg.c (get_virtual_phi): New function.
22849 * tree-cfg.h (get_virtual_phi): Declare.
22850 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22851 (rewrite_virtuals_into_loop_closed_ssa): New function.
22852 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22854 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22855 (transform_to_exit_first_loop_alt): Use
22856 rewrite_virtuals_into_loop_closed_ssa.
22858 2015-07-07 Richard Biener <rguenther@suse.de>
22860 * fold-const.c (fold_binary_loc): Move
22861 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22862 * match.pd: ... here.
22863 Add (X * C1) % C2 -> 0 simplification pattern derived from
22866 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
22869 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22870 change for target/65249.
22872 2015-07-07 Paulo Matos <pmatos@broadcom.com>
22874 * symtab.c (address_matters_1): Fix typo in comment above.
22875 (can_increase_alignment_p): Likewise.
22877 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22879 * function.c (free_after_compilation): Clear PROP_cfg in
22880 f->curr_properties.
22882 2015-07-07 Richard Biener <rguenther@suse.de>
22884 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22886 (add_control_edge): Remove excessive vertical space in dumping.
22887 (process_ssa_edge_worklist): Simulate at most one statement and
22888 return whether we did. Do not simulate PHIs if they are in a
22889 BB not yet simulated.
22890 (ssa_propagate): Adjust to always drain the BB worklist whenever
22891 a BB is available there, likewise the VARYING edges list before
22892 the interesting edge list.
22894 2015-07-07 Christian Bruel <christian.bruel@st.com>
22897 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22899 2015-07-07 Richard Biener <rguenther@suse.de>
22901 PR middle-end/66739
22902 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22905 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22907 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
22908 modes for operands 0 and 3. Use SImode for operands 2 and 3.
22909 Copy operand 0 to a temporary if !ext_register_operand. Remove
22910 ancient extract_bit_field workaround.
22911 (insv<mode>_1): Rename from mov<mode>_insv_1.
22912 (*insvqi): Rename from *movqi_insv_2.
22913 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22914 for renamed insvsi_1.
22915 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22917 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
22919 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
22920 call to nvptx_reorg_subreg.
22922 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
22924 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22925 * graphite-dependencies.c, graphite-interchange.c,
22926 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22927 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22930 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
22932 * match.pd: Remove element_mode inside HONOR_*.
22933 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22934 (~X | X -> -1, ~X ^ X -> -1): Merge.
22935 * tree.c (build_each_one_cst): New function.
22936 * tree.h (build_each_one_cst): Likewise.
22938 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22940 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22943 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
22945 * config.gcc <mips*-*-*>: Add fused-madd.opt.
22946 * config/mips/mips.opt (mfused-madd): Remove.
22947 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22948 * config/mips/mips.h (TARGET_MIPS8000): New.
22949 (ISA_HAS_FP_MADD4_MSUB4): Remove.
22950 (ISA_HAS_FP_MADDF_MSUBF): Remove.
22951 (ISA_HAS_FP_MADD3_MSUB3): Remove.
22952 (ISA_HAS_NMADD4_NMSUB4): Remove.
22953 (ISA_HAS_NMADD3_NMSUB3): Remove.
22954 (ISA_HAS_FUSED_MADD4): New.
22955 (ISA_HAS_UNFUSED_MADD4): New.
22956 (ISA_HAS_FUSED_MADDF): New.
22957 (ISA_HAS_FUSED_MADD3): New.
22958 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22959 (*fma<mode>4_madd3) New.
22960 (*fma<mode>4_madd4) New.
22961 (*fma<mode>4_maddf) New.
22963 (*fms<mode>4_msub3) New.
22964 (*fms<mode>4_msub4) New.
22966 (*fnma<mode>4_nmadd3) New.
22967 (*fnma<mode>4_nmadd4) New.
22969 (*fnms<mode>4_nmsub3) New.
22970 (*fnms<mode>4_nmsub4) New.
22971 (*madd4<mode>) Modify to be unfused only.
22972 (*msub4<mode>) Modify to be unfused only.
22973 (*nmadd4<mode>) Modify to be unfused only.
22974 (*nmsub4<mode>) Modify to be unfused only.
22975 (*madd3<mode>) Remove.
22976 (*msub3<mode>) Remove.
22977 (*nmadd3<mode>) Remove.
22978 (*nmsub3<mode>) Remove.
22979 (*nmadd3<mode>_fastmath) Remove.
22980 (*nmsub3<mode>_fastmath) Remove.
22981 (*nmadd4<mode>_fastmath) Update condition.
22982 (*nmsub4<mode>_fastmath) Update condition.
22984 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22987 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22988 alignment attribute, exploring one level down for records and arrays.
22990 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22992 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
22993 modes for operands 0 and 1. Use SImode for operands 2 and 3.
22994 Copy operand 1 to a temporary if !ext_register_operand. Remove
22995 ancient extract_bit_field workaround.
22996 (*extv<mode>): Rename from *mov<mode>_extv_1.
22997 (*extvqi): Rename from *movqi_extv_1.
22998 (extzv<mode>): Rename from extzv. Use SWI248 modes for
22999 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
23000 to a temporary if !ext_register_operand. Remove ancient
23001 extract_bit_field workaround.
23002 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23003 (*extzvqi): Rename from *movqi_extzv_2.
23004 (*testqi_ext_3): Remove modes from const_int_operand predicated
23005 operands. Add "n" constraint.
23006 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23007 operand. Add "J" constraint.
23008 (*btsq, *btrq, *btcq peephole2s): Remove mode from
23009 const_0_to_63 predicated operand.
23010 (regmode): New insn attribute.
23011 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
23012 to nonmemory_operand. Use regmode insn attribute.
23013 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23014 (*jcc_bt<mode>_mask): Remove mode from operand 3.
23015 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23016 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23017 operands. Use "N" constraint instead of "n".
23019 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23021 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23023 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23026 * config/i386/i386.c (iamcu_cost): New.
23027 (m_IAMCU): Likewise.
23028 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23029 (processor_target_table): Add an entry for "iamcu".
23030 (processor_alias_table): Likewise.
23031 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23032 (ix86_adjust_cost): Likewise.
23033 (ia32_multipass_dfa_lookahead): Likewise.
23034 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23035 * config/i386/x86-tune.def: Updated for m_IAMCU.
23037 2015-07-06 Richard Biener <rguenther@suse.de>
23039 PR tree-optimization/66772
23040 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23041 values are available in the PHI node BB when there are
23042 still unexecutable edges.
23044 2015-07-06 Richard Biener <rguenther@suse.de>
23046 PR tree-optimization/66767
23047 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23048 Make sure to build the alignment test on a SSA name without
23049 final alignment info valid only if the alignment test
23052 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
23055 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23056 loop start when inserting LSETUP.
23058 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23061 * config/i386/i386.c (ix86_option_override_internal): Allow
23062 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23064 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23066 * read-md.c (decimal_string): Rename to ...
23067 (md_decimal_string): ... this.
23068 (handle_enum): Reflect this.
23070 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23073 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23075 2015-07-06 Richard Biener <rguenther@suse.de>
23077 PR middle-end/66759
23078 * match.pd: Add missing constraint of y to REAL_CST in
23079 REAL_CST - x CMP y to y - CST CMP x simplification.
23081 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
23083 PR tree-optimization/66757
23084 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23086 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
23087 Sandra Loosemore <sandra@codesourcery.com>
23089 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23090 Delete extern declaration.
23091 (gprel_constant_p): Add extern declaration.
23092 * config/nios2/constraints.md ("S"): Use gprel_constant_p
23093 instead of nios2_symbol_ref_in_small_data_p.
23094 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23095 (nios2_symbol_ref_in_small_data_p): Make static.
23096 (gprel_constant_p): Make non-static.
23098 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
23100 * doc/fragments.texi (Target Fragment): Convert debian.org
23102 * doc/install.texi (Configuration): Ditto.
23104 2015-07-05 Jakub Jelinek <jakub@redhat.com>
23106 PR tree-optimization/66718
23107 * tree-vect-stmts.c (vectorizable_call): Replace uses of
23108 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23110 PR tree-optimization/66718
23111 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23112 vectorizable_load, vectorizable_condition): Move vectype,
23113 nunits, ncopies computation after checking what kind of statement
23116 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23118 * target-insns.def (extv, extzv, insv): New targetm instruction
23120 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23122 * recog.c (simplify_while_replacing): Likewise.
23124 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23126 * target-insns.def (doloop_begin, doloop_end): New targetm
23127 instruction patterns.
23128 * loop-init.c: Include target.h.
23129 (pass_loop2::gate): Use the new targetm patterns instead of
23130 HAVE_*/gen_* interface.
23131 (pass_rtl_doloop::gate): Likewise.
23132 (pass_rtl_doloop::execute): Remove preprocessor condition.
23133 * hw-doloop.c: Build unconditionally.
23134 * loop-doloop.c: Likewise.
23135 (doloop_optimize): Use the new targetm patterns instead of
23136 HAVE_*/gen_* interface.
23137 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23138 * modulo-sched.c (doloop_register_get): Likewise.
23140 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23142 * target-insns.def (clear_cache): New targetm instruction pattern.
23143 * builtins.c (expand_builtin___clear_cache): Use it instead of
23144 HAVE_*/gen_* interface.
23146 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23148 * target-insns.def (allocate_stack, check_stack, probe_stack)
23149 (probe_stack_address, split_stack_prologue, split_stack_space_check):
23150 New targetm instruction patterns.
23151 * explow.c (allocate_dynamic_stack_space): Use them instead of
23152 HAVE_*/gen_* interface.
23153 (emit_stack_probe): Likewise.
23154 (probe_stack_range): Likewise.
23155 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23157 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23159 * target-insns.def (stack_protect_set, stack_protect_test): New
23160 targetm instruction patterns.
23161 * cfgexpand.c (stack_protect_prologue): Use them instead of
23162 HAVE_*/gen_* interface.
23163 * function.c (stack_protect_epilogue): Likewise.
23165 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23167 * expr.h (gen_move_insn_uncast): Delete.
23168 * expr.c (gen_move_insn_uncast): Delete.
23170 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23172 * target-insns.def (restore_stack_block, restore_stack_function)
23173 (restore_stack_nonlocal, save_stack_block, save_stack_function)
23174 (save_stack_nonlocal): New targetm instruction patterns.
23175 * builtins.c (expand_builtin_apply): Use them instead of
23176 HAVE_*/gen_* interface.
23177 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23179 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23181 * target-insns.def (trap): New targetm instruction pattern.
23182 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23184 * explow.c (allocate_dynamic_stack_space): Likewise.
23185 * ifcvt.c (find_if_header): Likewise.
23187 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23189 * target-insns.def (prefetch): New targetm instruction pattern.
23190 * tree-ssa-loop-prefetch.c: Include targeth.
23191 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23192 of HAVE_*/gen_* interface.
23193 * builtins.c (expand_builtin_prefetch): Likewise.
23194 * toplev.c (process_options): Likewise.
23196 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23198 * target-insns.def (untyped_call, untyped_return): New targetm
23199 instruction patterns.
23200 * builtins.c (expand_builtin_apply): Use them instead of
23201 HAVE_*/gen_* interface.
23202 (result_vector): Define unconditionally.
23204 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23206 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23207 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23208 (nonlocal_goto_receiver): New targetm instruction patterns.
23209 * builtins.c (expand_builtin_setjmp_setup): Use them instead
23210 of HAVE_*/gen_* interface.
23211 (expand_builtin_setjmp_receiver): Likewise.
23212 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23213 * except.c (expand_dw2_landing_pad_for_region): Likewise.
23215 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23217 * target.def: Add code_for_* hooks.
23218 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23219 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23220 * target-insns.def (casesi, tablejump): New targetm instruction
23222 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23223 (do_tablejump): Likewise.
23224 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23225 (expand_sjlj_dispatch_table): Likewise.
23226 * targhooks.c (default_case_values_threshold): Likewise.
23228 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
23230 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23231 Use rtx_insn * instead of rtx.
23232 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23233 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23234 (nios2_call_tls_get_addr): Likewise.
23235 (nios2_emit_expensive_div): Likewise.
23236 (nios2_emit_move_sequence): Change return type to bool.
23237 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23238 Change return type to bool.
23240 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23243 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23245 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
23248 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23249 of register_operand. Remove constraint.
23251 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
23253 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23254 the first argument.
23256 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
23258 * attribs.c (decl_attributes): Guard inform with the return value
23259 of the preceding warning.
23261 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23263 * doc/invoke.texi (moverride): Move to correct section.
23265 2015-07-03 Richard Biener <rguenther@suse.de>
23267 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23269 (dt_operand::gen_gimple_expr): After valueizing operands
23270 re-canonicalize operand order for commutative tree codes.
23272 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
23275 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23277 (__crc32w): Likewise.
23278 (__crc32d): Likewise.
23279 (__rdpmc): Likewise.
23280 (__rdtscp): Likewise.
23281 (_rdpmc): Likewise.
23282 (_rdtscp): Likewise.
23283 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23286 2015-07-03 Richard Biener <rguenther@suse.de>
23288 * fold-const.c (fold_mathfn_compare): Remove.
23289 (fold_inf_compare): Likewise.
23290 (fold_comparison): Move floating point comparison simplifications...
23291 * match.pd: ... to patterns here. Introduce simple_comparisons
23292 operator list and use it for patterns formerly in fold_comparison.
23294 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23296 PR tree-optimization/66119
23297 * toplev.c (process_options): Don't set up default values for
23298 the sra_max_scalarization_size_{speed,size} parameters.
23299 * tree-sra (analyze_all_variable_accesses): If no values
23300 have been set for the sra_max_scalarization_size_{speed,size}
23301 parameters, call get_move_ratio to get target defaults.
23303 2015-07-03 Richard Biener <rguenther@suse.de>
23305 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23306 * match.pd: ... here.
23308 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
23311 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23312 is not actually the default on FreeBSD.
23314 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23316 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23318 (CMPGE_8HI): Likewise.
23319 (CMPGE_4SI): Likewise.
23320 (CMPGE_2DI): Likewise.
23321 (CMPGE_U16QI): Likewise.
23322 (CMPGE_U8HI): Likewise.
23323 (CMPGE_U4SI): Likewise.
23324 (CMPGE_U2DI): Likewise.
23325 (CMPLE_16QI): Likewise.
23326 (CMPLE_8HI): Likewise.
23327 (CMPLE_4SI): Likewise.
23328 (CMPLE_2DI): Likewise.
23329 (CMPLE_U16QI): Likewise.
23330 (CMPLE_U8HI): Likewise.
23331 (CMPLE_U4SI): Likewise.
23332 (CMPLE_U2DI): Likewise.
23333 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23334 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23335 ALTIVEC_BUILTIN_VEC_CMPLE.
23336 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23337 floating-point vector modes.
23338 (vector_nlt<mode>): New define_expand.
23339 (vector_nltu<mode>): Likewise.
23340 (vector_ngt<mode>): Likewise.
23341 (vector_ngtu<mode>): Likewise.
23343 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23345 PR rtl-optimization/66706
23346 * combine.c (make_compound_operation): If an AND of SUBREG of
23347 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23349 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23351 * tree-pass.h (make_pass_ch_vect): New.
23352 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23354 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23355 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23356 make_pass_ch_vect): New.
23357 (pass_ch): Extend ch_base.
23359 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23360 (ch_base::copy_headers): ...here.
23362 2015-07-02 Richard Biener <rguenther@suse.de>
23364 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23365 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23366 (fold_binary_loc): Implement (T)ptr & CST in terms of
23367 get_pointer_alignment_1.
23368 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23369 Make sure to build the alignment test on a SSA name without
23370 final alignment info valid only after the prologue.
23372 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23374 * config/cris/cris.md ("epilogue"): Remove condition.
23375 ("prologue"): Ditto.
23377 2015-07-02 Richard Biener <rguenther@suse.de>
23379 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23380 parameter to record a condition that is false.
23381 (record_conditions): When recording an extra NE_EXPR that is
23382 true also record a EQ_EXPR that is false.
23384 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23386 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23387 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23388 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23389 (set_iv, find_interesting_uses_address, add_candidate_1): New
23390 argument to alloc_iv.
23391 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23392 duplicate struct iv.
23393 (free_loop_data): Don't free struct iv explicitly.
23394 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23396 2015-07-01 DJ Delorie <dj@redhat.com>
23398 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23400 (SUPPORTS_DISCRIMINATOR): Define.
23402 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23405 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23406 there are no CALLs in the same pattern.
23408 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23410 PR rtl-optimization/61047
23411 * rtlanal.c (get_initial_register_offset): New function.
23412 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23414 2015-07-01 Richard Biener <rguenther@suse.de>
23416 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23417 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23418 ~X CMP C -> X CMP' ~C to ...
23419 * match.pd: ... patterns here.
23421 2015-07-01 Nick Clifton <nickc@redhat.com>
23423 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23424 a 16-bit value into a 20-bit memory slot.
23426 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23428 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23429 "aarch64_tiny", "aarch64_small", "aarch64_large",
23430 "aarch64_little_endian", "aarch64_big_endian".
23432 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23434 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23435 Document "aarch64_small_fpic".
23437 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23439 * configure.ac: Add check for aarch64 assembler -fpic relocation
23441 * configure: Regenerate.
23442 * config.in: Regenerate.
23443 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23444 to -fPIC if not support of -fpic relocation modifier in assembler.
23446 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23449 * rtl.c (classify_insn): Handle returns in PARALLELs.
23451 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23453 PR middle-end/66633
23454 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23455 to true if the function is nested and if not optimizing.
23456 (convert_local_omp_clauses): Initialize need_frame to true if the
23457 function contains nested functions and if not optimizing.
23459 2015-07-01 Richard Biener <rguenther@suse.de>
23461 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23462 (X & Y) ^ Y -> ~X & Y transforms to ...
23463 * match.pd: ... here.
23465 2015-07-01 Richard Biener <rguenther@suse.de>
23467 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23468 of converts to avoid uninteresting noise from the conversion
23469 simplifying patterns.
23471 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23473 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23474 gcc_assert evaluating its argument for side-effect.
23476 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23479 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23482 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23484 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23485 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23486 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23487 to the inner DFS walk.
23489 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23491 * target-insns.def (jump): New targetm instruction pattern.
23492 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23493 instead of gen_jump.
23494 (fix_up_crossing_landing_pad): Likewise.
23495 (add_labels_and_missing_jumps): Likewise.
23496 (fix_crossing_conditional_branches): Likewise.
23497 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23498 (force_nonfallthru_and_redirect): Likewise.
23499 * cse.c (cse_insn): Likewise.
23500 * expmed.c (expand_divmod): Likewise.
23501 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23502 * haifa-sched.c (init_before_recovery): Likewise.
23503 (sched_create_recovery_edges): Likewise.
23504 * ifcvt.c (find_cond_trap): Likewise.
23505 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23506 (expand_float, expand_fix): Likewise.
23507 * stmt.c (emit_jump): Likewise.
23509 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23511 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23512 (HAVE_store_multiple, gen_store_multiple): Delete.
23513 * target-insns.def (load_multiple, store_multiple): New targetm
23514 instruction patterns.
23515 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23516 of HAVE_*/gen_* interface.
23518 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23520 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23521 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23522 (gen_mem_signal_fence): Delete.
23523 * target-insns.def (mem_signal_fence, mem_thread_fence)
23524 (memory_barrier): New targetm instruction patterns.
23525 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23527 (expand_mem_signal_fence): Likewise.
23529 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23531 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23532 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23533 targetm instruction patterns.
23534 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23536 * calls.c (expand_call): Likewise.
23537 * cfgrtl.c (cfg_layout_finalize): Likewise.
23538 * df-scan.c (df_get_entry_block_def_set): Likewise.
23539 (df_get_exit_block_use_set): Likewise.
23540 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23541 * final.c (final_start_function): Likewise.
23542 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23543 (reposition_prologue_and_epilogue_notes): Likewise.
23544 * reorg.c (find_end_label): Likewise.
23545 * toplev.c (process_options): Likewise.
23547 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23549 * typed-splay-tree.h: New file.
23551 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23554 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23555 (lra_substitute_pseudo_within_insn): Ditto.
23556 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23558 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23559 to lra_substitute_pseudo.
23560 * lra-lives.c (process_bb_lives): Add an argument to
23561 lra_substitute_pseudo_within_insn call.
23562 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23563 argument to lra_substitute_pseudo and
23564 lra_substitute_pseudo_within_insn calls.
23565 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23567 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23569 * configure: Regenerated.
23571 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23573 * config.gcc: Support i[34567]86-*-elfiamcu target.
23574 * config/i386/iamcu.h: New.
23575 * config/i386/i386.opt: Add -miamcu.
23576 * doc/invoke.texi: Document -miamcu.
23577 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23578 off x87/MMX/SSE/AVX codegen for -miamcu.
23579 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23580 __iamcu/__iamcu__ for -miamcu.
23581 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23582 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23583 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23584 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23585 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23586 MCU by default. Default long double to 64-bit for Intel MCU.
23587 Turn on -freg-struct-return for Intel MCU. Issue an error when
23588 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23590 (function_arg_advance_32): Pass value whose size is no larger
23591 than 8 bytes in registers for Intel MCU.
23592 (function_arg_32): Likewise.
23593 (ix86_return_in_memory): Return value whose size is no larger
23594 than 8 bytes in registers for Intel MCU.
23595 (iamcu_alignment): New function.
23596 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23598 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23599 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23602 2015-06-30 Marek Polacek <polacek@redhat.com>
23604 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23605 both operands of the resulting expression.
23607 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23608 the final expression with the operand's type and then convert
23609 it to the type of the expression.
23611 2015-06-30 Richard Biener <rguenther@suse.de>
23613 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23614 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23615 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23616 * match.pd: ... to patterns here.
23618 2015-06-30 Richard Biener <rguenther@suse.de>
23620 PR tree-optimization/66704
23621 * tree-vect-data-refs.c (vect_setup_realignment): Use
23622 make_ssa_name for non-SSA name source.
23624 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23626 PR middle-end/66702
23627 * omp-low.c (simd_clone_adjust): Handle addressable linear
23628 or uniform parameters or non-gimple type uniform parameters.
23630 2015-06-30 Richard Biener <rguenther@suse.de>
23632 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23633 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23634 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23635 * match.pd: ... here.
23636 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23637 Move (x & y) | x -> x and friends before
23638 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23640 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23642 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23643 -mfix-ut699 is not specified.
23644 (leon3_load): Rename into...
23645 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23648 2015-06-30 Marek Polacek <polacek@redhat.com>
23650 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23651 * match.pd: ... here.
23653 2015-06-30 Richard Biener <rguenther@suse.de>
23655 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23656 * fold-const.c (build_range_check): Replace uses of
23657 HAVE_canonicalize_funcptr_for_compare.
23658 (fold_widened_comparison): Likewise.
23659 (fold_sign_changed_comparison): Likewise.
23660 * dojump.c: Include "target.h".
23661 (do_compare_and_jump): Replace uses of
23662 HAVE_canonicalize_funcptr_for_compare and
23663 gen_canonicalize_funcptr_for_compare.
23664 * expr.c (do_store_flag): Likewise.
23666 2015-06-30 Tom de Vries <tom@codesourcery.com>
23668 PR tree-optimization/66652
23669 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23670 max_loop_iterations to determine if nit + 1 overflows.
23672 2015-06-30 Richard Biener <rguenther@suse.de>
23674 * tree-vrp.c (register_edge_assert_for_2): Also register
23675 asserts for dominating conversion results.
23677 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23679 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23680 field in struct iv.
23682 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23685 * configure.ac: Fix filds and fildq test for 64-bit.
23686 * configure: Regenerated.
23688 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23690 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23691 (nvptx_reorg): Here. Keep the non-subreg pieces.
23693 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23695 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23696 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23698 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23700 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23701 Set attribute "length_nobnd" instead of "length".
23704 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23706 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23708 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23709 assert less restrictive.
23711 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23714 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23715 do_warn_unused_parameter.
23716 * function.c (do_warn_unused_parameter): Move from here.
23717 * function.h (do_warn_unused_parameter): Do not declare.
23719 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23722 * gcc.target/arm/armv-sync-comp-swap.c: New.
23723 * gcc.target/arm/armv-sync-op-acquire.c: New.
23724 * gcc.target/arm/armv-sync-op-full.c: New.
23725 * gcc.target/arm/armv-sync-op-release.c: New.
23727 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23730 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23731 initial acquire barrier with final barrier.
23733 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23736 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23737 initial acquire barrier with final barrier.
23739 2015-06-29 Richard Henderson <rth@redhat.com>
23741 * config/i386/constraints.md (Bf): New constraint.
23742 * config/i386/i386-c.c (ix86_target_macros): Define
23743 __GCC_ASM_FLAG_OUTPUTS__.
23744 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23746 * doc/extend.texi (FlagOutputOperands): Document them.
23748 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23750 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23751 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23753 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23754 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23755 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23756 (aarch64_symbol_context): Ditto.
23757 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23758 and use new pattern name.
23759 (aarch64_expand_mov_immediate): Ditto.
23760 (aarch64_print_operand): Ditto.
23761 (aarch64_classify_tls_symbol): Ditto.
23763 2015-06-29 Marek Polacek <polacek@redhat.com>
23764 Marc Glisse <marc.glisse@inria.fr>
23766 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23767 * match.pd: ... pattern here.
23769 2015-06-29 Tom de Vries <tom@codesourcery.com>
23771 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23772 function structure.
23774 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23776 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23777 feature description, split out the native option, add a link to
23778 the feature documentation, rearrange and slightly rewrite text.
23779 (Aarch64 options, -mcpu): Likewise.
23780 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23781 +rdma implies Adv. SIMD.
23783 2015-06-29 Marek Polacek <polacek@redhat.com>
23786 * function.c (stack_protect_epilogue): Remove a cast to int.
23787 * doc/invoke.texi: Update -Wswitch-bool description.
23789 2015-06-29 Richard Biener <rguenther@suse.de>
23791 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23792 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23793 via ptr_difference_const ...
23794 * match.pd: ... here.
23795 When matching (X ^ Y) == Y also match with swapped operands.
23797 2015-06-29 Richard Biener <rguenther@suse.de>
23799 * lto-streamer.h (LTO_major_version): Bump to 5.
23801 2015-06-29 Richard Biener <rguenther@suse.de>
23803 PR tree-optimization/66677
23804 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23805 STMT_VINFO_VEC_STMT clobbering less strict.
23807 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23809 PR middle-end/64130
23810 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23811 division, compute max and min when value ranges for dividend and
23812 divisor are available.
23814 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23815 Sandra Loosemore <sandra@codesourcery.com>
23817 * regrename.h (regrename_do_replace): Change to return bool.
23818 * regrename.c (rename_chains): Check return value of
23819 regname_do_replace.
23820 (regrename_do_replace): Re-validate the modified insns and
23821 return bool status.
23822 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23823 Update to match rename_chains changes.
23824 * config/c6x/c6x.c (try_rename_operands): Assert that
23825 regrename_do_replace returns true.
23827 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23829 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23830 operand 2 here. Use copy_addr_to_reg to copy non-index
23831 register operand 2 to a temporary.
23832 (<mode>_stx): Ditto for operand 1.
23833 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23834 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23835 (ix86_store_bounds): Ditto.
23837 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23839 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23841 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23843 * gimple.c (gimple_call_set_fndecl): Remove.
23844 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23845 build1_loc directly instead of build_fold_addr_expr_loc.
23847 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23849 * hash-map.h (hash_map::traverse): Use the definition of the
23850 Key typedef rather than the typedef itself.
23852 2015-06-26 Martin Jambor <mjambor@suse.cz>
23855 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23856 NULL instead of calling dump_enabled_p.
23858 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23860 * config/aarch64/aarch64.opt: (override): New.
23861 * doc/invoke.texi (override): Document.
23862 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23863 (aarch64_fusible_pairs): Likewise.
23864 (aarch64_tuning_flags): Likewise.
23865 (aarch64_tuning_override_function): Likewise.
23866 (aarch64_tuning_override_functions): Likewise.
23867 (aarch64_parse_one_option_token): Likewise.
23868 (aarch64_parse_boolean_options): Likewise.
23869 (aarch64_parse_fuse_string): Likewise.
23870 (aarch64_parse_tune_string): Likewise.
23871 (aarch64_parse_one_override_token): Likewise.
23872 (aarch64_parse_override_string): Likewise.
23873 (aarch64_override_options): Parse the -override string if it
23876 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23878 * config/aarch64/aarch64-protos.h (tune_params): Remove
23879 const from members.
23880 (aarch64_tune_params): Remove const, change to no longer be
23882 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23883 change to no longer be a pointer, initialize to generic_tunings.
23884 (aarch64_min_divisions_for_recip_mul): Change dereference of
23885 aarch64_tune_params to member access.
23886 (aarch64_reassociation_width): Likewise.
23887 (aarch64_rtx_mult_cost): Likewise.
23888 (aarch64_address_cost): Likewise.
23889 (aarch64_branch_cost): Likewise.
23890 (aarch64_rtx_costs): Likewise.
23891 (aarch64_register_move_cost): Likewise.
23892 (aarch64_memory_move_cost): Likewise.
23893 (aarch64_sched_issue_rate): Likewise.
23894 (aarch64_builtin_vectorization_cost): Likewise.
23895 (aarch64_override_options): Take a copy of the selected tuning
23896 struct in to aarch64_tune_params, rather than just setting
23897 a pointer, change dereferences of aarch64_tune_params to member
23899 (aarch64_override_options_after_change): Change dereferences of
23900 aarch64_tune_params to member access.
23901 (aarch64_macro_fusion_p): Likewise.
23902 (aarch_macro_fusion_pair_p): Likewise.
23903 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23905 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23907 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23908 (aarch64_tune_flags): Likewise.
23909 (AARCH64_TUNE_FMA_STEERING): Likewise.
23910 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23911 to AARCH64_FL_USE_FMA_STEERING_PASS.
23912 (cortex-a57.cortex-a53): Likewise.
23913 (cortex-a72): Use cortexa72_tunings.
23914 (cortex-a72.cortex-a53): Likewise.
23915 (exynos-m1): Likewise.
23916 * config/aarch64/aarch64-protos.h (tune_params): Add
23917 a field: extra_tuning_flags.
23918 * config/aarch64/aarch64-tuning-flags.def: New.
23919 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23920 (aarch64_extra_tuning_flags): Likewise.
23921 (aarch64_tune_params): Declare here.
23922 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23923 (cortexa53_tunings): Likewise.
23924 (cortexa57_tunings): Likewise.
23925 (thunderx_tunings): Likewise.
23926 (xgene1_tunings): Likewise.
23927 (cortexa72_tunings): New.
23928 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23929 (gate): Check against aarch64_tune_params.
23930 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23933 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23935 * config/aarch64/aarch64-fusion-pairs.def: New.
23936 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23937 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23938 aarch64_fusion_pairs.
23939 (AARCH64_FUSE_MOV_MOVK): Likewise.
23940 (AARCH64_FUSE_ADRP_ADD): Likewise.
23941 (AARCH64_FUSE_MOVK_MOVK): Likewise.
23942 (AARCH64_FUSE_ADRP_LDR): Likewise.
23943 (AARCH64_FUSE_CMP_BRANCH): Likewise.
23945 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23947 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23948 SYMBOL_SMALL_GOT_28K.
23949 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23950 relocation modifiers.
23951 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23952 (ldr_got_small_28k_<mode>): New.
23953 (ldr_got_small_28k_sidi): New.
23954 * config/aarch64/iterators.md (got_modifier): New mode iterator.
23955 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23956 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23957 SYMBOL_SMALL_GOT_28K.
23958 (aarch64_rtx_costs): Add costs for new instruction sequences.
23959 (initialize_aarch64_code_model): Initialize new model.
23960 (aarch64_classify_symbol): Recognize new model and new symbol classification.
23961 (aarch64_asm_preferred_eh_data_format): Support new model.
23962 (aarch64_load_symref_appropriately): Generate new instruction
23963 sequences for -fpic.
23964 (TARGET_USE_PSEUDO_PIC_REG): New definition.
23965 (aarch64_use_pseudo_pic_reg): New function.
23967 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23969 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23970 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23971 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23972 (aarch64_expand_mov_immediate): Ditto.
23973 (aarch64_print_operand): Ditto.
23974 (aarch64_classify_symbol): Ditto.
23976 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
23978 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23980 2015-06-26 Bin Cheng <bin.cheng@arm.com>
23983 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23984 assertion failed. Remove assertion itself.
23986 2015-06-26 Richard Biener <rguenther@suse.de>
23988 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23989 and -A CMP CST -> A CMP -CST which is redundant with a pattern
23991 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23992 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23993 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23994 * match.pd: ... patterns here.
23996 2015-06-26 Marek Polacek <polacek@redhat.com>
23998 * match.pd ((x | y) & ~(x & y) -> x ^ y,
23999 (x | y) & (~x ^ y) -> x & y): New patterns.
24001 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24003 * rtl.h (emit): Add an optional boolean parameter to control
24004 whether barriers are emitted.
24005 * emit-rtl.c (emit): Likewise.
24006 * gensupport.c (get_emit_function): Return null rather than "emit".
24007 * genemit.c (gen_emit_seq): Handle the null return value.
24008 Don't emit barriers after the final instruction in the sequence.
24009 * gentarget-def.c (main): Don't emit barriers after the instruction.
24011 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24013 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24014 TARGET_UNIFIED_ASM.
24016 2015-06-26 Richard Biener <rguenther@suse.de>
24018 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24020 2015-06-26 Richard Biener <rguenther@suse.de>
24022 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24023 irrespective on whether the inner operation has a single use
24024 of both off are constant.
24026 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
24027 Segher Boessenkool <segher@kernel.crashing.org>
24030 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24031 before doing PUT_MODE or PUT_CODE on operands to avoid
24032 in-place RTX modification.
24034 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24036 * gentarget-def.c (def_target_insn): Cast return of strtol to
24039 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24041 * gimple.h (gimple_call_set_fn): Move inline function.
24042 * gimple.c (gimple_call_set_fn): Relocate here.
24044 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
24048 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24049 the replacement insn will work.
24051 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24053 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24056 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24058 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24059 * cgraph.h: Include ipa-ref.h and plugin-api.h.
24060 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24061 (symtab_node::address_can_be_compared_p): Move function.
24062 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24064 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24065 * auto-profile.c: Likewise.
24066 * bb-reorder.c: Likewise.
24067 * builtins.c: Likewise.
24068 * calls.c: Likewise.
24069 * cfgexpand.c: Likewise.
24070 * cgraphbuild.c: Likewise.
24071 * cgraphclones.c: Likewise.
24072 * cgraphunit.c: Likewise.
24073 * combine.c: Likewise.
24074 * coverage.c: Likewise.
24075 * data-streamer-in.c: Likewise.
24076 * data-streamer-out.c: Likewise.
24077 * data-streamer.c: Likewise.
24078 * dbxout.c: Likewise.
24079 * dwarf2out.c: Likewise.
24080 * except.c: Likewise.
24081 * expr.c: Likewise.
24082 * final.c: Likewise.
24083 * fold-const.c: Likewise.
24084 * ggc-page.c: Likewise.
24085 * gimple-fold.c: Likewise.
24086 * gimple-iterator.c: Likewise.
24087 * gimple-pretty-print.c: Likewise.
24088 * gimple-streamer-in.c: Likewise.
24089 * gimple-streamer-out.c: Likewise.
24090 * gimple.c: Likewise.
24091 * gimplify.c: Likewise.
24092 * ipa-chkp.c: Likewise.
24093 * ipa-comdats.c: Likewise.
24094 * ipa-cp.c: Likewise.
24095 * ipa-devirt.c: Likewise.
24096 * ipa-icf-gimple.c: Likewise.
24097 * ipa-icf.c: Likewise.
24098 * ipa-inline-analysis.c: Likewise.
24099 * ipa-inline-transform.c: Likewise.
24100 * ipa-inline.c: Likewise.
24101 * ipa-polymorphic-call.c: Likewise.
24102 * ipa-profile.c: Likewise.
24103 * ipa-prop.c: Likewise.
24104 * ipa-pure-const.c: Likewise.
24105 * ipa-ref.c: Likewise.
24106 * ipa-reference.c: Likewise.
24107 * ipa-split.c: Likewise.
24108 * ipa-utils.c: Likewise.
24109 * ipa-visibility.c: Likewise.
24111 * langhooks.c: Likewise.
24112 * lto-cgraph.c: Likewise.
24113 * lto-compress.c: Likewise.
24114 * lto-opts.c: Likewise.
24115 * lto-section-in.c: Likewise.
24116 * lto-section-out.c: Likewise.
24117 * lto-streamer-in.c: Likewise.
24118 * lto-streamer-out.c: Likewise.
24119 * lto-streamer.c: Likewise.
24120 * omp-low.c: Likewise.
24121 * opts-global.c: Likewise.
24122 * passes.c: Likewise.
24123 * predict.c: Likewise.
24124 * print-tree.c: Likewise.
24125 * profile.c: Likewise.
24127 * sanopt.c: Likewise.
24128 * stor-layout.c: Likewise.
24129 * symtab.c: Likewise.
24130 * toplev.c: Likewise.
24131 * trans-mem.c: Likewise.
24132 * tree-cfg.c: Likewise.
24133 * tree-chkp.c: Likewise.
24134 * tree-eh.c: Likewise.
24135 * tree-emutls.c: Likewise.
24136 * tree-inline.c: Likewise.
24137 * tree-nested.c: Likewise.
24138 * tree-parloops.c: Likewise.
24139 * tree-pretty-print.c: Likewise.
24140 * tree-profile.c: Likewise.
24141 * tree-sra.c: Likewise.
24142 * tree-ssa-alias.c: Likewise.
24143 * tree-ssa-live.c: Likewise.
24144 * tree-ssa-loop-ivcanon.c: Likewise.
24145 * tree-ssa-loop-ivopts.c: Likewise.
24146 * tree-ssa-pre.c: Likewise.
24147 * tree-ssa-sccvn.c: Likewise.
24148 * tree-ssa-strlen.c: Likewise.
24149 * tree-ssa-structalias.c: Likewise.
24150 * tree-streamer-in.c: Likewise.
24151 * tree-streamer-out.c: Likewise.
24152 * tree-streamer.c: Likewise.
24153 * tree-switch-conversion.c: Likewise.
24154 * tree-tailcall.c: Likewise.
24155 * tree-vect-data-refs.c: Likewise.
24156 * tree-vect-stmts.c: Likewise.
24157 * tree-vectorizer.c: Likewise.
24158 * tree.c: Likewise.
24159 * tsan.c: Likewise.
24160 * ubsan.c: Likewise.
24161 * value-prof.c: Likewise.
24162 * varasm.c: Likewise.
24163 * varpool.c: Likewise.
24164 * config/arm/arm.c: Likewise.
24165 * config/bfin/bfin.c: Likewise.
24166 * config/c6x/c6x.c: Likewise.
24167 * config/cris/cris.c: Likewise.
24168 * config/darwin-c.c: Likewise.
24169 * config/darwin.c: Likewise.
24170 * config/i386/i386.c: Likewise.
24171 * config/i386/winnt.c: Likewise.
24172 * config/microblaze/microblaze.c: Likewise.
24173 * config/mips/mips.c: Likewise.
24174 * config/rs6000/rs6000.c: Likewise.
24175 * config/rx/rx.c: Likewise.
24176 * config/s390/s390.c: Likewise.
24177 * config/tilegx/mul-tables.c: Likewise.
24179 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24181 * config/aarch64/aarch64.c, config/alpha/alpha.c,
24182 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24183 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24184 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24185 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24186 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24187 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24188 config/microblaze/microblaze.c, config/mips/mips.c,
24189 config/mmix/mmix.c, config/mn10300/mn10300.c,
24190 config/moxie/moxie.c, config/msp430/msp430.c,
24191 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24192 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24193 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24194 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24195 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24196 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24197 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24198 target-def.h include.
24199 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
24201 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24203 * Makefile.in (TARGET_DEF): Add target-insns.def.
24204 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24205 (build/gentarget-def.o): New rule.
24206 (genprogrtl): Add target-def.
24207 * target-insns.def, gentarget-def.c: New files.
24208 * target.def: Add targetm.have_* and targetm.gen_* hooks,
24209 based on the contents of target-insns.def.
24210 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24211 (HAVE_return, gen_return): Delete.
24212 * target-def.h: Include insn-target-def.h.
24213 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24214 instead of direct calls. Rely on them to do the appropriate assertions.
24215 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
24216 (convert_jumps_to_returns): Use targetm interface instead of
24218 (thread_prologue_and_epilogue_insns): Likewise.
24219 * reorg.c (find_end_label, dbr_schedule): Likewise.
24220 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24221 * shrink-wrap.c (convert_to_simple_return): Likewise.
24222 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24224 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24226 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24227 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24228 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24229 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24230 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24231 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24232 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24233 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24234 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24235 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24236 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24237 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24238 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24239 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24240 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24241 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24244 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24246 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24247 (unbounded_int_hashmap_traits::key_type): Likewise.
24248 * hash-map.h (hash_map): Get the key type from the traits.
24249 * hash-traits.h (default_hash_traits): By default, inherit from the
24250 template parameter.
24251 * alias.c (alias_set_traits): Delete.
24252 (alias_set_entry_d::children): Use alias_set_hash as the first
24253 template parameter.
24254 (record_alias_subset): Update accordingly.
24255 * except.c (tree_hash_traits): Delete.
24256 (type_to_runtime_map): Use tree_hash as the first template parameter.
24257 (init_eh): Update accordingly.
24258 * genmatch.c (capture_id_map_hasher): Delete.
24259 (cid_map_t): Use nofree_string_hash as first template parameter.
24260 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24261 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24262 Use symbol_compare_hash as the first template parameter in
24263 subdivide_hash_map.
24264 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24265 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24266 template parameter.
24267 * passes.c (pass_registry_hasher): Delete.
24268 (name_to_pass_map): Use nofree_string_hash as the first template
24270 (register_pass_name): Update accordingly.
24271 * sanopt.c (sanopt_tree_map_traits): Delete.
24272 (sanopt_tree_triplet_map_traits): Delete.
24273 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24274 template parameter.
24275 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24276 the first template parameter.
24277 * sese.c (rename_map_hasher): Delete.
24278 (rename_map_type): Use tree_ssa_name_hash as the first template
24280 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24281 (function_summary::m_map): Use map_hash as the first template
24283 (function_summary::release): Update accordingly.
24284 * tree-if-conv.c (phi_args_hash_traits): Delete.
24285 (predicate_scalar_phi): Use tree_operand_hash as the first template
24286 parameter to phi_arg_map.
24287 * tree-inline.h (dependence_hasher): Delete.
24288 (copy_body_data::dependence_map): Use dependence_hash as the first
24289 template parameter.
24290 * tree-inline.c (remap_dependence_clique): Update accordingly.
24291 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24292 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24294 (addr_stridxptr): Update accordingly.
24295 * value-prof.c (profile_id_traits): Delete.
24296 (cgraph_node_map): Use profile_id_hash as the first template
24298 (init_node_map): Update accordingly.
24299 * config/alpha/alpha.c (string_traits): Delete.
24300 (machine_function::links): Use nofree_string_hash as the first
24301 template parameter.
24302 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24303 * config/m32c/m32c.c (pragma_traits): Delete.
24304 (pragma_htab): Use nofree_string_hash as the first template parameter.
24305 (m32c_note_pragma_address): Update accordingly.
24306 * config/mep/mep.c (pragma_traits): Delete.
24307 (pragma_htab): Use nofree_string_hash as the first template parameter.
24308 (mep_note_pragma_flag): Update accordingly.
24309 * config/mips/mips.c (mips16_flip_traits): Delete.
24310 (mflip_mips16_htab): Use nofree_string_hash as the first template
24312 (mflip_mips16_use_mips16_p): Update accordingly.
24313 (local_alias_traits): Delete.
24314 (mips16_local_aliases): Use nofree_string_hash as the first template
24316 (mips16_local_alias): Update accordingly.
24318 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24320 * hash-map-traits.h (default_hashmap_traits): Delete.
24322 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24324 * hash-map-traits.h (unbounded_hashmap_traits): New class.
24325 (unbounded_int_hashmap_traits): Likewise.
24326 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24328 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24330 * ipa-icf.h (symbol_compare_hash): New class.
24331 (symbol_compare_hashmap_traits): Use it.
24332 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24333 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24334 (mem_alloc_description::reverse_mem_map_t): Remove redundant
24335 default_hashmap_traits.
24336 * sanopt.c (sanopt_tree_triplet_hash): New class.
24337 (sanopt_tree_triplet_map_traits): Use it.
24339 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24341 * gengtype-parse.c (require_template_declaration): Allow '+' in
24342 template parameters. Consolidate cases.
24343 * hash-traits.h (int_hash): New class.
24344 * alias.c (alias_set_hash): New structure.
24345 (alias_set_traits): Use it.
24346 * symbol-summary.h (function_summary::map_hash): New class.
24347 (function_summary::summary_hashmap_traits): Use it.
24348 * tree-inline.h (dependence_hash): New class.
24349 (dependence_hasher): Use it.
24350 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24351 * value-prof.c (profile_id_hash): New class.
24352 (profile_id_traits): Use it.
24354 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24356 * config/mips/mips.c (mips16_flip_traits): Use it.
24357 (local_alias_traits, mips16_local_aliases): Convert from a map of
24358 rtxes to a map of symbol names.
24359 (mips16_local_alias): Update accordingly.
24361 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24363 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24364 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24365 * passes.c (pass_registry_hasher): Likewise.
24366 * config/alpha/alpha.c (string_traits): Likewise.
24367 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24368 * config/m32c/m32c.c (pragma_traits): Likewise.
24369 * config/mep/mep.c (pragma_traits): Likewise.
24371 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24373 * tree-hash-traits.h (tree_hash): New class.
24374 * except.c: Include tree-hash-traits.h.
24375 (tree_hash_traits): Use tree_hash.
24377 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24379 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24380 * sese.c: Include tree-hash-traits.h.
24381 (rename_map_hasher): Use tree_ssa_name_hasher.
24383 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24385 * tree-hash-traits.h (tree_decl_hash): New class.
24386 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24387 (stridxlist_hash_traits): Use tree_decl_hash.
24389 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24391 * tree-hash-traits.h: New file.
24392 (tree_operand_hash): New class.
24393 * sanopt.c: Include tree-hash-traits.h.
24394 (sanopt_tree_map_traits): Use tree_operand_hash.
24395 * tree-if-conv.c: Include tree-hash-traits.h.
24396 (phi_args_hash_traits): Use tree_operand_hash.
24397 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24398 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24400 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24402 * hash-map-traits.h: Include hash-traits.h.
24403 (simple_hashmap_traits): New class.
24404 * mem-stats.h (hash_map): Change the default traits to
24405 simple_hashmap_traits<default_hash_traits<Key> >.
24407 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24409 * hash-table.h: Update comments.
24411 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24413 * hash-traits.h (default_hash_traits): New structure.
24414 * hash-set.h (default_hashset_traits): Delete.
24415 (hash_set): Use default_hash_traits<Key> instead of
24416 default_hashset_traits. Delete hash_entry type and use Key directly.
24417 * ipa-devirt.c (pair_traits): Delete.
24418 (default_hash_traits <type_pair>): Override.
24419 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24420 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24424 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24426 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24428 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24429 (has_is_empty, is_empty_helper): Delete.
24430 (has_mark_deleted, mark_deleted_helper): Delete.
24431 (has_mark_empty, mark_empty_helper): Delete.
24432 (hash_table::is_deleted): Call the Descriptor unconditionally.
24433 (hash_table::is_empty): Likewise.
24434 (hash_table::mark_deleted): Likewise.
24435 (hash_table::mark_empty): Likewise.
24437 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24439 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24440 redundant typedefs and members.
24441 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24442 redundant typedefs.
24443 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24444 * ipa-devirt.c (odr_name_hasher): Likewise.
24445 (polymorphic_call_target_hasher): Likewise.
24446 * ira-costs.c (cost_classes_hasher): Likewise.
24447 * statistics.c (stats_counter_hasher): Likewise.
24448 * trans-mem.c (log_entry_hasher): Likewise.
24449 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24450 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24451 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24452 * var-tracking.c (variable_hasher): Likewise.
24453 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24454 Remove redundant typedefs and members.
24456 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24458 * hash-traits.h (ggc_cache_hasher): Rename to...
24459 (ggc_cache_remove): ...this and remove typedefs.
24460 (ggc_cache_ptr_hash): New class.
24461 * hash-table.h: Update commentary.
24462 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24463 rather than ggc_cache_hasher.
24464 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24465 (const_double_hasher, const_fixed_hasher): Likewise.
24466 * function.c (insn_cache_hasher): Likewise.
24467 * trans-mem.c (tm_wrapper_hasher): Likewise.
24468 * tree.h (tree_decl_map_cache_hasher): Likewise.
24469 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24470 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24471 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24472 * varasm.c (tm_clone_hasher): Likewise.
24473 * config/i386/i386.c (dllimport_hasher): Likewise.
24474 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24475 (tree_hasher): Likewise.
24477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24479 * hash-traits.h (ggc_hasher): Rename to...
24480 (ggc_remover): ...this and remove typedefs.
24481 (ggc_cache_hasher): Update accordingly. Add typedefs.
24482 (ggc_ptr_hash): New class.
24483 * hash-table.h: Update comment.
24484 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24486 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24487 (tree_descriptor_hasher): Likewise.
24488 * cgraph.c (function_version_hasher): Likewise.
24489 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24490 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24491 (dw_loc_list_hasher, addr_hasher): Likewise.
24492 * function.h (used_type_hasher): Likewise.
24493 * function.c (temp_address_hasher): Likewise.
24494 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24495 * libfuncs.h (libfunc_hasher): Likewise.
24496 * lto-streamer.h (decl_state_hasher): Likewise.
24497 * optabs.c (libfunc_decl_hasher): Likewise.
24498 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24499 * varasm.c (section_hasher, object_block_hasher): Likewise.
24500 (const_rtx_desc_hasher): Likewise.
24501 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24502 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24504 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24506 * hash-traits.h (free_ptr_hash): New class.
24507 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24508 rather than typed_free_remove. Remove redudant typedefs.
24509 (external_ref_hasher): Likewise.
24510 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24511 (ehspec_hasher): Likewise.
24512 * ggc-common.c (saving_hasher): Likewise.
24513 * gimplify.c (gimplify_hasher): Likewise.
24514 * haifa-sched.c (delay_i2_hasher): Likewise.
24515 * loop-invariant.c (invariant_expr_hasher): Likewise.
24516 * loop-iv.c (biv_entry_hasher): Likewise.
24517 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24518 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24519 * tree-cfg.c (locus_discrim_hasher): Likewise.
24520 * tree-eh.c (finally_tree_hasher): Likewise.
24521 * tree-into-ssa.c (var_info_hasher): Likewise.
24522 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24523 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24524 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24525 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24526 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24527 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24528 (shared_bitmap_hasher): Likewise.
24529 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24530 * tree-vectorizer.h (peel_info_hasher): Likewise.
24531 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24532 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24534 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24536 * hash-table.h: Update comments.
24537 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24538 (nofree_ptr_hash): New class.
24539 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24540 than typed_noop_remove. Remove redudant typedefs.
24541 * attribs.c (attribute_hasher): Likewise.
24542 * cfg.c (bb_copy_hasher): Likewise.
24543 * cselib.c (cselib_hasher): Likewise.
24544 * dse.c (invariant_group_base_hasher): Likewise.
24545 * dwarf2cfi.c (trace_info_hasher): Likewise.
24546 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24547 (comdat_type_hasher, loc_list_hasher): Likewise.
24548 * gcse.c (pre_ldst_expr_hasher): Likewise.
24549 * genmatch.c (id_base): Likewise.
24550 * genrecog.c (test_pattern_hasher): Likewise.
24551 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24552 * haifa-sched.c (delay_i1_hasher): Likewise.
24553 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24554 * ipa-icf.h (congruence_class_group_hash): Likewise.
24555 * ipa-profile.c (histogram_hash): Likewise.
24556 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24557 * lto-streamer.h (string_slot_hasher): Likewise.
24558 * lto-streamer.c (tree_entry_hasher): Likewise.
24559 * plugin.c (event_hasher): Likewise.
24560 * postreload-gcse.c (expr_hasher): Likewise.
24561 * store-motion.c (st_expr_hasher): Likewise.
24562 * tree-sra.c (uid_decl_hasher): Likewise.
24563 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24564 (ssa_name_var_hash): Likewise.
24565 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24566 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24567 * tree-ssa-pre.c (pre_expr_d): Likewise.
24568 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24569 * vtable-verify.h (registration_hasher): Likewise.
24570 * vtable-verify.c (vtbl_map_hasher): Likewise.
24571 * config/arm/arm.c (libcall_hasher): Likewise.
24572 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24573 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24574 * config/sol2.c (comdat_entry_hasher): Likewise.
24575 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24576 (print_fold_checksum, fold_checksum_tree): Likewise.
24577 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24578 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24579 (fold_build_call_array_loc): Likewise.
24580 * tree-ssa-ccp.c (gimple_htab): Likewise.
24581 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24582 rather than pointer_type.
24584 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24586 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24587 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24589 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24591 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24592 (ggc_hasher::ggc_mx): Likewise.
24593 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24594 that duplicate ggc_hasher ones.
24596 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24598 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24599 (gt_cleare_cache): Check here for deleted and empty entries.
24600 Replace handle_cache_entry with a call to keep_cache_entry.
24601 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24602 (ggc_cache_hasher::keep_cache_entry): New function.
24603 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24604 (tm_wrapper_hasher::keep_cache_entry): New function.
24605 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24606 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24607 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24608 (type_cache_hasher::keep_cache_entry): New function.
24609 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24610 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24611 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24612 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24613 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24614 (tm_clone_hasher::keep_cache_entry): New function.
24615 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24616 (dllimport_hasher::keep_cache_entry): New function.
24618 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24620 * hash-table.h: Include hash-traits.h.
24621 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24622 (ggc_cache_hasher): Move to...
24623 * hash-traits.h: ...this new file.
24625 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24627 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24628 struct cl_optimization.
24629 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24630 * tree.c (make_node_stat): Allocate cl_optimization struct.
24631 (copy_node_stat): Allocate and copy cl_optimization struct.
24633 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24635 * function.h (struct incoming_args): Move struct.
24636 (pass_by_reference, reference_callee_copied): Remove prototypes.
24637 * emit-rtl.h (struct incoming_args): Relocate struct here.
24638 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24640 * function.c (pass_by_reference, reference_callee_copied): Move.
24641 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24642 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24643 * ipa-chkp.c: Include calls.h.
24645 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24647 * alias.h (alias_set_type): Move typedef.
24648 * coretypes.h (alias_set_type): Relocate typedef here.
24649 * rtl.h: Don't include alias.h.
24651 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24653 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24654 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24656 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24657 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24659 * calls.c: Include hard-reg-set.h before rtl.h.
24662 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24663 Vladimir Makarov <vmakarov@redhat.com>
24665 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24668 2015-06-25 Richard Biener <rguenther@suse.de>
24670 * fold-const.c (fold_binary_loc): Move simplification of
24671 (X <<>> C1) & C2 ...
24672 * match.pd: ... here.
24674 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24676 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24678 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24680 * match.pd: Add patterns for vec_conds between 1 and 0.
24682 2015-06-25 Richard Biener <rguenther@suse.de>
24684 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24685 STMT_VINFO_VEC_STMT for SLP.
24686 (vectorizable_store): Likewise.
24687 (vectorizable_load): Likewise.
24688 (vect_transform_stmt): Catch SLP vectorization clobbering
24689 STMT_VINFO_VEC_STMT.
24691 2015-06-25 Richard Biener <rguenther@suse.de>
24693 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24695 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24696 cleanup resulting dead code and parameters.
24697 (vect_transform_slp_perm_load): Adjust.
24699 2015-06-25 Nick Clifton <nickc@redhat.com>
24701 * config/bfin/bfin.c (bfin_expand_prologue): Set
24702 current_function_static_stack_size if flag_stack_usage_info is set.
24703 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24704 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24705 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24706 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24708 2015-06-25 Tom de Vries <tom@codesourcery.com>
24710 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24711 comment that the generated IV is unsigned.
24713 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24716 * config/arm/arm.c (arm_dbx_register_number): Return
24717 DWARF_FRAME_REGISTERS by default.
24719 2015-06-25 Tom de Vries <tom@codesourcery.com>
24721 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24722 argument. Call verify_dominator when reusing dominator info.
24724 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24727 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24728 an additional element of the unspec vector. Modify indices
24730 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24731 * config/sh/sh.c (prepare_move_operands): Pass incremented
24732 const_int to gen_GOTaddr2picreg.
24733 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24735 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24737 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24738 Condition on TARGET_FLOAT.
24740 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24742 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24745 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24747 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24749 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24750 aarch64_err_no_fpadvsimd.
24752 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24753 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24754 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24755 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24756 Turn error into assert, test TARGET_FLOAT.
24757 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24760 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24763 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24765 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24767 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24769 2015-06-24 Renlin Li <renlin.li@arm.com>
24771 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24772 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24774 2015-06-24 Richard Biener <rguenther@suse.de>
24776 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24778 (lower_opt_convert): Support lowering of conditional view_convert.
24779 (parser::parse_operation): Likewise.
24780 (parser::parse_for): Likewise.
24782 2015-06-24 Renlin Li <renlin.li@arm.com>
24784 * varasm.c (emit_local): Use unsigned int for align variable.
24786 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24789 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24790 for negative numbers.
24792 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24794 PR rtl-optimization/66306
24795 * reload.c (find_reloads): Swap the match_dup info for
24796 commutative operands.
24798 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24800 * config/s390/vx-builtins.md
24801 ("vec_scatter_element<mode>_<non_vec_int>")
24802 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24803 attribute with bhfgq.
24805 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24807 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24809 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24811 * config/s390/s390-builtin-types.def: Add flag to indicate the
24812 options under which the function type is needed.
24813 * config/s390/s390-builtins.def: Add flag to indicate the options
24814 under which the builtin is enabled.
24815 * config/s390/s390-builtins.h: Add flags parameter to macro
24817 (bflags_for_builtin): New function.
24818 (flags_for_builtin): Renamed to ...
24819 (opflags_for_builtin): ... this.
24820 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24821 flags_for_builtin to bflags_for_builtin and
24822 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24823 * config/s390/s390.c: Add initialization of bflags_builtin and
24824 opflags_builtin arrays.
24825 Remove code for flags_builtin.
24826 (s390_init_builtins): Only create builtin function types if one of
24827 their flags is active.
24828 Only create builtins if all of their flags are active.
24829 (s390_expand_builtin): Rename flags_for_builtin to
24830 opflags_for_builtin.
24832 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24834 * config/s390/vecintrin.h: Remove internal builtins.
24836 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24838 * config/s390/s390.c (s390_secondary_reload): Fix check for
24839 GENERAL_REGS register class.
24841 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24843 * config/s390/s390.c (s390_support_vector_misalignment): Call
24844 default implementation for !TARGET_VX.
24846 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24848 * config/s390/s390.c (s390_legitimate_constant_p): Add
24851 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24853 * config/s390/s390.c (s390_vector_abi): New variable definition.
24854 (s390_check_type_for_vector_abi): New function.
24855 (TARGET_ASM_FILE_END): New macro definition.
24856 (s390_asm_file_end): New function.
24857 (s390_function_arg): Call s390_check_type_for_vector_abi.
24858 (s390_gimplify_va_arg): Likewise.
24859 * configure: Regenerate.
24860 * configure.ac: Check for .gnu_attribute Binutils feature.
24862 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
24865 * config/bfin/bfin.c (hwloop_optimize): Initialize
24866 JUMP_LABEL for newly created jump.
24868 2015-06-23 Tristan Gingold <gingold@adacore.com>
24870 * collect-utils.c (collect_wait): Unlink the response file here
24872 (do_wait): ...here.
24873 (utils_cleanup): ...and here.
24875 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
24877 * df-scan.c: Don't include target-def.h.
24878 * targhooks.c: Likewise.
24879 * config/arm/arm-c.c: Likewise.
24880 * config/i386/i386-c.c: Likewise.
24881 * config/nds32/nds32-cost.c: Likewise.
24882 * config/nds32/nds32-fp-as-gp.c: Likewise.
24883 * config/nds32/nds32-intrinsic.c: Likewise.
24884 * config/nds32/nds32-isr.c: Likewise.
24885 * config/nds32/nds32-md-auxiliary.c: Likewise.
24886 * config/nds32/nds32-memory-manipulation.c: Likewise.
24887 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24888 * config/nds32/nds32-predicates.c: Likewise.
24890 2015-06-23 Richard Biener <rguenther@suse.de>
24892 PR tree-optimization/66636
24893 * tree-vect-stmts.c (vectorizable_store): Properly compute the
24894 def type for further defs for strided stores.
24896 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
24898 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24899 conditional selects.
24900 (setcc_int<mode>, setcc_float<mode>): Reformat.
24902 2015-06-23 Marek Polacek <polacek@redhat.com>
24904 * match.pd ((x + y) - (x | y) -> x & y,
24905 (x + y) - (x & y) -> x | y): New patterns.
24907 2015-06-23 Ludovic Courtès <ludo@gnu.org>
24910 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24911 '-dynamic-linker' within %{!shared: ...}.
24913 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
24916 * config/i386/predicates.md (addsub_vm_operator): New predicate.
24917 (addsub_vs_operator): Ditto.
24918 (addsub_vs_parallel): Ditto.
24919 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24920 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24921 Put minus RTX before plus and adjust vec_merge selector.
24922 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24923 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24924 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24925 (addsub vec_merge splitters): New combiner splitters.
24926 (addsub vec_select/vec_concat splitters): Ditto.
24928 2015-06-23 Bin Cheng <bin.cheng@arm.com>
24930 PR tree-optimization/66449
24931 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24932 POINTER_PLUS_EXPR for pointers.
24934 2015-06-23 Alan Modra <amodra@gmail.com>
24936 * rtlanal.c (commutative_operand_precedence): Correct comments.
24937 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24938 declaration. Return an int. Distinguish REG,REG return from
24940 (struct simplify_plus_minus_op_data): Make local to function.
24941 (simplify_plus_minus): Don't set canonicalized if merely sorting
24942 registers. Avoid packing ops if nothing changes. White space fixes.
24944 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
24946 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24947 -fdump-ada-spec is passed but not if -fsyntax-only is.
24949 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
24952 * lra-lives.c (process_bb_lives): Check insn copying the same
24953 reload pseudo and don't create a copy for it.
24955 2015-06-22 Tom de Vries <tom@codesourcery.com>
24957 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24960 2015-06-22 Tom de Vries <tom@codesourcery.com>
24962 * builtins.def (DEF_GOMP_BUILTIN): Test
24963 'flag_tree_parallelize_loops > 1' instead of
24964 'flag_tree_parallelize_loops'. Test flag_cilkplus.
24966 2015-06-22 Tom de Vries <tom@codesourcery.com>
24968 * dominance.c (calculate_dominance_info): Verify dominators if
24971 2015-06-22 Marek Polacek <polacek@redhat.com>
24973 * match.pd ((x ^ y) ^ (x | y) -> x & y,
24974 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24975 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24976 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24978 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
24981 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24982 cost of embedded comparison.
24984 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24987 * config/rs6000/predicates.md (altivec_register_operand): Permit
24988 virtual stack registers.
24989 (vsx_register_operand): Likewise.
24990 (vfloat_operand): Likewise.
24991 (vint_operand): Likewise.
24992 (vlogical_operand): Likewise.
24994 2015-06-22 Richard Biener <rguenther@suse.de>
24996 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24997 and single_scalar_iteration_cost members.
24998 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24999 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25000 (vect_get_single_scalar_iteration_cost): Remove.
25001 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25002 Use LOOP_VINFO_SCALAR_ITERATION_COST.
25003 * tree-vect-loop.c (destroy_loop_vec_info): Free
25005 (vect_get_single_scalar_iteration_cost): Compute result into
25006 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25007 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
25008 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25009 (vect_estimate_min_profitable_iters): Use them.
25011 2015-06-22 Christian Bruel <christian.bruel@st.com>
25014 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25015 (TARGET_INSERT_ATTRIBUTES): Define.
25016 (thumb_flipper): New var.
25017 * config/arm/arm.opt (-mflip-thumb): New switch.
25019 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25020 Martin Liska <mliska@suse.cz>
25023 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25024 construction of arg_types.
25025 (sem_function::sem_function): Likewise.
25026 (sem_function::~sem_function): Remove destruction of arg_types.
25027 (sem_function::compatible_parm_types_p): New function.
25028 (sem_function::equals_wpa): Reorg matching of return values
25029 and parameter types.
25030 (sem_function::equals_private): Reorg mathcing of argument types.
25031 (sem_function::parse_tree_args): Remove.
25032 * ipa-icf.h (init_wpa): Do not call it.
25033 (parse_tree_args): Remove.
25034 (compatible_parm_types_p): Declare.
25035 (result_type): Remove.
25036 (arg_types): Remove.
25038 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25041 * ipa-polymorphic-call.c
25042 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25043 initializing alias oracle; fix formating; set base_alias_set if it
25046 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
25048 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25049 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25050 (find_inc): Likewise.
25051 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25053 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25054 * df-scan.c (df_swap_refs): Remove.
25055 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25056 * dominance.c (link_roots): Use std::swap instead of manually swapping.
25057 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25058 * fold-const.c (fold_relational_const): Likewise.
25059 * genattrtab.c (simplify_test_exp): Likewise.
25060 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25061 gimple_simplify): Likewise.
25062 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25063 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25064 * ipa-devirt.c (add_type_duplicate): Likewise.
25065 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25066 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25067 * lra.c (lra_create_copy): Likewise.
25068 * lto-streamer-out.c (DFS::DFS): Likewise.
25069 * modulo-sched.c (get_sched_window): Likewise.
25070 * omega.c (omega_pretty_print_problem): Likewise.
25071 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25072 * reload1.c (reloads_unique_chain_p): Likewise.
25073 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25074 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25076 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25078 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25079 predicate_mem_writes): Likewise.
25080 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25081 * tree-predcom.c (combine_chains): Likewise.
25082 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25083 refs_may_alias_p_1): Likewise.
25084 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25085 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25086 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25087 number_of_iterations_cond): Likewise.
25088 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25089 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25090 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25091 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25092 * tree-vrp.c (extract_range_from_binary_expr_1,
25093 extract_range_from_unary_expr_1): Likewise.
25095 2015-06-20 Marek Polacek <polacek@redhat.com>
25097 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25099 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
25102 * config/sh/sh.c (prepare_move_operands): Replace subreg
25103 index term with R0 for base and index addressing.
25105 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
25107 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25109 (movsf_aarch64): Change condition from register_operand to
25110 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
25111 load1. Change type for alternative 7 to store1.
25112 (movdf_aarch64): Likewise.
25114 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
25116 * config/vax/vax.md: Adjust sign/zero extend patterns to
25117 handle SUBREGs in operands[1].
25119 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25121 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25122 of manually swapping.
25123 (expand_vec_perm_interleave2): Likewise.
25125 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
25127 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25128 reuse bounds created for abnormal ssa names.
25130 2015-06-19 Jakub Jelinek <jakub@redhat.com>
25132 * config/nvptx/nvptx.md (allocate_stack): Rename to...
25133 (allocate_stack_<mode>): ... this, and add :P on both
25134 match_operand and unspec.
25135 (allocate_stack): New expander.
25137 2015-06-19 Christian Bruel <christian.bruel@st.com>
25141 * config/arm/arm.c (arm_set_current_function): Handle
25142 explicit default options.
25144 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25146 * config/i386/i386.md (*movsicc_noc_zext): New insn.
25147 (zero-extended cmove with mem peephole2): New pattern.
25148 (cmove with mem peephole2): Merge patterns.
25150 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
25152 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25154 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
25156 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25157 * config/mips/mips.md (*madd4<mode>): Ditto.
25158 (*nmadd3<mode>) Ditto.
25159 (*nmadd4<mode>_fastmath): Ditto.
25160 (*nmadd3<mode>_fastmath): Ditto.
25161 (*nmsub4<mode>): Ditto.
25162 (*nmsub3<mode>): Ditto.
25163 (*nmsub4<mode>_fastmath): Ditto.
25164 (*nmsub3<mode>_fastmath): Ditto.
25166 2015-06-18 Michael Matz <matz@suse.de>
25168 PR middle-end/66253
25169 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25170 grouped strided stores.
25171 (vectorizable_load): Don't use the DR from first_stmt in
25172 the non-SLP grouped strided case.
25174 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25177 * function.c (assign_bounds): Add arguments assign_regs,
25178 assign_special, assign_bt.
25179 (assign_parms): For vararg functions handle bounds in BT
25180 and special slots after incoming vararg bounds.
25182 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25184 PR middle-end/66568
25185 * cfgexpand.c (expand_return): Handle missing bounds.
25186 (expand_gimple_stmt_1): Likewise.
25187 * tree-chkp.c (chkp_expand_zero_bounds): New.
25188 * tree-chkp.h (chkp_expand_zero_bounds): New.
25190 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25192 PR middle-end/66567
25193 * ipa-chkp.c (chkp_maybe_create_clone): Require
25194 functions to be instrumentable.
25195 * tree-chkp.c (chkp_replace_function_pointer): Use
25196 chkp_instrumentable_p instead of attribute check.
25198 2015-06-18 Richard Biener <rguenther@suse.de>
25200 PR tree-optimization/66510
25201 * tree-vect-stmts.c (vectorizable_load): Properly compute the
25202 number of vector loads for SLP permuted loads.
25203 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25204 check the stride for loop vectorization.
25205 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25206 vectorization factor.
25207 (vect_analyze_group_access): If the group size is not a power
25208 of two require a epilogue loop.
25209 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25210 compute and optimizing and alias test pruning after final
25211 vectorization factor computation.
25212 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25214 (vect_transform_slp_perm_load): Properly compute the original
25215 number of vector load stmts.
25217 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25219 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25220 "unlikely character , in @var" warning.
25222 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
25224 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25225 (ix86_function_arg_advance): Ditto.
25226 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
25228 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25230 * function.h (struct rtl_data): Remove struct and accessor macros.
25231 * emit-rtl.h (struct rtl_data): Relocate to here.
25232 * Makefile.in (GTFILES): Add emit-rtl.h.
25233 * df-core.c: Include emit-rtl.h.
25234 * genattrtab.c: Likewise.
25235 * genconditions.c: Likewise.
25236 * genpreds.c: Likewise.
25237 * genrecog.c: Likewise.
25238 * regcprop.c: Likewise.
25239 * resource.c: Likewise.
25240 * sched-rgn.c: Likewise.
25241 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25242 * config/i386/winnt.c: Likewise.
25244 2015-06-17 Jakub Jelinek <jakub@redhat.com>
25246 PR middle-end/66429
25247 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25248 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
25249 and has_force_vectorize_loops flags from cfun into
25251 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25252 if simduid is non-NULL.
25253 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25254 * passes.def (pass_simduid_cleanup): Add new pass after loop
25256 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25257 indirection from htab argument's type.
25258 (shrink_simd_arrays): New function.
25259 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
25260 Don't call adjust_simduid_builtins if there are no loops.
25261 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25262 (pass_simduid_cleanup::execute): New method.
25263 (make_pass_simduid_cleanup): New function.
25265 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
25267 * tree-core.h (tree_target_option): Make opts field a pointer to a
25268 cl_target_option instead of an instance of the struct.
25269 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25271 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25272 TARGET_OPTION_NODE.
25273 (copy_node_stat): Allocate and copy struct cl_target_option.
25275 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25277 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25278 Remove conditional exposure of prototypes.
25279 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25280 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
25281 definitions in tree.h with functions.
25282 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25284 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25286 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
25288 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25289 (*cmp<mode>_signed): ... this.
25290 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25291 (*cmp<mode>_unsigned): ... this. Remove %b.
25293 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25295 * coretypes.h: Include input.h and as-a.h.
25296 * rtl.h: Include input.h and as-a.h for generator files.
25297 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25298 * vec.c: Don't include diagnostic-core.h.
25299 * alias.c: Do not include input.h, line-map.h or is-a.h.
25300 * asan.c: Likewise.
25301 * attribs.c: Likewise.
25302 * auto-inc-dec.c: Likewise.
25303 * auto-profile.c: Likewise.
25304 * bb-reorder.c: Likewise.
25305 * bt-load.c: Likewise.
25306 * builtins.c: Likewise.
25307 * caller-save.c: Likewise.
25308 * calls.c: Likewise.
25309 * ccmp.c: Likewise.
25311 * cfganal.c: Likewise.
25312 * cfgbuild.c: Likewise.
25313 * cfgcleanup.c: Likewise.
25314 * cfgexpand.c: Likewise.
25315 * cfghooks.c: Likewise.
25316 * cfgloop.c: Likewise.
25317 * cfgloop.h: Likewise.
25318 * cfgloopanal.c: Likewise.
25319 * cfgloopmanip.c: Likewise.
25320 * cfgrtl.c: Likewise.
25321 * cgraph.c: Likewise.
25322 * cgraphbuild.c: Likewise.
25323 * cgraphclones.c: Likewise.
25324 * cgraphunit.c: Likewise.
25325 * cilk-common.c: Likewise.
25326 * combine-stack-adj.c: Likewise.
25327 * combine.c: Likewise.
25328 * compare-elim.c: Likewise.
25329 * convert.c: Likewise.
25330 * coverage.c: Likewise.
25331 * cppbuiltin.c: Likewise.
25332 * cprop.c: Likewise.
25334 * cselib.c: Likewise.
25335 * data-streamer-in.c: Likewise.
25336 * data-streamer-out.c: Likewise.
25337 * data-streamer.c: Likewise.
25338 * dbxout.c: Likewise.
25341 * debug.c: Likewise.
25342 * df-core.c: Likewise.
25343 * df-problems.c: Likewise.
25344 * df-scan.c: Likewise.
25347 * diagnostic-core.h: Likewise.
25348 * diagnostic.c: Likewise.
25349 * dojump.c: Likewise.
25350 * dominance.c: Likewise.
25351 * domwalk.c: Likewise.
25352 * double-int.c: Likewise.
25354 * dumpfile.c: Likewise.
25355 * dumpfile.h: Likewise.
25356 * dwarf2asm.c: Likewise.
25357 * dwarf2cfi.c: Likewise.
25358 * dwarf2out.c: Likewise.
25359 * emit-rtl.c: Likewise.
25360 * et-forest.c: Likewise.
25361 * except.c: Likewise.
25362 * explow.c: Likewise.
25363 * expmed.c: Likewise.
25364 * expr.c: Likewise.
25365 * final.c: Likewise.
25366 * fixed-value.c: Likewise.
25367 * fold-const.c: Likewise.
25368 * function.c: Likewise.
25369 * fwprop.c: Likewise.
25370 * gcc-plugin.h: Likewise.
25371 * gcse.c: Likewise.
25372 * generic-match-head.c: Likewise.
25373 * ggc-page.c: Likewise.
25374 * gimple-builder.c: Likewise.
25375 * gimple-expr.c: Likewise.
25376 * gimple-fold.c: Likewise.
25377 * gimple-iterator.c: Likewise.
25378 * gimple-low.c: Likewise.
25379 * gimple-match-head.c: Likewise.
25380 * gimple-pretty-print.c: Likewise.
25381 * gimple-ssa-isolate-paths.c: Likewise.
25382 * gimple-ssa-strength-reduction.c: Likewise.
25383 * gimple-streamer-in.c: Likewise.
25384 * gimple-streamer-out.c: Likewise.
25385 * gimple-streamer.h: Likewise.
25386 * gimple-walk.c: Likewise.
25387 * gimple.c: Likewise.
25388 * gimplify-me.c: Likewise.
25389 * gimplify.c: Likewise.
25390 * godump.c: Likewise.
25391 * graph.c: Likewise.
25392 * graphite-blocking.c: Likewise.
25393 * graphite-dependences.c: Likewise.
25394 * graphite-interchange.c: Likewise.
25395 * graphite-isl-ast-to-gimple.c: Likewise.
25396 * graphite-optimize-isl.c: Likewise.
25397 * graphite-poly.c: Likewise.
25398 * graphite-scop-detection.c: Likewise.
25399 * graphite-sese-to-poly.c: Likewise.
25400 * graphite.c: Likewise.
25401 * haifa-sched.c: Likewise.
25402 * hw-doloop.c: Likewise.
25403 * ifcvt.c: Likewise.
25404 * init-regs.c: Likewise.
25405 * input.c: Likewise.
25406 * internal-fn.c: Likewise.
25407 * ipa-chkp.c: Likewise.
25408 * ipa-comdats.c: Likewise.
25409 * ipa-cp.c: Likewise.
25410 * ipa-devirt.c: Likewise.
25411 * ipa-icf-gimple.c: Likewise.
25412 * ipa-icf.c: Likewise.
25413 * ipa-inline-analysis.c: Likewise.
25414 * ipa-inline-transform.c: Likewise.
25415 * ipa-inline.c: Likewise.
25416 * ipa-polymorphic-call.c: Likewise.
25417 * ipa-profile.c: Likewise.
25418 * ipa-prop.c: Likewise.
25419 * ipa-pure-const.c: Likewise.
25420 * ipa-ref.c: Likewise.
25421 * ipa-reference.c: Likewise.
25422 * ipa-split.c: Likewise.
25423 * ipa-utils.c: Likewise.
25424 * ipa-visibility.c: Likewise.
25426 * ira-build.c: Likewise.
25427 * ira-color.c: Likewise.
25428 * ira-conflicts.c: Likewise.
25429 * ira-costs.c: Likewise.
25430 * ira-emit.c: Likewise.
25431 * ira-lives.c: Likewise.
25433 * jump.c: Likewise.
25434 * langhooks.c: Likewise.
25436 * loop-doloop.c: Likewise.
25437 * loop-init.c: Likewise.
25438 * loop-invariant.c: Likewise.
25439 * loop-iv.c: Likewise.
25440 * loop-unroll.c: Likewise.
25441 * lower-subreg.c: Likewise.
25442 * lra-assigns.c: Likewise.
25443 * lra-coalesce.c: Likewise.
25444 * lra-constraints.c: Likewise.
25445 * lra-eliminations.c: Likewise.
25446 * lra-lives.c: Likewise.
25447 * lra-remat.c: Likewise.
25448 * lra-spills.c: Likewise.
25450 * lto-cgraph.c: Likewise.
25451 * lto-compress.c: Likewise.
25452 * lto-opts.c: Likewise.
25453 * lto-section-in.c: Likewise.
25454 * lto-section-out.c: Likewise.
25455 * lto-streamer-in.c: Likewise.
25456 * lto-streamer-out.c: Likewise.
25457 * lto-streamer.c: Likewise.
25459 * mode-switching.c: Likewise.
25460 * modulo-sched.c: Likewise.
25461 * omega.c: Likewise.
25462 * omp-low.c: Likewise.
25463 * optabs.c: Likewise.
25464 * opts-global.c: Likewise.
25465 * opts.h: Likewise.
25466 * passes.c: Likewise.
25467 * plugin.c: Likewise.
25468 * postreload-gcse.c: Likewise.
25469 * postreload.c: Likewise.
25470 * predict.c: Likewise.
25471 * pretty-print.h: Likewise.
25472 * print-rtl.c: Likewise.
25473 * print-tree.c: Likewise.
25474 * profile.c: Likewise.
25475 * real.c: Likewise.
25476 * realmpfr.c: Likewise.
25477 * recog.c: Likewise.
25479 * reg-stack.c: Likewise.
25480 * regcprop.c: Likewise.
25481 * reginfo.c: Likewise.
25482 * regrename.c: Likewise.
25483 * regstat.c: Likewise.
25484 * reload.c: Likewise.
25485 * reload1.c: Likewise.
25486 * reorg.c: Likewise.
25487 * resource.c: Likewise.
25488 * rtl-chkp.c: Likewise.
25489 * rtl-error.c: Likewise.
25490 * rtlanal.c: Likewise.
25491 * rtlhooks.c: Likewise.
25492 * sanopt.c: Likewise.
25493 * sched-deps.c: Likewise.
25494 * sched-ebb.c: Likewise.
25495 * sched-rgn.c: Likewise.
25496 * sched-vis.c: Likewise.
25497 * sdbout.c: Likewise.
25498 * sel-sched-dump.c: Likewise.
25499 * sel-sched-ir.c: Likewise.
25500 * sel-sched.c: Likewise.
25501 * sese.c: Likewise.
25502 * shrink-wrap.c: Likewise.
25503 * simplify-rtx.c: Likewise.
25504 * stack-ptr-mod.c: Likewise.
25505 * statistics.c: Likewise.
25506 * stmt.c: Likewise.
25507 * stor-layout.c: Likewise.
25508 * store-motion.c: Likewise.
25509 * streamer-hooks.c: Likewise.
25510 * stringpool.c: Likewise.
25511 * symtab.c: Likewise.
25512 * target-globals.c: Likewise.
25513 * targhooks.c: Likewise.
25514 * toplev.c: Likewise.
25515 * tracer.c: Likewise.
25516 * trans-mem.c: Likewise.
25517 * tree-affine.c: Likewise.
25518 * tree-browser.c: Likewise.
25519 * tree-call-cdce.c: Likewise.
25520 * tree-cfg.c: Likewise.
25521 * tree-cfgcleanup.c: Likewise.
25522 * tree-chkp-opt.c: Likewise.
25523 * tree-chkp.c: Likewise.
25524 * tree-chrec.c: Likewise.
25525 * tree-complex.c: Likewise.
25526 * tree-data-ref.c: Likewise.
25527 * tree-dfa.c: Likewise.
25528 * tree-diagnostic.c: Likewise.
25529 * tree-dump.c: Likewise.
25530 * tree-eh.c: Likewise.
25531 * tree-emutls.c: Likewise.
25532 * tree-if-conv.c: Likewise.
25533 * tree-inline.c: Likewise.
25534 * tree-into-ssa.c: Likewise.
25535 * tree-iterator.c: Likewise.
25536 * tree-loop-distribution.c: Likewise.
25537 * tree-nested.c: Likewise.
25538 * tree-nrv.c: Likewise.
25539 * tree-object-size.c: Likewise.
25540 * tree-outof-ssa.c: Likewise.
25541 * tree-parloops.c: Likewise.
25542 * tree-phinodes.c: Likewise.
25543 * tree-predcom.c: Likewise.
25544 * tree-pretty-print.c: Likewise.
25545 * tree-profile.c: Likewise.
25546 * tree-scalar-evolution.c: Likewise.
25547 * tree-sra.c: Likewise.
25548 * tree-ssa-address.c: Likewise.
25549 * tree-ssa-alias.c: Likewise.
25550 * tree-ssa-ccp.c: Likewise.
25551 * tree-ssa-coalesce.c: Likewise.
25552 * tree-ssa-copy.c: Likewise.
25553 * tree-ssa-copyrename.c: Likewise.
25554 * tree-ssa-dce.c: Likewise.
25555 * tree-ssa-dom.c: Likewise.
25556 * tree-ssa-dse.c: Likewise.
25557 * tree-ssa-forwprop.c: Likewise.
25558 * tree-ssa-ifcombine.c: Likewise.
25559 * tree-ssa-live.c: Likewise.
25560 * tree-ssa-loop-ch.c: Likewise.
25561 * tree-ssa-loop-im.c: Likewise.
25562 * tree-ssa-loop-ivcanon.c: Likewise.
25563 * tree-ssa-loop-ivopts.c: Likewise.
25564 * tree-ssa-loop-manip.c: Likewise.
25565 * tree-ssa-loop-niter.c: Likewise.
25566 * tree-ssa-loop-prefetch.c: Likewise.
25567 * tree-ssa-loop-unswitch.c: Likewise.
25568 * tree-ssa-loop.c: Likewise.
25569 * tree-ssa-math-opts.c: Likewise.
25570 * tree-ssa-operands.c: Likewise.
25571 * tree-ssa-phiopt.c: Likewise.
25572 * tree-ssa-phiprop.c: Likewise.
25573 * tree-ssa-pre.c: Likewise.
25574 * tree-ssa-propagate.c: Likewise.
25575 * tree-ssa-reassoc.c: Likewise.
25576 * tree-ssa-sccvn.c: Likewise.
25577 * tree-ssa-scopedtables.c: Likewise.
25578 * tree-ssa-sink.c: Likewise.
25579 * tree-ssa-strlen.c: Likewise.
25580 * tree-ssa-structalias.c: Likewise.
25581 * tree-ssa-tail-merge.c: Likewise.
25582 * tree-ssa-ter.c: Likewise.
25583 * tree-ssa-threadedge.c: Likewise.
25584 * tree-ssa-threadupdate.c: Likewise.
25585 * tree-ssa-uncprop.c: Likewise.
25586 * tree-ssa-uninit.c: Likewise.
25587 * tree-ssa.c: Likewise.
25588 * tree-ssanames.c: Likewise.
25589 * tree-stdarg.c: Likewise.
25590 * tree-streamer-in.c: Likewise.
25591 * tree-streamer-out.c: Likewise.
25592 * tree-streamer.c: Likewise.
25593 * tree-switch-conversion.c: Likewise.
25594 * tree-tailcall.c: Likewise.
25595 * tree-vect-data-refs.c: Likewise.
25596 * tree-vect-generic.c: Likewise.
25597 * tree-vect-loop-manip.c: Likewise.
25598 * tree-vect-loop.c: Likewise.
25599 * tree-vect-patterns.c: Likewise.
25600 * tree-vect-slp.c: Likewise.
25601 * tree-vect-stmts.c: Likewise.
25602 * tree-vectorizer.c: Likewise.
25603 * tree-vrp.c: Likewise.
25604 * tree.c: Likewise.
25605 * tsan.c: Likewise.
25606 * ubsan.c: Likewise.
25607 * valtrack.c: Likewise.
25608 * value-prof.c: Likewise.
25609 * var-tracking.c: Likewise.
25610 * varasm.c: Likewise.
25611 * varpool.c: Likewise.
25612 * vmsdbgout.c: Likewise.
25613 * vtable-verify.c: Likewise.
25615 * wide-int.cc: Likewise.
25616 * xcoffout.c: Likewise.
25617 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25618 * common/common-targhooks.c: Likewise.
25619 * config/aarch64/aarch64-builtins.c: Likewise.
25620 * config/aarch64/aarch64.c: Likewise.
25621 * config/alpha/alpha.c: Likewise.
25622 * config/arc/arc.c: Likewise.
25623 * config/arm/aarch-common.c: Likewise.
25624 * config/arm/arm-builtins.c: Likewise.
25625 * config/arm/arm-c.c: Likewise.
25626 * config/arm/arm.c: Likewise.
25627 * config/avr/avr-c.c: Likewise.
25628 * config/avr/avr-log.c: Likewise.
25629 * config/avr/avr.c: Likewise.
25630 * config/bfin/bfin.c: Likewise.
25631 * config/c6x/c6x.c: Likewise.
25632 * config/cr16/cr16.c: Likewise.
25633 * config/cris/cris.c: Likewise.
25634 * config/darwin-c.c: Likewise.
25635 * config/darwin.c: Likewise.
25636 * config/default-c.c: Likewise.
25637 * config/epiphany/epiphany.c: Likewise.
25638 * config/epiphany/mode-switch-use.c: Likewise.
25639 * config/epiphany/resolve-sw-modes.c: Likewise.
25640 * config/fr30/fr30.c: Likewise.
25641 * config/frv/frv.c: Likewise.
25642 * config/ft32/ft32.c: Likewise.
25643 * config/glibc-c.c: Likewise.
25644 * config/h8300/h8300.c: Likewise.
25645 * config/i386/i386-c.c: Likewise.
25646 * config/i386/i386.c: Likewise.
25647 * config/i386/msformat-c.c: Likewise.
25648 * config/i386/winnt-cxx.c: Likewise.
25649 * config/i386/winnt-stubs.c: Likewise.
25650 * config/i386/winnt.c: Likewise.
25651 * config/ia64/ia64-c.c: Likewise.
25652 * config/ia64/ia64.c: Likewise.
25653 * config/iq2000/iq2000.c: Likewise.
25654 * config/lm32/lm32.c: Likewise.
25655 * config/m32c/m32c-pragma.c: Likewise.
25656 * config/m32c/m32c.c: Likewise.
25657 * config/m32r/m32r.c: Likewise.
25658 * config/m68k/m68k.c: Likewise.
25659 * config/mcore/mcore.c: Likewise.
25660 * config/mep/mep-pragma.c: Likewise.
25661 * config/mep/mep.c: Likewise.
25662 * config/microblaze/microblaze-c.c: Likewise.
25663 * config/microblaze/microblaze.c: Likewise.
25664 * config/mips/mips.c: Likewise.
25665 * config/mmix/mmix.c: Likewise.
25666 * config/mn10300/mn10300.c: Likewise.
25667 * config/moxie/moxie.c: Likewise.
25668 * config/msp430/msp430-c.c: Likewise.
25669 * config/msp430/msp430.c: Likewise.
25670 * config/nds32/nds32-cost.c: Likewise.
25671 * config/nds32/nds32-fp-as-gp.c: Likewise.
25672 * config/nds32/nds32-intrinsic.c: Likewise.
25673 * config/nds32/nds32-isr.c: Likewise.
25674 * config/nds32/nds32-md-auxiliary.c: Likewise.
25675 * config/nds32/nds32-memory-manipulation.c: Likewise.
25676 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25677 * config/nds32/nds32-predicates.c: Likewise.
25678 * config/nds32/nds32.c: Likewise.
25679 * config/nios2/nios2.c: Likewise.
25680 * config/nvptx/nvptx.c: Likewise.
25681 * config/pa/pa.c: Likewise.
25682 * config/pdp11/pdp11.c: Likewise.
25683 * config/rl78/rl78-c.c: Likewise.
25684 * config/rl78/rl78.c: Likewise.
25685 * config/rs6000/rs6000-c.c: Likewise.
25686 * config/rs6000/rs6000.c: Likewise.
25687 * config/rx/rx.c: Likewise.
25688 * config/s390/s390-c.c: Likewise.
25689 * config/s390/s390.c: Likewise.
25690 * config/sh/sh-c.c: Likewise.
25691 * config/sh/sh-mem.cc: Likewise.
25692 * config/sh/sh.c: Likewise.
25693 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25694 * config/sh/sh_treg_combine.cc: Likewise.
25695 * config/sol2-c.c: Likewise.
25696 * config/sol2-cxx.c: Likewise.
25697 * config/sol2-stubs.c: Likewise.
25698 * config/sol2.c: Likewise.
25699 * config/sparc/sparc-c.c: Likewise.
25700 * config/sparc/sparc.c: Likewise.
25701 * config/spu/spu-c.c: Likewise.
25702 * config/spu/spu.c: Likewise.
25703 * config/stormy16/stormy16.c: Likewise.
25704 * config/tilegx/mul-tables.c: Likewise.
25705 * config/tilegx/tilegx-c.c: Likewise.
25706 * config/tilegx/tilegx.c: Likewise.
25707 * config/tilepro/mul-tables.c: Likewise.
25708 * config/tilepro/tilepro-c.c: Likewise.
25709 * config/tilepro/tilepro.c: Likewise.
25710 * config/v850/v850-c.c: Likewise.
25711 * config/v850/v850.c: Likewise.
25712 * config/vax/vax.c: Likewise.
25713 * config/visium/visium.c: Likewise.
25714 * config/vms/vms-c.c: Likewise.
25715 * config/vms/vms.c: Likewise.
25716 * config/vxworks.c: Likewise.
25717 * config/winnt-c.c: Likewise.
25718 * config/xtensa/xtensa.c: Likewise.
25720 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25722 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25724 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25726 2015-06-17 Richard Biener <rguenther@suse.de>
25728 PR tree-optimization/66251
25729 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25730 stmts for SLP strided stores.
25733 2015-05-22 Richard Biener <rguenther@suse.de>
25735 PR tree-optimization/66251
25736 * tree-vect-stmts.c (vectorizable_conversion): Properly
25737 set STMT_VINFO_VEC_STMT even for the SLP case.
25739 2015-05-26 Michael Matz <matz@suse.de>
25741 PR middle-end/66251
25742 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25743 STMT_VINFO_VEC_STMT, also with SLP.
25745 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25748 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25749 (*avx_addsubv4df3_1s): Ditto.
25750 (*sse3_addsubv2df3_1): Ditto.
25751 (*sse3_addsubv2df3_1s): Ditto.
25752 (*avx_addsubv8sf3_1): Ditto.
25753 (*avx_addsubv8sf3_1s): Ditto.
25754 (*sse3_addsubv4sf3_1): Ditto.
25755 (*sse3_addsubv4sf3_1s): Ditto.
25757 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25759 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25760 (SYSROOT_SUFFIX_SPEC): Update.
25761 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25762 (STARTFILE_PREFIX_SPEC): Update.
25763 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25764 (MULTILIB_REQUIRED): New.
25765 (MULTILIB_OSDIRNAMES): New.
25766 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25767 (MULTILIB_REQUIRED): New.
25768 (MULTILIB_OSDIRNAMES): New.
25770 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25772 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25773 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25774 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25775 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25776 (AARCH64_FL_PAN): New.
25777 (AARCH64_FL_LOR): New.
25778 (AARCH64_FL_RDMA): New.
25779 (AARCH64_FL_FOR_ARCH8_1): New.
25780 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25781 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25783 2015-06-16 Martin Liska <mliska@suse.cz>
25785 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25786 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25789 2015-06-16 Richard Biener <rguenther@suse.de>
25791 * tree-vect-stmts.c (vectorizable_store): Adjust.
25792 (vectorizable_load): Likewise.
25793 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25795 (vect_create_data_ref_ptr): Likewise.
25796 (bump_vector_ptr): Adjust.
25798 2015-06-16 Richard Biener <rguenther@suse.de>
25800 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25801 with the first element if this is grouped loads.
25803 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25805 * config/arm/arm-protos.h (struct tune_params): Rename
25806 log_op_non_sc to log_op_non_short_circuit, and rename enum
25807 values to expand SC to SHORT_CIRCUIT.
25808 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25809 to LOG_OP_NON_SHORT_CIRCUIT.
25810 (arm_fastmul_tune):Likewise
25811 (arm_strongarm_tune): Likewise.
25812 (arm_xscale_tune): Likewise.
25813 (arm_9e_tune): Likewise.
25814 (arm_marvell_pj4_tune): Likewise.
25815 (arm_v6t2_tune): Likewise.
25816 (arm_cortex_tune): Likewise.
25817 (arm_cortex_a8_tune): Likewise.
25818 (arm_cortex_a7_tune): Likewise.
25819 (arm_cortex_a15_tune): Likewise.
25820 (arm_cortex_a53_tune): Likewise.
25821 (arm_cortex_a57_tune): Likewise.
25822 (arm_xgene1_tune): Likewise.
25823 (arm_cortex_a5_tune): Likewise.
25824 (arm_cortex_a9_tune): Likewise.
25825 (arm_cortex_a12_tune): Likewise.
25826 (arm_v7m_tune): Likewise.
25827 (arm_cortex_m7_tune): Likewise.
25828 (arm_v6m_tune): Likewise.
25829 (arm_fa726te_tune): Likewise.
25831 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25833 * altivec.md: Delete UNSPEC_VMLADDUHM.
25834 (mulv4si3_p8): New pattern.
25835 (mulv4si3): Use it for POWER8.
25836 (mulv8hi3): Use vmladduhm with zero addend.
25837 (altivec_vmladduhm): Descriptive RTL.
25839 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25841 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25842 to use neon_move instead of mov_imm.
25843 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25844 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25846 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25847 aarch64_float_const_zero_rtx_p check before TFmode check.
25848 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25850 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25851 code and attributes to match. Change condition from register_operand
25852 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25853 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25856 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25859 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25860 there is no parent.
25862 2015-06-14 Shiva Chen <shiva0217@gmail.com>
25864 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25865 HOST_WIDE_INT parameter.
25867 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
25870 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25871 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25873 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25875 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
25877 * rtl.h (classify_insn): Declare.
25878 * emit-rtl.c (classify_insn): Move to...
25879 * rtl.c: ...here and add generator support.
25880 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25881 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25882 * genemit.c (gen_emit_seq): New function.
25883 (gen_expand, gen_split): Use it.
25885 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
25887 * tree.c (make_vector_stat): Fix comment to state that the
25888 function returns a VECTOR_CST.
25890 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
25892 * gensupport.h (add_implicit_parallel): Declare.
25893 * genrecog.c (add_implicit_parallel): Move to...
25894 * gensupport.c (add_implicit_parallel): ...here.
25895 (process_one_cond_exec): Use it.
25896 * genemit.c (gen_insn): Likewise.
25898 2015-06-13 Iain Sandoe <iain@codesourcery.com>
25901 * passes.c (rest_of_decl_compilation): Do not register globals for
25902 early debug if they are declared in built-ins.
25904 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
25906 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25908 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25910 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25912 (noce_try_cmove_arith): Likewise.
25913 (noce_get_alt_condition): Likewise.
25915 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25917 * common/config/i386/i386-common.c
25918 (OPTION_MASK_ISA_MWAITX_SET): New.
25919 (ix86_handle_option): Handle mwaitx.
25920 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25921 (x86_64-*-*): Likewise.
25922 * config/i386/mwaitxintrin.h: New header.
25923 * config/i386/cpuid.h (bit_MWAITX): Define.
25924 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25926 * config/i386/i386.opt (mwaitx): New.
25927 * config/i386/i386-builtin-types.def
25928 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25929 * config/i386/i386-c.c: Define __MWAITX__ if needed.
25930 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25932 (ix86_option_override_internal): Handle new option.
25933 (processor_alias_table): Added PTA_MWAITX.
25934 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25935 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25936 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25937 IX86_BUILTIN_MONITORX built-ins.
25938 * config/i386/i386.h (TARGET_MWAITX): New.
25939 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25941 (mwaitx): New pattern.
25942 (monitorx_<mode>): New pattern.
25943 * config/i386/x86intrin.h: Include mwaitxintrin.h.
25944 * doc/extend.texi: Document monitorx and mwaitx builtins.
25945 * doc/invoke.texi: Document -mmwaitx option.
25947 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
25949 * emit-rtl.c (need_atomic_barrier_p): Mask model with
25950 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
25952 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25954 * dbxout.c (xcoff_debug_hooks): Provide a function for
25955 register_main_translation_unit hook.
25957 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25959 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25960 variants cases from switch.
25961 (rs6000_post_atomic_barrier): Same.
25962 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25963 (rs6000_expand_atomic_exchange): Same.
25964 (rs6000_expand_atomic_op): Same.
25965 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25966 SYNC variants cases from switch.
25967 (atomic_load): Same.
25968 (atomic_store): Same.
25970 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
25972 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25973 CONST_INT for goto.
25975 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
25978 * dwarf2out.c (check_die): Check for common duplicate attributes.
25979 (add_location_or_const_value_attribute): Do not add duplicate
25981 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25983 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25984 (gen_type_die_with_usage): Call check_die.
25985 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25987 2015-06-11 Jason Merrill <jason@redhat.com>
25989 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25992 2015-06-11 Marek Polacek <polacek@redhat.com>
25994 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25996 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
25999 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26000 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26001 (*addx_extend_sp32): Fix pasto.
26002 (*subx_extend): Rename into...
26003 (*subx_extend_sp32): ...this.
26004 (*adddi3_extend_sp32): Add earlyclobber.
26005 (*subdi3_insn_sp32): Likewise.
26006 (*subdi3_extend_sp32): Likewise.
26007 (*and_not_di_sp32): Likewise.
26008 (*or_not_di_sp32): Likewise.
26009 (*xor_not_di_sp32): Likewise.
26010 (*negdi2_sp32): Likewise.
26011 (*one_cmpldi2_sp32): Likewise.
26013 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
26015 * debug.h (struct gcc_debug_hooks): Add a
26016 register_main_translation_unit hook.
26017 * debug.c (do_nothing_debug_hooks): Provide a function for this
26019 * dbxout.c (dbx_debug_hooks): Likewise.
26020 * sdbout.c (sdb_debug_hooks): Likewise.
26021 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26022 * dwarf2out.c (main_translation_unit): New global variable.
26023 (dwarf2out_register_main_translation_unit): New function
26024 implementing the new hook.
26025 (dwarf2_debug_hooks): Assign
26026 dwarf2out_register_main_translation_unit to this new hook.
26027 (dwarf2out_init): Associate any main translation unit to
26030 2015-06-11 Marek Polacek <polacek@redhat.com>
26032 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26034 2015-06-11 Marek Polacek <polacek@redhat.com>
26036 * match.pd: Use single_use throughout.
26038 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26040 * config/arm/arm.c (arm_option_params_internal): When optimising
26041 for speed set max_insns_skipped when arm_restrict_it.
26043 2015-06-11 Christian Bruel <christian.bruel@st.com>
26046 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26048 (arm_cpu_builtins): New function.
26049 (arm_pragma_target_parse): Call arm_cpu_builtins.
26050 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26051 (arm_register_target_pragmas): Likewise.
26052 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26053 Call arm_register_target_pragmas.
26054 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26055 (arm_pragma_target_parse): Likewise.
26057 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
26059 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26060 of the second operand.
26062 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
26065 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26066 to prepare mask operand for AVX512 modes.
26068 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26071 * doc/md.texi (Machine Constraints): Document that on the PowerPC
26072 if you use a constraint that targets a VSX register, you must use
26073 %x<n> in the template.
26075 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
26077 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26078 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26079 (define_insn "trap"): New definition.
26081 2015-06-10 Richard Biener <rguenther@suse.de>
26083 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26085 (vect_supported_load_permutation_p): ... here. Handle
26086 supportable permutations in reductions.
26087 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26088 for vectorizing strided group loads.
26090 2015-06-10 Jakub Jelinek <jakub@redhat.com>
26093 * config/i386/i386.c (ix86_split_long_move): For collisions
26094 involving direct tls segment refs, move the UNSPEC_TP possibly
26095 wrapped in ZERO_EXTEND out of the address for lea, to each of
26098 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26100 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26101 dmb sy. Adjust tabs.
26103 2015-06-10 Tom de Vries <tom@codesourcery.com>
26105 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26107 2015-06-10 Martin Liska <mliska@suse.cz>
26110 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26111 all enum values in mem_alloc_origin.
26112 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26114 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26115 * bitmap.c (bitmap_register): Likewise.
26116 (dump_bitmap_statistics): Likewise.
26117 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26118 (ggc_record_overhead): Likewise.
26119 * hash-map.h: Likewise.
26120 * hash-set.h: Likewise.
26121 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26122 * hash-table.h: Likewise.
26123 * vec.c (vec_prefix::register_overhead): Likewise.
26124 (vec_prefix::release_overhead): Likewise.
26125 (dump_vec_loc_statistics): Likewise.
26127 2015-06-09 Christian Bruel <christian.bruel@st.com>
26130 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26131 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26132 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26133 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26134 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26135 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26136 (arm_valid_target_attribute_p): Likewise.
26137 (arm_set_current_function, arm_can_inline_p): Likewise.
26138 (arm_valid_target_attribute_rec): Likewise.
26139 (arm_previous_fndecl): New variable.
26140 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26141 (TARGET_CAN_INLINE_P): Define.
26142 (arm_asm_trampoline_template): Emit mode.
26143 (arm_file_start): Don't set unified syntax.
26144 (arm_declare_function_name): Set unified syntax and mode.
26145 (arm_option_override): Init target_option_default_node.
26146 and target_option_current_node.
26147 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26148 (*call_symbol): Likewise.
26149 * doc/extend.texi: Document ARM/Thumb target attribute.
26150 * doc/invoke.texi: Likewise.
26152 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26155 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26156 PR rtl-optimization/64164
26157 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26158 * tree-ssa-copyrename.c: Removed.
26159 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26160 -ftree-coalesce-vars.
26161 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26162 * common.opt (ftree-copyrename): Ignore.
26163 (ftree-coalesce-inlined-vars): Likewise.
26164 * doc/invoke.texi: Remove the ignored options above.
26165 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26166 * tree-ssa-coalesce.h: ... here.
26167 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26168 headers required by it.
26169 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26170 across variables when flag_tree_coalesce_vars. Check register
26171 use and promoted modes to allow coalescing. Moved to
26172 tree-ssa-coalesce.c.
26173 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26174 with its member functions to tree-ssa-coalesce.c.
26175 (var_map_base_init): Likewise. Renamed to
26176 compute_samebase_partition_bases.
26177 (partition_view_normal): Drop want_bases parameter.
26178 (partition_view_bitmap): Likewise.
26179 * tree-ssa-live.h: Adjust declarations.
26180 * tree-ssa-coalesce.c: Include explow.h.
26181 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26182 default defs at the entry point.
26183 (dump_part_var_map): New.
26184 (compute_optimized_partition_bases): New, called by...
26185 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26186 of compute_samebase_partition_bases. Adjust.
26187 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26188 * cfgexpand.c (leader_merge): New.
26189 (get_rtl_for_parm_ssa_default_def): New.
26190 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26191 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26192 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26193 redundant MEM attr setting.
26194 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26196 (expand_one_stack_var): ... this. New wrapper to check and
26197 skip already expanded SSA partitions.
26198 (record_alignment_for_reg_var): New, factored out of...
26199 (expand_one_var): ... this.
26200 (expand_one_ssa_partition): New.
26201 (adjust_one_expanded_partition_var): New.
26202 (expand_one_register_var): Check and skip already expanded SSA
26204 (expand_used_vars): Don't create DECLs for anonymous SSA
26205 names. Expand all SSA partitions, then adjust all SSA names.
26206 (pass::execute): Replace the loops that set
26207 SA.partition_to_pseudo from partition leaders and cleared
26208 DECL_RTL for multi-location variables, and that which used to
26209 rename vars and set attrs, with one that clears DECL_RTL and
26210 checks that PARMs and RESULTs default_defs match DECL_RTL.
26211 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26212 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26213 * explow.c (promote_ssa_mode): New.
26214 * explow.h (promote_ssa_mode): Declare.
26215 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26216 * function.c: Include cfgexpand.h.
26217 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26218 (use_register_for_parm_decl): Wrapper for the above to
26219 special-case the result_ptr.
26220 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26221 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26222 multiple locations.
26223 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26224 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26225 (assign_parm_setup_block): Prefer SSA-assigned location.
26226 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26227 if stack_parm is NULL.
26228 (assign_parm_setup_stack): Prefer SSA-assigned location.
26229 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26230 rtl before testing for pointer bounds. Special-case result_ptr.
26231 (expand_function_start): Maybe reset DECL_RTL of result.
26232 Prefer SSA-assigned location for result and static chain.
26233 Factor out DECL_RESULT and SET_DECL_RTL.
26234 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26235 anonymous SSA names. Use promote_ssa_mode.
26236 (get_temp_reg): Likewise.
26237 (remove_ssa_form): Adjust.
26238 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26239 and get its reg_usage for reg invalidation.
26240 (compute_bb_dataflow): Pass it insn.
26241 (emit_notes_in_bb): Likewise.
26242 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26243 fail assert on conversion between unsigned types.
26245 2015-06-09 Tom de Vries <tom@codesourcery.com>
26247 PR tree-optimization/65460
26248 * omp-low.c (expand_omp_target): Set parallelized_function on
26249 cgraph_node for child_fn.
26251 2015-06-09 Tom de Vries <tom@codesourcery.com>
26253 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26254 parallelized_function before add_new_function.
26256 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
26258 * gcc-plugin.h: Move decls to plugin.h and include it.
26259 * plugin.h: Relocate decls from gcc-plugin.h
26260 * ggc-page.c: Include required header files.
26261 * passes.c: Likewise.
26262 * cgraphunit.c: Likewise.
26264 2015-06-09 Tom de Vries <tom@codesourcery.com>
26266 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26268 2015-06-09 Jason Merrill <jason@redhat.com>
26271 * toplev.c (check_global_declaration): Don't warn about a clone.
26273 2015-06-09 Marek Polacek <polacek@redhat.com>
26275 PR tree-optimization/66299
26276 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26277 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26280 2015-06-09 Richard Biener <rguenther@suse.de>
26282 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26283 (vect_analyze_slp_instance): Instead do not falsely drop
26286 2015-06-09 Richard Biener <rguenther@suse.de>
26288 PR middle-end/66423
26289 * match.pd: Handle A % (unsigned)(1 << B).
26291 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
26293 * varasm.c (output_object_block_htab): Remove.
26294 (output_object_block_compare): New.
26295 (output_object_blocks): Sort named object_blocks before outputting
26298 2015-06-09 Richard Biener <rguenther@suse.de>
26300 PR tree-optimization/66419
26301 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26302 consider GROUP_GAP when detecting a perfect subchain.
26304 2015-06-09 Nick Clifton <nickc@redhat.com>
26306 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26307 place read only data in the .frodata section.
26309 2015-06-09 Shiva Chen <shiva0217@gmail.com>
26311 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26312 (atomic_store<mode>): Likewise.
26314 2015-06-09 Richard Biener <rguenther@suse.de>
26316 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26318 2015-06-09 Richard Biener <rguenther@suse.de>
26320 PR middle-end/66413
26321 * tree-inline.c (insert_init_debug_bind): Unshare value.
26323 2015-06-09 Richard Biener <rguenther@suse.de>
26325 PR tree-optimization/66396
26326 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26327 Rename virtual operands.
26329 2015-06-09 Tom de Vries <tom@codesourcery.com>
26331 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26332 always return false.
26334 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26336 PR rtl-optimization/64164
26337 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26338 * tree-ssa-copyrename.c: Removed.
26339 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26340 -ftree-coalesce-vars.
26341 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26342 * common.opt (ftree-copyrename): Ignore.
26343 (ftree-coalesce-inlined-vars): Likewise.
26344 * doc/invoke.texi: Remove the ignored options above.
26345 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26346 * tree-ssa-coalesce.h: ... here.
26347 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26348 headers required by it.
26349 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26350 across variables when flag_tree_coalesce_vars. Check register
26351 use and promoted modes to allow coalescing. Moved to
26352 tree-ssa-coalesce.c.
26353 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26354 with its member functions to tree-ssa-coalesce.c.
26355 (var_map_base_init): Likewise. Renamed to
26356 compute_samebase_partition_bases.
26357 (partition_view_normal): Drop want_bases parameter.
26358 (partition_view_bitmap): Likewise.
26359 * tree-ssa-live.h: Adjust declarations.
26360 * tree-ssa-coalesce.c: Include explow.h.
26361 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26362 default defs at the entry point.
26363 (dump_part_var_map): New.
26364 (compute_optimized_partition_bases): New, called by...
26365 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26366 of compute_samebase_partition_bases. Adjust.
26367 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26368 * cfgexpand.c (leader_merge): New.
26369 (get_rtl_for_parm_ssa_default_def): New.
26370 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26371 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26372 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26373 redundant MEM attr setting.
26374 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26376 (expand_one_stack_var): ... this. New wrapper to check and
26377 skip already expanded SSA partitions.
26378 (record_alignment_for_reg_var): New, factored out of...
26379 (expand_one_var): ... this.
26380 (expand_one_ssa_partition): New.
26381 (adjust_one_expanded_partition_var): New.
26382 (expand_one_register_var): Check and skip already expanded SSA
26384 (expand_used_vars): Don't create DECLs for anonymous SSA
26385 names. Expand all SSA partitions, then adjust all SSA names.
26386 (pass::execute): Replace the loops that set
26387 SA.partition_to_pseudo from partition leaders and cleared
26388 DECL_RTL for multi-location variables, and that which used to
26389 rename vars and set attrs, with one that clears DECL_RTL and
26390 checks that PARMs and RESULTs default_defs match DECL_RTL.
26391 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26392 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26393 * explow.c (promote_ssa_mode): New.
26394 * explow.h (promote_ssa_mode): Declare.
26395 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26396 * function.c: Include cfgexpand.h.
26397 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26398 (use_register_for_parm_decl): Wrapper for the above to
26399 special-case the result_ptr.
26400 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26401 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26402 multiple locations.
26403 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26404 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26405 (assign_parm_setup_block): Prefer SSA-assigned location.
26406 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26407 if stack_parm is NULL.
26408 (assign_parm_setup_stack): Prefer SSA-assigned location.
26409 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26410 rtl before testing for pointer bounds. Special-case result_ptr.
26411 (expand_function_start): Maybe reset DECL_RTL of result.
26412 Prefer SSA-assigned location for result and static chain.
26413 Factor out DECL_RESULT and SET_DECL_RTL.
26414 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26415 anonymous SSA names. Use promote_ssa_mode.
26416 (get_temp_reg): Likewise.
26417 (remove_ssa_form): Adjust.
26418 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26419 and get its reg_usage for reg invalidation.
26420 (compute_bb_dataflow): Pass it insn.
26421 (emit_notes_in_bb): Likewise.
26422 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26423 fail assert on conversion between unsigned types.
26425 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26428 * tree-inline.c (reset_debug_binding): New.
26429 (reset_debug_bindings): Likewise.
26430 (expand_call_inline): Call it.
26432 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26434 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26437 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26439 * lto-streamer-out.c (lto_output_location): Stream
26440 reserved locations correctly.
26441 * lto-streamer-in.c (lto_output_location): Likewise.
26443 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26445 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26446 * ggc.h: Don't include statistics.h>
26447 * hash-map.h: Remove all includes.
26448 * hash-set.h: Likewise.
26449 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26450 the include list. Remove <new>.
26451 * inchash.h: Remove all includes.
26452 * mem-stats.h: Likewise.
26453 * vec.h: No special processing for generators or ggc.
26454 * alias.c : Adjust include files.
26455 * alloc-pool.c : Likewise.
26456 * alloc-pool.h : Likewise.
26457 * asan.c : Likewise.
26458 * attribs.c : Likewise.
26459 * auto-inc-dec.c : Likewise.
26460 * auto-profile.c : Likewise.
26461 * bb-reorder.c : Likewise.
26462 * bitmap.c : Likewise.
26463 * bitmap.h : Likewise.
26464 * bt-load.c : Likewise.
26465 * builtins.c : Likewise.
26466 * caller-save.c : Likewise.
26467 * calls.c : Likewise.
26468 * ccmp.c : Likewise.
26469 * cfg.c : Likewise.
26470 * cfganal.c : Likewise.
26471 * cfgbuild.c : Likewise.
26472 * cfgcleanup.c : Likewise.
26473 * cfgexpand.c : Likewise.
26474 * cfghooks.c : Likewise.
26475 * cfgloop.c : Likewise.
26476 * cfgloop.h : Likewise.
26477 * cfgloopanal.c : Likewise.
26478 * cfgloopmanip.c : Likewise.
26479 * cfgrtl.c : Likewise.
26480 * cgraph.c : Likewise.
26481 * cgraphbuild.c : Likewise.
26482 * cgraphclones.c : Likewise.
26483 * cgraphunit.c : Likewise.
26484 * cilk-common.c : Likewise.
26485 * combine-stack-adj.c : Likewise.
26486 * combine.c : Likewise.
26487 * compare-elim.c : Likewise.
26488 * context.c : Likewise.
26489 * convert.c : Likewise.
26490 * coverage.c : Likewise.
26491 * cppbuiltin.c : Likewise.
26492 * cprop.c : Likewise.
26493 * cse.c : Likewise.
26494 * cselib.c : Likewise.
26495 * data-streamer-in.c : Likewise.
26496 * data-streamer-out.c : Likewise.
26497 * data-streamer.c : Likewise.
26498 * data-streamer.h : Likewise.
26499 * dbxout.c : Likewise.
26500 * dce.c : Likewise.
26501 * ddg.c : Likewise.
26502 * debug.c : Likewise.
26503 * df-core.c : Likewise.
26504 * df-problems.c : Likewise.
26505 * df-scan.c : Likewise.
26507 * dfp.c : Likewise.
26508 * dojump.c : Likewise.
26509 * dominance.c : Likewise.
26510 * domwalk.c : Likewise.
26511 * double-int.c : Likewise.
26512 * dse.c : Likewise.
26513 * dumpfile.c : Likewise.
26514 * dwarf2asm.c : Likewise.
26515 * dwarf2cfi.c : Likewise.
26516 * dwarf2out.c : Likewise.
26517 * emit-rtl.c : Likewise.
26518 * et-forest.c : Likewise.
26519 * except.c : Likewise.
26520 * except.h : Likewise.
26521 * explow.c : Likewise.
26522 * expmed.c : Likewise.
26523 * expr.c : Likewise.
26524 * final.c : Likewise.
26525 * fixed-value.c : Likewise.
26526 * fold-const.c : Likewise.
26527 * function.c : Likewise.
26528 * fwprop.c : Likewise.
26529 * gcc-plugin.h : Likewise.
26530 * gcc.c : Likewise.
26531 * gcse-common.c : Likewise.
26532 * gcse.c : Likewise.
26533 * genattrtab.c : Likewise.
26534 * genautomata.c : Likewise.
26535 * genconditions.c : Likewise.
26536 * genemit.c : Likewise.
26537 * generic-match-head.c : Likewise.
26538 * genextract.c : Likewise.
26539 * gengtype-state.c : Likewise.
26540 * gengtype.c : Likewise.
26541 * genhooks.c : Likewise.
26542 * genmatch.c : Likewise.
26543 * genmodes.c : Likewise.
26544 * genrecog.c : Likewise.
26545 * gensupport.c : Likewise.
26546 * ggc-common.c : Likewise.
26547 * ggc-internal.h : Likewise.
26548 * ggc-none.c : Likewise.
26549 * ggc-page.c : Likewise.
26550 * gimple-builder.c : Likewise.
26551 * gimple-expr.c : Likewise.
26552 * gimple-fold.c : Likewise.
26553 * gimple-iterator.c : Likewise.
26554 * gimple-low.c : Likewise.
26555 * gimple-match-head.c : Likewise.
26556 * gimple-pretty-print.c : Likewise.
26557 * gimple-ssa-isolate-paths.c : Likewise.
26558 * gimple-ssa-strength-reduction.c : Likewise.
26559 * gimple-ssa.h : Likewise.
26560 * gimple-streamer-in.c : Likewise.
26561 * gimple-streamer-out.c : Likewise.
26562 * gimple-streamer.h : Likewise.
26563 * gimple-walk.c : Likewise.
26564 * gimple.c : Likewise.
26565 * gimplify-me.c : Likewise.
26566 * gimplify.c : Likewise.
26567 * godump.c : Likewise.
26568 * graph.c : Likewise.
26569 * graphds.c : Likewise.
26570 * graphite-blocking.c : Likewise.
26571 * graphite-dependences.c : Likewise.
26572 * graphite-interchange.c : Likewise.
26573 * graphite-isl-ast-to-gimple.c : Likewise.
26574 * graphite-optimize-isl.c : Likewise.
26575 * graphite-poly.c : Likewise.
26576 * graphite-scop-detection.c : Likewise.
26577 * graphite-sese-to-poly.c : Likewise.
26578 * graphite.c : Likewise.
26579 * haifa-sched.c : Likewise.
26580 * hard-reg-set.h : Likewise.
26581 * hw-doloop.c : Likewise.
26582 * ifcvt.c : Likewise.
26583 * inchash.c : Likewise.
26584 * incpath.c : Likewise.
26585 * init-regs.c : Likewise.
26586 * input.c : Likewise.
26587 * internal-fn.c : Likewise.
26588 * ipa-chkp.c : Likewise.
26589 * ipa-comdats.c : Likewise.
26590 * ipa-cp.c : Likewise.
26591 * ipa-devirt.c : Likewise.
26592 * ipa-icf-gimple.c : Likewise.
26593 * ipa-icf.c : Likewise.
26594 * ipa-inline-analysis.c : Likewise.
26595 * ipa-inline-transform.c : Likewise.
26596 * ipa-inline.c : Likewise.
26597 * ipa-polymorphic-call.c : Likewise.
26598 * ipa-profile.c : Likewise.
26599 * ipa-prop.c : Likewise.
26600 * ipa-pure-const.c : Likewise.
26601 * ipa-ref.c : Likewise.
26602 * ipa-reference.c : Likewise.
26603 * ipa-split.c : Likewise.
26604 * ipa-utils.c : Likewise.
26605 * ipa-visibility.c : Likewise.
26606 * ipa.c : Likewise.
26607 * ira-build.c : Likewise.
26608 * ira-color.c : Likewise.
26609 * ira-conflicts.c : Likewise.
26610 * ira-costs.c : Likewise.
26611 * ira-emit.c : Likewise.
26612 * ira-lives.c : Likewise.
26613 * ira.c : Likewise.
26614 * jump.c : Likewise.
26615 * langhooks.c : Likewise.
26616 * lcm.c : Likewise.
26617 * libfuncs.h : Likewise.
26618 * lists.c : Likewise.
26619 * loop-doloop.c : Likewise.
26620 * loop-init.c : Likewise.
26621 * loop-invariant.c : Likewise.
26622 * loop-iv.c : Likewise.
26623 * loop-unroll.c : Likewise.
26624 * lower-subreg.c : Likewise.
26625 * lra-assigns.c : Likewise.
26626 * lra-coalesce.c : Likewise.
26627 * lra-constraints.c : Likewise.
26628 * lra-eliminations.c : Likewise.
26629 * lra-lives.c : Likewise.
26630 * lra-remat.c : Likewise.
26631 * lra-spills.c : Likewise.
26632 * lra.c : Likewise.
26633 * lto-cgraph.c : Likewise.
26634 * lto-compress.c : Likewise.
26635 * lto-opts.c : Likewise.
26636 * lto-section-in.c : Likewise.
26637 * lto-section-out.c : Likewise.
26638 * lto-streamer-in.c : Likewise.
26639 * lto-streamer-out.c : Likewise.
26640 * lto-streamer.c : Likewise.
26641 * lto-streamer.h : Likewise.
26642 * mcf.c : Likewise.
26643 * mode-switching.c : Likewise.
26644 * modulo-sched.c : Likewise.
26645 * omega.c : Likewise.
26646 * omp-low.c : Likewise.
26647 * optabs.c : Likewise.
26648 * opts-global.c : Likewise.
26649 * opts.h : Likewise.
26650 * passes.c : Likewise.
26651 * plugin.c : Likewise.
26652 * postreload-gcse.c : Likewise.
26653 * postreload.c : Likewise.
26654 * predict.c : Likewise.
26655 * print-rtl.c : Likewise.
26656 * print-tree.c : Likewise.
26657 * profile.c : Likewise.
26658 * read-md.c : Likewise.
26659 * read-md.h : Likewise.
26660 * read-rtl.c : Likewise.
26661 * real.c : Likewise.
26662 * realmpfr.c : Likewise.
26663 * recog.c : Likewise.
26664 * ree.c : Likewise.
26665 * reg-stack.c : Likewise.
26666 * regcprop.c : Likewise.
26667 * reginfo.c : Likewise.
26668 * regrename.c : Likewise.
26669 * regstat.c : Likewise.
26670 * reload.c : Likewise.
26671 * reload1.c : Likewise.
26672 * reorg.c : Likewise.
26673 * resource.c : Likewise.
26674 * rtl-chkp.c : Likewise.
26675 * rtl.c : Likewise.
26676 * rtl.h : Likewise.
26677 * rtlanal.c : Likewise.
26678 * rtlhash.c : Likewise.
26679 * rtlhash.h : Likewise.
26680 * rtlhooks.c : Likewise.
26681 * sanopt.c : Likewise.
26682 * sched-deps.c : Likewise.
26683 * sched-ebb.c : Likewise.
26684 * sched-rgn.c : Likewise.
26685 * sched-vis.c : Likewise.
26686 * sdbout.c : Likewise.
26687 * sel-sched-dump.c : Likewise.
26688 * sel-sched-ir.c : Likewise.
26689 * sel-sched-ir.h : Likewise.
26690 * sel-sched.c : Likewise.
26691 * sese.c : Likewise.
26692 * shrink-wrap.c : Likewise.
26693 * shrink-wrap.h : Likewise.
26694 * simplify-rtx.c : Likewise.
26695 * stack-ptr-mod.c : Likewise.
26696 * statistics.c : Likewise.
26697 * stmt.c : Likewise.
26698 * stor-layout.c : Likewise.
26699 * store-motion.c : Likewise.
26700 * stringpool.c : Likewise.
26701 * symtab.c : Likewise.
26702 * target-globals.c : Likewise.
26703 * targhooks.c : Likewise.
26704 * tlink.c : Likewise.
26705 * toplev.c : Likewise.
26706 * tracer.c : Likewise.
26707 * trans-mem.c : Likewise.
26708 * tree-affine.c : Likewise.
26709 * tree-affine.h : Likewise.
26710 * tree-browser.c : Likewise.
26711 * tree-call-cdce.c : Likewise.
26712 * tree-cfg.c : Likewise.
26713 * tree-cfgcleanup.c : Likewise.
26714 * tree-chkp-opt.c : Likewise.
26715 * tree-chkp.c : Likewise.
26716 * tree-chrec.c : Likewise.
26717 * tree-complex.c : Likewise.
26718 * tree-data-ref.c : Likewise.
26719 * tree-dfa.c : Likewise.
26720 * tree-diagnostic.c : Likewise.
26721 * tree-dump.c : Likewise.
26722 * tree-eh.c : Likewise.
26723 * tree-eh.h : Likewise.
26724 * tree-emutls.c : Likewise.
26725 * tree-hasher.h : Likewise.
26726 * tree-if-conv.c : Likewise.
26727 * tree-inline.c : Likewise.
26728 * tree-inline.h : Likewise.
26729 * tree-into-ssa.c : Likewise.
26730 * tree-iterator.c : Likewise.
26731 * tree-loop-distribution.c : Likewise.
26732 * tree-nested.c : Likewise.
26733 * tree-nrv.c : Likewise.
26734 * tree-object-size.c : Likewise.
26735 * tree-outof-ssa.c : Likewise.
26736 * tree-parloops.c : Likewise.
26737 * tree-phinodes.c : Likewise.
26738 * tree-predcom.c : Likewise.
26739 * tree-pretty-print.c : Likewise.
26740 * tree-profile.c : Likewise.
26741 * tree-scalar-evolution.c : Likewise.
26742 * tree-sra.c : Likewise.
26743 * tree-ssa-address.c : Likewise.
26744 * tree-ssa-alias.c : Likewise.
26745 * tree-ssa-ccp.c : Likewise.
26746 * tree-ssa-coalesce.c : Likewise.
26747 * tree-ssa-copy.c : Likewise.
26748 * tree-ssa-copyrename.c : Likewise.
26749 * tree-ssa-dce.c : Likewise.
26750 * tree-ssa-dom.c : Likewise.
26751 * tree-ssa-dse.c : Likewise.
26752 * tree-ssa-forwprop.c : Likewise.
26753 * tree-ssa-ifcombine.c : Likewise.
26754 * tree-ssa-live.c : Likewise.
26755 * tree-ssa-loop-ch.c : Likewise.
26756 * tree-ssa-loop-im.c : Likewise.
26757 * tree-ssa-loop-ivcanon.c : Likewise.
26758 * tree-ssa-loop-ivopts.c : Likewise.
26759 * tree-ssa-loop-manip.c : Likewise.
26760 * tree-ssa-loop-niter.c : Likewise.
26761 * tree-ssa-loop-prefetch.c : Likewise.
26762 * tree-ssa-loop-unswitch.c : Likewise.
26763 * tree-ssa-loop.c : Likewise.
26764 * tree-ssa-math-opts.c : Likewise.
26765 * tree-ssa-operands.c : Likewise.
26766 * tree-ssa-phiopt.c : Likewise.
26767 * tree-ssa-phiprop.c : Likewise.
26768 * tree-ssa-pre.c : Likewise.
26769 * tree-ssa-propagate.c : Likewise.
26770 * tree-ssa-reassoc.c : Likewise.
26771 * tree-ssa-sccvn.c : Likewise.
26772 * tree-ssa-scopedtables.c : Likewise.
26773 * tree-ssa-sink.c : Likewise.
26774 * tree-ssa-strlen.c : Likewise.
26775 * tree-ssa-structalias.c : Likewise.
26776 * tree-ssa-tail-merge.c : Likewise.
26777 * tree-ssa-ter.c : Likewise.
26778 * tree-ssa-threadedge.c : Likewise.
26779 * tree-ssa-threadupdate.c : Likewise.
26780 * tree-ssa-uncprop.c : Likewise.
26781 * tree-ssa-uninit.c : Likewise.
26782 * tree-ssa.c : Likewise.
26783 * tree-ssanames.c : Likewise.
26784 * tree-stdarg.c : Likewise.
26785 * tree-streamer-in.c : Likewise.
26786 * tree-streamer-out.c : Likewise.
26787 * tree-streamer.c : Likewise.
26788 * tree-streamer.h : Likewise.
26789 * tree-switch-conversion.c : Likewise.
26790 * tree-tailcall.c : Likewise.
26791 * tree-vect-data-refs.c : Likewise.
26792 * tree-vect-generic.c : Likewise.
26793 * tree-vect-loop-manip.c : Likewise.
26794 * tree-vect-loop.c : Likewise.
26795 * tree-vect-patterns.c : Likewise.
26796 * tree-vect-slp.c : Likewise.
26797 * tree-vect-stmts.c : Likewise.
26798 * tree-vectorizer.c : Likewise.
26799 * tree-vectorizer.h : Likewise.
26800 * tree-vrp.c : Likewise.
26801 * tree.c : Likewise.
26802 * tsan.c : Likewise.
26803 * ubsan.c : Likewise.
26804 * valtrack.c : Likewise.
26805 * valtrack.h : Likewise.
26806 * value-prof.c : Likewise.
26807 * var-tracking.c : Likewise.
26808 * varasm.c : Likewise.
26809 * varpool.c : Likewise.
26811 * vmsdbgout.c : Likewise.
26812 * vtable-verify.c : Likewise.
26813 * vtable-verify.h : Likewise.
26814 * web.c : Likewise.
26815 * wide-int.cc : Likewise.
26816 * xcoffout.c : Likewise.
26817 * config/aarch64/aarch64-builtins.c : Likewise.
26818 * config/aarch64/aarch64.c : Likewise.
26819 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26820 * config/alpha/alpha.c : Likewise.
26821 * config/arc/arc.c : Likewise.
26822 * config/arm/aarch-common.c : Likewise.
26823 * config/arm/arm-builtins.c : Likewise.
26824 * config/arm/arm-c.c : Likewise.
26825 * config/arm/arm.c : Likewise.
26826 * config/avr/avr-c.c : Likewise.
26827 * config/avr/avr-log.c : Likewise.
26828 * config/avr/avr.c : Likewise.
26829 * config/bfin/bfin.c : Likewise.
26830 * config/c6x/c6x.c : Likewise.
26831 * config/cr16/cr16.c : Likewise.
26832 * config/cris/cris.c : Likewise.
26833 * config/darwin-c.c : Likewise.
26834 * config/darwin.c : Likewise.
26835 * config/default-c.c : Likewise.
26836 * config/epiphany/epiphany.c : Likewise.
26837 * config/epiphany/mode-switch-use.c : Likewise.
26838 * config/epiphany/resolve-sw-modes.c : Likewise.
26839 * config/fr30/fr30.c : Likewise.
26840 * config/frv/frv.c : Likewise.
26841 * config/ft32/ft32.c : Likewise.
26842 * config/glibc-c.c : Likewise.
26843 * config/h8300/h8300.c : Likewise.
26844 * config/i386/i386-c.c : Likewise.
26845 * config/i386/i386.c : Likewise.
26846 * config/i386/msformat-c.c : Likewise.
26847 * config/i386/winnt-cxx.c : Likewise.
26848 * config/i386/winnt-stubs.c : Likewise.
26849 * config/i386/winnt.c : Likewise.
26850 * config/ia64/ia64-c.c : Likewise.
26851 * config/ia64/ia64.c : Likewise.
26852 * config/iq2000/iq2000.c : Likewise.
26853 * config/lm32/lm32.c : Likewise.
26854 * config/m32c/m32c-pragma.c : Likewise.
26855 * config/m32c/m32c.c : Likewise.
26856 * config/m32r/m32r.c : Likewise.
26857 * config/m68k/m68k.c : Likewise.
26858 * config/mcore/mcore.c : Likewise.
26859 * config/mep/mep-pragma.c : Likewise.
26860 * config/mep/mep.c : Likewise.
26861 * config/microblaze/microblaze-c.c : Likewise.
26862 * config/microblaze/microblaze.c : Likewise.
26863 * config/mips/mips.c : Likewise.
26864 * config/mmix/mmix.c : Likewise.
26865 * config/mn10300/mn10300.c : Likewise.
26866 * config/moxie/moxie.c : Likewise.
26867 * config/msp430/msp430-c.c : Likewise.
26868 * config/msp430/msp430.c : Likewise.
26869 * config/nds32/nds32-cost.c : Likewise.
26870 * config/nds32/nds32-fp-as-gp.c : Likewise.
26871 * config/nds32/nds32-intrinsic.c : Likewise.
26872 * config/nds32/nds32-isr.c : Likewise.
26873 * config/nds32/nds32-md-auxiliary.c : Likewise.
26874 * config/nds32/nds32-memory-manipulation.c : Likewise.
26875 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26876 * config/nds32/nds32-predicates.c : Likewise.
26877 * config/nds32/nds32.c : Likewise.
26878 * config/nios2/nios2.c : Likewise.
26879 * config/nvptx/nvptx.c : Likewise.
26880 * config/pa/pa.c : Likewise.
26881 * config/pdp11/pdp11.c : Likewise.
26882 * config/rl78/rl78-c.c : Likewise.
26883 * config/rl78/rl78.c : Likewise.
26884 * config/rs6000/rs6000-c.c : Likewise.
26885 * config/rs6000/rs6000.c : Likewise.
26886 * config/rx/rx.c : Likewise.
26887 * config/s390/s390-c.c : Likewise.
26888 * config/s390/s390.c : Likewise.
26889 * config/sh/sh-c.c : Likewise.
26890 * config/sh/sh-mem.cc : Likewise.
26891 * config/sh/sh.c : Likewise.
26892 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26893 * config/sh/sh_treg_combine.cc : Likewise.
26894 * config/sol2-c.c : Likewise.
26895 * config/sol2-cxx.c : Likewise.
26896 * config/sol2-stubs.c : Likewise.
26897 * config/sol2.c : Likewise.
26898 * config/sparc/sparc-c.c : Likewise.
26899 * config/sparc/sparc.c : Likewise.
26900 * config/spu/spu-c.c : Likewise.
26901 * config/spu/spu.c : Likewise.
26902 * config/stormy16/stormy16.c : Likewise.
26903 * config/tilegx/mul-tables.c : Likewise.
26904 * config/tilegx/tilegx-c.c : Likewise.
26905 * config/tilegx/tilegx.c : Likewise.
26906 * config/tilepro/mul-tables.c : Likewise.
26907 * config/tilepro/tilepro-c.c : Likewise.
26908 * config/tilepro/tilepro.c : Likewise.
26909 * config/v850/v850-c.c : Likewise.
26910 * config/v850/v850.c : Likewise.
26911 * config/vax/vax.c : Likewise.
26912 * config/visium/visium.c : Likewise.
26913 * config/vms/vms-c.c : Likewise.
26914 * config/vms/vms.c : Likewise.
26915 * config/vxworks.c : Likewise.
26916 * config/winnt-c.c : Likewise.
26917 * config/xtensa/xtensa.c : Likewise.
26919 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26922 * ipa-utils.h (warn_types_mismatch): Update prototype.
26923 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26925 (type_mismatch_p): New function.
26926 (warn_types_mismatch): Reorg to work better on non-C++ types.
26927 (odr_types_equivalent_p): Add loc1/loc2 parameters.
26928 (add_type_duplicate): Update.
26930 2015-06-08 Tom de Vries <tom@codesourcery.com>
26932 PR rtl-optimization/66444
26933 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26936 2015-06-08 Richard Biener <rguenther@suse.de>
26938 PR tree-optimization/66422
26939 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26940 block after inserted gcc_unreachable.
26942 2015-06-08 Nick Clifton <nickc@redhat.com>
26944 * config/rx/rx.c (rx_function_value): Do not promote vector types.
26945 (rx_promote_function_mode): Likewise.
26946 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26948 2015-06-08 Jakub Jelinek <jakub@redhat.com>
26950 * genattrtab.c (insn_alternatives): Change type from int *
26952 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26953 (get_attr_value): Change type of num_alt to uint64_t.
26954 (compute_alternative_mask): Change return type from
26955 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26956 (make_alternative_compare, mk_attr_alt): Change argument type
26957 from int to uint64_t.
26958 (simplify_test_exp): Change type of i from int to uint64_t.
26959 Shift ((uint64_t) 1) instead of 1 up.
26960 (main): Adjust oballocvec first argument from int to uint64_t.
26961 Shift ((uint64_t) 1) instead of 1 up.
26963 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
26966 * gdbhooks.py: Import sys.
26967 (intptr): New function. Replace int(...) by intptr(...).
26969 2015-06-08 Richard Biener <rguenther@suse.de>
26971 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26972 adjustment for gaps at the end of a SLP load group properly.
26973 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26974 all permutations we can generate.
26975 (vect_transform_slp_perm_load): Use the correct group-size.
26977 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
26979 * genmatch.c (expr::gen_transform): For conditions, guess the type
26980 from the second operand.
26982 2015-06-08 Tom de Vries <tom@codesourcery.com>
26984 PR tree-optimization/66442
26985 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26986 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26987 if the loop latch is not a singleton. Use
26988 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26990 2015-06-08 Marek Polacek <polacek@redhat.com>
26993 * toplev.c (check_global_declaration): Don't warn about artificial
26996 2015-06-08 Tom de Vries <tom@codesourcery.com>
26998 PR tree-optimization/66436
26999 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27001 * gimplify.c: Add tree-dump.h include.
27002 (gimplify_function_tree): Dump function to gimple dump file.
27003 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27006 2015-06-08 Tom de Vries <tom@codesourcery.com>
27008 PR tree-optimization/66435
27009 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27012 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
27014 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27015 of ptr_type_node to not be ptr_to_node.
27016 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27017 TREE_TYPE of pointers.
27018 * gimple-expr.c (useless_type_conversion): Reorder the check for
27019 function pointers and TYPE_CANONICAL.
27021 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
27024 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27025 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27026 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27028 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27029 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27030 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27031 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27032 and non iso if unix2003.
27034 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
27036 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27038 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
27040 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27041 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27042 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27043 except.c, final.c, function.c, gcse-common.c, genemit.c,
27044 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27045 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27046 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27047 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27050 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
27052 * combine.c (combine_split_insns): Remove cast.
27053 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27054 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27055 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27056 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27057 * genemit.c (gen_split): Change return type of generated functions to
27059 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27060 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27061 gen_peephole2_* functions.
27062 (print_subroutine, main): Likewise.
27063 * recog.c (peephole2_optimize): Remove cast.
27064 (peep2_next_insn): Promote return type to rtx_insn.
27065 * recog.h (peep2_next_insn): Fix prototype.
27066 * rtl.h (try_split, split_insns): Likewise.
27068 2015-06-06 DJ Delorie <dj@redhat.com>
27070 * config/msp430/msp430.c (msp430_asm_integer): Support addition
27071 and subtraction too.
27073 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
27076 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27077 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27078 instead of Snd. Disparage Sid/z alternative with '^'.
27080 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
27082 * dwarf2out.c: Remove deferred_locations*.
27083 (dwarf2_debug_hooks): Add early_finish hook.
27084 Remove global_decl hook.
27085 Add early_global_decl and late_global_decl hook.
27086 New global early_dwarf.
27087 New structure set_early_dwarf.
27088 (output_die): Indicate whether a DIE was generated early
27089 when generating assembly with -dA.
27090 (struct limbo_die_struct): Document created_for field.
27091 Remove file_table_last_lookup.
27092 (remove_AT): Return TRUE if successful.
27093 (remove_child_TAG): Clear die_parent.
27094 (reparent_child): New function abstracted from...
27095 (splice_child_die): ...here.
27096 (new_die): ICE if a DIE ends up in limbo too late.
27098 (defer_location): Remove.
27099 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27100 (fill_variable_array_bounds): New.
27101 (decl_start_label): Call fill_variable_array_bounds.
27102 (gen_formal_parameter_die): Rewrite to reuse previously generated
27104 (gen_subprogram_die): Same.
27105 (gen_variable_die): Same.
27106 (gen_const_die): Same.
27107 (gen_label_die): Same.
27108 (gen_lexical_block_die): Same.
27109 (decl_will_get_specification_p): New.
27110 (local_function_static): New.
27111 (gen_struct_or_union_type_die): Fill in variable-length fields.
27112 (gen_typedef_die): Fill in variable-length typedefs.
27113 (gen_tagged_type_die): Gracefully return on error_mark_node.
27114 Handle re-entrancy.
27115 (gen_type_die_with_usage): Handle variable-length types.
27116 Remove duplicate code for ARRAY_TYPE case.
27117 (process_scope_var): Only process imported modules during early
27119 (dwarf2out_early_global_decl): New.
27120 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27121 (dwarf2out_type_decl): Set early_dwarf while calling
27123 (dwarf2out_decl): Verify that we did not recreate a previously
27125 Do not return on DECL_EXTERNALs in VAR_DECLs.
27126 Abstract some code to local_function_static.
27127 (lookup_filename): Remove use of file_table_last_lookup.
27128 Gracefully exit on missing file_name.
27129 (dwarf2out_finish): Verify limbo list.
27130 Remove deferred_locations_list use.
27131 Move deferred_asm_name and limbo flushing to...
27132 (dwarf2out_early_finish): ...here. New.
27133 (dwarf2out_c_finalize): Remove set of deferred_location_list,
27134 deferred_asm_name, and file_table_last_lookup.
27135 * cgraph.h (referred_to_p): Add default argument.
27136 * cgraphunit.c (referred_to_p): Add and handle include_self
27138 (analyze_functions): Add first_time argument.
27139 Call check_global_declaration for all symbols.
27140 Call late_global_decl for nodes for moribund nodes.
27141 (finalize_compilation_unit): Add new argument to
27143 Call early_global_decl for functions.
27144 Call early_finish debug hook.
27145 * dbxout.c (dbxout_early_global_decl): New.
27146 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
27147 (dbx_debug_hooks): Add new hooks.
27148 (xcoff_debug_hooks): Same.
27149 * debug.c (do_nothing_debug_hooks): Add early_finish field.
27150 Add early and late debug hooks.
27151 Remove global_decl hook.
27152 * debug.h (struct gcc_debug_hooks): Add early_finish,
27153 early_global_decl, and late_global_decl fields.
27154 Remove global_decl field.
27155 Document gcc_debug_hooks.
27156 * gengtype.c (output_typename): Remove.
27157 * godump.c (go_early_global_decl): New.
27158 (go_late_global_decl): New.
27159 (go_global_decl): Remove.
27160 (dump_go_spec_init): Remove global_decl. Add
27161 {early,late}_global_decl.
27162 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27163 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27164 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27165 (write_global_declarations): Remove.
27166 (global_decl_processing): New.
27167 * langhooks.h (struct lang_hooks_for_decls): Remove
27168 final_write_globals field.
27169 Add post_compilation_parsing_cleanups field.
27170 * passes.c (rest_of_decl_compilation): Call early_global_decl.
27171 * sdbout.c: Add early and late_global_decl hooks. Remove
27172 sdbout_global_decl hook.
27173 Add early_finish field for sdb_debug_hooks.
27174 (sdbout_global_decl): Remove.
27175 (sdbout_early_global_decl): New.
27176 (sdbout_late_global_decl): New.
27177 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27178 * toplev.c (check_global_declaration): Rename from
27179 check_global_declaration_1.
27180 Adapt to use symtab infrastructure.
27181 (check_global_declarations): Remove.
27182 (emit_debug_global_declarations): Remove.
27183 (compile_file): Remove call to final_write_globals langhook.
27184 Run the actual compilation process.
27185 Perform any post compilation parser cleanups.
27186 Generate late debug info.
27187 * toplev.h (check_global_declaration): New.
27188 (check_global_declaration_1): Remove.
27189 (check_global_declarations): Remove.
27190 (write_global_declarations): Remove.
27191 (emit_debug_global_declarations): Remove.
27192 (global_decl_processing): New.
27193 * tree-core.h (struct tree_block): Add DIE field.
27194 * tree.h (BLOCK_DIE): New.
27195 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27197 (vmsdbgout_early_global_decl): New.
27198 (vmsdbgout_late_global_decl): New.
27199 Add early_finish debug hook field to vmsdbg_debug_hooks.
27200 Remove vmsdbgout_decl to vmsdbgout_function_decl.
27201 Add early and late_global_decl debug hooks.
27203 2015-06-05 Julian Brown <julian@codesourcery.com>
27204 Sandra Loosemore <sandra@codesourcery.com>
27206 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27207 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27208 to print-sysroot-suffix.sh script.
27210 2015-06-05 Tom de Vries <tom@codesourcery.com>
27212 merge from gomp4 branch:
27213 2015-05-28 Tom de Vries <tom@codesourcery.com>
27215 PR tree-optimization/65443
27216 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27217 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27218 (try_transform_to_exit_first_loop_alt): New function.
27219 (transform_to_exit_first_loop): Use
27220 try_transform_to_exit_first_loop_alt.
27222 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
27224 * builtins.c (expand_builtin_atomic_compare_exchange): Call
27225 emit_cmp_and_jump_insns with the mode of target.
27227 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27229 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27231 2015-06-04 DJ Delorie <dj@redhat.com>
27233 * config/msp430/msp430.md (movsi_s): New. Special case for
27234 storing a 20-bit symbol into a 32-bit register.
27235 * config/msp430/msp430.c (msp430_subreg): Add support for it.
27236 * config/msp430/predicates.md (msp430_symbol_operand): New.
27238 2015-06-04 Sriraman Tallam <tmsriram@google.com>
27240 * calls.c (prepare_call_address): Check for noplt
27242 * config/i386/i386.c (ix86_expand_call): Check
27243 for noplt attribute.
27244 (ix86_nopic_noplt_attribute_p): New function.
27245 (ix86_output_call_insn): Output indirect call for non-pic
27247 * doc/extend.texi (noplt): Document new attribute.
27248 * doc/invoke.texi: Document new attribute.
27250 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
27252 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27253 real.h, and fixed-value.h when included in host source files.
27254 * double-int.h: Remove redundant #includes listed above.
27255 * fixed-value.h: Likewise.
27256 * real.h: Likewise.
27257 * wide-int.h: Likewise.
27258 * inchash.h: Likewise.
27259 * rtl.h: Add some include files When included from a generator file.
27260 * target.h: Remove wide-int.h and insn-modes.h from the include list.
27261 * internal-fn.h: Don't include coretypes.h.
27262 * alias.c: Adjust includes for restructured coretypes.h.
27263 * asan.c: Likewise.
27264 * attribs.c: Likewise.
27265 * auto-inc-dec.c: Likewise.
27266 * auto-profile.c: Likewise.
27267 * bb-reorder.c: Likewise.
27268 * bt-load.c: Likewise.
27269 * builtins.c: Likewise.
27270 * caller-save.c: Likewise.
27271 * calls.c: Likewise.
27272 * ccmp.c: Likewise.
27274 * cfganal.c: Likewise.
27275 * cfgbuild.c: Likewise.
27276 * cfgcleanup.c: Likewise.
27277 * cfgexpand.c: Likewise.
27278 * cfghooks.c: Likewise.
27279 * cfgloop.c: Likewise.
27280 * cfgloop.h: Likewise.
27281 * cfgloopanal.c: Likewise.
27282 * cfgloopmanip.c: Likewise.
27283 * cfgrtl.c: Likewise.
27284 * cgraph.c: Likewise.
27285 * cgraphbuild.c: Likewise.
27286 * cgraphclones.c: Likewise.
27287 * cgraphunit.c: Likewise.
27288 * cilk-common.c: Likewise.
27289 * combine-stack-adj.c: Likewise.
27290 * combine.c: Likewise.
27291 * compare-elim.c: Likewise.
27292 * convert.c: Likewise.
27293 * coverage.c: Likewise.
27294 * cppbuiltin.c: Likewise.
27295 * cprop.c: Likewise.
27297 * cselib.c: Likewise.
27298 * data-streamer-in.c: Likewise.
27299 * data-streamer-out.c: Likewise.
27300 * data-streamer.c: Likewise.
27301 * dbxout.c: Likewise.
27304 * debug.c: Likewise.
27305 * df-core.c: Likewise.
27306 * df-problems.c: Likewise.
27307 * df-scan.c: Likewise.
27310 * dojump.c: Likewise.
27311 * dominance.c: Likewise.
27312 * domwalk.c: Likewise.
27313 * double-int.c: Likewise.
27315 * dumpfile.c: Likewise.
27316 * dwarf2asm.c: Likewise.
27317 * dwarf2cfi.c: Likewise.
27318 * dwarf2out.c: Likewise.
27319 * dwarf2out.h: Likewise.
27320 * emit-rtl.c: Likewise.
27321 * et-forest.c: Likewise.
27322 * except.c: Likewise.
27323 * explow.c: Likewise.
27324 * expmed.c: Likewise.
27325 * expr.c: Likewise.
27326 * final.c: Likewise.
27327 * fixed-value.c: Likewise.
27328 * fold-const.c: Likewise.
27329 * function.c: Likewise.
27330 * fwprop.c: Likewise.
27331 * gcc-plugin.h: Likewise.
27332 * gcse.c: Likewise.
27333 * generic-match-head.c: Likewise.
27334 * ggc-page.c: Likewise.
27335 * gimple-builder.c: Likewise.
27336 * gimple-expr.c: Likewise.
27337 * gimple-fold.c: Likewise.
27338 * gimple-iterator.c: Likewise.
27339 * gimple-low.c: Likewise.
27340 * gimple-match-head.c: Likewise.
27341 * gimple-pretty-print.c: Likewise.
27342 * gimple-ssa-isolate-paths.c: Likewise.
27343 * gimple-ssa-strength-reduction.c: Likewise.
27344 * gimple-streamer-in.c: Likewise.
27345 * gimple-streamer-out.c: Likewise.
27346 * gimple-streamer.h: Likewise.
27347 * gimple-walk.c: Likewise.
27348 * gimple.c: Likewise.
27349 * gimplify-me.c: Likewise.
27350 * gimplify.c: Likewise.
27351 * godump.c: Likewise.
27352 * graph.c: Likewise.
27353 * graphite-blocking.c: Likewise.
27354 * graphite-dependences.c: Likewise.
27355 * graphite-interchange.c: Likewise.
27356 * graphite-isl-ast-to-gimple.c: Likewise.
27357 * graphite-optimize-isl.c: Likewise.
27358 * graphite-poly.c: Likewise.
27359 * graphite-scop-detection.c: Likewise.
27360 * graphite-sese-to-poly.c: Likewise.
27361 * graphite.c: Likewise.
27362 * haifa-sched.c: Likewise.
27363 * hooks.h: Likewise.
27364 * hw-doloop.c: Likewise.
27365 * ifcvt.c: Likewise.
27366 * incpath.c: Likewise.
27367 * init-regs.c: Likewise.
27368 * internal-fn.c: Likewise.
27369 * ipa-chkp.c: Likewise.
27370 * ipa-comdats.c: Likewise.
27371 * ipa-cp.c: Likewise.
27372 * ipa-devirt.c: Likewise.
27373 * ipa-icf-gimple.c: Likewise.
27374 * ipa-icf.c: Likewise.
27375 * ipa-inline-analysis.c: Likewise.
27376 * ipa-inline-transform.c: Likewise.
27377 * ipa-inline.c: Likewise.
27378 * ipa-polymorphic-call.c: Likewise.
27379 * ipa-profile.c: Likewise.
27380 * ipa-prop.c: Likewise.
27381 * ipa-pure-const.c: Likewise.
27382 * ipa-ref.c: Likewise.
27383 * ipa-reference.c: Likewise.
27384 * ipa-split.c: Likewise.
27385 * ipa-utils.c: Likewise.
27386 * ipa-visibility.c: Likewise.
27388 * ira-build.c: Likewise.
27389 * ira-color.c: Likewise.
27390 * ira-conflicts.c: Likewise.
27391 * ira-costs.c: Likewise.
27392 * ira-emit.c: Likewise.
27393 * ira-lives.c: Likewise.
27395 * jump.c: Likewise.
27396 * langhooks.c: Likewise.
27398 * loop-doloop.c: Likewise.
27399 * loop-init.c: Likewise.
27400 * loop-invariant.c: Likewise.
27401 * loop-iv.c: Likewise.
27402 * loop-unroll.c: Likewise.
27403 * lower-subreg.c: Likewise.
27404 * lra-assigns.c: Likewise.
27405 * lra-coalesce.c: Likewise.
27406 * lra-constraints.c: Likewise.
27407 * lra-eliminations.c: Likewise.
27408 * lra-lives.c: Likewise.
27409 * lra-remat.c: Likewise.
27410 * lra-spills.c: Likewise.
27412 * lto-cgraph.c: Likewise.
27413 * lto-compress.c: Likewise.
27414 * lto-opts.c: Likewise.
27415 * lto-section-in.c: Likewise.
27416 * lto-section-out.c: Likewise.
27417 * lto-streamer-in.c: Likewise.
27418 * lto-streamer-out.c: Likewise.
27419 * lto-streamer.c: Likewise.
27421 * mode-switching.c: Likewise.
27422 * modulo-sched.c: Likewise.
27423 * omega.c: Likewise.
27424 * omp-low.c: Likewise.
27425 * optabs.c: Likewise.
27426 * opts-global.c: Likewise.
27427 * passes.c: Likewise.
27428 * plugin.c: Likewise.
27429 * postreload-gcse.c: Likewise.
27430 * postreload.c: Likewise.
27431 * predict.c: Likewise.
27432 * print-rtl.c: Likewise.
27433 * print-tree.c: Likewise.
27434 * profile.c: Likewise.
27435 * real.c: Likewise.
27436 * realmpfr.c: Likewise.
27437 * realmpfr.h: Likewise.
27438 * recog.c: Likewise.
27440 * reg-stack.c: Likewise.
27441 * regcprop.c: Likewise.
27442 * reginfo.c: Likewise.
27443 * regrename.c: Likewise.
27444 * regs.h: Likewise.
27445 * regstat.c: Likewise.
27446 * reload.c: Likewise.
27447 * reload1.c: Likewise.
27448 * reorg.c: Likewise.
27449 * resource.c: Likewise.
27450 * rtl-chkp.c: Likewise.
27451 * rtlanal.c: Likewise.
27452 * rtlhooks.c: Likewise.
27453 * sanopt.c: Likewise.
27454 * sched-deps.c: Likewise.
27455 * sched-ebb.c: Likewise.
27456 * sched-rgn.c: Likewise.
27457 * sched-vis.c: Likewise.
27458 * sdbout.c: Likewise.
27459 * sel-sched-dump.c: Likewise.
27460 * sel-sched-ir.c: Likewise.
27461 * sel-sched.c: Likewise.
27462 * sese.c: Likewise.
27463 * shrink-wrap.c: Likewise.
27464 * shrink-wrap.h: Likewise.
27465 * simplify-rtx.c: Likewise.
27466 * stack-ptr-mod.c: Likewise.
27467 * statistics.c: Likewise.
27468 * stmt.c: Likewise.
27469 * stor-layout.c: Likewise.
27470 * store-motion.c: Likewise.
27471 * stringpool.c: Likewise.
27472 * symtab.c: Likewise.
27473 * target-globals.c: Likewise.
27474 * targhooks.c: Likewise.
27475 * toplev.c: Likewise.
27476 * tracer.c: Likewise.
27477 * trans-mem.c: Likewise.
27478 * tree-affine.c: Likewise.
27479 * tree-affine.h: Likewise.
27480 * tree-browser.c: Likewise.
27481 * tree-call-cdce.c: Likewise.
27482 * tree-cfg.c: Likewise.
27483 * tree-cfgcleanup.c: Likewise.
27484 * tree-chkp-opt.c: Likewise.
27485 * tree-chkp.c: Likewise.
27486 * tree-chrec.c: Likewise.
27487 * tree-complex.c: Likewise.
27488 * tree-data-ref.c: Likewise.
27489 * tree-dfa.c: Likewise.
27490 * tree-diagnostic.c: Likewise.
27491 * tree-dump.c: Likewise.
27492 * tree-eh.c: Likewise.
27493 * tree-emutls.c: Likewise.
27494 * tree-if-conv.c: Likewise.
27495 * tree-inline.c: Likewise.
27496 * tree-into-ssa.c: Likewise.
27497 * tree-iterator.c: Likewise.
27498 * tree-loop-distribution.c: Likewise.
27499 * tree-nested.c: Likewise.
27500 * tree-nrv.c: Likewise.
27501 * tree-object-size.c: Likewise.
27502 * tree-outof-ssa.c: Likewise.
27503 * tree-parloops.c: Likewise.
27504 * tree-phinodes.c: Likewise.
27505 * tree-predcom.c: Likewise.
27506 * tree-pretty-print.c: Likewise.
27507 * tree-pretty-print.h: Likewise.
27508 * tree-profile.c: Likewise.
27509 * tree-scalar-evolution.c: Likewise.
27510 * tree-sra.c: Likewise.
27511 * tree-ssa-address.c: Likewise.
27512 * tree-ssa-alias.c: Likewise.
27513 * tree-ssa-ccp.c: Likewise.
27514 * tree-ssa-coalesce.c: Likewise.
27515 * tree-ssa-copy.c: Likewise.
27516 * tree-ssa-copyrename.c: Likewise.
27517 * tree-ssa-dce.c: Likewise.
27518 * tree-ssa-dom.c: Likewise.
27519 * tree-ssa-dse.c: Likewise.
27520 * tree-ssa-forwprop.c: Likewise.
27521 * tree-ssa-ifcombine.c: Likewise.
27522 * tree-ssa-live.c: Likewise.
27523 * tree-ssa-loop-ch.c: Likewise.
27524 * tree-ssa-loop-im.c: Likewise.
27525 * tree-ssa-loop-ivcanon.c: Likewise.
27526 * tree-ssa-loop-ivopts.c: Likewise.
27527 * tree-ssa-loop-manip.c: Likewise.
27528 * tree-ssa-loop-niter.c: Likewise.
27529 * tree-ssa-loop-prefetch.c: Likewise.
27530 * tree-ssa-loop-unswitch.c: Likewise.
27531 * tree-ssa-loop.c: Likewise.
27532 * tree-ssa-loop.h: Likewise.
27533 * tree-ssa-math-opts.c: Likewise.
27534 * tree-ssa-operands.c: Likewise.
27535 * tree-ssa-phiopt.c: Likewise.
27536 * tree-ssa-phiprop.c: Likewise.
27537 * tree-ssa-pre.c: Likewise.
27538 * tree-ssa-propagate.c: Likewise.
27539 * tree-ssa-reassoc.c: Likewise.
27540 * tree-ssa-sccvn.c: Likewise.
27541 * tree-ssa-scopedtables.c: Likewise.
27542 * tree-ssa-sink.c: Likewise.
27543 * tree-ssa-strlen.c: Likewise.
27544 * tree-ssa-structalias.c: Likewise.
27545 * tree-ssa-tail-merge.c: Likewise.
27546 * tree-ssa-ter.c: Likewise.
27547 * tree-ssa-threadedge.c: Likewise.
27548 * tree-ssa-threadupdate.c: Likewise.
27549 * tree-ssa-uncprop.c: Likewise.
27550 * tree-ssa-uninit.c: Likewise.
27551 * tree-ssa.c: Likewise.
27552 * tree-ssanames.c: Likewise.
27553 * tree-stdarg.c: Likewise.
27554 * tree-streamer-in.c: Likewise.
27555 * tree-streamer-out.c: Likewise.
27556 * tree-streamer.c: Likewise.
27557 * tree-switch-conversion.c: Likewise.
27558 * tree-tailcall.c: Likewise.
27559 * tree-vect-data-refs.c: Likewise.
27560 * tree-vect-generic.c: Likewise.
27561 * tree-vect-loop-manip.c: Likewise.
27562 * tree-vect-loop.c: Likewise.
27563 * tree-vect-patterns.c: Likewise.
27564 * tree-vect-slp.c: Likewise.
27565 * tree-vect-stmts.c: Likewise.
27566 * tree-vectorizer.c: Likewise.
27567 * tree-vrp.c: Likewise.
27568 * tree.c: Likewise.
27569 * tsan.c: Likewise.
27570 * ubsan.c: Likewise.
27571 * valtrack.c: Likewise.
27572 * value-prof.c: Likewise.
27573 * var-tracking.c: Likewise.
27574 * varasm.c: Likewise.
27575 * varpool.c: Likewise.
27576 * vmsdbgout.c: Likewise.
27577 * vtable-verify.c: Likewise.
27579 * wide-int-print.cc: Likewise.
27580 * wide-int-print.h: Likewise.
27581 * wide-int.cc: Likewise.
27582 * xcoffout.c: Likewise.
27583 * config/aarch64/aarch64-builtins.c: Likewise.
27584 * config/aarch64/aarch64.c: Likewise.
27585 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27586 * config/alpha/alpha.c: Likewise.
27587 * config/arc/arc.c: Likewise.
27588 * config/arm/aarch-common.c: Likewise.
27589 * config/arm/arm-builtins.c: Likewise.
27590 * config/arm/arm-c.c: Likewise.
27591 * config/arm/arm.c: Likewise.
27592 * config/avr/avr-c.c: Likewise.
27593 * config/avr/avr-log.c: Likewise.
27594 * config/avr/avr.c: Likewise.
27595 * config/bfin/bfin.c: Likewise.
27596 * config/c6x/c6x.c: Likewise.
27597 * config/cr16/cr16.c: Likewise.
27598 * config/cris/cris.c: Likewise.
27599 * config/darwin-c.c: Likewise.
27600 * config/darwin.c: Likewise.
27601 * config/default-c.c: Likewise.
27602 * config/epiphany/epiphany.c: Likewise.
27603 * config/epiphany/mode-switch-use.c: Likewise.
27604 * config/epiphany/resolve-sw-modes.c: Likewise.
27605 * config/fr30/fr30.c: Likewise.
27606 * config/frv/frv.c: Likewise.
27607 * config/ft32/ft32.c: Likewise.
27608 * config/glibc-c.c: Likewise.
27609 * config/h8300/h8300.c: Likewise.
27610 * config/i386/i386-c.c: Likewise.
27611 * config/i386/i386.c: Likewise.
27612 * config/i386/msformat-c.c: Likewise.
27613 * config/i386/winnt-cxx.c: Likewise.
27614 * config/i386/winnt-stubs.c: Likewise.
27615 * config/i386/winnt.c: Likewise.
27616 * config/ia64/ia64-c.c: Likewise.
27617 * config/ia64/ia64.c: Likewise.
27618 * config/iq2000/iq2000.c: Likewise.
27619 * config/lm32/lm32.c: Likewise.
27620 * config/m32c/m32c-pragma.c: Likewise.
27621 * config/m32c/m32c.c: Likewise.
27622 * config/m32r/m32r.c: Likewise.
27623 * config/m68k/m68k.c: Likewise.
27624 * config/mcore/mcore.c: Likewise.
27625 * config/mep/mep-pragma.c: Likewise.
27626 * config/mep/mep.c: Likewise.
27627 * config/microblaze/microblaze-c.c: Likewise.
27628 * config/microblaze/microblaze.c: Likewise.
27629 * config/mips/mips.c: Likewise.
27630 * config/mmix/mmix.c: Likewise.
27631 * config/mn10300/mn10300.c: Likewise.
27632 * config/moxie/moxie.c: Likewise.
27633 * config/msp430/msp430-c.c: Likewise.
27634 * config/msp430/msp430.c: Likewise.
27635 * config/nds32/nds32-cost.c: Likewise.
27636 * config/nds32/nds32-fp-as-gp.c: Likewise.
27637 * config/nds32/nds32-intrinsic.c: Likewise.
27638 * config/nds32/nds32-isr.c: Likewise.
27639 * config/nds32/nds32-md-auxiliary.c: Likewise.
27640 * config/nds32/nds32-memory-manipulation.c: Likewise.
27641 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27642 * config/nds32/nds32-predicates.c: Likewise.
27643 * config/nds32/nds32.c: Likewise.
27644 * config/nios2/nios2.c: Likewise.
27645 * config/nvptx/nvptx.c: Likewise.
27646 * config/pa/pa.c: Likewise.
27647 * config/pdp11/pdp11.c: Likewise.
27648 * config/rl78/rl78-c.c: Likewise.
27649 * config/rl78/rl78.c: Likewise.
27650 * config/rs6000/rs6000-c.c: Likewise.
27651 * config/rs6000/rs6000.c: Likewise.
27652 * config/rx/rx.c: Likewise.
27653 * config/s390/s390-c.c: Likewise.
27654 * config/s390/s390.c: Likewise.
27655 * config/sh/sh-c.c: Likewise.
27656 * config/sh/sh-mem.cc: Likewise.
27657 * config/sh/sh.c: Likewise.
27658 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27659 * config/sh/sh_treg_combine.cc: Likewise.
27660 * config/sol2-c.c: Likewise.
27661 * config/sol2-cxx.c: Likewise.
27662 * config/sol2-stubs.c: Likewise.
27663 * config/sol2.c: Likewise.
27664 * config/sparc/sparc-c.c: Likewise.
27665 * config/sparc/sparc.c: Likewise.
27666 * config/spu/spu-c.c: Likewise.
27667 * config/spu/spu.c: Likewise.
27668 * config/stormy16/stormy16.c: Likewise.
27669 * config/tilegx/mul-tables.c: Likewise.
27670 * config/tilegx/tilegx-c.c: Likewise.
27671 * config/tilegx/tilegx.c: Likewise.
27672 * config/tilepro/mul-tables.c: Likewise.
27673 * config/tilepro/tilepro-c.c: Likewise.
27674 * config/tilepro/tilepro.c: Likewise.
27675 * config/v850/v850-c.c: Likewise.
27676 * config/v850/v850.c: Likewise.
27677 * config/vax/vax.c: Likewise.
27678 * config/visium/visium.c: Likewise.
27679 * config/vms/vms-c.c: Likewise.
27680 * config/vms/vms.c: Likewise.
27681 * config/vxworks.c: Likewise.
27682 * config/winnt-c.c: Likewise.
27683 * config/xtensa/xtensa.c: Likewise.
27684 * common/config/bfin/bfin-common.c: Likewise.
27686 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27688 * tree.h (tree_code_for_canonical_type_merging): New function.
27689 * tree.c (gimple_canonical_types_compatible_p): Use
27690 tree_code_for_canonical_type_merging..
27692 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27696 * doc/tm.texi: Regenerate.
27697 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27698 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27699 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27700 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27701 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27702 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27703 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27704 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27705 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27707 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27709 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27710 register fma steering pass.
27711 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27712 AARCH64_TUNE_FMA_STEERING.
27714 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27716 * tree.c (verify_type_variant): Verify that type and variant is
27718 (gimple_canonical_types_compatible_p): Look for main variants.
27720 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27722 * config.gcc (powerpc*-*-*): Add support for a new configure
27723 option --with-advance-toolchain=<xxx> which overrides using the
27724 default header files, libraries and dynamic linker.
27726 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27727 specs to support the configure --with-advance-toolchain=<xxx>
27729 (INCLUDE_EXTRA_SPEC): Likewise.
27730 (LINK_OS_EXTRA_SPEC32): Likewise.
27731 (LINK_OK_EXTRA_SPEC64): Likewise.
27732 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27733 (DYNAMIC_LINKER_PREFIX): Likewise.
27734 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27736 (GLIBC_DYNAMIC_LINKER32): Likewise.
27737 (GLIBC_DYNAMIC_LINKER64): Likewise.
27738 (LINK_OS_LINUX_SPEC32): Likewise.
27739 (LINK_OS_LINUX_SPEC64): Likewise.
27741 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27742 configuration option.
27744 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27747 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27748 to determine current function ABI.
27749 (ix86_function_value_regno_p): Ditto.
27751 2015-06-03 Martin Liska <mliska@suse.cz>
27753 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27754 * bitmap.h (struct bitmap_usage): Likewise.
27755 * ggc-common.c (struct ggc_usage): Likewise.
27756 * mem-stats.h (struct mem_location): Likewise.
27757 (struct mem_usage): Likewise.
27758 * vec.c (struct vec_usage): Likewise.
27760 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27762 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27765 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27767 * doc/plugins.texi (enum plugin_event): New event.
27768 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27769 and PLUGIN_FINISH_FUNCTION.
27770 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27771 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27773 2015-06-03 Richard Biener <rguenther@suse.de>
27775 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27776 compute GROUP_GAP for the first element.
27777 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27780 2015-06-03 Nick Clifton <nickc@redhat.com>
27782 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27783 copy when calling a function.
27784 * config/rl78/rl78.c (need_to_save): Do not push the frame
27785 pointer in an interrupt handler prologue if it is never used.
27787 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27789 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27791 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27793 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27794 reference when cloning alias node.
27796 2015-06-03 Martin Liska <mliska@suse.cz>
27798 * alloc-pool.h (struct pool_usage): Correct space padding.
27799 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27800 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27801 * tree.c (dump_tree_statistics): Align columns in a report.
27803 2015-06-03 Martin Liska <mliska@suse.cz>
27805 * alloc-pool.c (allocate_pool_descriptor): Remove.
27806 (struct pool_output_info): Likewise.
27807 (print_alloc_pool_statistics): Likewise.
27808 (dump_alloc_pool_statistics): Likewise.
27809 * alloc-pool.h (struct pool_usage): New struct.
27810 (pool_allocator::initialize): Change usage of memory statistics
27811 to a new interface.
27812 (pool_allocator::release): Likewise.
27813 (pool_allocator::allocate): Likewise.
27814 (pool_allocator::remove): Likewise.
27815 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27816 for a pool allocator.
27817 * mem-stats.h (struct mem_location): Add new ctor.
27818 (struct mem_usage): Add counter for number of
27820 (mem_alloc_description::register_descriptor): New overload of
27821 * mem-stats.h (mem_location::to_string): New function.
27822 * bitmap.h (struct bitmap_usage): Use this new function.
27823 * ggc-common.c (struct ggc_usage): Likewise.
27826 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27828 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27829 of GCC_INSN_FLAGS_H block.
27831 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27833 * explow.c (plus_constant): Update check after force_const_mem call
27834 to see if the value returned is not a NULL_RTX.
27836 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27838 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27839 remove instumentation thunks calling reachable functions.
27840 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27841 * lto/lto-partition.c (privatize_symbol_name_1): New.
27842 (privatize_symbol_name): Privatize both decl and orig_decl
27843 names for instrumented functions.
27844 * cgraph.c (cgraph_node::verify_node): Add transparent
27845 alias chain check for instrumented node.
27847 2015-06-03 Marek Polacek <polacek@redhat.com>
27851 * tree.c (attribute_value_equal): Handle attribute format.
27852 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27854 2015-06-03 Richard Biener <rguenther@suse.de>
27856 PR tree-optimization/63916
27857 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27858 Forward-propagate non-invariant addresses by splicing their
27859 reference ops if the result isn't going to be used by PRE.
27860 (vn_reference_lookup_3): Remove pointless assert.
27862 2015-06-03 Richard Biener <rguenther@suse.de>
27864 PR tree-optimization/66375
27865 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27866 add to the evolution before following SSA edges.
27868 2015-06-03 Bin Cheng <bin.cheng@arm.com>
27870 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27871 (dump_use, dump_cand, find_induction_variables): Pass new argument
27873 (record_use): Preserve the ssa name information in IV.
27875 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27877 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27879 (add_mode_tests): Don't add mode tests if the predicate only
27880 accepts scalar constant integers. Otherwise, allow the mode
27881 of "op" to be VOIDmode if the predicate does accept such integers.
27883 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
27886 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27887 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27888 (aarch64_secondary_reload): Likewise
27889 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27891 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27894 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
27895 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27898 * cprop.c (try_replace_reg): Check cost of constants before propagating.
27900 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27902 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27903 provide access to the IBM extended double floating point mode if
27904 long double is IEEE 128-bit floating point.
27905 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27906 point if long double is the IBM extended double type.
27908 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27909 enable adding IEEE 128-bit floating point support.
27910 (-mfloat128-software): Likewise.
27911 (-mfloat128-sw): Likewise.
27913 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27914 128-bit floating point types to occupy any register if
27915 -mlong-double-64. Do not allow use of IFmode/KFmode unless
27916 -mfloat128-software is enabled.
27917 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27919 (rs6000_option_override_internal): Add -mfloat128-* support.
27920 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27922 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27923 and float128 type nodes.
27924 (ieee128_float_type_node): Likewise.
27925 (ibm128_float_type_node): Likewise.
27927 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27930 * config/aarch64/geniterators.sh: Rewrite in awk.
27932 2015-06-02 Martin Liska <mliska@suse.cz>
27934 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27935 values to avoid -Wmaybe-uninitialized errors.
27937 2015-06-02 Richard Biener <rguenther@suse.de>
27940 * dwarf2out.c (lookup_context_die): New function.
27941 (resolve_addr): Avoid forcing a full DIE for the
27942 target of a DW_TAG_GNU_call_site during late compilation.
27943 Instead create a stub DIE without a type if we have a
27944 context DIE present.
27946 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
27948 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27950 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27952 PR tree-optimization/48052
27953 * cfgloop.h (struct control_iv): New.
27954 (struct loop): New field control_ivs.
27955 * tree-ssa-loop-niter.c : Include "stor-layout.h".
27956 (number_of_iterations_lt): Set no_overflow information.
27957 (number_of_iterations_exit): Init control iv in niter struct.
27958 (record_control_iv): New.
27959 (estimate_numbers_of_iterations_loop): Call record_control_iv.
27960 (loop_exits_before_overflow): New. Interface factored out of
27961 scev_probably_wraps_p.
27962 (scev_probably_wraps_p): Factor loop niter related code into
27963 loop_exits_before_overflow.
27964 (free_numbers_of_iterations_estimates_loop): Free control ivs.
27965 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27967 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
27969 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27970 the target doesn't belong to the current function.
27972 2015-06-02 Marek Polacek <polacek@redhat.com>
27974 PR middle-end/66345
27975 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27976 get_maxval_strlen does not produce an INTEGER_CST.
27978 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
27980 * config/arc/constraints.md: Use lower-case names in match_code.
27981 * config/mmix/constraints.md: Likewise.
27983 2015-06-02 Richard Biener <rguenther@suse.de>
27985 PR tree-optimization/65961
27986 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27987 check and clarify dump message.
27988 (vect_build_slp_tree): If all children are built up from scalars
27989 build up the parent from scalars instead.
27990 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27992 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
27995 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
27996 instead of print ... .
27998 2015-06-02 Alan Modra <amodra@gmail.com>
28000 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28003 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28005 PR tree-optimization/52563
28006 PR tree-optimization/62173
28007 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
28008 (alloc_iv, set_iv): New parameter.
28009 (determine_biv_step): Delete.
28010 (find_bivs): Inline original determine_biv_step. Pass new
28011 argument to set_iv.
28012 (idx_find_step): Use no_overflow information for conversion.
28013 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28014 resolve_mixers handle folded_casts.
28015 (instantiate_scev_name): Change bool parameter to bool pointer.
28016 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28017 (instantiate_array_ref, instantiate_scev_not): Ditto.
28018 (instantiate_scev_3, instantiate_scev_2): Ditto.
28019 (instantiate_scev_1, instantiate_scev_r): Ditto.
28020 (instantiate_scev_convert, ): Change parameter. Pass argument
28021 to chrec_convert_aggressive.
28022 (instantiate_scev): Change argument.
28023 (resolve_mixers): New parameter and set it.
28024 (scev_const_prop): New argument.
28025 * tree-scalar-evolution.h (resolve_mixers): New parameter.
28026 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28028 (chrec_convert): New parameter. Move definition below.
28029 (chrec_convert_aggressive): New parameter and set it. Call
28030 convert_affine_scev.
28031 * tree-chrec.h (chrec_convert): New parameter.
28032 (chrec_convert_aggressive): Ditto.
28034 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28036 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28037 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28038 the LHS of a no-return call if its type has variable size.
28039 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28040 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28042 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
28044 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28045 * config.in: Regenerate.
28047 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
28049 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28050 consecutive accesses within outer-loop with force_vectorize
28051 for references with zero step in inner-loop.
28053 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28055 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28056 rather than from gcc/build directory.
28058 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28061 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28062 for __sync memory models, emit initial loads and final barriers as
28065 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28068 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28069 (aarch64_split_atomic_op): Check for __sync memory models, emit
28070 appropriate initial loads and final barriers.
28072 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28074 * Makefile.in: Fix gcov dependencies that should
28075 not point to a build folder.
28077 2015-06-01 Richard Biener <rguenther@suse.de>
28080 2015-05-29 Richard Biener <rguenther@suse.de>
28082 PR tree-optimization/66314
28083 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28084 parameter that says which loop the new block belongs to.
28085 (ssa_create_duplicates): Blocks duplicated for the threaded
28086 path belong to the loop of the thread destination.
28088 2015-06-01 Martin Liska <mliska@suse.cz>
28090 * sched-deps.c: Include pool-alloc.h before
28091 cselib.h header file is included.
28093 2015-06-01 Richard Biener <rguenther@suse.de>
28095 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28098 2015-06-01 Martin Liska <mliska@suse.cz>
28100 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28101 a function local variable.
28103 2015-06-01 Martin Liska <mliska@suse.cz>
28105 * alloc-pool.c (create_alloc_pool): Remove.
28106 (empty_alloc_pool): Likewise.
28107 (free_alloc_pool): Likewise.
28108 (free_alloc_pool_if_empty): Likewise.
28109 (pool_alloc): Likewise.
28110 (pool_free): Likewise.
28111 * alloc-pool.h: Remove old declarations.
28113 2015-06-01 Martin Liska <mliska@suse.cz>
28115 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28116 (ira_create_object): Likewise.
28117 (ira_create_allocno): Likewise.
28118 (ira_create_live_range): Likewise.
28119 (copy_live_range): Likewise.
28120 (ira_finish_live_range): Likewise.
28121 (ira_free_allocno_costs): Likewise.
28122 (finish_allocno): Likewise.
28123 (finish_allocnos): Likewise.
28124 (initiate_prefs): Likewise.
28125 (ira_create_pref): Likewise.
28126 (finish_pref): Likewise.
28127 (finish_prefs): Likewise.
28128 (initiate_copies): Likewise.
28129 (ira_create_copy): Likewise.
28130 (finish_copy): Likewise.
28131 (finish_copies): Likewise.
28132 (finish_prefs): Likewise.
28134 2015-06-01 Martin Liska <mliska@suse.cz>
28136 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28137 (allocate_and_init_ipcp_value): Likewise.
28138 (ipcp_lattice::add_value): Likewise.
28139 (merge_agg_lats_step): Likewise.
28140 (ipcp_driver): Likewise.
28141 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28142 (ipa_free_all_structures_after_iinln): Likewise.
28143 * ipa-prop.h: Likewise.
28145 2015-06-01 Martin Liska <mliska@suse.cz>
28147 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28149 (set_hint_predicate): Likewise.
28150 (inline_summary_alloc): Likewise.
28151 (reset_inline_edge_summary): Likewise.
28152 (reset_inline_summary): Likewise.
28153 (set_cond_stmt_execution_predicate): Likewise.
28154 (set_switch_stmt_execution_predicate): Likewise.
28155 (compute_bb_predicates): Likewise.
28156 (estimate_function_body_sizes): Likewise.
28157 (inline_free_summary): Likewise.
28159 2015-06-01 Martin Liska <mliska@suse.cz>
28161 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28162 (ipa_edge_duplication_hook): Likewise.
28163 (ipa_free_all_structures_after_ipa_cp): Likewise.
28164 (ipa_free_all_structures_after_iinln): Likewise.
28166 2015-06-01 Martin Liska <mliska@suse.cz>
28168 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28169 (ipa_profile_generate_summary): Likewise.
28170 (ipa_profile_read_summary): Likewise.
28171 (ipa_profile): Likewise.
28173 2015-06-01 Martin Liska <mliska@suse.cz>
28175 * tree-ssa-structalias.c (new_var_info): Use new type-based
28177 (new_constraint): Likewise.
28178 (init_alias_vars): Likewise.
28179 (delete_points_to_sets): Likewise.
28181 2015-06-01 Martin Liska <mliska@suse.cz>
28183 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28184 (free_strinfo): Likewise.
28185 (pass_strlen::execute): Likewise.
28187 2015-06-01 Martin Liska <mliska@suse.cz>
28189 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28191 (vn_reference_insert_pieces): Likewise.
28192 (vn_phi_insert): Likewise.
28193 (visit_reference_op_call): Likewise.
28194 (copy_phi): Likewise.
28195 (copy_reference): Likewise.
28196 (process_scc): Likewise.
28197 (allocate_vn_table): Likewise.
28198 (free_vn_table): Likewise.
28200 2015-06-01 Martin Liska <mliska@suse.cz>
28202 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28204 (add_repeat_to_ops_vec): Likewise.
28205 (get_ops): Likewise.
28206 (maybe_optimize_range_tests): Likewise.
28207 (init_reassoc): Likewise.
28208 (fini_reassoc): Likewise.
28210 2015-06-01 Martin Liska <mliska@suse.cz>
28212 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28214 (bitmap_set_new): Likewise.
28215 (get_or_alloc_expr_for_constant): Likewise.
28216 (get_or_alloc_expr_for): Likewise.
28217 (phi_translate_1): Likewise.
28218 (compute_avail): Likewise.
28219 (init_pre): Likewise.
28220 (fini_pre): Likewise.
28222 2015-06-01 Martin Liska <mliska@suse.cz>
28224 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28225 (delete_dep_node): Likewise.
28226 (create_deps_list): Likewise.
28227 (free_deps_list): Likewise.
28228 (sched_deps_init): Likewise.
28229 (sched_deps_finish): Likewise.
28231 2015-06-01 Martin Liska <mliska@suse.cz>
28233 * regcprop.c (free_debug_insn_changes): Use new type-based
28235 (replace_oldest_value_reg): Likewise.
28236 (pass_cprop_hardreg::execute): Likewise.
28238 2015-06-01 Martin Liska <mliska@suse.cz>
28240 * ira-build.c (initiate_cost_vectors): Use new type-based
28242 (ira_allocate_cost_vector): Likewise.
28243 (ira_free_cost_vector): Likewise.
28244 (finish_cost_vectors): Likewise.
28246 2015-06-01 Martin Liska <mliska@suse.cz>
28248 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28250 (free_sched_pools): Likewise.
28251 * sel-sched-ir.h (_list_alloc): Likewise.
28252 (_list_remove): Likewise.
28254 2015-06-01 Martin Liska <mliska@suse.cz>
28256 * stmt.c (add_case_node): Use new type-based pool allocator.
28257 (expand_case): Likewise.
28258 (expand_sjlj_dispatch_table): Likewise.
28260 2015-06-01 Martin Liska <mliska@suse.cz>
28262 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28263 (free_bb): Likewise.
28264 (pass_cse_reciprocals::execute): Likewise.
28266 2015-06-01 Martin Liska <mliska@suse.cz>
28268 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28269 (sra_deinitialize) Likewise.
28270 (create_access_1) Likewise.
28271 (build_accesses_from_assign) Likewise.
28272 (create_artificial_child_access) Likewise.
28274 2015-06-01 Martin Liska <mliska@suse.cz>
28276 * dse.c (get_group_info):Use new type-based pool allocator.
28277 (dse_step0) Likewise.
28278 (free_store_info) Likewise.
28279 (delete_dead_store_insn) Likewise.
28280 (free_read_records) Likewise.
28281 (record_store) Likewise.
28282 (replace_read) Likewise.
28283 (check_mem_read_rtx) Likewise.
28284 (scan_insn) Likewise.
28285 (dse_step1) Likewise.
28286 (dse_step7) Likewise.
28288 2015-06-01 Martin Liska <mliska@suse.cz>
28290 * df-scan.c (struct df_scan_problem_data):Use new type-based
28292 (df_scan_free_internal) Likewise.
28293 (df_scan_alloc) Likewise.
28294 (df_grow_reg_info) Likewise.
28295 (df_free_ref) Likewise.
28296 (df_insn_create_insn_record) Likewise.
28297 (df_mw_hardreg_chain_delete) Likewise.
28298 (df_insn_info_delete) Likewise.
28299 (df_free_collection_rec) Likewise.
28300 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28301 (df_sort_and_compress_mws) Likewise.
28302 (df_ref_create_structure) Likewise.
28303 (df_ref_record) Likewise.
28305 2015-06-01 Martin Liska <mliska@suse.cz>
28307 * df-problems.c (df_chain_create):Use new type-based pool allocator.
28308 (df_chain_unlink_1) Likewise.
28309 (df_chain_unlink) Likewise.
28310 (df_chain_remove_problem) Likewise.
28311 (df_chain_alloc) Likewise.
28312 (df_chain_free) Likewise.
28313 * df.h (struct dataflow) Likewise.
28315 2015-06-01 Martin Liska <mliska@suse.cz>
28317 * cselib.c (new_elt_list):Use new type-based pool allocator.
28318 (new_elt_loc_list) Likewise.
28319 (unchain_one_elt_list) Likewise.
28320 (unchain_one_elt_loc_list) Likewise.
28321 (unchain_one_value) Likewise.
28322 (new_cselib_val) Likewise.
28323 (cselib_init) Likewise.
28324 (cselib_finish) Likewise.
28326 2015-06-01 Martin Liska <mliska@suse.cz>
28328 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28329 (sh_reorg) Likewise.
28331 2015-06-01 Martin Liska <mliska@suse.cz>
28333 * cfg.c (initialize_original_copy_tables):Use new type-based
28335 (free_original_copy_tables) Likewise.
28336 (copy_original_table_clear) Likewise.
28337 (copy_original_table_set) Likewise.
28339 2015-06-01 Martin Liska <mliska@suse.cz>
28341 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28343 (asan_mem_ref_new) Likewise.
28344 (free_mem_ref_resources) Likewise.
28346 2015-06-01 Martin Liska <mliska@suse.cz>
28348 * var-tracking.c (variable_htab_free):Use new type-based
28350 (attrs_list_clear) Likewise.
28351 (attrs_list_insert) Likewise.
28352 (attrs_list_copy) Likewise.
28353 (shared_hash_unshare) Likewise.
28354 (shared_hash_destroy) Likewise.
28355 (unshare_variable) Likewise.
28356 (var_reg_delete_and_set) Likewise.
28357 (var_reg_delete) Likewise.
28358 (var_regno_delete) Likewise.
28359 (drop_overlapping_mem_locs) Likewise.
28360 (variable_union) Likewise.
28361 (insert_into_intersection) Likewise.
28362 (canonicalize_values_star) Likewise.
28363 (variable_merge_over_cur) Likewise.
28364 (dataflow_set_merge) Likewise.
28365 (remove_duplicate_values) Likewise.
28366 (variable_post_merge_new_vals) Likewise.
28367 (dataflow_set_preserve_mem_locs) Likewise.
28368 (dataflow_set_remove_mem_locs) Likewise.
28369 (variable_from_dropped) Likewise.
28370 (variable_was_changed) Likewise.
28371 (set_slot_part) Likewise.
28372 (clobber_slot_part) Likewise.
28373 (delete_slot_part) Likewise.
28374 (loc_exp_insert_dep) Likewise.
28375 (notify_dependents_of_changed_value) Likewise.
28376 (emit_notes_for_differences_1) Likewise.
28377 (vt_emit_notes) Likewise.
28378 (vt_initialize) Likewise.
28379 (vt_finalize) Likewise.
28381 2015-06-01 Martin Liska <mliska@suse.cz>
28383 * ira-color.c (init_update_cost_records):Use new type-based
28385 (get_update_cost_record) Likewise.
28386 (free_update_cost_record_list) Likewise.
28387 (finish_update_cost_records) Likewise.
28388 (initiate_cost_update) Likewise.
28390 2015-06-01 Martin Liska <mliska@suse.cz>
28392 * lra.c (init_insn_regs): Use new type-based pool allocator.
28393 (new_insn_reg) Likewise.
28394 (free_insn_reg) Likewise.
28395 (free_insn_regs) Likewise.
28396 (finish_insn_regs) Likewise.
28397 (init_insn_recog_data) Likewise.
28398 (init_reg_info) Likewise.
28399 (finish_reg_info) Likewise.
28400 (lra_free_copies) Likewise.
28401 (lra_create_copy) Likewise.
28402 (invalidate_insn_data_regno_info) Likewise.
28404 2015-06-01 Martin Liska <mliska@suse.cz>
28406 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28407 (free_live_range_list) Likewise.
28408 (create_live_range) Likewise.
28409 (copy_live_range) Likewise.
28410 (lra_merge_live_ranges) Likewise.
28411 (remove_some_program_points_and_update_live_ranges) Likewise.
28412 (lra_live_ranges_init) Likewise.
28413 (lra_live_ranges_finish) Likewise.
28415 2015-06-01 Martin Liska <mliska@suse.cz>
28417 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28418 (et_new_tree): Likewise.
28419 (et_free_tree): Likewise.
28420 (et_free_tree_force): Likewise.
28421 (et_free_pools): Likewise.
28422 (et_split): Likewise.
28424 2015-06-01 Martin Liska <mliska@suse.cz>
28426 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28428 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28429 (pool_allocator::release): Likewise.
28430 (inline pool_allocator::release_if_empty): Likewise.
28431 (inline pool_allocator::~pool_allocator): Likewise.
28432 (pool_allocator::allocate): Likewise.
28433 (pool_allocator::remove): Likewise.
28435 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28437 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28440 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28442 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28444 * config/arm/arm.c (arm_print_tune_info): Likewise.
28445 (arm_macro_fusion_p): Likewise.
28446 (arm_macro_fusion_pair_p): Likewise.
28448 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28450 * config/aarch64/aarch64-protos.h (tune_params): Rename
28451 fuseable_ops to fusible_ops.
28452 * config/aarch64/aarch64.c (generic_tunings): Rename
28453 fuseable_ops to fusible_ops.
28454 (cortexa53_tunings): Likewise.
28455 (cortexa57_tunings): Likewise.
28456 (thunderx_tunings): Likewise.
28457 (xgene1_tunings): Likewise.
28458 (aarch64_macro_fusion_p): Likewise.
28459 (aarch64_macro_fusion_pair_p): Likewise.
28461 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28463 * config/s390/driver-native.c: New file.
28464 * config/s390/x-native: New file.
28465 * config.host: Add new files for s390.
28466 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28468 * config.gcc: Likewise.
28469 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28470 * config/s390/s390-opts.h (enum processor_type): Ditto.
28471 * config/s390/s390.c (s390_option_override): Catch unhandled
28474 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28477 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28478 redirection for instrumented calls.
28479 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28480 (append_compiler_options): Append -fcheck-pointer-bounds.
28481 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28482 (chkp_redirect_edge): New.
28483 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28484 (chkp_redirect_edge): New.
28486 2015-06-01 Richard Biener <rguenther@suse.de>
28488 PR tree-optimization/66280
28489 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28492 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28494 * config/aarch64/aarch64.md
28495 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28498 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28500 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28501 Remove obsolete kludge.
28503 2015-06-01 Richard Biener <rguenther@suse.de>
28505 * tree-ssa-reassoc.c (get_rank): Simplify.
28507 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28509 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28510 * configure: Regenerated.
28512 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28514 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28515 issue (add space between string literal and macro).
28516 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28518 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28520 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28521 implict or explicit -fPIE or -fpie.
28523 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28525 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28527 2015-05-28 DJ Delorie <dj@redhat.com>
28529 * expmed.c (extract_bit_field_1): Avoid clobbering a
28530 yet-to-be-used base/index register.
28532 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28534 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28535 (alias_stats): Add num_universal.
28536 (alias_set_subset_of): Special case pointers; be ready for NULL
28538 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28540 (init_alias_set_entry): Break out from ...
28541 (record_alias_subset): ... here; propagate new fields;
28542 allocate children only when really needed.
28543 (get_alias_set): Do less generous pointer globbing.
28544 (dump_alias_stats_in_alias_c): Update statistics.
28546 2015-05-30 Alan Modra <amodra@gmail.com>
28548 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28549 correct block for use of r12.
28550 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28552 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28555 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28558 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28560 PR tree-optimization/66142
28561 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28562 virtual phis that feed themselves.
28564 2015-05-29 Richard Biener <rguenther@suse.de>
28566 PR tree-optimization/66314
28567 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28568 parameter that says which loop the new block belongs to.
28569 (ssa_create_duplicates): Blocks duplicated for the threaded
28570 path belong to the loop of the thread destination.
28572 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28574 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28575 to cleanup-saved-temps.
28576 * doc/sourcebuild.texi (Clean up generated test files): Expand
28578 (dg-keep-saved-temps): Document new proc.
28579 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28580 cleanup-saved-temps): Remove.
28582 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28584 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28585 gcc_AC_CHECK_DECLS.
28586 * configure: Regenerate.
28588 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28590 * config/nios2/linux.h (CPP_SPEC): Define.
28592 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28594 * config/microblaze/linux.h (CPP_SPEC): Define.
28596 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28598 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28599 -pthread is specified.
28601 2015-05-28 Richard Biener <rguenther@suse.de>
28603 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28604 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28605 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28606 after pattern recog.
28607 (vect_create_epilog_for_reduction): Properly handle reductions
28609 (vectorizable_reduction): Likewise.
28610 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28612 (vect_get_constant_vectors): Create the correct number of
28613 initial values for reductions.
28614 (vect_schedule_slp_instance): Handle reduction chains that are
28615 type changing properly.
28616 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28618 2015-05-28 Richard Biener <rguenther@suse.de>
28620 PR tree-optimization/66142
28621 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28622 values better in memcpy destination handling. Handle non-aliasing
28625 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28628 * config/darwin-c.c (version_components): New global enum.
28629 (parse_version, version_as_legacy_macro)
28630 (version_as_modern_macro, macosx_version_as_macro): New functions.
28631 (version_as_macro): Remove.
28632 (darwin_cpp_builtins): Use new function.
28634 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28636 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28637 with ATTRIBUTE_UNUSED.
28639 2015-05-28 Julian Brown <julian@codesourcery.com>
28643 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28644 sequence for !ACCEL_COMPILER.
28646 2015-05-28 Nick Clifton <nickc@redhat.com>
28648 * config/rx/rx.c (push_regs): New function. Extracts code from...
28649 (rx_expand_prologue): ... here. Use push_regs to push even small
28650 spans of registers.
28651 (pop_regs): New function.
28652 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28655 2015-05-28 Richard Biener <rguenther@suse.de>
28657 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28659 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28660 (vect_update_slp_costs_according_to_vf): Likewise.
28661 (vect_slp_analyze_operations): Update prototype.
28662 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28663 vect_update_slp_costs_according_to_vf, adjust.
28664 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28665 (vect_analyze_slp_cost_1): Likewise.
28666 (vect_analyze_slp_cost): Likewise. Properly deal with
28667 widening reduction ops. Commit body costs.
28668 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28669 cost for loops from here.
28670 (vect_slp_analyze_operations): But do it from here when
28671 the vectorization factor is known and stmts are analyzed.
28672 (vect_bb_vectorization_profitable_p): Simplify.
28673 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28674 (vect_update_slp_costs_according_to_vf): Remove.
28676 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28677 H.J. Lu <hongjiu.lu@intel.com>
28679 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28680 (BUILD_CFLAGS): Likewise.
28681 (BUILD_CXXFLAGS): Likewise.
28682 (LINKER): Add @NO_PIE_FLAG@.
28683 (BUILD_LDFLAGS): Likewise.
28684 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28685 --enable-default-pie.
28686 * common.opt (fPIE): Initialize to -1.
28688 (no-pie): New option.
28689 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28690 * configure.ac: Add --enable-default-pie.
28691 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28692 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28693 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28694 * gcc.c (NO_PIE_SPEC): New.
28695 (PIE_SPEC): Likewise.
28696 (NO_FPIE1_SPEC): Likewise.
28697 (FPIE1_SPEC): Likewise.
28698 (NO_FPIE2_SPEC): Likewise.
28699 (FPIE2_SPEC): Likewise.
28700 (NO_FPIE2_SPEC): Likewise.
28701 (FPIE_SPEC): Likewise.
28702 (NO_FPIE_SPEC): Likewise.
28703 (NO_FPIC1_SPEC): Likewise.
28704 (FPIC1_SPEC): Likewise.
28705 (NO_FPIC2_SPEC): Likewise.
28706 (FPIC2_SPEC): Likewise.
28707 (NO_FPIC2_SPEC): Likewise.
28708 (FPIC_SPEC): Likewise.
28709 (NO_FPIC_SPEC): Likewise.
28710 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28711 (FPIE1_OR_FPIC1_SPEC): Likewise.
28712 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28713 (FPIE2_OR_FPIC2_SPEC): Likewise.
28714 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28715 (FPIE_OR_FPIC_SPEC): Likewise.
28716 (LD_PIE_SPEC): Likewise.
28717 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28718 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28719 * config/darwin.h (PIE_SPEC): Renamed to ...
28720 (DARWIN_PIE_SPEC): This.
28721 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28722 * config/darwin9.h (PIE_SPEC): Renamed to ...
28723 (DARWIN_PIE_SPEC): This.
28724 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28725 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28726 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28727 FPIE2_OR_FPIC2_SPEC.
28728 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28729 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28730 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28731 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28732 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28733 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28734 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28735 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28736 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28737 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28738 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28739 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28740 * config/sparc/linux.h (ASM_SPEC): Likewise.
28741 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28742 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28743 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28744 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28745 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28746 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28747 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28748 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28749 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28750 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28751 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28752 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28753 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28754 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28755 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28756 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28757 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28758 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28759 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28760 * config/vax/linux.h (ASM_SPEC): Likewise.
28761 * doc/install.texi: Document --enable-default-pie.
28762 * doc/invoke.texi: Document -no-pie.
28763 * config.in: Regenerated.
28764 * configure: Likewise.
28766 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28768 PR rtl-optimization/66168
28769 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28770 can_move_invariant_reg.
28772 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28775 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28776 REG_EQUAL note when doing insert.
28778 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28779 instead of "%d" for 'o' operand.
28781 2015-05-27 Nathan Sidwell <nathan@acm.org>
28784 * tree.c (build_pointer_type_for_mode): Canonical type does not
28785 inherit can_alias_all.
28786 (build_reference_type_for_mode): Likewise.
28788 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28790 * expr.h (array_at_struct_end_p): Move to...
28791 (array_ref_element_size): Likewise.
28792 (component_ref_field_offset): Likewise.
28793 * tree.h (array_ref_element_size): ...here.
28794 (array_at_struct_end_p): Likewise.
28795 (component_ref_field_offset): Likewise.
28796 * expr.c (array_ref_element_size): Move to...
28797 (array_ref_low_bound): Likewise.
28798 (array_at_struct_end_p): Likewise.
28799 (array_ref_up_bound): Likewise.
28800 (component_ref_field_offset): Likewise.
28801 * tree.c (array_ref_element_size): ...here.
28802 (array_ref_low_bound): Likewise.
28803 (array_ref_up_bound): Likewise.
28804 (array_at_struct_end_p): Likewise.
28805 (component_ref_field_offset): Likewise.
28807 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28808 Szabolcs Nagy <szabolcs.nagy@arm.com>
28810 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28812 2015-05-27 Jason Merrill <jason@redhat.com>
28815 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28816 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28817 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28819 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28821 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28824 * statistics.c (statistics_fini_pass): Print pass name.
28826 2015-05-27 Richard Biener <rguenther@suse.de>
28828 PR tree-optimization/66272
28830 2014-08-15 Richard Biener <rguenther@suse.de>
28832 PR tree-optimization/62031
28833 * tree-data-ref.c (dr_analyze_indices): Do not set
28834 DR_UNCONSTRAINED_BASE.
28835 (dr_may_alias_p): All indirect accesses have to go the
28836 formerly DR_UNCONSTRAINED_BASE path.
28837 * tree-data-ref.h (struct indices): Remove
28838 unconstrained_base member.
28839 (DR_UNCONSTRAINED_BASE): Remove.
28841 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28843 * dwarf2out.c: Remove block_map.
28844 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28845 (gen_lexical_block_die): Same.
28846 (dwarf2out_function_decl): Remove block_map use.
28847 (dwarf2out_c_finalize): Same.
28848 * tree-core.h (struct tree_block): Add die field.
28849 * tree.h (BLOCK_DIE): New.
28851 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28854 * expr.c (memory_load_overlap): New function.
28855 (emit_push_insn): When pushing partial args to the stack would
28856 clobber the register part load the overlapping part into a pseudo
28857 and put it into the hard reg after pushing. Change return type
28858 to bool. Add bool argument.
28859 * expr.h (emit_push_insn): Change return type to bool.
28861 * calls.c (expand_call): Cancel sibcall optimization when encountering
28862 partial argument on targets with ARGS_GROW_DOWNWARD and
28863 !STACK_GROWS_DOWNWARD.
28864 (emit_library_call_value_1): Update callsite of emit_push_insn.
28865 (store_one_arg): Likewise.
28867 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28869 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28871 2015-05-27 Martin Liska <mliska@suse.cz>
28873 * Makefile.in: Add additional dependencies related to memory report
28875 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28876 * bitmap.c (struct bitmap_descriptor_d): Remove.
28877 (struct loc): Likewise.
28878 (struct bitmap_desc_hasher): Likewise.
28879 (bitmap_desc_hasher::hash): Likewise.
28880 (bitmap_desc_hasher::equal): Likewise.
28881 (get_bitmap_descriptor): Likewise.
28882 (bitmap_register): User new memory descriptor API.
28883 (register_overhead): Likewise.
28884 (bitmap_find_bit): Register nsearches and search_iter statistics.
28885 (struct bitmap_output_info): Remove.
28886 (print_statistics): Likewise.
28887 (dump_bitmap_statistics): Use new memory descriptor.
28888 * bitmap.h (struct bitmap_usage): New class.
28889 * genmatch.c: Extend header file inclusion.
28890 * genpreds.c: Likewise.
28891 * ggc-common.c (struct ggc_usage): New class.
28892 (struct ggc_loc_desc_hasher): Remove.
28893 (ggc_loc_desc_hasher::hash): Likewise.
28894 (ggc_loc_desc_hasher::equal): Likewise.
28895 (struct ggc_ptr_hash_entry): Likewise.
28896 (struct ptr_hash_hasher): Likewise.
28897 (ptr_hash_hasher::hash): Likewise.
28898 (ptr_hash_hasher::equal): Likewise.
28899 (make_loc_descriptor): Likewise.
28900 (ggc_prune_ptr): Likewise.
28901 (dump_ggc_loc_statistics): Use new memory descriptor.
28902 (ggc_record_overhead): Likewise.
28903 (ggc_free_overhead): Likewise.
28904 (final_cmp_statistic): Remove.
28905 (cmp_statistic): Likewise.
28906 (ggc_add_statistics): Liekwise.
28907 (ggc_prune_overhead_list): Likewise.
28908 * hash-map-traits.h: New file.
28909 * hash-map.h (struct default_hashmap_traits): Move the traits to a
28910 separate header file.
28911 * hash-set.h: Pass memory statistics info to ctor.
28912 * hash-table.c (void dump_hash_table_loc_statistics): New function.
28913 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28914 (hash_table::~hash_table): Register memory release operation.
28915 (hash_table::alloc_entries): Handle memory allocation operation.
28916 (hash_table::expand): Likewise.
28917 * inchash.c (iterative_hash_hashval_t): Move implementation to header
28919 (iterative_hash_host_wide_int): Likewise.
28920 * inchash.h (class hash): Likewise.
28921 * mem-stats-traits.h: New file.
28922 * mem-stats.h: New file.
28923 (mem_location): Add new class.
28924 (mem_usage): Likewise.
28925 (mem_alloc_description): Likewise.
28926 * sese.c: Add new header file inclusision.
28927 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28929 * tree-sra.c: Add new header file inclusision.
28930 * vec.c (struct vec_descriptor): Remove.
28931 (hash_descriptor): Likewise.
28932 (struct vec_usage): Likewise.
28933 (struct ptr_hash_entry): Likewise.
28934 (hash_ptr): Likewise.
28935 (eq_ptr): Likewise.
28936 (vec_prefix::register_overhead): Use new memory descriptor API.
28937 (vec_prefix::release_overhead): Likewise.
28938 (add_statistics): Remove.
28939 (dump_vec_loc_statistics): Use new memory descriptor API.
28940 * vec.h (struct vec_prefix): Likewise.
28941 (va_heap::reserve): Likewise.
28942 (va_heap::release): Likewise.
28943 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28945 2015-05-27 Richard Biener <rguenther@suse.de>
28947 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28948 earlier and remove ??? comment.
28949 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28950 and got called from loop analysis bail out. Always pass the SLP
28951 node to the vectorizable_* functions.
28952 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28953 the premature SLP check here.
28954 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28955 detected SLP stmts.
28956 (vect_detect_hybrid_slp_1): Likewise.
28958 2015-05-26 Jeff Law <law@redhat.com>
28960 * combine.c (find_split_point): Verify that the shift count is a
28961 constant when choosing (plus (ashift ...)) as a split point.
28963 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28964 No functional changes.
28966 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
28968 * ipa-polymorphic-call.c
28969 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28970 case when call target is already known.
28972 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
28975 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28976 take into account the case that operands[1] and operands[2]
28977 are the same register.
28979 2015-05-26 Michael Matz <matz@suse.de>
28981 PR middle-end/66251
28983 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28985 (vect_create_vectorized_demotion_stmts): Always set
28986 STMT_VINFO_VEC_STMT, also with SLP.
28987 (vectorizable_store): Handle strided group stores.
28989 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28992 * config/aarch64/aarch64.md
28993 (*adds_shift_imm_<mode>): New pattern.
28994 (*subs_shift_imm_<mode>): Likewise.
28995 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28996 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28997 (*add_uxt<mode>_shift2): Likewise.
28998 (*add_uxtsi_shift2_uxtw): Likewise.
28999 (*sub_uxt<mode>_shift2): Likewise.
29000 (*sub_uxtsi_shift2_uxtw): Likewise.
29002 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
29004 * config/rs6000/constraints.md (Y, U): Use match_test.
29006 2015-05-26 Christian Bruel <christian.bruel@st.com>
29009 * config/arm/arm.c (arm_option_check_internal)
29010 (arm_option_params_internal): Check opts->target_flags to set macros.
29011 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29012 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29013 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29014 (builtin_define): Replaced with def_or_undef_macro.
29015 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29016 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29017 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29018 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29019 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29020 (TARGET_ARM_FEATURE_LDREX_P)
29021 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29022 * config/arm/arm-c.c (def_or_undef_macro): New function.
29023 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29025 2015-05-26 Christian Bruel <christian.bruel@st.com>
29027 * c-common.h (builtin_define_with_int_value)
29028 (builtin_define_type_sizeof): Declare.
29029 * c-cppbuiltin.c (builtin_define_with_int_value)
29030 (builtin_define_type_sizeof): Externalize.
29031 (builtin_define_std): Cleanup declaration.
29032 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29033 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29034 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29035 (builtin_define, builtin_assert): New macros.
29037 2015-05-26 Richard Biener <rguenther@suse.de>
29039 PR tree-optimization/66142
29040 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29041 MEM_REFs for the same base address.
29043 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29046 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29048 2015-05-26 Jason Merrill <jason@redhat.com>
29050 * configure.ac: Set CXXFLAGS for ISL test.
29051 * configure: Regenerate.
29053 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
29054 strstr and basename.
29055 * configure: Regenerate.
29057 2015-05-26 Richard Biener <rguenther@suse.de>
29059 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29060 X % C -> X & (C - 1) for C being a power-of two to ...
29061 * match.pd: ... patterns.
29063 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
29065 * match.pd (swapped_tcc_comparison): New operator list.
29066 (-A CMP -B): New simplification.
29067 * fold-const.c (fold_comparison): Remove corresponding code.
29069 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29071 * caller-save.c (init_caller_save): Base temporary register numbers
29072 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29073 * cfgloopanal.c (init_set_costs): Likewise.
29074 * dojump.c (prefer_and_bit_test): Likewise.
29075 * expr.c (init_expr_target): Likewise.
29076 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29077 * lower-subreg.c (init_lower_subreg): Likewise.
29078 * postreload.c (reload_cse_regs_1): Likewise.
29080 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29082 * gensupport.h (compute_test_codes): Declare.
29083 * gensupport.c (compute_predicate_codes): Rename to...
29084 (compute_test_codes): ...this. Generalize error message.
29085 (process_define_predicate): Update accordingly.
29086 * genpreds.c (compute_maybe_allows): Delete.
29087 (add_constraint): Use compute_test_codes to determine whether
29088 something can accept a SUBREG, REG or MEM.
29090 2015-05-26 Torvald Riegel <triegel@redhat.com>
29092 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29093 'memory model' to align with C++11; fix description of memory orders;
29096 2015-05-26 Richard Biener <rguenther@suse.de>
29098 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29099 (vect_analyze_loop_operations): ... here. Remove slp parameter,
29100 detect whether we apply SLP. Remove call to
29101 vect_update_slp_costs_according_to_vf.
29102 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29103 vect_update_slp_costs_according_to_vf from here. Dispatch
29104 to vect_slp_analyze_operations to analyze SLP stmts.
29105 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29106 unused bb_vec_info parameter, adjust assert.
29107 (vect_slp_analyze_operations): Pass in the slp instance tree
29108 instead of bb_vec_info.
29109 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29110 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29112 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29114 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29115 Q_REGS. Expand comment.
29116 (REG_CLASS_NAMES): Ditto.
29117 (REG_CLASS_CONTENTS): Ditto.
29119 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
29122 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29123 when LEGACY_INT_REGNO_P is processed.
29125 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29127 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29129 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29131 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29132 register if not marked dead/unused, before return.
29134 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29137 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29138 is set; check for assembler name at LTO time.
29139 (type_in_anonymous_namespace): Remove hacks, check that all
29140 anonymous types are called "<anon>"
29141 (odr_type_p): Simplify; add check for "<anon>"
29142 (odr_subtypes_equivalent): Add odr_type_p check.
29143 * tree.c (need_assembler_name_p): Even anonymous namespace needs
29146 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29148 * ipa-utils.h (method_class_type): Remove.
29149 * cgraphunit.c (walk_polymorphic_call_targets): Use
29150 TYPE_METHOD_BASETYPE.
29151 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29152 on main variants only.
29153 (method_class_type): Remove.
29154 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29155 (build_type_inheritance_graph): Likewise.
29156 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29157 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29158 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29160 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29162 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29163 is_typedef_decl, typedef_variant_p): Constify.
29164 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29165 is_typedef_decl, typedef_variant_p): Constify.
29167 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29169 * defaults.h (gen_tablejump): New function.
29170 (HAVE_tablejump): Add default value.
29172 * stmt.c: Likewise.
29174 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29176 * defaults.h (gen_store_multiple): New function.
29177 (HAVE_store_multiple): Add default value.
29178 * expr.c (move_block_from_reg): Adjust.
29180 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29182 * defaults.h (gen_load_multiple): New function.
29183 (HAVE_load_multiple): Add default value.
29184 * expr.c (move_block_to_reg): Adjust.
29186 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29188 * defaults.h (gen_mem_signal_fence): New function.
29189 (HAVE_mem_signal_fence): Add default value.
29190 * optabs.c: Adjust.
29192 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29194 * defaults.h (gen_memory_barrier): New function.
29195 (HAVE_memory_barrier): Add default value.
29196 * optabs.c: Adjust.
29198 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29200 * defaults.h (gen_mem_thread_fence): New function.
29201 (HAVE_mem_thread_fence): Add default definition.
29202 * optabs.c: Adjust.
29204 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29206 * combine.c (find_split_point): Check the value of HAVE_lo_sum
29207 instead of if it is defined.
29208 (combine_simplify_rtx): Likewise.
29209 * lra-constraints.c (process_address_1): Likewise.
29210 * config/darwin.c: Adjust.
29211 * genconfig.c (main): Always define HAVE_lo_sum.
29213 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29215 * genmatch.c (parser::parse_operation): Reject expanding
29216 operator-list inside 'for'.
29218 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29220 * genmatch.c (parser::parse_for): Reject iterator if used as
29223 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29225 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29226 after end of id-list.
29228 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29230 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29231 we do not try to compute canonical type for type that does not need
29233 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29235 * tree.h (type_with_alias_set_p): New.
29237 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29239 * tree.c (gimple_canonical_types_compatible_p): Do not compare
29240 function attributes.
29241 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29243 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
29245 * Makefile.in (check_gcc_parallelize): Delete.
29246 (lang_checks_parallelized): Update comment.
29248 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
29250 PR rtl-optimization/66237
29251 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29252 location of an "as_a" cast.
29254 2015-05-22 Jeff Law <law@redhat.com>
29256 * config/pa/pa.md (non-canonical shift-add insns): Remove.
29257 (peepholes with non-canonical RTL sources): Remove.
29258 (peepholes for indexed stores of FP regs in integer modes): Match and
29259 generate canonical RTL.
29261 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29263 PR tree-optimization/63387
29264 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29265 ((x ord x) & (y ord y) -> (x ord y),
29266 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29267 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29268 vectors like scalars.
29270 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29272 * convert.c (convert_to_integer, convert_to_vector): Include the
29273 types in the error message.
29275 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29277 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29280 2015-05-22 Jeff Law <law@redhat.com>
29282 * config/pa/pa.md (integer_indexed_store splitters): Use
29283 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
29284 insns -- adjusting the constant 2nd operand accordingly.
29286 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29287 (plus (ashift X log2) Y) if it is a split point.
29289 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29290 out of hppa_legitimize_address to handle both forms of a multiply
29292 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29293 Always generate the ASHIFT variant as the result is not directly
29294 used in a MEM. Update comments and refactor slightly to improve
29297 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29300 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29301 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
29302 (aarch64_composite_type_p): Return false if given type and mode are
29303 for a short vector.
29305 2015-05-22 Richard Biener <rguenther@suse.de>
29307 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29309 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29310 patterns when determining whether SLP is pure.
29311 (vect_is_slp_reduction): Remove check for pattern stmts.
29312 (vect_is_simple_reduction_1): Remove dead code.
29313 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29314 (vect_get_and_check_slp_defs): Pass in the stmt number.
29315 Allow the first def in a reduction to be not a pattern stmt when
29316 the rest of the stmts def are patterns.
29317 (vect_build_slp_tree_1): Allow tcc_expression codes like
29318 SAD_EXPR and DOT_PROD_EXPR.
29319 (vect_build_slp_tree): Adjust.
29320 (vect_analyze_slp): Refactor and move BB vect error message ...
29321 (vect_slp_analyze_bb_1): ... here.
29323 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
29325 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29326 for CSWTCH temporary.
29328 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29330 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29331 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
29334 2015-05-22 Richard Biener <rguenther@suse.de>
29336 PR tree-optimization/66251
29337 * tree-vect-stmts.c (vectorizable_conversion): Properly
29338 set STMT_VINFO_VEC_STMT even for the SLP case.
29340 2015-05-22 Marek Polacek <polacek@redhat.com>
29342 * doc/extend.texi: Use @pxref instead of @xref.
29344 2015-05-22 hiraditya <hiraditya@msn.com>
29346 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29349 2015-05-22 Richard Biener <rguenther@suse.de>
29351 PR tree-optimization/65701
29352 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29353 Move peeling cost models into one place. Peel for alignment
29354 for single loads only if an aligned load is cheaper than
29357 2015-05-22 Marek Polacek <polacek@redhat.com>
29360 * doc/extend.texi (Enumerator Attributes): New section.
29361 Document syntax of enumerator attributes.
29363 2015-05-22 Richard Biener <rguenther@suse.de>
29365 * tree-vect-loop.c (get_reduction_op): New function.
29366 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29367 Make ready for BB reductions.
29368 (vect_create_epilog_for_reduction): Use get_reduction_op.
29369 (vectorizable_reduction): Init reduc_index to a valid value.
29370 Adjust vect_model_reduction_cost call.
29371 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29372 operand for reduction defaults. Add SAD_EXPR support.
29373 Assert we have a neutral op for SLP reductions.
29374 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29375 walking pattern stmt ops only recurse to SSA names.
29377 2015-05-22 Richard Biener <rguenther@suse.de>
29379 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29380 assert with guard, remove check on detected reduction.
29381 (vect_recog_sad_pattern): Likewise.
29382 (vect_recog_widen_sum_pattern): Likewise.
29384 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29386 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29387 __always_inline__ attribute.
29388 (vaesdq_u8): Likewise.
29389 (vaesmcq_u8): Likewise.
29390 (vaesimcq_u8): Likewise.
29391 (vsha1cq_u32): Likewise.
29392 (vsha1mq_u32): Likewise.
29393 (vsha1pq_u32): Likewise.
29394 (vsha1h_u32): Likewise.
29395 (vsha1su0q_u32): Likewise.
29396 (vsha1su1q_u32): Likewise.
29397 (vsha256hq_u32): Likewise.
29398 (vsha256h2q_u32): Likewise.
29399 (vsha256su0q_u32): Likewise.
29400 (vsha256su1q_u32): Likewise.
29401 (vmull_p64): Likewise.
29402 (vmull_high_p64): Likewise.
29404 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29406 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29408 * output.h: Likewise.
29409 * genconfig.c (main): Alwways define HAVE_peephole.
29410 * genpeep.c: Don't emit checks of HAVE_peephole.
29412 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29414 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29415 check HAVE_conditional_move with the preprocessor.
29417 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29419 * genconfig.c (main): Always define HAVE_conditional_move.
29420 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29421 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29424 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29426 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29427 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29428 and FRAME_POINTER_REGNUM with the preprocessor.
29430 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29432 * defaults.h: Add default for STACK_PUSH_CODE.
29433 * expr.c: Don't redefine STACK_PUSH_CODE.
29434 * recog.c: Likewise.
29436 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29438 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29439 sched-deps.c: Use if instead of preprocessor checks with
29440 STACK_GROWS_DOWNWARD.
29442 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29444 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29446 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29447 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29448 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29449 * doc/tm.texi: Regenerate.
29451 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29454 * config/i386/constraints.md (Bg): New constraint for GOT memory
29456 * config/i386/i386.md (*call_got_x32): New pattern.
29457 (*call_value_got_x32): Likewise.
29458 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29460 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29462 PR tree-optimization/66233
29463 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29466 2015-05-21 Jeff Law <law@redhat.com>
29468 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29469 than MULT for shadd sequences.
29471 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29473 * alias.c (alias_stats): New static var.
29474 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29475 (dump_alias_stats_in_alias_c): New function.
29476 * alias.h (dump_alias_stats_in_alias_c): Declare.
29477 * tree-ssa-alias.c (dump_alias_stats): Call it.
29479 2015-05-08 Michael Matz <matz@suse.de>
29481 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29483 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29484 (STMT_VINFO_STRIDED_P): ... this.
29485 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29486 (vect_verify_datarefs_alignment): Likewise.
29487 (vect_enhance_data_refs_alignment): Likewise.
29488 (vect_analyze_data_ref_access): Likewise.
29489 (vect_analyze_data_refs): Accept strided stores.
29490 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29491 (vect_model_load_cost): Adjust for macro rename.
29492 (vectorizable_mask_load_store): Likewise.
29493 (vectorizable_load): Likewise.
29494 (vectorizable_store): Open code strided stores.
29496 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29498 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29499 Document sqrt_insn.
29501 2015-05-21 Richard Biener <rguenther@suse.de>
29504 * match.pd: Guard pattern optimzing (int)(float)int
29505 conversions to apply only on GIMPLE.
29507 2015-05-21 Jeff Law <law@redhat.com>
29509 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29510 multiply-accumulate/shift-add insn generation.
29512 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29515 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29516 operands[1] are the same.
29518 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29520 PR middle-end/66221
29521 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29522 build_distinct_type_copy to copy bounds.
29524 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29526 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29527 Change to unsigned int.
29529 2015-05-20 Jeff Law <law@redhat.com>
29531 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29532 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29533 (pa_shadd_constant_p): Allow constants for shadd insns rather
29534 than valid scaling constants for memory addresses.
29535 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29536 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29537 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29538 (shift-add insns using ASHIFT): New patterns.
29540 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29542 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29544 (fix_up_fall_thru_edges): Likewise.
29545 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29546 from to rtx_insn to rtx_code_label where feasible.
29547 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29548 gen_move_insn (returned type changed to rtx_insn).
29549 * builtins.c (expand_errno_check): Fix arguments of
29550 do_compare_rtx_and_jump (now expects rtx_code_label).
29551 (expand_builtin_acc_on_device): Likewise.
29552 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29553 invert_jump (now exprects rtx_jump_insn).
29554 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29555 (construct_init_block): Use rtx_code_label.
29556 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29557 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29558 calling redirect_jump.
29559 (patch_jump_insn): Likewise.
29560 (redirect_branch_edge): Likewise.
29561 (force_nonfallthru_and_redirect): Likewise.
29562 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29564 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29565 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29566 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29567 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29568 to store the value retured by gen_label_rtx.
29569 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29571 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29572 (split_branches): Fix calls of redirect_jump.
29573 * dojump.c (jumpifnot): Promote argument type from rtx to
29575 (jumpifnot_1): Likewise.
29576 (jumpif): Likewise.
29577 (jumpif_1): Likewise.
29578 (do_jump_1): Likewise.
29579 (do_jump): Likewise. Use rtx_code_label when feasible.
29580 (do_jump_by_parts_greater_rtx): Likewise.
29581 (do_jump_by_parts_zero_rtx): Likewise.
29582 (do_jump_by_parts_equality_rtx): Likewise.
29583 (do_compare_rtx_and_jump): Likewise.
29584 * dojump.h: Update function prototypes.
29585 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29587 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29589 (emit_label_before): Likewise.
29590 (emit_jump_insn_after_noloc): Likewise.
29591 (emit_jump_insn_after_setloc): Likewise.
29592 (emit_jump_insn_after): Likewise
29593 (emit_jump_insn_before_setloc): Likewise.
29594 (emit_jump_insn_before): Likewise.
29595 (emit_label_before): Promote return type to rtx_code_label.
29596 (emit_label): Likewise.
29597 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29598 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29600 (emit_stack_restore): Likewise.
29601 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29602 (do_cmp_and_jump): Likewise.
29603 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29604 from rtx to rtx_code_label.
29605 (gen_move_insn_uncast): New function.
29606 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29607 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29608 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29609 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29610 invert_jump_1 and redirect_jump_1.
29611 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29612 do_compare_rtx_and_jump.
29613 (expand_addsub_overflow): Likewise.
29614 (expand_neg_overflow): Likewise.
29615 (expand_mul_overflow): Likewise.
29616 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29617 return value of gen_move_insn.
29618 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29619 * loop-doloop.c (add_test): Use rtx_code_label.
29620 (doloop_modify): Likewise.
29621 (doloop_optimize): Likewise.
29622 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29623 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29625 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29626 (split_reg): Likewise.
29627 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29629 * optabs.c (expand_binop_directly): Remove casts of values returned by
29631 (expand_unop_direct): Likewise.
29632 (expand_abs): Likewise.
29633 (maybe_emit_unop_insn): Likewise.
29634 (maybe_gen_insn): Promote return type to rtx_insn.
29635 * optabs.h: Update prototype of maybe_gen_insn.
29636 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29638 * recog.c (struct peep2_insn_data): Promote type of insn field to
29640 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29641 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29642 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29643 * recog.h (struct insn_gen_fn): Promote return types of function
29644 pointers and operator ().from rtx to rtx_insn.
29645 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29646 (fill_eager_delay_slots): Likewise.
29647 (relax_delay_slots): Likewise.
29648 (make_return_insns): Likewise.
29649 (dbr_schedule): Likewise.
29650 (optimize_skips): Likewise.
29651 (reorg_redirect_jump): Likewise.
29652 (fill_slots_from_thread): Likewise.
29653 * reorg.h: Update prototypes.
29654 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29655 rtx_jump_insn instead of check. Use it's jump_target method.
29656 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29657 (rtx_jump_insn::jump_target): Define new method.
29658 (rtx_jump_insn::set_jump_target): Define new method.
29659 * rtlanal.c (tablejump_p): Promote type of one local variable.
29660 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29661 (sched_analyze_insn): Likewise.
29662 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29663 (print_insn): Likewise.
29664 * stmt.c (label_rtx): Promote return type to rtx_insn.
29665 (force_label_rtx): Likewise.
29666 (jump_target_rtx): Define new function.
29667 (expand_label): Use it, get rid of one cast.
29668 (expand_naked_return): Promote rtx to rtx_code_label.
29669 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29670 (expand_case): Use rtx_code_label instread of rtx where feasible.
29671 (expand_sjlj_dispatch_table): Likewise.
29672 (emit_case_nodes): Likewise.
29673 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29674 * store-motion.c (insert_store): Make use of new return type of
29675 gen_move_insn and remove a cast.
29676 (replace_store_insn): Likewise.
29678 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29680 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29681 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29683 2015-05-20 Jeff Law <law@redhat.com>
29685 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29686 dispose of the jump thread path when the jump threading
29687 opportunity is cancelled.
29689 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29691 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29692 when printing the caret character.
29694 2015-05-20 Marek Polacek <polacek@redhat.com>
29696 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29698 2015-05-20 Marek Polacek <polacek@redhat.com>
29700 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29701 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29702 * gimple-fold.c (canonicalize_bool): Likewise.
29703 (same_bool_result_p): Likewise.
29704 * tree-if-conv.c (parse_predicate): Likewise.
29706 2015-05-20 Marek Polacek <polacek@redhat.com>
29708 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29709 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29711 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29713 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29714 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29717 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29719 * config/mips/mips.h (micromips_globals): Declare.
29721 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29723 * timevar.def (TV_INITIALIZE_RTL): New.
29724 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29725 function's time to TV_INITIALIZE_RTL.
29727 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29729 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29730 gimple_build_nop calls.
29731 (chkp_find_bounds_for_elem): Likewise.
29732 (chkp_get_zero_bounds): Likewise.
29733 (chkp_get_none_bounds): Likewise.
29734 (chkp_get_bounds_by_definition): Likewise.
29735 (chkp_generate_extern_var_bounds): Likewise.
29736 (chkp_get_bounds_for_decl_addr): Likewise.
29737 (chkp_get_bounds_for_string_cst): Likewise.
29739 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29741 PR tree-optimization/65447
29742 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29743 (dump_use, dump_uses): Support to dump sub use.
29744 (record_use): New parameters to support sub use. Remove call to
29746 (record_sub_use, record_group_use): New functions.
29747 (compute_max_addr_offset, split_all_small_groups): New functions.
29748 (group_address_uses, rewrite_use_address): New functions.
29749 (strip_offset): New declaration.
29750 (find_interesting_uses_address): Call record_group_use.
29751 (add_candidate): New assertion.
29752 (infinite_cost_p): Move definition forward.
29753 (add_costs): Check INFTY cost and return immediately.
29754 (get_computation_cost_at): Clear setup cost and dependent bitmap
29756 (determine_use_iv_cost_address): Compute cost for sub uses.
29757 (rewrite_use_address_1): Rename from old rewrite_use_address.
29758 (free_loop_data): Free sub uses.
29759 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29761 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29762 Jim Wilson <jim.wilson@linaro.org>
29764 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29765 new fields loadv and storev.
29766 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29767 Initialize loadv and storev.
29768 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29769 (cortexa53_extra_costs): Likewise.
29770 (cortexa57_extra_costs): Likewise.
29771 (xgene1_extra_costs): Likewise.
29772 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29775 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29777 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29779 (cortexa8_extra_costs): Likewise.
29780 (cortexa5_extra_costs): Likewise.
29781 (cortexa7_extra_costs): Likewise.
29782 (cortexa12_extra_costs): Likewise.
29783 (cortexa15_extra_costs): Likewise.
29784 (v7m_extra_costs): Likewise.
29786 2015-05-20 Jeff Law <law@redhat.com>
29788 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29789 instead of open-coded version. Also delete the jump thread created
29790 within this function.
29792 2015-05-20 Alan Modra <amodra@gmail.com>
29794 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29795 stack adjusting insn. Formatting.
29796 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29797 r12. If possible, emit first -fsplit-stack arg pointer insn
29798 before stack adjust. Don't use r12 to save cr if split-stack.
29800 2015-05-20 Alan Modra <amodra@gmail.com>
29802 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29804 (rs6000_supports_split_stack): New function.
29805 * config/rs6000/rs6000.c (machine_function): Add
29806 split_stack_arg_pointer.
29807 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29808 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29809 rather than virtual_incoming_args_rtx.
29810 (rs6000_va_start): Likewise.
29811 (split_stack_arg_pointer_used_p): New function.
29812 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29813 (morestack_ref): New var.
29814 (gen_add3_const, rs6000_expand_split_stack_prologue,
29815 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29816 rs6000_split_stack_space_check): New functions.
29817 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29818 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29819 (UNSPECV_SPLIT_STACK_RETURN): Define.
29820 (split_stack_prologue, load_split_stack_limit,
29821 load_split_stack_limit_di, load_split_stack_limit_si,
29822 split_stack_return, split_stack_space_check): New expands and insns.
29823 * config/rs6000/rs6000-protos.h
29824 (rs6000_expand_split_stack_prologue): Declare.
29825 (rs6000_split_stack_space_check): Declare.
29827 2015-05-20 Alan Modra <amodra@gmail.com>
29829 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29830 (direct_return): Test vrsave_size rather than vrsave_mask.
29831 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29832 (rs6000_emit_epilogue): Likewise.
29834 2015-05-20 Alan Modra <amodra@gmail.com>
29836 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29837 when not saving registers.
29838 (debug_stack_info): Adjust to omit printing unused offsets,
29840 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29843 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29846 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29847 value_type to const char *.
29849 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29851 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29852 to build a biarch toolchain again.
29854 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29856 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29857 or implicit declarations.
29858 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29860 (get_odr_type): Check type has linkage before adding bases.
29861 (register_odr_type): Check that type has linkage before adding it.
29862 (type_known_to_have_no_deriavations_p): Rename to ..
29863 (type_known_to_have_no_derivations_p): This one.
29864 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29865 (type_known_to_have_no_derivations_p): This one.
29866 * ipa-polymorphic-call.c
29867 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29870 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29872 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29873 (layout_type): Use RECORD_OR_UNION_TYPE_P.
29875 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29877 * config/s390/s390.c (s390_vector_bool_type_p): New function.
29878 (s390_invalid_binary_op): New function.
29879 (TARGET_INVALID_BINARY_OP): Define macro.
29881 2015-05-19 David Sherwood <david.sherwood@arm.com>
29883 * loop-invariant.c (create_new_invariant): Don't calculate address cost
29884 if mode is not a scalar integer.
29885 (get_inv_cost): Increase computational cost for unused invariants.
29887 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29889 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
29890 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
29891 * config/s390/s390-builtin-types.def: New file.
29892 * config/s390/s390-builtins.def: New file.
29893 * config/s390/s390-builtins.h: New file.
29894 * config/s390/s390-c.c: New file.
29895 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29896 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29897 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29898 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29900 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29902 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29903 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29904 variable definitions.
29905 (s390_const_operand_ok): New function.
29906 (s390_expand_builtin): Rewrite.
29907 (s390_init_builtins): New function.
29908 (s390_handle_vectorbool_attribute): New function.
29909 (s390_attribute_table): Add s390_vector_bool attribute.
29910 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29911 (s390_branch_condition_mask): Generate masks for new modes.
29912 (s390_expand_vec_compare_cc): New function.
29913 (s390_mangle_type): Add mangling for vector bool types.
29914 (enum s390_builtin): Remove.
29915 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29917 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29918 s390_cpu_cpp_builtins.
29919 (REGISTER_TARGET_PRAGMAS): New macro.
29920 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29921 (insn_cmp mode attribute): Add new CC modes.
29922 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29923 (lcbb): New pattern definition.
29924 * config/s390/s390intrin.h: Include vecintrin.h.
29925 * config/s390/t-s390: New file.
29926 * config/s390/vecintrin.h: New file.
29927 * config/s390/vector.md: Include vx-builtins.md.
29928 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29931 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29933 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29935 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29936 (s390_select_ccmode): Likewise.
29937 (s390_canonicalize_comparison): Swap operands if necessary.
29938 (s390_expand_vec_compare_scalar): Expand DFmode compare using
29939 single element vector instructions.
29940 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29941 (s390_branch_condition_mask): Generate CC masks for the new modes.
29942 * config/s390/s390.md (v0, vf, vd): New mode attributes.
29943 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29944 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29945 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29946 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29947 (*extend<DSF:mode><BFP:mode>2): New insn definition.
29948 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29949 (extend<DSF:mode><BFP:mode>2): Turn into expander.
29950 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29951 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29952 (sqrt<mode>2): Add vector instruction.
29954 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29956 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29958 * config/s390/predicates.md (const0_operand, constm1_operand)
29959 (constable_operand): Accept vector operands.
29960 * config/s390/s390-modes.def: Add supported vector modes.
29961 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29962 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29963 (s390_bytemask_vector_p, s390_expand_vec_strlen)
29964 (s390_expand_vec_compare, s390_expand_vcond)
29965 (s390_expand_vec_init): Add prototypes.
29966 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29967 (s390_vector_mode_supported_p): New function.
29968 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29969 (s390_contiguous_bitmask_vector_p): New function.
29970 (s390_bytemask_vector_p): New function.
29971 (s390_split_ok_p): Vector regs don't work either.
29972 (regclass_map): Add VEC_REGS.
29973 (s390_legitimate_constant_p): Handle vector constants.
29974 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29975 (legitimate_reload_vector_constant_p): New function.
29976 (s390_preferred_reload_class): Handle CONST_VECTOR.
29977 (s390_reload_symref_address): Likewise.
29978 (s390_secondary_reload): Vector memory instructions only support
29979 short displacements. Rename reload*_nonoffmem* to reload*_la*.
29980 (s390_emit_ccraw_jump): New function.
29981 (s390_expand_vec_strlen): New function.
29982 (s390_expand_vec_compare): New function.
29983 (s390_expand_vcond): New function.
29984 (s390_expand_vec_init): New function.
29985 (s390_dwarf_frame_reg_mode): New function.
29986 (print_operand): Handle addresses with 'O' and 'R' constraints.
29987 (NR_C_MODES, constant_modes): Add vector modes.
29988 (s390_output_pool_entry): Handle vector constants.
29989 (s390_hard_regno_mode_ok): Handle vector registers.
29990 (s390_class_max_nregs): Likewise.
29991 (s390_cannot_change_mode_class): New function.
29992 (s390_invalid_arg_for_unprototyped_fn): New function.
29993 (s390_function_arg_vector): New function.
29994 (s390_function_arg_float): Remove size variable.
29995 (s390_pass_by_reference): Handle vector arguments.
29996 (s390_function_arg_advance): Likewise.
29997 (s390_function_arg): Likewise.
29998 (s390_return_in_memory): Vector values are returned in a VR if
30000 (s390_function_and_libcall_value): Handle vector arguments.
30001 (s390_gimplify_va_arg): Likewise.
30002 (s390_call_saved_register_used): Consider the arguments named.
30003 (s390_conditional_register_usage): Disable v16-v31 for non-vec
30005 (s390_preferred_simd_mode): New function.
30006 (s390_support_vector_misalignment): New function.
30007 (s390_vector_alignment): New function.
30008 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30009 (TARGET_VECTOR_MODE_SUPPORTED_P)
30010 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30011 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30012 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30013 (TARGET_VECTOR_ALIGNMENT): Define target macro.
30014 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30015 (FIRST_PSEUDO_REGISTER): Increase value.
30016 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30017 (VECTOR_REG_P): Define macros.
30018 (FIXED_REGISTERS, CALL_USED_REGISTERS)
30019 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30020 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30021 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30022 Add vector registers.
30023 (CANNOT_CHANGE_MODE_CLASS): Call C function.
30024 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30025 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30027 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30028 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30029 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30030 (VR*_REGNUM): New constants.
30031 (ALL): New mode iterator.
30032 (INTALL): Remove mode iterator.
30034 (movti): Implement TImode moves for VRs.
30035 Disable TImode splitter for VR targets.
30036 Implement splitting TImode GPR<->VR moves.
30037 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30038 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30039 reload<mode>_la_in, reload<mode>_la_out.
30040 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30041 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30042 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30043 (mov<mode> SF SD): Prefer lder, lde for loading.
30044 Add lrl and strl instructions.
30045 Add vector instructions.
30046 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30047 Call s390_expand_vec_strlen on z13.
30048 (*cc_to_int): Change predicate to nonimmediate_operand.
30049 (addti3): Rename to *addti3. New expander.
30050 (subti3): Rename to *subti3. New expander.
30051 * config/s390/vector.md: New file.
30053 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30055 * common/config/s390/s390-common.c (processor_flags_table): Add
30057 * config.gcc: Add z13.
30058 * config/s390/s390-opts.h (enum processor_type): Add
30059 PROCESSOR_2964_Z13.
30060 * config/s390/s390.c (s390_adjust_priority): Check for
30061 PROCESSOR_2964_Z13.
30062 (s390_reorg): Likewise.
30063 (s390_sched_reorder): Likewise.
30064 (s390_sched_variable_issue): Likewise.
30065 (s390_loop_unroll_adjust): Likewise.
30066 (s390_option_override): Likewise. Default to -mvx when available.
30067 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30068 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30069 (TARGET_VX_ABI): Define macros.
30071 (TARGET_DEFAULT): Add MASK_OPT_VX.
30072 * config/s390/s390.md ("cpu" attribute): Add z13.
30073 ("cpu_facility" attribute): Add vec.
30074 * config/s390/s390.opt (processor_type): Add z13.
30075 (mvx): New options.
30076 * doc/invoke.texi: Add z13 option for -march.
30078 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30080 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30081 mode check to make sure that only scalar integer values are
30084 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30086 * tree.c (verify_type_variant): Fix #undef.
30087 (gimple_canonical_types_compatible_p): Move here from lto.c
30088 (verify_type): Verify TYPE_CANONICAL compatibility.
30089 * tree.h (gimple_canonical_types_compatible_p): Declare.
30091 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30093 PR middle-end/66199
30094 * tree.h (OMP_TEAMS_COMBINED): Define.
30095 * gimplify.c (enum gimplify_omp_var_data): Add
30096 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30097 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30098 (omp_notice_variable): Accept both ORT_TEAMS
30099 and ORT_COMBINED_TEAMS. Don't recurse if
30100 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30101 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30103 (omp_no_lastprivate): New function.
30104 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30105 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30106 notice_outer and set appropriate bits, otherwise make
30107 sure default(none) combined constructs won't complain.
30108 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30109 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30110 omp_no_lastprivate either remove the clause or turn it
30111 into OMP_CLAUSE_PRIVATE.
30112 (gimplify_omp_for): Fix up handling of implicit
30113 lastprivate or linear iterators.
30114 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30115 ORT_COMBINED_TEAMS.
30116 * omp-low.c (lower_omp_for_lastprivate): For combined
30117 for simd use fd.loop.n2 from the for rather than simd.
30119 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30121 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30122 instead of gen_rtx_raw_REG.
30123 (cris_expand_epilogue): Likewise.
30124 * config/microblaze/microblaze.c (microblaze_classify_address):
30126 * config/sparc/sparc.md: Likewise.
30128 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
30130 * config/alpha/alpha.c (alpha_legitimize_reload_address)
30131 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30132 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30133 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30134 Use CASE_CONST_SCALAR_INT.
30135 (print_operand) <case 'M'>: Use mode_width_operand to check the
30136 value of the constant.
30137 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30138 * config/alpha/predicates.md (input_operand): Use general_operand
30139 instead of match_code as operand check.
30140 (symbolic_operand): Use match_code with subexpression digits.
30141 * config/alpha/constraints.md (Q): Ditto.
30143 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30145 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30147 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30149 * config/s390/s390.c (s390_secondary_reload): Fix check for
30150 load/store relative.
30152 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30154 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
30155 alternative_mask to uint64_t.
30157 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30159 PR tree-optimization/66187
30160 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30161 Pass TYPE_SIGN to tree_int_cst_min_precision. If
30162 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30164 2015-05-19 David Malcolm <dmalcolm@redhat.com>
30166 * diagnostic.c (diagnostic_report_current_module): Strengthen
30167 local "new_map" from const line_map * to
30168 const line_map_ordinary *.
30169 * genmatch.c (error_cb): Likewise for local "map".
30170 (output_line_directive): Likewise for local "map".
30171 * input.c (expand_location_1): Likewise for local "map".
30172 Pass NULL rather than &map to
30173 linemap_unwind_to_first_non_reserved_loc, since the value is never
30174 read from there, and the value written back not read from here.
30175 (is_location_from_builtin_token): Strengthen local "map" from
30176 const line_map * to const line_map_ordinary *.
30177 (dump_location_info): Strengthen locals "map" from
30178 line_map *, one to const line_map_ordinary *, the other
30179 to const line_map_macro *.
30180 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30181 const line_map * to const line_map_macro *.
30182 (maybe_unwind_expanded_macro_loc): Add a call to
30183 linemap_check_macro when writing to the "map" field of the
30185 Introduce local const line_map_ordinary * "ord_map", using it in
30186 place of "map" in the part of the function where we know we have
30187 an ordinary map. Strengthen local "m" from const line_map * to
30188 const line_map_ordinary *.
30190 2015-05-19 Nick Clifton <nickc@redhat.com>
30193 * config/msp430/msp430.md (zero_extendhisi2): Add support for
30194 separate source and destination registers.
30196 2015-05-19 Richard Biener <rguenther@suse.de>
30198 PR tree-optimization/66165
30199 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30200 for no load permutation.
30202 PR tree-optimization/66185
30203 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30204 when building the SLP node from scalars.
30206 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30207 Tristan Gingold <gingold@adacore.com>
30209 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30210 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30211 (expand_stack_restore): Call record_new_stack_level.
30212 (expand_stack_save): Do not call do_pending_stack_adjust.
30213 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30214 * calls.c (expand_call): Call record_new_stack_level for alloca.
30215 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30216 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30217 (update_sjlj_context): New global function.
30218 * except.h (update_sjlj_context): Declare.
30219 * explow.c (record_new_stack_level): New global function.
30220 (allocate_dynamic_stack_space): Call record_new_stack_level.
30221 * explow.h (record_new_stack_level): Declare.
30222 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30223 * cfgrtl.c (duplicate_insn_chain): Likewise.
30225 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30227 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30228 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30229 STACK_GROWS_DOWNWARD as normal if.
30230 (expand_call): Likewise.
30232 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
30235 * config/sh/sh.md (*round_int_even): New insn_and_split and
30236 accompanying new unnamed split.
30238 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30240 * bitmap.c (bitmap_set_range): Handle count==1 specially.
30241 (bitmap_clear_range): Likewise.
30242 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30243 bitmap_set_range unconditionally.
30244 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30245 * df-scan.c (df_mark_reg): Likewise.
30246 * haifa-sched.c (setup_ref_regs): Likewise.
30247 * sched-rgn.c (update_live_1): Likewise.
30249 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30251 * regs.h (END_HARD_REGNO): Delete.
30252 (END_REGNO): Move to...
30254 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30255 * caller-save.c (mark_set_regs): Likewise.
30256 * combine.c (move_deaths, distribute_notes): Likewise.
30257 * cse.c (invalidate, invalidate_for_call): Likewise.
30258 * df-scan.c (df_ref_record): Likewise.
30259 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30260 (record_last_reg_set_info): Likewise.
30261 * reg-stack.c (convert_regs_exit): Likewise.
30262 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30263 * resource.c (update_live_status): Likewise.
30264 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30266 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30268 * rtl.h (reg_info): Add an nregs field.
30269 (REG_NREGS): Use it.
30270 (SET_REGNO_RAW): Delete.
30271 (set_regno_raw): New function.
30272 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30273 (END_REGNO): Redefine in terms of REG_NREGS.
30274 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30276 * emit-rtl.c (set_mode_and_regno): Likewise.
30277 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30278 instead of SET_REGNO_RAW.
30280 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30282 * rtl.h (PUT_MODE_RAW): New macro.
30283 (PUT_REG_NOTE_KIND): Use it.
30284 (set_mode_and_regno): Declare.
30285 (gen_raw_REG): Change regno to "unsigned int".
30286 (gen_rtx_REG): Change "unsigned" to "unsigned int".
30287 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30288 use set_mode_and_regno to change the mode of registers.
30289 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30290 * emit-rtl.c (set_mode_and_regno): New function.
30291 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
30292 * caller-save.c (reg_save_code): Use set_mode_and_regno.
30293 * expr.c (init_expr_target): Likewise.
30294 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30295 * postreload.c (reload_cse_simplify_operands): Likewise.
30297 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30299 * caller-save.c (init_caller_save): Use word_mode and
30300 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30301 * expr.c (init_expr_target): Likewise.
30302 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30303 * postreload.c (reload_cse_regs_1): Likewise.
30305 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30307 * rtl.def (REG): Change format to "r".
30308 * rtl.h (rtunion): Remove rt_reg.
30309 (reg_info): New structure.
30310 (rtx_def): Add reg field to main union.
30311 (X0REGATTR): Delete.
30312 (REG_CHECK): New macro.
30313 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30314 * rtl.c (rtx_format): Document "r".
30315 (rtx_code_size): Handle REG specially.
30316 * gengenrtl.c (special_format): Return true for formats
30318 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30319 Deal with REG_ATTRS after the field loop.
30320 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30321 * expmed.c (init_expmed): Call gen_raw_REG instead of
30323 * expr.c (init_expr_target): Likewise.
30324 * regcprop.c (maybe_mode_change): Likewise.
30325 * varasm.c (make_decl_rtl): Likewise.
30326 * final.c (leaf_renumber_regs_insn): Return early after
30328 * genemit.c (gen_exp): Handle 'r' fields.
30329 * genpeep.c (match_rtx): Likewise.
30330 * gensupport.c (subst_pattern_match): Likewise.
30331 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30332 (alter_constraints, subst_dup): Likewise.
30333 * read-rtl.c (read_rtx_code): Likewise.
30334 * print-rtl.c (print_rtx): Likewise.
30335 * genrecog.c (find_operand, find_matching_operand): Likewise.
30336 (validate_pattern, match_pattern_2): Likewise.
30337 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30338 (rtx_test::regno_field): New function.
30339 (operator ==, safe_to_hoist_p, transition_parameter_type)
30340 (parameter_type_string, print_parameter_value)
30341 (print_nonbool_test, print_test): Handle new enum values.
30342 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30343 * lra-constraints.c (operands_match_p): Likewise.
30345 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30347 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30348 Change type of new_regno to unsigned int.
30349 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30350 new_regno to unsigned int.
30351 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30352 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30353 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30354 (SET_REGNO_RAW): Add space after ",".
30356 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30358 * rtl.h (REG_NREGS): New macro
30359 * alias.c (record_set): Use it.
30360 * cfgcleanup.c (mark_effect): Likewise.
30361 * combine.c (likely_spilled_retval_1): Likewise.
30362 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30363 (move_deaths, distribute_notes): Likewise.
30364 * cselib.c (cselib_record_set): Likewise.
30365 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30366 * df-scan.c (df_mark_reg): Likewise.
30367 * dse.c (look_for_hardregs): Likewise.
30368 * dwarf2out.c (reg_loc_descriptor): Likewise.
30369 (multiple_reg_loc_descriptor): Likewise.
30370 * expr.c (write_complex_part, read_complex_part): Likewise.
30371 (emit_move_complex): Likewise.
30372 * haifa-sched.c (setup_ref_regs): Likewise.
30373 * ira-lives.c (mark_hard_reg_live): Likewise.
30374 * lra.c (lra_set_insn_recog_data): Likewise.
30375 * mode-switching.c (create_pre_exit): Likewise.
30376 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30377 (reload_combine_recognize_pattern): Likewise.
30378 (reload_combine_note_use, move2add_record_mode): Likewise.
30379 (reload_cse_move2add): Likewise.
30380 * reg-stack.c (subst_stack_regs_pat): Likewise.
30381 * regcprop.c (kill_value, copy_value): Likewise.
30382 (copyprop_hardreg_forward_1): Likewise.
30383 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30384 (build_def_use): Likewise.
30385 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30386 (deps_analyze_insn): Likewise.
30387 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30388 * sel-sched.c (count_occurrences_equiv): Likewise.
30389 * valtrack.c (dead_debug_insert_temp): Likewise.
30391 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30393 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30394 * dse.c (note_add_store): Likewise.
30395 * ira-lives.c (mark_hard_reg_dead): Likewise.
30396 * loop-invariant.c (mark_reg_store): Likewise.
30397 (mark_reg_death): Likewise.
30398 * postreload.c (reload_combine): Likewise.
30399 (reload_combine_note_store): Likewise.
30400 (reload_combine_note_use): Likewise.
30401 * recog.c (peep2_reg_dead_p): Likewise.
30403 2015-05-19 Alan Modra <amodra@gmail.com>
30405 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30406 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30407 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30409 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30410 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30411 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30412 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30414 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30416 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30417 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30418 (join2_loadhi): Likewise.
30419 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30420 load-load and store-stores.
30421 * config/mips/mips.opt (mload-store-pairs): New option.
30422 (TARGET_LOAD_STORE_PAIRS): New macro.
30423 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30424 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30425 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30427 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30429 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30431 * dojump.c (do_compare_rtx_and_jump): Likewise.
30432 * expmed.c (emit_store_flag_1): Likewise.
30433 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30434 * final.c (sprint_ul): Use std::reverse for reversing a string.
30435 * fold-const.c (extract_muldiv_1): Use std::swap.
30436 * genmodes.c (emit_mode_int_n): Likewise.
30437 * ifcvt.c (dead_or_predicable): Likewise.
30438 * ira-build.c (ira_merge_live_ranges): Likewise.
30439 (swap_allocno_copy_ends_if_necessary): Likewise.
30440 * ira.c (ira_setup_alts): Likewise.
30441 * loop-iv.c (iv_analyze_expr): Likewise.
30442 (implies_p): Likewise.
30443 (canon_condition): Likewise.
30444 * lra-constraints.c (swap_operands): Likewise.
30445 * lra-lives.c (lra_merge_live_ranges): Likewise.
30446 * omega.c (swap): Remove.
30448 (omega_unprotect_1): Use std::swap.
30449 (omega_solve_geq): Likewise.
30450 * optabs.c (expand_binop_directly): Likewise.
30451 (expand_binop): Likewise.
30452 (emit_conditional_move): Likewise.
30453 (emit_conditional_add): Likewise.
30454 * postreload.c (reload_cse_simplify_operands): Likewise.
30455 * reg-stack.c (emit_swap_insn): Likewise.
30456 (swap_to_top): Likewise.
30457 (compare_for_stack_reg): Likewise.
30458 (subst_asm_stack_regs): Likewise.
30459 * reload.c (find_reloads): Likewise.
30460 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30461 * sel-sched.c (invoke_reorder_hooks): Likewise.
30462 (create_block_for_bookkeeping): Likewise.
30463 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30464 (lambda_matrix_right_hermite): Use std::swap.
30465 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30466 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30467 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30468 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30469 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30470 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30471 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30472 * tree-vrp.c (compare_ranges): Likewise.
30473 * var-tracking.c (add_with_sets): Likewise.
30474 (vt_find_locations): Likewise.
30476 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30478 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30480 (FBSD_ENDFILE_SPEC): Likewise.
30481 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30482 config/freebsd-spec.h.
30483 (ENDFILE_SPEC): Likewise.
30485 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30486 Richard Henderson <rth@redhat.com>
30489 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30490 Check for a memory location that is not a reference (using an AND)
30491 to an unaligned location here.
30492 * config/alpha/predicates.md (normal_memory_operand): Remove.
30494 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30496 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30497 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30499 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30501 * config/mips/mips.c (micromips_globals): New variable.
30502 (mips_set_compression_mode): Save and reinitialize target-dependent
30503 state for microMIPS.
30505 2015-05-18 Martin Liska <mliska@suse.cz>
30507 * dbgcnt.def: Add new counter.
30508 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30510 2015-05-18 Martin Liska <mliska@suse.cz>
30512 * dbgcnt.def: Sort counters.
30513 * opts.c (common_handle_option): Do not compile if
30514 -fdbg-cnt-list is enabled.
30516 2015-05-18 Tom de Vries <tom@codesourcery.com>
30518 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30519 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30520 address operator to va_list operand.
30521 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30523 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30525 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30526 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30527 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30529 2015-05-18 Tom de Vries <tom@codesourcery.com>
30531 * tree-ssa-tail-merge.c: Fix whitespace.
30533 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30535 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30536 cortex-a17, and cortex-a17.cortex-a7.
30538 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30541 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30543 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30546 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30547 QImode inner modes for TARGET_AVX512BW. Force mask operand
30548 to a register for AVX512F modes.
30550 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30552 * toplev.c (emit_debug_global_declarations): Do not output debug info
30553 when doing slim LTO objects.
30555 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30557 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30558 odr_types_equivalent_p): Declare.
30559 (odr_type_p): Use gcc_checking_assert.
30560 (type_in_anonymous_namespace_p) Declare.
30561 (type_with_linkage_p): Declare.
30562 * common.opt (Wlto-type-mismatch): New warning.
30563 * ipa-devirt.c (compound_type_base): New function.
30564 (odr_or_derived_type_p): New function.
30565 (odr_types_equivalent_p): New function.
30566 (add_type_duplicate): Simplify.
30567 (type_with_linkage_p): Add hack to prevent false positives on C types
30568 (type_in_anonymous_namespace_p): Likewise.
30569 * tree.c (need_assembler_name_p): Use type_with_linkage.
30570 * tree.h (type_in_anonymous_namespace_p): Remove.
30571 * doc/invoke.texi (-Wlto-type-mismatch): Document
30573 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30575 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30576 (verify_type): Verify STRING_FLAG.
30578 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30581 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30582 with accessor function.
30583 * tree-diagnostic.c (diagnostic_report_current_function): Use
30584 diagnostic_location function.
30585 (maybe_unwind_expanded_macro_loc): Likewise.
30586 (virt_loc_aware_diagnostic_finalizer): Likewise.
30587 (default_tree_printer): Replace locus pointer with accessor function.
30588 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30589 (diagnostic_set_info_translated): Initialize second location.
30590 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30591 (diagnostic_show_locus): Handle two locations. Call
30592 diagnostic_print_caret_line.
30593 (diagnostic_print_caret_line): New.
30594 (default_diagnostic_starter): Use diagnostic_location function.
30595 (diagnostic_report_diagnostic): Use diagnostic_location function.
30596 (verbatim): Do not set text.locus.
30597 * diagnostic.h (struct diagnostic_info): Remove location field.
30598 (struct diagnostic_context): Make caret_chars an array of two.
30599 (diagnostic_location): New inline.
30600 (diagnostic_expand_location): Handle two locations.
30601 (diagnostic_same_line): New inline.
30602 (diagnostic_print_caret_line): Declare.
30603 (CARET_LINE_MARGIN): New constant.
30604 * pretty-print.c (pp_printf): Do not set text.locus.
30605 (pp_verbatim): Do not set text.locus.
30606 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30607 (struct text_info): Replace locus pointer with locations
30608 array. Add accessor functions.
30610 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30611 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30614 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30615 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30616 large constants in register instead of splitting them.
30618 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30621 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30622 replacements in memory addresses.
30623 (get_unaligned_address): Ditto.
30625 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30627 * config/ft32/*: New files for FT32 port.
30628 * doc/install.texi: Add FT32 information.
30629 * doc/invoke.texi: Add FT32 information.
30630 * doc/md.texi: Add FT32 information.
30631 * doc/contrib.texi: Self added.
30633 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30635 PR tree-optimization/64454
30636 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30637 (-1 - A -> ~A): Remove unnecessary condition.
30639 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30641 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30642 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30643 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30645 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30647 * ipa-chkp.h (chkp_wrap_function): New.
30648 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30649 (chkp_wrap_function_name): New.
30650 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30651 to get wrapper name.
30652 * lto-cgraph.c: Include ipa-chkp.h.
30653 (input_cgraph_1): Avoid alias chain for wrappers.
30655 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30657 PR middle-end/66134
30658 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30659 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30661 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30663 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30664 (AARCH64_FL_SLOWMUL): Delete.
30665 (AARCH64_FL_CRC): Redefine to 1<<3.
30666 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30668 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30670 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30673 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30675 * config/alpha/alpha.md (extendqidi2): Use general_operand
30676 instead of some_operand for operand[1] predicate.
30677 (extendhidi2): Ditto.
30678 (cbranchdi4): Use general_operand instead of some_operand
30679 for operand[1] and operands[2] predicates.
30680 (cstoredi4): Ditto.
30681 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30682 (some_ni_operand): Ditto.
30684 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30686 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30687 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30688 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30689 low part of the constant using alpha_emit_set_const_1.
30690 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30692 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30694 * varasm.c (output_constant_pool_1): Pass down alignment from
30695 constant pool entry's descriptor to output_constant_pool_2.
30696 (output_object_block): Add comment prior to call to
30697 output_constant_pool_1.
30699 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30701 PR rtl-optimization/65862
30702 * target.def (ira_change_pseudo_allocno_class): New hook.
30703 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30705 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30706 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30708 * ira-costs.c (find_costs_and_classes): Call the hook and change
30709 classes when it is necessary.
30710 * doc/tm.texi: Update.
30712 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30714 * config/i386/i386.md (sibcall_memory): Check that register with
30715 callee address is not also used as one of the arguments, instead
30716 of checking that it is not live after the sibcall.
30717 (sibcall_pop_memory): Ditto.
30718 (sibcall_value_memory): Ditto.
30719 (sibcall_value_pop_memory): Ditto.
30721 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30723 * generic-match-head.c (types_match): Handle non-types.
30724 * gimple-match-head.c (types_match): Likewise.
30725 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30727 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30729 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30730 (csneg3<mode>_insn): Enable expansion of pattern.
30732 2015-05-14 Nick Clifton <nickc@redhat.com>
30734 * config/rl78/rl78.c (rl78_select_section): Select the correct
30735 default section based upon the category of the decl.
30737 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30739 PR rtl-optimization/30967
30740 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30741 destination mode for the cost of scc patterns.
30743 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30745 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30746 using SWIM248 mode iterator.
30747 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30748 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30749 for operand[2] constraint.
30750 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30752 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30754 PR middle-end/66133
30755 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30756 make sure it is never noreturn, even when the task body does not
30758 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30759 right before GIMPLE_OMP_RETURN.
30760 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30761 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30762 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30764 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30766 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30767 * tree-ssa-math-opts.c: Include params.h
30768 (pow_synth_sqrt_info): New struct.
30769 (representable_as_half_series_p): New function.
30770 (get_fn_chain): Likewise.
30771 (print_nested_fn): Likewise.
30772 (dump_fractional_sqrt_sequence): Likewise.
30773 (dump_integer_part): Likewise.
30774 (expand_pow_as_sqrts): Likewise.
30775 (gimple_expand_builtin_pow): Use above to attempt to expand
30776 pow as series of square roots. Removed now unused variables.
30778 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30780 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30781 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30782 Remove *p0 and *p1 arguments. Rewrite function.
30783 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30784 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30785 alpha_emit_set_long_const.
30786 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30787 (alpha_output_mi_thunk_osf): Ditto.
30788 * config/alpha/alpha.md (movti): Do not check operands[1]
30791 2015-05-13 Richard Biener <rguenther@suse.de>
30793 PR tree-optimization/66129
30794 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30796 (vect_schedule_slp_instance): Fix typo.
30798 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30800 * common.opt (fdump-internal-locations): New option.
30801 * input.c: Include diagnostic-core.h.
30802 (get_end_location): New function.
30803 (write_digit): New function.
30804 (write_digit_row): New function.
30805 (dump_location_range): New function.
30806 (dump_labelled_location_range): New function.
30807 (dump_location_info): New function.
30808 * input.h (dump_location_info): New prototype.
30809 * toplev.c (compile_file): Handle flag_dump_locations.
30811 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30813 * gimple-expr.h (is_gimple_constant): Reorder.
30814 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30816 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30818 * combine.c (simplify_set): When generating a CC set, if the
30819 source already is in the correct mode, do not wrap it in a
30820 compare. Simplify the rest of that code.
30822 2015-05-13 Richard Biener <rguenther@suse.de>
30824 PR tree-optimization/66123
30825 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30828 2015-05-13 Richard Biener <rguenther@suse.de>
30830 PR middle-end/66110
30831 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30833 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30835 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30837 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30838 * aclocal.m4: Regenerated with automake-1.11.6.
30840 2015-05-13 Tom de Vries <tom@codesourcery.com>
30842 PR tree-optimization/66010
30843 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30844 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30845 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30846 and rval based on do_deref.
30848 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30851 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30852 link time constants into adress expressions and therefore set
30855 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30858 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30859 Use SWI248 iterator instead of SWI.
30860 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30861 Use eq_attr "alternative" "0" instead of match_test in
30862 length_immediate attribute computation.
30863 (*mulvhi4, *mulvhi4_1): New define_insns.
30866 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30867 SIGNED to get precision of non-negative value.
30869 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30872 * function.c (diddle_return_value_1): Process bounds first.
30873 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30876 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30878 PR rtl-optimization/64616
30879 * loop-invariant.c (can_move_invariant_reg): New.
30880 (move_invariant_reg): Call above new function to decide whether
30881 instruction can just be moved, skipping creation of temporary
30884 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30886 PR target/pr66047.c
30887 * i386.c (ix86_function_sseregparm): Only return -1 if local function
30888 with implied regparm is called from -mno-sse function.
30889 (init_cumulative_args): Output error if ix86_function_sseregparm
30890 return -1 and SSE register would be needed.
30891 (function_arg_advance_32): Likewise.
30892 (function_arg_32): Likewise.
30893 * i386.h (ix86_args): Add decl field.
30895 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30898 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30899 inlines across optimization boundary.
30901 2015-05-12 Jason Merrill <jason@redhat.com>
30903 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30904 string literal and macro name.
30906 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
30908 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30909 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30910 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30912 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30914 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30915 (-Wmisleading-indentation): New option.
30916 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30918 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
30920 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30921 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30922 (alpha_extract_integer): Ditto.
30923 (alpha_legitimate_constant_p): Ditto.
30924 (alpha_split_tmode_pair): Ditto.
30925 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30926 (alpha_expand_mov): Ditto.
30927 (print_operand): Remove handling of 'H' modifier.
30928 <case 'm'>: Remove CONST_DOUBLE handling.
30929 (summarize_insn): Handle CONST_WIDE_INT.
30930 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30932 (movti): Handle CONST_WIDE_INT.
30933 * config/alpha/constraints.md ('H'): Remove constraint definition.
30934 ('G'): Do not match MODE_FLOAT class.
30935 * config/alpha/predicates.md (const0_operand): Also match
30937 (non_add_const_operand): Ditto.
30938 (non_zero_const_operand): Ditto.
30939 (some_operand): Ditto.
30940 (input_operand): Ditto. Handle CONST_WIDE_INT.
30941 (and_operand): Do not match const_double.
30942 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30944 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
30947 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30948 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30949 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30950 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30951 is_mm_seq_cst, is_mm_sync): New accessor functions.
30952 * builtins.c (expand_builtin_sync_operation,
30953 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30954 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30955 (get_memmodel, expand_builtin_atomic_compare_exchange,
30956 expand_builtin_atomic_load, expand_builtin_atomic_store,
30957 expand_builtin_atomic_clear): Use new accessor routines.
30958 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30959 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30960 (maybe_emit_sync_lock_test_and_set): Use new accessors and
30961 MEMMODEL_SYNC_ACQUIRE.
30962 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30963 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30964 expand_atomic_store): Use new accessors.
30965 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30966 * tsan.c (instrument_builtin_call): Update check for memory model beyond
30967 final enum to use MEMMODEL_LAST.
30968 * c-family/c-common.c: Use new accessor for memmodel_base.
30969 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30971 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30972 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30973 mem_thread_fence, *dmb): Likewise.
30974 * config/alpha/alpha.c (alpha_split_compare_and_swap,
30975 alpha_split_compare_and_swap_12): Likewise.
30976 * config/arm/arm.c (arm_expand_compare_and_swap,
30977 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30978 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30979 atomic_loaddi): Likewise.
30980 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30982 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30983 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30985 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30986 atomic_store<mode>, atomic_compare_and_swap<mode>,
30987 atomic_exchange<mode>): Use new accessors.
30988 * config/mips/mips.c (mips_process_sync_loop): Likewise.
30989 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30990 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30991 rs6000_post_atomic_barrier): Add new cases.
30992 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30993 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30994 (atomic_load<mode>): Add new cases and use new accessors.
30995 (store_quadpti): Add new cases.
30996 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30998 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30999 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31002 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31004 * ipa-devirt.c (type_with_linkage_p): New function.
31005 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31007 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31008 (can_be_name_hashed_p): Simplify.
31009 (hash_odr_name): Check that type has linkage before checking if it is
31011 (types_same_for_odr): Likewise.
31012 (odr_name_hasher::equal): Likewise.
31013 (odr_subtypes_equivalent_p): Likewise.
31014 (warn_types_mismatch): Likewise.
31015 (get_odr_type): Likewise.
31016 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31017 * ipa-utils.h (odr_type_p): Move offline.
31018 * tree.c (need_assembler_name_p): Fix handling of types
31020 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31022 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31024 * timevar.c (timevar_enable): Delete in favor of...
31025 (g_timer): New global.
31026 (struct timevar_def): Move to timevar.h inside class timer.
31027 (struct timevar_stack_def): Likewise.
31028 (timevars): Delete global in favor of field "m_timevars" within
31029 class timer in timevar.h
31030 (stack): Likewise, in favor of field "m_stack".
31031 (unused_stack_instances): Likewise, in favor of field
31032 "m_unused_stack_instances".
31033 (start_time): Likewise, in favor of field "m_start_time".
31034 (get_time): Eliminate check for timevar_enable.
31035 (timer::timer): New function, built from part of timevar_init.
31036 (timevar_init): Rewrite idempotency test from using
31037 "timevar_enable" bool to using dynamic allocation of "g_timer".
31038 Move rest of implementation into timer's constructor.
31039 (timevar_push_1): Rename to...
31040 (timer::push): ...this, adding "m_" prefixes to variables that
31041 are now fields of timer.
31042 (timevar_pop_1): Likewise, rename to...
31043 (timer::pop): ...this, and add "m_" prefixes.
31044 (timevar_start): Replace test for "timevar_enable" with one for
31045 "g_timer", and move bulk of implementation to...
31046 (timer::start): ...here, adding "m_" prefixes.
31047 (timevar_stop): Likewise, from here...
31048 (timer::stop): ...to here.
31049 (timevar_cond_start): Likewise, from here...
31050 (timer::cond_start): ...to here.
31051 (timevar_cond_stop): Likewise, from here...
31052 (timer::cond_stop): ...to here.
31053 (validate_phases): Rename to...
31054 (timer::validate_phases): ...this, and add "m_" prefixes. Make
31055 locals "total" and "tv" const.
31056 (timevar_print): Rename to...
31057 (timer::print): ...this, and add "m_" prefixes. Make locals
31058 "total" and "tv" const. Eliminate test for timevar_enable.
31059 * timevar.h (timevar_enable): Eliminate.
31060 (g_timer): New declaration.
31061 (timevar_push_1): Eliminate.
31062 (timevar_pop_1): Eliminate.
31063 (timevar_print): Eliminate.
31064 (class timer): New class.
31065 (timevar_push): Rewrite to use g_timer.
31066 (timevar_pop): Likewise.
31067 * toplev.c (toplev::~toplev): Likewise.
31069 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
31071 * arm-protos.h (arm_sched_autopref): Delete.
31072 (tune_params): Re-organize, use enums for flag values.
31073 (FUSE_OPS): New macro.
31074 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31075 (ARM_PREFETCH_BENEFICIAL): Likewise.
31076 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31077 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31078 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31079 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31080 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31081 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
31082 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31083 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31085 (arm_option_override, thumb2_reorg, arm_print_tune_info)
31086 (aarch_macro_fusion_pair_p): Update uses of current_tune.
31087 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31089 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
31091 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31094 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
31095 Sandra Loosemore <sandra@codesourcery.com>
31097 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31099 (REG_CLASS_NAMES): Add "IJMP_REGS".
31100 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31101 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31102 use new "c" register constraint.
31103 * config/nios2/constraint.md (c): New register constraint
31104 corresponding to IJMP_REGS.
31106 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31108 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31109 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31110 define_splits): Delete, revamp, transmogrify into ...
31111 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31112 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31113 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31116 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31118 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31119 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31121 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31123 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31124 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31125 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31126 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31127 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31128 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31129 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31130 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31131 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31132 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31133 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31134 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31135 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31136 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31137 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31138 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31139 and 30 corresponding splitters): Delete.
31141 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31143 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31146 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31148 * combine.c (recog_for_combine_1): New function, factored out
31149 from recog_for_combine.
31150 (change_zero_ext): New function.
31151 (recog_for_combine): If recog fails, try again with the pattern
31152 modified by change_zero_ext; if that still fails, restore the
31155 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31157 * combine.c (get_undo_marker): New function.
31158 (undo_to_marker): New function, largely factored out from ...
31159 (undo_all): ... this. Adjust.
31161 2015-05-12 Richard Biener <rguenther@suse.de>
31163 PR tree-optimization/66101
31164 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31165 fixup if we turn a loop exit edge to a fallthru edge.
31167 2015-05-12 Richard Biener <rguenther@suse.de>
31169 PR tree-optimization/37021
31170 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31171 (SLP_TREE_TWO_OPERATORS): New define.
31172 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31173 SLP_TREE_TWO_OPERATORS.
31174 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31176 (vect_build_slp_tree): Adjust.
31177 (vect_analyze_slp_cost_1): Likewise.
31178 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31179 emitting two vector stmts and mixing the results.
31181 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31183 * call.c (print_z_candidates): Remove dead code.
31185 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31187 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31188 and zEC12_simple_fp.
31189 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31192 2015-05-12 Tom de Vries <tom@codesourcery.com>
31194 PR tree-optimization/66010
31195 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31197 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31198 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
31199 va_lists are passed, and remove corresponding handling.
31200 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
31201 do_deref argument to ifn_va_arg.
31202 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31205 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31208 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31209 REG before taking its REGNO.
31211 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31213 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31214 rsp->sign_bit_copies and rsp->nonzero_bits into ...
31215 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
31216 present to get more accurate information about the number of sign bit
31217 copies and non zero bits.
31219 2015-05-12 Richard Biener <rguenther@suse.de>
31221 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31222 do not allow unrolling.
31224 2015-05-11 Richard Henderson <rth@redhat.com>
31226 * config/i386/i386-modes.def (CCP): New.
31227 * config/i386/i386.c (put_condition_code): Handle it.
31228 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31230 2015-05-11 Richard Henderson <rth@redhat.com>
31232 * target.def (md_asm_clobbers): Replace with...
31233 (md_asm_adjust): this.
31234 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31235 (TARGET_MD_ASM_ADJUST): New.
31236 * tm.texi: Rebuild.
31237 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31238 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31239 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31241 * cfgexpand.c (check_operand_nalternatives): Accept vector of
31242 constraints instead of lists of outputs and inputs.
31243 (expand_asm_stmt): Save and restore input_location around the
31244 body of the function. Move asm data into vectors instead of
31245 building tree lists. Generate cleanup sequences as needed,
31246 rather than waiting til the end. Use new md_asm_adjust hook.
31248 * config/vxworks.c: Include vec.h before target.h.
31249 * gimple.c: Likewise.
31250 * incpath.c: Likewise.
31251 * mode-switching.c: Likewise.
31253 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31254 (cris_md_asm_adjust): this.
31255 (TARGET_MD_ASM_CLOBBERS): Remove.
31256 (TARGET_MD_ASM_ADJUST): New.
31257 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31258 (ix86_md_asm_adjust): this.
31259 (TARGET_MD_ASM_CLOBBERS): Remove.
31260 (TARGET_MD_ASM_ADJUST): New.
31261 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31262 (mn10300_md_asm_adjust): this.
31263 (TARGET_MD_ASM_CLOBBERS): Remove.
31264 (TARGET_MD_ASM_ADJUST): New.
31265 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31266 (rs6000_md_asm_adjust): this.
31267 (TARGET_MD_ASM_CLOBBERS): Remove.
31268 (TARGET_MD_ASM_ADJUST): New.
31269 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31270 (visium_md_asm_adjust): this.
31271 (TARGET_MD_ASM_CLOBBERS): Remove.
31272 (TARGET_MD_ASM_ADJUST): New.
31274 2015-05-11 Richard Henderson <rth@redhat.com>
31276 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31277 if noutputs is zero.
31278 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31280 * cfgexpand.c (expand_asm_operands): Merge into...
31281 (expand_asm_stmt): ... here.
31283 * cfgexpand.c (expand_asm_operands): Don't call
31284 resolve_asm_operand_names.
31285 * stmt.c (resolve_asm_operand_names): Clarify block comment.
31287 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
31289 * dwarf2out.c (gen_member_die): Sanity check that we access
31290 TYPE_MAIN_VARIANT for TYPE_METHODS.
31291 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31292 checking TYPE_METHODS.
31293 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31295 (build_distinct_type_copy): Clear TYPE_METHODS.
31296 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31297 (verify_type): Allow TYPE_METHODS to be error_mark_node.
31298 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31300 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
31302 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31303 (emit_pattern_before_setloc): Likewise.
31305 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31307 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31308 for define_peephole2s.
31309 (get_peephole2_pattern): New function.
31310 (main): Use it. Call validate_pattern.
31312 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31314 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31315 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31316 (Last callee saved reg is different for AVR_TINY architecture)
31318 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31320 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31321 when looking for memory references.
31323 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31326 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31327 via function pointers.
31329 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31331 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31332 indirect call by forcing address into a pseudo with -fno-plt.
31333 * common.opt (flag_plt): New option.
31334 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31335 ([-fno-plt]): Document.
31337 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
31340 * config/rs6000/option-defaults.h: Add space between string literal
31343 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31345 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31346 accross ARM targets.
31348 2015-05-11 Christian Bruel <christian.bruel@st.com>
31350 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31351 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31353 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31355 PR rtl-optimization/66076
31356 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31357 Don't grow the heap array if it is already big enough from a
31358 previous iteration.
31360 2015-05-11 Christian Bruel <christian.bruel@st.com>
31362 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31363 (is_called_in_ARM_mode): Remove.
31364 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31365 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31366 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31367 arm_declare_function_name.
31369 2015-05-11 Christian Bruel <christian.bruel@st.com>
31371 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31372 (arm_option_params_internal); New function.
31373 (arm_option_check_internal): New function.
31374 (arm_option_override_internal): New function.
31375 (thumb_code, thumb1_code): Remove.
31376 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31377 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31378 (thumb_code, thumb1_code): Remove.
31379 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31381 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31383 * config/alpha/alpha.c (alpha_emit_set_const_1)
31384 (alpha_emit_set_long_const, alpha_extract_integer)
31385 (alpha_legitimate_constant_p, alpha_split_const_mov)
31386 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31387 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31388 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31390 * config/alpha/predicates.md (mode_mask_operand): Do not match
31392 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31393 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31394 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31395 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31396 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31398 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31401 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31402 default_binds_local_p_2.
31403 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31404 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31406 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31408 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31410 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31412 Patch by Richard Biener
31413 * coverage.c (coverage_obj_init): Delay building of type variant
31414 until the type is finished.
31416 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31418 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31419 mismatch between C and C++ type; compoare correctly ARG_TYPES
31420 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31421 (odr_types_equivalent_p): Fix wording of warning about attributes;
31422 it is OK to match prototype and non-prototype.
31424 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31426 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31427 TYPE_ARG_TYPES list.
31428 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31429 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31431 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31433 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31434 * tree.h (is_lang_specific): Constify.
31436 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31438 PR tree-optimization/64454
31439 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31442 2015-05-08 Jason Merrill <jason@redhat.com>
31444 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31445 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31446 config/darwin.h, config/darwin9.h, config/elfos.h,
31447 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31448 config/microblaze/microblaze.h, config/mips/mips.h,
31449 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31450 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31451 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31452 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31453 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31454 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31455 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31456 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31457 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31458 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31459 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31460 between string literal and macro name.
31462 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31464 * jump.c: Change argument types to rtx_insn *.
31467 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31469 * lra-constraints.c: Change argument type to rtx_insn *.
31471 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31473 * df-problems.c: Change argument type to rtx_insn *.
31475 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31477 * combine.c: Change argument type to rtx_insn *.
31479 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31482 * rtlanal.c: Change argument type to rtx_insn *.
31484 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31486 * sched-deps.c: Change argument types to rtx_insn *.
31487 * sched-int.h: Adjust.
31489 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31491 * dwarf2cfi.c: Change argument type to rtx_insn *.
31493 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31495 * ira.c (decrease_live_ranges_number): Changetype of local
31496 variable to rtx_insn *.
31497 * recog.c: Change argument types to rtx_insn *.
31500 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31502 * reorg.c: Change argument types to rtx_insn *.
31504 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31506 * ira-color.c: Change argument types to rtx_insn *.
31507 * lra-eliminations.c: Likewise.
31510 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31512 * gcse.c: Change argument types to rtx_insn *.
31514 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31516 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31518 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31520 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31524 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31526 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31529 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31531 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31534 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31536 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31539 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31541 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31544 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31546 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31550 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31552 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31558 * except.c (can_nonlocal_goto): Change type of argument to
31562 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31564 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31567 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31569 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31570 * cfgrtl.c (can_delete_label_p): Adjust.
31573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31575 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31579 * except.c (make_reg_eh_region_note): Change argument to
31581 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31582 * except.h: Adjust.
31584 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31586 * mode-switching.c (commit_mode_sets): Change type of local
31587 variable from rtx to rtx_insn *.
31589 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31591 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31592 Add ^ to grep command.
31593 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31594 arg to last gimple_simplify declaration. Add missing gimple_build
31595 declaration for built-in function case with four tree args.
31597 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31598 Szabolcs Nagy <szabolcs.nagy@arm.com>
31600 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31601 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31602 (GNU_USER_DYNAMIC_LINKERN32): Update.
31604 2015-05-08 Richard Biener <rguenther@suse.de>
31606 PR tree-optimization/66036
31607 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31608 Handle strided group loads.
31609 (vect_verify_datarefs_alignment): Likewise.
31610 (vect_enhance_data_refs_alignment): Likewise.
31611 (vect_analyze_group_access): Likewise.
31612 (vect_analyze_data_ref_access): Likewise.
31613 (vect_analyze_data_ref_accesses): Likewise.
31614 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31615 (vectorizable_load): Likewise.
31617 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31619 * config/rs6000/rs6000.md: Require operand inequality in one
31622 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31623 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31625 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31627 * config/rx/rx.md (movdi, movdf): Likewise.
31628 Likewise for define_peephole2s.
31630 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31632 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31633 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31634 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31635 vtst_u64): Rewrite using gcc vector extensions.
31637 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31639 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31640 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31642 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31644 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31646 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31648 * config/glibc-stdint.h (OPTION_MUSL): Define.
31649 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31650 Change the definition based on OPTION_MUSL for 64 bit targets.
31651 * config/linux.h (OPTION_MUSL): Redefine.
31652 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31653 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31654 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31656 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31657 Szabolcs Nagy <szabolcs.nagy@arm.com>
31659 * config.gcc (LIBC_MUSL): New tm_defines macro.
31660 * config/linux.h (OPTION_MUSL): Define.
31661 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31662 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31663 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31664 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31665 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31666 * config/linux.opt (mmusl): New option.
31667 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31668 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31669 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31670 * configure: Regenerate.
31672 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31673 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31676 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31677 * config/i386/knetbsd-gnu64.h: New file.
31679 2015-05-08 Marek Polacek <polacek@redhat.com>
31682 * doc/invoke.texi: Document -Woverride-init-side-effects.
31684 2015-05-07 Marek Polacek <polacek@redhat.com>
31687 * doc/invoke.texi: Document -Wshift-negative-value.
31689 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31691 * gcov-tool.c (do_merge): Refactore to remove int ret.
31692 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31693 !type == FUNC to type != FUNC.
31694 * reload.h (struct target_reload): Changee to type of
31695 x_spill_indirect_levels from bool to unsigned char.
31697 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31699 * rtl.h (always_void_p): New function.
31700 * gengenrtl.c (always_void_p): Likewise.
31701 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31702 with code foo are always VOIDmode.
31703 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31704 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31705 compare-elim.c, config/aarch64/aarch64.c,
31706 config/aarch64/aarch64.md, config/alpha/alpha.c,
31707 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31708 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31709 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31710 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31711 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31712 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31713 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31714 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31715 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31716 config/ia64/vect.md, config/iq2000/iq2000.c,
31717 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31718 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31719 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31720 config/mep/mep.c, config/microblaze/microblaze.c,
31721 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31722 config/mn10300/mn10300.c, config/msp430/msp430.c,
31723 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31724 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31725 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31726 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31727 config/rs6000/rs6000.md, config/rs6000/vector.md,
31728 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31729 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31730 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31731 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31732 config/spu/spu.md, config/stormy16/stormy16.c,
31733 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31734 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31735 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31736 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31737 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31738 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31739 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31740 var-tracking.c: Update calls accordingly.
31742 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31745 PR middle-end/54303
31746 * varasm.c (function_mergeable_rodata_prefix): New function.
31747 (mergeable_string_section): Use it.
31748 (mergeable_constant_section): Use it.
31750 2015-05-07 Jeff Law <law@redhat.com>
31753 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31754 simplifier to narrow arithmetic.
31755 * generic-match-head.c: (types_match, single_use): New functions.
31756 * gimple-match-head.c: (types_match, single_use): New functions.
31758 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31760 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31763 2015-05-07 Richard Biener <rguenther@suse.de>
31765 PR tree-optimization/66002
31766 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31769 2015-05-07 Marek Polacek <polacek@redhat.com>
31770 Martin Uecker <uecker@eecs.berkeley.edu>
31772 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31773 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31774 into SANITIZE_NONDEFAULT.
31775 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31777 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31780 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31781 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31782 (alpha_override_options): Move align_loops, align_jumps and
31783 align_functions handling into alpha_override_options_after_change.
31785 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31786 Chris Jones <chrisj@nvidia.com>
31787 Joshua Conner <jconner@nvidia.com>
31789 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31790 linking of crtfastmath.o.
31791 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31793 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31795 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31796 (cstore<mode>4_unsigned_imm): New expander.
31797 (cstore<mode>4): Remove empty constraint strings. Use the new
31800 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31803 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31806 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31808 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31810 2015-05-06 Alan Modra <amodra@gmail.com>
31813 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31814 (UNSPEC_NOP): Define.
31815 (reload_vsx_from_gpr<mode>): Add missing DONE.
31816 (reload_gpr_from_vsx<mode>): Likewise.
31817 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31818 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31820 2015-05-06 Christian Bruel <christian.bruel@st.com>
31823 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31824 align_jumps, align_functions into aarch64_override_options_after_change.
31826 2015-05-06 Richard Biener <rguenther@suse.de>
31828 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31829 vect_transform_slp_perm_load to check if we support a permutation
31830 for basic-block vectorization.
31832 2015-05-06 Nick Clifton <nickc@redhat.com>
31834 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31835 used, even if it is not being used as a frame pointer.
31837 2015-05-05 Jason Merrill <jason@redhat.com>
31839 * dwarf2out.c (gen_member_die): Don't emit anything for an
31840 anonymous class constructor.
31842 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31844 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31845 that it reflects the block structure.
31846 (afdo_propagate_edge): Likewise.
31847 (afdo_calculate_branch_prob): Likewise.
31848 (afdo_annotate_cfg): Likewise.
31849 * cfgcleanup.c (equal_different_set_p): Likewise.
31850 (try_crossjump_to_edge): Likewise.
31851 * cgraph.c (cgraph_node::verify_node): Likewise.
31852 * cgraphunit.c (expand_all_functions): Likewise.
31853 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31854 (exact_dependency_1): Likewise.
31855 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31856 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31857 * gensupport.c (process_define_subst): Likewise.
31858 * lto-wrapper.c (merge_and_complain): Likewise.
31859 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31860 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31861 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31862 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31863 * tree-vect-loop.c (vectorizable_reduction): Likewise.
31864 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31865 * tree-vect-stmts.c (vectorizable_shift): Likewise.
31866 * tree-vrp.c (vrp_finalize): Likewise.
31867 * tree.c (variably_modified_type_p): Likewise.
31869 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
31871 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31872 on darwin12 and later.
31873 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31874 file to pass -rdynamic on darwin12 and later.
31875 * config/darwin.opt (rdynamic): Add.
31877 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31879 * doc/extend.texi (C Extensions): Update menu for moved Variable
31880 Attributes and Type Attributes sections.
31882 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31885 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31886 if rep_8byte stringop strategy was specified for 32-bit target.
31888 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
31891 * config/i386/i386.md (vector convert to float spltiter): Check for
31892 xmm16+, when splitting scalar float conversion.
31893 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31895 2015-05-05 Nick Clifton <nickc@redhat.com>
31897 * config/msp430/msp430-opts.h (enum msp430_regions): New.
31898 * config/msp430/msp430.c (msp430_override_options): Complain if
31899 -mcode-region or -mdata-region is used on a non MSP430X.
31900 (msp430_section_attr): New function. Checks lower, upper and
31902 (msp430_attribute_table): Add lower, upper and either.
31903 (gen_prefix): New function. Generates a prefix for a section
31905 (msp430_select_section): New function - handles the choice of
31906 section for an object. Takes into account memory region
31907 attributes and options.
31908 (msp430_function_section): Use gen_prefix.
31909 (TARGET_SECTION_TYPE_FLAGS): Define.
31910 (msp430_section_type_flags): New function.
31911 (TARGET_ASM_UNIQUE_SECTION): Define.
31912 (msp430_unique_section): New function.
31913 (msp430_output_aligned_decl_common): New function.
31914 (msp430_do_not_relax_short_jumps): New function.
31915 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31917 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31918 * config/msp430/msp430-protos.h
31919 (msp430_do_not_relax_short_jumps): New prototype.
31920 (msp430_output_aligned_decl_common): New prototype.
31921 * config/msp430/msp430.md (length): New attribute.
31922 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31923 then use a long code sequence for short jumps.
31924 * config/msp430/msp430.opt (mcode-region): New.
31925 (mdata-region): New.
31926 * doc/invoke.texi: Document new options.
31927 * doc/extend.texi: Document new attributes.
31929 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31931 * config/aarch64-protos.h (struct cpu_branch_cost): New.
31932 (tune_params): Add field branch_costs.
31933 (aarch64_branch_cost): Declare.
31934 * config/aarch64.c (generic_branch_cost): New.
31935 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31936 (cortexa53_tunings): Likewise.
31937 (cortexa57_tunings): Likewise.
31938 (thunderx_tunings): Likewise.
31939 (xgene1_tunings): Likewise.
31940 (aarch64_branch_cost): Define.
31941 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31943 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31945 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31946 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31947 * config/i386/i386.md: Ditto.
31948 * config/i386/winnt.c: Ditto.
31950 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31952 * doc/extend.texi (__atomic Builtins): Move implementation details
31953 to the end of the description, rewrite opening paragraphs, state
31954 difference with __sync builtins, state C11/C++11 assumptions,
31955 weaken itemized descriptions, add explanation of memory model
31956 behaviour, expand description of compare-exchange, simplify text.
31958 2015-05-05 Renlin Li <renlin.li@arm.com>
31960 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31962 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
31964 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31965 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31966 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31967 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31968 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31969 * configure: Regenerate.
31970 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31971 * doc/install.texi (aarch64*-*-*): Document new
31972 --enable-fix-cortex-a53-843419 option.
31973 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31974 and -mno-fix-cortex-a53-843419 options.
31976 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31979 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31981 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
31983 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31984 fix overactive TYPE_MIN_VALUE check and add FIXME for type
31985 compatibility problems.
31987 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31989 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31991 (cbranchsi4_reg): New.
31992 * config/microblaze/microblaze.c
31993 (microblaze_expand_conditional_branch_reg): New.
31994 * config/microblaze/microblaze-protos.h
31995 (microblaze_expand_conditional_branch_reg): New prototype.
31997 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31999 * config/microblaze/microblaze.md (peephole2): New.
32001 2015-05-04 Jeff Law <law@redhat.com>
32004 2015-05-04 Jeff Law <law@redhat.com>
32006 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32007 simplifier to narrow arithmetic.
32008 * generic-match-head.c: (types_match, single_use): New functions.
32009 * gimple-match-head.c: (types_match, single_use): New functions.
32011 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32014 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32015 (split_branches): Likewise.
32017 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
32019 * common.opt (fdelete-null-pointer-checks): Init to -1.
32020 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32021 override flag_delete_null_pointer_checks default.
32022 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32023 behavior re address zero. Better document target-specific behavior.
32024 (-fisolate-errneous-paths-dereference): Mention relationship to
32025 -fdelete-null-pointer-checks.
32027 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32029 PR tree-optimization/65984
32030 * ubsan.c: Include tree-cfg.h.
32031 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32032 stmt_could_throw_p test, rename can_throw variable to ends_bb.
32034 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32036 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32037 to CONST_DOUBLE_P predicate.
32038 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32039 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32040 allow only operands that satisfy standard_sse_constant_p predicate.
32041 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32042 to CONST_DOUBLE_P predicate.
32044 2015-05-04 Jeff Law <law@redhat.com>
32046 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32047 simplifier to narrow arithmetic.
32048 * generic-match-head.c: (types_match, single_use): New functions.
32049 * gimple-match-head.c: (types_match, single_use): New functions.
32051 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
32053 * config/arm/arm.c: Restore bootstrap.
32055 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32057 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32058 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32059 as CONST_WIDE_INT, not CONST_DOUBLE.
32060 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32061 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32062 (ix86_find_base_term): Do not check for CONST_DOUBLE.
32063 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32064 (ix86_build_signbit_mask): Rewrite using wide ints.
32065 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32066 (ix86_rtx_costs): Handle CONST_WIDE_INT.
32067 (find_constant): Ditto.
32068 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32069 using gen_int_mode.
32070 * config/i386/predicates.md (x86_64_immediate_operand)
32071 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32072 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32073 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32074 (const0_operand): Also match const_wide_int.
32075 (constm1_operand): Ditto.
32076 (const1_operand): Ditto.
32078 2015-05-04 Richard Biener <rguenther@suse.de>
32080 PR tree-optimization/65965
32081 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32082 store groups at gaps.
32084 2015-05-04 Richard Biener <rguenther@suse.de>
32086 PR tree-optimization/65935
32087 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32088 then make sure to apply that swapping to the IL.
32090 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32092 * Makefile.in (PATCHLEVEL_c): New variable.
32093 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32094 expand the same way as if DEVPHASE_c was non-empty.
32096 2015-05-04 Kai Tietz <ktietz@redhat.com>
32099 * lto-wrapper.c (run_gcc): Open filename
32102 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
32104 * doc/extend.texi (Variable Attributes, Type Attributes): Move
32105 sections up in file, to immediately after the Function Attributes
32108 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
32110 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32112 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32114 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32115 (insert_partition_copy_on_edge): Adjust.
32116 (insert_rtx_to_part_on_edge): Likewise.
32117 (insert_part_to_rtx_on_edge): Likewise.
32119 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32121 * function.c (set_return_jump_label): Change type of argument to
32123 * function.h (set_return_jump_label): Adjust.
32125 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32127 * reload.h (struct reg_equivs_t): Change type of init to
32129 * ira.c (fix_reg_equiv_init): Adjust.
32130 * reload1.c (eliminate_regs_1): Likewise.
32131 (init_eliminable_invariants): Likewise.
32133 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32135 * cselib.c (fp_setter_insn): Take a rtx_insn *.
32136 * cselib.h (fp_setter_insn): Adjust.
32138 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32140 * recog.c (struct validate_replace_src_data): Change type of
32141 insn field to rtx_insn *.
32142 (validate_replace_src_group): Change type of argument to rtx_insn *.
32143 * recog.h (validate_replace_src_group): Adjust.
32145 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32147 * haifa-sched.c: Change the type of some variables to rtx_insn *.
32148 * sched-deps.c: Likewise.
32149 * sched-int.h: Likewise.
32150 * sched-rgn.c: Likewise.
32151 * sel-sched.c: Likewise.
32153 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32156 * config/i386/i386.c: Change the type of some arguments to
32158 * config/arm/arm.c: Likewise.
32160 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32162 * lra-constraints.c: Change type of some arguments to rtx_insn *.
32164 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32166 * regcprop.c (kill_autoinc_value): Change type of argument to
32169 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32171 * genrecog.c (print_subroutine): Adjust.
32172 * recog.c (get_bool_attr_mask_uncached): Likewise.
32173 * recog.h (struct recog_data_d): Change the type of insn to
32176 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32178 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32180 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32182 * df-problems.c (df_set_note): Change type of argument to
32185 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32187 * builtins.c (expand_builtin_trap): Change type of local
32188 variable to rtx_insn *.
32189 (add_sched_insns_for_speculation): Likewise.
32190 (ix86_emit_save_regs): Likewise.
32191 (get_scratch_register_on_entry): Likewise.
32192 (ix86_emit_restore_reg_using_pop): Likewise.
32193 (ix86_emit_leave): Likewise.
32194 (ix86_emit_restore_regs_using_mov): Likewise.
32195 (ix86_expand_epilogue): Likewise.
32197 (rl78_alloc_physical_registers_umul): Likewise.
32198 * cselib.c (discard_useless_locs): Likewise.
32199 (cselib_invalidate_regno): Likewise.
32200 (cselib_invalidate_mem): Likewise.
32201 * function.c (expand_function_start): Likewise.
32202 (emit_use_return_register_into_block): Likewise.
32203 * gcse.c: Likewise.
32204 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32205 * ifcvt.c (noce_get_alt_condition): Likewise.
32206 * loop-doloop.c (doloop_condition_get): Likewise.
32207 * lra-constraints.c (inherit_in_ebb): Likewise.
32208 * modulo-sched.c (sms_schedule_by_order): Likewise.
32209 * recog.c (next_insn_tests_no_inequality): Likewise.
32210 * reorg.c (emit_delay_sequence): Likewise.
32211 (update_reg_dead_notes): Likewise.
32212 (fix_reg_dead_note): Likewise.
32213 (fill_slots_from_thread): Likewise.
32214 (delete_computation): Likewise.
32216 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
32218 * doc/extend.texi (Variable Attributes): Add menu and proper
32219 @nodes to subsections. Move Microsoft Windows attributes to
32220 their own subsection.
32221 (Type Attributes): Reorganize introduction to remove duplicate
32222 list of attributes. Add menu and proper @nodes to subsections.
32223 Alphabetize the main table of common attributes.
32225 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
32227 * match.pd: New simplification patterns.
32228 (x + (x & 1)) -> ((x + 1) & ~1)
32229 (x & ~(x & y)) -> ((x & ~y))
32230 (x | ~(x | y)) -> ((x | ~y))
32232 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32234 * target.def (attribute_table): Mention that struct attribute_spec
32235 is defined in tree-core.h rather than tree.h
32236 * doc/tm.texi: Regenerate.
32238 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
32240 * genrecog.c (test): Rename to rtx_test. Update rest of file
32243 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
32245 PR translation/65959
32246 * params.h (DEFPARAM): Rename msgid to nocmsgid.
32248 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32250 * config/aarch64/aarch64-protos.h (tune_params):
32251 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32252 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32253 Return value depending on target.
32254 (generic_tunings): Initialize new target settings.
32255 (cortexa53_tunings): Likewise.
32256 (cortexa57_tunings): Likewise.
32257 (thunderx_tunings): Likewise.
32258 (xgene1_tunings): Likewise.
32260 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32262 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32263 Make Cortex-A53 shift costs more accurate.
32265 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32267 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32270 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32272 * config/aarch64/aarch64.c (aarch64_rtx_costs):
32273 Calculate cost of op0 and op1 in PLUS and MINUS cases.
32275 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32277 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32278 Add cost of op0 in the compare-with-fpzero case.
32280 2015-04-30 David Malcolm <dmalcolm@redhat.com>
32282 * builtins.c (fold_builtin_1): Remove spurious second
32284 * cgraph.h (symtab_node::get_availability): Likewise.
32285 * opts.c (common_handle_option): Remove spurious second semicolon.
32286 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32287 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32289 2015-04-30 Caroline Tice <cmtice@google.com>
32291 PR gcov-profile/65929
32292 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32293 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32294 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32295 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32296 * doc/tm.texi: Regenerate.
32297 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
32298 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32299 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
32300 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32302 2015-04-30 Marek Polacek <polacek@redhat.com>
32304 * varasm.c (handle_cache_entry): Fix logic.
32306 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32308 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32309 (*extrsi5_insn_uxtw_alt): Likewise.
32310 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32311 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32314 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32316 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32319 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32321 * config/aarch64/aarch64.md
32322 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32323 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32325 appropriately. Handle alternative EON form.
32327 2015-04-30 Renlin Li <renlin.li@arm.com>
32329 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32330 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32332 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32335 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32336 -fstrict-aliasing boundaries.
32338 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32340 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32341 and [SU]MNEGL patterns.
32343 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32345 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32346 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32347 combined arithmetic-shift ops. Properly handle all shift and extend
32348 operations that can occur in combination with PLUS/MINUS.
32349 Rename maybe_fma to compound_p.
32350 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32351 arithmetic and shift operations.
32353 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32355 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32356 rather than arith_shift cost when costing ADD/MINUS of an
32359 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32362 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32365 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32367 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32368 are for the same position.
32370 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32372 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32374 (vectorize_loops): Use it.
32376 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32378 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32379 for aggregate types.
32380 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32381 type to be non_ODR.
32382 * tree.c (need_assembler_name_p): Compute mangled name for
32383 non-fundamental types and integer types.
32385 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32387 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32389 * expr.c (expand_expr_real_2): Likewise.
32391 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32393 * tree.c (build_common_builtin_nodes): Do not build
32394 __builtin_alloca_with_align as equivalent of library alloca.
32396 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32398 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32399 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32401 * tree.c: Include print-tree.h and ipa-utils.h
32402 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32403 (free_lang_data_in_cgraph): Call verify_type.
32404 (verify_type_variant): New function.
32405 (verify_type): New function.
32406 * tree.h (verify_type): Declare.
32408 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32410 * config/mips/mips-cpus.def: (mips4): Change default processor
32411 from PROCESSOR_R8000 to PROCESSOR_R10000.
32413 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32415 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32416 la/jalr instead of jal.
32418 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32421 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32422 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32423 (setcc+movzbl peephole2): Check also clobbered reg.
32424 (setcc+andl peephole2): Ditto.
32426 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32429 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32430 (main): Set it depending on "-foffload-abi=[...]".
32431 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32434 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32437 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32438 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32439 Flip lane index back at assembly time for bigendian.
32441 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32443 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32444 * gimplify.c (gimplify_omp_workshare): Use it.
32446 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32448 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32449 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32451 * genrecog.c: Rewrite most of the code except for the third page.
32453 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32455 * inchash.h, inchash.c: Include bconfig.h for build objects.
32456 * Makefile.in (build/inchash.o): New rule.
32458 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32461 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32462 number in type attribute expression.
32464 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32466 * loop-iv.c (canon_condition): Generalize to all types of integer
32469 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32471 * gimple-walk.c: Prune duplicate or unneeded includes.
32472 (walk_gimple_asm): Only call parse_input_constraint or
32473 parse_output_constraint if their findings are used.
32474 Honour parse_input_constraint and parse_output_constraint
32477 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32479 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32481 2015-04-29 Tom de Vries <tom@codesourcery.com>
32483 PR tree-optimization/65893
32484 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32487 2015-04-29 Richard Biener <rguenther@suse.de>
32489 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32490 compute GROUP_SIZE for basic-block SLP.
32491 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32492 take into account gaps.
32493 (vect_get_mask_element): Properly reject references to previous
32495 (vect_transform_slp_perm_load): Likewise.
32497 2015-04-29 Christian Bruel <christian.bruel@st.com>
32500 * config/i386/i386.c (ix86_default_align): New function.
32501 (ix86_override_options_after_change): Call ix86_default_align.
32502 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32503 (ix86_override_options_after_change): New function.
32505 2015-04-28 Jeff Law <law@redhat.com>
32507 * tree-ssa-dom.c (record_equality); Fix comment typos.
32509 2015-04-28 Tom de Vries <tom@codesourcery.com>
32511 PR tree-optimization/65887
32512 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32514 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32516 * doc/extend.texi (Declaring Attributes of Functions): Split into
32517 subsections by target. Alphabetize the table of common attributes.
32518 Rewrite some of the introductory text to reflect the new structure.
32519 Update some cross-references to point to the new subsections.
32520 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32521 duplicate copies in the discussion of function, label, and type
32524 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32527 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32529 2015-04-28 Jason Merrill <jason@redhat.com>
32532 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32533 (finalize_type_size): Respect TYPE_USER_ALIGN.
32534 (layout_type) [ARRAY_TYPE]: Likewise.
32536 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32538 * config/arm/arm.md (*arm_movt): Fix type attribute.
32539 (*cmpsi_shiftsi): Likewise.
32540 (*cmpsi_shiftsi_swp): Likewise.
32541 (*movsicc_insn): Likewise.
32542 (*cond_move): Likewise.
32543 (*if_plus_move): Likewise.
32544 (*if_move_plus): Likewise.
32545 (*if_arith_move): Likewise.
32546 (*if_move_arith): Likewise.
32547 (*if_shift_move): Likewise.
32548 (*if_move_shift): Likewise.
32549 (*arm_movtas_ze): Likewise.
32550 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32551 redundancy and type attribute.
32552 (*thumb2_movsi_insn): Fix type attribute.
32553 (*thumb2_addsi_short): Likewise.
32554 (thumb2_addsi3_compare0): Likewise.
32555 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32556 attributes accordingly.
32558 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32561 * function.c (pad_to_arg_alignment): Add parentheses.
32563 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32565 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32566 libgcc/config/frv/elf-lib.h.
32568 2015-04-28 Tom de Vries <tom@codesourcery.com>
32570 * tree-call-cdce.c: Fix example in header comment.
32572 2015-04-28 Richard Biener <rguenther@suse.de>
32574 PR tree-optimization/62283
32575 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32576 fails fatally and we are vectorizing a basic-block simply
32577 cause the child to be constructed piecewise.
32578 (vect_analyze_slp_cost_1): Adjust.
32579 (vect_detect_hybrid_slp_stmts): Likewise.
32580 (vect_bb_slp_scalar_cost): Likewise.
32581 (vect_get_constant_vectors): For piecewise constructed
32582 constants place them after the last def.
32583 (vect_get_slp_defs): Adjust.
32584 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32585 externals for basic-block vectorization.
32587 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32590 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32592 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32593 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32594 (AARCH64_TUNE_FMA_STEERING): Likewise.
32595 * config/aarch64/aarch64-cores.def: Set
32596 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32597 FMUL/FMADD instructions.
32598 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32599 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32600 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32601 * config/aarch64/cortex-a57-fma-steering.h: New file.
32602 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32604 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32606 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32608 2015-04-28 Richard Biener <rguenther@suse.de>
32610 PR tree-optimization/65851
32611 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32612 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32613 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32614 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32615 (ccp_visit_phi_node): Adjust.
32616 (evaluate_stmt): For simplifications to SSA names return its
32617 lattice value if that isn't VARYING. Return immediately when
32618 simplified to a constant.
32619 (visit_assignment): Adjust.
32620 (ccp_visit_stmt): Likewise.
32622 2015-04-28 Tom de Vries <tom@codesourcery.com>
32624 PR tree-optimization/65818
32625 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32628 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32630 * calls.c (save_fixed_argument_area): Don't check
32631 ARGS_GROW_DOWNWARD with the preprocessor.
32632 (restore_fixed_argument_area): Likewise.
32633 (mem_overlaps_already_clobbered_arg_p): Likewise.
32634 (check_sibcall_argument_overlap): Likewise.
32635 (expand_call): Likewise.
32636 (emit_library_call_value_1): Likewise.
32637 (store_one_arg): Likewise.
32638 * function.c (assign_parms): Likewise.
32639 (locate_and_pad_parm): Likewise.
32640 (pad_to_arg_alignment): Likewise.
32641 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32643 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32645 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32646 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32647 * calls.c (save_fixed_argument_area): Don't chekc if
32648 ARGS_GROW_DOWNWARD is defined.
32649 (restore_fixed_argument_area): Likewise.
32650 (mem_overlaps_already_clobbered_arg_p): Likewise.
32651 (check_sibcall_argument_overlap): Likewise.
32652 (expand_call): Likewise.
32653 (emit_library_call_value_1): Likewise.
32654 (store_one_arg): Likewise.
32655 * function.c (assign_parms): Likewise.
32656 (locate_and_pad_parm): Likewise.
32657 (pad_to_arg_alignment): Likewise.
32658 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32660 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32662 * defaults.h (gen_epilogue): New function.
32663 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32665 * cfgrtl.c (cfg_layout_finalize): Likewise.
32666 * df-scan.c: Likewise.
32667 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32668 (reposition_prologue_and_epilogue_notes): Likewise.
32669 * reorg.c (find_end_label): Likewise.
32670 * toplev.c: Likewise.
32672 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32674 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32675 * defaults.h (gen_simple_return): New function.
32676 (gen_simple_return): Likewise.
32677 (HAVE_return): Add default definition to false.
32678 (HAVE_simple_return): Likewise.
32679 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32680 HAVE_return and HAVE_simple_return are defined.
32681 * function.c (gen_return_pattern): Likewise.
32682 (convert_jumps_to_returns): Likewise.
32683 (thread_prologue_and_epilogue_insns): Likewise.
32684 * reorg.c (find_end_label): Likewise.
32685 (dbr_schedule): Likewise.
32686 * shrink-wrap.c: Likewise.
32687 * shrink-wrap.h: Likewise.
32689 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32691 * defaults.h (EPILOGUE_USES): Add default definition of false.
32692 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32693 * resource.c (init_resource_info): Likewise.
32695 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32697 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32699 * dwarf2out.c (field_byte_offset): REmove check if
32700 PCC_BITFIELD_TYPE_MATTERS is defined.
32701 * stor-layout.c (layout_decl): Likewise.
32702 (update_alignment_for_field): Likewise.
32703 (place_field): Likewise.
32705 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32707 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32709 * regrename.c (check_new_reg_p): Remove check if
32710 HARD_REGNO_RENAME_OK is defined.
32711 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32713 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32715 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32716 * cse.c (fold_rtx): Likewise.
32717 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32718 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32719 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32720 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32721 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32722 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32723 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32724 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32725 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32726 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32728 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32729 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32730 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32731 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32732 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32733 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32734 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32735 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32736 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32737 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32738 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32739 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32740 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32741 * doc/tm.texi: Regenerate.
32742 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32743 either true or false.
32745 2015-04-27 Jeff Law <law@redhat.com>
32747 PR tree-optimization/65217
32748 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32749 of them has a single use, make sure it is the LHS of the implied
32752 2015-04-28 Alan Modra <amodra@gmail.com>
32755 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32756 (offsettable_ok_by_alignment): Use minimum of decl and toc
32757 pointer alignment. Replace dead code with assertion.
32758 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32759 case if size exceeds toc pointer alignment.
32760 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32761 (rs6000_emit_move): Likewise.
32762 * configure.ac: Add linker toc pointer alignment check.
32763 * configure: Regenerate.
32764 * config.in: Regenerate.
32766 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32768 * config.gcc: Add h8300-*-linux.
32769 * config/h8300/linux.h: New.
32770 * config/h8300/t-linux: New.
32771 * config/h8300/h8300.c (h8300_option_override): Normal mode
32772 is not supported for h8300-*-linux.
32773 (h8300_file_start): Target priority change.
32774 (get_shift_alg): Likewise.
32775 (h8300_shift_need_scratch_p): Likewise.
32776 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32777 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32779 2015-04-27 Caroline Tice <cmtice@google.com>
32781 * final.c (final_scan_insn): Output cold_function_name as function
32783 * varasm.c (cold_function_name): Make global.
32784 (assemble_start_function): Re-set cold_function_name.
32785 (assemble_end_function): Output cold partition size.
32786 * varasm.h (cold_function_name): Declare global.
32788 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32790 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32791 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32793 (*movxi_internal_avx512f): Ditto.
32794 (define_split): Check for xmm16+, when splitting scalar float_extend.
32795 (*extendsfdf2_mixed): Use "v" constraint.
32796 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32797 (*truncdfsf_fast_sse): Use "v" constraint.
32798 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32799 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32800 (define_peephole2): Check for xmm16+, when converting scalar
32802 (define_peephole2): Check for xmm16+, when converting scalar
32804 (*fop_<mode>_comm_mixed): Use "v" constraint.
32805 (*fop_<mode>_comm_sse): Ditto.
32806 (*fop_<mode>_1_mixed): Ditto.
32807 (*sqrt<mode>2_sse): Ditto.
32808 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32810 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32812 * combine.c (simplify_if_then_else): Use std::swap instead
32813 of manually swapping.
32814 (known_cond): Likewise.
32815 (simplify_comparison): Likewise.
32817 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32820 * config/rs6000/htm.md: Remove all define_expands.
32821 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32822 UNSPECV_HTM_TABORTWCI): Remove.
32823 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32824 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32825 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32826 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32827 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32828 tabortwci_internal): Remove define_insns.
32829 (tabort<wd>c, tabort<wd>ci): New define_insns.
32830 (tabort): Use gpc_reg_operand.
32831 (tcheck): Remove operand.
32832 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32833 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32835 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32836 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32837 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32838 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32839 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32840 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32841 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32842 (tcheck): Remove builtin argument.
32843 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32845 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32846 tabortdc and tabortdci builtins when not in 64-bit mode.
32847 Modify code to handle the loss of the HTM define_expands.
32848 Emit code to copy the CR register to TARGET.
32849 (htm_init_builtins): Modify code to handle the loss of the HTM
32851 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32852 (RS6000_BTC_64BIT): Likewise.
32853 (RS6000_BTC_CR): New macro.
32854 * doc/extend.texi: Update documentation for htm builtins.
32856 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32858 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32859 of manually swapping.
32860 (simplify_associative_operation): Likewise.
32861 (simplify_binary_operation): Likewise.
32862 (simplify_plus_minus): Likewise.
32863 (simplify_relational_operation): Likewise.
32864 (simplify_ternary_operation): Likewise.
32866 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32868 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32869 (xs_hi_nonmemory_operand): Remove error.
32870 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32871 general_operand rather than xs_hi_general_operand.
32873 2015-04-27 Richard Biener <rguenther@suse.de>
32875 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32876 (record_equivalences_from_stmt): Valueize rhs.
32877 (record_equality): Canonicalize x and y order via
32878 tree_swap_operands_p. Do not swap operands for same loop depth.
32880 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
32884 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32885 Add hint how to use own spec file.
32887 2015-04-27 Jakub Jelinek <jakub@redhat.com>
32889 PR tree-optimization/65875
32890 * tree-vrp.c (update_value_range): If in is_new case setting
32891 old_vr to VR_VARYING, also set new_vr to it. Remove
32892 old_vr->type == VR_VARYING test.
32893 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32894 SSA_PROP_INTERESTING if update_value_range returned true,
32895 but new range is VR_VARYING.
32897 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
32899 * combine.c (sign_extend_short_imm): New.
32900 (set_nonzero_bits_and_sign_copies): Use above new function for sign
32901 extension of src short immediate.
32902 (reg_nonzero_bits_for_combine): Likewise for tem.
32904 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32906 * stor-layout.c (self_referential_component_ref_p): New predicate.
32907 (copy_self_referential_tree_r): Use it.
32908 (self_referential_size): Punt for simple operations directly involving
32909 self-referential component references.
32910 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32912 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32914 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32916 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32918 * vec.h (vec): Make splice arguments const. Update definitions
32921 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
32923 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32926 2015-04-26 Tom de Vries <tom@codesourcery.com>
32928 PR tree-optimization/65826
32929 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32931 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
32933 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32934 (*madd3<mode>): Ditto.
32935 (*msub4<mode>): Ditto.
32936 (*msub3<mode>): Ditto.
32937 (*nmadd4<mode>): Ditto.
32938 (*nmadd3<mode>): Ditto.
32939 (*nmadd4<mode>_fastmath): Ditto.
32940 (*nmadd3<mode>_fastmath): Ditto.
32941 (*nmsub4<mode>): Ditto.
32942 (*nmsub3<mode>): Ditto.
32943 (*nmsub4<mode>_fastmath): Ditto.
32944 (*nmsub3<mode>_fastmath): Ditto.
32946 2015-04-24 Jason Merrill <jason@redhat.com>
32949 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32950 down when building TYPE_CANONICAL.
32951 (build_pointer_type_for_mode): Likewise.
32953 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
32955 * genrecog.c (validate_pattern): Check matching constraint refers
32956 to a lower numbered operand.
32958 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32961 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32962 save to independent variables use the Save attribute. This will
32963 allow these options to be modified with the #pragma/attribute
32965 (-mallow-movmisalign): Likewise.
32966 (-mallow-df-permute): Likewise.
32967 (-msched-groups): Likewise.
32968 (-malways-hint): Likewise.
32969 (-malign-branch-targets): Likewise.
32970 (-mvectorize-builtins): Likewise.
32971 (-msave-toc-indirect): Likewise.
32973 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32974 can be set via the #pragma/attribute target support.
32975 (rs6000_opt_vars): Likewise.
32976 (rs6000_inner_target_options): If VSX was set, also set
32977 -mno-avoid-indexed-addresses.
32979 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32981 * config/arm/iterators.md (shiftable_ops): Rename to...
32982 (SHIFTABLE_OPS): ... This. Update use in comments.
32983 (ior_xor): Rename to...
32984 (IOR_XOR): ... This.
32985 (vqh_ops): Rename to...
32986 (VQH_OPS): ... This.
32987 (vqhs_ops): Rename to...
32988 (VQHS_OPS): ... This.
32989 (rshifts): Rename to...
32990 (RSHIFTS): ... This.
32991 (returns): Rename to...
32992 (RETURNS): ... This.
32993 * config/arm/arm.md: Update uses of the above.
32994 * config/arm/neon.md: Likewise.
32996 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32998 * config.host (case ${host}): Add aarch64*-*-linux case.
32999 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33000 fields to all the cores.
33001 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33002 Add MCPU_MTUNE_NATIVE_SPECS.
33003 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33004 field to all extensions.
33005 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33006 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33007 Adjust definition of AARCH64_OPT_EXTENSION.
33008 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33009 (MCPU_MTUNE_NATIVE_SPECS): Define.
33010 * config/aarch64/driver-aarch64.c: New file.
33011 * config/aarch64/x-arch64: New file.
33012 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33015 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33016 Wei Mi <wmi@google.com>
33018 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33019 * config/i386/i386.c (extract_base_offset_in_addr): New function.
33020 (ix86_operands_ok_for_move_multiple): Ditto.
33021 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33022 (movlpd/movhpd to movupd peephole2): Ditto.
33024 2015-04-24 Marek Polacek <polacek@redhat.com>
33027 * input.h (from_macro_expansion_at): Define.
33030 * doc/invoke.texi: Update description of -Wlogical-op.
33032 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33034 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33035 ternary operator in fprintf and harmonize spacing.
33037 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33039 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33040 Mark operand1 commutative.
33042 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33044 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33045 input operands in memory.
33046 (*vec_concatv2si_sse4_1): Ditto.
33047 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33048 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33050 (vec_extract_hi_v32hi): Ditto.
33051 (vec_extract_hi_v64hi): Ditto.
33052 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33054 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33055 Steven Bosscher <steven@gcc.gnu.org>
33057 PR rtl-optimization/34503
33058 * cprop.c (cprop_reg_p): New.
33059 (hash_scan_set): Use above function to check if register can be
33061 (find_avail_set): Return up to two sets, one whose source is a
33062 register and one whose source is a constant. Sets are returned in an
33063 array passed as parameter rather than as a return value.
33064 (cprop_insn): Use a do while loop rather than a goto. Try each of the
33065 sets returned by find_avail_set, starting with the one whose source is
33066 a constant. Use cprop_reg_p to check if register can be propagated.
33067 (do_local_cprop): Use cprop_reg_p to check if register can be
33069 (implicit_set_cond_p): Likewise.
33071 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33073 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33074 (sem_function::equals): IGNORED_NODES parameter is now unused;
33075 update call of equals_private.
33076 (sem_function::equals_private): Do not call equals_wpa; skip
33077 gimple body matching if there is no body.
33078 (sem_function::init): Add logic to hash tthunk info.
33079 (sem_function::parse): Also parse thunks.
33080 * ipa-icf.h (equals_private): Update declaration.
33082 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33084 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33085 asterisk from name so this can be generated directly.
33086 (*altivec_stvx_<mode>_internal): Likewise.
33087 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33088 that this is never called during or after reload/lra.
33089 (rs6000_frame_related): Remove split_reg
33090 argument and logic that references it.
33091 (emit_frame_save): Remove last parameter from call to
33092 rs6000_frame_related.
33093 (rs6000_emit_prologue): Remove last parameter from eight calls to
33094 rs6000_frame_related. Force generation of stvx instruction for
33095 Altivec register saves. Remove split_reg handling, which is no
33097 (rs6000_emit_epilogue): Force generation of lvx instruction for
33098 Altivec register restores.
33100 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33102 * config/rs6000/rs6000.opt (mcrypto): Change option description to
33103 match category changes in ISA 2.07B.
33105 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33107 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33109 (cmp_op, cmp_type): New code attributes.
33110 (NEON_VCMP, NEON_VACMP): New int iterators.
33111 (cmp_op_unsp): New int attribute.
33112 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33113 (neon_vceq<mode>): Delete.
33114 (neon_vc<cmp_op><mode>_insn): New pattern.
33115 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33116 (neon_vcgeu<mode>): Delete.
33117 (neon_vcle<mode>): Likewise.
33118 (neon_vclt<mode>: Likewise.
33119 (neon_vcage<mode>): Likewise.
33120 (neon_vcagt<mode>): Likewise.
33121 (neon_vca<cmp_op><mode>): New define_expand.
33122 (neon_vca<cmp_op><mode>_insn): New pattern.
33123 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33125 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33127 * tree.h (attribute_value_equal): Declare.
33128 * tree.c (attribute_value_equal): Export.
33130 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33132 * ipa-icf.c (sem_item::compare_attributes): New function.
33133 (sem_item::compare_referenced_symbol_properties): Compare variable
33135 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33136 (sem_function::param_used_p): New function.
33137 (sem_function::equals_wpa): Fix attribute comparsion; match
33138 parameter type codes; do not compare paremter flags when
33139 they are not used; compare edge flags; compare indirect calls.
33140 (sem_item::update_hash_by_addr_refs): Hash reference type.
33141 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33142 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33143 reference use type.
33144 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33145 * ipa-icf.h (compare_attributes, param_used_p): Declare.
33147 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33149 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33151 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33152 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33153 (sem_item::compare_referenced_symbol_properties): New.
33154 (sem_item::hash_referenced_symbol_properties): New.
33155 (sem_item::compare_cgraph_references): Rename to ...
33156 (sem_item::compare_symbol_references): ... this one; use
33157 compare_referenced_symbol_properties.
33158 (sem_function::equals_wpa): Do not compare
33159 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33160 DECL_IS_OPERATOR_NEW; compare pointer sizes.
33161 (sem_item::update_hash_by_addr_refs): Call
33162 hash_referenced_symbol_properties.
33163 (sem_item::update_hash_by_local_refs): Cleanup.
33164 (sem_function::merge): Do not mix up symbol properties.
33165 (sem_variable::equals_wpa): Use compare_symbol_references.
33166 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33167 (sem_item::hash_referenced_symbol_properties): New.
33168 (sem_item::compare_symbol_references): New.
33169 (sem_item::compare_cgraph_references): Remove.
33171 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
33174 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33175 Emit size of local.
33177 2015-04-23 Nick Clifton <nickc@redhat.com>
33179 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33180 ATTRIBUTE_UNUSED to x parameter.
33181 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33183 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33185 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33186 TARGET_CRYPTO to TARGET_P8_VECTOR>
33187 (crypto_vpermxor_<mode>): Likewise.
33188 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33189 (BU_CRYPTO_3A): Likewise.
33190 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33191 (BU_CRYPTO_OVERLOAD_3A): New #define.
33192 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33193 (VPMSUMH): Likewise.
33194 (VPMSUMW): Likewise.
33195 (VPMSUMD): Likewise.
33196 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33197 (VPERMXOR_V4SI): Likewise.
33198 (VPERMXOR_V8HI): Likewise.
33199 (VPERMXOR_V16QI): Likewise.
33200 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33201 BU_CRYPTO_OVERLOAD_2A.
33202 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33203 BU_CRYPTO_OVERLOAD_3A.
33204 * config/rs6000/rs6000.opt (mcrypto): Change description of
33207 2015-04-23 Richard Biener <rguenther@suse.de>
33209 * passes.def: Remove copy propagation passes run directly after CCP.
33210 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33212 (ccp_visit_phi_node): Rework to handle first executable edge
33215 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
33217 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33218 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33219 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33220 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33221 (thumb_legimitimize_reload_address): Remove.
33222 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33224 (thumb_legimitimize_reload_address): Remove.
33226 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33228 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33230 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33232 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33234 (store_multiple): Likewise.
33236 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33238 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33239 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33240 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33241 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33242 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33243 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33244 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33245 Specify issue_rate value.
33246 (arm_issue_rate): Look up issue rate from tuning structs. Remove
33247 large switch statement.
33248 (arm_marvell_pj4_tune): New struct.
33249 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33252 2015-04-23 Richard Biener <rguenther@suse.de>
33254 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33255 (vect_find_last_store_in_slp_instance): Rename to ...
33256 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33257 (vect_analyze_slp_cost_1): Use vector_load for constant defs
33258 and vec_construct for external defs when estimating prologue cost.
33259 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33260 Compute costs here only when vectorizing loops.
33261 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33262 have been determined.
33263 (vect_schedule_slp_instance): Simplify vectorized code placement
33264 and prepare for in-BB external defs.
33265 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33266 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33267 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33269 (vect_model_load_cost): Likewise.
33270 (vectorizable_store): Instead add it here.
33271 (vectorizable_load): Likewise.
33272 (vect_is_simple_use): Dump def type textually.
33274 2015-04-23 Richard Biener <rguenther@suse.de>
33276 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33277 * cfgloop.c (verify_loop_structure): Verify the root loop node.
33278 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33279 instead of get_eh_region_from_lp_number.
33280 * loop-init.c (fix_loop_structure): If we removed a loop, reset
33283 2015-04-23 Anton Blanchard <anton@samba.org>
33285 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33286 need for -mprofile-kernel to save LR to stack.
33288 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33290 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33292 (insn_is_swappable_p): Return 1 for a convert from double to
33293 single precision when all of its uses are splats of BE element
33296 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
33298 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33300 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33303 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
33304 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33305 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33307 (rs6000_builtin_mask_for_load): Return 0 for targets with
33308 efficient unaligned VSX accesses so that the vectorizer will use
33309 direct unaligned loads.
33310 (rs6000_builtin_support_vector_misalignment): Always return true
33311 for targets with efficient unaligned VSX accesses.
33312 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33313 stores on targets with efficient unaligned VSX accesses is almost
33314 always the same as the cost of an aligned load or store, so model
33316 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33317 unaligned vectors if we have efficient unaligned VSX accesses.
33318 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33319 undocumented option.
33321 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33324 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33326 * config.gcc (LIBC_MUSL): New tm_defines macro.
33327 * config/linux.h (OPTION_MUSL): Define.
33328 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33329 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33330 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33332 * config/linux.opt (mmusl): New option.
33333 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33334 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33336 * configure: Regenerate.
33338 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33340 * config.gcc (LIBC_MUSL): New tm_defines macro.
33341 * config/linux.h (OPTION_MUSL): Define.
33342 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33343 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33344 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33346 * config/linux.opt (mmusl): New option.
33347 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33348 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33350 * configure: Regenerate.
33352 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33354 * doc/invoke.texi (-fsanitize-sections): Update description.
33355 * asan.c (set_sanitized_sections): Parse incoming arg.
33356 (section_sanitized_p): Support wildcards.
33358 2015-04-22 Tom de Vries <tom@codesourcery.com>
33360 PR tree-optimization/65823
33361 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33362 equality between ap_copy and ap.
33364 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33367 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33369 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33372 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33374 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33377 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33378 remove already contained t-files.
33380 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33382 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33383 Remove unneeded forward declarations.
33384 (suitable_for_tail_call_opt_p): Commentary typo fix.
33386 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33388 * varasm.c (emit_bss): Remove redundant guard.
33390 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33392 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33394 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33396 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33398 2015-04-22 Hale Wang <hale.wang@arm.com>
33399 Terry Guo <terry.guo@arm.com>
33401 PR rtl-optimization/64818
33402 * combine.c (can_combine_p): Don't combine user-specified
33403 register if it is in an asm input.
33405 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33408 * passes.def (early_optimizations): Add pass_dse.
33410 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33412 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33413 * reorg.c (redundant_insn): Remove ifdef
33414 INSN_REFERENCES_ARE_DELAYED.
33415 * resource.c (mark_referenced_resources): Likewise.
33417 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33419 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33420 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33421 * resource.c (mark_set_resources): Likewise.
33423 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33425 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33426 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33427 (flow_find_head_matching_sequence): Likewise.
33428 (try_head_merge_bb): Likewise.
33429 * combine.c (can_combine_p): Likewise.
33430 (try_combine): Likewise.
33431 (distribute_notes): Likewise.
33432 * df-problems.c (can_move_insns_across): Likewise.
33433 * final.c (final): Likewise.
33434 * gcse.c (insert_insn_end_basic_block): Likewise.
33435 * ira.c (find_moveable_pseudos): Likewise.
33436 * reorg.c (try_merge_delay_insns): Likewise.
33437 (fill_simple_delay_slots): Likewise.
33438 (fill_slots_from_thread): Likewise.
33439 * sched-deps.c (sched_analyze_2): Likewise.
33441 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33443 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33444 PIC_OFFSET_TABLE_REGNUM.
33446 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33448 * alias.c (init_alias_target): Remove ifdef
33449 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33450 * df-scan.c (df_insn_refs_collect): Likewise.
33451 (df_get_regular_block_artificial_uses): Likewise.
33452 (df_get_eh_block_artificial_uses): Likewise.
33453 (df_get_entry_block_def_set): Likewise.
33454 (df_get_exit_block_use_set): Likewise.
33455 * emit-rtl.c (gen_rtx_REG): Likewise.
33456 * ira.c (ira_setup_eliminable_regset): Likewise.
33457 * reginfo.c (init_reg_sets_1): Likewise.
33458 * regrename.c (rename_chains): Likewise.
33459 * reload1.c (reload): Likewise.
33460 (eliminate_regs_in_insn): Likewise.
33461 * resource.c (mark_referenced_resources): Likewise.
33462 (init_resource_info): Likewise.
33464 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33466 * defaults.h (MASK_RETURN_ADDR): New definition.
33467 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33470 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33472 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33473 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33474 RETURN_ADDR_OFFSET.
33475 (expand_builtin_frob_return_addr): Likewise.
33477 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33479 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33480 (try_redirect_by_replacing_jump): Likewise.
33481 (rtl_tidy_fallthru_edge): Likewise.
33482 * combine.c (insn_a_feeds_b): Likewise.
33483 (find_split_point): Likewise.
33484 (simplify_set): Likewise.
33485 * cprop.c (cprop_jump): Likewise.
33486 * cse.c (cse_extended_basic_block): Likewise.
33487 * df-problems.c (can_move_insns_across): Likewise.
33488 * function.c (emit_use_return_register_into_block): Likewise.
33489 * haifa-sched.c (sched_init): Likewise.
33490 * ira.c (find_moveable_pseudos): Likewise.
33491 * loop-invariant.c (find_invariant_insn): Likewise.
33492 * lra-constraints.c (curr_insn_transform): Likewise.
33493 * postreload.c (reload_combine_recognize_const_pattern):
33495 * reload.c (find_reloads): Likewise.
33496 * reorg.c (delete_scheduled_jump): Likewise.
33497 (steal_delay_list_from_target): Likewise.
33498 (steal_delay_list_from_fallthrough): Likewise.
33499 (redundant_insn): Likewise.
33500 (fill_simple_delay_slots): Likewise.
33501 (fill_slots_from_thread): Likewise.
33502 (delete_computation): Likewise.
33503 * sched-rgn.c (add_branch_dependences): Likewise.
33505 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33507 * genconfig.c (main): Always define HAVE_cc0.
33508 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33510 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33511 (flow_find_head_matching_sequence): Likewise.
33512 (try_head_merge_bb): Likewise.
33513 * cfgrtl.c (rtl_merge_blocks): Likewise.
33514 (try_redirect_by_replacing_jump): Likewise.
33515 (rtl_tidy_fallthru_edge): Likewise.
33516 * combine.c (do_SUBST_MODE): Likewise.
33517 (insn_a_feeds_b): Likewise.
33518 (combine_instructions): Likewise.
33519 (can_combine_p): Likewise.
33520 (try_combine): Likewise.
33521 (find_split_point): Likewise.
33523 (simplify_set): Likewise.
33524 (distribute_notes): Likewise.
33525 * cprop.c (cprop_jump): Likewise.
33526 * cse.c (cse_extended_basic_block): Likewise.
33527 * df-problems.c (can_move_insns_across): Likewise.
33528 * final.c (final): Likewise.
33529 (final_scan_insn): Likewise.
33530 * function.c (emit_use_return_register_into_block): Likewise.
33531 * gcse.c (insert_insn_end_basic_block): Likewise.
33532 * haifa-sched.c (sched_init): Likewise.
33533 * ira.c (find_moveable_pseudos): Likewise.
33534 * loop-invariant.c (find_invariant_insn): Likewise.
33535 * lra-constraints.c (curr_insn_transform): Likewise.
33536 * optabs.c (prepare_cmp_insn): Likewise.
33537 * postreload.c (reload_combine_recognize_const_pattern):
33539 * reload.c (find_reloads): Likewise.
33540 (find_reloads_address_1): Likewise.
33541 * reorg.c (delete_scheduled_jump): Likewise.
33542 (steal_delay_list_from_target): Likewise.
33543 (steal_delay_list_from_fallthrough): Likewise.
33544 (try_merge_delay_insns): Likewise.
33545 (redundant_insn): Likewise.
33546 (fill_simple_delay_slots): Likewise.
33547 (fill_slots_from_thread): Likewise.
33548 (delete_computation): Likewise.
33549 (relax_delay_slots): Likewise.
33550 * sched-deps.c (sched_analyze_2): Likewise.
33551 * sched-rgn.c (add_branch_dependences): Likewise.
33553 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33555 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33556 that is trivially ded on non cc0 targets.
33557 (simplify_set): Likewise.
33558 (mark_used_regs_combine): Likewise.
33559 * cse.c (new_basic_block): Likewise.
33560 (fold_rtx): Likewise.
33561 (cse_insn): Likewise.
33562 (cse_extended_basic_block): Likewise.
33563 (set_live_p): Likewise.
33564 * rtlanal.c (canonicalize_condition): Likewise.
33565 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33567 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33569 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33570 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33571 * final.c: Likewise.
33572 * jump.c: Likewise.
33573 * recog.c: Likewise.
33574 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33575 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33577 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33579 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33580 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33581 * builtins.c (expand_builtin): Remove check if
33582 EH_RETURN_DATA_REGNO is defined.
33583 * df-scan.c (df_bb_refs_collect): Likewise.
33584 (df_get_exit_block_use_set): Likewise.
33585 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33586 * ira-lives.c (process_bb_node_lives): Likewise.
33587 * lra-lives.c (process_bb_lives): Likewise.
33589 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33591 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33592 FIRST_PSEUDO_REG): New.
33593 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33594 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33595 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33596 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33597 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33598 (FIRST_INT_REG): New.
33599 (LAST_INT_REG): New.
33600 (FIRST_*_REG): Define using *_REG.
33601 (LAST_*_REG): Ditto.
33602 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33603 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33604 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33606 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33608 * expmed.c: (synth_mult): Only assume overlapping
33609 shift with previous steps in alg_sub_t_m2 case.
33611 2015-04-21 Richard Biener <rguenther@suse.de>
33613 PR tree-optimization/65650
33614 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33615 transitions involving copies.
33616 (set_lattice_value): Adjust for copy lattice state.
33617 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33618 if that doesn't dominate the merge point.
33619 (bit_value_unop): Adjust what we treat as varying mask.
33620 (bit_value_binop): Likewise.
33621 (bit_value_assume_aligned): Likewise.
33622 (evaluate_stmt): When we simplified to a SSA name record a copy
33623 instead of dropping to varying.
33624 (visit_assignment): Simplify.
33626 * gimple-match.h (gimple_simplify): Add another callback.
33627 * gimple-fold.c (fold_stmt_1): Adjust caller.
33628 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33629 for the 2nd callback.
33630 * gimple-match-head.c (gimple_simplify): Add a callback that is
33631 used to valueize the stmt operands and use it that way.
33633 2015-04-21 Richard Biener <rguenther@suse.de>
33635 PR tree-optimization/65788
33636 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33638 2015-04-21 Richard Biener <rguenther@suse.de>
33640 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33641 vec_construct cost by vec_stmt_cost.
33643 2015-04-21 Richard Biener <rguenther@suse.de>
33645 * cfghooks.h (create_basic_block): Replace with two overloads
33646 for RTL and GIMPLE.
33647 (split_block): Likewise.
33648 * cfghooks.c (split_block): Rename to ...
33649 (split_block_1): ... this.
33650 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33651 (split_block_after_labels): Call split_block_1.
33652 (create_basic_block): Rename to ...
33653 (create_basic_block_1): ... this.
33654 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33655 (create_empty_bb): Call create_basic_block_1.
33656 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33657 split_block_after_labels.
33658 * omp-low.c (expand_parallel_call): Likewise.
33659 (expand_omp_target): Likewise.
33660 (simd_clone_adjust): Likewise.
33661 * tree-chkp.c (chkp_get_entry_block): Likewise.
33662 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33663 create_basic_block overload.
33664 (cgraph_node::expand_thunk): Likewise.
33665 * tree-cfg.c (make_blocks): Likewise.
33666 (handle_abnormal_edges): Likewise.
33667 * tree-inline.c (copy_bb): Likewise.
33669 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33671 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33673 (*xor_one_cmplsidi3_ze): Likewise.
33675 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33677 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33678 use df_remove_problem rather than manually removing problems, leaving
33679 holes in df->problems_in_order[].
33681 2015-04-21 Tom de Vries <tom@codesourcery.com>
33683 PR tree-optimization/65802
33684 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33686 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33688 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33690 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33691 at '.'. Assert that there's enough space for everything.
33693 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33695 PR tree-optimization/64950
33697 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33700 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33703 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33705 PR rtl-optimization/64916
33706 * cfgcleanup.c (values_equal_p): New function.
33707 (can_replace_by): Use it.
33709 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33712 * doc/invoke.texi ([-Wnarrowing]): Update.
33714 2015-04-20 Jeff Law <law@redhat.com>
33716 PR tree-optimization/65658
33717 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33718 redundant test for GIMPLE_ASSIGN in last change.
33720 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33722 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33723 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33724 (legitimize_tls_address): Ditto.
33725 (ix86_expand_move): Ditto.
33726 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33727 (ix86_expand_unary_operator): Ditto.
33728 * config/i386/predicates.md (index_register_operand): Ditto.
33730 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33732 * reorg.c (try_merge_delay_insns): Improve correctness checking
33733 for targets with multiple delay slots.
33735 2015-04-20 Jeff Law <law@redhat.com>
33737 PR tree-optimization/65658
33738 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33741 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33743 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33744 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33747 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33750 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33752 2015-04-20 Richard Biener <rguenther@suse.de>
33754 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33755 * gimple-fold.c (gimple_build_valueize): New function.
33756 (gimple_build): Always use gimple_build_valueize as valueize hook.
33758 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33761 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33762 and overwrite variable parts if <= 1/2 the elements are variable.
33764 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33766 PR rtl-optimization/65805
33767 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33768 Don't use difference of offset and previous offset if
33769 update_sp_offset is non-zero.
33770 (eliminate_regs_in_insn): Ditto.
33771 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33772 lra_eliminate_regs_1 call.
33773 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33775 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33777 * hash-table.h: Remove version of hash_table that stored value_type *.
33778 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33779 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33780 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33781 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33782 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33783 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33784 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33785 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33786 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33787 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33788 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33789 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33790 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33791 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33792 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33793 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33795 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33796 Jakub Jelinek <jakub@redhat.com>
33799 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33800 subsequent SH_NONE operand does not overwrite an existing *special
33802 (adjust_extract): Handle case where a vec_extract operation is
33803 wrapped in a PARALLEL.
33805 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33808 * config/i386/i386.c (ix86_binds_local_p): Define only if
33809 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33811 2015-04-17 Jeff Law <law@redhat.com>
33813 PR tree-optimization/47679
33814 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33815 * tree-ssa-scopedtables.c: New file.
33816 * tree-ssa-scopedtables.h: New file.
33817 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33818 (const_and_copies): Change name/type.
33819 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33820 (record_const_or_copy_1): Similarly.
33821 (restore_vars_to_original_value): Similarly.
33822 (pass_dominator::execute): Create and destroy const_and_copies table.
33823 (thread_across_edge): Update passing of const_and_copies.
33824 (record_temporary_equivalence): Use method calls rather than
33825 manipulating const_and_copies directly.
33826 (record_equality, cprop_into_successor_phis): Similarly.
33827 (dom_opt_dom_walker::before_dom_children): Similarly.
33828 (dom_opt_dom_walker::after_dom_children): Similarly.
33829 (eliminate_redundant_computations): Similarly.
33830 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33831 (record_temporary_equivalence): Likewise.
33832 (invalidate_equivalences): Likewise.
33833 (record_temporary_equivalences_from_phis): Update due to type
33834 change of const_and_copies. Use method calls rather than
33835 manipulating the stack directly.
33836 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33837 (thread_through_normal_block, thread_across_edge): Likewise.
33838 (thread_across_edge): Likewise.
33839 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33840 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33842 (identify_jump_threads): Update due to type change of equiv_stack.
33843 (finalize_jump_threads): Delete the equiv_stack when complete.
33845 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33847 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33848 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33849 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33851 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33854 * config.gcc: Exit with a comment when we do not have a major version
33855 number for the FreeBSD target.
33857 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33860 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33861 maybe_allows_mem bitfields.
33862 (maybe_allows_none_start, maybe_allows_none_end,
33863 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33864 maybe_allows_mem_end): New variables.
33865 (compute_maybe_allows): New function.
33866 (add_constraint): Use it to initialize maybe_allows_reg and
33867 maybe_allows_mem fields.
33868 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33869 is_address constraints such that those that allow neither mem nor
33870 reg come first, then those that only allow reg but not mem, then
33871 those that only allow mem but not reg, then the rest.
33872 (write_allows_reg_mem_function): New function.
33873 (write_tm_preds_h): Call it.
33874 * stmt.c (parse_output_constraint, parse_input_constraint): Use
33875 the generated insn_extra_constraint_allows_reg_mem function
33876 instead of always setting *allows_reg = true; *allows_mem = true;
33877 for unknown extra constraints.
33879 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33882 * output.h (default_binds_local_p_3): New.
33883 * varasm.c (default_binds_local_p_3): Make it public. Take an
33884 argument to indicate if common symbol may be local. If common
33885 symbol may be local, treat non-external variable as defined
33887 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33888 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33889 * config/i386/i386.c (ix86_binds_local_p): New.
33890 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33891 ix86_binds_local_p.
33893 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33896 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33897 trying mem_loc_descriptor on XEXP (rtl, 0).
33899 2015-04-17 Martin Liska <mliska@suse.cz>
33901 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33902 Release symbol_compare_collection.
33903 * ipa-reference.c: Add TODO that a vector should be released.
33905 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33908 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33909 to new AVR-LibC file layout (bug #44574).
33910 (*avrlibc_devicelib): Same.
33911 * config/avr/avr-mcus.def: Adjust comments.
33912 * config/avr/avr.opt (nodevicelib): Adjust help.
33914 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
33916 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33918 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
33921 * gimplify.c (gimplify_init_constructor): Always emit a
33922 side-effecting constructor.
33924 2015-04-17 Tom de Vries <tom@codesourcery.com>
33926 PR tree-optimization/64950
33927 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33928 in cfun->curr_properties.
33929 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33930 if we generate an IFN_VA_ARG.
33931 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33932 function if PROP_gimple_lva is not set in src function.
33934 2015-04-17 Tom de Vries <tom@codesourcery.com>
33935 Michael Matz <matz@suse.de>
33937 PR tree-optimization/64950
33938 * gimple-iterator.c (update_modified_stmts): Remove static.
33939 * gimple-iterator.h (update_modified_stmts): Declare.
33940 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33941 (gimplify_va_arg_internal): New function.
33942 (gimplify_va_arg_expr): Use IFN_VA_ARG.
33943 * gimplify.h (gimplify_va_arg_internal): Declare.
33944 * internal-fn.c (expand_VA_ARG): New unreachable function.
33945 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33946 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33947 (expand_ifn_va_arg): New function.
33948 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33949 (pass_stdarg::execute): Call expand_ifn_va_arg.
33950 (pass_data_lower_vaarg): New pass_data.
33951 (pass_lower_vaarg): New gimple_opt_pass.
33952 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33953 (make_pass_lower_vaarg): New function.
33954 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33955 properties_required field.
33956 * passes.def (all_passes): Add pass_lower_vaarg.
33957 * tree-pass.h (PROP_gimple_lva): Add define.
33958 (make_pass_lower_vaarg): Declare.
33960 2015-04-17 Tom de Vries <tom@codesourcery.com>
33962 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33963 * calls.c (call_expr_flags): Same.
33965 2015-04-17 Tom de Vries <tom@codesourcery.com>
33967 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33968 (pass_stdarg::execute): ... here.
33970 2015-04-17 Tom de Vries <tom@codesourcery.com>
33971 Michael Matz <matz@suse.de>
33973 * tree-cfg.c (make_blocks_1): Factor out of ...
33974 (make_blocks): ... here.
33975 (make_edges_bb): Factor out of ...
33976 (make_edges): ... here.
33977 (gimple_find_sub_bbs): New function.
33978 * tree-cfg.h (gimple_find_sub_bbs): Declare.
33980 2015-04-17 Tom de Vries <tom@codesourcery.com>
33982 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33984 2015-04-17 Yury Gribov <y.gribov@samsung.com>
33986 * asan.c (set_sanitized_sections): New function.
33987 (section_sanitized_p): Ditto.
33988 (asan_protect_global): Optionally sanitize user-defined
33990 * asan.h (set_sanitized_sections): Declare new function.
33991 * common.opt (fsanitize-sections): New option.
33992 * doc/invoke.texi (-fsanitize-sections): Document new option.
33993 * opts-global.c (handle_common_deferred_options): Handle new
33996 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33999 * dwarf2out.c (loc_list_from_tree): Return NULL
34000 for DEBUG_EXPR_DECL.
34002 2015-04-17 Christian Bruel <christian.bruel@st.com>
34004 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34007 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34009 * ira-color.c (setup_left_conflict_sizes_p): Do not process
34010 node itself when computing left conflict subnode size.
34012 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34014 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34015 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34016 *fop_<mode>_1_sse using enabled attribute. Use
34017 register_mixssei387nonimm_operand operand 1 predicate. Change
34018 alternative 3 constraints from "x" to "v".
34020 2015-04-16 Richard Biener <rguenther@suse.de>
34022 PR tree-optimization/65774
34023 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34024 bit-value tracking on.
34026 2015-04-16 Richard Biener <rguenther@suse.de>
34028 PR tree-optimization/64277
34029 * tree-vrp.c (check_array_ref): Fix anti-range handling,
34030 simplify upper bound handling.
34031 (search_for_addr_array): Simplify.
34032 (check_array_bounds): Handle ADDR_EXPRs here.
34033 (check_all_array_refs): Simplify.
34035 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34037 * config/i386/i386.c (print_reg): Rewrite function.
34039 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34041 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34042 Invert the condition.
34044 2015-04-16 Renlin Li <renlin.li@arm.com>
34046 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34047 simplifications for UNSIGNED_FLOAT.
34049 2015-04-16 Nick Clifton <nickc@redhat.com>
34051 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34053 (enum rl78_cpu_type): New.
34054 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34055 (umulhi3_shift_virt): Remove m constraint from operand 1.
34056 (umulqihi3_virt): Likewise.
34057 * config/rl78/rl78.c (rl78_option_override): Add code to process
34058 -mcpu and -mmul options.
34059 (rl78_alloc_physical_registers): Add code to handle divhi and
34060 divsi valloc attributes.
34061 (set_origin): Likewise.
34062 * config/rl78/rl78.h (RL78_MUL_G14): Define.
34063 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34064 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34066 (ASM_SPEC): Pass -mcpu on to assembler.
34067 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34068 (mulqi3_rl78): Likewise.
34069 (mulhi3_g13): Likewise.
34070 (mulhi3): Generate the G13 or G14 versions of the insn directly.
34071 (mulsi3): Likewise.
34072 (mulhi3_g14): Add clobbers of AX and BC.
34073 (mulsi3_g14): Likewise.
34074 (mulsi3_g13): Likewise.
34075 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34076 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34077 * config/rl78/rl78.opt (mmul): Initialise value to
34079 (mcpu): New option.
34080 (m13, m14, mrl78): New option aliases.
34081 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34082 (MULTILIB_DIRNAMES): Add g13 and g14.
34083 * doc/invoke.texi: Document -mcpu and -mmul options.
34085 2015-04-16 Richard Biener <rguenther@suse.de>
34087 * tree-ssa-ccp.c (likely_value): See if we have operands that
34088 are marked as never simulate again and return CONSTANT in this
34090 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34091 not have any operands that will be simulated again as
34092 not being simulated again.
34094 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
34096 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34097 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34098 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34100 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34102 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34103 *float<SWI48:mode><MODEF:mode>2_sse.
34104 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34106 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34109 2015-04-15 Tom de Vries <tom@codesourcery.com>
34112 * function.c (push_dummy_function): New function.
34113 (init_dummy_function_start): Use push_dummy_function.
34114 (pop_dummy_function): New function. Factored out of ...
34115 (expand_dummy_function_end): ... here.
34116 * function.h (push_dummy_function, pop_dummy_function): Declare.
34117 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34118 pop_dummy_function.
34119 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34121 2015-04-15 Jeff Law <law@redhat.com>
34123 PR tree-optimization/47679
34124 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34125 need for forward declaration in upcoming changes.
34126 (record_conditions, record_edge_info): Likewise.
34128 PR rtl-optimization/42522
34129 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34130 SIGN_EXTRACT as a whole object rather than simplifying
34133 2015-04-15 Jakub Jelinek <jakub@redhat.com>
34136 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34137 and GIMPLE_PREDICT use break instead of return true. For
34138 GIMPLE_EH_DISPATCH, compare dispatch region.
34140 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
34142 * doc/extend.texi (__sync Builtins): Simplify some text. Update
34143 details about the implementation. Make clear preference for
34144 __atomic builtins. Reduce possibility of future change.
34146 2015-04-15 Nick Clifton <nickc@redhat.com>
34148 * config/rx/rx.opt (mallow-string-insns): New option.
34149 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34150 builtin if string instructions are denied.
34151 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34152 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34154 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34155 * config/rx/rx.md (movstr): Enable pattern only if string
34156 instructions are allowed.
34157 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34158 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34159 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34160 (MULTILIB_DIRNAMES): Add no-strings.
34161 * doc/invoke.texi: Document -mno-allow-string-insns.
34163 2015-04-15 Alan Modra <amodra@gmail.com>
34167 PR middle-end/36043
34168 * calls.c (load_register_parameters): Don't load past end of
34169 mem unless suitably aligned.
34171 2015-04-15 Nick Clifton <nickc@redhat.com>
34173 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34174 decrement instruction as being frame related.
34175 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34177 If zero extending a function address enclose the operation in
34179 (rl78_preferred_reload_class): New function.
34180 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34181 * config/rl78/rl78.md: Remove useless constraints in expanders.
34182 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34183 (mulhi3_rl78): Likewise.
34184 (mulhi3_g13): Likewise.
34185 (mulsi3_rl78): Likewise.
34186 (es_addr): Move to before the multiply patterns.
34188 2015-04-15 Alan Modra <amodra@gmail.com>
34190 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34191 and sequence_stack. Add seq.
34192 (seq_stack): Delete.
34193 * function.c (prepare_function_start): Don't access x_last_insn.
34194 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34195 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34196 * emit_rtl.c (start_sequence, push_topmost_sequence,
34197 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34198 sequence accessors.
34199 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34200 remove_insn): Likewise. Simplify.
34201 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34202 and pop_topmost_sequence.
34203 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
34205 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34207 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
34210 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34213 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34215 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34216 (LEGACY_INT_REGNO_P): Ditto.
34217 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34218 (ANY_MASK_REG_P): Remove.
34219 (BND_REG_P): Rename from ANY_BND_REG_P.
34220 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34221 legacy integer registers. Do not handle MMX_REG_P in a special way.
34222 Merge 64byte and 32byte SSE handling.
34224 2015-04-14 Nick Clifton <nickc@redhat.com>
34226 * expr.c (expand_assignment): Force an address offset computation
34227 into a register before changing its mode.
34228 (expand_expr_real_1): Likewise.
34230 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
34232 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34233 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34234 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34235 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34236 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34237 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34238 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34239 and __aarch64_vget_lane_any.
34241 2015-04-14 Jakub Jelinek <jakub@redhat.com>
34243 PR rtl-optimization/65761
34244 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34245 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34247 2015-04-14 Richard Biener <rguenther@suse.de>
34249 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34250 (graphite_can_represent_scev): Use POINTER_TYPE_P.
34252 2015-04-14 Richard Biener <rguenther@suse.de>
34254 PR tree-optimization/65758
34255 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34257 (ccp_lattice_meet): Likewise.
34258 (bit_value_unop): Likewise.
34259 (bit_value_binop): Likewise.
34260 (bit_value_assume_aligned): Likewise.
34262 2015-04-14 Christian Bruel <christian.bruel@st.com>
34264 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34267 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
34269 PR tree-optimization/63387
34270 * match.pd ((x unord x) | (y unord y) -> (x unord y),
34271 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34273 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34275 * config/i386/predicates.md (any_QIreg_operand): Rename from
34276 q_regs_operand. Do not process subregs.
34277 (QIreg_operand): Use QI_REGNO_P predicate.
34278 (ext_QIreg_operand): Ditto.
34279 (ext_register_operand): Ditto.
34280 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34281 (AND splitters): Ditto.
34282 (AND with -65536 splitter): Add SWI48 mode for operand 0.
34283 (AND with -256 splitter): Use any_QIreg_operand predicate and
34284 SWI248 mode for operand 0.
34285 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34286 mode for operand 0.
34287 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34289 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
34291 * doc/plugins.texi: Rewrite first introductory paragraph.
34293 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34295 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34296 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34298 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34300 * ipa-profie.c (ipa_profile): Check number of parameters
34301 and possible polymorphic call targets before
34304 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
34306 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34307 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34309 2015-04-13 Richard Biener <rguenther@suse.de>
34311 PR tree-optimization/65204
34312 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34313 takens for bit-CCP.
34315 2015-04-13 Richard Biener <rguenther@suse.de>
34318 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34319 and cond_not_taken_branch_cost to 4 and 2.
34320 (bdver2_cost): Likewise.
34321 (bdver3_cost): Likewise.
34322 (bdver4_cost): Likewise.
34324 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34326 * hash-table.h (hash_table constructor): Add mem stats.
34327 (alloc_entries): Likewise.
34329 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34331 * ipa-cp.c (ipcp_driver): Relase prev_edge.
34332 * passes.c (execute_one_pass): Only add transform if pass has one.
34334 2015-04-12 Joseph Myers <joseph@codesourcery.com>
34336 * config/i386/i386.c (ix86_option_override_internal): Don't set
34337 -fprefetch-loop-arrays if optimizing for size.
34339 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34340 Gerald Pfeifer <gerald@pfeifer.com>
34342 * doc/contrib.texi (Contributors): Add Martin Jambor and
34345 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34347 * BASE-VER: Set to 6.0.0.
34349 PR tree-optimization/65747
34350 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34351 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34353 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34355 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34356 sentence. Improve grammar.
34358 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34360 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34362 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34365 * ipa-inline-transform.c (speculation_removed): Remove static var.
34366 (check_speculations): New function.
34367 (clone_inlined_nodes): Do not check spculations.
34368 (inline_call): Call check_speculations.
34369 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34370 consider non-invariants.
34372 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34373 Martin Liska <mliska@suse.cz>
34376 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34377 variable can not match.
34378 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34379 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34381 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34383 PR tree-optimization/65735
34384 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34385 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34386 same bb rather than just into the same phi node.
34387 (thread_through_normal_block): Adjust caller.
34389 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34391 * doc/contrib.texi (Contributors): Add Ira Rosen.
34393 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34395 * gcov.c (find_source): Fix miswording in error message.
34396 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34397 (ix86_expand_sse_comi_round): Fix typo in error message.
34399 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34401 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34403 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34405 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34407 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34410 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34411 Print bad_spills_num and insn_pseudos_num.
34413 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34416 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34417 when creating +1 values for SImode.
34419 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34422 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34425 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34426 Iain Sandoe <iain@codesourcery.com>
34429 * configure: Regenerate.
34431 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34434 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34436 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34438 * doc/contrib.texi (Contributors): Add John Marino.
34440 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34442 PR tree-optimization/65709
34443 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34444 TREE_TYPE (TREE_TYPE (t)).
34446 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34449 * lra-int.h (lra_bad_spill_regno_start): New.
34450 * lra.c (lra_bad_spill_regno_start): New.
34451 (lra): Set up lra_bad_spill_regno_start. Set up
34452 lra_constraint_new_regno_start unconditionally.
34453 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34456 2015-04-09 Marek Polacek <polacek@redhat.com>
34457 Jakub Jelinek <jakub@redhat.com>
34459 PR middle-end/65554
34460 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34461 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34464 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34466 PR rtl-optimization/65693
34467 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34470 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34473 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34474 device specs file if "device-specs%s" didn't resolve to a path.
34476 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34479 * config/i386/i386.c (fixup_modeless_constant): New.
34480 (ix86_expand_args_builtin): Fixup modeless constant operand.
34481 (ix86_expand_round_builtin): Ditto.
34482 (ix86_expand_special_args_builtin): Ditto.
34483 (ix86_expand_builtin): Ditto.
34485 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34488 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34489 any pow2 integer in between 2 and 0x80000000U inclusive.
34491 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34493 PR rtl-optimization/65693
34494 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34495 from an rtx_insn * to an rtx.
34496 (try_combine): Adjust both callers. Use it once more.
34498 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34500 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34501 (chkp_make_static_const_bounds): Search existing
34502 symbol by assembler name. Use make_decl_one_only.
34503 (chkp_get_zero_bounds_var): Remove node search which
34504 is now performed in chkp_make_static_const_bounds.
34505 (chkp_get_none_bounds_var): Likewise.
34507 2015-04-08 Michael Witten <mfwitten@gmail.com>
34509 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34512 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34514 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34516 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34518 * doc/extend.texi (__sync Builtins): Fix grammar.
34520 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34522 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34524 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34526 * varasm.c (emit_local): Move definition of align.
34528 2015-04-08 Julian Brown <julian@codesourcery.com>
34530 * config/nvptx/mkoffload.c (process): Support variable mapping.
34532 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34534 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34536 (alpha_write_one_linkage): Correct typo.
34538 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34540 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34542 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34544 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34546 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34548 * tree-chkp.h (chkp_insert_retbnd_call): New.
34549 * tree-chkp.c (chkp_insert_retbnd_call): New.
34550 * ipa-split.c (insert_bndret_call_after): Remove.
34551 (split_function): Use chkp_insert_retbnd_call.
34552 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34553 bounds for instrumented functions.
34555 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34558 * calls.c (initialize_argument_information): When producing tail
34559 call also turn SSA_NAMES passed by references to original PARM_DECLs
34561 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34564 * lra-remat.c (do_remat): Process input and non-input insn
34565 registers separately.
34567 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34570 * valtrack.c (debug_lowpart_subreg): New function.
34571 (dead_debug_insert_temp): Use it.
34573 PR middle-end/65680
34574 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34575 into signed HOST_WIDE_INT the same as negative bit_offset.
34577 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34579 * ipa-comdats.c (ipa_comdats): Visit all thunks
34580 to set proper comdat group.
34582 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34585 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34586 on constants for NEON VSTRUCT modes.
34588 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34589 Iain Sandoe <iain@codesourcery.com>
34592 * configure: Regenerate.
34594 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34597 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34598 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34599 that LFD is used to load double constants instead of LFS. Add
34600 defaults for all costs structures. Add comments for missing
34601 initialization fields.
34602 (size32_cost): Likewise.
34603 (size64_cost): Likewise.
34604 (rs64a_cost): Likewise.
34605 (mpccore_cost): Likewise.
34606 (ppc403_cost): Likewise.
34607 (ppc405_cost): Likewise.
34608 (ppc440_cost): Likewise.
34609 (ppc476_cost): Likewise.
34610 (ppc601_cost): Likewise.
34611 (ppc603_cost): Likewise.
34612 (ppc604_cost): Likewise.
34613 (ppc604e_cost): Likewise.
34614 (ppc620_cost): Likewise.
34615 (ppc630_cost): Likewise.
34616 (ppccell_cost): Likewise.
34617 (ppc750_cost): Likewise.
34618 (ppc7450_cost): Likewise.
34619 (ppc8540_cost): Likewise.
34620 (ppce300c2c3_cost): Likewise.
34621 (ppce500mc_cost): Likewise.
34622 (ppce500mc64_cost): Likewise.
34623 (ppce5500_cost): Likewise.
34624 (ppce6500_cost): Likewise.
34625 (titan_cost): Likewise.
34626 (power4_cost): Likewise.
34627 (power6_cost): Likewise.
34628 (power7_cost): Likewise.
34629 (power8_cost): Likewise.
34630 (ppca2_cost): Likewise.
34631 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34633 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34634 instead of XXLOR to copy SFmode to clear out dirty bits created
34635 when SFmode denormals are generated.
34636 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34637 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34639 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34641 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34642 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34643 * config/aarch64/aarch64-tune.md: Regenerate.
34645 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34647 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34648 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34649 * config/arm/arm-cores.def (exynos-m1): New core.
34650 * config/arm/arm-tune.md: Regenerate.
34651 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34652 * config/arm/bpabi.h: Likewise.
34654 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34656 * ipa-cp (set_single_call_flag): Remove too
34657 restrictive assert.
34659 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34661 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34662 GOMP_offload_unregister from the destructor.
34664 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34666 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34667 flags for instrumentation thunk.
34668 (chkp_produce_thunks): Likewise.
34670 2015-04-05 Martin Liska <mliska@suse.cz>
34673 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34674 has computed data structure.
34675 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34677 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34679 * invoke.texi (inline-unit-growth): Increase growth to 20%
34680 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34682 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34685 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34687 (lra_rematerialization_iter): New.
34688 * lra.c (lra): Initialize lra_rematerialization_iter.
34689 Stop updating lra_constraint_new_regno_start after switching of
34690 inheritance and rematerialization.
34691 * lra-remat.c (lra_rematerialization_iter): New.
34692 (lra_remat): Add printing pass iteration. Do rematerialization
34693 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34695 2015-04-04 Richard Biener <rguenther@suse.de>
34697 PR tree-optimization/64909
34698 PR tree-optimization/65660
34699 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34700 to take a cost vector for scalar iteration cost.
34701 (vect_get_single_scalar_iteration_cost): Likewise.
34702 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34703 Compute the scalar iteration cost into a cost vector.
34704 (vect_get_known_peeling_cost): Use the scalar cost vector to
34705 account for the cost of the peeled iterations.
34706 (vect_estimate_min_profitable_iters): Likewise.
34707 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34710 2015-04-04 Alan Modra <amodra@gmail.com>
34714 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34715 0.0 constant unless TARGET_VSX.
34716 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34719 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34722 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34725 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34728 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34729 speculative indirect edges to avoid ordering issue.
34731 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34734 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34736 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34738 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34739 TYPE_ARTIFICIAL on the .omp_data* types.
34741 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34743 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34744 instrumentation thunks.
34746 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34748 * config/i386/i386.c (ix86_expand_call): Avoid nested
34749 PARALLEL in returned call value.
34751 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34753 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34754 assembler name with original one.
34756 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34758 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34760 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34762 Revert parts of r216820.
34763 * config/i386/i386.md (movqi_internal): Correct type calculation
34764 for alternatives 3 and 5.
34766 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34768 PR preprocessor/61977
34769 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34770 predefine __vector/__bool/__pixel macros nor context sensitive
34771 macros for CLK_ASM.
34772 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34774 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34776 * config/pa/pa.c (pa_output_move_double): Directly handle register
34777 indexed memory operand. Simplify handling of scaled register indexed
34780 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34783 * config/i386/linux-common.h (MPX_SPEC): New.
34784 (CHKP_SPEC): Add MPX_SPEC.
34785 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34786 possible issues with '-z bndplt' support in linker.
34788 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34790 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34791 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34792 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34793 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34794 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34796 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34798 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34799 (atomic_load<mode>): Change operand 0 predicate to
34800 nonimmediate_operand and fix up the destination when needed.
34802 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34803 (atomic_store<mode>): Change operand 1 predicate to
34804 nonimmendate_operand and move the source to register when needed.
34806 (atomic_store<mode>_1): Use UNSPEC_STA.
34807 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34808 Fix moves from memory operand. Use UNSPEC_STA.
34810 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34812 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34813 not cross a MODESIZE boundary.
34814 (store_bit_field, extract_bit_field): Added assertions in the
34815 strict volatile bitfields code path.
34817 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34820 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34821 Increase args array size by one to avoid buffer overflow.
34823 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34825 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34827 * ipa-inline.c (edge_badness): Add wrapper penalty.
34828 (sum_callers): Move up.
34829 (inline_small_functions): Set single_caller.
34830 * ipa-inline.h (inline_summary): Add single_caller.
34831 * ipa-split.c (split_function): Set split_part.
34832 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34833 * cgraph.h (cgraph_node): Add split_part.
34835 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34838 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34839 Do not split operands 0 and operands 2 to halfmode.
34840 (atomic_compare_and_swap<mode>): Update for
34841 atomic_compare_and_swap<dwi>_doubleword changes.
34843 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34845 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34846 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34847 no caching is done.
34849 2015-03-31 Martin Liska <mliska@suse.cz>
34852 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34853 has already filled up function summary.
34854 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34856 2015-03-31 Richard Biener <rguenther@suse.de>
34858 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34861 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34863 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34865 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34866 (s390_asm_output_function_label): Adapt to new signature of
34867 s390_function_num_hotpatch_hw
34868 Optimise the code generating assembler output.
34869 Add comments to assembler file.
34871 2015-03-31 Richard Biener <rguenther@suse.de>
34873 PR middle-end/65626
34874 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34875 of the noreturn call so it is last and cleanup_control_flow_bb
34876 can do the CFG part.
34878 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
34881 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34882 same_comdat_group for external symbols.
34883 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34884 infinite same_comdat_group traversal loop.
34886 2015-03-31 Jakub Jelinek <jakub@redhat.com>
34889 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34890 automatically to $headers.
34892 2015-03-30 Jakub Jelinek <jakub@redhat.com>
34895 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34896 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34898 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34900 * ipa-prop.c (param_type_may_change_p): Likewise.
34901 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34902 (remove_unused_scope_block_p): Add in_ctor_dtor_block
34903 argument. Before inlining, preserve
34904 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34905 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
34907 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34909 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34912 * ipa-inline.c (edge_badness): Base denominator on callee's
34915 2015-03-27 Martin Jambor <mjambor@suse.cz>
34918 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34919 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34920 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34921 node_calling_single_call.
34922 * ipa-cp.c (count_callers): New function.
34923 (set_single_call_flag): Likewise.
34924 (initialize_node_lattices): Count callers and set single_flag_call if
34926 (incorporate_penalties): New function.
34927 (good_cloning_opportunity_p): Use it, dump new flags.
34928 (propagate_constants_topo): Set node_within_scc flag if appropriate.
34929 * doc/invoke.texi (ipa-cp-recursion-penalty,
34930 ipa-cp-single-call-pentalty): Document.
34932 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34935 * symtab.c (symtab_node::get_partitioning_class): Register vars
34937 * varpool.c (symbol_table::output_variables) Do not assemble unefined
34938 decls for non-symbols.
34940 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
34943 * output.h (default_binds_local_p_2): New.
34944 * varasm.c (default_binds_local_p_2): Renamed to ...
34945 (default_binds_local_p_3): This. Don't return true on protected
34946 data symbol if protected data may be external.
34947 (default_binds_local_p): Use default_binds_local_p_3.
34948 (default_binds_local_p_1): Likewise.
34949 (default_binds_local_p_2): New.
34950 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34951 default_binds_local_p_2 if TARGET_MACHO is undefined.
34953 2015-03-27 Jakub Jelinek <jakub@redhat.com>
34956 * config/i386/i386.c (legitimize_pic_address): If base
34957 is SYMBOL_REF or LABEL_REF using %rip addressing, force
34958 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34960 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34963 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34966 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34969 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34970 of optimized out indirect call.
34971 (redirect_to_unreachable): Always build symbol table node for
34972 BUILT_IN_UNREACHABLE
34974 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
34977 * ira-costs.c (record_reg_classes): Process all constraint string
34980 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
34982 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34986 * config/c6x/constraints.md (S3): New constraint.
34987 * config/c6x/c6x.md (real_jump): Use it.
34989 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34991 PR middle-end/65595
34992 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34993 do redirection if the call is not optimized out.
34995 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
34998 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34999 (fchkp-check-incomplete-type): Add LTO.
35000 (fchkp-zero-input-bounds-for-main): Likewise.
35001 (fchkp-first-field-has-own-bounds): Likewise.
35002 (fchkp-narrow-bounds): Likewise.
35003 (fchkp-narrow-to-innermost-array): Likewise.
35004 (fchkp-use-static-bounds): Likewise.
35005 (fchkp-use-static-const-bounds): Likewise.
35006 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35008 2015-03-27 Marek Polacek <polacek@redhat.com>
35010 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35012 2015-03-27 Marek Polacek <polacek@redhat.com>
35015 * ubsan.c (ubsan_create_edge): New function.
35016 (instrument_bool_enum_load): Call it.
35017 (instrument_nonnull_arg): Likewise.
35018 (instrument_nonnull_return): Likewise.
35019 (instrument_object_size): Likewise.
35021 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35023 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35026 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35029 * lto-streamer.h (class lto_location_cache): New.
35030 (struct data_in): Add location_cache.
35031 (lto_input_location): Update prototype.
35032 (stream_input_location_now): New.
35033 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35034 pointer to location.
35035 (stream_input_location): Update.
35036 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35037 (warn_odr): Apply location cache before warning.
35038 (lto_input_location): Update prototype.
35039 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35040 Use stream_input_location_now.
35041 * lto-streamer-in.c (lto_location_cache::current_cache): New static
35043 (lto_location_cache::cmp_loc): New function.
35044 (lto_location_cache::apply_location_cache): New function.
35045 (lto_location_cache::accept_location_cache): New function.
35046 (lto_location_cache::revert_location_cache): New function.
35047 (lto_location_cache::input_location): New function.
35048 (lto_input_location): Do location caching.
35049 (stream_input_location_now): New function.
35050 (input_eh_region, input_struct_function_base): Use
35051 stream_input_location_now.
35052 (lto_data_in_create): use new.
35053 (lto_data_in_delete): Use delete.
35054 * tree-streamer-in.c (unpack_ts_block_value_fields,
35055 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35056 lto_input_ts_exp_tree_pointers): Update for cached location api.
35058 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35061 * passes.def: Add pass_nothrow.
35062 * ipa-pure-const.c: (pass_data_nothrow): New.
35063 (pass_nothrow): New.
35064 (pass_nothrow::execute): New.
35065 (make_pass_nothrow): New.
35066 * tree-pass.h (make_pass_nothrow): Declare.
35068 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35070 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35071 edge to change by speculation resolution or redirection.
35072 (edge_set_predicate): Likewise.
35073 (inline_summary_t::duplicate): Likewise.
35074 (remap_edge_summaries): Likewise.
35076 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35078 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35080 (can_inline_edge_p): Relax option matching for always inline functions.
35082 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
35085 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35086 Check operand 4 and operand 0 for equality.
35087 (avx512f_vextract<shuffletype>32x4_1_maskm):
35088 Check operand 6 and operand 0 for equality.
35089 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35091 (vec_extract_hi_<mode>_maskm): Ditto.
35093 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35095 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35096 dead calls back to live.
35097 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35099 (cgraph_node::verify_node): ... here; verify only callee edges,
35101 * cif-code.def (CILK_SPAWN): New code.
35103 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35105 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35106 (edge_set_predicate): Use it to mark unreachable edges.
35107 (inline_summary_t::duplicate): Remove unnecesary code.
35108 (remap_edge_summaries): Likewise.
35109 (dump_inline_summary): Report contains_cilk_spawn.
35110 (compute_inline_parameters): Compute contains_cilk_spawn.
35111 (inline_read_section, inline_write_summary): Stream
35112 contains_cilk_spawn.
35113 * ipa-inline.c (can_inline_edge_p): Do not touch
35114 DECL_STRUCT_FUNCTION that may not be available;
35115 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35116 remove check for callee_fun->can_throw_non_call_exceptions and
35117 replace it by optimization attribute check; check for flag_exceptions.
35118 * ipa-inline-transform.c (inline_call): Maintain
35119 DECL_FUNCTION_PERSONALITY
35120 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35122 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35124 PR tree-optimization/65551
35125 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35126 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35128 2015-03-26 Richard Biener <rguenther@suse.de>
35130 PR middle-end/65555
35131 * tree-cfg.c (verify_gimple_call): Do not require a call to
35132 have no LHS if it wasn't recognized as control altering yet.
35134 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35136 PR tree-optimization/64715
35137 * passes.def: Add another instance of pass_object_sizes before ccp1.
35138 * tree-object-size.c (pass_object_sizes::execute): In
35139 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35140 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35141 __bos result and the computed constant. Remove redundant
35142 checks, obsoleted by gimple_call_builtin_p test.
35144 * var-tracking.c (variable_tracking_main_1): Don't track
35145 variables for targetm.no_register_allocation targets.
35147 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
35149 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35150 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35152 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
35155 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35156 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
35157 0.0 is correctly setup.
35158 (extenddftf2_internal): Likewise.
35160 2015-03-25 Sebastian Pop <s.pop@samsung.com>
35162 PR tree-optimization/65177
35163 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35165 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
35166 edges not adjacent on the path to the original code.
35168 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
35171 * doc/install.texi (Building a native compiler): Document new
35172 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
35173 configuration assumes that the host supports the linker plugin.
35175 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
35178 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35179 chain for generated call.
35181 2015-03-25 Richard Biener <rguenther@suse.de>
35183 * passes.c (pass_manager::execute_early_local_passes): Guard
35184 execution of pass_chkp_instrumentation_passes with
35185 flag_check_pointer_bounds.
35186 (pass_chkp_instrumentation_passes::gate): Likewise.
35188 2015-03-25 Martin Liska <mliska@suse.cz>
35190 PR tree-optimization/65538
35191 * symbol-summary.h (function_summary::~function_summary):
35192 Relese memory for allocated summaries.
35193 (function_summary::release): New function.
35195 2015-03-25 Jakub Jelinek <jakub@redhat.com>
35198 * lto-streamer-out.c (DFS::worklist): New struct.
35199 (DFS::worklist_vec): New data member.
35200 (DFS::next_dfs_num): Remove.
35201 (DFS::DFS): Rewritten using worklist instead of recursion,
35202 using most of code from DFS::DFS_write_tree.
35203 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35204 pass it to DFS_write_tree calls.
35205 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35206 quick initial checks push it into worklist_vec and return.
35208 2015-03-25 Richard Biener <rguenther@suse.de>
35210 PR middle-end/65519
35211 * genmatch.c (expr::gen_transform): Re-write to avoid
35212 using gimple_build.
35214 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35216 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35218 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35220 * config/arm/arm.opt (print_tune_info): New option.
35221 * config/arm/arm.c (arm_print_tune_info): New function.
35222 (arm_file_start): Call arm_print_tune_info.
35223 * config/arm/arm-protos.h (struct tune_params): Add comment.
35224 * doc/invoke.texi (@item -mprint-tune-info): New item.
35225 (-mtune): mention it in ARM Option Summary.
35227 2015-03-25 DJ Delorie <dj@redhat.com>
35229 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35232 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
35233 Martin Liska <mliska@suse.cz>
35235 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35236 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35237 (sem_item::add_type): New function.
35238 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35239 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35240 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35241 (sem_function::equals_wpa): Fix typo.
35242 * ipa-icf.h (sem_item::add_type): New function.
35243 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35246 2015-03-24 Jakub Jelinek <jakub@redhat.com>
35248 PR tree-optimization/65533
35249 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35250 with swapped operands, call vect_free_slp_tree on
35251 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35254 2015-03-24 Richard Biener <rguenther@suse.de>
35256 PR middle-end/65517
35257 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35258 for fixup if necessary.
35260 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
35262 * doc/extend.texi (Function Attributes): Add @cindex entries
35263 for all attributes and regularize their format. Delete text
35264 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
35265 information about "eightbit_data", "tiny_data", and "model"
35266 variable attributes to the Variable Attributes section. Fix
35267 some obvious typos and copy-editing issues.
35268 (Variable Attributes, Type Attributes): Likewise add/fix
35269 @cindex entries for all attributes.
35271 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35274 * tree-chkp.c (chkp_build_returned_bound): Ignore
35275 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35277 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
35280 * config/sh/predicates.md (simple_mem_operand,
35281 displacement_mem_operand): Add test for reg.
35282 (short_displacement_mem_operand): Test for displacement_mem_operand
35283 before invoking sh_disp_addr_displacement.
35284 * config/sh/constraints.md (Sdd, Sra): Simplify.
35285 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35286 Remove redundant displacement_mem_operand tests.
35288 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
35291 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35292 the same -mmcu=MCU more than once.
35294 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35297 * ipa-devirt.c: Remove duplicate demangle.h include.
35300 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35302 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35303 REG_POINTER on *destptr after adjusting it for prologue size.
35306 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35307 ultimate_alias_target ()->order ints instead of
35308 ultimate_alias_target () pointers.
35310 2015-03-23 Richard Biener <rguenther@suse.de>
35312 PR tree-optimization/65518
35313 * tree-vect-stmts.c (vectorizable_load): Reject single-element
35314 interleaving cases we generate absymal code for.
35316 2015-03-23 Richard Biener <rguenther@suse.de>
35318 PR tree-optimization/65494
35319 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35321 (vect_analyze_slp_instance): But do that here, always and once.
35323 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35325 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35326 adding T or multiplying by T+1 and subracting T.
35328 2015-03-22 Jeff Law <law@redhat.com>
35330 PR rtl-optimization/64317
35331 * Makefile.in (OBJS): Add gcse-common.c
35332 * gcse.c: Include gcse-common.h
35333 (struct modify_pair_s): Move structure definition to gcse-common.h
35334 (compute_transp): Move function to gcse-common.c.
35335 (canon_list_insert): Similarly.
35336 (record_last_mem_set_info): Break out some code and put it into
35337 gcse-common.c. Call into the new common code.
35338 (compute_local_properties): Pass additional arguments to compute_transp.
35339 * postreload-gcse.c: Include gcse-common.h and df.h
35340 (modify_mem_list_set, blocks_with_calls): New variables.
35341 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35342 (get_bb_avail_insn): Pass in the expression index too.
35343 (alloc_mem): Allocate memory for the new bitmaps and lists.
35344 (free_mem): Free memory for the new bitmaps and lists.
35345 (insert_expr_in_table): Record a bitmap index for each entry we
35347 (record_last_mem_set_info): Call into common code in gcse-common.c.
35348 (get_bb_avail_insn): If no available insn was found in the requested
35349 BB. If BB has a single predecessor, see if the expression is
35350 transparent in BB and available in that single predecessor.
35351 (compute_expr_transp): New wrapper for compute_transp.
35352 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35353 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35354 (gcse_after_reload_main): If there are elements in the hash table,
35355 then compute transparency for all the elements in the hash table.
35356 * gcse-common.h: New file.
35357 * gcse-common.c: New file.
35359 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35361 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35363 (System Headers): Likewise.
35365 (Traditional macros): Likewise.
35366 (Invocation): Likewise.
35367 (Option Index): Likewise.
35368 * doc/cppopts.texi (-M): Likewise.
35369 (-finput-charset): Likewise.
35370 (--help): Likewise.
35371 * doc.invoke.texi (AVR Options): Likewise.
35372 (V850 Options): Likewise.
35374 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35377 * ipa-devirt.c: Include demangle.h
35378 (odr_type_d): Add field rtti_broken.
35379 (odr_subtypes_equivalent_p): Do not require name to match.
35380 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35381 bypass the tests; be ready for function referneces in vtables that are
35382 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35383 (warn_odr): Give up for nameless types.
35384 (warn_types_mismatch): Report mismatch in mangled names;
35385 report mismatch in anonymous namespaces; look into component types to
35386 give useful error; report when mismatch is dragged in from other ODR
35388 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35389 duplicated diagnostics.
35390 (add_type_duplicate): Reorder checks so more informative ones come
35391 first; fix typo; do not output "the extra base is defined here" when
35393 (BINFO_N_BASE_BINFOS): Relax sanity check.
35395 2015-03-22 Martin Liska <mliska@suse.cz>
35396 Jakub Jelinek <jakub@redhat.com>
35398 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35399 masks that can potentially include a builtin.
35400 (ix86_add_new_builtins): Introduce fast filter for isa values
35401 that cannot trigger builtin inclusion.
35403 2015-03-22 Martin Liska <mliska@suse.cz>
35405 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35406 (sem_item::update_hash_by_local_refs): Likewise.
35407 (sem_variable::get_hash): Empty line is fixed.
35408 (sem_item_optimizer::execute): Include adding of hash references.
35409 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35410 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35411 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35412 (sem_item::update_hash_by_local_refs): Likewise.
35414 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35417 * ipa-comdats.c (enqueue_references): Walk through thunks.
35418 (ipa_comdats): Likewise.
35419 (set_comdat_group_1): New function.
35421 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35424 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35427 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35428 Gerald Pfeifer <gerald@pfeifer.com>
35430 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35432 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35433 Sandra Loosemore <sandra@codesourcery.com>
35435 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35436 function parameter declaration.
35437 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35438 Update arguments to nios2_adjust_call_address().
35439 (sibcall_internal): Rename from *sibcall.
35440 (sibcall_value_internal): Rename from *sibcall_value.
35441 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35442 (nios2_large_got_address): Add target temp reg parameter.
35443 (nios2_got_address): Adjust call to nios2_large_got_address, add
35444 force_reg around it.
35445 (nios2_load_pic_address): Add target temp reg parameter, replace call
35446 to nios2_got_address with corresponding code.
35447 (nios2_legitimize_constant_address): Update call to
35448 nios2_load_pic_address.
35449 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35450 to use temp reg for PIC loading purposes.
35451 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35452 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35453 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35455 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35457 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35458 usage of "the @option{...}".
35459 (-Wopenmp-simd): Likewise.
35460 (-fsanitize-recover): Likewise.
35461 (-fsanitize-undefined-trap-on-error): Likewise.
35463 (tracer-dynamic-coverage-feedback): Likewise.
35464 (reorder-block-duplicate-feedback): Likewise.
35465 (loop-unroll-jam-size): Likewise.
35468 (-mabs=legacy): Likewise.
35469 (-mupper-regs-df): Likewise.
35470 (-mupper-regs-sf): Likewise.
35471 (-mpointers-to-nested-functions): Likewise.
35473 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35475 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35477 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35479 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35480 additional index entries and cross-references.
35481 (-fchkp-check-incomplete-type): Likewise.
35482 (-fchkp-first-field-has-own-bounds): Likewise.
35483 (-fchkp-narrow-to-innermost-array): Likewise.
35484 (-fchkp-use-fast-string-functions): Likewise.
35485 (-fchkp-use-nochk-string-functions): Likewise.
35486 (-fchkp-use-static-const-bounds): Likewise.
35487 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35488 (-fchkp-instrument-marked-only): Likewise.
35489 (-fchkp-use-wrappers): Likewise.
35490 (-static-libmpx): Likewise.
35491 (-static-libmpxwrappers): Likewise.
35492 * doc/extend.texi (bnd_legacy): Likewise.
35493 (bnd_instrument): Likewise.
35494 (bnd_variable_size): Likewise.
35495 (Pointer Bounds Checker builtins): Likewise.
35497 2015-03-21 Tom de Vries <tom@codesourcery.com>
35499 PR tree-optimization/65458
35500 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35501 * cgraph.h (cgraph_node): Add parallelized_function field.
35502 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35503 (input_overwrite_node): Read parallelized_function field.
35504 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35505 parallelized_function on cgraph_node for child_fn.
35506 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35507 Remove include of gt-tree-parloops.h.
35508 (parallelized_functions): Remove static variable.
35509 (parallelized_function_p): Rewrite using parallelized_function field of
35511 (create_loop_fn): Remove adding to parallelized_functions.
35512 * Makefile.in (GTFILES): Remove tree-parloops.c
35514 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35516 PR rtl-optimization/64366
35517 * lra.c (lra_update_insn_regno_info): Consider regs in
35518 CALL_INSN_FUNCTION_USAGE memory.
35520 2015-03-20 Richard Biener <rguenther@suse.de>
35522 PR middle-end/64715
35523 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35524 for type comparison and gcc_checking_assert.
35525 (chrec_fold_plus_poly_poly): Likewise.
35526 (chrec_fold_multiply_poly_poly): Likewise.
35527 (chrec_convert_1): Likewise.
35528 * gimplify.c (gimplify_expr): Remove premature folding of
35529 &X + CST to &MEM[&X, CST].
35531 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35533 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35535 (ipa_inline): Recompute inline_failed codes.
35536 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35537 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35540 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35542 PR rtl-optimization/60851
35543 * recog.c (constrain_operands): Accept a pseudo register before reload
35544 for LRA enabled targets.
35546 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35549 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35550 -ffast-math handling that kept non-0 constants live in the RTL
35551 until reload. Remove logic testing the number of instructions it
35552 took to create a constant in a GPR that was never used, due to a
35553 test for soft-float earlier.
35554 (memory_fp_constant): Delete, no longer used.
35556 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35557 alternatives for loading non-0 constants into GPRs for hard
35558 floating point that is no longer needed due to changes in
35559 easy_fp_constant. Add support for loading 0.0 into GPRs.
35560 (mov<mode>_hardfloat32): Likewise.
35561 (mov<mode>_hardfloat64): Likewise.
35562 (mov<mode>_64bit_dm): Likewise.
35563 (movtd_64bit_nodm): Likewise.
35564 (pre-reload move FP constant define_split): Delete define_split,
35565 since it is no longer used.
35566 (extenddftf2_internal): Remove GHF constraints that are not valid
35569 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35571 PR rtl-optimization/63491
35572 * lra-constraints.c (check_and_process_move): Use src instead of
35573 sreg. Remove some dead code.
35575 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35578 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35579 (sem_variable::merge): Likewise.
35581 2015-03-19 Martin Liska <mliska@suse.cz>
35584 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35585 all fields of cgraph_thunk_info.
35587 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35589 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35590 clone instrumented thunks.
35592 2015-03-19 Richard Biener <rguenther@suse.de>
35595 2015-03-10 Richard Biener <rguenther@suse.de>
35597 PR middle-end/63155
35598 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35599 * tree-ssa-coalesce.c: Include timevar.h.
35600 (attempt_coalesce): Handle graph being NULL.
35601 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35602 Split out abnormal coalescing to ...
35603 (perform_abnormal_coalescing): ... this function.
35604 (coalesce_ssa_name): Perform abnormal coalescing without computing
35606 (verify_ssa_coalescing_worker): New function.
35607 (verify_ssa_coalescing): Likewise.
35609 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35610 Jakub Jelinek <jakub@redhat.com>
35613 * tsan.c (instrument_gimple): Clear tail call flag on
35616 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35619 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35620 call in the return bb.
35621 (find_split_points): Add RETURN_BB argument, don't call
35623 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35624 if true append TSAN_FUNC_EXIT internal call after the call to
35625 the split off function.
35626 (execute_split_functions): Call find_return_bb here.
35627 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35628 Adjust find_split_points and split_function calls.
35630 2015-03-18 DJ Delorie <dj@redhat.com>
35632 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35633 (iorqi3_virt): Likewise.
35635 2015-03-18 Tom de Vries <tom@codesourcery.com>
35637 * tree-parloops.c (parallelize_loops): Make static.
35638 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35640 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35642 PR middle-end/64491
35644 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35646 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35647 condition would be removed due to undefined behaviour.
35649 2015-03-18 Martin Liska <mliska@suse.cz>
35652 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35653 xstrdup_for_dump wrapper.
35654 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35656 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35657 with xstrdup_for_dump.
35658 (sem_variable::equals): Likewise.
35659 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35661 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35662 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35663 symtab_node::asm_name with xstrdup_for_dump.
35664 (congruence_class::dump): Use symtab_node::name instead of
35666 * ipa-icf.h (symtab_node::name): Remove.
35667 (symtab_node::asm_name): Likewise.
35669 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35671 PR tree-optimization/65450
35672 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35674 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35675 it instead of duplicate_ssa_name_ptr_info.
35678 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35680 2015-03-18 Richard Biener <rguenther@suse.de>
35682 * tree-data-ref.h (struct access_matrix): Remove.
35683 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35684 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35685 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35686 (am_vector_index_for_loop): Likewise.
35687 (struct data_reference): Remove access_matrix member.
35688 (DR_ACCESS_MATRIX): Remove.
35689 (lambda_vector_new): Add comment.
35690 (lambda_matrix_new): Use XOBNEWVEC.
35692 2015-03-18 Richard Biener <rguenther@suse.de>
35694 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35695 (pass_ch::execute): Cleanup the CFG only if we did sth.
35696 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35698 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35700 * expmed.c (synth_mult): Use std::swap instead of manually
35701 swapping algorithms.
35703 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35706 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35708 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35711 * config/avr/avr.opt (-nodevicelib): New option.
35712 * doc/invoke.texi (AVR Options): Document it.
35713 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35714 libgcc.a, libc.a, libm.a.
35715 * config/avr/specs.h: Same.
35716 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35717 which don't (directly) depend on the device. Print more help.
35718 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35719 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35720 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35722 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35723 for specs file name.
35724 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35725 * config/avr/avr-mcus.def: Adjust initializers and comments.
35727 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35729 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35730 DECL_ONE_ONLY to check if decl is one only.
35731 * ipa-split.c (consider_split): Limit splitt of one only functions.
35733 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35735 PR tree-optimization/65427
35736 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35738 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35740 2015-03-16 Marek Polacek <polacek@redhat.com>
35742 * cgraph.h (add_new_static_var): Remove declaration.
35743 * varpool.c (add_new_static_var): Remove function.
35745 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35747 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35748 instead of vec<tree> * with vec_alloc and release for args.
35751 PR middle-end/65431
35752 * omp-low.c (delete_omp_context): Only splay_tree_delete
35753 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35754 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35756 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35759 * cfgexpand.c (align_base): New function.
35760 (alloc_stack_frame_space): Call it.
35761 (expand_stack_vars): Align prev_frame to be sure
35762 data->asan_vec elements aligned properly.
35764 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35766 PR middle-end/65409
35767 * expr.c (store_field): Do not do a direct block copy if the source is
35768 a PARALLEL with BLKmode.
35770 2015-03-16 Tom de Vries <tom@codesourcery.com>
35772 PR middle-end/65414
35774 2015-03-12 Tom de Vries <tom@codesourcery.com>
35776 PR rtl-optimization/64895
35777 * lra-lives.c (check_pseudos_live_through_calls): Use
35778 actual_call_used_reg_set instead of call_used_reg_set, if available.
35780 2015-03-16 Alan Modra <amodra@gmail.com>
35783 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35784 Modify Z->r bswapdi splitter to use dest in place of scratch.
35785 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35786 to word1, word2 and rearrange logic to suit.
35787 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35788 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35789 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35790 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35793 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35795 PR tree-optimization/65369
35796 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35797 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35798 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35800 PR tree-optimization/65418
35801 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35802 are casts in the first PLUS_EXPR operand, ensure tbias and
35803 *totallowp are in the inner type.
35805 PR rtl-optimization/65401
35806 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35807 argument. If true, adjust_address_nv of x with big-endian
35808 correction for the mode widening to GET_MODE (y).
35809 (make_field_assignment): Don't do MEM mode widening here.
35810 Use MEM_P instead of GET_CODE == MEM.
35812 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35814 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35815 the external decls.
35817 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35820 * config/arm/arm.c (arm_gen_constant, AND case): Use
35821 ARM_SIGN_EXTEND when constructing AND mask.
35823 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35825 * graph.c (print_graph_cfg): Make function names visible and append
35826 parenthesis to it. Also make groups of basic blocks belonging to the
35827 same function visible.
35829 2015-03-12 Richard Biener <rguenther@suse.de>
35831 PR middle-end/44563
35832 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35833 to avoid quadratic behavior with inline expansion splitting blocks.
35834 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35835 with the successor if the predecessor will be merged with it.
35836 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35837 entry block with its successor.
35839 2015-03-13 Richard Biener <rguenther@suse.de>
35841 PR middle-end/44563
35842 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35843 (cleanup_tree_cfg_1): Do not call it.
35844 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35845 (fixup_noreturn_call): Mark the stmt as control altering.
35846 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35848 (pass_data_fixup_cfg): Produce a dump file.
35849 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35850 (need_noreturn_fixup): New global.
35851 (pass_dominator::execute): Fixup queued noreturn calls.
35852 (optimize_stmt): Queue calls that became noreturn for fixup.
35853 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35854 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35855 (el_to_fixup): New global.
35856 (eliminate_dom_walker::before_dom_childre): Queue calls that
35857 became noreturn for fixup.
35858 (eliminate): Fixup queued noreturn calls.
35859 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35860 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35861 (substitute_and_fold_dom_walker::before_dom_children): Queue
35862 alls that became noreturn for fixup.
35863 (substitute_and_fold): Fixup queued noreturn calls.
35865 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
35867 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35868 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35869 are building; for methods check ODR type of class they belong to if
35870 they may lead to a polymorphic call.
35871 (sem_function::compare_polymorphic_p): Be bit smarter about testing
35872 when function may lead to a polymorphic call.
35873 (sem_function::compare_type_list): Remove.
35874 (sem_variable::equals): Update use of compatible_types_p.
35875 (sem_variable::parse_tree_refs): Remove.
35876 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35878 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35880 (func_checker::compatible_polymorphic_types_p): Break out from ...
35881 (unc_checker::compatible_types_p): ... here.
35882 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35884 (unc_checker::compatible_types_p): Update.
35885 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35888 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35890 PR rtl-optimization/65235
35891 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35892 When first element of vec_concat is const_int, calculate its size
35893 using second element.
35895 2015-03-12 Richard Biener <rguenther@suse.de>
35897 PR middle-end/65270
35898 * fold-const.c (operand_equal_p): Fix ordering of resetting
35899 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35901 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
35903 * config/s390/s390.c (s390_reorg): Move code to output nops after label
35905 (s390_asm_output_function_label): Likewise.
35906 * config/s390/s390.c (s390_asm_output_function_label):
35907 Fix function label alignment with -mhtopatch.
35908 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35909 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35910 ("nop_2_byte"): New define_insn.
35911 ("nop_4_byte"): Likewise.
35912 ("nop_6_byte"): Likewise.
35913 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35914 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35916 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35919 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35922 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35925 * toplev.c (process_options): Restrict Pointer Bounds Checker
35926 usage with Address Sanitizer.
35928 2015-03-12 Richard Biener <rguenther@suse.de>
35930 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35932 * omp-low.c (expand_omp_taskreg): Split block before removing
35934 (expand_omp_target): Likewise.
35935 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35936 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35937 stmt to split_block.
35939 2015-03-12 Tom de Vries <tom@codesourcery.com>
35941 PR rtl-optimization/64895
35942 * lra-lives.c (check_pseudos_live_through_calls): Use
35943 actual_call_used_reg_set instead of call_used_reg_set, if available.
35945 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35947 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35948 (cgraph_node::remove): Likewise.
35949 (cgraph_node::get_untransformed_body): Likewise.
35950 * varpool.c (varpool_node::remove): Likewise.
35951 (varpool_node::get_constructor): Add sanity check.
35953 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
35955 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35957 (-fabi-compat-version): Likewise.
35958 (-ffriend-injection): Likewise.
35959 (-Wdeclaration-after-statement): Likewise.
35960 (-fomit-frame-pointer): Likewise.
35961 (-ftree-coalesce-inlined-vars): Likewise.
35962 (-fvisibility=): Likewise.
35963 * doc/extend.texi (Typeof): Likewise.
35964 (Zero Length): Likewise.
35965 (Escaped Newlines): Likewise.
35966 (Compound Literals): Likewise.
35967 (Function Attributes): Likewise.
35968 (Label Attributes): Likewise.
35969 (Type Attributes): Likewise.
35970 (Function Names): Likewise.
35971 (Other Builtins): Likewise.
35972 (Function Specific Option Pragmas): Likewise.
35973 (C++ Interface): Likewise.
35975 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
35977 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35979 2015-03-11 Marek Polacek <polacek@redhat.com>
35981 PR tree-optimization/65388
35982 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35984 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35987 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35988 * configure: Regenerate.
35989 * config.in: Regenerate.
35990 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35991 [-mn-flash]: Document it.
35992 [__AVR_ARCH__]: Document avrtiny.
35994 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35995 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35996 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35998 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36000 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36002 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36005 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36006 allow reloads of PLUS in floating point/VSX registers.
36008 2015-03-11 Junmo Park <junmoz.park@samsung.com>
36010 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36011 crypto_sha256_fast.
36012 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36014 2015-03-11 Richard Biener <rguenther@suse.de>
36016 PR tree-optimization/65310
36017 * tree-sra.c (build_ref_for_offset): Also preserve larger
36020 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
36022 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36024 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36027 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36029 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36031 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36033 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36034 (sem_function::equals_wpa): ... here.
36036 2015-03-10 Marek Polacek <polacek@redhat.com>
36037 Jakub Jelinek <jakub@redhat.com>
36040 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36041 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
36044 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36047 * config/rs6000/t-linux: For powerpc64* target set
36048 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36050 2015-03-10 Richard Biener <rguenther@suse.de>
36052 PR middle-end/44563
36053 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36054 for redirect_all_calls.
36056 2015-03-10 Marek Polacek <polacek@redhat.com>
36058 * gdbinit.in (pcfun): Define and document.
36060 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
36062 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36063 of libgomp-plugin.h.
36064 (find_target_compiler): Support a case when the path to gcc is
36065 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36066 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36067 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36069 (main): Use GCC_INSTALL_NAME as target_driver_name.
36070 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36072 (mkoffload.o): Remove obsolete include path and defines.
36073 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36075 2015-03-10 Richard Biener <rguenther@suse.de>
36077 PR middle-end/63155
36078 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36079 * tree-ssa-coalesce.c: Include timevar.h.
36080 (attempt_coalesce): Handle graph being NULL.
36081 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36082 Split out abnormal coalescing to ...
36083 (perform_abnormal_coalescing): ... this function.
36084 (coalesce_ssa_name): Perform abnormal coalescing without computing
36086 (verify_ssa_coalescing_worker): New function.
36087 (verify_ssa_coalescing): Likewise.
36089 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36092 * config.gcc (extra_options) [avr]: Remove.
36093 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36094 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36095 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36097 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36098 (-mmcu=): Add Var and MissingArgError properties.
36100 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36101 * config/avr/t-multilib: Regenerate.
36102 * config/avr/specs.h: New file.
36103 * config/avr/driver-avr.c: New file.
36104 * config/avr/genopt.sh: Remove file.
36105 * config/avr/avr-tables.opt: Remove file.
36106 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36107 * config/avr/avr-c.c: Same.
36108 * avr-arch.h: Same.
36109 (avr_current_device): Remove proto.
36110 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36111 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36112 (EXTRA_SPEC_FUNCTIONS): Define.
36113 (avr_devicespecs_file): New specs function proto.
36114 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36115 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36116 (avr_current_device): Remove definition and usage.
36117 (avr_set_core_architecture): New static function.
36118 (avr_option_override): Use it.
36119 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36120 (mcu_name): New static array.
36121 (comparator, avr_archs_str, avr_mcus_str): New static functions.
36122 (avr_inform_devices, avr_inform_core_architectures): New functions.
36123 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36124 (avrlibc.h) [WITH_AVRLIBC]: Include.
36125 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36126 (print_mcu): Rewrite from scratch.
36127 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36128 Forward to avr-specific specs defined in device-specs file.
36129 * config/avr/t-avr (driver-avr.o): New rule.
36130 (avr-devices.o): Depend on avr-arch.h.
36131 (avr-mcus): No more depend on avr-tables.opt.
36132 (avr-tables.opt): Remove rule.
36133 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36135 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36137 * c-family/c.opt (fchkp-use-wrappers): New.
36138 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36139 (chkp_wrap_function): New.
36140 (chkp_build_instrumented_fndecl): Support wrapped
36142 * doc/invoke.texi (-fcheck-pointer-bounds): New.
36143 (-fchkp-check-incomplete-type): New.
36144 (-fchkp-first-field-has-own-bounds): New.
36145 (-fchkp-narrow-bounds): New.
36146 (-fchkp-narrow-to-innermost-array): New.
36147 (-fchkp-optimize): New.
36148 (-fchkp-use-fast-string-functions): New.
36149 (-fchkp-use-nochk-string-functions): New.
36150 (-fchkp-use-static-bounds): New.
36151 (-fchkp-use-static-const-bounds): New.
36152 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36153 (-fchkp-check-read): New.
36154 (-fchkp-check-write): New.
36155 (-fchkp-store-bounds): New.
36156 (-fchkp-instrument-calls): New.
36157 (-fchkp-instrument-marked-only): New.
36158 (-fchkp-use-wrappers): New.
36159 (-static-libmpx): New.
36160 (-static-libmpxwrappers): New.
36162 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36164 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36165 (CHKP_SPEC): Add wrappers library.
36166 * c-family/c.opt (static-libmpxwrappers): New.
36168 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36170 * config/i386/linux-common.h (LIBMPX_LIBS): New.
36171 (LIBMPX_SPEC): New.
36173 * gcc.c (CHKP_SPEC): New.
36174 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36175 * c-family/c.opt (static-libmpx): New.
36177 2015-03-10 Richard Biener <rguenther@suse.de>
36179 PR middle-end/44563
36180 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36182 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36183 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36184 (cgraph_add_edge_to_call_site_hash): Likewise.
36185 (cgraph_node::get_edge): Likewise.
36186 (cgraph_edge::set_call_stmt): Likewise.
36187 (cgraph_edge::remove_caller): Likewise.
36189 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
36191 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36192 (callee_saved_gpr_regs_size): ... this.
36193 (callee_saved_regs_first_regno): Rename to ...
36194 (callee_saved_first_gpr_regno): ... this.
36195 (callee_saved_regs_last_regno) Rename to ...
36196 (callee_saved_last_gpr_regno): ... this.
36197 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36199 (nds32_initial_elimination_offset): Likewise.
36200 (nds32_expand_prologue): Likewise.
36201 (nds32_expand_epilogue): Likewise.
36202 (nds32_expand_prologue_v3push): Likewise.
36203 (nds32_expand_epilogue_v3pop): Likewise.
36204 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36205 Adjust renamed variables.
36206 (nds32_output_stack_pop): Likewise.
36208 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36210 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36213 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36215 PR rtl-optimization/65321
36216 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36218 * var-tracking.c (use_narrower_mode): Likewise.
36220 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36222 PR tree-optimization/65355
36223 * varasm.c (notice_global_symbol): Do not produce RTL.
36224 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36226 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36227 check for section anchors.
36229 2015-03-10 Alan Modra <amodra@gmail.com>
36232 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36233 to be single-arch by default. Set cpu_is_64bit for powerpc64
36234 given --with-cpu=native.
36235 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36236 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36238 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36239 rs6000_isa_flags rather than TARGET_64BIT.
36241 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
36242 Kaz Kojima <kkojima@gcc.gnu.org>
36244 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36246 2015-03-09 Jakub Jelinek <jakub@redhat.com>
36249 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36250 on a TREE_BINFO, instead use BINFO_TYPE.
36252 2015-03-09 Richard Biener <rguenther@suse.de>
36254 PR middle-end/65270
36255 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36256 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36257 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
36258 of that. When comparing dereferences compare alignment.
36259 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36261 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36263 * ipa-inline-analysis.c (check_callers): Check
36264 node->can_remove_if_no_direct_calls_and_refs_p.
36265 (growth_likely_positive): Reorganize to call
36266 can_remove_if_no_direct_calls_p later.
36267 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36268 will_be_removed_from_program_if_no_direct_calls_p): Add
36269 will_inline parameter.
36270 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36271 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36272 Handle inliner case correctly.
36274 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
36276 PR tree-optimization/63743
36277 * cfgexpand.c (reorder_operands): Also reorder if only second operand
36278 had its definition forwarded by TER.
36280 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36283 * ipa-utils.h (types_odr_comparable): Add strict argument.
36284 * ipa-devirt.c: Fix whitespace;
36285 (odr_hasher): Remove.
36286 (odr_name_hasher, odr_vtable_hasher): New hashers.
36287 (can_be_name_hashed_p): New predicate.
36288 (hash_type_name): remove.
36289 (hash_odr_name): New.
36290 (odr_name_hasher::hash): new.
36291 (can_be_vtable_hashed_p): New.
36292 (hash_odr_vtable): New.
36293 (odr_vtable_hasher::hash): New.
36294 (types_same_for_odr): Add strict parameter.
36295 (types_odr_comparable): Likewise.
36296 (odr_name_hasher::equal): New.
36297 (odr_vtable_hasher::equal): New.
36298 (odr_name_hasher::remove): New.
36299 (odr_hash_type): Change to hash_table<odr_name_hasher>.
36300 (odr_vtable_hash_type): New.
36301 (odr_vtable_hash): New.
36302 (odr_subtypes_equivalent_p): Do strict comparsion.
36303 (add_type_duplicate): Merge type names; cleanup; avoid type
36305 (register_odr_type): Initialize vtable hash.
36306 (build_type_inheritance_graph): Likewise
36307 (get_odr_type): Reorg to use two hashes.
36308 (dump_possible_polymorphic_call_targets): Move sanity check after debug
36310 (ipa_devirt): Dump type_inheritance_graph.
36311 (types_same_for_odr): Add strict mode.
36313 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36316 * cgraph.h (symtab_node): Add definition_alignment,
36317 can_increase_alignment_p and increase_alignment.
36318 * symtab.c (symtab_node::can_increase_alignment_p,
36319 increase_alignment_1, symtab_node::increase_alignment,
36320 symtab_node::definition_alignment): New.
36321 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36322 can_increase_alignment_p.
36323 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36324 * tree-vect-stmts.c (ensure_base_align): Likewise.
36325 * varasm.c (function_section_1): Use definition_alignment.
36326 (assemble_start_function): Likewise.
36327 (emit_local): likewise.
36328 (build_constant_desc): Likewsie.
36329 (output_constant_def_contents): Likewise.
36330 (place_block_symbol): Likewise.
36331 (output_object_block): Likewise.
36333 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36336 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36337 when outputting debug.
36339 2015-03-07 Marek Polacek <polacek@redhat.com>
36340 Martin Uecker <uecker@eecs.berkeley.edu>
36343 * doc/invoke.texi: Update description of -fsanitize=bounds.
36345 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36347 * tree-ssa-phiopt.c (neg_replacement): Remove.
36348 (tree_ssa_phiopt_worker): Remove negate optimization.
36350 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36353 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36355 2015-03-06 Richard Biener <rguenther@suse.de>
36357 PR middle-end/64928
36358 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36359 and liveout_obstack members.
36360 (calculate_live_on_exit): Remove.
36361 (calculate_live_ranges): Change declaration.
36362 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36363 (new_tree_live_info): Adjust.
36364 (calculate_live_ranges): Delete livein when not wanted.
36365 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36366 Deal with partly deleted live info.
36367 (loe_visit_block): Remove temporary bitmap by using
36368 bitmap_ior_and_compl_into.
36369 (live_worklist): Adjust accordingly.
36370 (calculate_live_on_exit): Make static.
36371 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36372 we do not need livein.
36374 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36376 * real.c (real_from_string): Fix typo in assertion.
36378 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36380 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36383 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36385 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36387 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36390 * lra-assigns.c (find_hard_regno_for): Rename to
36391 find_hard_regno_for_1. Add a new parameter.
36392 (find_hard_regno_for): New function using find_hard_regno_for_1.
36394 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36396 PR rtl-optimization/65067
36397 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36398 strict volatile bitfield handling.
36400 2015-03-05 Martin Liska <mliska@suse.cz>
36403 * ipa-icf.c (sem_variable::equals): Compare variables types.
36405 2015-03-05 Richard Henderson <rth@redhat.com>
36408 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36409 correctly check weak symbol binding.
36411 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36413 PR middle-end/65315
36414 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36417 2015-03-05 Martin Liska <mliska@suse.cz>
36419 * ipa-inline.c (inline_small_functions): Set default value to
36420 prevent warning during bootstrap.
36421 * tree.h: Add pragma guard that ignores false positives during
36424 2015-03-05 Richard Biener <rguenther@suse.de>
36426 PR tree-optimization/65310
36427 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36428 Properly preserve alignment of the base of the access.
36430 2015-03-05 Richard Biener <rguenther@suse.de>
36433 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36434 Compare dependence info.
36436 2015-03-05 Richard Biener <rguenther@suse.de>
36438 PR middle-end/65233
36439 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36441 (walk_ssa_copies): Revert last chage. Instead do not walk
36442 SSA names registered for SSA update.
36444 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36447 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36448 vtable references for their containing type.
36449 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36450 and type attributes.
36452 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36454 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36455 before negating it.
36456 * stor-layout.c (finalize_record_size): Revert latest change.
36458 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36460 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36462 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36464 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36465 for correct comdat handling.
36466 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36468 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36469 (used_from_object_file_p_worker): Remove.
36470 (cgraph_node::only_called_directly_or_alised): Add
36471 used_from_object_file_p.
36472 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36473 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36474 can_remove_if_no_direct_calls_and_refs_p.
36476 2015-03-04 Nick Clifton <nickc@redhat.com>
36478 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36479 General register class.
36480 * config/rl78/rl78-real.md: Replace general register constraints
36481 with real+virtual register constraints.
36483 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36485 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36486 from checking for -mhtm option.
36488 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36490 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36491 (struct ipa_sra_check_caller_data): Add has_thunk field.
36492 (ipa_sra_check_caller): Check for thunk.
36493 (ipa_sra_preliminary_function_checks): Give up on function with
36495 (ipa_early_sra): Use call_for_symbol_and_aliases.
36497 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36500 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36501 called for __stack_chk_guard symbol.
36503 2015-03-03 DJ Delorie <dj@redhat.com>
36505 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36507 (*addhi3_real): Likewise.
36508 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36509 pattern to match incrementing memory.
36510 * config/rl78/predicates.md (rl78_1_2_operand): New.
36511 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36512 it's the same and only mem.
36513 (rl78_alloc_physical_registers_op2): If there's effectively only
36514 one MEM, transcode it into HL.
36515 (rl78_far_p): Reject addresses that aren't legitimate.
36517 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36519 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36522 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36524 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36526 Implement call0 ABI for xtensa
36527 * config/xtensa/constraints.md ("a" constraint): Include stack
36528 pointer in case of call0 ABI.
36529 ("q" constraint): Make empty in case of call0 ABI.
36530 ("D" constraint): Include stack pointer in case of call0 ABI.
36531 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36532 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36534 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36536 (xtensa_regno_to_class): Make it a local variable in the
36537 function xtensa_regno_to_class.
36538 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36539 macro, function prototype and implementation.
36540 (reg_nonleaf_alloc_order): Make it a local variable in the
36541 function order_regs_for_local_alloc.
36542 (xtensa_conditional_register_usage): New function.
36543 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36544 (xtensa_valid_move): Allow direct moves to stack pointer
36545 register in call0 ABI.
36546 (xtensa_setup_frame_addresses): Only spill register windows in
36548 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36549 call0 ABI respectively.
36550 (xtensa_function_arg_1): Only mark a7 register for copying in
36552 (xtensa_call_save_reg): New function.
36553 (compute_frame_size): Add space for callee saved register
36554 storage to the frame size in call0 ABI.
36555 (xtensa_expand_prologue): Generate code to set up stack frame
36556 and save callee-saved registers in call0 ABI.
36557 (xtensa_expand_epilogue): New function.
36558 (xtensa_set_return_address): New function.
36559 (xtensa_return_addr): Calculate return address in call0 ABI.
36560 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36561 emit copying code in windowed ABI.
36562 (order_regs_for_local_alloc): Add preferred register allocation
36563 order for non-leaf function in call0 ABI.
36564 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36565 (xtensa_asm_trampoline_template): Add trampoline generation for
36567 (xtensa_trampoline_init): Add trampoline initialization for
36569 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36571 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36572 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36573 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36574 ABI call-used registers.
36575 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36576 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36578 (REG_CLASS_CONTENTS): Include all registers into the preferred
36579 reload registers set, adjust the set in the
36580 xtensa_conditional_register_usage.
36581 (xtensa_regno_to_class): Drop variable declaration.
36582 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36584 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36586 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36587 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36588 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36589 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36590 location in call0 ABI.
36591 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36592 stack adjustment size when handling exception.
36593 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36594 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36596 ("return" pattern): Generate ret.n/ret in call0 ABI.
36597 ("epilogue" pattern): Expand epilogue.
36598 ("nonlocal_goto" pattern): Use default in call0 ABI.
36599 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36600 emit eh_set_a0_* depending on ABI.
36601 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36602 ("eh_set_a0_call0", "blockage"): New patterns.
36604 2015-03-03 Martin Liska <mliska@suse.cz>
36607 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36609 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36612 * config/rs6000/rs6000-tables.opt: Regenerate table.
36614 2015-03-03 Renlin Li <renlin.li@arm.com>
36616 * doc/md.texi (@item ^): Change ? into ^.
36618 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36620 * doc/tm.texi: Regenerated.
36622 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36624 * builtins.c (expand_builtin_return_addr): Add
36625 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36626 surrounding #ifdef.
36627 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36629 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36631 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36633 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36636 2015-03-03 Martin Jambor <mjambor@suse.cz>
36637 Eric Botcazou <ebotcazou@adacore.com>
36639 * tree-sra.c (ipa_sra_check_caller_data): New type.
36640 (has_caller_p): Removed.
36641 (ipa_sra_check_caller): New function.
36642 (ipa_sra_preliminary_function_checks): Use it.
36644 2015-03-03 Martin Liska <mliska@suse.cz>
36646 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36647 instead of if branch.
36649 2015-03-03 Martin Liska <mliska@suse.cz>
36652 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36654 2015-03-23 Jeff Law <law@redhat.com>
36656 PR tree-optimization/65241
36657 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36658 hash table if INSERT is true.
36660 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36663 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36665 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36668 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36669 (avr_pass_data_recompute_notes): New static variable.
36670 (avr_pass_recompute_notes): New class.
36671 (avr_register_passes): New static function.
36672 (avr_option_override): Call it.
36674 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36676 Fix various problems with specs file generation.
36679 * config.gcc (extra_gcc_objs) [avr]: Remove.
36680 * config/avr/driver-avr.c: Remove file.
36681 * config/avr/t-avr (driver-avr.o): Remove rule.
36682 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36683 INCLUDES to build. Depend on TM_H.
36684 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36685 build warnings. Fix non-matching types and non-existing %-codes.
36687 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36688 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36689 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36690 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36691 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36692 (LIBGCC_SPEC): Remove definitions.
36694 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36696 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36697 to create a register in testing mode.
36699 2015-03-03 Martin Liska <mliska@suse.cz>
36700 Jan Hubicka <hubicka@ucw.cz>
36703 * cgraph.c (cgraph_node::has_thunk_p): New function.
36704 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36705 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36706 (sem_function::merge): Assert is changed.
36708 2015-03-03 Martin Liska <mliska@suse.cz>
36709 Martin Jambor <mjambor@suse.cz>
36712 * ipa-icf.c (sem_item_optimizer::execute): Change function
36713 return value to boolean.
36714 (sem_item_optimizer::merge_classes): Likewise.
36715 (ipa_icf_driver): Return TODO_remove_functions in case there's
36716 a merge operation processed.
36717 * ipa-icf.h: Change function return value to boolean.
36719 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36722 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36723 processor type for 64-bit little endian PowerPC.
36725 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36726 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36727 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36728 printing built-in mask so it does not pass NULL pointers.
36730 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36733 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36736 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36737 !ISA_HAS_FP_CONDMOVE.
36739 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36741 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36744 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36746 * doc/invoke.texi (Options for Code Generation Conventions):
36747 Fix URL of DSO paper.
36749 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36752 * ipa-inline.c (check_callers): Looks for recursion.
36753 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36754 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36755 summary of inline clones.
36756 (do_estimate_growth_1): Fix recursion check.
36758 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36761 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36764 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36765 Aldy Hernandez <aldyh@redhat.com>
36768 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36769 when checking TYPE_BINFO.
36771 2015-03-02 Richard Biener <rguenther@suse.de>
36774 * ipa-icf-gimple.c: Include builtins.h.
36775 (func_checker::compare_memory_operand): Compare base alignment.
36777 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36780 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36781 passed by reference.
36783 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36786 * tree-chkp.c (chkp_check_lower): Don't check against
36787 zero bounds for already instrumented functions.
36788 (chkp_check_upper): Likewise.
36789 (chkp_fini): Clean pass local data to avoid wrong reusage.
36791 2015-02-28 Martin Liska <mliska@suse.cz>
36792 Jan Hubicka <hubicka@ucw.cz>
36794 * ipa-icf.c (sem_variable::equals): Improve debug output;
36795 get variable constructor.
36796 (sem_variable::parse): Do not filter out too early; give up on
36797 volatile and register vars.
36798 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36800 * ipa-icf.h (sem_variable::init): Do not set ctor.
36801 (sem_variable::ctor): Remove.
36803 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36805 PR middle-end/65233
36806 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36808 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36810 * ipa-icf.c: Include stor-layout.h
36811 (sem_function::compare_cgraph_references): Rename to ...
36812 (sem_item::compare_cgraph_references): ... this one.
36813 (sem_variable::equals_wpa): New function
36814 (sem_variable::equals): Do not check stuff already verified by
36816 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36817 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36818 (sem_function): Remove compare_cgraph_references.
36819 (sem_variable): Turns equals_wpa into non-inline.
36821 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36823 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36824 (sem_item::add_expr): New function.
36825 (sem_function::hash_stmt): Handle operands of most statements.
36826 (sem_variable::get_hash): Hash the actual constructor.
36827 * ipa-icf.h (sem_item): Add add_expr.
36828 (sem_function): Update prototype of hash_stmt
36830 2015-02-28 Martin Liska <mliska@suse.cz>
36831 Jan Hubicka <hubicka@ucw.cz>
36834 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36836 (func_checker::compare_variable_decl): Skip symtab vars.
36837 (func_checker::compare_cst_or_decl): Update.
36838 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36839 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36840 use correct symtab predicates.
36841 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36842 (sem_variable::parse): Update comment.
36843 (sem_item_optimizer::build_graph): Consider ultimate aliases
36846 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36848 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36851 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36853 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36854 (sem_variable::merge) Likewise.
36856 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36858 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36859 target; also match flag_ipa_devirt.
36861 2015-03-01 Martin Liska <mliska@suse.cz>
36862 Jan Hubicka <hubicka@ucw.cz>
36864 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36865 Validate variable alignment.
36866 * ipa-icf.c (sem_function::equals_private): Be more precise
36867 about non-common function attributes.
36868 (sem_variable::equals): Likewise.
36870 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36873 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36874 across COMDAT group boundary.
36876 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36879 * ipa-icf.c (clear_decl_rtl): New function.
36880 (sem_function::merge): Clear RTL before forming alias.
36881 (sem_variable::merge): Clear RTL before forming alias.
36883 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36886 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36888 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
36890 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36893 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36895 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36896 a typo in the description.
36898 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36901 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36902 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36903 * lra-constraints.c: Include "params.h".
36904 (EBB_PROBABILITY_CUTOFF): Use
36905 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36906 (lra_inheritance): Use '<' instead of '<=' for
36907 EBB_PROBABILITY_CUTOFF.
36908 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36911 2015-02-27 Martin Liska <mliska@suse.cz>
36913 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36914 vector length condition.
36916 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
36918 * doc/extend.texi (x86 transactional memory intrinsics):
36919 Reorganize discussion of _xbegin. Clarify that the return
36920 value is a bit mask. Expand example and move to end of section.
36922 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36923 Aldy Hernandez <aldyh@redhat.com>
36925 PR rtl-optimization/65220
36926 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36928 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36931 * lra-remat.c (update_scratch_ops): New.
36932 (do_remat): Call it.
36933 * lra.c (lra_register_new_scratch_op): New. Take code from ...
36934 (remove_scratches): ... here.
36935 * lra-int.h (lra_register_new_scratch_op): New prototype.
36937 2015-02-27 Marek Polacek <polacek@redhat.com>
36940 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36941 -Wformat-signedness anymore.
36943 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36945 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36947 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36949 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36951 * config/s390/s390.c (enum s390_builtin):
36952 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36953 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36954 (s390_init_builtins): Generate new builtin functions.
36955 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36956 (s390_sfpc, s390_efpc): New pattern definitions.
36958 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36960 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36961 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36962 (s390_builtin_decls): New array.
36963 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36964 (s390_builtin_decl): New function.
36965 (TARGET_BUILTIN_DECL): Define macro.
36967 2015-02-27 Richard Biener <rguenther@suse.de>
36969 PR middle-end/63175
36970 * builtins.c (get_object_alignment_2): Make sure to re-apply
36971 the ANDed mask after recursing to its operand gets us a new
36972 misalignment bit position.
36974 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
36975 Martin Liska <mliska@suse.cz>
36978 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36979 Use address_matters_p.
36980 (redirect_all_callers, set_addressable): New functions.
36981 (sem_function::merge): Reorganize and fix merging issues.
36982 (sem_variable::merge): Likewise.
36983 (sem_variable::compare_sections): Remove.
36984 * common.opt (fmerge-all-constants, fmerge-constants): Remove
36986 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36988 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36990 (address_matters_1): New function.
36991 (symtab_node::address_matters_p): New function.
36992 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36993 check for merged flag.
36994 * cgraph.h (address_matters_p): Declare.
36995 (symtab_node::address_taken_from_non_vtable_p): Remove.
36996 (symtab_node::address_can_be_compared_p): New method.
36997 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36998 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37000 (comdat_can_be_unshared_p_1) Use address_matters_p.
37001 (update_vtable_references): Fix formating.
37002 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37003 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37004 * cgraphclones.c: Preserve merged and icf_merged flags.
37006 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
37008 * doc/extend.texi (Function Attributes): Fix spelling and typos.
37009 (Label Attributes): Likewise.
37010 (Cilk Plus Builtins): Likewise.
37011 (ARC SIMD Built-in Functions): Likewise.
37012 (ARM C Language Extensions (ACLE)): Likewise.
37013 (PowerPC Built-in Functions): Likewise.
37014 (PowerPC Hardware Transactional Memory Built-in Functions):
37017 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37019 PR tree-optimization/65216
37020 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37021 new stmt and new SSA_NAME for lhs whenever the arguments have
37022 changed and weren't just swapped. Fix comment typo.
37024 PR tree-optimization/65215
37025 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37026 for PDP endian targets.
37027 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37028 Fix up formatting issues.
37029 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
37030 size is smaller than the original, adjust MEM_REF offset by the
37031 difference of sizes. Use is_gimple_mem_ref_addr instead of
37032 is_gimple_min_invariant test to avoid adding address temporaries.
37034 2015-02-26 Martin Liska <mliska@suse.cz>
37035 Jan Hubicka <hubicka@ucw.cz>
37038 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37039 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37040 (sem_item_optimizer::process_cong_reduction): Include division by
37041 sensitive references.
37042 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37043 * ipa-ref.c (ipa_ref::address_matters_p): New function.
37044 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37046 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
37049 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37051 * config/avr/avr.c: Same.
37052 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37053 Refuse any constant address not in 0..0xbf.
37054 * config/avr/avr.md (*mov<mode>, *movsf): Remove
37055 tiny_valid_direct_memory_access_range from insn conditions.
37056 (mov<mode>): Don't special-case expansion of avrtiny addresses.
37058 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
37061 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37062 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37063 * config/sh/predicates.md (const_logical_operand): New predicate.
37064 * config/sh/sh.md: Add new peephole2 patterns.
37066 2015-02-26 Marek Polacek <polacek@redhat.com>
37069 * ipa-inline.c (early_inliner): Recompute inline parameters.
37071 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37074 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37075 instructions with TImode operands are included in the analysis.
37077 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37079 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37080 of an EDGE_FSM_THREAD.
37082 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
37084 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37086 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
37089 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37091 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37093 PR tree-optimization/65048
37094 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37095 (thread_through_all_blocks): Call valid_jump_thread_path.
37096 Remove invalid FSM jump-thread paths.
37098 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37100 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37101 (ipa_write_optimization_summaries): Likewise.
37102 * tree-streamer.h: Include data-streamer.h.
37103 (streamer_mode_table): Declare extern variable.
37104 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37105 * lto-streamer-out.c (lto_output_init_mode_table,
37106 lto_write_mode_table): New functions.
37107 (produce_asm_for_decls): Call lto_write_mode_table when streaming
37109 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37110 (lto_create_simple_input_block): Add mode_table argument to the
37111 lto_input_block constructors.
37112 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37114 * data-streamer-in.c (string_for_index): Likewise.
37115 * ipa-inline-analysis.c (inline_read_section): Likewise.
37116 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37117 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37118 * lto-streamer-in.c (lto_read_body_or_constructor,
37119 lto_input_toplevel_asms): Likewise.
37120 (lto_input_mode_table): New function.
37121 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37122 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37123 Use bp_pack_machine_mode.
37124 * real.h (struct real_format): Add name field.
37125 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37126 (class lto_input_block): Add mode_table member.
37127 (lto_input_block::lto_input_block): Add mode_table_ argument,
37128 initialize mode_table.
37129 (struct lto_file_decl_data): Add mode_table field.
37130 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37131 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37132 unpack_ts_decl_common_value_fields,
37133 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37134 * tree-streamer.c (streamer_mode_table): New variable.
37135 * real.c (ieee_single_format, mips_single_format,
37136 motorola_single_format, spu_single_format, ieee_double_format,
37137 mips_double_format, motorola_double_format,
37138 ieee_extended_motorola_format, ieee_extended_intel_96_format,
37139 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37140 ibm_extended_format, mips_extended_format, ieee_quad_format,
37141 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37142 decimal_single_format, decimal_double_format, decimal_quad_format,
37143 ieee_half_format, arm_half_format, real_internal_format): Add name
37145 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37147 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
37150 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37151 reordering for selective scheduling.
37153 2015-02-26 Terry Guo <terry.guo@arm.com>
37155 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37156 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37157 (arm_arch_no_volatile_ce): Declare new global variable.
37158 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37159 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37160 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37161 (TARGET_NO_VOLATILE_CE): New macro.
37162 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37163 volatile memory access in IT block
37165 2015-02-25 Kai Tietz <ktietz@redhat.com>
37167 PR tree-optimization/61917
37168 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37169 that reduc_def_stmt is null.
37171 2015-02-25 Martin Liska <mliska@suse.cz>
37173 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37174 hard register variables.
37176 2015-02-25 Kai Tietz <ktietz@redhat.com>
37179 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37180 (symtab::noninterposable_alias): Likewise.
37182 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
37185 * config/i386/i386.c (ix86_function_arg_regno_p): Support
37187 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37189 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
37192 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37193 as split condition; force split via '#' in output pattern.
37195 2015-02-25 Richard Biener <rguenther@suse.de>
37196 Kai Tietz <ktietz@redhat.com>
37198 PR tree-optimization/61917
37199 * tree-vect-loop.c (vectorizable_reduction): Allow
37200 vect_internal_def without reduction to exit graceful.
37202 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37205 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37206 only with NONDEBUG_INSN_P.
37208 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37210 Use variadic macros with avr-log.c.
37212 * config/avr/avr-protos.h (avr_vdump): New prototype.
37213 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37214 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37215 * config/avr/avr-log.c: Adjust comments.
37216 (avr_vdump): New function.
37217 (avr_vadump): Pass caller as 2nd argument instead of format string.
37218 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37219 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37221 2015-02-25 Jakub Jelinek <jakub@redhat.com>
37224 * target.def (target_option_stream_in): New target hook.
37225 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37226 targetm.target_option.post_stream_in if non-NULL.
37227 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37228 * doc/tm.texi: Updated.
37229 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37231 (TARGET_OPTION_POST_STREAM_IN): Redefine.
37233 2015-02-24 Jeff Law <law@redhat.com>
37236 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37237 of operand 0 and operand 2.
37238 (zero_cost_loop_end, loop_end): Similarly.
37240 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
37242 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37245 2015-02-24 DJ Delorie <dj@redhat.com>
37247 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37248 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37249 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37250 instead of hardcoding SImode.
37252 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
37254 * omp-low.c (create_omp_child_function): Tag entrypoint
37255 functions with a special attribute.
37257 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37260 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37262 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
37264 PR rtl-optimization/65123
37265 * lra-remat.c (operand_to_remat): Check hard regs in insn
37268 2015-02-24 Nick Clifton <nickc@redhat.com>
37270 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37273 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
37276 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37277 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37278 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37279 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37280 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37281 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37282 (BUILT_IN_GOACC_PARALLEL): Specify as
37283 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37284 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37285 * builtin-types.def
37286 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37287 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37288 Remove function types.
37289 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37290 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37291 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37292 New function types.
37294 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
37296 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37298 2015-02-24 Jakub Jelinek <jakub@redhat.com>
37300 PR tree-optimization/65170
37301 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37302 if val[1] < 0, clear also val[2] and return 3.
37304 2015-02-24 Alan Modra <amodra@gmail.com>
37307 * config/rs6000/rs6000.c (get_memref_parts): Only return true
37308 when *base is a reg. Handle nested plus addresses. Simplify
37311 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
37313 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37314 use natural alignment when optimizing for size.
37316 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
37319 * config/sh/sh.md (movsicc_true+3): Remove peephole.
37320 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37321 * config/sh/sh.c (replace_n_hard_rtx): Remove.
37323 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
37326 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37327 too big for a wide_int. Implement missing wrapping operation.
37329 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
37332 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37333 instead of const_int 4294901760.
37335 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
37337 * config/avr/t-avr: Fix typo in comment.
37339 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
37341 * doc/rtl.texi (fma): Clarify documentation.
37343 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37346 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37347 over input_location.
37349 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37351 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37352 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37353 restrict alignments to absolute_biggest_alignment.
37354 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37356 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37357 * doc/tm.texi: Regenerate.
37358 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37360 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37363 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37365 2015-02-20 Richard Biener <rguenther@suse.de>
37367 PR tree-optimization/65136
37368 * tree-ssa-propagate.c: Include cfgloop.h.
37369 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37370 arguments with constants.
37372 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37373 Martin Liska <mliska@suse.cz>
37376 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37377 don't try to create_thunk if stdarg_p. If
37378 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37379 redirect_callers if possible.
37380 (sem_item_optimizer::execute): Call unregister_hooks here...
37381 (ipa_icf_driver): ... instead of here.
37383 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37385 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37386 Mark operand 0 as earlyclobber in 2nd alternative.
37387 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37388 Write negated shift amount into QI lowpart operand 0 and use it
37390 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37392 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37394 * cgraph.h (clone_function_name_1): Declare.
37395 * cgraphclones.c (clone_function_name_1): New function.
37396 (clone_function_name): Use it.
37397 * lto-partition.c: Include "stringpool.h".
37398 (must_not_rename, maybe_rewrite_identifier)
37399 (validize_symbol_for_target): New static functions.
37400 (privatize_symbol_name): Use must_not_rename.
37401 (promote_symbol): Call validize_symbol_for_target.
37402 (lto_promote_cross_file_statics): Likewise.
37403 (lto_promote_statics_nonwpa): Likewise.
37405 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37408 * config/avr/avr.md (pushhi_insn): New insn.
37409 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37411 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37412 Jakub Jelinek <jakub@redhat.com>
37414 * tree-streamer.c (preload_common_nodes): Don't preload
37415 TI_VA_LIST* for offloading.
37416 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37419 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37421 * config/pa/pa.c (pa_emit_move_sequence): Always force
37422 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37425 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37426 (TARGET_ASM_RELOC_RW_MASK): Define.
37427 (pa_cannot_force_const_mem): Revert previous change.
37429 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37430 Jan Hubicka <hubicka@ucw.cz>
37433 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37434 across jump functions.
37436 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37438 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37440 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37442 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37444 2015-02-19 Richard Henderson <rth@redhat.com>
37446 PR middle-end/65074
37447 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37448 test DECL_EXTERNAL independent of symtab_node.
37450 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37453 * varpool.c (varpool_node::get_constructor): Return early
37454 if this->lto_file_data is NULL.
37456 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37458 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37459 (rank_for_schedule_debug): Update.
37460 (ready_sort): Make static. Move sorting logic to ...
37461 (ready_sort_debug, ready_sort_real): New static functions.
37462 (schedule_block): Sort both debug insns and real insns in preparation
37463 for ready list trimming. Improve debug output.
37464 * sched-int.h (ready_sort): Remove global declaration.
37466 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37468 * ipa-icf.c (sem_function::equals_private): Adjust.
37469 (sem_function::bb_dict_test): Take a vec<int> * instead of
37471 * ipa-icf.h (bb_dict_test): Likewise.
37473 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37475 PR gcov-profile/64634
37476 * tree-eh.c (frob_into_branch_around): Fix up typos
37477 in function comment.
37478 (lower_catch): Put eh_seq resulting from EH lowering of
37479 the cleanup sequence after the cleanup rather than before it.
37481 2015-02-18 Tom de Vries <tom@codesourcery.com>
37483 * common.opt (fstdarg-opt): New option.
37484 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37485 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37486 (@item -fstdarg-opt): New item.
37488 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37491 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37492 for common symbols.
37494 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37496 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37498 (ALL_HOST_OBJS): Add mkoffload.o.
37499 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37501 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37503 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37504 (compare_virtual_tables): Be smarter about skipping typeinfos;
37505 do sane output on virtual table table mismatch.
37506 (warn_odr): Be ready for forward declarations of enums;
37507 output sane info on base mismatch and virtual table mismatch.
37508 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37509 when only one type is polymorphic.
37510 (get_odr_type): Fix hashtable corruption.
37511 (dump_odr_type): Dump mangled names.
37513 2015-02-18 Richard Biener <rguenther@suse.de>
37515 PR tree-optimization/65063
37516 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37517 have replaced looparound PHIs.
37519 2015-02-18 Martin Liska <mliska@suse.cz>
37521 * lto-streamer.c (lto_streamer_init): Encapsulate
37522 streamer_check_handled_ts_structures with checking macro.
37524 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37527 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37528 section if !implicit_section.
37529 (cgraph_node::create_version_clone_with_body): Likewise.
37530 * trans-mem.c (ipa_tm_create_version): Likewise.
37532 2015-02-18 Richard Biener <rguenther@suse.de>
37534 PR tree-optimization/62217
37535 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37538 2015-02-18 Marek Polacek <polacek@redhat.com>
37541 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37542 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37543 is in range [-16K, -1]. Don't issue run-time error if
37544 (ptr > ptr + offset).
37546 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37548 * doc/install.texi (nvptx-*-none): New section.
37549 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37550 * config/nvptx/nvptx.opt: Update.
37552 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37553 (access_check): New functions, copied from
37554 config/i386/intelmic-mkoffload.c.
37555 (main): For non-installed testing, look in all COMPILER_PATHs for
37558 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37560 2015-02-18 Andrew Pinski <apinski@cavium.com>
37561 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37563 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37564 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37566 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37568 * ipa-visibility.c (function_and_variable_visibility): Only
37569 check locality if node is not already local.
37570 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37571 call_for_symbol_and_aliases instead of
37572 call_for_symbol_thunks_and_aliases.
37573 (ipa_inline): Likewise.
37574 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37575 first walk aliases.
37576 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37577 call_for_symbol_and_aliases.
37578 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37579 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37580 (ipa_propagate_frequency): Update.
37581 (ipa_profile): Add opt_for_fn gueards.
37583 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37585 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37586 * doc/invoke.texi (SH options): Document it.
37587 * config/sh/sh.c (sh_insn_length_adjustment): Check
37588 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37590 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37592 * common.opt (fipa-cp-alignment): New.
37593 * ipa-cp.c (ipcp_store_alignment_results): Check
37594 flag_ipa_cp_alignment.
37595 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37597 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37598 * doc/invoke.texi: Document -fipa-cp-alignment.
37600 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37603 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37604 to nil. Adjust comments.
37606 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37608 * ipa-visibility.c (function_and_variable_visibility): Only
37609 check locality if node is not already local.
37610 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37611 call_for_symbol_and_aliases instead of
37612 call_for_symbol_thunks_and_aliases.
37613 (ipa_inline): Likewise.
37614 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37615 first walk aliases.
37616 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37617 call_for_symbol_and_aliases.
37618 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37619 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37620 (ipa_propagate_frequency): Update.
37621 (ipa_profile): Add opt_for_fn guards.
37623 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37625 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37626 skipping of "strange" tokens.
37628 2015-02-17 Jeff Law <law@redhat.com>
37630 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37633 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37635 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37636 as forcing a HARD_DEP between instructions, thereby
37637 disallowing rewriting to break dependencies.
37639 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37641 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37642 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37643 variables in boundary that have no inlitalizer encoded and are
37645 * varasm.c (default_binds_local_p_2): External definitions do not
37646 count as definitions here.
37648 2015-02-16 Jeff Law <law@redhat.com>
37650 PR tree-optimization/64823
37651 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37653 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37654 threading through blocks with PHIs, but no statements.
37655 (thread_through_normal_block): Distinguish between blocks where
37656 we did not process all the statements and blocks with no statements.
37658 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37659 James Greenhalgh <james.greenhalgh@arm.com>
37662 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37663 section if not linkonce. Fix up formatting.
37664 (cgraph_node::create_version_clone_with_body): Copy section.
37665 * trans-mem.c (ipa_tm_create_version): Likewise.
37667 2015-02-16 Richard Biener <rguenther@suse.de>
37669 PR tree-optimization/65077
37670 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37671 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37672 (find_func_aliases): Allow float values to carry pointers again.
37674 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37676 * doc/install.texi (Specific): Reorder targets list to put
37677 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37680 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37681 David Edelsohn <dje.gcc@gmail.com>
37684 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37685 mapping class to external variable or function reference.
37686 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37689 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37692 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37693 ASM_WEAKEN_DECL if defined.
37695 2015-02-16 Richard Biener <rguenther@suse.de>
37698 * varasm.c (default_file_start): For LTO produced units
37699 emit <artificial> as file directive.
37701 2015-02-16 Richard Biener <rguenther@suse.de>
37703 PR tree-optimization/63593
37704 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37705 stmts and releasing SSA names until...
37706 (execute_pred_commoning): ... after processing all chains.
37708 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37711 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37712 external functions.
37714 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37716 * doc/bugreport.texi: Adjust section titles throughout the file
37717 to use "Title Case".
37718 * doc/extend.texi: Likewise.
37719 * doc/gcov.texi: Likewise.
37720 * doc/implement-c.texi: Likewise.
37721 * doc/implement-cxx.texi: Likewise.
37722 * doc/invoke.texi: Likewise.
37723 * doc/objc.texi: Likewise.
37724 * doc/standards.texi: Likewise.
37725 * doc/trouble.texi: Likewise.
37727 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37729 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37730 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37731 * tree.c (lookup_binfo_at_offset): Make static.
37732 (get_binfo_at_offset): Do not shadow offset; add explanatory
37735 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37737 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37738 for all floading point loads and stores except those using a register
37740 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37743 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37745 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37746 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37747 (estimate_growth): Handle uninlinable edges correctly.
37748 (check_callers): New.
37749 (growth_likely_positive): Handle aliases correctly.
37751 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37753 * ipa-chkp.c: Use iterate_direct_aliases.
37754 * symtab.c (resolution_used_from_other_file_p): Move inline.
37755 (symtab_node::create_reference): Fix formating.
37756 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37757 (symtab_node::iterate_reference): Move inline.
37758 (symtab_node::iterate_referring): Move inline.
37759 (symtab_node::iterate_direct_aliases): Move inline.
37760 (symtab_node::used_from_object_file_p_worker): Inline into ...
37761 (symtab_node::used_from_object_file_p): ... this one; move inline.
37762 (symtab_node::call_for_symbol_and_aliases): Move inline;
37763 use iterate_direct_aliases.
37764 (symtab_node::call_for_symbol_and_aliases_1): New method.
37765 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37766 use iterate_direct_aliases.
37767 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37768 (varpool_node::call_for_node_and_aliases): Rename to ...
37769 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37770 use iterate_direct_aliases.
37771 (varpool_node::call_for_symbol_and_aliases_1): New method.
37772 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37773 (ipa_discover_readonly_nonaddressable_var): Update.
37774 * ipa-devirt.c: Fix formating.
37775 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37777 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37778 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37779 * cgraph.h (used_from_object_file_p_worker): Remove.
37780 (resolution_used_from_other_file_p): Move inline.
37781 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37782 (symtab_node::iterate_reference): Move inline.
37783 (symtab_node::iterate_referring): Move inline.
37784 (symtab_node::iterate_direct_aliases): Move inline.
37785 (symtab_node::used_from_object_file_p_worker): Inline into ...
37786 (symtab_node::used_from_object_file_p): Move inline.
37787 * tree-emutls.c (ipa_lower_emutls): Update.
37788 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37789 (varpool_node::call_for_node_and_aliases): Remove.
37791 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37793 PR tree-optimization/62209
37794 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37795 op == range->exp, insert seq and gimplified code after labels
37796 instead of after the phi.
37798 2015-02-13 Jeff Law <law@redhat.com>
37801 Revert my change for tree-optimization/64823.
37803 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37805 PR tree-optimization/65053
37806 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37807 cond, either reset VR on lhs or set it to phi result VR.
37809 2015-02-13 Jeff Law <law@redhat.com>
37811 PR tree-optimization/64823
37812 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37813 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37814 threading through blocks with PHIs, but no statements.
37815 (thread_through_normal_block): Distinguish between blocks where
37816 we did not process all the statements and blocks with no statements.
37818 PR rtl-optimization/47477
37819 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37820 simplifier to narrow arithmetic.
37822 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37825 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37826 polymorphic call info when type is not known to be preserved.
37828 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37831 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37832 (inline_call): Use it.
37834 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37836 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37837 GOMP_DEVICE_NVIDIA_PTX.
37839 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37842 * stmt.c (emit_case_nodes): Use void_type_node instead of
37843 NULL_TREE as LABEL_DECL type.
37845 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37847 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37849 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37850 symbolic references to data to be forced to constant memory on the
37853 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37855 PR tree-optimization/65002
37856 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37858 * tree-sra.c (some_callers_have_no_vuse_p): New.
37859 (ipa_early_sra): Reject functions whose callers
37860 assume function is read only.
37862 2015-02-13 Richard Biener <rguenther@suse.de>
37865 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37866 for LTO produced CUs.
37868 2015-02-13 Bin Cheng <bin.cheng@arm.com>
37870 PR tree-optimization/64705
37871 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37872 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37873 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37874 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37875 expand_simple_operations.
37877 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
37878 Richard Henderson <rth@redhat.com>
37881 * cgraphunit.c (cgraph_node::finalize_function): Set definition
37882 before notice_global_symbol.
37883 (varpool_node::finalize_decl): Likewise.
37884 * varasm.c (default_binds_local_p_2): Rename from
37885 default_binds_local_p_1, add weak_dominate argument. Use direct
37886 returns instead of assigning to local variable. Unify varpool and
37887 cgraph paths via symtab_node. Reject undef weak variables before
37888 testing visibility. Reorder tests for simplicity.
37889 (default_binds_local_p): Use default_binds_local_p_2.
37890 (default_binds_local_p_1): Likewise.
37891 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37893 (default_elf_asm_output_external): Emit visibility when specified.
37895 2015-02-13 Alan Modra <amodra@gmail.com>
37897 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37898 code setting up r11 for out-of-line fp restore.
37900 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
37902 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37903 (muser-mode): Likewise.
37905 2015-02-13 Alan Modra <amodra@gmail.com>
37907 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37908 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37910 2015-02-12 David Howells <dhowells@redhat.com>
37912 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37914 * tree-ssa-uninit.c (dump_predicates): Likewise.
37915 * opts.c (print_filtered_help): Likewise.
37917 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37919 * dwarf2out.c (output_die): Use "%s", name instead of name to
37920 avoid -Wformat-security warning.
37922 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37923 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37924 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37925 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37927 2015-02-12 Jason Merrill <jason@redhat.com>
37929 * common.opt (-flifetime-dse): New.
37931 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37934 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37936 PR tree-optimization/65014
37937 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37938 use original second operand of arg0 or arg1 instead of
37939 that adjusted by STRIP_NOPS.
37941 2015-02-11 Jeff Law <law@redhat.com>
37944 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37945 that needs to be queued, just queue it for a single cycle.
37947 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
37949 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37950 bodies of thunks; comment on why.
37951 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37952 symbols are extern.
37954 2015-02-11 Richard Henderson <rth@redhat.com>
37957 * tree-eh.c (mark_reachable_handlers): Mark source and destination
37958 regions of __builtin_eh_copy_values.
37960 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37962 PR middle-end/65003
37963 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37964 ultimate alias is MEM with SYMBOL_REF satisfying
37965 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
37966 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37968 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
37970 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37971 "diagnostic-core.h".
37972 (main): Initialize progname, and call diagnostic_initialize.
37974 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37975 instead of __OPENMP_TARGET__.
37977 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37978 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37979 hard-coding PTX_ID.
37981 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
37983 * doc/sourcebuild.texi (pie_enabled): Document.
37985 2015-02-11 Martin Liska <mliska@suse.cz>
37988 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37989 a return value for call to a function that is noreturn.
37991 2015-02-11 Richard Biener <rguenther@suse.de>
37994 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37997 2015-02-11 Andrew Pinski <apinski@cavium.com>
38000 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38001 Change the first argument type to size_type_node and add another
38003 (aarch64_simd_expand_builtin): Handle the new argument to
38004 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38005 print an out when the first two arguments are not
38006 nonzero integer constants.
38007 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38008 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38010 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38013 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38014 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38015 (ix86_set_current_function): Rewritten.
38016 (ix86_add_new_builtins): Temporarily clear current_target_pragma
38017 when creating builtin fndecls.
38019 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38022 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38024 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38025 have no comdat group.
38026 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38027 (lto_output_varpool_node): Always output alias info.
38028 (output_refs): Output refs of boundary aliases, too.
38029 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38030 (output_symtab): Output call eges in thunks in boundary.
38031 (get_alias_symbol): Remove.
38032 (input_node, input_varpool_node): Do not special case weakrefs.
38033 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38034 alias and thunks targets in the boundary; do not take removed symbols
38035 from their comdat groups.
38036 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38037 (cgraph_node::global_info): Remove.
38038 (cgraph_node::rtl_info): Look through aliases and thunks.
38039 * cgrpah.h (global_info): Remove.
38040 (non_local_p): Remove.
38042 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38043 Sandra Loosemore <sandra@codesourcery.com>
38045 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38046 to inline asm. List dialects in proper order.
38048 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38049 Sandra Loosemore <sandra@codesourcery.com>
38051 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38053 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38055 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38056 modified) reference to Solaris.
38058 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
38060 * doc/extend.texi (Extended Asm): Fix typos.
38062 2015-02-10 Jakub Jelinek <jakub@redhat.com>
38065 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38067 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
38070 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38071 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38072 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38073 * config/sh/constraints.md (Ara, Add): New constraints.
38074 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38076 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38077 atomic_mem_operand_0. Don't use force_reg on the memory address.
38078 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38079 Sra constraint. Convert to insn_and_split. Add workaround for
38081 (atomic_compare_and_swap<mode>_hard): Copy to
38082 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
38083 Use atomic_mem_operand_0 predicate.
38084 (atomic_compare_and_swap<mode>_soft_gusa,
38085 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38086 AraAdd constraints.
38087 (atomic_compare_and_swap<mode>_soft_tcb,
38088 atomic_compare_and_swap<mode>_soft_imask,
38089 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38090 atomic_mem_operand_0 predicate and SraSdd constraints.
38091 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38093 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38094 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
38095 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38096 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
38097 force_reg on the memory address.
38098 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38099 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38100 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38101 atomic_mem_operand_1 predicate and Sra constraint.
38102 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38103 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38104 Use atomic_mem_operand_1 predicate.
38105 (atomic_<fetchop_name><mode>_hard): Copy to
38106 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38107 Use atomic_mem_operand_1 predicate.
38108 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38109 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38110 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
38111 insn_and_split. Use atomic_mem_operand_1 predicate.
38112 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38113 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
38114 Use atomic_mem_operand_1 predicate.
38115 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38116 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38117 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38118 in generated insn with original mem operand before emitting the insn.
38119 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38120 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38121 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38122 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38123 Use atomic_mem_operand_1 predicate and AraAdd constraints.
38124 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38125 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38126 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38127 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38128 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38129 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38130 atomic_not_fetch<mode>_soft_tcb,
38131 atomic_<fetchop_name>_fetch<mode>_soft_imask,
38132 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38133 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38134 Use atomic_mem_operand_1 predicate and SraSdd constraints.
38136 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
38138 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38139 and 3 earlyclobber operands.
38141 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38143 * common.opt (fstack-reuse): Mark as optimization.
38145 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38148 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38150 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
38152 PR tree-optimization/64326
38153 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38155 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
38157 PR gcov-profile/61889
38158 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38160 2015-02-10 Richard Biener <rguenther@suse.de>
38162 PR tree-optimization/64995
38163 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38164 value we use is final.
38165 (visit_reference_op_store): Always valueize op.
38166 (visit_use): Properly valueize vuses.
38168 2015-02-10 Richard Biener <rguenther@suse.de>
38170 PR tree-optimization/64909
38171 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38172 pass a scalar-stmt count estimate to the cost model.
38173 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38175 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
38177 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38178 enabled by default together with var-tracking.
38180 2015-02-10 Nick Clifton <nickc@redhat.com>
38182 * config/rl78/rl78.c: Remove DIV attribute code accidentally
38183 included in previous rl78 commit.
38185 2015-02-10 Richard Biener <rguenther@suse.de>
38187 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38188 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38189 return the bitpack.
38191 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38193 PR gcov-profile/61889
38194 * config.in: regenerate.
38195 * configure.in: Likewise.
38196 * configure.ac: Check for ftw.h.
38197 * gcov-tool.c: Check for ftw.h before using nftw.
38199 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38202 * ipa-visibility.c (update_visibility_by_resolution_info): Only
38203 assert when not in lto mode.
38205 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38207 * ira-color.c (setup_left_conflict_sizes_p): Simplify
38208 initialization/assignment of conflict_size.
38210 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
38213 * ipa-cp.c (gather_caller_stats): Skip thunks.
38214 (propagate_constants_topo): Skip aliases.
38216 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
38219 * config/sh/sh.c (sh_option_override): Don't change
38220 -freorder-blocks-and-partition to -freorder-blocks even when
38221 unwinding is enabled.
38222 (sh_can_follow_jump): Return false if the followee jump is
38223 a crossing jump when -freorder-blocks-and-partition is specified.
38224 * config/sh/sh.md (*jump_compact_crossing): New insn.
38226 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
38227 Kaz Kojima <kkojima@gcc.gnu.org>
38230 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38231 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38232 (sh_can_redirect_branch): Rename to ...
38233 (sh_can_follow_jump): ... this. Constify argument types.
38234 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38235 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38236 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38237 * doc/tm.texi: Regenerate.
38239 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38242 * builtins.c (expand_builtin): Call targetm.expand_builtin
38243 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38245 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38248 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38250 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38253 * ipa-icf.c (set_local): New function.
38254 (sem_function::merge): Use it.
38256 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38258 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38259 (add_type_duplicate): Fix comparison of BINFOs.
38261 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38263 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38264 on getting VOID pointer.
38266 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38269 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38272 2015-02-09 Richard Biener <rguenther@suse.de>
38274 * genmatch.c (replace_id): Copy expr_type.
38276 2015-02-09 Richard Biener <rguenther@suse.de>
38278 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38279 (streamer_write_tree_bitfields): Declare.
38280 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38281 properly unpack padding.
38282 (unpack_value_fields): Inline ...
38283 (streamer_read_tree_bitfields): ... here.
38284 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38285 and properly add padding bits.
38286 (streamer_pack_tree_bitfields): Fold into ...
38287 (streamer_write_tree_bitfields): ... this new function,
38288 exposing the bitpack object.
38289 * lto-streamer-out.c (lto_write_tree_1): Call
38290 streamer_write_tree_bitfields.
38292 2015-02-09 Richard Biener <rguenther@suse.de>
38294 PR tree-optimization/54000
38295 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38296 (struct ivopts_data): Add loop_loc member.
38297 (tree_ssa_iv_optimize_loop): Dump loop location.
38298 (create_new_ivs): Likewise, also dump number of IVs generated.
38300 2015-02-09 Martin Liska <mliska@suse.cz>
38302 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38303 just if not yet registered.
38304 (ipa_icf_generate_summary): Register callgraph hooks.
38306 2015-02-08 Andrew Pinski <apinski@cavium.com>
38308 * config/aarch64/aarch64.c (gty_dummy): Delete.
38310 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38313 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38314 (cgraph_node::local_p): Remove thunk related FIXME.
38316 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38319 * i386.c (ix86_function_regparm): Look through aliases to see if callee
38320 is local and optimized.
38321 (ix86_function_sseregparm): Likewise; also use target's SSE math
38322 settings; error out instead of silently generating wrong code
38324 (init_cumulative_args): Look through aliases.
38326 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38329 * ipa-split.c (execute_split_functions): Split if function has aliases.
38331 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38334 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38335 aliases before trying to expand it.
38336 (cgraph_node::expand_thunk): Fix formating.
38338 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
38340 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38341 (Using Assembly Language with C): Expand introduction.
38342 (Basic Asm): Copy-edit. Add more information about uses of
38344 (Extended Asm): Copy-edit. Document new escape syntax and
38346 (Global Reg Vars): Copy-edit.
38347 (Local Reg Vars): Likewise.
38349 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38353 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38354 (DBX_CONTIN_CHAR): Define.
38356 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38357 Brian Rzycki <b.rzycki@samsung.com>
38359 PR tree-optimization/64878
38360 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38361 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38362 Stop recursion at loop phi nodes after having visited a loop phi node.
38364 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38366 * toplev.c (process_options): Change flag_ipa_ra before creating
38367 optimization_{default,current}_node.
38370 * cgraphunit.c (cgraph_node::expand_thunk): If
38371 restype is not is_gimple_reg_type nor the thunk_fndecl
38372 returns aggregate_value_p, set restmp to a temporary variable
38373 instead of resdecl.
38375 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38377 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38379 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38382 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38383 add a general secondary reload handler for SDmode, unless we have
38384 both read/write support for SDmode.
38386 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38388 PR middle-end/64937
38389 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38390 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38391 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38392 1 before, push it to abstract_vec.
38393 (dwarf2out_abstract_function): Adjust caller. Don't call
38394 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38395 DECL_ABSTRACT_P flags for all abstract_vec elts.
38397 2015-02-06 Renlin Li <renlin.li@arm.com>
38399 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38401 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38403 2015-02-06 Jeff Law <law@redhat.com>
38406 * config/h8300/h8300.c (push): New argument "in_prologue".
38407 Pass "in_prologue" along to "F".
38408 (h8300_push_pop): Corresponding changes.
38409 (h8300_expand_prologue): Likewise.
38410 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38412 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38414 PR rtl-optimization/64957
38416 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38417 IOR rather than for AND.
38419 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38422 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38423 of shift-add and (add + shift) operations. Rename local variable.
38425 2015-02-05 Jeff Law <law@redhat.com>
38428 * config/h8300/constraints.md (U): Correctly dectect
38429 "eightbit_data" memory addresses.
38430 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38431 handle (const (plus (symbol_ref (x)))) where x is declared
38432 as an 8-bit data memory address.
38433 * config/h8300/h8300.md (call, call_value): Correctly detect
38434 "funcvec" functions.
38437 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38438 24 to 28 bits for the H8/300.
38440 2015-02-06 Alan Modra <amodra@gmail.com>
38443 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38444 (rs6000_call_aix): Use it.
38446 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38448 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38451 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38453 * config/h8300/constraints.md ("U" constraint): Use strict
38454 variant of REG_OK_FOR_BASE_P after reload has started.
38456 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38458 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38459 define to zero if !TARGET_NEON.
38460 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38462 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38463 Trevor Saunders <tsaunders@mozilla.com>
38466 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38468 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38471 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38472 when removing varpool nodes.
38474 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38477 * varpool.c (varpool_node::remove): Fix order of variables.
38479 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38482 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38483 speculation resolution and key updates.
38485 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38487 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38488 about not letting any speculative edges unupdated.
38490 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38493 * gcov-io.c (gcov_var): Export.
38495 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38497 PR middle-end/64922
38498 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38499 edges that become speculative.
38501 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38503 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38504 or DW_LANG_Fortran08.
38505 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38507 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38508 "GNU Fortran2008" language strings.
38509 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38510 * langhooks.h (lang_GNU_Fortran): New prototype.
38511 * langhooks.c (lang_GNU_Fortran): New function.
38512 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38515 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38517 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38518 (RTX_OK_FOR_OLO10_P): Likewise.
38520 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38522 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38524 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38526 PR middle-end/64922
38527 * gimple.c: Include gimple-ssa.h.
38528 (maybe_remove_unused_call_args): New function.
38529 * gimple.h (maybe_remove_unused_call_args): Declare.
38530 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38531 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38532 * gimple-fold.c (gimple_fold_call): Likewise.
38534 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38536 PR rtl-optimization/64905
38537 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38538 pointer alignment if it isn't needed.
38540 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38542 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38543 cortex-a72.cortex-a53.
38544 * config/aarch64/aarch64-tune.md: Regenerate.
38545 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38547 2015-02-04 Nick Clifton <nickc@redhat.com>
38549 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38552 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38554 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38555 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38556 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38558 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38559 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38560 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38561 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38562 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38563 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38564 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38565 * tree-core.h (enum built_in_function): In between
38566 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38567 for builtins that use DEF_BUILTIN_CHKP macro.
38569 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38572 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38573 operands for tcc_comparison exprs. Fix typos.
38576 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38577 of two XORs that have an intervening AND or IOR.
38580 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38581 simplification of XOR of AND to not allocate new rtx before
38582 committing to a simplification.
38584 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38586 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38587 manual swaps in all peepholes.
38589 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38591 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38592 of manual swapping implementation.
38593 (aarch64_expand_vec_perm_const_1): Likewise.
38595 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38597 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38598 (generic_addrcost_table): Remove NAMED_PARAM.
38599 (cortexa57_addrcost_table): Likewise.
38600 (xgene1_addrcost_table): Likewise.
38601 (generic_regmove_table): Likewise.
38602 (cortexa53_regmove_table): Likewise.
38603 (xgene1_regmove_table): Likewise.
38604 (generic_vector_table): Likewise.
38605 (cortexa57_vector_table): Likewise.
38606 (xgene1_vector_table): Likewise.
38607 (generic_tunings): Likewise.
38608 (cortexa53_tunings): Likewise.
38609 (cortexa57_tunings): Likewise.
38610 (xgene1_tunings): Likewise.
38612 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38614 * config/arm/arm-cores.def: Add cortex-a72 and
38615 cortex-a72.cortex-a53.
38616 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38617 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38618 * config/arm/arm-tune.md: Regenerate.
38619 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38620 "cortex-a72.cortex-a53".
38621 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38623 2015-02-04 Nick Clifton <nickc@redhat.com>
38626 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38628 (nonimmediate_di_operand): Likewise.
38630 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38631 prefixes of known F5 using MSP430 MCUs.
38633 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38635 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38636 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38637 instead of __builtin_sqrt.
38639 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38641 * varasm.c (do_assemble_alias): Follow transparent alias
38643 (default_assemble_visibility): Follow transparent alias
38644 chain for decl name.
38646 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38648 PR middle-end/62103
38649 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38650 to compute size of referenced value in the constant case.
38652 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38654 PR rtl-optimization/64756
38655 * cse.c (invalidate_dest): New function.
38656 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38657 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38658 invalidate and do not record it.
38660 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38663 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38664 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38665 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38666 atomic_nand<mode>_soft_tcb): New insns.
38667 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38668 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38669 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38670 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38671 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38672 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38673 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38674 atomic_not<mode>_hard if operands[0] is unused.
38675 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38676 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38677 if operands[0] is unused.
38678 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38679 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38680 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38681 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38683 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38684 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38685 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38686 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38687 if operands[0] is unused.
38688 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38689 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38690 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38691 atomic_nand_fetchsi_hard if operands[0] is unused.
38692 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38693 atomic_nand<mode>_hard if operands[0] is unused.
38694 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38695 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38696 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38697 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38698 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38699 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38700 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38701 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38702 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38703 atomic_not<mode>_hard if operands[0] is unused.
38704 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38705 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38707 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38708 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38709 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38710 atomic_nand<mode>_hard if operands[0] is unused.
38711 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38712 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38714 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38717 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38718 * gcc-main.c: New file, containing "main" taken from gcc.c.
38719 * gcc.c (do_self_spec): Free decoded_options.
38720 (class driver): Move declaration to gcc.h.
38721 (main): Move declaration and implementation to new file
38723 (driver_get_configure_time_options): New function.
38724 * gcc.h (class driver): Move this declaration here, from
38726 (driver_get_configure_time_options): New declaration.
38728 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38730 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38731 cross-module inlining.
38732 * cgraph.h (cgraph_node): Add flag merged.
38733 * ipa-icf.c (sem_function::merge): Maintain it.
38735 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38737 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38738 instead of OBJECT_P.
38740 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38743 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38744 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38745 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38746 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38748 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38751 * combine.c (reg_n_sets_max): New variable.
38752 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38753 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38754 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38755 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38756 (rest_of_handle_combine): Initialize reg_n_sets_max.
38758 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38760 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38761 if some always_inline was inlined, apply changes before inlining
38764 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38767 * config/arm/arm.c (arm_option_override): Set
38768 arm_selected_arch/cpu/tune to NULL on entry.
38770 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38771 Andrew Pinski <pinskia@gcc.gnu.org>
38772 Jakub Jelinek <jakub@gcc.gnu.org>
38775 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38776 integer typing for small model. Use IN_RANGE.
38778 2015-02-02 Richard Biener <rguenther@suse.de>
38780 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38781 * tree-vrp.c (vrp_valueize_1): Likewise.
38783 2015-02-02 Alan Modra <amodra@gmail.com>
38785 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38786 than mem for toc_restore.
38787 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38788 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38789 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38791 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38794 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38795 explicit default options.
38797 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38800 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38801 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38802 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38804 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38807 * cfgexpand.c (deep_ter_debug_map): New variable.
38808 (avoid_deep_ter_for_debug): New function.
38809 (expand_debug_expr): If TERed SSA_NAME is in
38810 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38811 instead of trying to expand SSA_NAME's def stmt.
38812 (expand_debug_locations): When expanding debug bind
38813 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38814 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38816 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38817 all debug bind stmts. Delete deep_ter_debug_map after
38818 expand_debug_location if non-NULL and clear it.
38820 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38823 * config/sh/sync.md (atomic_fetch_notsi_hard,
38824 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38825 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38826 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38827 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38828 atomic_not_fetch<mode>_soft_imask): New insns.
38830 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38832 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38833 (rank_for_schedule_debug): Split from ...
38834 (rank_for_schedule): ... this.
38835 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38836 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38838 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38840 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38841 * doc/extend.texi (x86 Variable Attributes): Move section to
38842 correct alphabetization after renaming.
38843 (x86 Type Attributes): Likewise.
38844 (Target Builtins): Re-alphabetize menu.
38845 (x86 Built-in Functions): Move section to correct alphabetization
38847 (x86 transactional memory intrinsics): Likewise.
38848 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38849 and x86 Windows Options in table and menu.
38850 (x86 Options): Move section to correct alphabetization after
38852 (x86 Windows Options): Likewise.
38854 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38856 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38857 preferred names of the architecture and its 32- and 64-bit
38859 * doc/invoke.texi: Likewise.
38860 * doc/md.texi: Likewise.
38862 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38865 * config/i386/predicates.md (address_no_seg_operand): Reject
38866 non-CONST_INT_P operands in invalid mode.
38868 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38870 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38871 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
38872 * config/i386/predicates.md (address_no_seg_operand): Call
38873 address_operand with VOIDmode.
38874 (vsib_address_operand): Ditto.
38875 (address_mpx_no_base_operand): Ditto.
38876 (address_mpx_no_index_operand): Ditto.
38878 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38881 * lra-constraints.c (original_subreg_reg_mode): New.
38882 (simplify_operand_subreg): Try to simplify subreg of const. Use
38883 original_subreg_reg_mode for it.
38884 (swap_operands): Update original_subreg_reg_mode.
38885 (curr_insn_transform): Set up original_subreg_reg_mode.
38887 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38890 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38892 (process_alt_operands): Use it.
38893 (curr_insn_transform): Check the optional reload pseudo class is
38896 2015-01-30 Joseph Myers <joseph@codesourcery.com>
38898 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38899 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38901 * toplev.h (init_asm_output): Update comment on use of
38902 UNKNOWN_LOCATION with fatal_error.
38903 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38904 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38905 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38906 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38907 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38908 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38909 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38910 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38911 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38912 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38913 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38914 fatal_error changed to pass input_location as first argument.
38916 2015-01-30 Martin Liska <mliska@suse.cz>
38918 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38919 in #pragma GCC diagnostic guards.
38921 2015-01-30 Richard Biener <rguenther@suse.de>
38923 PR tree-optimization/64829
38924 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38925 not add a widening conversion pattern but hand off extra
38926 widenings to callers.
38927 (vect_recog_widen_mult_pattern): Handle extra widening produced
38928 by vect_handle_widen_op_by_const.
38929 (vect_recog_widen_shift_pattern): Likewise.
38930 (vect_pattern_recog_1): Remove excess vertical space in dumping.
38931 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38932 (vect_init_vector_1): Likewise.
38933 (vect_get_vec_def_for_operand): Likewise.
38934 (vect_finish_stmt_generation): Likewise.
38935 (vectorizable_load): Likewise.
38936 (vect_analyze_stmt): Likewise.
38937 (vect_is_simple_use): Likewise.
38939 2015-01-29 Jeff Law <law@redhat.com>
38941 * combine.c (try_combine): Fix typo in comment.
38943 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
38946 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38947 (rs6000_stack_info): Add assert.
38948 (rs6000_output_savres_externs): New function, split off from...
38949 (rs6000_output_function_prologue): ... here. Do not call it for
38952 2015-01-29 Jeff Law <law@redhat.com>
38955 * combine.c (try_combine): If I0 is a memory load and I3 a store
38956 to a related address, increase the "goodness" of doing a 4-insn
38957 combination with I0-I3.
38958 (make_field_assignment): Handle SUBREGs in the ior+and case.
38960 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
38962 PR tree-optimization/64746
38963 * tree-if-conv.c (mask_exists): New function.
38964 (predicate_mem_writes): Save created mask with given size for further
38966 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38967 (ifcvt_repair_bool_pattern): Collect all statements that are root
38968 of bool pattern and use iterative algorithm to remove multiple uses
38969 of predicates, display number of required iterations.
38971 2015-01-29 Richard Biener <rguenther@suse.de>
38973 PR tree-optimization/64853
38974 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38975 stmt will get simulated again.
38976 * tree-ssa-ccp.c (valueize_op_1): Likewise.
38978 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38980 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38981 return_in_pc. Remove redundant assignments.
38982 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38983 (arm_expand_epilogue): Don't compare boolean with true in if condition.
38985 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
38987 * config/i386/i386.c (ix86_mode_after): Make static.
38989 2015-01-29 Richard Biener <rguenther@suse.de>
38991 PR tree-optimization/64844
38992 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38993 dump cost model analysis.
38994 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38995 Do not register adjusted load/store costs here.
38997 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38998 Uros Bizjak <ubizjak@gmail.com>
39000 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39001 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39002 using x86_use_pseudo_pic_reg.
39003 * config/i386/i386.c (ix86_conditional_register_usage): Remove
39004 support for fixed PIC register.
39005 (ix86_use_pseudo_pic_reg): Not static any more.
39007 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39009 PR middle-end/64805
39010 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39011 to avoid error in cgraph node verification.
39013 2015-01-29 Marek Polacek <polacek@redhat.com>
39015 * doc/standards.texi: Reflect that the default for C is gnu11.
39017 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
39020 * reorg.c (switch_text_sections_between_p): New function.
39021 (relax_delay_slots): Call it when testing if the jump insn
39022 is removable. Use targetm.can_follow_jump when testing if
39023 the conditional branch can follow an unconditional jump.
39025 2015-01-27 Caroline Tice <cmtice@google.com>
39027 Committing VTV Cywin/Ming patch for Patrick Wollgast
39028 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39029 if -fvtable-verify=preinit/std is used.
39030 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39031 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39032 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39033 if -fvtable-verify=preinit/std is used.
39034 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39035 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39036 if -fvtable-verify=preinit/std is used.
39037 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39038 * config/i386/mingw32.h (LIB_SPEC): Likewise.
39039 * varasm.c (assemble_variable): Add code to properly set the comdat
39040 section and name for the .vtable_map_vars section in case the
39041 target is PE or COFF.
39043 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39046 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39047 make sane BB profile.
39048 (cgraph_node::expand_thunk): Make sane BB profile.
39049 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39050 * cgraph.h (init_lowered_empty_function): Update prototype.
39051 * config/i386/i386.c (make_resolver_func): Update call.
39052 * predict.c (gate): Disable branch prediction pass if
39053 profile is already there.
39055 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39057 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39058 * opth-gen.awk: Likewise.
39059 * common.opt: Mark flag_fp_contract_mode as Optimization.
39061 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
39063 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39064 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39066 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
39069 * config/sh/predicates.md (atomic_arith_operand,
39070 atomic_logical_operand): Remove.
39071 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39072 (atomic_arith_operand_0): New predicate.
39073 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39074 Use atomic_arith_operand_0 for input values.
39075 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39076 atomic_compare_and_swap<mode>_soft_gusa,
39077 atomic_compare_and_swap<mode>_soft_tcb,
39078 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39079 arith_reg_operand instead of register_operand.
39080 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
39081 atomic_arith_operand_0 for newval input.
39082 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39083 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39084 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39085 arith_reg_operand instead of register_operand.
39086 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39087 fetchop_predicate_1, fetchop_constraint_1_llcs,
39088 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39089 fetchop_constraint_1_imask): New code iterator attributes.
39090 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39091 register_operand. Use fetchop_predicate_1.
39092 (atomic_fetch_<fetchop_name>si_hard,
39093 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39094 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39095 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39096 and arith_reg_operand instead of register_operand. Use
39097 fetchop_predicate_1, fetchop_constraint_1_gusa.
39098 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39099 and arith_reg_operand instead of register_operand. Use
39100 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
39102 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39103 and arith_reg_operand instead of register_operand. Use
39104 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
39106 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39107 register_operand. Use atomic_logical_operand_1.
39108 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39109 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39110 arith_reg_operand instead of register_operand.
39111 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39112 Use arith_reg_dest and arith_reg_operand instead of register_operand.
39113 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
39114 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39115 register_operand. Use fetchop_predicate_1.
39116 (atomic_<fetchop_name>_fetchsi_hard,
39117 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39118 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39119 fetchop_constraint_1_llcs.
39120 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39121 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39122 fetchop_constraint_1_gusa.
39123 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39124 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39125 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
39126 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39127 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39128 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
39129 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39130 register_operand. Use atomic_logical_operand_1.
39131 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39132 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39133 arith_reg_operand instead of register_operand.
39134 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39135 arith_reg_operand instead of register_operand. Use logical_operand
39136 and K08. Adjust asm sequence to allow R0 usage.
39137 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39138 arith_reg_operand instead of register_operand. Use logical_operand
39141 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39144 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39145 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39146 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39147 only get_full_len HOST_WIDE_INTs from get_val () array rather than
39148 all bits in *val_wide.
39150 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
39152 * varpool.c (tls_model_names): Fix names.
39153 (varpool_node::dump): Dump tls- prefix for tls models.
39155 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
39156 Bernd Schmidt <bernds@codesourcery.com>
39157 Nathan Sidwell <nathan@codesourcery.com>
39159 * config/nvptx/mkoffload.c: New file.
39160 * config/nvptx/t-nvptx: Add build rules for it.
39161 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39162 (extra_programs): Add mkoffload.
39163 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39165 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39167 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
39169 PR middle-end/64809
39170 * cfgexpand.c (reorder_operands): Skip debug gimples.
39172 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
39174 PR tree-optimization/64277
39175 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39176 range info when possible to refine estimation.
39178 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
39180 PR tree-optimization/64718
39181 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39182 be a 16bit unsigned integer when n->range is 16.
39183 (bswap_replace): Convert src to that type if necessary for all bswap
39184 sizes. Fix rotation right notation in nearby comment. Use bswap_type
39185 set in pass_optimize_bswap::execute ().
39187 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
39189 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39190 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39191 integer and floating point variants.
39192 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39194 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
39196 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39197 for all vector modes.
39199 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39202 * doc/sourcebuild.texi (comdat_group): Document.
39204 2015-01-28 Terry Guo <terry.guo@arm.com>
39206 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39208 2015-01-27 David Malcolm <dmalcolm@redhat.com>
39210 * toplev.c (print_version): Add param "show_global_state", and
39211 only print GGC and plugin information if it is true.
39212 (init_asm_output): Pass in "true" for the new param when calling
39214 (process_options): Likewise.
39215 (toplev::main): Likewise.
39216 * toplev.h (print_version): Add new param to decl.
39218 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39222 * tree.c (lookup_binfo_at_offset): New function.
39223 (get_binfo_at_offset): Use it.
39225 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39228 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39229 on vtable being vtable.
39231 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
39233 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39234 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39235 -mhotpatch= option.
39236 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39237 -mno-hotpatch options. Change syntax of -mhotpatch= option.
39238 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39240 (s390_hotpatch_trampoline_halfwords_max): Renamed.
39241 (s390_hotpatch_hw_max): New name.
39242 (s390_hotpatch_trampoline_halfwords): Renamed.
39243 (s390_hotpatch_hw_before_label): New name.
39244 (get_hotpatch_attribute): Removed.
39245 (s390_hotpatch_hw_after_label): New name.
39246 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39248 (s390_attribute_table): Ditto.
39249 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39250 (s390_function_num_hotpatch_hw): New name.
39251 Remove special handling of inline functions and hotpatching.
39252 Return number of nops before and after the function label.
39253 (s390_can_inline_p): Removed.
39254 (s390_asm_output_function_label): Emit a configurable number of nops
39255 after the function label.
39256 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39257 (TARGET_CAN_INLINE_P) Removed.
39258 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39260 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39261 Jiong Wang <jiong.wang@arm.com>
39263 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39265 (cb<optab><mode>1): Likewise.
39266 * config/aarch64/iterators.md (bcond): New define_code_attr.
39268 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39270 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39273 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39275 * config/s390/s390.c (s390_register_move_cost): Increase costs for
39278 2015-01-27 Richard Biener <rguenther@suse.de>
39280 * tree-vrp.c (update_value_range): Intersect the range with
39281 old recorded SSA name range information.
39283 2015-01-27 Nick Clifton <nickc@redhat.com>
39285 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39286 BC, DE and HL registers directly, not via AX.
39287 When decrementing the stack pointer by a large amount, transfer SP
39288 into AX and perform the subtraction there.
39289 (rl78_expand_epilogue): Perform the inverse of the above
39292 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39294 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39296 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39297 Yury Gribov <y.gribov@samsung.com>
39300 * ubsan.c (ubsan_source_location): Refactor code.
39301 (ubsan_type_descriptor): Update type size. Refactor code.
39303 2015-01-27 Richard Biener <rguenther@suse.de>
39305 PR tree-optimization/56273
39306 PR tree-optimization/59124
39307 PR tree-optimization/64277
39308 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39309 from the first VRP pass.
39311 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39314 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39315 handle the first argument in the same loop as all the other arguments.
39317 PR rtl-optimization/61058
39318 * jump.c (cleanup_barriers): Update basic block boundaries
39319 if BLOCK_FOR_INSN is non-NULL on PREV.
39321 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
39323 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39324 bounds narrowing, already instrumented calls and calls to
39325 not instrumentable functions.
39327 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39329 PR tree-optimization/64807
39330 * wide-int.cc (wi::divmod_internal): Clear
39331 b_dividend[dividend_blocks_needed].
39333 2015-01-26 DJ Delorie <dj@redhat.com>
39335 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39336 volatile memory references.
39338 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
39341 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39343 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39344 shifts if it already fits into K08.
39346 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39349 * ipa-inline.c (inline_small_functions): Print "unknown" even
39350 if edge->call_stmt is non-NULL, but has builtins or unknown
39353 PR middle-end/64421
39354 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39355 with asterisk, skip the first character.
39357 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39360 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39363 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39366 * config/i386/i386.md (*movdi_internal): Also check operand 0
39367 to determine TYPE_LEA operand.
39368 (*movsi_internal): Ditto.
39370 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39372 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39373 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39375 2015-01-26 Renlin Li <renlin.li@arm.com>
39377 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39379 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39382 2015-01-26 Richard Biener <rguenther@suse.de>
39384 PR middle-end/64764
39385 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39386 combining two BIT_AND_EXPR predicates.
39388 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39391 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39393 2015-01-26 Terry Guo <terry.guo@arm.com>
39395 * config/arm/arm.c (arm_file_start): Update the assignment of
39396 Tag_ABI_HardFP_use.
39398 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39400 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39402 config/arm/arm.md: Include the new Cortex-A57 model.
39403 (generic_sched): Don't use generic_sched when tuning for
39406 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39407 Uros Bizjak <ubizjak@gmail.com>
39409 * config/i386/i386.c (get_builtin_code_for_version): Add
39410 support for BMI and BMI2 multiversion functions.
39412 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39414 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39415 (extract_bit_field): Likewise.
39416 (extract_low_bits): Likewise.
39417 (expand_mult): Likewise.
39418 (expand_mult_highpart_adjust): Likewise.
39420 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39422 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39423 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39424 * config/i386/i386.c (processor_model): Add
39425 M_INTEL_COREI7_BROADWELL.
39426 (arch_names_table): Add "broadwell".
39428 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39437 * config/sh/sh-protos.h
39438 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39439 sh_extending_set_of_reg::use_as_unextended_reg,
39440 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39441 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39442 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39443 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39444 (sh_treg_insns): New class.
39445 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39446 (scope_counter): New class.
39447 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39448 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39449 sh_extending_set_of_reg::can_use_as_unextended_reg,
39450 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39451 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39452 sh_split_treg_set_expr): New functions.
39453 (addsubcosts): Handle treg_set_expr.
39454 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39455 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39456 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39457 (sh_insn_operands_modified_between_p): Make non-static.
39458 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39459 simple_mem_operand in addition to displacement_mem_operand.
39460 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39461 (treg_set_expr, treg_set_expr_not_const01,
39462 arith_reg_or_treg_set_expr): New predicates.
39463 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39464 arith_or_int_operand instead of logical_operand. Convert to
39465 insn_and_split. Try to optimize constant operand in splitter.
39466 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39467 (*tstqi_t_zero): Delete.
39468 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39469 (tstsi_t_and_not): Delete.
39470 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39471 Convert to insn_and_split.
39472 (unnamed split, tstsi_t_zero_extract_xor,
39473 tstsi_t_zero_extract_subreg_xor_little,
39474 tstsi_t_zero_extract_subreg_xor_big): Delete.
39475 (*tstsi_t_shift_mask): New insn_and_split.
39476 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39477 to recombine with surrounding insns when splitting.
39478 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39479 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39480 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39481 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39482 (*cbranch_div0s: Delete.
39483 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39484 Try to recombine with surrounding insns when splitting. Add operand
39486 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39487 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39488 *addc_r_r_msb, *addc_2r_msb): Delete.
39489 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39491 (*addc_negreg_t): New insn_and_split.
39492 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39493 Try to recombine with surrounding insns when splitting.
39494 Add operand order variants.
39495 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39496 insn_and_split patterns.
39497 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39498 surrounding insns when splitting.
39499 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39500 (*rotcl): Likewise. Add zero_extract variant.
39501 (*ashrsi2_31): New insn_and_split.
39502 (*negc): Convert to insn_and_split. Use treg_set_expr.
39503 (*zero_extend<mode>si2_disp_mem): Update comment.
39504 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39506 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39507 with surrounding insns when splitting.
39508 (any_treg_expr_to_reg): New insn_and_split.
39509 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39510 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39511 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39512 *zero_extract_2): New single bit zero extract patterns.
39513 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39514 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39515 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39516 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39518 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39519 register_operand for set source.
39521 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39523 * i386.opt (prefetch_sse): New targetsave.
39524 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39525 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39526 ix86_cost/ix86_tune_cost.
39528 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39530 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39531 Support the JIT by using 0 as the language type.
39533 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39536 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39537 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39538 (mark_regno_live, process_bb_lives): Pass new parameter value to
39539 make_hard_regno_born.
39541 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39543 PR rtl-optimization/63637
39544 PR rtl-optimization/60663
39545 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39546 if elt->cost is MAX_COST for ASM_OPERANDS.
39547 (find_sets_in_insn): Fix up comment typo.
39548 (cse_insn): Don't set src_volatile for all non-volatile
39549 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39550 or with "memory" clobber. Set elt->cost to MAX_COST
39551 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39552 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39554 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39556 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39559 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39561 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39562 libgcc/config/i386/elf-lib.h.
39564 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39567 * gcc.c (print_configuration): Don't print a blank line at the end
39569 (run_attempt): ... but here unstead.
39571 PR middle-end/64734
39572 * omp-low.c (scan_sharing_clauses): Don't ignore
39573 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39574 on target data/update constructs.
39576 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39579 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39580 (DEBUG_RELOAD): Removed define.
39581 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39582 (m32c_function_arg): Added a type cast.
39583 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39584 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39585 * config/m32c/bitops.md (andqi3_16): Likewise.
39586 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39587 (push_a01_l): Likewise.
39589 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39592 * main.c (main): Construct toplev instances with init_signals=true.
39593 * toplev.c (general_init): Add param "init_signals", and use it to
39594 conditionalize the calls to signal and host_hooks.extra_signals.
39595 (toplev::toplev): Add param "init_signals".
39596 (toplev::main): When invoking general_init, pass m_init_signals
39597 to control whether signal-handlers are installed.
39598 * toplev.h (toplev::toplev): Add param "init_signals".
39599 (toplev::m_init_signals): New field.
39601 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39604 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39605 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39606 latter may be affected by the former (e.g. on i686).
39608 2015-01-23 Martin Liska <mliska@suse.cz>
39610 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39611 false positive during profiledbootstrap.
39613 2015-01-23 Tom de Vries <tom@codesourcery.com>
39616 * lto-opts.c (lto_write_options): Output non-explicit conservative
39618 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39619 (append_compiler_options): Pass -fopenacc through.
39621 2015-01-23 Tom de Vries <tom@codesourcery.com>
39624 * lto-opts.c (lto_write_options): Output non-explicit conservative
39626 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39627 (append_compiler_options): Pass -fopenmp through.
39629 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39632 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39635 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39636 * diagnostic.def (DK_ICE_NOBT): New kind.
39637 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39638 like DK_ICE, but never print backtrace.
39639 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39640 (internal_error_no_backtrace): New function.
39641 * gcc.c (execute): Use internal_error_no_backtrace instead of
39644 2015-01-22 Jeff Law <law@redhat.com>
39647 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39648 improve code density for small immediate to memory case.
39649 (insv): Better handle bitfield assignments when the field is
39650 being set to all ones.
39651 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39654 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39655 Jakub Jelinek <jakub@redhat.com>
39657 PR middle-end/64729
39658 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39659 for !TARGET_LIBC_PROVIDES_SSP version and
39660 -fstack-protector-{all,strong,explicit} otherwise.
39661 * config/freebsd.h (LINK_SSP_SPEC): Handle
39662 -fstack-protector-{strong,explicit}.
39664 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39665 H.J. Lu <hongjiu.lu@intel.com>
39668 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39671 2015-01-22 Wei Mi <wmi@google.com>
39673 PR rtl-optimization/64557
39674 * dse.c (record_store): Call get_addr for mem_addr.
39675 (check_mem_read_rtx): Likewise.
39677 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39679 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39681 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39683 * toplev.c (init_local_tick): Process the failure when read
39684 fails for random_seed.
39686 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39687 'pretty_name' to avoid memory overflow.
39689 2015-01-22 Richard Biener <rguenther@suse.de>
39691 PR middle-end/64728
39692 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39693 abnormal coalescing on undefined SSA names.
39695 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39699 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39701 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39703 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39705 PR middle-end/63325
39706 * fold-const.c (fold_checksum_tree): Don't include value of
39707 expr->decl_with_vis.symtab_node in the checksum.
39709 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39711 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39713 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39716 * gcc.c (insert_comments): New function.
39717 (try_generate_repro): Call it.
39718 (append_text): Removed.
39720 2015-01-22 Richard Biener <rguenther@suse.de>
39722 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39723 with IL incompatible options. Properly honor user optimize
39726 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39728 PR rtl-optimization/64682
39729 * combine.c (distribute_notes): When moving a death note for
39730 a register that is set in the new I2, make sure to put it
39731 before that new I2.
39733 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39735 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39736 not TARGET_DEFAULT.
39738 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39741 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39742 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39743 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39746 * doc/invoke.texi (-fsanitize=vptr): Document.
39748 PR rtl-optimization/62078
39749 * dse.c: Include cfgcleanup.h.
39750 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39751 anything call purge_all_dead_edges and cleanup_cfg at the end
39754 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39756 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39759 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39761 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39764 2015-01-21 David Sherwood <david.sherwood@arm.com>
39765 Tejas Belagod <Tejas.Belagod@arm.com>
39767 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39768 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39769 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39772 2015-01-21 David Sherwood <david.sherwood@arm.com>
39773 Tejas Belagod <Tejas.Belagod@arm.com>
39775 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39776 (aarch64_reverse_mask): New decls.
39777 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39778 (insn_count): New mode_attr.
39779 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39780 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39781 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39782 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39783 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39784 (aarch64_simd_st4): New patterns.
39785 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39786 (aarch64_reverse_mask): New functions.
39788 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39790 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39792 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39793 addressing modes for BE.
39794 (aarch64_print_operand): Add 'R' specifier.
39795 (aarch64_simd_disambiguate_copy): Delete.
39796 (aarch64_simd_emit_reg_reg_move): New function.
39797 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39798 in define_splits for structural moves.
39799 (mov<mode>): Use less restrictive predicates.
39800 (*aarch64_mov<mode>): Simplify and only allow for LE.
39801 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39803 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39805 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39807 2015-01-21 Richard Henderson <rth@redhat.com>
39810 * ccmp.c (used_in_cond_stmt_p): Remove.
39811 (expand_ccmp_expr): Don't use it.
39813 2015-01-21 Nick Clifton <nickc@redhat.com>
39815 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39818 2015-01-21 Richard Biener <rguenther@suse.de>
39820 PR middle-end/64313
39821 * tree-core.h (builtin_info, builtin_info_type): Turn from
39822 an object with two arrays into an array of an object with
39823 decl and two flags, implicit_p and declared_p.
39824 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39825 set_builtin_decl, set_builtin_decl_implicit_p,
39826 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39827 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39828 * builtins.c (builtin_info): Adjust.
39829 * gimplify.c (gimplify_addr_expr): References to builtins
39830 that have been declared by the user makes them eligible for
39831 use by the compiler. Call set_builtin_decl_implicit_p on them.
39833 2015-01-20 Jeff Law <law@redhat.com>
39836 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39837 allow pc-relative addresses in operand predicates or constraints.
39839 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39841 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39842 neon on aarch32 processors for stringops.
39844 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39847 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39849 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39852 * ipa-inline.c: Include lto-streamer.h
39853 (report_inline_failed_reason): Output source file differences and
39854 flags on optimization/target node mismatch.
39855 (can_inline_edge_p): Consider caller to be the outer inline function;
39856 be less restrictive about matching opimize and optimize_size attributes.
39857 (inline_account_function_p): Break out from ...
39858 (inline_small_functions): ... here.
39859 * ipa-inline-transform.c (clone_inlined_nodes): Use
39860 inline_account_function_p.
39861 (inline_call): Use optimize attribution; use inline_account_function_p.
39862 (inline_transform): Use opt_for_fn.
39863 * ipa-inline.h (inline_account_function_p): Declare.
39865 2015-01-20 Jakub Jelinek <jakub@redhat.com>
39868 * dwarf2out.c (decl_piece_node): Don't put bitsize into
39869 mode if bitsize <= 0.
39870 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39871 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39872 sizes and positions.
39874 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
39876 * config/nios2/nios2.c (nios2_asm_file_end): Implement
39877 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39879 (TARGET_ASM_FILE_END): Define.
39881 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39883 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39884 (struct tune_params): Use the enum.
39885 * arm.c (arm_*_tune): Update.
39886 (arm_option_override): Update.
39888 2015-01-20 Richard Biener <rguenther@suse.de>
39891 * ipa-reference.c (add_static_var): Inline ...
39892 (analyze_function): ... here after splitting out from ...
39893 (is_proper_for_analysis): ... this.
39895 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
39898 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39899 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39900 replace the conditional with it's true branch.
39901 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39902 (arm_lra_p): Remove.
39904 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
39906 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39908 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39910 * config/tilegx/mul-tables.c: Move symtab.h include after
39911 coretypes.h include.
39912 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39913 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39914 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39915 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39916 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39918 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
39922 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39924 PR rtl-optimization/64081
39925 * loop-iv.c (def_pred_latch_p): New function.
39926 (latch_dominating_def): Allow specific cases with non-single
39928 (iv_get_reaching_def): Likewise.
39929 (check_complex_exit_p): New function.
39930 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39931 with exits not executing on any iteration.
39933 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39936 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39937 to set branch cost.
39939 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39942 * i386.c (gate): Check flag_expensive_optimizations and
39944 (ix86_option_override_internal): Drop optimize_size condition
39945 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39946 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39947 MASK_PREFER_AVX128.
39948 (ix86_avx256_split_vector_move_misalign,
39949 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39950 * sse.md (all uses of TARGET_PREFER_AVX128): Add
39951 optimize_insn_for_speed_p check.
39953 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
39955 * config/mips/mips.h (FP_ASM_SPEC): New define.
39956 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39959 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
39962 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39963 nullptr for insn when reaching the first insn.
39964 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39965 (sh_insn_operands_modified_between_p): Add nullptr check.
39966 (sh_find_extending_set_of_reg): Fix log message. Don't accept
39967 sign extending mem load if the insn contains any UNSPEC or
39970 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39972 * params.def (inline-unit-growth): Drop to 15%.
39973 * invoke.texi (inline-unit-growth): Document change.
39975 2015-01-19 Martin Liska <mliska@suse.cz>
39978 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39979 function for second argument of OBJ_TYPE_REF.
39981 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39984 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39985 whether function is an alias.
39987 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39989 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39992 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
39994 PR rtl-optimization/64671
39995 * lra-remat.c (operand_to_remat): Don't consider jump and call
39998 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
40001 * config/rs6000/default64.h: Include rs6000-cpus.def.
40002 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40003 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40004 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40006 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40008 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40009 pseudo-op to specify assembler dialect.
40011 2015-01-19 Martin Liska <mliska@suse.cz>
40014 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40015 Handle safe potentially removed nodes during filtering.
40017 2015-01-19 Martin Liska <mliska@suse.cz>
40019 * doc/extend.texi (no_icf): Add new attribute description.
40020 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40021 where the pass attempts to merge a function with no_icf attribute.
40023 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40026 * doc/md.texi (ARM Options): Document register constraints.
40028 2015-01-19 Jiong Wang <jiong.wang@arm.com>
40029 Andrew Pinski <apinski@cavium.com>
40032 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40033 (ashl<mode>3): Don't expand if operands[2] is not constant.
40035 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40038 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40039 Match xor-and-xor RTL pattern.
40041 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40043 PR rtl-optimization/64081
40044 * loop-iv.c (def_pred_latch_p): New function.
40045 (latch_dominating_def): Allow specific cases with non-single
40047 (iv_get_reaching_def): Likewise.
40048 (check_complex_exit_p): New function.
40049 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40050 with exits not executing on any iteration.
40052 2015-01-19 Jakub Jelinek <jakub@redhat.com>
40054 * common.opt (fgraphite): Fix a typo.
40056 2015-01-19 Felix Yang <felix.yang@huawei.com>
40058 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40060 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40061 uminp, smax_nanp, smin_nanp): New builtins.
40062 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40063 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40064 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40065 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40066 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40067 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40068 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40069 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40070 vpminnms_f32): Rewrite using builtin functions.
40072 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
40075 * omp-low.c (offload_symbol_decl): Remove variable.
40076 (get_offload_symbol_decl): Remove function.
40077 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40078 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40079 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40080 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40081 BUILT_IN_GOACC_UPDATE don't pass it at all.
40083 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40085 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40088 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40090 * ipa-chkp.c (chkp_produce_thunks): Add early param
40091 to split thunks production into two passes. Keep
40092 'always_inline' function bodies after the first pass.
40093 (pass_data_ipa_chkp_early_produce_thunks): New.
40094 (pass_ipa_chkp_early_produce_thunks): New.
40095 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40096 chkp_produce_thunks signature.
40097 (make_pass_ipa_chkp_early_produce_thunks): New.
40098 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40099 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40100 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40102 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40104 * cgraph.c (cgraph_node::dump): Dump profile flags.
40106 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
40109 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40110 reg appear first in the parallel.
40112 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40114 * ipa-reference.c (set_reference_optimization_summary,
40115 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40117 (ignore_module_statics): New static var.
40118 (propagate_bits): If ipa-reference is disabled, do not look into local
40120 (analyze_function): Disable analysis when ipa_reference is disabled.
40121 (generate_summary): Do not dump when reference is disabled;
40122 collect vars accessed from functions with ipa-reference disabled.
40123 (get_read_write_all_from_node): When ipa-reference is disabled, use the
40125 (gate): Enable for LTO.
40126 (ignore_edge_p): New function.
40127 (propagate): Skip functions w/o ipa-reference analysis.
40128 * optc-save-gen.awk: Handle optimize_debug correctly.
40129 * opth-gen.awk: Likewise.
40130 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40131 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40132 fira-share-save-slots, fira-share-spill-slots,
40133 fmodulo-sched-allow-regmoves, fpartial-inlining,
40134 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40135 ftracer, ftree-parallelize-loops, fassociative-math,
40136 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40138 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40139 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40141 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40144 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40147 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40149 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40151 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
40153 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40154 Remove duplicate option listings.
40156 2015-01-18 Felix Yang <felix.yang@huawei.com>
40158 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40159 (autofdo_source_profile::get_callsite_total_count,
40160 function_instance::get_function_instance_by_decl,
40161 string_table::get_index, string_table::get_index_by_decl,
40162 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40163 Fix comment typos. Reformatting and minor code rearrangement.
40165 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40167 * config/rs6000/rs6000.md (probe_stack): Delete.
40168 (probe_stack_address): New.
40170 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40172 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40173 to test for 32-bit ABIs, not !TARGET_POWERPC64.
40175 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40177 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40178 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
40179 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
40181 (rs6000_libcall_value): Use the new function.
40183 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
40185 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40187 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
40189 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40190 implement a more precise life analysis for it during backward scan.
40192 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40194 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40196 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
40198 PR rtl-optimization/52773
40199 * calls.c (emit_library_call_value): When pushing arguments use
40200 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40201 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
40202 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40204 2015-01-17 Jeff Law <law@redhat.com>
40206 PR rtl-optimization/32790
40207 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40208 not ZERO_EXTEND in SET_DESTs.
40210 2015-01-17 Alan Modra <amodra@gmail.com>
40212 * cprop.c (do_local_cprop): Revert last change.
40214 2015-01-16 DJ Delorie <dj@redhat.com>
40215 Nick Clifton <nickc@redhat.com>
40217 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40218 (addhi3_real): Likewise. Fix [HL+0] syntax.
40219 (subqi3_real): Likewise.
40220 (subhi3_real): Likewise.
40221 (cbranchqi4_real): Likewise. Allow saddr,#imm.
40222 (cbranchhi4_real): Likewise.
40223 (cbranchhi4_real_inverted): Likewise.
40224 (cbranchsi4_real_lt): Likewise.
40225 (cbranchsi4_real_ge): Likewise.
40226 (cbranchsi4_real_ge): Likewise.
40227 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40228 (sub<mode>3_virt): Likewise.
40229 (cbranchqi4_virt): Likewise.
40230 (cbranchhi4_virt): Likewise.
40231 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40232 always use '[reg+imm]' even when imm is zero.
40233 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40234 (rl78_general_operand): New.
40235 (rl78_nonimmediate_operand): New.
40236 (rl78_nonfar_operand): Use them.
40237 (rl78_nonfar_nonimm_operand): Likewise.
40238 (rl78_stack_based_mem): Fix.
40239 * config/rl78/constraints.md (Ibqi): New.
40244 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40245 (iorqi3): Likewise.
40246 (xorqi3): Likewise.
40247 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40249 * config/rl78/constrains (Qs8): New constraint.
40250 * config/rl78/rl78.c (rl78_flags_already_set): New function.
40251 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40252 * config/rl78/rl78-real.md (update_Z): New attribute.
40253 Update patterns to set it.
40254 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40255 shorter compare and branch sequence can be used.
40256 (cbranchhi4_real): Likewise.
40257 (cbranchhi4_real_inverted): Likewise.
40259 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40260 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40262 * config/rl78/rl78.c (rl78_get_name_encoding): New.
40263 (rl78_option_override): Allow -mes0 only if C.
40264 (characterize_address): Support subregs of symbol_refs.
40265 (rl78_addr_space_address_mode): Move. Add __near.
40266 (rl78_far_p): Likewise.
40267 (rl78_addr_space_pointer_mode): Likewise.
40268 (rl78_as_legitimate_address): Likewise.
40269 (rl78_addr_space_subset_p): Likewise.
40270 (rl78_addr_space_convert): Likewise.
40271 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40272 symbols with -mes0.
40273 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
40275 (rl78_alloc_physical_registers_op1): Change logic to prefer
40276 symbol[BC] addressing.
40277 (frodata_section): New.
40278 (rl78_asm_init_sections): Initialize it.
40279 (rl78_select_section): Put __far readonly symbols in .frodata.
40280 (rl78_make_type_far): New.
40281 (rl78_insert_attributes): Force all readonly symbols to be
40283 (rl78_asm_out_integer): New.
40284 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40285 * config/rl78/rl78.opt (-mes0): New.
40287 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40288 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40289 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40290 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40291 (rl78_saddr_p): New.
40292 (rl78_output_aligned_common): New.
40293 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40294 (rl78_handle_saddr_attribute): New.
40295 (rl78_handle_naked_attribute): New.
40296 (rl78_attribute_table): Add saddr.
40297 (rl78_print_operand_1): Don't print '!' on saddr operands.
40298 (rl78_print_operand_1): Strip encodings.
40300 (rl78_strip_name_encoding): New.
40301 (rl78_attrlist_to_encoding): New.
40302 (rl78_encode_section_info): New.
40303 (rl78_asm_init_sections): New.
40304 (rl78_select_section): New.
40305 (rl78_output_labelref): New.
40306 (rl78_output_aligned_common): New.
40307 (rl78_asm_out_integer): New.
40308 (rl78_asm_ctor_dtor): New.
40309 (rl78_asm_constructor): New.
40310 (rl78_asm_destructor): New.
40312 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40313 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40314 (transcode_memory_rtx): Update.
40315 (rl78_expand_epilogue): Use A_REG instead of 0.
40317 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40319 * config/arm/arm-protos.h (struct tune_params): New field
40320 sched_autopref_queue_depth.
40321 * config/arm/arm.c (sched-int.h): Include header.
40322 (arm_first_cycle_multipass_dfa_lookahead_guard,)
40323 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40324 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40325 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40326 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40327 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40328 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40329 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40330 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
40331 * config/arm/t-arm (arm.o): Update.
40332 * haifa-sched.c (update_insn_after_change): Update.
40333 (rank_for_schedule): Use auto-prefetcher model, if requested.
40334 (autopref_multipass_init): New static function.
40335 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40336 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40337 variable for debug dumps.
40338 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40339 (autopref_multipass_dfa_lookahead_guard): New global function that
40340 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40341 (init_h_i_d): Update.
40342 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40343 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40344 (autopref_multipass_data_): Structure for auto-prefetcher data.
40345 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40346 (struct _haifa_insn_data:autopref_multipass_data): New field.
40347 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40348 (autopref_multipass_dfa_lookahead_guard): Declare.
40350 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40352 * rtlanal.c (get_base_term): Handle SCRATCH.
40354 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40356 * config/aarch64/aarch64.c
40357 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40358 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40360 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40361 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40363 2015-01-17 Alan Modra <amodra@gmail.com>
40365 * cprop.c (do_local_cprop): Disallow replacement of fixed
40368 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40371 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40374 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40376 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40377 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40379 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40381 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40382 * config/arm/thumb1.md: ... Here.
40384 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40386 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40387 TImode for TARGET_32BIT.
40389 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40391 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40392 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40394 (rs6000_abi_word_mode): New function.
40396 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40398 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40399 instead of UNITS_PER_WORD to describe the size of stack slots.
40401 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40403 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40404 as rs6000_promote_function_mode. Move comment to there.
40405 (rs6000_promote_function_mode): New function.
40407 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40409 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40410 -mpowerpc64 is active.
40412 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40414 PR middle-end/64353
40415 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40418 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40420 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40421 introduced in revision 219724.
40423 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40424 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40427 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40428 destination is not a GP reg.
40429 (*movdi_aarch64): Likewise.
40431 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40434 * config/rs6000/default64.h: Revert ISA change.
40436 2015-01-16 Richard Biener <rguenther@suse.de>
40438 PR middle-end/64614
40439 * tree-ssa-uninit.c: Include tree-cfg.h.
40440 (MAX_SWITCH_CASES): New define.
40441 (convert_control_dep_chain_into_preds): Handle switch statements.
40442 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40443 (normalize_one_pred_1): Do not split bit-manipulations.
40446 2015-01-16 Richard Biener <rguenther@suse.de>
40448 PR tree-optimization/64568
40449 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40450 complex load rewriting for TARGET_MEM_REFs.
40452 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40454 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40456 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40459 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40461 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40462 (aarch64_lra_p): Remove.
40464 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40467 * ipa-chkp.h (chkp_instrumentable_p): New.
40468 * ipa-chkp.c: Include tree-inline.h.
40469 (chkp_instrumentable_p): New.
40470 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40471 Fix processing of not instrumentable functions.
40472 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40473 not instrumentable functions.
40474 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40475 chkp_instrumentable_p.
40476 * tree-inline.h (copy_forbidden): New.
40477 * tree-inline.c (copy_forbidden): Not static anymore.
40479 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40481 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40484 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40486 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40487 type OP_OUT to OP_INOUT.
40489 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40491 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40492 (high x) y) to y if x and y have the same base.
40494 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40496 * config/arm/cortex-a57.md: New.
40497 * config/aarch64/aarch64.md: Include it.
40498 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40499 * config/aarch64/aarch64-tune.md: Regenerate.
40501 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40504 * ccmp.c (expand_ccmp_next): New function.
40505 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40506 and compare insn sequence.
40507 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40508 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40509 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40510 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40511 (*ccmp_ior): Changed to ccmp_ior<mode>.
40512 (cmp<mode>): New pattern.
40513 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40515 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40517 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40519 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40520 _mm256_bsrli_epi128): New.
40521 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40523 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40525 * expmed.c (store_bit_field_using_insv): Improve warning message.
40526 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40528 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40530 PR rtl-optimization/64011
40531 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40532 there is partial overflow.
40534 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40536 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40538 (nds32_expand_epilogue_v3pop): Likewise.
40539 * config/nds32/nds32.md (sibcall): Define this for sibling call
40541 (sibcall_register): Likewise.
40542 (sibcall_immediate): Likewise.
40543 (sibcall_value): Likewise.
40544 (sibcall_value_register): Likewise.
40545 (sibcall_value_immediate): Likewise.
40546 (sibcall_epilogue): Likewise.
40547 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40548 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40549 (nds32_expand_epilogue_v3pop): Likewise.
40551 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40553 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40554 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40555 (return_internal): New.
40556 (return): Define this named pattern.
40557 (simple_return): Define this named pattern.
40558 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40559 pattern instead of unspec_volatile_func_return.
40560 (nds32_expand_epilogue_v3pop): Likewise.
40561 (nds32_can_use_return_insn): New function.
40563 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40565 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40566 * config/nds32/nds32.md (pop25return): New.
40567 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40568 pop25return pattern.
40570 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40572 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40573 -mforbid-fp-as-gp, and -mex9 options.
40575 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40577 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40578 remove -mgp-direct option.
40580 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40582 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40583 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40585 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40587 * ipa-inline.c (inline_small_functions): Work around hints
40590 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40593 * doc/invoke.texi (Option Summary): Document new Nios II
40595 (Nios II Options): Likewise.
40596 * config/nios2/nios2.opt: Add -mgpopt= option support.
40597 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40598 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40599 * config/nios2/nios2.c (nios2_option_override): Adjust
40600 -mgpopt defaulting.
40601 (nios2_in_small_data_p): Return true for explicit small data
40602 sections even with -G0.
40603 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40606 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40609 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40611 (inline_call): Fix removal of aliases.
40613 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40615 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40616 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40617 * opts.c (common_handle_option): Add -fsanitize=vptr.
40618 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40619 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40620 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40621 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40622 (ubsan_expand_vptr_ifn): New prototype.
40623 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40624 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40625 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40626 expand_LOOP_VECTORIZED): Make argument nameless, remove
40628 (expand_UBSAN_VPTR): New function.
40629 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40631 (UBSAN_VPTR): New internal function.
40632 * sanopt.c (tree_map_traits): Renamed to ...
40633 (sanopt_tree_map_traits): ... this.
40634 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40635 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40636 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40637 (maybe_optimize_ubsan_vptr_ifn): New function.
40638 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40639 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40641 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40642 internal calls like pure functions for aliasing, even when they
40643 have other side-effects that prevent making them ECF_PURE.
40644 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40645 (ubsan_expand_vptr_ifn): New function.
40647 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40649 PR rtl-optimization/64110
40650 * stmt.c (parse_output_constraint): Process '^' and '$'.
40651 (parse_input_constraint): Ditto.
40652 * lra-constraints.c (process_alt_operands): Process the new
40654 * ira-costs.c (record_reg_classes): Process the new constraint
40656 * genoutput.c (indep_constraints): Add '^' and '$'.
40657 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40658 * doc/md.texi: Add description of the new constraints.
40660 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40661 Bernd Schmidt <bernds@codesourcery.com>
40662 Cesar Philippidis <cesar@codesourcery.com>
40663 James Norris <jnorris@codesourcery.com>
40664 Tom de Vries <tom@codesourcery.com>
40665 Ilmir Usmanov <i.usmanov@samsung.com>
40666 Dmitry Bocharnikov <dmitry.b@samsung.com>
40667 Evgeny Gavrin <e.gavrin@samsung.com>
40668 Jakub Jelinek <jakub@redhat.com>
40670 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40671 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40672 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40673 New function types.
40674 * builtins.c: Include "gomp-constants.h".
40675 (expand_builtin_acc_on_device): New function.
40676 (expand_builtin, is_inexpensive_builtin): Handle
40677 BUILT_IN_ACC_ON_DEVICE.
40678 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40680 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40682 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40683 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40684 i386/intelmic-offload.h.
40685 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40686 to libgomp and its dependencies.
40687 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40688 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40689 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40690 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40691 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40692 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40693 * doc/generic.texi: Update for OpenACC changes.
40694 * doc/gimple.texi: Likewise.
40695 * doc/invoke.texi: Likewise.
40696 * doc/sourcebuild.texi: Likewise.
40697 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40698 GF_OMP_FOR_KIND_OACC_LOOP.
40699 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40700 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40701 GF_OMP_TARGET_KIND_OACC_UPDATE,
40702 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40704 * gimple.c: Update comments for OpenACC changes.
40705 * gimple.def: Likewise.
40706 * gimple.h: Likewise.
40707 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40708 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40709 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40710 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40711 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40713 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40714 * gimplify.c: Include "gomp-constants.h".
40715 Update comments for OpenACC changes.
40716 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40717 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40718 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40719 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40720 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40721 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40722 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40723 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40724 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40726 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40727 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40728 OMP_CLAUSE_SET_MAP_KIND.
40729 (gimplify_oacc_cache): New function.
40730 (gimplify_omp_for): Handle OACC_LOOP.
40731 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40733 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40734 OACC_EXIT_DATA, OACC_UPDATE.
40735 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40736 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40737 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40738 (gimplify_body): Consider flag_openacc next to flag_openmp.
40739 * lto-streamer-out.c: Include "gomp-constants.h".
40740 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40741 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40742 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40743 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40744 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40745 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40746 * omp-low.c: Include "gomp-constants.h".
40747 Update comments for OpenACC changes.
40748 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40750 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40751 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40752 (create_omp_child_function, scan_omp_for, scan_omp_target)
40753 (check_omp_nesting_restrictions, lower_reduction_clauses)
40754 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40755 Update for OpenACC changes.
40756 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40757 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40758 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40759 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40760 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40761 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40763 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40764 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40765 (expand_omp_target, lower_omp_target): Handle
40766 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40767 GF_OMP_TARGET_KIND_OACC_UPDATE,
40768 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40769 GF_OMP_TARGET_KIND_OACC_DATA.
40770 (pass_expand_omp::execute, execute_lower_omp)
40771 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40773 (offload_symbol_decl): New variable.
40774 (oacc_get_reduction_array_id, oacc_max_threads)
40775 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40776 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40777 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40778 (oacc_gimple_assign, oacc_initialize_reduction_data)
40779 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40781 (is_targetreg_ctx): Remove function.
40782 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40783 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40784 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40785 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40786 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40787 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40788 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40789 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40790 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40791 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40792 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40793 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40794 * tree-core.h: Update comments for OpenACC changes.
40795 (enum omp_clause_map_kind): Remove.
40796 (struct tree_omp_clause): Change type of map_kind member from enum
40797 omp_clause_map_kind to unsigned char.
40798 * tree-inline.c: Update comments for OpenACC changes.
40799 * tree-nested.c: Likewise. Include "gomp-constants.h".
40800 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40801 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40802 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40803 OMP_CLAUSE_SET_MAP_KIND.
40804 * tree-pretty-print.c: Include "gomp-constants.h".
40805 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40806 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40807 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40808 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40809 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40810 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40811 instead of OMP_CLAUSE_MAP_*.
40812 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40813 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40814 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40815 * tree-streamer-in.c: Include "gomp-constants.h".
40816 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40817 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40818 * tree-streamer-out.c: Include "gomp-constants.h".
40819 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40821 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40822 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40823 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40824 * tree.c (omp_clause_num_ops): Update accordingly.
40825 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40827 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40828 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40829 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40830 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40831 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40832 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40833 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40834 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40835 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40837 * config/i386/intelmic-offload.h: New file.
40838 * config/nvptx/offload.h: Likewise.
40840 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40842 * explow.h: Remove duplicate contents.
40843 * dojump.h: Likewise.
40845 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40847 * arm.c (arm_xgene_tune): Add default initializer for instruction
40850 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40854 * ipa.c (symbol_table::remove_unreachable_nodes):
40855 Do not put abstract origins into boundary.
40857 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40859 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40860 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40862 2015-01-15 Steve Ellcey <sellcey@mips.com>
40864 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40865 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40866 builtins.def, and chkp-builtins.def.
40868 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
40870 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40873 2015-01-15 Richard Biener <rguenther@suse.de>
40875 PR tree-optimization/61743
40876 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40877 information on PHIs for some simple cases.
40879 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40881 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40883 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40884 * config/arm/arm-cores.def (xgene1): New entry.
40885 * config/arm/arm-tables.opt: Regenerate.
40886 * config/arm/arm-tune.md: Regenerate.
40887 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40889 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40891 * tree-if-conv.c: Include hash-map.h.
40892 (aggressive_if_conv): New variable.
40893 (fold_build_cond_expr): Add simplification of non-zero condition.
40894 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40895 destination block is not always executed.
40896 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40897 than two predecessors if AGGRESSIVE_IF_CONV is true.
40898 (if_convertible_stmt_p): Fix commentary.
40899 (all_preds_critical_p): New function.
40900 (has_pred_critical_p): New function.
40901 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40902 BB can have more than two predecessors and all incoming edges can be
40904 (predicate_bbs): Skip predication for loop exit block, use build2_loc
40905 to compute predicate for true edge.
40906 (find_phi_replacement_condition): Delete this function.
40907 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40908 Allow interchange PHI arguments if EXTENDED is false.
40909 Change check that block containing reduction statement candidate
40910 is predecessor of phi-block since phi may have more than two arguments.
40911 (phi_args_hash_traits): New helper structure.
40912 (struct phi_args_hash_traits): New type.
40913 (phi_args_hash_traits::hash): New function.
40914 (phi_args_hash_traits::equal_keys): New function.
40915 (gen_phi_arg_condition): New function.
40916 (predicate_scalar_phi): Add handling of phi nodes with more than two
40917 arguments, delete COND and TRUE_BB arguments, insert body of
40918 find_phi_replacement_condition to predicate ordinary phi nodes.
40919 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40920 delete call of find_phi_replacement_condition and invoke
40921 predicate_scalar_phi with two arguments.
40922 (insert_gimplified_predicates): Add assert that non-predicated block
40923 don't have statements to insert.
40924 (ifcvt_split_critical_edges): New function.
40925 (ifcvt_split_def_stmt): Likewise.
40926 (ifcvt_walk_pattern_tree): Likewise.
40927 (stmt_is_root_of_bool_pattern): Likewise.
40928 (ifcvt_repair_bool_pattern): Likewise.
40929 (ifcvt_local_dce): Likewise.
40930 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40931 is copy of inner or outer loop force_vectorize field, invoke
40932 ifcvt_split_critical_edges, ifcvt_local_dce and
40933 ifcvt_repair_bool_pattern for aggressive if-conversion.
40935 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
40937 * config/aarch64/aarch64.md: Include xgene1.md.
40938 * config/aarch64/xgene1.md: New file.
40940 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40942 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40943 xgene1 (APM XGene-1) core definition.
40944 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40945 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40946 * doc/invoke.texi: Document -mcpu=xgene1.
40948 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40950 * dojump.h: New header file.
40951 * explow.h: Likewise.
40952 * expr.h: Remove includes.
40953 Move expmed.c prototypes to expmed.h.
40954 Move dojump.c prototypes to dojump.h.
40955 Move alias.c prototypes to alias.h.
40956 Move explow.c prototypes to explow.h.
40957 Move calls.c prototypes to calls.h.
40958 Move emit-rtl.c prototypes to emit-rtl.h.
40959 Move varasm.c prototypes to varasm.h.
40960 Move stmt.c prototypes to stmt.h.
40961 (saved_pending_stack_adjust): Move to dojump.h.
40962 (adjust_address): Move to explow.h.
40963 (adjust_address_nv): Move to emit-rtl.h.
40964 (adjust_bitfield_address): Likewise.
40965 (adjust_bitfield_address_size): Likewise.
40966 (adjust_bitfield_address_nv): Likewise.
40967 (adjust_automodify_address_nv): Likewise.
40968 * explow.c (expr_size): Move to expr.c.
40969 (int_expr_size): Likewise.
40970 (tree_expr_size): Likewise.
40971 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40972 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40973 * genemit.c (main): Generate includes statistics.h, real.h,
40974 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40976 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40977 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40978 explow.h, emit-rtl.h, stmt.h.
40979 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40980 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40981 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40982 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40983 emit-rtl.h, varasm.h, stmt.h.
40984 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40985 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40986 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40987 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40988 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40989 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40990 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40991 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40992 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40993 tm.h tree.h varasm.h vec.h wide-int.h.
40994 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40995 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40996 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40997 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40998 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40999 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41000 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41001 * loop-iv.c: Likewise.
41002 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41003 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41004 statistics.h stmt.h tree.h varasm.h wide-int.h.
41005 * lra-constraints.c: Likewise.
41006 * lra-eliminations.c: Likewise.
41007 * lra-lives.c: Likewise.
41008 * lra-remat.c: Likewise.
41009 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41010 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41011 statistics.h stmt.h tree.h varasm.h wide-int.h.
41012 * hw-doloop.c: Likewise.
41013 * ira-color.c: Likewise.
41014 * ira-emit.c: Likewise.
41015 * loop-doloop.c: Likewise.
41016 * loop-invariant.c: Likewise.
41017 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41018 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41019 statistics.h stmt.h tree.h varasm.h wide-int.h.
41020 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41021 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41022 statistics.h stmt.h tree.h varasm.h wide-int.h.
41023 * combine-stack-adj.c: Likewise.
41026 * ifcvt.c: Likewise.
41027 * ira-costs.c: Likewise.
41028 * jump.c: Likewise.
41029 * lra-coalesce.c: Likewise.
41030 * lra-spills.c: Likewise.
41031 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41032 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41033 stmt.h varasm.h wide-int.h.
41034 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41035 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41037 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41038 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41039 statistics.h stmt.h varasm.h wide-int.h.
41040 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41041 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41042 varasm.h wide-int.h.
41043 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41044 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41045 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41046 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41047 statistics.h stmt.h.
41048 * config/tilepro/tilepro.c: Likewise.
41049 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41050 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41051 * config/pdp11/pdp11.c: Likewise.
41052 * config/xtensa/xtensa.c: Likewise.
41053 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41054 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41056 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41057 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41058 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41059 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41060 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41061 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41062 * rtl-chkp.c: Likewise.
41063 * tree-chkp-opt.c: Likewise.
41064 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41065 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41066 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41067 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41068 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41069 statistics.h stmt.h.
41070 * tree-vect-data-refs.c: Likewise.
41071 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41072 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41073 rtl.h statistics.h stmt.h varasm.h.
41074 * internal-fn.c: Likewise.
41075 * ipa-icf-gimple.c: Likewise.
41076 * lto-section-out.c: Likewise.
41077 * tree-data-ref.c: Likewise.
41078 * tree-nested.c: Likewise.
41079 * tree-outof-ssa.c: Likewise.
41080 * tree-predcom.c: Likewise.
41081 * tree-pretty-print.c: Likewise.
41082 * tree-scalar-evolution.c: Likewise.
41083 * tree-ssa-strlen.c: Likewise.
41084 * tree-vect-loop.c: Likewise.
41085 * tree-vect-patterns.c: Likewise.
41086 * tree-vect-slp.c: Likewise.
41087 * tree-vect-stmts.c: Likewise.
41088 * tsan.c: Likewise.
41089 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41090 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41092 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41093 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41094 statistics.h stmt.h varasm.h.
41095 * loop-unroll.c: Likewise.
41096 * ubsan.c: Likewise.
41097 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41098 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41100 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41101 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41102 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41103 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41104 statistics.h stmt.h.
41105 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41106 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41107 statistics.h stmt.h varasm.h.
41108 * gimple-match-head.c: Likewise.
41109 * lto-cgraph.c: Likewise.
41110 * lto-section-in.c: Likewise.
41111 * lto-streamer-in.c: Likewise.
41112 * lto-streamer-out.c: Likewise.
41113 * tree-affine.c: Likewise.
41114 * tree-cfg.c: Likewise.
41115 * tree-cfgcleanup.c: Likewise.
41116 * tree-if-conv.c: Likewise.
41117 * tree-into-ssa.c: Likewise.
41118 * tree-ssa-alias.c: Likewise.
41119 * tree-ssa-copyrename.c: Likewise.
41120 * tree-ssa-dse.c: Likewise.
41121 * tree-ssa-forwprop.c: Likewise.
41122 * tree-ssa-live.c: Likewise.
41123 * tree-ssa-math-opts.c: Likewise.
41124 * tree-ssa-pre.c: Likewise.
41125 * tree-ssa-sccvn.c: Likewise.
41126 * tree-tailcall.c: Likewise.
41127 * tree-vect-generic.c: Likewise.
41128 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41129 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41130 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41131 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41132 * varasm.c: Likewise.
41133 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41134 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41136 * init-regs.c: Likewise.
41138 * omp-low.c: Likewise.
41139 * stack-ptr-mod.c: Likewise.
41140 * tree-ssa-reassoc.c: Likewise.
41141 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41142 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41144 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41145 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41146 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41147 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41148 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41149 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41150 * tree-ssa-phiopt.c: Likewise.
41151 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41152 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41153 * config/fr30/fr30.c: Likewise.
41154 * config/frv/frv.c: Likewise.
41155 * expr.c: Likewise.
41156 * final.c: Likewise.
41157 * optabs.c: Likewise.
41158 * passes.c: Likewise.
41159 * simplify-rtx.c: Likewise.
41160 * stmt.c: Likewise.
41161 * toplev.c: Likewise.
41162 * var-tracking.c: Likewise.
41163 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41164 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41165 * lower-subreg.c: Likewise.
41166 * postreload-gcse.c: Likewise.
41168 * reginfo.c: Likewise.
41169 * store-motion.c: Likewise.
41170 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41171 fixed-value.h hashtab.h real.h stmt.h varasm.h.
41172 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41173 fixed-value.h hashtab.h statistics.h stmt.h.
41174 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41175 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41176 * except.c: Likewise.
41177 * explow.c: Likewise.
41178 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41179 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41181 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41182 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41183 * tree-ssa-structalias.c: Likewise.
41184 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41185 fixed-value.h insn-config.h real.h statistics.h.
41186 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41187 fixed-value.h insn-config.h real.h statistics.h stmt.h.
41188 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41189 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41190 * cfgbuild.c: Likewise.
41191 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41192 fixed-value.h real.h rtl.h statistics.h stmt.h.
41193 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41194 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41195 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41196 fixed-value.h real.h statistics.h stmt.h.
41197 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41198 fixed-value.h real.h statistics.h stmt.h varasm.h.
41199 * cprop.c: Likewise.
41200 * modulo-sched.c: Likewise.
41201 * postreload.c: Likewise.
41202 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41203 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41204 statistics.h stmt.h varasm.h.
41205 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41206 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41207 rtl.h statistics.h stmt.h varasm.h.
41208 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41209 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41211 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41212 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41214 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41215 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41217 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41218 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41219 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41220 function.h real.h statistics.h stmt.h varasm.h.
41221 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41222 insn-config.h real.h statistics.h stmt.h.
41223 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41224 statistics.h stmt.h.
41225 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41226 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41227 statistics.h stmt.h varasm.h.
41228 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41229 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41230 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41231 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41232 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41233 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41234 statistics.h stmt.h varasm.h.
41235 * ipa-polymorphic-call.c: Likewise.
41236 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41237 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41238 statistics.h stmt.h.
41239 * config/c6x/c6x.c: Likewise.
41240 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41241 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41242 statistics.h stmt.h varasm.h.
41243 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41244 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41246 * ipa-split.c: Likewise.
41247 * tree-eh.c: Likewise.
41248 * tree-ssa-dce.c: Likewise.
41249 * tree-ssa-loop-niter.c: Likewise.
41250 * tree-vrp.c: Likewise.
41251 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41252 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41254 * config/nds32/nds32-fp-as-gp.c: Likewise.
41255 * config/nds32/nds32-intrinsic.c: Likewise.
41256 * config/nds32/nds32-isr.c: Likewise.
41257 * config/nds32/nds32-md-auxiliary.c: Likewise.
41258 * config/nds32/nds32-memory-manipulation.c: Likewise.
41259 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41260 * config/nds32/nds32-predicates.c: Likewise.
41261 * config/nds32/nds32.c: Likewise.
41262 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41263 fixed-value.h hashtab.h real.h statistics.h.
41264 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41265 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41266 * config/arm/arm.c: Likewise.
41267 * config/avr/avr.c: Likewise.
41268 * config/bfin/bfin.c: Likewise.
41269 * config/h8300/h8300.c: Likewise.
41270 * config/i386/i386.c: Likewise.
41271 * config/ia64/ia64.c: Likewise.
41272 * config/iq2000/iq2000.c: Likewise.
41273 * config/m32c/m32c.c: Likewise.
41274 * config/m32r/m32r.c: Likewise.
41275 * config/m68k/m68k.c: Likewise.
41276 * config/mcore/mcore.c: Likewise.
41277 * config/mep/mep.c: Likewise.
41278 * config/mips/mips.c: Likewise.
41279 * config/mn10300/mn10300.c: Likewise.
41280 * config/moxie/moxie.c: Likewise.
41281 * config/pa/pa.c: Likewise.
41282 * config/rl78/rl78.c: Likewise.
41283 * config/rx/rx.c: Likewise.
41284 * config/s390/s390.c: Likewise.
41285 * config/sh/sh.c: Likewise.
41286 * config/sparc/sparc.c: Likewise.
41287 * config/spu/spu.c: Likewise.
41288 * config/stormy16/stormy16.c: Likewise.
41289 * config/v850/v850.c: Likewise.
41290 * config/vax/vax.c: Likewise.
41291 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41292 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41293 * config/msp430/msp430.c: Likewise.
41294 * predict.c: Likewise.
41295 * value-prof.c: Likewise.
41296 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41297 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41298 * config/microblaze/microblaze.c: Likewise.
41299 * config/nios2/nios2.c: Likewise.
41300 * config/rs6000/rs6000.c: Likewise.
41301 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41302 insn-config.h real.h rtl.h statistics.h stmt.h.
41303 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41304 insn-config.h real.h statistics.h stmt.h.
41305 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41306 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41307 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41308 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41309 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41310 fixed-value.h real.h statistics.h stmt.h.
41311 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41312 fixed-value.h statistics.h stmt.h.
41313 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41316 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41318 * gengtype.c (create_user_defined_type): Workaround
41319 -Wmaybe-uninitialized false positives.
41320 * cse.c (fold_rtx): Likewise.
41321 * loop-invariant.c (gain_for_invariant): Likewise.
41323 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
41325 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41326 set the memory attributes in all cases but clear MEM_EXPR if need be.
41328 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41330 PR tree-optimization/64434
41331 * cfgexpand.c (reorder_operands): New function.
41332 (expand_gimple_basic_block): Insert call of reorder_operands if
41335 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
41337 * config/mips/micromips.md (*swp): Remove explicit parallel.
41338 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41339 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41340 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41341 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41342 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41343 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41344 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41345 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41346 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41347 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41348 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41349 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41350 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41351 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41352 (mips_wrdsp): Likewise.
41353 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41355 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41356 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41357 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41358 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41359 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41360 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41361 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41362 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41363 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41365 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41367 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41368 (mips_print_operand): Support 'y' to print exact log2 in decimal
41370 * config/mips/mips.h (ISA_HAS_LSA): New define.
41371 (ISA_HAS_DLSA): Likewise.
41372 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41373 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41375 2015-01-15 Martin Liska <mliska@suse.cz>
41378 * optc-save-gen.awk: Add support for array types.
41380 2015-01-15 Richard Biener <rguenther@suse.de>
41382 PR middle-end/64365
41383 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41384 for MEM_REF access functions with the same base can never partially
41387 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41389 * common.opt: New option -fstack-protector-explicit.
41390 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41391 (stack_protect_decl_phase): Handle stack_protect attribute for
41392 explicit stack protection requests.
41393 (expand_used_vars): Similarly.
41394 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41395 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41396 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41398 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41401 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41403 (sh_extending_set_of_reg): New struct.
41404 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41405 sh_remove_reg_dead_or_unused_notes): New Declarations.
41406 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41407 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41408 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41409 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41410 convert to insn_and_split and use new function sh_split_tst_subregs.
41412 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41414 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41416 (Optimization Options): Move -fuse-ld documentation to...
41417 (Link Options): ...here.
41419 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41421 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41423 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41424 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41425 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41426 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41427 instead of ZR for the memory operand of LL/SC.
41428 (compare_and_swap_12, sync_add<mode>): Likewise.
41429 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41430 (sync_new_<optab>_12, sync_nand_12): Likewise.
41431 (sync_old_nand_12, sync_new_nand_12): Likewise.
41432 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41433 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41434 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41435 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41436 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41437 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41438 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41439 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41440 * doc/md.texi (ZC): Update description.
41442 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41444 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41445 memory model is CONSUME.
41446 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41447 expand_builtin_atomic_store): Change invalid memory model errors to
41449 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41450 and issue warning for CONSUME.
41452 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41454 * lto-cgraph: Update function comments for
41455 lto_symtab_encoder_encode_*.
41457 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41459 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41461 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41463 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41464 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41465 lto_stream_offload_p instead.
41466 * lto-streamer.h (select_what_to_stream): Remove argument.
41467 * passes.c (ipa_write_summaries): Likewise.
41468 * tree-pass.h (ipa_write_summaries): Likewise.
41470 2015-01-14 Richard Biener <rguenther@suse.de>
41472 PR tree-optimization/59354
41473 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41474 groups larger than the slp group size as having gaps.
41476 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41478 PR middle-end/59448
41479 * builtins.c (get_memmodel): Promote consume to acquire always.
41481 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41484 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41487 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41490 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41492 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41493 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41494 AVX512VBMI, as it implies AVX512BW.
41496 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41499 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41500 (vec_unpacks_hi_v16sf): Ditto.
41502 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41504 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41507 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41509 * doc/invoke.texi (mapcs): Mention deprecation.
41510 (mapcs-frame): Likewise.
41512 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41515 * config/arm/arm.c (callee_saved_reg_p): Define.
41516 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41517 register is callee saved instead of !call_used_regs[reg].
41518 (thumb1_compute_save_reg_mask): Likewise.
41520 2015-01-14 Hale Wang <hale.wang@arm.com>
41522 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41525 2015-01-14 Richard Biener <rguenther@suse.de>
41528 * tree-inline.c (insert_debug_decl_map): Check destination
41529 function MAY_HAVE_DEBUG_STMTS.
41530 (insert_init_debug_bind): Likewise.
41531 (insert_init_stmt): Remove redundant check.
41532 (remap_gimple_stmt): Drop debug stmts if the destination
41533 function has var-tracking assignments disabled.
41535 2015-01-14 Martin Liska <mliska@suse.cz>
41537 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41538 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41540 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41543 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41544 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41546 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41548 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41549 level from an ARCH; do not inject the default.
41550 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41551 MIPS_ISA_LEVEL_SPEC.
41552 (MIPS_ISA_NAN2008_SPEC): Update comment.
41553 (BASE_DRIVER_SELF_SPECS): Likewise.
41554 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41555 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41556 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41557 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41558 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41560 2015-01-14 Richard Biener <rguenther@suse.de>
41562 PR tree-optimization/64493
41563 PR tree-optimization/64495
41564 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41565 assign the proper vectorized PHI to the inner loop exit PHIs.
41567 2015-01-14 Joey Ye <joey.ye@arm.com>
41569 * config/arm/arm.c (arm_compute_save_reg_mask):
41570 Do not save lr in case of tail call.
41571 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41573 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41575 * tree-vrp.c (check_array_ref): Emit more warnings
41576 for warn_array_bounds >= 2.
41577 * common.opt: New option -Warray-bounds=.
41578 * doc/invoke.texi: Document -Warray-bounds=.
41580 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41582 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41583 (mforbid-fp-as-gp): Remove.
41585 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41586 (nds32_symbol_load_store_p): Remove.
41587 (nds32_fp_as_gp_check_available): Clean up implementation.
41588 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41590 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41591 fp-as-gp and ex9 cases.
41593 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41595 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41596 for bintuils bug 14342.
41597 (init_ic_make_global_vars): Likewise.
41598 (gimple_init_edge_profiler): Likewise.
41599 (gimple_gen_ic_func_profiler): Likewise.
41601 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41603 * ipa-inline.c (inline_small_functions): Swap the operands in
41606 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41609 * ipa-inline-analysis.c (node_growth_cache): Remove.
41610 (initialize_growth_caches): Do not initialize it.
41611 (free_growth_caches): Do not free it.
41612 (do_estimate_growth): Rename to ...
41613 (estimate_growth): ... this one; drop growth cache code.
41614 (growth_likely_positive): Always go the heuristics way.
41615 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41616 (reset_edge_caches): Do not reset node growth.
41617 (heap_edge_removal_hook): Do not maintain cache.
41618 (inline_small_functions): Likewise; strenghten sanity check.
41619 (ipa_inline): Do not maintain caches.
41620 * ipa-inline.h (node_growth_cache): Remove.
41621 (do_estimate_growth): Remove to ...
41622 (estimate_growth): this one; remove inline version.
41623 (reset_node_growth_cache): Remove.
41625 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41628 * ipa-inline.c (inline_small_functions): Update callee keys after
41629 resolving speculation
41630 (inline_small_functions): Always check monotonicity of the queue.
41632 2015-01-13 Marek Polacek <polacek@redhat.com>
41634 PR middle-end/64391
41635 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41637 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41639 PR rtl-optimization/64286
41640 * ree.c (combine_reaching_defs): Move part of comment earlier,
41641 remove !SCALAR_INT_MODE_P check.
41642 (add_removable_extension): Don't add vector mode
41643 extensions if all uses of the source register aren't the same
41646 2015-01-13 Renlin Li <renlin.li@arm.com>
41648 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41649 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41651 2015-01-13 Martin Liska <mliska@suse.cz>
41653 * ipa-icf.c (sem_function::equals_private): Call new functions
41654 cl_target_option_print_diff and cl_optimization_print_diff.
41655 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41656 (cl_optimization_print_diff): Likewise.
41657 * opth-gen.awk: Likewise.
41659 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41661 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41662 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41663 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41664 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41665 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41666 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41668 2015-01-13 Andrew Pinski <apinski@cavium.com>
41670 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41671 instead of src mode.
41673 2015-01-13 Richard Biener <rguenther@suse.de>
41676 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41679 2015-01-13 Andrew Pinski <apinski@cavium.com>
41681 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41683 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41685 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41687 PR middle-end/63974
41688 * cfgexpand.c (expand_computed_goto): Don't call
41689 convert_memory_address here.
41691 2015-01-13 Richard Biener <rguenther@suse.de>
41693 PR tree-optimization/64406
41694 * tree-loop-distibution.c (pass_loop_distribution::execute):
41695 Reset the SCEV hashtable if we distributed anything.
41697 2015-01-13 Richard Biener <rguenther@suse.de>
41699 PR tree-optimization/64404
41700 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41701 SLP types for CSEd loads.
41703 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41705 PR tree-optimization/64436
41706 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41707 merge of two symbolic numbers for a bitwise OR to ...
41708 (perform_symbolic_merge): This. Also fix computation of the range and
41709 end of the symbolic number corresponding to the result of a bitwise OR.
41711 2015-01-13 Richard Biener <rguenther@suse.de>
41713 PR tree-optimization/64568
41714 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41715 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41717 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41719 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41720 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41722 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41724 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41725 target-specific symbol_ref flag.
41726 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41727 resides in rodata section.
41728 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41729 (nds32_encode_section_info): New function.
41731 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41733 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41734 clobbers TA_REGNUM if large code model is specified.
41735 (call_register): Likewise.
41736 (call_immediate): Likewise.
41737 (call_value): Likewise.
41738 (call_value_register): Likewise.
41739 (call_value_immediate): Likewise.
41741 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41743 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41744 (TARGET_CMODEL_MEDIUM): New macro.
41745 (TARGET_CMODEL_LARGE): New macro.
41746 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41747 code model setting in assembly code.
41749 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41751 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41752 Remove MASK_GP_DIRECT flag.
41753 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41754 one of the multilib default options.
41755 * config/nds32/nds32.opt (mgp-direct): Remove.
41756 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41757 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41759 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41761 * config/nds32/nds32.opt (mcmodel): Add new option.
41762 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41763 to describe code model.
41765 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41768 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41770 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41772 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41773 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41774 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41775 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41776 __builtin_sh_set_fpscr.
41778 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41780 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41781 after a funtion name just to indicate it is a function.
41782 ([-fsanitize-undefined-trap-on-error]): Likewise.
41783 ([-fdbg-cnt=]): Likewise.
41784 ([-mmemcpy]): Likewise.
41785 ([-mflush-func]): Likewise.
41786 ([-msynci]): Likewise.
41788 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41790 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41793 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41795 PR tree-optimization/64563
41796 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41797 instead of != VR_VARYING.
41800 * config/i386/i386.c (ix86_expand_prologue): Add
41801 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41803 PR tree-optimization/64454
41804 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41805 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41806 for signed or [0, op1 - 1] for unsigned modulo.
41807 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41808 even if op1 does not satisfy integer_pow2p.
41811 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41813 2015-01-12 Jeff Law <law@redhat.com>
41816 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41817 (trunchiqi2, truncsihi2): Similarly.
41819 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41820 rather than calling F.
41822 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41824 * tsan.c (instrument_expr): Use force_gimple_operand.
41825 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41827 2015-01-12 Richard Biener <rguenther@suse.de>
41829 PR tree-optimization/64530
41830 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41833 2015-01-12 Richard Biener <rguenther@suse.de>
41835 PR middle-end/64357
41836 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41839 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41841 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41842 Cortex-A17 tuning parameters.
41843 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41845 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41847 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41848 * config/arm/arm.c (arm_macro_fusion_p): New function.
41849 (arm_macro_fusion_pair_p): Likewise.
41850 (TARGET_SCHED_MACRO_FUSION_P): Define.
41851 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41852 (ARM_FUSE_NOTHING): Likewise.
41853 (ARM_FUSE_MOVW_MOVT): Likewise.
41854 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41855 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41856 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41857 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41858 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41859 arm_cortex_a5_tune): Specify fuseable_ops value.
41861 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
41864 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41865 test for PIE with copy reloc.
41866 * configure: Regenerated.
41868 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41870 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41872 (arm_tls_descseq_addr): Likewise.
41873 (arm_gen_movmemqi): Likewise.
41874 (arm_expand_epilogue_apcs_frame): Likewise.
41875 (arm_expand_epilogue): Likewise.
41876 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
41879 2015-01-12 Martin Liska <mliska@suse.cz>
41882 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41883 volatility for correct operands.
41885 2015-01-12 Martin Liska <mliska@suse.cz>
41887 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41888 indication that a function is not leaf.
41889 (sem_function::compare_polymorphic_p): Likewise.
41891 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41893 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41894 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41895 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41896 fold-const.h, tree-check.h.
41898 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41902 * ipa-inline.c (compute_uninlined_call_time,
41903 compute_inlined_call_time): Use counts for extra precision when
41905 (big_speedup_p): Fix formating.
41906 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41907 (relative_time_benefit): Remove.
41908 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41909 merge guessed and read profile paths.
41910 (inline_small_functions): Count only !optimize_size functions into
41911 initial size; be more lax about sanity check when profile is used;
41912 be sure to update inlined function profile when profile is read.
41914 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41917 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41918 cost when edge becomes direct.
41919 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41920 is resolved or when introducing new speculation.
41922 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
41926 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41927 '||' to fix typo issue.
41929 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41930 accept and return NULL.
41932 2015-01-12 Martin Liska <mliska@suse.cz>
41934 * cgraph.c (cgraph_edge::remove_callee): Move function to header
41935 file for being inlined.
41936 (cgraph_set_edge_callee): Delete.
41937 (cgraph_edge::redirect_callee): Move function to header file
41939 (cgraph_edge::make_direct): Use new function.
41940 (cgraph_edge::dump_edge_flags): New function created from
41941 static dump_edge_flags function.
41942 (cgraph_node::dump): Use new function.
41943 (cgraph_edge::verify_count_and_frequency): New function created
41944 from verify_edge_count_and_frequency.
41945 (cgraph_edge::verify_corresponds_to_fndecl): New function created
41946 from verify_edge_corresponds_to_fndecl.
41947 (verify_edge_corresponds_to_fndecl): Delete.
41948 (cgraph_node::verify_node): Use new function.
41949 * cgraph.h (cgraph_edge::set_callee): New function.
41950 (cgraph_edge::dump_edge_flags): Likewise.
41951 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41953 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
41955 * ipa-utils.c (estimate_function_body_sizes): Do not
41956 free node params when called late with early=true.
41958 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
41960 * doc/md.texi (Instruction Patterns): Rewrite text for
41962 (Example): Likewise.
41964 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
41966 * doc/invoke.texi (Option Summary): Break long lines.
41967 [(-fdiagnostics-color)]: Put long literal in @smallexample
41969 [(-fsanitize-recover)]: Likewise.
41970 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41971 [(-ffast-math)]: Likewise.
41972 [(--param max-inline-insns-recursive)]: Likewise.
41973 [(--param max-inline-recursive-depth)]: Likewise.
41974 [(-mno-text-section-literals)]: Likewise.
41976 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
41978 * doc/install.texi: Update for libgomp being renamed from "GNU
41979 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41981 * doc/sourcebuild.texi: Likewise.
41983 2015-01-10 Anthony Green <green@moxielogic.com>
41985 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41986 mul.x availability for moxiebox configuration.
41988 2015-01-09 Anthony Green <green@moxielogic.com>
41990 * config/moxie/moxie.md: Tabify assembly output.
41992 2015-01-09 Anthony Green <green@moxielogic.com>
41994 * config/moxie/moxie.md (CC_REG): Correct register definition.
41996 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
41998 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41999 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
42002 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42004 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42006 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
42007 Jakub Jelinek <jakub@redhat.com>
42009 PR middle-end/64412
42010 * lto-streamer.h (lto_stream_offload_p): New declaration.
42011 * lto-streamer.c (lto_stream_offload_p): New variable.
42012 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42013 at the same time as section_name_prefix.
42014 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42015 if lto_stream_offload_p.
42016 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42017 stream TREE_TARGET_OPTION if lto_stream_offload_p.
42018 (write_ts_function_decl_tree_pointers): Don't
42019 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42020 * tree-streamer-in.c (unpack_value_fields): Don't stream
42021 TREE_TARGET_OPTION in if ACCEL_COMPILER.
42022 (lto_input_ts_function_decl_tree_pointers): Don't stream
42023 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42024 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42025 instead of section_name_prefix string comparisons.
42027 2015-01-09 Jakub Jelinek <jakub@redhat.com>
42029 PR rtl-optimization/64536
42030 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42033 2015-01-09 Michael Collison <michael.collison@linaro.org>
42035 PR tree-optimization/64322
42036 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42037 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42039 2015-01-09 Tom de Vries <tom@codesourcery.com>
42041 PR rtl-optimization/64539
42042 * regcprop.c (kill_clobbered_values): Factor out of ...
42043 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
42044 instead of note_stores with kill_clobbered_value.
42046 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42048 * ginclude/unwind-arm-common.h: Revert previous commit.
42050 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42052 * config.gcc (arm*-*-freebsd*): New configuration.
42053 * config/arm/freebsd.h: New file.
42054 * config.host: Add extra components for arm*-*-freebsd*.
42055 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42056 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42058 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42060 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42062 * config/rs6000/t-rtems: Add e6500 multilibs.
42064 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42066 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42069 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42071 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42072 MULTILIB_EXCEPTIONS.
42074 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42076 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42077 MULTILIB_EXCEPTIONS.
42079 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42081 * config/arm/t-rtems-eabi: Rename to...
42082 * config/arm/t-rtems: ...this.
42083 * config/arm/rtems-eabi.h: Rename to...
42084 * config/arm/rtems.h: ...this.
42085 * config.gcc (arm*-*-rtems*): Reflect changes above.
42087 2015-01-09 Richard Biener <rguenther@suse.de>
42089 PR tree-optimization/64410
42090 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42092 (execute_update_addresses_taken): Deal with that.
42093 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42094 loads/stores for complex variables.
42096 2015-01-09 Martin Liska <mliska@suse.cz>
42098 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42100 (func_checker::compare_memory_operand): New function.
42101 (func_checker::compare_operand): Split case to newly
42103 (func_checker::compare_cst_or_decl): New function.
42104 (func_checker::compare_gimple_call): Identify
42106 (func_checker::compare_gimple_assign): Likewise.
42107 * ipa-icf-gimple.h: New function.
42109 2015-01-09 Martin Liska <mliska@suse.cz>
42112 * sreal.c (sreal::dump): Change unsigned format to signed for
42114 (sreal::to_double): Replace exp2 with scalbln.
42116 2015-01-09 Martin Liska <mliska@suse.cz>
42118 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42119 * ipa-icf.c (sem_function::equals_private): Add support for target and
42120 (sem_item_optimizer::merge_classes): Remove redundant function
42121 optimization flags comparison.
42122 * tree.h (target_opts_for_fn): New function.
42124 2015-01-09 Tom de Vries <tom@codesourcery.com>
42126 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42128 2015-01-09 Kito Cheng <kito@0xlab.org>
42130 PR rtl-optimization/64348
42131 * lra-constraints.c (split_reg): Fix caller-save store/restore
42132 instruction generation.
42134 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
42136 PR gcov-profile/61790
42137 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42138 long long. Fallback to int64_t if host doesn't have long long and
42139 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
42141 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42143 PR tree-optimization/63989
42144 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42145 from 1000 to 10000.
42146 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42147 (get_stridx): If we don't have a record for certain SSA_NAME,
42148 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42149 constant offset, call get_stridx_plus_constant.
42150 (get_stridx_plus_constant): New function.
42151 (zero_length_string): Don't use get_stridx here.
42154 PR middle-end/64388
42155 * dse.c (struct insn_info): Mention frame_read set also
42156 before reload for tail calls on some targets.
42157 (scan_insn): Revert 2014-12-22 change. Set frame_read
42158 also before reload for tail calls if
42159 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
42160 instead of add_non_frame_wild_read for non-const/memset
42161 tail calls after reload.
42163 2015-01-08 Jason Merrill <jason@redhat.com>
42165 * ubsan.c (do_ubsan_in_current_function): New.
42166 (pass_ubsan::gate): Use it.
42167 * ubsan.h: Declare it.
42168 * convert.c (convert_to_integer): Use it.
42170 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42173 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42174 compare_code when it is unconditionally overwritten afterwards.
42175 Use ix86_reverse_condition instead of reverse_condition. Don't
42176 change code if *reverse_condition* returned UNKNOWN and don't
42177 swap ct/cf and negate diff in that case.
42179 2015-01-08 Mike Stump <mikestump@comcast.net>
42181 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42182 (pass_tsan_O0::gate): Likewise.
42183 * extend.texi (Function Attributes): Add no_sanitize_thread
42186 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
42188 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42189 for registering builtins.
42190 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42191 add -fopenmp to the argv_obstack used when invoking
42192 compile_for_target.
42194 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42195 add "-m32" or "-m64" to argv_obstack.
42196 (generate_host_descr_file): Likewise, when invoking host_compiler.
42197 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42200 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42202 * config/sh/sh-mem.cc: Use constant as second operand when emitting
42205 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42208 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42209 constant load if constant operand fits into I08.
42211 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42214 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42215 and TREE_THIS_VOLATILE for MEM_REFs.
42216 (build5_stat): Fix up initialization of TREE_READONLY and
42217 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42219 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
42222 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42223 of r for the second alternative of the destination operand.
42225 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
42228 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42230 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42232 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42234 ([-fivar-visibility], [-fvisibility]): Likewise.
42236 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42238 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42239 the file where @code, @command, etc is more appropriate.
42241 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
42243 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42244 of -mrecip= documentation.
42246 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
42249 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42250 correct reload handler if -m32 -mpowerpc64 is used.
42252 2015-01-06 Tom de Vries <tom@codesourcery.com>
42254 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42256 2015-01-08 Christian Bruel <christian.bruel@st.com>
42259 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42261 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
42263 PR tree-optimization/63259
42264 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42265 if optab exists for 16bit byteswap.
42267 2015-01-06 Jakub Jelinek <jakub@redhat.com>
42269 * opts.c (common_handle_option): Add support for
42270 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42271 * doc/invoke.texi: Document -fno-sanitize=all,
42272 -f{,no-}sanitize-recover=all. Document that
42273 -fsanitize=float-cast-overflow is not enabled
42274 by -fsanitize=undefined. Fix up documentation
42275 of -f{,no-}sanitize-recover.
42277 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
42279 * config.gcc: Add Visium support.
42280 * configure.ac: Likewise.
42281 * configure: Regenerate.
42282 * doc/extend.texi (interrupt attribute): Add Visium.
42283 * doc/invoke.texi: Document Visium options.
42284 * doc/install.texi: Document Visium target.
42285 * doc/md.texi: Document Visium constraints.
42286 * common/config/visium: New directory.
42287 * config/visium: Likewise.
42289 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42291 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42292 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42294 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42296 * combine.c (combine_validate_cost): Do not count the cost of a
42297 split I2 twice. Do not display it twice in the dump, either.
42299 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42301 Revert parts of r219199.
42302 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42304 ([-Wtraditional]): Restore markup on <limits.h>.
42306 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
42309 * doc/invoke.texi: Document -Wsuggest-override.
42311 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
42313 PR rtl-optimization/64287
42314 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42315 (process_options): Disable flag_ipa_ra if profiling.
42317 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
42319 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42321 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
42323 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42324 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42325 put under #if TARGET_LOOPS guard.
42327 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
42329 * config/i386/i386.c (output_387_binary_op): Use std::swap.
42331 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
42333 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42334 * rtl.h (refers_to_regno_p): Add overload.
42336 * bt-load.c: Likewise.
42337 * combine.c: Likewise.
42338 * df-scan.c: Likewise.
42339 * sched-deps.c: Likewise.
42340 * config/s390/s390.c: Likewise.
42341 * config/m32r/m32r.c: Likewise.
42342 * config/rs6000/spe.md: Likewise.
42343 * config/rs6000/rs6000.c: Likewise.
42344 * config/pa/pa.c: Likewise.
42345 * config/stormy16/stormy16.c: Likewise.
42346 * config/cris/cris.c: Likewise.
42347 * config/arc/arc.md: Likewise.
42348 * config/arc/arc.c: Likewise.
42349 * config/sh/sh.md: Likewise.
42350 * config/sh/sh.c: Likewise.
42351 * config/frv/frv.c: Likewise.
42353 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42356 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42357 call as cleanup of the whole body.
42358 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42359 * tsan.c (replace_func_exit): New function.
42360 (instrument_func_exit): Moved earlier.
42361 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42362 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42364 (tsan_pass): Don't call instrument_func_exit.
42365 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42366 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42370 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42371 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42372 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42373 if the result is integer_zerop, return NULL_TREE.
42374 * convert.c (convert_to_integer): Pass expr as ARG.
42376 PR tree-optimization/64465
42377 * tree-inline.c (redirect_all_calls): During inlining
42378 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42379 changed the stmt to a non-throwing call.
42381 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42383 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42384 etc markup throughout the file.
42386 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42388 Enable experimental TSAN support for Ada.
42389 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42391 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42393 PR tree-optimization/64494
42394 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42395 clear SSA_NAME_ANTI_RANGE_P flag.
42397 2015-01-05 Marek Polacek <polacek@redhat.com>
42399 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42401 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42403 Update copyright years.
42405 * gcc.c (process_command): Update copyright notice dates.
42406 * gcov-dump.c: Ditto.
42408 * doc/cpp.texi: Bump @copying's copyright year.
42409 * doc/cppinternals.texi: Ditto.
42410 * doc/gcc.texi: Ditto.
42411 * doc/gccint.texi: Ditto.
42412 * doc/gcov.texi: Ditto.
42413 * doc/install.texi: Ditto.
42414 * doc/invoke.texi: Ditto.
42416 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42418 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42420 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42422 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42423 ([-Wabi]): Likewise.
42424 ([-fmessage-length]): Likewise.
42425 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42426 ([-Wno-discarded-qualifiers]): Likewise.
42427 ([-Wnodiscarded-array-qualifiers]): Likewise.
42428 ([-Wno-virtual-move-assign]): Likewise.
42429 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42430 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42431 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42432 ([-fsanitize-undefined-trap-on-error]): Likewise.
42433 ([-floop-interchange]): Likewise.
42434 ([-ftree-coalesce-inlined-vars]): Likewise.
42435 ([-fvect-cost-model]): Likewise.
42436 ([-flto]): Likewise.
42437 ([--param]): Likewise.
42438 (Spec Files): Likewise.
42439 ([-mstrict-align]): Likewise.
42440 ([-mfix-cortex-a53-835769]): Likewise.
42441 ([-march], [-mtune]): Likewise.
42442 ([-mpic-register]): Likewise.
42443 ([-munaligned-access]): Likewise.
42444 ([-msp8]): Likewise.
42445 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42446 (AVR Built-in Macros): Likewise.
42447 ([-mpreferred-stack-boundary]): Likewise.
42448 ([-mtune-crtl]): Likewise.
42449 ([-mashf]): Likewise.
42450 ([-mmcu=]): Likewise.
42451 ([-minrt]): Likewise.
42452 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42453 ([-mupper-regs]): Likewise.
42454 ([-matomic-model]): Likewise.
42455 ([-mdiv]): Likewise.
42456 ([-mzdcbranch]): Likewise.
42457 ([-mdisable-callt]): Likewise.
42458 ([-msoft-float]): Likewise.
42459 ([-m8byte-align]): Likewise.
42460 ([-fstack-reuse]): Likewise.
42462 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42464 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42465 Fix markup, light copy-editing.
42466 ([-fauto-profile]): Rewrite to fix formatting and content
42469 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42471 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42472 Copy-edit description.
42473 ([-fisolate-erroneous-paths-attribute]): Likewise.
42474 * common.opt (fisolate-erroneous-paths-dereference):
42475 Copy-edit description.
42476 (fisolate-erroneous-paths-attribute): Likewise.
42478 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42480 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42483 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42485 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42486 ([-fvtv-debug]): Likewise.
42487 ([-Wc++-compat]): Likewise.
42488 ([-Wc++11-compat]): Likewise.
42489 ([-Wc++14-compat]): Likewise.
42490 ([-Wno-sized-deallocation]): Likewise.
42491 ([-femit-class-debug-always]): Likewise.
42492 ([-femit-struct-debug-detailed]): Likewise.
42493 ([-fno-keep-inline-dllexport]): Likewise.
42494 ([-fira-algorithm]): Likewise.
42495 ([-fira-region]): Likewise.
42496 ([-flra-remat]): Likewise.
42497 ([-fipa-ra]): Likewise.
42498 ([-fhoist-adjacent-loads]): Likewise.
42499 ([-fisolate-erroneous-paths-dereference]): Likewise.
42500 ([-fisolate-erroneous-paths-attribute]): Likewise.
42501 ([-ftree-switch-conversion]): Likewise.
42502 ([-ftree-tail-merge]): Likewise.
42503 ([-ftree-loop-if-convert]): Likewise.
42504 ([-ftree-loop-if-convert-stores]): Likewise.
42505 ([-ftree-loop-distribution]): Likewise.
42506 ([-ftree-loop-distribute-patterns]): Likewise.
42507 ([-flto-compression-level]): Likewise.
42508 ([-flto-report]): Likewise.
42509 ([-flto-report-wpa]): Likewise.
42510 ([-fuse-linker-plugin]): Likewise.
42511 ([-mfix-cortex-a53-835769]): Likewise.
42512 ([-mno-fix-cortex-a53-835769]): Likewise.
42513 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42514 explicit listing; add a note to the discussion indicating they
42515 exist. Reorder table to group similar options. Add missing
42516 @opindex entries. Add @need commands throughout the table to
42517 allow it to be split across multiple pages.
42518 ([-m8bit-idiv]): Fix @opindex.
42519 ([-mavx256-split-unaligned-load]): Likewise.
42520 ([-mavx256-split-unaligned-store]): Likewise.
42521 ([-mstack-protector-guard]): Likewise.
42522 ([-mcpu=]): Likewise.
42523 ([-mcpu]): Likewise.
42524 ([-mpointer-size=]): Likewise.
42526 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42528 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42529 instead of `m' constraint. Likewise for unnamed movb comparison
42530 patterns using reg_before_reload_operand predicate.
42531 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42532 predicate to reject register index and LO_SUM DLT memory forms
42535 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42537 * doc/invoke.texi (Option Summary): Fix spelling of
42538 -fdevirtualize-at-ltrans.
42539 ([-fdevirtualize]): Fix markup.
42540 ([-fdevirtualize-speculatively]): Fix typo.
42541 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42542 implementor-speaky.
42543 * common.opt (fdevirtualize-at-ltrans): Likewise.
42544 * ipa-devirt.c: Fix typos in comments throughout the file.
42545 (ipa_devirt): Fix typos in format strings for dump output.
42547 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42549 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42550 discussion of defaults, light copy-editing.
42552 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42554 * tsan.c (instrument_expr): corrected previous checkin.
42556 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42558 Instrument bit field and unaligned accesses for TSAN.
42559 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42560 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42561 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42562 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42563 unaligned memory regions.
42565 2015-01-01 Anthony Green <green@moxielogic.com>
42567 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42568 Restrict move source register offsets to 16 bits.
42570 Copyright (C) 2015 Free Software Foundation, Inc.
42572 Copying and distribution of this file, with or without modification,
42573 are permitted in any medium without royalty provided the copyright
42574 notice and this notice are preserved.