2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
[official-gcc.git] / gcc / ChangeLog
blob1a4c3e651f39967b7880ab51d14a6582424479f8
1 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
3         * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
4         * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
5         * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
7 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
9         PR ipa/61886
10         * symtab.c (symtab_node::equal_address_to): New parameter
11         MEMORY_ACCESSED.
12         * cgraph.h (symtab_node::equal_address_to): Update prototype.
14 2015-12-08  DJ Delorie  <dj@redhat.com>
16         * config/rx/rx.opt (-mjsr): Add.
17         * config/rx/predicates.md (rx_call_operand): Avoid overflowing
18         calls when -mjsr.
19         * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
20         overflowing jumps.
21         * doc/invoke.texi (-mjsr): Document it.
23 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
25         PR ipa/61886
26         * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
27         lto_symtab_prevailing_decl): MOve to lto-symtab.h.
28         * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
29         DECL_ABSTRACT_ORIGIN is not error_mark_node.
31 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
33         * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
35 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
37         * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
38         indentation.
40 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
42         PR ipa/61886
43         * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
44         into the boundary.
46 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
48         PR ipa/61886
49         * varpool.c (varpool_node::get_availability): Recurse only on
50         weakrefs with definition in the target.
51         (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
53 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
55         PR ipa/61886
56         * ipa-visibility.c (can_replace_by_local_alias): Look through
57         transparent aliases; refuse weakrefs.
58         (update_visibility_by_resolution_info): Skip transparent aliases in the
59         analysis part
61 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
63         PR ipa/61886
64         * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
65         (symtab_node::noninterposable_alias): Do not accept transparent
66         aliases.
68 2015-12-08  Nathan Sidwell  <nathan@acm.org>
70         * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
71         decl_offset, init_part, object_size, object_finished): Replace
72         with ...
73         (struct init_frag): ... this new struct variable.
74         (begin_decl_field, output_decl_chunk): Replace with ...
75         (output_init_frag): ... this new function.
76         (nvptx_assemble_value): Reimplement.
77         (nvptx_assemble_integer, nvptx_output_skip): Adjust.
78         (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
79         (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
81 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
83         PR middle-end/68291
84         PR middle-end/68292
85         * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
86         with BLKmode promoted mode based on RESULT_DECLs.
88 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
90         PR target/68701
91         * config/i386/i386.c (ix86_option_override_internal): Enable
92         -maccumulate-outgoing-args when %ebp is fixed due to stack
93         realignment requirements.
95 2015-12-08  Tom de Vries  <tom@codesourcery.com>
97         PR tree-optimization/68640
98         * omp-low.c (install_var_field): Clear the restrict qualifier on the var
99         type.
101 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
103         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
104         assembler to make source always 128bit.
106 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
108         PR c/48088
109         PR c/68657
110         * common.opt (Wframe-larger-than=): Add Warning.
111         * opts.h (control_warning_option): Add ARG argument.
112         * opts-common.c (cmdline_handle_error): New function.
113         (read_cmdline_option): Use it.
114         (control_warning_option): Likewise.  Add ARG argument.
115         If non-NULL, decode it if needed and pass through
116         to handle_generated_option.  Handle CLVC_ENUM like
117         CLVC_BOOLEAN.
118         * opts.c (common_handle_option): Adjust control_warning_option
119         caller.
120         (enable_warning_as_error): Likewise.
122 2015-12-08  Matthew Wahab  <matthew.wahab@arm.com>
124         * config/aarch64/aarch64-options-extensions.def: Remove
125         AARCH64_FL_RDMA from "fp" and "simd".  Remove "pan", "lor",
126         "rdma".
127         * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
128         (AARCH64_FL_LOR): Remove.
129         (AARCH64_FL_RDMA): Remove.
130         (AARCH64_FL_V8_1): New.
131         (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
132         and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
133         (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
134         * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
135         section on -march=native.  Group descriptions of permitted
136         architecture names together.  Expand description of
137         -march=armv8.1-a.
138         (AArch64 -mtune): Slightly rework section on -march=native.
139         (AArch64 -mcpu): Slightly rework section on -march=native.
140         (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
141         State that -march=armv8.1-a enables "crc" and "lse".
143 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
145         * doc/invoke.texi (SPARC options): Fix typo.
147 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
149         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
150         (output_probe_stack_range): Rotate the loop and simplify.
152 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
154         * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
155         infinity filterning code.
157 2015-12-08  Ilya Enkovich  <enkovich.gnu@gmail.com>
159         PR tree-optimization/68766
160         * tree-vectorizer.c (vectorize_loops): Check for
161         if-converted loops when debug counters are used.
163 2015-12-07  DJ Delorie  <dj@redhat.com>
165         * config/rl78/constraints.md (Wfr): Change to be a non-memory
166         constraint.
167         * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
168         * config/rl78/rl78.c (rl78_one_far_p): Define.
169         * config/rl78/rl78-virt (movqi_virt): Fix far memory
170         alternatives.
171         (movhi_virt): Likewise.
172         (zero_extendqihi2_virt): Likewise.
173         (extendqihi2_virt): Likewise.
174         (add<mode>3_virt): Likewise.
175         (sub<mode>3_virt): Likewise.
176         (andqi3_virt): Likewise.
177         (iorqi3_virt): Likewise.
178         (xorqi3_virt): Likewise.
179         * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
180         overflow in large files.
182 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
184         PR target/63668
185         * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
186         * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
187         * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
188         * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
190 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
192         * reorg.c (optimize_skip): Do not put frame related instructions
193         in annulled delay slots.
194         (steal_delay_list_from_target): Ditto.
195         (fill_slots_from_thread): Ditto.
197 2015-12-07  Evandro Menezes  <e.menezes@samsung.com>
199         * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
200         * config/aarch64/aarch64.md: Include "exynos-m1.md".
201         * config/arm/arm.md: Likewise.
202         * config/arm/exynos-m1.md: New file.
204 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
206         * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
208 2015-12-07  Nathan Sidwell  <nathan@acm.org>
210         * config//nvptx/nvptx.c (write_return): New.
211         (write_fn_proto, nvptx_declare_function_name): Call it.
213 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
215         PR ipa/61886
216         * symtab.c (ultimate_transparent_alias_target): New inline function.
217         (symbol_table::assembler_names_equal_p): New method; break out from ...
218         (symbol_table::decl_assembler_name_equal): ... here.
219         (symbol_table::change_decl_assembler_name): Also update names and
220         translation links of transparent aliases.
221         (symtab_node::dump_base): Dump transparent_alias.
222         (symtab_node::verify_base): Implement basic transparent alias
223         verification.
224         (symtab_node::make_decl_local): Support localization of weakrefs;
225         recurse to transparent aliases; set TREE_STATIC.
226         (symtab_node::ultimate_alias_target_1): Handle visibility of
227         transparent aliases.
228         (symtab_node::resolve_alias): New parmaeter transparent; handle
229         transparent aliases; recurse to aliases of aliases to fix comdat
230         groups.
231         (symtab_node::get_partitioning_class): Handle transparent aliases.
232         * ipa-visibility.c (cgraph_externally_visible_p,
233         varpool_node::externally_visible_p): Visibility of transparent alias
234         depends on its target.
235         (function_and_variable_visibility): Do not tweak visibility of
236         transparent laiases.
237         (function_and_variable_visibility): Likewise.
238         * ipa.c (symbol_table::remove_unreachable_nodes): Clear
239         transparent_alias flag.
240         * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
241         Support transparent aliases.
242         * cgraph.h (symtab_node): Update prototype of resolve_alias;
243         add transparent_alias flag.
244         (symbol_table: Add assembler_names_equal_p.
245         (symtab_node::real_symbol_p): Skip transparent aliases.
246         * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
247         (handle_alias_pairs): Set transparent_alias for weakref.
248         (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
249         aliases.
250         * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
251         skip symbols not put into boundary; stream transparent_alias.
252         (lto_output_varpool_node): Likewise.
253         (input_overwrite_node, input_varpool_node): Stream transparent alias.
254         * varpool.c (ctor_for_folding, varpool_node::get_availability,
255         varpool_node::assemble_aliases,
256         symbol_table::remove_unreferenced_decls): Handle transparent aliase.
257         (varpool_node::create_alias): Set transparent_alias.
259 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
261         PR middle-end/68291
262         PR middle-end/68292
263         * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
264         SSA names based on RESULT_DECLs.
265         * function.c (expand_function_start): Do not create BLKmode REGs
266         for GIMPLE registers when coalescing is enabled.
268 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
270         * final.c (shorten_branches): Fix check for basic asm.
271         * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
272         basic asm.
274 2015-12-07  Nathan Sidwell  <nathan@acm.org>
276         * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
277         return call.
279 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
281         * pretty-print.c (text_info::set_range): Rename to...
282         (text_info::set_location): ...this, converting 2nd param
283         from source_range to a location_t.
284         * pretty-print.h (text_info::set_location): Convert
285         from inline function to external definition.
286         (text_info::set_range): Delete.
288 2015-12-07  Nathan Sidwell  <nathan@acm.org>
290         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
291         complex and vector types.  Cope with packed structs.
293 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
295         PR target/68627
296         * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
297         Force destination to 512 bits register.
299 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
301         PR target/68633
302         * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
303         (define_insn "kunpcksi"): Ditto.
304         (define_insn "kunpckdi"): Ditto.
306 2015-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>
308         * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
310 2015-12-06  Victoria Stepanyan  <victoria.stepanyan@amd.com>
312         * common/config/i386/i386-common.c
313         (OPTION_MASK_ISA_CLZERO_SET): New.
314         (ix86_handle_option): Handle clzero.
315         * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
316         (x86_64-*-*): Likewise.
317         * config/i386/clzerointrin.h: New header.
318         * config/i386/cpuid.h (bit_CLZERO):  Define.
319         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
320         CLZERO support.
321         * config/i386/i386.opt (clzero): New.
322         * config/i386/i386-c.c: Define __CLZERO__ if needed.
323         * config/i386/i386.c (ix86_target_string): Define -mclzero option.
324         (PTA_CLZERO): New.
325         (ix86_option_override_internal): Handle new option.
326         (processor_alias_table): Added PTA_CLZERO.
327         (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
328         (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
329         (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
330         IX86_BUILTIN_CLZERO  built-ins.
331         * config/i386/i386.h (TARGET_CLZERO):  New.
332         * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
333         (clzero):  New pattern.
334         (clzero_<mode>): New pattern.
335         * config/i386/x86intrin.h: Include clzerointrin.h.
336         * doc/extend.texi: Document clzero builtins.
337         * doc/invoke.texi: Document -mclzero option.
339 2015-12-05  Jan Hubicka  <hubicka@ucw.cz>
341         * ipa-icf.c (sem_function::merge): Check that local_original exists.
343 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
345         PR target/68609
346         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
347         bool arguement.
348         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
349         non-reciporcal path.
350         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
351         (sqrt<mode>2): Replace define_insn with define_expand that may call
352         rs6000_emit_swsqrt.
354 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
355             Sebastian Pop  <s.pop@samsung.com>
357         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
358         Improve debug.
359         (get_rename_from_scev): Check that all the ops in an expression
360         have their uses dominated by corresponding defs.
362 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
363             Sebastian Pop  <s.pop@samsung.com>
365         PR tree-optimization/68693
366         * graphite-scop-detection.c (dot_all_sese): New
367         (dot_all_scops_1): Renamed to dot_all_sese.
368         (dot_all_scops): Removed.
369         (dot_sese): New.
370         (dot_cfg): New.
371         (scop_detection::get_nearest_dom_with_single_entry): Check that
372         preds are from different loop levels.
373         (scop_detection::get_nearest_pdom_with_single_exit): Check that
374         succs are from different loop levels.
375         (scop_detection::print_sese): Inlined.
376         (scop_detection::print_edge): New.
377         (scop_detection::merge_sese): Added dumps.
378         * graphite.h: Add declarations.
380 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
382         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
383         constraints.
385 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
387         PR rtl-optimization/68349
388         * lra-eliminations.c (move_plus_up): New function.
389         (lra_eliminate_regs_1): Use the function.
391 2015-12-04  Nathan Sidwell  <nathan@acm.org>
393         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
394         (init_output_initializer): ... this.
395         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
396         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
397         nvptx_assemble_decl_begin.
399 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
401         * sancov.c: New file.
402         * Makefile.in (OBJS): Add sancov.o.
403         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
404         * passes.def (sancov_pass): Add.
405         * tree-pass.h  (sancov_pass): Add.
406         * common.opt (-fsanitize-coverage=trace-pc): Add.
407         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
408         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
409         flag_sanitize_coverage.
411 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
413         PR middle-end/65958
414         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
415         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
416         * config/arm/arm.md (probe_stack_range): Adjust.
417         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
418         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
419         (probe_stack_range_<PTR:mode>): Adjust.
421 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
423         * convert.c (convert_to_real_1): When converting from a
424         REAL_TYPE, preserve the location of EXPR in the result.
425         * tree.c (get_pure_location): Make non-static.
426         (set_source_range): Return the resulting location_t.
427         (make_location): New function.
428         * tree.h (get_pure_location): New decl.
429         (get_finish): New inline function.
430         (set_source_range): Convert return type from void to location_t.
431         (make_location): New decl.
433 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
435         PR c/68656
436         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
437         input_location to inform.
438         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
439         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
440         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
442 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
444         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
445         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
446         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
447         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
448         comdat and non-comdat.
449         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
450         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
451         and icf_merged.
453 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
455         * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
456         instead of register_operand.  Remove empty constraints.  Use std::swap.
457         (cstore_si_as_di, cstore<mode>4_signed_imm,
458         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
459         gpc_reg_operand instead of register_operand.
460         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
461         register_operand.  Remove empty constraints.
463 2015-12-04  Nick Clifton  <nickc@redhat.com>
465         * config.gcc (extra_gcc_objs): Define for MSP430.
466         * common/config/msp430/msp430-common.c (msp430_handle_option):
467         Pass both -mmcu and -mcpu on to the back end if they are both defined.
468         * config/msp430/msp430.c (hwmult_name): New function.
469         (msp430_option_override): If an unrecognised MCU name is
470         detected only warn if the user has not provided suitable
471         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
472         warning messages.  Generate warnings about conflicts between
473         -mmcu and -mcpu and -mhwmult options.
474         If neither -mcpu nor -mmcu have been specified but -mhwmult=
475         f5series has the select the 430X isa.
476         (msp430_no_hwmult): If -mmcu has not been specified and
477         msp430_hwmult_type is AUTO then return true.
478         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
479         (LIB_SPEC): Add hardware multiply library selection.
480         * config/msp430/t-msp430: Delete hardware multiply multilibs.
481         Add rule to build driver-msp430.o
482         * config/msp430/driver-msp430.c: New file.
483         * config/msp430/msp430.opt (warn-mcu): New option.
484         * doc/invoke.texi: Update description of -mhwmult=auto.
485         Document -mwarn-mcu option.
487 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
489         * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
490         (cstore<mode>4): Call it.
492 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
494         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
496         PR tree-optimization/68680
497         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
498         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
499         by name.
501         PR tree-optimization/68671
502         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
503         blocks starting with the successor of first bb we've modified
504         and ending with last_bb call reset_flow_sensitive_info_in_bb.
506 2015-12-04  Jeff Law  <law@redhat.com>
508         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
509         indicating if a gimple conditional was optimized to true/false.
510         (reassociate_bb): Bubble up return value from
511         maybe_optimize_range_tests.
512         (do_reassoc): Similarly, but for reassociate_bb.
513         (execute_reassoc): Return TODO_cleanup_cfg as needed.
515 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
517         * config/aarch64/aarch64.c (aarch64_override_options_internal):
518         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
519         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
520         does not affect the assembler directives.
522 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
524         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
525         emit .machine and .machinemode to the top of the assembler file.
526         (TARGET_ASM_FILE_START): Provide target hook.
527         (s390_asm_output_machine_for_arch): Protect with
528         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
530 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
532         * config/s390/s390.opt (s390_arch_string): Remove.
533         (s390_tune_string): Likewise.
534         (s390_cost_pointer): Add Variable.
535         (s390_tune_flags): Add TargetVariable.
536         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
537         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
538         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
539         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
540         (mwarn-framesize=): Save option.
541         (mno-stack-guard, mno-stack-guard): New option.
542         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
543         (mwarn-framesize=): Convert to UInteger (negative values are rejected
544         now).
545         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
546         macros changeable through the GCC target pragma into a separate
547         function.
548         (s390_cpu_cpp_builtins): Likewise.
549         (s390_pragma_target_parse): New function, implement GCC target pragma
550         if enabled.
551         (s390_register_target_pragmas): Register s390_pragma_target_parse if
552         available.
553         * common/config/s390/s390-common.c (s390_handle_option):
554         Export.
555         Move setting s390_arch_flags to s390.c.
556         Remove s390_tune_flags.
557         Allow 0 as argument to -mstack-size (switch to default value).
558         Allow 0 as argument to -mstack-guard (switch off).
559         Remove now unnecessary explicit parsing code for -mwarn-framesize.
560         * config/s390/s390-protos.h (s390_handle_option): Export.
561         (s390_valid_target_attribute_tree): Export.
562         (s390_reset_previous_fndecl): Export.
563         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
564         and end of HTM and VX builtins.
565         (s390_asm_output_function_prefix): Declare hook.
566         (s390_asm_declare_function_size): Likewise.
567         * config/s390/s390-builtins.h (B_GROUP): Use macro.
568         * config/s390/s390-opts.h: Add comment about processor_type usage.
569         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
570         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
571         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
572         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
573         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
574         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
575         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
576         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
577         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
578         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
579         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
580         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
581         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
582         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
583         undefined.
584         (vec_all_nan): Rewrite as macro using statement expressions to avoid
585         that the vector keyword needs to be defined when including the file.
586         (vec_all_numeric): Likewise.
587         (vec_any_nan): Likewise.
588         (vec_any_numeric):  Likewise.
589         * config/s390/s390.c (s390_previous_fndecl): New static variable.
590         (s390_set_current_function): New function.
591         (s390_cost): Wrapper macro to allow defining the cost table pointer in
592         the options file.
593         (processor_table): Table for march= and mtune= parsing.
594         (s390_init_builtins): Enable all builtins and types unconditionally.
595         (s390_expand_builtin): Generate an error message if builtin is not
596         supported by current options.
597         Correct an error message.
598         (s390_function_specific_restore): New function to set s390_cost.
599         (s390_asm_output_machine_for_arch): New function for emitting .machine
600         and .machinmode directives to the assembler file.
601         (s390_asm_output_function_prefix): Likewise.
602         (s390_asm_declare_function_size):  Likewise.
603         (s390_asm_output_function_label): Add mdebug output for feature testing.
604         (s390_option_override): Move implementation into internal function.
605         (s390_option_override_internal): Likewise.
606         Implement option overriding based on current options.
607         (s390_valid_target_attribute_inner_p): New function implementing target
608         attribute logic.
609         (s390_valid_target_attribute_tree): Likewise.
610         (s390_valid_target_attribute_p): Likewise.
611         (s390_reset_previous_fndecl): Likewise.
612         (s390_set_current_function): Likewise.
613         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
614         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
615         (TARGET_OPTION_RESTORE): Likewise.
616         * doc/extend.texi: S390: Document target attribute and pragma.
617         * config.in: Regenerated.
618         * configure: Regenerated.
619         * configure.ac: S390: Check for .machinemode and .machine in gas.
620         S390: Check for architecture modifiers support in gas.
622 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
624         * doc/extend.texi ("simd"): Describe new flags.
626 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
628         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
629         operand checked for alignment.
631 2015-12-04  Nathan Sidwell  <nathan@acm.org>
633         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
634         emission too. Change 'no_arg_types' to 'prototyped'.
635         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
636         main.
637         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
639 2015-12-04  Richard Biener  <rguenther@suse.de>
641         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
642         member and initialize it.
643         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
644         if necessary.
645         (sccvn_dom_walker::before_dom_children): If unreachable_dom
646         is set BB is not reachable either.  Set unreachable_dom
647         if not set and BB is unreachable.
649 2015-12-04  Richard Biener  <rguenther@suse.de>
651         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
652         query with GATHER_STATISTICS.
654 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
656         PR middle-end/65958
657         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
658         fields, add keep_stack and reorder them.
659         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
660         set it to false.  Do not insert a stack save/restore pair if it has
661         been set to true by the gimplification of the statements.
662         Restore it to the saved value on exit if it is still false.
663         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
664         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
665         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
666         * doc/extend.texi (Variable Length): Document new behavior.
667         * doc/generic.texi (Blocks): Document new handling of VLAs.
669 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
670             Tristan Gingold  <gingold@adacore.com>
672         PR middle-end/65958
673         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
674         Declare.
675         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
676         UNSPEC_PROBE_STACK_RANGE.
677         (blockage): New instruction.
678         (probe_stack_range_<PTR:mode>): Likewise.
679         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
680         function.
681         (aarch64_output_probe_stack_range): Likewise.
682         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
683         static builtin stack checking is enabled.
684         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
685         Define to 1.
687 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
689         PR target/68214
690         * config/arm/arm.md (*call_mem): Delete pattern.
691         (*call_value_mem): Likewise.
692         * config/arm/arm.c (output_call_mem): Delete.
693         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
695 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
697         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
698         aarch64_sync_memory_operand.
700 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
702         PR target/68655
703         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
704         (expand_vec_perm_1): Use it and recurse if everything else
705         failed.  Use nd.perm instead of perm2.
706         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
707         instead of gen_lowpart for the target.
708         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
709         and recurse if everything else failed.
711 2015-12-04  Richard Biener  <rguenther@suse.de>
713         PR middle-end/68636
714         * builtins.c (get_pointer_alignment_1): Take care of byte to
715         bit alignment computation overflow.
717 2015-12-04  Richard Biener  <rguenther@suse.de>
719         PR middle-end/67438
720         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
721         a constant with single_use.
723 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
724             Jiong Wang  <jiong.wang@arm.com>
726         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
727         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
729 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
731         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
732         Add short circuit for !flag_strict_aliasing
733         (get_alias_set): Remove flag_strict_aliasing check.
734         (new_alias_set): Likewise.
736 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
738         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
739         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
740         (exynosm1_regmove_cost): Likewise.
741         (exynosm1_vector_cost): Likewise.
742         (exynosm1_tunings): Likewise.
743         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
744         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
746 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
747             Richard Biener  <richard.guenther@gmail.com>
749         * cfgexpand.c (pass_expand::execute): Replace call to
750         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
751         * tree-ssa.c (delete_tree_ssa): Likewise.
752         * function.c (set_cfun): Call redirect_edge_var_map_empty.
753         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
754         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
755         (redirect_edge_var_map_empty): New.
756         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
757         (redirect_edge_var_map_empty): New.
759 2015-12-03  Jeff Law  <law@redhat.com>
761         PR tree-optimization/68599
762         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
763         in call to loop_optimizer_init.
764         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
765         optimization to drop the assumptions/infinite notations if
766         the loop has a single exit.
768 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
770         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
771         the pattern cannot FAIL.
772         (vec_store_lanes@var{m}@var{n}): Likewise.
773         (maskload@var{m}@var{n}): Likewise.
774         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
775         in the name of the pattern.
776         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
777         floating-point mode and that all operands have that mode.
778         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
779         pattern cannot FAIL.
780         (sqrt@var{m}2): Document that mode m must be a scalar or vector
781         floating-point mode, that all operands have that mode, and that
782         the patterns cannot FAIL.  Remove previous documentation referring
783         to @code{double} and @code{float}.
784         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
785         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
786         (copysign@var{m}3): Likewise.
787         (exp@var{m}2): Likewise.  Explicitly state the base.
788         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
789         (btrunc@var{m}2, rint@var{m}2): Likewise.
790         (round@var{m}2): Likewise.  Fix incorrect description of rounding
791         effect.
792         (ceil@var{m}2): As for round@var{m}2.
793         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
794         the instruction must not raise an inexact condition.
795         (scalb@var{m}3): Document previously-undocumented pattern
796         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
797         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
798         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
799         (significand@var{m}2): Likewise.
800         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
801         mode m and operand 0 is defined more freely.  Document that @var{m}
802         can be a scalar or vector integer mode and that the pattern is not
803         allowed to FAIL.
804         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
805         (clrsb@var{m}2): Likewise, except that the description of the
806         mode was missing in this case.
808 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
810         * internal-fn.def (RSQRT): New function.
811         * optabs.def (rsqrt_optab): New optab.
812         * doc/md.texi (rsqrtM2): Document.
813         * target.def (builtin_reciprocal): Replace gcall argument with
814         a function decl.  Restrict hook to machine functions.
815         * doc/tm.texi: Regenerate.
816         * targhooks.h (default_builtin_reciprocal): Update prototype.
817         * targhooks.c (default_builtin_reciprocal): Likewise.
818         * tree-ssa-math-opts.c: Include internal-fn.h.
819         (internal_fn_reciprocal): New function.
820         (pass_cse_reciprocals::execute): Call it, and build a call to an
821         internal function on success.  Only call targetm.builtin_reciprocal
822         for machine functions.
823         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
824         second argument.
825         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
826         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
827         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
828         machine functions.
829         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
830         (aarch64_builtin_reciprocal): Replace gcall argument with a
831         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
832         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
833         (aarch64_optab_supported_p): New function.
834         (TARGET_OPTAB_SUPPORTED_P): Define.
835         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
836         (rsqrt<mode>2): ...this.
837         * config/i386/i386.c (use_rsqrt_p): New function.
838         (ix86_builtin_reciprocal): Replace gcall argument with a
839         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
840         check.  Only handle machine functions.
841         (ix86_optab_supported_p): Handle rsqrt_optab.
842         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
843         (rs6000_builtin_reciprocal): Replace gcall argument with a
844         function decl.  Remove optimize_insn_for_size_p check.
845         Only handle machine functions.
846         (rs6000_optab_supported_p): New function.
848 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
850         PR target/68471
851         PR target/68472
852         * config/i386/i386.c (ix86_mitigate_rop): Don't call
853         compute_bb_for_insn again.  Call df_insn_rescan_all.
854         * config/i386/i386.md (set_got_rex64): Override modrm_class.
856         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
858 2015-12-03  Nathan Sidwell  <nathan@acm.org>
860         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
861         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
862         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
863         (nvptx_option_override): Set data ares for worker vars.
864         (nvptx_addr_space_from_sym): Delete.
865         (nvptx_encode_section_info): New.
866         (section_for_sym, section_for_decl): New.
867         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
868         (nvptx_section_from_addr_space): Delete.
869         (nvptx_section_for_decl): Delete.
870         (nvptx_output_aligned, nvptx_declare_object_name,
871         nvptx_assemble_undefined_decl): Use section_for_decl, remove
872         unnecessary checks.
873         (nvptx_print_operand): Add 'D', adjust 'A'.
874         (nvptx_expand_worker_addr): Adjust unspec generation.
875         (TARGET_ENCODE_SECTION_INFO): Override.
876         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
877         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
878         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
879         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
880         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
881         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
882         (UNSPEC_TO_GENERIC): New.
883         (nvptx_register_or_symbolic_operand): Delete.
884         (cvt_code, cvt_name, cvt_str): Delete.
885         (convaddr_<cvt_name><mode> [P]): Delete.
886         (convaddr_<mode> [P]): New.
888 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
890         PR rtl-optimization/68624
891         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
892         blocks if they exist and simplify the logic choosing the order to emit
893         them in.
895 2015-12-03  Richard Biener  <rguenther@suse.de>
897         PR tree-optimization/66051
898         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
899         on load group size.  Do not pass in vectorization_factor.
900         (vect_transform_slp_perm_load): Do not require any permute support.
901         (vect_build_slp_tree): Do not pass in vectorization factor.
902         (vect_analyze_slp_instance): Do not compute vectorization
903         factor estimate.  Use vector size instead of vectorization factor
904         estimate to split store groups for BB vectorization.
906 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
908         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
909         DECL as return value is allowed to have NULL bounds.
911 2015-12-03  Tom de Vries  <tom@codesourcery.com>
913         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
914         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
915         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
917 2015-12-03  Richard Biener  <rguenther@suse.de>
919         PR tree-optimization/67800
920         PR tree-optimization/68333
921         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
922         restriction to reduction contexts but allow SLP reductions as well.
923         (vect_recog_sad_pattern): Likewise.
924         (vect_recog_widen_sum_pattern): Likewise.
926 2015-12-03  Richard Biener  <rguenther@suse.de>
928         PR tree-optimization/68639
929         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
930         belonging to different loops.
931         (vect_analyze_data_ref_accesses): Likewise.
933 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
935         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
936         Remove "prefix_extra".
937         (define_insn "vec_extract_hi_<mode>_mask"): New.
938         (define_insn "vec_extract_hi_<mode>"): Remove masking.
940 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
942         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
943         (propagate_pure_const): Use it; fix comments and optimize loops.
945 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
947         * ipa-pure-const.c (ignore_edge): Rename to ...
948         (ignore_edge_for_nothrow) ... this one; also ignore eges to
949         interposable functions or ones that can not throw.
950         (propagate_nothrow): Fix handling of availability.
952 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
954         PR ipa/68184
955         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
957 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
958             Sebastian Pop  <s.pop@samsung.com>
960         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
961         isl_ast_op_zdiv_r.
962         (gcc_expression_from_isl_expr_op): Same.
964 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
965             Sebastian Pop  <s.pop@samsung.com>
967         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
968         that insertion point is still in the region.
970 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
971             Sebastian Pop  <s.pop@samsung.com>
973         PR tree-optimization/68550
974         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
975         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
976         statements.
978 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
980         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
981         * configure: Regenerate.
982         * config.in: Regenerate.
983         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
984         function.
985         (rs6000_output_function_prologue): Use it instead of checking
986         cfun->machine->r2_setup_needed.  Use internal labels instead of
987         GNU as local label extension.  Handle ELFv2 large code model.
988         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
989         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
991 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
993         PR target/68647
994         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
995         New functions.
996         (expand_unop): Use them.
998 2015-12-02  Marek Polacek  <polacek@redhat.com>
1000         PR c++/68653
1001         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1003 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1005         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
1006         SHUFFLE defines.
1007         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1009 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1010             Sebastian Pop  <s.pop@samsung.com>
1012         * graphite-dependences.c (scop_get_reads): Add extra dumps.
1013         (scop_get_must_writes): Same.
1014         (scop_get_may_writes): Same.
1015         (compute_deps): Same.
1016         * graphite-sese-to-poly.c (bounds_are_valid): New.
1017         (pdr_add_data_dimensions): Call bounds_are_valid.
1019 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1020             Sebastian Pop  <s.pop@samsung.com>
1022         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1023         * graphite-poly.c (apply_poly_transforms): Same.
1024         * graphite.c (gate_graphite_transforms): Same.
1025         * toplev.c (process_options): Same.
1027 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1029         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1030         (mips_output_probe_stack_range): Rotate the loop and simplify.
1032 2015-12-02  David Sherwood  <david.sherwood@arm.com>
1034         * config/aarch64/aarch64.md: New pattern.
1035         * config/aarch64/aarch64-simd.md: Likewise.
1036         * config/aarch64/iterators.md: New unspecs, iterators.
1038 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1040         * dwarf2out.c (dwar2out_var_location): In addition to notes,
1041         process indirect calls whose target is compile-time known.
1042         Enhance pattern matching to get the SYMBOL_REF they embed.
1043         (gen_subprogram_die): Handle such calls.
1044         * final.c (final_scan_insn): For call instructions, invoke the
1045         var_location debug hook only after the call has been emitted.
1047 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1049         * gimplify.c (enum gimplify_omp_var_data): Add enum value
1050         GOVD_MAP_FORCE.
1051         (oacc_default_clause): Fix default for scalars in oacc kernels.
1052         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1054 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1056         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1057         parameter base_pointers_restrict.
1058         (omp_target_base_pointers_restrict_p): New function.
1059         (scan_omp_target): Call scan_sharing_clauses with
1060         base_pointers_restrict arg.
1062 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1064         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1065         (nvptx_underlying_object_mode): Delete.
1066         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1067         (output_reg): New.
1068         (nvptx_declare_function_name): Use output_reg.  Remove punning buffer.
1069         (nvptx_output_mov_insn): New.
1070         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1071         Use output_reg. Merge 't' and 'u' handling.
1072         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1073         (struct machine_function): Remvoe punning_buffer_size.
1074         (REGISTER_NAMES): Remove %punbuffer.
1075         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1076         UNSPEC_CPLX_HIGHPART): Delete.
1077         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1078         nvptx_output_mov_insn.
1079         (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1080         Use nvptx_output_mov_insn.
1081         (highpartscsf2,  set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1082         Delete.
1083         (mov<mode> [SDCM]): Delete.
1085 2015-12-02  Richard Biener  <rguenther@suse.de>
1087         * tree.h (tree_invariant_p): Declare.
1088         * tree.c (tree_invariant_p): Export.
1089         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1090         create SAVE_EXPRs but reject patterns if we would need to.
1092 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1094         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1095         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1097 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
1099         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1100         (cstore<mode>4): Use it.
1102 2015-12-02  Richard Biener  <rguenther@suse.de>
1104         PR tree-optimization/68625
1105         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1106         cleanup_control_flow_bb.
1107         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1108         on all BBs, then cleanup_tree_cfg_bb and finally iterate
1109         over the worklist doing both.
1111 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1113         PR tree-optimization/68432
1114         * coretypes.h (optimization_type): New enum.
1115         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1116         * doc/tm.texi: Regenerate.
1117         * target.def (optab_supported_p): New hook.
1118         * targhooks.h (default_optab_supported_p): Declare.
1119         * targhooks.c (default_optab_supported_p): New function.
1120         * predict.h (function_optimization_type): Declare.
1121         (bb_optimization_type): Likewise.
1122         * predict.c (function_optimization_type): New function.
1123         (bb_optimization_type): Likewise.
1124         * optabs-query.h (convert_optab_handler): Define an overload
1125         that takes an optimization type.
1126         (direct_optab_handler): Likewise.
1127         * optabs-query.c (convert_optab_handler): Likewise.
1128         (direct_optab_handler): Likewise.
1129         * internal-fn.h (direct_internal_fn_supported_p): Take an
1130         optimization_type argument.
1131         * internal-fn.c (direct_optab_supported_p): Likewise.
1132         (multi_vector_optab_supported_p): Likewise.
1133         (direct_internal_fn_supported_p): Likewise.
1134         * builtins.c (replacement_internal_fn): Update call to
1135         direct_internal_fn_supported_p.
1136         * gimple-match-head.c (build_call_internal): Likewise.
1137         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1138         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1139         * tree.c (maybe_build_call_expr_loc): Likewise.
1140         * config/i386/i386.c (ix86_optab_supported_p): New function.
1141         (TARGET_OPTAB_SUPPORTED_P): Define.
1142         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1143         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1144         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1145         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1146         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1147         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1149 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1151         * Makefile.in (GENSUPPORT_H): New macro.
1152         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1153         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1154         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1155         (build/genconstants.o, build/genextract.o, build/genflags.o)
1156         (build/gentarget-def.o): Use it.
1157         (build/genemit.o): Likewise.  Depend on internal-fn.def.
1158         * genopinit.c: Move block comment to optabs.def.
1159         (optab_tag, optab_def): Move to gensupport.h
1160         (pattern): Likewise, renaming to optab_pattern.
1161         (match_pattern): Move to gensupport.c
1162         (gen_insn): Use find_optab.
1163         (patterns, pattern_cmp): Replace pattern with optab_pattern.
1164         (main): Likewise.  Use num_optabs.
1165         * optabs.def: Add comment that was previously in genopinit.c.
1166         * gensupport.h (optab_tag): Moved from genopinit.c
1167         (optab_def): Likewise, expanding commentary.
1168         (optab_pattern): Likewise, after renaming from pattern.
1169         (optabs, num_optabs, find_optab): Declare.
1170         * gensupport.c (optabs): Moved from genopinit.c.
1171         (num_optabs): New variable.
1172         (match_pattern): Moved from genopinit.c.
1173         (find_optab): New function, extracted from genopinit.c:gen_insn.
1174         * genemit.c (nofail_optabs): New variable.
1175         (emit_c_code): New function.
1176         (gen_expand): Check whether the instruction is an optab that isn't
1177         allowed to fail.  Call emit_c_code.
1178         (gen_split): Call emit_c_code here too.
1179         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
1181 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1183         * config/s390/predicates.md (const_mask_operand): New predicate.
1184         * config/s390/s390-builtins.def: Set a smaller bitmask
1185         for a few builtins.
1186         * config/s390/vector.md: Change predicate from immediate_operand
1187         to either const_int_operand or const_mask_operand.  Add special
1188         insn conditions on patterns which have to exclude certain values.
1189         * config/s390/vx-builtins.md: Likewise.
1191 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1193         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1194         mode from DI to SI.
1196 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1198         * config/s390/s390-builtin-types.def: New builtin types added.
1199         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1200         * config/s390/s390.c (s390_expand_builtin): Always truncate
1201         constants to the mode in the pattern.
1202         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1203         respective builtin __builtin_s390_vec_splat_*.
1205 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1207         * config/s390/s390-builtin-types.def: Sort builtin types.
1209 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1211         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1212         condition for the RT flag.
1214 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1216         * config/s390/constraints.md ("jKK"): New constraint.
1217         * config/s390/s390.c (tm-constrs.h): Include for
1218         satisfies_constraint_*.
1219         (s390_legitimate_constant_p): Allow jKK constants.  Use
1220         satisfies_constraint_* also for the others.
1221         (legitimate_reload_vector_constant_p): Likewise.
1222         (print_operand): Allow h output modifier on vectors.
1223         * config/s390/vector.md ("mov<mode>"): Add vrepi.
1225 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1227         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1228         letter I->K.
1230 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1232         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1233         ("bswaphi2"): New pattern.
1234         New splitter for HI reg-reg bswap.
1236 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
1238         PR driver/68029
1239         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1240         if it is the first parameter.
1242 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1244         PR tree-optimization/68577
1245         * tree-vect-stmts.c (simple_integer_narrowing): New function.
1246         (vectorizable_call): Restrict internal function handling
1247         to NONE and NARROW cases, using simple_integer_narrowing
1248         to test for the latter.  Add cost of narrowing operation
1249         and insert it where necessary.
1251 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
1253         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1254         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1255         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1257 2015-12-01  Nathan Sidwell  <nathan@acm.org>
1259         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1260         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1261         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1262         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1263         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1264         (init_output_initializer): Call write_var_marker.
1265         (nvptx_output_aligned_decl): New.
1266         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1268 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1270         * c-common.c (parse_optimize_options): Do not silently ignore
1271         -fstrict-aliasing changes.
1273 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1275         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1276         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1277         stream TYPE_ALIAS_SET.
1278         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1279         stream TYPE_ALIAS_SET.
1281 2015-12-01  Nathan Sidwell  <nathan@acm.org>
1283         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1284         consider mode.
1286 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1288         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1289         indirection for large and small code models.
1290         (adjust_vperm): Likewise.
1292 2015-12-01  Julian Brown  <julian@codesourcery.com>
1293             Cesar Philippidis  <cesar@codesourcery.com>
1294             James Norris  <James_Norris@mentor.com>
1296         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1297         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1298         (is_gimple_omp_oacc): Add support for above.
1299         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1300         (omp_notice_variable): Diagnose undefined implicit uses of
1301         use_device variables in offloaded regions.
1302         (gimplify_scan_omp_clauses): Add host_data, use_device
1303         support. Diagnose undefined mapping of use_device variables in
1304         OpenACC clauses.
1305         (gimplify_omp_workshare): Add host_data support.
1306         (gimplify_expr): Likewise.
1307         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1308         * omp-low.c (lookup_decl_in_outer_ctx)
1309         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1310         host_data regions.
1311         (scan_sharing_clauses): Support use_device.
1312         (check_omp_nesting_restrictions): Support host_data.
1313         (expand_omp_target): Support host_data.
1314         (lower_omp_target): Skip over outer host_data regions when looking
1315         up decls. Support use_device.
1316         (make_gimple_omp_edges): Support host_data.
1317         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1319 2015-12-01  Marek Polacek  <polacek@redhat.com>
1321         PR middle-end/68582
1322         * cgraphunit.c (check_global_declaration): Only depend
1323         on TREE_THIS_VOLATILE for VAR_DECLs.
1325 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1327         PR tree-optimization/68474
1328         * tree-call-cdce.c (use_internal_fn): Protect call to
1329         gen_shrink_wrap_conditions.
1331 2015-12-01  Christian Bruel  <christian.bruel@st.com>
1333         PR target/68617
1334         * config/arm/arm.opt (unaligned_access): Save.
1335         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1336         * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1337         (arm_option_override_internal): ... here.
1338         * config/arm/arm.h (TARGET_32BIT_P): New macro.
1340 2015-12-01  Richard Biener  <rguenther@suse.de>
1342         PR tree-optimization/68379
1343         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1344         always base loads on the first used DR of a group.
1345         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1346         Compute alignment of the first scalar element unconditionally.
1348 2015-12-01  Richard Biener  <rguenther@suse.de>
1350         PR middle-end/68590
1351         * genmatch.c (struct capture_info): Add match_use_count.
1352         (capture_info::walk_match): Increment match_use_count.
1353         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1354         replacements in a save_expr if they occur more often than
1355         in the original expression.
1357 2015-12-01  Richard Biener  <rguenther@suse.de>
1359         PR ipa/68470
1360         * ipa-split.c (split_function): Handle main part not returning.
1362 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
1364         PR middle-end/68595
1365         * tree-vect-stmts.c (vect_init_vector): Cast boolean
1366         scalars to a proper value before building a vector.
1368 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1370         * genattrtab.c (check_attr_test): Take an attr_desc instead of
1371         an is_const flag.  Put the file_location argument first.
1372         Update recursive calls.  Improve error messages.
1373         (check_attr_value): Take a file location and use it instead
1374         of attr->loc.  Improve error messages.  Update calls to
1375         check_attr_test.
1376         (check_defs): Update call to check_attr_value.
1377         (make_canonical): Likewise.
1378         (gen_attr): Likewise.
1379         (main): Likewise.
1380         (gen_insn_reserv): Update call to check_attr_test.
1382 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1384         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1386 2015-12-01  Richard Biener  <rguenther@suse.de>
1388         PR middle-end/68590
1389         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1391 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1393         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1394         odr_type_p): Move to ...
1395         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1396         odr_type_p): here; miscro-optimize.
1398 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
1400         PR tree-optimization/68529
1401         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1402         Compute no-overflow information for control iv.
1403         (number_of_iterations_lt, number_of_iterations_le): Add new param.
1404         (number_of_iterations_cond): Pass new argument to above functions.
1406 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
1408         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1409         inlining -fno-strict-aliasing into -fstrict-aliasing body.
1411 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
1412             Sebastian Pop  <s.pop@samsung.com>
1414         PR tree-optimization/68565
1415         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1416         codegen_error.  Fail when rhs of division operations is integer_zerop.
1417         (ternary_op_to_tree): Early return on codegen_error.
1418         (unary_op_to_tree): Same.
1419         (nary_op_to_tree): Same.
1420         (gcc_expression_from_isl_expr_op): Same.
1421         (gcc_expression_from_isl_expression): Same.
1422         (graphite_create_new_loop): On codegen_error continue generating
1423         wrong code.
1424         (graphite_create_new_loop_guard): Same.
1425         (build_iv_mapping): Same.
1426         (graphite_create_new_guard): Same.
1428 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
1429             Sebastian Pop  <s.pop@samsung.com>
1431         * graphite-isl-ast-to-gimple.c: Fix dump messages.
1432         * graphite-scop-detection.c: Same.
1433         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1435 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
1437         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1438         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1439         (convert_local_omp_clauses): Likewise.
1441 2015-11-30  Tom de Vries  <tom@codesourcery.com>
1443         PR tree-optimization/46032
1444         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1445         factored out of ...
1446         (find_func_aliases_for_call): ... here.
1447         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1448         BUILT_IN_GOMP_PARALLEL.
1449         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
1450         function.
1452 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
1454         PR tree-optimization/68501
1455         * target.def (builtin_reciprocal): Replace the 3 arguments with
1456         a gcall * one, adjust description.
1457         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1458         with a gcall * one.
1459         * targhooks.c (default_builtin_reciprocal): Likewise.
1460         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1461         targetm.builtin_reciprocal even on internal functions, adjust
1462         the arguments and allow replacing an internal function with normal
1463         built-in.
1464         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1465         with a gcall * one.  Handle internal fns too.
1466         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1467         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1468         * doc/tm.texi (builtin_reciprocal): Document.
1470 2015-11-30  Richard Biener  <rguenther@suse.de>
1472         PR tree-optimization/68592
1473         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1474         on the pattern def sequence.
1476 2015-11-30  Nathan Sidwell  <nathan@acm.org>
1478         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1479         (write_one_arg): Reorder parms, add 'sep' param.
1480         (nvptx_write_function_decl): Rename to ...
1481         (write_fn_proto): ... here.  Do name replacement. Emit linaer
1482         comment marker. Deal with both decls and defns. Simplify argument
1483         formatting.
1484         (write_function_decl_and_comment): Delete.
1485         (write_func_decl_from_insn): Rename to ...
1486         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
1487         (nvptx_record_fndecl): Call write_fn_proto.
1488         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1489         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1490         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1492 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
1494         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1495         (define_insn "*k<logic><mode>"): Use new iterator.
1497 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
1499         PR target/28115
1500         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1501         (sparc_adjust_cost): Add missing space.
1503 2015-11-30  Richard Biener  <rguenther@suse.de>
1505         PR c/68162
1506         * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
1508 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
1510         * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
1511         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1512         base ref, DR pairs and store base_predicate for write type DRs.
1513         (ifcvt_memrefs_wont_trap): Guard checks with
1514         -ftree-loop-if-convert-stores flag.
1516 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1518         * cgraph.c (cgraph_node::make_local): No name is unique during
1519         incremental linking.
1520         * cgraph.h (can_be_discarded_p): Update comment; also common and
1521         WEAK in named sections can be discarded; when doing incremental
1522         link do not rely on resolution being the final one.
1523         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1524         When symbol can be discarded, do not rely on resolution info.
1525         * symtab.c (symtab_node::nonzero_address): Take into account that
1526         symbol can be discarded.
1527         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1528         definition correctly.
1529         (function_and_variable_visibility): Do not set unique_name when
1530         incrementally linking.
1532 2015-11-29  Nathan Sidwell  <nathan@acm.org>
1534         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1535         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1536         (ctrap<mode>): Use const0_operand.
1538 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
1540         * ipa-devirt.c (add_type_duplicate): Remove redundant
1541         ODR violation dump.
1543 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
1545         PR target/28115
1546         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1547         recog_memoized test for insn and check recog_memoized for dep_insn.
1549 2015-11-28  Nathan Sidwell  <nathan@acm.org>
1551         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1552         (FRAME_POINTER_CFA_OFFSET): Define.
1553         (struct nvptx_args): Use 'tree' type.
1554         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1556 2015-11-28  Tom de Vries  <tom@codesourcery.com>
1558         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1560 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
1562         * doc/invoke.texi (Option Summary): Use negative form of
1563         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1564         sort alphabetically and re-justify.
1566 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
1568         PR rtl-optimization/68536
1569         * lra.c (lra_emit_add): Add code for null base.
1570         * lra-constraints.c (curr_insn_transform): Skip operators for
1571         subreg reloads.
1573 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1575         Revert
1576         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1578         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1579         multiple_sets.
1580         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1581         are not modified by the final modified insns in the basic blocks.
1583 2015-11-27  Nathan Sidwell  <nathan@acm.org>
1585         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1586         Don't declare.
1587         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1588         (nvptx_maybe_convert_symbolic_operand): Simplify.
1589         (nvptx_addr_space_from_address): Delete.
1590         (nvptx_print_operand): Adjust 'A' case.
1592 2015-11-27  Richard Biener  <rguenther@suse.de>
1594         PR tree-optimization/68559
1595         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1596         peeling for gap checks ...
1597         * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
1598         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1599         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1601 2015-11-27  Nathan Sidwell  <nathan@acm.org>
1603         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
1604         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1605         (nvptx_record_fndecl): Don't return value, remove force
1606         argument. Require fndecl.
1607         (nvptx_record_libfunc): New.
1608         (nvptx_record_needed_decl): Deteermine how to record decl here.
1609         (nvptx_maybe_record_fnsym): New.
1610         (nvptx_expand_call): Don't record libfuncs here,
1611         (nvptx_maybe_convert_symbolic_operand): Use
1612         nvptx_maye_record_fnsym.
1613         (nvptx_assemble_integer): Reimplement with single switch.
1614         (nvptx_output_call_insn): Register libfuncs here.
1615         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
1616         * config/nvptx/nvptx.md (expand_movdi): Don't call
1617         nvptx_record_needed_decl.
1619 2015-11-27  Richard Biener  <rguenther@suse.de>
1621         PR tree-optimization/68553
1622         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1623         generation for 1:1 permutations.
1624         (vect_transform_slp_perm_load): Detect 1:1 permutations.
1626 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
1628         * gimple.h (nonbarrier_call_p): Declare.
1629         * gimple.c (nonbarrier_call_p): New function.
1630         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1631         Also increment call phase for ASMs with vdef and potential barrier
1632         calls.
1634 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1636         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1637         multiple_sets.
1638         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1639         are not modified by the final modified insns in the basic blocks.
1641 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1643         PR rtl-optimization/68506
1644         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1645         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
1646         blocks.
1648 2015-11-27  Martin Liska  <mliska@suse.cz>
1650         PR c++/68312
1651         * vec.h (release_vec_vec): New function.
1653 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
1655         PR tree-optimization/68552
1656         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1657         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
1658         or whether v0 == v1.
1660 2015-11-27  Martin Liska  <mliska@suse.cz>
1662         * tree-ssa-uninit.c: Fix whitespaces in the source file.
1663         The change is just automatical.
1665 2015-11-27  Martin Liska  <mliska@suse.cz>
1667         * tree-chkp.c (chkp_make_static_bounds): Release buffer
1668         used for string.
1670 2015-11-27  Martin Liska  <mliska@suse.cz>
1672         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1673         Do not release memory for comp_alias_ddrs.
1674         * tree-vect-loop.c (destroy_loop_vec_info): Release
1675         the memory for all loop_vec_info.
1677 2015-11-27  Martin Liska  <mliska@suse.cz>
1679         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1680         of a local-scope vec.
1681         (struct final_warning_record): Use auto_vec instead of vec.
1683 2015-11-27  Richard Biener  <rguenther@suse.de>
1685         PR tree-optimization/68553
1686         * tree-vect-slp.c (vect_get_mask_element): Remove.
1687         (vect_transform_slp_perm_load): Implement in a simpler way.
1689 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
1691         PR rtl-optimization/67753
1692         PR rtl-optimization/64164
1693         * function.c (assign_parm_setup_block): Right-shift
1694         upward-padded big-endian args when bypassing the stack slot.
1696 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
1698         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1699         `-mcompact-branches='.
1700         (MIPS Options): Likewise.
1702 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1704         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1706 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
1708         * doc/install.texi (Prerequisites): Increase ISL requirement to
1709         0.14 or 0.15.
1711 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1713         * config/aarch64/arm_neon.h
1714         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1715         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1716         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1717         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1718         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1719         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1720         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1721         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1722         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1723         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1724         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1725         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1727 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1729         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1730         (vqrdmlahq_s16, vqrdmlahq_s32): New.
1731         (vqrdmlsh_s16, vqrdmlsh_s32): New.
1732         (vqrdmlshq_s16, vqrdmlshq_s32): New.
1734 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1736         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1737         ARM_FEATURE_QRDMX.
1739 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
1741         PR debug/53927
1742         * tree-nested.c (finalize_nesting_tree_1): Append a field to
1743         hold the frame base address.
1744         * dwarf2out.c (gen_subprogram_die): Generate for
1745         DW_AT_static_link a location description that computes the value
1746         of this field.
1748 2015-11-26  Tom de Vries  <tom@codesourcery.com>
1750         revert:
1751         2015-11-25  Tom de Vries  <tom@codesourcery.com>
1753         * cfgloop.c (find_single_latch): New function, factored out of ...
1754         (flow_loops_find): ... here.
1755         (verify_loop_structure): Improve verification of loop->latch.
1756         * cfgloop.h (find_single_latch): Declare.
1757         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1759 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1761         * config/aarch64/aarch64-simd-builtins.def:
1762         Add missing changes from r230962.
1764 2015-11-26  Nathan Sidwell  <nathan@acm.org>
1766         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1767         arg with name.  Don't deal with split regs.  Tweak formatting.
1768         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1769         (nvptx_output_call_insn): Don't deal with split regs here.
1771 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1773         * config/aarch64/aarch64-simd-builtins.def
1774         (sqrdmlah, sqrdmlsh): New.
1775         (sqrdmlah_lane, sqrdmlsh_lane): New.
1776         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1778 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1780         * config/aarch64/aarch64-simd.md
1781         (aarch64_sqmovun<mode>): Fix some white-space.
1782         (aarch64_<sur>qmovun<mode>): Likewise.
1783         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1784         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1785         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1786         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1787         (UNSPEC_SQRDMLSH): New.
1788         (SQRDMLH_AS): New.
1789         (rdma_as): New.
1791 2015-11-26  Richard Biener  <rguenther@suse.de>
1793         PR tree-optimization/66721
1794         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1795         iteration cost earlier.  Re-do analysis without SLP when
1796         vectorization using SLP fails and without has a chance to succeed.
1798 2015-11-26  Richard Biener  <rguenther@suse.de>
1800         * genmatch.c (dt_simplify::gen_1): For generic wrap all
1801         multi-result-use captures in a SAVE_EXPR.
1803 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
1805         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1806         (TARGET_SIMD_RDMA): New.
1808 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1810         * combine.c (subst): Do not return clobber of zero in widening mult
1811         case.  Just return x unchanged if it is a no-op substitution.
1813 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
1815         PR target/68416
1816         * config/i386/i386.h (enum reg_class): Add
1817         bounds registers to ALL_REGS.
1819 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
1821         PR tree-optimization/68128
1822         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1823         * gimplify.c: Include gimple-walk.h.
1824         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1825         (omp_notice_variable): Set flags to n->value if n already
1826         exists in target region, but we need to jump to do_outer.
1827         (omp_shared_to_firstprivate_optimizable_decl_p,
1828         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1829         functions.
1830         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1831         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1832         not modified in the body.  Call omp_mark_stores for outer
1833         contexts on OMP_CLAUSE_SHARED clauses if they could be written
1834         in the body or on OMP_CLAUSE_LASTPRIVATE.
1835         (gimplify_adjust_omp_clauses): Add body argument, call
1836         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1837         Set OMP_CLAUSE_SHARED_READONLY
1838         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1839         not modified in the body.  Call omp_mark_stores for outer
1840         contexts on OMP_CLAUSE_SHARED clauses if they could be written
1841         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1842         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1843         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1844         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1845         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1846         * tree-nested.c (convert_nonlocal_omp_clauses,
1847         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1848         non-local vars or local vars referenced from nested routines.
1849         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1850         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
1851         TREE_READONLY, don't call use_pointer_for_field with non-NULL
1852         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1854 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
1856         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1857         about signed left shift stronger and clarify the cases when they're
1858         broken.
1860 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1861             Bernd Schmidt  <bschmidt@redhat.com>
1863         PR rtl-optimization/67226
1864         * calls.c (store_one_arg): Take into account
1865         crtl->args.pretend_args_size when checking for overlap between
1866         arg->value and argblock + arg->locate.offset during sibcall
1867         optimization.
1869 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
1871         * config/aarch64/aarch64.md (cbranch<mode>4): Use
1872         aarch64_fp_compare_operand.
1873         (store_pairsf): Use aarch64_reg_or_fp_zero.
1874         (store_pairdf): Likewise.
1875         (cstore<mode>4): Use aarch64_fp_compare_operand.
1876         (cmov<mode>6): Likewise.
1877         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1879 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
1880             Sebastian Pop  <s.pop@samsung.com>
1882         PR tree-optimization/68453
1883         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1884         not redirect edges already pointing to their destination.
1885         (translate_isl_ast_node_for): Split edges after loops to create
1886         basic blocks for close phi nodes.  Save merge points at the end of
1887         a loop guard.
1888         (translate_isl_ast_node_if): Save merge points at the end of the
1889         if region.
1890         (add_close_phis_to_outer_loops): New.
1891         (add_close_phis_to_merge_points): New.
1892         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1893         (copy_bb_and_scalar_dependences): Do not split basic blocks on
1894         loop close phi locations.
1896 2015-11-25  Jan Hubicka  <jh@suse.cz>
1898         * ipa-visibility.c (cgraph_externally_visible_p,
1899         varpool_node::externally_visible_p): When doing incremental linking,
1900         hidden symbols may be still used later.
1901         (update_visibility_by_resolution_info): Do not drop weak during
1902         incremental link.
1903         (function_and_variable_visibility): Fix formating.
1904         * flag-types.h (lto_linker_output): Declare.
1905         * common.opt 9flag_incremental_link): New flag.
1907 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
1909         * config/rs6000/constraints.md (wb constraint): New constraint for
1910         ISA 3.0 d-form scalar addressing.
1912         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1913         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1914         Altivec registers.  Add wb constraint for Altivec registers with
1915         D-form addressing.  If we have ISA 3.0 d-form support, undo
1916         secondary reload support for using FPR registers if we want to do
1917         D-form addressing.
1918         (rs6000_debug_reg_global): Likewise.
1919         (rs6000_setup_reg_addr_masks): Likewise.
1920         (rs6000_init_hard_regno_mode_ok): Likewise.
1921         (rs6000_secondary_reload): Likewise.
1922         (rs6000_preferred_reload_class): Likewise.
1923         (rs6000_secondary_reload_class): Likewise.
1925         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1926         constraint.
1928         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1929         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1930         (f32_lm2): Likewise.
1931         (f32_li2): Likewise.
1932         (f32_sr2): Likewise.
1933         (f32_sm2): Likewise.
1934         (f32_si2): Likewise.
1935         (f64_p9): Likewise.
1936         (extendsfdf2_fpr): Likewise.
1937         (mov<mode>_hardfloat): Likewise.
1938         (mov<mode>_hardfloat32): Likewise.
1939         (mov<mode>_hardfloat64): Likewise.
1941         * doc/md.texi (RS/6000 constraints): Document wb constraint.
1942         Fixup we constraint documentation.
1944 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1946         * omp-low.c (pass_expand_omp_ssa::clone): New function.
1947         * passes.def: Add pass_oacc_kernels pass group.
1948         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1950 2015-11-25  Tom de Vries  <tom@codesourcery.com>
1952         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1953         Declare.
1954         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1955         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1956         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1957         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1959 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
1961         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1962         TV_IPA_LTO_OUTPUT): New.
1963         * lto-compress.c: Include timevar.h
1964         (lto_end_compression, lto_end_uncompression): Add timers.
1965         * langhooks.c: Include timevar.h.
1966         (lhd_append_data): Add timer.
1968 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
1970         * varasm.c (default_elf_asm_output_limited_string,
1971         default_elf_asm_output_ascii): Replace fprintf by putc.
1973 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
1975         PR rtl-optimization/67954
1976         * lra-constraints.c (curr_insn_transform): Add check on scratch
1977         pseudo when change class to NO_REGS.  Add an assert.
1979 2015-11-25  Nathan Sidwell  <nathan@acm.org>
1981         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1982         constraint is 'n'.
1983         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
1984         (nvptx_write_function_decl): Number args from 0.
1985         (nvptx_declare_function_name): Likewise.
1986         (nvptx_function_incoming_arg): Likewise.
1987         (nvptx_output_call_insn): Correct formatting.
1989 2015-11-25  David Sherwood  <david.sherwood@arm.com>
1991         * optabs.def: Add new optabs fmax_optab/fmin_optab.
1992         * internal-fn.def: Add new fmax/fmin internal functions.
1993         * doc/md.texi: Add fmin and fmax patterns.
1995 2015-11-25  Jason Merrill  <jason@redhat.com>
1997         PR c++/68385
1998         * tree.c (integer_zerop, integer_onep, integer_each_onep)
1999         (integer_all_onesp, integer_minus_onep, integer_pow2p)
2000         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2001         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2003 2015-11-25  Richard Biener  <rguenther@suse.de>
2005         PR middle-end/68528
2006         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2007         on stripped operands.
2009 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2011         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2012         (nvptx_declare_function_name): Move assignments next to register
2013         declarations, and process params here.
2015 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
2017         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2018         both the symbol and the "dot" symbol for function descriptors. Fix
2019         inversion for rename of symbols with dollar sign.
2021 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2023         * cfgloop.c (find_single_latch): New function, factored out of ...
2024         (flow_loops_find): ... here.
2025         (verify_loop_structure): Improve verification of loop->latch.
2026         * cfgloop.h (find_single_latch): Declare.
2027         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2029 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2031         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2032         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2033         (STARTFILE_SPEC): Use %(startfile_vtv).
2034         (ENDFILE_SPEC): Use %(endfile_vtv).
2035         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2036         ENDFILE_VTV_SPEC.
2038         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2040 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
2042         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2043         noce_can_store_speculate): Delete.
2044         (noce_process_if_block): Don't try to handle single MEM stores.
2045         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2046         * alias.c (memory_must_be_modified_in_insn_p): Delete.
2048 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2050         PR rtl-optimization/68435
2051         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2052         for conflicts between a, b and the set destinations.
2054 2015-11-25  Richard Biener  <rguenther@suse.de>
2056         PR tree-optimization/68517
2057         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2058         Properly handle zero-sized types.
2060 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2062         * ipa-inline-analysis.c: Include gimplify.h
2063         (set_cond_stmt_execution_predicate,
2064         set_switch_stmt_execution_predicate): Be sure to not leak locations
2065         to function body.
2067 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
2069         PR target/67089
2070         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2071         match_uaddsub_overflow): New functions.
2072         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2074 2015-11-25  Richard Biener  <rguenther@suse.de>
2076         PR tree-optimization/68492
2077         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2078         op from scalars after operand swapping.
2080 2015-11-25  Richard Biener  <rguenther@suse.de>
2082         PR tree-optimization/68502
2083         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2084         check that the step is a multiple of the type size.
2086 2015-11-24  Michael Collison  <michael.collison@linaro.org>
2088         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2089         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2090         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2092 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
2094         * frame-header-opt.c (gate): Check for optimize > 0.
2095         (has_inlined_assembly): New function.
2096         (needs_frame_header_p): Remove is_leaf_function check,
2097         add argument type check.
2098         (callees_functions_use_frame_header): Add is_leaf_function
2099         and has_inlined_assembly calls..
2100         (set_callers_may_not_allocate_frame): New function.
2101         (frame_header_opt): Add is_leaf_function call, add
2102         set_callers_may_not_allocate_frame call.
2103         * config/mips/mips.c (mips_compute_frame_info): Add check
2104         to see if callee saved regs can be put in frame header.
2105         (mips_expand_prologue): Add check to see if step1 is zero,
2106         fix cfa restores when using frame header to store regs.
2107         (mips_can_use_return_insn): Check to see if registers are
2108         stored in frame header.
2109         * config/mips/mips.h (machine_function): Add
2110         callers_may_not_allocate_frame and
2111         use_frame_header_for_callee_saved_regs fields.
2113 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2115         PR rtl-optimization/68520
2116         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2117         its bit was already set in BB_WITH.
2119 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2121         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2122         double check that type is main variant.
2123         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2124         variant.
2125         (verify_type_variant): Verify that variants have no
2126         TYPE_ALIAS_SET_KNOWN_P set
2127         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2128         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2129         only for main variants; stream TYPE_ALIAS_SET as a bit.
2130         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2131         accordingly.
2133 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2135         * tree.c (make_vector_type): Properly compute canonical type of the
2136         main variant.
2137         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2138         a main variant.
2140 2015-11-24  Nathan Sidwell  <nathan@acm.org>
2142         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2143         VOIDmode, don't alter incoming mode.
2144         (nvptx_split_reg_p): Delete.
2145         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2146         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2147         maybe_split_mode calls.
2148         (nvptx_print_operand): Use maybe_split_mode.
2150 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2152         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2153         only for types where LTO sets them.
2154         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2155         (make_vector_type): Likewise.
2156         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2157         * tree.h (canonical_type_used_p): New inline.
2158         * alias.c (get_alias_set): Handle structural equality for all
2159         types that pass canonical_type_used_p.
2160         (record_component_aliases): Look through all types with
2161         record_component_aliases for possible pointers; sanity check that
2162         the alias sets match.
2164 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2166         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2168 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2170         * tree.c (free_node): New function.
2171         (type_hash_canon): Use it.
2172         * tree.h (free_node): Declare.
2174 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
2175             Michael Meissner  <meissner@linux.vnet.ibm.com>
2177         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2178         (Fv2): New mode attribute to be used when ISA 2.07 instructions
2179         are used on SF values, and ISA 2.06 instructions on DF values.
2180         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2181         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2182         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2183         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2184         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2185         (fre<Fs>): Use <Fv2> instead of <Fv>.
2186         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2187         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2188         (xsrdpi<mode>): Add support for the lround function.
2189         (lround<mode>di2): Likewise.
2190         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2191         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2192         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2193         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2195 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2196             Sebastian Pop  <s.pop@samsung.com>
2198         PR tree-optimization/67984
2199         * graphite-isl-ast-to-gimple.c (is_constant): New.
2200         (get_rename): Call is_constant.
2201         (get_new_name): Same.
2203 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2204             Sebastian Pop  <s.pop@samsung.com>
2206         * graphite-dependences.c: Only include graphite.h.
2207         * graphite-isl-ast-to-gimple.c: Same.
2208         * graphite-optimize-isl.c: Same.
2209         * graphite-poly.c: Same.
2210         * graphite-scop-detection.c: Same.
2211         * graphite-sese-to-poly.c: Same.
2212         * graphite.c: Same.
2213         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2214         * graphite-poly.h: Same.
2215         * graphite-scop-detection.h: Same.
2216         * graphite.h: New.
2218 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
2220         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2221         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
2222         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2223         function already takes care of checking what it can emit.
2225 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2227         * doc/invoke.texi (-fpic): Add the AArch64 limit.
2228         (-fPIC): Add AArch64.
2230 2015-11-24  Tom de Vries  <tom@codesourcery.com>
2232         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2233         (pass_lim::execute): Allow to run outside pass_tree_loop.
2235 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
2237         * config/aarch64/aarch64.md (add<mode>3):
2238         Block early expansion into 2 add instructions.
2239         (add<mode>3_pluslong): New pattern to combine complex
2240         immediates into 2 additions.
2242 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2244         PR target/66217
2245         PR target/67677
2246         PR target/68332
2247         * config/rs6000/predicates.md (and_operand): Check that the operand
2248         is a const_int before calling rs6000_is_valid_and_mask.
2250 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2252         * config/aarch64/aarch64.md (*condjump): Rename to...
2253         (condjump): ... This.
2254         (*compare_condjump<mode>): New define_insn_and_split.
2255         (*compare_cstore<mode>_insn): Likewise.
2256         (*cstore<mode>_insn): Rename to...
2257         (cstore<mode>_insn): ... This.
2258         * config/aarch64/iterators.md (CMP): Handle ne code.
2259         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2261 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
2263         PR target/68497
2264         * config/i386/i386.c (output_387_binary_op): Fix assertion for
2265         -fno-checking case.
2267 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2269         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2270         (val_ssa_equiv_hash_traits::remove): Likewise.
2271         (pass_uncprop::execute): Adjust.
2273 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2275         * hash-map-traits.h (simple_hashmap_traits ::remove): call
2276         destructors on values that are being removed.
2277         * mem-stats.h (hash_map): Pass type of values to
2278         simple_hashmap_traits.
2279         * tree-sra.c (sra_deinitialize): Remove work around for hash
2280         maps not destructing values.
2281         * genmatch.c (sinfo_hashmap_traits): Adjust.
2282         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2284 2015-11-24  Richard Biener  <rguenther@suse.de>
2285             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2287         PR middle-end/68375
2288         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2289         bogus assertion.
2291 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
2293         PR target/68483
2294         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2295         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2296         returns false.
2297         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2298         whenever first is nelt or above.  Don't mask expected with
2299         2 * nelt - 1.
2301 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2303         PR c/68337
2304         * gimple-fold.c: Include ipa-chkp.h.
2305         (gimple_fold_builtin_memory_op): Don't fold call if we
2306         are going to instrument it and it may copy pointers.
2308 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
2309             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2311         PR rtl-optimization/68194
2312         PR rtl-optimization/68328
2313         PR rtl-optimization/68185
2314         * ree.c (combine_reaching_defs): Reject copy_needed case if
2315         copies_list is not empty.
2317 2015-11-24  Richard Biener  <rguenther@suse.de>
2319         PR middle-end/68221
2320         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2321         use mem_ref_offset.
2323 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2325         PR rtl-optimization/68381
2326         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2327         is poisoned.
2329 2015-11-23  Nick Clifton  <nickc@redhat.com>
2330             Jeff Law  <law@redhat.com>
2332         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2333         the source/dest of the target extension require a different number of
2334         hard registers.
2335         (combine_set_extension): Remove #if 0 code.
2337 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2338             Sebastian Pop  <s.pop@samsung.com>
2340         PR tree-optimization/68314
2341         * graphite-optimize-isl.c (optimize_isl): Do not call
2342         isl_union_map_is_equal.
2343         * graphite-poly.c (new_scop): Remove original_schedule.
2344         (free_scop): Same.
2345         * graphite-poly.h (struct scop): Same.
2346         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2347         Remove.
2348         (build_pbb_scattering_polyhedrons): Add back.
2349         (build_scop_minimal_scattering): Remove.
2350         (build_scop_scattering): Add back.
2351         (build_scop_original_schedule): Remove.
2352         (build_poly_scop): Revert to only call build_scop_scattering.
2354 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2355             Sebastian Pop  <s.pop@samsung.com>
2357         PR tree-optimization/68493
2358         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2359         missing early return when codegen_error is set.
2361 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2362             Sebastian Pop  <s.pop@samsung.com>
2364         PR tree-optimization/68279
2365         * graphite-poly.c (new_scop): Remove poly_scop_p.
2366         * graphite-poly.h (struct scop): Same.
2367         (build_poly_scop): Declare.
2368         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2369         (cleanup_loop_iter_dom): New.
2370         (build_loop_iteration_domains): Early return when scev analysis fails.
2371         (create_pw_aff_from_tree): Same.
2372         (add_condition_to_pbb): Same.
2373         (add_conditions_to_domain): Same.
2374         (add_conditions_to_constraints): Same.
2375         (build_scop_iteration_domain): Same.
2376         (build_poly_scop): Same.  Do not initialize poly_scop_p.
2377         * graphite-sese-to-poly.h: Remove.
2378         * graphite.c: Do not include graphite-sese-to-poly.h.
2379         (graphite_transform_loops): Stop before code generation when
2380         build_poly_scop fails.
2381         * sese.c (scalar_evolution_in_region): Add fixme note about scev
2382         analysis.
2384 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2385             Sebastian Pop  <s.pop@samsung.com>
2387         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2388         Remove call to update_ssa.
2389         * sese.c (sese_insert_phis_for_liveouts): Same.
2391 2015-11-23  Marek Polacek  <polacek@redhat.com>
2393         PR tree-optimization/68455
2394         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2395         extract_range_from_multiplicative_op_1 on symbolic ranges.
2397 2015-11-23  Richard Henderson  <rth@redhat.com>
2399         * optabs.def (uaddv4_optab, usubv4_optab): New.
2400         * internal-fn.c (expand_addsub_overflow): Use them.
2401         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2403         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2404         to reversed operands.
2405         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2406         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2407         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2408         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2409         (*add<SWI>3_cconly_overflow_2): New.
2410         (*add<SWI>3_cc_overflow_2): New.
2411         (*addsi3_zext_cc_overflow_2): New.
2413 2015-11-23  Richard Biener  <rguenther@suse.de>
2415         PR tree-optimization/68465
2416         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2417         Also record equalities from multiple predecessor blocks if
2418         only one non-backedge exists.
2420 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2422         PR target/68363
2423         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2424         that are not INSN_P.
2426 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
2428         * config/aarch64/aarch64-builtins.c
2429         (aarch64_gimple_fold_builtin): Fold FMULX.
2431 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
2433         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2434         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
2435         after GCC header files and before graphite header files.
2436         * graphite-dependences.c: Same.
2437         * graphite-isl-ast-to-gimple.c: Same.
2438         * graphite-optimize-isl.c: Same.
2439         * graphite-poly.c: Same.
2440         * graphite-scop-detection.c: Same.
2441         * graphite-sese-to-poly.c: Same.
2442         * graphite.c: Same.
2444 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
2445             Jiong Wang  <jiong.wang@arm.com>
2447         PR tree-optimization/68317
2448         PR tree-optimization/68326
2449         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2450         final min and max are not infinity.
2452 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2453             Richard Biener  <rguenther@suse.de>
2455         PR tree-optimization/68327
2456         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2457         compute vectype for non-relevant mask producers.
2458         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2459         relevance earlier.
2461 2015-11-23  Tom de Vries  <tom@codesourcery.com>
2463         PR tree-optimization/68460
2464         * tree-parloops.c (gather_scalar_reductions): Also call
2465         free_stmt_vec_info_vec if simple_loop_info == NULL.
2467 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
2469         * opts.c (finish_options): Allow -fsanitize-recover=address for
2470         userspace sanitization.
2471         * asan.c (asan_expand_check_ifn): Redefine recover_p.
2472         * doc/invoke.texi (fsanitize-recover): Update documentation.
2474 2015-11-23  Tom de Vries  <tom@codesourcery.com>
2476         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2478 2015-11-23  Richard Biener  <rguenther@suse.de>
2480         PR tree-optimization/68445
2481         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2482         two different strides.
2484 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2486         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2487         * config/s390/s390.c (s390_check_symref_alignment): Use new
2488         symref flags, early abort on wrong alignment
2489         (s390_secondary_reload): Use new symref flags.
2490         (s390_encode_section_info): Likewise.
2491         * config/s390/predicates.md: Likewise.
2493 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2495         PR target/68390
2496         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2497         for indirect function call.
2499 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
2501         * config/aarch64/aarch64-simd.md
2502         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2503         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2504         (*aarch64_mulx_elt_to_64v2df): Likewise.
2505         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2506         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2507         (vmulx_lane_f64): Likewise.
2508         (vmulxq_lane_f32): Refactored & moved.
2509         (vmulxq_lane_f64): Likewise.
2510         (vmulx_laneq_f32): New.
2511         (vmulx_laneq_f64): Likewise.
2512         (vmulxq_laneq_f32): Likewise.
2513         (vmulxq_laneq_f64): Likewise.
2514         (vmulxs_lane_f32): Likewise.
2515         (vmulxs_laneq_f32): Likewise.
2516         (vmulxd_lane_f64): Likewise.
2517         (vmulxd_laneq_f64): Likewise.
2519 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
2521         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2522         In LTO we do not compute TYPE_CANONICAL of pointers.
2523         (gimple_canonical_types_compatible_p): Improve coments; sanity check
2524         that pointers do not have canonical type that would make us believe
2525         they are different.
2526         * alias.c (get_alias_set): Do structural type equality on pointers;
2527         enable pointer path for LTO; also glob pointer to vector with pointer
2528         to vector element; glob pointers and references for LTO; do more strict
2529         sanity checking about build_pointer_type returning the canonical type
2530         which is also the main variant.
2531         (record_component_aliases): When component type is pointer and we
2532         do LTO; record void_type_node alias set.
2534 2015-11-21  Nathan Sidwell  <nathan@acm.org>
2536         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2538         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2539         leading blank line.
2540         (write_func_decl_from_insn): Likewise.
2541         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2542         (nvptx_file_end): Likewise.
2543         (nvptx_function_end): Undent output.
2544         (nvptx_expand_call): Fix formatting.
2545         (nvptx_output_call_insn): Indent output.
2546         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2547         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2549 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
2551         PR debug/66432
2552         * tree-inline.c (copy_debug_stmt): If
2553         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2554         in decl_debug_args, don't call remap_gimple_op_r on it.
2556 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
2558         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2559         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2560         Check that all record types are complete.
2561         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2562         compare alias sets for types w/o alias sets.
2564 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2566         * config/sparc/sparc.md (umulxhi_vis): Move around.
2567         (*umulxhi_sp64): Likewise.
2568         (umulxhi_v8plus): Likewise.
2569         (xmulx_vis): Likewise.
2570         (*xmulx_sp64): Likewise.
2571         (xmulx_v8plus): Likewise.
2572         (xmulxhi_vis): Likewise.
2573         (*xmulxhi_sp64): Likewise.
2574         (xmulxhi_v8plus): Likewise.
2576 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
2578         PR 62314
2579         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2580         (class layout): Update comment
2581         (layout::print_any_fixits): New method.
2582         (layout::move_to_column): New method.
2583         (diagnostic_show_locus): Add call to layout.print_any_fixits.
2585 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
2587         PR middle-end/68221
2588         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2589         has non-zero bias, subtract it in integer type instead of
2590         pointer plus of negated bias.
2592         PR middle-end/68339
2593         * omp-low.c (expand_simd_clones): Call node->get_body () before
2594         allocating stuff in GC.
2596 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
2598         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2600 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
2602         * config/aarch64/aarch64.md (predicated): Copy attribute from
2603         "arm.md".
2604         * config/arm/arm.md (predicated): Added description.
2606 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2608         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2609         for unaligned_access.
2610         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2611         from matching condition.
2612         (unaligned_loadhis): Likewise.
2613         (unaligned_loadhiu): Likewise.
2614         (unaligned_storesi): Likewise.
2615         (unaligned_storehi): Likewise.
2617 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2619         PR target/68149
2620         * config/arm/arm.md (unaligned_loaddi): Delete.
2621         (unaligned_storedi): Likewise.
2622         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2623         unaligned DImode memory ops.  Instead perform two back-to-back
2624         unaligned SImode ops.
2626 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
2627             James Norris  <jnorris@codesourcery.com>
2629         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2630         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2632 2015-11-20  Alan Hayward <alan.hayward@arm.com>
2634         PR tree-optimization/68413
2635         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2636         evolution base
2637         (vectorizable_reduction): Use cached base
2639 2015-11-20  Tom de Vries  <tom@codesourcery.com>
2641         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2642         dump-file string.
2643         (try_create_reduction_list): Same.  Fix typo in dump-file string.
2645 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2647         * doc/md.texi (Standard Names): Move entry for addptr3 around,
2648         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2649         glitch in entries for cbranch4 and jump.
2651 2015-11-20  Tom de Vries  <tom@codesourcery.com>
2653         PR tree-optimization/68373
2654         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2655         of ...
2656         (scev_const_prop): ... here.
2657         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2658         * tree-parloops.c (try_create_reduction_list): Call
2659         final_value_replacement_loop.
2661 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
2663         PR tree-optimization/52272
2664         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2665         (struct iv_common_cand_hasher): New struct.
2666         (iv_common_cand_hasher::hash): New function.
2667         (iv_common_cand_hasher::equal): New function.
2668         (struct ivopts_data): New fields, iv_common_cand_tab and
2669         iv_common_cands.
2670         (tree_ssa_iv_optimize_init): Initialize above fields.
2671         (record_common_cand, common_cand_cmp): New functions.
2672         (add_iv_candidate_derived_from_uses): New function.
2673         (add_iv_candidate_for_use): Record iv_common_cands derived from
2674         iv use in hash table, instead of adding candidates directly.
2675         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2676         (record_important_candidates): Add important candidates to iv uses'
2677         related_cands.  Always keep related_cands for future use.
2678         (try_add_cand_for): Use iv uses' related_cands.
2679         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2680         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2682 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2684         * config/s390/s390.md ("bswaphi2"): New pattern.
2686 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2688         * config/s390/s390.md (GPR1_REGNUM): New constant.
2689         ("*trunc<BFP:mode><DFP_ALL:mode>2")
2690         ("*trunc<DFP_ALL:mode><BFP:mode>2")
2691         ("trunc<BFP:mode><DFP_ALL:mode>2")
2692         ("trunc<DFP_ALL:mode><BFP:mode>2")
2693         ("*extend<BFP:mode><DFP_ALL:mode>2")
2694         ("*extend<DFP_ALL:mode><BFP:mode>2")
2695         ("extend<BFP:mode><DFP_ALL:mode>2")
2696         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2698 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2699             Sebastian Pop  <s.pop@samsung.com>
2701         PR tree-optimization/68428
2702         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2703         over basic blocks outside the scop.
2705 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2706             Sebastian Pop  <s.pop@samsung.com>
2708         PR tree-optimization/68341
2709         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2710         gcc_unreachable and safely fail codegen.
2711         (copy_loop_close_phi_args): Do not insert merge phis in a basic
2712         block with loop phi nodes.
2713         (edge_for_new_close_phis): New.
2714         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2716 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2718         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2719         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2720         (nvptx_declare_objec_name): Likewise.
2722 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
2724         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2725         (get_false_edge_from_guard_bb): Move...
2726         * sese.c (get_false_edge_from_guard_bb)
2727         (get_true_edge_from_guard_bb): ... here.
2729 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
2731         Revert
2732         2015-11-18  Alan Modra  <amodra@gmail.com>
2734         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2735         type-limits warning.
2738 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2740         * tree.h (desired_pro_or_demotion_p): New function.
2741         * tree-vrp.c (simplify_cond_using_ranges): Call it.
2743 2015-11-19  Michael Matz  <matz@suse.de>
2745         * fwprop.c (update_uses): Use flag_checking instead of
2746         gcc_checking_assert.
2748 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
2750         * doc/gty.texi (Support for inheritance): Fix missing
2751         parentheses in example.
2753 2015-11-19  Marek Polacek  <polacek@redhat.com>
2755         PR tree-optimization/68431
2756         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2758 2015-11-19  Nathan Sidwell  <nathan@acm.org>
2760         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2761         atomic_exchange<mode>): Input values can be immediates.
2763 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2765         PR lto/61313
2766         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2767         by the user.
2768         * configure: Regenerate.
2770 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
2772         PR target/68408
2773         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2774         (DTORS_SECTION_ASM_OP): Likewise.
2776 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2778         PR rtl-optimization/68376
2779         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2780         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2782 2015-11-19  Richard Biener  <rguenther@suse.de>
2784         PR middle-end/68117
2785         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2786         redirect_edge_var_map_destroy.
2788 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
2790         PR target/67770
2791         * config/i386/i386.md (simple_return): Disable if
2792         ix86_static_chain_on_stack is true.
2794 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
2796         PR bootstrap/68393
2797         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2798         destinations.
2800 2015-11-18  Jeff Law  <law@redhat.com>
2802         PR tree-optimization/68198
2803         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2804         between threading a multi-way branch and a thread path that contains
2805         a multi-way branch.  Disallow the case where a path contains a
2806         multi-way branch and does not thread a multi-way branch.
2807         (thread_through_all_blocks): Update comment.
2809 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
2811         PR c/65083
2812         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2813         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2814         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2815         functions before defining as macros.
2817 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2819         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2820         (nvptx_record_offload_symbol): Remove code compensating for lack
2821         of default dimension handling.
2822         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2824 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
2826         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2827         type to bool for early exit.
2828         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2829         in case of error.
2830         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2831         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2832         predecessor dominates the other.
2833         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2834         element is not found it returns -1.
2835         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2836         out early when codegen fails.
2837         (graphite_regenerate_ast_isl): Remove codegen region when pending
2838         phis could not be generated.
2840 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
2842         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2843         semicolon.
2844         (class translate_isl_ast_to_gimple): Indentation.
2845         (translate_pending_phi_nodes): Comment.
2846         (add_parameters_to_ivs_params): Moved from sese.c inside class
2847         translate_isl_ast_to_gimple.
2848         (get_max_schedule_dimensions): Same.
2849         (generate_isl_context): Same.
2850         (extend_schedule): Same.
2851         (generate_isl_schedule): Same.
2852         (set_options): Same.
2853         (scop_to_isl_ast): Same.
2854         (is_valid_rename): Same.
2855         (get_rename): Same.
2856         (get_rename_from_scev): Same.
2857         (get_def_bb_for_const): Same.
2858         (get_new_name): Same.
2859         (collect_all_ssa_names): Same.
2860         (copy_loop_phi_args): Same.
2861         (copy_loop_phi_nodes): Same.
2862         (copy_loop_close_phi_args): Same.
2863         (copy_loop_close_phi_nodes): Same.
2864         (copy_cond_phi_args): Same.
2865         (copy_cond_phi_nodes): Same.
2866         (graphite_copy_stmts_from_block): Same.
2867         (copy_bb_and_scalar_dependences): Same.
2868         (add_phi_arg_for_new_expr): Same.
2869         (rename_uses): Same.
2870         (set_rename): Same.
2871         (set_rename_for_each_def): Same.
2872         (gsi_insert_earliest): Same.
2873         (rename_all_uses): Same.
2874         (codegen_error_p): Same.
2875         (print_isl_ast_node): Same.
2876         (translate_isl_ast_for_loop): Call function codegen_error_p.
2877         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2878         (translate_isl_ast_node_user): Make nb_loops const and release
2879         iv_map before exit.
2880         (get_true_edge_from_guard_bb): Move all free-functions early.
2881         (get_false_edge_from_guard_bb): Same.
2882         (bb_contains_loop_close_phi_nodes): Same.
2883         (bb_contains_loop_phi_nodes): Same.
2884         (is_loop_closed_ssa_use):  Same.
2885         (number_of_phi_nodes): Same.
2886         (phi_uses_name): Same.
2887         (later_of_the_two): Same.
2888         (substitute_ssa_name):
2889         (get_edges): Same.
2890         (get_loc): Same.
2891         (get_loop_init_value): Same.
2892         (find_init_value): Same.
2893         (find_init_value_close_phi): Same.
2894         (ast_build_before_for): Same.
2895         (graphite_regenerate_ast_isl): Formatting changes.
2896         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2897         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2898         (set_rename): Same.
2899         (gsi_insert_earliest): Same.
2900         (collect_all_ssa_names): Same.
2901         (rename_all_uses): Same.
2902         (rename_uses): Same.
2903         (get_def_bb_for_const): Same.
2904         (copy_loop_phi_nodes): Same.
2905         (copy_loop_close_phi_args): Same.
2906         (copy_loop_close_phi_nodes): Same.
2907         (copy_cond_phi_args): Same.
2908         (copy_cond_phi_nodes): Same.
2909         (set_rename_for_each_def): Same.
2910         (graphite_copy_stmts_from_block): Same.
2911         (copy_bb_and_scalar_dependences): Same.
2912         (if_region_set_false_region): Same.
2913         (scev_analyzable_p): Same.
2914         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2916 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
2918         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2919         commit from r125920 for FreeBSD.
2921 2015-11-18  Jason Merrill  <jason@redhat.com>
2923         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2924         to be vecs of vecs.
2925         (add_finalizer): Split out from ggc_internal_alloc.
2926         (ggc_handle_finalizers): Run finalizers for the current depth.
2927         (init_ggc, ggc_pch_read): Reserve space for finalizers.
2929 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
2931         PR target/68410
2932         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2933         from || expression.
2935 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2937         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2938         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2939         and atmega328pb.
2940         * doc/avr-mmcu.texi: Regenerate.
2942 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2944         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2945         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2946         (struct bb_sese): New struct.
2947         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2948         (BB_GET_SESE, BB_SET_SESE): Define.
2949         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2950         (nvptx_find_sese): New.
2951         (nvptx_neuter_pars): Find SESE regions when optimizing.
2953 2015-11-18  Alan Modra  <amodra@gmail.com>
2955         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2956         type-limits warning.
2958 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2960         PR bootstrap/68406
2961         * hash-set.h (hash_set::traverse): Expand Key typedef.
2963 2015-11-18  Martin Liska  <mliska@suse.cz>
2965         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2966         options struct.
2968 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
2970         * config/nvptx/nvptx.c (global_lock_var): New.
2971         (nvptx_global_lock_addr): New.
2972         (nvptx_lockless_update): Recomment and adjust for clarity.
2973         (nvptx_lockfull_update): New.
2974         (nvptx_reduction_update): New.
2975         (nvptx_goacc_reduction_fini): Call it.
2977 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
2979         * regrename.h (struct du_head): Add target_data_1 and target_data_2
2980         fields.
2981         * regrename.c (create_new_chain): Clear entire struct after allocating.
2983         * config/i386/i386.opt (mmitigate-rop): New option.
2984         * doc/invoke.texi (mmitigate-rop): Document.
2985         * config/i386/i386.c: Include "regrename.h".
2986         (ix86_rop_should_change_byte_p, reg_encoded_number,
2987         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2988         static functions.
2989         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2990         * config/i386/i386.md (attr "modrm_class"): New.
2991         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2992         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2993         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2995 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
2997         PR target/68405
2998         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3000 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
3002         PR tree-optimization/68157
3003         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3004         pow_stmt or mul_stmt from stmt's uid.
3005         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3007 2015-11-18  Martin Liska  <mliska@suse.cz>
3009         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3011 2015-11-18  Martin Liska  <mliska@suse.cz>
3013         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3014         Fix GNU coding style.
3015         (find_def_preds): Use auto_vec.
3016         (destroy_predicate_vecs): Change signature of the function.
3017         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3018         new signature.
3019         (simplify_preds_4): Use destroy_predicate_vecs instread of
3020         just releasing preds vector.
3021         (normalize_preds): Likewise.
3022         (is_use_properly_guarded): Use new signature of
3023         destroy_predicate_vecs.
3024         (find_uninit_use): Likewise.
3026 2015-11-18  Richard Biener  <rguenther@suse.de>
3028         PR tree-optimization/67790
3029         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3030         IL rewrite for MINUS_EXPR reductions, rename back to ...
3031         (vect_is_simple_reduction): ... this, removing the wrapper.
3032         (vect_force_simple_reduction): Adjust.
3033         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3034         reductions and make use if reduc_index in all places.  For
3035         the final reduction of MINUS_EXPR use PLUS_EXPR.
3037 2015-11-18  Alan Modra  <amodra@gmail.com>
3039         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3040         to ld.
3041         * configure: Regenerate.
3043 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3045         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3047 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3049         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3050         uses of ssa_name with constant.
3052 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3054         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3055         something changed.
3057 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3059         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3060         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3061         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3063 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
3065         * regrename.c (regrename_find_superclass): New function, code moved
3066         from ...
3067         (rename_chains): ... here.  Call it.
3068         * regrename.h (regrename_find_superclass): Declare.
3070         * regrename.c (record_out_operands): Terminate earlyclobbered
3071         operands here.
3073         PR target/66785
3074         * regrename.c (record_operand_use): Keep track of failed operands
3075         and stop appending if we see any.
3076         * regrename.h (struct operand_rr_info): Add a failed field and shrink
3077         n_chains to short.
3079 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3081         PR 48568
3082         * doc/extend.texi (Common Function Attributes) [visibility]:
3083         Add cross-references to matching variable and type attributes.
3084         (Common Variable Attributes) [visibility]: Add missing entry.
3086 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3088         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3089         entries that map directly to optabs.
3091 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3093         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3094         entries that map directly to optabs.
3096 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3098         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3099         * internal-fn.c (direct_internal_fn_array): Update accordingly.
3100         * tree-vectorizer.h (vectorizable_function): Delete.
3101         * tree-vect-stmts.c: Include internal-fn.h.
3102         (vectorizable_internal_function): New function.
3103         (vectorizable_function): Inline into...
3104         (vectorizable_call): ...here.  Explicitly reject calls that read
3105         from or write to memory.  Try using an internal function before
3106         falling back on the old vectorizable_function behavior.
3108 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3110         * target.def (builtin_vectorized_function): Take a combined_fn (in
3111         the form of an unsigned int) rather than a function decl.
3112         (builtin_md_vectorized_function): New.
3113         * targhooks.h (default_builtin_vectorized_function): Replace the
3114         fndecl argument with an unsigned int.
3115         (default_builtin_md_vectorized_function): Declare.
3116         * targhooks.c (default_builtin_vectorized_function): Replace the
3117         fndecl argument with an unsigned int.
3118         (default_builtin_md_vectorized_function): New function.
3119         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3120         New hook.
3121         * doc/tm.texi: Regenerate.
3122         * tree-vect-stmts.c (vectorizable_function): Update call to
3123         builtin_vectorized_function, also passing internal functions.
3124         Call builtin_md_vectorized_function for target-specific builtins.
3125         * config/aarch64/aarch64-protos.h
3126         (aarch64_builtin_vectorized_function): Replace fndecl argument
3127         with an unsigned int.
3128         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3129         (aarch64_builtin_vectorized_function): Update after above changes.
3130         Use CASE_CFN_*.
3131         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3132         fndecl argument with an unsigned int.
3133         * config/arm/arm-builtins.c: Include case-cfn-macros.h
3134         (arm_builtin_vectorized_function): Update after above changes.
3135         Use CASE_CFN_*.
3136         * config/i386/i386.c: Include case-cfn-macros.h
3137         (ix86_veclib_handler): Take a combined_fn rather than a
3138         built_in_function.
3139         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
3140         mathfn_built_in rather than calling builtin_decl_implicit directly.
3141         (ix86_builtin_vectorized_function) Update after above changes.
3142         Use CASE_CFN_*.
3143         * config/rs6000/rs6000.c: Include case-cfn-macros.h
3144         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3145         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
3146         than calling builtin_decl_implicit directly.
3147         (rs6000_builtin_vectorized_function): Update after above changes.
3148         Use CASE_CFN_*.  Move BUILT_IN_MD to...
3149         (rs6000_builtin_md_vectorized_function): ...this new function.
3150         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3152 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3154         * tree-vect-patterns.c: Include internal-fn.h.
3155         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3157 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3159         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3160         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3162 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3164         * builtins.c (expand_errno_check, expand_builtin_mathfn)
3165         (expand_builtin_mathfn_2): Delete.
3166         (expand_builtin): Remove handling of functions with
3167         internal function equivalents.
3168         * internal-fn.def (SET_EDOM): New internal function.
3169         * internal-fn.h (set_edom_supported_p): Declare.
3170         * internal-fn.c (expand_SET_EDOM): New function.
3171         (set_edom_supported_p): Likewise.
3172         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3173         Rewrite comment at head of file.
3174         (is_call_dce_candidate): Rename to...
3175         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
3176         or gimple_call_builtin_p here.
3177         (edom_only_function): New function.
3178         (shrink_wrap_one_built_in_call_with_conds): New function, split out
3179         from...
3180         (shrink_wrap_one_built_in_call): ...here.
3181         (can_use_internal_fn, use_internal_fn): New functions.
3182         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3183         for calls that have an lhs.
3184         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3185         (pass_call_cdce::execute): Skip blocks that are optimized for size.
3186         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
3187         calls with an lhs.
3188         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3189         at -O and above.
3191 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3193         * builtins.h (called_as_built_in): Declare.
3194         * builtins.c (called_as_built_in): Make external.
3195         * internal-fn.h (expand_internal_call): Define a variant that
3196         specifies the internal function explicitly.
3197         * internal-fn.c (expand_load_lanes_optab_fn)
3198         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3199         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3200         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3201         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3202         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3203         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3204         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3205         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3206         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3207         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3208         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3209         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3210         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3211         argument.
3212         (internal_fn_expanders): Update prototype.
3213         (expand_internal_call): Define a variant that specifies the
3214         internal function explicitly. Use it to implement the previous
3215         interface.
3216         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3217         functions as calls to internal functions.
3219 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3221         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3222         (generated_files): Likewise.
3223         (s-cfn-operators, cfn-operators.pd): New rules.
3224         (s-match): Depend on cfn-operators.pd.
3225         * gencfn-macros.c: Expand comment to describe -o behavior.
3226         (print_define_operator_list): New function.
3227         (main): Accept -o.  Call print_define_operator_list.
3228         * genmatch.c (main): Add the current directory to the include path.
3229         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
3230         instead.
3232 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3234         * doc/match-and-simplify.texi: Document the "null" identifier.
3235         * genmatch.c (id_base::NULL_ID): New kind.
3236         (null_id): New variable.
3237         (get_operator): Add a parameter that says whether null identifiers
3238         are allowed.
3239         (contains_id): New function.
3240         (lower_for): Skip substitutions that would have a null_id in
3241         either the match or the result.
3242         (parser::parse_for): Allow the null identifier to be used.
3243         (parser::parse_operator_list): Likewise.
3244         (main): Initialize null_id.
3246 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3248         * match.pd: Use HYPOT and COS rather than hypot and cos.
3249         Use CASE_CFN_* macros.  Guard log/exp folds with
3250         SCALAR_FLOAT_TYPE_P.
3251         * genmatch.c (internal_fn): New enum.
3252         (fn_id::fn): Change to an unsigned int.
3253         (fn_id::fn_id): Accept internal_fn too.
3254         (add_builtin): Rename to...
3255         (add_function): ...this and turn into a template.
3256         (get_operator): Only try one variation if the original name fails.
3257         Only add _EXPR if the original name was all lower case.
3258         Try converting internal and built-in function names to their
3259         CFN equivalents.
3260         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3261         (dt_simplify::gen_1): Likewise.
3262         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3263         and get_call_combined_fn for generic.
3264         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3265         (decision_tree::gen): Likewise.
3266         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3267         Use add_function rather than add_builtin.  Register internal
3268         functions too.
3269         * generic-match-head.c: Include case-cfn-macros.h.
3270         * gimple-fold.c (replace_stmt_with_simplification): Use
3271         gimple_call_combined_fn to test whether we can keep an
3272         existing call.
3273         * gimple-match.h (code_helper): Replace built_in_function
3274         with combined_fn.
3275         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3276         and case-fn-macros.h.
3277         (gimple_resimplify1): Use fold_const_call.
3278         (gimple_resimplify2, gimple_resimplify3): Likewise.
3279         (build_call_internal, build_call): New functions.
3280         (maybe_push_res_to_seq): Use them.
3281         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
3282         rather than a built-in function.
3283         * tree.h (build_call_expr_internal_loc): Declare.
3284         (maybe_build_call_expr_loc): Likewise.
3285         * tree.c (build_call_expr_internal_loc_array): New function.
3286         (maybe_build_call_expr_loc): Likewise.
3288 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3290         * builtins.h (mathfn_built_in): Add a variant that takes
3291         a combined_fn.
3292         * builtins.c: Include case-cfn-macros.h.
3293         (CASE_MATHFN): Use CASE_CFN_*.
3294         (CASE_MATHFN_REENT): Use CFN_ codes.
3295         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3296         argument with a combined_fn.
3297         (mathfn_built_in): Add a variant that takes a combined_fn.
3298         (expand_builtin_int_roundingfn_2): Update callers accordingly.
3299         (fold_builtin_sincos, fold_builtin_classify): Likewise.
3301 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3303         * tree-vect-patterns.c: Include case-cfn-macros.h.
3304         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3306 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3308         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3309         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3310         (pass_cse_sincos::execute): Likewise.
3312 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3314         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3315         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3316         (decrement_power, acceptable_pow_call): Likewise.
3317         (attempt_builtin_copysign): Likewise.
3319 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3321         * tree-vrp.c: Include case-cfn-macros.h.
3322         (extract_range_basic): Switch on combined_fn rather than handling
3323         built-in functions and internal functions separately.
3325 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3327         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3328         than a built_in_function.
3329         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3330         a function decl.
3331         (integer_valued_real_call_p): Likewise.
3332         * fold-const.c: Include case-cfn-macros.h
3333         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3334         (negate_expr_p): Update accordingly.
3335         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3336         a function decl.
3337         (integer_valued_real_call_p): Likewise.
3338         (tree_invalid_nonnegative_warnv_p): Update accordingly.
3339         (integer_valued_real_p): Likewise.
3340         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3341         to tree_call_nonnegative_warnv_p.
3342         (gimple_call_integer_valued_real_p): Likewise
3343         integer_valued_real_call_p.
3344         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3345         (backprop::process_builtin_call_use): Extend to combined_fn.
3346         (strip_sign_op_1): Likewise.
3347         (backprop::process_use): Don't check for built-in calls here.
3348         (backprop::execute): Likewise.
3349         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3351 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3353         * fold-const-call.h (fold_const_call): Replace built_in_function
3354         arguments with combined_fn arguments.
3355         * fold-const-call.c: Include case-cfn-macros.h.
3356         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3357         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3358         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3359         built_in_function arguments with combined_fn arguments.
3360         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3361         (fold_builtin_3): Update calls to fold_const_call.
3363 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3365         * Makefile.in (HASH_TABLE_H): Add GGC_H.
3366         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3367         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3368         (build/gencfn-macros$(build_exeext): New rules.
3369         (genprogerr): Add cfn-macros.
3370         * hash-set.h (hash_set): Use the traits value_type as the key.
3371         * gencfn-macros.c: New file.
3373 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3375         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3376         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3377         * builtins.c (associated_internal_fn): Handle them.
3379 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3381         * builtins.h (associated_internal_fn): Declare.
3382         (replacement_internal_fn): Likewise.
3383         * builtins.c: Include internal-fn.h
3384         (associated_internal_fn, replacement_internal_fn): New functions.
3385         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3386         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3387         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3388         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3389         (LDEXP): New functions.
3390         * internal-fn.c: Include recog.h.
3391         (unary_direct, binary_direct): New macros.
3392         (expand_direct_optab_fn): New function.
3393         (expand_unary_optab_fn): New macro.
3394         (expand_binary_optab_fn): Likewise.
3395         (direct_unary_optab_supported_p): Likewise.
3396         (direct_binary_optab_supported_p): Likewise.
3398 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3400         * coretypes.h (tree_pair): New type.
3401         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
3402         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3403         * internal-fn.h (direct_internal_fn_info): New structure.
3404         (direct_internal_fn_array): Declare.
3405         (direct_internal_fn_p, direct_internal_fn): New functions.
3406         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3407         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3408         (mask_store_direct, store_lanes_direct): New macros.
3409         (direct_internal_fn_array) New array.
3410         (get_multi_vector_move): Return the optab handler without asserting
3411         that it is available.
3412         (expand_LOAD_LANES): Rename to...
3413         (expand_load_lanes_optab_fn): ...this and add an optab argument.
3414         (expand_STORE_LANES): Rename to...
3415         (expand_store_lanes_optab_fn): ...this and add an optab argument.
3416         (expand_MASK_LOAD): Rename to...
3417         (expand_mask_load_optab_fn): ...this and add an optab argument.
3418         (expand_MASK_STORE): Rename to...
3419         (expand_mask_store_optab_fn): ...this and add an optab argument.
3420         (direct_internal_fn_types, direct_optab_supported_p)
3421         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3422         (direct_internal_fn_supported_p): New functions.
3423         (direct_mask_load_optab_supported_p): New macro.
3424         (direct_load_lanes_optab_supported_p): Likewise.
3425         (direct_mask_store_optab_supported_p): Likewise.
3426         (direct_store_lanes_optab_supported_p): Likewise.
3428 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3430         * tree-core.h (internal_fn): Move immediately after the definition
3431         of built_in_function.
3432         (combined_fn): New enum.
3433         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3434         (internal_fn_p, as_internal_fn): New functions.
3435         (get_call_combined_fn, combined_fn_name): Declare.
3436         * tree.c (get_call_combined_fn): New function.
3437         (combined_fn_name): Likewise.
3438         * gimple.h (gimple_call_combined_fn): Declare.
3439         * gimple.c (gimple_call_combined_fn): New function.
3441 2015-11-17  Martin Sebor  <msebor@redhat.com>
3443         PR c++/68308
3444         * cp/init.c (build_new_1): Check for expression constness
3445         the right way.
3447 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3449         PR target/53587
3450         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3451         option list.
3452         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
3453         discussion of the Microsoft structure layout details here from
3454         its former home in extend.texi.
3455         * doc/extend.texi (x86 Variable Attributes): Replace detailed
3456         discussion with pointer to its new location.  Add cross-reference
3457         to corresponding type attributes.
3458         (x86 Type Attributes): Add cross-references to command-line options
3459         and variable attributes.
3461 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3463         PR middle-end/68134
3464         * targhooks.c (default_get_mask_mode): Filter out
3465         scalar modes returned by mode_for_vector.
3467 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3469         PR target/68143
3470         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3471         offset from dstbase and use it appropriately in
3472         adjust_automodify_address.
3473         (arm_block_set_aligned_vect): Likewise.
3475 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
3477         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3478         (MULTILIB_DIRNAMES): Adjust accordingly.
3480 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
3482         * config/aarch64/aarch64-cores.def (cortex-a35): New.
3483         * config/aarch64/aarch64.c (cortexa35_tunings): New.
3484         * config/aarch64/aarch64-tune.md: Regenerate.
3485         * doc/invoke.texi (-mcpu): Add Cortex-A35
3487 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
3489         PR target/68263
3490         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3491         to 32 for IAMCU.
3492         * config/i386/sse.md (*mov<mode>_internal): Always enable
3493         AVX and SSE unaligned moves for IAMCU.
3495 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
3497         * tree-if-conv.c: Include varasm.h
3498         (ref_DR_map): Define.
3499         (baseref_DR_map): Like wise
3500         (struct ifc_dr): Add new tree predicate field.
3501         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3502         (memrefs_read_or_written_unconditionally): Remove.
3503         (write_memrefs_written_at_least_once): Remove.
3504         (ifcvt_memrefs_wont_trap): Use hash maps to query
3505         unconditional read/written information.
3506         (if_convertible_loop_p_1):  Initialize hash maps and predicates
3507         before hashing data references and delete hashmaps at the end.
3509 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
3511         PR 56036
3512         * doc/invoke.texi (Optimize Options): Move @end table to the right
3513         place.
3515 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
3517         PR 65129
3518         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3519         return value.
3521 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
3523         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3524         128-bit types, just types that fit in a single vector.
3525         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3527 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
3529         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3530         in the user documentation.
3531         (define_peephole2, define_split): Similarly.
3533 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3535         * lto-streamer-out.c (write_global_references): Adjust integer type.
3536         (lto_output_decl_state_refs): Likewise.
3538 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3540         * config/arm/arm-cores.def (cortex-a35): New.
3541         * config/arm/arm.c (arm_cortex_a35_tune): New.
3542         * config/arm/arm-tables.opt: Regenerate.
3543         * config/arm/arm-tune.md: Regenerate.
3544         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3545         * config/arm/t-aprofile: Likewise.
3546         * doc/invoke.texi (-mcpu): Likewise.
3548 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
3550         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3551         and qdf24xx and xgene1 to match -march=armv8-a.
3553 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3555         PR rtl-optimization/68330
3556         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3557         of LSHIFTRT by a non-zero constant integer.
3559 2015-11-16  Richard Biener  <rguenther@suse.de>
3561         PR tree-optimization/68306
3562         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3563         bogus copying from verify_data_ref_alignment and use continue
3564         instead of return.
3566 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
3567             Kaz Kojima  <kkojima@gcc.gnu.org>
3569         PR target/68277
3570         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3571         operands[2].
3572         (*addsi3): Add another insn_and_split variant for reload.
3574 2015-11-16  Richard Biener  <rguenther@suse.de>
3576         PR middle-end/68117
3577         * cfgexpand.c (pass_expand::execute): Destroy the edge
3578         redirection var map before setting RTL CFG hooks.
3580 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
3582         * config/i386/sse.md (reduc_splus_v8df): Rename to...
3583         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3585         (reduc_splus_v4df): Rename to...
3586         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3588         (reduc_splus_v2df): Rename to...
3589         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3591         (reduc_splus_v16sf): Rename to...
3592         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3594         (reduc_splus_v8sf): Rename to...
3595         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3597         (reduc_splus_v4sf): Rename to...
3598         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3600         (reduc_<code>_<mode>, all 3 variants): Rename each to...
3601         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3603         (reduc_umin_v8hf): Rename to...
3604         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3606 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
3608         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3609         without additional conditions.
3610         * doc/extend.texi (@item simd): New.
3612 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3614         * passes.c (first_pass_instance): Remove variable.
3615         (execute_todo): Remove setting of first_pass_instance.
3616         * tree-pass.h (first_pass_instance): Remove declaration.
3618 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3620         * passes.def: Add arg to pass_ccp pass instantiation.
3621         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
3622         instead of first_pass_instance.
3623         (do_ssa_ccp): Add and handle param nonzero_p.
3624         (pass_ccp::pass_ccp): Initialize nonzero_p.
3625         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
3626         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3627         (pass_ccp::nonzero_p): New private member.
3629 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3631         * passes.def: Add arg to pass_object_sizes pass instantiation.
3632         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3633         insert_min_max_p.
3634         (pass_object_sizes::set_pass_param): New member function.  Set
3635         insert_min_max_p.
3636         (pass_object_sizes::insert_min_max_p): New private member.
3637         (pass_object_sizes::execute): Use insert_min_max_p instead of
3638         first_pass_instance.
3640 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3642         * passes.def: Add arg to pass_dominator pass instantiation.
3643         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3644         of comment.
3645         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3646         may_peel_loop_headers_p.
3647         (pass_dominator::set_pass_param): New member function.  Set
3648         may_peel_loop_headers_p.
3649         (pass_dominator::may_peel_loop_headers_p): New private member.
3650         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3651         first_pass_instance.
3653 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3655         * passes.def: Add arg to pass_reassoc pass instantiation.
3656         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3657         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3658         of first_pass_instance.
3659         (execute_reassoc): Add and handle insert_powi_p parameter.
3660         (pass_reassoc::insert_powi_p): New private member.
3661         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3662         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
3663         (pass_reassoc::execute): Call execute_reassoc with extra arg.
3665 2015-11-16  Tom de Vries  <tom@codesourcery.com>
3667         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3668         * gen-pass-instances.awk (handle_line): Same.
3669         * pass_manager.h (class pass_manager): Define and undefine
3670         NEXT_PASS_WITH_ARG.
3671         * passes.c (opt_pass::set_pass_param): New function.
3672         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3673         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3674         * tree-pass.h (gimple_opt::set_pass_param): Declare.
3675         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3676         warn_array_bounds_p parameter.
3677         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3678         (pass_vrp::set_pass_param): New function.
3679         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3680         (pass_vrp::warn_array_bounds_p): New private member.
3682 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3684         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3685         (output_probe_stack_range): Rotate the loop and simplify.
3687 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3689         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3690         (output_probe_stack_range): Rotate the loop and simplify.
3692 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3694         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3695         an lea instruction when possible.
3696         (output_adjust_stack_and_probe): Rotate the loop and simplify.
3697         (ix86_emit_probe_stack_range): Adjust.
3698         (output_probe_stack_range): Rotate the loop and simplify.
3700 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3702         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3703         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3704         with appropriate pragma GCC target.
3706 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3708         PR target/65837
3709         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3710         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3712 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
3714         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3715         (cortexa57_tunings): Use it.
3717 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3719         PR target/65837
3720         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3721         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3722         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3723         undefine __ARM_FP.
3724         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3725         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3726         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3727         * doc/extend.texi (-mfpu=): Describe attribute.
3729 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3731         PR target/65837
3732         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3733         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3734         arm_init_neon_builtins.
3735         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3736         (arm_init_neon_builtins_internal)
3737         (arm_init_crypto_builtins_internal):
3738         Test and set neon_set_p, neon_crypto_set_p.
3739         (neon_set_p, neon_crypto_set_p): New static booleans.
3741 2015-11-16  Christian Bruel  <christian.bruel@st.com>
3743         PR target/65837
3744         * config/arm/arm.c (arm_fpu_desc): Remove.
3745         (all_fpus): Make global.
3746         (arm_option_override): Use FPU TARGET accessors.
3747         (arm_declare_function_name): Likewise.
3748         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3749         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3750         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3751         (TARGET_NEON): Likewise.
3752         (all_fpus): Declare extern.
3753         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3754         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3756 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3758         PR middle-end/68366
3759         * sdbout.c: Include emit-rtl.h and function.h.
3761 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
3763         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3764         Remove support for FreeBSD 5 and earlier.
3766 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3768         * configure: Regenerate.
3769         * configure.ac: Always define ENABLE_OFFLOADING.
3770         * cgraph.c (cgraph_node::create): Adjust.
3771         * gcc.c (process_command): Likewise.
3772         * omp-low.c (create_omp_child_function): Likewise.
3773         (expand_omp_target): Likewise.
3774         * varpool.c (varpool_node::get_create): Likewise.
3776 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3778         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3779         * df-scan.c (df_get_exit_block_use_set): Adjust.
3780         * except.c (expand_eh_return): Likewise.
3782 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3784         * config/i386/i386.h (TARGET_PECOFF): Remove define.
3785         * defaults.h (TARGET_PECOFF): New default definition.
3786         * varasm.c (handle_vtv_comdat_section): Adjust.
3788 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3790         * defaults.h: New definition of SDB_DEBUGGING_INFO.
3791         * doc/tm.texi: Regenerate.
3792         * doc/tm.texi.in: Adjust.
3793         * final.c (rest_of_clean_state): Remove check if
3794         SDB_DEBUGGING_INFO is defined.
3795         * function.c (number_blocks): Likewise.
3796         * output.h: Likewise.
3797         * sdbout.c: Likewise.
3798         * toplev.c (process_options): Likewise.
3800 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3802         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3803         (enum sdb_masks): Likewise.
3804         * sdbout.c (plain_type_1): Likewise.
3805         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3807 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
3809         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3810         internal calls - 0 if ordered simd and 1 for ordered threads simd.
3811         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3812         argument is 1, replace it with GOMP_ordered_* call instead of removing
3813         it.
3815 2015-11-13  Rich Felker <dalias@libc.org>
3817         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3818         address loading hack for FDPIC targets.
3820 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
3821             Jeff Law  <law@redhat.com>
3823         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3824         * common.opt (-fsplit-paths): New flag controlling path splitting.
3825         * doc/invoke.texi (fsplit-paths): Document.
3826         * opts.c (default_options_table): Add -fsplit-paths to -O2.
3827         * passes.def: Add split_paths pass.
3828         * timevar.def (TV_SPLIT_PATHS): New timevar.
3829         * tracer.c: Include "tracer.h"
3830         (ignore_bb_p): No longer static.
3831         (transform_duplicate): New function, broken out of tail_duplicate.
3832         (tail_duplicate): Use transform_duplicate.
3833         * tracer.h (ignore_bb_p): Declare
3834         (transform_duplicate): Likewise.
3835         * tree-pass.h (make_pass_split_paths): Declare.
3836         * gimple-ssa-split-paths.c: New file.
3838 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
3839             Marek Polacek  <polacek@redhat.com>
3840             Jason Merrill  <jason@redhat.com>
3842         * convert.c (maybe_fold_build1_loc): New.
3843         (maybe_fold_build2_loc): New.
3844         (convert_to_pointer_1): Split out from convert_to_pointer.
3845         (convert_to_pointer_nofold): New.
3846         (convert_to_real_1): Split out from convert_to_real.
3847         (convert_to_real_nofold): New.
3848         (convert_to_integer_1): Split out from convert_to_integer.
3849         (convert_to_integer_nofold): New.
3850         (convert_to_complex_1): Split out from convert_to_complex.
3851         (convert_to_complex_nofold): New.
3852         * convert.h: Declare new functions.
3853         * tree-complex.c (create_one_component_var): Break up line to
3854         avoid sequence point issues.
3856 2015-11-13  Jason Merrill  <jason@redhat.com>
3858         * fold-const.c (fold_convert_const): Fold changing cv-quals on
3859         VECTOR_CST.
3861         * hash-map.h (hash_map::empty): New.
3863 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
3865         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3866         (oacc_loop_fixed_partitions): Correct return type to bool.
3867         (oacc_loop_auto_partitions): New.
3868         (oacc_loop_partition): Take mask argument, call
3869         oacc_loop_auto_partitions.
3870         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3872 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
3874         * config/rs6000/constraints.md (we constraint): New constraint for
3875         64-bit power9 vector support.
3876         (wL constraint): New constraint for the element in a vector that
3877         can be addressed by the MFVSRLD instruction.
3879         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3880         declaration.
3881         (convert_int_to_float128): Likewise.
3882         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3883         hardware support for IEEE 128-bit floating point.
3884         (rs6000_expand_float128_convert): Likewise.
3885         (convert_float128_to_int): Likewise.
3886         (convert_int_to_float128): Likewise.
3888         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3889         ISA 3.0 hardware IEEE 128-bit floating point.
3890         (UNSPEC_IEEE128_MOVE): Likewise.
3891         (UNSPEC_IEEE128_CONVERT): Likewise.
3892         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3893         (Ff): Add support for DImode.
3894         (Fv): Likewise.
3895         (any_fix code iterator): New and updated iterators for IEEE
3896         128-bit floating point hardware support.
3897         (any_float code iterator): Likewise.
3898         (s code attribute): Likewise.
3899         (su code attribute): Likewise.
3900         (az code attribute): Likewise.
3901         (uns code attribute): Likewise.
3902         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3903         floating point hardware support.
3904         (abs<mode>2, FLOAT128 iterator): Likewise.
3905         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3906         floating point hardware.
3907         (sub<mode>3, IEEE128 iterator): Likewise.
3908         (mul<mode>3, IEEE128 iterator): Likewise.
3909         (div<mode>3, IEEE128 iterator): Likewise.
3910         (copysign<mode>3, IEEE128 iterator): Likewise.
3911         (sqrt<mode>2, IEEE128 iterator): Likewise.
3912         (neg<mode>2, IEEE128 iterator): Likewise.
3913         (abs<mode>2, IEEE128 iterator): Likewise.
3914         (nabs<mode>2, IEEE128 iterator): Likewise.
3915         (fma<mode>4_hw, IEEE128 iterator): Likewise.
3916         (fms<mode>4_hw, IEEE128 iterator): Likewise.
3917         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3918         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3919         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3920         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3921         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3922         (fix_fixuns code attribute): Likewise.
3923         (float_floatuns code attribute): Likewise.
3924         (fix<uns>_<mode>si2_hw): Likewise.
3925         (fix<uns>_<mode>di2_hw): Likewise.
3926         (float<uns>_<mode>si2_hw): Likewise.
3927         (float<uns>_<mode>di2_hw): Likewise.
3928         (xscvqp<su>wz_<mode>): Likewise.
3929         (xscvqp<su>dz_<mode>): Likewise.
3930         (xscv<su>dqp_<mode): Likewise.
3931         (ieee128_mfvsrd): Likewise.
3932         (ieee128_mfvsrwz): Likewise.
3933         (ieee128_mtvsrw): Likewise.
3934         (ieee128_mtvsrd): Likewise.
3935         (trunc<mode>df2_odd): Likewise.
3936         (cmp<mode>_h): Likewise.
3937         (128-bit GPR splitters): Don't split a 128-bit move that is a
3938         direct move between GPR and vector registers using ISA 3.0 direct
3939         move instructions.
3940         (maddld4): Add support for the ISA 3.0 integer multiply-add
3941         instruction.
3943         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3944         debugging.
3945         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3946         constraint.  Disable the VSX<->GPR direct move helpers if we have
3947         the MFVSRLD and MTVSRDD instructions.
3948         (rs6000_secondary_reload_simple_move): Add support for doing
3949         vector direct moves directly without additional scratch registers
3950         if we have ISA 3.0 instructions.
3951         (rs6000_secondary_reload_direct_move): Update comments.
3952         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3953         instructions.
3955         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3956         direct move instructions.
3957         (vsx_movti_64bit): Likewise.
3958         (vsx_extract_<mode>): Likewise.
3960         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3961         macros for ISA 3.0 direct move instructions.
3962         (TARGET_DIRECT_MOVE_128): Likewise.
3963         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3964         instruction.
3966         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3967         constraints.  Update wa documentation to say not to use %x<n> on
3968         instructions that only take Altivec registers.
3970 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
3972         * Makefile.in (OBJS): Add gcc-rich-location.o.
3973         * diagnostic.c (diagnostic_append_note): Pass line_table to
3974         rich_location ctor.
3975         (emit_diagnostic): Likewise.
3976         (inform): Likewise.
3977         (inform_n): Likewise.
3978         (warning): Likewise.
3979         (warning_at): Likewise.
3980         (warning_n): Likewise.
3981         (pedwarn): Likewise.
3982         (permerror): Likewise.
3983         (error): Likewise.
3984         (error_n): Likewise.
3985         (error_at): Likewise.
3986         (sorry): Likewise.
3987         (fatal_error): Likewise.
3988         (internal_error): Likewise.
3989         (internal_error_no_backtrace): Likewise.
3990         (source_range::debug): Likewise.
3991         * gcc-rich-location.c: New file.
3992         * gcc-rich-location.h: New file.
3993         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3994         (warning_at): Likewise.
3995         * gimple.h (gimple_set_block): Use set_block function.
3996         * input.c (dump_line_table_statistics): Dump stats on how many
3997         ranges were optimized vs how many needed ad-hoc table.
3998         (write_digit_row): Add "map" param; use its range_bits
3999         to calculate the per-character offset.
4000         (dump_location_info): Print the range and column bits for each
4001         ordinary map.  Use the range bits to calculate the per-character
4002         offset.  Pass the map as a new param to the various calls to
4003         write_digit_row.  Eliminate uses of
4004         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4005         * print-tree.c (print_node): Print any source range information.
4006         * rtl-error.c (diagnostic_for_asm): Likewise.
4007         * toplev.c (general_init): Initialize line_table's
4008         default_range_bits.
4009         * tree-cfg.c (move_block_to_fn): Likewise.
4010         (move_block_to_fn): Likewise.
4011         * tree-inline.c (copy_phis_for_bb): Likewise.
4012         * tree.c (tree_set_block): Likewise.
4013         (get_pure_location): New function.
4014         (set_source_range): New functions.
4015         (set_block): New function.
4016         (set_source_range): New functions.
4017         * tree.h (CAN_HAVE_RANGE_P): New.
4018         (EXPR_LOCATION_RANGE): New.
4019         (EXPR_HAS_RANGE): New.
4020         (get_expr_source_range): New inline function.
4021         (DECL_LOCATION_RANGE): New.
4022         (set_source_range): New decls.
4023         (get_decl_source_range): New inline function.
4025 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4027         PR tree-optimization/67682
4028         * tree-vect-slp.c (vect_split_slp_store_group): New.
4029         (vect_analyze_slp_instance): During basic block SLP, recurse on
4030         subgroups if vect_build_slp_tree fails after 1st vector.
4032 2015-11-13  Christian Bruel  <christian.bruel@st.com>
4034         PR target/65837
4035         * config/arm/arm.c (arm_option_override): Move NEON check...
4036         (arm_option_check_internal): here
4037         (arm_file_start): Move .fpu print...
4038         (arm_declare_function_name): here
4039         (arm_option_print): Dump current fpu name.
4040         * config/arm/arm.opt (arm_fpu_index): Mark Save.
4042 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
4043             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4045         * combine.c (subst): Don't substitute or simplify when
4046         handling register-wise widening multiply.
4047         (force_to_mode): Likewise.
4049 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4051         PR tree-optimization/68264
4052         * tree-call-cdce.c (gen_one_condition): Update commentary.
4053         (gen_conditions_for_pow_int_base): Invert the sense of the tests
4054         passed to gen_one_condition.
4055         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
4056         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4057         using EDGE_FALSE_VALUE for edges to the call block and
4058         EDGE_TRUE_VALUE for the others.
4060 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4062         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4063         complex types.
4065 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4067         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4069 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4071         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4072         len_of_prefix.
4074 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4076         * gen-pass-instances.awk (handle_line): Add args_str variable.
4078 2015-11-13  Martin Liska  <mliska@suse.cz>
4080         * graphite-poly.c (free_scop): Release scop->drs vector.
4081         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4082         Release dom vector.
4083         (try_generate_gimple_bb): Use vNULL as a default initialization
4084         for vectors.
4086 2015-11-13  Martin Liska  <mliska@suse.cz>
4088         PR ipa/68311
4089         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4090         Replace array initialization (using a variable post-increment)
4091         that possible triggers multiple unsequenced modifications
4092         with a pair of pushes to a vector.
4094 2015-11-13  Richard Biener  <rguenther@suse.de>
4096         PR tree-optimization/68306
4097         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4098         loop related checks ...
4099         (vect_verify_datarefs_alignment): ... here.
4100         (vect_slp_analyze_and_verify_node_alignment): Compute and
4101         verify alignment of the single DR that it matters.
4102         * tree-vect-stmts.c (vectorizable_store): Add an assert.
4103         (vectorizable_load): Add a comment.
4104         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4105         for determining load cost.
4107 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4109         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4110         mix of boolean and integer vectors in a single statement.
4111         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4112         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4113         determine constant type.
4114         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4115         for loop invariants.
4117 2015-11-13  Alan Hayward <alan.hayward@arm.com>
4119         PR tree-optimization/66558
4120         * tree-vect-loop.c (is_integer_induction):Add.
4121         (vectorizable_reduction): Add integer induction checks.
4123 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
4125         Revert [ARM] Remove neon-testgen.ml and generated tests.
4127         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4129         [ARM] Remove neon-testgen.ml and generated tests.
4131         * config/arm/neon-testgen.ml: Remove.
4133 2015-11-13  Richard Biener  <rguenther@suse.de>
4135         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4136         Signal fatal failure if early checks fail.
4137         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4138         do not bother testing further vector sizes.
4140 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
4142         * config/i386/predicates.md (misaligned_operand): Return true if
4143         operand is aligned to less than its natural alignmnet.
4145 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4147         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4148         (vec_cmpu@var{m}@var{n}): New item.
4149         (vcond@var{m}@var{n}): Specify comparison is signed.
4150         (vcondu@var{m}@var{n}): New item.
4151         (vcond_mask_@var{m}@var{n}): New item.
4152         (maskload@var{m}@var{n}): New item.
4153         (maskstore@var{m}@var{n}): New item.
4155 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4157         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4158         types of stored value and storage are compatible.
4160 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
4162         * gcc.c (POST_LINK_SPEC): Define if not already defined.
4163         (LINK_COMMAND_SPEC): Use post_link.
4164         (post_link_spec): New, initialize to POST_LINK_SPEC.
4165         (post_link): Initialize new static spec.
4166         * doc/tm.texi.in (POST_LINK_SPEC): Document.
4167         * doc/tm.texi: Regenerated.
4169 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4171         PR driver/67613
4172         * Makefile.in (GCC_OBJS): Add spellcheck.o.
4173         (OBJS): Add spellcheck-tree.o.
4174         * gcc.c: Include "spellcheck.h".
4175         (suggest_option): New function.
4176         (driver::handle_unrecognized_options): Call suggest_option to
4177         provide a hint about misspelled options.
4178         * spellcheck.c: Update file comment.
4179         (levenshtein_distance): Convert 4-param implementation from static
4180         to extern scope.  Remove note about unit tests from leading
4181         comment for const char * implementation.  Move tree
4182         implementation to...
4183         * spellcheck-tree.c: New file.
4184         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
4186 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4188         * Makefile.in (OBJS): Add spellcheck.o.
4189         * spellcheck.c: New file.
4190         * spellcheck.h: New file.
4192 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
4194         * config/ft32/ft32.md (*sne): New insn pattern.
4196 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
4198         * cprop.c (is_too_expensive): Remove.
4199         (gcse.h): Include.
4200         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4201         is_too_expensive.
4202         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4203         * gcse.c (is_too_expensive): Rename to ...
4204         (gcse_or_cprop_is_too_expensive): ... this.
4205         Expand warning to add required size of max-gcse-memory.
4206         (one_pre_gcse_pass): Use it.
4207         (one_code_hoisting_pass): Use it.
4208         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4210 2015-11-12  James Norris  <jnorris@codesourcery.com>
4211             Joseph Myers  <joseph@codesourcery.com>
4213         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4214         GF_OMP_TARGET_KIND_OACC_DECLARE.
4215         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4216         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4217         * gimplify.c (oacc_declare_returns): New.
4218         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4219         (device_resident_p): New function.
4220         (oacc_default_clause): Handle device_resident clause.
4221         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4222         (gimplify_expr): Handle OACC_DECLARE.
4223         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4224         * omp-low.c (expand_omp_target): Handle
4225         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4226         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4227         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4228         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4229         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4230         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4231         GOMP_MAP_DEVICE_RESIDENT.
4233 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4235         [ARM] Remove neon-testgen.ml and generated tests.
4237         * config/arm/neon-testgen.ml: Remove.
4239 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
4241         * config/aarch64/aarch64-cores.def (qdf24xx): New.
4242         * config/aarch64/aarch64-tune.md: Regenerated.
4243         * config/arm/arm-cores.def (qdf24xx): New.
4244         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4245         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4246         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4247         (ARM Options/-mtune): Likewise.
4249 2015-11-12  Martin Liska  <mliska@suse.cz>
4251         * config/i386/i386.c (ix86_valid_target_attribute_p):
4252         Finalize options at the of the function.
4253         * gcc.c (driver_get_configure_time_options): Call newly
4254         introduced init_opts_obstack.
4255         * lto-wrapper.c (main): Likewise.
4256         * opts.c (init_opts_obstack): New function.
4257         (init_options_struct): Call newly introduced init_opts_obstack.
4258         * opts.h (init_options_struct): Declare.
4260 2015-11-12  Martin Liska  <mliska@suse.cz>
4262         PR ipa/68035
4263         * ipa-icf.c (void sem_item::set_hash): New function.
4264         (sem_function::get_hash): Use renamed m_hash member variable.
4265         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4266         (sem_item::update_hash_by_local_refs): Likewise.
4267         (sem_variable::get_hash): Use renamed m_hash member variable.
4268         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4269         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4270         (sem_item_optimizer::build_graph): As the hash value of an item
4271         is lazy initialized, force the calculation.
4272         * ipa-icf.h (set_hash): Declare new function and rename hash member
4273         variable to m_hash.
4275 2015-11-12  Richard Biener  <rguenther@suse.de>
4277         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4278         Rename to vect_slp_analyze_instance_dependence.
4279         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4280         Remove WAR special-case.
4281         (vect_slp_analyze_node_dependences): Instead add more specific
4282         code here, not relying on other instances being vectorized.
4283         (vect_slp_analyze_instance_dependence): Adjust accordingly.
4284         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4285         vertical space in dump files.
4286         (vect_print_slp_tree): Likewise.
4287         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4288         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4289         not vectorized stmts until after dependence analysis removed
4290         instances.  Merge alignment and dependence checks.
4291         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4292         flag on all stmts.
4294 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
4296         * config/aarch64/aarch64-protos.h (tune_params): Add new members
4297         "max_case_values" and "cache_line_size".
4298         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4299         function.
4300         (aarch64_override_options_internal): Tune heuristics based on new
4301         members in "tune_params".
4302         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4304 2015-11-12  Richard Biener  <rguenther@suse.de>
4306         PR tree-optimization/68306
4307         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4308         relevant and vectorizable checks here.
4309         (vect_verify_datarefs_alignment): Add relevant check here.
4311 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
4313         * gimplify.c (oacc_default_clause): New.
4314         (omp_notice_variable): Call it.
4316 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
4318         PR tree-optimization/68305
4319         * tree-vect-slp.c (vect_get_constant_vectors): Support
4320         COND_EXPR with SSA_NAME as a condition.
4322 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4324         * config/visium/visium-protos.h (notice_update_cc): Delete.
4325         (print_operand): Likewise.
4326         (print_operand_address): Likewise.
4328 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4330         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4331         FUNCTION_VALUE_REGNO_P): Remove.
4332         * config/alpha/alpha-protos.h (function_value): Remove.
4333         * config/alpha/alpha.c (function_value): Rename to...
4334         (alpha_function_value_1): ... this.  Make static.
4335         (alpha_function_value, alpha_libcall_value,
4336         alpha_function_value_regno_p): New functions.
4337         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4338         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4340 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4342         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4343         * config/alpha/alpha.c (alpha_memory_latency): Make static.
4344         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4345         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4347 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4349         PR target/67265
4350         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4351         assertion on the CFA register.
4353 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
4355         * expr.c (do_store_flag): Expand vector comparison as
4356         VEC_COND_EXPR if vector comparison is not supported by target.
4358 2015-11-12  Renlin Li  <renlin.li@arm.com>
4360         * config/arm/arm.md (addsi3_compare_op2): Make the order of
4361         assembly pattern consistent with constraint order.
4363 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4365         * gen-pass-instances.awk (handle_line): Simplify match regexp.
4367 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4369         * gen-pass-instances.awk (handle_line): Simplify init of
4370         postfix_starts_at.
4372 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4374         * gen-pass-instances.awk (handle_line): Rename var where to
4375         call_starts_at.
4377 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
4379         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4380         do not expand to rtl.
4382 2015-11-12  Richard Biener  <rguenther@suse.de>
4384         PR tree-optimization/58497
4385         * tree-vect-generic.c: Include gimplify.h.
4386         (tree_vec_extract): Lookup constant/constructor DEFs.
4387         (do_cond): Unshare cond.
4389 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4391         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4392         combined insn if the alignment of vector mode memory operand
4393         is less than ssememalign.
4395 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4397         * gen-pass-instances.awk (handle_line): Print parentheses and
4398         pass_name explicitly.
4400 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4402         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4403         and postfix vars.
4405 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4407         * gen-pass-instances.awk (handle_line): Add comments.
4409 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4411         * gen-pass-instances.awk (handle_line): Rename len_of_end to
4412         len_of_close.
4414 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4416         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4418 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4420         * gen-pass-instances.awk (handle_line): Restructure using early-out.
4422 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4424         * gen-pass-instances.awk (handle_line): Unify semicolon use.
4426 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4428         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4430 2015-11-12  Tom de Vries  <tom@codesourcery.com>
4432         * gen-pass-instances.awk: Add emacs indent setting.
4434 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4436         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4437         to match.pd.
4438         Move Convert A/(B/C) to (A/B)*C to match.pd.
4439         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4440         Move Optimize (X & (-A)) / A where A is a power of 2, to
4441         X >> log2(A) to match.pd.
4443         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4444         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4445         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4446         New simplifier.
4447         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4449 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
4451         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4452         variable.
4453         (neon_vst2_lane<mode>): Likewise.
4454         (neon_vld3_lane<mode>): Likewise.
4455         (neon_vst3_lane<mode>): Likewise.
4456         (neon_vld4_lane<mode>): Likewise.
4457         (neon_vst4_lane<mode>): Likewise.
4459 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
4460             Sebastian Pop  <s.pop@samsung.com>
4462         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4463         New member codegen_error
4464         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4465         early return.
4466         (translate_isl_ast_node_user): Early return in case of error.
4467         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4468         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4469         (add_parameters_to_ivs_params): Remove macro.
4470         (graphite_regenerate_ast_isl): Add if_region pointer to region.
4471         * graphite-poly.c (new_poly_dr): Remove macro.
4472         (print_pdr): Same.
4473         (new_gimple_poly_bb): Same.
4474         (free_gimple_poly_bb): Same.
4475         (print_scop_params): Same.
4476         * graphite-poly.h (struct poly_dr): Same.
4477         (struct poly_bb): Add new_bb.
4478         (gbb_from_bb): Remove dead code.
4479         (pbb_from_bb): Same.
4480         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4481         (parameter_index_in_region): Same.
4482         (find_scop_parameters): Same.
4483         (build_cross_bb_scalars_def): New.
4484         (build_cross_bb_scalars_use): New.
4485         (graphite_find_cross_bb_scalar_vars): New
4486         (try_generate_gimple_bb): Reads and Writes.
4487         (build_alias_set): Move.
4488         (gather_bbs::before_dom_children): Gather bbs visited.
4489         (build_scops): call build_alias_set.
4490         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4491         (remove_simple_copy_phi): Delete.
4492         (remove_invariant_phi): Delete.
4493         (simple_copy_phi_p): Delete.
4494         (reduction_phi_p): Delete.
4495         (isl_id_for_dr): Remove unused param.
4496         (parameter_index_in_region_1): Remove macro usage.
4497         (set_scop_parameter_dim): Same.
4498         (add_param_constraints): Same.
4499         (add_conditions_to_constraints): Same
4500         (build_scop_iteration_domain): Same.
4501         (pdr_add_alias_set): Comment.
4502         (add_scalar_version_numbers): New.
4503         (build_poly_dr): ISL id.
4504         (build_scop_drs): Move.
4505         (build_poly_sr_1): Same.
4506         (insert_stmts): Remove.
4507         (build_poly_sr): New.
4508         (new_pbb_from_pbb): Delete.
4509         (insert_out_of_ssa_copy_on_edge): Delete.
4510         (create_zero_dim_array): Delete.
4511         (scalar_close_phi_node_p): Delete.
4512         (propagate_expr_outside_region): Delete.
4513         (rewrite_close_phi_out_of_ssa): Delete.
4514         (rewrite_phi_out_of_ssa): Delete.
4515         (rewrite_degenerate_phi): Delete.
4516         (rewrite_reductions_out_of_ssa): Delete.
4517         (rewrite_cross_bb_scalar_dependence): Delete.
4518         (handle_scalar_deps_crossing_scop_limits):
4519         (rewrite_cross_bb_scalar_deps): Delete.
4520         (build_poly_scop): Remove calls to out-of-ssa functions.
4521         * graphite.c (graphite_transform_loops): Early return in case of
4522         codegen error.
4523         * sese.c (debug_rename_map_1): Delete.
4524         (debug_rename_map): Delete.
4525         (sese_record_loop): Remove macro.
4526         (build_sese_loop_nests): Same.
4527         (new_sese_info): Same.
4528         (free_sese_info): Same.
4529         (sese_insert_phis_for_liveouts):
4530         (is_loop_closed_ssa_use): New.
4531         (number_of_phi_nodes): New.
4532         (bb_contains_loop_close_phi_nodes): New.
4533         (bb_contains_loop_phi_nodes): New.
4534         (phi_uses_name): New.
4535         (is_valid_rename):
4536         (get_rename): Add old_bb and loop_phi for more precise matching of
4537         exprs.
4538         (set_rename): Pass region.
4539         (later_of_the_two): New.
4540         (gsi_insert_earliest): New.
4541         (collect_all_ssa_names): New.
4542         (substitute_ssa_name): New.
4543         (rename_all_uses): New.
4544         (get_rename_from_scev): New.
4545         (rename_uses): Pass old_bb for more precise matching of exprs.
4546         (get_def_bb_for_const): New.
4547         (get_new_name): New.
4548         (get_loc): New.
4549         (get_edges): New.
4550         (copy_loop_phi_args): New.
4551         (copy_loop_phi_nodes): New.
4552         (get_loop_init_value): New.
4553         (find_init_value): New.
4554         (find_init_value_close_phi): New.
4555         (copy_loop_close_phi_args): New.
4556         (copy_loop_close_phi_nodes): New.
4557         (add_phi_arg_for_new_expr): New.
4558         (copy_cond_phi_args): New.
4559         (copy_cond_phi_nodes): New.
4560         (copy_phi_nodes): New.
4561         (should_copy_to_new_region): New.
4562         (set_rename_for_each_def): New.
4563         (graphite_copy_stmts_from_block): Early return in case of error.
4564         (copy_bb_and_scalar_dependences): Same.
4565         * sese.h (vec_find): New.
4566         (SESE_PARAMS): Delete.
4567         (SESE_LOOPS): Delete.
4568         (SESE_LOOP_NEST): Delete.
4569         (sese_contains_loop): Remove macro usage.
4570         (sese_nb_params): Same.
4571         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4573 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4575         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4576         isl_union_map_add_map on every pbb->schedule.
4578 2015-11-11  Tom de Vries  <tom@codesourcery.com>
4580         * tree-parloops.c (create_parallel_loop): Return void.
4582 2015-11-11  Tom de Vries  <tom@codesourcery.com>
4584         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4585         block only when needed.
4587 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
4589         * config/alpha/alpha-protos.h (print_operand): Remove.
4590         (print_operand_address): Remove.
4591         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4592         (PRINT_OPERAND_ADDRESS): Remove.
4593         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4594         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4595         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4596         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4597         (print_operand_address): Rename to...
4598         (alpha_print_operand_address): ...this and make static.
4599         (print_operand): Rename to...
4600         (alpha_print_operand): ...this and make static.
4601         (alpha_print_operand_punct_valid_p): New static function.
4603 2015-11-11  Richard Biener  <rguenther@suse.de>
4605         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4606         Declare.
4607         (vect_analyze_data_refs_alignment): Make loop vect specific.
4608         (vect_verify_datarefs_alignment): Likewise.
4609         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4610         Add missing continue.
4611         (vect_compute_data_ref_alignment): Export.
4612         (vect_compute_data_refs_alignment): Merge into...
4613         (vect_analyze_data_refs_alignment): ... this.
4614         (verify_data_ref_alignment): Split out from ...
4615         (vect_verify_datarefs_alignment): ... here.
4616         (vect_slp_analyze_and_verify_node_alignment): New function.
4617         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4618         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4619         misplaced checks on alignment.
4620         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
4621         alignment analysis after SLP discovery and do it per instance.
4622         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4623         bother to re-try using different vector sizes.
4625 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
4626             Cesar Philippidis  <cesar@codesourcery.com>
4628         * gimplify.c (enum omp_region_type): Add ORT_ACC,
4629         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
4630         (gimple_add_tmp_var): Add ORT_ACC checks.
4631         (gimplify_var_or_parm_decl): Likewise.
4632         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4633         (omp_add_variable): Look in outer contexts for openacc and allow
4634         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4635         (omp_notice_variable, omp_is_private, omp_check_private): Add
4636         ORT_ACC checks.
4637         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4638         Permit private openacc reductions.
4639         (gimplify_oacc_cache): Specify ORT_ACC.
4640         (gimplify_omp_workshare): Adjust OpenACC region types.
4641         (gimplify_omp_target_update): Likewise.
4642         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4643         (lower-rec_input_clauses): Don't handle openacc firstprivate
4644         references here.
4645         (lower_omp_target): Emit initializers for openacc firstprivate vars.
4647 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
4649         PR target/67265
4650         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4651         frame pointer for stack checking if non-call exceptions aren't used.
4652         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4654 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
4656         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4657         [LA]SHIFTRT.
4659 2015-11-11  Martin Liska  <mliska@suse.cz>
4660             Richard Biener  <rguenther@suse.de>
4662         PR rtl-optimization/68287
4663         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4664         number of elements.
4666 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
4668         * config/mips/mips.c (mips_breakable_sequence_p): New function.
4669         (mips_break_sequence): New function.
4670         (mips_reorg_process_insns): Use them. Use compact branches in selected
4671         situations.
4673 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
4675         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4677 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
4678             Jim Wilson  <wilson@gcc.gnu.org>
4680         PR target/67305
4681         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4682         be true and eliminable registers mentioned.
4684 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
4686         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4687         options.
4688         * config/arc/arc-opts.h: Add ARCv2 CPUs.
4689         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4690         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4691         situation, and store instructions with large offsets.
4692         (arc_secondary_reload_conv): New function.
4693         (arc_init): Add ARCv2 options.
4694         (arc_conditional_register_usage): Select the proper register usage
4695         for ARCv2 processors.
4696         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4697         architecture.
4698         (arc_compute_function_type): Likewise.
4699         (arc_print_operand): Handle new ARCv2 punctuation characters.
4700         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4701         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4702         function.
4703         (arc_reorg, arc_hazard): Use it.
4704         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4705         (ASM_SPEC): Add ARCv2 options.
4706         (TARGET_NORM): ARC HS has norm instructions by default.
4707         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4708         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4709         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4710         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4711         Likewise.
4712         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4713         (TARGET_LP_WR_INTERLOCK): Likewise.
4714         * config/arc/arc.md
4715         (commutative_binary_mult_comparison_result_used, movsicc_insn)
4716         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4717         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4718         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4719         Use it for ARCv2.
4720         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4721         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4722         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4723         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4724         (extzvsi): New pattern.
4725         * config/arc/arc.opt: New ARCv2 options.
4726         * config/arc/arcEM.md: New file.
4727         * config/arc/arcHS.md: Likewise.
4728         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4729         values.
4730         (Cm2): A signed 9-bit integer constant constraint.
4731         (C62): An unsigned 6-bit integer constant constraint.
4732         (C16): A signed 16-bit integer constant constraint.
4733         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4734         (short_const_int_operand): New predicate.
4735         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4736         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4737         -mcode-density and -mdiv-rem.
4739 2015-11-11  Julia Koval  <julia.koval@intel.com>
4741         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4743 2015-11-11  Julia Koval  <julia.koval@intel.com>
4745         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4747 2015-11-11  Martin Liska  <mliska@suse.cz>
4749         * gimple-ssa-strength-reduction.c (create_phi_basis):
4750         Use auto_vec.
4751         * passes.c (release_dump_file_name): New function.
4752         (pass_init_dump_file): Used from this function.
4753         (pass_fini_dump_file): Likewise.
4754         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4755         * var-tracking.c (vt_initialize): Use pool_allocator.
4757 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
4758             Jiong Wang      <jiong.wang@arm.com>
4760         PR tree-optimization/68234
4761         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4762         node which estimiated to be VR_VARYING initially.
4764 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
4766         * regname.c (scan_rtx_reg): Check the matching number of consecutive
4767         registers when tying chains.
4768         (build_def_use): Move terminated_this_insn earlier in the function.
4770 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
4772         * configure.ac: Use = with test and not ==.
4773         * configure: Regenerated.
4775 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
4777         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4778         machine asserts.  Update defines for 64 bit.
4780 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4782         PR target/63870
4783         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4784         lane number.
4785         (neon_vst1_lane<mode>): Likewise.
4786         (neon_vld2_lane<mode>): Likewise.
4787         (neon_vst2_lane<mode>): Likewise.
4788         (neon_vld3_lane<mode>): Likewise.
4789         (neon_vst3_lane<mode>): Likewise.
4790         (neon_vld4_lane<mode>): Likewise.
4791         (neon_vst4_lane<mode>): Likewise.
4793 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4795         PR target/63870
4796         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4797         qualifier_struct_load_store_lane_index.
4798         (arm_storestruct_lane_qualifiers) Likewise.
4799         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4800         big-endian.
4801         (neon_vst1_lane<mode>) Likewise.
4802         (neon_vld2_lane<mode>) Likewise.
4803         (neon_vst2_lane<mode>) Likewise.
4804         (neon_vld3_lane<mode>) Likewise.
4805         (neon_vst3_lane<mode>) Likewise.
4806         (neon_vld4_lane<mode>) Likewise.
4807         (neon_vst4_lane<mode>) Likewise.
4809 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
4811         PR target/63870
4812         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4813         qualifier_struct_load_store_lane_index.
4814         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4815         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4816         argument qualifiers.
4817         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4818         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4820 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
4822         * config/nvptx/nvptx.opt (moptimize): New flag.
4823         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4824         default.
4825         (nvptx_optimize_inner): New.
4826         (nvptx_process_pars): Call it when optimizing.
4827         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4829 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4831         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4832         Remove redundant code.
4834 2015-11-10  Jeff Law  <law@redhat.com>
4836         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4837         call to output_address.
4838         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4839         Add unnamed machine_mode argument.
4841 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4843         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4844         default to 64-bit.
4846 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4848         * config/i386/i386.md (*movabs<mode>_1): Add explicit
4849         size directives for -masm=intel.
4850         (*movabs<mode>_2): Ditto.
4852 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4854         * config/i386/i386.c (ix86_print_operand): Remove dead code that
4855         tried to avoid (%rip) for call operands.
4857 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
4859         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4860         argument.  Do not use RIP relative addressing when no_rip is set.
4861         (ix86_print_operand): Update call to ix86_print_operand_address_as.
4862         (ix86_print_operand_address): Ditto.
4863         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4864         absolute movabs operand 0.  Add square braces for -masm=intel.
4865         (*movabs<mode>_2): Ditto for operand 1.
4867 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4869         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4870         combine_vcvtf2i pattern.
4872 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4874         * config/arm/arm.c (neon_valid_immediate): Remove integer
4875         CONST_DOUBLE handling.  It should never occur.
4877 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
4879         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4880         (ATOMIC_LDOP): Likewise.
4881         (atomic_ldop): Likewise.
4882         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4883         (ATOMIC_LDOP): Likewise.
4884         (atomic_ldop): Likewise.
4886 2015-11-10  Martin Liska  <mliska@suse.cz>
4888         * alloc-pool.h (allocate_raw): New function.
4889         (operator new (size_t, object_allocator<T> &a)): Use the
4890         function instead of object_allocator::allocate).
4892 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4894         * config/i386/sse.md (HALFMASKMODE): New attribute.
4895         (DOUBLEMASKMODE): New attribute.
4896         (vec_pack_trunc_qi): New.
4897         (vec_pack_trunc_<mode>): New.
4898         (vec_unpacks_lo_hi): New.
4899         (vec_unpacks_lo_si): New.
4900         (vec_unpacks_lo_di): New.
4901         (vec_unpacks_hi_hi): New.
4902         (vec_unpacks_hi_<mode>): New.
4904 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4906         * optabs.c (expand_binop_directly): Allow scalar mode for
4907         vec_pack_trunc_optab.
4908         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4909         boolean vector producers from pattern sequence when computing VF.
4910         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4911         vect_recog_mask_conversion_pattern.
4912         (search_type_for_mask): Choose the smallest
4913         type if different size types are mixed.
4914         (build_mask_conversion): New.
4915         (vect_recog_mask_conversion_pattern): New.
4916         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4917         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4918         load with pattern.
4919         (vectorizable_conversion): Support boolean vectors.
4920         (free_stmt_vec_info): Allow patterns for statements with no lhs.
4921         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4923 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4925         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4926         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4927         Cast mask to FP mode if required.
4928         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4929         (vcond_mask_<mode><avx512fmaskmodelower>): New.
4930         (vcond_mask_<mode><sseintvecmodelower>): New.
4931         (vcond_mask_<mode><sseintvecmodelower>): New.
4932         (vcond_mask_v2div2di): New.
4933         (vcond_mask_<mode><sseintvecmodelower>): New.
4934         (vcond_mask_<mode><sseintvecmodelower>): New.
4936 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4938         * optabs-query.h (get_vcond_mask_icode): New.
4939         * optabs-tree.c (expand_vec_cond_expr_p): Use
4940         get_vcond_mask_icode for VEC_COND_EXPR with mask.
4941         * optabs.c (expand_vec_cond_mask_expr): New.
4942         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4943         * optabs.def (vcond_mask_optab): New.
4944         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4945         generate redundant comparison for COND_EXPR.
4946         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4947         as a condition.
4948         (vectorizable_condition): Likewise.
4949         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4950         cond_exp with no embedded comparison.
4951         (vect_build_slp_tree_1): Likewise.
4953 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4955         * config/i386/sse.md (maskload<mode>): Rename to ...
4956         (maskload<mode><sseintvecmodelower>): ... this.
4957         (maskstore<mode>): Rename to ...
4958         (maskstore<mode><sseintvecmodelower>): ... this.
4959         (maskload<mode><avx512fmaskmodelower>): New.
4960         (maskstore<mode><avx512fmaskmodelower>): New.
4962 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4964         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4965         (expand_MASK_STORE): Adjust to maskstore optab changes.
4966         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4967          Adjust to maskload, maskstore optab changes.
4968         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4969         * optabs.def (maskload_optab): Transform into convert optab.
4970         (maskstore_optab): Likewise.
4971         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4972         can_vec_mask_load_store_p signature change.
4973         (predicate_mem_writes): Use boolean mask.
4974         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4975         can_vec_mask_load_store_p signature change.  Allow invariant masks.
4976         (vectorizable_operation): Ignore type precision for boolean vectors.
4978 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4980         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4981         (const_vector_mask_from_tree): New.
4982         (const_vector_from_tree): Use const_vector_mask_from_tree
4983         for boolean vectors.
4984         * optabs-query.h (get_vec_cmp_icode): New.
4985         * optabs-tree.c (expand_vec_cmp_expr_p): New.
4986         * optabs-tree.h (expand_vec_cmp_expr_p): New.
4987         * optabs.c (vector_compare_rtx): Add OPNO arg.
4988         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4989         (expand_vec_cmp_expr): New.
4990         * optabs.def (vec_cmp_optab): New.
4991         (vec_cmpu_optab): New.
4992         * optabs.h (expand_vec_cmp_expr): New.
4993         * tree-vect-generic.c (expand_vector_comparison): Add vector
4994         comparison optabs check.
4995         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
4996         operations for VF.  Add mask type computation.
4997         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4998         (vectorizable_comparison): New.
4999         (vect_analyze_stmt): Add vectorizable_comparison.
5000         (vect_transform_stmt): Likewise.
5001         (vect_init_vector): Support boolean vector invariants.
5002         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5003         (vectorizable_condition): Directly provide vectype for invariants
5004         used in comparison.
5005         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5006         (enum vect_var_kind): Add vect_mask_var.
5007         (enum stmt_vec_info_type): Add comparison_vec_info_type.
5008         (vectorizable_comparison): New.
5009         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5010         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5011         (vect_create_destination_var): Likewise.
5012         * tree-vect-patterns.c (check_bool_pattern): Check fails
5013         if we can vectorize comparison directly.
5014         (search_type_for_mask): New.
5015         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5016         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5017         comparison statements.
5018         (vect_get_constant_vectors): Support boolean vector constants.
5019         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5020         (ix86_expand_int_vec_cmp): New.
5021         (ix86_expand_fp_vec_cmp): New.
5022         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5023         op_true and op_false.
5024         (ix86_int_cmp_code_to_pcmp_immediate): New.
5025         (ix86_fp_cmp_code_to_pcmp_immediate): New.
5026         (ix86_cmp_code_to_pcmp_immediate): New.
5027         (ix86_expand_mask_vec_cmp): New.
5028         (ix86_expand_fp_vec_cmp): New.
5029         (ix86_expand_int_sse_cmp): New.
5030         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5031         (ix86_expand_int_vec_cmp): New.
5032         (ix86_get_mask_mode): New.
5033         (TARGET_VECTORIZE_GET_MASK_MODE): New.
5034         * config/i386/sse.md (avx512fmaskmodelower): New.
5035         (vec_cmp<mode><avx512fmaskmodelower>): New.
5036         (vec_cmp<mode><sseintvecmodelower>): New.
5037         (vec_cmpv2div2di): New.
5038         (vec_cmpu<mode><avx512fmaskmodelower>): New.
5039         (vec_cmpu<mode><sseintvecmodelower>): New.
5040         (vec_cmpuv2div2di): New.
5042 2015-11-10  Richard Biener  <rguenther@suse.de>
5044         PR tree-optimization/68240
5045         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5046         properly.
5047         (visit_phi): For PHIs with just a single executable edge
5048         take its value directly.
5049         (expressions_equal_p): Handle VN_TOP properly.
5051 2015-11-10  Richard Biener  <rguenther@suse.de>
5053         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5054         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5055         conservatively.
5057 2015-11-10  Richard Biener  <rguenther@suse.de>
5059         PR tree-optimization/56118
5060         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5061         cost favor vectorized version.
5063 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5065         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5066         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5067         (neg_not_op): New code attribute.
5069 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5071         * ifcvt.c (noce_try_inverse_constants): New function.
5072         (noce_process_if_block): Call it.
5073         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5074         * optabs.def (negcc_optab, notcc_optab): Declare.
5075         * optabs.c (emit_conditional_neg_or_complement): New function.
5076         * doc/tm.texi (Standard Names): Document negcc, notcc names.
5078 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5080         PR rtl-optimization/68236
5081         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5082         if insn_queue doesn't exist.
5083         (haifa_sched_finish): Reset insn_queue to NULL.
5085 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
5087         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5088         (build_def_use): Initialize terminated_this_insn.
5089         (find_best_rename_reg): Pick and check register from the tied chain.
5090         (regrename_do_replace): Mark head as renamed.
5091         (struct du_head *terminated_this_insn). New static variable.
5092         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
5093         * regrename.h (struct du_head): Add tied_chain, renamed members.
5095 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5097         PR bootstrap/68256
5098         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5099         Return false.
5101 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5103         PR target/57845
5104         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5105         not promote the mode for aggregate types.
5107 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5109         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5110         * omp-low.c (build_oacc_routine_dims): New.
5112 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5114         * config/rs6000/constraints.md (wF constraint): New constraints
5115         for power9/toc fusion.
5116         (wG constraint): Likewise.
5118         * config/rs6000/predicates.md (u6bit_cint_operand): New
5119         predicate, recognize 0..63.
5120         (upper16_cint_operand): New predicate for power9 and toc fusion.
5121         (fpr_reg_operand): Likewise.
5122         (toc_fusion_or_p9_reg_operand): Likewise.
5123         (toc_fusion_mem_raw): Likewise.
5124         (toc_fusion_mem_wrapped): Likewise.
5125         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5126         address range.
5127         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5128         instead.
5129         (fusion_addis_mem_combo_load): Add support for power9 fusion of
5130         floating point loads, floating point stores, and gpr stores.
5131         (fusion_addis_mem_combo_store): Likewise.
5132         (fusion_offsettable_mem_operand): Likewise.
5134         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5135         (emit_fusion_load_store): Likewise.
5136         (fusion_p9_p): Likewise.
5137         (expand_fusion_p9_load): Likewise.
5138         (expand_fusion_p9_store): Likewise.
5139         (emit_fusion_p9_load): Likewise.
5140         (emit_fusion_p9_store): Likewise.
5141         (fusion_wrap_memory_address): Likewise.
5143         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5144         elements for power9 fusion.
5145         (rs6000_debug_print_mode): Rework debug information to print more
5146         information about fusion.
5147         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5148         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5149         offsettable memory address.
5150         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5151         (emit_fusion_gpr_load): Move most of the code from
5152         emit_fusion_gpr_load into emit_fusion-addis that handles both
5153         power8 and power9 fusion.
5154         (emit_fusion_addis): Likewise.
5155         (emit_fusion_load_store): Likewise.
5156         (fusion_wrap_memory_address): Add support for TOC fusion.
5157         (fusion_split_address): Likewise.
5158         (fusion_p9_p): Add support for power9 fusion.
5159         (expand_fusion_p9_load): Likewise.
5160         (expand_fusion_p9_store): Likewise.
5161         (emit_fusion_p9_load): Likewise.
5162         (emit_fusion_p9_store): Likewise.
5164         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5165         new instructions in ISA 3.0.
5166         (TARGET_CTZ): Likewise.
5167         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5168         (TARGET_TOC_FUSION_FP): Likewise.
5170         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5171         fusion unspecs.
5172         (UNSPEC_FUSION_ADDIS): Likewise.
5173         (QHSI mode iterator): New iterator for power9 fusion.
5174         (GPR_FUSION): Likewise.
5175         (FPR_FUSION): Likewise.
5176         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5177         (umod<mode>3): Likewise.
5178         (divmod peephole): Likewise.
5179         (udivmod peephole): Likewise.
5180         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5181         instructions.
5182         (ctz<mode>2_h): Likewise.
5183         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5184         (ashdi3_extswsli_dot): Likewise.
5185         (ashdi3_extswsli_dot2): Likewise.
5186         (power9 fusion splitter): New power9/toc fusion support.
5187         (toc_fusionload_<mode>): Likewise.
5188         (toc_fusionload_di): Likewise.
5189         (fusion_gpr_load_<mode>): Update predicate function.
5190         (power9 fusion peephole2s): New power9/toc fusion support.
5191         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5192         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5193         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5194         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5195         (fusion_p9_<mode>_constant): Likewise.
5197 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
5199         * optabs.c (prepare_libcall_arg): New function.
5200         (expand_fixed_convert): Add call to prepare_libcall_arg.
5202 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
5204         * sched-int.h (dump_rgn_dependencies_dot): Declare
5205         * sched-rgn.c (dump_rgn_dependencies_dot): New function
5206         * print-rtl.h (print_insn): Add prototype
5208         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5209         * common.opt (-fsched-verbose): Set default value to 1.
5210         * invoke.texi (-fsched-verbose): Update the option's description.
5212 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5214         * config/visium/visium.h (PRINT_OPERAND): Delete.
5215         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5216         (PRINT_OPERAND_ADDRESS): Likewise.
5217         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5218         to...
5219         (visium_print_operand_punct_valid_p): ...this.  New function.
5220         (TARGET_PRINT_OPERAND): Define to...
5221         (print_operand): Rename to...
5222         (visium_print_operand): ...this.
5223         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5224         (visium_output_address): Rename to...
5225         (visium_print_operand_address): ...this.
5226         (print_operand_address): Delete.
5228 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5230         PR middle-end/68259
5231         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5232         Check that the type of the first operand is an aggregate type.
5234 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5236         * omp-low.c: Fix some OpenACC comment typos.
5237         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5238         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5239         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5241 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
5243         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5245 2015-11-09  Jeff Law  <law@redhat.com>
5247         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5248         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
5249         Fix comment typo.
5251 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5252             Peter Bergner  <bergner@vnet.ibm.com>
5254         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5255         ISA 3.0 (power9).
5256         (-mpower9-vector): Likewise.
5257         (-mpower9-dform): Likewise.
5258         (-mpower9-minmax): Likewise.
5259         (-mtoc-fusion): Likewise.
5260         (-mmodulo): Likewise.
5261         (-mfloat128-hardware): Likewise.
5263         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5264         mask for ISA 3.0 (power9).
5265         (POWERPC_MASKS): Add new ISA 3.0 switches.
5266         (power9 cpu): Add power9 cpu.
5268         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5269         (ASM_CPU_SPEC): Likewise.
5270         (EXTRA_SPECS): Likewise.
5272         * config/rs6000/rs6000-opts.h (enum processor_type): Add
5273         PROCESSOR_POWER9.
5275         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5276         (rs6000_debug_reg_global): Add support for power9 fusion.
5277         (rs6000_setup_reg_addr_masks): Cache mode size.
5278         (rs6000_option_override_internal): Until real power9 tuning is
5279         added, use -mtune=power8 for -mcpu=power9.
5280         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5281         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5282         of Altivec registers.
5283         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5284         (rs6000_loop_align): Add support for power9 cpu.
5285         (rs6000_file_start): Likewise.
5286         (rs6000_adjust_cost): Likewise.
5287         (rs6000_issue_rate): Likewise.
5288         (insn_must_be_first_in_group): Likewise.
5289         (insn_must_be_last_in_group): Likewise.
5290         (force_new_group): Likewise.
5291         (rs6000_register_move_cost): Likewise.
5292         (rs6000_opt_masks): Likewise.
5294         * config/rs6000/rs6000.md (cpu attribute): Add power9.
5295         * config/rs6000/rs6000-tables.opt: Regenerate.
5297         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5298         _ARCH_PWR9 if power9 support is available.
5300         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5301         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5303         * configure.ac: Determine if the assembler supports the ISA 3.0
5304         instructions.
5305         * config.in (HAVE_AS_POWER9): Likewise.
5306         * configure: Regenerate.
5308         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5309         switches.
5311 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5313         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5314         Remove integer CONST_DOUBLE handling.  It should never occur.
5316 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5318         PR target/68129
5319         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5320         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5321         Delete VOIDmode case.  Assert that mode is not VOIDmode.
5322         * config/aarch64/predicates.md (const0_operand): Remove const_double
5323         match.
5325 2015-11-09  Martin Liska  <mliska@suse.cz>
5327         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5328         body_info release function.
5329         * ipa-prop.c (ipa_release_body_info): New function.
5330         (ipa_analyze_node): Call the function.
5331         (ipa_node_params::~ipa_node_params): Release known_csts.
5332         * ipa-prop.h (ipa_release_body_info): Declare.
5334 2015-11-09  Martin Liska  <mliska@suse.cz>
5336         * gcc.c (record_temp_file): Release name string.
5337         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5338         * lra-lives.c (free_live_range_list): Utilize
5339         lra_live_range_pool for allocation and deallocation.
5340         (create_live_range): Likewise.
5341         (copy_live_range): Likewise.
5342         (lra_merge_live_ranges): Likewise.
5343         (remove_some_program_points_and_update_live_ranges): Likewise.
5344         (lra_create_live_ranges_1): Release point_freq_vec that can
5345         be not freed from previous iteration of the function.
5346         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5347         * tree-sra.c (sra_deinitialize): Release all vectors in
5348         base_access_vec.
5349         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5350         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5351         Release edge_info for a removed edge.
5352         (thread_through_all_blocks): Free region vector.
5353         * tree-ssa.h (free_dom_edge_info): Declare function extern.
5355 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
5357         * optabs.c (expand_vec_cond_expr): Always get sign from type.
5358         * tree.c (wide_int_to_tree): Support negative values for boolean.
5359         (build_nonstandard_boolean_type): Use signed type for booleans.
5361 2015-11-09  Richard Biener  <rguenther@suse.de>
5363         PR tree-optimization/68248
5364         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5366 2015-11-09  Richard Biener  <rguenther@suse.de>
5368         PR tree-optimization/56118
5369         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5370         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5371         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5372         function.
5373         (vect_slp_analyze_data_ref_dependences): Instead of computing
5374         all dependences of the region DRs just analyze the code motions
5375         SLP vectorization will perform.  Remove SLP instances that
5376         cannot have their store/load motions applied.
5377         (vect_analyze_data_refs): Allow DRs without a vectype
5378         in BB vectorization.
5380 2015-11-09  Julian Brown  <julian@codesourcery.com>
5382         * final.c (output_asm_insn): Pass VOIDmode to output_address.
5383         (output_address): Add MODE argument. Pass to print_operand_address
5384         hook.
5385         * targhooks.c (default_print_operand_address): Add MODE argument.
5386         * targhooks.h (default_print_operand_address): Update prototype.
5387         * output.h (output_address): Update prototype.
5388         * target.def (print_operand_address): Add MODE argument.
5389         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5390         output_address.
5391         (print_operand): Pass access mode to output_address.
5392         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5393         argument.
5394         (mcore_print_operand): Update calls to mcore_print_operand_address.
5395         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5396         output_address.
5397         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5398         output_address.
5399         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5400         global.
5401         (tilegx_print_operand): Don't set above global. Update calls to
5402         output_address.
5403         (tilegx_print_operand_address): Add MODE argument. Use instead of
5404         output_memory_reference_mode global.
5405         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5406         (frv_print_operand): Pass mode to frv_print_operand_address calls.
5407         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5408         output_address.
5409         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5410         (cris_print_operand): Pass mode to output_address calls.
5411         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5412         * config/aarch64/aarch64.h (aarch64_print_operand)
5413         (aarch64_print_operand_address): Remove prototypes.
5414         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5415         global.
5416         (aarch64_print_operand): Make static. Update calls to output_address.
5417         (aarch64_print_operand_address): Add MODE argument. Use instead of
5418         aarch64_memory_reference_mode global.
5419         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5420         hooks.
5421         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5422         Delete macro definitions.
5423         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5424         * config/xtensa/xtensa.c (print_operand): Pass mode in
5425         output_address calls.
5426         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5427         argument.
5428         (h83000_print_operand): Update calls to h8300_print_operand_address
5429         and output_address.
5430         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5431         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5432         global.
5433         (tilepro_print_operand): Pass mode to output_address.
5434         (tilepro_print_operand_address): Add MODE argument. Use instead of
5435         output_memory_reference_mode.
5436         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5437         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5438         to output_address calls.
5439         (nvptx_print_operand_address): Add MODE argument.
5440         * config/alpha/alpha.c (print_operand): Pass mode argument in
5441         output_address calls.
5442         * config/m68k/m68k.c (print_operand): Pass mode argument in
5443         output_address call.
5444         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5445         (avr_print_operand): Update calls to avr_print_operand_address.
5446         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5447         argument. Update calls to output_address.
5448         (sparc_print_operand): Pass mode to output_address.
5449         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5450         argument.
5451         (iq2000_print_operand): Pass mode in output_address calls.
5452         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5453         MODE argument.
5454         (xstormy16_print_operand): Pass mode to
5455         xstormy16_print_operand_address calls.
5456         * config/mips/mips.c (mips_print_operand): Update calls to
5457         output_address.
5458         (mips_print_operand_address): Add MODE argument.
5459         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5460         to output_address.
5461         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5462         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5463         output_address.
5464         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5465         (rx_print_operand): Update calls to output_address,
5466         rx_print_operand_address.
5467         * config/nds32/nds32.c (nds32_print_operand): Update calls to
5468         output_address.
5469         (nds32_print_operand_address): Add MODE argument.
5470         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5471         output_address calls.
5472         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5473         output_address call.
5474         (c6x_print_address_operand): Update calls to output_address.
5475         (c6x_print_operand_address): Pass mode to above.
5476         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5477         (v850_print_operand): Pass mode to v850_print_operand_address,
5478         output_address.
5479         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5480         (mmix_print_operand): Pass mode in output_address calls.
5481         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5482         (sh_print_operand): Pass mem mode to output_address,
5483         sh_print_operand_address.
5484         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5485         (cr16_print_operand): Pass mode to output_address,
5486         cr16_print_operand_address.
5487         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5488         output_address.
5489         * config/microblaze/microblaze.c (print_operand): Pass mode to
5490         output_address.
5491         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5492         output_address.
5493         (nios2_print_operand_address): Add MODE argument. Update call to
5494         nios2_print_operand_address.
5495         * config/s390/s390.c (print_operand): Pass mode to output_address.
5496         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5497         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5498         output_address.
5499         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5500         Use instead of output_memory_reference_mode.
5501         (output_memory_reference_mode): Delete global.
5502         (arm_print_operand): Pass mem mode to output_address.
5503         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5504         (m32r_print_operand): Pass mode to output_address.
5505         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5506         argument.
5507         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5508         * config/i386/i386.c (ix86_print_operand): Pass mode to
5509         output_address calls.
5510         (ix86_print_operand_address): Add MODE argument.
5512 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5514         PR middle-end/68251
5515         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5516         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5517         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5518         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5520 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5522         PR rtl-optimization/67749
5523         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5524         case before emitting the two blocks.  Instead modify the register
5525         in the corresponding final insn of the basic block.
5527 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5529         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5530         assembler syntax.
5531         Support Solaris ld.
5532         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5534         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5535         HAVE_INITFINI_ARRAY_SUPPORT.
5536         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5538         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5539         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5540         Don't check HAVE_AS_SPARC_NOBITS.
5541         Heed SECTION_NOTYPE.
5543         * configure: Regenerate.
5544         * config.in: Regenerate.
5546 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5548         PR middle-end/68253
5549         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5551 2015-11-09  Richard Henderson  <rth@redhat.com>
5553         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5554         __SEG_GS, __SEG_TLS.
5555         (ix86_register_pragmas): Register address spaces __seg_fs,
5556         __seg_gs, __seg_tls.
5557         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5558         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5559         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5560         * config/i386/i386.c (ix86_decompose_address): Likewise.
5561         (ix86_legitimate_address_p): Likewise.
5562         (memory_address_length): Likewise.  Check mem address space too.
5563         (ix86_print_operand): Use ix86_print_operand_address_as.
5564         (ix86_print_operand_address_as): Rename from
5565         ix86_print_operand_address, add new addr_space_t parameter.
5566         Validate that either the parameter or the ix86_address segment
5567         is default address space.  Handle ADDR_SPACE_SEG_TLS.
5568         (ix86_print_operand_address): New.
5569         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5570         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5571         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5572         (ix86_addr_space_zero_address_valid): New.
5573         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5574         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5575         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5576         * config/i386/predicates.md (address_no_seg_operand): Likewise.
5577         (vsib_address_operand): Likewise.
5578         (address_mpx_no_base_operand): Likewise.
5579         (address_mpx_no_index_operand): Likewise.
5580         * doc/extend.texi (x86 Named Address Spaces): New section.
5582         * config/i386/i386.c (ix86_check_no_addr_space): New.
5583         (decide_alg): Add have_as parameter.
5584         (alg_usable_p): Likewise; disable rep algorithms if set.
5585         (ix86_expand_set_or_movmem): Notice if either MEM has a
5586         non-default address space.
5587         (ix86_expand_strlen): Likewise.
5588         * config/i386/i386.md (strmov, strset): Likewise.
5589         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5590         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5591         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5592         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5593         *cmpstrnqi_1, *strlenqi_1): Likewise.
5595         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5596         (*movabs<mode>_2): Likewise.
5598         * dwarf2out.c (modified_type_die): Pass the address space number
5599         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5600         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5601         * targhooks.c (default_addr_space_debug): New.
5602         * targhooks.h (default_addr_space_debug): Declare.
5603         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5604         * doc/tm.texi: Rebuild.
5606         * gimple.c (check_loadstore): Return false when 0 is a valid address.
5607         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5608         null when 0 is valid in the source address space.
5609         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5610         * targhooks.c (default_addr_space_zero_address_valid): New.
5611         * targhooks.h (default_addr_space_zero_address_valid): Declare.
5612         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5613         * doc/tm.texi: Rebuild.
5615         * cselib.c (add_mem_for_addr): Compare address spaces when
5616         matching memories.
5617         (cselib_lookup_mem): Likewise.
5618         * fold-const.c (operand_equal_p): Check address spaces of
5619         pointer types before checking integer constants.
5621         PR tree-opt/66768
5622         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5623         the correct type for the base.
5625 2015-11-09  Jeff Law  <law@redhat.com>
5627         * tree-into-ssa.c (names_to_release): No longer static.
5628         * tree-into-ssa.h (names_to_release): Declare.
5629         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5630         (release_free_names_and_compact_live_names): New function extracted
5631         from pass_release_ssa_names::execute.
5632         (pass_release_ssa_names::execute): Use it.
5634 2015-11-09  Alan Modra  <amodra@gmail.com>
5636         * gensupport.c (add_mnemonic_string): Make len param a size_t.
5637         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
5638         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
5639         return value.
5641 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
5643         PR rtl-optimization/68182
5644         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5645         branch with only one successor just like unconditional branches.
5647 2015-11-08  Jeff Law  <law@redhat.com>
5649         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5650         non-FSM path has no edges marked with EDGE_DFS_BACK.
5651         (ssa_redirect_edges): No longer call mark_loop_for_removal.
5652         (thread_single_edge, def_split_header_continue_p): Remove.
5653         (bb_ends_with_multiway_branch): Likewise.
5654         (thread_through_loop_header): Remove cases of threading from
5655         latch through the header.  Simplify knowing we won't thread
5656         the latch.
5657         (thread_through_all_blocks): Simplify knowing that only the FSM
5658         threader needs to handle backedges.
5660 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
5662         * doc/extend.texi (type attributes): Document scalar_storage_order.
5663         (Structure-Packing Pragmas): Rename into...
5664         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
5665         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5666         (Warnings): Document -Wno-scalar-storage-order.
5667         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5668         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5669         extract_bit_field and store_bit_field.
5670         (initialize_argument_information): Adjust call to store_expr.
5671         (load_register_parameters): Adjust call to extract_bit_field.
5672         * expmed.c (check_reverse_storage_order_support): New function.
5673         (check_reverse_float_storage_order_support): Likewise.
5674         (flip_storage_order): Likewise.
5675         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
5676         of the value if it is true.  Pass REVERSE to recursive call after
5677         adjusting the target offset.
5678         Do not use extraction or movstrict instruction if REVERSE is true.
5679         Pass REVERSE to store_fixed_bit_field.
5680         (store_bit_field): Add REVERSE parameter and pass to it to above.
5681         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5682         store_split_bit_field and store_fixed_bit_field_1.
5683         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
5684         order of the value if it is true and adjust the target offset.
5685         (store_split_bit_field): Add REVERSE parameter and pass it to
5686         store_fixed_bit_field.  Adjust the target offset if it is true.
5687         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
5688         of the value if it is true.  Pass REVERSE to recursive call after
5689         adjusting the target offset.
5690         Do not use extraction or subreg instruction if REVERSE is true.
5691         Pass REVERSE to extract_fixed_bit_field.
5692         (extract_bit_field): Add REVERSE parameter and pass to it to above.
5693         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5694         extract_split_bit_field and extract_fixed_bit_field_1.
5695         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
5696         order of the value if it is true and adjust the target offset.
5697         (extract_split_bit_field): Add REVERSE parameter and pass it to
5698         extract_fixed_bit_field.  Adjust the target offset if it is true.
5699         * expmed.h (flip_storage_order): Declare.
5700         (store_bit_field): Adjust prototype.
5701         (extract_bit_field): Likewise.
5702         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5703         (emit_group_store): Adjust call to store_bit_field.
5704         (copy_blkmode_from_reg): Likewise.
5705         (copy_blkmode_to_reg): Likewise.
5706         (write_complex_part): Likewise.
5707         (read_complex_part): Likewise.
5708         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
5709         that it isn't true if the target is a register.
5710         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5711         and flip the storage order of the value.
5712         <BIT_IOR_EXPR>: Flip the storage order of the value.
5713         (get_bit_range): Adjust call to get_inner_reference.
5714         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5715         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
5716         with reverse storage order.
5717         (store_expr_with_bounds): Add REVERSE parameter and pass it to
5718         recursive calls and call to store_bit_field.  Force the value into a
5719         register if it is true and then flip the storage order of the value.
5720         (store_expr): Add REVERSE parameter and pass it to above.
5721         (categorize_ctor_elements_1): Adjust call to
5722         initializer_constant_valid_p.
5723         (store_constructor_field): Add REVERSE parameter and pass it to
5724         recursive calls and call to store_field.
5725         (store_constructor): Add REVERSE parameter and pass it to calls to
5726         store_constructor_field and store_expr.  Set it to true for an
5727         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5728         (store_field): Add REVERSE parameter and pass it to recursive calls
5729         and calls to store_expr and store_bit_field.  Temporarily flip the
5730         storage order of the value with record type and integral mode and
5731         adjust the shift if it is true.
5732         (get_inner_reference): Add PREVERSEP parameter and set it to true
5733         upon encoutering a reference with reverse storage order.
5734         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5735         (expand_constructor): Adjust call to store_constructor.
5736         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5737         of the union type to store_expr in the MEM case and assert that it
5738         isn't set in the REG case.  Adjust call to store_field.
5739         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5740         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5741         get_inner_reference and extract_bit_field. Temporarily flip the
5742         storage order of the value with record type and integral mode and
5743         adjust the shift if it is true.  Flip the storage order of the value
5744         at the end if it is true.
5745         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5746         get_inner_reference.  Do not fetch an inner reference if it is true.
5747         * expr.h (store_expr_with_bounds): Ajust prototype.
5748         (store_expr): Likewise.
5749         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5750         REF_REVERSE_STORAGE_ORDER on the reference according to it.
5751         (optimize_bit_field_compare): Deal with reverse storage order.
5752         Adjust calls to get_inner_reference and make_bit_field_ref.
5753         (decode_field_reference): Add PREVERSEP parameter and adjust call to
5754         get_inner_reference.
5755         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
5756         to decode_field_reference and make_bit_field_ref.
5757         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5758         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5759         (fold_comparison): Adjust call to get_inner_reference.
5760         (split_address_to_core_and_offset): Adjust call to
5761         get_inner_reference.
5762         * gimple-expr.c (useless_type_conversion_p): Return false for array
5763         types with different TYPE_REVERSE_STORAGE_ORDER flag.
5764         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5765         REF_REVERSE_STORAGE_ORDER flag.
5766         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5767         * output.h (assemble_real): Adjust prototype.
5768         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5769         * stor-layout.c (finish_record_layout): Propagate the
5770         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5771         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5772         (TYPE_SATURATING): Adjust.
5773         (REF_REVERSE_STORAGE_ORDER): Document.
5774         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5775         set it to true upon encoutering a reference with reverse storage order.
5776         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5777         * tree-inline.c (remap_gimple_op_r): Propagate the
5778         REF_REVERSE_STORAGE_ORDER flag.
5779         (copy_tree_body_r): Likewise.
5780         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5781         store_expr.
5782         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5783         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5784         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5785         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5786         REF_REVERSE_STORAGE_ORDER flag.
5787         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5788         (gimple_canonical_types_compatible_p): Likewise.
5789         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5790         (TYPE_SATURATING): Adjust.
5791         (REF_REVERSE_STORAGE_ORDER): New flag.
5792         (reverse_storage_order_for_component_p): New inline predicate.
5793         (storage_order_barrier_p): Likewise.
5794         (get_inner_reference): Adjust prototype.
5795         * varasm.c: Include expmed.h.
5796         (assemble_variable_contents): Adjust call to output_constant.
5797         (assemble_real): Add REVERSE parameter.  Flip the storage
5798         order of the value if REVERSE is true.
5799         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5800         (assemble_constant_contents): Adjust call to output_constant.
5801         (output_constant_pool_2): Adjust call to assemble_real.
5802         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5803         TYPE_REVERSE_STORAGE_ORDER.
5804         (initializer_constant_valid_p): Add REVERSE parameter.
5805         (output_constant): Add REVERSE parameter.
5806         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5807         <REAL_TYPE>: Adjust call to assemble_real.
5808         <COMPLEX_TYPE>: Pass it to recursive calls.
5809         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
5810         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
5811         (struct oc_local_state): Add REVERSE field.
5812         (output_constructor_array_range): Adjust calls to output_constant.
5813         (output_constructor_regular_field): Likewise.
5814         (output_constructor_bitfield): Adjust call to output_constructor.
5815         Flip the storage order of the value if REVERSE is true.
5816         (output_constructor): Add REVERSE parameter.  Set it to true for an
5817         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
5818         output_constructor_bitfield.
5819         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5820         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5821         * builtins.c (get_object_alignment_2): Likewise.
5822         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5823         and get_ref_base_and_extent.
5824         * dbxout.c (dbxout_expand_expr): Likewise.
5825         * dwarf2out.c (add_var_loc_to_decl): Likewise.
5826         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5827         (loc_list_from_tree): Likewise.
5828         (fortran_common): Likewise.
5829         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5830         get_ref_base_and_extent.
5831         (get_base_constructor): Likewise.
5832         (fold_const_aggregate_ref_1): Likewise.
5833         * gimple-laddress.c (pass_laddress::execute): Adjust call to
5834         get_inner_reference.
5835         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5836         get_inner_reference and bail out on reverse storage order.
5837         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5838         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5839         build_ref_for_offset.
5840         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5841         get_ref_base_and_extent.
5842         (ipa_polymorphic_call_context): Likewise.
5843         (extr_type_from_vtbl_ptr_store): Likewise.
5844         (check_stmt_for_type_change): Likewise.
5845         (get_dynamic_type): Likewise.
5846         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5847         get_ref_base_and_extent.
5848         (compute_complex_assign_jump_func): Likewise.
5849         (get_ancestor_addr_info): Likewise.
5850         (compute_known_type_jump_func): Likewise.
5851         (determine_known_aggregate_parts): Likewise.
5852         (ipa_get_adjustment_candidate): Likewise.
5853         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5854         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5855         (build_ref_for_offset): Adjust prototype.
5856         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5857         get_inner_reference.
5858         * tree-affine.c (tree_to_aff_combination): Adjust call to
5859         get_inner_reference.
5860         (get_inner_reference_aff): Likewise.
5861         * tree-data-ref.c (split_constant_offset_1): Likewise.
5862         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
5863         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5864         get_inner_reference.
5865         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5866         (dump_access): Print new fields.
5867         (create_access): Adjust call to get_ref_base_and_extent and set the
5868         REVERSE flag according to the result.
5869         (completely_scalarize_record): Set the REVERSE flag.
5870         (scalarize_elem): Add REVERSE parameter.
5871         (build_access_from_expr_1): Preserve storage order barriers.
5872         (build_accesses_from_assign): Likewise.
5873         (build_ref_for_offset): Add REVERSE parameter and set the
5874         REF_REVERSE_STORAGE_ORDER flag accordingly.
5875         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5876         the REF_REVERSE_STORAGE_ORDER flag if there are components.
5877         (analyze_access_subtree): Likewise.
5878         (create_artificial_child_access): Set the REVERSE flag.
5879         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5880         (turn_representatives_into_adjustments): Propagate REVERSE flag.
5881         (ipa_sra_check_caller): Adjust call to get_inner_reference.
5882         * tree-ssa-alias.c (ao_ref_base): Adjust call to
5883         get_ref_base_and_extent.
5884         (aliasing_component_refs_p): Likewise.
5885         (stmt_kills_ref_p_1): Likewise.
5886         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5887         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5888         Return true if reverse storage order.
5889         <BIT_FIELD_REF>: Likewise.
5890         <COMPONENT_REF>: Likewise.
5891         <ARRAY_REF>: Likewise.
5892         <ARRAY_RANGE_REF>: Likewise.
5893         (split_address_cost): Likewise.  Bail out if reverse storage order.
5894         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5895         get_inner_reference.  Bail out if reverse storage order.
5896         (bswap_replace): Adjust call to get_inner_reference.
5897         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5898         the REF_REVERSE_STORAGE_ORDER flag.
5899         <BIT_FIELD_REF>: Likewise.
5900         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5901         barriers.
5902         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5903         to the REF_REVERSE_STORAGE_ORDER flag.
5904         <BIT_FIELD_REF>: Likewise.
5905         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5906         (contains_storage_order_barrier_p): New predicate.
5907         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5908         Punt on storage order barriers if necessary.
5909         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5910         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5911         call to get_ref_base_and_extent.
5912         (do_structure_copy): Likewise.
5913         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5914         get_inner_reference.
5915         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
5916         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5917         * ubsan.c (instrument_bool_enum_load): Likewise.
5918         (instrument_object_size): Likewise.
5919         * var-tracking.c (track_expr_p): Adjust call to
5920         get_ref_base_and_extent.
5921         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5922         get_inner_reference.
5923         * config/s390/s390.c (s390_expand_atomic): Adjust call to
5924         store_bit_field.
5925         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5926         extract_bit_field.
5927         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5929 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
5931         * config/sparc/sparc.opt (mfix-at697f): Add final period.
5933 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
5935         PR rtl-optimization/67864
5936         * common/config/i386/i386-common.c (ix86_option_optimization_table)
5937         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5938         at -Os and up.
5940 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5942         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5943         internal functions.
5945 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5947         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5948         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5950 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5952         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5953         * internal-fn.c: Don't undef it here.
5954         * tree-core.h: Likewise.
5956 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5958         * builtins.c (fold_builtin_nan): Delete.
5959         (fold_builtin_memcmp): Remove case where both arguments are constant.
5960         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5961         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5962         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5963         * fold-const-call.c: Include fold-const.h.
5964         (host_size_t_cst_p): New function.
5965         (build_cmp_result, fold_const_builtin_nan): Likewise.
5966         (fold_const_call_1): New function, split out from...
5967         (fold_const_call): ...here (for all three interfaces).  Handle
5968         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5970 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5972         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5973         (fold_builtin_1): Don't call them.
5974         * fold-const-call.c: Include tm.h.
5975         (fold_const_call_ss): New variant for integer-to-integer folds.
5976         (fold_const_call): Call it.
5978 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5980         * builtins.c (fold_builtin_classify): Move constant cases to...
5981         * fold-const-call.c (fold_const_call_ss): ...here.
5983 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5985         * builtins.h (c_getstr): Move to...
5986         * fold-const.h (c_getstr): ...here.
5987         * builtins.c (c_getstr): Move to...
5988         * fold-const.c (c_getstr): ...here.
5990 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5992         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5993         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5995 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
5997         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5998         the dominance info; free it if we can't.
5999         (pass_call_cdce::execute): Don't free the dominance info here.
6001 2015-11-06  Jeff Law <law@redhat.com>
6003         * tree-ssa-threadedge.c (dummy_simplify): Remove.
6004         (thread_around_empty_blocks): Remove backedge_seen_p argument.
6005         If we thread to a backedge, then return false.  Update recursive
6006         call to eliminate backedge_seen_p argument.
6007         (thread_through_normal_block): Remove backedge_seen_p argument.
6008         Remove backedge_seen_p argument from calls to
6009         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
6010         If we thread to a backedge, then return 0.
6011         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
6012         pass it to thread_through_normal_block or thread_through_empty_blocks.
6013         For joiner handling, if we see a backedge, do not try normal
6014         threading.
6016 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6018         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6019         * graphite-poly.c (new_scop): Initialize original_schedule.
6020         (free_scop): Free original_schedule.
6021         * graphite-poly.h (struct scop): Add field original_schedule.
6022         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6023         (build_poly_scop): Call build_scop_original_schedule.
6025 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6027         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6028         (build_pbb_minimal_scattering_polyhedrons): New.
6029         (build_scop_scattering): Remove.
6030         (build_scop_minimal_scattering): New.
6031         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6032         (build_poly_scop): Call build_scop_minimal_scattering.
6034 2015-11-06  Jeff Law <law@redhat.com>
6036         * cfg-flags.def (IGNORE): New edge flag.
6037         * tree-vrp.c (identify_jump_threads): Mark and clear edges
6038         scheduled for removal with EDGE_IGNORE around call into
6039         jump threader.  Do no thread across edges with EDGE_IGNORE,
6040         but do allow threading across those with EDGE_DFS_BACK.
6042 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
6044         * doc/md.texi (multi-alternative constraints): Don't document
6045         alternatives inherently tied to reload for the user documentation.
6047 2015-11-06  Michael Collison  <michael.collison@linaro.org>
6048             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6050         Revert:
6051         2015-08-01  Michael Collison  <michael.collison@linaro.org
6052                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6054         * config/arm/arm.md (*arm_smin_cmp): New pattern.
6055         (*arm_umin_cmp): Likewise.
6057 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
6059         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6060         * omp-low.c (check_omp_nesting_restrictions): Update for the
6061         various new OpenMP 4.5 nesting restrictions, clarified
6062         nesting glossary, closely nested region relationship clarified
6063         to mean explicit or implicit parallel regions (target/teams),
6064         use %</%> or %qs where appropriate.
6066 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6067             Sebastian Pop  <s.pop@samsung.com>
6069         * graphite-scop-detection.c (loop_is_valid_scop): Call
6070         optimize_loop_nest_for_speed_p.
6072 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6073             Sebastian Pop  <s.pop@samsung.com>
6075         * graphite-optimize-isl.c (optimize_isl): Call
6076         isl_options_set_schedule_maximize_band_depth.
6078 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6079             Sebastian Pop  <s.pop@samsung.com>
6081         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6082         and exit edges should not be a part of irreducible loop.
6083         (scop_detection::can_represent_loop_1): Loops should not be
6084         irreducible.
6085         (scop_detection::harmful_stmt_in_region): All the basic block
6086         should belong to reducible loops.
6088 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
6090         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6091         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6092         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6093         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6094         (aarch64_tbx4v8qi): Rename to...
6095         aarch64_tbx4<mode>): ... this.
6096         (aarch64_qtbl3<mode>): New pattern.
6097         (aarch64_qtbx3<mode>): New pattern.
6098         (aarch64_qtbl4<mode>): New pattern.
6099         (aarch64_qtbx4<mode>): New pattern.
6100         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6101         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6102         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6103         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6104         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6105         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6106         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6107         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6108         functions.
6110 2015-11-06  Mike Stump  <mikestump@comcast.net>
6112         PR debug/66728
6113         * dwarf2out.c (get_full_len): Return a value based upon the actual
6114         precision needed for the value.
6115         (add_const_value_attribute): Use a maximal wide-int for
6116         CONST_WIDE_INTs, not VOIDmode.
6117         (output_die): Don't ever output NULL with printf.
6119         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6120         BLKmode nor VOIDmode values.
6122 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6124         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6125         and "range2".
6126         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6127         * diagnostic-core.h (warning_at_rich_loc): New declaration.
6128         (error_at_rich_loc): New declaration.
6129         (permerror_at_rich_loc): New declaration.
6130         (inform_at_rich_loc): New declaration.
6131         * diagnostic-show-locus.c (adjust_line): Delete.
6132         (struct point_state): New struct.
6133         (class colorizer): New class.
6134         (class layout_point): New class.
6135         (class layout_range): New class.
6136         (struct line_bounds): New.
6137         (class layout): New class.
6138         (colorizer::colorizer): New ctor.
6139         (colorizer::~colorizer): New dtor.
6140         (layout::layout): New ctor.
6141         (layout::print_source_line): New method.
6142         (layout::print_annotation_line): New method.
6143         (layout::get_state_at_point): New method.
6144         (layout::get_x_bound_for_row): New method.
6145         (diagnostic_show_locus): Reimplement in terms of class layout.
6146         (diagnostic_print_caret_line): Delete.
6147         * diagnostic.c (diagnostic_initialize): Replace
6148         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6149         (diagnostic_set_info_translated): Convert param from location_t
6150         to rich_location *.  Eliminate calls to set_location on the
6151         message in favor of storing the rich_location ptr there.
6152         (diagnostic_set_info): Convert param from location_t to
6153         rich_location *.
6154         (diagnostic_build_prefix): Break out array into...
6155         (diagnostic_kind_color): New variable.
6156         (diagnostic_get_color_for_kind): New function.
6157         (diagnostic_report_diagnostic): Colorize the option_text
6158         using the color for the severity.
6159         (diagnostic_append_note): Update for change in signature of
6160         diagnostic_set_info.
6161         (diagnostic_append_note_at_rich_loc): New function.
6162         (emit_diagnostic): Update for change in signature of
6163         diagnostic_set_info.
6164         (inform): Likewise.
6165         (inform_at_rich_loc): New function.
6166         (inform_n): Update for change in signature of diagnostic_set_info.
6167         (warning): Likewise.
6168         (warning_at): Likewise.
6169         (warning_at_rich_loc): New function.
6170         (warning_n): Update for change in signature of diagnostic_set_info.
6171         (pedwarn): Likewise.
6172         (permerror): Likewise.
6173         (permerror_at_rich_loc): New function.
6174         (error): Update for change in signature of diagnostic_set_info.
6175         (error_n): Likewise.
6176         (error_at): Likewise.
6177         (error_at_rich_loc): New function.
6178         (sorry): Update for change in signature of diagnostic_set_info.
6179         (fatal_error): Likewise.
6180         (internal_error): Likewise.
6181         (internal_error_no_backtrace): Likewise.
6182         (source_range::debug): New function.
6183         * diagnostic.h (struct diagnostic_info): Eliminate field
6184         "override_column".  Add field "richloc".
6185         (struct diagnostic_context): Add field "colorize_source_p".
6186         (diagnostic_override_column): Delete.
6187         (diagnostic_set_info): Convert param from location_t to
6188         rich_location *.
6189         (diagnostic_set_info_translated): Likewise.
6190         (diagnostic_append_note_at_rich_loc): New function.
6191         (diagnostic_num_locations): New function.
6192         (diagnostic_expand_location): Get the location from the
6193         rich_location.
6194         (diagnostic_print_caret_line): Delete.
6195         (diagnostic_get_color_for_kind): New declaration.
6196         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6197         (error_cb): Update for change in signature of "error" callback.
6198         (fatal_at): Likewise.
6199         (warning_at): Likewise.
6200         * input.c (linemap_client_expand_location_to_spelling_point): New.
6201         * pretty-print.c (text_info::set_range): New method.
6202         (text_info::get_location): New method.
6203         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6204         (struct text_info): Eliminate "locations" array in favor of
6205         "m_richloc", a rich_location *.
6206         (textinfo::set_location): Add a "caret_p" param, and reimplement
6207         in terms of a call to set_range.
6208         (textinfo::get_location): Eliminate inline implementation in favor of
6209         an out-of-line reimplementation.
6210         (textinfo::set_range): New method.
6211         * rtl-error.c (diagnostic_for_asm): Update for change in signature
6212         of diagnostic_set_info.
6213         * tree-diagnostic.c (default_tree_printer): Update for new
6214         "caret_p" param for textinfo::set_location.
6215         * tree-pretty-print.c (percent_K_format): Likewise.
6217 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6219         Properly apply.
6220         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6221         * config/aarch64/aarch64.c
6222         (aarch64_can_use_per_function_literal_pools_p): New.
6223         (aarch64_use_blocks_for_constant_p): Adjust declaration
6224         and use aarch64_can_use_function_literal_pools_p.
6225         (aarch64_select_rtx_section): Update.
6227 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6229         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6230         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6231         (arm_output_multireg_pop): Likewise.
6232         (output_move_double):  Likewise.
6233         (output_move_quad):  Likewise.
6234         (output_return_instruction): Likewise.
6235         (arm_print_operand): Remove support for %( and %. print modifiers.
6236         (arm_output_shift): Make unified asm.
6237         (arm_declare_function_name): Likewise.
6238         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6239         (ASM_APP_OFF): Adjust.
6240         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6241         (ASM_OUTPUT_REG_POP): Likewise.
6242         * config/arm/arm.md: Adjust uses of %., %(, %)
6243         * config/arm/sync.md: Likewise.
6244         * config/arm/thumb2.md: Likewise.
6245         * config/arm/ldmstm.md: Regenerate.
6246         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6247         * doc/invoke.texi (masm-unified-syntax): Update documentation.
6249 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6251         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6253 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
6255         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6256         add OEP_MATCH_SIDE_EFFECTS.
6257         * fold-const.c (operand_equal_p): Update documentation; handle
6258         OEP_MATCH_SIDE_EFFECTS.
6259         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6260         OEP_MATCH_SIDE_EFFECTS.
6262 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
6263             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6265         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6266         * config/aarch64/aarch64-protos.h: Declare.
6267         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6268         frsqrts.
6269         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6270         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6271         code when applicable.
6272         * config/aarch64/aarch64.md: Added enum entries.
6273         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6275 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
6277         PR ipa/68057
6278         PR ipa/68220
6279         * ipa-polymorphic-call.c
6280         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6281         issue when offset is out of range.
6282         (contains_type_p): Fix out of range check, clear dynamic flag.
6284 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
6286         * config.gcc (e6500): Fix cpu_is_64bit typo.
6288 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
6290         * tree-sra.c (completely_scalarize): Properly handle negative array
6291         indices using offset_int.
6293 2015-11-06  Richard Biener  <rguenther@suse.de>
6295         * alloc-pool.h (object_allocator::allocate): Default-initialize
6296         object.
6298 2015-11-06  Richard Biener  <rguenther@suse.de>
6300         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6301         * lra.c (init_reg_info): Truncate copy_vec instead of
6302         re-allocating a new one and leaking the old.
6303         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6304         bb_infos vec.
6305         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6306         * postreload-gcse.c (free_mem): Free modify_mem_list and
6307         canon_modify_mem_list.
6309 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
6311         PR tree-optimization/68145
6312         * tree-vect-stmts.c (vectorizable_operation): Fix
6313         determination for booleans.
6315 2015-11-06  Tom de Vries  <tom@codesourcery.com>
6317         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6318         cond_jump, instead of split after last nondebug insn before cond_jump.
6319         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6320         returning.
6322 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6324         PR target/68088
6325         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6326         subregs from accumulator and make sure it's a register.
6328 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
6330         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6331         low part to scalar.
6332         (reduc_uplus_<mode>): Remove.
6333         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6334         loongson_extract_lo_<mode>.
6335         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6336         reduc_smax_<mode>, reduc_smax_<mode>, use vec
6337         loongson_extract_lo_<mode>.
6338         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6340 2015-11-06  Richard Biener  <rguenther@suse.de>
6342         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6343         members.
6344         (vect_stmt_in_region_p): Declare.
6345         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6346         (destroy_bb_vec_info): Likewise.
6347         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6348         (vect_get_and_check_slp_defs): Likewise.
6349         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6350         (vect_slp_bb): Likewise.
6351         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6352         in terms of vect_stmt_in_region_p.
6353         (vect_pattern_recog): Iterate over the BB region.
6354         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6355         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6356         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6357         * config/i386/i386.c: Include gimple-iterator.h.
6358         * config/aarch64/aarch64.c: Likewise.
6360 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
6362         PR rtl-optimization/67753
6363         PR rtl-optimization/64164
6364         * function.c (assign_parm_setup_block): Avoid allocating a
6365         stack slot if we don't have an ABI-reserved one.  Emit the
6366         copy to target_reg in the conversion seq if the copy from
6367         entry_parm is in it too.  Don't use the conversion seq to copy
6368         a PARALLEL to a REG or a CONCAT.
6370 2015-11-06  Richard Biener  <rguenther@suse.de>
6372         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6373         equal_keys.
6375 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
6376             Thomas Schwinge  <thomas@codesourcery.com>
6377             James Norris  <jnorris@codesourcery.com>
6380         * gimplify.c (gimplify_scan_omp_clauses): Add support for
6381         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
6382         (gimplify_adjust_omp_clauses): Likewise.
6383         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6384         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6385         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6386         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6387         (omp_clause_code_name): Likewise.
6388         (walk_tree_1): Handle OMP_CLAUSE_TILE.
6389         * tree.h (OMP_TILE_LIST): New macro.
6391 2015-11-05  Martin Sebor  <msebor@redhat.com>
6393         PR c++/67942
6394         * doc/invoke.texi (-Wplacement-new): Document new option.
6396 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
6398         PR tree-optimization/65963
6399         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6400         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6402 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
6404         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6405         (noce_convert_multiple_sets): Likewise.
6406         (noce_process_if_block): Call them.
6408 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
6410         * gimple-fold.c: Include omp-low.h.
6411         (fold_internal_goacc_dim): New.
6412         (gimple_fold_call): Call it.
6414 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6415             Ilya Verbin  <ilya.verbin@intel.com>
6417         * builtin-types.def
6418         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6419         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6420         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6421         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6422         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6423         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6424         (struct cgraph_simd_clone_arg): Adjust comment.
6425         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6426         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
6427         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6428         to GOMP_target_data_ext.
6429         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6430         to GOMP_target_update_ext.
6431         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6432         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6433         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6434         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6435         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6436         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6437         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6438         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6439         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6440         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6441         * tree-core.h (enum omp_clause_schedule_kind): Add
6442         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6443         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6444         OMP_CLAUSE_SCHEDULE_LAST value.
6445         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6446         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6447         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6448         OMP_FOR_CHECK.  Remove comment.
6449         * tree-pretty-print.c (dump_omp_clause): Handle
6450         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6451         Simplify.  Print schedule clause modifiers.
6452         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6453         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6454         cases.
6455         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6456         (omp_default_clause): Tweak for
6457         private/firstprivate/is_device_ptr variables on target
6458         construct and use_device_ptr on target data.
6459         (omp_check_private): Likewise.
6460         (omp_notice_variable): For references check whether what it refers
6461         to has mappable type, rather than the reference itself.
6462         (omp_is_private): Diagnose linear iteration variables on non-simd
6463         constructs.
6464         (omp_no_lastprivate): Return true only for Fortran.
6465         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6466         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6467         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6468         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6469         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
6470         lastprivate and linear when combined with distribute.  Gimplify
6471         variable low-bound for array reduction.  Look through
6472         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6473         reductions.
6474         (gimplify_adjust_omp_clauses_1): For implicit references to
6475         variables with reference type and when not ref to scalar or
6476         ref to pointer, map what they refer to using tofrom and
6477         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6478         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6479         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6480         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
6481         Diagnose the same var on both firstprivate and lastprivate on
6482         distribute construct.
6483         (gimplify_omp_for): Fix up handling of predetermined
6484         lastprivate or linear iter vars when combined with distribute.
6485         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6486         functions.
6487         (gimplify_omp_workshare): Call optimize_target_teams.
6488         * omp-low.c (struct omp_region): Add sched_modifiers field.
6489         (struct omp_for_data): Likewise.
6490         (omp_any_child_fn_dumped): New variable.
6491         (extract_omp_for_data): Fill in sched_modifiers, and mask out
6492         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6493         from sched_kind.
6494         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6495         bits of OMP_CLAUSE_SCHED_KIND.
6496         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6497         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
6498         for array section reductions.
6499         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6500         for distribute parallel for, if there are lastprivate clauses on the
6501         for.
6502         (lower_rec_input_clauses): Handle non-zero low-bound on array
6503         section reductions.
6504         (lower_reduction_clauses): Likewise.
6505         (lower_send_clauses): Look through POINTER_PLUS_EXPR
6506         for array section reductions.
6507         (expand_parallel_call): Use nonmonotonic entrypoints for
6508         nonmonotonic: dynamic/guided.
6509         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6510         child_fn if current_function_decl has assembler name set, but child_fn
6511         does not.  Dump the header and IL of the child function when not in SSA
6512         form.
6513         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
6514         arguments to BUILT_IN_GOMP_TARGET.
6515         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6516         Initialize the extra _looptemp_ clause to fd->loop.n2.
6517         (expand_omp_for): Use nonmonotonic entrypoints for
6518         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
6519         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
6520         again if we have dumped any child functions.
6521         (lower_omp_for_lastprivate): Determine the right count variable
6522         for distribute simd, or distribute parallel for{, simd}.
6523         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6524         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
6525         support.
6526         (simd_clone_clauses_extract): Handle variable step
6527         for references and arguments passed by reference.
6528         (simd_clone_mangle): Mangle ref/uval/val variable steps.
6529         (simd_clone_adjust_argument_types): Handle
6530         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6531         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6532         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6533         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6534         (simd_clone_linear_addend): New function.
6535         (simd_clone_adjust): Handle variable step like similarly
6536         to constant step, use simd_clone_linear_addend to determine
6537         the actual step at runtime.
6539 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
6541         * target.def (goacc.dim_limit): New hook.
6542         * targhooks.h (default_goacc_dim_limit): Declare.
6543         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6544         * doc/tm.texi: Rebuilt.
6545         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6546         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6547         (default_goacc_dim_limit): New.
6548         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6549         (nvptx_goacc_dim_limit) New.
6550         (TARGET_GOACC_DIM_LIMIT): Override.
6551         * tree-vrp.c: Include omp-low.h, target.h.
6552         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6553         IFN_GOACC_DIM_POS.
6555 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6557         * tree-vect-generic.c (do_compare): Use -1 for true
6558         result instead of 1.
6560 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6562         * config/aarch64/aarch64.c
6563         (aarch64_can_use_per_function_literal_pools_p): New.
6564         (aarch64_use_blocks_for_constant_p): Adjust declaration
6565         and use aarch64_can_use_function_literal_pools_p.
6566         (aarch64_select_rtx_section): Update.
6568 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6570         * targhooks.c (default_get_mask_mode): Use BLKmode in
6571         case target doesn't support required vector mode.
6572         * stor-layout.c (layout_type); Check for BLKmode.
6574 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
6575             Sebastian Pop  <s.pop@samsung.com>
6577         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6578         Remove use of parameter_rename_map.
6579         (copy_def): Remove.
6580         (copy_internal_parameters): Remove.
6581         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6582         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6583         (free_sese_info): Do not free parameter_rename_map.
6584         (set_rename): Do not use parameter_rename_map.
6585         (rename_uses): Update call to set_rename.
6586         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6587         * sese.h (parameter_rename_map_t): Remove.
6588         (struct sese_info_t): Remove field parameter_rename_map.
6590 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
6591             Sebastian Pop  <s.pop@samsung.com>
6593         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6594         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6595         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6596         anonymous namespace.
6597         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6598         (isl_id_for_pbb): Use a buffer of size 10.
6599         (isl_id_for_ssa_name): Same.
6600         * sese.c (set_rename): Add more dumps.
6602 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6604         * omp-low.c (struct omp_context): Remove reduction_map field.
6605         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6606         (new_omp_context, delete_omp_context, scan_omp_target): Remove
6607         reduction_map handling.
6608         (lower_omp_target): Remove obsolete openacc reduction handling.
6610 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6612         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6614 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6615             Cesar Philippidis  <cesar@codesourcery.com>
6617         * config/nvptx/nvptx.c: Include gimple headers.
6618         (worker_red_size, worker_red_align, worker_red_name,
6619         worker_red_sym): New.
6620         (nvptx_option_override): Initialize worker reduction buffer.
6621         (nvptx_file_end): Write out worker reduction buffer var.
6622         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6623         nvptx_expand_cmp_swap): New builtin expanders.
6624         (enum nvptx_builtins): New.
6625         (nvptx_builtin_decls): New.
6626         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6627         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6628         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6629         nvptx_lockless_update): New helpers.
6630         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6631         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6632         (nvptx_goacc_reduction): New.
6633         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6634         TARGET_BUILTIN_DECL): Override.
6635         (TARGET_GOACC_REDUCTION): Override.
6637 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6638             Cesar Philippidis  <cesar@codesourcery.com>
6640         * internal-fn.def (GOACC_REDUCTION): New.
6641         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6642         * internal-fn.c (expand_GOACC_REDUCTION): New.
6643         * target.def (goacc.reduction): New OpenACC hook.
6644         * targhooks.h (default_goacc_reduction): Declare.
6645         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6646         * doc/tm.texi: Rebuilt.
6647         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6648         scan_sharing_clauses): Remove oacc reduction handling here.
6649         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6650         (oacc_lower_reduction_var_helper): Delete.
6651         (lower_oacc_reductions): New.
6652         (lower_reduction_clauses): Don't handle OpenACC reductions here.
6653         (lower_oacc_head_tail): Call lower_oacc_reductions.
6654         (oacc_gimple_assign, oacc_init_reduction_array,
6655         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6656         oacc_process_reduction_data): Delete.
6657         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
6658         dummy OpenACC gang reduction for reductions at outer level.
6659         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6660         (default_goacc_reduction): New.
6661         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6663 2015-11-04  Martin Liska  <mliska@suse.cz>
6665         * cgraphunit.c (cgraph_node::expand_thunk): Call
6666         allocate_struct_function before init_function_start.
6667         (cgraph_node::expand): Use push_cfun and pop_cfun.
6668         * config/i386/i386.c (ix86_code_end): Call
6669         allocate_struct_function before init_function_start.
6670         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6671         * function.c (init_function_start): Move preamble to all
6672         callers.
6673         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6674         (execute_one_pass): Handle newly added TODO_discard_function.
6675         (execute_pass_list_1): Terminate if cfun equals to NULL.
6676         (execute_pass_list): Do not push and pop cfun, expect that
6677         cfun is set.
6678         * tree-pass.h (TODO_discard_function): Define.
6680 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
6682         * cfganal.c (inverted_post_order_compute): Remove conditional
6683         compilation, use flag_checking.
6684         * config.in: Regenerate.
6685         * configure: Regenerate.
6686         * configure.ac: Remove ENABLE_CHECKING.
6687         * genconditions.c: Do not #undef ENABLE_CHECKING.
6688         * sese.h (bb_in_region): Comment out broken check.
6689         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6690         conditional compilation, use flag_checking.
6692 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6694         PR tree-optimization/67742
6695         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6696         field.
6697         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6698         (create_variable_info_for_1): Add and handle handle_param parameter.
6699         Add restrict handling.
6700         (create_variable_info_for): Call create_variable_info_for_1 with extra
6701         arg.
6702         (make_param_constraints): Drop restrict_name parameter.  Ignore
6703         vi->only_restrict_pointers.
6704         (intra_create_variable_infos): Call create_variable_info_for_1 with
6705         extra arg.  Remove restrict handling.  Call make_param_constraints with
6706         one fewer arg.
6708 2015-11-04  Tom de Vries  <tom@codesourcery.com>
6710         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6711         variable.
6713 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6715         * config/arm/coff.h: Remove.
6717 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
6719         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6720         check for aggregate types and beef up comment for mode check.
6722 2015-11-03  Richard Biener  <rguenther@suse.de>
6724         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6725         data references here.
6726         * tree-vect-loop.c: Include cgraph.h.
6727         (vect_analyze_loop_2): Collect data references here.
6728         * tree-vect-slp.c (find_bb_location): Inline ...
6729         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
6730         Factor in vect_slp_transform_bb.
6731         (vect_slp_transform_bb): Removed.
6732         (vect_slp_analyze_bb_1): Collect data references here.
6733         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6734         vect_slp_bb.
6735         * tree-vectorizer.h (vect_slp_bb): Declare.
6736         (vect_slp_analyze_bb): Remove.
6737         (vect_slp_transform_bb): Remove.
6738         (find_bb_location): Remove.
6739         (vect_analyze_data_refs): Remove stmt count reference parameter.
6741 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
6743         * multiple_target.c (create_dispatcher_calls): Add target check
6744         on ifunc.
6745         (create_target_clone): Change assembler name for versioned declarations.
6747 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
6748             Chung-Lin Tang  <cltang@codesourcery.com>
6750         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6751         * omp-low.c (check_omp_nesting_restrictions): Allow
6752         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6753         contexts.
6755 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
6757         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6758         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6759         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6760         builtin.
6761         (vmulxq_f32): Likewise.
6762         (vmulx_f64): New.
6763         (vmulxq_f64): Rewrite to call fmulx builtin.
6764         (vmulxs_f32): Likewise.
6765         (vmulxd_f64): Likewise.
6766         (vmulx_lane_f32): Remove.
6767         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6769 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
6771         * config/aarch64/aarch64.md (*movhf_aarch64): Use
6772         aarch64_reg_or_fp_zero for second operand.
6774 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
6776         * gimple-expr.c: Include hash-set.h and rtl.h.
6777         (mark_addressable_queue): New var.
6778         (mark_addressable): Factor actual marking into...
6779         (mark_addressable_1): ... this.  Queue it up during expand.
6780         (mark_addressable_2): New.
6781         (flush_mark_addressable_queue): New.
6782         * gimple-expr.h (flush_mark_addressable_queue): Declare.
6783         * cfgexpand.c: Include gimple-expr.h.
6784         (pass_expand::execute): Flush mark_addressable queue.
6786 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
6788         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6789         bb_no_side_effects_p tests...
6790         (tree_ssa_ifcombine_bb): ... here.
6792         PR tree-optimization/68083
6793         * tree-ssa-ifcombine.c: Include tree-ssa.h.
6794         (bb_no_side_effects_p): Test for undefined uses too.
6795         * tree-ssa.c (gimple_uses_undefined_value_p): New.
6796         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6798 2015-11-02  Jeff Law <law@redhat.com>
6800         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6801         cases where the loop latch edge is in the middle of an FSM path.
6803 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6805         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6806         (make_param_constraints): ... this.  Add and handle restrict_name
6807         parameter.  Handle is_full_var case.
6808         (intra_create_variable_infos): Use make_param_constraints.
6810 2015-11-03  Tom de Vries  <tom@codesourcery.com>
6812         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6813         make_copy_constraint call with make_constraint_from call.
6815 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
6817         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6818         PIE executables.
6820 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
6822         * builtins.h (fold_fma): Move to fold-const-call.h.
6823         * builtins.c: Include fold-const-call.h.
6824         (mathfn_built_in_2): New function, split out from...
6825         (mathfn_built_in_1): ...here.
6826         (do_real_to_int_conversion, fold_const_builtin_pow)
6827         (fold_const_builtin_logb, fold_const_builtin_significand)
6828         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6829         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6830         (fold_builtin_sincos): Use fold_const_call to handle constants.
6831         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6832         checks for ERROR_MARK.  Use fold_const_call to handle constant
6833         folds for math functions.
6834         (fold_fma): Move to fold-const-call.c.
6835         * fold-const.c: Include fold-const-call.h.
6836         * Makefile.in (OBJS): Add fold-const-call.o.
6837         (PLUGIN_HEADERS): Add fold-const-call.h.
6838         * realmpfr.h (real_from_mpfr): Allow the format to be specified
6839         directly.
6840         * realmpfr.c (real_from_mpfr): Likewise.
6841         * fold-const-call.h, fold-const-call.c: New files.
6843 2015-11-02  Julian Brown  <julian@codesourcery.com>
6845         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6846         brackets and semicolon.
6848 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
6850         Revert:
6851         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
6853         PR tree-optimization/65963
6854         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6855         LSHIFT_EXPRs as equivalent MULT_EXPRs.
6857 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
6859         PR middle-end/68166
6860         * fold-const.c: Include "md5.h".
6862 2015-11-01  Jeff Law <law@redhat.com>
6864         * vmsdbgout.c: Revert unused header file reduction patch.
6866         * config/mcore/mcore.c: Include regs.h.
6868 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
6870         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6872 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
6874         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6875         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6876         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6878 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6880         * ggc-common.c: Restore needed header for checking=release.
6882 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6884         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6886 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6888         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6889         existing varinfo for arguments.
6891 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6893         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6894         create_function_info_for.  Dump constraints generated during
6895         create_function_info_for. Move intra_create_variable_infos call and
6896         function-return-values-escape bit to ...
6897         (create_function_info_for): ... here, and merge
6898         intra_create_variable_infos call with argument loop.  Add and handle
6899         nonlocal_p parameter.
6901 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6903         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6904         updating is alap, and seperated from preceding code.  Make sure
6905         insert_vi_for_tree is seperated from surrounding code.
6907 2015-10-31  Tom de Vries  <tom@codesourcery.com>
6909         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6911 2015-10-30  Jeff Law <law@redhat.com>
6912             Nathan Sidwell  <nathan@acm.org>
6914         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6915         args.
6916         (MOVE_MAX): Set to 8.
6918 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
6920         * cgraph.c: Include context.h for offloading.
6921         * varpool.c: Include context.h and omp-low.h.
6923 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
6925         * rtl.h (contains_symbol_ref_p): Declare.
6926         (SYMBOL_REF_P): Define.
6927         * rtlanal.c (contains_symbol_ref_p: New function.
6928         * lra-constraints.c (contains_symbol_ref_p): Remove.
6929         * var-tracking.c (contains_symbol_ref): Remove.
6930         (track_expr_p): Use contains_symbol_ref_p instead of
6931         contains_symbol_ref.
6933 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
6935         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6936         * fold-const.c (get_array_ctor_element_at_index): New.
6937         (fold): Remove binary-search through CONSTRUCTOR, call previous.
6939         * fold-const.h (get_array_ctor_element_at_index): New.
6941 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
6943         * Makefile.in (OBJS): Add multiple_target.o.
6944         * attrib.c (make_attribute): Moved from config/i386/i386.c
6945         * config/i386/i386.c (make_attribute): Deleted.
6946         * multiple_target.c (create_dispatcher_calls): New.
6947         (get_attr_len): Ditto.
6948         (get_attr_str): Ditto.
6949         (separate_attrs): Ditto.
6950         (is_valid_asm_symbol): Ditto.
6951         (create_new_asm_name): Ditto.
6952         (create_target_clone): Ditto.
6953         (expand_target_clones): Ditto.
6954         (ipa_target_clone): Ditto.
6955         (ipa_dispatcher_calls): Ditto.
6956         * passes.def (pass_target_clone): Two new ipa passes.
6957         * tree-pass.h (make_pass_target_clone): Ditto.
6958         * doc/extend.texi (target_clones): New attribute description.
6960 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6962         PR rtl-optimization/68106
6963         * lra-remat.c (input_regno_present_p): Process hard regs
6964         explicitly present in machine description insns.
6965         (call_used_input_regno_present_p): Ditto.
6966         (calculate_gen_cands): Ditto.
6967         (do_remat): Ditto.
6969 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
6971         * config/arm/neon-testgen.ml: Fix comment typo.
6973 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6975         * rtlanal.c (reg_set_p): Expand function comment.
6977 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
6979         * alias.c: Remove unused headers.
6980         * asan.c: Likewise.
6981         * attribs.c: Likewise.
6982         * auto-inc-dec.c: Likewise.
6983         * auto-profile.c: Likewise.
6984         * bb-reorder.c: Likewise.
6985         * bitmap.c: Likewise.
6986         * bt-load.c: Likewise.
6987         * builtins.c: Likewise.
6988         * caller-save.c: Likewise.
6989         * calls.c: Likewise.
6990         * ccmp.c: Likewise.
6991         * cfg.c: Likewise.
6992         * cfganal.c: Likewise.
6993         * cfgbuild.c: Likewise.
6994         * cfgcleanup.c: Likewise.
6995         * cfgexpand.c: Likewise.
6996         * cfghooks.c: Likewise.
6997         * cfgloop.c: Likewise.
6998         * cfgloopanal.c: Likewise.
6999         * cfgloopmanip.c: Likewise.
7000         * cfgrtl.c: Likewise.
7001         * cgraph.c: Likewise.
7002         * cgraphbuild.c: Likewise.
7003         * cgraphclones.c: Likewise.
7004         * cgraphunit.c: Likewise.
7005         * cilk-common.c: Likewise.
7006         * combine-stack-adj.c: Likewise.
7007         * combine.c: Likewise.
7008         * compare-elim.c: Likewise.
7009         * convert.c: Likewise.
7010         * coverage.c: Likewise.
7011         * cppbuiltin.c: Likewise.
7012         * cprop.c: Likewise.
7013         * cse.c: Likewise.
7014         * cselib.c: Likewise.
7015         * data-streamer-in.c: Likewise.
7016         * data-streamer-out.c: Likewise.
7017         * data-streamer.c: Likewise.
7018         * dbxout.c: Likewise.
7019         * dce.c: Likewise.
7020         * ddg.c: Likewise.
7021         * debug.c: Likewise.
7022         * df-core.c: Likewise.
7023         * df-problems.c: Likewise.
7024         * df-scan.c: Likewise.
7025         * dfp.c: Likewise.
7026         * dojump.c: Likewise.
7027         * dominance.c: Likewise.
7028         * domwalk.c: Likewise.
7029         * double-int.c: Likewise.
7030         * dse.c: Likewise.
7031         * dumpfile.c: Likewise.
7032         * dwarf2asm.c: Likewise.
7033         * dwarf2cfi.c: Likewise.
7034         * dwarf2out.c: Likewise.
7035         * emit-rtl.c: Likewise.
7036         * except.c: Likewise.
7037         * explow.c: Likewise.
7038         * expmed.c: Likewise.
7039         * expr.c: Likewise.
7040         * final.c: Likewise.
7041         * fixed-value.c: Likewise.
7042         * fold-const.c: Likewise.
7043         * function.c: Likewise.
7044         * fwprop.c: Likewise.
7045         * gcse.c: Likewise.
7046         * generic-match-head.c: Likewise.
7047         * ggc-common.c: Likewise.
7048         * gimple-builder.c: Likewise.
7049         * gimple-expr.c: Likewise.
7050         * gimple-fold.c: Likewise.
7051         * gimple-iterator.c: Likewise.
7052         * gimple-low.c: Likewise.
7053         * gimple-match-head.c: Likewise.
7054         * gimple-pretty-print.c: Likewise.
7055         * gimple-ssa-isolate-paths.c: Likewise.
7056         * gimple-ssa-strength-reduction.c: Likewise.
7057         * gimple-streamer-in.c: Likewise.
7058         * gimple-streamer-out.c: Likewise.
7059         * gimple-walk.c: Likewise.
7060         * gimple.c: Likewise.
7061         * gimplify-me.c: Likewise.
7062         * gimplify.c: Likewise.
7063         * godump.c: Likewise.
7064         * graph.c: Likewise.
7065         * graphds.c: Likewise.
7066         * haifa-sched.c: Likewise.
7067         * hw-doloop.c: Likewise.
7068         * ifcvt.c: Likewise.
7069         * init-regs.c: Likewise.
7070         * internal-fn.c: Likewise.
7071         * ipa-chkp.c: Likewise.
7072         * ipa-comdats.c: Likewise.
7073         * ipa-cp.c: Likewise.
7074         * ipa-devirt.c: Likewise.
7075         * ipa-icf-gimple.c: Likewise.
7076         * ipa-icf.c: Likewise.
7077         * ipa-inline-analysis.c: Likewise.
7078         * ipa-inline-transform.c: Likewise.
7079         * ipa-inline.c: Likewise.
7080         * ipa-polymorphic-call.c: Likewise.
7081         * ipa-profile.c: Likewise.
7082         * ipa-prop.c: Likewise.
7083         * ipa-pure-const.c: Likewise.
7084         * ipa-ref.c: Likewise.
7085         * ipa-reference.c: Likewise.
7086         * ipa-split.c: Likewise.
7087         * ipa-utils.c: Likewise.
7088         * ipa-visibility.c: Likewise.
7089         * ipa.c: Likewise.
7090         * ira-build.c: Likewise.
7091         * ira-color.c: Likewise.
7092         * ira-conflicts.c: Likewise.
7093         * ira-costs.c: Likewise.
7094         * ira-emit.c: Likewise.
7095         * ira-lives.c: Likewise.
7096         * ira.c: Likewise.
7097         * jump.c: Likewise.
7098         * langhooks.c: Likewise.
7099         * lcm.c: Likewise.
7100         * lists.c: Likewise.
7101         * loop-doloop.c: Likewise.
7102         * loop-init.c: Likewise.
7103         * loop-invariant.c: Likewise.
7104         * loop-iv.c: Likewise.
7105         * loop-unroll.c: Likewise.
7106         * lower-subreg.c: Likewise.
7107         * lra-assigns.c: Likewise.
7108         * lra-coalesce.c: Likewise.
7109         * lra-constraints.c: Likewise.
7110         * lra-eliminations.c: Likewise.
7111         * lra-lives.c: Likewise.
7112         * lra-remat.c: Likewise.
7113         * lra-spills.c: Likewise.
7114         * lra.c: Likewise.
7115         * lto-cgraph.c: Likewise.
7116         * lto-compress.c: Likewise.
7117         * lto-opts.c: Likewise.
7118         * lto-section-in.c: Likewise.
7119         * lto-section-out.c: Likewise.
7120         * lto-streamer-in.c: Likewise.
7121         * lto-streamer-out.c: Likewise.
7122         * lto-streamer.c: Likewise.
7123         * mcf.c: Likewise.
7124         * mode-switching.c: Likewise.
7125         * modulo-sched.c: Likewise.
7126         * optabs.c: Likewise.
7127         * opts-global.c: Likewise.
7128         * passes.c: Likewise.
7129         * plugin.c: Likewise.
7130         * postreload-gcse.c: Likewise.
7131         * postreload.c: Likewise.
7132         * predict.c: Likewise.
7133         * print-tree.c: Likewise.
7134         * profile.c: Likewise.
7135         * real.c: Likewise.
7136         * realmpfr.c: Likewise.
7137         * recog.c: Likewise.
7138         * ree.c: Likewise.
7139         * reg-stack.c: Likewise.
7140         * regcprop.c: Likewise.
7141         * reginfo.c: Likewise.
7142         * regrename.c: Likewise.
7143         * regstat.c: Likewise.
7144         * reload.c: Likewise.
7145         * reload1.c: Likewise.
7146         * reorg.c: Likewise.
7147         * resource.c: Likewise.
7148         * rtl-chkp.c: Likewise.
7149         * rtl-error.c: Likewise.
7150         * rtlanal.c: Likewise.
7151         * rtlhooks.c: Likewise.
7152         * sanopt.c: Likewise.
7153         * sched-deps.c: Likewise.
7154         * sched-ebb.c: Likewise.
7155         * sched-rgn.c: Likewise.
7156         * sdbout.c: Likewise.
7157         * sel-sched-dump.c: Likewise.
7158         * sel-sched-ir.c: Likewise.
7159         * sel-sched.c: Likewise.
7160         * sese.c: Likewise.
7161         * shrink-wrap.c: Likewise.
7162         * simplify-rtx.c: Likewise.
7163         * stack-ptr-mod.c: Likewise.
7164         * statistics.c: Likewise.
7165         * stmt.c: Likewise.
7166         * stor-layout.c: Likewise.
7167         * store-motion.c: Likewise.
7168         * stringpool.c: Likewise.
7169         * symtab.c: Likewise.
7170         * target-globals.c: Likewise.
7171         * targhooks.c: Likewise.
7172         * toplev.c: Likewise.
7173         * tracer.c: Likewise.
7174         * trans-mem.c: Likewise.
7175         * tree-affine.c: Likewise.
7176         * tree-call-cdce.c: Likewise.
7177         * tree-cfg.c: Likewise.
7178         * tree-cfgcleanup.c: Likewise.
7179         * tree-chkp-opt.c: Likewise.
7180         * tree-chkp.c: Likewise.
7181         * tree-chrec.c: Likewise.
7182         * tree-complex.c: Likewise.
7183         * tree-data-ref.c: Likewise.
7184         * tree-dfa.c: Likewise.
7185         * tree-diagnostic.c: Likewise.
7186         * tree-dump.c: Likewise.
7187         * tree-eh.c: Likewise.
7188         * tree-emutls.c: Likewise.
7189         * tree-if-conv.c: Likewise.
7190         * tree-inline.c: Likewise.
7191         * tree-into-ssa.c: Likewise.
7192         * tree-iterator.c: Likewise.
7193         * tree-loop-distribution.c: Likewise.
7194         * tree-nested.c: Likewise.
7195         * tree-nrv.c: Likewise.
7196         * tree-object-size.c: Likewise.
7197         * tree-outof-ssa.c: Likewise.
7198         * tree-parloops.c: Likewise.
7199         * tree-phinodes.c: Likewise.
7200         * tree-predcom.c: Likewise.
7201         * tree-pretty-print.c: Likewise.
7202         * tree-profile.c: Likewise.
7203         * tree-scalar-evolution.c: Likewise.
7204         * tree-sra.c: Likewise.
7205         * tree-ssa-address.c: Likewise.
7206         * tree-ssa-alias.c: Likewise.
7207         * tree-ssa-ccp.c: Likewise.
7208         * tree-ssa-coalesce.c: Likewise.
7209         * tree-ssa-copy.c: Likewise.
7210         * tree-ssa-dce.c: Likewise.
7211         * tree-ssa-dse.c: Likewise.
7212         * tree-ssa-forwprop.c: Likewise.
7213         * tree-ssa-ifcombine.c: Likewise.
7214         * tree-ssa-live.c: Likewise.
7215         * tree-ssa-loop-ch.c: Likewise.
7216         * tree-ssa-loop-im.c: Likewise.
7217         * tree-ssa-loop-ivcanon.c: Likewise.
7218         * tree-ssa-loop-ivopts.c: Likewise.
7219         * tree-ssa-loop-manip.c: Likewise.
7220         * tree-ssa-loop-niter.c: Likewise.
7221         * tree-ssa-loop-prefetch.c: Likewise.
7222         * tree-ssa-loop-unswitch.c: Likewise.
7223         * tree-ssa-loop.c: Likewise.
7224         * tree-ssa-math-opts.c: Likewise.
7225         * tree-ssa-operands.c: Likewise.
7226         * tree-ssa-phiopt.c: Likewise.
7227         * tree-ssa-phiprop.c: Likewise.
7228         * tree-ssa-pre.c: Likewise.
7229         * tree-ssa-propagate.c: Likewise.
7230         * tree-ssa-reassoc.c: Likewise.
7231         * tree-ssa-scopedtables.c: Likewise.
7232         * tree-ssa-sink.c: Likewise.
7233         * tree-ssa-strlen.c: Likewise.
7234         * tree-ssa-structalias.c: Likewise.
7235         * tree-ssa-tail-merge.c: Likewise.
7236         * tree-ssa-ter.c: Likewise.
7237         * tree-ssa-threadupdate.c: Likewise.
7238         * tree-ssa-uncprop.c: Likewise.
7239         * tree-ssa-uninit.c: Likewise.
7240         * tree-ssa.c: Likewise.
7241         * tree-ssanames.c: Likewise.
7242         * tree-stdarg.c: Likewise.
7243         * tree-streamer-in.c: Likewise.
7244         * tree-streamer-out.c: Likewise.
7245         * tree-streamer.c: Likewise.
7246         * tree-switch-conversion.c: Likewise.
7247         * tree-tailcall.c: Likewise.
7248         * tree-vect-data-refs.c: Likewise.
7249         * tree-vect-generic.c: Likewise.
7250         * tree-vect-loop-manip.c: Likewise.
7251         * tree-vect-loop.c: Likewise.
7252         * tree-vect-patterns.c: Likewise.
7253         * tree-vect-slp.c: Likewise.
7254         * tree-vect-stmts.c: Likewise.
7255         * tree-vectorizer.c: Likewise.
7256         * tree-vrp.c: Likewise.
7257         * tree.c: Likewise.
7258         * tsan.c: Likewise.
7259         * ubsan.c: Likewise.
7260         * value-prof.c: Likewise.
7261         * var-tracking.c: Likewise.
7262         * varasm.c: Likewise.
7263         * varpool.c: Likewise.
7264         * vmsdbgout.c: Likewise.
7265         * vtable-verify.c: Likewise.
7266         * web.c: Likewise.
7267         * wide-int-print.cc: Likewise.
7268         * wide-int.cc: Likewise.
7269         * xcoffout.c: Likewise.
7271 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
7273         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7274         between pass numbering and execution order.
7276 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7278         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7279         check for dependencies.
7281 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7283         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7284         CDI_DOMINATORS.
7286 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7288         * real.h (format_helper): New.
7289         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7290         (real_from_target, real_nan, real_2expN, real_value_truncate)
7291         (significand_size, real_from_string2, exact_real_inverse)
7292         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7293         (real_round, real_isinteger, real_from_integer): Replace
7294         machine_mode arguments with format_helper arguments.
7295         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7296         (real_from_integer, real_nan, real_2expN, real_convert)
7297         (real_value_truncate, exact_real_truncate, real_to_target)
7298         (real_from_target, significand_size, real_powi, real_trunc)
7299         (real_floor, real_ceil, real_round, real_isinteger): Replace
7300         machine_mode arguments with format_helper arguments.
7301         (real_to_target_fmt, real_from_target_fmt): Delete.
7302         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7303         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7304         argument with real_format.
7305         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7307 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7309         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7310         (fixed_to_decimal, fixed_convert_from_real)
7311         (real_convert_from_fixed): Fix mode arguments to real_2expN.
7313 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7315         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7316         SCALAR_FLOAT_MODE_P.
7318 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7320         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7321         (completely_scalarize): Comment zero-length arrays.
7322         (get_access_replacement): Correct comment re. precondition.
7324 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7326         * config/i386/i386.c (get_builtin_code_for_version): Set priority
7327         for PROCESSOR_ZNVER1.
7328         (enum processor_model): Add M_AMDFAM17H_znver1.
7329         (struct arch_names_table): Likewise.
7330         * doc/extend.texi: ADD znver1.
7332 2015-10-30  Richard Biener  <rguenther@suse.de>
7334         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7335         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
7336         zeros to be folded to VECTOR_CSTs.
7337         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7338         * fold-const.c (fold): Use build_vector_from_ctor.
7340 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
7342         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7343         "mov %0.h[0], %1.h[0] to "neon_move".
7344         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7345         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7346         "mov_imm".
7347         (*cmovsi_insn_uxtw): Likewise.
7349 2015-10-30  Tom de Vries  <tom@codesourcery.com>
7351         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7352         unsigned, and initialize, and use initial value instead of hardcoded
7353         constant.  Add generic constraints dumping section.  Don't dump global
7354         initializers constraints dumping section if empty.  Don't update
7355         variable from if unused.
7357 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
7359         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7360         flag_checking and/or CHECKING_P to eliminate conditional compilation
7361         on ENABLE_CHECKING.
7362         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7363         * config/bfin/bfin.c (hwloop_optimize): Likewise.
7364         * config/i386/i386.c (ix86_print_operand_address): Likewise.
7365         (output_387_binary_op): Likewise.
7366         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7367         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7368         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7369         Likewise.
7370         * config/rs6000/rs6000.h: Likewise.
7371         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7373 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7375         * config/sh/sh.opt (mfdpic): Add missing period.
7377 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
7379         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7380         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7381         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7382         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7383         mcore_base_register_rtx_p, mcore_legitimate_index_p,
7384         mcore_legitimate_address_p): New functions.
7385         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7387 2015-10-29  Jeff Law  <law@redhat.com>
7389         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7390         method.
7391         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7392         * tree-ssa-threadedge.c
7393         (record_temporary_equivalences_from_stmts_at_dest): Remove
7394         backedge_seen argument and associated code which invalidated
7395         equivalences based on the value of that argument.
7396         (thread_through_normal_block): Corresponding changes.
7398 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
7400         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7401         function earlier in the file.
7402         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7403         df_regs_ever_live_p.
7405 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
7407         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7408         by ignoring it.
7410 2015-10-29  Richard Henderson  <rth@redhat.com>
7412         PR target/68124
7413         PR rtl-opt/67609
7414         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7415         sse check to the exact conditions of PR 67609.
7417 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7419         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7420         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7421         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7422         of the traditional names that TFmode uses for handling IEEE
7423         extended double. If -mfloat128, add KFmode functions for all of
7424         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7425         make TFmode use the same emulation functions as KFmode.
7426         (init_float128_ibm): Likewise.
7427         (init_float128_ieee): Likewise.
7428         (rs6000_generate_compare): For IEEE 128-bit floating point
7429         comparisons, call the unordered comparison function instead of the
7430         ordered comparison function.
7431         (rs6000_expand_float128_convert): Deal with operands that are
7432         memory operands. Restructure the code to use a switch statement on
7433         the mode. Add support for TFmode defaulting to either IBM extended
7434         double or IEEE 128-bit floating point. If the underlying types are
7435         the same, use a move instead of a conversion function.
7436         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7437         use for IEEE 128-bit floating point constants with -mfloat128.
7438         (rs6000_c_mode_for_suffix): Likewise.
7439         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7440         128-bit floating point with IBM extended double floating point.
7441         (rs6000_invalid_binary_op): Likewise.
7442         (rs6000_gen_le_vsx_permute): On little endian systems generate a
7443         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7444         types that can go in vector registers.
7445         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7446         point types that can go in vector registers on little endian
7447         PowerPC systems.
7448         (mark_swaps_for_removal): Likewise.
7449         (rs6000_analyze_swaps): Likewise.
7450         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7452         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7453         rework IEEE 128-bit floating point insns to deal with TFmode being
7454         either IBM extended double or IEEE 128-bit floating point.
7455         (IFKF): Likewise.
7456         (IBM128): Update iterator to add condition that the mode is IBM
7457         extended double.
7458         (IEEE128): New iterator for IEEE 128-bit floating point.
7459         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7460         (FLOAT128): Likewise.
7461         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7462         iterator.
7463         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7464         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7465         instead of hard coding TFmode or KFmode.
7466         (negtf2_internal): Likewise.
7467         (neg<mode>2_internal): Likewise.
7468         (abs<mode>2): Likewise.
7469         (abstf2_internal): Likewise.
7470         (abs<mode>2_internal): Likewise.
7471         (ieee_128bit_neg<mode>2): Likewise.
7472         (ieee_128bit_neg<mode>2_internal): Likewise.
7473         (ieee_128bit_abs<mode>2): Likewise.
7474         (ieee_128bit_abs<mode>2_internal): Likewise.
7475         (ieee_128bit_nabs<mode>2): Likewise.
7476         (ieee_128bit_nabs<mode>2_internal): Likewise.
7477         (extendiftf2): Add explicit conversions between 128-bit floating
7478         point types. Drop the old conversions that had become unwieldy.
7479         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7480         (extendifkf2): Likewise.
7481         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7482         (extendtfkf2): Likewise.
7483         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7484         (trunciftf2): Likewise.
7485         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7486         (truncifkf2): Likewise.
7487         (float<SDI:mode><IFKF:mode>2): Likewise.
7488         (trunckftf2): Likewise.
7489         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7490         (trunctfif2): Likewise.
7491         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7492         (extenddftf2): Rework 128-bit floating point conversions to
7493         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7494         KFmode expanders into one function.
7495         (extenddf<mode>2): Likewise.
7496         (extenddftf2_fprs): Likewise.
7497         (extenddf<mode>2_fprs): Likewise.
7498         (extenddftf2_vsx): Likewise.
7499         (extenddf<mode>2_vsx): Likewise.
7500         (extendsftf2): Likewise.
7501         (extendsf<mode>2): Likewise.
7502         (trunctfdf2): Likewise.
7503         (trunc<mode>df2): Likewise.
7504         (trunctfdf2_internal1): Likewise.
7505         (trunc<mode>df2_internal1): Likewise.
7506         (trunctfdf2_internal2): Likewise.
7507         (trunc<mode>df2_internal2): Likewise.
7508         (trunctfsf2): Likewise.
7509         (trunc<mode>sf2): Likewise.
7510         (trunctfsf2_fprs): Likewise.
7511         (trunc<mode>sf2_fprs): Likewise.
7512         (floatsit2f): Likewise.
7513         (floatsi<mode>2): Likewise.
7514         (fix_trunc_helper): Likewise.
7515         (fix_trunc_helper<mode>): Likewise.
7516         (fix_trunctfsi2): Likewise.
7517         (fix_trunc<mode>si2): Likewise.
7518         (fix_trunctfsi2_fprs): Likewise.
7519         (fix_trunc<mode>si2_fprs): Likewise.
7520         (fix_trunctfsi2_internal): Likewise.
7521         (fix_trunc<mode>si2_internal): Likewise.
7522         (fix_trunctfdi2): Likewise.
7523         (fix_trunc<mode>di2): Likewise.
7524         (fixuns_trunctf<mode>2): Likewise.
7525         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7526         (floatditf2): Likewise.
7527         (floatdi<mode>2): Likewise.
7528         (floatuns<mode>tf2): Likewise.
7529         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7530         (cmptf_internal1): Use a mode iterator to add support for both
7531         types (IFmode, TFmode) that support IBM extended double.
7532         (cmp<mode>_internal1): Likewise.
7533         (cmptf_internal2): Likewise.
7534         (cmp<mode>_internal2): Likewise.
7536         * doc/extend.texi (Floating Types): Document __ibm128 and
7537         __float128 on PowerPC.
7539         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7540         -mfloat128 and -mno-float128.
7542 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7544         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7545         floating point modes that can go in vector registers.
7546         (MODES_TIEABLE_P): Move tests for vector modes before tests for
7547         scalar floating point, so that IEEE 128-bit floating point that
7548         can go in vector registers bind with vectors and not FP.
7549         (struct rs6000_args): Add libcall field.
7551         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7552         and -mfloat128-software switches.  Replace them with a binary
7553         -mfloat128 switch.
7554         (-mfloat128): Likewise.
7556         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7557         128-bit floating point types in GPRs, even if the appropriate
7558         option enabling the type was not used.
7559         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7560         debugging.
7561         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7562         pre-decrement on IEEE 128-bit floating point values.
7563         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7564         is IEEE 128-bit floating point.
7565         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7566         128-bit floating point types that can go in vector registers.
7567         (rs6000_option_override_internal): Change -mfloat128-none and
7568         -mfloat128-software to -mfloat128, and move code to be near other
7569         VSX option handling.
7570         (rs6000_option_override_internal): Disable -mfloat128 if we don't
7571         have the Altivec ABI.
7572         (rs6000_init_builtins): Don't make TFmode use either IFmode or
7573         KFmode floating point nodes. Instead, have three separate nodes.
7574         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7575         eventually moving the long double default to IEEE 128-bit floating
7576         point.
7577         (rs6000_opt_masks): Add -mfloat128.
7578         (struct rs6000_opt_var): Fix typo in comment.
7579         (init_cumulative_args): Initialize libcall field in
7580         CUMULATIVE_ARGS.
7581         (rs6000_function_arg): Treat library functions as if they had
7582         prototypes to prevent IEEE 128-bit support functions from passing
7583         arguments in both GPRs and vector registers.
7584         (rs6000_arg_partial_bytes): Likewise.
7586         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7587         an option that can be turned on via -mcpu=<xxx>.
7589         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7590         longer used.
7592         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7593         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7594         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7595         double is IBM extended double.
7597         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7598         SUBREGs.
7600 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
7602         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7603         * genconditions.c: Define CHECKING_P in the generated code.
7604         * genextract.c: Use flag_checking in insn_extract.
7605         * gengtype.c (main): Remove conditional compilation.
7606         * gengtype.h: Likewise.
7608 2015-10-29  Jeff Law  <law@redhat.com>
7610         PR tree-optimization/67892
7611         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7612         in comment.
7613         (thread_through_normal_block): If we have seen a backedge, then
7614         do nothing.  No longer call find_jump_threads_backwards here.
7615         (thread_across_edge): Use find_jump_threads_backwards to find
7616         jump threads if the old style threader was not successful.
7617         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7618         gsi_last_nondebug_bb.  Return NULL if the block does not end
7619         with a control statement.
7620         (find_jump_threads_backwards): Setup code moved here from
7621         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
7622         single edge argument instead of name & block.
7623         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7624         prototype.
7626 2015-10-29  Tom de Vries  <tom@codesourcery.com>
7628         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7629         types.
7631 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
7633         * omp-low.c (lower_omp_target): Remove unreachable code & merge
7634         ifs.
7636 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
7638         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7640 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7642         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7643         guard_bb0 and use guard_bb throughout.
7645 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
7647         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7648         unnecessary label.
7650 2015-10-29  Richard Biener  <rguenther@suse.de>
7652         PR middle-end/68142
7653         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7654         overflow.
7656 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
7658         * alias.c: Reorder #include statements and remove duplicates.
7659         * asan.c: Likewise.
7660         * attribs.c: Likewise.
7661         * auto-inc-dec.c: Likewise.
7662         * auto-profile.c: Likewise.
7663         * bb-reorder.c: Likewise.
7664         * bt-load.c: Likewise.
7665         * builtins.c: Likewise.
7666         * caller-save.c: Likewise.
7667         * calls.c: Likewise.
7668         * ccmp.c: Likewise.
7669         * cfg.c: Likewise.
7670         * cfganal.c: Likewise.
7671         * cfgbuild.c: Likewise.
7672         * cfgcleanup.c: Likewise.
7673         * cfgexpand.c: Likewise.
7674         * cfghooks.c: Likewise.
7675         * cfgloop.c: Likewise.
7676         * cfgloopanal.c: Likewise.
7677         * cfgloopmanip.c: Likewise.
7678         * cfgrtl.c: Likewise.
7679         * cgraph.c: Likewise.
7680         * cgraphbuild.c: Likewise.
7681         * cgraphclones.c: Likewise.
7682         * cgraphunit.c: Likewise.
7683         * cilk-common.c: Likewise.
7684         * combine-stack-adj.c: Likewise.
7685         * combine.c: Likewise.
7686         * compare-elim.c: Likewise.
7687         * convert.c: Likewise.
7688         * coverage.c: Likewise.
7689         * cppbuiltin.c: Likewise.
7690         * cprop.c: Likewise.
7691         * cse.c: Likewise.
7692         * cselib.c: Likewise.
7693         * data-streamer-in.c: Likewise.
7694         * data-streamer-out.c: Likewise.
7695         * data-streamer.c: Likewise.
7696         * dbxout.c: Likewise.
7697         * dce.c: Likewise.
7698         * ddg.c: Likewise.
7699         * debug.c: Likewise.
7700         * df-core.c: Likewise.
7701         * df-problems.c: Likewise.
7702         * df-scan.c: Likewise.
7703         * dfp.c: Likewise.
7704         * dojump.c: Likewise.
7705         * dominance.c: Likewise.
7706         * double-int.c: Likewise.
7707         * dse.c: Likewise.
7708         * dumpfile.c: Likewise.
7709         * dwarf2asm.c: Likewise.
7710         * dwarf2cfi.c: Likewise.
7711         * dwarf2out.c: Likewise.
7712         * emit-rtl.c: Likewise.
7713         * except.c: Likewise.
7714         * explow.c: Likewise.
7715         * expmed.c: Likewise.
7716         * expr.c: Likewise.
7717         * final.c: Likewise.
7718         * fixed-value.c: Likewise.
7719         * fold-const.c: Likewise.
7720         * function.c: Likewise.
7721         * fwprop.c: Likewise.
7722         * gcse.c: Likewise.
7723         * generic-match-head.c: Likewise.
7724         * ggc-common.c: Likewise.
7725         * gimple-builder.c: Likewise.
7726         * gimple-expr.c: Likewise.
7727         * gimple-fold.c: Likewise.
7728         * gimple-iterator.c: Likewise.
7729         * gimple-low.c: Likewise.
7730         * gimple-match-head.c: Likewise.
7731         * gimple-pretty-print.c: Likewise.
7732         * gimple-ssa-isolate-paths.c: Likewise.
7733         * gimple-ssa-strength-reduction.c: Likewise.
7734         * gimple-streamer-in.c: Likewise.
7735         * gimple-streamer-out.c: Likewise.
7736         * gimple-walk.c: Likewise.
7737         * gimple.c: Likewise.
7738         * gimplify-me.c: Likewise.
7739         * gimplify.c: Likewise.
7740         * godump.c: Likewise.
7741         * graph.c: Likewise.
7742         * graphite-poly.c: Likewise.
7743         * haifa-sched.c: Likewise.
7744         * hw-doloop.c: Likewise.
7745         * ifcvt.c: Likewise.
7746         * incpath.c: Likewise.
7747         * init-regs.c: Likewise.
7748         * internal-fn.c: Likewise.
7749         * ipa-chkp.c: Likewise.
7750         * ipa-comdats.c: Likewise.
7751         * ipa-cp.c: Likewise.
7752         * ipa-devirt.c: Likewise.
7753         * ipa-icf-gimple.c: Likewise.
7754         * ipa-icf.c: Likewise.
7755         * ipa-inline-analysis.c: Likewise.
7756         * ipa-inline-transform.c: Likewise.
7757         * ipa-inline.c: Likewise.
7758         * ipa-polymorphic-call.c: Likewise.
7759         * ipa-profile.c: Likewise.
7760         * ipa-prop.c: Likewise.
7761         * ipa-pure-const.c: Likewise.
7762         * ipa-ref.c: Likewise.
7763         * ipa-reference.c: Likewise.
7764         * ipa-split.c: Likewise.
7765         * ipa-utils.c: Likewise.
7766         * ipa-visibility.c: Likewise.
7767         * ipa.c: Likewise.
7768         * ira-build.c: Likewise.
7769         * ira-color.c: Likewise.
7770         * ira-conflicts.c: Likewise.
7771         * ira-costs.c: Likewise.
7772         * ira-emit.c: Likewise.
7773         * ira-lives.c: Likewise.
7774         * ira.c: Likewise.
7775         * jump.c: Likewise.
7776         * langhooks.c: Likewise.
7777         * lcm.c: Likewise.
7778         * lists.c: Likewise.
7779         * loop-doloop.c: Likewise.
7780         * loop-init.c: Likewise.
7781         * loop-invariant.c: Likewise.
7782         * loop-iv.c: Likewise.
7783         * loop-unroll.c: Likewise.
7784         * lower-subreg.c: Likewise.
7785         * lra-assigns.c: Likewise.
7786         * lra-coalesce.c: Likewise.
7787         * lra-constraints.c: Likewise.
7788         * lra-eliminations.c: Likewise.
7789         * lra-lives.c: Likewise.
7790         * lra-remat.c: Likewise.
7791         * lra-spills.c: Likewise.
7792         * lra.c: Likewise.
7793         * lto-cgraph.c: Likewise.
7794         * lto-compress.c: Likewise.
7795         * lto-opts.c: Likewise.
7796         * lto-section-in.c: Likewise.
7797         * lto-section-out.c: Likewise.
7798         * lto-streamer-in.c: Likewise.
7799         * lto-streamer-out.c: Likewise.
7800         * lto-streamer.c: Likewise.
7801         * mode-switching.c: Likewise.
7802         * modulo-sched.c: Likewise.
7803         * omp-low.c: Likewise.
7804         * optabs.c: Likewise.
7805         * opts-global.c: Likewise.
7806         * passes.c: Likewise.
7807         * plugin.c: Likewise.
7808         * postreload-gcse.c: Likewise.
7809         * postreload.c: Likewise.
7810         * predict.c: Likewise.
7811         * print-tree.c: Likewise.
7812         * profile.c: Likewise.
7813         * real.c: Likewise.
7814         * realmpfr.c: Likewise.
7815         * recog.c: Likewise.
7816         * ree.c: Likewise.
7817         * reg-stack.c: Likewise.
7818         * regcprop.c: Likewise.
7819         * reginfo.c: Likewise.
7820         * regrename.c: Likewise.
7821         * regstat.c: Likewise.
7822         * reload.c: Likewise.
7823         * reload1.c: Likewise.
7824         * reorg.c: Likewise.
7825         * resource.c: Likewise.
7826         * rtl-chkp.c: Likewise.
7827         * rtl-error.c: Likewise.
7828         * rtlanal.c: Likewise.
7829         * rtlhooks.c: Likewise.
7830         * sanopt.c: Likewise.
7831         * sched-deps.c: Likewise.
7832         * sched-ebb.c: Likewise.
7833         * sched-rgn.c: Likewise.
7834         * sese.c: Likewise.
7835         * shrink-wrap.c: Likewise.
7836         * simplify-rtx.c: Likewise.
7837         * stack-ptr-mod.c: Likewise.
7838         * statistics.c: Likewise.
7839         * stmt.c: Likewise.
7840         * stor-layout.c: Likewise.
7841         * store-motion.c: Likewise.
7842         * stringpool.c: Likewise.
7843         * symtab.c: Likewise.
7844         * target-globals.c: Likewise.
7845         * targhooks.c: Likewise.
7846         * toplev.c: Likewise.
7847         * tracer.c: Likewise.
7848         * trans-mem.c: Likewise.
7849         * tree-affine.c: Likewise.
7850         * tree-call-cdce.c: Likewise.
7851         * tree-cfg.c: Likewise.
7852         * tree-cfgcleanup.c: Likewise.
7853         * tree-chkp-opt.c: Likewise.
7854         * tree-chkp.c: Likewise.
7855         * tree-chrec.c: Likewise.
7856         * tree-complex.c: Likewise.
7857         * tree-data-ref.c: Likewise.
7858         * tree-dfa.c: Likewise.
7859         * tree-diagnostic.c: Likewise.
7860         * tree-dump.c: Likewise.
7861         * tree-eh.c: Likewise.
7862         * tree-emutls.c: Likewise.
7863         * tree-if-conv.c: Likewise.
7864         * tree-inline.c: Likewise.
7865         * tree-into-ssa.c: Likewise.
7866         * tree-iterator.c: Likewise.
7867         * tree-loop-distribution.c: Likewise.
7868         * tree-nested.c: Likewise.
7869         * tree-nrv.c: Likewise.
7870         * tree-object-size.c: Likewise.
7871         * tree-outof-ssa.c: Likewise.
7872         * tree-parloops.c: Likewise.
7873         * tree-phinodes.c: Likewise.
7874         * tree-predcom.c: Likewise.
7875         * tree-pretty-print.c: Likewise.
7876         * tree-profile.c: Likewise.
7877         * tree-scalar-evolution.c: Likewise.
7878         * tree-sra.c: Likewise.
7879         * tree-ssa-address.c: Likewise.
7880         * tree-ssa-alias.c: Likewise.
7881         * tree-ssa-ccp.c: Likewise.
7882         * tree-ssa-coalesce.c: Likewise.
7883         * tree-ssa-copy.c: Likewise.
7884         * tree-ssa-dce.c: Likewise.
7885         * tree-ssa-dom.c: Likewise.
7886         * tree-ssa-dse.c: Likewise.
7887         * tree-ssa-forwprop.c: Likewise.
7888         * tree-ssa-ifcombine.c: Likewise.
7889         * tree-ssa-live.c: Likewise.
7890         * tree-ssa-loop-ch.c: Likewise.
7891         * tree-ssa-loop-im.c: Likewise.
7892         * tree-ssa-loop-ivcanon.c: Likewise.
7893         * tree-ssa-loop-ivopts.c: Likewise.
7894         * tree-ssa-loop-manip.c: Likewise.
7895         * tree-ssa-loop-niter.c: Likewise.
7896         * tree-ssa-loop-prefetch.c: Likewise.
7897         * tree-ssa-loop-unswitch.c: Likewise.
7898         * tree-ssa-loop.c: Likewise.
7899         * tree-ssa-math-opts.c: Likewise.
7900         * tree-ssa-operands.c: Likewise.
7901         * tree-ssa-phiopt.c: Likewise.
7902         * tree-ssa-phiprop.c: Likewise.
7903         * tree-ssa-pre.c: Likewise.
7904         * tree-ssa-propagate.c: Likewise.
7905         * tree-ssa-reassoc.c: Likewise.
7906         * tree-ssa-sccvn.c: Likewise.
7907         * tree-ssa-scopedtables.c: Likewise.
7908         * tree-ssa-sink.c: Likewise.
7909         * tree-ssa-strlen.c: Likewise.
7910         * tree-ssa-structalias.c: Likewise.
7911         * tree-ssa-tail-merge.c: Likewise.
7912         * tree-ssa-ter.c: Likewise.
7913         * tree-ssa-threadedge.c: Likewise.
7914         * tree-ssa-threadupdate.c: Likewise.
7915         * tree-ssa-uncprop.c: Likewise.
7916         * tree-ssa-uninit.c: Likewise.
7917         * tree-ssa.c: Likewise.
7918         * tree-ssanames.c: Likewise.
7919         * tree-stdarg.c: Likewise.
7920         * tree-streamer-in.c: Likewise.
7921         * tree-streamer-out.c: Likewise.
7922         * tree-streamer.c: Likewise.
7923         * tree-switch-conversion.c: Likewise.
7924         * tree-tailcall.c: Likewise.
7925         * tree-vect-data-refs.c: Likewise.
7926         * tree-vect-generic.c: Likewise.
7927         * tree-vect-loop-manip.c: Likewise.
7928         * tree-vect-loop.c: Likewise.
7929         * tree-vect-patterns.c: Likewise.
7930         * tree-vect-slp.c: Likewise.
7931         * tree-vect-stmts.c: Likewise.
7932         * tree-vectorizer.c: Likewise.
7933         * tree-vrp.c: Likewise.
7934         * tree.c: Likewise.
7935         * tsan.c: Likewise.
7936         * ubsan.c: Likewise.
7937         * value-prof.c: Likewise.
7938         * var-tracking.c: Likewise.
7939         * varasm.c: Likewise.
7940         * varpool.c: Likewise.
7941         * vtable-verify.c: Likewise.
7942         * web.c: Likewise.
7943         * wide-int-print.cc: Likewise.
7944         * wide-int.cc: Likewise.
7945         * xcoffout.c: Likewise.
7947 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
7949         * Makefile.in (NO_PIE_CFLAGS): New.
7950         (NO_PIE_FLAG): Likewise.
7951         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7952         (NO_PIE_FLAG_FOR_BUILD): Likewise.
7953         (BUILD_NO_PIE_CFLAGS): Likewise.
7954         (BUILD_NO_PIE_FLAG): Likewise.
7955         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7956         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7957         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7958         $(BUILD_NO_PIE_CFLAGS).
7959         (BUILD_CXXFLAGS): Likewise.
7960         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7961         $(BUILD_NO_PIE_FLAG).
7962         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
7963         (BUILD_NO_PIE_FLAG): Likewise.
7964         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7965         (NO_PIE_FLAG_FOR_BUILD): Likewise.
7966         * configure: Regenerated.
7968 2015-10-29  Richard Biener  <rguenther@suse.de>
7970         PR middle-end/56956
7971         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7972         unsigned conditonal negation to ABS_EXPR.
7974 2015-10-29  Richard Biener  <rguenther@suse.de>
7976         * gimple-match-head.c (gimple_simplify): Remove premature checking
7977         of builtin_decl_implicit of function calls we simplify.
7979 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
7981         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7982         (get_computation_cost_at): Ditto.
7983         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7984         and inv_expr_id.
7986 2015-10-28  Tom de Vries  <tom@codesourcery.com>
7988         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7989         superfluous code.
7991 2015-10-28  Jason Merrill  <jason@redhat.com>
7993         * Makefile.in (TAGS): Include libcpp and libiberty.
7995 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
7997         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7998         (extract_omp_for_data): Remove OpenACC special handling of
7999         chunking.
8001         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8002         (struct parallel): Update comment.
8003         (nvptx_reorg): Likewise.
8004         (nvptx_neuter): Cleanup whitespace.
8006 2015-10-28  Richard Henderson  <rth@redhat.com>
8008         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8010 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8012         PR target/67839
8013         * config/avr/predicates.md (low_io_address_operand): Don't
8014         consider MODE when computing upper bound.
8015         (io_address_operand): Likewise.
8017 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
8019         * fold-const.c (operand_equal_p): Do not verify that types are
8020         compatible for MEM_REFs.
8022 2015-10-28  Richard Biener  <rguenther@suse.de>
8024         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8025         in simplifying VEC_COND_EXPR conditions.
8027 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8029         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8030         into vi_next of a full_var.
8032 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8034         * tree-ssa-structalias.c (new_var_info, make_heapvar)
8035         (make_constraint_from_restrict, make_constraint_from_global_restrict)
8036         (create_function_info_for, create_variable_info_for_1)
8037         (create_variable_info_for): Add and handle add_id parameter.
8038         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8039         (init_base_vars): Add extra argument to calls to new_var_info.
8040         (get_vi_for_tree): Add extra argument to call to
8041         create_variable_info_for.
8042         (process_constraint, do_deref, process_all_all_constraints): Add extra
8043         argument to calls to new_scalar_tmp_constraint_exp.
8044         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8045         argument to calls to make_heapvar.
8046         (make_restrict_var_constraints): Add extra argument to call to
8047         make_constraint_from_global_restrict.
8048         (intra_create_variable_infos): Add extra argument to call to
8049         create_variable_info_for_1.
8050         (ipa_pta_execute): Add extra argument to call to
8051         create_function_info_for.
8053 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8055         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8056         (sibcall_value): Likewise.
8058 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8060         * config/nvptx/nvptx.h (struct machine_function): Add
8061         axis_predicate.
8062         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8063         nvptx_expand_oacc_join): Declare.
8064         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8065         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8066         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8067         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8068         UNSPECV_JOINING, UNSPECV_JOIN): New.
8069         (BITS, BITD): New mode iterators.
8070         (br_true_uni, br_false_uni): New.
8071         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8072         (oacc_dim_size, oacc_dim_pos): New.
8073         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8074         (oacc_fork, oacc_join): New.
8075         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8076         (worker_load<mode>, worker_store<mode>): New.
8077         (nvptx_barsync): New.
8078         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8079         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8080         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8081         worker_bcast_sym): New.
8082         (nvptx_option_override): Initialize worker broadcast buffer.
8083         (nvptx_emit_forking, nvptx_emit_joining): New.
8084         (nvptx_init_axis_predicate): New.
8085         (nvptx_declare_function_name): Init axis predicates.
8086         (nvptx_expand_call): Add fork/join markers around routine call.
8087         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8088         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8089         (nvptx_gen_vcast): New.
8090         (struct wcast_data_t): New.
8091         (enum propagate_mask): New.
8092         (nvptx_gen_wcast): New.
8093         (nvptx_print_operand): Add 'S' case.
8094         (struct parallel): New.
8095         (parallel::parallel, parallel::~parallel): New.
8096         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8097         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8098         nvptx_find_par, nvptx_discover_pars): New.
8099         (nvptx_propagate): New.
8100         (vprop_gen, nvptx_vpropagate): New.
8101         (wprop_gen, nvptx_wpropagate): New.
8102         (nvptx_wsync): New.
8103         (nvptx_single, nvptx_skip_par): New.
8104         (nvptx_process_pars, nvptx_neuter_pars): New.
8105         (ntptx_reorg): Split blocks, generate parallel structure, apply
8106         neutering.
8107         (nvptx_cannot_copy_insn_p): New.
8108         (nvptx_file_end): Emit worker broadcast decl.
8109         (nvptx_goacc_fork_join): New.
8110         (TARGET_CANNOT_COPY_INSN_P): Override.
8111         (TARGET_GOACC_FORK_JOIN): Override.
8113 2015-10-28  Richard Biener  <rguenther@suse.de>
8115         * fold-const.c (negate_expr_p): Adjust the division case to
8116         properly avoid introducing undefined overflow.
8117         (fold_negate_expr): Likewise.
8119 2015-10-28  Richard Biener  <rguenther@suse.de>
8121         PR tree-optimization/65962
8122         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8123         Avoid creating loop carried dependences also for outer loops
8124         of the loop a use to replace is in.
8126 2015-10-28  Richard Biener  <rguenther@suse.de>
8128         * common.opt (fchecking): New flag controlling flag_checking.
8129         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8130         * timevar.c (timer::print): Adjust output.
8131         * doc/invoke.texi (fchecking): Document.
8133 2015-10-28  Richard Biener  <rguenther@suse.de>
8135         PR middle-end/68067
8136         * fold-const.c (negate_expr_p): We cannot negate plus or minus
8137         if overflow is not wrapping.  Likewise multiplication unless
8138         one operand is constant and not power of two.
8139         (fold_negate_expr): Adjust accordingly.
8141 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8143         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8144         fields.
8145         (is_oacc_parallel, is_oacc_kernels): New.
8146         (enclosing_target_ctx): May return NULL.
8147         (ctx_in_oacc_kernels_region): New.
8148         (check_oacc_kernel_gwv): New.
8149         (oacc_loop_or_target_p): Delete.
8150         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
8151         operands.  Strip reductions fro kernels.
8152         (scan_omp_target): Don't calculate gwv mask.
8153         (lower_oacc_head_mark, lower_oacc_loop_marker,
8154         lower_oacc_head_tail): New.
8155         (struct oacc_collapse): New.
8156         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8157         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8158         Remove OpenACC handling.
8159         (expand_oacc_for): New.
8160         (expand_omp_for): Call expand_oacc_for.
8161         (lower_omp_for): Call lower_oacc_head_tail.
8163 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
8165         * attribs.c (check_attribute_tables): New function, broken out from...
8166         (init_attributes): Use it.
8167         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8168         gcc_checking_assert and checking_* functions to eliminate
8169         ENABLE_CHECKING conditionals.
8170         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8171         (pass_expand::execute): Likewise.
8172         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8173         * cgraphunit.c (mark_functions_to_output): Likewise.
8174         (cgraph_node::expand_thunk): Likewise.
8175         (symbol_table::compile): Likewise.
8176         * ddg.c (add_cross_iteration_register_deps): Likewise.
8177         (create_ddg_all_sccs): Likewise.
8178         * df-core.c (df_finish_pass, df_analyze): Likewise.
8179         * diagnostic-core.h: Likewise.
8180         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8181         * dominance.c (calculate_dominance_info): Likewise.
8182         * dwarf2out.c (add_AT_die_ref): Likewise.
8183         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8184         (loc_list_from_tree, gen_lexical_block_die): Likewise.
8185         gen_type_die_with_usage, gen_type_die): Likewise.
8186         (dwarf2out_decl): Likewise.
8187         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8188         * except.c (duplicate_eh_regions): Likewise.
8189         * fwprop.c (register_active_defs, update_df_init): Likewise.
8190         (fwprop_init, fwprop_done): Likewise.
8191         (update_uses): Likewise.
8192         * ggc-page.c (ggc_grow): Likewise.
8193         * gimplify.c (gimplify_body): Likewise.
8194         (gimplify_hasher::equal): Likewise.
8195         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8196         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8197         Likewise.
8198         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8199         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8200         * hash-table.h (::find_empty_slot_for_expand): Likewise.
8201         * ifcvt.c (if_convert): Likewise.
8202         * ipa-cp.c (ipcp_propagate_stage): Likewise.
8203         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8204         (odr_type_p, odr_types_equivalent_p): Likewise.
8205         (add_type_duplicate, get_odr_type): Likewise.
8206         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8207         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8208         (sem_item_optimizer::verify_classes): Likewise.
8209         (sem_item_optimizer::traverse_congruence_split): Likewise.
8210         (sem_item_optimizer::checking_verify_classes): New.
8211         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8212         method.
8213         * cfgrtl.c (commit_edge_insertions): Likewise.
8214         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8215         (rtl_flow_call_edges_add): Likewise.
8216         * cgraph.c (symbol_table::create_edge): Likewise.
8217         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8218         * cgraph.h (symtab_node): Likewise.
8219         (symtab_node::checking_verify_symtab_nodes): Define.
8220         (cgraph_node::checking_verify_cgraph_nodes): Define.
8221         * cfghooks.h (checking_verify_flow_info): Define.
8222         * cfgloop.h (checking_verify_loop_structure): Define.
8223         * dominance.h (checking_verify_dominators): Define.
8224         * et-forest.c: Fix comment.
8225         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8226         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8227         ENABLE_CHECKING conditionals.
8228         * ipa-inline-transform.c (save_inline_function_body): Likewise.
8229         * ipa-inline.c (inline_small_functions): Likewise.
8230         (early_inliner): Likewise.
8231         * ipa-inline.h (estimate_edge_growth): Likewise.
8232         * ipa-visibility.c (function_and_variable_visibility): Likewise.
8233         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8234         (ipa_single_use): Likewise.
8235         * ira-int.h: Likewise.
8236         * ira.c (ira): Likewise.
8237         * loop-doloop.c (doloop_optimize_loops): Likewise.
8238         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8239         * loop-invariant.c (move_loop_invariants): Likewise.
8240         * lra-assigns.c (lra_assign): Likewise.
8241         * lra-constraints.c (lra_constraints): Likewise.
8242         * lra-eliminations.c (lra_eliminate): Likewise.
8243         * lra-int.h (struct lra_reg): Likewise.
8244         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8245         (lra_create_live_ranges_1): Likewise.
8246         * lra-remat.c (create_remat_bb_data): Likewise.
8247         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8248         (lra): Likewise.
8249         (check_rtl): Always define. Remove incorrect guard around
8250         extract_constrain_insn call.
8251         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8252         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8253         ENABLE_CHECKING conditionals.
8254         * lto-streamer-out.c (DFS::DFS): Likewise.
8255         (lto_output): Likewise.
8256         * lto-streamer.c (lto_streamer_init): Likewise.
8257         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8258         expand_omp_target, execute_expand_omp): Likewise.
8259         (lower_omp_target): Likewise.
8260         * passes.c (execute_function_todo): Likewise.
8261         (execute_todo, execute_one_pass): Likewise.
8262         (verify_curr_properties): Always define.
8263         * predict.c (tree_estimate_probability: Use flag_checking,
8264         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8265         ENABLE_CHECKING conditionals.
8266         (propagate_freq): Likewise.
8267         * pretty-print.c (pp_format): Likewise.
8268         * real.c (real_to_decimal_for_mode): Likewise.
8269         * recog.c (split_all_insns): Likewise.
8270         * regcprop.c (kill_value_one_regno): Likewise.
8271         (copy_value): Likewise.
8272         (validate_value_data): Define unconditionally.
8273         * reload.c: Fix comment.
8274         * timevar.c: Include options.h
8275         * tree-ssa.h (checking_verify_ssa): Define.
8276         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8277         * sched-deps.c (CHECK): Remove unused macro.
8278         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8279         gcc_checking_assert and checking_* functions to eliminate
8280         ENABLE_CHECKING conditionals.
8281         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8282         * sel-sched.c (struct moveop_static_params): Likewise.
8283         (find_best_reg_for_expr, move_cond_jump): Likewise.
8284         (move_op_orig_expr_not_found): Likewise.
8285         (code_motion_process_successors, move_op): Likewise.
8286         * ssa-iterators.h (first_readonly_imm_use): Likewise.
8287         (next_readonly_imm_use): Likewise.
8288         * store-motion.c (compute_store_table): Likewise.
8289         * symbol-summary.h (function_summary::function_summary): Likewise.
8290         * target.h (cumulative_args_t): Likewise.
8291         (get_cumulative_args, pack_cumulative_args): Likewise.
8292         * timevar.c: (timer::print): Likewise.
8293         * trans-mem.c (ipa_tm_execute): Likewise.
8294         * tree-cfg.c (move_stmt_op): Likewise.
8295         (move_sese_region_to_fn): Likewise.
8296         (gimple_flow_call_edges_add): Likewise.
8297         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8298         Likewise.
8299         * tree-eh.c (remove_unreachable_handlers): Likewise.
8300         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8301         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8302         * tree-into-ssa.c (update_ssa): Likewise.
8303         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8304         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8305         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8306         * tree-predcom.c (suitable_component_p): Likewise.
8307         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8308         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8309         * tree-ssa-live.c (verify_live_on_entry): Likewise.
8310         * tree-ssa-live.h (register_ssa_partition): Likewise.
8311         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8312         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8313         (tree_transform_and_unroll_loop): Likewise.
8314         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8315         * tree-ssa-operands.c (get_expr_operands): Likewise.
8316         * tree-ssa-propagate.c (replace_exp_1): Likewise.
8317         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8318         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8319         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8320         * tree-ssanames.c (release_ssa_name_fn): Likewise.
8321         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8322         * tree-vect-loop-manip.c
8323         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8324         (slpeel_checking_verify_cfg_after_peeling): Likewise.
8325         (vect_do_peeling_for_loop_bound): Likewise.
8326         (vect_do_peeling_for_alignment): Likewise.
8327         * tree-vrp.c (supports_overflow_infinity): Likewise.
8328         (set_value_range): Likewise.
8329         * tree.c (free_lang_data_in_cgraph): Likewise.
8330         * value-prof.c (gimple_remove_histogram_value): Likewise.
8331         (free_hist): Likewise.
8332         * var-tracking.c (canonicalize_values_star): Likewise.
8333         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8335 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8337         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8338         IFN_GOACC_LOOP): New.
8339         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8340         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8341         IFN_UNIQUE_OACC_TAIL_MARK.
8342         (enum ifn_goacc_loop_kind): New.
8343         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8344         IFN_UNIQUE_OACC_JOIN cases.
8345         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8346         (expand_GOACC_LOOP): New.
8347         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8348         * omp-low.c: Include gimple-pretty-print.h.
8349         (struct oacc_loop): New.
8350         (enum oacc_loop_flags): New.
8351         (oacc_thread_numbers): New.
8352         (oacc_xform_loop): New.
8353         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8354         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8355         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8356         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8357         oacc_loop_discovery): New.
8358         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8359         oacc_loop_process): New.
8360         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8361         (execute_oacc_device_lower): Discover & process loops.  Process
8362         internal fns.
8363         * target.def (goacc.fork_join): Change sense of hook, clarify
8364         documentation.
8365         * doc/tm.texi: Regenerated.
8367 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8369         * target-insns.def (oacc_fork, oacc_join): Define.
8370         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8371         (goacc.fork_join): New GOACC hook.
8372         * targhooks.h (default_goacc_fork_join): Declare.
8373         * omp-low.c (default_goacc_forkjoin): New.
8374         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8375         * doc/tm.texi: Regenerate.
8377 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8379         * omp-low.c (oacc_init_rediction_array): New.
8380         (oacc_initialize_reduction_data): Initialize array.
8382 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8384         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8386 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8388         * internal-fn.c (expand_UNIQUE): New.
8389         * internal-fn.h (enum ifn_unique_kind): New.
8390         * internal-fn.def (IFN_UNIQUE): New.
8391         * target-insns.def (unique): Define.
8392         * gimple.h (gimple_call_internal_unique_p): New.
8393         * gimple.c (gimple_call_same_target_p): Check internal fn
8394         uniqueness.
8395         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8396         * tree-ssa-threadedge.c
8397         (record_temporary_equivalences_from_stmts): Likewise.
8398         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8400 2015-10-27  Richard Henderson  <rth@redhat.com>
8402         PR rtl-opt/67609
8403         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8404         narrowing subregs on SSE and MMX registers.
8405         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8406         appear to be sub-words of multi-register pseudos must be rejected.
8407         * doc/tm.texi: Regenerate.
8409 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8411         PR target/68102
8412         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8413         operands[0] is a reg before taking its REGNO in split condition.
8414         (*movdi_aarch64): Likewise.
8416 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8418         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8419         Handle floating point inner modes properly.
8421 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
8423         * tree-vect-looop.c
8424         (vectorizable_live_operation): Change iterator.
8426 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
8427             Aditya Kumar  <aditya.k7@samsung.com>
8429         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8430           function to schedule based on isl_schedule_node.
8431         (get_schedule_map_st): New schedule optimizer based on
8432         isl_schedule_node.
8433         (scop_get_domains): New. Return the isl_union_set containing the
8434         domains of all the pbbs.
8435         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8437 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
8439         PR target/67215
8440         * calls.c (prepare_call_address): Don't handle -fno-plt here.
8441         * config/i386/i386.c (ix86_expand_call): Generate indirect call
8442         via GOT for -fno-plt.  Support indirect call via GOT for x32.
8443         * config/i386/predicates.md (sibcall_memory_operand): Allow
8444         GOT memory operand.
8446 2015-10-27  Richard Biener  <rguenther@suse.de>
8448         PR tree-optimization/68104
8449         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8450         strided access check ...
8451         (vect_compute_data_refs_alignment): ... here.
8453 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
8454             Joseph Myers  <joseph@codesourcery.com>
8455             Mark Shinwell  <shinwell@codesourcery.com>
8456             Andrew Stubbs  <ams@codesourcery.com>
8457             Rich Felker <dalias@libc.org>
8459         * config.gcc: Handle --enable-fdpic.
8460         * config/sh/constraints.md (Ccl): New constraint.
8461         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8462         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8463         __SH_FDPIC__.
8464         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8465         library functions.
8466         * config/sh/sh-protos.h (function_symbol_result): New struct.
8467         (function_symbol): Return function_symbol_result.
8468         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8469         declarations.
8470         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8471         target hook.
8472         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8473         (sh_option_override): Force -fPIC if FDPIC is in effect.
8474         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8475         UNSPEC_GOTOFFFUNCDESC cases.
8476         (prepare_move_operands): Use FDPIC initial GOT register for
8477         TLS-related GOT access; inhibit cross-section address offset constants
8478         for FDPIC.
8479         (sh_assemble_integer): New function.
8480         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8481         PC-relative call sites.
8482         (expand_ashiftrt): Adapt invocation of function_symbol.
8483         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8484         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8485         UNSPEC_GOTOFFFUNCDESC.
8486         (legitimize_pic_address): Resolve function symbols to function
8487         descriptors for FDPIC.  Do not use GOT-relative addressing for local
8488         data that may be read-only on FDPIC.
8489         (sh_emit_storesi, sh_emit_storehi): New functions.
8490         (sh_trampoline_init): Generate FDPIC trampolines.
8491         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8492         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8493         (sh_output_mi_thunk): Generate FDPIC call.
8494         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
8495         FDPIC, generate call site labels to use PC-relative addressing rather
8496         than GOT-relative addressing.
8497         (sh_conditional_register_usage): Make PIC register fixed and call used
8498         when FDPIC is in effect.
8499         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8500         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8501         sh_get_fdpic_reg_initial_val): New functions.
8502         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8503         Handle -mfdpic.
8504         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8505         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8506         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8507         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8508         FDPIC_SELF_SPECS.
8509         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8510         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8511         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8512         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8513         constants.
8514         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8515         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8516         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8517         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8518         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8519         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8520         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8521         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8522         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8523         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8524         block_move_real, block_lump_real, block_move_real_i4,
8525         block_lump_real_i4): Add support for FDPIC calls.
8526         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8527         call_value_pop): Adjust for new function_symbol signature.
8528         * config/sh/sh.opt (-mfdpic): New option.
8529         * doc/install.texi (Options specification): Document --enable-fdpic.
8530         * doc/invoke.texi (SH Options): Document -mfdpic.
8533 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
8535         PR tree-optimization/65963
8536         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8537         LSHIFT_EXPRs as equivalent MULT_EXPRs.
8539 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8541         PR target/67929
8542         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8543         * config/arm/constraints.md (Dp): Update callsite.
8544         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8546 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8548         * builtins.c (fold_builtin_load_exponent): Rename to...
8549         (fold_const_builtin_load_exponent): ...this and only handle
8550         constant arguments.
8551         (fold_builtin_2): Update accordingly.
8552         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8554 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8556         * builtins.c (fold_builtin_logb): Rename to...
8557         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8558         (fold_builtin_significand): Rename to...
8559         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8560         (fold_builtin_1): Update accordingly.
8562 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8564         * builtins.c (fold_builtin_fmin_fmax): Delete.
8565         (fold_builtin_2): Handle constant fmin and fmax arguments here.
8566         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8568 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
8570         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8571         for register extension into sign and zero register extension.
8572         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8573         for sign and zero register extension.
8574         (cortexa57_addrcost_table): Likewise.
8575         (xgene1_addrcost_table): Likewise.
8577 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8579         * fold-const.c (fold_minmax): Delete.
8580         (fold_binary_loc): Don't call it.
8581         * match.pd: Add rules previously handled by fold_minmax.
8583 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8585         * builtins.c (fold_builtin_fma): Remove constant handling.
8586         (fold_builtin_3): Handle constant fma arguments here.
8588 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8590         * builtins.c (fold_builtin_fabs): Remove constant handling.
8591         (fold_builtin_abs): Likewise.
8593 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8595         * builtins.c (fold_builtin_copysign): Delete.
8596         (fold_builtin_2): Handle constant copysign arguments here.
8597         * match.pd: Add rules previously handled by fold_builtin_copysign.
8599 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8601         * builtins.c (fold_builtin_signbit): Delete.
8602         (fold_builtin_2): Handle constant signbit arguments here.
8603         * match.pd: Add rules previously handled by fold_builtin_signbit.
8605 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8607         * match.pd: Handle sqrt(x) cmp 0 specially.
8609 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
8611         * tree-vect-generic.c (expand_vector_operations_1): Check
8612         optab type before using it.
8614 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8616         * config/aarch64/aarch64-protos.h
8617         (struct tune_params): Add autoprefetcher_model field.
8618         * config/aarch64/aarch64.c: Include params.h
8619         (generic_tunings): Specify autoprefetcher_model value.
8620         (cortexa53_tunings): Likewise.
8621         (cortexa57_tunings): Likewise.
8622         (cortexa72_tunings): Likewise.
8623         (thunderx_tunings): Likewise.
8624         (xgene1_tunings): Likewise.
8625         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8626         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8627         (aarch64_override_options_internal): Set
8628         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8630 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8632         * builtins.c (fold_builtin_exponent): Delete.
8633         (fold_builtin_2): Handle constant expN arguments here.
8634         * match.pd: Fold expN(logN(x)) -> x.
8636 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8638         * builtins.c (fold_builtin_powi): Delete.
8639         (fold_builtin_2): Handle constant powi arguments here.
8640         * match.pd: Add rules previously handled by fold_builtin_powi.
8642 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8644         * builtins.c (fold_builtin_pow): Delete in favor of...
8645         (fold_const_builtin_pow): ...this new function.  Only handle constant
8646         arguments.
8647         (fold_builtin_2): Update accordingly.
8648         * match.pd: Add rules previously handled by fold_builtin_pow.
8650 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8652         * builtins.c (fold_builtin_hypot): Delete.
8653         (fold_builtin_2): Handle constant hypot arguments here.
8654         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
8655         hypot(x, x) to fabs(x)*sqrt(2).
8657 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
8659         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8660         instead of make_ssa_name if not yet in SSA form.
8662 2015-10-27  Richard Biener  <rguenther@suse.de>
8664         * cfg.c (free_edge): Add function argument and use it instead of cfun.
8665         (clear_edges): Likewise.
8666         * cfg.h (clear_edges): Adjust prototype.
8667         * cfgexpand.c (pass_expand::execute): Adjust.
8668         * cfgloop.c (release_recorded_exits): Add function argument and use
8669         it instead of cfun.
8670         * cfgloop.h (release_recorded_exits): Adjust prototype.
8671         (loops_state_satisfies_p): Add overload with function argument.
8672         (loops_state_set): Likewise.
8673         (loops_state_clear): Likewise.
8674         (struct loop_iterator): Add function argument to constructor
8675         and iterator and use it instead of cfun.
8676         (FOR_EACH_LOOP_FN): New macro.
8677         (loop_optimizer_finalize): Add overload with function argument.
8678         * loop-init.c (loop_optimizer_init): Adjust.
8679         (fix_loop_structure): Likewise.
8680         (loop_optimizer_finaliz): Add function argument and use it
8681         instead of cfun.
8682         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8683         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8684         * cgraph.c (release_function_body): Do not push/pop cfun.
8685         * final.c (rest_of_clean_state): Adjust.
8686         * graphite.c (graphite_finalize): Likewise.
8687         * tree-ssa-copy.c (fini_copy_prop): Likewise.
8688         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8689         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8690         (tree_unroll_loops_completely): Likewise.
8691         (pass_complete_unrolli::execute): Likewise.
8692         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8693         Add function argument and use it instead of cfun.
8694         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8695         Adjust prototype.
8696         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8697         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8698         instead of cfun.
8699         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8700         * tree-ssanames.c (fini_ssanames): Add function argument and use it
8701         instead of cfun.
8702         * tree-ssanames.c (fini_ssanames): Adjust prototype.
8703         * tree-vrp.c (execute_vrp): Adjust.
8704         * value-prof.c (free_histograms): Add function argument and use it
8705         instead of cfun.
8706         * value-prof.h (free_histograms): Adjust prototype.
8708 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8710         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8711         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8712         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
8714 2015-10-27  Tom de Vries  <tom@codesourcery.com>
8716         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8717         field_type.
8719 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
8721         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8722         (inv_can_prop_to_addr_use): New function.
8723         (record_use): Call can_prop_to_addr_uses, set the new field.
8724         (get_inv_cost): Count cost if inv can't be propagated into its
8725         address uses.
8727 2015-10-26  Doug Evans  <dje@google.com>
8729         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8731 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
8733         * match.pd (fold_widened_comparison): Apply simplifications to all
8734         integral types.
8736 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
8738         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8739         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8740         * doc/tm.texi: Regenerated.
8741         * reorg.c (dbr_schedule): Use new hook.
8742         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8744 2015-10-26  Jeff Law  <law@redhat.com>
8746         PR tree-optimization/68013
8747         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8748         Make sure the first block in the path is in VISITED_BBs.
8750 2015-10-26  Richard Biener  <rguenther@suse.de>
8751         Dominik Vogt  <vogt@linux.vnet.ibm.com>
8753         PR middle-end/67443
8754         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8755         Properly prune ref->ref for accesses outside of ref.
8757 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8759         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8760         new statements to be inserted if inplace.  Allow calls to have
8761         nonempty sequences.
8763 2015-10-26  Richard Biener  <rguenther@suse.de>
8765         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8766         (do_valueize): New function.
8767         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8768         replace_uses_by.
8769         * tree-ssa-threadedge.c: Remove builtins.h include, include
8770         gimple-fold.h
8771         (fold_assignment_stmt): Remove.
8772         (threadedge_valueize): New function.
8773         (record_temporary_equivalences_from_stmts): Use
8774         gimple_fold_stmt_to_constant_1, note additional cleanup
8775         opportunities.
8777 2015-10-26  Richard Biener  <rguenther@suse.de>
8779         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8780         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8782 2015-10-26  Alan Hayward <alan.hayward@arm.com>
8784         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8785         VEC_COND_EXPR types.
8787 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8789         * auto-inc-dec.c (insert_move_insn_before): Delete.
8790         (attempt_change): Remember to cost the simple move in the
8791         FORM_PRE_ADD and FORM_POST_ADD cases.
8793 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8795         PR target/68091
8796         * config/sh/sh.c (sh_vector_mode_supported_p): Use
8797         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8799 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8801         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8802         factored out of ...
8803         (intra_create_variable_infos): ... here.
8805 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8807         * tree-ssa-structalias.c (intra_create_variable_infos): Add
8808         restrict_pointer_p and recursive_restrict_p variables.
8810 2015-10-26  Tom de Vries  <tom@codesourcery.com>
8812         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8813         get_vi_for_tree call.
8815 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8817         PR middle-end/67989
8818         * optabs.c (expand_atomic_compare_and_swap): Handle case when
8819         ptarget_oval or ptarget_bool are const0_rtx.
8821 2015-10-26  Christian Bruel  <christian.bruel@st.com>
8823         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8824         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8825         * cp/method.c (implicitly_declare_fn): Likewise.
8826         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8827         * java/class.c (add_method_1): Likewise.
8829 2015-10-26  Richard Biener  <rguenther@suse.de>
8831         * alloc-pool.h (base_pool_allocator): Use placement new.
8832         (base_pool_allocator::remove): Likewise.  Compute size outside of
8833         flag_checking.
8835 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8837         * builtins.c (do_real_to_int_conversion): New function.
8838         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8839         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8840         arguments here.
8841         * match.pd: Add rules previously handled by fold_fixed_mathfn
8842         and fold_builtin_int_roundingfn.
8844 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
8846         * match.pd: Use macros to define built-in operator lists.
8848 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
8849             Richard Biener  <rguenther@suse.de>
8851         * genmatch.c (dt_simplify::gen): Skip captures that are
8852         part of the result.
8853         (parser::parse_expr): Allow captures in results too.
8854         * builtins.c (fold_builtin_cexp): Delete.
8855         (fold_builtin_1): Handle constant cexp arguments here.
8856         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8858 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
8860         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8861         conditional compilation.
8862         (base_pool_allocator::remove): Use flag_checking.
8864 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
8866         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8868         PR middle-end/68079
8869         * dojump.c (do_compare_and_jump): Canonicalize both function and
8870         method types.
8872 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
8874         PR target/68084
8875         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8876         for =@ccae.
8878 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8880         PR ipa/pr67600
8881         * ipa-polymorphic-call.c
8882         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8883         instance offset with offset of outer type.
8885 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8887         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8889 2015-10-23  Caroline Tice  <cmtice@google.com>
8891         (from Richard Biener
8892         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
8893         call to iterative_hash_host_wide_int.
8895 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
8897         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8898         Define as yes.
8900 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8902         * tree-vect-generic.c (expand_vector_operations_1): Check
8903         optab exists before use it.
8905 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8907         * tree-vect-generic.c (expand_vector_condition): Avoid
8908         uninitialized variable warning.
8910 2015-10-23  Jeff Law  <law@redhat.com>
8912         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8913         here.  Instead...
8914         (execute_todo): Call it here.
8915         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8916         statistics
8917         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8919 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
8920             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8922         * config.gcc (enable_secureplt): Add *-linux*-musl*.
8924 2015-10-23  Jeff Law  <law@redhat.com>
8926         PR tree-optimization/67830
8927         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8928         Explicitly verify the mask has no bits outside the type of
8929         the innermost operands.
8931 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
8932             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8934         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8935         (MUSL_DYNAMIC_LINKER64): Define.
8936         (GNU_USER_DYNAMIC_LINKER32): Update.
8937         (GNU_USER_DYNAMIC_LINKER64): Update.
8938         (CHOOSE_DYNAMIC_LINKER): Update.
8940         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8941         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8942         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8943         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8944         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8945         (CHOOSE_DYNAMIC_LINKER): Update.
8946         (INCLUDE_DEFAULTS): Redefine.
8948         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8950 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8952         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8953         comparing addresses.
8955 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
8957         * fold-const.c (operand_equal_p): Handle matching of vector
8958         constructors.
8960 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
8962         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8964 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
8965             Andrew Pinski  <apinski@cavium.com>
8967         PR rtl-optimization/67736
8968         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8969         of gen_lowpart.
8971 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
8973         PR middle-end/68066
8974         * tree.c (build_truth_vector_type): Support BLK mode
8975         returned for boolean vector.
8977 2015-10-23  Alan Hayward <alan.hayward@arm.com>
8979         PR tree-optimization/65947
8980         * tree-vect-loop.c
8981         (vect_is_simple_reduction_1): Find condition reductions.
8982         (vect_model_reduction_cost): Add condition reduction costs.
8983         (get_initial_def_for_reduction): Add condition reduction initial var.
8984         (vect_create_epilog_for_reduction): Add condition reduction epilog.
8985         (vectorizable_reduction): Condition reduction support.
8986         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8987         * doc/sourcebuild.texi (Vector-specific attributes): Document
8988         vect_max_reduc
8990 2015-10-23  Richard Biener  <rguenther@suse.de>
8992         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8993         and builtins.def.
8995 2015-10-23  Richard Biener  <rguenther@suse.de>
8996             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8998         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8999         into (A ^ B) - B to match.pd
9000         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9002         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9003         New simplifier.
9004         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9005         New simplifier.
9006         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9007         New simplifier.
9008         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9009         New simplifier.
9010         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9011         INTEGER_CST@1)): New simplifier.
9013 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
9015         * builtins.c (integer_valued_real_p): Move to fold-const.c.
9016         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9017         (fold_builtin_ceil, fold_builtin_round): Delete.
9018         (fold_builtin_1): Handle constant trunc, floor, ceil and round
9019         arguments here.
9020         * convert.c (convert_to_real): Remove narrowing of rounding
9021         functions.
9022         * fold-const.h (integer_valued_real_unary_p)
9023         (integer_valued_real_binary_p, integer_valued_real_call_p)
9024         (integer_valued_real_single_p, integer_valued_real_p): Declare.
9025         * fold-const.c (tree_single_nonnegative_warnv_p): Move
9026         name_registered_for_update_p check to SSA_NAME case statement.
9027         Don't call tree_simple_nonnegative_warnv_p for SSA names.
9028         (integer_valued_real_unary_p, integer_valued_real_binary_p)
9029         (integer_valued_real_call_p, integer_valued_real_single_p)
9030         (integer_valued_real_invalid_p): New functions.
9031         (integer_valued_real_p): Move from fold-const.c and rework
9032         to call the functions above.  Handle SSA names.
9033         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9034         * gimple-fold.c (gimple_assign_integer_valued_real_p)
9035         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9036         (gimple_stmt_integer_valued_real_p): New functions.
9037         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9038         Fold f(x)->x for the same f if x is known to be integer-valued.
9039         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9040         the result.  Canonicalize floor(x) as trunc(x) if x is
9041         nonnegative.
9043 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9045         * tree-ssa-structalias.c (intra_create_variable_infos): Use
9046         make_constraint_from.
9048 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9050         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9051         setting of is_full_var in case of a single field.
9053 2015-10-22  Martin Sebor  <msebor@redhat.com>
9055         PR driver/68043
9056         * config/i386/i386.opt: Add missing periods to the ends of sentences.
9057         * config/msp430/msp430.opt: Same.
9059 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9061         * doc/extend.exp (Global Register Variables): Rewrite.
9063 2015-10-22  Jeff Law  <law@redhat.com>
9065         * genattrtab.c (main): If we do not have any annul-true or annul-false
9066         slots, then write out a dummy eligible_for_annul_true or
9067         eligible_for_annul_false as needed.
9069 2015-10-22  Nick Clifton  <nickc@redhat.com>
9071         * config/msp430/msp430.opt: Add -msilicon-errata and
9072         -msilicon-errata-warn.
9073         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9074         assembler.
9075         * doc/invoke.texi: Document new options.
9077 2015-10-22  Richard Biener  <rguenther@suse.de>
9079         PR tree-optimization/58497
9080         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9081         (expand_vector_operations_1): Use it.  Lower operations on
9082         all uniform vectors to scalar operations if the HW supports it.
9084 2015-10-22  Richard Biener  <rguenther@suse.de>
9086         PR tree-optimization/19049
9087         PR tree-optimization/65962
9088         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9089         to strided accesses if single-element interleaving doesn't work.
9091 2015-10-22  Richard Biener  <rguenther@suse.de>
9093         PR middle-end/68046
9094         PR middle-end/61893
9095         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9096         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9097         (expand_unop): Likewise.
9099 2015-10-22  Richard Biener  <rguenther@suse.de>
9101         * fold-const.c (fold_addr_of_array_ref_difference): Properly
9102         convert operands before folding a MINUS_EXPR.
9103         (fold_binary_loc): Move simplification of MINUS_EXPR on
9104         converted POINTER_PLUS_EXPRs ...
9105         * match.pd: ... here.
9107 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9109         * builtins.c (fold_builtin_tan): Delete.
9110         (fold_builtin_1): Handle constant tan arguments here.
9111         * match.pd: Simplify (tan (atan x)) to x.
9113 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9115         * builtins.c (fold_builtin_cproj): Delete.
9116         (fold_builtin_1): Handle constant arguments here.
9117         (build_complex_cproj): Move and rename to...
9118         * tree.c: (build_complex_inf): ...this.
9119         * tree.h (build_complex_inf): Declare.
9120         * match.pd: Fold cproj(x)->x if x has no infinity.
9121         Use build_complex_inf for existing cproj rules.
9123 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9125         PR target/68015
9126         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9127         already have a comparison result.
9129 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9131         PR target/63304
9132         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9133         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9134         (aarch64_classify_address): Likewise.
9135         (aarch64_secondary_reload): Likewise.
9136         (aarch64_override_options_after_change_1): Adjust.
9137         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9138         Use aarch64_nopcrelative_literal_loads.
9139         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9140         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9141         Declare.
9143 2015-10-21  Martin Sebor  <msebor@redhat.com>
9145         PR driver/68043
9146         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9147         (print_filtered_help): Reference aliased option's name and encourage
9148         readers to use it in preference to the alias if the former is not
9149         documented.  Mention when using an option is diagnosed.
9150         * gcc.c (display_help): End each sentence with a period.
9152         * common.opt: End each sentence that describes an option with
9153         a period.
9154         * config/aarch64/aarch64.opt: Same.
9155         * config/alpha/alpha.opt: Same.
9156         * config/arc/arc.opt: Same.
9157         * config/arm/arm.opt: Same.
9158         * config/avr/avr.opt: Same.
9159         * config/bfin/bfin.opt: Same.
9160         * config/c6x/c6x.opt: Same.
9161         * config/cr16/cr16.opt: Same.
9162         * config/cris/cris.opt: Same.
9163         * config/cris/linux.opt: Same.
9164         * config/darwin.opt: Same.
9165         * config/epiphany/epiphany.opt: Same.
9166         * config/fr30/fr30.opt: Same.
9167         * config/frv/frv.opt: Same.
9168         * config/ft32/ft32.opt: Same.
9169         * config/g.opt: Same.
9170         * config/h8300/h8300.opt: Same.
9171         * config/i386/cygming.opt: Same.
9172         * config/i386/djgpp.opt: Same.
9173         * config/i386/i386.opt: Same.
9174         * config/i386/interix.opt: Same.
9175         * config/i386/mingw-w64.opt: Same.
9176         * config/i386/mingw.opt: Same.
9177         * config/ia64/ia64.opt: Same.
9178         * config/ia64/ilp32.opt: Same.
9179         * config/iq2000/iq2000.opt: Same.
9180         * config/linux.opt: Same.
9181         * config/lm32/lm32.opt: Same.
9182         * config/lynx.opt: Same.
9183         * config/m32c/m32c.opt: Same.
9184         * config/m32r/m32r.opt: Same.
9185         * config/m68k/ieee.opt: Same.
9186         * config/m68k/m68k.opt: Same.
9187         * config/mcore/mcore.opt: Same.
9188         * config/mep/mep.opt: Same.
9189         * config/microblaze/microblaze.opt: Same.
9190         * config/mips/mips.opt: Same.
9191         * config/mmix/mmix.opt: Same.
9192         * config/mn10300/mn10300.opt: Same.
9193         * config/moxie/moxie.opt: Same.
9194         * config/msp430/msp430.opt: Same.
9195         * config/nios2/elf.opt: Same.
9196         * config/nios2/nios2.opt: Same.
9197         * config/nvptx/nvptx.opt: Same.
9198         * config/pa/pa-hpux.opt: Same.
9199         * config/pa/pa-hpux1010.opt: Same.
9200         * config/pa/pa-hpux1111.opt: Same.
9201         * config/pa/pa-hpux1131.opt: Same.
9202         * config/pa/pa.opt: Same.
9203         * config/pa/pa64-hpux.opt: Same.
9204         * config/pdp11/pdp11.opt: Same.
9205         * config/rl78/rl78.opt: Same.
9206         * config/rs6000/476.opt: Same.
9207         * config/rs6000/aix64.opt: Same.
9208         * config/rs6000/darwin.opt: Same.
9209         * config/rs6000/linux64.opt: Same.
9210         * config/rs6000/rs6000.opt: Same.
9211         * config/rs6000/sysv4.opt: Same.
9212         * config/s390/s390.opt: Same.
9213         * config/s390/tpf.opt: Same.
9214         * config/sh/sh.opt: Same.
9215         * config/sol2.opt: Same.
9216         * config/sparc/long-double-switch.opt: Same.
9217         * config/sparc/sparc.opt: Same.
9218         * config/spu/spu.opt: Same.
9219         * config/stormy16/stormy16.opt: Same.
9220         * config/tilegx/tilegx.opt: Same.
9221         * config/tilepro/tilepro.opt: Same.
9222         * config/v850/v850.opt: Same.
9223         * config/vax/vax.opt: Same.
9224         * config/visium/visium.opt: Same.
9225         * config/vms/vms.opt: Same.
9226         * config/vxworks.opt: Same.
9227         * config/xtensa/xtensa.opt: Same.
9229 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9230             Sebastian Pop  <s.pop@samsung.com>
9232         * graphite-scop-detection.c (parameter_index_in_region): Update call to
9233         invariant_in_sese_p_rec.
9234         * graphite-sese-to-poly.c (extract_affine): Same.
9235         * sese.c (invariant_in_sese_p_rec): Pass in an extra
9236         parameter has_vdefs.
9237         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9238         variable depends on virtual definitions in the current region.
9239         * sese.h (invariant_in_sese_p_rec): Update declaration.
9241 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9242             Sebastian Pop  <s.pop@samsung.com>
9244         * graphite-scop-detection.c (build_scops): Do not handle scops
9245         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9246         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9248 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
9250         * config.in: Regenerate.
9251         * configure: Regenerate.
9252         * configure.ac (CHECKING_P): Define.
9253         * system.h: Use CHECKING_P.
9255 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9257         PR ipa/67056
9258         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9259         is negative we don't know the type.
9260         (check_stmt_for_type_change): Skip constructors of non-polymorphic
9261         types as those won't help devirutalization.
9263 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9265         * fold-const.c (operand_equal_p): Add code matching empty constructors.
9267 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
9269         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9270         comments.
9271         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9272         Add comments on sign of the result.
9273         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9274         Recurse on operand #1 instead of operand #0.
9275         <CEIL_MOD_EXPR>: Do not recurse.
9276         <ROUND_MOD_EXPR>: Likewise.
9278 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9280         * cfgrtl.c (pass_free_cfg::execute): Adjust.
9281         * final.c (dbr_sequence_length): Always define.
9282         (shorten_branches): Adjust.
9283         * genattr-common.c (main): Always define DELAY_SLOTS.
9284         * genattr.c (main): Unconditionally declare functions and define
9285         macros related to delay slots.
9286         * genattrtab.c (write_eligible_delay): Adjust.
9287         (main): Always write out delay slot functions.
9288         * opts.c (default_options_table): Adjust.
9289         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9290         (redirect_with_delay_list_safe_p): Likewise.
9291         (fill_simple_delay_slots): Likewise.
9292         (fill_slots_from_thread): Likewise.
9293         (make_return_insns): Likewise.
9294         (dbr_schedule): Likewise.
9295         (rest_of_handle_delay_slots): Likewise.
9296         (pass_delay_slots::gate): Likewise.
9297         * toplev.c (process_options): Likewise.
9299 2015-10-21  Richard Henderson  <rth@redhat.com>
9301         * targhooks.c (default_addr_space_pointer_mode): Remove check
9302         for generic address space.
9303         (default_addr_space_address_mode): Likewise.
9304         (default_addr_space_valid_pointer_mode): Likewise.
9305         (default_addr_space_legitimate_address_p): Likewise.
9306         (default_addr_space_legitimize_address): Likewise.
9307         * target.def (addr_space.pointer_mode): Update documentation
9308         of default behavior.
9309         (addr_space.address_mode): Likewise.
9310         * tm.texi: Update.
9312         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9313         address spaces.
9315 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9317         * builtins.c (fold_builtin_cabs): Delete.
9318         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
9319         * match.pd: Add rules previously handled by fold_builtin_cabs.
9321 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9323         * fold-const.h (fold_strip_sign_ops): Delete.
9324         * fold-const.c (fold_strip_sign_ops): Likewise.
9325         (fold_unary_loc, fold_binary_loc): Remove calls to it.
9326         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9327         (fold_builtin_ccos): Delete.
9328         (fold_builtin_pow): Don't call fold_strip_sign_ops.
9329         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9330         Remove fndecl argument.
9331         (fold_builtin_1): Update calls accordingly.  Handle constant
9332         cos, cosh, ccos and ccosh here.
9334 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9336         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9337         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9338         * common.opt (fssa-backprop): New option.
9339         * fold-const.h (negate_mathfn_p): Declare.
9340         * fold-const.c (negate_mathfn_p): Make public.
9341         * timevar.def (TV_TREE_BACKPROP): New.
9342         * tree-pass.h (make_pass_backprop): Declare.
9343         * passes.def (pass_backprop): Add.
9344         * gimple-ssa-backprop.c: New file.
9346 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9347             Sebastian Pop  <s.pop@samsung.com>
9349         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9350         Do not call create_empty_if_region_on_edge when cond_expr is true.
9351         (translate_isl_ast_node_for): Check whether a guard has been generated.
9353 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9355         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9356         (operator=): Removed.
9357         (dr_info): Make alias_set number the last argument with default
9358         value of invalid_alias_set.
9359         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9360         of dr_info.
9361         (rewrite_reductions_out_of_ssa): Iterate only through the
9362         basic blocks which are inside region.
9363         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9364         * sese.h (struct sese_l): Removed assignment operator.
9365         (split_region_for_bb): Removed dead code.
9367 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9369         * graphite-poly.h (struct dr_info): Removed conversion constructor.
9370         (struct scop): Renamed scop::region to scop::scop_info
9371         (scop_set_region): Same.
9372         (SCOP_REGION): Removed
9373         (SCOP_CONTEXT): Removed.
9374         (POLY_SCOP_P): Removed.
9375         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9376         Rename scop->region to scop->scop_info.
9377         (add_parameters_to_ivs_params): Same.
9378         (graphite_regenerate_ast_isl): Same.
9379         * graphite-poly.c (new_scop): Same.
9380         (free_scop): Same.
9381         (print_scop_params): Same.
9382         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9383         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9384         (dot_all_scops_1): Rename scop->region to scop->scop_info.
9385         (scop_detection::nb_pbbs_in_loops): Same.
9386         (find_scop_parameters): Same.
9387         (try_generate_gimple_bb): Same.
9388         (gather_bbs::before_dom_children): Same.
9389         (gather_bbs::after_dom_children): Same.
9390         (build_scops): Same.
9391         * graphite-sese-to-poly.c (build_scop_scattering): Same.
9392         (extract_affine_chrec): Same.
9393         (extract_affine): Same.
9394         (set_scop_parameter_dim): Same.
9395         (build_loop_iteration_domains): Same.
9396         (create_pw_aff_from_tree): Same.
9397         (add_param_constraints): Same.
9398         (build_scop_iteration_domain): Same.
9399         (build_scop_drs): Same.
9400         (analyze_drs_in_stmts): Same.
9401         (insert_out_of_ssa_copy_on_edge): Same.
9402         (rewrite_close_phi_out_of_ssa):Same.
9403         (rewrite_reductions_out_of_ssa):Same.
9404         (handle_scalar_deps_crossing_scop_limits):Same.
9405         (rewrite_cross_bb_scalar_deps):Same.
9406         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9407         (build_poly_scop):Same.
9408         (build_alias_set): Use pointer to dr_info.
9409         * graphite.c (print_graphite_scop_statistics):
9410         (graphite_transform_loops):
9411         * sese.h (struct sese_l): Remove conversion constructor.
9413 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9415         PR middle-end/67966
9416         * tree.c (verify_type): Verify that TYPE_MODE match
9417         between TYPE_CANONICAL and type.
9418         * expr.c (store_expr_with_bounds): Revert my previous change.
9419         * expmed.c (store_bit_field_1): Revert prevoius change.
9420         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9421         to match for all types.
9423 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
9425         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9426         nesting.
9428 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9430         * doc/tm.texi: Regenerated.
9431         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9432         * stor-layout.c (layout_type): Use mode to get vector mask size.
9433         * target.def (get_mask_mode): New.
9434         * targhooks.c (default_get_mask_mode): New.
9435         * targhooks.h (default_get_mask_mode): New.
9436         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9437         for boolean vector.
9438         * tree.c (MAX_BOOL_CACHED_PREC): New.
9439         (nonstandard_boolean_type_cache): New.
9440         (build_nonstandard_boolean_type): New.
9441         (make_vector_type): Vector mask has no canonical type.
9442         (build_truth_vector_type): New.
9443         (build_same_sized_truth_vector_type): New.
9444         (truth_type_for): Support vector masks.
9445         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9446         (build_truth_vector_type): New.
9447         (build_same_sized_truth_vector_type): New.
9448         (build_nonstandard_boolean_type): New.
9449         * tree-cfg.c (verify_gimple_comparison) Require boolean
9450         vector type for vector comparison.
9451         (verify_gimple_assign_ternary): Likewise.
9452         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9453         condition operand.
9454         * tree-vect-stmts.c (vectorizable_condition): Use boolean
9455         vector type for vector comparison.
9456         * tree-vect-generic.c (elem_op_func): Add new operand to hold
9457         vector type.
9458         (do_unop): Adjust to modified function type.
9459         (do_binop): Likewise.
9460         (do_plus_minus): Likewise.
9461         (do_negate); Likewise.
9462         (expand_vector_piecewise): Likewise.
9463         (do_cond): Likewise.
9464         (do_compare): Use comparison instead of condition.
9465         (expand_vector_divmod): Use boolean vector type for comparison.
9466         (expand_vector_operations_1): Skip scalar mask operations.
9468 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
9470         * omp-low.c (simd_clone_create): Set in_other_partition
9471         for created clones.
9473 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9475         * doc/extend.exp (Local Register Variables): Rewrite.
9477 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9479         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9480         and x*x in cases where the operands are sign ops.  Extend these
9481         rules to handle copysign as a sign op (including for cos, cosh
9482         and pow, which already treated negate and abs as sign ops).
9484 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
9486         PR target/68018
9487         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9488         for 64-bit MS_ABI targets also when default incoming stack boundary
9489         is overriden.
9491 2015-10-21  Richard Biener  <rguenther@suse.de>
9493         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9494         cond stmts, enhanced and split out from ...
9495         (vn_phi_eq): ... here.
9497 2015-10-21  Richard Biener  <rguenther@suse.de>
9499         PR middle-end/68031
9500         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9501         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9502         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
9503         make sure they are not registered for update.
9505 2015-10-21  Richard Biener  <rguenther@suse.de>
9507         PR tree-optimization/68026
9508         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9509         unsigned VARYING values.
9511 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
9513         * asan.c (asan_emit_stack_protection): Don't pass local stack to
9514         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9515         NULL and use local stack than.
9516         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9517         in addition to __asan_init.
9518         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9519         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9520         * asan.h (asan_intercepted_p): Handle new string builtins.
9521         * ubsan.c (ubsan_use_new_style_p): New function.
9522         (ubsan_instrument_float_cast): If location is unknown, assign
9523         input_location to loc. Propagate loc to ubsan_create_data if
9524         ubsan_use_new_style_p returned true.
9526 2015-10-21  Jeff Law  <law@redhat.com>
9528         * Makefile.in (OBJS): Remove sched-vis.c
9529         * sched-vis.c: Removed.  Code moved into...
9530         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
9531         * rtl.h: Remove prototypes for functions now living in print-rtl.c
9532         * print-rtl.h Add prototypes for new functions in print-rtl.c.
9533         * auto-inc-dec.c: Include print-rtl.h
9534         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9535         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9537         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9538         ATTRIBUTE_UNUSED.
9540 2015-10-21  Richard Biener  <rguenther@suse.de>
9541             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9543         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9544         to match.pd.
9545 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9546 about signed left shift stronger and clarify the cases when they're
9547 broken.
9548         Move (a * (1 << b)) is (a << b) to match.pd.
9549         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9550         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9551         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9553         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9554         New simplifier.
9555         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9556         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9557         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9558         : New simplifier.
9559         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9560         New simplifier.
9561         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9563 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
9564             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9565             Alan Modra  <amodra@gmail.com>
9567         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9568         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9569         (LINK_SPEC): Add %(link_secure_plt).
9570         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9571         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9573 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
9574             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9576         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9577         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9579 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9581         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9582         New function.
9583         (fusion_load_store): Use it.
9584         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9585         ldp and stp in VD modes.
9586         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9587         (store_pair<mode>, VD): Likewise.
9589 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
9591         PR rtl-optimization/67609
9592         * lra-splill.c (lra_final_code_change): Don't remove all
9593         sub-registers.
9595 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9597         * simplify-rtx.c (simplify_binary_operation): If either operand was
9598         a constant pool reference use them if all other simplifications failed.
9600 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9602         * config/aarch64/aarch64.md
9603         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9604         * config/aarch64/aarch64-simd.md
9605         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9606         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9607         (aarch64_fpconst_pow_of_2): New function.
9608         (aarch64_vec_fpconst_pow_of_2): Likewise.
9609         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9610         prototype.
9611         (aarch64_vec_fpconst_pow_of_2): Likewise.
9612         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9613         (aarch64_fp_vec_pow2): Likewise.
9615 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
9617         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9618         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
9619         * config/alpha/alpha.c (alpha_function_arg_advance): Update
9620         ALPHA_ARG_SIZE usage.
9621         (alpha_arg_partial_bytes): Ditto.
9623 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9625         PR target/66810
9626         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9627         error_mark_node decls.
9629 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9631         PR target/67963
9632         PR target/67985
9633         * common/config/i386/i386-common.c (ix86_handle_option): Remove
9634         OPT_miamcu handling.
9635         * config/i386/i386.c (PTA_NO_80387): New macro.
9636         (processor_alias_table): Add PTA_NO_80387 to lakemont.
9637         (ix86_option_override_internal): Update MASK_80387 from
9638         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
9639         SSE math only if 80387 is supported.  Don't change
9640         MASK_FLOAT_RETURNS.
9641         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9642         80387 is supported.
9643         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9644         if TARGET_80387 is true and TARGET_IAMCU is false.
9645         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9646         is true and TARGET_IAMCU_P is false.
9648 2015-10-20  Richard Biener  <rguenther@suse.de>
9650         PR tree-optimization/68017
9651         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9653 2015-10-20  Martin Liska  <mliska@suse.cz>
9655         * cgraphclones.c (cgraph_node::create_virtual_clone):
9656         Verify cgraph_node.local.versionable instead of calling
9657         tree_versionable_function_p.
9658         * ipa-cp.c (determine_versionability): Save the information
9659         to ipa_node_params summary.
9660         (ipcp_versionable_function_p): Use it.
9661         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9662         (ipcp_generate_summary): Do not compute cgraph_node
9663         versionability.
9664         * ipa-inline-analysis.c (inline_generate_summary): Compute
9665         versionability for all cgraph nodes.
9666         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9667         ipa_node_params::versionability.
9668         * ipa-prop.h (struct ipa_node_params): Declare it.
9670 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9672         PR other/67868
9673         * varasm.c (assemble_variable): Move special vtv handling to..
9674         (handle_vtv_comdat_sections): .. here. New function.
9675         (output_object_block): Handle vtv sections.
9677 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9679         PR target/66912
9680         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9682 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
9684         * doc/extend.texi: Update documentation WRT inline functions.
9686 2015-10-20  Alan Modra  <amodra@gmail.com>
9688         PR go/66870
9689         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9690         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9691         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9693 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
9695         PR rtl-optimization/66790
9696         * df.h (DF_MIR): New macro.
9697         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9698         (DF_MIR_INFO_BB): New macro.
9699         (DF_MIR_IN, DF_MIR_OUT): New macros.
9700         (struct df_mir_bb_info): New.
9701         (df_mir): New macro.
9702         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9703         declarations.
9704         (df_mir_get_bb_info): New.
9705         * df-problems.c (struct df_mir_problem_data): New.
9706         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9707         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9708         df_mir_confluence_0, df_mir_confluence_n,
9709         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9710         df_mir_bottom_dump, df_mir_verify_solution_start,
9711         df_mir_verify_solution_end): New.
9712         (problem_MIR): New.
9713         (df_mir_add_problem, df_mir_simulate_one_insn): New.
9714         * timevar.def (TV_DF_MIR): New.
9715         * ree.c: Include bitmap.h
9716         (add_removable_extension): Add an INIT_REGS parameter.  Use it
9717         to skip zero-extensions that may get an uninitialized register.
9718         (find_removable_extensions): Compute must-initialized registers
9719         using the MIR dataflow problem. Update the call to
9720         add_removable_extension.
9721         (find_and_remove_re): Call df_mir_add_problem.
9723 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
9725         * common/config/mn10300/mn10300-common.c
9726         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9727         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9729 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
9731         * doc/extend.texi (Explicit Register Variables): Simplify and
9732         avoid unnecessary and confusion abbreviations.  Update cross
9733         references.
9734         doc/implement-c.tex: Update cross reference.
9736 2015-10-19  Jeff Law  <law@redhat.com>
9738         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9739         that create irreducible loops unless the path elimiantes a multiway
9740         branch.
9742 2015-10-19  Richard Biener  <rguenther@suse.de>
9744         PR tree-optimization/67975
9745         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9746         * tree-cfg.c (extract_true_false_controlled_edges): Split out
9747         core worker from ...
9748         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9749         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9750         instead of block number for PHIs with two or one args.
9751         (vn_phi_eq): Compare edge predicates of PHIs that are in different
9752         blocks.
9754 2015-10-19  Richard Biener  <rguenther@suse.de>
9756         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9757         (gimple_stmt_nonnegative_warnv_p): Use it.
9758         * match.pd (CPROJ): New operator list.
9759         (cproj (complex ...)): Move simplifications from ...
9760         * builtins.c (fold_builtin_cproj): ... here.
9762 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9764         * config/i386/i386.c (ix86_expand_vector_move): Use
9765         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9766         alignment.
9768 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9770         * doc/invoke.texi: Replace @optindex with @opindex.
9772 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
9774         PR target/67995
9775         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9776         arch= is set,  clear all bits in x_ix86_isa_flags, except for
9777         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9779 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
9781         PR middle-end/68002
9782         * common.opt (fkeep-static-functions): New option.
9783         * doc/invoke.texi: Document it.
9784         * cgraphunit.c (cgraph_node::finalize_function): Use it.
9786 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9788         * sched-int.h (struct autopref_multipass_data_): Remove offset
9789         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
9790         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9791         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
9792         (autopref_rank_data): New function.
9793         (autopref_rank_for_schedule): Use it.
9794         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9796 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
9798         PR other/65800
9799         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9801 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9803         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9804         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
9805         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9806         (STANDARD_STARTFILE_PREFIX_1): New.
9807         (STANDARD_STARTFILE_PREFIX_2): New.
9809 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9811         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9812         (darwin_driver_init): Note a version-min when provided on the c/l.
9813         * config/darwin.h (%darwin_minversion): Remove.
9814         * config/i386/darwin.h: Likewise.
9815         * config/rs6000/darwin.h: Likewise.
9816         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9817         rather than an arbitrary constant.
9819 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9821         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9822         PPC, detect conflicts between -arch and multilib settings.  Detect
9823         and warn about conflicts between multiple -arch definitions.
9825 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
9827         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9829 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9831         * lra-constraints.c (add_next_usage_insn): Change argument type
9832         from rtx to rtx_insn *.
9834 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
9836         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9837         for Lakemont.
9839 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
9841         * config/tilepro/gen-mul-tables.cc: Adjust include files.
9842         * config/tilegx/mul-tables.c: Regenerate.
9843         * config/tilepro/mul-tables.c: Regenerate.
9845         * config/tilegx/tilegx-c.c: Adjust include files.
9846         * config/tilegx/tilegx.c: Likewise.
9847         * config/tilepro/tilepro-c.c: Likewise.
9848         * config/tilepro/tilepro.c: Likewise.
9849         * config/aarch64/aarch64-builtins.c: Likewise.
9850         * config/aarch64/aarch64.c: Likewise.
9851         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9852         * config/alpha/alpha.c: Likewise.
9853         * config/arc/arc.c: Likewise.
9854         * config/arm/aarch-common.c: Likewise.
9855         * config/arm/arm-builtins.c: Likewise.
9856         * config/arm/arm-c.c: Likewise.
9857         * config/arm/arm.c: Likewise.
9858         * config/avr/avr-c.c: Likewise.
9859         * config/avr/avr-devices.c: Likewise.
9860         * config/avr/avr-log.c: Likewise.
9861         * config/avr/avr.c: Likewise.
9862         * config/bfin/bfin.c: Likewise.
9863         * config/c6x/c6x.c: Likewise.
9864         * config/cr16/cr16.c: Likewise.
9865         * config/cris/cris.c: Likewise.
9866         * config/darwin-c.c: Likewise.
9867         * config/darwin-driver.c: Likewise.
9868         * config/darwin.c: Likewise.
9869         * config/default-c.c: Likewise.
9870         * config/epiphany/epiphany.c: Likewise.
9871         * config/epiphany/mode-switch-use.c: Likewise.
9872         * config/epiphany/resolve-sw-modes.c: Likewise.
9873         * config/fr30/fr30.c: Likewise.
9874         * config/frv/frv.c: Likewise.
9875         * config/ft32/ft32.c: Likewise.
9876         * config/glibc-c.c: Likewise.
9877         * config/h8300/h8300.c: Likewise.
9878         * config/i386/host-cygwin.c: Likewise.
9879         * config/i386/host-mingw32.c: Likewise.
9880         * config/i386/i386-c.c: Likewise.
9881         * config/i386/i386.c: Likewise.
9882         * config/i386/msformat-c.c: Likewise.
9883         * config/i386/winnt-cxx.c: Likewise.
9884         * config/i386/winnt-stubs.c: Likewise.
9885         * config/i386/winnt.c: Likewise.
9886         * config/ia64/ia64-c.c: Likewise.
9887         * config/ia64/ia64.c: Likewise.
9888         * config/iq2000/iq2000.c: Likewise.
9889         * config/lm32/lm32.c: Likewise.
9890         * config/m32c/m32c-pragma.c: Likewise.
9891         * config/m32c/m32c.c: Likewise.
9892         * config/m32r/m32r.c: Likewise.
9893         * config/mcore/mcore.c: Likewise.
9894         * config/mep/mep-pragma.c: Likewise.
9895         * config/mep/mep.c: Likewise.
9896         * config/microblaze/microblaze-c.c: Likewise.
9897         * config/microblaze/microblaze.c: Likewise.
9898         * config/mips/mips-tables.opt
9899         * config/mips/mips.c: Likewise.
9900         * config/mmix/mmix.c: Likewise.
9901         * config/mn10300/mn10300.c: Likewise.
9902         * config/moxie/moxie.c: Likewise.
9903         * config/msp430/msp430-c.c: Likewise.
9904         * config/msp430/msp430.c: Likewise.
9905         * config/nds32/nds32-cost.c: Likewise.
9906         * config/nds32/nds32-fp-as-gp.c: Likewise.
9907         * config/nds32/nds32-intrinsic.c: Likewise.
9908         * config/nds32/nds32-isr.c: Likewise.
9909         * config/nds32/nds32-md-auxiliary.c: Likewise.
9910         * config/nds32/nds32-memory-manipulation.c: Likewise.
9911         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9912         * config/nds32/nds32-predicates.c: Likewise.
9913         * config/nds32/nds32.c: Likewise.
9914         * config/nios2/nios2.c: Likewise.
9915         * config/nvptx/mkoffload.c: Likewise.
9916         * config/nvptx/nvptx.c: Likewise.
9917         * config/pa/pa.c: Likewise.
9918         * config/pdp11/pdp11.c: Likewise.
9919         * config/rl78/rl78-c.c: Likewise.
9920         * config/rl78/rl78.c: Likewise.
9921         * config/rs6000/host-darwin.c: Likewise.
9922         * config/rs6000/rs6000-c.c: Likewise.
9923         * config/rs6000/rs6000-linux.c: Likewise.
9924         * config/rs6000/rs6000.c: Likewise.
9925         * config/rx/rx.c: Likewise.
9926         * config/s390/s390-c.c: Likewise.
9927         * config/s390/s390.c: Likewise.
9928         * config/sh/sh-c.c: Likewise.
9929         * config/sh/sh-mem.cc: Likewise.
9930         * config/sh/sh.c: Likewise.
9931         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9932         * config/sh/sh_treg_combine.cc: Likewise.
9933         * config/sol2-c.c: Likewise.
9934         * config/sol2-cxx.c: Likewise.
9935         * config/sol2-stubs.c: Likewise.
9936         * config/sol2.c: Likewise.
9937         * config/sparc/sparc-c.c: Likewise.
9938         * config/sparc/sparc.c: Likewise.
9939         * config/spu/spu-c.c: Likewise.
9940         * config/spu/spu.c: Likewise.
9941         * config/stormy16/stormy16.c: Likewise.
9942         * config/v850/v850-c.c: Likewise.
9943         * config/v850/v850.c: Likewise.
9944         * config/vax/vax.c: Likewise.
9945         * config/visium/visium.c: Likewise.
9946         * config/vms/vms-c.c: Likewise.
9947         * config/vms/vms.c: Likewise.
9948         * config/vxworks.c: Likewise.
9949         * config/winnt-c.c: Likewise.
9950         * config/xtensa/xtensa.c: Likewise.
9952 2015-10-16  Christian Bruel  <christian.bruel@st.com>
9954         PR target/67745
9955         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9956         (FUNCTION_BOUNDARY_P): New macro:
9957         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9958         New hook.
9959         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9960         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9961         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9962         * function.c (allocate_struct_function): Call
9963         relayout_function hook.
9964         * passes.c (rest_of_decl_compilation): Likewise.
9966 2015-10-16  Christian Bruel  <christian.bruel@st.com>
9968         PR target/67745
9969         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9970         * config/arm/arm.c (arm_option_override_internal): Call
9971         arm_override_options_after_change_1.
9972         (arm_override_options_after_change): New function.
9973         (arm_override_options_after_change_1): Likewise.
9974         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9976 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9978         Revert:
9979         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9980         empty constructors.
9982 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
9984         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9985         argument is an ADDR_EXPR.
9987 2015-10-16  Richard Biener  <rguenther@suse.de>
9989         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9990         and get rid of force_gimple_operand_gsi.
9991         (gimple_fold_builtin_memory_chk): Likewise.
9992         (gimple_fold_builtin_stxcpy_chk): Likewise.
9993         (rewrite_to_defined_overflow): Likewise.
9994         (gimple_convert_to_ptrofftype): New function.
9995         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9997 2015-10-16  Richard Biener  <rguenther@suse.de>
9999         * tree-nested.h (build_addr): Adjust prototype.
10000         * tree-nested.c (build_addr): Remove context argument and use
10001         mark_addressable.
10002         (get_static_chain): Adjust calls to build_addr.
10003         (convert_nl_goto_reference): Likewise.
10004         (convert_tramp_reference_op): Likewise.
10005         (finalize_nesting_tree_1): Likewise.
10006         * value-prof.c (gimple_ic): Likewise.
10007         * gimple-low.c (lower_builtin_setjmp): Likewise.
10008         * tree-parloops.c (take_address_of): Likewise.
10009         (create_call_for_reduction_1): Likewise.
10010         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10011         (gimple_gen_ic_func_profiler): Likewise.
10013 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10015         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10016         empty constructors.
10018 2015-10-16  Michael Collison  <michael.collison@linaro.org>
10019             Andrew Pinski <andrew.pinski@caviumnetworks.com>
10021         * match.pd ((x < y) && (x < z) -> x < min (y,z),
10022         (x > y) and (x > z) -> x > max (y,z))
10024 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10025             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10027         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10028         (DYNAMIC_LINKER): Renamed to ...
10029         (GLIBC_DYNAMIC_LINKER): This.
10030         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10032 2015-10-15  Marek Polacek  <polacek@redhat.com>
10034         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10035         gimple_call_builtin instead of is_gimple_call.
10037 2015-10-15  Richard Biener  <rguenther@suse.de>
10039         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10041 2015-10-15  Richard Biener  <rguenther@suse.de>
10043         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10044         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10045         * tree-vect-loop.c (get_initial_def_for_induction): Drop
10046         use of force_gimple_operand in favor of gimple_build.
10047         Use vect_get_new_ssa_name.
10048         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10049         (vectorizable_mask_load_store): Likewise.
10050         (vectorizable_call): Likewise.
10051         (vectorizable_store): Likewise.
10052         (vectorizable_load): Likewise.
10053         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10055 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
10057         PR tree-optimization/67945
10058         * tree-pass.h (PROP_gimple_opt_math): New property flag.
10059         * generic-match-head.c (canonicalize_math_p): New function.
10060         * gimple-match-head.c: Include tree-pass.h.
10061         (canonicalize_math_p): New function.
10062         * match.pd: Group math built-in rules into simplifications
10063         and canonicalizations.  Guard the latter with canonicalize_math_p.
10064         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10065         PROP_gimple_opt_math property.
10067 2015-10-15  Marek Polacek  <polacek@redhat.com>
10069         PR tree-optimization/67953
10070         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10072 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
10074         * config.gcc: Recognize "." in architecture base name for AArch64.
10076 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10078         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10079         ROUND_UP macro.
10080         * config/mips/mips.c (mips_setup_incoming_varargs): Use
10081         ROUND_DOWN to calculate off.
10082         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10083         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10084         rounded_size.
10086 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10088         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10090 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
10091             Torvald Riegel  <triegel@redhat.com>
10093         PR target/67281
10094         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10095         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10096         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10097         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10098         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
10099         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10100         trechkpt, treclaim, tsr, ttest): New define_expands.
10101         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10102         __TM_FENCE__ for htm.
10103         * doc/extend.texi: Update documentation for htm builtins.
10105 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10107         PR target/67967
10108         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10109         REG_CFA_EXPRESSION to aligned SSE stores.
10111 2015-10-14  Jeff Law  <law@redhat.com>
10113         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10114         num_threaded_edges for successful FSM threads too.
10116 2015-10-14  Richard Biener  <rguenther@suse.de>
10118         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10119         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
10120         (vect_get_vec_def_for_operand): Remove unused parameter.
10121         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10122         (vect_create_epilog_for_reduction): Likewise.
10123         (vectorizable_reduction): Likewise.
10124         (vectorizable_live_operation): Likewise.
10125         * tree-vect-patterns.c (type_conversion_p): Likewise.
10126         (vect_recog_vector_vector_shift_pattern): Likewise.
10127         (check_bool_pattern): Likewise.
10128         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10129         (vect_analyze_slp_cost_1): Likewise.
10130         * tree-vect-stmts.c (process_use): Likewise.
10131         (vect_get_vec_def_for_operand): Do not handle reductions.
10132         (vect_get_vec_defs): Adjust.
10133         (vectorizable_mask_load_store): Likewise.
10134         (vectorizable_call): Likewise.
10135         (vectorizable_simd_clone_call): Likewise.
10136         (vect_get_loop_based_defs): Likewise.
10137         (vectorizable_conversion): Likewise.
10138         (vectorizable_assignment): Likewise.
10139         (vectorizable_shift): Likewise.
10140         (vectorizable_operation): Likewise.
10141         (vectorizable_store): Likewise.
10142         (vectorizable_load): Likewise.
10143         (vect_is_simple_cond): Likewise.
10144         (vectorizable_condition): Likewise.
10145         (vect_is_simple_use): Remove unused parameters.
10146         (vect_is_simple_use_1): Adjust and rename.
10148 2015-10-14  Richard Biener  <rguenther@suse.de>
10150         PR tree-optimization/67915
10151         * match.pd: Handle comparisons of addresses of STRING_CSTs.
10152         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10153         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10154         stmt folding in favor of GIMPLE one.
10156 2015-10-14  Marek Polacek  <polacek@redhat.com>
10158         PR tree-optimization/67815
10159         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10160         (reassociate_bb): Call it.
10162 2015-10-14  Richard Biener  <rguenther@suse.de>
10164         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10165         Reset info at start.
10166         (vect_analyze_group_access_1): Add debug print.
10167         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10168         (vect_compute_single_scalar_iteration_cost): ... to this.
10169         (vect_analyze_loop_2): Adjust.
10170         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10171         * tree-vectorizer.h: ... here.
10172         (add_stmt_info_to_vec): Remove.
10173         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10175 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10177         * targhooks.c (default_target_option_pragma_parse): Do not warn if
10178         called on behalf of "#pragma GCC pop_options".
10180 2015-10-14  Tom de Vries  <tom@codesourcery.com>
10182         * cfganal.c (verify_no_unreachable_blocks): New function.
10183         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10184         verify_no_unreachable_blocks.
10185         cfganal.h (verify_no_unreachable_blocks): Declare.
10187 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
10189         * common.opt: Add flag_checking.
10190         * system.h (CHECKING_P): Define.
10192 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
10193             Aldy Hernandez  <aldyh@redhat.com>
10194             Ilya Verbin  <ilya.verbin@intel.com>
10196         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10197         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10198         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10199         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10200         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10201         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10202         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10203         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10204         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10205         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10206         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10207         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10208         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10209         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10210         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10211         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10212         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10213         (struct cgraph_simd_clone_arg): Adjust comment.
10214         * coretypes.h (struct gomp_ordered): New forward decl.
10215         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10216         set critical clauses to it.
10217         (gimple_build_omp_ordered): Return gomp_ordered * instead of
10218         gimple *.  Add CLAUSES argument, set ordered clauses to it.
10219         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10220         GIMPLE_OMP_ORDERED.
10221         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10222         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10223         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
10224         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10225         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
10226         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10227         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
10228         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10229         renumber
10230         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10231         (gomp_critical): Add clauses field.
10232         (gomp_ordered): New struct.
10233         (is_a_helper <gomp_ordered *>::test): New inline.
10234         (gimple_build_omp_critical): Add CLAUSES argument.
10235         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
10236         instead of gimple *.
10237         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10238         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10239         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10240         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10241         inline functions.
10242         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10243         (dump_gimple_omp_target): Handle enter data and exit data.
10244         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10245         (dump_gimple_omp_critical): Print clauses.
10246         (dump_gimple_omp_ordered): New function.
10247         (dump_gimple_omp_task): Handle taskloop.
10248         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10249         GIMPLE_OMP_ORDERED.
10250         * gimple-walk.c (walk_gimple_op): Walk clauses on
10251         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10252         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10253         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10254         (struct gimplify_omp_ctx): Add loop_iter_var,
10255         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10256         and target_firstprivatize_array_bases fields.
10257         (delete_omp_context): Release loop_iter_var.
10258         (gimplify_bind_expr): Handle ORT_NONE.
10259         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10260         ORT_COMBINED_TARGET.
10261         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10262         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10263         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
10264         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
10265         ctx->target_map_scalars_firstprivate.
10266         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
10267         data sharing clauses.  For data sharing clause with VLA decl
10268         on omp target/target data don't add firstprivate for the pointer.
10269         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10270         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10271         the addition of ORT_COMBINED_TARGET.
10272         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
10273         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
10274         pointers as zero length array sections and
10275         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10276         data sharing.
10277         (omp_check_private): Handle omp_member_access_dummy_var vars.
10278         (find_decl_expr): New function.
10279         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
10280         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10281         Handle OMP_CLAUSE_GANG separately.  Handle
10282         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10283         clauses.  Diagnose linear clause on combined
10284         distribute {, parallel for} simd construct, unless it is the loop
10285         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10286         Handle map clauses with COMPONENT_REF.  Initialize
10287         ctx->target_map_scalars_firstprivate,
10288         ctx->target_firstprivatize_array_bases and
10289         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
10290         linear clause even to target region if combined.  Remove
10291         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10292         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
10293         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10294         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
10295         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10296         For linear clause on worksharing loop combined with parallel add
10297         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
10298         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
10299         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
10300         taskloop if needed.
10301         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10302         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10303         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10304         GOMP_MAP_POINTER.
10305         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
10306         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10307         in target body.  Handle removal of struct mapping if struct is not
10308         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
10309         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
10310         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
10311         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10312         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10313         clause appear together.  Handle
10314         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
10315         clause if it has map-type-modifier always.  Handle
10316         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10317         clauses.
10318         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10319         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10320         callers.
10321         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
10322         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
10323         iterators in doacross loops.
10324         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10325         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
10326         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
10327         for the addition of ORT_COMBINED_TARGET.
10328         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10329         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
10330         and OMP_TARGET_EXIT_DATA.
10331         (gimplify_omp_ordered): New function.
10332         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10333         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
10334         Gimplify clauses on OMP_CRITICAL.
10335         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10336         expand_GOMP_SIMD_ORDERED_END): New functions.
10337         * internal-fn.def (GOMP_SIMD_ORDERED_START,
10338         GOMP_SIMD_ORDERED_END): New internal functions.
10339         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10340         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10341         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10342         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10343         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10344         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10345         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10346         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10347         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10348         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10349         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10350         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10351         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10352         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10353         adjust type.
10354         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10355         GOMP_target_data_41, adjust type.
10356         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10357         GOMP_target_update_41, adjust type.
10358         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10359         field.
10360         (struct omp_for_data): Add ordered and simd_schedule fields.
10361         (omp_member_access_dummy_var, unshare_and_remap_1,
10362         unshare_and_remap, is_taskloop_ctx): New functions.
10363         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10364         (extract_omp_for_data): Handle taskloops and doacross loops
10365         and simd schedule modifier.
10366         (omp_adjust_chunk_size): New function.
10367         (get_ws_args_for): Use it.
10368         (lookup_sfield): Change first argument to splay_tree_key,
10369         add overload with first argument tree.
10370         (maybe_lookup_field): Likewise.
10371         (use_pointer_for_field): Handle omp_member_access_dummy_var.
10372         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10373         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10374         (build_outer_var_ref): Add LASTPRIVATE argument, handle
10375         taskloops and omp_member_access_dummy_var vars.
10376         (build_sender_ref): Change first argument to splay_tree_key,
10377         add overload with first argument tree.
10378         (install_var_field): For mask & 8 use &DECL_UID as key instead
10379         of the tree itself.
10380         (fixup_child_record_type): Const qualify *.omp_data_i.
10381         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10382         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10383         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10384         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10385         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10386         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10387         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10388         kinds.
10389         (add_taskreg_looptemp_clauses): New function.
10390         (scan_omp_parallel): Use it.
10391         (scan_omp_task): Likewise.
10392         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10393         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10394         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10395         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
10396         sandwiched taskloop constructs.  Type check
10397         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
10398         region.  Diagnose depend(source) or depend(sink:...) on
10399         target constructs or task/taskloop.
10400         (handle_simd_reference): Use get_name.
10401         (lower_rec_input_clauses): Likewise.  Ignore all
10402         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10403         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
10404         before passing it to omp_clause_{default,copy}_ctor.  Handle
10405         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
10406         lastprivate_firstprivate flag for linear that needs copyin and
10407         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10408         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10409         on taskloop lookup decl in outer context.  Pass true to
10410         build_outer_var_ref lastprivate argument.  Handle
10411         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10412         outside of outer taskloop for.
10413         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10414         OMP_CLAUSE_DECL.
10415         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10416         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
10417         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
10418         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
10419         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10420         abstract origin.  Handle omp_member_access_dummy_var vars.
10421         (expand_parallel_call): Use expand_omp_build_assign.
10422         (expand_task_call): Handle taskloop construct expansion.  Add
10423         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
10424         integers.  Add priority argument to GOMP_task* calls.  Or in
10425         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10426         GOMP_task call.
10427         (expand_omp_build_assign): Add prototype.  Add AFTER
10428         argument, if true emit statements after *GSI_P and continue linking.
10429         (expand_omp_taskreg): Adjust expand_task_call caller.
10430         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10431         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10432         zero_iter2_bb and first_zero_iter2 arguments, handle computation
10433         of counts even for ordered loops.
10434         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10435         (expand_omp_ordered_source, expand_omp_ordered_sink,
10436         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10437         functions.
10438         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
10439         clauses on worksharing loop.  Handle DOACROSS loop expansion.
10440         (expand_omp_for_static_nochunk): Handle linear clauses on
10441         worksharing loop.  Adjust expand_omp_for_init_counts
10442         callers.
10443         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
10444         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
10445         expand_omp_for_init_counts callers.
10446         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10447         functions.
10448         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10449         Handle doacross loops.
10450         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10451         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
10452         GOMP_target_{41,update_41,enter_exit_data} libcalls.
10453         (expand_omp): Don't expand ordered depend constructs here, record
10454         ord_stmt instead for later expand_omp_for_generic.
10455         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10456         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
10457         clause as stand-alone directive.
10458         (lower_omp_ordered_clauses): New function.
10459         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10460         don't lower anything.
10461         (lower_omp_for_lastprivate): Use last _looptemp_ clause
10462         on taskloop for comparison.
10463         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
10464         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10465         expansion for linear adjustments.
10466         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10467         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10468         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
10469         to tree * pointing to the stmt's clauses.
10470         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10471         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10472         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10473         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10474         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10475         clauses.  Always use short kind and 8-bit align shift.
10476         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10477         (struct lower_omp_regimplify_operands_data): New type.
10478         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10479         New functions.
10480         (lower_omp_1): Use lower_omp_regimplify_operands instead of
10481         gimple_regimplify_operands.
10482         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10483         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
10484         clause as stand-alone directive.
10485         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10486         (simd_clone_mangle): Mangle the various linear kinds
10487         per the new ABI.
10488         (simd_clone_adjust_argument_types): Handle
10489         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10490         (simd_clone_init_simd_arrays): Don't do anything for uval.
10491         (simd_clone_adjust): Handle
10492         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10493         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10494         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10495         * omp-low.h (omp_member_access_dummy_var): New prototype.
10496         * passes.def (pass_simduid_cleanup): Schedule another copy of the
10497         pass after all optimizations.
10498         * tree.c (omp_clause_code_name): Add entries for
10499         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10500         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10501         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
10502         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10503         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10504         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
10505         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10506         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10507         clauses.
10508         * tree-core.h (enum omp_clause_linear_kind): New.
10509         (struct tree_omp_clause): Change type of map_kind
10510         from unsigned char to unsigned int.  Add subcode.if_modifier
10511         and subcode.linear_kind fields.
10512         (enum omp_clause_code): Add
10513         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10514         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10515         (OMP_CLAUSE_REDUCTION): Document
10516         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10517         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10518         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10519         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
10520         operand.
10521         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
10522         operand.
10523         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10524         codes.
10525         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10526         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10527         char.
10528         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10529         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10530         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10531         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10532         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10533         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10534         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10535         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10536         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10537         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10538         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10539         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10540         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10541         * tree-inline.c (remap_gimple_stmt): Handle clauses on
10542         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
10543         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10544         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10545         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10546         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10547         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10548         (convert_local_omp_clauses): Likewise.
10549         * tree-pretty-print.c (dump_omp_clause): Handle
10550         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10551         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10552         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10553         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10554         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
10555         GOMP_MAP_FORCE_DEALLOC.  Handle
10556         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10557         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10558         and clauses on OMP_ORDERED and OMP_CRITICAL.
10559         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10560         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10561         (vectorize_loops): Adjust comments.
10562         (pass_simduid_cleanup::execute): Likewise.
10563         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10564         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10565         * wide-int.h (wi::gcd): New.
10567 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
10569         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10570         (ix86_function_arg_advance): Ditto.
10571         (ix86_function_arg): Ditto.
10572         (ix86_gimplify_va_arg): Ditto.
10573         (ix86_class_max_nregs): Ditto.
10574         (inline_memory_move_cost): Ditto.
10575         (ix86_set_reg_reg_cost): Ditto.
10576         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10578 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
10580         PR middle-end/67912
10581         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10583 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
10585         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10586         ROUND_UP macro and UNITS_PER_WORD * 2.
10587         * config/sparc/sparc.c (sparc_compute_frame_size):
10588         Use ROUND_UP and ROUND_DOWN macros where applicable.
10589         (function_arg_record_value, function_arg_record_value_1)
10590         (function_arg_record_value_1): Ditto.
10591         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10592         alignment to double-word.
10593         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10594         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10595         rounded_size.
10597 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
10599         * rtl.h (print_insn): Fix prototype.
10601 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10603         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10604         -1.  Add assert that returned entry matches phi argument.
10605         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10606         free_stmt_vec_info_vec ...
10607         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
10608         with -1.
10610 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
10612         PR tree-optimization/67909, 67947
10613         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10614         really skip the inner loop.
10616 2015-10-13  Jeff Law  <law@redhat.com>
10618         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10619         Allow single block jump threading paths.
10621 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10623         PR tree-optimization/67476
10624         * doc/invoke.texi (@item parloops-schedule): New item.
10625         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10626         * tree-parloops.c: Include params-enum.h.
10627         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10629 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10631         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10632         * params-enum.h: New file.
10633         * opts.c (handle_param): Handle case that param arg is a string.
10634         * params-list.h: Handle DEFPARAMENUM5 in params.def.
10635         * params.c (find_param): New function, factored out of ...
10636         (set_param_value): ... here.
10637         (param_string_value_p): New function.
10638         * params.h (struct param_info): Add value_names field.
10639         (find_param, param_string_value_p): Declare.
10641 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10643         PR tree-optimization/67476
10644         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10646 2015-10-13  Richard Biener  <rguenther@suse.de>
10648         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10649         the data dependence vector.
10650         (vect_peeling_hash_insert): Get the peeling hash table as argument.
10651         (vect_peeling_hash_get_lowest_cost): Likewise.
10652         (vect_enhance_data_refs_alignment): Adjust.
10653         (struct _vect_peel_info, struct _vect_peel_extended_info,
10654         struct peel_info_hasher): Move from ...
10655         * tree-vectorizer.h: ... here.
10656         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10657         (LOOP_VINFO_PEELING_HTAB): Likewise.
10658         (struct _loop_vec_info): Remove min_profitable_iters and
10659         peeling_htab members.
10660         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10661         here.
10662         (destroy_loop_vec_info): Adjust.
10663         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10664         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10665         to estimate alias versioning cost.
10666         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10668 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
10670         * real.h (real_isinteger): Declare.
10671         * real.c (real_isinteger): New function.
10672         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10673         if y is an even integer.
10675 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10677         revert:
10678         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10679         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10680         counts when these are more informative.
10682 2015-10-12  Jeff Law  <law@redhat.com>
10684         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10685         (fsm_find_control_stmt_paths): Change name of first argument to
10686         more accurately relfect what it really is.  Handle simplification
10687         of GIMPLE_COND after finding a thread path for NAME.
10688         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10689         nontrivial conditions to be handled by FSM threader.
10690         (thread_through_normal_block): Extract the name to looup via
10691         FSM threader from COND_EXPR.
10693         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10694         restriction that traced SSA_NAME is a user variable.
10696 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10698         PR tree-optimization/67476
10699         * omp-low.c (expand_omp_for_generic): Add missing phis.
10701 2015-10-12  Tom de Vries  <tom@codesourcery.com>
10703         PR tree-optimization/67476
10704         * omp-low.c (expand_omp_for_generic): Handle simple latch.
10706 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
10708         * config/aarch64/aarch64-simd-builtins.def: Update builtins
10709         tables: add tbl3 and tbx4.
10710         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10711         (aarch64_tbx4v8qi): New.
10712         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10713         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10714         Rewrite using builtin functions.
10715         * config/aarch64/iterators.md (UNSPEC_TBX): New.
10717 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10719         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10720         ROUND_UP macro.
10721         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10722         Use ROUND_UP and ROUND_DOWN macros where applicable.
10723         (rs6000_darwin64_record_arg_flush): Ditto.
10724         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10725         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10726         rounded_size.
10728 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
10730         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10731         (AARCH64_ROUND_DOWN): Ditto.
10732         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10734 2015-10-12  Richard Biener  <rguenther@suse.de>
10736         PR ipa/67783
10737         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10738         code that analyzes IVs on each stmt but in a cheaper way avoiding
10739         quadratic behavior.
10741 2015-10-12  Nick Clifton  <nickc@redhat.com>
10743         * config/msp430/msp430.c (msp430_mcu_names): Rename to
10744         msp430_mcu_data, add fields for ISA and hardware multiply
10745         support.  Import latest data from the devices.csv file.
10746         (msp430_override_option): Use the data from the new array.
10747         (msp430_use_f5_series_hwmult): Likewise.
10748         (use_32bit_hwmult): Likewise.
10749         (msp430_no_hwmult): Likewise.
10750         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10751         MCU names.
10752         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10753         not recognised then no hardware multiply support is assumed and
10754         that only the MSP430 ISA is allowed.
10756 2015-10-12  Richard Biener  <rguenther@suse.de>
10758         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10759         related code ...
10760         (vect_analyze_loop_2): ... here.
10762 2015-10-11  Jason Merrill  <jason@redhat.com>
10764         PR c++/67557
10765         * expr.c (store_field): Call store_constructor directly when
10766         storing a CONSTRUCTOR into a target smaller than its type.
10767         Guard against unsafe bitwise copy.
10769 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10771         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10772         counts when these are more informative.
10774 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10776         * tree-profile.c (tree_profiling): Do not clear
10777         pure/const when not instrumenting.
10778         (pass tree_profile): Add dump of symtab.
10780 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10782         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10783         addresses.
10784         (fold_addr_of_array_ref_difference): Likewise.
10786 2015-10-11  Jeff Law  <law@redhat.com>
10788         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10789         tree-ssa-threadbackward.c.
10790         (fsm_find_control_statement_thread_paths): Likewise.
10791         (thread_through_normal_block): Break out FSM bits and move them
10792         into a new function in tree-ssa-threadbackward.c.  Call new function
10793         instead.
10794         Minimize header file usage.
10795         * tree-ssa-threadbackward.h: New file.
10796         * tree-ssa-threadbackward.c: Likewise.
10797         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10799 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
10801         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10803 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
10805         PR rtl-optimization/67864
10806         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10807         fallthrough edges for conditional jumps.  Don't sort candidate
10808         edges if not optimizing for speed.
10810 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10812         * defaults.h (REVERSE_CONDITION): New default definition.
10813         * jump.c (reversed_comparison_code_parts): Adjust.
10815 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10817         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10818         check HARD_FRAME_POINTER_IS_ARG_POINTER.
10820 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10822         * defaults.h (FRAME_ADDR_RTX): New default definition.
10823         * builtins.c (expand_builtin_return_addr): Adjust.
10825 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10827         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10828         * builtins.c (expand_builtin_return_addr): Adjust.
10830 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10832         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10833         * builtins.c (expand_builtin_return_addr): Adjust.
10834         * doc/tm.texi: Likewise.
10835         * doc/tm.texi.in: Likewise.
10836         * except.c (expand_builtin_unwind_init): Likewise.
10838 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10840         * builtins.c (expand_builtin_return_addr): Adjust.
10841         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10843 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
10845         * tree.c (type_with_interoperable_signedness): New.
10846         (gimple_canonical_types_compatible_p): Use it.
10847         * tree.h (type_with_interoperable_signedness): Declare
10849 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
10851         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10852         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10853         when OEP_ADDRESS_OF is se.
10855 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
10856             Sebastian Pop  <s.pop@samsung.com>
10858         * graphite-dependences.c (scop_get_dependences): Add dump of the
10859         data dependence graph.
10860         * graphite-poly.c (print_isl_union_map): New.
10861         (debug_isl_union_map): New.
10862         * graphite-poly.h (print_isl_union_map): Declare.
10863         (debug_isl_union_map): Declare.
10865 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
10866             Sebastian Pop  <s.pop@samsung.com>
10868         * graphite-poly.c (print_iteration_domain): Remove verbosity.
10869         Remove OpenScop formatting.
10870         (print_iteration_domains): Same.
10871         (debug_iteration_domain): Same.
10872         (debug_iteration_domains): Same.
10873         (print_pdr): Same.
10874         (debug_pdr): Same.
10875         (dump_gbb_cases): Same.
10876         (dump_gbb_conditions): Same.
10877         (print_pdrs): Same.
10878         (debug_pdrs): Same.
10879         (print_pbb_body): Same.
10880         (print_pbb): Same.
10881         (print_scop_params): Same.
10882         (print_scop_context): Same.
10883         (print_scop): Same.
10884         (debug_pbb_domain): Same.
10885         (debug_pbb): Same.
10886         (debug_scop_context): Same.
10887         (debug_scop): Same.
10888         (debug_scop_params): Same.
10889         * graphite-poly.h: Same.
10890         * graphite.c (graphite_transform_loops): Same.
10892 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10894         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10895         call that isn't needed.
10897 2015-10-09  Jeff Law  <law@redhat.com>
10899         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10900         rather than moving each name to the freelist individually.
10902 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
10904         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10905         * frame-header-opt.c: New file.
10906         * config/mips/mips-proto.h (mips_register_frame_header_opt):
10907         Add prototype.
10908         * config/mips/mips.c (mips_compute_frame_info): Check
10909         optimize_call_stack flag.
10910         (mips_option_override): Register new frame_header_opt pass.
10911         (mips_frame_info, mips_int_mask, mips_shadow_set,
10912         machine_function): Move these types to...
10913         * config/mips/mips.h: here.
10914         (machine_function): Add does_not_use_frame_header and
10915         optimize_call_stack fields.
10916         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10917         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10918         Document new flags.
10919         * config/mips/mips.opt (mframe-header-opt): Add new option.
10921 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
10923         * config/i386/i386.c
10924         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10925         ROUND_DOWN where applicable.
10927 2015-10-09  Jeff Law  <law@redhat.com>
10929         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10930         correct statement.
10932 2015-10-09  Renlin Li  <renlin.li@arm.com>
10934         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10935         operands[0] and operands[2].
10936         (neon_vtrn<mode>_insn): Likewise.
10937         (neon_vzip<mode>_insn): Likewise.
10939 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10941         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10942         ((X & C2) << C1): Expand to...
10943         (X {&,^,|} C2 << C1): ...This.
10944         ((X & C2) >> C1): Expand to...
10945         (X {&,^,|} C2 >> C1): ...This.
10947 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
10949         PR target/67895
10950         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10951         Adjust embedded rounding/SAE specifier position.
10952         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10953         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10954         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10955         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10956         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10957         Likewise.
10958         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10960 2015-10-09  Martin Jambor  <mjambor@suse.cz>
10962         tree-optimization/67794
10963         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10964         between types of state,ents but accept original definitions as a
10965         parameter.
10966         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10967         iterate over definitions.
10969 2015-10-09  James Norris  <jnorris@codesourcery.com>
10971         * config/rs6000/rs6000.c (rs6000_offload_options): New.
10972         (TARGET_OFFLOAD_OPTIONS): New.
10974 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
10976         PR middle-end/67891
10977         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10979         PR middle-end/67766
10980         * function.c (expand_function_end): Move return value
10981         promotion past the handling of PARALLELs and CONCATs.
10983         PR rtl-optimization/67828
10984         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10985         (tree_may_unswitch_on): Don't unswitch on expressions
10986         involving undefined values.
10988 2015-10-09  Richard Biener  <rguenther@suse.de>
10990         * genmatch.c (print_operand): Fix formatting.
10991         (dt_node::append_simplify): Warn for multiple simplifiers
10992         that match the same pattern.
10993         * match.pd (log (exp @0)): Remove duplicates.
10995 2015-10-09  Richard Biener  <rguenth@suse.de>
10997         PR target/67366
10998         * gimple-fold.c (optabs-query.h): Include
10999         (gimple_fold_builtin_memory_op): Allow unaligned stores
11000         when movmisalign_optabs are available.
11002 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11004         PR target/67366
11005         * config/arm/arm.md (movmisalign<mode>): New.
11006         * config/arm/iterators.md (HSI): New.
11008 2015-10-09  Richard Biener  <rguenther@suse.de>
11010         PR tree-optimization/67891
11011         * gimple-match.h (gimple_simplified_result_is_gimple_val):
11012         New helper.
11013         (gimple_resimplify1): Declare.
11014         (gimple_resimplify2): Likewise.
11015         (gimple_resimplify3): Likewise.
11016         * gimple-match-head.c (gimple_resimplify1): Export.
11017         (gimple_resimplify2): Likewise.
11018         (gimple_resimplify3): Likewise.
11019         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11020         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11021         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11022         to avoid creating stmts without VN info.
11024 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
11026         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11027         of availability.
11029 2015-10-08  Jeff Law  <law@redhat.com>
11031         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11032         and release_ssa_name in two places.
11033         (gimple_stringop_fixed_value): Similarly.
11035         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11036         release_defs.
11038         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11039         unlink_stmt_vdef and release_ssa_name_fn.
11041         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11042         release_defs.
11044 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
11046         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11047         SSE register save area to 16 bytes only if the incoming stack
11048         boundary is no less than 16 bytes.
11050 2015-10-08  Jeff Law  <law@redhat.com>
11052         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11053         release_ssa_name.  Fix typo in comment.
11055 2015-10-08  Nathan Sidwell  <nathan@acm.org>
11057         * config/nvptx/nvptx.h (struct machine_function): Add comment.
11058         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11059         may return pointer as well as in memory.
11060         (nvptx_output_return): Likewise.
11062 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11064         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11065         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
11066         * match.pd: Add rules previously handled by fold_builtin_sqrt
11067         and fold_builtin_cbrt.
11069 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11071         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11072         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11073         * fold-const.h (tree_unary_nonnegative_warnv_p)
11074         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11075         (tree_expr_nonnegative_warnv_p): Add depth parameters.
11076         * fold-const.c: Include gimple-fold.h and params.h.
11077         (tree_ssa_name_nonnegative_warnv_p): New function.
11078         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11079         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11080         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11081         Add a depth parameter and increment it for recursive calls to
11082         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
11083         to handle SSA names.
11084         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11085         (gimple_stmt_nonnegative_warnv_p): Declare.
11086         * tree-vrp.c (remove_range_assertions): Remove assert that condition
11087         cannot be proven false.
11088         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11089         (gimple_stmt_nonnegative_warnv_p): Move to...
11090         * gimple-fold.c: ...here.  Add depth parameters and pass them
11091         down to the tree routines.  Accept statements that aren't
11092         assignments or calls but just return false for them.
11093         (gimple_val_nonnegative_real_p): Delete.
11094         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11095         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11096         Check HONOR_NANs first.
11098 2015-10-08  Martin Jambor  <mjambor@suse.cz>
11100         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
11101         unnecessary MIN.
11103 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11105         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11106         in the tail of outer-loop.
11108 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
11110         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11111         return UI_NONE.
11113 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11115         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11116         "cfghooks.h", add prototypes for introduced new functions.
11117         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11118         checks on ability of loop unswitching to tree_unswitch_single_loop;
11119         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11120         on innermost loop check.
11121         (tree_unswitch_single_loop): Add all required checks on ability of
11122         loop unswitching under zero recursive level guard.
11123         (tree_unswitch_outer_loop): New function.
11124         (find_loop_guard): Likewise.
11125         (empty_bb_without_guard_p): Likewise.
11126         (used_outside_loop_p): Likewise.
11127         (get_vop_from_header): Likewise.
11128         (hoist_guard): Likewise.
11129         (check_exit_phi): Likewise.
11131 2015-10-08  Marek Polacek  <polacek@redhat.com>
11133         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11134         ops element.
11136 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11138         PR c/65345
11139         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11140         create_tmp_var_raw instead of create_tmp_var.
11142 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
11144         * expr.c (store_expr_with_bounds): Handle aggregate moves from
11145         BLKmode.
11146         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11147         to define gimple type system; compare aggregates only by size.
11149 2015-10-07  Jeff Law  <law@redhat.com>
11151         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11152         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11153         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
11154         unnecessarily.
11156 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11157             Sebastian Pop  <s.pop@samsung.com>
11159         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11160         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11161         (generate_isl_schedule): Same.
11162         * graphite-optimize-isl.c (scop_get_domains): Same.
11163         (apply_schedule_map_to_scop): Same.
11164         * graphite-poly.c (print_iteration_domains): Same.
11165         (remove_gbbs_in_scop): Same.
11166         (new_scop): Same.
11167         (free_scop): Same.
11168         (print_scop): Same.
11169         * graphite-poly.h (struct scop): Rename bbs to pbbs.
11170         (SCOP_BBS): Remove.
11171         * graphite-scop-detection.c (compare_bb_depths): Remove.
11172         (graphite_sort_dominated_info): Remove.
11173         (try_generate_gimple_bb): Move out of scop_detection.
11174         (all_non_dominated_preds_marked_p): Remove.
11175         (build_scop_bbs_1): Remove.
11176         (build_scop_bbs): Remove.
11177         (nb_pbbs_in_loops): Do not use SCOP_BBS.
11178         (find_scop_parameters): Same.
11179         (sese_dom_walker): Rename gather_bbs.
11180         (before_dom_children): Call try_generate_gimple_bb and collect gbb
11181         and pbb.
11182         (build_scops): Call gather_bbs.
11183         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11184         (add_conditions_to_constraints): Same.
11185         (build_scop_iteration_domain): Same.
11186         (build_scop_drs): Same.
11187         (new_pbb_from_pbb): Same.
11188         * sese.c (new_sese_info): Create bbs.
11189         * sese.h (struct sese_info_t): Add bbs.
11191 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
11193         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11194         encoding in 64-bit mode.
11196 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
11198         PR target/66697
11199         * config/i386/i386.c (ix86_option_override_internal): Always use
11200         8-byte minimum stack boundary in 64-bit mode.
11201         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11202         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11203         Add a REG_CFA_EXPRESSION note if needed.
11204         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11205         (ix86_handle_force_align_arg_pointer_attribute): New.
11206         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11207         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11208         with ix86_handle_force_align_arg_pointer_attribute.
11209         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11211 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11212             Sebastian Pop  <s.pop@samsung.com>
11214         * graphite-scop-detection.c (parameter_index_in_region): Remove
11215         use of SESE_ADD_PARAMS.
11216         (find_scop_parameters): Same.
11217         * sese.c (new_sese_info): Same.
11218         * sese.h (struct sese_info_t): Remove add_params.
11219         (SESE_ADD_PARAMS): Remove.
11221 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11222             Sebastian Pop  <s.pop@samsung.com>
11224         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11225         an sese_info_p.
11226         (copy_def): Same.
11227         (copy_internal_parameters): Same.
11228         (translate_isl_ast_to_gimple): Use an sese_l.
11229         (build_iv_mapping): Same.
11230         * graphite-poly.c (new_sese): Rename new_sese_info.
11231         (free_sese): Rename free_sese_info.
11232         * graphite-poly.h (struct scop): Use an sese_info_p.
11233         (scop_set_region): Same.
11234         * graphite-scop-detection.c (struct sese_l): Moved...
11235         (get_entry_bb): Moved...
11236         (get_exit_bb): Moved...
11237         (parameter_index_in_region_1): Use an sese_info_p.
11238         (parameter_index_in_region): Same.
11239         (scan_tree_for_params): Same.
11240         (find_params_in_bb): Same.
11241         (sese_dom_walker): Use an sese_l.
11242         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11243         (reduction_phi_p): Same.
11244         (parameter_index_in_region_1): Use an sese_info_p.
11245         (propagate_expr_outside_region): Use an sese_l.
11246         * graphite.c: Replace uses of SCOP_REGION.
11247         * sese.c (sese_record_loop): Use an sese_info_p.
11248         (build_sese_loop_nests): Same.
11249         (sese_build_liveouts_use): Same.
11250         (sese_build_liveouts_bb): Same.
11251         (sese_build_liveouts_bb): Same.
11252         (sese_bad_liveouts_use): Same.
11253         (sese_reset_debug_liveouts_bb): Same.
11254         (sese_build_liveouts): Same.
11255         (new_sese): Renamed new_sese_info.
11256         (free_sese): Renamed free_sese_info.
11257         (set_rename): Use an sese_info_p.
11258         (graphite_copy_stmts_from_block): Same.
11259         (copy_bb_and_scalar_dependences): Same.
11260         (outermost_loop_in_sese_1): Use an sese_l.
11261         (outermost_loop_in_sese): Same.
11262         (if_region_set_false_region): Use an sese_info_p.
11263         (move_sese_in_condition): Same.
11264         (scalar_evolution_in_region): Use an sese_l.
11265         * sese.h (struct sese_l): ... here.
11266         (SESE_ENTRY): Remove.
11267         (SESE_ENTRY_BB): Remove.
11268         (SESE_EXIT): Remove.
11269         (SESE_EXIT_BB): Remove.
11270         (sese_contains_loop): Use an sese_info_p.
11271         (sese_nb_params): Same.
11272         (bb_in_sese_p): Use an sese_l.
11273         (stmt_in_sese_p): Same.
11274         (defined_in_sese_p): Same.
11275         (loop_in_sese_p): Same.
11276         (sese_loop_depth): Same.
11277         (struct ifsese_s): Use an sese_info_p.
11278         (gbb_loop_at_index): Use an sese_l.
11279         (nb_common_loops): Same.
11280         (scev_analyzable_p): Same.
11282 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11284         * config/i386/i386.c (ix86_conditional_register_usage): Use
11285         CALL_USED_REGISTERS_MASK.
11286         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11288 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11290         PR bootstrap/67385
11291         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11292         * configure: Regenerated.
11294 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11296         PR target/67850
11297         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11298         (ix86_set_current_function): This.
11299         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11301 2015-10-07  Richard Biener  <rguenther@suse.de>
11303         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11304         (vinfo_for_stmt): Adjust.
11305         (set_vinfo_for_stmt): Likewise.
11306         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11307         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11308         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11309         of inner loop.
11310         (vect_analyze_loop_1): Remove.
11311         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11312         inner loop when vectorizing an outer loop by splitting out from ...
11313         (vect_analyze_loop_form): ... here.
11315 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11317         PR c/65345
11318         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11319         Use create_tmp_var_raw instead of create_tmp_var.
11321 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
11323         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11324         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11325         * real.c (CACHED_FRACTION): New helper macro.
11326         (dconst_third_ptr): Use it.
11327         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11328         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11329         dconst_sixth.
11330         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11332 2015-10-06  Jeff Law  <law@redhat.com>
11334         PR tree-optimization/67816
11335         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11336         from remove_jump_threads_starting_at.  Accept an edge rather than
11337         a basic block.
11338         * tree-ssa-threadupdate.c (removed_edges): New hash table.
11339         (remove_jump_threads_including): Note edges that get removed from
11340         the CFG for later pruning of jump threading paths including them.
11341         (thread_through_all_blocks): Remove paths which include edges that
11342         have been removed.
11343         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11344         on each outgoing edges when optimizing away a control statement.
11346 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11348         * reorg.c (emit_delay_sequence): Store list of delay slot insns
11349         in a vector instead of rtx_insn_list.
11350         (add_to_delay_list): Likewise.
11351         (delete_from_delay_slot): Likewise.
11352         (optimize_skip): Likewise.
11353         (redirect_with_delay_list_safe_p): Likewise.
11354         (check_annul_list_true_false): Likewise.
11355         (steal_delay_list_from_target): Likewise.
11356         (steal_delay_list_from_fallthrough): Likewise.
11357         (redundant_insn): Likewise.
11358         (fill_simple_delay_slots): Likewise.
11359         (fill_slots_from_thread): Likewise.
11360         (fill_eager_delay_slots): Likewise.
11361         (relax_delay_slots): Likewise.
11363 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
11365         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11366         For -mgpopt=local, also exclude unintialized common symbols.
11367         * doc/invoke.texi (Nios II Options): Document the change.
11369 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11371         * config/aarch64/iterators.md (vwcore): Add missing cases for
11372          V4HF/V8HF modes.
11374 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11375             Sebastian Pop  <s.pop@samsung.com>
11377         * graphite-poly.c (new_scop): Initialize drs.
11378         * graphite-poly.h (struct dr_info): New.
11379         (struct scop): Add drs.
11380         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11381         (pdr_add_memory_accesses): Same.
11382         (build_poly_dr): Same.
11383         (build_alias_set): Same.
11384         (build_scop_drs): Same.
11385         (build_pbb_drs): Remove.
11386         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11387         * tree-data-ref.h (data_reference): Remove alias_set.
11389 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11390             Sebastian Pop  <s.pop@samsung.com>
11392         * graphite-poly.c (free_data_refs_aux): Remove.
11393         (free_gimple_poly_bb): Do not call free_data_refs_aux.
11394         * graphite-poly.h (struct base_alias_pair): Remove.
11395         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11396         base_alias_pair and dr->aux.
11397         (build_alias_set): Same.
11398         * tree-data-ref.c (create_data_ref): Initialize alias_set.
11399         * tree-data-ref.h (data_reference): Add alias_set.
11401 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
11402             Sebastian Pop  <s.pop@samsung.com>
11404         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11405         Do not set PDR_BASE_OBJECT_SET.
11406         * graphite-poly.h (poly_dr): Same.
11407         (PDR_BASE_OBJECT_SET): Remove.
11408         (new_poly_dr): Update decl.
11409         * graphite-sese-to-poly.c (build_poly_dr): Update call to
11410         new_poly_dr.
11411         (write_alias_graph_to_ascii_dimacs): Remove.
11412         (write_alias_graph_to_ascii_dot): Remove.
11413         (write_alias_graph_to_ascii_ecc): Remove.
11414         (dr_same_base_object_p): Remove.
11415         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
11416         code.
11417         (build_base_obj_set_for_drs): Remove.
11418         (dump_alias_graphs): Remove.
11419         (build_scop_drs): Remove dead code.
11421 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11422             Peter Bergner  <bergner@vnet.ibm.com>
11424         PR target/67808
11425         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11426         allow registers, but provide insns for the combiner to create for
11427         loads from memory. Separate VSX code from non-VSX code. For
11428         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11429         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11430         so that registers come before memory operations. Drop support from
11431         converting DFmode to TFmode, if the DFmode value is in a GPR
11432         register.
11433         (extenddftf2_fprs): Likewise.
11434         (extenddftf2_internal): Likewise.
11435         (extenddftf2_vsx): Likewise.
11436         (extendsftf2): In the expander, only allow registers, but provide
11437         insns for the combiner to create for stores and loads.
11439 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11441         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11442         from the decl parameter.
11444 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
11446         PR 67861
11447         * gimple-fold.c (gimple_fold_builtin): Add break after
11448         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11450 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
11452         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11453         to scop->isl_context.
11455 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11457         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11458         (output_probe_stack_range): Rotate the loop and simplify.
11459         (thumb1_expand_prologue): Tweak sorry message.
11460         * config/arm/arm.md (probe_stack): Use bare string.
11462 2015-10-06  Nick Clifton  <nickc@redhat.com>
11464         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11466 2015-10-06  Nick Clifton  <nickc@redhat.com>
11468         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11469         (ATTR_PERSIST): New constant.
11470         (msp430_data_attr): New function - verifies an attribute that only
11471         applies to variables.
11472         (msp430_attributes): Add noinit and persistent attributes.
11473         (noinit_section): New variable.
11474         (presis_section): New variable.
11475         (TARGET_ASM_INIT_SECTIONS): Define.
11476         (msp430_init_sections): New function - initialises the noinit and
11477         persist section variables.
11478         (msp430_select_section): Add support for noinit and persist
11479         attributes.
11480         (msp430_section_type_flags): Likewise.
11481         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
11482         and persistent attributes.
11484 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11485             Sebastian Pop  <s.pop@samsung.com>
11487         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11488         (no_violations): Remove.
11489         (subtract_commutative_associative_deps): Remove.
11490         (compute_deps): Do not call subtract_commutative_associative_deps.
11491         (transform_is_safe): Remove.
11492         (graphite_legal_transform): Remove.
11493         * graphite-poly.h (graphite_legal_transform): Remove.
11495 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
11497         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11498         which are in this region are passed so gcc_assert and remove redundant
11499         computation.
11500         * sese.c (sese_build_liveouts): Pass only those bbs which are not
11501         in region.
11502         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11503         gcc_assert on that and remove unnecessary computation.
11504         (sese_build_liveouts_use): Same.
11506 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11508         * graphite-dependences.c (scop_get_reads): Renamed scop->context
11509         to scop->param_context.
11510         (scop_get_must_writes): Same.
11511         (scop_get_may_writes): Same.
11512         (scop_get_original_schedule): Same.
11513         (scop_get_transformed_schedule): Same.
11514         (subtract_commutative_associative_deps): Same.
11515         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11516         (generate_isl_context): Same.
11517         (generate_isl_schedule): Same.
11518         (scop_to_isl_ast): Same.
11519         (graphite_regenerate_ast_isl): Same.
11520         * graphite-optimize-isl.c (scop_get_domains): Same.
11521         (optimize_isl): Renamed scop->context to scop->param_context.
11522         * graphite-poly.c (new_poly_bb): Change the type of argument to
11523         gimple_poly_bb_p.
11524         (new_scop): Renamed scop->context to scop->param_context.
11525         (free_scop): Same.
11526         (print_scop_context): Same.
11527         * graphite-poly.h (new_poly_dr): Change the type of argument from
11528         void* to data_reference_p.
11529         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11530         (new_poly_bb): Change the type of argument from void* to
11531         gimple_poly_bb_p.
11532         (pbb_set_black_box): Same.
11533         (struct scop): Rename context to param_context, ctx to isl_context.
11534         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11535         Move declarations closer to assignment.
11536         (find_params_in_bb): Same.
11537         (find_scop_parameters): Same.
11538         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11539         Global to be used for statement IDs.
11540         (isl_id_for_pbb): Use ssa_name_version_typesize.
11541         (simple_copy_phi_p): Move declarations closer to assignment.
11542         (build_pbb_scattering_polyhedrons): Same.
11543         (build_scop_scattering): Same.
11544         (isl_id_for_ssa_name): Same.
11545         (extract_affine_name): Same.
11546         (extract_affine_int): Same.
11547         (extract_affine): Same.
11548         (set_scop_parameter_dim): Use renamed member.
11549         (build_loop_iteration_domains): Same.
11550         (add_param_constraints): Same.
11551         (build_scop_iteration_domain): Same.
11552         (pdr_add_data_dimensions): Same.
11553         (build_poly_dr): Same.
11554         (build_scop_drs): Move declarations closer to assignment.
11555         (analyze_drs_in_stmts): Same.
11556         (insert_out_of_ssa_copy): Same.
11557         (insert_out_of_ssa_copy_on_edge): Same.
11558         (propagate_expr_outside_region): Same.
11559         (rewrite_phi_out_of_ssa): Same.
11560         (rewrite_degenerate_phi): Same.
11561         (rewrite_reductions_out_of_ssa): Same.
11562         (rewrite_cross_bb_scalar_dependence): Same.
11563         (handle_scalar_deps_crossing_scop_limits): Same.
11564         (rewrite_cross_bb_scalar_deps): Same.
11565         * graphite.c (graphite_transform_loops): Use renamed member.
11567 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
11569         PR c/65345
11570         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11571         create_tmp_var_raw instead of create_tmp_var.
11573 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11575         PR c/65345
11576         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11577         Use create_tmp_var_raw instead of create_tmp_var.
11579 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
11581         PR target/67849
11582         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11583         split for upper-bank registers when target does not support
11584         AVX512VL.
11585         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11586         split when target does not support AVX512VL.
11588 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
11590         PR c/65345
11591         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11592         Adjust to use create_tmp_var_raw instead of create_tmp_var.
11594 2015-10-06  Nick Clifton  <nickc@redhat.com>
11596         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11597         multiplication.
11599 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
11601         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11602         (case ${target}): Add znver1.
11603         * config/i386/cpuid.h(bit_CLZERO):  Define.
11604         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11605         -march=native recognize znver1 processors.
11606         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11607         znver1, clzero def_and_undef.
11608         * config/i386/i386.c (struct processor_costs znver1_cost): New.
11609         (m_znver1): New definition.
11610         (m_AMD_MULTIPLE): Includes m_znver1.
11611         (processor_target_table): Add znver1 entry.
11612         (ix86_target_string) : Add clzero entry.
11613         (static const char *const cpu_names): Add znver1 entry.
11614         (ix86_option_override_internal): Add znver1 instruction sets.
11615         (PTA_CLZERO) :  New definition.
11616         (ix86_option_override_internal): Handle new clzerooption.
11617         (ix86_issue_rate): Add znver1.
11618         (ix86_adjust_cost): Add znver1.
11619         (ia32_multipass_dfa_lookahead): Add znver1.
11620         (has_dispatch): Add znver1.
11621         * config/i386/i386.h (TARGET_znver1): New definition.
11622         (TARGET_CLZERO): Define.
11623         (TARGET_CLZERO_P): Define.
11624         (struct ix86_size_cost): Add TARGET_ZNVER1.
11625         (enum processor_type): Add PROCESSOR_znver1.
11626         * config/i386/i386.md (define_attr "cpu"): Add znver1.
11627         (set_attr znver1_decode): New definitions for znver1.
11628         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11629         (mclzero): New.
11630         * config/i386/mmx.md (set_attr znver1_decode): New definitions
11631         for znver1.
11632         * config/i386/sse.md (set_attr znver1_decode): Likewise.
11633         * config/i386/x86-tune.def:  Add znver1 tunings.
11634         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11635         * doc/invoke.texi: Add details about znver1
11637 2015-10-06  Richard Biener  <rguenther@suse.de>
11639         PR tree-optimization/67859
11640         * tree-ssa-pre.c (create_expression_by_pieces): Properly
11641         discard not inserted stmts.
11643 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
11645         * doc/extend.texi (Template Instantiation): Reorder options and
11646         de-emphasize -frepo.
11647         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11648         example instead of -frepo.
11650 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11652         PR c/65345
11653         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11654         use create_tmp_var_raw rather than create_tmp_var.
11656 2015-10-06  Richard Biener  <rguenther@suse.de>
11658         * tree-vectorizer.h (vec_info): New base class for...
11659         (_loop_vec_info): ... this and ...
11660         (_bb_vec_info): ... this.
11661         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11662         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11663         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11664         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11665         vect_destroy_datarefs): Adjust interface to take a vec_info *
11666         rather than both a loop_vec_info and a bb_vec_info argument.
11667         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11668         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11669         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11670         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11671         accordingly.
11672         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11673         (destroy_loop_vec_info, vect_analyze_loop_2,
11674         vect_is_simple_reduction_1, get_initial_def_for_induction,
11675         vect_create_epilog_for_reduction, vectorizable_reduction,
11676         vectorizable_live_operation, vect_transform_loop): Adjust.
11677         * tree-vect-patterns.c (type_conversion_p,
11678         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11679         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11680         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11681         check_bool_pattern, vect_recog_bool_pattern,
11682         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11683         * tree-vect-slp.c (vect_get_and_check_slp_defs,
11684         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11685         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11686         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11687         (new_bb_vec_info): Initialize base classs.
11688         * tree-vect-stmts.c (record_stmt_cost, process_use,
11689         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11690         vectorizable_mask_load_store, vectorizable_call,
11691         vectorizable_simd_clone_call, vectorizable_conversion,
11692         vectorizable_assignment, vectorizable_shift,
11693         vectorizable_operation, vectorizable_store,
11694         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11695         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11696         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11698 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
11700         PR c/65345
11701         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11702         create_tmp_var_raw rather than create_tmp_var.
11704 2015-10-05  Marek Polacek  <polacek@redhat.com>
11706         * tree-ssa-loop-im.c
11707         (move_computations_dom_walker::before_dom_children): Don't set
11708         SSA_NAME_ANTI_RANGE_P.
11709         * tree-ssa-phiopt.c (value_replacement): Likewise.
11711 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11712             Sebastian Pop  <s.pop@samsung.com>
11714         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11716 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11717             Sebastian Pop  <s.pop@samsung.com>
11719         * graphite-poly.c (new_gimple_poly_bb): ... here.
11720         (free_data_refs_aux): ... here.
11721         (free_gimple_poly_bb): ... here.
11722         (remove_gbbs_in_scop): ... here.
11723         (new_scop): Call new_sese.
11724         (free_scop): Call remove_gbbs_in_scop and free_sese.
11725         * graphite-poly.h (base_alias_pair): ... here.
11726         (new_gimple_poly_bb): Declare.
11727         (free_gimple_poly_bb): Declare.
11728         * graphite-scop-detection.c (parameter_index_in_region_1):
11729         (parameter_index_in_region): ... here.
11730         (scan_tree_for_params): ... here.
11731         (find_params_in_bb): ... here.
11732         (find_scop_parameters): ... here.
11733         (build_scops): Call find_scop_parameters.
11734         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11735         (free_scops): Move...
11736         (single_pred_cond_non_loop_exit): Move...
11737         (sese_dom_walker::before_dom_children): Move...
11738         (sese_dom_walker::after_dom_children): Move...
11739         (build_poly_scop): Move...
11740         * graphite-sese-to-poly.h (base_alias_pair): Move...
11741         * graphite.c (free_scops): ... here.
11743 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
11744             Sebastian Pop  <s.pop@samsung.com>
11746         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11747         (trivially_empty_bb_p): Move...
11748         (same_close_phi_node): Move...
11749         (new_gimple_poly_bb): Move...
11750         (compare_bb_depths): Move...
11751         (graphite_sort_dominated_info): Move...
11752         (remove_duplicate_close_phi): Move...
11753         (make_close_phi_nodes_unique): Move...
11754         (canonicalize_loop_closed_ssa): Move...
11755         (canonicalize_loop_closed_ssa_form): Move...
11756         (loop_ivs_can_be_represented): Move...
11757         (single_pred_cond_non_loop_exit): Move...
11758         (graphite_can_represent_init): Move...
11759         (graphite_can_represent_scev): Move...
11760         (stmt_has_simple_data_refs_p): Move...
11761         (stmt_has_side_effects):  Move...
11762         (graphite_can_represent_stmt): Move...
11763         (scop_detection): ... here.
11764         (sese_dom_walker): ... and here.
11765         (build_scops): Call all moved functions.
11766         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11767         (all_non_dominated_preds_marked_p): Move...
11768         (build_scop_bbs_1): Move...
11769         (build_scop_bbs): Move...
11770         (set_scop_parameter_dim): Move...
11771         (nb_pbbs_in_loops): Move...
11772         (build_poly_scop): Do not call all the moved functions.
11774 2015-10-05  Martin Jambor  <mjambor@suse.cz>
11775             Jan Hubicka  <hubicka@ucw.cz>
11777         * ipa-cp.c (ipcp_alignment_lattice): New type.
11778         (ipcp_param_lattices): Use the above to represent alignment.
11779         (ipcp_alignment_lattice::print): New function.
11780         (print_all_lattices): Use it to print alignment information.
11781         (ipcp_alignment_lattice::top_p): New function.
11782         (ipcp_alignment_lattice::bottom_p): Likewise.
11783         (ipcp_alignment_lattice::set_to_bottom): Likewise.
11784         (ipcp_alignment_lattice::meet_with_1): Likewise.
11785         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11786         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11787         (initialize_node_lattices): Likewise.
11788         (propagate_alignment_accross_jump_function): Work with the new class
11789         for alignment lattices.
11790         (propagate_constants_accross_call): Pass only the alignment lattice to
11791         propagate_alignment_accross_jump_function.
11792         (ipcp_store_alignment_results): Work with the new class for alignment
11793         lattices.
11795 2015-10-05  Marek Polacek  <polacek@redhat.com>
11797         PR tree-optimization/67821
11798         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11800 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
11802         PR other/65021
11803         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11804         function to...
11805         (mkoffload_cleanup): ... this.  Adjust all users.
11806         (maybe_unlink): Look at save_temps and verbose flags instead of
11807         debug flag.
11808         (main): Parse "-save-temps" flag.
11809         (generate_target_descr_file, generate_target_offloadend_file)
11810         (generate_host_descr_file, prepare_target_image): Pass it on.
11811         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11812         (mkoffload_cleanup): New function.
11813         (maybe_unlink): Look at save_temps and verbose flags instead of
11814         debug flag.
11815         (main): Instead of calling utils_cleanup, register atexit handler
11816         for mkoffload_cleanup.
11817         (main): Parse "-save-temps" flag.
11818         (compile_native, main): Pass it on.
11819         * lto-wrapper.c (compile_offload_image): Likewise.
11821 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11823         * gimple.h (gimple_op_ptr): Require a non const gimple *.
11824         (gimple_assign_lhs_ptr): Likewise.
11825         (gimple_assign_rhs1_ptr): Likewise.
11826         (gimple_assign_rhs2_ptr): Likewise.
11827         (gimple_assign_rhs3_ptr): Likewise.
11828         (gimple_call_lhs_ptr): Likewise.
11829         (gimple_call_fn_ptr): Likewise.
11830         (gimple_call_chain_ptr): Likewise.
11831                 (gimple_call_arg_ptr): Likewise.
11832                 (gimple_cond_lhs_ptr): Likewise.
11833         (gimple_cond_rhs_ptr): Likewise.
11834         (gimple_switch_index_ptr): Likewise.
11835         (gimple_return_retval_ptr): Likewise.
11837 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11839         * gimple.h (gimple_asm_input_op_ptr): Remove.
11840         (gimple_asm_output_op_ptr): Likewise.
11842 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11844         * gimple.h (gimple_location_ptr): Remove.
11845         * tree-vrp.c (check_all_array_refs): Adjust.
11847 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11849         * tree-ssa-operands.c (build_uses): store tree * instead of
11850         tree.
11851         (finalize_ssa_uses): Adjust.
11852         (append_use): Likewise.
11853         (verify_ssa_operands): Likewise.
11855 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11857         * real.h (build_real_truncate): Declare.
11858         * tree.c (build_real_truncate): New function.
11859         (strip_float_extensions): Use it.
11860         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11861         (fold_builtin_hypot, fold_builtin_pow): Likewise.
11862         * match.pd: Likewise.
11864 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11865            Jiong Wang  <jiong.wang@arm.com>
11867         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11869 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11871         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11872         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11873         (aarch64_print_operand, aarch64_float_const_representable_p)
11874         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11875         instead of REAL_VALUE_FROM_CONST_DOUBLE.
11876         * config/arc/arc.c (arc_print_operand): Likewise.
11877         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11878         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11879         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11880         Likewise.
11881         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11882         (consttable_16): Likewise.
11883         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11884         * config/avr/avr.c (avr_print_operand): Likewise.
11885         * config/bfin/bfin.md: Likewise (in a define_split).
11886         * config/c6x/c6x.md: Likewise (in a define_split).
11887         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11888         (cr16_print_operand): Likewise.
11889         * config/cris/cris.c (cris_print_operand): Likewise.
11890         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11891         * config/fr30/fr30.c (fr30_print_operand): Likewise.
11892         (fr30_const_double_is_zero): Likewise.
11893         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11894         * config/frv/frv.md: Likewise (in a define_split).
11895         * config/frv/predicates.md (int_2word_operand): Likewise.
11896         * config/h8300/h8300.c (h8300_print_operand): Likewise.
11897         * config/i386/i386.c (standard_80387_constant_p): Likewise.
11898         (ix86_print_operand, ix86_split_to_parts): Likewise.
11899         * config/i386/i386.md: Likewise (in a define_split).
11900         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11901         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11902         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11903         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11904         (print_operand): Likewise.
11905         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11906         * config/mep/mep.md: Likewise (in define_split).
11907         * config/microblaze/microblaze.c (microblaze_const_double_ok)
11908         (print_operand): Likewise.
11909         * config/mips/mips.md (consttable_float): Likewise.
11910         * config/mmix/mmix.c (mmix_intval): Likewise.
11911         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11912         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11913         * config/pa/pa.c (pa_singlemove_string): Likewise.
11914         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11915         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11916         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11917         (output_toc): Likewise.
11918         * config/rs6000/rs6000.md: Likewise (in define_splits).
11919         * config/rx/rx.c (rx_print_operand): Likewise.
11920         * config/s390/s390.c (s390_output_pool_entry): Likewise.
11921         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11922         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11923         (and also in define_splits).
11924         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11925         (fp_high_losum_p): Likewise.
11926         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11927         (*movsf_high): Likewise.
11928         * config/spu/spu.c (const_double_to_hwint): Likewise.
11929         * config/v850/v850.c (const_double_split): Likewise.
11930         * config/vax/vax.c (vax_float_literal): Likewise.
11931         * config/visium/visium.c (visium_expand_copysign): Likewise.
11932         * config/visium/visium.md: Likewise (in define_split).
11933         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11934         * config/xtensa/xtensa.c (print_operand): Likewise.
11935         (xtensa_output_literal): Likewise.
11936         * cprop.c (implicit_set_cond_p): Likewise.
11937         * dwarf2out.c (insert_float): Likewise.
11938         * expmed.c (expand_mult, make_tree): Likewise.
11939         * expr.c (compress_float_constant): Likewise.
11940         * rtlanal.c (split_double): Likewise.
11941         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11942         (simplify_const_unary_operation, simplify_binary_operation_1)
11943         (simplify_const_binary_operation): Likewise.
11944         (simplify_const_relational_operation): Likewise.
11945         * varasm.c (output_constant_pool_2): Likewise.
11947 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11949         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11950         instead of CONST_DOUBLE_FROM_REAL_VALUE.
11951         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11952         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11953         instead of CONST_DOUBLE_FROM_REAL_VALUE.
11954         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11955         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11956         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11957         (ix86_emit_swsqrtsf): Likewise.
11958         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11959         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11960         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11961         * config/pa/pa.c (pa_expand_builtin): Likewise.
11962         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11963         (rs6000_scale_v2df): Likewise.
11964         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11965         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11966         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11967         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11968         (vec_ctul): Likewise.
11969         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11970         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11971         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11972         * cse.c (fold_rtx): Likewise.
11973         * emit-rtl.c (immed_double_const): Likewise (in comments).
11974         (init_emit_once): Likewise.
11975         * expr.c (compress_float_constant, expand_expr_real_1)
11976         (const_vector_from_tree): Likewise.
11977         * optabs.c (expand_float, expand_fix): Likewise.
11978         * reg-stack.c (reg_to_stack): Likewise.
11979         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11980         (simplify_const_unary_operation, simplify_binary_operation_1)
11981         (simplify_const_binary_operation, simplify_relational_operation)
11982         (simplify_immed_subreg): Likewise.
11984 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
11986         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11987         * doc/tm.texi: Regenerate.
11988         * real.h (REAL_ARITHMETIC): Delete.
11989         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11990         (ix86_expand_round_sse4): Use real_arithmetic instead of
11991         REAL_ARITHMETIC.
11992         * config/i386/sse.md (round<mode>2): Likewise.
11993         * rtl.h (rtx_to_tree_code): Likewise (in comment).
11994         * explow.c (rtx_to_tree_code): Likewise (in comment).
11995         * match.pd: Likewise.
11996         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11997         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11998         (expand_pow_as_sqrts): Likewise.
11999         * tree-pretty-print.c (dump_generic_node): Remove code that
12000         was conditional on REAL_ARITHMETIC being undefined.
12002 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12004         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12005         * doc/tm.texi: Regenerate.
12006         * real.h (real_less): Declare.
12007         (REAL_VALUES_LESS): Delete.
12008         * real.c (real_less): New function.
12009         (real_compare): Use it.
12010         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12011         of REAL_VALUES_LESS.
12012         * config/microblaze/microblaze.c (microblaze_const_double_ok):
12013         Likewise.
12014         * fold-const.c (fold_convert_const_int_from_real): Likewise.
12015         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12016         (simplify_const_relational_operation): Likewise.
12017         * tree-call-cdce.c (check_pow): Likewise.
12018         (gen_conditions_for_pow_cst_base): Likewise.
12020 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12022         * real.h (REAL_VALUES_IDENTICAL): Delete.
12023         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12024         instead of REAL_VALUES_IDENTICAL.
12025         * fold-const.c (operand_equal_p): Likewise.
12026         * ipa-icf.c (sem_variable::equals): Likewise.
12027         * tree-complex.c (some_nonzerop): Likewise.
12028         (expand_complex_multiplication): Likewise.
12029         * tree.c (simple_cst_equal): Likewise.
12030         * varasm.c (compare_constant): Likewise.
12032 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12034         * real.h (real_equal): Declare.
12035         (REAL_VALUES_EQUAL): Delete.
12036         * real.c (real_equal): New function.
12037         (real_compare): Use it.
12038         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12039         * doc/tm.texi: Regenerate.
12040         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12041         real_equal instead of REAL_VALUES_EQUAL.
12042         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12043         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12044         (fp_const_from_val): Likewise.
12045         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12046         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12047         (floating_exact_log2): Likewise.
12048         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12049         * config/vax/vax.c (vax_float_literal): Likewise.
12050         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12051         * cprop.c (implicit_set_cond_p): Likewise.
12052         * expmed.c (expand_mult): Likewise.
12053         * fold-const.c (const_binop): Likewise.
12054         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12055         (simplify_const_binary_operation): Likewise.
12056         (simplify_const_relational_operation): Likewise.
12057         * tree-call-cdce.c (check_pow): Likewise.
12058         (gen_conditions_for_pow_cst_base): Likewise.
12059         * tree-inline.c (estimate_num_insns): Likewise.
12060         * tree-ssa-dom.c (record_equality): Likewise.
12061         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12062         (gimple_expand_builtin_pow): Likewise.
12063         (pass_optimize_widening_mul::execute): Likewise.
12064         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12065         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12066         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12068 2015-10-05  Richard Biener  <rguenther@suse.de>
12070         PR ipa/67783
12071         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12072         consider loop header PHI defs as IVs.
12074 2015-10-05  Richard Biener  <rguenther@suse.de>
12076         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12077         call handling ...
12078         (create_expression_by_pieces): ... here and build GIMPLE
12079         calls directly.  Use gimple_build API and avoid force_gimple_operand.
12080         (insert_into_preds_of_block): Simplify.
12081         (do_regular_insertion): Add comment.
12083 2015-10-04  Jason Merrill  <jason@redhat.com>
12085         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12087 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
12089         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12090         check for general register.
12091         (ix86_emit_save_regs): Ditto.
12092         (ix86_emit_save_regs_using_mov): Ditto.
12093         (ix86_emit_restore_regs_using_pop): Ditto.
12094         (ix86_emit_restore_regs_using_mov): Ditto.
12096 2015-10-03  Marek Polacek  <polacek@redhat.com>
12098         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12099         (insn-dfatab.o): Likewise.
12101 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
12103         * config.gcc (xtensa*-*-uclinux*): New configuration.
12104         * config/xtensa/uclinux.h: New file.
12105         * config/xtensa/uclinux.opt: New file.
12107 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
12109         * doc/cpp.texi (Standard Predefined Macros): Document value of
12110         __cplusplus for C++14.
12112 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
12114         * gcc.c (process_command): Use spec_machine rather than
12115         spec_host_machine to build tooldir_prefix2.
12117 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12118             Bernd Schmidt  <bernds@codesourcery.com>
12120         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12121         (Token, Stmt): Remove structs.
12122         (decls, vars, fns): Remove variables.
12123         (alloc_comment, append_stmt, is_keyword): Remove macros.
12124         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12125         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12126         (parse_init, parse_file): Remove functions.
12127         (read_file): Accept a pointer to a length and store into it.
12128         (process): Don't try to parse the input file, just write it out as
12129         a string, but looking for maps.  Also write out the length.
12130         (main): Don't use "-S" to compile PTX code.
12132 2015-10-02  Jeff Law  <law@redhat.com>
12134         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12135         fixups.
12137 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12139         PR target/67822
12140         * config/nvptx/mkoffload.c (main): Scan the argument vector for
12141         -fopenmp, and skip generating an offloading image if specified.
12143 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
12145         * system.h (ROUND_UP): New macro definition.
12146         (ROUND_DOWN): Ditto.
12147         * ggc-page.c (ROUND_UP): Remove local macro definition.
12148         (PAGE_ALIGN): Implement using ROUND_UP macro.
12150         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12151         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12152         to align values.
12153         (ix86_compute_frame_layout): Ditto.
12154         (ix86_expand_prologue): Ditto.
12155         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12156         to round down values.
12157         (expand_set_or_movmem_via_rep): Ditto.
12159 2015-10-02  Marek Polacek  <polacek@redhat.com>
12161         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12163 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
12165         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12166         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12167         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12168         (free_gimple_bb): Renamed free_gimple_poly_bb.
12169         (try_generate_gimple_bb): Hoist loop invariant code.
12170         (analyze_drs_in_stmts): Same.
12171         (build_scop_drs): Call renamed functions.
12172         (new_pbb_from_pbb): Same.
12173         (scop_ivs_can_be_represented): Delete as functionality now moved to
12174         graphite-scop-detection.c
12175         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12177 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
12179         * graphite-scop-detection.c (stmt_has_side_effects): New function
12180           outlined from stmt_simple_for_scop_p.
12181         (graphite_can_represent_stmt): Same.
12182         (stmt_simple_for_scop_p): Moved code out of this function for better
12183         readability.
12185 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12187         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12188         F_AVX512IFMA.
12189         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12191 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12193         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12195 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12197         PR rtl-optimization/67756
12198         * lra-constraints.c (match_reload): Add a new parameter.  Use it
12199         for creating a pseudo with the same value.
12200         (curr_insn_transform): Pass a new argument to match_reload.
12202 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12204         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12205         (expand_vec_perm_even_odd_1): Handle V64QImode.
12206         (ix86_expand_vec_perm_const_1): Try expansion with
12207         expand_vec_perm_even_odd_trunc as well.
12208         * config/i386/sse.md (VI124_AVX512F): Rename to ...
12209         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12210         to V54QI.
12211         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12212         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12213         to V32HI and V16SI.
12214         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12215         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12216         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12217         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12218         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12219         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12221 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12223         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12224         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12226 2015-10-02  Jason Merrill  <jason@redhat.com>
12228         PR c/59218
12229         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12230         (diagnose_tm_1_op): Also diagnose volatile accesses in
12231         transaction_safe function.
12233 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
12235         * system.h (malloc.h): Don't include obsolete header.
12237 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12239         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12240         (TLS_SECTION_ASM_FLAG): Delete.
12242 2015-10-02  Marek Polacek  <polacek@redhat.com>
12244         PR c/64249
12245         * doc/invoke.texi: Document -Wduplicated-cond.
12246         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12247         (insn-dfatab.o): Likewise.
12248         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12249         warning.
12251 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
12253         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12254         sequences.
12256 2015-10-02  Renlin Li  <renlin.li@arm.com>
12258         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12260 2015-10-02  Renlin Li  <renlin.li@arm.com>
12262         PR target/66776
12263         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12265 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12267         PR rtl-optimization/67786
12268         PR rtl-optimization/67787
12269         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12270         it modifies a reg used in the condition calculation.
12272 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
12274         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12275         alternatives for reads from memory and moves from general-purpose
12276         registers.
12277         (*aarch64_combinez_be<mode>): Likewise.
12279 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
12281         PR target/51726
12282         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12283         selectany within this function without need to keep attribute.
12284         (i386_pe_encode_section_info): Remove selectany-code.
12286 2015-10-02  Richard Biener  <rguenther@suse.de>
12288         * tree-ssa-sccvn.c (has_VN_INFO): New function.
12289         (free_scc_vn): Use it.
12290         (visit_use): Remove dead code and refactor to use gassign
12291         and use less indentation.
12293 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12295         PR target/67788
12296         PR target/67789
12297         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12298         (rs6000_cannot_copy_insn_p): New function.
12299         * config/rs6000/rs6000.md (cannot_copy): New attribute.
12300         (load_toc_v4_PIC_1_normal): Set cannot_copy.
12301         (load_toc_v4_PIC_1_476): Ditto.
12303 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
12305         * graphite-scop-detection.c (struct sese_l): New conversion constructor
12306         so that this type can be pushed into a vec.
12307         (class scop_builder): use sese_l to collect scops.
12308         (get_scops): New getter function.
12309         (remove_intersecting_scops): Use sese_l instead of scops_p.
12310         (intersects): Same.
12311         (add_scop): Same.
12312         (subsumes): Same.
12313         (remove_subscops): Same.
12314         (build_scops): Add scops to vec<scops_p> once all the scops have been
12315         detected.
12317 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
12319         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12320         Renamed type from gimple_bb_p to gimple_poly_bb_p.
12321         (translate_isl_ast_node_user): Same.
12322         * graphite-poly.c (new_poly_bb): Same.
12323         * graphite-poly.h (gbb_from_bb): Same.
12324         * sese.h: Same.
12325         * graphite-sese-to-poly.c (new_gimple_bb):
12326         gimple_bb_p -> gimple_poly_bb_p
12327         (build_scop_scattering): Same.
12328         (find_params_in_bb): Same.
12329         (add_conditions_to_domain): Same.
12330         (sese_dom_walker::before_dom_children): Same.
12331         (analyze_drs_in_stmts): Same.
12332         (new_pbb_from_pbb): Same.
12333         (free_data_refs_aux): New pointer to type base_alias_pair.
12334         * graphite-sese-to-poly.h: Same.
12335         * sese.c (if_region_set_false_region): Fixed Indentation.
12336         (move_sese_in_condition): Same.
12338 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12339             Aditya Kumar  <aditya.k7@samsung.com>
12341         PR tree-optimization/66980
12342         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12343         when data reference analysis has failed.
12345 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12346             Aditya Kumar  <aditya.k7@samsung.com>
12348         PR tree-optimization/67754
12349         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12350         scev analysis on the same loop nest as analyze_drs_in_stmts.
12351         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12352         renamed...
12353         (try_generate_gimple_bb): Call outermost_loop_in_sese.
12354         (analyze_drs_in_stmts): Same.
12355         * sese.c (outermost_loop_in_sese): ...here.
12357 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12358             Aditya Kumar  <aditya.k7@samsung.com>
12360         PR tree-optimization/67754
12361         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12362         recursion on the inner loops.
12364 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12366         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12367         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12368         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12369         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12370         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12372 2015-10-01  Marek Polacek  <polacek@redhat.com>
12374         PR c/65345
12375         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12376         create_tmp_var_raw rather than create_tmp_var.
12378 2015-10-01  Marek Polacek  <polacek@redhat.com>
12380         PR tree-optimization/67769
12381         * tree-ssa-phiopt.c (conditional_replacement): Call
12382         reset_flow_sensitive_info_in_bb.
12383         (minmax_replacement): Likewise.
12384         (abs_replacement): Likewise.
12386 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
12388         * builtins.c: Don't include gomp-constants.h.
12389         (fold_builtin_1): Don't fold acc_on_device here.
12390         * gimple-fold.c: Include gomp-constants.h.
12391         (gimple_fold_builtin_acc_on_device): New.
12392         (gimple_fold_builtin): Call it.
12394 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12396         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12397         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12399 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
12401         * config/arm/aarch-common-protos.h
12402         (aarch_accumulator_forwarding): New.
12403         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12404         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12405         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12406         * config/arm/cortex-a53.md: Rewrite.
12408 2015-10-01  Richard Biener  <rguenther@suse.de>
12410         * gimple-match.h (mprts_hook): Declare.
12411         * gimple-match.head.c (mprts_hook): Define.
12412         (maybe_push_res_to_seq): Use new hook.
12413         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12414         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12415         (vn_ssa_aux::has_constants): Remove.
12416         * tree-ssa-sccvn.c: Include gimple-match.h.
12417         (VN_INFO_GET): Assert we don't re-use SSA names.
12418         (vn_get_expr_for): Remove.
12419         (expr_has_constants): Likewise.
12420         (stmt_has_constants): Likewise.
12421         (simplify_binary_expression): Likewise.
12422         (simplify_unary_expression): Likewise.
12423         (vn_lookup_simplify_result): New hook.
12424         (visit_copy): Adjust.
12425         (visit_reference_op_call): Likewise.
12426         (visit_phi): Likewise.
12427         (visit_use): Likewise.
12428         (process_scc): Likewise.
12429         (init_scc_vn): Likewise.
12430         (visit_reference_op_load): Likewise.  Use match-and-simplify and
12431         a gimple seq for inserted expressions.
12432         (try_to_simplify): Remove GENERIC stmt combining code.
12433         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12434         * tree-ssa-pre.c (eliminate_insert): Adjust.
12435         (eliminate_dom_walker::before_dom_children): Likewise.
12437 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12439         * doc/invoke.texi (Optimization Options): Add
12440         -freorder-blocks-algorithm=.
12441         (Optimize Options) <-O>: Add -freorder-blocks.
12442         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
12443         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12444         <-freorder-blocks>: Also enabled at levels -O and -Os.
12445         <-freorder-blocks-algorithm=>: Document new option.
12447 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12449         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12450         with flag_reorder_blocks_algorithm.
12451         * common.opt (freorder-blocks-algorithm=): New flag.
12452         (reorder_blocks_algorithm): New enum.
12453         * flag-types.h (reorder_blocks_algorithm): New enum.
12454         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12455         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12457 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12459         * bb-reorder.c: Add intro comment.
12460         (reorder_basic_blocks_software_trace_cache): Print a header to
12461         the dump file.
12462         (edge_order): New function.
12463         (reorder_basic_blocks_simple): New function.
12464         (reorder_basic_blocks): Choose between the STC and the simple
12465         algorithms (always choose the former).
12467 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12469         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12470         function, factored out from ...
12471         (reorder_basic_blocks): ... here.
12473 2015-10-01  Tom de Vries  <tom@codesourcery.com>
12475         * tree-cfg.c (dump_function_to_file): Dump function attributes using
12476         __attribute__(()) string.  Move dumping of function attributes to before
12477         function name.
12479 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
12481         PR target/66870
12482         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12483         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12484         based on gold linker version.
12485         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12486         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12487         * configure, config.in: Regenerate.
12489 2015-10-01  Alan Modra  <amodra@gmail.com>
12491         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12492         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12493         (rs6000_output_mi_thunk): Likewise.
12495 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
12497         * config/nvptx/mkoffload.c (process): Change offload data format.
12499 2015-09-30  Jeff Law  <law@redhat.com>
12501         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12502         with constant conditions.
12503         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12504         (remove_ctrl_stmt_and_useless_edges): No longer static.
12505         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12506         (remove_ctrl_stmt_and_useless_edges): Likewise.
12508 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
12509             Cesar Philippidis  <cesar@codesourcery.com>
12511         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12512         (TARGET_GOACC_VALIDATE_DIMS): Override.
12513         * target.def (TARGET_GOACC): New target hook prefix.
12514         (validate_dims): New hook.
12515         * targhooks.h (default_goacc_validate_dims): New.
12516         * omp-low.c (oacc_validate_dims): New.
12517         (execute_oacc_device_lower): New.
12518         (default_goacc_validate_dims): New.
12519         (pass_data_oacc_device_lower): New.
12520         (pass_oacc_device_lower): New pass.
12521         (make_pass_oacc_device_lower): New.
12522         * tree-pass.h (make_pass_oacc_device_lower): Declare.
12523         * passes.def (pass_oacc_device_lower): Add it.
12524         * doc/tm.texi: Rebuilt.
12525         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12526         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12528 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12530         PR rtl-optimization/67037
12531         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12533 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
12535         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12536         * passes.c: Include tree-ssanames.h.
12537         (execute_function_todo): Flush the pending free SSA_NAMEs after
12538         eliminating unreachable basic blocks.
12539         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12540         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12541         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12542         (flush_ssanames_freelist): New function.
12543         (release_ssaname_fn): Put released names on the queue.
12544         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12545         * tree-ssanames.h (flush_ssanames_freelist): Declare.
12547 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12549         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12550         (generate_target_descr_file, generate_target_offloadend_file)
12551         (generate_host_descr_file, prepare_target_image): Pass it on.
12552         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12553         (compile_native, main): Pass it on.
12554         * lto-wrapper.c (compile_offload_image): Likewise.
12556 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12557             Ilya Verbin  <ilya.verbin@intel.com>
12558             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12560         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12561         (prepare_target_image, main): Refactor argv building to use
12562         obstacks.
12564 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12566         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12567         * config/spu/spu.c (spu_expand_atomic_op): New function.
12568         * config/spu/spu.md (AINT): New mode iterator.
12569         (ATOMIC): New code iterator.
12570         (atomic_name, atomic_pred): New code predicates.
12571         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12572         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12573         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12574         "atomic_<atomic_name>_fetch<mode>"): Likewise.
12576 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
12578         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12579         debug insns.
12580         (scalar_chain::convert_reg): Likewise.
12582 2015-09-30  Richard Biener  <rguenther@suse.de>
12584         * builtins.c: Add comment that no new simplifications should
12585         be added here.
12587 2015-09-30  Marek Polacek  <polacek@redhat.com>
12589         PR tree-optimization/67690
12590         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12591         reset_flow_sensitive_info_in_bb.
12592         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12593         * tree-ssanames.c: Include "gimple-iterator.h".
12594         (reset_flow_sensitive_info_in_bb): New function.
12595         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12597 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
12599         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12600         variable, replacing it with...
12601         (offload_abi): ... this new variable.  Adjust all users.
12602         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12604 2015-09-30  Matthias Klose  <doko@ubuntu.com>
12606         * configure.ac: Remove extraneous ;;.
12607         * configure: Regenerate.
12609 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
12611         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12612         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12613         predicate, disallow register for operand 2.
12615 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
12617         * graphite-dependences.c (scop_get_dependences): Moved in down
12618         in order to be visible to its caller.
12619         * graphite-poly.h: Removed compute_deps, and extend_schedule.
12621 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
12622             Aditya Kumar  <aditya.k7@samsung.com>
12624         PR tree-optimization/67754
12625         * graphite-optimize-isl.c (optimize_isl): Call
12626         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12628 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
12630         * builtins.c (expand_builtin_acc_on_device): Delete.
12631         (expand_builtin): Don't call it.
12632         (fold_builtin_1): Fold acc_on_device.
12634 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
12636         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12637         (ix86_nsaved_sseregs): Likewise.
12639 2015-09-29  Jeff Law  <law@redhat.com>
12641         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12642         computation of unused value.
12644         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12645         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12646         inline macro expansion.
12648         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12650         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12651         (gen_shl_sext): Likewise.
12652         * config/sh/sh.md (divsi3): Likewise.
12653         (imm->ext_dest_operand splitter): Likewise.
12655 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
12656             Aditya Kumar  <aditya.k7@samsung.com>
12658         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12659         (nb_data_writes_in_bb): Remove.
12660         (split_pbb): Remove.
12661         (split_reduction_stmt): Remove.
12662         (is_reduction_operation_p): Remove.
12663         (phi_contains_arg): Remove.
12664         (follow_ssa_with_commutative_ops): Remove.
12665         (detect_commutative_reduction_arg): Remove.
12666         (detect_commutative_reduction_assign): Remove.
12667         (follow_inital_value_to_phi): Remove.
12668         (edge_initial_value_for_loop_phi): Remove.
12669         (initial_value_for_loop_phi): Remove.
12670         (used_outside_reduction): Remove.
12671         (detect_commutative_reduction): Remove.
12672         (translate_scalar_reduction_to_array_for_stmt): Remove.
12673         (remove_phi): Remove.
12674         (dr_indices_valid_in_loop): Remove.
12675         (close_phi_written_to_memory): Remove.
12676         (translate_scalar_reduction_to_array): Remove.
12677         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12678         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12679         (rewrite_commutative_reductions_out_of_ssa): Remove.
12680         (build_poly_scop): Remove call to
12681         rewrite_commutative_reductions_out_of_ssa.
12683 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
12685         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12686         Add new insn types for vector load and store pairs.
12687         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12688         types "neon_ldp{,_q}".
12689         * config/arm/cortex-a57.md (neon_load_c): Add insn types
12690         "neon_ldp{,_q}".
12691         (neon_store_complex): Add insn types "neon_stp{,_q}".
12692         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12693         "neon_{ldp,stp}_q".
12695 2015-09-29  Jeff Law  <law@redhat.com>
12697         * config/rx/constraints.md (Int08): Fix undefined left shift
12698         behaviour.
12699         (Sint08, Sint16, Sint24): Likewise.
12700         * config/rx/rx.c (rx_get_stack_layout): Likewise.
12702         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12703         behaviour.
12705         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12706         left shift behaviour.
12707         * config/msp430/constraints.md ('L' constraint): Similarly.
12708         ('Ys' constraint): Similarly.
12710 2015-09-29  Richard Biener  <rguenther@suse.de>
12712         PR tree-optimization/67170
12713         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12714         the translate function pointer parameter to get the
12715         bool whether to disambiguate only by reference.
12716         (walk_non_aliased_vuses): Likewise.
12717         * tree-ssa-alias.c (maybe_skip_until): Adjust.
12718         (get_continuation_for_phi_1): Likewise.
12719         (get_continuation_for_phi): Likewise.
12720         (walk_non_aliased_vuses): Likewise.
12721         * tree-ssa-sccvn.c (const_parms): New bitmap.
12722         (vn_reference_lookup_3): Adjust for interface change.
12723         Disambiguate parameters pointing to readonly memory.
12724         (free_scc_vn): Free const_parms.
12725         (run_scc_vn): Initialize const_parms from a fn spec attribute.
12727 2015-09-29  Richard Biener  <rguenther@suse.de>
12729         PR tree-optimization/67741
12730         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12731         builtin calls with correct signature.
12733 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
12735         PR target/65105
12736         * config/i386/i386.c: Include dbgcnt.h.
12737         (has_non_address_hard_reg): New.
12738         (convertible_comparison_p): New.
12739         (scalar_to_vector_candidate_p): New.
12740         (remove_non_convertible_regs): New.
12741         (scalar_chain): New.
12742         (scalar_chain::scalar_chain): New.
12743         (scalar_chain::~scalar_chain): New.
12744         (scalar_chain::add_to_queue): New.
12745         (scalar_chain::mark_dual_mode_def): New.
12746         (scalar_chain::analyze_register_chain): New.
12747         (scalar_chain::add_insn): New.
12748         (scalar_chain::build): New.
12749         (scalar_chain::compute_convert_gain): New.
12750         (scalar_chain::replace_with_subreg): New.
12751         (scalar_chain::replace_with_subreg_in_insn): New.
12752         (scalar_chain::emit_conversion_insns): New.
12753         (scalar_chain::make_vector_copies): New.
12754         (scalar_chain::convert_reg): New.
12755         (scalar_chain::convert_op): New.
12756         (scalar_chain::convert_insn): New.
12757         (scalar_chain::convert): New.
12758         (convert_scalars_to_vector): New.
12759         (pass_data_stv): New.
12760         (pass_stv): New.
12761         (make_pass_stv): New.
12762         (ix86_option_override): Created and register stv pass.
12763         (flag_opts): Add -mstv.
12764         (ix86_option_override_internal): Likewise.
12765         * config/i386/i386.md (SWIM1248x): New.
12766         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12767         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12768         (*anddi3_doubleword): New.
12769         (*zext<mode>_doubleword): New.
12770         (*zextsi_doubleword): New.
12771         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12772         (*<code>di3_doubleword): New.
12773         * config/i386/i386.opt (mstv): New.
12774         * dbgcnt.def (stv_conversion): New.
12776 2015-09-29  Tom de Vries  <tom@codesourcery.com>
12778         * tree-cfg.c (dump_function_to_file): Dump function attributes.
12780 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12782         PR target/67716
12783         * config/sh/sh.c (sh_override_options_after_change): New.
12784         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12785         (sh_option_override): Move align_loops, align_jumps and
12786         align_functions handling into sh_override_options_after_change.
12788 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
12790         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12791         (nvptx_record_offload_symbol): Record function execution geometry.
12792         * config/nvptx/mkoffload.c (process): Include launch geometry in
12793         function data.
12794         * omp-low.c (oacc_launch_pack): New.
12795         (replace_oacc_fn_attrib): New.
12796         (set_oacc_fn_attrib): New.
12797         (get_oacc_fn_attrib): New.
12798         (expand_omp_target): Create keyed varargs for GOACC_parallel call
12799         generation.
12800         * omp-low.h (get_oacc_fn_attrib): Declare.
12801         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12802         (DEF_FUNCTION_TYPE_VAR_11): Delete.
12803         * tree.h (OMP_CLAUSE_EXPR): New.
12804         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12806 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12807             Sebastian Pop  <s.pop@samsung.com>
12809         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12811 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12812             Sebastian Pop  <s.pop@samsung.com>
12814         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12815         * graphite-scop-detection.c (struct sese_l): New type.
12816         (get_entry_bb): API for getting entry bb of SESE.
12817         (get_exit_bb): API for getting exit bb of SESE.
12818         (class debug_printer): New type.  Simple printer in debug mode.
12819         (trivially_empty_bb_p): New.  Return true when BB is empty or
12820         contains only debug instructions.
12821         (graphite_can_represent_expr): Call scalar_evoution_in_region
12822         instead of analyze_scalar_evolution.  Pass in scop instead of only
12823         the scop entry.
12824         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12825         scop entry.
12826         (stmt_simple_for_scop_p): Same.
12827         (harmful_stmt_in_bb): Same.
12828         (graphite_can_represent_loop): Deleted.
12829         (struct scopdet_info): Deleted.
12830         (scopdet_basic_block_info): Deleted.
12831         (build_scops_1): Deleted.
12832         (bb_in_sd_region): Deleted.
12833         (find_single_entry_edge): Deleted.
12834         (find_single_exit_edge): Deleted.
12835         (create_single_entry_edge): Deleted.
12836         (sd_region_without_exit): Deleted.
12837         (create_single_exit_edge): Deleted.
12838         (unmark_exit_edges): Deleted.
12839         (mark_exit_edges): Deleted.
12840         (create_sese_edges): Deleted.
12841         (build_graphite_scops): Deleted.
12842         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12843         (build_scops): Use the new scop_builder to build scops.
12844         (dot_all_scops_1): Use the new pretty printer.  Print loop father
12845         as well.
12846         (loop_body_is_valid_scop): New.  Return true if loop body is a
12847         valid scop.
12848         (class scop_builder): New.  Builds SCoPs for polyhedral
12849         optimizations.
12850         (scop_builder): New constructor.
12851         (static sese_l invalid_sese): sese_l with invalid edges.
12852         (get_sese): Get an sese (from a loop) if possible, invalid_sese
12853         otherwise.
12854         (get_nearest_dom_with_single_entry): Get nearest dominator of a
12855         basic_block with single entry.  Return NULL if we get to the
12856         beginning of a function.
12857         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12858         a basic_block with single exit.  Return NULL if we get to the
12859         beginning of a function.
12860         (print_sese): Pretty-print SESE.
12861         (merge_sese): Merge two SESEs if possible and return the new SESE.
12862         (build_scop_depth): Start building the SCoP within a loop nest.
12863         (build_scop_breadth): Start building the SCoP at a single loop
12864         depth.  Merge adjacent SESEs if valid.
12865         (can_represent_loop_1): Returns true if Graphite can represent
12866         loop inside SCoP.  Helper for can_represent_loop.
12867         (can_represent_loop): Returns true if Graphite can represent LOOP
12868         and all its nested loops in SCoP.
12869         (loop_is_valid_scop): Returns true if LOOP and all its nests
12870         constitute a valid SCoP.
12871         (region_has_one_loop): Returns true of a region has only one loop.
12872         (add_scop): Add SCoP to the list of valid scops.  Removes an
12873         already existing scop if it intersects with or subsumed by this one.
12874         (harmful_stmt_in_region): Returns true if SCoP has any statment
12875         which cannot be represented by Graphite.
12876         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12877         (remove_subscops): Remove any SCoP from the list of already found
12878         SCoPs, if subsumed by S1.
12879         (intersects): Return true if region bounded by SCoPs S1 and S2
12880         intersect.
12881         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12882         * graphite.c (print_graphite_scop_statistics):
12883         (print_graphite_statistics): Print SCoP info while debugging.
12884         (graphite_initialize): Early exit in case number of loops in a
12885         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12886         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12887         (graphite_finalize):
12888         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12889         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12890         (recompute_all_dominators): Recalculate POST_DOMINATORS.
12891         * tree-cfg.c (print_loops): Print the function name while printing
12892         loops.
12894 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
12895             Sebastian Pop  <s.pop@samsung.com>
12897         PR tree-optimization/67700
12898         * graphite-sese-to-poly.c (parameter_index_in_region): Call
12899         invariant_in_sese_p_rec.
12900         (extract_affine): Same.
12901         (rewrite_cross_bb_scalar_deps): Call update_ssa.
12902         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
12903         * sese.h (invariant_in_sese_p_rec): Declare.
12905 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
12907         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12909 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
12911         Revert:
12912         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12913                     Jiong Wang  <jiong.wang@arm.com>
12915         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12916         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12917         (REG_CLASS_NAMES): Likewise.
12918         (REG_CLASS_CONTENTS): Likewise.
12919         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12920         (aarch64_register_move_cost): Likewise.
12921         (aarch64_load_symref_appropriately): Invoke the new added pattern if
12922         possible.
12923         * config/aarch64/constraints.md (Uc0): New constraint.
12925 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
12927         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12929 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
12931         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12932         SECTION_EXCLUDE in XO mapping class.
12934 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
12936         PR target/54236
12937         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12938         and handle ne and eq codes.
12939         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12940         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
12941         CONST_INT_P.  Use reverse_condition.
12942         (sh_split_treg_set_expr): Likewise.
12944 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
12946         * config/arm/types.md (type): Add rotate_imm.
12947         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12948         ROR immediate case.
12949         (*rorsi3_insn_uxtw): Likewise.
12950         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12951         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12952         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12954 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12956         PR rtl-optimization/67481
12957         * ifcvt.c (contains_ccmode_rtx_p): New function.
12958         (insn_valid_noce_process_p): Use it.
12960 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12962         PR rtl-optimization/67456
12963         PR rtl-optimization/67464
12964         PR rtl-optimization/67465
12965         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12966         move in the mode of x.  Handle combination of complex and simple
12967         block pairs as well as the case when one is empty.
12969 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12971         * doc/gimple.texi: Update references to gimple_statement_base.
12972         * gdbhooks.py: Likewise.
12973         * gimple.h: Likewise.
12975 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12977         * config/sparc/driver-sparc.c: map LEON to leon3
12979 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12981         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12982           and make it inverse to change default
12983         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12984           supervisor mode
12985         * doc/invoke.texi: Document change of default
12987 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
12989         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12990         true on %f0 for a target without FPU.
12991         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12992         without FPU.
12993         (untyped_return): Do not load %f0 for a target without FPU.
12995 2015-09-28  Andrew Pinski  <apinski@cavium.com>
12997         * config/aarch64/aarch64.md (prefetch):
12998         Change the predicate of operand 0 to register_operand.
13000 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
13002         * config/i386/predicates.md (register_sse4nonimm_operand): New
13003         predicate.
13004         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13005         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13006         Use register_sse4nonimm_operand as operand 0 predicate.
13007         (*vec_extractv8hi_sse2): Remove insn pattern.
13008         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13009         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13011 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
13012             Kaz Kojima  <kkojima@gcc.gnu.org>
13014         PR target/67391
13015         * config/sh/sh-protos.h (sh_lra_p): Declare.
13016         * config/sh/sh.c (sh_lra_p): Make non-static.
13017         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13018         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
13019         Expand into addsi3_scr if operands[2] if needed.
13020         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
13021         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
13022         (addsi3_scr, *addsi3): New insn_and_split patterns.
13024 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
13026         PR rtl-optimization/64164
13027         PR tree-optimization/67312
13028         PR middle-end/67340
13029         PR middle-end/67490
13030         PR bootstrap/67597
13031         * cfgexpand.c (parm_in_stack_slot_p): Remove.
13032         (ssa_default_def_partition): Remove.
13033         (get_rtl_for_parm_ssa_default_def): Remove.
13034         (set_rtl): Check that RTL assignments match expectations.
13035         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
13036         default def location for params and results.  Record SSA names
13037         or types in REG and MEM attrs, respectively.
13038         (set_parm_rtl): New.
13039         (expand_one_ssa_partition): Drop logic that assigned MEMs with
13040         unassigned addresses.
13041         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13042         deferred stack alloc vars.
13043         (expand_used_vars): Skip partitions holding parm default defs.
13044         Move adjust_one_expanded_partition_var loop...
13045         (pass_expand::execute): ... here.  Drop redundant assert.
13046         Adjust comments before the final loop over all ssa names.
13047         Require assigned rtl of parms and results to match exactly.
13048         Reset its attributes to match them, not any other variables in
13049         the same partition.
13050         (expand_debug_expr): Use entry value for PARM's default defs
13051         only iff they have zero nondebug uses.
13052         * cfgexpand.h (parm_in_stack_slot_p): Remove.
13053         (get_rtl_for_parm_ssa_default_def): Remove.
13054         (set_parm_rtl): Declare.
13055         * doc/invoke.texi: Improve wording.
13056         * explow.c (promote_decl_mode): Fix promote_function_mode for
13057         result decls not by reference.
13058         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13059         bypass TYPE_MODE to get the actual vector mode.
13060         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
13061         2015-08-19's changes as follows.  Drop include of
13062         basic-block.h and df.h.
13063         (rtl_for_parm): Remove.
13064         (maybe_reset_rtl_for_parm): Remove.
13065         (parm_in_unassigned_mem_p): Remove.
13066         (use_register_for_decl): Add logic for RESULT_DECLs matching
13067         assign_parms' behavior.
13068         (split_complex_args): Revert.
13069         (assign_parms_augmented_arg_list): Revert.  Add comment
13070         referencing the logic above.
13071         (assign_parm_adjust_stack_rtl): Revert.
13072         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
13073         of SET_DECL_RTL.  Set up a REG if the parm demands so.
13074         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
13075         calls into a single set_parm_rtl.  Set up a temporary RTL
13076         temporarily for expand_assignment.
13077         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
13078         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
13079         (assign_bounds): Revert.
13080         (assign_parms): Revert.  Use set_parm_rtl.
13081         (allocate_struct_function): Relayout result and parms of
13082         non-abstruct functions.
13083         (expand_function_start): Revert.  Use set_parm_rtl.  If the
13084         result is not a hard reg, create a pseudo from the promoted
13085         mode of the default def.  Promote static chain mode.
13086         * tree-outof-ssa.c (remove_ssa_form): Drop unused
13087         partition_has_default_def.  Set up
13088         partitions_for_parm_default_defs.
13089         (finish_out_of_ssa): Remove partition_has_default_def.
13090         Release partitions_for_parm_default_defs.
13091         * tree-outof-ssa.h (struct ssaexpand): Remove
13092         partition_has_default_def.  Add
13093         partitions_for_parm_default_defs.
13094         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13095         stor-layout.h.
13096         (build_ssa_conflict_graph): Fix conflict-detection of default
13097         defs of even unused default defs of params and results.
13098         (for_all_parms): New.
13099         (create_default_def): New.
13100         (register_default_def): New.
13101         (coalesce_with_default): New.
13102         (create_outofssa_var_map): Create default defs for all parms
13103         and results, and register their partitions.  Add GIMPLE_RETURN
13104         operands as coalesce candidates with results.  Add default
13105         defs of each parm or result as coalesce candidates with its
13106         other defs.  Mark each result def, and each default def of
13107         parms, as used_in_copy.
13108         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
13109         with the ssa names, even anonymous ones.  Drop
13110         parm_in_stack_slot_p calls.  Require same signedness and
13111         alignment.
13112         (coalesce_ssa_name): Add coalesce candidates for all defs of
13113         each parm and result, even unused ones.
13114         (parm_default_def_partition_arg): New type.
13115         (set_parm_default_def_partition): New.
13116         (get_parm_default_def_partitions): New.
13117         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13118         * tree-ssa-live.c (partition_view_init): Regard unused defs of
13119         parms and results as used.
13120         (verify_live_on_entry): Don't error out just because they're
13121         not live.
13123 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
13125         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13126         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13127         (output_fde): Don't output length for debug_frame on AIX.
13128         (output_call_frame_info): Don't output length for debug_frame on AIX.
13129         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13130         HAVE_XCOFF_DWARF_EXTRAS.
13131         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13132         HAVE_XCOFF_DWARF_EXTRAS.
13133         (output_compilation_unit_header): Don't output length on AIX.
13134         (output_pubnames): Don't output length on AIX.
13135         (output_aranges): Delete argument. Compute length locally. Don't
13136         output length on AIX.
13137         (output_line_info): Don't output length on AIX.
13138         (dwarf2out_finish): Don't compute aranges_length.
13139         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13140         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13141         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13142         symbol decoration for AIX.
13143         (rs6000_xcoff_debug_unwind_info): New.
13144         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13145         for SECTION_DEBUG.
13146         (rs6000_xcoff_declare_function_name): Emit different
13147         .function pseudo-op when DWARF2_DEBUG. Don't call
13148         xcoffout_declare_function for DWARF2_DEBUG.
13149         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13150         Redefine.
13151         * config/rs6000/aix71.h: New.
13152         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13153         locations support.
13154         * configure: Regenerate.
13155         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13156         DWARF support.
13158 2015-09-26  Jeff Law  <law@redhat.com>
13160         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13161         behaviour.
13162         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13163         behaviour.
13165         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13166         behaviour
13168         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13169         undefined behaviour.
13171         * config/cris/cris.md (asrandb): Fix left shift undefined
13172         behaviour.
13173         (asrandw): Likewise.
13175 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
13177         PR target/61578
13178         * lra-constarints.c (match_reload): Check presence of the input pseudo
13179         in the output operand.
13181 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13183         * doc/invoke.texi (-fsanitize): Minor wording tweak.
13185 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13187         * doc/invoke.texi (-fsanitize): Update URLs.
13189 2015-09-25  Teresa Johnson  <tejohnson@google.com>
13191         * opts.c (finish_options): Unset -freorder-blocks-and-partition
13192         if not using profile.
13194 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13196         PR pretty-print/67567
13197         * pretty-print.c (pp_string): Add gcc_checking_assert.
13198         * pretty-print.h (output_buffer_append_r): Likewise.
13200 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
13202         PR target/67675
13203         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13204         addr2 individually.  Don't emit logical or insn if one is known to
13205         be aligned approriately.
13206         (sh_expand_cmpnstr): Likewise.
13208 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
13210         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13211         __builtin_aarch64_fp[sc]r arguments into a register.
13213 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13215         * config.gcc (x86_archs): Replace lakemount with lakemont.
13216         (with_cpu): Likewise.
13217         (with_arch): Likewise.
13218         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13219         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
13220         __tune_lakemount__ with __tune_lakemont__.
13221         * config/i386/i386.c (lakemount_cost): Renamed to ...
13222         (lakemont_cost): This.
13223         (m_LAKEMOUNT): Renamed to ...
13224         (m_LAKEMONT): This.
13225         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13226         (processor_target_table): Replace "lakemount" with "lakemont".
13227         (processor_alias_table): Likewise.
13228         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13229         PROCESSOR_LAKEMONT.
13230         (ix86_adjust_cost): Likewise.
13231         (ia32_multipass_dfa_lookahead): Likewise.
13232         * config/i386/i386.h (processor_type): Likewise.
13233         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13234         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
13235         Lakemount with Lakemont.
13237 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
13239         * config.gcc (x86_archs): Replace iamcu with lakemount.
13240         (with_cpu): Likewise.
13241         (with_arch): Likewise.
13242         * doc/invoke.texi: Likewise.
13243         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13244         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
13245         __tune_iamcu__ with __tune_lakemount__.
13246         * config/i386/i386.c (iamcu_cost): Renamed to ...
13247         (lakemount_cost): This.
13248         (m_IAMCU): Renamed to ...
13249         (m_LAKEMOUNT): This.
13250         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13251         (processor_target_table): Replace "iamcu" with "lakemount".
13252         (processor_alias_table): Likewise.
13253         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13254         PROCESSOR_LAKEMOUNT.
13255         (ix86_adjust_cost): Likewise.
13256         (ia32_multipass_dfa_lookahead): Likewise.
13257         * config/i386/i386.h (processor_type): Likewise.
13258         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13260 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
13262         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13263         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13264         Declare.
13265         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13266         (pa_expand_compare_and_swap_loop): New.
13267         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13268         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13269         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13270         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13271         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13272         Revise.
13274 2015-09-24  Michael Collison  <michael.collison@linaro.org>
13276         PR other/57195
13277         * read-md.c (read_name): Allow mode iterators inside angle
13278         brackets in rtl expressions.
13280 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
13282         PR target/61578
13283         * ira-color.c (update_allocno_cost): Add parameter.
13284         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
13285         parameter.
13287 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13289         PR driver/67640
13290         * opts-common.c (prune_options): Discard all -fdiagnostics-color
13291         but the last one, which is moved to the front to be processed
13292         first.
13293         * opts.c (enable_warning_as_error): Reject options that do not
13294         control warnings.
13296 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
13298         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13300 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
13302         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13303         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13304         (aarch64_cannot_force_const_mem): Likewise.
13305         (aarch64_classify_address): Likewise.
13306         (aarch64_classify_symbolic_expression): Likewise.
13307         (aarch64_print_operand): Likewise.
13308         (aarch64_classify_symbol): Likewise.
13309         (aarch64_mov_operand_p): Likewise.
13310         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13311         (aarch64_mov_operand): Likewise.
13313 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
13315         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13316         for info->spe_gp_size.
13318 2015-09-24  Richard Biener  <rguenther@suse.de>
13320         PR lto/67699
13321         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13322         abstract origins.
13324 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
13326         * tree-object-size.c (plus_stmt_object_size)
13327         (cond_expr_object_size): Change the formal parameters from gimple
13328         to gimple *.
13329         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13330         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13331         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13333 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13335         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13336         Check for ld -type pie on Solaris 11.x and 12.
13337         * configure: Regenerate.
13338         * config.in: Regenerate.
13340         * gcc.c (LD_PIE_SPEC): Allow redefinition.
13342         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13343         (STARTFILE_SPEC): Use it.
13344         (ENDFILE_CRTEND_SPEC): Define.
13345         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13346         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13347         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13348         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13349         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13350         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13351         (ENDFILE_ARCH_SPEC): Define.
13352         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13354 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13356         * configure.ac (gcc_cv_solaris_crts): New test.
13357         * configure. Regenerate.
13358         * config.in: Regenerate.
13359         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13360         HAVE_SOLARIS_CRTS variant.
13362 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13364         * tree-inline.h (count_insns_seq): Delete prototype.
13365         (estimate_num_insns_seq): Define prototype.
13366         * tree-inline.c (count_insns_seq): Delete.
13367         (estimate_num_insns_seq): Remove static qualifier.
13368         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13369         with estimate_num_insns_seq.
13371 2015-09-24  Richard Biener  <rguenther@suse.de>
13373         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13374         members.
13375         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13376         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
13377         offset.
13378         (ao_ref_init_from_vn_reference): Record clique and base in the
13379         built base.
13380         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13382 2015-09-24  Richard Biener  <rguenther@suse.de>
13384         PR tree-optimization/48885
13385         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13386         as not including any restrict tags from other pointers.
13388 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13390         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13391         character when appending to offload_targets.
13393         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13394         offload targets by commas, not colons.
13395         * config.in: Regenerate.
13396         * configure: Likewise.
13397         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13398         instead of setting up the default offload targets here...
13399         (process_command): ..., do it here.
13400         libgomp/
13401         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13402         targets are separated by commas.
13403         * config.h.in: Regenerate.
13405 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
13406             Nathan Sidwell  <nathan@codesourcery.com>
13408         * omp-low.h (omp_reduction_init_op): Declare.
13409         * omp-low.c (omp_reduction_init_op): New, broken out of ...
13410         (omp_reduction_init): ... here.  Call it.
13411         * tree-parloops.c (initialize_reductions): Use
13412         omp_reduction_init_op.
13414 2015-09-23   Richard Biener  <rguenther@suse.de>
13416         PR middle-end/67662
13417         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13418         undefined overflow unless they will cancel out.
13420 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
13422         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13423         insn emit.
13425 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13427         PR c/49655
13428         * opts.h (write_langs): Declare.
13429         * opts-global.c (write_langs): Make it extern.
13431 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
13433         PR target/67391
13434         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13435         overlapping regs when matching the pattern.
13437 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13439         * config/aarch64/aarch64-simd.md
13440         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13441         (aarch64_float_truncate_hi_v4sf_le): New.
13442         (aarch64_float_truncate_hi_v4sf_be): Likewise.
13444 2015-09-23  Richard Biener  <rguenther@suse.de>
13446         * tree-ssa-structalias.c (intra_create_variable_infos): Build
13447         representatives for all restrict qualified pointer destinations.
13449 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
13451         * config/i386/i386.md (define_code_attr mshift): New.
13452         (define_mode_iterator SWI1248_AVX512BW): Rename ...
13453         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13454         only.
13455         (define_insn "*k<logic><mode>"): Use new iterator name.
13456         (define_insn "*<mshift><mode>3"): New.
13458 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
13460         PR middle-end/67649
13461         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13462         mark the block as accessible.
13464 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
13466         * function.c (thread_prologue_and_epilogue_insns): Delete
13467         orig_entry_edge argument to try_shrink_wrapping.
13468         * shrink-wrap.c (can_get_prologue): New function.
13469         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13470         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
13471         can_get_prologue where needed.  Remove code that finds a single
13472         edge for the prologue.  Remove code that tests if any reg clobbered
13473         by the prologue is live on the prologue edge.  Remove code that finds
13474         the new prologue edge after duplicating blocks.  Make a new prologue
13475         block and edge.
13476         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13478 2015-09-22  Jeff Law  <law@redhat.com>
13480         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13481         behavior.
13483 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
13485         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
13486         -Wtemplates, -Wnamespaces): Document.
13488 2015-09-22  Tom de Vries  <tom@codesourcery.com>
13490         PR tree-optimization/67671
13491         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13492         pointer references as restrict.
13494 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
13496         * config/nios2/nios2.c (nios2_legitimize_address): When handling
13497         'reg + reloc' cases, allow first operand to be non-REG, and use
13498         force_reg() to enforce address pattern.
13500 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
13502         PR target/67480
13503         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13504         (define_mode_iterator VI12_AVX_AVX512F): New.
13505         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13506         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13507         (define_insn "*<code><mode>3"): ... Into new pattern using
13508         VI12_AVX_AVX512F iterators without masking.
13510 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13512         * config.gcc: Support "skylake-avx512".
13513         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13514         PROCESSOR_SKYLAKE_AVX512.
13515         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13516         (processor_target_table): Add "skylake-avx512".
13517         (PTA_SKYLAKE_AVX512): Define.
13518         (ix86_option_override_internal): Add "skylake_avx512".
13519         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13520         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13521         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13522         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13523         * doc/invoke.texi (skylake-avx512): New.
13525 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13527         * config/i386/i386.md (define_insn "kunpckhi"): Fix
13528         operand in pattern.
13529         (define_insn "kunpcksi"): Ditto.
13530         (define_insn "kunpckdi"): Ditto.
13532 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13534         * config/i386/i386.md (define_split not/xor SWI1248x): Use
13535         iterator instead of fixed modes.
13537 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13539         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13540         Adjust declaration.
13541         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13542         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
13543         out_result.  Update to support update-fetch operations.
13544         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13545         Adjust for change to aarch64_gen_atomic_ldop.
13546         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13547         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13548         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13549         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13550         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13552 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13554         * config/aarch64/aarch64-protos.h
13555         (aarch64_atomic_ldop_supported_p): Declare.
13556         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13557         (enum aarch64_atomic_load_op_code): New.
13558         (aarch64_emit_atomic_load_op): New.
13559         (aarch64_gen_atomic_ldop): Update to support load-operate
13560         patterns.
13561         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13562         to an expander.
13563         (aarch64_atomic_<atomic_optab><mode>): New.
13564         (aarch64_atomic_<atomic_optab><mode>_lse): New.
13565         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13566         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13567         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13569 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13571         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13572         (UNSPECV_ATOMIC_LDOP_OR): New.
13573         (UNSPECV_ATOMIC_LDOP_BIC): New.
13574         (UNSPECV_ATOMIC_LDOP_XOR): New.
13575         (UNSPECV_ATOMIC_LDOP_PLUS): New.
13576         (ATOMIC_LDOP): New.
13577         (atomic_ldop): New.
13578         (aarch64_atomic_load<atomic_ldop><mode>): New.
13580 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13582         * config/aarch64/aarch64.md
13583         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13584         pattern.
13586 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
13588         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13589         Declare.
13590         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13591         (aarch64_gen_atomic_ldop): New.
13592         (aarch64_split_atomic_op): Fix whitespace and add a comment.
13593         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13594         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13595         (atomic_exchange<mode>): Replace with an expander.
13596         (aarch64_atomic_exchange<mode>): New.
13597         (aarch64_atomic_exchange<mode>_lse): New.
13598         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13599         (aarch64_atomic_swp<mode>): New.
13601 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13603         * tree-inline.c (expand_call_inline): Use inform for extra note.
13604         Do not give a note with UNKNOWN_LOCATION.
13605         Replace input_location with gimple_location (stmt).
13606         Use true/false instead of TRUE/FALSE.
13608 2015-09-22  Tom de Vries  <tom@codesourcery.com>
13610         PR tree-optimization/67666
13611         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13612         with single field non-conservative.
13614 2015-09-21  David S. Miller  <davem@davemloft.net>
13616         PR/67622
13617         Revert:
13618         2015-09-11  David S. Miller  <davem@davemloft.net>
13620         * config/sparc/constraints.md: Make "U" constraint a real register
13621         constraint.
13622         * config/sparc/sparc.c (TARGET_LRA_P): Define.
13623         (D_MODES, DF_MODES): Add missing cast.
13624         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13625         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13626         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13627         cost to 8.
13628         * config/sparc/sparc.h (PROMOTE_MODE): Define.
13629         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13630         provide these insn when flag_pic.
13632         2015-09-17  David S. Miller  <davem@davemloft.net>
13634         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13635         Declare.
13636         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13637         function.
13638         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13639         (HARD_REGNO_CALLER_SAVE_MODE): Define.
13640         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13641         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13642         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13643         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13644         provide when flag_pic.
13646 2015-09-21  Jeff Law  <law@redhat.com>
13648         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13649         behavior.
13651 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13653         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13655 2015-09-21  Richard Biener  <rguenther@suse.de>
13657         * passes.c (rest_of_decl_compilation): Do not call
13658         dwarf2out_early_global_decl for aliases.
13660 2015-09-21  Richard Biener  <rguenther@suse.de>
13662         PR debug/67664
13663         * dwarf2out.c (add_location_or_const_value_attribute): Remove
13664         attribute parameter.  Early exit if either DW_AT_const_value
13665         or DW_AT_location are present already.
13666         (gen_variable_die): Adjust caller.
13667         (dwarf2out_late_global_decl): Likewise.
13669 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13671         PR target/67657
13672         * config/sh/sh.c (sh_remove_overlapping_post_inc,
13673         sh_peephole_emit_move_insn): Add new functions.
13674         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13675         sh_peephole_emit_move_insn): Declere them.
13676         * config/sh/sh.md: Use them in various peephole2 patterns.
13678 2015-09-21  Richard Biener  <rguenther@suse.de>
13680         PR middle-end/67651
13681         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13682         address with -fno-delete-null-pointer-checks.
13684 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
13686         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13687         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13688         (reduc_uplus_v16qi): Remove.
13690         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13691         (reduc_<VEC_reduc_name>_v2df): Remove.
13692         (reduc_<VEC_reduc_name>_v4sf): Remove.
13693         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13695         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13696         gen_ function by removing * prefix.
13697         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13699 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13701         PR middle-end/60832
13702         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13703         Print i_bound without converting it to a tree.
13705 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
13707         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13708         operands[4] operands[5] swap with std::swap, removed tmp variable.
13709         (arm_evpc_neon_vzip): Replaced in0/in1 and
13710         out0/out1 swaps with std::swap, removed x variable.
13711         (arm_evpc_neon_vtrn): Replaced in0/int1 and
13712         out0/out1 swaos with std::swap, removed x variable.
13713         (arm_expand_vec_perm_const_1): Replaced
13714         d->op0/d->op1 swap with std::swap, removed x variable.
13715         (arm_evpc_neon_vuzp): Replaced in0/in1 and
13716         out0/out1 swaps with std::swap, removed x variable.
13718 2015-09-21  Jonathan Yong  <10walls@gmail.com>
13720         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13721         sysroot/usr/lib/32api for additional win32 libraries,
13722         fixes failing Cygwin bootstrapping.
13724 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13726         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13728 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
13730         PR target/67126
13731         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13732         (*mov_t_msb_neg): Rewrite negc pattern.
13734 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13736         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13737         immediate generation code.
13739 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13741         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13742         redundant immediate generation code.
13744 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13746         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13747         (AARCH64_NUM_BITMASKS): Remove.
13748         (aarch64_bitmasks_cmp): Remove.
13749         (aarch64_build_bitmask_table): Remove.
13751 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13753         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13754         slow immediate matching loops with a faster algorithm.
13756 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
13758         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13759         faster algorithm.
13761 2015-09-20  Jeff Law  <law@redhat.com>
13763         PR tree-optimization/47679
13764         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13765         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13766         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13767         (thread_through_normal_block): Use record_temporary_equivalences.
13769 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
13771         * coretypes.h (gimple): Change typedef to be a forward declaration.
13772         * gimple.h (gimple_statement_base): rename to gimple.
13773         * (all functions and types using gimple): Adjust.
13774         * *.[ch]: Likewise.
13776 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
13777             David Edelsohn  <dje.gcc@gmail.com>
13779         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13780         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13781         (EH_FRAME_THROUGH_COLLECT2): Define.
13782         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13783         (ASM_OUTPUT_DWARF_PCREL): Define.
13784         (ASM_OUTPUT_DWARF_DATAREL): Define.
13786 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
13788         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13789         of TARGET_ELF32.
13791 2015-09-18  Jeff Law  <law@redhat.com>
13793         PR tree-optimization/47679
13794         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
13795         it here ...
13796         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13797         object.  Update constructor.
13798         (pass_dominator::execute):  Corresponding chagnes to declaration
13799         and initialization of avail_exprs_stack.  Update constructor call
13800         for dom_opt_dom_walker object.
13801         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
13802         it down to children as needed.
13803         (record_equivalences_from_incoming_edge): Likewise.
13804         (eliminate_redundant_computations): Likewise.
13805         (record_equivalences_from_stmt): Likewise.
13806         (simplify_stmt_for_jump_threading): Likewise.
13807         (record_temporary_equivalences): Likewise.
13808         (optimize_stmt): Likewise.
13809         (dom_opt_dom_walker::thread_across_edge): Update access to
13810         avail_exprs_stack object and pass it to children as needed.
13811         (dom_opt_dom_walker::before_dom_children): Similarly.
13812         (dom_opt_dom_walker::after_dom_children): Similarly.
13813         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13814         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13815         Add avail_expr_stack argument.  Pass it to children as needed.
13816         (dummy_simplify): Likewise.
13817         (simplify_control_stmt_condition): Likewise.
13818         (thread_around_empty_blocks): Likewise.
13819         (thread_through_normal_block): Likewise.
13820         (thread_across_edge): Likewise.
13821         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13822         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13824         PR tree-optimization/47679
13825         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
13826         it here ...
13827         (dom_opt_dom_walker): New private member holding the const_and_copies
13828         object.  Update constructor.
13829         (pass_dominator::execute): Corresponding changes to declaration
13830         and initialization of const_and_copies.  Update constructor call
13831         for the dom_opt_dom_walker object.
13832         (record_temporary_equivalences): Accept const_and_copies argument
13833         pass it down to children as needed.
13834         (record_equality): Likewise.
13835         (record_equivalences_from_incoming_edge): Likewise.
13836         (cprop_into_successor_phis, optimize_stmt): Likewise.
13837         (eliminate_redundant_computations): Likewise.
13838         (dom_opt_dom_walker::thread_across_edge): Update access to
13839         const_and_copies object and pass it to children as needed.
13840         (dom_opt_dom_walker::before_dom_children): Similarly.
13841         (dom_opt_dom_walker::after_dom_children): Similarly.
13843         PR tree-optimization/47679
13844         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
13845         it into the avail_exprs_stack class.
13846         (pass_dominator::execute): Corresponding changes to declaration
13847         and initialization of avail_exprs.  Pass avail_exprs to
13848         dump_dominator_optimization_stats.
13849         (record_cond): Extract avail_exprs from avail_exprs_stack.
13850         (lookup_avail_expr): Similarly.
13851         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
13852         position in file.
13853         (dump_dominator_optimization_stats): Make static and prototype.
13854         Add argument for the hash table to dump.
13855         (debug_dominator_optimization_stats): Remove.
13856         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13857         prototype.
13858         (debug_dominator_optimization_stats): Similarly.
13859         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13860         "void" in prototype for pop_to_marker method.  Add accessor method
13861         for the underlying avail_exprs table.
13863         * tree-ssa-threadedge.c: Remove trailing whitespace.
13865 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
13867         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13868         unsigned.
13869         (pa_ldil_cint_p): Likewise.
13870         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13871         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13872         Update callers.
13873         * config/pa/pa.md: Likewise.
13875 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
13877         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13878         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13879         (diagnostic_show_locus): Likewise.
13880         (diagnostic_print_caret_line): Likewise.
13881         * diagnostic-show-locus.c: New file.
13883 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
13885         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13886         "back" parameter. Declare label in #if block.
13888 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
13890         PR middle-end/67619
13891         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13892         the address to a register.
13894 2015-09-18  Jeff Law  <law@redhat.com>
13896         PR tree-optimization/47679
13897         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13898         * tree-ssa-dom.c: Remove unnecessary header includes.
13899         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13900         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13901         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13902         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13903         (pass_phi_only_cprop::execute): Likewise.
13904         (make_pass_phi_only_cprop): Likewise.
13905         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
13906         uses of file scoped statics by passing the required objects
13907         as parameters wherever needed.
13909 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
13910             David Edelsohn  <dje.gcc@gmail.com>
13912         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13913         EH_FRAME_THROUGH_COLLECT2.
13914         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13915         DW_EH_PE_datarel.
13916         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13917         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
13918         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13919         * except.c (switch_to_exception_section): Use a read-only section
13920         even if EH_FRAME_SECTION_NAME is undefined.
13921         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13922         * collect2.c (write_c_file_stat): Provide dbase on AIX.
13923         (scan_prog_file): Don't export __dso_handle nor
13924         __gcc_unwind_dbase.
13925         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13926         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13927         (ASM_OUTPUT_DWARF_PCREL): Define.
13928         (ASM_OUTPUT_DWARF_DATAREL): Define.
13929         (EH_FRAME_THROUGH_COLLECT2): Define.
13930         (EH_FRAME_IN_DATA_SECTION): Delete.
13931         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13932         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13933         Declare.
13934         (rs6000_asm_output_dwarf_datarel): Declare.
13935         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13936         (rs6000_aix_asm_output_dwarf_datarel): New.
13937         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13938         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13939         (EH_FRAME_THROUGH_COLLECT2): Define.
13940         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13941         (EH_FRAME_THROUGH_COLLECT2): Define.
13942         (EH_TABLES_CAN_BE_READ_ONLY): Define.
13943         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13944         (EH_FRAME_THROUGH_COLLECT2): New.
13945         (ASM_OUTPUT_DWARF_DATAREL): New.
13946         * doc/tm.texi: Regenerate.
13948 2015-09-18  Richard Biener  <rguenther@suse.de>
13950         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13951         we're in early phase.
13952         (schedule_generic_params_dies_gen): Likewise.
13953         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13954         work as possible, retaining unhandled cases.
13955         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13956         clear out generic_type_instances at the end.
13957         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13958         (dwarf2out_early_finish): ... here.  Do most of
13959         gen_remaining_tmpl_value_param_die_attribute here.
13961 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
13963         PR tree-optimization/67283
13964         * tree-sra.c (type_consists_of_records_p): Rename to...
13965         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13966         (completely_scalarize_record): Rename to...
13967         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13968         (scalarize_elem): New.
13969         (analyze_all_variable_accesses): Follow renamings.
13971 2015-09-18  Richard Biener  <rguenther@suse.de>
13973         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13974         in early-dwarf.
13976 2015-09-18  Richard Biener  <rguenther@suse.de>
13978         PR tree-optimization/66142
13979         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13980         treat MEM[&x] and x the same.
13981         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13982         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13983         when we simplified sth.
13984         (vn_reference_maybe_forwprop_address): Likewise.
13985         (valueize_refs_1): When we simplified through
13986         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13987         set valueized_anything to true.
13988         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13989         one ref kills the other instead of just a offset-based test.
13990         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13991         for the operand_equal_p test to compare bases and also compare
13992         sizes.
13994 2015-09-17  Christian Bruel  <christian.bruel@st.com>
13996         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13998 2015-09-17  Richard Henderson  <rth@redhat.com>
14000         PR libstdc++/65913
14001         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14002         pointers that encode the alignment of the object.
14004 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14006         PR rtl-optimization/66790
14007         * df-problems.c (LIVE): Amend documentation.
14009 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14011         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14012         and optabs-tree.o.
14013         (GTFILES): Replace optabs.c with optabs-libfunc.c.
14014         * genopinit.c (main): Add an include guard to insn-opinit.h.
14015         Protect the rtx_code parts with NUM_RTX_CODE.
14016         * optabs.h: Split parts out to...
14017         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14018         * optabs.c: Split parts out to...
14019         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14020         * cilk-common.c: Include optabs-query.h rather than optabs.h.
14021         * fold-const.c: Likewise.
14022         * target-globals.c: Likewise.
14023         * tree-if-conv.c: Likewise.
14024         * tree-ssa-forwprop.c: Likewise.
14025         * tree-ssa-loop-prefetch.c: Likewise.
14026         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14027         Remove unncessary include files.
14028         * tree-ssa-phiopt.c: Likewise.
14029         * tree-ssa-reassoc.c: Likewise.
14030         * tree-switch-conversion.c: Likewise.
14031         * tree-vect-data-refs.c: Likewise.
14032         * tree-vect-generic.c: Likewise.
14033         * tree-vect-loop.c: Likewise.
14034         * tree-vect-patterns.c: Likewise.
14035         * tree-vect-slp.c: Likewise.
14036         * tree-vect-stmts.c: Likewise.
14037         * tree-vrp.c: Likewise.
14038         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14039         rather than optabs.h.
14040         * expr.c: Include optabs-tree.h.
14041         * function.c: Likewise.
14043 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14045         PR middle-end/65958
14046         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14047         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14048         * config/arm/arm.c: Include common/common-target.h.
14049         (use_return_insn): Return 0 if the static chain register was saved
14050         above a non-APCS frame.
14051         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14052         (struct scratch_reg): New.
14053         (get_scratch_register_on_entry): New function.
14054         (release_scratch_register_on_entry): Likewise.
14055         (arm_emit_probe_stack_range): Likewise.
14056         (output_probe_stack_range): Likewise.
14057         (arm_expand_prologue): Factor out code dealing with the IP register
14058         for nested function and adjust it for stack checking.
14059         Invoke arm_emit_probe_stack_range if static builtin stack checking
14060         is enabled.
14061         (thumb1_expand_prologue): Sorry out if static builtin stack checking
14062         is enabled.
14063         (arm_expand_epilogue): Add the saved static chain register, if any, to
14064         the amount of pre-pushed registers to pop.
14065         (arm_frame_pointer_required): Return true if static stack checking is
14066         enabled and we want to catch the exception with the EABI unwinder.
14067         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14068         (UNSPEC_PROBE_STACK_RANGE): Likewise.
14069         * config/arm/arm.md (probe_stack): New insn.
14070         (probe_stack_range): Likewise.
14072 2015-09-17  Richard Biener  <rguenther@suse.de>
14074         * genmatch.c (parser::parse_expr): Improve error message
14075         for mis-placed flags.
14077 2015-09-17  Richard Biener  <rguenther@suse.de>
14079         * passes.c (rest_of_decl_compilation): Always call early_global_decl
14080         debug hook when we created a varpool node.
14081         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14082         dwarf2out_early_global_decl, when not just add location or
14083         value attributes to existing DIEs.
14085 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
14087         * config/aarch64/aarch64.md (copysigndf3): New.
14088         (copysignsf3): Likewise.
14090 2015-09-17  David S. Miller  <davem@davemloft.net>
14092         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14093         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14094         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14095         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14096         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14097         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14098         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14099         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14100         provide when flag_pic.
14102 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
14104         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14105         object_allocator change.
14107 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14109         PR tree-optimization/66388
14110         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14111         (dump_iv): Dump no_overflow information.
14112         (alloc_iv): Initialize new field for struct iv.
14113         (mark_bivs): Count number of no_overflow bivs.
14114         (find_deriving_biv_for_expr, record_biv_for_address_use): New
14115         functions.
14116         (idx_find_step): Call new functions above.
14117         (add_candidate_1, add_candidate): New paramter.
14118         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14119         (get_computation_aff): Simplify convertion of cand for BIV.
14120         (get_computation_cost_at): Step cand's base if necessary.
14122 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14124         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14125         parameter.
14126         (tree_simplify_using_condition): Ditto.
14127         (simplify_using_initial_conditions): Ditto.
14128         (loop_exits_before_overflow): Pass new argument to function
14129         simplify_using_initial_conditions.  Remove case for type conversions
14130         simplification.
14131         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14132         parameter.
14133         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14134         in iv base using loop initial conditions.
14136 2015-09-16  Jeff Law  <law@redhat.com>
14138         PR tree-optimization/47679
14139         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14140         (free_all_edge_infos): Use it.
14141         (allocate_edge_info): Free preexisting edge info data.
14142         (pass_dominator::execute): Set up initial edge info structures.
14143         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14144         thread_across_edge.
14145         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14146         If non-null, then push/pop markers appropriately.
14147         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14148         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14149         thread-across_edge.
14151 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
14153         * config/ft32/ft32.c: Fix the memory address space predicate.
14155 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14157         PR target/67573
14158         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14159         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14161 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14163         * toplev.h (check_global_declaration): Remove declaration.
14164         * toplev.c (check_global_declaration): Move to ...
14165         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14166         (analyze_functions): Update call.
14168 2015-09-16  David S. Miller  <davem@davemloft.net>
14170         * lra-constraints.c (simplify_operand_subreg): Do not assume that
14171         lowpart of a SUBREG has offset zero.
14173 2015-09-16  Jeff Law  <law@redhat.com>
14175         PR tree-optimization/47679
14176         * tree-ssa-dom.c (enum expr_kind): Moved from here to
14177         tree-ssa-scopedtables.h.
14178         (struct hashable_expr, class expr_hash_elt): Likewise.
14179         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14180         Move associated methods into tree-ssa-scopedtables.c.
14181         (avail_expr_hash, initialize_expr_from_cond): Similarly.
14182         (hashable_expr_equal_p, add_expr_commutative): Likewise.
14183         (add_hashable_expr): Likewise.
14184         (record_cond): Delete element directly.
14185         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14186         private copy ctor and assignment operator methods.
14187         (expr_elt_hasher): Inline trivial methods.
14188         (initialize_expr_from_cond): Prototype.
14189         * tree-ssa-scopedtables.c: Add necessary includes, functions and
14190         methods that were previously in tree-ssa-dom.c.  Improve various
14191         comments.
14193 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
14195         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14197 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
14199         PR bootstrap/67587
14200         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14201         fixup_partitions.
14203 2015-09-16  Richard Biener  <rguenther@suse.de>
14205         PR middle-end/67253
14206         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14207         location of possibly shared trees.
14209 2015-09-16  Richard Biener  <rguenther@suse.de>
14211         PR middle-end/67271
14212         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14214 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
14216         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14217         offset and size computations instead of HOST_WIDE_INT.
14219 2015-09-16  Richard Biener  <rguenther@suse.de>
14221         PR middle-end/67442
14222         * fold-const.c (extract_muldiv_1): Properly extend multiplication
14223         result before builting a tree via wide_int_to_tree.
14225 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
14227         * Makefile.in: Add memory-block.cc
14228         (pool_allocator::initialize): Use fixed block size.
14229         (pool_allocator::release): Use memory_block_pool.
14230         (pool_allocator::allocate): Likewise.
14231         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14232         object pools.
14233         * cfg.c (initialize_original_copy_tables): Likewise.
14234         * cselib.c (elt_list_pool, elt_loc_list_pool,
14235         cselib_val_pool): Likewise.
14236         * df-problems.c (df_chain_alloc): Likewise.
14237         * df-scan.c (df_scan_alloc): Likewise.
14238         * dse.c (cse_store_info_pool, rtx_store_info_pool,
14239         read_info_type_pool, insn_info_type_pool, bb_info_pool,
14240         group_info_pool, deferred_change_pool): Likewise.
14241         * et-forest.c (et_nodes, et_occurrences): Likewise.
14242         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14243         ipcp_agg_lattice_pool): Likewise.
14244         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14245         * ipa-profile.c (histogram_pool): Likewise.
14246         * ipa-prop.c (ipa_refdesc_pool): Likewise.
14247         * ira-build.c (live_range_pool, allocno_pool, object_pool,
14248         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14249         * ira-color.c (update_cost_record_pool): Likewise.
14250         * lra-lives.c (lra_live_range_pool): Likewise.
14251         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14252         * memory-block.cc: New file.
14253         * memory-block.h: New file.
14254         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14255         * sched-deps.c (sched_deps_init): Likewise.
14256         * sel-sched-ir.c (sched_lists_pool): Likewise.
14257         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14258         * tree-sra.c (access_pool): Likewise.
14259         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14260         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14261         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14262         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14263         * tree-ssa-strlen.c (strinfo_pool): Likewise.
14264         * tree-ssa-structalias.c (variable_info_pool): Likewise.
14265         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14266         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14268 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
14270         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14271         definition.
14272         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14273         call0 ABI.
14275 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
14277         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14278         to pass TLS call argument, according to current ABI.
14279         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14280         callx0 for TLS call, according to current ABI.
14282 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14284         * tree-eh.c (lower_try_finally_dup_block): Clear location information
14285         on stack restore statements.
14286         (decide_copy_try_finally): Do not consider a stack restore statement as
14287         coming from sources.
14289 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
14291         * config/alpha/alpha.c (alpha_expand_block_clear): Use
14292         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14294 2015-09-15  Jeff Law  <law@redhat.com>
14296         PR tree-optimization/47679
14297         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14298         methods and private members.
14299         (avail_exprs_stack): Similarly.  Change type of global
14300         from a pair of expr_hash_elt_t to the new class.
14301         (expr_elt_hasher::hash): Corresponding changes.
14302         (expr_elt_hasher::equal): Similarly.
14303         (avail_expr_hash): Similarly.
14304         (pass_dominator::execute): Similarly.
14305         (dom_opt_dom_walker::thread_across_edge): Similarly.
14306         (record_cond): Similarly.
14307         (dom_opt_dom_walker::before_dom_children): Similarly.
14308         (dom_opt_dom_walker::after_dom_children): Similarly.
14309         (lookup_avail_expr): Likewise.
14310         (initialize_hash_element): Now a expr_hash_elt constructor.
14311         (initialize_hash_element_from_expr): Similarly.
14312         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14313         (free_expr_hash_elt): Call dtor for the element.
14314         (remove_local_expressions_from_table): Now the "pop_to_marker"
14315         method in the available_exprs_stack class.
14316         (avail_expr_stack::record_expr): Method factored out.
14317         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14318         Fix formatting.
14319         (hashable_expr_equal_p): Fix formatting.
14321 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
14323         * input.h (location_get_source_line): Drop "expanded_location"
14324         param in favor of a file and line number.
14325         * input.c (location_get_source_line): Likewise.
14326         (dump_location_info): Update for change in signature of
14327         location_get_source_line.
14328         * diagnostic.c (diagnostic_print_caret_line): Likewise.
14330 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14332         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14333         Bump to 4KB for SJLJ exceptions.
14334         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
14335         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14336         * doc/tm.texi: Regenerate.
14338 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14340         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14341         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
14342         Update prototype.
14344 2015-09-15  Richard Biener  <rguenther@suse.de>
14346         PR tree-optimization/67470
14347         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14348         structure for PHI hoisting by inserting a forwarder block
14349         if appropriate.
14351 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14353         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14354         (arm_option_print): New function.
14356 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14358         PR target/52144
14359         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14360         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14361         Remove flags parameter.
14362         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14363         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14364         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14365         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14366         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14367         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14368         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14369         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14371 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14373         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14375         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14376         AARCH64_VALID_SIMD_DREG_MODE.
14378 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14380         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14381         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14382         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14383         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14384         aarch64_ld4_lane<mode>): Combine together, making...
14385         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14386         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14387         aarch64_st4_lane<mode>): Combine together, making...
14388         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14389         * config/aarch64/iterators.md (nregs): Add comment.
14391 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14393         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14394         Change operand mode from <V_TWO_ELEM> to BLK.
14395         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14396         (aarch64_vec_store_lanesoi_lane<mode): Likewise
14397         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14398         (aarch64_ld2_lane<mode>): Likewise.
14399         (aarch64_st2_lane<VQ:mode>): Likewise.
14400         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14402 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14404         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14405         Change operand mode from <V_FOUR_ELEM> to BLK.
14406         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14407         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14408         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14409         (aarch64_ld4_lane<mode>): Likewise.
14410         (aarch64_st4_lane<mode>): Likewise.
14411         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14413 2015-09-15  Richard Biener  <rguenther@suse.de>
14415         PR middle-end/67563
14416         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14417         transfer EH info from old to new stmt.
14418         (replace_call_with_value): Likewise.
14419         (replace_call_with_call_and_fold): Likewise.
14420         (gimple_fold_builtin_memory_op): Likewise.
14421         (gimple_fold_builtin_memset): Likewise.
14422         (gimple_fold_builtin_stpcpy): Likewise.
14423         (gimple_fold_call): Likewise.
14425 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14427         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14428         comment.
14429         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14430         (aarch64_simd_intEI_type_node): Likewise.
14431         (aarch64_simd_builtin_std_type): Remove EImode case.
14432         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14433         * config/aarch64/aarch64-modes.def: Remove EImode.
14435 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14437         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14438         Change operand mode from <V_THREE_ELEM> to BLK.
14439         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14440         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14441         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14442         (aarch64_ld3_lane<mode>): Likewise.
14443         (aarch64_st3_lane<mode>): Likewise.
14444         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14446 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14448         * config/aarch64/aarch64-simd.md
14449         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14450         Change all TImode operands to BLKmode.
14451         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14452         Change all EImode operands to BLKmode.
14453         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14454         Change all OImode operands to BLKmode.
14456         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14457         and call set_mem_size.
14458         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14460         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14462 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
14464         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14465         to...
14466         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14468         (vec_store_lanesci_lane<mode>): Rename to...
14469         (aarch64_vec_store_lanesci_lane<mode>): ...this.
14471         (vec_store_lanesxi_lane<mode>): Rename to...
14472         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14474         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14475         aarch64_st4_lane<mode>): Follow renaming.
14477 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14479         * config/s390/s390.c (s390_const_operand_ok): Add missing
14480         brackets.
14482 2015-09-15  Richard Biener  <rguenther@suse.de>
14484         PR lto/67568
14485         * lto-streamer.h (lto_location_cache::current_sysp): Properly
14486         initialize.
14487         * lto-streamer-out.c (clear_line_info): Likewise.
14489 2015-09-15  Richard Biener  <rguenther@suse.de>
14491         * doc/match-and-simplify.texi: Fix wording.
14493 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
14495         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14496         unnecessary type conversion in op1.
14498 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
14500         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14501         (dup_block_and_redirect): Delete function.
14502         (can_dup_for_shrink_wrapping): New function.
14503         (fix_fake_fallthrough_edge): New function.
14504         (try_shrink_wrapping): Rewrite function.
14505         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14507 2015-09-14  Rich Felker  <dalias@libc.org>
14509         * configure.ac: Change target pattern for sh TLS support
14510         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14511         * configure: Regenerate.
14513 2015-09-14  Jeff Law  <law@redhat.com>
14515         PR tree-optimization/47679
14516         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14517         type rather than void *.
14519 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14521         PR fortran/67460
14522         * diagnostic.c (diagnostic_initialize): Do not set
14523         some_warnings_are_errors.
14524         (diagnostic_finish): Use DK_WERROR count instead.
14525         (diagnostic_report_diagnostic): Do not set
14526         some_warnings_are_errors.
14527         * diagnostic.h (struct diagnostic_context): Remove
14528         some_warnings_are_errors.
14530 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
14532         * config/sparc/predicates.md (const_all_ones_operand): Use
14533         CONSTM1_RTX to simplify definition.
14535 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
14537         PR target/67061
14538         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14539         Handle call insns.
14541 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
14543         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14544         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14545         OPT_fshow_column to handled saved option cases.
14546         (append_compiler_options): Do not skip the above added options.
14548 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14550         PR target/63304
14551         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14552         nopcrelative_literal_loads.
14553         (aarch64_classify_address): Likewise.
14554         (aarch64_constant_pool_reload_icode): Define.
14555         (aarch64_secondary_reload): Handle secondary reloads for
14556         literal pools.
14557         (aarch64_override_options): Handle nopcrelative_literal_loads.
14558         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14559         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14560         Define.
14561         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14562         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14563         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14564         predicate.
14565         * doc/invoke.texi (mpc-relative-literal-loads): Document.
14567 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
14569         PR middle-end/67401
14570         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14571         sync_compare_and_swap_optab libcall to target_oval.
14573 2015-09-14  Marek Polacek  <polacek@redhat.com>
14575         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14576         value.
14577         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14579 2015-09-11  Mark Wielaard  <mjw@redhat.com>
14581         PR c/28901
14582         * toplev.c (check_global_declaration): Check and use
14583         warn_unused_const_variable.
14584         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14585         (-Wunused-variable): Remove non-constant. For C implies
14586         -Wunused-const-variable.
14587         (-Wunused-const-variable): New.
14589 2015-09-14  Richard Biener  <rguenther@suse.de>
14591         * doc/match-and-simplify.texi: Update for changed syntax
14592         of inner ifs and the new switch expression.
14594 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
14596         * config/i386/haswell.md: New file describing Haswell pipeline.
14597         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14598         haswell-like processors.
14599         (ix86_reassociation_width): Increase reassociation width for 64-bit
14600         Haswell processor family.
14601         * config/i386/i386.md: Introduce haswell cpu and include new md file.
14603 2015-09-14  Richard Biener  <rguenther@suse.de>
14605         * doc/match-and-simplify.texi: Fixup some formatting issues
14606         and document the 's' flag.
14608 2015-09-13  Olivier Hainque  <hainque@adacore.com>
14609             Eric Botcazou  <ebotcazou@adacore.com>
14611         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14612         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
14613         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14614         (TARGET_CPU_gr5): Likewise.
14615         (TARGET_CPU_gr6): Likewise.
14616         (MULTILIB_DEFAULTS): Likewise.
14617         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14618         for mcpu=gr5 and mcpu=gr6.
14619         (MULTILIB_DIRNAMES): Adjust accordingly.
14621 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14623         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14624         (mem_ref_p): Likewise.
14625         (outermost_indep_loop): Adjust.
14626         (mem_ref_in_stmt): Likewise.
14627         (determine_max_movement): Likewise.
14628         (mem_ref_alloc): Likewise.
14629         (record_mem_ref_loc): Likewise.
14630         (set_ref_stored_in_loop): Likewise.
14631         (mark_ref_stored): Likewise.
14632         (gather_mem_refs_stmt): Likewise.
14633         (mem_refs_may_alias_p): Likewise.
14634         (for_all_locs_in_loop): Likewise.
14635         (struct rewrite_mem_ref_loc): Likewise.
14636         (rewrite_mem_refs): Likewise.
14637         (struct first_mem_ref_loc_1): Likewise.
14638         (first_mem_ref_loc): Likewise.
14639         (struct sm_set_flag_if_changed): Likewise.
14640         (execute_sm_if_changed_flag_set): Likewise.
14641         (execute_sm): Likewise.
14642         (hoist_memory_references):
14643         (struct ref_always_accessed): Likewise.
14644         (ref_always_accessed_p): Likewise.
14645         (refs_independent_p): Likewise.
14646         (record_dep_loop): Likewise.
14647         (ref_indep_loop_p_1): Likewise.
14648         (ref_indep_loop_p_2): Likewise.
14649         (ref_indep_loop_p): Likewise.
14650         (can_sm_ref_p): Likewise.
14651         (find_refs_for_sm): Likewise.
14652         (tree_ssa_lim_finalize): Likewise.
14654 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14656         * dwarf2out.c (dw_attr_ref): Remove typedef.
14657         (dw_line_info_ref): Likewise.
14658         (pubname_ref): Likewise.
14659         (dw_ranges_ref): Likewise.
14660         (dw_ranges_by_label_ref): Likewise.
14661         (comdat_type_node_ref): Likewise.
14662         (get_AT): Adjust.
14663         (get_AT_low_pc): Likewise.
14664         (get_AT_hi_pc): Likewise.
14665         (get_AT_string): Likewise.
14666         (get_AT_flag): Likewise.
14667         (get_AT_unsigned): Likewise.
14668         (get_AT_ref): Likewise.
14669         (get_AT_file): Likewise.
14670         (remove_AT): Likewise.
14671         (print_die): Likewise.
14672         (check_die): Likewise.
14673         (die_checksum): Likewise.
14674         (attr_checksum_ordered): Likewise.
14675         (struct checksum_attributes): Likewise.
14676         (collect_checksum_attributes): Likewise.
14677         (die_checksum_ordered): Likewise.
14678         (same_die_p): Likewise.
14679         (is_declaration_die): Likewise.
14680         (clone_die): Likewise.
14681         (clone_as_declaration): Likewise.
14682         (copy_declaration_context): Likewise.
14683         (break_out_comdat_types): Likewise.
14684         (copy_decls_walk): Likewise.
14685         (output_location_lists): Likewise.
14686         (external_ref_hasher::hash): Likewise.
14687         (optimize_external_refs_1): Likewise.
14688         (build_abbrev_table): Likewise.
14689         (size_of_die): Likewise.
14690         (unmark_all_dies): Likewise.
14691         (size_of_pubnames): Likewise.
14692         (output_die_abbrevs): Likewise.
14693         (output_die): Likewise.
14694         (output_pubnames): Likewise.
14695         (add_ranges_num): Likewise.
14696         (add_ranges_by_labels): Likewise.
14697         (add_high_low_attributes): Likewise.
14698         (gen_producer_string): Likewise.
14699         (dwarf2out_set_name): Likewise.
14700         (new_line_info_table): Likewise.
14701         (prune_unused_types_walk_attribs): Likewise.
14702         (prune_unused_types_update_strings): Likewise.
14703         (prune_unused_types): Likewise.
14704         (resolve_addr): Likewise.
14705         (optimize_location_lists_1): Likewise.
14706         (index_location_lists): Likewise.
14707         (dwarf2out_finish): Likewise.
14709 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14711         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14713 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14715         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14716         (dump_asserts_for): Adjust.
14717         (register_new_assert_for): Likewise.
14718         (process_assert_insertions): Likewise.
14719         (insert_range_assertions): Likewise.
14721 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14723         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14724         and remove typedef.
14725         (new_temp_expr_table): Adjust.
14726         (free_temp_expr_table): Likewise.
14727         (version_to_be_replaced_p): Likewise.
14728         (make_dependent_on_partition): Likewise.
14729         (add_to_partition_kill_list): Likewise.
14730         (remove_from_partition_kill_list): Likewise.
14731         (add_dependence): Likewise.
14732         (finished_with_expr): Likewise.
14733         (process_replaceable): Likewise.
14734         (kill_expr): Likewise.
14735         (kill_virtual_exprs): Likewise.
14736         (mark_replaceable): Likewise.
14737         (find_replaceable_in_bb): Likewise.
14738         (find_replaceable_exprs): Likewise.
14739         (debug_ter): Likewise.
14741 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14743         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14744         (struct btr_user): Rename from btr_user_s.
14745         (struct btr_def): Rename from btr_def_s.
14746         (find_btr_def_group): Adjust.
14747         (add_btr_def): Likewise.
14748         (new_btr_user): Likewise.
14749         (note_other_use_this_block): Likewise.
14750         (compute_defs_uses_and_gen): Likewise.
14751         (link_btr_uses): Likewise.
14752         (build_btr_def_use_webs): Likewise.
14753         (block_at_edge_of_live_range_p): Likewise.
14754         (btr_def_live_range): Likewise.
14755         (combine_btr_defs): Likewise.
14756         (move_btr_def): Likewise.
14757         (migrate_btr_def): Likewise.
14758         (migrate_btr_defs): Likewise.
14760 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14762         * var-tracking.c (shared_hash_def): Rename to shared_hash.
14763         (shared_hash): Remove typedef.
14764         (struct dataflow_set): Adjust.
14765         (shared_hash_unshare): Likewise.
14766         (dataflow_set_merge): Likewise.
14767         (vt_initialize): Likewise.
14768         (vt_finalize): Likewise.
14770 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14772         * var-tracking.c (struct location_chain): Rename from
14773         location_chain_def.
14774         (struct variable_part): Adjust.
14775         (variable_htab_free): Likewise.
14776         (unshare_variable): Likewise.
14777         (get_init_value): Likewise.
14778         (get_addr_from_local_cache): Likewise.
14779         (drop_overlapping_mem_locs): Likewise.
14780         (val_reset): Likewise.
14781         (struct variable_union_info): Likewise.
14782         (variable_union): Likewise.
14783         (find_loc_in_1pdv): Likewise.
14784         (insert_into_intersection): Likewise.
14785         (intersect_loc_chains): Likewise.
14786         (canonicalize_loc_order_check): Likewise.
14787         (canonicalize_values_mark): Likewise.
14788         (canonicalize_values_star): Likewise.
14789         (canonicalize_vars_star): Likewise.
14790         (variable_merge_over_cur): Likewise.
14791         (remove_duplicate_values): Likewise.
14792         (variable_post_merge_new_vals): Likewise.
14793         (variable_post_merge_perm_vals): Likewise.
14794         (find_mem_expr_in_1pdv): Likewise.
14795         (dataflow_set_preserve_mem_locs): Likewise.
14796         (dataflow_set_remove_mem_locs): Likewise.
14797         (variable_part_different_p): Likewise.
14798         (onepart_variable_different_p): Likewise.
14799         (find_src_set_src): Likewise.
14800         (dump_var): Likewise.
14801         (set_slot_part): Likewise.
14802         (clobber_slot_part): Likewise.
14803         (delete_slot_part): Likewise.
14804         (vt_expand_var_loc_chain): Likewise.
14805         (emit_note_insn_var_location): Likewise.
14806         (vt_finalize): Likewise.
14808 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14810         * dse.c (store_info_t): Remove typedef.
14811         (group_info_t): Likewise.
14812         (const_group_info_t): Likewise.
14813         (deferred_change_t): Likewise.
14814         (get_group_info): Adjust.
14815         (free_store_info): Likewise.
14816         (canon_address): Likewise.
14817         (clear_rhs_from_active_local_stores): Likewise.
14818         (record_store): Likewise.
14819         (replace_read): Likewise.
14820         (check_mem_read_rtx): Likewise.
14821         (scan_insn): Likewise.
14822         (remove_useless_values): Likewise.
14823         (dse_step1): Likewise.
14824         (dse_step2_init): Likewise.
14825         (dse_step2_nospill): Likewise.
14826         (scan_stores_nospill): Likewise.
14827         (scan_reads_nospill): Likewise.
14828         (dse_step3_exit_block_scan): Likewise.
14829         (dse_step3): Likewise.
14830         (dse_step5_nospill): Likewise.
14831         (dse_step6): Likewise.
14833 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14835         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14836         (alias_set_entry): Remove typedef.
14837         (alias_set_subset_of): Adjust.
14838         (alias_sets_conflict_p): Likewise.
14839         (init_alias_set_entry): Likewise.
14840         (get_alias_set): Likewise.
14841         (new_alias_set): Likewise.
14842         (record_alias_subset): Likewise.
14844 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
14846         * doc/install.texi (Downloading the source): Mark up
14847         contrib/download_prerequisites properly and drop leading "./".
14849 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14851         * config/arc/arc.h: Remove define of STRUCT_VALUE.
14852         * config/lm32/lm32.h: Likewise.
14853         * config/mep/mep.h: Likewise.
14854         * config/visium/visium.h: Likewise.
14855         * system.h: Poison STRUCT_VALUE macro.
14857 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
14859         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14860         CONSTANT_P operands.
14862 2015-09-11  David S. Miller  <davem@davemloft.net>
14864         * config/sparc/constraints.md: Make "U" constraint a real register
14865         constraint.
14866         * config/sparc/sparc.c (TARGET_LRA_P): Define.
14867         (D_MODES, DF_MODES): Add missing cast.
14868         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14869         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14870         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14871         cost to 8.
14872         * config/sparc/sparc.h (PROMOTE_MODE): Define.
14873         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14874         provide these insn when flag_pic.
14876 2015-09-11  Jeff Law  <law@redhat.com>
14878         PR tree-optimization/47679
14879         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14880         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14881         member with m_.  Update inline member functions as necessary.  Add
14882         toplevel comment.
14883         * tree-ssa-scopedtables.c: Update const_and_copies's member
14884         functions to use m_ prefix to access the stack.
14886 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
14888         * graphite-optimize-isl.c (disable_tiling): Remove.
14889         (get_schedule_for_band): Do not use disable_tiling.
14890         (get_prevector_map): Delete function.
14891         (enable_polly_vector): Remove.
14892         (get_schedule_for_band_list): Remove dead code.
14894 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
14896         * graphite-optimize-isl.c (get_tile_map): Refactor.
14897         (get_schedule_for_band): Same.
14898         (getScheduleForBand): Same.
14899         (get_prevector_map): Same.
14900         (get_schedule_for_band_list): Same.
14901         (get_schedule_map): Same.
14902         (get_single_map): Same.
14903         (apply_schedule_map_to_scop): Same.
14904         (optimize_isl): Same.
14906 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14908         PR target/63304
14909         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14910         (movtf): Delete.
14911         * config/aarch64/iterators.md (GPF_TF_F16): New.
14912         (GPF_F16): Delete.
14914 2015-09-10  Nathan Sidwell  <nathan@acm.org>
14916         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14917         (nvptx_reorg): Adjust comments.
14919 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
14921         PR bootstrap/67363
14922         * configure.ac: Check if setenv and unsetenv are declared.
14923         * configure: Rebuild.
14924         * config.in: Rebuild.
14925         * system.h: Declare setenv and unsetenv if not declared.
14927 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14929         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14930         commentary to simplify permute mask adjustment equation.
14931         (special_handling_values): Add SH_VPERM.
14932         (const_load_sequence_p): New function.
14933         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14934         the mask loaded from the constant pool.
14935         (adjust_vperm): New function.
14936         (handle_special_swappables): Call adjust_vperm.
14937         (dump_swap_insn_table): Handle SH_VPERM.
14939 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14941         * shrink-wrap.c (requires_stack_frame_p): Remove static.
14942         * shrink-wrap.h (requires_stack_frame_p): Put back.
14944 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
14946         * reload1.c (elimination_costs_in_insn): Locally turn
14947         -Wmaybe-uninitialized into a warning.
14949 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
14951         * shrink-wrap.c (requires_stack_frame_p): Make static.
14952         (prepare_shrink_wrap): Likewise.
14953         (dup_block_and_redirect): Likewise.
14954         * shrink-wrap.h: Remove declarations of those functions.
14956 2015-09-10  Mark Wielaard  <mjw@redhat.com>
14958         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14960 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
14962         PR target/67506
14963         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14964         missing simplify_gen_subreg.
14966 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14968         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14969         the vector element is bigger than 64 bit.
14971 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14973         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14974         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14976 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14978         * config/s390/s390.c: Add V1TImode to constant pool modes.
14980 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14982         PR target/67439
14983         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14984         predicate.  Set predicable_short_it attr to "no".
14986 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
14988         PR rtl-optimization/67421
14989         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14990         left wide shift tranformation.
14992 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
14994         * common/config/arc/arc-common.c: Remove references to A5.
14995         * config/arc/arc-opts.h: Likewise.
14996         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14997         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14998         * config/arc/t-arc-newlib: Likewise.
15000 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
15002         * config/arc/arc.md (length): Fix attribute length for conditional
15003         executed instructions with long immediate.
15005 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15007         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15008         type for second alternative.
15010 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
15012         * doc/invoke.texi (Downloading GCC): Mention
15013         contrib/download_prerequisites script.
15015 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
15017         PR c++/67523
15018         * gimplify.c (gimplify_omp_for): If inner stmt is not found
15019         for combined loop, assert seen_error () and return GS_ERROR.
15021         PR middle-end/67521
15022         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15023         if decl is already in outer->variables.
15025         PR middle-end/67517
15026         * gimplify.c (gimplify_scan_omp_clauses): Instead of
15027         asserting that decl is not specified in octx->variables,
15028         break out of the loop if it is.
15030         PR c++/67514
15031         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15032         iterator is not explicitly determined, but is defined inside
15033         of the combined workshare region, handle it like if it has
15034         DECL_EXPR in OMP_FOR_PRE_BODY.
15036 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15038         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15039         (*cmp<mode>): Add assembler spacing.
15040         (setcc_int<mode>, set_cc_float<mode>): Likewise.
15041         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15042         level.
15043         (write_func_decl_from_insn): Refactor argument loops & comma emission.
15044         (nvptx_expand_call): Likewise.
15045         (nvptx_output_call_insn): Likewise.
15046         (nvptx_reorg_subreg): Add spacing.
15048 2015-09-09  Marek Polacek  <polacek@redhat.com>
15050         PR middle-end/67512
15051         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15052         for comparisons.
15054 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15056         PR c++/53184
15057         * doc/invoke.texi ([Wsubobject-linkage]): Document.
15059 2015-09-09  Tom de Vries  <tom@codesourcery.com>
15061         * params-list.h: Add missing copyright notice.
15063 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15065         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15066         sel_truesi, not andsi.
15068 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15070         * config/arm/arm.md (*subsi3_compare0): Rename to...
15071         (subsi3_compare0): ... This.
15072         (modsi3): New define_expand.
15073         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15074         when operand is power of 2.
15076 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15078         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15079         (*neg<mode>2_compare0): Rename to...
15080         (neg<mode>2_compare0): ... This.
15081         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15082         Move check for speed inside the if-then-elses.  Reflect
15083         CSNEG sequence in MOD by power of 2 case.
15085 2015-09-09  Alan Modra  <amodra@gmail.com>
15087         PR target/67378
15088         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15089         reload replacement for PRE_MODIFY address reg.
15091 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
15093         PR tree-optimization/53852
15094         * config.in: Regenerate.
15095         * configure: Regenerate.
15096         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15097         * graphite-optimize-isl.c (optimize_isl): Stop computation when
15098         PARAM_MAX_ISL_OPERATIONS is reached.
15099         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15100         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15101         result equal to isl_stat_ok as the status now can be isl_error_quota.
15102         (subtract_commutative_associative_deps): Same.
15103         (compute_deps): Same.
15105 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15106             Sebastian Pop  <s.pop@samsung.com>
15108         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15109         Return the parameter if it was saved in corresponding
15110         parameter_rename_map of the region.
15111         (copy_def): Copy def from sese region to the newly created region.
15112         (copy_internal_parameters): Copy all the internal parameters defined
15113         within a region to the newly created region.
15114         (graphite_regenerate_ast_isl): Copy parameters to the new region before
15115         translating isl to gimple.
15116         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15117         the loop-nest does not have any data-references.
15118         (build_graphite_scops): Create a scop only when there is at least one
15119         loop inside it.
15120         (contains_only_close_phi_nodes): Deleted.
15121         (print_graphite_scop_statistics): Deleted
15122         (print_graphite_statistics): Deleted
15123         (limit_scops): Deleted.
15124         (build_scops): Removed call to limit_scops.
15125         * sese.c (new_sese): Construct.
15126         (free_sese): Destruct.
15127         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15128         added.
15129         (set_rename): Pass sese region so that parameters inside the region can
15130         be added to its parameter_rename_map.
15131         (rename_uses): Pass sese region.
15132         (graphite_copy_stmts_from_block): Do not copy parameters that have been
15133         generated in the header of the scop. For each SSA_NAME in the
15134         parameter_rename_map rename its usage.
15135         (invariant_in_sese_p_rec): Return false if tree t is defined outside
15136         sese region.
15137         (scalar_evolution_in_region): If the tree t is invariant just return t.
15138         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15139         struct sese to keep track of all the parameters which need renaming.
15140         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15141         any data-refs.
15142         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15144 2015-09-08  Tom de Vries  <tom@codesourcery.com>
15146         * Makefile.in (generated_files): Add params.list.
15147         (params.list, s-params.list): Add rule.
15148         * params.h (enum compiler_param): Include params-list.h.  Move define
15149         DEFPARAM, include params.def and undef DEFPARAM ...
15150         * params-list.h: ... here.  New file.
15152 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
15154         * pretty-print.h (printer_fn): Fix typo in comment.
15156 2015-09-07  Jeff Law  <law@redhat.com>
15158         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15160 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15162         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15163         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15164         (arm_neon_fp16_hw): New.
15166 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15168         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15169         UNITS_PER_WORD >= 4.
15171 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15173         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15174         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15175         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15176         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15177         (aarch64_float_extend_lo_v2df): Rename to...
15178         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15180         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15181         (float_extend_lo): Add v4sf.
15183         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15184         * config/aarch64/iterators.md (VQ_HSF): New iterator.
15185         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15186         (Vwide): New mode_attr.
15188 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15190         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15191         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15192         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15193         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15194         V4HF and V8HF variants to iterator.
15196         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15198         * config/aarch64/iterators.md (VDQF_F16): New.
15199         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15201 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15203         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15204         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15205         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15206         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15207         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15208         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15209         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15210         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15211         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15212         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15213         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15214         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15215         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15216         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15217         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15218         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15219         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15220         vld1q_dup_f16): New.
15222 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15224         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15225         Reparameterize to...
15226         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15227         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15228         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15230         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15231         v8hf variant.
15232         (float_truncate_lo_): Use BUILTIN_VDF iterator.
15234         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15236         * config/aarch64/iterators.md (VDF, Vdtype): New.
15237         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15239 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15241         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15242         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15243         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15244         Add __builtin_aarch64_simd_hf.
15245         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15246         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15247         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15248         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15249         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15250         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15251         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15252         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15253         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15255         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15256         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15257         (VDC, Vdbl): Add V4HF.
15259 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15261         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15262         V4HFmode and V8HFmode.
15263         (aarch64_split_simd_move): Add case for V8HFmode.
15264         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15265         (aarch64_simd_builtin_std_type): Handle HFmode.
15266         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15268         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15269         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15270         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15272         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15273         Float16x8_t.
15275         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15276         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15277         New typedefs.
15278         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15279         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15280         vst1q_lane_f16): New.
15281         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15282         (VALLDI_F16, VALL_F16): New.
15283         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15284         Add cases for V4HF and V8HF.
15285         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15287 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15289         * config/arm/arm-builtins.c (VAR11, VAR12): New.
15290         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15291         vld4_dup): Add v4hf variant.
15292         (vget_high, vget_low): Add v8hf variant.
15293         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15294         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15295         v4hf and v8hf variants.
15297         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15298         (VDX): Add V4HF.
15299         (V_DOUBLE): Add case for V4HF.
15300         (VQX): Add V8HF.
15301         (V_HALF): Add case for V8HF.
15302         (VDQX): Add V4HF, V8HF.
15303         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15304         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15306         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15307         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15308         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15309         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15310         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15311         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15312         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15313         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15314         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15316         (neon_vcreate, neon_vreinterpretv8qi<mode>,
15317         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15318         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15319         Change VDX to VD_RE.
15321         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15322         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15323         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15325         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15326         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15327         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15328         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15329         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15330         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15331         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15332         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15333         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15335 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15337         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15338         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15339         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15340         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15341         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15342         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15343         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15344         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15345         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15346         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15347         New.
15349 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15351         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15353         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15355         * config/arm/arm-builtins.c (v8hf_UP): New.
15356         (arm_init_simd_builtin_types): Initialise Float16x8_t.
15358         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15360         * config/arm/arm_neon.h (float16x8_t): New typedef.
15362 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15364         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15365         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15366         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15367         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15368         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15369         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15370         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15371         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15372         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15373         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15375 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
15377         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15378         non-alphanumeric characters in the symbol name.
15380 2015-09-07  Marek Polacek  <polacek@redhat.com>
15382         PR inline-asm/67448
15383         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15384         a memory input.
15386 2015-09-07  Marek Polacek  <polacek@redhat.com>
15388         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15390 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
15392         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15393         not warn.
15395 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
15397         PR middle-end/67452
15398         * tree-ssa-live.c: Include cfgloop.h.
15399         (remove_unused_locals): Clear loop->simduid if simduid is about
15400         to be removed from cfun->local_decls.
15402 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15404         PR target/65210
15405         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15406         attribute as well.
15408 2015-09-04  Tom de Vries  <tom@codesourcery.com>
15410         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15412 2015-09-04  Jeff Law  <law@redhat.com>
15414         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15415         unnecessary constructor.  It's now trivial and implemented inside...
15416         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15417         constructor.  Add comments to various methods.  Remove unused
15418         private fields.
15419         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15420         * tree-vrp.c (identify_jump_threads): Likewise.
15421         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15422         indentation issues.
15423         (thread_across_edge): Similarly.
15424         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15425         arguments in constructor call.
15427 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
15429         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15430         temp path contains a '-'.
15432 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15433             Petr Murzin  <petr.murzin@intel.com>
15434             Kirill Yukhin  <kirill.yukhin@intel.com>
15436         * config/i386/i386-builtin-types.def
15437         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15438         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15439         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15440         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15441         * config/i386/i386.c
15442         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15443         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15444         IX86_BUILTIN_SCATTERALTDIV16SI.
15445         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15446         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15447         __builtin_ia32_scatteraltdiv8si.
15448         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15449         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15450         IX86_BUILTIN_SCATTERALTDIV16SI.
15451         (ix86_vectorize_builtin_scatter): New.
15452         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15453         ix86_vectorize_builtin_scatter.
15455 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
15456             Petr Murzin  <petr.murzin@intel.com>
15457             Kirill Yukhin  <kirill.yukhin@intel.com>
15459         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15460         * doc/tm.texi: Regenerate.
15461         * target.def: Add scatter builtin.
15462         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15463         for loads/stores in case of gather/scatter accordingly.
15464         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15465         STMT_VINFO_GATHER_P(S).
15466         (vect_check_gather): Rename to ...
15467         (vect_check_gather_scatter): this.
15468         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15469         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15470         (vect_check_gather_scatter): Use it instead of vect_check_gather.
15471         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15472         variable and new checkings for it accordingly.
15473         * tree-vect-stmts.c
15474         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15475         STMT_VINFO_GATHER_P(S).
15476         (vect_check_gather_scatter): Use it instead of vect_check_gather.
15477         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15479 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
15481         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15482         define_insn.
15483         (mulv16qi3): New define_expand.
15485 2015-09-03  Martin Sebor  <msebor@redhat.com>
15487         PR c/66516
15488         * doc/extend.texi (Other Builtins): Document when the address
15489         of a built-in function can be taken.
15491 2015-09-03  Richard Biener  <rguenther@suse.de>
15493         * dwarf2out.c (flush_limbo_die_list): Split out from ...
15494         (dwarf2out_early_finish): ... here.
15495         (dwarf2out_finish): Do not call dwarf2out_early_finish but
15496         flush_limbo_die_list.  Assert we have no deferred asm names.
15498 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15500         * optabs.c (expand_binop): Don't create a broadcast vector with a
15501         source element wider than the inner mode.
15503 2015-09-03  Richard Biener  <rguenther@suse.de>
15505         * varasm.c (output_constant): Use fold_convert instead of
15506         wide_int_to_tree.
15508 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15510         PR tree-optimization/65637
15511         * omp-low.c (expand_omp_for_static_chunk): Handle case that
15512         fin_bb has 2 predecessors.
15514 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15516         PR tree-optimization/65637
15517         * omp-low.c (find_phi_with_arg_on_edge): New function.
15518         (expand_omp_for_static_chunk): Fix inner loop phi.
15520 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15522         PR tree-optimization/65637
15523         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15524         that head is NULL.
15526 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15528         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15530 2015-09-03  Tom de Vries  <tom@codesourcery.com>
15532         * doc/invoke.texi (parloops-chunk-size): Add item.
15533         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15534         * tree-parloops.c: Include params.h.
15535         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15536         param parloops-chunk-size is used.
15538 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15540         PR middle-end/67351
15541         * fold-const.c (fold_binary_loc) : Move
15542         Transform (x >> c) << c into x & (-1<<c) or
15543         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15544         types using simplify and match.
15545         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15546         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15548 2015-09-03  Richard Biener  <rguenther@suse.de>
15550         PR ipa/66705
15551         * tree-ssa-structalias.c (ctor_for_analysis): New function.
15552         (create_variable_info_for_1): Use ctor_for_analysis instead
15553         of get_constructor.
15554         (create_variable_info_for): Likewise.
15556 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
15558         PR ipa/67280
15559         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15560         in new callgraph edge.
15562 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
15564         PR target/59810
15565         PR target/63652
15566         PR target/63653
15567         * config/aarch64/aarch64-simd.md
15568         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15569         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15570         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15571         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15573 2015-09-02  Alan Modra  <amodra@gmail.com>
15575         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15576         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15577         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15579 2015-09-02  Alan Modra  <amodra@gmail.com>
15581         PR target/67417
15582         * config/rs6000/predicates.md (current_file_function_operand): Don't
15583         return true for weak symbols.
15584         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15586 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
15587             Andrew Bennett  <andrew.bennett@imgtec.com>
15589         * config/mips/mips-opts.h (mips_cb_setting): New enum.
15590         * config/mips/mips-protos.h: Add definitions for
15591         mips_output_jump and mips_output_equal_conditional_branch
15592         * config/mips/mips.c (MIPS_JR): Change to support the
15593         JIC instruction.
15594         (mips_emit_compare): Add support for the MIPS R6 conditional
15595         compact branches.
15596         (mips_process_sync_loop): Likewise.
15597         (mips_output_order_conditional_branch): Likewise.
15598         (mips16_build_call_stub): Change MIPS_CALL to
15599         mips_output_jump.
15600         (mips_print_operand_punctuation): Update 's' case to only
15601         apply to micromips r2.
15602         (mips_adjust_insn_length): Add support for forbidden slot
15603         hazards.
15604         (mips_avoid_hazard): Likewise.
15605         (mips_reorg_process_insns): Likewise.
15606         (mips_output_jump): New function.
15607         (mips_output_equal_conditional_branch): Likewise.
15608         (mips_output_conditional_branch): Use jrc/bc if compact
15609         branch support is enabled.  Ensure the forbidden slots
15610         between the two branch instructions is filled with a nop.
15611         (mips_option_override): Add support to process the compact
15612         branch option and set the correct defaults.  Prevent
15613         non-explict relocs being using for MIPS R6.
15614         (mips_trampoline_init): Add compact branch support.
15615         (mips_mult_zero_zero_cost): Allow zero initialisation of
15616         accumulators with TARGET_DSP.
15617         * config/mips/mips.h (TARGET_CB_NEVER): New define.
15618         (TARGET_CB_MAYBE): New define.
15619         (TARGET_CB_ALWAYS): New define.
15620         (ISA_HAS_DELAY_SLOTS): New define.
15621         (ISA_HAS_COMPACT_BRANCHES): New define.
15622         (ISA_HAS_JRC): New define.
15623         (MIPS_BRANCH_C): New define.
15624         (MIPS_CALL): Removed.
15625         (MICROMIPS_J): Removed.
15626         * config/mips/mips.md (compact_form): New attr.
15627         (hazard): Add support for forbidden slots.
15628         (define_delay): Add support for compact branches.
15629         (*branch_order<mode>): Likewise.
15630         (*branch_order<mode>_inverted): Likewise.
15631         (*branch_equality<mode>): Likewise.
15632         (*branch_equality<mode>_inverted): Likewise.
15633         (*jump_absolute): Likewise.
15634         (*jump_pic): Likewise.
15635         (indirect_jump): Use mips_output_jump to produce assembly output.
15636         (tablejump_<mode>"): Likewise.
15637         (*<optab>"): Likewise.
15638         (<optab>_internal): Likewise.
15639         (sibcall_internal): Likewise.
15640         (sibcall_value_internal): Likewise.
15641         (sibcall_value_multiple_internal): Likewise.
15642         (call_internal): Likewise.
15643         (call_split): Likewise.
15644         (call_internal_direct): Likewise.
15645         (call_direct_split): Likewise.
15646         (call_value_internal): Likewise.
15647         (call_value_split): Likewise.
15648         (call_value_internal_direct): Likewise.
15649         (call_value_direct_split): Likewise.
15650         (call_value_multiple_internal): Likewise.
15651         (call_value_multiple_split): Likewise.
15652         (mips_get_fcsr_mips16_<mode>): Likewise.
15653         (mips_set_fcsr_mips16_<mode>): Likewise.
15654         (tls_get_tp_mips16_<mode>): Likewise.
15655         * config/mips/mips.opt: Add -mcompact-branches option.
15656         * config/mips/predicates.md (order_operator): Ensure the
15657         conditional compact branches are only used if the ISA them.
15658         * doc/invoke.texi: Document -mcompact-branches option.
15660 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
15662         PR target/61578
15663         * lra-lives.c (process_bb_lives): Process move pseudos with the
15664         same value for copies and preferences
15665         * lra-constraints.c (match_reload): Create match reload pseudo
15666         with the same value from single dying input pseudo.
15668 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
15670         PR target/67405
15671         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15673 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
15675         * trans-mem.c: Add contributed-by.
15676         * trans-mem.h: Same.
15678 2015-09-01  Richard Biener  <rguenther@suse.de>
15680         * expr.c (expand_expr_real_1): For expanding TERed defs
15681         set the current location to that of the def if not UNKNOWN.
15683 2015-09-01  David Sherwood  <david.sherwood@arm.com>
15685         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15687 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15689         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15690         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
15691         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15692         Include rtl-iter.h.
15693         (noce_simple_bbs): New function.
15694         (noce_try_move): Bail if basic blocks are not simple.
15695         (noce_try_store_flag): Likewise.
15696         (noce_try_store_flag_constants): Likewise.
15697         (noce_try_addcc): Likewise.
15698         (noce_try_store_flag_mask): Likewise.
15699         (noce_try_cmove): Likewise.
15700         (noce_try_minmax): Likewise.
15701         (noce_try_abs): Likewise.
15702         (noce_try_sign_mask): Likewise.
15703         (noce_try_bitop): Likewise.
15704         (bbs_ok_for_cmove_arith): New function.
15705         (noce_emit_all_but_last): Likewise.
15706         (noce_emit_insn): Likewise.
15707         (noce_emit_bb): Likewise.
15708         (noce_try_cmove_arith): Handle non-simple basic blocks.
15709         (insn_valid_noce_process_p): New function.
15710         (contains_mem_rtx_p): Likewise.
15711         (bb_valid_for_noce_process_p): Likewise.
15712         (noce_process_if_block): Allow non-simple basic blocks
15713         where appropriate.
15715 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
15717         * tree-ssa-dom.c (record_equivalences_from_phis,
15718         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15719         (lookup_avail_expr): Likewise, and remove comment and unused temp.
15721 2015-09-01  Nick Clifton  <nickc@redhat.com>
15723         * config/msp430/msp430.opt (mcpu): Fix typo.
15725 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15727         * config/aarch64/aarch64.c (aarch64_set_current_function):
15728         Re-layout any vector parameters have non-simd layout.
15729         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15730         Delete.
15731         (aarch64_simd_expand_args): Delete call to the above.
15733 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
15735         * doc/invoke.texi (asan-stack): Add space before option.
15737 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15739         * tree.h (zerop): New function.
15740         * tree.c (zerop): Likewise.
15741         (element_precision): Handle expressions.
15742         * match.pd (define_predicates): Add zerop.
15743         (x <= +Inf): Fix comment.
15744         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15745         * fold-const.c (fold_binary_loc): ... here. Remove.
15747 2015-08-31  Richard Biener  <rguenther@suse.de>
15749         PR middle-end/67381
15750         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15752 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
15754         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15755         (CEXPI): New operator list.
15756         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15757         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15758         Converted from ...
15759         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15761 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15763         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15764         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15765         parameter.
15766         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15767         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15768         (rewrite_into_loop_closed_ssa): ... here.
15769         (replace_uses_in_dominated_bbs): Remove function.
15770         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15771         rewrite_into_loop_closed_ssa_1.
15773 2015-08-31  Michael Matz  <matz@suse.de>
15775         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15776         enter entry and exit blocks for reverse post order.
15778 2015-08-31  Richard Biener  <rguenther@suse.de>
15780         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15781         (lto_location_cache::current_sysp): Likewise.
15782         (output_block::current_sysp): Likewise.
15783         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15784         (lto_location_cache::apply_location_cache): Properly record
15785         system header locations.
15786         (lto_location_cache::input_location): Input whether a file
15787         is a system header.
15788         * lto-streamer-out.c (lto_output_location): Stream whether a file
15789         is a system header.
15791 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15793         PR bootstrap/67363
15794         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15796 2015-08-31  Tom de Vries  <tom@codesourcery.com>
15798         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15799         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15800         Improve function header comments.
15802 2015-08-30  Michael Collison  <michael.collison@linaro.org>
15804         PR other/67320
15805         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15806         standard names
15808 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15810         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15811         special_handling bitfield.
15812         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15813         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15814         that represents a general xxpermdi.
15815         (insn_is_swappable_p): Add handling for vec_concat of two
15816         doublewords, which maps to a specific xxpermdi.
15817         (adjust_xxpermdi): New function.
15818         (adjust_concat): Likewise.
15819         (handle_special_swappables): Call adjust_xxpermdi and
15820         adjust_concat.
15821         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15823 2015-08-30  Rich Felker <dalias@libc.org>
15825         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15826         case instead of sh[123456ble]-*-*.
15828 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
15830         * ira.c (print_unform_and_important_classes,
15831         print_translated_classes): Remove reg_class_names static array.
15832         (print_unform_and_important_classes): Rename to ...
15833         (print_uniform_and_important_classes): ... this.
15834         (ira_debug_allocno_classes): Update accordingly.
15836 2015-08-29  Tom de Vries  <tom@codesourcery.com>
15838         PR tree-optimization/46193
15839         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15840         clause.
15842 2015-08-28  Jeff Law  <law@redhat.com>
15844         PR lto/66752
15845         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15846         unable to find X NE 0 in the tables, return X as the simplified
15847         condition.
15848         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15849         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
15850         to VISISTED_BBS.
15851         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15852         after removing the control flow statement and unnecessary edges.
15854 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
15856         Revert:
15857         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
15859         PR tree-optimization/67283
15860         * tree-sra.c (type_consists_of_records_p): Rename to...
15861         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15863         (completely_scalarize_record): Rename to...
15864         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15865         code to:
15866         (scalarize_elem): New.
15868 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
15870         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15871         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15872         (aarch64_symbol_type): Likewise.
15873         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15874         Likewise.
15875         (aarch64_expand_mov_immediate): Likewise.
15876         (aarch64_print_operand): Likewise.
15877         (aarch64_classify_tls_symbol): Likewise.
15879 2015-08-28  Richard Biener  <rguenther@suse.de>
15881         * cgraphunit.c (symbol_table::compile): Move early debug generation
15882         and finish...
15883         (symbol_table::finalize_compilation_unit): ... back here and
15884         add a !seen_error () guard.
15886 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15888         * toplev.c (process_options): Do not use flag_loop_block,
15889         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
15890         flag_loop_optimize_isl.
15892 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
15894         * Makefile.in (OBJS): Remove graphite-blocking.o and
15895         graphite-interchange.o.
15896         * common.opt (floop-strip-mine, floop-interchange, floop-block):
15897         Alias of floop-nest-optimize.
15898         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15899         Document as alias of -floop-nest-optimize.
15900         * graphite-blocking.c: Remove.
15901         * graphite-interchange.c: Remove.
15902         * graphite-optimize-isl.c: Include dumpfile.h.
15903         (getScheduleForBand): Add dump for tiled loops.  Use
15904         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15905         * graphite-poly.c (scop_max_loop_depth): Remove.
15906         (print_scattering_function_1): Remove.
15907         (print_scattering_function): Remove.
15908         (print_scattering_functions): Remove.
15909         (debug_scattering_function): Remove.
15910         (debug_scattering_functions): Remove.
15911         (apply_poly_transforms): Remove use of flag_loop_block,
15912         flag_loop_strip_mine, and flag_loop_interchange.
15913         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15914         PBB_ORIGINAL.
15915         (print_pdr_access_layout): Remove.
15916         (print_pdr): Print ISL representation.
15917         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15918         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15919         (free_scop): Same.
15920         (openscop_print_pbb_domain): Remove.
15921         (print_pbb): Remove call to print_scattering_function.
15922         (openscop_print_scop_context): Remove.
15923         (print_scop_context): Do not print matrices anymore.
15924         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15925         SCOP_TRANSFORMED_SCHEDULE.
15926         (print_isl_set): Add printing of a new line.
15927         (print_isl_map): Same.
15928         (print_isl_aff): Same.
15929         (print_isl_constraint): Same.
15930         (loop_to_lst): Remove.
15931         (scop_to_lst): Remove.
15932         (lst_indent_to): Remove.
15933         (print_lst): Remove.
15934         (debug_lst): Remove.
15935         (dot_lst_1): Remove.
15936         (dot_lst): Remove.
15937         (reverse_loop_at_level): Remove.
15938         (reverse_loop_for_pbbs): Remove.
15939         * graphite-poly.h (pdr_dim_iter_domain): Remove.
15940         (pdr_nb_params): Remove.
15941         (pdr_alias_set_dim): Remove.
15942         (pdr_subscript_dim): Remove.
15943         (pdr_iterator_dim): Remove.
15944         (pdr_parameter_dim): Remove.
15945         (same_pdr_p): Remove.
15946         (struct poly_scattering): Remove.
15947         (struct poly_bb): Remove _original, _transformed, _saved.
15948         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15949         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15950         (PBB_NB_LOCAL_VARIABLES): Remove.
15951         (PBB_NB_SCATTERING_TRANSFORM): Remove.
15952         (schedule_to_scattering): Remove.
15953         (number_of_write_pdrs): Remove.
15954         (pbb_dim_iter_domain): Remove.
15955         (pbb_nb_params): Remove.
15956         (pbb_nb_scattering_orig): Remove.
15957         (pbb_nb_scattering_transform): Remove.
15958         (pbb_nb_dynamic_scattering_transform): Remove.
15959         (pbb_nb_local_vars): Remove.
15960         (pbb_iterator_dim): Remove.
15961         (pbb_parameter_dim): Remove.
15962         (psco_scattering_dim): Remove.
15963         (psct_scattering_dim): Remove.
15964         (psct_local_var_dim): Remove.
15965         (psco_iterator_dim): Remove.
15966         (psct_iterator_dim): Remove.
15967         (psco_parameter_dim): Remove.
15968         (psct_parameter_dim): Remove.
15969         (psct_dynamic_dim): Remove.
15970         (psct_static_dim): Remove.
15971         (psct_add_local_variable): Remove.
15972         (new_lst_loop): Remove.
15973         (new_lst_stmt): Remove.
15974         (free_lst): Remove.
15975         (copy_lst): Remove.
15976         (lst_add_loop_under_loop): Remove.
15977         (lst_depth): Remove.
15978         (lst_dewey_number): Remove.
15979         (lst_dewey_number_at_depth): Remove.
15980         (lst_pred): Remove.
15981         (lst_succ): Remove.
15982         (lst_find_pbb): Remove.
15983         (find_lst_loop): Remove.
15984         (lst_find_first_pbb): Remove.
15985         (lst_empty_p): Remove.
15986         (lst_find_last_pbb): Remove.
15987         (lst_contains_p): Remove.
15988         (lst_contains_pbb): Remove.
15989         (lst_create_nest): Remove.
15990         (lst_remove_from_sequence): Remove.
15991         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15992         (lst_niter_for_loop): Remove.
15993         (pbb_update_scattering): Remove.
15994         (lst_update_scattering_under): Remove.
15995         (lst_update_scattering): Remove.
15996         (lst_insert_in_sequence): Remove.
15997         (lst_replace): Remove.
15998         (lst_substitute_3): Remove.
15999         (lst_distribute_lst): Remove.
16000         (lst_remove_all_before_including_pbb): Remove.
16001         (lst_remove_all_before_excluding_pbb): Remove.
16002         (struct scop): Remove original_schedule, transformed_schedule, and
16003         saved_schedule.
16004         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16005         (SCOP_SAVED_SCHEDULE): Remove.
16006         (poly_scattering_new): Remove.
16007         (poly_scattering_free): Remove.
16008         (poly_scattering_copy): Remove.
16009         (store_scattering_pbb): Remove.
16010         (store_lst_schedule): Remove.
16011         (restore_lst_schedule): Remove.
16012         (store_scattering): Remove.
16013         (restore_scattering_pbb): Remove.
16014         (restore_scattering): Remove.
16015         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16016         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
16017         compute the scattering polyhedron dimension from the dimension of
16018         pbb->domain.
16019         (build_scop_scattering): Update call to
16020         build_pbb_scattering_polyhedrons.
16021         (build_poly_scop): Remove call to scop_to_lst.
16022         * graphite.c (graphite_transform_loops): Add call to print_scop.
16023         (gate_graphite_transforms): Remove use of flag_loop_block,
16024         flag_loop_interchange, and flag_loop_strip_mine.
16026 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16028         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16029         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16030         -floop-nest-optimize.
16031         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16032         (generate_luj_sepclass): Remove.
16033         (generate_luj_options): Remove.
16034         (set_options): Remove opt_luj.
16035         (scop_to_isl_ast): Remove opt_luj.
16036         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16037         flag_loop_unroll_jam.
16038         (getPrevectorMap_full): Remove.
16039         (getScheduleForBandList): Remove map_sepcl.
16040         (getScheduleMap): Same.
16041         (apply_schedule_map_to_scop): Remove sepcl.
16042         (optimize_isl): Same.
16043         * graphite-poly.c (apply_poly_transforms): Remove check for
16044         flag_loop_unroll_jam.
16045         (new_poly_bb): Remove map_sepclass.
16046         * graphite-poly.h (struct poly_bb): Same.
16047         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16048         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16049         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16050         * toplev.c (process_options): Remove flag_loop_unroll_jam.
16052 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
16054         PR target/67317
16055         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16056         (addqi3_cc): Ditto.
16057         (UNSPEC_ADD_CARRY): Remove.
16058         (addqi3_cconly_overflow): New expander.
16059         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16060         Adjust for changed add<mode>3_carry.
16061         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16062         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16063         (<plusminus_insn><mode>3_carry): Remove expander.
16064         (*<plusminus_insn><mode>3_carry): Split insn pattern to
16065         add<mode>3_carry and sub<mode>3_carry.
16066         (plusminus_carry_mnemonic): Remove code attribute.
16067         (add<mode>3_carry): Canonicalize insn pattern.
16068         (*addsi3_carry_zext): Ditto.
16069         (sub<mode>3_carry): Ditto.
16070         (*subsi3_carry_zext): Ditto.
16071         (adcx<mode>3): Remove insn pattern.
16072         (addcarry<mode>): New insn pattern.
16073         (subborrow<mode>): Ditto.
16074         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16075         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16076         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16077         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16078         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16079         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16080         Rewrite expander to not clobber carry flag chains.
16082 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
16084         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16085         instead of a rotate.
16087 2015-08-27  Marek Polacek  <polacek@redhat.com>
16089         PR middle-end/67005
16090         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16091         an entry into an irreducible region.
16093 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16095         * configure: Regenerate.
16097 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16099         PR tree-optimization/67283
16100         * tree-sra.c (type_consists_of_records_p): Rename to...
16101         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16103         (completely_scalarize_record): Rename to...
16104         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16105         (scalarize_elem): New.
16107 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16109         * tree-sra.c (completely_scalarize_var): Rename to...
16110         (create_total_scalarization_access): ... Here. Drop call to
16111         completely_scalarize_record.
16113         (analyze_all_variable_accesses): Replace completely_scalarize_var
16114         with create_total_scalarization_access and completely_scalarize_record.
16116 2015-08-27  Alan Modra  <amodra@gmail.com>
16118         PR target/67356
16119         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16120         for operand 1.
16122 2015-08-27  Richard Biener  <rguenther@suse.de>
16124         * passes.c (rest_of_decl_compilation): Guard early_global_decl
16125         call with !seen_error ().
16126         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16127         early debug generation and finish...
16128         (symbol_table::compile): ... here to put it after a !seen_error ()
16129         guard.
16131 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16133         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16134         Solaris 12+.
16136 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16137             Andre Vieira  <andre.simoesdiasvieira@arm.com>
16139         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16140         (*cb<optab><mode>1): Likewise.
16141         (*tb<optab><mode>1): Likewise.
16142         (*cb<optab><mode>1): Likewise.
16143         * config/aarch64/iterators.md (inv_cb): New code attribute.
16144         (inv_tb): Likewise.
16145         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16146         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16148 2015-08-27  Richard Biener  <rguenther@suse.de>
16150         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16152 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16154         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16155         trap to fix ICE.
16157 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16159         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16160         Add declaration.
16162         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16163         comment.
16164         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16165         floating point in VSX registers.
16166         (rs6000_output_move_128bit): Always print out the set insn if we
16167         can't generate an appropriate 128-bit move.
16168         (rs6000_generate_compare): Add support for IEEE 128-bit floating
16169         point in VSX registers comparisons.
16170         (rs6000_expand_float128_convert): Likewise.
16172         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16173         predicate for only GPR hard registers.
16175         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16176         modes to iterators. Add new iterators for moving 128-bit values in
16177         scalar FPR registers and VSX registers.
16178         (FMOVE128): Likewise.
16179         (FMOVE128_FPR): Likewise.
16180         (FMOVE128_GPR): Likewise.
16181         (FMOVE128_VSX): Likewise.
16182         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16183         in VSX registers.
16184         (IFKF): Likewise.
16185         (IBM128): Likewise.
16186         (TFIFKF): Likewise.
16187         (RELOAD): Add IEEE 128-bit floating point modes.
16188         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16189         floating point in VSX registers modes.
16190         (signbit<mode>2, IBM128 iterator): Likewise.
16191         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16192         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16193         (negtf2): Likewise.
16194         (neg<mode>2, TFIFKF iterator): Likewise.
16195         (negtf2_internal): Likewise.
16196         (abstf2): Likewise.
16197         (abs<mode>2, TFIFKF iterator): Likewise.
16198         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16199         VSX insn support for negate, absolute value, and negative absolute
16200         value.
16201         (ieee_128bit_vsx_neg<mode>2): Likewise.
16202         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16203         (ieee_128bit_vsx_abs<mode>2): Likewise.
16204         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16205         (ieee_128bit_vsx_nabs<mode>2): Likewise.
16206         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16207         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16208         floating point in VSX registers.
16209         (unpack<mode>_dm): Likewise.
16210         (unpack<mode>_nodm): Likewise.
16211         (pack<mode>): Likewise.
16212         (unpackv1ti): Likewise.
16213         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16214         (packv1ti): Likewise.
16215         (pack<mode>, FMOVE128_VSX iterator): Likewise.
16216         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16217         registers.
16218         (extenddftf2_internal): Likewise.
16219         (trunctfdf2): Likewise.
16220         (trunctfdf2_internal2): Likewise.
16221         (fix_trunc_helper): Likewise.
16222         (fix_trunctfdi2"): Likewise.
16223         (floatditf2): Likewise.
16224         (floatuns<mode>tf2): Likewise.
16225         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16226         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16227         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16228         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16229         (float<SDI:mode><IFKF:mode>2): Likewise.
16230         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16232 2015-08-26  Renlin Li  <renlin.li@arm.com>
16234         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16236 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16237             Jiong Wang  <jiong.wang@arm.com>
16239         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16240         (tlsie_tiny_<mode>): New define_insn.
16241         (tlsie_tiny_sidi): Likewise.
16242         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16243         SYMBOL_TINY_TLSIE.
16244         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16245         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16246         SYMBOL_TINY_TLSIE.
16247         (aarch64_expand_mov_immediate): Likewise.
16248         (aarch64_print_operand): Likewise.
16249         (arch64_classify_tls_symbol): Likewise.
16251 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16253         * config/arm/arm-arches.def: Replace single value flags with
16254         an initializer built from ARM_FSET_MAKE_CPU1.
16255         * config/arm/arm-cores.def: Likewise.
16256         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16257         derivation from the ARM_CORE macro definition, use the given value
16258         instead.
16259         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16260         ARM_ARCH macro definition, use the given value instead.
16262 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16264         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16265         feature set.
16266         (struct builtin_description): Replace field mask with field
16267         features.
16268         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16269         (IWMMXT2_BUILTIN): Likewise.
16270         (IWMMXT2_BUILTIN2): Likewise.
16271         (FP_BUILTIN): Likewise.
16272         (CRC32_BUILTIN): Likewise.
16273         (CRYPTO_BUILTIN): Likewise.
16274         (iwmmx_mbuiltin): Likewise.
16275         (iwmmx2_mbuiltin): Likewise.
16276         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16277         struct builtin_description.
16279 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16281         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16282         (struct builtin_description): Change type of mask to unsigned
16283         long.
16284         * config/arm/arm-protos.h (insn_flags): Declare as type
16285         arm_feature_set.
16286         (tune_flags): Likewise.
16287         * config/arm/arm.c (feature_count): New.
16288         (insn_flags): Define as type arm_feature_set.
16289         (tune_flags): Likewise.
16290         (struct processors): Define field flags as type arm_feature_set.
16291         (all_cores): Update for change to struct processors.
16292         (all_architectures): Likewise.
16293         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16294         macros.
16295         (arm_option_override_internal): Likewise.
16296         (arm_option_override): Likewise.
16298 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16299             Jiong Wang  <jiong.wang@arm.com>
16301         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16302         tls size for tiny, small, large memory model.
16303         (aarch64_load_symref_appropriately): Support new symbol types.
16304         (aarch64_expand_mov_immediate): Likewise.
16305         (aarch64_print_operand): Likewise.
16306         (aarch64_classify_tls_symbol): Likewise.
16307         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16308         (aarch64_symbol_type): Likewise.
16309         * config/aarch64/aarch64.md (tlsle): Deleted.
16310         (tlsle12_<mode>): New define_insn.
16311         (tlsle24_<mode>): Likewise.
16312         (tlsle32_<mode>): Likewise.
16313         (tlsle48_<mode>): Likewise.
16314         * doc/sourcebuild.texi (AArch64-specific attributes): Document
16315         "aarch64_tlsle32".
16317 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16319         * config/arm/arm-protos.h (FL_NONE): New.
16320         (FL_ANY): New.
16321         (arm_feature_set): New.
16322         (ARM_FSET_MAKE): New.
16323         (ARM_FSET_MAKE_CPU1): New.
16324         (ARM_FSET_MAKE_CPU2): New.
16325         (ARM_FSET_CPU1): New.
16326         (ARM_FSET_CPU2): New.
16327         (ARM_FSET_EMPTY): New.
16328         (ARM_FSET_ANY): New.
16329         (ARM_FSET_HAS_CPU1): New.
16330         (ARM_FSET_HAS_CPU2): New.
16331         (ARM_FSET_HAS_CPU): New.
16332         (ARM_FSET_ADD_CPU1): New.
16333         (ARM_FSET_ADD_CPU2): New.
16334         (ARM_FSET_DEL_CPU1): New.
16335         (ARM_FSET_DEL_CPU2): New.
16336         (ARM_FSET_UNION): New.
16337         (ARM_FSET_INTER): New.
16338         (ARM_FSET_XOR): New.
16339         (ARM_FSET_EXCLUDE): New.
16340         (AFM_FSET_IS_EMPTY): New.
16341         (ARM_FSET_CPU_SUBSET): New.
16343 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16345         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16346         SYMBOL_TLSLE to SYMBOL_TLSLE24.
16347         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16348         Likewise.
16349         (aarch64_expand_mov_immediate): Likewise.
16350         (aarch64_print_operand): Likewise.
16351         (aarch64_classify_symbol): Likewise.
16353 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16355         * config/aarch64/aarch64.opt (mtls-size): New entry.
16356         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16357         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16358         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16360 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16362         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16363         ARM_CORE entry.  Fix some white-space.
16364         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16365         ARM_CORE definition.
16367 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16369         * fold-const.c (fold_binary_loc) : Move Optimize
16370         root(x)*root(y) as root(x*y) to match.pd.
16371         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16372         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16373         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16374         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16375         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16376         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16377         (mult (exps:s @0) (exps:s @1)) : New simplifier.
16378         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16379         (rdiv @0 (exps:s @1)) : New simplifier.
16381 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
16383         * gcc.c (driver::finalize): Only assign to extra_specs if
16384         [EXTRA_SPECS].
16386 2015-08-25  Marek Polacek  <polacek@redhat.com>
16388         PR middle-end/67330
16389         * varasm.c (declare_weak): Return after giving an error.
16391 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
16393         * gcc-main.c (main): Add params to driver ctor.
16394         * gcc.c (class env_manager): New.
16395         (env): New global.
16396         (env_manager::init): New.
16397         (env_manager::get): New.
16398         (env_manager::xput): New.
16399         (env_manager::restore): New.
16400         Poison getenv and putenv.
16401         (DEFAULT_TARGET_SYSTEM_ROOT): New.
16402         (target_system_root): Update initialization to use
16403         DEFAULT_TARGET_SYSTEM_ROOT.
16404         (struct spec_list): Add field "default_ptr".
16405         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16406         (init_spec): Likewise.
16407         (set_spec): Clear field "default_ptr".
16408         (read_specs): Free "spec" and "buffer".
16409         (xputenv): Reimplement in terms of env_manager.
16410         (process_command): Replace ::getenv calls with calls to the
16411         env_manager singleton.
16412         (process_brace_body): Free string in three places.
16413         (driver::driver): New.
16414         (driver::~driver): New.
16415         (used_arg): Convert from a function to...
16416         (class used_arg_t): ...this class, and...
16417         (used_arg): ...this new global instance.
16418         (used_arg_t::finalize): New function.
16419         (getenv_spec_function): Add "const" to local "value".  Replace
16420         ::getenv call with call to the env_manager singleton.
16421         (path_prefix_reset): New function.
16422         (driver::finalize): New function.
16423         * gcc.h (driver::driver): New.
16424         (driver::~driver): New.
16425         (driver::finalize): New.
16427 2015-08-25  Nathan Sidwell  <nathan@acm.org>
16429         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16430         target doesn't have one.
16432 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
16434         PR target/67346
16435         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16437 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
16439         PR target/67344
16440         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16441         a define_insn, remove second alternative.
16443 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
16444             Joseph Myers  <joseph@codesourcery.com>
16446         * gcc.c (struct switchstr): Expand comment.
16448 2015-08-25  Nathan Sidwell  <nathan@acm.org>
16450         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16451         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16453 2015-08-25  Richard Biener  <rguenther@suse.de>
16455         PR middle-end/67306
16456         * genmatch.c (expr::gen_transform): Verify the result of
16457         builtin_decl_implicit.
16458         (dt_simplify::gen_1): Likewise.
16460 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16462         * config/arm/constraints.md: Also list Cs and US ARM-specific
16463         constraints as used.
16465 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16467         PR target/66609
16468         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16469         UNSPEC_PCREL.
16470         (nonpic_symbol_mentioned_p): Likewise.
16471         (sh_delegitimize_address): Likewise.
16472         (sh_function_ok_for_sibcall): Take into account weak symbols.
16473         (sh_expand_sym_label2reg): New.
16474         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16475         * config/sh/sh.md (UNSPEC_PCREL): New enum.
16476         (call_pcrel): Use sh_expand_sym_label2reg.
16477         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16478         (symPCREL_label2reg) New expand.
16480 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
16482         * graphite-poly.c: Change type of region from void* to sese.
16483         * graphite-poly.h (struct scop): Changing the type of scop::region
16484         from void* to sese. Change accessor macro accordingly.
16485         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16487 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
16489         * graphite-scop-detection.c (stmt_simple_for_scop_p):
16490         Constrain only on INTEGER_TYPE.
16492 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
16494         PR target/67211
16495         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16496         -mefficient-unaligned-vsx on ISA 2.7.
16498         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16499         option to a masked option.
16501         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16502         logic for -mefficient-unaligned-vsx so that it is set via an arch
16503         ISA option, instead of being set if -mtune=power8 is set. Move
16504         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16505         near other default option handling.
16507 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16509         * genflags.c (gen_macro): Delete.
16510         (gen_proto): Don't create GEN.*CALL.* macros.
16511         * gensupport.h (get_file_location): Declare.
16512         * gensupport.c (rtx_locs): New variable.
16513         (read_md_rtx): Record rtx locations.
16514         (get_file_location): New function.
16515         * target-insns.def (call, call_pop, call_value, call_value_pop)
16516         (sibcall, sibcall_value): New patterns.
16517         * gentarget-def.c (parse_argument): New function.
16518         (def_target_insn): Use it.  Handle optional operands.  Raise an
16519         error if an .md pattern has the wrong number of operands for the
16520         pattern name.  Remove the names of unused operands from the prototype.
16521         * builtins.c (expand_builtin_apply): Use targetm functions
16522         instead of HAVE_call_value and GEN_CALL_VALUE.
16523         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
16524         and sibcall_value_pop.
16525         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16526         of GEN_CALL.
16527         * config/alpha/alpha.md (untyped_call): Likewise.
16528         * config/iq2000/iq2000.md (untyped_call): Likewise.
16529         * config/m68k/m68k.md (untyped_call): Likewise.
16530         * config/mips/mips.md (untyped_call): Likewise.
16531         * config/pa/pa.md (untyped_call): Likewise.
16532         * config/rs6000/rs6000.md (untyped_call): Likewise.
16533         * config/sparc/sparc.md (untyped_call): Likewise.
16534         * config/tilegx/tilegx.md (untyped_call): Likewise.
16535         * config/tilepro/tilepro.md (untyped_call): Likewise.
16536         * config/visium/visium.md (untyped_call): Likewise.
16537         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16538         gen_call_value instead of GEN_CALL_VALUE.
16539         * config/arm/arm.md (untyped_call): Likewise.
16540         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16541         GEN_CALL.
16543 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16545         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16546         (have_cbranchcc4): New variable.
16547         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16548         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16549         (if_convert): Initialize have_cbranchcc4.
16551 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16553         * builtins.c (expand_cmpstrn): Rename to...
16554         (expand_cmpstrn_or_cmpmem): ...this.
16555         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16556         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16557         Remove mode argument.
16558         (expand_builtin): Update accordingly.
16560 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16562         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16563         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
16564         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16565         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16566         Add predicates for operands 0 and 3.
16567         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16568         operand.
16569         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16570         immediate_operand to nonmemory_operand.
16572 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16574         * df-scan.c (df_insn_info_init_fields): New function, split out
16575         from...
16576         (df_insn_create_insn_record): ...here.
16577         (df_insn_info_free_fields): New function, split out from...
16578         (df_insn_info_delete): ...here.
16579         (df_insn_rescan): Use the new functions instead of freeing and
16580         reallocating the df_insn_info.
16582 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16584         * doc/install.texi (Binaries): Remove links no longer valid.
16586 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
16588         * config/nvptx/mkoffload.c (process): Replace
16589         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16591 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
16593         PR target/67329
16594         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16596 2015-08-24  Renlin Li  <renlin.li@arm.com>
16598         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16599         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16600         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16601         * config/arm/constraints.md ("j"): Add check for high code.
16603 2015-08-24  Tom de Vries  <tom@codesourcery.com>
16605         PR tree-optimization/65468
16606         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16607         chunk_size is one.
16609 2015-08-24  Nathan Sidwell  <nathan@acm.org>
16611         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16612         change to nvptx_type_from_mode call. Use arg_promotion for both
16613         split and non-split args.
16615 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16617         * target-insns.def (movstr): New pattern.
16618         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16619         (expand_movstr): Use targetm rather than HAVE_movstr/
16620         CODE_FOR_movstr.
16622 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
16624         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16625         cast syntax.
16627 2015-08-24  Andrew Pinski  <apinski@cavium.com>
16629         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16630         AARCH64_EXTRA_TUNING_OPTION.
16631         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16632         New enum.
16633         (aarch64_extra_tuning_flags): Base the shifted value on the index
16634         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16635         * config/aarch64/aarch64.c: Remove the last argument to
16636         AARCH64_EXTRA_TUNING_OPTION.
16638 2015-08-23  Nathan Sidwell  <nathan@acm.org>
16640         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16641         decls.
16642         (nvptx_declare_function_name): Insert formatting tabs for
16643         consistency.
16645 2015-08-23  Tom de Vries  <tom@codesourcery.com>
16647         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16648         parm_decl, rather than generating a dummy default def in cfun.
16649         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
16650         ssa_name from cfun and child_fn do not share a stmt as def stmt.
16651         (move_stmt_op): Handle PARM_DECl.
16652         (gather_ssa_name_hash_map_from): New function.
16653         (move_sese_region_to_fn): Add default defs for function params, and add
16654         them to vars_map.  Release copied ssa names.
16655         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16657 2015-08-23  Tom de Vries  <tom@codesourcery.com>
16659         * doc/sourcebuild.texi: Rename vect_no_int_max with
16660         vect_no_int_min_max.  Update description.
16662 2015-08-22  Andrew Pinski  <apinski@cavium.com>
16664          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16665         * config/aarch64/aarch64-protos.h
16666         (aarch64_fusion_pairs_index): New enum.
16667         (aarch64_fusion_pairs): Base the shifted value on the index instead
16668         Rewrite AARCH64_FUSE_ALL to be based on the end index.
16669         of the argument to AARCH64_FUSION_PAIR.
16670         * config/aarch64/aarch64.c: Remove the last argument to
16671         AARCH64_FUSION_PAIR.
16673 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
16675         * dominance.c (new_zero_array): Define.
16676         (dom_info): Redefine as class with proper encapsulation.
16677         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16678         Add new members.
16679         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
16680         allocations/deallocations.  Pass function as parameter (instead of
16681         using cfun).
16682         (dom_info::get_idom): Define accessor method.
16683         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16684         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
16685         (calculate_dominance_info): Adjust to use dom_info class.
16686         (verify_dominators): Likewise.
16688 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
16690         * print-rtl.c (print_rtx): Check the correct range for
16691         flag_dump_unnumbered_links to behave as documented.
16693         PR rtl-optimization/67227
16694         PR rtl-optimization/64164
16695         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16696         (nonoverlapping_memrefs_p): Test offsets and sizes when given
16697         identical gimple_reg exprs.
16699 2015-08-21  Nathan Sidwell  <nathan@acm.org>
16701         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16702         expansion.
16703         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16704         crtl->stack_alignment_needed to determine alignment.
16705         (nvptx_get_drap_rtx): New.
16706         (TARGET_GET_DRAP_RTX): Override.
16707         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16709 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16711         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16713 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16715         * configure.ac: Remove uwin* cases.
16716         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16717         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16718         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16719         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16720         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16721         i[34567]86-*-uwin*, powerpc-*-beos*.
16723 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
16725         * gencodes.c (gencodes): Print the comma for the preceding
16726         enum value rather than the current one.  Use aliased enum values
16727         rather than #defines for compiled-out patterns.
16728         (main): Update accordingly.  Replace LAST_INSN_CODE with
16729         NUM_INSN_CODES.
16730         * lra.c (insn_code_data): Update accordingly.
16731         (finish_insn_code_data_once, get_static_insn_data): Likewise.
16732         * recog.h (target_recog): Likewise.
16733         (preprocess_insn_constraints): Change parameter to unsigned int.
16734         * recog.c (preprocess_insn_constraints): Likewise.
16735         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16736         * tree-vect-stmts.c (vectorizable_operation): Simplify.
16738 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
16740         PR rtl-optimization/61657
16741         * loop-iv.c (iv_number_of_iterations): Declare up and down as
16742         unsigned.  Remove superflous uint64_t cast.
16744 2014-08-21  Felix Yang  <felix.yang@huawei.com>
16745             Jiji Jiang  <jiangjiji@huawei.com>
16747         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16748         argument and get builtin function code directly from CALL.
16749         (gimple_stringop_fixed_value): Modified accordingly.
16750         (gimple_stringops_transform, gimple_stringops_values_to_profile):
16751         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16753 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16755         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16757 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16759         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16760         to match.pd.
16761         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16762         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16763         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16764         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16765         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16766         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16767         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16768         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16769         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16770         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16772         * match.pd (SIN ) : New Operator.
16773         (TAN) : New Operator.
16774         (mult (SQRT@1 @0) @1) : New simplifier.
16775         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16776         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16777         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16778         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16779         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16780         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16781         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16782         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16783         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16784         (rdiv @0 (POW:s @1 @2)) : New simplifier.
16786 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
16788         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16789         loop if EXPR is simplified to const value.
16791 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
16793         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16794         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16796 2015-08-21  Richard Biener  <rguenther@suse.de>
16798         PR middle-end/67285
16799         * gimple-fold.c (replace_stmt_with_simplification): Assert
16800         seq is empty when replacing a call with itself but different
16801         arguments.
16802         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16803         a call require that it is const.
16805 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16807         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16808         * builtins.c (get_object_alignment_2): Adjust.
16809         * varasm.c (align_variable): Likewise.
16810         (get_variable_align): Likewise.
16811         (build_constant_desc): Likewise.
16812         (force_const_mem): Likewise.
16813         * doc/tm.texi.in: Likewise.
16814         * doc/tm.texi: Regenerate.
16816 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16818         * genconfig.c (main): Always define HAVE_cc0.
16819         * recog.c (rest_of_handle_peephole2): Adjust.
16821 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16823         * reorg.c (relax_delay_slots): Don't use #if to check value of
16824         HAVE_cc0.
16826 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16828         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16829         * targhooks.c (default_have_conditional_execution): Adjust.
16831 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16833         * rtl.h (rtvec_all_equal_p): Declare.
16834         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16835         * rtl.c (rtvec_all_equal_p): New function.
16836         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16837         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16838         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16839         * config/arm/arm.c (neon_vdup_constant): Likewise.
16840         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16841         * config/tilegx/constraints.md (W, Y): Likewise.
16842         * config/tilepro/constraints.md (W, Y): Likewise.
16843         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16844         (classify_immediate): Use unwrap_const_vec_duplicate.
16845         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16846         (reg_or_v2s8bit_operand): Likewise.
16847         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16848         (reg_or_v4s8bit_operand): Likewise.
16850 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16852         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16853         (vec_shasigma_be): New #define.
16854         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16855         (VPMSUMH): Likewise.
16856         (VPMSUMW): Likewise.
16857         (VPMSUMD): Likewise.
16858         (VPMSUM): New BU_P8V_OVERLOAD_2.
16859         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16860         entries for VEC_MADD and VEC_VPMSUM.
16862 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
16864         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16865         Multiply argument avr_n_flash by 64 to match unit of "KiB".
16866         (avr_pgm_check_var_decl): Same.
16868 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
16870         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16871         initialization of HFmode scalar type (float16_t) to...
16872         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16873         code.
16875         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16877         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16878         having an -mfp16-format.
16880 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
16882         * config/i386/predicates.md (vector_all_ones_operand): Use
16883         CONSTM1_RTX to simplify definition.
16885 2015-08-20  Richard Biener  <rguenther@suse.de>
16887         * toplev.c (compile_file): Remove loop calling late_global_decl
16888         on all symbols.
16889         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16890         on decls we assembled.
16892 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
16894         * common/config/aarch64/aarch64-common.c
16895         (AARCH64_CPU_NAME_LENGTH): Delete.
16896         (aarch64_option_extension): New.
16897         (all_extensions): Likewise.
16898         (processor_name_to_arch): Likewise.
16899         (arch_to_arch_name): Likewise.
16900         (all_cores): New.
16901         (all_architectures): Likewise.
16902         (aarch64_get_extension_string_for_isa_flags): Likewise.
16903         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16904         architecture names.
16905         * config/aarch64/aarch64-protos.h
16906         (aarch64_get_extension_string_for_isa_flags): New.
16907         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16908         (aarch64_option_print): Get the string to print from
16909         aarch64_get_extension_string_for_isa_flags.
16910         (aarch64_declare_function_name): Likewise.
16911         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16912         (MCPU_TO_MARCH_SPEC): This.
16913         (ASM_CPU_SPEC): Use it.
16914         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16915         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16916         (EXTRA_SPEC_FUNCTIONS): Use it.
16918 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
16920         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16921         expansion when !ISA_HAS_LWL_LWR.
16922         (mips_block_move_straight): Update the size of elements copied to
16923         account for alignment when !ISA_HAS_LWL_LWR.
16924         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16926 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
16928         * expr.c (expand_expr_real_2): Check gimple statement during
16929         LSHIFT_EXPR expand.
16931 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
16933         * common.opt (fstack-protector): Initialize to -1.
16934         (fstack-protector-all): Likewise.
16935         (fstack-protector-strong): Likewise.
16936         (fstack-protector-explicit): Likewise.
16937         * configure.ac: Add --enable-default-ssp.
16938         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
16939         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16940         -1.
16941         * doc/install.texi: Document --enable-default-ssp.
16942         * config.in: Regenerated.
16943         * configure: Likewise.
16945 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
16947         PR rtl-optimization/64164
16948         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16949         (parm_in_stack_slot_p): ... this.  Disregard mode, what
16950         matters is whether the parm will live in a pseudo or a stack
16951         slot.
16952         (expand_one_ssa_partition): Deal with params without a default
16953         def.  Disregard mode.
16954         * cfgexpand.h: Renamed function declaration.
16955         * tree-ssa-coalesce.c: Adjust.
16956         * function.c (split_complex_args): Allocate stack slot for
16957         unassigned parms before splitting.
16958         (parm_in_unassigned_mem_p): New.  Use it instead of
16959         parm_maybe_byref_p throughout this file.
16960         (assign_parm_setup_block): Use it.  Accept pseudos in the
16961         expand-assigned rtl.
16962         (assign_parm_setup_reg): Drop BLKmode requirement.
16963         (assign_parm_setup_stack): Allocate and fill in the address of
16964         unassigned MEM parms.
16966 2015-08-19  David Sherwood  <david.sherwood@arm.com>
16968         * genmodes.c (emit_mode_unit_size_inline): New function.
16969         (emit_mode_unit_precision_inline): New function.
16970         (emit_insn_modes_h): Emit new #define.  Emit new functions.
16971         (emit_mode_unit_size): New function.
16972         (emit_mode_unit_precision): New function.
16973         (emit_mode_adjustments): Add mode_unit_size adjustments.
16974         (emit_insn_modes_c): Emit new arrays.
16975         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16976         use new inline methods.
16978 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16980         * config/aarch64/aarch64.c (bit_count): Delete prototype
16981         and definition.
16982         (aarch64_print_operand): Use popcount_hwi instead of the above.
16984 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16986         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16987         comment.
16989 2015-08-19  Marek Polacek  <polacek@redhat.com>
16991         PR middle-end/67133
16992         * gimple-ssa-isolate-paths.c
16993         (insert_trap_and_remove_trailing_statements): Rename to ...
16994         (insert_trap): ... this.  Don't remove trailing statements; split
16995         block instead.
16996         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16998 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
17000         PR other/67042
17001         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17002         conditionalize the whole on __GNUC__.  Add fallback code
17003         depending neither on undefined nor implementation-defined behaviour.
17005 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17007         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17008         whitespaces with tab.
17010 2015-08-19  Florian Weimer  <fweimer@redhat.com>
17012         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17013         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17014         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17015         Move Name_Ids instantiation to the Prj.Proc package, to avoid
17016         trampolines.
17018 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17020         * config/arm/arm.c (bounds_check): Use %wd print format
17021         for HOST_WIDE_INT arguments.
17023 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
17025         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17026         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17027         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17028         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17029         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17030         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17031         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17032         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17033         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17034         typedefs.
17036 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
17038         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17039         function.c, graphite-scop-detection.c, haifa-sched.c,
17040         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17041         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17042         varasm.c: Remove typedefs of structs.
17044 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
17046         * config/rs6000/altivec.h (vec_adde): New define.
17047         (vec_addec): Likewise.
17048         (vec_double): Likewise.
17049         (vec_bperm): Likewise.
17050         (vec_gb): Likewise.
17051         * config/rs6000/rs6000-builtin.def (ADDE): New
17052         BU_ALTIVEC_OVERLOAD_3.
17053         (ADDEC): Likewise.
17054         (DOUBLE): New BU_VSX_OVERLOAD_1.
17055         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17056         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17057         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17058         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17059         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17060         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17061         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17062         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17063         and P8V_BUILTIN_VEC_VBPERMQ.
17065 2015-08-18  Jason Merrill  <jason@redhat.com>
17067         * print-tree.c (print_node): Handle TREE_BINFO.
17069 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17071         PR middle-end/36757
17072         * builtins.c (expand_builtin_signbit): Add asserts to make sure
17073         we can expand BUILT_IN_SIGNBIT inline.
17074         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17075         * doc/extend.texi: Document the type-generic __builtin_signbit.
17077 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
17079         PR rtl-optimization/67218
17080         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17081         (simplify_unary_operation_1): Use it.
17083 2015-08-18  Marek Polacek  <polacek@redhat.com>
17085         PR middle-end/67222
17086         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17087         if the call isn't valid.
17088         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17089         gimple_call_builtin_p.
17090         (call_may_clobber_ref_p_1): Likewise.
17091         (stmt_kills_ref_p): Likewise.
17093 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17095         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17096         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17097         (mips_hard_regno_scratch_ok): Likewise.
17098         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17099         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17101 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
17103         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17104         (determine_value_range): Call refine_value_range_using_guard for
17105         each loop initial condition to improve value range.
17107 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
17109         * config/i386/i386.c: Remove include of fibheap.h.
17111 2015-08-17  Richard Biener  <rguenther@suse.de>
17113         PR tree-optimization/67221
17114         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17115         (sccvn_dom_walker::before_dom_children): Mark backedges of
17116         non-executable blocks as not executable.
17118 2015-08-17  David Sherwood  <david.sherwood@arm.com>
17120         * config/arm/arm.c (neon_element_bits): Replace call to
17121         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17122         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17123         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17124         (neon_vdup_lane<mode>): Likewise.
17125         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17126         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17127         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17128         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17129         * config/spu/spu.c (arith_immediate_p): Likewise.
17130         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17131         * expr.c (expand_expr_real_2): Likewise.
17132         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17133         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17134         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17135         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17136         New variable.
17137         * fold-const.c (fold_binary_loc): Replace call to
17138         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17139         GET_MODE_UNIT_PRECISION (m).
17141 2015-08-17  Mike Stump  <mikestump@comcast.net>
17143         * config/arm/arm.c (arm_block_move_unaligned_straight):
17144         Emit normal move instead of unaligned load when source or destination
17145         are appropriately aligned.
17147 2015-08-17  Richard Biener  <rguenther@suse.de>
17148             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17150         PR middle-end/16107
17151         * match.pd (div (coss (op @0) : New simplifier.
17153 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
17155         PR rtl-optimization/64164
17156         PR bootstrap/66978
17157         PR middle-end/66983
17158         PR rtl-optimization/67000
17159         PR middle-end/67034
17160         PR middle-end/67035
17161         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17162         * tree-ssa-copyrename.c: Removed.
17163         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17164         -ftree-coalesce-vars.
17165         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17166         * common.opt (ftree-copyrename): Ignore.
17167         (ftree-coalesce-inlined-vars): Likewise.
17168         * doc/invoke.texi: Remove the ignored options above.
17169         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17170         * tree-ssa-coalesce.h: ... here.
17171         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17172         headers required by it.
17173         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17174         across variables when flag_tree_coalesce_vars.  Check register
17175         use and promoted modes to allow coalescing.  Do not coalesce
17176         maybe-byref parms with SSA_NAMEs of other variables, or
17177         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
17178         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17179         with its member functions to tree-ssa-coalesce.c.
17180         (var_map_base_init): Likewise.  Renamed to
17181         compute_samebase_partition_bases.
17182         (partition_view_normal): Drop want_bases parameter.
17183         (partition_view_bitmap): Likewise.
17184         * tree-ssa-live.h: Adjust declarations.
17185         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17186         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17187         default defs at the entry point.
17188         (dump_part_var_map): New.
17189         (compute_optimized_partition_bases): New, called by...
17190         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17191         of compute_samebase_partition_bases.  Adjust.
17192         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17193         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17194         (ssa_default_def_partition): New.
17195         (get_rtl_for_parm_ssa_default_def): New.
17196         (align_local_variable, add_stack_var): Support anonymous SSA
17197         names.
17198         (defer_stack_allocation): Likewise.  Declare earlier.
17199         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17200         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17201         Do no record deferred-allocation marker in
17202         SA.partition_to_pseudo.
17203         (expand_stack_vars): Adjust check for the marker in it.
17204         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17205         redundant MEM attr setting.
17206         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17207         from...
17208         (expand_one_stack_var): ... this.  New wrapper to check and
17209         skip already expanded SSA partitions.
17210         (record_alignment_for_reg_var): New, factored out of...
17211         (expand_one_var): ... this.
17212         (expand_one_ssa_partition): New.
17213         (adjust_one_expanded_partition_var): New.
17214         (expand_one_register_var): Check and skip already expanded SSA
17215         partitions.
17216         (expand_used_vars): Don't create DECLs for anonymous SSA
17217         names.  Expand all SSA partitions, then adjust all SSA names.
17218         (pass::execute): Replace the loops that set
17219         SA.partition_to_pseudo from partition leaders and cleared
17220         DECL_RTL for multi-location variables, and that which used to
17221         rename vars and set attrs, with one that clears DECL_RTL and
17222         checks that PARMs and RESULTs default_defs match DECL_RTL.
17223         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17224         * emit-rtl.c: Include stor-layout.h.
17225         (set_reg_attrs_for_parm): Handle NULL decl.
17226         (set_reg_attrs_for_decl_rtl): Take mode from expression if
17227         it's not a DECL.
17228         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17229         rather than its possibly-NULL DECL.
17230         * explow.c (promote_ssa_mode): New.
17231         * explow.h (promote_ssa_mode): Declare.
17232         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17233         (read_complex_part): Export.
17234         * expr.h (read_complex_part): Declare.
17235         * cfgexpand.h (parm_maybe_byref_p): Declare.
17236         * function.c: Include cfgexpand.h.
17237         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17238         (use_register_for_parm_decl): Wrapper for the above to
17239         special-case the result_ptr.
17240         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17241         (split_complex_args): Take assign_parm_data_all argument.
17242         Pass it to rtl_for_parm.  Set up rtl and context for split
17243         args.  Reset complex parm before fetching its default decl
17244         rtl.
17245         (assign_parms_unsplit_complex): Use the default-def complex
17246         parm rtl if it matches the components.
17247         (assign_parms_augmented_arg_list): Adjust.
17248         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17249         multiple locations.  Recognize split complex args.
17250         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17251         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17252         (assign_parm_setup_block): Prefer SSA-assigned location, and
17253         fill in its address if the memory location of a maybe-byref
17254         parm was not assigned by cfgexpand.
17255         (assign_parm_setup_reg): Likewise.  Adjust its mode as
17256         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
17257         sure passed_pointer parms don't need conversion.  Copy address
17258         or value as needed.
17259         (assign_parm_setup_stack): Prefer SSA-assigned location.
17260         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17261         rtl before testing for pointer bounds.  Special-case result_ptr.
17262         (expand_function_start): Maybe reset DECL_RTL of result.
17263         Prefer SSA-assigned location for result and static chain.
17264         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
17265         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
17266         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17267         anonymous SSA names.  Use promote_ssa_mode.
17268         (get_temp_reg): Likewise.
17269         (remove_ssa_form): Adjust.
17270         * stor-layout.c (layout_decl): Don't set mem attributes of
17271         non-MEMs.
17272         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17273         and get its reg_usage for reg invalidation.
17274         (compute_bb_dataflow): Pass it insn.
17275         (emit_notes_in_bb): Likewise.
17277 2015-08-14  Marek Polacek  <polacek@redhat.com>
17279         * tree-core.h (tree_base): Fix typo.
17281 2015-08-14  Marek Polacek  <polacek@redhat.com>
17283         PR middle-end/67133
17284         * gimple.c (infer_nonnull_range_by_attribute): Check that the
17285         nonnull argument position is not outside function arguments.
17287 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
17289         PR target/67143
17290         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17291         'lconst_atomic' with 'const_atomic'.
17292         (atomic_fetch_<optab><mode>): Likewise.
17293         (atomic_<optab>_fetch<mode>): Likewise.
17294         * config/aarch64/iterators.md (lconst-atomic): Move below
17295         'const_atomic'.
17296         (const_atomic): New.
17298 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
17299             Bernd Schmidt  <bernds@codesourcery.com>
17301         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17302         debug options.
17303         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17304         (DWARF2_DEBUGGING_INFO): Don't define.
17305         * debug.h (dwarf2_lineno_debug_hooks): Declare.
17306         * toplev.c (process_options): Add a case for it.
17307         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17308         (dwarf2out_init): Skip most initializations if
17309         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17310         case.
17311         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17312         DWARF2_LINENO_DEBUGGING_INFO.
17313         * opts.c (set_debug_level): Likewise.
17315 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
17317         * config/arm/types.md (is_neon_type): Add missing types.
17319 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
17321         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17322         for skylake.
17323         * config/i386/i386.c (PTA_SKYLAKE): New macros.
17324         (processor_alias_table): Add skylake description.
17325         (enum processor_model): Add skylake processor.
17326         (arch_names_table): Add skylake record.
17327         * doc/invoke.texi: Add skylake item.
17329 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
17331         * ira-int.h: Include recog.h.
17332         * ira-build.c: Don't include recog.h.
17333         * ira-color.c: Likewise.
17334         * ira-conflicts.c: Likewise.
17335         * ira-costs.c: Likewise.
17336         * ira-emit.c: Likewise.
17337         * ira-lives.c: Likewise.
17338         * ira.c: Likewise.
17339         * sched-deps.c: Likewise.
17340         * sel-sched.c: Likewise.
17341         * target-globals.c: Likewise.
17343 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17345         PR bootstrap/55035
17346         * reload1.c (elimination_costs_in_insn): Make it obvious to the
17347         compiler that the n_dups and n_operands loop bounds are invariant.
17349 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17351         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17352         expressions in A and B.
17354 2015-08-13  Richard Biener  <rguenther@suse.de>
17356         * tree.c (nonnull_arg_p): Move from ...
17357         * tree-vrp.c (nonnull_arg_p): ... here.
17358         * tree.h (nonnull_arg_p): Declare.
17359         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17360         here, register ptr != 0 for nonnull_arg_p pointer arguments.
17361         Properly initialize static chain and by-reference result pointer.
17362         (run_scc_vn): Adjust.
17364 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
17366         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17367         TUNE_I6400.
17369 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
17371         * config/aarch64/aarch64-protos.h
17372         (aarch64_gen_atomic_cas): Declare.
17373         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17374         Choose appropriate instruction pattern for the target.
17375         (aarch64_gen_atomic_cas): New.
17376         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17377         (atomic_compare_and_swap<mode>_1): Rename to
17378         aarch64_compare_and_swap<mode>.  Fix some indentation.
17379         (aarch64_compare_and_swap<mode>_lse): New.
17380         (aarch64_atomic_cas<mode>): New.
17382 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
17384         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17385         (TARGET_LSE): New.
17387 2015-08-13  Richard Biener  <rguenther@suse.de>
17389         PR tree-optimization/67191
17390         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17391         assert we value-numbered last stmts operand because it can validly
17392         trigger for unreachable code.
17394 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17396         PR rtl-optimization/67103
17397         * ifcvt.c (noce_try_store_flag_constants): Move
17398         x = (-(test != 0) & (b - a)) + a transformation to...
17399         (noce_try_cmove): ... Here.  Try it if normal conditional
17400         move fails.
17402 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
17404         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17405         pseudo-processors.
17406         * config/mips/mips.md (processor): Remove w32 and w64.
17408 2015-08-13  Richard Biener  <rguenther@suse.de>
17410         PR tree-optimization/66502
17411         PR tree-optimization/67167
17412         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17413         backedge arguments.
17414         (vn_phi_lookup): Adjust.
17415         (vn_phi_insert): Likewise.
17416         (visit_phi): Prefer to value-number to another PHI node
17417         over value-numbering to a PHI argument.
17418         (init_scc_vn): Mark DFS back edges.
17420 2015-08-13  Richard Biener  <rguenther@suse.de>
17422         * gimple.h (gcall::code_): New constant static member.
17423         (gcond::code_): Likewise.
17424         * gimple.c (gcall::code_): Define.
17425         (gcond::code_): Likewise.
17426         (is_a_helper <const gcond *>): Add.
17427         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17428         and forward to a new gcall overload with less checking and a
17429         cheaper way to access the operand.
17430         (gimple_call_lhs_ptr): Likewise.
17431         (gimple_call_set_lhs): Likewise.
17432         (gimple_call_internal_p): Likewise.
17433         (gimple_call_with_bounds_p): Likewise.
17434         (gimple_call_set_with_bounds): Likewise.
17435         (gimple_call_internal_fn): Likewise.
17436         (gimple_call_set_ctrl_altering): Likewise.
17437         (gimple_call_ctrl_altering_p): Likewise.
17438         (gimple_call_fntype): Likewise.
17439         (gimple_call_fn): Likewise.
17440         (gimple_call_fn_ptr): Likewise.
17441         (gimple_call_set_fndecl): Likewise.
17442         (gimple_call_fndecl): Likewise.
17443         (gimple_call_chain): Likewise.
17444         (gimple_call_num_args): Likewise.
17445         (gimple_call_arg): Likewise.
17446         (gimple_call_arg_ptr): Likewise.
17447         (gimple_call_set_arg): Likewise.
17448         (gimple_call_noreturn_p): Likewise.
17449         (gimple_cond_code): Likewise.
17450         (gimple_cond_lhs): Likewise.
17451         (gimple_cond_rhs): Likewise.
17452         (gimple_has_lhs): Reduce checking.
17454 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17456         PR middle-end/25529
17457         * match.pd (div (mult @0 @1) @1) : New simplifier.
17459 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17461         PR target/67071
17462         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17463         predicate to allow construction of vector constants using the
17464         VSLDOI vector shift instruction.
17466         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17467         declaration.
17469         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17470         the number of bytes to be shifted left and filled in with either
17471         all zero or all one bits.
17472         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17473         methods exist.
17474         (output_vec_const_move): On power8, generate XXLORC to generate
17475         a vector constant with all 1's. Do a split if we need to use a
17476         VSLDOI instruction.
17478         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17479         properly test for the MSB.
17481         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17482         vector constants that can be created with VSLDOI.
17484 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
17486         revert:
17487         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17488         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17489         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17490         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17491         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17492         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17493         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17494         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17495         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17497 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
17499         * config/xtensa/constraints.md (define_constraint "Y"): New
17500         constraint.
17501         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17502         * config/xtensa/linux.h (ASM_SPEC): Likewise.
17503         * config/xtensa/predicates.md (move_operand): Match constants
17504         and symbols in the presence of TARGET_AUTO_LITPOOLS.
17505         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17506         immediate references to TLS data.
17507         (xtensa_emit_move_sequence): Don't force constants to memory in
17508         the presence of TARGET_AUTO_LITPOOLS.
17509         (print_operand): Add 'y' format, same as default, but capable of
17510         printing SF mode constants as well.
17511         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17512         (movsf_internal): Add movi pattern that loads literal.
17513         (movsf, movdf): Don't force constants to memory in the presence
17514         of TARGET_AUTO_LITPOOLS.
17515         (movdf_internal): Add 'Y' constraint.
17516         * config/xtensa/xtensa.opt (mauto-litpools): New option.
17517         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17519 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
17521         * config/arm/arm-fpus.def: Replace booleans with feature flags.
17522         Update comment.
17523         * config/arm/arm.c (ARM_FPU): Update macro.
17524         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17525         (TARGET_FP16): Likewise.
17526         (TARGET_CRYPTO): Likewise.
17527         (TARGET_NEON): Likewise.
17528         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
17529         field features.
17531 2015-08-12  Tom de Vries  <tom@codesourcery.com>
17533         PR other/67092
17534         PR other/67098
17535         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
17536         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17537         accordingly.  Mention default for --with-stage1-ldflags.
17539 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
17541         * config/arm/arm.h (arm_fpu_feature_set): New.
17542         (ARM_FPU_FSET_HAS): New.
17543         (FPU_FL_NONE): New.
17544         (FPU_FL_NEON): New.
17545         (FPU_FL_FP16): New.
17546         (FPU_FL_CRYPTO): New.
17548 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17550         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17551         after -mcmodel=large -fPIC sorry.
17553 2015-08-12  Richard Biener  <rguenther@suse.de>
17555         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17556         comparison operand order and commutative ternary op operand order.
17557         (sccvn_dom_walker::cond_stack): New state to track temporary
17558         expressions.
17559         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17560         no longer valid.
17561         (sccvn_dom_walker::record_cond): Add a single temporary conditional
17562         expression.
17563         (sccvn_dom_walker::record_conds): Add a temporary conditional
17564         expressions and all related expressions also true/false.
17565         (sccvn_dom_walker::before_dom_children): Record temporary
17566         expressions based on the controlling condition of a single
17567         predecessor.  When trying to simplify a conditional statement
17568         lookup expressions we might have inserted earlier.
17570 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
17572         PR target/67127
17573         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17574         to ARM core registers.
17576 2015-08-12  Nathan Sidwell  <nathan@acm.org>
17578         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17579         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17581 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
17583         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17584         line with comments.
17585         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17587 2015-08-12  Richard Biener  <rguenther@suse.de>
17589         * gimple.h (remove_pointer): New trait.
17590         (GIMPLE_CHECK2): New inline template function.
17591         (gassign::code_): New constant static member.
17592         (is_a_helper<const gassign *>): Add.
17593         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17594         and forward to a new gassign overload with less checking and a
17595         cheaper way to access the operand.
17596         (gimple_assign_lhs_ptr): Likewise.
17597         (gimple_assign_set_lhs): Likewise.
17598         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17599         Likewise.
17600         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17601         Likewise.
17602         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17603         Likewise.
17604         (gimple_assign_rhs_code): Likewise.
17605         * gimple.c (gassign::code_): Define.
17607 2015-08-12  Richard Biener  <rguenther@suse.de>
17609         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17610         Eliminate edges marked as not executable by SCCVN.
17611         * tree-ssa-sccvn.c: Include gimple-iterator.h.
17612         (cond_dom_walker): Rename to sccvn_dom_walker.
17613         (sccvn_dom_walker::before_dom_children): Value-number defs
17614         of all stmts.
17615         (run_scc_vn): Remove loop value-numbering all SSA names.
17616         Drop not visited SSA names to varying.
17618 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
17620         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17621         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17622         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17623         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17624         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17625         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17626         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17627         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17628         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17630 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
17632         PR target/66954
17633         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17634         to enum feature_priority and feature_list.
17635         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17636         and isa_names_table.
17638 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
17640         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17641         vect_induction_def.
17643 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17645         PR c/66098
17646         PR c/66711
17647         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17648         account when deciding what was the command-line status.
17650 2015-08-11  Nathan Sidwell  <nathan@acm.org>
17652         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17654         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17655         we're not the only contributor to target phi.
17657 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
17659         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17660         FIXED_REG0.
17662 2015-08-11  Tom de Vries  <tom@codesourcery.com>
17664         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17666 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
17668         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17669         with CPU_SLM.
17670         * config/i386/i386.md (cpu): Remove knl.
17672 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17674         PR libgomp/65742
17675         PR middle-end/66332
17676         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17677         open-coded sequence.
17678         * omp-low.c (oacc_process_reduction_data): Remove handline of
17679         GOMP_DEVICE_HOST_NONSHM.
17681         * lto-streamer-in.c (lto_input_mode_table): Adjust to
17682         GET_MODE_INNER changes.
17684 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
17685             Ilya Verbin  <ilya.verbin@intel.com>
17687         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17689 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17691         * doc/options.texi (EnabledBy): Document that the argument must be
17692         a Common option.
17693         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17694         Not enabled by -Wall.
17695         * optc-gen.awk: Give nicer error messages. Detect if the argument
17696         of EnabledBy is not a Common option.
17697         * common.opt (Wnull-dereference): Not enabled by -Wall.
17698         * opt-functions.awk (lang_enabled_by): Nicer error messages.
17700 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17702         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17703         model == 0x4f as Broadwell.
17705 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
17707         PR rtl-optimization/67028
17708         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
17709         Add test to see if a const_int fits in the new mode.
17711 2015-08-07  DJ Delorie  <dj@redhat.com>
17713         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17715 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
17717         PR rtl-optimization/67029
17718         * ira-color.c: Include "recog.h" before including "ira-int.h".
17719         * target-globals.c: Likewise.
17720         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17721         adds an alternative_mask argument and use it instead of
17722         preferred_alternatives.
17723         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17724         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17725         * sched-deps.c: Include "ira-int.h" after including "ira.h".
17726         (sched_analyze_insn): Update call to
17727         ira_implicitly_set_insn_hard_regs.
17728         * sel-sched.c: Include "ira-int.h" after including "ira.h".
17729         (implicit_clobber_conflict_p): Update call to
17730         ira_implicitly_set_insn_hard_regs.
17732 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17734         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17736 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
17738         PR target/67002
17739         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17740         currently_expanding_to_rtl is set.
17742 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
17744         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17745         * configure: Regenerate.
17747 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17748             Jiong Wang  <jiong.wang@arm.com>
17750         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17751         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17752         (REG_CLASS_NAMES): Likewise.
17753         (REG_CLASS_CONTENTS): Likewise.
17754         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17755         (aarch64_register_move_cost): Likewise.
17756         (aarch64_load_symref_appropriately): Invoke the new added pattern if
17757         possible.
17758         * config/aarch64/constraints.md (Uc0): New constraint.
17760 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17762         * config/aarch64/constraints.md (Usf): Add the test of
17763         aarch64_is_noplt_call_p.
17765 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
17767         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17768         declaration.
17769         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17770         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17771         (call_symbol): Likewise.
17773 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
17775         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17776         for vectorizing multiplication patterns.
17777         * tree-vectorizer.h: Adjust the number of patterns.
17779 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
17781         * config/i386/sse.md (*vec_concatv2df): Declare added
17782         alternatives as sselog type.
17784 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17786         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17787         all GPRs.
17789 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17791         * config/s390/s390.c (s390_expand_tbegin): Expand either
17792         tbegin_1_z13 or tbegin_1 depending on VX flag.
17793         * config/s390/s390.md ("tbegin_1_z13"): New expander.
17795 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17797         * config/s390/s390.opt: Clarify description for -mzvector
17798         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17799         -mzvector.
17801 2015-08-06  Richard Biener  <rguenther@suse.de>
17803         * gimple.h (gimple_call_set_fn): Access op member directly.
17804         (gimple_call_chain_ptr): Likewise.
17805         (gimple_call_set_chain): Likewise.
17806         (gimple_cond_lhs_ptr): Likewise.
17807         (gimple_cond_set_lhs): Likewise.
17808         (gimple_cond_rhs_ptr): Likewise.
17809         (gimple_cond_set_rhs): Likewise.
17810         (gimple_cond_true_label): Likewise.
17811         (gimple_cond_set_true_label): Likewise.
17812         (gimple_cond_set_false_label): Likewise.
17813         (gimple_cond_false_label): Likewise.
17814         (gimple_label_label): Likewise.
17815         (gimple_label_set_label): Likewise.
17816         (gimple_goto_set_dest): Likewise.
17817         (gimple_asm_input_op): Likewise.
17818         (gimple_asm_input_op_ptr): Likewise.
17819         (gimple_asm_set_input_op): Likewise.
17820         (gimple_asm_output_op): Likewise.
17821         (gimple_asm_output_op_ptr): Likewise.
17822         (gimple_asm_set_output_op): Likewise.
17823         (gimple_asm_clobber_op): Likewise.
17824         (gimple_asm_set_clobber_op): Likewise.
17825         (gimple_asm_label_op): Likewise.
17826         (gimple_asm_set_label_op): Likewise.
17827         (gimple_switch_index): Likewise.
17828         (gimple_switch_index_ptr): Likewise.
17829         (gimple_return_retval_ptr): Likewise.
17830         (gimple_return_retval): Likewise.
17831         (gimple_return_set_retval): Likewise.
17832         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
17833         (gimple_switch_label): Likewise.
17834         (gimple_switch_set_label): Likewise.
17836 2015-08-06  Richard Biener  <rguenther@suse.de>
17838         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17839         bool comparison canonicalization and restrict to integers.
17841 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
17843         * coretypes.h (enum symbol_visibility): Relocate here.
17844         * flag-types.h (enum symbol_visibility): Remove.
17845         * tree-core.h (enum symbol_visibility): Remove.
17847 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
17849         PR target/66870
17850         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17851         for no_split_stack function attribute along with
17852         flag_split_stack.
17853         (rs6000_expand_split_stack_prologue): Likewise.
17855 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17856             Jeff Law  <law@redhat.com>
17858         PR c/16351
17859         * doc/invoke.texi (Wnull-dereference): New.
17860         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17861         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17862         Warn for potential NULL dereferences.
17863         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17864         * ubsan.c (instrument_nonnull_arg): Call
17865         infer_nonnull_range_by_attribute.
17866         (instrument_nonnull_return): Likewise.
17867         * common.opt (Wnull-dereference); New.
17868         * gimple.c (infer_nonnull_range): Remove bool arguments.
17869         (infer_nonnull_range_by_dereference): New.
17870         (infer_nonnull_range_by_attribute): New.
17871         * gimple.h: Update declarations.
17873 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17875         * gensupport.c (sequence_num): Replace with...
17876         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17877         ...these new variables.
17878         (init_rtx_reader_args_cb): Update accordingly.
17879         (get_num_code_insns): Likewise.
17880         (read_md_rtx): Rework to use a while loop and get_c_test.
17881         Use the new counters.  Remove redundant DEFINE_SUBST case.
17882         * genoutput.c (gen_split): Delete.
17883         (main): Don't call it.
17885 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17887         * gensupport.h (get_c_test): Declare.
17888         * gensupport.c (get_c_test): New function.
17889         * genconditions.c (main): Use it.
17890         * genrecog.c (validate_pattern): Likewise.
17891         (match_pattern_1): Likewise.  Remove c_test argument.
17892         (match_pattern): Update accordingly and remove c_test argument.
17893         (main): Update accordingly.
17895 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17897         * gensupport.h (get_num_insn_codes): Declare.
17898         * gensupport.c (get_num_insn_codes): New function.
17899         * genattrtab.c (optimize_attrs): Rename max_insn_code to
17900         num_insn_codes.
17901         (main): Likewise.  Use get_num_insn_codes.
17902         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17904 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17906         PR middle-end/66311
17907         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17908         is zero- rather than sign-extended.
17910 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
17912         * target-insns.def (can_extend): Delete.
17914 2015-08-05  Richard Biener  <rguenther@suse.de>
17916         PR tree-optimization/67121
17917         * tree-if-conv.c (combine_blocks): Clear range-info produced
17918         by stmts no longer executed conditionally.
17920 2015-08-05  Nick Clifton  <nickc@redhat.com>
17922         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17923         to allow identical far pointers to remain.
17925 2015-08-05  Richard Biener  <rguenther@suse.de>
17927         PR middle-end/67120
17928         * match.pd: Compare address bases with == if they are decls
17929         or SSA names, not operand_equal_p.  Otherwise fail.
17931 2015-08-05  Richard Biener  <rguenther@suse.de>
17933         PR tree-optimization/67055
17934         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17935         NULL gimple_block.
17937         * g++.dg/torture/pr67055.C: New testcase.
17939 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
17941         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17942         noavx512vl.
17943         (define_attr "enabled"): Handle avx521vl and noavx512vl.
17944         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17945         AVX-512 alternative out of SSE.
17946         (define_insn "*vec_concatv2df"): Ditto.
17948 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
17950         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17951         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17952         CODE_FOR_avx_ptestv4di.
17953         * config/i386/sse.md (define_mode_iterator V_AVX): New.
17954         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17955         (define_insn "avx_ptest256"): Merge this ...
17956         (define_insn "sse4_1_ptest"): And this ...
17957         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17959 2015-08-05  Richard Biener  <rguenther@suse.de>
17961         PR tree-optimization/67109
17962         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17963         against too big groups.  Print whether this is a load or store
17964         group.  Rename from ...
17965         (vect_analyze_group_access): ... this which is now a wrapper
17966         dissolving an invalid group.
17967         (vect_analyze_data_ref_accesses): Print whether this is a load
17968         or store group.
17970 2015-08-05  Richard Biener  <rguenther@suse.de>
17972         PR middle-end/67107
17973         * match.pd: Guard const_binop result checking against NULL_TREE
17974         result.
17976 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
17978         * cse.c (cse_insn): Restoring old behaviour for src_eqv
17979          when dest and value in the REG_EQUAL are same and dest
17980          is STRICT_LOW_PART.
17982 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
17984         * config/moxie/moxie.h (PRINT_OPERAND,
17985           PRINT_OPERAND_ADDRESS): Remove macros.
17986         * config/moxie/moxie-protos.h (moxie_print_operand,
17987           moxie_print_operand_address): Remove declaration.
17988         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17989           TARGET_PRINT_OPERAND_ADDRESS): Define.
17990           (moxie_print_operand, moxie_print_operand_address): Make static.
17992 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17994         PR target/66731
17995         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17996         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17998 2015-08-04  Richard Biener  <rguenther@suse.de>
18000         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18001         generated code.
18002         (dt_operand::gen_gimple_expr): Adjust.
18004 2015-08-04  Richard Biener  <rguenther@suse.de>
18006         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18007         bool compares on RHS.
18008         * match.pd: Add X ==/!= !X is false/true pattern.
18010 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
18012         * config/aarch64/aarch64.c: Change inner loop statement cost
18013         to be consistent with other targets.
18015 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
18017         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18018         targets.
18020 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18022         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18023         (machine_function): Remove pseudos field.
18025 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18027         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18028         Exit early and use target_option_current_node if processing current
18029         pragma.
18031 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18033         * doc/extend.texi (AArch64 Function Attributes): New node.
18034         (AArch64 Pragmas): Likewise.
18036 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18038         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18039         Initialize simd builtins if TARGET_SIMD.
18040         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18041         Make sure that the builtins are initialized only once no matter how
18042         many times the function is called.
18043         (aarch64_init_builtins): Unconditionally initialize crc builtins.
18044         (aarch64_relayout_simd_param): New function.
18045         (aarch64_simd_expand_args): Use above during argument expansion.
18046         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18047         simd builtins if TARGET_SIMD.
18048         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18049         prototype.
18050         (aarch64_relayout_simd_types): Likewise.
18052 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18054         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18055         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18056         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18057         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18058         static keyword.
18059         (aarch64_reset_previous_fndecl): New function.
18060         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18061         the string.
18062         * config/aarch64/aarch64-c.c: New file.
18063         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18064         Push and pop options at beginning and end.  Remove ifdef
18065         __ARM_FEATURE_CRC32.
18066         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18067         Add pragma +nothing+simd and +nothing+crypto where appropriate.
18068         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18069         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18070         Define prototype.
18071         (aarch64_register_pragmas): Likewise.
18072         (aarch64_reset_previous_fndecl): Likewise.
18073         (aarch64_process_target_attr): Likewise.
18074         (aarch64_override_options_internal): Likewise.
18076 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18078         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18079         New function.
18080         (aarch64_can_inline_p): Likewise.
18081         (TARGET_CAN_INLINE_P): Define.
18083 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18085         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18086         Remove static.  Handle OPT_mgeneral_regs_only,
18087         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18088         OPT_momit_leaf_frame_pointer.
18089         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18090         (aarch64_attr_opt_type): New enum.
18091         (aarch64_attribute_info): New struct.
18092         (aarch64_handle_attr_arch): New function.
18093         (aarch64_handle_attr_cpu): Likewise.
18094         (aarch64_handle_attr_tune): Likewise.
18095         (aarch64_handle_attr_isa_flags): Likewise.
18096         (aarch64_attributes): New table.
18097         (aarch64_process_one_target_attr): New function.
18098         (num_occurences_in_str): Likewise.
18099         (aarch64_process_target_attr): Likewise.
18100         (aarch64_option_valid_attribute_p): Likewise.
18101         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18102         * config/aarch64/aarch64-protos.h: Include input.h
18103         (aarch64_handle_option): Declare prototype.
18105 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18107         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18108         * config/aarch64/aarch64.c: Include target-globals.h
18109         (aarch64_previous_fndecl): New variable.
18110         (aarch64_set_current_function): New function.
18111         (TARGET_SET_CURRENT_FUNCTION): Define.
18113 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18115         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18116         (explicit_arch): Likewise.
18117         (x_aarch64_isa_flags): Likewise.
18118         (mgeneral-regs-only): Mark as Save.
18119         (mfix-cortex-a53-835769): Likewise.
18120         (mcmodel=): Likewise.
18121         (mstrict-align): Likewise.
18122         (momit-leaf-frame-pointer): Likewise.
18123         (mtls-dialect): Likewise.
18124         (master=): Likewise.
18125         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18126         (aarch64_isa_flags): Remove extern declaration.
18127         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18128         to indicate success or failure.
18129         (aarch64_validate_march): Likewise.
18130         (aarch64_validate_mtune): Likewise.
18131         (aarch64_isa_flags): Delete.
18132         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18133         instead of aarch64_isa_flags.
18134         (aarch64_get_tune_cpu): New function.
18135         (aarch64_get_arch): Likewise.
18136         (aarch64_override_options): Use above and set up explicit_tune_core
18137         and explicit_arch.
18138         (aarch64_print_extension): Move earlier in file.  Add isa_flags
18139         argument and use that instead of the global aarch64_isa_flags.
18140         (aarch64_option_save): New function.
18141         (aarch64_option_restore): Likewise.
18142         (aarch64_option_print): Likewise.
18143         (aarch64_declare_function_name): Likewise.
18144         (aarch64_start_file): Delete.
18145         (TARGET_ASM_FILE_START): Do not define.
18146         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18147         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18148         Declare prototype.
18150 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18152         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18153         flag_omit_leaf_frame_pointer to 2.
18155 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18157         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18158         define to 0 or 1.
18159         (TARGET_FIX_ERR_A53_835769): New macro.
18160         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18161         handling of opts->x_aarch64_fix_a53_err835769.
18162         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18163         than aarch64_fix_a53_err835769.
18164         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18165         * config/aarch64/aarch64-linux.h: Likewise.
18167 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
18169         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18170         ix86_expand_int_movcc as boolean.
18172 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18174         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18175         (aarch64_cpu_string): Likewise.
18176         (aarch64_tune_string): Likewise.
18177         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18178         (aarch64_parse_extension): Return aarch64_parse_opt_result.
18179         Add extra argument to put result into.
18180         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
18181         (aarch64_parse_cpu): Add arguments to put results into. Return
18182         aarch64_parse_opt_result.
18183         (aarch64_parse_tune): Likewise.
18184         (aarch64_override_options_after_change_1): New function.
18185         (aarch64_override_options_internal): New function.
18186         (aarch64_validate_mcpu): Likewise.
18187         (aarch64_validate_march): Likewise.
18188         (aarch64_validate_mtune): Likewise.
18189         (aarch64_override_options): Update to reflect above changes.
18190         Move some logic into aarch64_override_options_internal.
18191         Initialize target_option_default_node and target_option_current_node.
18192         (aarch64_override_options_after_change): Move logic into
18193         aarch64_override_options_after_change_1 and call it with global_options.
18194         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18195         flag values from that.
18197 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18199         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18200         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18201         * config/aarch64/aarch64.c (struct processor): Add arch field.
18202         (all_architectures): Handle above, move above all_cores.
18203         (all_cores): Handle above.
18204         (aarch64_parse_arch): Handle above changes.
18205         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18206         above.  Update comments.
18207         (armv8.1-a): Likewise.
18208         * config/aarch64/aarch64-cores.def: Update according to above.
18209         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18210         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18211         aarch64_arch_driver_info.
18213 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18215         * config/aarch64/aarch64.c (struct processor): Add ident field.
18216         Rename core sched_core.
18217         (all_cores): Handle above changes.
18218         (all_architectures): Likewise.
18219         (aarch64_parse_arch): Likewise.
18220         (aarch64_override_options): Likewise.
18222 2015-08-04  Richard Biener  <rguenther@suse.de>
18224         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18225         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18226         comparisons embedded in [VEC_]COND_EXPRs.
18228 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
18230         * tree-if-conv.c: Fix various typos in comments.
18231         * tree-vect-stmts.c: Likewise.
18233 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18235         PR tree-optimization/67043
18236         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18237         preheader after hoisting invariant in it.
18238         (find_defs): Force recomputation of all luids.
18240 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
18242         * config/rs6000/htm.md (tabort.): Restrict the source operand to
18243         using a base register.
18245 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
18247         * main.c (main): Pass in NULL for toplev's external_timer.
18248         * timevar.c: Include coretypes.h.
18249         (class timer::named_items): New.
18250         (timer::named_items::named_items): New.
18251         (timer::named_items::~named_items): New.
18252         (timer::named_items::push): New.
18253         (timer::named_items::pop): New.
18254         (timer::named_items::print): New.
18255         (timer::timer): Initialize field "m_jit_client_items".
18256         (timer::~timer): New.
18257         (timer::push): Move bulk of implementation to...
18258         (timer::push_internal): ...here.  New function.
18259         (timer::pop): Move bulk of implementation to...
18260         (timer::pop_internal): ...here.  New function.
18261         (timer::push_client_item): New.
18262         (timer::pop_client_item): New.
18263         (timer::print_row): New function, taken from timer::print.
18264         (timer::print): Print "GCC items" header if we also have client
18265         items.  Move row-printing to timer::print_row.  Print any client
18266         items.
18267         (timer::get_topmost_item_name): New method.
18268         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18269         (TV_JIT_CLIENT_CODE): New.
18270         * timevar.h (timer::push_client_item): New declaration.
18271         (timer::pop_client_item): New declaration.
18272         (timer::get_topmost_item_name): New method.
18273         (timer::push_internal): New declaration.
18274         (timer::pop_internal): New declaration.
18275         (timer::print_row): New declaration.
18276         (timer::named_items): New declaration.
18277         (timer::m_jit_client_items): New field.
18278         (timer): Add friend class named_items.
18279         (auto_timevar::auto_timevar): Add timer param.
18280         (auto_timevar::~auto_timevar): Use field "m_timer".
18281         (auto_timevar::m_timer): New field.
18282         * toplev.c (initialize_rtl): Add g_timer as param when
18283         constructing auto_timevar instance.
18284         (toplev::toplev): Add "external_timer" param, and use it to
18285         initialize the "g_timer" global if non-NULL.
18286         (toplev::~toplev): If this created "g_timer", delete it.
18287         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18288         with "external_timer" timer *.
18290 2015-08-03  Alexander Basov <coohpt@gmail.com>
18292         PR middle-end/64744
18293         PR middle-end/48470
18294         PR middle-end/43404
18295         * cfgexpand.c (expand_one_var): Add check if stack is going to
18296         be used in naked function.
18297         * expr.c (expand_expr_addr_expr_1): Remove excess checking
18298         whether expression should not reside in MEM.
18299         * function.c (use_register_for_decl): Do not use registers for
18300         non-register things (volatile, float, BLKMode) in naked functions.
18302 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
18304         PR target/67060
18305         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18306         Adjust splits to match new pattern.
18308 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18310         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18311         (VEC_M): Likewise.
18312         (VEC_N): Likewise.
18313         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18314         point in VSX registers.
18316         * config/rs6000/constraints.md (wb constraint): Document unused
18317         w<x> constraint.
18318         (we constraint): Likewise.
18319         (wo constraint): Likewise.
18320         (wp constraint): New constraint for IEEE 128-bit floating point in
18321         VSX registers.
18322         (wq constraint): Likewise.
18324         * config/rs6000/predicates.md (easy_fp_constant): Add support for
18325         IEEE 128-bit floating point in VSX registers.
18326         (easy_scalar_constant): Likewise.
18328         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18329         constraints (wp, wq) for IEEE 128-bit floating point in VSX
18330         registers.
18331         (rs6000_init_hard_regno_mode_ok): Likewise.
18333         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18334         floating point in VSX registers.
18335         (VSX_L): Likewise.
18336         (VSX_M): Likewise.
18337         (VSX_M2): Likewise.
18338         (VSm): Likewise.
18339         (VSs): Likewise.
18340         (VSr): Likewise.
18341         (VSa): Likewise.
18342         (VSv): Likewise.
18343         (vsx_le_permute_<mode>): Add support to properly swap bytes for
18344         IEEE 128-bit floating point in VSX registers on little endian.
18345         (vsx_le_undo_permute_<mode>): Likewise.
18346         (vsx_le_perm_load_<mode>): Likewise.
18347         (vsx_le_perm_store_<mode>): Likewise.
18348         (splitters for IEEE 128-bit fp moves): Likewise.
18350         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18351         wq constraints.
18353         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18354         floating point in VSX registers.
18355         (VM2): Likewise.
18357         * doc/md.text (Machine Constraints): Document wp and wq
18358         constraints on PowerPC.
18360 2015-08-03  Jeff Law  <law@redhat.com>
18362         PR middle-end/66314
18363         PR gcov-profile/66899
18364         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18365         iterate over the jump threading paths when an element in the
18366         jump threading paths array is eliminated.
18368 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
18370         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18372 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
18374         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18375         is_use_properly_guarded the variable def_preds.  Free its
18376         contents before returning.
18377         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18378         (is_use_properly_guarded): Replace local variable def_preds with
18379         a parameter.  Adjust accordingly.  Only update *def_preds if it's
18380         the empty vector.
18382 2015-08-03  Richard Biener  <rguenther@suse.de>
18384         * genmatch.c (simplify::for_subst_vec): New member.
18385         (binary_ok): New helper for for lowering.
18386         (lower_for): Delay substituting operators into result expressions
18387         if we can merge the results eventually again.
18388         (capture_info::walk_result): Adjust for user_id appearing as
18389         result expression operator.
18390         (expr::gen_transform): Likewise.
18391         (dt_simplify::gen_1): Likewise.
18392         (dt_simplify::gen): Pass not substituted operators to tail
18393         functions or initialize local variable with it.
18394         (decision_tree::gen): Adjust function signature.
18395         * match.pd: Fix tests against global code and add default
18396         cases to switch stmts.
18398 2015-08-03  Richard Biener  <rguenther@suse.de>
18400         * genmatch.c (dt_simplify::gen): Create captures array
18401         with an initializer.
18403 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18405         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18406         the host compiler is affected by placement new aliasing bug.
18407         * configure: Regenerate.
18408         * Makefile.in (ALIASING_FLAGS): New variable.
18409         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18411 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18413         PR target/66731
18414         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18415         (negmulsf3_vfp): Likewise.
18416         (muldf3negdf_vfp): Disable for -frounding-math.
18417         (mulsf3negsf_vfp): Likewise.
18418         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18419         fix MULT cost with -frounding-math.
18421 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18423         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18424         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18425         explicit.  Prefer to add the flag whenever possible.
18426         (noce_process_if_block): Try noce_try_store_flag_constants before
18427         noce_try_cmove.
18429 2015-08-03  Richard Biener  <rguenther@suse.de>
18431         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18432         New hash-map to record equivalent transforms.
18433         (dt_node::analyze): Populate the equivalent transforms hash-map.
18434         (dt_simplify::info): Add reference to hash-map entry.
18435         (dt_simplify::gen): If we have split out a function for the
18436         transform, generate a call to it.
18437         (sinfo_hashmap_traits::hash): New function.
18438         (compare_op): New helper function for ...
18439         (sinfo_hashmap_traits::equal_keys): ... this new function.
18440         (decision_tree::gen): Split out common equivalent transforms
18441         into functions.
18443 2015-08-03  Richard Biener  <rguenther@suse.de>
18445         * gimple-fold.c (fold_gimple_assign): Remove folding of
18446         the comparison in COND_EXPRs.
18448 2015-08-03  Richard Biener  <rguenther@suse.de>
18450         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18451         on the rhs of assignments first simplify the embedded
18452         GENERIC condition.
18454 2015-08-03  Richard Biener  <rguenther@suse.de>
18456         PR tree-optimization/66917
18457         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18458         field.
18459         (DR_VECT_AUX): New macro.
18460         (set_dr_misalignment): Adjust.
18461         (dr_misalignment): Likewise.
18462         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18463         Compute whether the base is at least element aligned.
18464         * tree-vect-stmts.c (ensure_base_align): Adjust.
18465         (vectorizable_store): If the base is not element aligned
18466         preserve alignment of the original access if misalignment is unknown.
18467         (vectorizable_load): Likewise.
18469 2015-08-02  Martin Sebor  <msebor@redhat.com>
18471         * doc/invoke.texi (Wframe-address): Document it.
18472         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18473         Clarify possible effects of calling the functions with non-zero
18474         arguments and mention -Wframe-address.
18475         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18477 2015-08-01  Michael Collison  <michael.collison@linaro.org
18478             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18480         * config/arm/arm.md (*arm_smin_cmp): New pattern.
18481         (*arm_umin_cmp): Likewise.
18483 2015-08-01  Caroline Tice  <cmtice@google.com>
18485         PR 66521
18486         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18487         global variables.
18488         (vtbl_find_mangled_name):  New function.
18489         (vtbl_register_mangled_name):  New function.
18490         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
18491         mangled name in mangled name vectors.
18492         (find_or_create_vtbl_map_node):  Ditto.
18493         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
18494         update recursion_depth on function entry; pass it to every recursive
18495         call; automatically exit if depth > 25 (give up looking at that point).
18496         (verify_bb_vtables):  Initialize recursion_depth and pass it to
18497         var_is_used_for_virtual_call_p.
18498         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18499         global variable decls.
18500         (vtbl_register_mangled_name): New extern function decl.
18502 2015-08-01  Tom de Vries  <tom@codesourcery.com>
18504         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18505         function.
18506         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18507         Declare.
18508         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18509         operation_no_trapping_overflow.  Allow non-overflow operations.
18510         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18511         operations.
18513 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
18515         PR target/67049
18516         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18518 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18520         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18521         Enable for TARGET_32BIT.
18522         (*if_move_neg): Likewise.
18524 2015-07-31  Nick Clifton  <nickc@redhat.com>
18526         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18527         Returns true for __model__.
18528         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18530 2015-07-31  Alan Modra  <amodra@gmail.com>
18532         PR target/66870
18533         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18534         (rs6000_emit_prologue): Set it.
18535         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18537 2015-07-31  Richard Biener  <rguenther@suse.de>
18539         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18540         -> X == (C1 ^ C2) which is already implemented in match.pd.
18541         Remove redundant dispatching to fold_relational_const.
18542         Move unordered self and NaN compares ...
18543         * match.pd: ... as patterns here.  Remove some stray captures
18544         and add a comment.
18546 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
18548         * config/i386/i386.c
18549         (bdesc_special_args): Convert mask type from signed to unsigned for
18550         masked builtins.
18551         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18552         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18553         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18554         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18555         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18556         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18557         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18558         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18559         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18560         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18561         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18562         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18563         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18564         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18565         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18566         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18567         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18568         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18569         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18570         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18571         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18572         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18573         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18574         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18575         * config/i386/i386-builtin-types.def
18576         (V16QI_FTYPE_V16SI): Remove.
18577         (V8DF_FTYPE_V8SI): Ditto.
18578         (V8HI_FTYPE_V8DI): Ditto.
18579         (V8SI_FTYPE_V8DI): Ditto.
18580         (V8SF_FTYPE_V8DF): Ditto.
18581         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18582         (V16HI_FTYPE_V16SI): Ditto.
18583         (V16SF_FTYPE_V16HI): Ditto.
18584         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18585         (V16SF_FTYPE_V16SI): Ditto.
18586         (V4DI_FTYPE_V4DI): Ditto.
18587         (V16SI_FTYPE_V16SF): Ditto.
18588         (V16SF_FTYPE_FLOAT): Ditto.
18589         (V8DF_FTYPE_DOUBLE): Ditto.
18590         (V8DI_FTYPE_INT64): Ditto.
18591         (V8DI_FTYPE_V4DI): Ditto.
18592         (V16QI_FTYPE_V8DI): Ditto.
18593         (UINT_FTYPE_V4SF): Ditto.
18594         (UINT64_FTYPE_V4SF): Ditto.
18595         (UINT_FTYPE_V2DF): Ditto.
18596         (UINT64_FTYPE_V2DF): Ditto.
18597         (V16SI_FTYPE_V16SI): Ditto.
18598         (V8DI_FTYPE_V8DI): Ditto.
18599         (V16SI_FTYPE_PV4SI): Ditto.
18600         (V16SF_FTYPE_PV4SF): Ditto.
18601         (V8DI_FTYPE_PV2DI): Ditto.
18602         (V8DF_FTYPE_PV2DF): Ditto.
18603         (V4DI_FTYPE_PV2DI): Ditto.
18604         (V4DF_FTYPE_PV2DF): Ditto.
18605         (V16SI_FTYPE_PV2SI): Ditto.
18606         (V16SF_FTYPE_PV2SF): Ditto.
18607         (V8DI_FTYPE_PV4DI): Ditto.
18608         (V8DF_FTYPE_PV4DF): Ditto.
18609         (V8SF_FTYPE_FLOAT): Ditto.
18610         (V4SF_FTYPE_FLOAT): Ditto.
18611         (V4DF_FTYPE_DOUBLE): Ditto.
18612         (V8SF_FTYPE_PV4SF): Ditto.
18613         (V8SI_FTYPE_PV4SI): Ditto.
18614         (V4SI_FTYPE_PV2SI): Ditto.
18615         (V8SF_FTYPE_PV2SF): Ditto.
18616         (V8SI_FTYPE_PV2SI): Ditto.
18617         (V16SF_FTYPE_PV8SF): Ditto.
18618         (V16SI_FTYPE_PV8SI): Ditto.
18619         (V8DI_FTYPE_V8SF): Ditto.
18620         (V4DI_FTYPE_V4SF): Ditto.
18621         (V2DI_FTYPE_V4SF): Ditto.
18622         (V64QI_FTYPE_QI): Ditto.
18623         (V32HI_FTYPE_HI): Ditto.
18624         (V8UHI_FTYPE_V8UHI): Ditto.
18625         (V16UHI_FTYPE_V16UHI): Ditto.
18626         (V32UHI_FTYPE_V32UHI): Ditto.
18627         (V2UDI_FTYPE_V2UDI): Ditto.
18628         (V4UDI_FTYPE_V4UDI): Ditto.
18629         (V8UDI_FTYPE_V8UDI): Ditto.
18630         (V4USI_FTYPE_V4USI): Ditto.
18631         (V8USI_FTYPE_V8USI): Ditto.
18632         (V16USI_FTYPE_V16USI): Ditto.
18633         (V2DF_FTYPE_V2DF_UINT64): Ditto.
18634         (V2DI_FTYPE_V2DF_V2DF): Ditto.
18635         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18636         (V8DF_FTYPE_V8DF_V8DI): Ditto.
18637         (V4SF_FTYPE_V4SF_UINT64): Ditto.
18638         (V4SI_FTYPE_V4SF_V4SF): Ditto.
18639         (V16SF_FTYPE_V16SF_V16SI): Ditto.
18640         (V64QI_FTYPE_V32HI_V32HI): Ditto.
18641         (V32HI_FTYPE_V16SI_V16SI): Ditto.
18642         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18643         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18644         (V32HI_FTYPE_V64QI_V64QI): Ditto.
18645         (V32HI_FTYPE_V32HI_V32HI): Ditto.
18646         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18647         (V16SI_FTYPE_V16SI_V4SI): Ditto.
18648         (V16SI_FTYPE_V16SI_V16SI): Ditto.
18649         (V16SI_FTYPE_V32HI_V32HI): Ditto.
18650         (V16SI_FTYPE_V16SI_SI): Ditto.
18651         (V8DI_FTYPE_V8DI_V8DI): Ditto.
18652         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18653         (V8DI_FTYPE_V16SI_V16SI): Ditto.
18654         (V8DI_FTYPE_V8DI_V2DI): Ditto.
18655         (QI_FTYPE_QI): Ditto.
18656         (SI_FTYPE_SI): Ditto.
18657         (DI_FTYPE_DI): Ditto.
18658         (QI_FTYPE_QI_QI): Ditto.
18659         (QI_FTYPE_QI_INT): Ditto.
18660         (HI_FTYPE_HI_INT): Ditto.
18661         (SI_FTYPE_SI_INT): Ditto.
18662         (DI_FTYPE_DI_INT): Ditto.
18663         (HI_FTYPE_V16QI_V16QI): Ditto.
18664         (SI_FTYPE_V32QI_V32QI): Ditto.
18665         (DI_FTYPE_V64QI_V64QI): Ditto.
18666         (QI_FTYPE_V8HI_V8HI): Ditto.
18667         (HI_FTYPE_V16HI_V16HI): Ditto.
18668         (SI_FTYPE_V32HI_V32HI): Ditto.
18669         (QI_FTYPE_V4SI_V4SI): Ditto.
18670         (QI_FTYPE_V8SI_V8SI): Ditto.
18671         (QI_FTYPE_V2DI_V2DI): Ditto.
18672         (QI_FTYPE_V4DI_V4DI): Ditto.
18673         (QI_FTYPE_V8DI_V8DI): Ditto.
18674         (HI_FTYPE_V16SI_V16SI): Ditto.
18675         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18676         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18677         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18678         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18679         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18680         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18681         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18682         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18683         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18684         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18685         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18686         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18687         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18688         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18689         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18690         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18691         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18692         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18693         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18694         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18695         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18696         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18697         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18698         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18699         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18700         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18701         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18702         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18703         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18704         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18705         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18706         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18707         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18708         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18709         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18710         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18711         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18712         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18713         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18714         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18715         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18716         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18717         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18718         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18719         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18720         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18721         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18722         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18723         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18724         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18725         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18726         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18727         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18728         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18729         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18730         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18731         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18732         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18733         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18734         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18735         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18736         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18737         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18738         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18739         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18740         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18741         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18742         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18743         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18744         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18745         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18746         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18747         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18748         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18749         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18750         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18751         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18752         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18753         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18754         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18755         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18756         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18757         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18758         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18759         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18760         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18761         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18762         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18763         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18764         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18765         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18766         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18767         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18768         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18769         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18770         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18771         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18772         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18773         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18774         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18775         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18776         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18777         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18778         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18779         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18780         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18781         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18782         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18783         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18784         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18785         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18786         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18787         (HI_FTYPE_HI): Ditto.
18788         (HI_FTYPE_V16QI): Ditto.
18789         (SI_FTYPE_V32QI): Ditto.
18790         (DI_FTYPE_V64QI): Ditto.
18791         (QI_FTYPE_V8HI): Ditto.
18792         (HI_FTYPE_V16HI): Ditto.
18793         (SI_FTYPE_V32HI): Ditto.
18794         (QI_FTYPE_V4SI): Ditto.
18795         (QI_FTYPE_V8SI): Ditto.
18796         (HI_FTYPE_V16SI): Ditto.
18797         (QI_FTYPE_V2DI): Ditto.
18798         (QI_FTYPE_V4DI): Ditto.
18799         (QI_FTYPE_V8DI): Ditto.
18800         (V16QI_FTYPE_HI): Ditto.
18801         (V32QI_FTYPE_SI): Ditto.
18802         (V64QI_FTYPE_DI): Ditto.
18803         (V8HI_FTYPE_QI): Ditto.
18804         (V16HI_FTYPE_HI): Ditto.
18805         (V32HI_FTYPE_SI): Ditto.
18806         (V4SI_FTYPE_QI): Ditto.
18807         (V4SI_FTYPE_HI): Ditto.
18808         (V8SI_FTYPE_QI): Ditto.
18809         (V8SI_FTYPE_HI): Ditto.
18810         (V2DI_FTYPE_QI): Ditto.
18811         (V4DI_FTYPE_QI): Ditto.
18812         (HI_FTYPE_HI_HI): Ditto.
18813         (SI_FTYPE_SI_SI): Ditto.
18814         (DI_FTYPE_DI_DI): Ditto.
18815         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18816         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18817         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18818         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18819         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18820         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18821         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18822         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18823         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18824         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18825         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18826         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18827         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18828         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18829         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18830         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18831         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18832         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18833         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18834         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18835         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18836         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18837         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18838         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18839         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18840         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18841         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18842         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18843         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18844         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18845         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18846         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18847         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18848         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18849         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18850         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18851         (V16SI_FTYPE_HI): Ditto.
18852         (V8DI_FTYPE_QI): Ditto.
18853         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18854         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18855         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18856         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18857         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18858         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18859         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18860         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18861         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18862         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18863         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18864         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18865         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18866         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18867         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18868         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18869         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18870         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18871         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18872         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18873         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18874         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18875         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18876         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18877         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18878         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18879         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18880         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18881         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18882         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18883         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18884         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18885         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18886         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18887         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18888         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18889         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18890         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18891         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18892         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18893         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18894         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18895         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18896         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18897         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18898         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18899         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18900         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18901         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18902         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18903         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18904         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18905         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18906         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18907         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18908         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18909         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18910         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18911         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18912         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18913         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18914         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18915         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18916         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18917         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18918         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18919         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18920         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18921         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18922         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18923         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18924         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18925         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18926         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18927         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18928         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18929         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18930         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18931         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18932         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18933         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18934         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18935         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18936         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18937         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18938         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18939         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18940         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18941         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18942         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18943         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18944         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18945         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18946         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18947         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18948         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18949         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18950         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18951         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18952         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18953         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18954         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18955         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18956         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18957         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18958         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18959         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18960         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18961         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18962         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18963         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18964         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18965         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18966         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18967         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18968         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18969         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18970         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18971         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18972         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18973         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18974         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18975         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18976         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18977         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18978         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18979         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18980         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18981         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18982         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18983         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18984         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18985         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18986         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18987         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18988         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18989         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18990         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18991         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18992         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18993         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18994         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18995         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18996         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18997         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18998         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18999         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19000         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19001         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19002         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19003         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19004         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19005         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19006         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19007         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19008         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19009         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19010         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19011         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19012         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19013         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19014         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19015         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19016         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19017         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19018         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19019         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19020         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19021         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19022         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19023         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19024         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19025         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19026         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19027         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19028         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19029         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19030         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19031         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19032         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19033         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19034         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19035         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19036         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19037         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19038         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19039         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19040         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19041         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19042         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19043         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19044         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19045         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19046         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19047         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19048         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19049         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19050         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19051         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19052         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19053         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19054         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19055         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19056         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19057         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19058         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19059         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19060         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19061         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19062         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19063         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19064         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19065         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19066         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19067         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19068         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19069         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19070         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19071         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19072         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19073         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19074         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19075         (QI_FTYPE_V8DF_INT_QI): Ditto.
19076         (QI_FTYPE_V4DF_INT_QI): Ditto.
19077         (QI_FTYPE_V2DF_INT_QI): Ditto.
19078         (HI_FTYPE_V16SF_INT_HI): Ditto.
19079         (QI_FTYPE_V8SF_INT_QI): Ditto.
19080         (QI_FTYPE_V4SF_INT_QI): Ditto.
19081         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19083 2015-07-31  Richard Biener  <rguenther@suse.de>
19085         * gimple-fold.c (fold_gimple_assign): Remove folding of
19086         GIMPLE_BINARY_RHS.
19088 2015-07-31  Tom de Vries  <tom@codesourcery.com>
19090         PR tree-optimization/66846
19091         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19092         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19093         (expand_omp_target) [ENABLE_CHECKING]: Same.
19094         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19095         cfun if !LOOPS_NEED_FIXUP.
19096         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
19097         that omp_for already has its own loop struct.
19098         * tree-parloops.c (create_phi_for_local_result)
19099         (create_call_for_reduction): Handle simple latch bb.
19100         (create_parallel_loop): Add simple latch bb to preserve
19101         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
19102         (gen_parallel_loop): Remove call to cancel_loop_tree.
19103         (parallelize_loops): Skip loops that are inner loops of parallelized
19104         loops.
19105         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19106         verify_loop_structure.
19108 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19110         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19111         * config/v850/v850.md (RV_REGNUM): New constants.
19112         * config/v850/v850.c (v850_libcall_value): New functions.
19113         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19114         (TARGET_LIBCALL_VALUE): Define.
19116 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19118         * rtl.h (lowpart_subreg): Move in file.
19119         * loop-iv.c (lowpart_subreg): Move to...
19120         * simplify-rtx.c (lowpart_subreg): ...here.
19121           (simplify_binary_operation_1): Use lowpart_subreg instead of
19122           simplify_gen_subreg.
19123         * expr.c (expand_expr_real_2): Ditto.
19124         * emit-rtl.c (gen_lowpart_common): Ditto.
19125         * combine.c (gen_lowpart_for_combine): Ditto.
19126         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19127           expand_debug_source_expr): Ditto.
19129 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
19131         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19132         (expand_builtin_atomic_clear): Remove support for atomic_clear
19133         pattern.
19135 2015-07-30  Richard Biener  <rguenther@suse.de>
19137         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19138         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19139         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
19140         redundant operand canonicalization.
19142 2015-07-30  David Sherwood  <david.sherwood@arm.com>
19144         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19145         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19146         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19147         * config/arm/arm.c (neon_valid_immediate): Likewise.
19148         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19149         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19150         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19151         (expand_vec_perm_vpshufb2_vpermq): Likewise.
19152         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19153         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19154         * config/i386/sse.md
19155         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19156         (*ssse3_palignr<mode>_perm): Likewise.
19157         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19158         * config/spu/spu.c (arith_immediate_p): Likewise.
19159         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19160         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19162 2015-07-30  Richard Biener  <rguenther@suse.de>
19164         * genmatch.c (decision_tree::gen_gimple): Merge with ...
19165         (decision_tree::gen_generic): ... this into ...
19166         (decision_tree::gen): ... this.
19167         (main): Adjust callers.
19169 2015-07-30  Richard Biener  <rguenther@suse.de>
19171         * genmatch.c (verbose): New global.
19172         (warning_at): Add overload with source_location.
19173         (capture_info::capture_info): Add bool whether generating gimple
19174         or generic.  Add gimple member.
19175         (capture_info::cinfo): Add capture member.
19176         (capture_info::walk_match): Record capture.  Warn on
19177         non-captured leafs.
19178         (capture_info::walk_c_expr): Add more fragments captures cannot
19179         escape through.  Warn on escaped captures.
19180         (dt_simplify::gen_1): Warn on operands we force to have no
19181         side-effects.
19182         (main): Initialize verbose.
19183         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19185 2015-07-30  Richard Biener  <rguenther@suse.de>
19187         PR middle-end/67053
19188         * match.pd: Allow both operands to independently have conversion
19189         when simplifying compares of addresses.
19191 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
19193         PR target/66217
19194         PR target/67045
19195         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19196         around those cases that need one.
19198 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
19200         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19202 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
19204         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19205         New.  Copied from config/i386/gnu-user.h.
19206         (ASM_COMMENT_START): Likewise.
19207         (DBX_REGISTER_NUMBER): Likewise.
19209 2015-07-29  Richard Biener  <rguenther@suse.de>
19211         * gimple-fold.c (fold_gimple_cond): Remove.
19212         (fold_stmt_1): Do not call it.
19214 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
19216         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19217         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19219         * config/aarch64/aarch64-modes.def: Add HFmode.
19221         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19222         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19224         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19225         aarch64_promoted_type): New.
19227         (aarch64_float_const_representable_p): Disable HFmode.
19228         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19229         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19230         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19232         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19233         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19235         * config/aarch64/iterators.md (GPF_F16): New.
19237 2015-07-29  Richard Biener  <rguenther@suse.de>
19239         * match.pd: Merge address comparison patterns and make them
19240         handle some more cases.
19242 2015-07-29  Richard Biener  <rguenther@suse.de>
19244         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19245         (parser::parse_capture): Add bool argument on whether to reject
19246         unknown captures.
19247         (parser::parse_expr): Adjust.
19248         (parser::parse_op): Likewise.
19249         (parser::parse_pattern): Likewise.
19251 2015-07-29  Richard Biener  <rguenther@suse.de>
19253         * gimple-fold.c (has_use_on_stmt): New function.
19254         (replace_stmt_with_simplification): Use it to allow
19255         abnormals originally referenced in the stmt.
19256         (fold_stmt_1): Canonicalize operand order.
19258 2015-07-28  David Sherwood  <david.sherwood@arm.com>
19260         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19261         GET_MODE_INNER unconditionally.
19262         * config/spu/spu.c (arith_immediate_p): Likewise.
19263         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19264         * expmed.c (synth_mult): Remove check for VOIDmode result from
19265         GET_MODE_INNER.
19266         (expand_mult_const): Likewise.
19267         * fold-const.c (fold_binary_loc): Replace call to element_precision
19268         with call to GET_MODE_PRECISION.
19269         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19270         m->name.
19271         (emit_mode_inner): Likewise.
19272         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19273         result check.
19274         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19275         (GET_MODE_UNIT_PRECISION): Likewise.
19276         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19277         * simplify-rtx.c (simplify_immed_subreg): Likewise.
19278         * stor-layout.c (bitwise_type_for_mode): Update assert.
19279         (element_precision): Remove.
19281 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19283         * target-insns.def (reload_load_address): New targetm instruction
19284         pattern.
19285         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19287 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19289         * target-insns.def (atomic_test_and_set): New targetm instruction
19290         pattern.
19291         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19292         HAVE_*/gen_* interface.
19294 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19296         * target-insns.def (can_extend, ptr_extend): New targetm instruction
19297         patterns.
19298         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19299         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19300         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19301         * rtlanal.c (nonzero_bits1): Likewise.
19302         (num_sign_bit_copies1): Likewise.
19304 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19306         * target-insns.def (eh_return): New targetm instruction pattern.
19307         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19308         interface.
19309         * function.c (thread_prologue_and_epilogue_insns): Remove
19310         preprocessor condition.
19312 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19314         * target-insns.def (indirect_jump): New targetm instruction pattern.
19315         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19316         interface.
19318 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19320         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19321         instead of nonimmediate_operand.  Remove C condiition.
19323 2015-07-28  Richard Biener  <rguenther@suse.de>
19325         * match.pd: Add more simplification of address comparisons.
19327 2015-07-28  Richard Biener  <rguenther@suse.de>
19329         * match.pd: Re-order two cases in comparison with max/min
19330         value simplification to make it apply for bools.
19332 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19334         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19335         Handle simple SIGN_EXTEND or ZERO_EXTEND.
19336         (aarch64_rtx_costs): Properly strip extend or extract before
19337         passing down to rtx costs again.
19339 2015-07-28  Nick Clifton  <nickc@redhat.com>
19341         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19342         Optimizes the case where -mes0 is active and a constant symbolic
19343         address is used.
19344         * config/rl78/rl78-protos.h: Prototype the new function.
19345         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19347 2015-07-28  Tom de Vries  <tom@codesourcery.com>
19349         * tree-parloops.c (reduc_stmt_res): New function.
19350         (initialize_reductions, add_field_for_reduction)
19351         (create_phi_for_local_result, create_loads_for_reductions)
19352         (create_stores_for_reduction, build_new_reduction): Handle case that
19353         reduc_stmt is a phi.
19354         (gather_scalar_reductions): Allow double_reduc reductions.
19356 2015-07-28  Richard Biener  <rguenther@suse.de>
19358         * fold-const.c (fold_comparison): Remove equality folding
19359         of decl addresses ...
19360         * match.pd: ... here and merge with existing pattern.
19362 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19364         PR tree-optimization/66828
19365         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19366         from int64_t to uint64_t.
19368 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19370         * opts-common.c (read_cmdline_option): List DriverOnly enum values
19371         as valid only in the error message of the driver, not in the
19372         messages of the language compilers.
19374 2015-07-27  Tom de Vries  <tom@codesourcery.com>
19376         * tree-parloops.c (gather_scalar_reductions): Simplify function
19377         structure.
19379 2015-07-27  Marek Polacek  <polacek@redhat.com>
19381         * ipa-devirt.c (types_same_for_odr): Fix typo.
19383 2015-07-27  Jason Merrill  <jason@redhat.com>
19385         PR debug/66468
19386         * dwarf2out.c (gen_inlined_subroutine_die): Check
19387         cgraph_function_possibly_inlined_p.
19389 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
19391         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19392         Place integer variant first.
19393         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19395 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
19397         PR/63870
19398         * config/arm/arm-builtins.c (enum arm_builtins):
19399         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19400         (ARM_BUILTIN_NEON_BASE): Rename macro to....
19401         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19402         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19403         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19405 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
19407         PR/63870
19408         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19409         Add qualifier_lane_index.
19410         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19411         (arm_getlane_qualifiers): Use qualifier_lane_index.
19412         (arm_lanemac_qualifiers): Rename to...
19413         (arm_mac_n_qualifiers): ...this.
19414         (LANEMAC_QUALIFIERS): Rename to...
19415         (MAC_N_QUALIFIERS): ...this.
19416         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19417         (arm_setlane_qualifiers): Use qualifier_lane_index.
19418         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19419         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19420         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19421         (arm_expand_neon_builtin): Handle qualifier_lane_index.
19423         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19424         * config/arm/arm.c (bounds_check): Likewise, improve error message.
19425         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19426         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19427         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19428         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19429         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19430         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19431         qualifiers to TERNOP_IMM.
19432         (vdup_lane): Change qualifiers to GETLANE.
19433         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19434         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19435         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19436         vqdmlsl_n): Change qualifiers to MAC_N.
19438         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19439         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19440         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19441         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19442         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19443         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19444         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19445         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19446         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19447         Remove call to neon_lane_bounds.
19449 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
19451         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19452         Place integer variant first.
19454 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
19456         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19457         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19458         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19459         for armv6kz targets.
19460         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19461         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19462         (FL_FOR_ARCH6ZK): Remove.
19463         (FL_FOR_ARCH6KZ): New.
19464         (arm_arch6zk): New declaration.
19465         * config/arm/arm-tables.opt: Regenerate.
19466         * config/arm/arm.c (arm_arch6kz): New.
19467         (arm_option_override): Set arm_arch6kz.
19468         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19469         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19470         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19472 2015-07-27  Marek Polacek  <polacek@redhat.com>
19474         PR c++/66555
19475         PR c/54979
19476         * doc/invoke.texi: Document -Wtautological-compare.
19478 2015-07-27  Richard Biener  <rguenther@suse.de>
19480         * genmatch.c (decision_tree::gen_gimple): Split out large
19481         subtrees into separate functions.
19482         (decision_tree::gen_generic): Likewise.
19484 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
19486         * config/alpha/alpha.c: Use SUBREG_P predicate.
19487         * config/alpha/predicates.md: Ditto.
19489 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19491         * config.host (s390*-*-*): Include driver-native.c only when
19492         building with s390* as host *and* target.
19494 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
19496         PR target/66930
19497         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19498         T bit register modified_between_p check.
19500 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19502         * config/i386/i386.c: Use SUBREG_P predicate.
19503         * config/i386/i386.md: Ditto.
19504         * config/i386/sse.md: Ditto.
19505         * config/i386/predicates.md: Ditto.
19507 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19509         PR target/67004
19510         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19511         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19513 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19515         * Makefile.in: Remove use of TREEBROWSER.
19516         * config.in: Regenerated.
19517         * configure: Regenerated.
19518         * configure.ac: Remove definition of TREEBROWSER.
19519         * tree-browser.c: Removed.
19520         * tree-browser.def: Removed.
19522 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19524         * graphite-scop-detection.c: Include gimple-pretty-print.h.
19525         (stmt_simple_for_scop_p): Print when a stmt is not handled in
19526         Graphite.
19527         (scopdet_basic_block_info): Print when a loop or bb cannot be
19528         represented in Graphite.
19530 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19532         PR target/66648
19533         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19534         execution guard when min_size is less than size_needed.
19536 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
19538         * doc/install.texi: Document supported versions of ISL.
19540 2015-07-25  Jeff Law  <law@redhat.com>
19542         Revert:
19543         PR lto/66752
19544         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19545         unable to find X NE 0 in the tables, return X as the simplified
19546         condition.
19547         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19548         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
19549         to VISISTED_BBS.  */
19550         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19551         after removing the control flow statement and unnecessary edges.
19553 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
19555         Revert:
19556         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
19558         PR rtl-optimization/64164
19559         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19560         * tree-ssa-copyrename.c: Removed.
19561         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19562         -ftree-coalesce-vars.
19563         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19564         * common.opt (ftree-copyrename): Ignore.
19565         (ftree-coalesce-inlined-vars): Likewise.
19566         * doc/invoke.texi: Remove the ignored options above.
19567         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19568         * tree-ssa-coalesce.h: ... here.
19569         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19570         headers required by it.
19571         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19572         across variables when flag_tree_coalesce_vars.  Check register
19573         use and promoted modes to allow coalescing.  Moved to
19574         tree-ssa-coalesce.c.
19575         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19576         with its member functions to tree-ssa-coalesce.c.
19577         (var_map_base_init): Likewise.  Renamed to
19578         compute_samebase_partition_bases.
19579         (partition_view_normal): Drop want_bases parameter.
19580         (partition_view_bitmap): Likewise.
19581         * tree-ssa-live.h: Adjust declarations.
19582         * tree-ssa-coalesce.c: Include explow.h.
19583         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19584         default defs at the entry point.
19585         (dump_part_var_map): New.
19586         (compute_optimized_partition_bases): New, called by...
19587         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19588         of compute_samebase_partition_bases.  Adjust.
19589         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19590         * cfgexpand.c (leader_merge): New.
19591         (get_rtl_for_parm_ssa_default_def): New.
19592         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19593         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19594         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19595         redundant MEM attr setting.
19596         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19597         from...
19598         (expand_one_stack_var): ... this.  New wrapper to check and
19599         skip already expanded SSA partitions.
19600         (record_alignment_for_reg_var): New, factored out of...
19601         (expand_one_var): ... this.
19602         (expand_one_ssa_partition): New.
19603         (adjust_one_expanded_partition_var): New.
19604         (expand_one_register_var): Check and skip already expanded SSA
19605         partitions.
19606         (expand_used_vars): Don't create DECLs for anonymous SSA
19607         names.  Expand all SSA partitions, then adjust all SSA names.
19608         (pass::execute): Replace the loops that set
19609         SA.partition_to_pseudo from partition leaders and cleared
19610         DECL_RTL for multi-location variables, and that which used to
19611         rename vars and set attrs, with one that clears DECL_RTL and
19612         checks that PARMs and RESULTs default_defs match DECL_RTL.
19613         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19614         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19615         * explow.c (promote_ssa_mode): New.
19616         * explow.h (promote_ssa_mode): Declare.
19617         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19618         * function.c: Include cfgexpand.h.
19619         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19620         (use_register_for_parm_decl): Wrapper for the above to
19621         special-case the result_ptr.
19622         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19623         (split_complex_args): Take assign_parm_data_all argument.
19624         Pass it to rtl_for_parm.  Set up rtl and context for split
19625         args.
19626         (assign_parms_augmented_arg_list): Adjust.
19627         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19628         multiple locations.  Recognize split complex args.
19629         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19630         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19631         (assign_parm_setup_block): Prefer SSA-assigned location.
19632         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19633         if stack_parm is NULL.
19634         (assign_parm_setup_stack): Prefer SSA-assigned location.
19635         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19636         rtl before testing for pointer bounds.  Special-case result_ptr.
19637         (expand_function_start): Maybe reset DECL_RTL of result.
19638         Prefer SSA-assigned location for result and static chain.
19639         Factor out DECL_RESULT and SET_DECL_RTL.
19640         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19641         anonymous SSA names.  Use promote_ssa_mode.
19642         (get_temp_reg): Likewise.
19643         (remove_ssa_form): Adjust.
19644         * stor-layout.c (layout_decl): Don't set mem attributes of
19645         non-MEMs.
19646         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19647         and get its reg_usage for reg invalidation.
19648         (compute_bb_dataflow): Pass it insn.
19649         (emit_notes_in_bb): Likewise.
19651 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
19653         * config/i386/i386.c (ix86_va_start): Remove
19654         unneeded !TARGET_64BIT check.
19655         (ix86_gimplify_va_arg): Ditto.
19657 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19659         * graphite-sese-to-poly.c (build_poly_scop): Always call
19660         rewrite_commutative_reductions_out_of_ssa.
19662 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19664         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19665         flag_associative_math to FLOAT_TYPE_P.  Honour
19666         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19668 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19670         PR c++/64079
19671         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19672         and "%qD" in warning_at instead of "%q+D" in warning.
19674 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19676         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19677         (ix86_function_abi): Cleanup.
19679 2015-07-24  Michael Darling  <darlingm@gmail.com>
19681         PR other/66259
19682         * acinclude.m4: Reflects renaming of configure.in to configure.ac
19683         * configure: Likewise
19684         * configure.ac: Likewise
19685         * doc/install.texi: Likewise
19686         * doc/tm.texi: Likewise
19687         * doc/tm.texi.in: Likewise
19689 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19691         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19692         manually swapping values.
19693         * cse.c (fold_rtx): Likewise.
19694         * lra-eliminations.c (form_sum): Likewise.
19696 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
19698         PR target/64003
19699         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19700         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19701         (*jcc_1, *jcc_2, jump, simple_return_internal)
19702         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19703         Set length_nobnd attribute instead of length attribute.
19704         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19705         (length_nobnd): Remove attribute.
19706         (length): Remove length_nobnd processing.
19708 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
19710         * gimplify.c (omp_default_clause): New function.  Reorganize flow
19711         for clarity. Broken out of ...
19712         (omp_notice_variable): ... here.
19714 2015-07-24  Gary Funck  <gary@intrepid.com>
19716         PR middle-end/66984
19717         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19718         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19720 2015-07-24  Tom de Vries  <tom@codesourcery.com>
19722         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19723         exit-first loop transform.
19725 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
19727         PR 66714
19728         * tree-cfg.c (struct replace_decls_d): New struct.
19729         (replace_block_vars_by_duplicates_1): New function.
19730         (replace_block_vars_by_duplicates): Use it to replace the decls
19731         in the value exprs by duplicates.
19733 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19735         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19736         -shared, -symbolic, -rdynamic.
19738 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19740         PR target/65711
19741         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19742         -dynamic-linker within %{!static %{!shared, and -rdynamic within
19743         %{!static.
19745 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
19747         PR ipa/66566
19748         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19749         edge summary is available.
19751 2015-07-24  Richard Biener  <rguenther@suse.de>
19753         * genmatch.c (struct dt_node): Add statistic fields.
19754         (dt_node::analyze): New method.
19755         (decision_tree::gen_gimple): Call analyze on the root node
19756         and print statistics to stderr.
19757         (decision_tree::gen_generic): Likewise.
19759 2015-07-24  Richard Biener  <rguenther@suse.de>
19761         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19762         against the highest or lowest possible integer ...
19763         * match.pd: ... as patterns here.
19765 2015-07-24  Richard Biener  <rguenther@suse.de>
19767         * genmatch.c (struct capture_info): Add same_as field.
19768         (capture_info::capture_info): Initialize same_as.
19769         (capture_info::walk_match): Compute same_as.
19770         (capture_info::walk_result): Compute stuff for the leader.
19771         (capture_info::walk_c_expr): Likewise.
19772         (dt_simplify::gen_1): Only look at leaders when deciding
19773         to force no side-effects or emit side-effects of omitted operands.
19775 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19777         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19778         reg note to the GPR -> FPR save instructions.
19780 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19782         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19783         cheaper.
19784         (s390_expand_insv): Don't generate risbg pattern for constant zero
19785         sources.
19786         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19787         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
19788         splitters.
19790 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19792         * config/s390/s390.c (s390_reorg): Clean up handling of processors
19793         with
19794         -mtune=
19795         (s390_issue_rate): Likewise.
19796         (s390_sched_reorder): Likewise.
19797         (s390_sched_variable_issue): Likewise.
19798         (s390_loop_unroll_adjust): Likewise.
19799         (s390_option_override):  Likewise.
19801 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19803         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19804         processor capabilities with -march=native.
19805         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19806         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
19807         (S390_TARGET_BITS_STRING): Macro to simplify specs.
19809 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19811         * config/s390/s390.c (s390_issue_rate): Handle
19812         PROCESSOR_2094_Z9_EC.
19813         (s390_option_override): Likewise.
19814         (s390_adjust_priority): Likewise.
19816 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19818         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19819         when cross compiling.
19821 2015-07-24  Richard Biener  <rguenther@suse.de>
19823         * fold-const.c (maybe_canonicalize_comparison_1): Move
19824         A code CST canonicalization ...
19825         * match.pd: ... to a pattern here.
19827 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
19829         Revert:
19830         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
19831         PR target/63521
19832         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19833         (HONOR_REG_ALLOC_ORDER): Define.
19835 2015-07-24  Richard Biener  <rguenther@suse.de>
19837         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19838         * fold-const.c (fold_comparison): Move parameter does not
19839         alias &local simplification ...
19840         * match.pd: ... as a pattern here.
19842 2015-07-24  Richard Biener  <rguenther@suse.de>
19844         * gimple-fold.c (replace_stmt_with_simplification): Special-case
19845         valueizing call operands.
19846         * gimple-match-head.c (maybe_push_res_to_seq): Take
19847         number of call arguments from ops array.
19848         (do_valueize): New function.
19849         (gimple_simplify): Return true if valueization changed
19850         any operand even if the result didn't simplify further.
19852 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19854         PR middle-end/25530
19855         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19857 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19859         PR middle-end/25529
19860         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19862 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19864         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19865         instruction.
19867 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
19869         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19870         clean up.
19872 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
19874         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19875         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
19876         targets here.
19877         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19878         ms_va_list_type_node initialization.
19880 2015-07-23  Jeff Law  <law@redhat.com>
19882         PR lto/66752
19883         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19884         unable to find X NE 0 in the tables, return X as the simplified
19885         condition.
19886         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19887         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
19888         to VISISTED_BBS.  */
19889         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19890         after removing the control flow statement and unnecessary edges.
19892 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19894         * tree-pass.h (get_current_pass_name): Removed.
19896 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
19898         PR rtl-optimization/64164
19899         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19900         * tree-ssa-copyrename.c: Removed.
19901         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
19902         -ftree-coalesce-vars.
19903         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19904         * common.opt (ftree-copyrename): Ignore.
19905         (ftree-coalesce-inlined-vars): Likewise.
19906         * doc/invoke.texi: Remove the ignored options above.
19907         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19908         * tree-ssa-coalesce.h: ... here.
19909         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19910         headers required by it.
19911         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19912         across variables when flag_tree_coalesce_vars.  Check register
19913         use and promoted modes to allow coalescing.  Moved to
19914         tree-ssa-coalesce.c.
19915         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19916         with its member functions to tree-ssa-coalesce.c.
19917         (var_map_base_init): Likewise.  Renamed to
19918         compute_samebase_partition_bases.
19919         (partition_view_normal): Drop want_bases parameter.
19920         (partition_view_bitmap): Likewise.
19921         * tree-ssa-live.h: Adjust declarations.
19922         * tree-ssa-coalesce.c: Include explow.h.
19923         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19924         default defs at the entry point.
19925         (dump_part_var_map): New.
19926         (compute_optimized_partition_bases): New, called by...
19927         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19928         of compute_samebase_partition_bases.  Adjust.
19929         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19930         * cfgexpand.c (leader_merge): New.
19931         (get_rtl_for_parm_ssa_default_def): New.
19932         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19933         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19934         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
19935         redundant MEM attr setting.
19936         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
19937         from...
19938         (expand_one_stack_var): ... this.  New wrapper to check and
19939         skip already expanded SSA partitions.
19940         (record_alignment_for_reg_var): New, factored out of...
19941         (expand_one_var): ... this.
19942         (expand_one_ssa_partition): New.
19943         (adjust_one_expanded_partition_var): New.
19944         (expand_one_register_var): Check and skip already expanded SSA
19945         partitions.
19946         (expand_used_vars): Don't create DECLs for anonymous SSA
19947         names.  Expand all SSA partitions, then adjust all SSA names.
19948         (pass::execute): Replace the loops that set
19949         SA.partition_to_pseudo from partition leaders and cleared
19950         DECL_RTL for multi-location variables, and that which used to
19951         rename vars and set attrs, with one that clears DECL_RTL and
19952         checks that PARMs and RESULTs default_defs match DECL_RTL.
19953         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19954         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19955         * explow.c (promote_ssa_mode): New.
19956         * explow.h (promote_ssa_mode): Declare.
19957         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19958         * function.c: Include cfgexpand.h.
19959         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19960         (use_register_for_parm_decl): Wrapper for the above to
19961         special-case the result_ptr.
19962         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19963         (split_complex_args): Take assign_parm_data_all argument.
19964         Pass it to rtl_for_parm.  Set up rtl and context for split
19965         args.
19966         (assign_parms_augmented_arg_list): Adjust.
19967         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19968         multiple locations.  Recognize split complex args.
19969         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19970         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
19971         (assign_parm_setup_block): Prefer SSA-assigned location.
19972         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
19973         if stack_parm is NULL.
19974         (assign_parm_setup_stack): Prefer SSA-assigned location.
19975         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
19976         rtl before testing for pointer bounds.  Special-case result_ptr.
19977         (expand_function_start): Maybe reset DECL_RTL of result.
19978         Prefer SSA-assigned location for result and static chain.
19979         Factor out DECL_RESULT and SET_DECL_RTL.
19980         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19981         anonymous SSA names.  Use promote_ssa_mode.
19982         (get_temp_reg): Likewise.
19983         (remove_ssa_form): Adjust.
19984         * stor-layout.c (layout_decl): Don't set mem attributes of
19985         non-MEMs.
19986         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19987         and get its reg_usage for reg invalidation.
19988         (compute_bb_dataflow): Pass it insn.
19989         (emit_notes_in_bb): Likewise.
19991 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
19993         PR target/66217
19994         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19995         prototype.
19996         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19997         (rs6000_emit_2insn_and): Handle dot forms.
19998         * config/rs6000/rs6000.md (and<mode>3): Adjust.
19999         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
20000         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20002 2015-07-23  Richard Biener  <rguenther@suse.de>
20004         * generic-match-head.c: Include cgraph.h.
20005         * gimple-match-head.c: Likewise.
20006         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20007         SSA names.
20008         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20009         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
20010         pattern.
20012 2015-07-23  Richard Biener  <rguenther@suse.de>
20014         * gimple-fold.c (fold_gimple_cond): Do not require folding
20015         results to pass valid_gimple_rhs_p.
20016         * tree-cfg.h (fold_cond_expr_cond): Remove.
20017         * tree-cfg.c (fold_cond_expr_cond): Likewise.
20018         (make_edges): Do not call it.
20019         * tree-inline.c (tree_function_versioning): Likewise.
20021 2015-07-23  Tom de Vries  <tom@codesourcery.com>
20023         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20024         vect_force_simple_reduction.
20025         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20026         (vect_is_simple_reduction_1): Add and handle
20027         need_wrapping_integral_overflow parameter.
20028         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20029         need_wrapping_integral_overflow parameter.
20030         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20031         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20032         decl.
20034 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
20036         PR tree-optimization/66926,66951
20037         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20038         INNER_LOOP and fix up condition for renaming virtual operands.
20040 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20042         * combine.c (try_combine): Use std::swap instead of manually
20043         swapping.
20045 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
20047         * config/mips/i6400.md: New file.
20048         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20049         (mips64r6): Likewise.
20050         (i6400): Define.
20051         * config/mips/mips-tables.opt: Regenerate.
20052         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20053         (mips_issue_rate): Add support for i6400.
20054         (mips_multipass_dfa_lookahead): Likewise.
20055         * config/mips/mips.h (TUNE_I6400): Define.
20056         * config/mips/mips.md: Include i6400.md.
20057         (processor): Add i6400.
20058         * doc/invoke.texi (-march=@var{arch}): Add i6400.
20060 2015-07-23  Richard Biener  <rguenther@suse.de>
20062         PR middle-end/66916
20063         * match.pd: Guard widen and sign-change comparison simplification
20064         with single_use.
20066 2015-07-23  Richard Biener  <rguenther@suse.de>
20068         PR tree-optimization/66945
20069         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20070         ::before_dom_children): Force the propagators idea of
20071         non-executable edges to materialize, not what the folder
20072         chooses.
20074 2015-07-23  Richard Biener  <rguenther@suse.de>
20076         * gimple.h (gimple_cond_make_false): Use 0 != 0.
20077         (gimple_cond_make_true): Use 1 != 0.
20079 2015-07-22  DJ Delorie  <dj@redhat.com>
20081         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20082         slashes.
20084         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20085         (ashrhi3): Likewise.
20086         (lshrhi3): Likewise.
20087         (movhi): Take advantage of zero-extend to load small constants.
20088         (movpsi): Likewise.
20089         (and<mode>3): Likewise.
20090         (zero_extendqihi2): Likewise.
20091         (zero_extendqisi2): New.
20092         * config/msp430/constraints.md (N,O): New.
20093         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20095 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
20097         PR target/66954
20098         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20099         to enum feature_priority and feature_list.
20100         (fold_builtin_cpu): Add F_AES to enum processor_features
20101         and isa_names_table.
20103 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
20105         PR driver/66737
20106         * config/i386/linux-common.h (MPX_SPEC): Use linker option
20107         for 64bit target only.
20109 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20111         * config/nvptx/nvptx.c: Expand some comments.
20113 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
20115         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20116         (cortex_a53_advsimd): ...This.
20118 2015-07-22  Richard Biener  <rguenther@suse.de>
20120         * genmatch.c (expr::gen_transform): Clarify error message
20121         and display location.
20123 2015-07-22  Richard Biener  <rguenther@suse.de>
20125         * genmatch.c (struct operand): Add location member.
20126         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20127         constructors.
20128         (struct simplify): Remove match_location and result_location
20129         members.
20130         (elsehwere): Adjust.
20132 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
20134         * config/mips/m5100.md: New file.
20135         * config/mips/mips-cpus.def (m5100, m5101): Define.
20136         * config/mips/mips-tables.opt: Regenerate.
20137         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20138         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20139         -march=m5101 to -mips32r5.
20140         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20141         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20142         !-msoft-float.
20143         * config/mips/mips.md: Include m5100.md.
20144         (processor): Add m5100.
20145         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20147 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
20149         * config/mips/mips-cpus.def (interaptiv): Define.
20150         * config/mips/mips-tables.opt: Regenerate.
20151         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20152         -mips32r2.
20153         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20154         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20156 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20158         PR target/63521
20159         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20160         (HONOR_REG_ALLOC_ORDER): Define.
20162 2015-07-22  Richard Biener  <rguenther@suse.de>
20164         PR tree-optimization/66952
20165         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20166         blocks we end up executing unconditionally reset all SSA
20167         info such as range and alignment.
20168         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20169         * tree-ssanames.c (reset_flow_sensitive_info): New function.
20171 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20173         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20174         typo in attribute.
20176 2015-07-22  Richard Biener  <rguenther@suse.de>
20178         * genmatch.c (parser::parse_result): Properly handle
20179         match with result operands and conditions.
20181 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20183         PR target/63870
20184         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20185         Add qualifier_struct_load_store_lane_index.
20186         (aarch64_types_loadstruct_lane_qualifiers): Use
20187         qualifier_struct_load_store_lane_index for lane index argument for
20188         last argument.
20189         (aarch64_types_storestruct_lane_qualifiers): Ditto.
20190         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20191         (aarch64_simd_expand_args): Add new argument describing mode of
20192         builtin. Check lane bounds for arguments with
20193         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20194         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20195         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20196         (aarch64_simd_expand_builtin): Handle arguments with
20197         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20198         aarch64_simd_expand_args.
20199         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20200         vst[234]_lane with BUILTIN_VALLDIF.
20201         * config/aarch64/aarch64-simd.md:
20202         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20203         endianness reversal on lane index.
20204         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20205         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20206         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20207         (vec_store_lanesci_lane<mode>): Ditto.
20208         (vec_store_lanesxi_lane<mode>): Ditto.
20209         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20210         reversal of lane index.
20211         (aarch64_ld3_lane<mode>): Ditto.
20212         (aarch64_ld4_lane<mode>): Ditto.
20213         (aarch64_st2_lane<mode>): Ditto.
20214         (aarch64_st3_lane<mode>): Ditto.
20215         (aarch64_st4_lane<mode>): Ditto.
20216         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20217         to qmode. Add new mode parameter. Update uses.
20218         (__LD3_LANE_FUNC): Ditto.
20219         (__LD4_LANE_FUNC): Ditto.
20220         (__ST2_LANE_FUNC): Ditto.
20221         (__ST3_LANE_FUNC): Ditto.
20222         (__ST4_LANE_FUNC): Ditto.
20224 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
20226         * doc/invoke.texi (Language Independent Options): Rename node to
20227         Diagnostic Message Formatting Options.
20229 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
20231         PR ipa/66424.
20232         * lra-remat.c (operand_to_remat): Prevent using insns with input
20233         subregs processed separately by IRA.
20235 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
20237         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20238         straight loops.
20239         (single_imm_use): Check for iterator node.
20240         (num_imm_uses): Likewise.
20241         * tree-ssa-operands.c (has_zero_uses_1): Delete.
20242         (single_imm_use_1): Check for iterator node.
20244 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
20245             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20247         * configure.ac: Add check for new options in isl-0.15.
20248         * config.in, configure: Rebuilt.
20249         * graphite-blocking.c: Include <isl/constraint.h>
20250         * graphite-interchange.c,  graphite-poly.c: Likewise.
20251         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20252         * graphite.c: Likewise.
20253         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20254         <isl/union_set.h>.
20255         * graphite-dependences.c: Include <isl/constraint.h>.
20256         (max_number_of_out_dimensions): Returns isl_stat.
20257         (extend_schedule_1): Likewise
20258         (extend_schedule): Corresponding changes.
20259         * graphite-optimize-isl.c: Include <isl/constraint.h> and
20260         <isl/union_set.h>.
20261         (getSingleMap): Change return type of isl_stat.
20262         (optimize_isl): Conditionally use
20263         isl_options_set_schedule_serialize_sccs.
20264         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20265         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20267 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
20269         PR target/66956
20270         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20271         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20273 2015-07-21  Richard Biener  <rguenther@suse.de>
20275         PR tree-optimization/66948
20276         * genmatch.c (capture_info::walk_match): Also recurse to
20277         captures.  Properly compute expr state from captures of
20278         captures.
20279         * match.pd: Add single-use guards to
20280         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20282 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
20284         * config/nvptx/mkoffload.c (process): Add static destructor call.
20286 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20288         PR middle-end/66915
20289         * match.pd (A - B -> A + (-B)): Don't allow folding
20290         when type if a fixed-point type.
20292 2015-07-20  DJ Delorie  <dj@redhat.com>
20294         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20295         (iorqi3_real): Likewise for set1.
20297 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
20299         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20300         for !TARGET_64BIT.
20302 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
20304         * graphite-isl-ast-to-gimple.c:
20305         Refactor so that each function can access 'region'. This will help
20306         maintain a parameter rename_map within a region.
20308 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20310         * config/rs6000/rs6000.md (*lt0_disi): New.
20312 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20314         PR target/66217
20315         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
20316         "available letters" comment.
20317         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20318         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20319         and_2rld_operand):  Delete.
20320         (and_operand): Adjust.
20321         (rotate_mask_operator): New.
20322         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20323         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20324         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20325         extract_ME): Delete.
20326         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20327         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20328         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20329         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20330         rs6000_emit_2insn_and): New.
20331         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20332         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20333         includes_rldic_lshift_p, includes_rldicr_lshift_p,
20334         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20335         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20336         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20337         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20338         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20339         rs6000_emit_2insn_and): New.
20340         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20341         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20342         handling.
20343         <NOT>: Don't fall through to next case.
20344         <AND>: Handle the various rotate-and-mask cases directly.
20345         <IOR>: Always cost as one insn.
20346         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20347         (and<mode>3): Adjust expander for the new patterns.
20348         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20349         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20350         (*and<mode>3_imm_dot_shifted): New.
20351         (*and<mode>3_mask): Delete, rewrite as ...
20352         (and<mode>3_mask): ... New.
20353         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20354         (andsi3_internal0_nomc): Delete.
20355         (*andsi3_internal6): Delete.
20356         (*and<mode>3_2insn): New.
20357         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20358         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20359         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20360         *insvdi_internal3): Delete.
20361         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20362         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20363         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20364         *ior<mode>_mask): New.
20365         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20366         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20367         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20368         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20369         Delete.
20370         (ashr<mode>3): Delete expander.
20371         (*ashr<mode>3): Rename to ...
20372         (ashr<mode>3): ... This.
20373         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20374         (*rotldi3_internal4, *rotldi3_internal5 and split,
20375         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20376         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20377         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20378         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20379         (splitter for loading a mask): Adjust.
20380         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20382 2015-07-20  Marek Polacek  <polacek@redhat.com>
20384         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20385         output_add_clobbers, output_added_clobbers_hard_reg_p,
20386         gen_rtx_scratch): Remove declarations.
20388 2015-07-20  Marek Polacek  <polacek@redhat.com>
20390         PR c++/55095
20391         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20393 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20395         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20396         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20398 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20400         * combine.c (combine_simplify_rtx): Move simplification step
20401         before various transformations/substitutions.
20403 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
20405         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20406         (struct int_traits): Likewise.
20408 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20410         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20411         function to vmsdbgout_function_decl.
20413 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
20415         PR target/66922
20416         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20417         from misaligned positions.
20418         (ix86_expand_pinsr): Reject insertions to misaligned positions.
20420 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
20422         PR middle-end/46851
20423         PR middle-end/60340
20424         * Makefile.in: Removed omega.o.
20425         * common.opt: Document flag fcheck-data-deps as deprecated.
20426         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20427         its associated params: omega-max-vars, omega-max-geqs,
20428         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20429         omega-max-keys, omega-eliminate-redundant-constraints.
20430         * doc/loop.texi: Remove all the section on Omega.
20431         * graphite-blocking.c: Include missing params.h: it used to be
20432         included through tree-data-ref.h and omega.h.
20433         * graphite-isl-ast-to-gimple.c: Same.
20434         * graphite-optimize-isl.c: Same.
20435         * graphite-sese-to-poly.c: Same.
20436         * graphite.c: Same.
20437         * omega.c: Remove.
20438         * omega.h: Remove.
20439         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20440         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20441         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20442         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20443         * passes.def: Remove pass_check_data_deps.
20444         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20445         (dump_conflict_function): Same.
20446         (dump_subscript): Same.
20447         (print_direction_vector): Same.
20448         (print_dir_vectors): Same.
20449         (print_lambda_vector): Same.
20450         (print_dist_vectors): Same.
20451         (dump_data_dependence_relation): Same.
20452         (dump_data_dependence_relations): Same.
20453         (dump_dist_dir_vectors): Same.
20454         (dump_ddrs): Same.
20455         (init_omega_eq_with_af): Removed.
20456         (omega_extract_distance_vectors): Removed.
20457         (omega_setup_subscript): Removed.
20458         (init_omega_for_ddr_1): Removed.
20459         (init_omega_for_ddr): Removed.
20460         (ddr_consistent_p): Removed.
20461         (compute_affine_dependence): Do not use omega to check data
20462         dependences.
20463         (compute_data_dependences_for_bb): Removed.
20464         (analyze_all_data_dependences): Removed.
20465         (tree_check_data_deps): Removed.
20466         * tree-data-ref.h: Do not include omega.h.
20467         (compute_data_dependences_for_bb): Removed.
20468         (tree_check_data_deps): Removed.
20469         * tree-ssa-loop.c (pass_check_data_deps): Removed.
20470         (make_pass_check_data_deps): Removed.
20471         * tree-ssa-phiopt.c: Include params.h.
20472         * tree-vect-data-refs.c: Same.
20473         * tree-vect-slp.c: Same.
20475 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
20477         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20478         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
20479         (mem->fpreg splitters): Ditto.
20480         (general_operand->nonimmediate_operand splitter): Use explicit modes.
20481         Disable DFmode for TARGET_64BIT.
20483 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
20485         PR target/66906
20486         * config/i386/i386.c (ix86_expand_prologue): Replicate static
20487         chain on the stack.
20489 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
20491         * config/nvptx/mkoffload.c (process): Constify host data.
20492         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20493         Constify host data.
20494         (generate_host_descr_file): Likewise.
20496 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
20497             Sebastian Pop  <s.pop@samsung.com>
20499         PR middle-end/61929
20500         * graphite-dependences.c (add_pdr_constraints): Renamed
20501         pdr->extent to pdr->subscript_sizes.
20502         * graphite-interchange.c (build_linearized_memory_access): Add
20503         back all gcc_assert's that the "isl_int to isl_val conversion"
20504         patch has removed.  Refactored.
20505         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20506         * graphite-poly.c (new_poly_dr): Same.
20507         (free_poly_dr): Same.
20508         * graphite-poly.h (struct poly_dr): Same.
20509         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20510         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20511         * graphite-scop-detection.h: Fix space.
20512         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20513         back all gcc_assert's removed by a previous patch.
20514         (wrap): Remove the_isl_ctx global variable that the same patch has
20515         added.
20516         (build_loop_iteration_domains): Same.
20517         (add_param_constraints): Same.
20518         (pdr_add_data_dimensions): Same.  Refactored.
20519         (build_poly_dr): Renamed extent to subscript_sizes.
20521 2015-07-17  Marek Polacek  <polacek@redhat.com>
20523         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20524         * match.pd: ... here.
20526 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
20528         * config/nvptx/mkoffload.c (process): Constify target data.
20529         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20530         Constify target data.
20531         (generate_target_offloadend_file): Likewise.
20533 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
20535         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20536         to allow renaming of PHI arguments on edges incoming from outer
20537         loop header, add corresponding check before start PHI iterator.
20538         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20539         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20540         with true force_vectorize.  Set-up dominator for outer loop too.
20541         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20542         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20543         was marked with force_vectorize and has restricted cfg.
20544         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20545         inner loop.
20546         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20547         do peeling for outer loops.
20549 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
20550             Matthias Klose  <doko@ubuntu.com>
20552         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20553         build-sysroot, sysroot from the `Miscenalleous configure options' to
20554         the `Directories' section and strip trailing `/' from with_sysroot.
20555         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20556         * configure: Regenerated.
20558 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
20560         PR target/66824
20561         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20562         (TARGET_HARD_DF_REGS): Ditto.
20563         (TARGET_HARD_XF_REGS): Ditto.
20564         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20565         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20566         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20567         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20568         (*movsf_internal): Add alternatives 16 and 17. Enable
20569         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20571 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
20573         PR rtl-optimization/66891
20574         * calls.c (expand_call): Wrap precompute_register_parameters with
20575         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20577 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
20579         * config/nvptx/mkoffload.c (process): Constify mapping variables.
20580         Define target data struct and initialize it.
20582 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
20584         PR rtl-optimization/66626
20585         * ira.h (emit-rtl.h): Include.
20586         (non_spilled_static_chain_regno_p): New.
20587         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20588         unless it is non spilled static chain pseudo.
20589         (assign_hard_rego): Spill memory profitable allocno unless it is
20590         non spilled static chain pseudo.
20591         (allocno_spill_priority_compare): Put non spilled static chain
20592         pseudo at the end of sorted array.
20593         (improve_allocation): Do nothing if we have static chain and
20594         non-local goto.
20595         (allocno__priority_compare_func): Put non spilled static chain
20596         pseudo at the beginning of sorted array.
20597         (move_spill_restore): Ignore non spilled static chain pseudo.
20598         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20599         to non spilled static chain pseudo.
20600         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20601         pseudo at the beginning of sorted array.
20602         (spill_for): Spill non spilled static chain pseudo last.
20603         * lra-constraints.c (lra_constraints): Remove static chain pseudo
20604         check for equivalence.
20606 2015-07-16  Martin Liska  <mliska@suse.cz>
20608         PR ipa/66896.
20609         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20610         dst_ctx if it does not exist.
20612 2015-07-16  Martin Liska  <mliska@suse.cz>
20614         * hash-set.h (remove): New function.
20615         (iterator): New iteration class for hash_set.
20617 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20619         * genattrtab.c (make_canonical): Add a file_location parameter.
20620         Use fatal_at rather than fatal.
20621         (get_attr_value): Likewise.  Update call to make_canonical.
20622         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20623         (make_internal_attr): Update calls accordingly.
20625 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20627         * read-md.h (message_with_line, error_with_line): Delete.
20628         * read-md.c (message_with_line, error_with_line): Delete.
20629         * gensupport.h: Include read-md.h.
20630         (md_rtx_info): New structure.
20631         (read_md_rtx): Use it.  Return a bool success value.
20632         * gensupport.c (read_md_rtx): Likewise.
20633         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20634         (main): Update after interface changes.
20635         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20636         (main): Update after interface changes.
20637         * genattrtab.c (insn_code_number): Delete.
20638         (optimize_attrs): Add a max_insn_code parameter and use it instead
20639         of insn_code_number.
20640         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20641         Use *_at rather than *_with_line functions.
20642         (gen_insn): Likewise.
20643         (gen_delay): Likewise.
20644         (gen_insn_reserv): Likewise.
20645         (gen_bypass): Take an md_rtx_info rather than an rtx.
20646         (main): Update after interface changes.  Use a local max_insn_code
20647         variable instead of insn_code_number.
20648         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20649         an rtx.  Use fatal_at rather than fatal.
20650         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20651         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20652         (gen_absence_set, gen_final_absence_set, gen_automaton)
20653         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20654         (main): Update after interface changes.
20655         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20656         and code number.
20657         (main): Update after interface changes.
20658         * genconditions.c (main): Use new read_md_rtx interface.
20659         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20660         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20661         (main): Update after interface changes.
20662         * genemit.c (insn_code_number, insn_index_number): Delete.
20663         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20664         Use fatal_at rather than fatal.
20665         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
20666         rather than fatal.
20667         (gen_split): Likewise.
20668         (main): Update after interface changes.
20669         * genextract.c (line_no): Delete.
20670         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20671         Update call to walk_rtx.
20672         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
20673         rather than message_with_line.
20674         (walk_rtx): Add an md_rtx_info argument.  Update call to
20675         VEC_safe_set_locstr.
20676         (main): Update after interface changes.
20677         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20678         and lineno.  Use error_at rather than separate message_with_line
20679         calls and have_error assignments.
20680         (main): Update after interface changes.
20681         * genmddump.c (main): Use new read_md_rtx interface.
20682         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20683         (main): Update after interface changes.
20684         * genoutput.c (next_code_number): Delete.
20685         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20686         (gen_peephole, gen_expand, gen_split): Likewise.
20687         (note_constraint): Likewise.  Use *_at rather than *_with_line
20688         functions.
20689         (main): Update after interface changes.
20690         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20691         rtx and lineno.
20692         (main): Update after interface changes.
20693         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20694         than an rtx and lineno.
20695         (process_define_constraint): Likewise.
20696         (process_define_register_constraint): Likewise.
20697         (main): Update after interface changes.
20698         * genrecog.c (next_insn_code, pattern_lineno): Delete.
20699         (validate_pattern): Replace top-level rtx with an md_rtx_info.
20700         Use *_at rather than *_with_line functions.
20701         (match_pattern_2): Likewise.
20702         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20703         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20704         Use *_at rather than *_with_line functions.
20705         * gentarget-def.c (add_insn): New function.
20706         (main): Use it.  Use new read_md_rtx interface.
20708 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20710         * gensupport.h (compute_test_codes): Take a file_location rather
20711         than a line number.
20712         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
20713         rather than *_with_line functions.
20714         (process_define_predicate): Update call to compute_test_codes.
20715         * genpreds.c (validate_exp): Take a file_location rather than a
20716         line number.  Use *_at functions rather than *_with_line functions.
20717         (process_define_predicate): Update call to validate_exp.
20718         (constraint_data): Replace lineno field with a file_location.
20719         (add_constraint): Take a file_location rather than a line number.
20720         Use *_at functions rather than *_with_line functions.  Fix error
20721         message for address constraints.  Update after changes to
20722         validate_exp, constraint_data and compute_test_codes.
20723         (process_define_constraint): Update accordingly.
20724         (process_define_register_constraint): Likewise.
20726 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20728         * genoutput.c (data): Use a file_location to record the source
20729         position.
20730         (nothing): Delete.
20731         (idata, idata_end): Remove initialization.
20732         (constraint_data): Replace lineno with a file_location.
20733         (output_insn_data): Update after changes to data.
20734         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20735         (scan_operands): Likewise, using *_at rather than *_with_line
20736         functions.
20737         (process_template): Likewise.
20738         (validate_insn_alternatives): Likewise.
20739         (validate_insn_operands): Likewise.
20740         (validate_optab_operands): Likewise.
20741         (init_insn_for_nothing): Initialize idata and idata_end.
20742         (note_constraint): Update after changes to constraint_data,
20743         using at rather than with_line functions.
20744         (mdep_constraint_len): Take a file_location rather than a
20745         line number.  Use at rather than with_line functions.
20747 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20749         * read-md.h (fatal_at): Declare.
20750         * read-md.c (fatal_at): New function.
20751         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20752         to record the source position.
20753         (check_attr_test): Take a file_location instead of a line number.
20754         Use fatal_at instead of fatal.
20755         (check_attr_value): Update after above changes, using "at"
20756         rather than "with_line" reporting functions.
20757         (convert_set_attr_alternative): Likewise.
20758         (gen_attr): Likewise.
20759         (check_defs): Likewise.  Don't assign to read_md_filename.
20760         (gen_insn): Update initialization after above changes.
20761         (gen_delay): Likewise.
20762         (write_insn_cases): Print the filename for a define_peephole.
20763         (gen_insn_reserv): Take a line number as argument and update
20764         the call to check_attr_test.
20765         (main): Pass a line number to gen_insn_reserv.
20767 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20769         * read-md.h (file_location): New structure.
20770         (directive_handler_t): Take a file_location rather than a line number.
20771         (message_at, error_at): Declare.
20772         (read_skip_construct): Delete.
20773         * read-md.c (message_with_line_1): Replace with...
20774         (message_at_1): ...this new function.
20775         (message_at, error_at): New functions.
20776         (message_with_line, error_with_line): Update to use message_at_1.
20777         (handle_enum): Take a file_location rather than a line number
20778         and use error_at for error reporting.
20779         (handle_include): Likewise.
20780         (read_skip_construct): Likewise.  Make static.
20781         (handle_file): Update after above changes.  Pass a file_location
20782         rather than a line number to handle_directive.
20783         * gensupport.c (queue_elem): Replace separate filename and lineno
20784         with a file_location.
20785         (queue_pattern): Replace filename and lineno arguments with a
20786         file_location.  Update after change to queue_elem.
20787         (process_define_predicate): Replace lineno argument with a
20788         file_location and use error_at for error reporting.  Update
20789         after above changes.
20790         (process_rtx): Likewise.
20791         (subst_pattern_match): Likewise.
20792         (get_alternatives_number): Likewise.
20793         (alter_predicate_for_insn): Likewise.
20794         (rtx_handle_directive): Likewise.
20795         (is_predicable): Update after above changes, using error_at rather
20796         than error_with_line.
20797         (has_subst_attribute): Likewise.
20798         (identify_predicable_attribute): Likewise.
20799         (alter_attrs_for_subst_insn): Likewise.
20800         (process_one_cond_exec): Likewise.
20801         (process_substs_on_one_elem): Likewise.
20802         (process_define_subst): Likewise.
20803         (check_define_attr_duplicates): Likewise.
20804         (read_md_rtx): Update after change to queue_elem.
20806 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20808         * genoutput.c (next_index_number): Delete.
20809         (data): Remove index_number.
20810         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20811         (main): Remove manipulation of next_index_number.
20813 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
20815         * genattrtab.c (check_attr_value): Remove handling of null attrs.
20816         (make_canonical): Likewise.
20818 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
20820         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20821         instead of adjust_address_nv.
20822         (restore_stack_nonlocal): Likewise.
20823         (nonlocal_goto): Likewise.
20825 2015-07-16  Tom de Vries  <tom@codesourcery.com>
20827         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20828         not have a corresponding loop header phi.
20830 2015-07-16  Tom de Vries  <tom@codesourcery.com>
20832         * tree-parloops.c (create_loads_for_reductions): Handle case that
20833         reduction is unused.
20835 2015-07-16  Richard Biener  <rguenther@suse.de>
20837         PR tree-optimization/66894
20838         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20839         about deriving NE_EXPR from truncated values.
20841 2015-07-16  Martin Liska  <mliska@suse.cz>
20843         * alloc-pool.h
20844         (object_allocator): Add new class.
20845         (pool_allocator::initialize): Use the underlying class.
20846         (pool_allocator::allocate): Likewise.
20847         (pool_allocator::remove): Likewise.
20848         (operator new): A new generic allocator.
20849         * asan.c (struct asan_mem_ref): Remove unused members.
20850         (asan_mem_ref_new): Replace new operator with
20851         object_allocator::allocate.
20852         (free_mem_ref_resources): Change deallocation.
20853         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20854         with object_allocator.
20855         * config/sh/sh.c (add_constant): Replace new operator with
20856         object_allocator::allocate.
20857         (sh_reorg): Change call to a release method.
20858         * cselib.c (struct elt_list): Remove unused members.
20859         (new_elt_list): Replace new operator with
20860         object_allocator::allocate.
20861         (new_elt_loc_list): Likewise.
20862         (new_cselib_val): Likewise.
20863         (unchain_one_elt_list): Change delete operator with remove method.
20864         (unchain_one_elt_loc_list): Likewise.
20865         (unchain_one_value): Likewise.
20866         (cselib_finish): Release newly added static allocators.
20867         * cselib.h (struct cselib_val): Remove unused members.
20868         (struct elt_loc_list): Likewise.
20869         * df-problems.c (df_chain_alloc): Replace pool_allocator with
20870         object_allocator.
20871         * df-scan.c (struct df_scan_problem_data): Likewise.
20872         (df_scan_alloc): Likewise.
20873         * df.h (struct dataflow): Likewise.
20874         * dse.c (struct read_info_type): Likewise.
20875         (struct insn_info_type): Likewise.
20876         (struct dse_bb_info_type): Likewise.
20877         (struct group_info): Likewise.
20878         (struct deferred_change): Likewise.
20879         (get_group_info): Likewise.
20880         (delete_dead_store_insn): Likewise.
20881         (free_read_records): Likewise.
20882         (replace_read): Likewise.
20883         (check_mem_read_rtx): Likewise.
20884         (scan_insn): Likewise.
20885         (dse_step1): Likewise.
20886         (dse_step7): Likewise.
20887         * et-forest.c (struct et_occ): Remove unused members.
20888         (et_new_occ): Use allocate instead of new operator.
20889         (et_new_tree): Likewise.
20890         (et_free_tree): Call release method explicitly.
20891         (et_free_tree_force): Likewise.
20892         (et_free_pools): Likewise.
20893         (et_split): Use remove instead of delete operator.
20894         * et-forest.h (struct et_node): Remove unused members.
20895         * ipa-cp.c: Change pool_allocator to object_allocator.
20896         * ipa-inline-analysis.c: Likewise.
20897         * ipa-profile.c: Likewise.
20898         * ipa-prop.c: Likewise.
20899         * ipa-prop.h: Likewise.
20900         * ira-build.c (initiate_cost_vectors): Cast return value.
20901         (ira_allocate_cost_vector): Likewise.
20902         * ira-color.c (struct update_cost_record): Remove unused members.
20903         * lra-int.h (struct lra_live_range): Likewise.
20904         (struct lra_copy): Likewise.
20905         (struct lra_insn_reg): Likewise.
20906         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20907         * lra.c (new_insn_reg): Replace new operator with allocate method.
20908         (free_insn_regs): Same for operator delete.
20909         (finish_insn_regs): Release new static allocator.
20910         (finish_insn_recog_data): Likewise.
20911         (lra_free_copies): Replace delete operator with remove method.
20912         (lra_create_copy): Replace operator new with allocate method.
20913         (invalidate_insn_data_regno_info): Same for remove method.
20914         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20915         (free_debug_insn_changes): Replace delete operator with remove method.
20916         (replace_oldest_value_reg): Replace operator new with allocate method.
20917         (pass_cprop_hardreg::execute): Release new static variable.
20918         * sched-deps.c (sched_deps_init): Change pool_allocator to
20919         object_allocator.
20920         * sel-sched-ir.c: Likewise.
20921         * sel-sched-ir.h: Likewise.
20922         * stmt.c (expand_case): Likewise.
20923         (expand_sjlj_dispatch_table): Likewise.
20924         * tree-sra.c (struct access): Remove unused members.
20925         (struct assign_link): Likewise.
20926         (sra_deinitialize): Release newly added static pools.
20927         (create_access_1):Replace operator new with allocate method.
20928         (build_accesses_from_assign): Likewise.
20929         (create_artificial_child_access): Likewise.
20930         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20931         pool_allocator to object_allocator.
20932         * tree-ssa-pre.c: Likewise.
20933         * tree-ssa-reassoc.c: Likewise.
20934         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20935         * tree-ssa-strlen.c: Likewise.
20936         * tree-ssa-structalias.c: Likewise.
20937         * var-tracking.c (onepart_pool_allocate): New function.
20938         (unshare_variable): Use the newly added function.
20939         (variable_merge_over_cur): Likewise.
20940         (variable_from_dropped): Likewise.
20941         (variable_was_changed): Likewise.
20942         (set_slot_part): Likewise.
20943         (emit_notes_for_differences_1): Likewise.
20944         (vt_finalize): Release newly added static pools.
20946 2015-07-16  Martin Jambor  <mjambor@suse.cz>
20948         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
20949         all uses.  Fix two typos in its general comment.
20950         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
20952 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
20954         * config/i386/linux-common.h (LINK_MPX): New.
20955         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20956         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20957         indicating '-z bndplt' support by linker.
20958         * configure: Regenerate.
20959         * config.in: Regenerate.
20961 2015-07-16  Richard Biener  <rguenther@suse.de>
20963         * fold-const.c (fold_widened_comparison): Remove.
20964         (fold_sign_changed_comparison): Likewise.
20965         (fold_comparison): Move widened and sign-changed comparison
20966         simplification ...
20967         * match.pd: ... to patterns here.
20968         * generic-match-head.c: Include target.h.
20969         * gimple-match-head.c: Likewise.
20971 2015-07-16  Richard Biener  <rguenther@suse.de>
20973         * tree-ssa-dom.c (dom_valueize): New function.
20974         (record_temporary_equivalences): Also record equivalences
20975         for dominating stmts that have uses of equivalences we are
20976         about to record.
20978 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
20980         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20981         add_autoinc_candidates.
20982         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20983         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20984         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20985         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20986         Call new function.
20987         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20988         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20989         Remove parameter struct iv*.  Call add_autoinc_candidates here.
20990         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20991         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20992         Call new function.
20993         (find_iv_candidates): Call new functions.
20995 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
20997         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20998         uninitialized-variable warning.
21000 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21002         PR target/65249
21003         * config/sh/sh.md (movdi): Split simple reg move to two movsi
21004         when the destination is R0.
21006 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
21008         PR target/66866
21009         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21010         * config/i386/i386.c (ix86_expand_pextr): New function.
21011         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
21012         for non-lowpart subregs.
21013         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21014         (insv<mode>): Use SWI248 mode iterator.
21015         (insv<mode>_1): Ditto.
21017 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21018             Sebastian Pop  <s.pop@samsung.com>
21020         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21021         iterator to use_stmt.
21023 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21024             Sebastian Pop <s.pop@samsung.com>
21026         * graphite-scop-detection.c (build_scops_1): Discard scops for
21027         which entry==exit.
21029 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21030             Sebastian Pop <s.pop@samsung.com>
21032         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21033         case of a return statement in scop.
21035 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21036             Sebastian Pop <s.pop@samsung.com>
21038         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21039         INTEGER_TYPE parameters.
21040         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21041         VECTOR_CST in scan_tree_for_params.
21042         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21044 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21046         * gimple-pretty-print.h: Don't include pretty-print.h.
21047         * tree-streamer.h: Don't include lto-streamer.h.
21048         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21049         * gimple-streamer-in.c: Remove redundant includes.
21050         * gimple-streamer-out.c: Likewise.
21051         * ipa-devirt.c: Likewise.
21052         * ipa-icf.c: Likewise.
21053         * ipa-inline-analysis.c: Likewise.
21054         * ipa-polymorphic-call.c: Likewise.
21055         * ipa-profile.c: Likewise.
21056         * ipa-prop.c: Likewise.
21057         * ipa-pure-const.c: Likewise.
21058         * lto-cgraph.c: Likewise.
21059         * lto-streamer-in.c: Likewise.
21060         * lto-streamer-out.c: Likewise.
21061         * lto-streamer.c: Likewise.
21062         * tree-streamer-in.c: Likewise.
21063         * tree-streamer-out.c: Likewise.
21064         * tree-streamer.c: Likewise.
21066 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21068         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21069         include input.h.
21070         * opts.c: Remove multiline #include comment.
21072 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21074         * config/nvptx/mkoffload.c (process): Add C++ protection to
21075         emitted code.
21077 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21079         PR target/66854
21080         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21081         null before IEEE 128-bit floating point support patch.
21083 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21085         * simplify-rtx.c (simplify_ternary_operation): Add simplification
21086         for (!c) != {0,...,0} ? a : b for vector modes.
21088 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
21089             Martin Jambor  <mjambor@suse.cz>
21091         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21092         struct func_body_info* instead of struct ipa_node_params*, expecting
21093         fbi->info to be filled in.  Replace throughout.  Adjust call to
21094         ipa_load_from_parm_agg.
21095         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21096         instead of struct ipa_node_params*.  Adjust calls to other functions
21097         so that they pass either fbi or fbi->info.
21098         (set_switch_stmt_execution_predicate): Likewise.
21099         (will_be_nonconstant_predicate): Likewise.
21100         (compute_bb_predicates): Likewise.
21101         (estimate_function_body_sizes): Move asserts earlier.  Fill in
21102         struct func_body_info, replace parms_info with fbi.info.  Adjust
21103         calls to functions that now accept struct func_body_info.
21104         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21105         (struct func_body_info): Likewise.
21106         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21107         remove static.  Adjust callers.
21108         (ipa_load_from_parm_agg): Remove.
21109         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21110         (func_body_info): Likewise.
21111         (ipa_load_from_parm_agg): Adjust prototype.
21113 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21115         * gensupport.c (rtx_handle_directive): Adjust.
21116         * read-rtl.c (apply_iterators): Take vector to add rtxs to
21117         instead of expr list rtx.
21118         (add_define_attr_for_define_subst): Likewise.
21119         (add_define_subst_attr): Likewise.
21120         (read_subst_mapping): Likewise.
21121         (read_rtx): Likewise.
21122         * rtl.h (read_rtx): Adjust.
21124 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21126         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21128 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21130         PR target/58066
21131         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21132         (*tls_local_dynamic_base_64_<mode>): Ditto.
21133         (*tls_local_dynamic_base_64_largepic): Ditto.
21134         (tls_global_dynamic_64_<mode>): Update expander pattern.
21135         (tls_local_dynamic_base_64_<mode>): Ditto.
21137 2015-07-15  Richard Biener  <rguenther@suse.de>
21139         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21140         and bool_var == 1 -> bool_var simplifications ...
21141         * match.pd: ... to patterns here.  Factor out negate_expr_p
21142         cases from the A - B -> A + (-B) patterns as negate_expr_p
21143         predicate and add a -(A + B) -> (-B) - A pattern.
21145 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21147         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21149 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21150             Robert Suchanek  <robert.suchanek@imgtec.com>
21152         * config/mips/mips.c (mips_int_mask): New enum.
21153         (mips_shadow_set): Likewise.
21154         (int_mask): New variable.
21155         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21156         (machine_function): Add int_mask and use_shadow_register_set.
21157         (mips_attribute_table): Add attribute handlers for interrupt and
21158         use_shadow_register_set.
21159         (mips_interrupt_mask): New static function.
21160         (mips_handle_interrupt_attr): Likewise.
21161         (mips_handle_use_shadow_register_set_attr): Likewise.
21162         (mips_use_shadow_register_set): Change return type to enum
21163         mips_shadow_set.  Add argument handling for use_shadow_register_set
21164         attribute.
21165         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21166         compare with mips_shadow_set enum.
21167         (mips_compute_frame_info): Add interrupt mask and
21168         use_shadow_register_set to per-function information structure.
21169         Add a stack slot for EPC unconditionally.
21170         (mips_expand_prologue): Compare use_shadow_register_set value
21171         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
21172         masked interrupt register but in EIC mode use K0 and save Cause in K0.
21173         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
21174         copying the stack pointer from the shadow register set.
21175         * config/mips/mips.h (SR_IM0): New define.
21176         * config/mips/mips.md (mips_rdpgpr): Rename to...
21177         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
21178         * doc/extend.texi (Declaring Attributes of Functions): Document
21179         optional arguments for interrupt and use_shadow_register_set
21180         attributes.
21182 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21184         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21185         interrupt attribute.
21186         (mips_expand_prologue): Disable the floating point unit in an ISR.
21187         * config/mips/mips.h (SR_COP1): New define.
21189 2015-07-15  Richard Biener  <rguenther@suse.de>
21191         * genmatch.c (parser::peek, parser::peek_ident): Add argument
21192         to tell how many tokens to peek ahead (default 1).
21193         (parser::eat_token, parser::eat_ident): Return token consumed.
21194         (parser::parse_result): Parse new switch statement.
21195         * match.pd: Use case statements where appropriate.
21197 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21199         PR rtl-optimization/58066
21200         * calls.c (expand_call): Precompute register parameters before stack
21201         alignment is performed.
21203 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21205         PR rtl-optimization/66838
21206         * postreload.c (reload_cse_move2add): Also process
21207         CALL_INSN_FUNCTION_USAGE when resetting information of
21208         call-clobbered registers.
21210 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21211             Cesar Philippidis  <cesar@codesourcery.com>
21212             Chung-Lin Tang  <cltang@codesourcery.com>
21214         * config/nios2/constraints.md (U, v): New constraints.
21215         * config/nios2/predicates.md (rdprs_dcache_operand): New.
21216         (ldstex_memory_operand): New.
21217         * config/nios2/sync.md: New file.
21218         * config/nios2/nios2.md (unspecv): Add new builtin function
21219         UNSPECV codes.
21220         (rdprs, flushd, flushda, wrpie, eni): New patterns.
21221         (top-level): Include sync.md.
21222         * config/nios2/nios2.c (N2_FTYPES): Add function types for
21223         new builtins.
21224         (N2_BUILTINS): Add arch field setting, add new builtins.
21225         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21226         for arch field.
21227         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21228         Also handle ldex/stex/ldsex/stsex builtins.
21229         (nios2_expand_rdprs_builtin): New function.
21230         (nios2_expand_cache_builtin): New function.
21231         (nios2_expand_wrpie_builtin): New function.
21232         (nios2_expand_eni_builtin): New function.
21233         (nios2_expand_builtin): Add arch field handling and new builtin
21234         cases.
21235         * doc/extend.texi (Altera Nios II Built-in Functions): Document
21236         new builtins.
21237         * doc/md.texi (Machine Constraints): Document U and v constraints.
21239 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21240             Cesar Philippidis  <cesar@codesourcery.com>
21241             Chung-Lin Tang  <cltang@codesourcery.com>
21243         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21244         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21245         callee_save_reg_size and uses_anonymous_args fields.
21246         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21247         (nios2_create_cfa_notes): New function.
21248         (nios2_adjust_stack): New function for adjusting stack.
21249         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21250         Use nios2_adjust_stack.
21251         (nios2_expand_epilogue): Likewise.
21252         (nios2_expand_return): New function.
21253         (nios2_can_use_return_insn): Update for CDX pop.n usage.
21254         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21255         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21256         * config/nios2/nios2.md (return): Use nios2_expand_return.
21258 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21259             Cesar Philippidis  <cesar@codesourcery.com>
21260             Chung-Lin Tang  <cltang@codesourcery.com>
21262         * config/nios2/predicates.md (pop_operation): New.
21263         (ldwm_operation, stwm_operation): New.
21264         (nios2_hard_register_operand): New.
21265         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21266         (ldstwm_operation_p): Declare.
21267         (gen_ldstwm_peep): Declare.
21268         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21269         (base_reg_adjustment_p): New.
21270         (pop_operation_p): New.
21271         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21272         (nios2_ldstwm_regset_p): New.
21273         (ldstwm_operation_p): New.
21274         (gen_ldst): New.
21275         (nios2_ldst_parallel): New.
21276         (struct ldswm_operand): Declare.
21277         (compare_ldstwm_operands): New.
21278         (can_use_cdx_ldstw): New.
21279         (gen_ldstwm_peep): New.
21280         * config/nios2/nios2-ldstwm.sml: New.
21281         * config/nios2/nios2.md: Include ldstwm.md.
21282         * config/nios2/ldstwm.md: Generated.
21284 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21285             Cesar Philippidis  <cesar@codesourcery.com>
21286             Chung-Lin Tang  <cltang@codesourcery.com>
21288         * config/nios2/nios2.h (LABEL_ALIGN): Define.
21289         (REG_ALLOC_ORDER): Define.
21290         (ADJUST_REG_ALLOC_ORDER): Define.
21291         (HONOR_REG_ALLOC_ORDER): Define.
21292         (CDX_REG_P): Define.
21293         (ANDCLEAR_INT): Define.
21294         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21295         (nios2_label_align): Declare.
21296         (nios2_cdx_narrow_form_p): Declare.
21297         (nios2_adjust_reg_alloc_order): Declare.
21298         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21299         operation.
21300         (nios2_large_unspec_reloc_p): New function, split from...
21301         (nios2_legitimate_pic_operand_p): ...here.
21302         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21303         (nios2_print_operand_punct_valid_p): New.
21304         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
21305         (split_mem_address): New.
21306         (split_alu_insn): New.
21307         (cdxreg): New.
21308         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21309         (enum nios2_add_insn_kind): New.
21310         (nios2_add_insn_names, nios2_add_insn_narrow): New.
21311         (nios2_add_insn_classify): New.
21312         (nios2_add_insn_asm): New.
21313         (nios2_cdx_narrow_form_p): New.
21314         (label_align, min_labelno, max_labelno): New.
21315         (nios2_reorg): New.
21316         (nios2_label_align): New.
21317         (nios2_adjust_reg_alloc_order): New.
21318         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21319         (TARGET_MACHINE_DEPENDENT_REORG): Define.
21320         * config/nios2/constraints.md (P): New constraint.
21321         * config/nios2/predicates.md (const_and_operand): New.
21322         (and_operand): New.
21323         (stack_memory_operand): New.
21324         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21325         (length): Update to use nios2_cdx_narrow_form_p().
21326         (type): Add new insn type values.
21327         (control, alu, st, ld, shift): Update insn reservations with
21328         new insn type values.
21329         (*high, *lo_sum): Define new insn patterns for constant generation.
21330         (movqi_internal, movhi_internal, movsi_internal): Reduce
21331         alternatives, update asm template to handle CDX variants, update
21332         type attributes.
21333         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21334         template, update type attributes.
21335         (extendhisi2, extendqi<mode>2): Likewise.
21336         (addsi3): Change to use function for asm string.
21337         (subsi3): Add CDX notation to asm template, update type attributes.
21338         (negsi3, one_cmplsi3): Likewise.
21339         (andsi3): New pattern, specialized from logical patterns.
21340         (<code>si3): Remove and case, combine alternatives, update asm
21341         template.
21342         (<shift_op>si3): Add CDX notation, update type attributes.
21343         (rotrsi3): Update type attribute.
21344         (*merge, extzv, insv): New insn patterns.
21345         (return): Change to define_expand.
21346         (simple_return): Add CDX notation, update type attributes.
21347         (indirect_jump): Add CDX notation.
21348         (jump): Update asm cases, update length attribute expression.
21349         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21350         (nios2_cbranch): Update asm cases and length attribute expression
21351         to handle CDX variants.
21352         (nios2_cmp<code>): Update asm template.
21353         (nop): Add CDX notation, update type attributes.
21354         (trap): Add CDX notation.
21355         (ctrapsi4): Update asm cases and length attribute expression to
21356         handle CDX variant.
21357         * doc/md.texi (Machine Constraints): Document P constraint.
21359 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21360             Cesar Philippidis  <cesar@codesourcery.com>
21361             Chung-Lin Tang  <cltang@codesourcery.com>
21363         * config/nios2/nios2.h (SMALL_INT12): New macro.
21364         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21365         (nios2_valid_addr_expr_p): Use it.
21366         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21367         with implicit "io" instructions on R2.
21368         * config/nios2/constraints.md (w): New constraint.
21369         * config/nios2/predicates.md (ldstio_memory_operand): New.
21370         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21371         operand predicate and constraint.
21372         (ld<bh>io_signed, st<bhw>io>): Likewise.
21373         * doc/md.texi (Machine Constraints): Document w constraint.
21375 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21376             Cesar Philippidis  <cesar@codesourcery.com>
21377             Chung-Lin Tang  <cltang@codesourcery.com>
21379         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21380         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21381         Nios II architecture level.
21382         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21383         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21384         (OPTION_DEFAULT_SPECS): Define.
21385         (ASM_SPEC): Add -march= spec strings.
21386         * config/nios2/nios2.c (nios2_option_override): Check for
21387         conflicts involving new options.
21388         * config.gcc (nios2*-*-*): Support --with-arch=.
21389         * doc/invoke.texi (Option Summary, Nios II Options): Document
21390         -march=, -mbmx, and -mcdx.
21392 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
21394         PR rtl-optimization/66626
21395         * lra-constraints.c (lra_constraints): Prevent equivalence
21396         substitution for static chain pseudo in functions with nonlocal
21397         goto.
21399 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21401         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21402         (nios2_emit_stack_limit_check): Add size parameter.  Handle
21403         -fstack-limit-symbol as well as -fstack-limit-register.
21404         (nios2_expand_prologue): Emit only a single stack limit check,
21405         even if multiple stack adjustments are required.
21406         (nios2_option_override): Diagnose unsupported combination of -fpic
21407         and -stack-limit-symbol.
21409 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
21411         * Makefile.in (top_srcdir): New.
21412         * configure.ac: Use AM_ZLIB.
21413         * configure: Regeneated.
21415 2015-07-14  Matthias Klose  <doko@ubuntu.com>
21417         PR target/66840
21418         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21420 2015-07-14  Richard Biener  <rguenther@suse.de>
21422         PR tree-optimization/66863
21423         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21424         what we record for conversion use stmt lhs inequalities.
21426 2015-07-14  Richard Biener  <rguenther@suse.de>
21428         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21429         (decision_tree::gen_gimple): Likewise.
21431 2015-07-14  Tom de Vries  <tom@codesourcery.com>
21433         * gcc.c (greater_than_spec_func): Declare forward.
21434         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21435         -ftree-parallelize-loops={0,1}.
21436         (static_spec_functions): Add greater_than_spec_func function with name
21437         "gt".
21438         (greater_than_spec_func): New function.
21440 2015-07-14  Richard Biener  <rguenther@suse.de>
21442         * tree-ssa-dom.c (record_temporary_equivalences): Merge
21443         wideing type conversion case from record_equivalences_from_incoming_edge
21444         and use record_equality to record equivalences.
21445         (record_equivalences_from_incoming_edge): Call
21446         record_temporary_equivalences.
21448 2015-07-14  Richard Biener  <rguenther@suse.de>
21450         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21451         (struct if_expr): New.
21452         (struct with_expr): Likewise.
21453         (is_a_helper): Add helpers for if_expr and with_expr.
21454         (struct simplify): Add simplify_kind enum and member.  Remove
21455         ifexpr_vec member.
21456         (simplify::simplify): Adjust.
21457         (lower_commutative): Adjust.
21458         (lower_opt_convert): Likewise.
21459         (lower_cond): Likewise.
21460         (replace_id): Handle with_expr and if_expr.
21461         (lower_for): Adjust.
21462         (dt_simplify::gen_1): New recursive worker, split out from ...
21463         (dt_simplify::gen): ... here.  Deal with if and with expansion
21464         recursively.
21465         (capture_info::capture_info): Take context argument
21466         (capture_info::walk_result): Only analyze specific result.
21467         (parser::parse_result): New function.
21468         (parser::parse_simplify): Adjust to parse ifs with then end
21469         else case.
21470         (parser::parse_if): Simplify.
21471         (parser::parse_pattern): Pass down simplify kind.
21472         * match.pd: Convert if structure to new syntax.
21474 2015-07-13  Marek Polacek  <polacek@redhat.com>
21476         * rtl.c (rtx_equal_p_cb): Fix typo.
21478 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
21480         * omega.h: Don't include config.h, don't include params.h again if
21481         omega.h has already been included.
21482         * graphite-poly.h: Include sese.h.
21483         * graphite.c: Don't include sese.h, remove needless includes and
21484         minimize includes outside #ifdef HAVE_isl block.
21485         * graphite-blocking.c: Don't include sese.h, remove needless includes,
21486         and wrap entire file in #ifdef HAVE_isl
21487         * graphite-dependences.c: Likewise.
21488         * graphite-interchange.c: Likewise.
21489         * graphite-isl-ast-to-gimple.c: Likewise.
21490         * graphite-optimize-isl.c: Likewise.
21491         * graphite-poly.c: Likewise.
21492         * graphite-scop-detection.c: Likewise.
21493         * graphite-sese-to-poly.c: Likewise.
21495 2015-07-13  Tom de Vries  <tom@codesourcery.com>
21497         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21499 2015-07-13  Renlin Li  <renlin.li@arm.com>
21501         PR rtl/66556
21502         * simplify-rtx.c (simplify_const_relational_operation): Add
21503         side_effects_p checks.
21505 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
21507         * bitmap.h: Fix double word typos.
21508         * builtins.c: Same.
21509         * calls.c: Same.
21510         * cfgloopmanip.c: Same.
21511         * cgraph.c: Same.
21512         * cgraph.h: Same.
21513         * cgraphclones.c: Same.
21514         * combine.c: Same.
21515         * config/aarch64/aarch64-protos.h: Same.
21516         * config/aarch64/aarch64.c: Same.
21517         * config/aarch64/aarch64.md: Same.
21518         * config/arm/arm.md: Same.
21519         * config/arm/arm1020e.md: Same.
21520         * config/arm/arm1026ejs.md: Same.
21521         * config/arm/arm926ejs.md: Same.
21522         * config/arm/fa526.md: Same.
21523         * config/arm/fa606te.md: Same.
21524         * config/arm/fa626te.md: Same.
21525         * config/arm/fa726te.md: Same.
21526         * config/arm/fmp626.md: Same.
21527         * config/darwin.c: Same.
21528         * config/epiphany/epiphany.c: Same.
21529         * config/frv/frv.c: Same.
21530         * config/ft32/ft32.c: Same.
21531         * config/gnu-user.h: Same.
21532         * config/h8300/constraints.md: Same.
21533         * config/i386/i386.c: Same.
21534         * config/i386/i386.md: Same.
21535         * config/iq2000/iq2000.md: Same.
21536         * config/mips/mips.c: Same.
21537         * config/mmix/mmix.md: Same.
21538         * config/moxie/moxie.c: Same.
21539         * config/nds32/nds32.md: Same.
21540         * config/pa/pa.h: Same.
21541         * config/rs6000/aix.h: Same.
21542         * config/rs6000/rs6000.h: Same.
21543         * config/sh/sh.c: Same.
21544         * config/tilegx/tilegx.md: Same.
21545         * config/tilepro/gen-mul-tables.cc: Same.
21546         * cse.c: Same.
21547         * dbxout.c: Same.
21548         * doc/invoke.texi: Same.
21549         * dse.c: Same.
21550         * dwarf2out.c: Same.
21551         * final.c: Same.
21552         * gcc.c: Same.
21553         * genmatch.c: Same.
21554         * gimplify.c: Same.
21555         * hash-table.h: Same.
21556         * internal-fn.c: Same.
21557         * ipa-cp.c: Same.
21558         * ipa-devirt.c: Same.
21559         * ipa-icf.c: Same.
21560         * ipa-icf.h: Same.
21561         * ipa-profile.c: Same.
21562         * ipa-prop.c: Same.
21563         * ipa-prop.h: Same.
21564         * ira.c: Same.
21565         * omp-low.c: Same.
21566         * reg-stack.c: Same.
21567         * regcprop.c: Same.
21568         * reorg.c: Same.
21569         * rtl.h: Same.
21570         * sbitmap.h: Same.
21571         * tree-eh.c: Same.
21572         * tree-inline.c: Same.
21573         * tree-sra.c: Same.
21574         * tree-ssa-dom.c: Same.
21575         * tree-ssa-loop-ivopts.c: Same.
21576         * tree-ssa-structalias.c: Same.
21577         * tree-ssa-tail-merge.c: Same.
21578         * tree-ssa-ter.c: Same.
21579         * tree-ssa-threadupdate.c: Same.
21580         * tree-ssa-uninit.c: Same.
21581         * tree-ssanames.c: Same.
21582         * tree-vect-loop-manip.c: Same.
21583         * tree-vrp.c: Same.
21584         * tree.c: Same.
21585         * valtrack.c: Same.
21586         * vec.h: Same.
21588 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21590         PR middle-end/66726
21591         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21592         tree_ssa_phiopt_worker): Call it.
21594 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21596         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21597         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21598         REG_EQUAL note.
21600 2015-07-11  Marek Polacek  <polacek@redhat.com>
21602         PR middle-end/66353
21603         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21604         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21605         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21606         rather than bb_has_abnormal_call_pred.
21607         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21608         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21609         rather than bb_has_abnormal_call_pred.
21611 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
21613         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21614         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21615         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21616         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21617         v850_legitimate_address_p): New functions.
21618         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21620 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
21622         PR target/66819
21623         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21624         indirect sibcall with register arguments if register available
21625         for argument passing.
21626         (init_cumulative_args): Set cfun->machine->arg_reg_available
21627         to (cum->nregs > 0) or to true if function has a variable
21628         argument list.
21629         (function_arg_advance_32): Set cfun->machine->arg_reg_available
21630         to false if cum->nregs <= 0.
21631         * config/i386/i386.h (machine_function): Add arg_reg_available.
21633 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
21635         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21636         and gen_higpart instead of gen_rtx_SUBREG.
21637         * config/i386/i386.md
21638         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21639         (read-modify peephole2): Use gen_lowpart instead of
21640         gen_rtx_SUBREG for operand 5.
21642 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21644         * config/tilepro/gen-mul-tables.cc (main): Change include list for
21645         generated files.
21646         * config/tilepro/mul-tables.c: Regenerate.
21647         * config/tilegx/mul-tables.c: Regenerate.
21649 2015-07-10  Richard Biener  <rguenther@suse.de>
21651         * fold-const.c (distribute_bit_expr): Remove.
21652         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21653         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21654         to A & (B | C) and simplifying A << C1 << C2 to ...
21655         * match.pd: ... patterns here.
21657 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
21659         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21660         Mark mem as READONLY and NOTRAP for PIC symbol.
21662 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
21664         * gimple-predict.h: New file.
21665         (gimple_predict_predictor, gimple_predict_set_predictor,
21666         gimple_predict_outcome, gimple_predict_set_outcome,
21667         gimple_build_predict): Relocate here.
21668         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21669         gimple_predict_outcome, gimple_predict_set_outcome): Move to
21670         gimple-predict.h.
21671         * gimple.c (gimple_build_predict): Move to gimple-predict.h
21672         * basic-block.h: Don't include cfghooks.h.
21673         * backend.h: Don't include predict.h.
21674         * cfghooks.h: Include predict.h.
21675         * gimple-pretty-print.c: Include gimple-predict.h.
21676         * gimplify.c: Likwise.
21677         * predict.c: Adjust includes.
21678         * tree-inline.c: Likewise.
21679         * asan.c: Likewise.
21680         * auto-inc-dec.c: Likewise.
21681         * auto-profile.c: Likewise.
21682         * bb-reorder.c: Likewise.
21683         * builtins.c: Likewise.
21684         * caller-save.c: Likewise.
21685         * calls.c: Likewise.
21686         * cfganal.c: Likewise.
21687         * cfgbuild.c: Likewise.
21688         * cfg.c: Likewise.
21689         * cfgcleanup.c: Likewise.
21690         * cfgexpand.c: Likewise.
21691         * cfghooks.c: Likewise.
21692         * cfgloopanal.c: Likewise.
21693         * cfgloop.c: Likewise.
21694         * cfgloopmanip.c: Likewise.
21695         * cfgrtl.c: Likewise.
21696         * cgraph.c: Likewise.
21697         * cgraphunit.c: Likewise.
21698         * combine.c: Likewise.
21699         * cprop.c: Likewise.
21700         * cse.c: Likewise.
21701         * dce.c: Likewise.
21702         * dojump.c: Likewise.
21703         * dse.c: Likewise.
21704         * except.c: Likewise.
21705         * expmed.c: Likewise.
21706         * expr.c: Likewise.
21707         * final.c: Likewise.
21708         * fold-const.c: Likewise.
21709         * function.c: Likewise.
21710         * fwprop.c: Likewise.
21711         * gcc-plugin.h: Likewise.
21712         * gcse.c: Likewise.
21713         * genattrtab.c: Likewise.
21714         * genemit.c: Likewise.
21715         * gengtype.c: Likewise.
21716         * genopinit.c: Likewise.
21717         * genoutput.c: Likewise.
21718         * genpreds.c: Likewise.
21719         * genrecog.c: Likewise.
21720         * gimple-fold.c: Likewise.
21721         * gimple-iterator.c: Likewise.
21722         * gimple-ssa-isolate-paths.c: Likewise.
21723         * gimple-ssa-strength-reduction.c: Likewise.
21724         * graph.c: Likewise.
21725         * graphite-blocking.c: Likewise.
21726         * graphite.c: Likewise.
21727         * graphite-dependences.c: Likewise.
21728         * graphite-interchange.c: Likewise.
21729         * graphite-isl-ast-to-gimple.c: Likewise.
21730         * graphite-optimize-isl.c: Likewise.
21731         * graphite-poly.c: Likewise.
21732         * graphite-scop-detection.c: Likewise.
21733         * graphite-sese-to-poly.c: Likewise.
21734         * haifa-sched.c: Likewise.
21735         * ifcvt.c: Likewise.
21736         * internal-fn.c: Likewise.
21737         * ipa-cp.c: Likewise.
21738         * ipa-profile.c: Likewise.
21739         * ipa-split.c: Likewise.
21740         * ipa-utils.c: Likewise.
21741         * ira-build.c: Likewise.
21742         * ira-color.c: Likewise.
21743         * ira-conflicts.c: Likewise.
21744         * ira-costs.c: Likewise.
21745         * ira-emit.c: Likewise.
21746         * ira-lives.c: Likewise.
21747         * jump.c: Likewise.
21748         * loop-doloop.c: Likewise.
21749         * loop-init.c: Likewise.
21750         * loop-invariant.c: Likewise.
21751         * loop-unroll.c: Likewise.
21752         * lower-subreg.c: Likewise.
21753         * lra-assigns.c: Likewise.
21754         * lra.c: Likewise.
21755         * lra-coalesce.c: Likewise.
21756         * lra-constraints.c: Likewise.
21757         * lra-lives.c: Likewise.
21758         * lto-cgraph.c: Likewise.
21759         * lto-streamer-in.c: Likewise.
21760         * mode-switching.c: Likewise.
21761         * modulo-sched.c: Likewise.
21762         * omp-low.c: Likewise.
21763         * optabs.c: Likewise.
21764         * passes.c: Likewise.
21765         * postreload.c: Likewise.
21766         * postreload-gcse.c: Likewise.
21767         * profile.c: Likewise.
21768         * recog.c: Likewise.
21769         * regstat.c: Likewise.
21770         * reload1.c: Likewise.
21771         * reorg.c: Likewise.
21772         * rtlanal.c: Likewise.
21773         * sched-ebb.c: Likewise.
21774         * sel-sched-ir.c: Likewise.
21775         * sese.c: Likewise.
21776         * shrink-wrap.c: Likewise.
21777         * simplify-rtx.c: Likewise.
21778         * stmt.c: Likewise.
21779         * store-motion.c: Likewise.
21780         * tracer.c: Likewise.
21781         * trans-mem.c: Likewise.
21782         * tree-call-cdce.c: Likewise.
21783         * tree-cfg.c: Likewise.
21784         * tree-cfgcleanup.c: Likewise.
21785         * tree-chkp.c: Likewise.
21786         * tree-complex.c: Likewise.
21787         * tree-eh.c: Likewise.
21788         * tree-if-conv.c: Likewise.
21789         * tree-loop-distribution.c: Likewise.
21790         * tree-outof-ssa.c: Likewise.
21791         * tree-parloops.c: Likewise.
21792         * tree-predcom.c: Likewise.
21793         * tree-pretty-print.c: Likewise.
21794         * tree-profile.c: Likewise.
21795         * tree-sra.c: Likewise.
21796         * tree-ssa.c: Likewise.
21797         * tree-ssa-coalesce.c: Likewise.
21798         * tree-ssa-dce.c: Likewise.
21799         * tree-ssa-dom.c: Likewise.
21800         * tree-ssa-forwprop.c: Likewise.
21801         * tree-ssa-ifcombine.c: Likewise.
21802         * tree-ssa-loop-ch.c: Likewise.
21803         * tree-ssa-loop-im.c: Likewise.
21804         * tree-ssa-loop-ivcanon.c: Likewise.
21805         * tree-ssa-loop-ivopts.c: Likewise.
21806         * tree-ssa-loop-manip.c: Likewise.
21807         * tree-ssa-loop-prefetch.c: Likewise.
21808         * tree-ssa-loop-unswitch.c: Likewise.
21809         * tree-ssa-math-opts.c: Likewise.
21810         * tree-ssa-phiopt.c: Likewise.
21811         * tree-ssa-pre.c: Likewise.
21812         * tree-ssa-reassoc.c: Likewise.
21813         * tree-ssa-sink.c: Likewise.
21814         * tree-ssa-tail-merge.c: Likewise.
21815         * tree-ssa-threadedge.c: Likewise.
21816         * tree-ssa-threadupdate.c: Likewise.
21817         * tree-switch-conversion.c: Likewise.
21818         * tree-tailcall.c: Likewise.
21819         * tree-vect-data-refs.c: Likewise.
21820         * tree-vect-loop.c: Likewise.
21821         * tree-vect-loop-manip.c: Likewise.
21822         * tree-vectorizer.c: Likewise.
21823         * tree-vrp.c: Likewise.
21824         * ubsan.c: Likewise.
21825         * value-prof.c: Likewise.
21826         * varasm.c: Likewise.
21827         * var-tracking.c: Likewise.
21828         * config/aarch64/aarch64-builtins.c: Likewise.
21829         * config/aarch64/aarch64.c: Likewise.
21830         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21831         * config/alpha/alpha.c: Likewise.
21832         * config/arc/arc.c: Likewise.
21833         * config/arm/arm.c: Likewise.
21834         * config/avr/avr.c: Likewise.
21835         * config/bfin/bfin.c: Likewise.
21836         * config/c6x/c6x.c: Likewise.
21837         * config/cr16/cr16.c: Likewise.
21838         * config/cris/cris.c: Likewise.
21839         * config/darwin.c: Likewise.
21840         * config/darwin-c.c: Likewise.
21841         * config/epiphany/epiphany.c: Likewise.
21842         * config/epiphany/mode-switch-use.c: Likewise.
21843         * config/epiphany/resolve-sw-modes.c: Likewise.
21844         * config/fr30/fr30.c: Likewise.
21845         * config/frv/frv.c: Likewise.
21846         * config/ft32/ft32.c: Likewise.
21847         * config/h8300/h8300.c: Likewise.
21848         * config/i386/i386.c: Likewise.
21849         * config/i386/winnt.c: Likewise.
21850         * config/ia64/ia64.c: Likewise.
21851         * config/iq2000/iq2000.c: Likewise.
21852         * config/lm32/lm32.c: Likewise.
21853         * config/m32c/m32c.c: Likewise.
21854         * config/m32r/m32r.c: Likewise.
21855         * config/m68k/m68k.c: Likewise.
21856         * config/mcore/mcore.c: Likewise.
21857         * config/mep/mep.c: Likewise.
21858         * config/microblaze/microblaze.c: Likewise.
21859         * config/mips/mips.c: Likewise.
21860         * config/mmix/mmix.c: Likewise.
21861         * config/mn10300/mn10300.c: Likewise.
21862         * config/moxie/moxie.c: Likewise.
21863         * config/msp430/msp430.c: Likewise.
21864         * config/nds32/nds32.c: Likewise.
21865         * config/nds32/nds32-cost.c: Likewise.
21866         * config/nds32/nds32-fp-as-gp.c: Likewise.
21867         * config/nds32/nds32-intrinsic.c: Likewise.
21868         * config/nds32/nds32-isr.c: Likewise.
21869         * config/nds32/nds32-md-auxiliary.c: Likewise.
21870         * config/nds32/nds32-memory-manipulation.c: Likewise.
21871         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21872         * config/nds32/nds32-predicates.c: Likewise.
21873         * config/nios2/nios2.c: Likewise.
21874         * config/nvptx/nvptx.c: Likewise.
21875         * config/pa/pa.c: Likewise.
21876         * config/pdp11/pdp11.c: Likewise.
21877         * config/rl78/rl78.c: Likewise.
21878         * config/rs6000/rs6000.c: Likewise.
21879         * config/rx/rx.c: Likewise.
21880         * config/s390/s390.c: Likewise.
21881         * config/sh/sh.c: Likewise.
21882         * config/sh/sh-mem.cc: Likewise.
21883         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21884         * config/sh/sh_treg_combine.cc: Likewise.
21885         * config/sparc/sparc.c: Likewise.
21886         * config/spu/spu.c: Likewise.
21887         * config/stormy16/stormy16.c: Likewise.
21888         * config/tilegx/tilegx.c: Likewise.
21889         * config/tilepro/tilepro.c: Likewise.
21890         * config/v850/v850.c: Likewise.
21891         * config/vax/vax.c: Likewise.
21892         * config/visium/visium.c: Likewise.
21893         * config/xtensa/xtensa.c: Likewise.
21895 2015-07-10  Richard Biener  <rguenther@suse.de>
21897         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21898         (decision_tree::gen_gimple): Likewise.
21899         (decision_tree::gen_generic): Likewise.
21901 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
21903         PR target/66813
21904         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21905         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21907 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
21909         PR middle-end/66820
21910         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21911         or ORT_TASK contexts.
21912         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21913         is non-zero.
21915 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21917         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21918         above function.
21920 2015-07-10  Tom de Vries  <tom@codesourcery.com>
21922         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21923         insert nit + 1 bound.
21925 2015-07-10  Richard Biener  <rguenther@suse.de>
21927         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21928         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21929         (if_convertible_loop_p_1): For this always compute bb predicates.
21930         (if_convertible_loop_p): And free them.
21932 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21934         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21935         in dump message.
21937 2015-07-10  Richard Biener  <rguenther@suse.de>
21939         PR tree-optimization/66823
21940         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21941         inverted predicate.
21943 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
21945         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21946         to handle mips[32|64]r3 and mips[32|64]r5.
21948 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
21950         PR middle-end/66633
21951         * tree-nested.c (get_static_chain): Or in a flag into
21952         info->static_chain_added.
21953         (get_frame_field, get_nonlocal_debug_decl): Likewise.
21954         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21955         2015-07-01 changes.
21956         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21957         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21958         add it to clauses.
21960         PR tree-optimization/66718
21961         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21962         field.
21963         (vect_simd_lane_linear): New function.
21964         (vectorizable_simd_clone_call): Support using linear arguments for
21965         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21967 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
21969         PR target/66821
21970         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21972 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
21974         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21975         Use machine mode, not enum machine_mode in the prototype.
21977         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21978         classify 128-bit floating point support.
21979         (FLOAT128_IBM_P): Likewise.
21980         (FLOAT128_VECTOR_P): Likewise.
21981         (FLOAT128_2REG_P): Likewise.
21982         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21983         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21984         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21985         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21987         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21988         tests against TFmode/TDmode, since those modes do not use VSX
21989         addresses.
21990         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21991         support.
21992         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21993         tests against TFmode, etc.
21994         (invalid_e500_subreg): Add tests against IFmode/KFmode.
21995         (reg_offset_addressing_ok_p): Likewise.
21996         (rs6000_legitimate_offset_address_p): Likewise.
21997         (rs6000_legitimize_address): Likewise.
21998         (rs6000_legitimize_reload_address): Likewise.
21999         (rs6000_legitimate_address_p): Clean up tests against TFmode and
22000         TDmode to use the new helper macros, which will include IFmode and
22001         KFmode.
22002         (rs6000_emit_move): Likewise.
22003         (rs6000_darwin64_record_arg_recurse): Likewise.
22004         (print_operand): Likewise.
22005         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22006         that uses a single vector register as a vector and not as a
22007         floating point register in terms of the calling sequence.
22008         (rs6000_discover_homogeneous_aggregate): Likewise.
22009         (rs6000_return_in_memory): Likewise.
22010         (init_cumulative_args): Likewise.
22011         (rs6000_function_arg_boundary): Likewise.
22012         (rs6000_function_arg_advance_1): Likewise.
22013         (rs6000_function_arg): Likewise.
22014         (rs6000_pass_by_reference): Likewise.
22015         (rs6000_gimplify_va_arg): Likewise.
22016         (rs6000_secondary_reload_memory): Use machine_mode not enum
22017         machine mode.
22018         (rs6000_split_multireg_move): Use new helper macros.
22019         (spe_func_has_64bit_regs_p): Likewise.
22020         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22021         (output_toc): Use new helper macros.
22022         (rs6000_register_move_cost): Likewise.
22023         (rs6000_function_value): Add IEEE 128-bit floating point calling
22024         sequence support.
22025         (rs6000_libcall_value): Likewise.
22026         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22027         floating point support.
22028         (rs6000_vector_mode_supported_p): Likewise.
22030 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
22032         PR rtl-optimization/66782
22033         * lra-int.h (struct lra_insn_recog_data): Add comment about
22034         clobbered hard regs for arg_hard_regs.
22035         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22036         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22037         Add condition for processing used hard regs.
22038         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22039         Process clobbered hard regs.
22041 2015-07-09  Michael Matz  <matz@suse.de>
22043         * genmatch.c (fprintf_indent): New function.
22044         (operand::gen_transform): Add indent parameter.
22045         (expr::gen_transform, c_expr::gen_transform,
22046         capture::gen_transform): Ditto and use fprintf_indent.
22047         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22048         (dt_operand::gen, dt_operand::gen_predicate,
22049         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22050         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22051         (decision_tree::gen_gimple): Adjust calls and indent generated
22052         code.
22053         (decision_tree::gen_generic): Ditto.
22054         (write_predicate): Ditto.
22056 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22058         PR target/66814
22059         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22060         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22061         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22062         {GENERAL,SSE,MMX}_REG_P where appropriate.
22064 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22066         * lto-streamer.h: Don't include target.h and alloc-pool.h.
22067         * builtins.c: Adjust includes.
22068         * gimple.c: Likewise.
22069         * ipa-icf.c: Likewise.
22070         * lto-opts.c: Likewise.
22071         * ipa-reference.c: Likewise.
22072         * lto-section-out.c: Likewise.
22073         * lto-streamer-in.c: Likewise.
22074         * lto-streamer-out.c: Likewise.
22075         * opts-global.c: Likewise.
22076         * symtab.c: Likewise.
22077         * tree-chkp.c: Likewise.
22078         * tree-ssa-live.c: Likewise.
22079         * tree-streamer-in.c: Likewise.
22080         * tree-streamer-out.c: Likewise.
22081         * config/darwin.c: Likewise.
22082         * config/i386/winnt.c: Likewise.
22084 2015-07-09  Richard Biener  <rguenther@suse.de>
22086         * genmatch.c (struct expr): Add force_single_use flag.
22087         (expr::expr): Add copy constructor.
22088         (capture_info::walk_match): Gather force_single_use captures.
22089         (expr::gen_transform): Use possibly NULLified sequence.
22090         (dt_simplify::gen): Apply single-use restrictions by NULLifying
22091         seq if any constrained expr is not single-use.
22092         (parser::parse_expr): Refactor to allow multiple flags.  Handle
22093         's' flag to force an expression have a single-use if the pattern
22094         simplifies to more than one statement.
22095         * match.pd: Convert most single_use conditionals to :s flags.
22097 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22099         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22100         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22101         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22103 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22105         * flags.h: Don't include flag-types.h or options.h.
22106         * opts-common.c: Adjust includes.
22107         * opts-global.c: Likewise.
22108         * common/config/epiphany/epiphany-common.c: Likewise.
22110 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22112         PR target/66818
22113         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22114         for IA MCU.
22116 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22118         PR target/66817
22119         * config/i386/i386.c (ix86_return_in_memory): Return true
22120         if int_size_in_bytes returns negative for IA MCU.
22122 2015-07-09  Marek Polacek  <polacek@redhat.com>
22124         PR tree-optimization/66718
22125         * Makefile.in (OBJS): Add gimple-laddress.o.
22126         * passes.def: Schedule pass_laddress.
22127         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22128         * tree-pass.h (make_pass_laddress): Declare.
22129         * gimple-laddress.c: New file.
22131 2015-07-09  Richard Biener  <rguenther@suse.de>
22133         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22135 2015-07-09  Richard Biener  <rguenther@suse.de>
22137         PR tree-optimization/66807
22138         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22140 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
22142         * function.c (stack_protect_epilogue): Use if rather than switch for
22143         check targetm.have_stack_protect_test.
22145 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22147         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22148         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22149         * config/arc/arc.h: Likewise.
22150         * config/arm/arm.h: Likewise.
22151         * config/bfin/bfin.h: Likewise.
22152         * config/epiphany/epiphany.h: Likewise.
22153         * config/frv/frv.h: Likewise.
22154         * config/ia64/ia64.h: Likewise.
22155         * config/iq2000/iq2000.h: Likewise.
22156         * config/lm32/lm32.h: Likewise.
22157         * config/m32r/m32r.h: Likewise.
22158         * config/mcore/mcore.h: Likewise.
22159         * config/mep/mep.h: Likewise.
22160         * config/microblaze/microblaze.h: Likewise.
22161         * config/mips/mips.h: Likewise.
22162         * config/mmix/mmix.h: Likewise.
22163         * config/mn10300/mn10300.h: Likewise.
22164         * config/nds32/nds32.h: Likewise.
22165         * config/nios2/nios2.h: Likewise.
22166         * config/pa/pa.h: Likewise.
22167         * config/rl78/rl78.h: Likewise.
22168         * config/sh/sh.h: Likewise.
22169         * config/sparc/sparc.h: Likewise.
22170         * config/stormy16/stormy16.h: Likewise.
22171         * config/tilegx/tilegx.h: Likewise.
22172         * config/tilepro/tilepro.h: Likewise.
22173         * config/v850/v850.h: Likewise.
22174         * config/xtensa/xtensa.h: Likewise.
22175         * doc/tm.texi: Regenerate.
22176         * doc/tm.texi.in: Adjust.
22177         * combine.c (simplify_set): Likewise.
22178         (simplify_comparison): Likewise.
22179         * expr.c (store_constructor): Likewise.
22180         * internal-fn.c (expand_arith_overflow): Likewise.
22181         * reload.c (push_reload): Likewise.
22182         (find_reloads): Likewise.
22183         (find_reloads_subreg_address): Likewise.
22184         * reload1.c (eliminate_regs_1): Likewise.
22185         * rtlanal.c (nonzero_bits1): Likewise.
22186         (num_sign_bit_copies1): Likewise.
22187         * simplify-rtx.c (simplify_truncation): Likewise.
22189 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22191         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22192         of AUTO_INC_DEC with the preprocessor.
22193         * combine.c (combine_instructions): Likewise.
22194         (can_combine_p): Likewise.
22195         (try_combine): Likewise.
22196         * emit-rtl.c (try_split): Likewise.
22197         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22198         * lower-subreg.c (resolve_simple_move): Likewise.
22199         * lra.c (update_inc_notes): Likewise.
22200         * recog.c (asm_operand_ok): Likewise.
22201         (constrain_operands): Likewise.
22202         * regrename.c (scan_rtx_address): Likewise.
22203         * reload.c (update_auto_inc_notes): Likewise.
22204         (reg_inc_found_and_valid_p): Likewise.
22205         * reload1.c (reload): Likewise.
22206         (emit_input_reload_insns): Likewise.
22207         (delete_output_reload): Likewise.
22208         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22209         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22211 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22213         * rtl.h: Always define AUTO_INC_DEC.
22214         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22215         * combine.c (combine_instructions): Likewise.
22216         (can_combine_p): Likewise.
22217         (try_combine): Likewise.
22218         * emit-rtl.c (try_split): Likewise.
22219         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22220         * lower-subreg.c (resolve_simple_move): Likewise.
22221         * lra.c (update_inc_notes): Likewise.
22222         * recog.c (asm_operand_ok): Likewise.
22223         (constrain_operands): Likewise.
22224         * regrename.c (scan_rtx_address): Likewise.
22225         * reload.c (update_auto_inc_notes): Likewise.
22226         (find_equiv_reg): Likewise.
22227         * reload1.c (reload): Likewise.
22228         (reload_as_needed): Likewise.
22229         (choose_reload_regs): Likewise.
22230         (emit_input_reload_insns): Likewise.
22231         (delete_output_reload): Likewise.
22232         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22233         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22235 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22237         * combine.c (can_combine_def_p): Don't check the value of
22238         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22239         (combinable_i3pat): Likewise.
22240         (mark_used_regs_combine): Likewise.
22241         * regrename.c (rename_chains): Likewise.
22242         * reload.c (find_reloads_address): Likewise.
22243         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22245 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22247         * combine.c (update_rsp_from_reg_equal): Don't check if
22248         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22249         (reg_nonzero_bits_for_combine): Likewise.
22250         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22251         1.
22252         * config/frv/frv.h: Likewise.
22253         * config/lm32/lm32.h: Likewise.
22254         * config/mep/mep.h: Likewise.
22255         * config/mips/mips.h: Likewise.
22256         * config/rs6000/rs6000.h: Likewise.
22257         * config/sh/sh.h: Likewise.
22258         * config/tilegx/tilegx.h (enum reg_class): Likewise.
22259         * config/tilepro/tilepro.h: Likewise.
22260         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22261         * doc/tm.texi: Regenerate.
22262         * doc/tm.texi.in: Adjust.
22263         * rtlanal.c (nonzero_bits1): Likewise.
22265 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22267         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22268         with the preprocessor.
22269         (combine_instructions): Likewise.
22270         (try_combine): Likewise.
22271         (subst): Likewise.
22272         (distribute_notes): Likewise.
22274 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22276         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22277         defined.
22278         (simplify_set): Likewise.
22279         * cse.c (cse_insn): Likewise.
22280         * fold-const.c (fold_single_bit_test): Likewise.
22281         (fold_unary_loc): Likewise.
22282         * postreload.c (reload_cse_simplify_set): Likewise.
22283         (reload_cse_simplify_operands): Likewise.
22285 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
22287         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22288         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22290 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
22292         PR target/66746
22293         * config/i386/x86intrin.h: Include <adxintrin.h> even if
22294         __iamcu__ is defined.
22296 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22298         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22300 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
22302         PR target/66523
22303         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22304         names from preservation.
22306 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
22308         PR target/66806
22309         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22310         change for IAMCU.
22311         (function_arg_advance_32): Don't pass vectors in registers for
22312         IAMCU.
22313         (function_arg_32): Likewise.
22314         (ix86_return_in_memory): Don't return vectors in registers for
22315         IAMCU.
22317 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
22319         PR middle-end/66334
22320         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22321         hard regno live at the start of BB with incoming abnormal edges.
22322         * lra-lives.c (process_bb_lives): Ditto.
22324 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
22326         PR libgomp/65099
22327         * config/nvptx/mkoffload.c (main): Create an offload image only in
22328         64-bit configurations.
22330 2015-07-08  Martin Liska  <mliska@suse.cz>
22332         PR bootstrap/66744
22333         * tree-sra.c (create_access_1): Call ctor without brackets.
22334         (create_artificial_child_access): Likewise.
22336 2015-07-08  Richard Biener  <rguenther@suse.de>
22338         PR tree-optimization/66793
22339         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22340         Properly split the block after stmts ending it.
22342 2015-07-08  Richard Biener  <rguenther@suse.de>
22344         PR tree-optimization/66794
22345         * passes.c (execute_function_todo): Assert that post-dominators
22346         are not computed.
22347         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22348         Free post-dominators.
22350 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22352         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22353         with early exit.
22355 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22357         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22358         more than or equal 8 and less than 32 when optimizing for size.
22360 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22362         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22363         COSTS_N_INSNS (1) and increment it appropriately throughout the
22364         function.
22366 2015-07-08  Richard Biener  <rguenther@suse.de>
22368         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22370 2015-07-08  Alan Modra  <amodra@gmail.com>
22372         * target.def (rtx_costs): Remove "code" param, add "mode".
22373         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22374         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
22375         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22376         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
22377         call.  Track mode when given in rtx.
22378         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
22379         (default_address_cost): Pass Pmode to rtx_cost.
22380         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22381         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22382         with NULL set.
22383         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
22384         (notreg_cost): Add mode param.  Use it.
22385         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
22386         mode param and pass to set_src_cost.  Update all calls.
22387         (hash_scan_set): Formatting.
22388         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22389         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22390         * hooks.h: Ditto.
22391         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22392         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22393         emit_store_flag): Update set_src_cost and rtx_cost calls.
22394         * auto-inc-dec.c (attempt_change): Likewise.
22395         * calls.c (precompute_register_parameters): Likewise.
22396         * combine.c (expand_compound_operation, make_extraction,
22397         force_to_mode, distribute_and_simplify_rtx): Likewise.
22398         * dojump.c (prefer_and_bit_test): Likewise.
22399         * dse.c (find_shift_sequence): Likewise.
22400         * expr.c (compress_float_constant): Likewise.
22401         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22402         * ifcvt.c (noce_try_sign_mask): Likewise.
22403         * loop-doloop.c (doloop_optimize): Likewise.
22404         * loop-invariant.c (create_new_invariant): Likewise.
22405         * lower-subreg.c (shift_cost, compute_costs): Likewise.
22406         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22407         lshift_cheap_p): Likewise.
22408         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22409         try_replace_in_use, reload_cse_move2add): Likewise.
22410         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22411         Likewise.
22412         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22413         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22414         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22415         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22416         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22417         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
22418         to rtx_cost calls.
22419         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22420         * config/arc/arc.c (arc_rtx_costs): Likewise.
22421         * config/arm/arm.c (arm_rtx_costs): Likewise.
22422         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22423         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22424         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22425         * config/cris/cris.c (cris_rtx_costs): Likewise.
22426         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22427         * config/frv/frv.c (frv_rtx_costs): Likewise.
22428         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22429         * config/i386/i386.c (ix86_rtx_costs): Likewise.
22430         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22431         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22432         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22433         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22434         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22435         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22436         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22437         * config/mep/mep.c (mep_rtx_cost): Likewise.
22438         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22439         * config/mips/mips.c (mips_rtx_costs): Likewise.
22440         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22441         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22442         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22443         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22444         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22445         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22446         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22447         * config/pa/pa.c (hppa_rtx_costs): Likewise.
22448         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22449         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22450         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22451         * config/s390/s390.c (s390_rtx_costs): Likewise.
22452         * config/sh/sh.c (sh_rtx_costs): Likewise.
22453         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22454         * config/spu/spu.c (spu_rtx_costs): Likewise.
22455         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22456         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22457         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22458         * config/v850/v850.c (v850_rtx_costs): Likewise.
22459         * config/vax/vax.c (vax_rtx_costs): Likewise.
22460         * config/visium/visium.c (visium_rtx_costs): Likewise.
22461         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22462         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22463         "code" param, and pass as outer_code to first rtx_cost call.  Pass
22464         mode to rtx_cost calls.
22465         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22466         calls.
22467         (aarch64_rtx_costs_wrapper): Update.
22468         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22469         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22470         rtx_cost calls.
22471         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22472         and rtx_cost calls.
22473         (avr_operand_rtx_cost): Similarly.
22474         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22475         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22476         * config/mips/mips.c (mips_stack_address_p): Comment typo.
22477         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22478         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22479         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22480         rtx_cost.
22481         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22482         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22483         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22484         * doc/tm.texi: Regenerate.
22486 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
22488         * tree-core.h: Include symtab.h.
22489         * rtl.h: Include hard-reg-set.h but not flags.h.
22490         (HARD_CONST): Remove condition compilation involving HARD_CONST since
22491         hard-reg-set.h is always included.
22492         * regs.h: Don't include hard-reg-set.h or rtl.h.
22493         * cfg.h: Include dominance.h.
22494         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22495         * backend.h: New.  Aggregate commonly used backend header files.
22496         * gimple-ssa.h: Don't include tree-hasher.h.
22497         * ssa.h: New.  Aggregate commonly used SSA header files.
22498         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22499         * sel-sched-ir.h: Flatten includes.
22500         * lra-int.h: Flatten completely.
22501         * sel-sched-dump.h: Flatten includes.
22502         * ira-int.h: Flatten includes.
22503         * gimple-streamer.h: Remove all includes.
22504         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22505         * resource.h: Flatten hard-reg-set.h and df.h.
22506         * sched-int.h: Flatten insn-arrt.h and df.h.
22507         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22508         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22509         * genattrtab.c (write_header): Adjust generated includes.
22510         * genautomata.c (main): Likewise.
22511         * genconditions.c (write-header): Likewise.
22512         * genemit.c (main): Likewise.
22513         * gengtype.c (open_base_files): Likewise.
22514         * genopinit.c (main): Likewise.
22515         * genoutput.c (output_prologue): Likewise.
22516         * genpeep.c (main): Likewise.
22517         * genpreds.c (write_insn_preds_c): Likewise.
22518         * genrecog.c (write_header): Likewise.
22519         * alias.c: Adjust includes.
22520         * asan.c: Likewise.
22521         * attribs.c: Likewise.
22522         * auto-inc-dec.c: Likewise.
22523         * auto-profile.c: Likewise.
22524         * bb-reorder.c: Likewise.
22525         * bt-load.c: Likewise.
22526         * builtins.c: Likewise.
22527         * caller-save.c: Likewise.
22528         * calls.c: Likewise.
22529         * ccmp.c: Likewise.
22530         * cfg.c: Likewise.
22531         * cfganal.c: Likewise.
22532         * cfgbuild.c: Likewise.
22533         * cfgcleanup.c: Likewise.
22534         * cfgexpand.c: Likewise.
22535         * cfghooks.c: Likewise.
22536         * cfgloop.c: Likewise.
22537         * cfgloopanal.c: Likewise.
22538         * cfgloopmanip.c: Likewise.
22539         * cfgrtl.c: Likewise.
22540         * cgraph.c: Likewise.
22541         * cgraphbuild.c: Likewise.
22542         * cgraphclones.c: Likewise.
22543         * cgraphunit.c: Likewise.
22544         * cilk-common.c: Likewise.
22545         * combine-stack-adj.c: Likewise.
22546         * combine.c: Likewise.
22547         * compare-elim.c: Likewise.
22548         * convert.c: Likewise.
22549         * coverage.c: Likewise.
22550         * cppbuiltin.c: Likewise.
22551         * cprop.c: Likewise.
22552         * cse.c: Likewise.
22553         * cselib.c: Likewise.
22554         * data-streamer-in.c: Likewise.
22555         * data-streamer-out.c: Likewise.
22556         * data-streamer.c: Likewise.
22557         * dbxout.c: Likewise.
22558         * dce.c: Likewise.
22559         * ddg.c: Likewise.
22560         * debug.c: Likewise.
22561         * df-core.c: Likewise.
22562         * df-problems.c: Likewise.
22563         * df-scan.c: Likewise.
22564         * dfp.c: Likewise.
22565         * dojump.c: Likewise.
22566         * dominance.c: Likewise.
22567         * domwalk.c: Likewise.
22568         * double-int.c: Likewise.
22569         * dse.c: Likewise.
22570         * dumpfile.c: Likewise.
22571         * dwarf2asm.c: Likewise.
22572         * dwarf2cfi.c: Likewise.
22573         * dwarf2out.c: Likewise.
22574         * emit-rtl.c: Likewise.
22575         * et-forest.c: Likewise.
22576         * except.c: Likewise.
22577         * explow.c: Likewise.
22578         * expmed.c: Likewise.
22579         * expr.c: Likewise.
22580         * final.c: Likewise.
22581         * fixed-value.c: Likewise.
22582         * fold-const.c: Likewise.
22583         * function.c: Likewise.
22584         * fwprop.c: Likewise.
22585         * gcc-plugin.h: Likewise.
22586         * gcse-common.c: Likewise.
22587         * gcse.c: Likewise.
22588         * generic-match-head.c: Likewise.
22589         * ggc-page.c: Likewise.
22590         * gimple-builder.c: Likewise.
22591         * gimple-expr.c: Likewise.
22592         * gimple-fold.c: Likewise.
22593         * gimple-iterator.c: Likewise.
22594         * gimple-low.c: Likewise.
22595         * gimple-match-head.c: Likewise.
22596         * gimple-pretty-print.c: Likewise.
22597         * gimple-ssa-isolate-paths.c: Likewise.
22598         * gimple-ssa-strength-reduction.c: Likewise.
22599         * gimple-streamer-in.c: Likewise.
22600         * gimple-streamer-out.c: Likewise.
22601         * gimple-walk.c: Likewise.
22602         * gimple.c: Likewise.
22603         * gimplify-me.c: Likewise.
22604         * gimplify.c: Likewise.
22605         * godump.c: Likewise.
22606         * graph.c: Likewise.
22607         * graphite-blocking.c: Likewise.
22608         * graphite-dependences.c: Likewise.
22609         * graphite-interchange.c: Likewise.
22610         * graphite-isl-ast-to-gimple.c: Likewise.
22611         * graphite-optimize-isl.c: Likewise.
22612         * graphite-poly.c: Likewise.
22613         * graphite-scop-detection.c: Likewise.
22614         * graphite-sese-to-poly.c: Likewise.
22615         * graphite.c: Likewise.
22616         * haifa-sched.c: Likewise.
22617         * hw-doloop.c: Likewise.
22618         * ifcvt.c: Likewise.
22619         * init-regs.c: Likewise.
22620         * internal-fn.c: Likewise.
22621         * ipa-chkp.c: Likewise.
22622         * ipa-comdats.c: Likewise.
22623         * ipa-cp.c: Likewise.
22624         * ipa-devirt.c: Likewise.
22625         * ipa-icf-gimple.c: Likewise.
22626         * ipa-icf.c: Likewise.
22627         * ipa-inline-analysis.c: Likewise.
22628         * ipa-inline-transform.c: Likewise.
22629         * ipa-inline.c: Likewise.
22630         * ipa-polymorphic-call.c: Likewise.
22631         * ipa-profile.c: Likewise.
22632         * ipa-prop.c: Likewise.
22633         * ipa-pure-const.c: Likewise.
22634         * ipa-ref.c: Likewise.
22635         * ipa-reference.c: Likewise.
22636         * ipa-split.c: Likewise.
22637         * ipa-utils.c: Likewise.
22638         * ipa-visibility.c: Likewise.
22639         * ipa.c: Likewise.
22640         * ira-build.c: Likewise.
22641         * ira-color.c: Likewise.
22642         * ira-conflicts.c: Likewise.
22643         * ira-costs.c: Likewise.
22644         * ira-emit.c: Likewise.
22645         * ira-lives.c: Likewise.
22646         * ira.c: Likewise.
22647         * jump.c: Likewise.
22648         * langhooks.c: Likewise.
22649         * lcm.c: Likewise.
22650         * loop-doloop.c: Likewise.
22651         * loop-init.c: Likewise.
22652         * loop-invariant.c: Likewise.
22653         * loop-iv.c: Likewise.
22654         * loop-unroll.c: Likewise.
22655         * lower-subreg.c: Likewise.
22656         * lra-assigns.c: Likewise.
22657         * lra-coalesce.c: Likewise.
22658         * lra-constraints.c: Likewise.
22659         * lra-eliminations.c: Likewise.
22660         * lra-lives.c: Likewise.
22661         * lra-remat.c: Likewise.
22662         * lra-spills.c: Likewise.
22663         * lra.c: Likewise.
22664         * lto-cgraph.c: Likewise.
22665         * lto-compress.c: Likewise.
22666         * lto-opts.c: Likewise.
22667         * lto-section-in.c: Likewise.
22668         * lto-section-out.c: Likewise.
22669         * lto-streamer-in.c: Likewise.
22670         * lto-streamer-out.c: Likewise.
22671         * lto-streamer.c: Likewise.
22672         * mcf.c: Likewise.
22673         * mode-switching.c: Likewise.
22674         * modulo-sched.c: Likewise.
22675         * omega.c: Likewise.
22676         * omp-low.c: Likewise.
22677         * optabs.c: Likewise.
22678         * opts-global.c: Likewise.
22679         * passes.c: Likewise.
22680         * plugin.c: Likewise.
22681         * postreload-gcse.c: Likewise.
22682         * postreload.c: Likewise.
22683         * predict.c: Likewise.
22684         * print-rtl.c: Likewise.
22685         * print-tree.c: Likewise.
22686         * profile.c: Likewise.
22687         * real.c: Likewise.
22688         * realmpfr.c: Likewise.
22689         * recog.c: Likewise.
22690         * ree.c: Likewise.
22691         * reg-stack.c: Likewise.
22692         * regcprop.c: Likewise.
22693         * reginfo.c: Likewise.
22694         * regrename.c: Likewise.
22695         * regstat.c: Likewise.
22696         * reload.c: Likewise.
22697         * reload1.c: Likewise.
22698         * reorg.c: Likewise.
22699         * resource.c: Likewise.
22700         * rtl-chkp.c: Likewise.
22701         * rtlanal.c: Likewise.
22702         * rtlhooks.c: Likewise.
22703         * sanopt.c: Likewise.
22704         * sched-deps.c: Likewise.
22705         * sched-ebb.c: Likewise.
22706         * sched-rgn.c: Likewise.
22707         * sched-vis.c: Likewise.
22708         * sdbout.c: Likewise.
22709         * sel-sched-dump.c: Likewise.
22710         * sel-sched-ir.c: Likewise.
22711         * sel-sched.c: Likewise.
22712         * sese.c: Likewise.
22713         * shrink-wrap.c: Likewise.
22714         * simplify-rtx.c: Likewise.
22715         * stack-ptr-mod.c: Likewise.
22716         * stmt.c: Likewise.
22717         * stor-layout.c: Likewise.
22718         * store-motion.c: Likewise.
22719         * stringpool.c: Likewise.
22720         * symtab.c: Likewise.
22721         * target-globals.c: Likewise.
22722         * targhooks.c: Likewise.
22723         * toplev.c: Likewise.
22724         * tracer.c: Likewise.
22725         * trans-mem.c: Likewise.
22726         * tree-affine.c: Likewise.
22727         * tree-browser.c: Likewise.
22728         * tree-call-cdce.c: Likewise.
22729         * tree-cfg.c: Likewise.
22730         * tree-cfgcleanup.c: Likewise.
22731         * tree-chkp-opt.c: Likewise.
22732         * tree-chkp.c: Likewise.
22733         * tree-chrec.c: Likewise.
22734         * tree-complex.c: Likewise.
22735         * tree-data-ref.c: Likewise.
22736         * tree-dfa.c: Likewise.
22737         * tree-diagnostic.c: Likewise.
22738         * tree-dump.c: Likewise.
22739         * tree-eh.c: Likewise.
22740         * tree-emutls.c: Likewise.
22741         * tree-if-conv.c: Likewise.
22742         * tree-inline.c: Likewise.
22743         * tree-into-ssa.c: Likewise.
22744         * tree-iterator.c: Likewise.
22745         * tree-loop-distribution.c: Likewise.
22746         * tree-nested.c: Likewise.
22747         * tree-nrv.c: Likewise.
22748         * tree-object-size.c: Likewise.
22749         * tree-outof-ssa.c: Likewise.
22750         * tree-parloops.c: Likewise.
22751         * tree-phinodes.c: Likewise.
22752         * tree-predcom.c: Likewise.
22753         * tree-pretty-print.c: Likewise.
22754         * tree-profile.c: Likewise.
22755         * tree-scalar-evolution.c: Likewise.
22756         * tree-sra.c: Likewise.
22757         * tree-ssa-address.c: Likewise.
22758         * tree-ssa-alias.c: Likewise.
22759         * tree-ssa-ccp.c: Likewise.
22760         * tree-ssa-coalesce.c: Likewise.
22761         * tree-ssa-copy.c: Likewise.
22762         * tree-ssa-copyrename.c: Likewise.
22763         * tree-ssa-dce.c: Likewise.
22764         * tree-ssa-dom.c: Likewise.
22765         * tree-ssa-dse.c: Likewise.
22766         * tree-ssa-forwprop.c: Likewise.
22767         * tree-ssa-ifcombine.c: Likewise.
22768         * tree-ssa-live.c: Likewise.
22769         * tree-ssa-loop-ch.c: Likewise.
22770         * tree-ssa-loop-im.c: Likewise.
22771         * tree-ssa-loop-ivcanon.c: Likewise.
22772         * tree-ssa-loop-ivopts.c: Likewise.
22773         * tree-ssa-loop-manip.c: Likewise.
22774         * tree-ssa-loop-niter.c: Likewise.
22775         * tree-ssa-loop-prefetch.c: Likewise.
22776         * tree-ssa-loop-unswitch.c: Likewise.
22777         * tree-ssa-loop.c: Likewise.
22778         * tree-ssa-math-opts.c: Likewise.
22779         * tree-ssa-operands.c: Likewise.
22780         * tree-ssa-phiopt.c: Likewise.
22781         * tree-ssa-phiprop.c: Likewise.
22782         * tree-ssa-pre.c: Likewise.
22783         * tree-ssa-propagate.c: Likewise.
22784         * tree-ssa-reassoc.c: Likewise.
22785         * tree-ssa-sccvn.c: Likewise.
22786         * tree-ssa-scopedtables.c: Likewise.
22787         * tree-ssa-sink.c: Likewise.
22788         * tree-ssa-strlen.c: Likewise.
22789         * tree-ssa-structalias.c: Likewise.
22790         * tree-ssa-tail-merge.c: Likewise.
22791         * tree-ssa-ter.c: Likewise.
22792         * tree-ssa-threadedge.c: Likewise.
22793         * tree-ssa-threadupdate.c: Likewise.
22794         * tree-ssa-uncprop.c: Likewise.
22795         * tree-ssa-uninit.c: Likewise.
22796         * tree-ssa.c: Likewise.
22797         * tree-ssanames.c: Likewise.
22798         * tree-stdarg.c: Likewise.
22799         * tree-streamer-in.c: Likewise.
22800         * tree-streamer-out.c: Likewise.
22801         * tree-streamer.c: Likewise.
22802         * tree-switch-conversion.c: Likewise.
22803         * tree-tailcall.c: Likewise.
22804         * tree-vect-data-refs.c: Likewise.
22805         * tree-vect-generic.c: Likewise.
22806         * tree-vect-loop-manip.c: Likewise.
22807         * tree-vect-loop.c: Likewise.
22808         * tree-vect-patterns.c: Likewise.
22809         * tree-vect-slp.c: Likewise.
22810         * tree-vect-stmts.c: Likewise.
22811         * tree-vectorizer.c: Likewise.
22812         * tree-vrp.c: Likewise.
22813         * tree.c: Likewise.
22814         * tsan.c: Likewise.
22815         * ubsan.c: Likewise.
22816         * valtrack.c: Likewise.
22817         * value-prof.c: Likewise.
22818         * var-tracking.c: Likewise.
22819         * varasm.c: Likewise.
22820         * varpool.c: Likewise.
22821         * vmsdbgout.c: Likewise.
22822         * vtable-verify.c: Likewise.
22823         * web.c: Likewise.
22824         * wide-int.cc: Likewise.
22825         * xcoffout.c: Likewise.
22826         * config/aarch64/aarch64-builtins.c: Likewise.
22827         * config/aarch64/aarch64.c: Likewise.
22828         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22829         * config/alpha/alpha.c: Likewise.
22830         * config/arc/arc.c: Likewise.
22831         * config/arm/aarch-common.c: Likewise.
22832         * config/arm/arm-builtins.c: Likewise.
22833         * config/arm/arm-c.c: Likewise.
22834         * config/arm/arm.c: Likewise.
22835         * config/avr/avr-c.c: Likewise.
22836         * config/avr/avr-log.c: Likewise.
22837         * config/avr/avr.c: Likewise.
22838         * config/bfin/bfin.c: Likewise.
22839         * config/c6x/c6x.c: Likewise.
22840         * config/cr16/cr16.c: Likewise.
22841         * config/cris/cris.c: Likewise.
22842         * config/darwin-c.c: Likewise.
22843         * config/darwin.c: Likewise.
22844         * config/epiphany/epiphany.c: Likewise.
22845         * config/epiphany/mode-switch-use.c: Likewise.
22846         * config/epiphany/resolve-sw-modes.c: Likewise.
22847         * config/fr30/fr30.c: Likewise.
22848         * config/frv/frv.c: Likewise.
22849         * config/ft32/ft32.c: Likewise.
22850         * config/h8300/h8300.c: Likewise.
22851         * config/i386/i386-c.c: Likewise.
22852         * config/i386/i386.c: Likewise.
22853         * config/i386/msformat-c.c: Likewise.
22854         * config/i386/winnt-cxx.c: Likewise.
22855         * config/i386/winnt-stubs.c: Likewise.
22856         * config/i386/winnt.c: Likewise.
22857         * config/ia64/ia64-c.c: Likewise.
22858         * config/ia64/ia64.c: Likewise.
22859         * config/iq2000/iq2000.c: Likewise.
22860         * config/lm32/lm32.c: Likewise.
22861         * config/m32c/m32c-pragma.c: Likewise.
22862         * config/m32c/m32c.c: Likewise.
22863         * config/m32r/m32r.c: Likewise.
22864         * config/m68k/m68k.c: Likewise.
22865         * config/mcore/mcore.c: Likewise.
22866         * config/mep/mep-pragma.c: Likewise.
22867         * config/mep/mep.c: Likewise.
22868         * config/microblaze/microblaze-c.c: Likewise.
22869         * config/microblaze/microblaze.c: Likewise.
22870         * config/mips/mips.c: Likewise.
22871         * config/mmix/mmix.c: Likewise.
22872         * config/mn10300/mn10300.c: Likewise.
22873         * config/moxie/moxie.c: Likewise.
22874         * config/msp430/msp430-c.c: Likewise.
22875         * config/msp430/msp430.c: Likewise.
22876         * config/nds32/nds32-cost.c: Likewise.
22877         * config/nds32/nds32-fp-as-gp.c: Likewise.
22878         * config/nds32/nds32-intrinsic.c: Likewise.
22879         * config/nds32/nds32-isr.c: Likewise.
22880         * config/nds32/nds32-md-auxiliary.c: Likewise.
22881         * config/nds32/nds32-memory-manipulation.c: Likewise.
22882         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22883         * config/nds32/nds32-predicates.c: Likewise.
22884         * config/nds32/nds32.c: Likewise.
22885         * config/nios2/nios2.c: Likewise.
22886         * config/nvptx/nvptx.c: Likewise.
22887         * config/pa/pa.c: Likewise.
22888         * config/pdp11/pdp11.c: Likewise.
22889         * config/rl78/rl78-c.c: Likewise.
22890         * config/rl78/rl78.c: Likewise.
22891         * config/rs6000/rs6000-c.c: Likewise.
22892         * config/rs6000/rs6000.c: Likewise.
22893         * config/rx/rx.c: Likewise.
22894         * config/s390/s390-c.c: Likewise.
22895         * config/s390/s390.c: Likewise.
22896         * config/sh/sh-c.c: Likewise.
22897         * config/sh/sh-mem.cc: Likewise.
22898         * config/sh/sh.c: Likewise.
22899         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22900         * config/sh/sh_treg_combine.cc: Likewise.
22901         * config/sol2-c.c: Likewise.
22902         * config/sol2-cxx.c: Likewise.
22903         * config/sol2-stubs.c: Likewise.
22904         * config/sol2.c: Likewise.
22905         * config/sparc/sparc-c.c: Likewise.
22906         * config/sparc/sparc.c: Likewise.
22907         * config/spu/spu-c.c: Likewise.
22908         * config/spu/spu.c: Likewise.
22909         * config/stormy16/stormy16.c: Likewise.
22910         * config/tilegx/mul-tables.c: Likewise.
22911         * config/tilegx/tilegx-c.c: Likewise.
22912         * config/tilegx/tilegx.c: Likewise.
22913         * config/tilepro/mul-tables.c: Likewise.
22914         * config/tilepro/tilepro-c.c: Likewise.
22915         * config/tilepro/tilepro.c: Likewise.
22916         * config/v850/v850-c.c: Likewise.
22917         * config/v850/v850.c: Likewise.
22918         * config/vax/vax.c: Likewise.
22919         * config/visium/visium.c: Likewise.
22920         * config/vms/vms-c.c: Likewise.
22921         * config/vms/vms.c: Likewise.
22922         * config/vxworks.c: Likewise.
22923         * config/xtensa/xtensa.c: Likewise.
22925 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
22927         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22928         Remove operand constraints.  Change operand 2 predicate to
22929         nonmemory operand.  Limit const_int values to mode bitsize.  Only
22930         allow const_int values less than 32 when optimizing for size.
22931         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22932         Remove operand constraints.
22933         (*bt<mode>): Use SImode for const_int values less than 32.
22934         (regmode): Remove mode attribute.
22936 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
22938         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22939         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22940           moxie_legitimate_address_p): New functions.
22941           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22943 2015-07-07  Tom de Vries  <tom@codesourcery.com>
22945         PR tree-optimization/66642
22946         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22947         header comment.  Rename split_edge variable to edge_at_split.  Split
22948         exit edge to create new loop exit bb.  Insert loop exit phis in new
22949         loop exit bb.
22951 2015-07-07  Tom de Vries  <tom@codesourcery.com>
22953         * tree-cfg.c (get_virtual_phi): New function.
22954         * tree-cfg.h (get_virtual_phi): Declare.
22955         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22956         (rewrite_virtuals_into_loop_closed_ssa): New function.
22957         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22958         Declare.
22959         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22960         (transform_to_exit_first_loop_alt): Use
22961         rewrite_virtuals_into_loop_closed_ssa.
22963 2015-07-07  Richard Biener  <rguenther@suse.de>
22965         * fold-const.c (fold_binary_loc): Move
22966         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22967         * match.pd: ... here.
22968         Add (X * C1) % C2 -> 0 simplification pattern derived from
22969         extract_muldiv_1.
22971 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
22973         PR target/66780
22974         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22975         change for target/65249.
22977 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
22979         * symtab.c (address_matters_1): Fix typo in comment above.
22980         (can_increase_alignment_p): Likewise.
22982 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22984         * function.c (free_after_compilation): Clear PROP_cfg in
22985         f->curr_properties.
22987 2015-07-07  Richard Biener  <rguenther@suse.de>
22989         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22990         add which use to.
22991         (add_control_edge): Remove excessive vertical space in dumping.
22992         (process_ssa_edge_worklist): Simulate at most one statement and
22993         return whether we did.  Do not simulate PHIs if they are in a
22994         BB not yet simulated.
22995         (ssa_propagate): Adjust to always drain the BB worklist whenever
22996         a BB is available there, likewise the VARYING edges list before
22997         the interesting edge list.
22999 2015-07-07  Christian Bruel  <christian.bruel@st.com>
23001         PR target/52144
23002         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23004 2015-07-07  Richard Biener  <rguenther@suse.de>
23006         PR middle-end/66739
23007         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23008         A - B.
23010 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23012         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
23013         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
23014         Copy operand 0 to a temporary if !ext_register_operand.  Remove
23015         ancient extract_bit_field workaround.
23016         (insv<mode>_1): Rename from mov<mode>_insv_1.
23017         (*insvqi): Rename from *movqi_insv_2.
23018         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23019         for renamed insvsi_1.
23020         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23022 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
23024         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
23025         call to nvptx_reorg_subreg.
23027 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
23029         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23030         * graphite-dependencies.c, graphite-interchange.c,
23031         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23032         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23033         Likewise.
23035 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
23037         * match.pd: Remove element_mode inside HONOR_*.
23038         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23039         (~X | X -> -1, ~X ^ X -> -1): Merge.
23040         * tree.c (build_each_one_cst): New function.
23041         * tree.h (build_each_one_cst): Likewise.
23043 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23045         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23046         PROCESSOR_IAMCU.
23048 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
23050         * config.gcc <mips*-*-*>: Add fused-madd.opt.
23051         * config/mips/mips.opt (mfused-madd): Remove.
23052         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23053         * config/mips/mips.h (TARGET_MIPS8000): New.
23054         (ISA_HAS_FP_MADD4_MSUB4): Remove.
23055         (ISA_HAS_FP_MADDF_MSUBF): Remove.
23056         (ISA_HAS_FP_MADD3_MSUB3): Remove.
23057         (ISA_HAS_NMADD4_NMSUB4): Remove.
23058         (ISA_HAS_NMADD3_NMSUB3): Remove.
23059         (ISA_HAS_FUSED_MADD4): New.
23060         (ISA_HAS_UNFUSED_MADD4): New.
23061         (ISA_HAS_FUSED_MADDF): New.
23062         (ISA_HAS_FUSED_MADD3): New.
23063         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23064         (*fma<mode>4_madd3) New.
23065         (*fma<mode>4_madd4) New.
23066         (*fma<mode>4_maddf) New.
23067         (fms<mode>4) New.
23068         (*fms<mode>4_msub3) New.
23069         (*fms<mode>4_msub4) New.
23070         (fnma<mode>4) New.
23071         (*fnma<mode>4_nmadd3) New.
23072         (*fnma<mode>4_nmadd4) New.
23073         (fnms<mode>4) New.
23074         (*fnms<mode>4_nmsub3) New.
23075         (*fnms<mode>4_nmsub4) New.
23076         (*madd4<mode>) Modify to be unfused only.
23077         (*msub4<mode>) Modify to be unfused only.
23078         (*nmadd4<mode>) Modify to be unfused only.
23079         (*nmsub4<mode>) Modify to be unfused only.
23080         (*madd3<mode>) Remove.
23081         (*msub3<mode>) Remove.
23082         (*nmadd3<mode>) Remove.
23083         (*nmsub3<mode>) Remove.
23084         (*nmadd3<mode>_fastmath) Remove.
23085         (*nmsub3<mode>_fastmath) Remove.
23086         (*nmadd4<mode>_fastmath) Update condition.
23087         (*nmsub4<mode>_fastmath) Update condition.
23089 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23091         PR target/65956
23092         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23093         alignment attribute, exploring one level down for records and arrays.
23095 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23097         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
23098         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
23099         Copy operand 1 to a temporary if !ext_register_operand.  Remove
23100         ancient extract_bit_field workaround.
23101         (*extv<mode>): Rename from *mov<mode>_extv_1.
23102         (*extvqi): Rename from *movqi_extv_1.
23103         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
23104         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
23105         to a temporary if !ext_register_operand.  Remove ancient
23106         extract_bit_field workaround.
23107         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23108         (*extzvqi): Rename from *movqi_extzv_2.
23109         (*testqi_ext_3): Remove modes from const_int_operand predicated
23110         operands.  Add "n" constraint.
23111         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23112         operand.  Add "J" constraint.
23113         (*btsq, *btrq, *btcq peephole2s): Remove mode from
23114         const_0_to_63 predicated operand.
23115         (regmode): New insn attribute.
23116         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
23117         to nonmemory_operand.  Use regmode insn attribute.
23118         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23119         (*jcc_bt<mode>_mask): Remove mode from operand 3.
23120         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23121         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23122         operands.  Use "N" constraint instead of "n".
23124 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23126         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23128 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23130         PR target/66749
23131         * config/i386/i386.c (iamcu_cost): New.
23132         (m_IAMCU): Likewise.
23133         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23134         (processor_target_table): Add an entry for "iamcu".
23135         (processor_alias_table): Likewise.
23136         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23137         (ix86_adjust_cost): Likewise.
23138         (ia32_multipass_dfa_lookahead): Likewise.
23139         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23140         * config/i386/x86-tune.def: Updated for m_IAMCU.
23142 2015-07-06  Richard Biener  <rguenther@suse.de>
23144         PR tree-optimization/66772
23145         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23146         values are available in the PHI node BB when there are
23147         still unexecutable edges.
23149 2015-07-06  Richard Biener  <rguenther@suse.de>
23151         PR tree-optimization/66767
23152         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23153         Make sure to build the alignment test on a SSA name without
23154         final alignment info valid only if the alignment test
23155         evaluates to true.
23157 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
23159         PR target/66620
23160         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23161         loop start when inserting LSETUP.
23163 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23165         PR target/53383
23166         * config/i386/i386.c (ix86_option_override_internal): Allow
23167         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23169 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23171         * read-md.c (decimal_string): Rename to ...
23172         (md_decimal_string): ... this.
23173         (handle_enum): Reflect this.
23175 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23177         PR target/66731
23178         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23180 2015-07-06  Richard Biener  <rguenther@suse.de>
23182         PR middle-end/66759
23183         * match.pd: Add missing constraint of y to REAL_CST in
23184         REAL_CST - x CMP y to y - CST CMP x simplification.
23186 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
23188         PR tree-optimization/66757
23189         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23191 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
23192             Sandra Loosemore <sandra@codesourcery.com>
23194         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23195         Delete extern declaration.
23196         (gprel_constant_p): Add extern declaration.
23197         * config/nios2/constraints.md ("S"): Use gprel_constant_p
23198         instead of nios2_symbol_ref_in_small_data_p.
23199         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23200         (nios2_symbol_ref_in_small_data_p): Make static.
23201         (gprel_constant_p): Make non-static.
23203 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
23205         * doc/fragments.texi (Target Fragment): Convert debian.org
23206         link to use https.
23207         * doc/install.texi (Configuration): Ditto.
23209 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
23211         PR tree-optimization/66718
23212         * tree-vect-stmts.c (vectorizable_call): Replace uses of
23213         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23215         PR tree-optimization/66718
23216         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23217         vectorizable_load, vectorizable_condition): Move vectype,
23218         nunits, ncopies computation after checking what kind of statement
23219         stmt is.
23221 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23223         * target-insns.def (extv, extzv, insv): New targetm instruction
23224         patterns.
23225         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23226         interface.
23227         * recog.c (simplify_while_replacing): Likewise.
23229 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23231         * target-insns.def (doloop_begin, doloop_end): New targetm
23232         instruction patterns.
23233         * loop-init.c: Include target.h.
23234         (pass_loop2::gate): Use the new targetm patterns instead of
23235         HAVE_*/gen_* interface.
23236         (pass_rtl_doloop::gate): Likewise.
23237         (pass_rtl_doloop::execute): Remove preprocessor condition.
23238         * hw-doloop.c: Build unconditionally.
23239         * loop-doloop.c: Likewise.
23240         (doloop_optimize): Use the new targetm patterns instead of
23241         HAVE_*/gen_* interface.
23242         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23243         * modulo-sched.c (doloop_register_get): Likewise.
23245 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23247         * target-insns.def (clear_cache): New targetm instruction pattern.
23248         * builtins.c (expand_builtin___clear_cache): Use it instead of
23249         HAVE_*/gen_* interface.
23251 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23253         * target-insns.def (allocate_stack, check_stack, probe_stack)
23254         (probe_stack_address, split_stack_prologue, split_stack_space_check):
23255         New targetm instruction patterns.
23256         * explow.c (allocate_dynamic_stack_space): Use them instead of
23257         HAVE_*/gen_* interface.
23258         (emit_stack_probe): Likewise.
23259         (probe_stack_range): Likewise.
23260         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23262 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23264         * target-insns.def (stack_protect_set, stack_protect_test): New
23265         targetm instruction patterns.
23266         * cfgexpand.c (stack_protect_prologue): Use them instead of
23267         HAVE_*/gen_* interface.
23268         * function.c (stack_protect_epilogue): Likewise.
23270 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23272         * expr.h (gen_move_insn_uncast): Delete.
23273         * expr.c (gen_move_insn_uncast): Delete.
23275 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23277         * target-insns.def (restore_stack_block, restore_stack_function)
23278         (restore_stack_nonlocal, save_stack_block, save_stack_function)
23279         (save_stack_nonlocal): New targetm instruction patterns.
23280         * builtins.c (expand_builtin_apply): Use them instead of
23281         HAVE_*/gen_* interface.
23282         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23284 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23286         * target-insns.def (trap): New targetm instruction pattern.
23287         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23288         interface.
23289         * explow.c (allocate_dynamic_stack_space): Likewise.
23290         * ifcvt.c (find_if_header): Likewise.
23292 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23294         * target-insns.def (prefetch): New targetm instruction pattern.
23295         * tree-ssa-loop-prefetch.c: Include targeth.
23296         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23297         of HAVE_*/gen_* interface.
23298         * builtins.c (expand_builtin_prefetch): Likewise.
23299         * toplev.c (process_options): Likewise.
23301 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23303         * target-insns.def (untyped_call, untyped_return): New targetm
23304         instruction patterns.
23305         * builtins.c (expand_builtin_apply): Use them instead of
23306         HAVE_*/gen_* interface.
23307         (result_vector): Define unconditionally.
23309 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23311         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23312         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23313         (nonlocal_goto_receiver): New targetm instruction patterns.
23314         * builtins.c (expand_builtin_setjmp_setup): Use them instead
23315         of HAVE_*/gen_* interface.
23316         (expand_builtin_setjmp_receiver): Likewise.
23317         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23318         * except.c (expand_dw2_landing_pad_for_region): Likewise.
23320 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23322         * target.def: Add code_for_* hooks.
23323         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23324         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23325         * target-insns.def (casesi, tablejump): New targetm instruction
23326         patterns.
23327         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23328         (do_tablejump): Likewise.
23329         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23330         (expand_sjlj_dispatch_table): Likewise.
23331         * targhooks.c (default_case_values_threshold): Likewise.
23333 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
23335         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23336         Use rtx_insn * instead of rtx.
23337         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23338         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23339         (nios2_call_tls_get_addr): Likewise.
23340         (nios2_emit_expensive_div): Likewise.
23341         (nios2_emit_move_sequence): Change return type to bool.
23342         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23343         Change return type to bool.
23345 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23347         PR target/66747
23348         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23350 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
23352         PR target/66114
23353         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23354         of register_operand.  Remove constraint.
23356 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
23358         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23359         the first argument.
23361 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
23363         * attribs.c (decl_attributes): Guard inform with the return value
23364         of the preceding warning.
23366 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23368         * doc/invoke.texi (moverride): Move to correct section.
23370 2015-07-03  Richard Biener  <rguenther@suse.de>
23372         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23373         Copy from tree.c
23374         (dt_operand::gen_gimple_expr): After valueizing operands
23375         re-canonicalize operand order for commutative tree codes.
23377 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
23379         PR target/66746.
23380         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23381         is defined.
23382         (__crc32w): Likewise.
23383         (__crc32d): Likewise.
23384         (__rdpmc): Likewise.
23385         (__rdtscp): Likewise.
23386         (_rdpmc): Likewise.
23387         (_rdtscp): Likewise.
23388         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23389         is defined.
23391 2015-07-03  Richard Biener  <rguenther@suse.de>
23393         * fold-const.c (fold_mathfn_compare): Remove.
23394         (fold_inf_compare): Likewise.
23395         (fold_comparison): Move floating point comparison simplifications...
23396         * match.pd: ... to patterns here.  Introduce simple_comparisons
23397         operator list and use it for patterns formerly in fold_comparison.
23399 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
23401         PR tree-optimization/66119
23402         * toplev.c (process_options): Don't set up default values for
23403         the sra_max_scalarization_size_{speed,size} parameters.
23404         * tree-sra (analyze_all_variable_accesses): If no values
23405         have been set for the sra_max_scalarization_size_{speed,size}
23406         parameters, call get_move_ratio to get target defaults.
23408 2015-07-03  Richard Biener  <rguenther@suse.de>
23410         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23411         * match.pd: ... here.
23413 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
23415         PR target/37072
23416         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23417         is not actually the default on FreeBSD.
23419 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23421         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23422         definition.
23423         (CMPGE_8HI): Likewise.
23424         (CMPGE_4SI): Likewise.
23425         (CMPGE_2DI): Likewise.
23426         (CMPGE_U16QI): Likewise.
23427         (CMPGE_U8HI): Likewise.
23428         (CMPGE_U4SI): Likewise.
23429         (CMPGE_U2DI): Likewise.
23430         (CMPLE_16QI): Likewise.
23431         (CMPLE_8HI): Likewise.
23432         (CMPLE_4SI): Likewise.
23433         (CMPLE_2DI): Likewise.
23434         (CMPLE_U16QI): Likewise.
23435         (CMPLE_U8HI): Likewise.
23436         (CMPLE_U4SI): Likewise.
23437         (CMPLE_U2DI): Likewise.
23438         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23439         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23440         ALTIVEC_BUILTIN_VEC_CMPLE.
23441         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23442         floating-point vector modes.
23443         (vector_nlt<mode>): New define_expand.
23444         (vector_nltu<mode>): Likewise.
23445         (vector_ngt<mode>): Likewise.
23446         (vector_ngtu<mode>): Likewise.
23448 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
23450         PR rtl-optimization/66706
23451         * combine.c (make_compound_operation): If an AND of SUBREG of
23452         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23454 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
23456         * tree-pass.h (make_pass_ch_vect): New.
23457         * passes.def: Add pass_ch_vect just before pass_if_conversion.
23459         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23460         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23461         make_pass_ch_vect): New.
23462         (pass_ch): Extend ch_base.
23464         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23465         (ch_base::copy_headers): ...here.
23467 2015-07-02  Richard Biener  <rguenther@suse.de>
23469         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23470         * fold-const.c (get_pointer_modulus_and_residue): Remove.
23471         (fold_binary_loc): Implement (T)ptr & CST in terms of
23472         get_pointer_alignment_1.
23473         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23474         Make sure to build the alignment test on a SSA name without
23475         final alignment info valid only after the prologue.
23477 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
23479         * config/cris/cris.md ("epilogue"): Remove condition.
23480         ("prologue"): Ditto.
23482 2015-07-02  Richard Biener  <rguenther@suse.de>
23484         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23485         parameter to record a condition that is false.
23486         (record_conditions): When recording an extra NE_EXPR that is
23487         true also record a EQ_EXPR that is false.
23489 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
23491         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23492         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23493         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
23494         (set_iv, find_interesting_uses_address, add_candidate_1): New
23495         argument to alloc_iv.
23496         (find_interesting_uses_op, find_interesting_uses_cond): Don't
23497         duplicate struct iv.
23498         (free_loop_data): Don't free struct iv explicitly.
23499         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23501 2015-07-01  DJ Delorie  <dj@redhat.com>
23503         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23504         (LIB_SPEC): Add.
23505         (SUPPORTS_DISCRIMINATOR): Define.
23507 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23509         PR bootstrap/66685
23510         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23511         there are no CALLs in the same pattern.
23513 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23515         PR rtl-optimization/61047
23516         * rtlanal.c (get_initial_register_offset): New function.
23517         (rtx_addr_can_trap_p_1): Check offsets of stack references.
23519 2015-07-01  Richard Biener  <rguenther@suse.de>
23521         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23522         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23523         ~X CMP C -> X CMP' ~C to ...
23524         * match.pd: ... patterns here.
23526 2015-07-01  Nick Clifton  <nickc@redhat.com>
23528         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23529         a 16-bit value into a 20-bit memory slot.
23531 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23533         * doc/sourcebuild.texi (AArch64-specific attributes): Document
23534         "aarch64_tiny", "aarch64_small", "aarch64_large",
23535         "aarch64_little_endian", "aarch64_big_endian".
23537 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23539         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23540         Document "aarch64_small_fpic".
23542 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
23544         * configure.ac: Add check for aarch64 assembler -fpic relocation
23545         modifier support.
23546         * configure: Regenerate.
23547         * config.in: Regenerate.
23548         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23549         to -fPIC if not support of -fpic relocation modifier in assembler.
23551 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
23553         PR bootstrap/66685
23554         * rtl.c (classify_insn): Handle returns in PARALLELs.
23556 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
23558         PR middle-end/66633
23559         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23560         to true if the function is nested and if not optimizing.
23561         (convert_local_omp_clauses): Initialize need_frame to true if the
23562         function contains nested functions and if not optimizing.
23564 2015-07-01  Richard Biener  <rguenther@suse.de>
23566         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23567         (X & Y) ^ Y -> ~X & Y transforms to ...
23568         * match.pd: ... here.
23570 2015-07-01  Richard Biener <rguenther@suse.de>
23572         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23573         of converts to avoid uninteresting noise from the conversion
23574         simplifying patterns.
23576 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
23578         * config/c6x/c6x.c (try_rename_operands): Do not depend on
23579         gcc_assert evaluating its argument for side-effect.
23581 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
23583         PR target/64833
23584         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23585         flag_pic is set.
23587 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23589         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23590         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23591         (hash_scc): Add this_ref_p and ref_p parameters and pass them
23592         to the inner DFS walk.
23594 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23596         * target-insns.def (jump): New targetm instruction pattern.
23597         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23598         instead of gen_jump.
23599         (fix_up_crossing_landing_pad): Likewise.
23600         (add_labels_and_missing_jumps): Likewise.
23601         (fix_crossing_conditional_branches): Likewise.
23602         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23603         (force_nonfallthru_and_redirect): Likewise.
23604         * cse.c (cse_insn): Likewise.
23605         * expmed.c (expand_divmod): Likewise.
23606         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23607         * haifa-sched.c (init_before_recovery): Likewise.
23608         (sched_create_recovery_edges): Likewise.
23609         * ifcvt.c (find_cond_trap): Likewise.
23610         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23611         (expand_float, expand_fix): Likewise.
23612         * stmt.c (emit_jump): Likewise.
23614 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23616         * defaults.h (HAVE_load_multiple, gen_load_multiple)
23617         (HAVE_store_multiple, gen_store_multiple): Delete.
23618         * target-insns.def (load_multiple, store_multiple): New targetm
23619         instruction patterns.
23620         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23621         of HAVE_*/gen_* interface.
23623 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23625         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23626         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23627         (gen_mem_signal_fence): Delete.
23628         * target-insns.def (mem_signal_fence, mem_thread_fence)
23629         (memory_barrier): New targetm instruction patterns.
23630         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23631         interface.
23632         (expand_mem_signal_fence): Likewise.
23634 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
23636         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23637         * target-insns.def (epilogue, prologue, sibcall_prologue): New
23638         targetm instruction patterns.
23639         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23640         interface.
23641         * calls.c (expand_call): Likewise.
23642         * cfgrtl.c (cfg_layout_finalize): Likewise.
23643         * df-scan.c (df_get_entry_block_def_set): Likewise.
23644         (df_get_exit_block_use_set): Likewise.
23645         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23646         * final.c (final_start_function): Likewise.
23647         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23648         (reposition_prologue_and_epilogue_notes): Likewise.
23649         * reorg.c (find_end_label): Likewise.
23650         * toplev.c (process_options): Likewise.
23652 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
23654         * typed-splay-tree.h: New file.
23656 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
23658         PR debug/66691
23659         * lra-int.h (lra_substitute_pseudo): Add a parameter.
23660         (lra_substitute_pseudo_within_insn): Ditto.
23661         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
23662         of constant.
23663         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
23664         to lra_substitute_pseudo.
23665         * lra-lives.c (process_bb_lives): Add an argument to
23666         lra_substitute_pseudo_within_insn call.
23667         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23668         argument to lra_substitute_pseudo and
23669         lra_substitute_pseudo_within_insn calls.
23670         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23672 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23674         * configure: Regenerated.
23676 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23678         * config.gcc: Support i[34567]86-*-elfiamcu target.
23679         * config/i386/iamcu.h: New.
23680         * config/i386/i386.opt: Add -miamcu.
23681         * doc/invoke.texi: Document -miamcu.
23682         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
23683         off x87/MMX/SSE/AVX codegen for -miamcu.
23684         * config/i386/i386-c.c (ix86_target_macros_internal): Define
23685         __iamcu/__iamcu__ for -miamcu.
23686         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23687         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23688         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23689         * config/i386/i386.c (ix86_option_override_internal): Ignore and
23690         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
23691         MCU by default.  Default long double to 64-bit for Intel MCU.
23692         Turn on -freg-struct-return for Intel MCU.  Issue an error when
23693         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23694         AVX is turned on.
23695         (function_arg_advance_32): Pass value whose size is no larger
23696         than 8 bytes in registers for Intel MCU.
23697         (function_arg_32): Likewise.
23698         (ix86_return_in_memory): Return value whose size is no larger
23699         than 8 bytes in registers for Intel MCU.
23700         (iamcu_alignment): New function.
23701         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23702         true.
23703         (ix86_local_alignment): Don't increase alignment for Intel MCU.
23704         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23705         true.
23707 2015-06-30  Marek Polacek  <polacek@redhat.com>
23709         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
23710         both operands of the resulting expression.
23712         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
23713         the final expression with the operand's type and then convert
23714         it to the type of the expression.
23716 2015-06-30  Richard Biener  <rguenther@suse.de>
23718         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23719         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23720         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23721         * match.pd: ... to patterns here.
23723 2015-06-30  Richard Biener  <rguenther@suse.de>
23725         PR tree-optimization/66704
23726         * tree-vect-data-refs.c (vect_setup_realignment): Use
23727         make_ssa_name for non-SSA name source.
23729 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
23731         PR middle-end/66702
23732         * omp-low.c (simd_clone_adjust): Handle addressable linear
23733         or uniform parameters or non-gimple type uniform parameters.
23735 2015-06-30  Richard Biener  <rguenther@suse.de>
23737         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23738         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23739         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23740         * match.pd: ... here.
23741         Add a few cases of A - B -> A + (-B) when B "easily" negates.
23742         Move (x & y) | x -> x and friends before
23743         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23745 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
23747         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23748         -mfix-ut699 is not specified.
23749         (leon3_load): Rename into...
23750         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
23751         is specified.
23753 2015-06-30  Marek Polacek  <polacek@redhat.com>
23755         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23756         * match.pd: ... here.
23758 2015-06-30  Richard Biener  <rguenther@suse.de>
23760         * target-insns.def (canonicalize_funcptr_for_compare): Add.
23761         * fold-const.c (build_range_check): Replace uses of
23762         HAVE_canonicalize_funcptr_for_compare.
23763         (fold_widened_comparison): Likewise.
23764         (fold_sign_changed_comparison): Likewise.
23765         * dojump.c: Include "target.h".
23766         (do_compare_and_jump): Replace uses of
23767         HAVE_canonicalize_funcptr_for_compare and
23768         gen_canonicalize_funcptr_for_compare.
23769         * expr.c (do_store_flag): Likewise.
23771 2015-06-30  Tom de Vries  <tom@codesourcery.com>
23773         PR tree-optimization/66652
23774         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23775         max_loop_iterations to determine if nit + 1 overflows.
23777 2015-06-30  Richard Biener  <rguenther@suse.de>
23779         * tree-vrp.c (register_edge_assert_for_2): Also register
23780         asserts for dominating conversion results.
23782 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
23784         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23785         field in struct iv.
23787 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
23789         PR target/66509
23790         * configure.ac: Fix filds and fildq test for 64-bit.
23791         * configure: Regenerated.
23793 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
23795         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23796         (nvptx_reorg): Here.  Keep the non-subreg pieces.
23798 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
23800         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23801         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23803 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
23805         * config/i386/i386.md (*jcc_1): Use %! in asm template.
23806         Set attribute "length_nobnd" instead of "length".
23807         (*jcc_2): Ditto.
23808         (jump): Ditto.
23809         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23811 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
23813         * config/nios2/nios2.c (nios2_delegitimize_address): Make
23814         assert less restrictive.
23816 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23818         PR fortran/66605
23819         * cgraphunit.c (cgraph_node::finalize_function): Do not call
23820         do_warn_unused_parameter.
23821         * function.c (do_warn_unused_parameter): Move from here.
23822         * function.h (do_warn_unused_parameter): Do not declare.
23824 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23826         PR target/65697
23827         * gcc.target/arm/armv-sync-comp-swap.c: New.
23828         * gcc.target/arm/armv-sync-op-acquire.c: New.
23829         * gcc.target/arm/armv-sync-op-full.c: New.
23830         * gcc.target/arm/armv-sync-op-release.c: New.
23832 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23834         PR target/65697
23835         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23836         initial acquire barrier with final barrier.
23838 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23840         PR target/65697
23841         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23842         initial acquire barrier with final barrier.
23844 2015-06-29  Richard Henderson  <rth@redhat.com>
23846         * config/i386/constraints.md (Bf): New constraint.
23847         * config/i386/i386-c.c (ix86_target_macros): Define
23848         __GCC_ASM_FLAG_OUTPUTS__.
23849         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23850         as flags outputs.
23851         * doc/extend.texi (FlagOutputOperands): Document them.
23853 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
23855         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23856         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23857         unspec name.
23858         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23859         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23860         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23861         (aarch64_symbol_context): Ditto.
23862         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23863         and use new pattern name.
23864         (aarch64_expand_mov_immediate): Ditto.
23865         (aarch64_print_operand): Ditto.
23866         (aarch64_classify_tls_symbol): Ditto.
23868 2015-06-29  Marek Polacek  <polacek@redhat.com>
23869             Marc Glisse  <marc.glisse@inria.fr>
23871         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23872         * match.pd: ... pattern here.
23874 2015-06-29  Tom de Vries  <tom@codesourcery.com>
23876         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23877         function structure.
23879 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
23881         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23882         feature description, split out the native option, add a link to
23883         the feature documentation, rearrange and slightly rewrite text.
23884         (Aarch64 options, -mcpu): Likewise.
23885         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
23886         +rdma implies Adv. SIMD.
23888 2015-06-29  Marek Polacek  <polacek@redhat.com>
23890         PR c/66322
23891         * function.c (stack_protect_epilogue): Remove a cast to int.
23892         * doc/invoke.texi: Update -Wswitch-bool description.
23894 2015-06-29  Richard Biener  <rguenther@suse.de>
23896         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23897         * fold-const.c (fold_binary_loc): Move &A - &B simplification
23898         via ptr_difference_const ...
23899         * match.pd: ... here.
23900         When matching (X ^ Y) == Y also match with swapped operands.
23902 2015-06-29  Richard Biener  <rguenther@suse.de>
23904         * lto-streamer.h (LTO_major_version): Bump to 5.
23906 2015-06-29  Richard Biener  <rguenther@suse.de>
23908         PR tree-optimization/66677
23909         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23910         STMT_VINFO_VEC_STMT clobbering less strict.
23912 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
23914         PR middle-end/64130
23915         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23916         division, compute max and min when value ranges for dividend and
23917         divisor are available.
23919 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
23920             Sandra Loosemore <sandra@codesourcery.com>
23922         * regrename.h (regrename_do_replace): Change to return bool.
23923         * regrename.c (rename_chains): Check return value of
23924         regname_do_replace.
23925         (regrename_do_replace): Re-validate the modified insns and
23926         return bool status.
23927         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23928         Update to match rename_chains changes.
23929         * config/c6x/c6x.c (try_rename_operands): Assert that
23930         regrename_do_replace returns true.
23932 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
23934         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23935         operand 2 here.  Use copy_addr_to_reg to copy non-index
23936         register operand 2 to a temporary.
23937         (<mode>_stx): Ditto for operand 1.
23938         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23939         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23940         (ix86_store_bounds): Ditto.
23942 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
23944         * print-tree.c (print_node) [TREE_VEC]: Print its length.
23946 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
23948         * gimple.c (gimple_call_set_fndecl): Remove.
23949         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23950         build1_loc directly instead of build_fold_addr_expr_loc.
23952 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
23954         * hash-map.h (hash_map::traverse): Use the definition of the
23955         Key typedef rather than the typedef itself.
23957 2015-06-26  Martin Jambor  <mjambor@suse.cz>
23959         PR debug/66301
23960         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23961         NULL instead of calling dump_enabled_p.
23963 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23965         * config/aarch64/aarch64.opt: (override): New.
23966         * doc/invoke.texi (override): Document.
23967         * config/aarch64/aarch64.c (aarch64_flag_desc): New
23968         (aarch64_fusible_pairs): Likewise.
23969         (aarch64_tuning_flags): Likewise.
23970         (aarch64_tuning_override_function): Likewise.
23971         (aarch64_tuning_override_functions): Likewise.
23972         (aarch64_parse_one_option_token): Likewise.
23973         (aarch64_parse_boolean_options): Likewise.
23974         (aarch64_parse_fuse_string): Likewise.
23975         (aarch64_parse_tune_string): Likewise.
23976         (aarch64_parse_one_override_token): Likewise.
23977         (aarch64_parse_override_string): Likewise.
23978         (aarch64_override_options): Parse the -override string if it
23979         is present.
23981 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
23983         * config/aarch64/aarch64-protos.h (tune_params): Remove
23984         const from members.
23985         (aarch64_tune_params): Remove const, change to no longer be
23986         a pointer.
23987         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23988         change to no longer be a pointer, initialize to generic_tunings.
23989         (aarch64_min_divisions_for_recip_mul): Change dereference of
23990         aarch64_tune_params to member access.
23991         (aarch64_reassociation_width): Likewise.
23992         (aarch64_rtx_mult_cost): Likewise.
23993         (aarch64_address_cost): Likewise.
23994         (aarch64_branch_cost): Likewise.
23995         (aarch64_rtx_costs): Likewise.
23996         (aarch64_register_move_cost): Likewise.
23997         (aarch64_memory_move_cost): Likewise.
23998         (aarch64_sched_issue_rate): Likewise.
23999         (aarch64_builtin_vectorization_cost): Likewise.
24000         (aarch64_override_options): Take a copy of the selected tuning
24001         struct in to aarch64_tune_params, rather than just setting
24002         a pointer, change dereferences of aarch64_tune_params to member
24003         accesses.
24004         (aarch64_override_options_after_change): Change dereferences of
24005         aarch64_tune_params to member access.
24006         (aarch64_macro_fusion_p): Likewise.
24007         (aarch_macro_fusion_pair_p): Likewise.
24008         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24010 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24012         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24013         (aarch64_tune_flags): Likewise.
24014         (AARCH64_TUNE_FMA_STEERING): Likewise.
24015         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24016         to AARCH64_FL_USE_FMA_STEERING_PASS.
24017         (cortex-a57.cortex-a53): Likewise.
24018         (cortex-a72): Use cortexa72_tunings.
24019         (cortex-a72.cortex-a53): Likewise.
24020         (exynos-m1): Likewise.
24021         * config/aarch64/aarch64-protos.h (tune_params): Add
24022         a field: extra_tuning_flags.
24023         * config/aarch64/aarch64-tuning-flags.def: New.
24024         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24025         (aarch64_extra_tuning_flags): Likewise.
24026         (aarch64_tune_params): Declare here.
24027         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24028         (cortexa53_tunings): Likewise.
24029         (cortexa57_tunings): Likewise.
24030         (thunderx_tunings): Likewise.
24031         (xgene1_tunings): Likewise.
24032         (cortexa72_tunings): New.
24033         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24034          (gate): Check against aarch64_tune_params.
24035         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24036         aarch64-protos.h.
24038 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24040         * config/aarch64/aarch64-fusion-pairs.def: New.
24041         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24042         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24043         aarch64_fusion_pairs.
24044         (AARCH64_FUSE_MOV_MOVK): Likewise.
24045         (AARCH64_FUSE_ADRP_ADD): Likewise.
24046         (AARCH64_FUSE_MOVK_MOVK): Likewise.
24047         (AARCH64_FUSE_ADRP_LDR): Likewise.
24048         (AARCH64_FUSE_CMP_BRANCH): Likewise.
24050 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24052         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24053         SYMBOL_SMALL_GOT_28K.
24054         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24055         relocation modifiers.
24056         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24057         (ldr_got_small_28k_<mode>): New.
24058         (ldr_got_small_28k_sidi): New.
24059         * config/aarch64/iterators.md (got_modifier): New mode iterator.
24060         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24061         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24062         SYMBOL_SMALL_GOT_28K.
24063         (aarch64_rtx_costs): Add costs for new instruction sequences.
24064         (initialize_aarch64_code_model): Initialize new model.
24065         (aarch64_classify_symbol): Recognize new model and new symbol classification.
24066         (aarch64_asm_preferred_eh_data_format): Support new model.
24067         (aarch64_load_symref_appropriately): Generate new instruction
24068         sequences for -fpic.
24069         (TARGET_USE_PSEUDO_PIC_REG): New definition.
24070         (aarch64_use_pseudo_pic_reg): New function.
24072 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24074         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24075         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24076         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24077         (aarch64_expand_mov_immediate): Ditto.
24078         (aarch64_print_operand): Ditto.
24079         (aarch64_classify_symbol): Ditto.
24081 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
24083         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24085 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
24087         PR bootstrap/66638
24088         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24089         assertion failed.  Remove assertion itself.
24091 2015-06-26  Richard Biener  <rguenther@suse.de>
24093         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24094         and -A CMP CST -> A CMP -CST which is redundant with a pattern
24095         in match.pd.
24096         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24097         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24098         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24099         * match.pd: ... patterns here.
24101 2015-06-26  Marek Polacek  <polacek@redhat.com>
24103         * match.pd ((x | y) & ~(x & y) -> x ^ y,
24104         (x | y) & (~x ^ y) -> x & y): New patterns.
24106 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24108         * rtl.h (emit): Add an optional boolean parameter to control
24109         whether barriers are emitted.
24110         * emit-rtl.c (emit): Likewise.
24111         * gensupport.c (get_emit_function): Return null rather than "emit".
24112         * genemit.c (gen_emit_seq): Handle the null return value.
24113         Don't emit barriers after the final instruction in the sequence.
24114         * gentarget-def.c (main): Don't emit barriers after the instruction.
24116 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24118         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24119         TARGET_UNIFIED_ASM.
24121 2015-06-26  Richard Biener  <rguenther@suse.de>
24123         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24125 2015-06-26  Richard Biener  <rguenther@suse.de>
24127         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24128         irrespective on whether the inner operation has a single use
24129         of both off are constant.
24131 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
24132             Segher Boessenkool  <segher@kernel.crashing.org>
24134         PR target/66412
24135         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24136         before doing PUT_MODE or PUT_CODE on operands to avoid
24137         in-place RTX modification.
24139 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24141         * gentarget-def.c (def_target_insn): Cast return of strtol to
24142         unsigned int.
24144 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24146         * gimple.h (gimple_call_set_fn): Move inline function.
24147         * gimple.c (gimple_call_set_fn): Relocate here.
24149 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
24151         PR target/65979
24152         PR target/66611
24153         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24154         the replacement insn will work.
24156 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24158         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24159         by default.
24161 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24163         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24164         * cgraph.h: Include ipa-ref.h and plugin-api.h.
24165         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24166         (symtab_node::address_can_be_compared_p): Move function.
24167         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24168         definition here.
24169         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24170         * auto-profile.c: Likewise.
24171         * bb-reorder.c: Likewise.
24172         * builtins.c: Likewise.
24173         * calls.c: Likewise.
24174         * cfgexpand.c: Likewise.
24175         * cgraphbuild.c: Likewise.
24176         * cgraphclones.c: Likewise.
24177         * cgraphunit.c: Likewise.
24178         * combine.c: Likewise.
24179         * coverage.c: Likewise.
24180         * data-streamer-in.c: Likewise.
24181         * data-streamer-out.c: Likewise.
24182         * data-streamer.c: Likewise.
24183         * dbxout.c: Likewise.
24184         * dwarf2out.c: Likewise.
24185         * except.c: Likewise.
24186         * expr.c: Likewise.
24187         * final.c: Likewise.
24188         * fold-const.c: Likewise.
24189         * ggc-page.c: Likewise.
24190         * gimple-fold.c: Likewise.
24191         * gimple-iterator.c: Likewise.
24192         * gimple-pretty-print.c: Likewise.
24193         * gimple-streamer-in.c: Likewise.
24194         * gimple-streamer-out.c: Likewise.
24195         * gimple.c: Likewise.
24196         * gimplify.c: Likewise.
24197         * ipa-chkp.c: Likewise.
24198         * ipa-comdats.c: Likewise.
24199         * ipa-cp.c: Likewise.
24200         * ipa-devirt.c: Likewise.
24201         * ipa-icf-gimple.c: Likewise.
24202         * ipa-icf.c: Likewise.
24203         * ipa-inline-analysis.c: Likewise.
24204         * ipa-inline-transform.c: Likewise.
24205         * ipa-inline.c: Likewise.
24206         * ipa-polymorphic-call.c: Likewise.
24207         * ipa-profile.c: Likewise.
24208         * ipa-prop.c: Likewise.
24209         * ipa-pure-const.c: Likewise.
24210         * ipa-ref.c: Likewise.
24211         * ipa-reference.c: Likewise.
24212         * ipa-split.c: Likewise.
24213         * ipa-utils.c: Likewise.
24214         * ipa-visibility.c: Likewise.
24215         * ipa.c: Likewise.
24216         * langhooks.c: Likewise.
24217         * lto-cgraph.c: Likewise.
24218         * lto-compress.c: Likewise.
24219         * lto-opts.c: Likewise.
24220         * lto-section-in.c: Likewise.
24221         * lto-section-out.c: Likewise.
24222         * lto-streamer-in.c: Likewise.
24223         * lto-streamer-out.c: Likewise.
24224         * lto-streamer.c: Likewise.
24225         * omp-low.c: Likewise.
24226         * opts-global.c: Likewise.
24227         * passes.c: Likewise.
24228         * predict.c: Likewise.
24229         * print-tree.c: Likewise.
24230         * profile.c: Likewise.
24231         * ree.c: Likewise.
24232         * sanopt.c: Likewise.
24233         * stor-layout.c: Likewise.
24234         * symtab.c: Likewise.
24235         * toplev.c: Likewise.
24236         * trans-mem.c: Likewise.
24237         * tree-cfg.c: Likewise.
24238         * tree-chkp.c: Likewise.
24239         * tree-eh.c: Likewise.
24240         * tree-emutls.c: Likewise.
24241         * tree-inline.c: Likewise.
24242         * tree-nested.c: Likewise.
24243         * tree-parloops.c: Likewise.
24244         * tree-pretty-print.c: Likewise.
24245         * tree-profile.c: Likewise.
24246         * tree-sra.c: Likewise.
24247         * tree-ssa-alias.c: Likewise.
24248         * tree-ssa-live.c: Likewise.
24249         * tree-ssa-loop-ivcanon.c: Likewise.
24250         * tree-ssa-loop-ivopts.c: Likewise.
24251         * tree-ssa-pre.c: Likewise.
24252         * tree-ssa-sccvn.c: Likewise.
24253         * tree-ssa-strlen.c: Likewise.
24254         * tree-ssa-structalias.c: Likewise.
24255         * tree-streamer-in.c: Likewise.
24256         * tree-streamer-out.c: Likewise.
24257         * tree-streamer.c: Likewise.
24258         * tree-switch-conversion.c: Likewise.
24259         * tree-tailcall.c: Likewise.
24260         * tree-vect-data-refs.c: Likewise.
24261         * tree-vect-stmts.c: Likewise.
24262         * tree-vectorizer.c: Likewise.
24263         * tree.c: Likewise.
24264         * tsan.c: Likewise.
24265         * ubsan.c: Likewise.
24266         * value-prof.c: Likewise.
24267         * varasm.c: Likewise.
24268         * varpool.c: Likewise.
24269         * config/arm/arm.c: Likewise.
24270         * config/bfin/bfin.c: Likewise.
24271         * config/c6x/c6x.c: Likewise.
24272         * config/cris/cris.c: Likewise.
24273         * config/darwin-c.c: Likewise.
24274         * config/darwin.c: Likewise.
24275         * config/i386/i386.c: Likewise.
24276         * config/i386/winnt.c: Likewise.
24277         * config/microblaze/microblaze.c: Likewise.
24278         * config/mips/mips.c: Likewise.
24279         * config/rs6000/rs6000.c: Likewise.
24280         * config/rx/rx.c: Likewise.
24281         * config/s390/s390.c: Likewise.
24282         * config/tilegx/mul-tables.c: Likewise.
24284 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24286         * config/aarch64/aarch64.c, config/alpha/alpha.c,
24287         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24288         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24289         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24290         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24291         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24292         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24293         config/microblaze/microblaze.c, config/mips/mips.c,
24294         config/mmix/mmix.c, config/mn10300/mn10300.c,
24295         config/moxie/moxie.c, config/msp430/msp430.c,
24296         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24297         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24298         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24299         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24300         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24301         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24302         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24303         target-def.h include.
24304         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
24306 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24308         * Makefile.in (TARGET_DEF): Add target-insns.def.
24309         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24310         (build/gentarget-def.o): New rule.
24311         (genprogrtl): Add target-def.
24312         * target-insns.def, gentarget-def.c: New files.
24313         * target.def: Add targetm.have_* and targetm.gen_* hooks,
24314         based on the contents of target-insns.def.
24315         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24316         (HAVE_return, gen_return): Delete.
24317         * target-def.h: Include insn-target-def.h.
24318         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24319         instead of direct calls.  Rely on them to do the appropriate assertions.
24320         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
24321         (convert_jumps_to_returns): Use targetm interface instead of
24322         direct calls.
24323         (thread_prologue_and_epilogue_insns): Likewise.
24324         * reorg.c (find_end_label, dbr_schedule): Likewise.
24325         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24326         * shrink-wrap.c (convert_to_simple_return): Likewise.
24327         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24329 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24331         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24332         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24333         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24334         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24335         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24336         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24337         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24338         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24339         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24340         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24341         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24342         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24343         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24344         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24345         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24346         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24347         includes to end.
24349 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24351         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24352         (unbounded_int_hashmap_traits::key_type): Likewise.
24353         * hash-map.h (hash_map): Get the key type from the traits.
24354         * hash-traits.h (default_hash_traits): By default, inherit from the
24355         template parameter.
24356         * alias.c (alias_set_traits): Delete.
24357         (alias_set_entry_d::children): Use alias_set_hash as the first
24358         template parameter.
24359         (record_alias_subset): Update accordingly.
24360         * except.c (tree_hash_traits): Delete.
24361         (type_to_runtime_map): Use tree_hash as the first template parameter.
24362         (init_eh): Update accordingly.
24363         * genmatch.c (capture_id_map_hasher): Delete.
24364         (cid_map_t): Use nofree_string_hash as first template parameter.
24365         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24366         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24367         Use symbol_compare_hash as the first template parameter in
24368         subdivide_hash_map.
24369         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24370         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24371         template parameter.
24372         * passes.c (pass_registry_hasher): Delete.
24373         (name_to_pass_map): Use nofree_string_hash as the first template
24374         parameter.
24375         (register_pass_name): Update accordingly.
24376         * sanopt.c (sanopt_tree_map_traits): Delete.
24377         (sanopt_tree_triplet_map_traits): Delete.
24378         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24379         template parameter.
24380         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24381         the first template parameter.
24382         * sese.c (rename_map_hasher): Delete.
24383         (rename_map_type): Use tree_ssa_name_hash as the first template
24384         parameter.
24385         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24386         (function_summary::m_map): Use map_hash as the first template
24387         parameter.
24388         (function_summary::release): Update accordingly.
24389         * tree-if-conv.c (phi_args_hash_traits): Delete.
24390         (predicate_scalar_phi): Use tree_operand_hash as the first template
24391         parameter to phi_arg_map.
24392         * tree-inline.h (dependence_hasher): Delete.
24393         (copy_body_data::dependence_map): Use dependence_hash as the first
24394         template parameter.
24395         * tree-inline.c (remap_dependence_clique): Update accordingly.
24396         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24397         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24398         parameter.
24399         (addr_stridxptr): Update accordingly.
24400         * value-prof.c (profile_id_traits): Delete.
24401         (cgraph_node_map): Use profile_id_hash as the first template
24402         parameter.
24403         (init_node_map): Update accordingly.
24404         * config/alpha/alpha.c (string_traits): Delete.
24405         (machine_function::links): Use nofree_string_hash as the first
24406         template parameter.
24407         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24408         * config/m32c/m32c.c (pragma_traits): Delete.
24409         (pragma_htab): Use nofree_string_hash as the first template parameter.
24410         (m32c_note_pragma_address): Update accordingly.
24411         * config/mep/mep.c (pragma_traits): Delete.
24412         (pragma_htab): Use nofree_string_hash as the first template parameter.
24413         (mep_note_pragma_flag): Update accordingly.
24414         * config/mips/mips.c (mips16_flip_traits): Delete.
24415         (mflip_mips16_htab): Use nofree_string_hash as the first template
24416         parameter.
24417         (mflip_mips16_use_mips16_p): Update accordingly.
24418         (local_alias_traits): Delete.
24419         (mips16_local_aliases): Use nofree_string_hash as the first template
24420         parameter.
24421         (mips16_local_alias): Update accordingly.
24423 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24425         * hash-map-traits.h (default_hashmap_traits): Delete.
24427 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24429         * hash-map-traits.h (unbounded_hashmap_traits): New class.
24430         (unbounded_int_hashmap_traits): Likewise.
24431         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24433 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24435         * ipa-icf.h (symbol_compare_hash): New class.
24436         (symbol_compare_hashmap_traits): Use it.
24437         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24438         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24439         (mem_alloc_description::reverse_mem_map_t): Remove redundant
24440         default_hashmap_traits.
24441         * sanopt.c (sanopt_tree_triplet_hash): New class.
24442         (sanopt_tree_triplet_map_traits): Use it.
24444 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24446         * gengtype-parse.c (require_template_declaration): Allow '+' in
24447         template parameters.  Consolidate cases.
24448         * hash-traits.h (int_hash): New class.
24449         * alias.c (alias_set_hash): New structure.
24450         (alias_set_traits): Use it.
24451         * symbol-summary.h (function_summary::map_hash): New class.
24452         (function_summary::summary_hashmap_traits): Use it.
24453         * tree-inline.h (dependence_hash): New class.
24454         (dependence_hasher): Use it.
24455         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24456         * value-prof.c (profile_id_hash): New class.
24457         (profile_id_traits): Use it.
24459 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24461         * config/mips/mips.c (mips16_flip_traits): Use it.
24462         (local_alias_traits, mips16_local_aliases): Convert from a map of
24463         rtxes to a map of symbol names.
24464         (mips16_local_alias): Update accordingly.
24466 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24468         * hash-traits.h (string_hash, nofree_string_hash): New classes.
24469         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24470         * passes.c (pass_registry_hasher): Likewise.
24471         * config/alpha/alpha.c (string_traits): Likewise.
24472         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24473         * config/m32c/m32c.c (pragma_traits): Likewise.
24474         * config/mep/mep.c (pragma_traits): Likewise.
24476 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24478         * tree-hash-traits.h (tree_hash): New class.
24479         * except.c: Include tree-hash-traits.h.
24480         (tree_hash_traits): Use tree_hash.
24482 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24484         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24485         * sese.c: Include tree-hash-traits.h.
24486         (rename_map_hasher): Use tree_ssa_name_hasher.
24488 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24490         * tree-hash-traits.h (tree_decl_hash): New class.
24491         * tree-ssa-strlen.c: Include tree-hash-traits.h.
24492         (stridxlist_hash_traits): Use tree_decl_hash.
24494 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24496         * tree-hash-traits.h: New file.
24497         (tree_operand_hash): New class.
24498         * sanopt.c: Include tree-hash-traits.h.
24499         (sanopt_tree_map_traits): Use tree_operand_hash.
24500         * tree-if-conv.c: Include tree-hash-traits.h.
24501         (phi_args_hash_traits): Use tree_operand_hash.
24502         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24503         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24505 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24507         * hash-map-traits.h: Include hash-traits.h.
24508         (simple_hashmap_traits): New class.
24509         * mem-stats.h (hash_map): Change the default traits to
24510         simple_hashmap_traits<default_hash_traits<Key> >.
24512 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24514         * hash-table.h: Update comments.
24516 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24518         * hash-traits.h (default_hash_traits): New structure.
24519         * hash-set.h (default_hashset_traits): Delete.
24520         (hash_set): Use default_hash_traits<Key> instead of
24521         default_hashset_traits.  Delete hash_entry type and use Key directly.
24522         * ipa-devirt.c (pair_traits): Delete.
24523         (default_hash_traits <type_pair>): Override.
24524         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24525         (odr_types_equivalent_p, add_type_duplicate): Likewise.
24527 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24529         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24531 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24533         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24534         (has_is_empty, is_empty_helper): Delete.
24535         (has_mark_deleted, mark_deleted_helper): Delete.
24536         (has_mark_empty, mark_empty_helper): Delete.
24537         (hash_table::is_deleted): Call the Descriptor unconditionally.
24538         (hash_table::is_empty): Likewise.
24539         (hash_table::mark_deleted): Likewise.
24540         (hash_table::mark_empty): Likewise.
24542 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24544         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
24545         redundant typedefs and members.
24546         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
24547         redundant typedefs.
24548         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24549         * ipa-devirt.c (odr_name_hasher): Likewise.
24550         (polymorphic_call_target_hasher): Likewise.
24551         * ira-costs.c (cost_classes_hasher): Likewise.
24552         * statistics.c (stats_counter_hasher): Likewise.
24553         * trans-mem.c (log_entry_hasher): Likewise.
24554         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24555         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24556         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24557         * var-tracking.c (variable_hasher): Likewise.
24558         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24559         Remove redundant typedefs and members.
24561 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24563         * hash-traits.h (ggc_cache_hasher): Rename to...
24564         (ggc_cache_remove): ...this and remove typedefs.
24565         (ggc_cache_ptr_hash): New class.
24566         * hash-table.h: Update commentary.
24567         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24568         rather than ggc_cache_hasher.
24569         (const_wide_int_hasher, reg_attr_hasher): Likewise.
24570         (const_double_hasher, const_fixed_hasher): Likewise.
24571         * function.c (insn_cache_hasher): Likewise.
24572         * trans-mem.c (tm_wrapper_hasher): Likewise.
24573         * tree.h (tree_decl_map_cache_hasher): Likewise.
24574         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24575         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24576         * ubsan.c (tree_type_map_cache_hasher): Likewise.
24577         * varasm.c (tm_clone_hasher): Likewise.
24578         * config/i386/i386.c (dllimport_hasher): Likewise.
24579         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24580         (tree_hasher): Likewise.
24582 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24584         * hash-traits.h (ggc_hasher): Rename to...
24585         (ggc_remover): ...this and remove typedefs.
24586         (ggc_cache_hasher): Update accordingly.  Add typedefs.
24587         (ggc_ptr_hash): New class.
24588         * hash-table.h: Update comment.
24589         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24590         ggc_hasher.
24591         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24592         (tree_descriptor_hasher): Likewise.
24593         * cgraph.c (function_version_hasher): Likewise.
24594         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24595         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24596         (dw_loc_list_hasher, addr_hasher): Likewise.
24597         * function.h (used_type_hasher): Likewise.
24598         * function.c (temp_address_hasher): Likewise.
24599         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24600         * libfuncs.h (libfunc_hasher): Likewise.
24601         * lto-streamer.h (decl_state_hasher): Likewise.
24602         * optabs.c (libfunc_decl_hasher): Likewise.
24603         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24604         * varasm.c (section_hasher, object_block_hasher): Likewise.
24605         (const_rtx_desc_hasher): Likewise.
24606         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24607         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24609 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24611         * hash-traits.h (free_ptr_hash): New class.
24612         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24613         rather than typed_free_remove.  Remove redudant typedefs.
24614         (external_ref_hasher): Likewise.
24615         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24616         (ehspec_hasher): Likewise.
24617         * ggc-common.c (saving_hasher): Likewise.
24618         * gimplify.c (gimplify_hasher): Likewise.
24619         * haifa-sched.c (delay_i2_hasher): Likewise.
24620         * loop-invariant.c (invariant_expr_hasher): Likewise.
24621         * loop-iv.c (biv_entry_hasher): Likewise.
24622         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24623         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24624         * tree-cfg.c (locus_discrim_hasher): Likewise.
24625         * tree-eh.c (finally_tree_hasher): Likewise.
24626         * tree-into-ssa.c (var_info_hasher): Likewise.
24627         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24628         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24629         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24630         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24631         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24632         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24633         (shared_bitmap_hasher): Likewise.
24634         * tree-ssa-threadupdate.c (redirection_data): Likewise.
24635         * tree-vectorizer.h (peel_info_hasher): Likewise.
24636         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24637         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24639 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24641         * hash-table.h: Update comments.
24642         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24643         (nofree_ptr_hash): New class.
24644         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24645         than typed_noop_remove.  Remove redudant typedefs.
24646         * attribs.c (attribute_hasher): Likewise.
24647         * cfg.c (bb_copy_hasher): Likewise.
24648         * cselib.c (cselib_hasher): Likewise.
24649         * dse.c (invariant_group_base_hasher): Likewise.
24650         * dwarf2cfi.c (trace_info_hasher): Likewise.
24651         * dwarf2out.c (macinfo_entry_hasher): Likewise.
24652         (comdat_type_hasher, loc_list_hasher): Likewise.
24653         * gcse.c (pre_ldst_expr_hasher): Likewise.
24654         * genmatch.c (id_base): Likewise.
24655         * genrecog.c (test_pattern_hasher): Likewise.
24656         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24657         * haifa-sched.c (delay_i1_hasher): Likewise.
24658         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24659         * ipa-icf.h (congruence_class_group_hash): Likewise.
24660         * ipa-profile.c (histogram_hash): Likewise.
24661         * ira-color.c (allocno_hard_regs_hasher): Likewise.
24662         * lto-streamer.h (string_slot_hasher): Likewise.
24663         * lto-streamer.c (tree_entry_hasher): Likewise.
24664         * plugin.c (event_hasher): Likewise.
24665         * postreload-gcse.c (expr_hasher): Likewise.
24666         * store-motion.c (st_expr_hasher): Likewise.
24667         * tree-sra.c (uid_decl_hasher): Likewise.
24668         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24669         (ssa_name_var_hash): Likewise.
24670         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24671         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24672         * tree-ssa-pre.c (pre_expr_d): Likewise.
24673         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24674         * vtable-verify.h (registration_hasher): Likewise.
24675         * vtable-verify.c (vtbl_map_hasher): Likewise.
24676         * config/arm/arm.c (libcall_hasher): Likewise.
24677         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24678         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24679         * config/sol2.c (comdat_entry_hasher): Likewise.
24680         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24681         (print_fold_checksum, fold_checksum_tree): Likewise.
24682         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24683         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24684         (fold_build_call_array_loc): Likewise.
24685         * tree-ssa-ccp.c (gimple_htab): Likewise.
24686         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24687         rather than pointer_type.
24689 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24691         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24692         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24694 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24696         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24697         (ggc_hasher::ggc_mx): Likewise.
24698         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
24699         that duplicate ggc_hasher ones.
24701 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24703         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24704         (gt_cleare_cache): Check here for deleted and empty entries.
24705         Replace handle_cache_entry with a call to keep_cache_entry.
24706         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24707         (ggc_cache_hasher::keep_cache_entry): New function.
24708         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24709         (tm_wrapper_hasher::keep_cache_entry): New function.
24710         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24711         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24712         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24713         (type_cache_hasher::keep_cache_entry): New function.
24714         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24715         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24716         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24717         (tree_type_map_cache_hasher::keep_cache_entry): New function.
24718         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24719         (tm_clone_hasher::keep_cache_entry): New function.
24720         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24721         (dllimport_hasher::keep_cache_entry): New function.
24723 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24725         * hash-table.h: Include hash-traits.h.
24726         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24727         (ggc_cache_hasher): Move to...
24728         * hash-traits.h: ...this new file.
24730 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24732         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24733         struct cl_optimization.
24734         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24735         * tree.c (make_node_stat): Allocate cl_optimization struct.
24736         (copy_node_stat): Allocate and copy cl_optimization struct.
24738 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24740         * function.h (struct incoming_args): Move struct.
24741         (pass_by_reference, reference_callee_copied): Remove prototypes.
24742         * emit-rtl.h (struct incoming_args): Relocate struct here.
24743         * calls.h (pass_by_reference, reference_callee_copied): Relocate
24744         prototypes here.
24745         * function.c (pass_by_reference, reference_callee_copied): Move.
24746         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24747         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24748         * ipa-chkp.c: Include calls.h.
24750 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
24752         * alias.h (alias_set_type): Move typedef.
24753         * coretypes.h (alias_set_type): Relocate typedef here.
24754         * rtl.h: Don't include alias.h.
24756 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24758         * cgraph.h (cgraph_rtl_info): Move to rtl.h
24759         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24760         and instance.
24761         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24762         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24763         doesn't exist.
24764         * calls.c: Include hard-reg-set.h before rtl.h.
24765         * ira.c: Likewise.
24767 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
24768             Vladimir Makarov  <vmakarov@redhat.com>
24770         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24771         Add assert.
24773 2015-06-25  Richard Biener  <rguenther@suse.de>
24775         * fold-const.c (fold_binary_loc): Move simplification of
24776         (X <<>> C1) & C2 ...
24777         * match.pd: ... here.
24779 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
24781         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24783 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24785         * match.pd: Add patterns for vec_conds between 1 and 0.
24787 2015-06-25  Richard Biener  <rguenther@suse.de>
24789         * tree-vect-stmts.c (vectorizable_conversion): Do not set
24790         STMT_VINFO_VEC_STMT for SLP.
24791         (vectorizable_store): Likewise.
24792         (vectorizable_load): Likewise.
24793         (vect_transform_stmt): Catch SLP vectorization clobbering
24794         STMT_VINFO_VEC_STMT.
24796 2015-06-25  Richard Biener  <rguenther@suse.de>
24798         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24799         dumping.
24800         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24801         cleanup resulting dead code and parameters.
24802         (vect_transform_slp_perm_load): Adjust.
24804 2015-06-25  Nick Clifton  <nickc@redhat.com>
24806         * config/bfin/bfin.c (bfin_expand_prologue): Set
24807         current_function_static_stack_size if flag_stack_usage_info is set.
24808         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24809         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24810         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24811         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24813 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24815         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24816         comment that the generated IV is unsigned.
24818 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24820         PR target/29693
24821         * config/arm/arm.c (arm_dbx_register_number): Return
24822         DWARF_FRAME_REGISTERS by default.
24824 2015-06-25  Tom de Vries  <tom@codesourcery.com>
24826         * dominance.c (calculate_dominance_info): Fix verify_dominators call
24827         argument.  Call verify_dominator when reusing dominator info.
24829 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
24831         PR target/66563
24832         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24833         an additional element of the unspec vector.  Modify indices
24834         of operands.
24835         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24836         * config/sh/sh.c (prepare_move_operands): Pass incremented
24837         const_int to gen_GOTaddr2picreg.
24838         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24840 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24842         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24843         Condition on TARGET_FLOAT.
24845 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24847         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24848         and (no)crypto.
24850 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
24852         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24854         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24855         aarch64_err_no_fpadvsimd.
24857         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24858         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24859         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24860         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24861         Turn error into assert, test TARGET_FLOAT.
24862         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24863         TARGET_FLOAT.
24865 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
24867         PR debug/66482
24868         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24870 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
24872         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24874 2015-06-24  Renlin Li <renlin.li@arm.com>
24876         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24877         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24879 2015-06-24  Richard Biener  <rguenther@suse.de>
24881         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24882         (main): Likewise.
24883         (lower_opt_convert): Support lowering of conditional view_convert.
24884         (parser::parse_operation): Likewise.
24885         (parser::parse_for): Likewise.
24887 2015-06-24  Renlin Li  <renlin.li@arm.com>
24889         * varasm.c (emit_local): Use unsigned int for align variable.
24891 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24893         PR target/63408
24894         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24895         for negative numbers.
24897 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24899         PR rtl-optimization/66306
24900         * reload.c (find_reloads): Swap the match_dup info for
24901         commutative operands.
24903 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24905         * config/s390/vx-builtins.md
24906         ("vec_scatter_element<mode>_<non_vec_int>")
24907         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24908         attribute with bhfgq.
24910 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24912         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24914 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24916         * config/s390/s390-builtin-types.def: Add flag to indicate the
24917         options under which the function type is needed.
24918         * config/s390/s390-builtins.def: Add flag to indicate the options
24919         under which the builtin is enabled.
24920         * config/s390/s390-builtins.h: Add flags parameter to macro
24921         definitions.
24922         (bflags_for_builtin): New function.
24923         (flags_for_builtin): Renamed to ...
24924         (opflags_for_builtin): ... this.
24925         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24926         flags_for_builtin to bflags_for_builtin and
24927         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24928         * config/s390/s390.c: Add initialization of bflags_builtin and
24929         opflags_builtin arrays.
24930         Remove code for flags_builtin.
24931         (s390_init_builtins): Only create builtin function types if one of
24932         their flags is active.
24933         Only create builtins if all of their flags are active.
24934         (s390_expand_builtin): Rename flags_for_builtin to
24935         opflags_for_builtin.
24937 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24939         * config/s390/vecintrin.h: Remove internal builtins.
24941 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24943         * config/s390/s390.c (s390_secondary_reload): Fix check for
24944         GENERAL_REGS register class.
24946 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24948         * config/s390/s390.c (s390_support_vector_misalignment): Call
24949         default implementation for !TARGET_VX.
24951 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24953         * config/s390/s390.c (s390_legitimate_constant_p): Add
24954         TARGET_VX check.
24956 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24958         * config/s390/s390.c (s390_vector_abi): New variable definition.
24959         (s390_check_type_for_vector_abi): New function.
24960         (TARGET_ASM_FILE_END): New macro definition.
24961         (s390_asm_file_end): New function.
24962         (s390_function_arg): Call s390_check_type_for_vector_abi.
24963         (s390_gimplify_va_arg): Likewise.
24964         * configure: Regenerate.
24965         * configure.ac: Check for .gnu_attribute Binutils feature.
24967 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
24969         PR target/65803
24970         * config/bfin/bfin.c (hwloop_optimize): Initialize
24971         JUMP_LABEL for newly created jump.
24973 2015-06-23  Tristan Gingold  <gingold@adacore.com>
24975         * collect-utils.c (collect_wait): Unlink the response file here
24976         instead of...
24977         (do_wait): ...here.
24978         (utils_cleanup): ...and here.
24980 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
24982         * df-scan.c: Don't include target-def.h.
24983         * targhooks.c: Likewise.
24984         * config/arm/arm-c.c: Likewise.
24985         * config/i386/i386-c.c: Likewise.
24986         * config/nds32/nds32-cost.c: Likewise.
24987         * config/nds32/nds32-fp-as-gp.c: Likewise.
24988         * config/nds32/nds32-intrinsic.c: Likewise.
24989         * config/nds32/nds32-isr.c: Likewise.
24990         * config/nds32/nds32-md-auxiliary.c: Likewise.
24991         * config/nds32/nds32-memory-manipulation.c: Likewise.
24992         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24993         * config/nds32/nds32-predicates.c: Likewise.
24995 2015-06-23  Richard Biener  <rguenther@suse.de>
24997         PR tree-optimization/66636
24998         * tree-vect-stmts.c (vectorizable_store): Properly compute the
24999         def type for further defs for strided stores.
25001 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
25003         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25004         conditional selects.
25005         (setcc_int<mode>, setcc_float<mode>): Reformat.
25007 2015-06-23  Marek Polacek  <polacek@redhat.com>
25009         * match.pd ((x + y) - (x | y) -> x & y,
25010         (x + y) - (x & y) -> x | y): New patterns.
25012 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
25014         PR 65711
25015         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25016         '-dynamic-linker' within %{!shared: ...}.
25018 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
25020         PR target/66560
25021         * config/i386/predicates.md (addsub_vm_operator): New predicate.
25022         (addsub_vs_operator): Ditto.
25023         (addsub_vs_parallel): Ditto.
25024         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25025         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25026         Put minus RTX before plus and adjust vec_merge selector.
25027         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25028         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25029         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25030         (addsub vec_merge splitters): New combiner splitters.
25031         (addsub vec_select/vec_concat splitters): Ditto.
25033 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
25035         PR tree-optimization/66449
25036         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25037         POINTER_PLUS_EXPR for pointers.
25039 2015-06-23  Alan Modra  <amodra@gmail.com>
25041         * rtlanal.c (commutative_operand_precedence): Correct comments.
25042         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25043         declaration.  Return an int.  Distinguish REG,REG return from
25044         others.
25045         (struct simplify_plus_minus_op_data): Make local to function.
25046         (simplify_plus_minus): Don't set canonicalized if merely sorting
25047         registers.  Avoid packing ops if nothing changes.  White space fixes.
25049 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
25051         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25052         -fdump-ada-spec is passed but not if -fsyntax-only is.
25054 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
25056         PR bootstrap/63740
25057         * lra-lives.c (process_bb_lives): Check insn copying the same
25058         reload pseudo and don't create a copy for it.
25060 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25062         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25063         for cond_stmt.
25065 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25067         * builtins.def (DEF_GOMP_BUILTIN): Test
25068         'flag_tree_parallelize_loops > 1' instead of
25069         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
25071 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25073         * dominance.c (calculate_dominance_info): Verify dominators if
25074         early-out.
25076 2015-06-22  Marek Polacek  <polacek@redhat.com>
25078         * match.pd ((x ^ y) ^ (x | y) -> x & y,
25079         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25080         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25081         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25083 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
25085         PR target/65871
25086         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25087         cost of embedded comparison.
25089 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25091         PR target/65914
25092         * config/rs6000/predicates.md (altivec_register_operand): Permit
25093         virtual stack registers.
25094         (vsx_register_operand): Likewise.
25095         (vfloat_operand): Likewise.
25096         (vint_operand): Likewise.
25097         (vlogical_operand): Likewise.
25099 2015-06-22  Richard Biener  <rguenther@suse.de>
25101         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25102         and single_scalar_iteration_cost members.
25103         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25104         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25105         (vect_get_single_scalar_iteration_cost): Remove.
25106         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25107         Use LOOP_VINFO_SCALAR_ITERATION_COST.
25108         * tree-vect-loop.c (destroy_loop_vec_info): Free
25109         scalar_cost_vec.
25110         (vect_get_single_scalar_iteration_cost): Compute result into
25111         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25112         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
25113         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25114         (vect_estimate_min_profitable_iters): Use them.
25116 2015-06-22  Christian Bruel  <christian.bruel@st.com>
25118         PR target/52144
25119         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25120         (TARGET_INSERT_ATTRIBUTES): Define.
25121         (thumb_flipper): New var.
25122         * config/arm/arm.opt (-mflip-thumb): New switch.
25124 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25125             Martin Liska  <mliska@suse.cz>
25127         PR ipa/65908
25128         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25129         construction of arg_types.
25130         (sem_function::sem_function): Likewise.
25131         (sem_function::~sem_function): Remove destruction of arg_types.
25132         (sem_function::compatible_parm_types_p): New function.
25133         (sem_function::equals_wpa): Reorg matching of return values
25134         and parameter types.
25135         (sem_function::equals_private): Reorg mathcing of argument types.
25136         (sem_function::parse_tree_args): Remove.
25137         * ipa-icf.h (init_wpa): Do not call it.
25138         (parse_tree_args): Remove.
25139         (compatible_parm_types_p): Declare.
25140         (result_type): Remove.
25141         (arg_types): Remove.
25143 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25145         PR ipa/66351
25146         * ipa-polymorphic-call.c
25147         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25148         initializing alias oracle; fix formating; set base_alias_set if it
25149         is known.
25151 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
25153         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25154         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25155         (find_inc): Likewise.
25156         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25157         swapping.
25158         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25159         * df-scan.c (df_swap_refs): Remove.
25160         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25161         * dominance.c (link_roots): Use std::swap instead of manually swapping.
25162         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25163         * fold-const.c (fold_relational_const): Likewise.
25164         * genattrtab.c (simplify_test_exp): Likewise.
25165         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25166         gimple_simplify): Likewise.
25167         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25168         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25169         * ipa-devirt.c (add_type_duplicate): Likewise.
25170         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25171         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25172         * lra.c (lra_create_copy): Likewise.
25173         * lto-streamer-out.c (DFS::DFS): Likewise.
25174         * modulo-sched.c (get_sched_window): Likewise.
25175         * omega.c (omega_pretty_print_problem): Likewise.
25176         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25177         * reload1.c (reloads_unique_chain_p): Likewise.
25178         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25179         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25180         use std::swap.
25181         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25182         manually swapping.
25183         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25184         predicate_mem_writes): Likewise.
25185         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25186         * tree-predcom.c (combine_chains): Likewise.
25187         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25188         refs_may_alias_p_1): Likewise.
25189         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25190         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25191         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25192         number_of_iterations_cond): Likewise.
25193         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25194         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25195         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25196         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25197         * tree-vrp.c (extract_range_from_binary_expr_1,
25198         extract_range_from_unary_expr_1): Likewise.
25200 2015-06-20  Marek Polacek  <polacek@redhat.com>
25202         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25204 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25206         PR target/66591
25207         * config/sh/sh.c (prepare_move_operands): Replace subreg
25208         index term with R0 for base and index addressing.
25210 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
25212         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25213         op1 is an fp zero.
25214         (movsf_aarch64): Change condition from register_operand to
25215         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
25216         load1.  Change type for alternative 7 to store1.
25217         (movdf_aarch64): Likewise.
25219 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
25221         * config/vax/vax.md: Adjust sign/zero extend patterns to
25222         handle SUBREGs in operands[1].
25224 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25226         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25227         of manually swapping.
25228         (expand_vec_perm_interleave2): Likewise.
25230 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
25232         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25233         reuse bounds created for abnormal ssa names.
25235 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
25237         * config/nvptx/nvptx.md (allocate_stack): Rename to...
25238         (allocate_stack_<mode>): ... this, and add :P on both
25239         match_operand and unspec.
25240         (allocate_stack): New expander.
25242 2015-06-19  Christian Bruel  <christian.bruel@st.com>
25244         PR target/66541
25245         PR target/52144
25246         * config/arm/arm.c (arm_set_current_function): Handle
25247         explicit default options.
25249 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
25251         * config/i386/i386.md (*movsicc_noc_zext): New insn.
25252         (zero-extended cmove with mem peephole2): New pattern.
25253         (cmove with mem peephole2): Merge patterns.
25255 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
25257         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25259 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
25261         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25262         * config/mips/mips.md (*madd4<mode>): Ditto.
25263         (*nmadd3<mode>) Ditto.
25264         (*nmadd4<mode>_fastmath): Ditto.
25265         (*nmadd3<mode>_fastmath): Ditto.
25266         (*nmsub4<mode>): Ditto.
25267         (*nmsub3<mode>): Ditto.
25268         (*nmsub4<mode>_fastmath): Ditto.
25269         (*nmsub3<mode>_fastmath): Ditto.
25271 2015-06-18  Michael Matz  <matz@suse.de>
25273         PR middle-end/66253
25274         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25275         grouped strided stores.
25276         (vectorizable_load): Don't use the DR from first_stmt in
25277         the non-SLP grouped strided case.
25279 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25281         PR target/66569
25282         * function.c (assign_bounds): Add arguments assign_regs,
25283         assign_special, assign_bt.
25284         (assign_parms): For vararg functions handle bounds in BT
25285         and special slots after incoming vararg bounds.
25287 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25289         PR middle-end/66568
25290         * cfgexpand.c (expand_return): Handle missing bounds.
25291         (expand_gimple_stmt_1): Likewise.
25292         * tree-chkp.c (chkp_expand_zero_bounds): New.
25293         * tree-chkp.h (chkp_expand_zero_bounds): New.
25295 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25297         PR middle-end/66567
25298         * ipa-chkp.c (chkp_maybe_create_clone): Require
25299         functions to be instrumentable.
25300         * tree-chkp.c (chkp_replace_function_pointer): Use
25301         chkp_instrumentable_p instead of attribute check.
25303 2015-06-18  Richard Biener  <rguenther@suse.de>
25305         PR tree-optimization/66510
25306         * tree-vect-stmts.c (vectorizable_load): Properly compute the
25307         number of vector loads for SLP permuted loads.
25308         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25309         check the stride for loop vectorization.
25310         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25311         vectorization factor.
25312         (vect_analyze_group_access): If the group size is not a power
25313         of two require a epilogue loop.
25314         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25315         compute and optimizing and alias test pruning after final
25316         vectorization factor computation.
25317         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25318         vector alignment.
25319         (vect_transform_slp_perm_load): Properly compute the original
25320         number of vector load stmts.
25322 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
25324         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25325         "unlikely character , in @var" warning.
25327 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
25329         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25330         (ix86_function_arg_advance): Ditto.
25331         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
25333 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25335         * function.h (struct rtl_data): Remove struct and accessor macros.
25336         * emit-rtl.h (struct rtl_data): Relocate to here.
25337         * Makefile.in (GTFILES): Add emit-rtl.h.
25338         * df-core.c: Include emit-rtl.h.
25339         * genattrtab.c: Likewise.
25340         * genconditions.c: Likewise.
25341         * genpreds.c: Likewise.
25342         * genrecog.c: Likewise.
25343         * regcprop.c: Likewise.
25344         * resource.c: Likewise.
25345         * sched-rgn.c: Likewise.
25346         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25347         * config/i386/winnt.c: Likewise.
25349 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
25351         PR middle-end/66429
25352         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25353         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
25354         and has_force_vectorize_loops flags from cfun into
25355         child_cfun.
25356         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25357         if simduid is non-NULL.
25358         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25359         * passes.def (pass_simduid_cleanup): Add new pass after loop
25360         passes.
25361         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25362         indirection from htab argument's type.
25363         (shrink_simd_arrays): New function.
25364         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
25365         Don't call adjust_simduid_builtins if there are no loops.
25366         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25367         (pass_simduid_cleanup::execute): New method.
25368         (make_pass_simduid_cleanup): New function.
25370 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
25372         * tree-core.h (tree_target_option): Make opts field a pointer to a
25373         cl_target_option instead of an instance of the struct.
25374         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25375         the structure.
25376         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25377         TARGET_OPTION_NODE.
25378         (copy_node_stat): Allocate and copy struct cl_target_option.
25380 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25382         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25383         Remove conditional exposure of prototypes.
25384         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25385         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
25386         definitions in tree.h with functions.
25387         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25388         anon_aggrname_p.
25389         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25391 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
25393         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25394         (*cmp<mode>_signed): ... this.
25395         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25396         (*cmp<mode>_unsigned): ... this.  Remove %b.
25398 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25400         * coretypes.h: Include input.h and as-a.h.
25401         * rtl.h: Include input.h and as-a.h for generator files.
25402         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25403         * vec.c: Don't include diagnostic-core.h.
25404         * alias.c: Do not include input.h, line-map.h or is-a.h.
25405         * asan.c: Likewise.
25406         * attribs.c: Likewise.
25407         * auto-inc-dec.c: Likewise.
25408         * auto-profile.c: Likewise.
25409         * bb-reorder.c: Likewise.
25410         * bt-load.c: Likewise.
25411         * builtins.c: Likewise.
25412         * caller-save.c: Likewise.
25413         * calls.c: Likewise.
25414         * ccmp.c: Likewise.
25415         * cfg.c: Likewise.
25416         * cfganal.c: Likewise.
25417         * cfgbuild.c: Likewise.
25418         * cfgcleanup.c: Likewise.
25419         * cfgexpand.c: Likewise.
25420         * cfghooks.c: Likewise.
25421         * cfgloop.c: Likewise.
25422         * cfgloop.h: Likewise.
25423         * cfgloopanal.c: Likewise.
25424         * cfgloopmanip.c: Likewise.
25425         * cfgrtl.c: Likewise.
25426         * cgraph.c: Likewise.
25427         * cgraphbuild.c: Likewise.
25428         * cgraphclones.c: Likewise.
25429         * cgraphunit.c: Likewise.
25430         * cilk-common.c: Likewise.
25431         * combine-stack-adj.c: Likewise.
25432         * combine.c: Likewise.
25433         * compare-elim.c: Likewise.
25434         * convert.c: Likewise.
25435         * coverage.c: Likewise.
25436         * cppbuiltin.c: Likewise.
25437         * cprop.c: Likewise.
25438         * cse.c: Likewise.
25439         * cselib.c: Likewise.
25440         * data-streamer-in.c: Likewise.
25441         * data-streamer-out.c: Likewise.
25442         * data-streamer.c: Likewise.
25443         * dbxout.c: Likewise.
25444         * dce.c: Likewise.
25445         * ddg.c: Likewise.
25446         * debug.c: Likewise.
25447         * df-core.c: Likewise.
25448         * df-problems.c: Likewise.
25449         * df-scan.c: Likewise.
25450         * df.h: Likewise.
25451         * dfp.c: Likewise.
25452         * diagnostic-core.h: Likewise.
25453         * diagnostic.c: Likewise.
25454         * dojump.c: Likewise.
25455         * dominance.c: Likewise.
25456         * domwalk.c: Likewise.
25457         * double-int.c: Likewise.
25458         * dse.c: Likewise.
25459         * dumpfile.c: Likewise.
25460         * dumpfile.h: Likewise.
25461         * dwarf2asm.c: Likewise.
25462         * dwarf2cfi.c: Likewise.
25463         * dwarf2out.c: Likewise.
25464         * emit-rtl.c: Likewise.
25465         * et-forest.c: Likewise.
25466         * except.c: Likewise.
25467         * explow.c: Likewise.
25468         * expmed.c: Likewise.
25469         * expr.c: Likewise.
25470         * final.c: Likewise.
25471         * fixed-value.c: Likewise.
25472         * fold-const.c: Likewise.
25473         * function.c: Likewise.
25474         * fwprop.c: Likewise.
25475         * gcc-plugin.h: Likewise.
25476         * gcse.c: Likewise.
25477         * generic-match-head.c: Likewise.
25478         * ggc-page.c: Likewise.
25479         * gimple-builder.c: Likewise.
25480         * gimple-expr.c: Likewise.
25481         * gimple-fold.c: Likewise.
25482         * gimple-iterator.c: Likewise.
25483         * gimple-low.c: Likewise.
25484         * gimple-match-head.c: Likewise.
25485         * gimple-pretty-print.c: Likewise.
25486         * gimple-ssa-isolate-paths.c: Likewise.
25487         * gimple-ssa-strength-reduction.c: Likewise.
25488         * gimple-streamer-in.c: Likewise.
25489         * gimple-streamer-out.c: Likewise.
25490         * gimple-streamer.h: Likewise.
25491         * gimple-walk.c: Likewise.
25492         * gimple.c: Likewise.
25493         * gimplify-me.c: Likewise.
25494         * gimplify.c: Likewise.
25495         * godump.c: Likewise.
25496         * graph.c: Likewise.
25497         * graphite-blocking.c: Likewise.
25498         * graphite-dependences.c: Likewise.
25499         * graphite-interchange.c: Likewise.
25500         * graphite-isl-ast-to-gimple.c: Likewise.
25501         * graphite-optimize-isl.c: Likewise.
25502         * graphite-poly.c: Likewise.
25503         * graphite-scop-detection.c: Likewise.
25504         * graphite-sese-to-poly.c: Likewise.
25505         * graphite.c: Likewise.
25506         * haifa-sched.c: Likewise.
25507         * hw-doloop.c: Likewise.
25508         * ifcvt.c: Likewise.
25509         * init-regs.c: Likewise.
25510         * input.c: Likewise.
25511         * internal-fn.c: Likewise.
25512         * ipa-chkp.c: Likewise.
25513         * ipa-comdats.c: Likewise.
25514         * ipa-cp.c: Likewise.
25515         * ipa-devirt.c: Likewise.
25516         * ipa-icf-gimple.c: Likewise.
25517         * ipa-icf.c: Likewise.
25518         * ipa-inline-analysis.c: Likewise.
25519         * ipa-inline-transform.c: Likewise.
25520         * ipa-inline.c: Likewise.
25521         * ipa-polymorphic-call.c: Likewise.
25522         * ipa-profile.c: Likewise.
25523         * ipa-prop.c: Likewise.
25524         * ipa-pure-const.c: Likewise.
25525         * ipa-ref.c: Likewise.
25526         * ipa-reference.c: Likewise.
25527         * ipa-split.c: Likewise.
25528         * ipa-utils.c: Likewise.
25529         * ipa-visibility.c: Likewise.
25530         * ipa.c: Likewise.
25531         * ira-build.c: Likewise.
25532         * ira-color.c: Likewise.
25533         * ira-conflicts.c: Likewise.
25534         * ira-costs.c: Likewise.
25535         * ira-emit.c: Likewise.
25536         * ira-lives.c: Likewise.
25537         * ira.c: Likewise.
25538         * jump.c: Likewise.
25539         * langhooks.c: Likewise.
25540         * lcm.c: Likewise.
25541         * loop-doloop.c: Likewise.
25542         * loop-init.c: Likewise.
25543         * loop-invariant.c: Likewise.
25544         * loop-iv.c: Likewise.
25545         * loop-unroll.c: Likewise.
25546         * lower-subreg.c: Likewise.
25547         * lra-assigns.c: Likewise.
25548         * lra-coalesce.c: Likewise.
25549         * lra-constraints.c: Likewise.
25550         * lra-eliminations.c: Likewise.
25551         * lra-lives.c: Likewise.
25552         * lra-remat.c: Likewise.
25553         * lra-spills.c: Likewise.
25554         * lra.c: Likewise.
25555         * lto-cgraph.c: Likewise.
25556         * lto-compress.c: Likewise.
25557         * lto-opts.c: Likewise.
25558         * lto-section-in.c: Likewise.
25559         * lto-section-out.c: Likewise.
25560         * lto-streamer-in.c: Likewise.
25561         * lto-streamer-out.c: Likewise.
25562         * lto-streamer.c: Likewise.
25563         * mcf.c: Likewise.
25564         * mode-switching.c: Likewise.
25565         * modulo-sched.c: Likewise.
25566         * omega.c: Likewise.
25567         * omp-low.c: Likewise.
25568         * optabs.c: Likewise.
25569         * opts-global.c: Likewise.
25570         * opts.h: Likewise.
25571         * passes.c: Likewise.
25572         * plugin.c: Likewise.
25573         * postreload-gcse.c: Likewise.
25574         * postreload.c: Likewise.
25575         * predict.c: Likewise.
25576         * pretty-print.h: Likewise.
25577         * print-rtl.c: Likewise.
25578         * print-tree.c: Likewise.
25579         * profile.c: Likewise.
25580         * real.c: Likewise.
25581         * realmpfr.c: Likewise.
25582         * recog.c: Likewise.
25583         * ree.c: Likewise.
25584         * reg-stack.c: Likewise.
25585         * regcprop.c: Likewise.
25586         * reginfo.c: Likewise.
25587         * regrename.c: Likewise.
25588         * regstat.c: Likewise.
25589         * reload.c: Likewise.
25590         * reload1.c: Likewise.
25591         * reorg.c: Likewise.
25592         * resource.c: Likewise.
25593         * rtl-chkp.c: Likewise.
25594         * rtl-error.c: Likewise.
25595         * rtlanal.c: Likewise.
25596         * rtlhooks.c: Likewise.
25597         * sanopt.c: Likewise.
25598         * sched-deps.c: Likewise.
25599         * sched-ebb.c: Likewise.
25600         * sched-rgn.c: Likewise.
25601         * sched-vis.c: Likewise.
25602         * sdbout.c: Likewise.
25603         * sel-sched-dump.c: Likewise.
25604         * sel-sched-ir.c: Likewise.
25605         * sel-sched.c: Likewise.
25606         * sese.c: Likewise.
25607         * shrink-wrap.c: Likewise.
25608         * simplify-rtx.c: Likewise.
25609         * stack-ptr-mod.c: Likewise.
25610         * statistics.c: Likewise.
25611         * stmt.c: Likewise.
25612         * stor-layout.c: Likewise.
25613         * store-motion.c: Likewise.
25614         * streamer-hooks.c: Likewise.
25615         * stringpool.c: Likewise.
25616         * symtab.c: Likewise.
25617         * target-globals.c: Likewise.
25618         * targhooks.c: Likewise.
25619         * toplev.c: Likewise.
25620         * tracer.c: Likewise.
25621         * trans-mem.c: Likewise.
25622         * tree-affine.c: Likewise.
25623         * tree-browser.c: Likewise.
25624         * tree-call-cdce.c: Likewise.
25625         * tree-cfg.c: Likewise.
25626         * tree-cfgcleanup.c: Likewise.
25627         * tree-chkp-opt.c: Likewise.
25628         * tree-chkp.c: Likewise.
25629         * tree-chrec.c: Likewise.
25630         * tree-complex.c: Likewise.
25631         * tree-data-ref.c: Likewise.
25632         * tree-dfa.c: Likewise.
25633         * tree-diagnostic.c: Likewise.
25634         * tree-dump.c: Likewise.
25635         * tree-eh.c: Likewise.
25636         * tree-emutls.c: Likewise.
25637         * tree-if-conv.c: Likewise.
25638         * tree-inline.c: Likewise.
25639         * tree-into-ssa.c: Likewise.
25640         * tree-iterator.c: Likewise.
25641         * tree-loop-distribution.c: Likewise.
25642         * tree-nested.c: Likewise.
25643         * tree-nrv.c: Likewise.
25644         * tree-object-size.c: Likewise.
25645         * tree-outof-ssa.c: Likewise.
25646         * tree-parloops.c: Likewise.
25647         * tree-phinodes.c: Likewise.
25648         * tree-predcom.c: Likewise.
25649         * tree-pretty-print.c: Likewise.
25650         * tree-profile.c: Likewise.
25651         * tree-scalar-evolution.c: Likewise.
25652         * tree-sra.c: Likewise.
25653         * tree-ssa-address.c: Likewise.
25654         * tree-ssa-alias.c: Likewise.
25655         * tree-ssa-ccp.c: Likewise.
25656         * tree-ssa-coalesce.c: Likewise.
25657         * tree-ssa-copy.c: Likewise.
25658         * tree-ssa-copyrename.c: Likewise.
25659         * tree-ssa-dce.c: Likewise.
25660         * tree-ssa-dom.c: Likewise.
25661         * tree-ssa-dse.c: Likewise.
25662         * tree-ssa-forwprop.c: Likewise.
25663         * tree-ssa-ifcombine.c: Likewise.
25664         * tree-ssa-live.c: Likewise.
25665         * tree-ssa-loop-ch.c: Likewise.
25666         * tree-ssa-loop-im.c: Likewise.
25667         * tree-ssa-loop-ivcanon.c: Likewise.
25668         * tree-ssa-loop-ivopts.c: Likewise.
25669         * tree-ssa-loop-manip.c: Likewise.
25670         * tree-ssa-loop-niter.c: Likewise.
25671         * tree-ssa-loop-prefetch.c: Likewise.
25672         * tree-ssa-loop-unswitch.c: Likewise.
25673         * tree-ssa-loop.c: Likewise.
25674         * tree-ssa-math-opts.c: Likewise.
25675         * tree-ssa-operands.c: Likewise.
25676         * tree-ssa-phiopt.c: Likewise.
25677         * tree-ssa-phiprop.c: Likewise.
25678         * tree-ssa-pre.c: Likewise.
25679         * tree-ssa-propagate.c: Likewise.
25680         * tree-ssa-reassoc.c: Likewise.
25681         * tree-ssa-sccvn.c: Likewise.
25682         * tree-ssa-scopedtables.c: Likewise.
25683         * tree-ssa-sink.c: Likewise.
25684         * tree-ssa-strlen.c: Likewise.
25685         * tree-ssa-structalias.c: Likewise.
25686         * tree-ssa-tail-merge.c: Likewise.
25687         * tree-ssa-ter.c: Likewise.
25688         * tree-ssa-threadedge.c: Likewise.
25689         * tree-ssa-threadupdate.c: Likewise.
25690         * tree-ssa-uncprop.c: Likewise.
25691         * tree-ssa-uninit.c: Likewise.
25692         * tree-ssa.c: Likewise.
25693         * tree-ssanames.c: Likewise.
25694         * tree-stdarg.c: Likewise.
25695         * tree-streamer-in.c: Likewise.
25696         * tree-streamer-out.c: Likewise.
25697         * tree-streamer.c: Likewise.
25698         * tree-switch-conversion.c: Likewise.
25699         * tree-tailcall.c: Likewise.
25700         * tree-vect-data-refs.c: Likewise.
25701         * tree-vect-generic.c: Likewise.
25702         * tree-vect-loop-manip.c: Likewise.
25703         * tree-vect-loop.c: Likewise.
25704         * tree-vect-patterns.c: Likewise.
25705         * tree-vect-slp.c: Likewise.
25706         * tree-vect-stmts.c: Likewise.
25707         * tree-vectorizer.c: Likewise.
25708         * tree-vrp.c: Likewise.
25709         * tree.c: Likewise.
25710         * tsan.c: Likewise.
25711         * ubsan.c: Likewise.
25712         * valtrack.c: Likewise.
25713         * value-prof.c: Likewise.
25714         * var-tracking.c: Likewise.
25715         * varasm.c: Likewise.
25716         * varpool.c: Likewise.
25717         * vmsdbgout.c: Likewise.
25718         * vtable-verify.c: Likewise.
25719         * web.c: Likewise.
25720         * wide-int.cc: Likewise.
25721         * xcoffout.c: Likewise.
25722         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25723         * common/common-targhooks.c: Likewise.
25724         * config/aarch64/aarch64-builtins.c: Likewise.
25725         * config/aarch64/aarch64.c: Likewise.
25726         * config/alpha/alpha.c: Likewise.
25727         * config/arc/arc.c: Likewise.
25728         * config/arm/aarch-common.c: Likewise.
25729         * config/arm/arm-builtins.c: Likewise.
25730         * config/arm/arm-c.c: Likewise.
25731         * config/arm/arm.c: Likewise.
25732         * config/avr/avr-c.c: Likewise.
25733         * config/avr/avr-log.c: Likewise.
25734         * config/avr/avr.c: Likewise.
25735         * config/bfin/bfin.c: Likewise.
25736         * config/c6x/c6x.c: Likewise.
25737         * config/cr16/cr16.c: Likewise.
25738         * config/cris/cris.c: Likewise.
25739         * config/darwin-c.c: Likewise.
25740         * config/darwin.c: Likewise.
25741         * config/default-c.c: Likewise.
25742         * config/epiphany/epiphany.c: Likewise.
25743         * config/epiphany/mode-switch-use.c: Likewise.
25744         * config/epiphany/resolve-sw-modes.c: Likewise.
25745         * config/fr30/fr30.c: Likewise.
25746         * config/frv/frv.c: Likewise.
25747         * config/ft32/ft32.c: Likewise.
25748         * config/glibc-c.c: Likewise.
25749         * config/h8300/h8300.c: Likewise.
25750         * config/i386/i386-c.c: Likewise.
25751         * config/i386/i386.c: Likewise.
25752         * config/i386/msformat-c.c: Likewise.
25753         * config/i386/winnt-cxx.c: Likewise.
25754         * config/i386/winnt-stubs.c: Likewise.
25755         * config/i386/winnt.c: Likewise.
25756         * config/ia64/ia64-c.c: Likewise.
25757         * config/ia64/ia64.c: Likewise.
25758         * config/iq2000/iq2000.c: Likewise.
25759         * config/lm32/lm32.c: Likewise.
25760         * config/m32c/m32c-pragma.c: Likewise.
25761         * config/m32c/m32c.c: Likewise.
25762         * config/m32r/m32r.c: Likewise.
25763         * config/m68k/m68k.c: Likewise.
25764         * config/mcore/mcore.c: Likewise.
25765         * config/mep/mep-pragma.c: Likewise.
25766         * config/mep/mep.c: Likewise.
25767         * config/microblaze/microblaze-c.c: Likewise.
25768         * config/microblaze/microblaze.c: Likewise.
25769         * config/mips/mips.c: Likewise.
25770         * config/mmix/mmix.c: Likewise.
25771         * config/mn10300/mn10300.c: Likewise.
25772         * config/moxie/moxie.c: Likewise.
25773         * config/msp430/msp430-c.c: Likewise.
25774         * config/msp430/msp430.c: Likewise.
25775         * config/nds32/nds32-cost.c: Likewise.
25776         * config/nds32/nds32-fp-as-gp.c: Likewise.
25777         * config/nds32/nds32-intrinsic.c: Likewise.
25778         * config/nds32/nds32-isr.c: Likewise.
25779         * config/nds32/nds32-md-auxiliary.c: Likewise.
25780         * config/nds32/nds32-memory-manipulation.c: Likewise.
25781         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25782         * config/nds32/nds32-predicates.c: Likewise.
25783         * config/nds32/nds32.c: Likewise.
25784         * config/nios2/nios2.c: Likewise.
25785         * config/nvptx/nvptx.c: Likewise.
25786         * config/pa/pa.c: Likewise.
25787         * config/pdp11/pdp11.c: Likewise.
25788         * config/rl78/rl78-c.c: Likewise.
25789         * config/rl78/rl78.c: Likewise.
25790         * config/rs6000/rs6000-c.c: Likewise.
25791         * config/rs6000/rs6000.c: Likewise.
25792         * config/rx/rx.c: Likewise.
25793         * config/s390/s390-c.c: Likewise.
25794         * config/s390/s390.c: Likewise.
25795         * config/sh/sh-c.c: Likewise.
25796         * config/sh/sh-mem.cc: Likewise.
25797         * config/sh/sh.c: Likewise.
25798         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25799         * config/sh/sh_treg_combine.cc: Likewise.
25800         * config/sol2-c.c: Likewise.
25801         * config/sol2-cxx.c: Likewise.
25802         * config/sol2-stubs.c: Likewise.
25803         * config/sol2.c: Likewise.
25804         * config/sparc/sparc-c.c: Likewise.
25805         * config/sparc/sparc.c: Likewise.
25806         * config/spu/spu-c.c: Likewise.
25807         * config/spu/spu.c: Likewise.
25808         * config/stormy16/stormy16.c: Likewise.
25809         * config/tilegx/mul-tables.c: Likewise.
25810         * config/tilegx/tilegx-c.c: Likewise.
25811         * config/tilegx/tilegx.c: Likewise.
25812         * config/tilepro/mul-tables.c: Likewise.
25813         * config/tilepro/tilepro-c.c: Likewise.
25814         * config/tilepro/tilepro.c: Likewise.
25815         * config/v850/v850-c.c: Likewise.
25816         * config/v850/v850.c: Likewise.
25817         * config/vax/vax.c: Likewise.
25818         * config/visium/visium.c: Likewise.
25819         * config/vms/vms-c.c: Likewise.
25820         * config/vms/vms.c: Likewise.
25821         * config/vxworks.c: Likewise.
25822         * config/winnt-c.c: Likewise.
25823         * config/xtensa/xtensa.c: Likewise.
25825 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
25827         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25828         function.
25829         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25831 2015-06-17  Richard Biener  <rguenther@suse.de>
25833         PR tree-optimization/66251
25834         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25835         stmts for SLP strided stores.
25837         Revert
25838         2015-05-22  Richard Biener  <rguenther@suse.de>
25840         PR tree-optimization/66251
25841         * tree-vect-stmts.c (vectorizable_conversion): Properly
25842         set STMT_VINFO_VEC_STMT even for the SLP case.
25844         2015-05-26  Michael Matz  <matz@suse.de>
25846         PR middle-end/66251
25847         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25848         STMT_VINFO_VEC_STMT, also with SLP.
25850 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
25852         PR target/56766
25853         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25854         (*avx_addsubv4df3_1s): Ditto.
25855         (*sse3_addsubv2df3_1): Ditto.
25856         (*sse3_addsubv2df3_1s): Ditto.
25857         (*avx_addsubv8sf3_1): Ditto.
25858         (*avx_addsubv8sf3_1s): Ditto.
25859         (*sse3_addsubv4sf3_1): Ditto.
25860         (*sse3_addsubv4sf3_1s): Ditto.
25862 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
25864         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25865         (SYSROOT_SUFFIX_SPEC): Update.
25866         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25867         (STARTFILE_PREFIX_SPEC): Update.
25868         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25869         (MULTILIB_REQUIRED): New.
25870         (MULTILIB_OSDIRNAMES): New.
25871         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25872         (MULTILIB_REQUIRED): New.
25873         (MULTILIB_OSDIRNAMES): New.
25875 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
25877         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25878         * config/aarch64/aarch64-options-extensions.def: Update "fP",
25879         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
25880         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25881         (AARCH64_FL_PAN): New.
25882         (AARCH64_FL_LOR): New.
25883         (AARCH64_FL_RDMA): New.
25884         (AARCH64_FL_FOR_ARCH8_1): New.
25885         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25886         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25888 2015-06-16  Martin Liska  <mliska@suse.cz>
25890         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25891         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25892         guard.
25894 2015-06-16  Richard Biener  <rguenther@suse.de>
25896         * tree-vect-stmts.c (vectorizable_store): Adjust.
25897         (vectorizable_load): Likewise.
25898         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25899         Simplify.
25900         (vect_create_data_ref_ptr): Likewise.
25901         (bump_vector_ptr): Adjust.
25903 2015-06-16  Richard Biener  <rguenther@suse.de>
25905         * tree-vect-stmts.c (vectorizable_load): Properly start loads
25906         with the first element if this is grouped loads.
25908 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
25910         * config/arm/arm-protos.h (struct tune_params): Rename
25911         log_op_non_sc to log_op_non_short_circuit, and rename enum
25912         values to expand SC to SHORT_CIRCUIT.
25913         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25914         to LOG_OP_NON_SHORT_CIRCUIT.
25915         (arm_fastmul_tune):Likewise
25916         (arm_strongarm_tune): Likewise.
25917         (arm_xscale_tune): Likewise.
25918         (arm_9e_tune): Likewise.
25919         (arm_marvell_pj4_tune): Likewise.
25920         (arm_v6t2_tune): Likewise.
25921         (arm_cortex_tune): Likewise.
25922         (arm_cortex_a8_tune): Likewise.
25923         (arm_cortex_a7_tune): Likewise.
25924         (arm_cortex_a15_tune): Likewise.
25925         (arm_cortex_a53_tune): Likewise.
25926         (arm_cortex_a57_tune): Likewise.
25927         (arm_xgene1_tune): Likewise.
25928         (arm_cortex_a5_tune): Likewise.
25929         (arm_cortex_a9_tune): Likewise.
25930         (arm_cortex_a12_tune): Likewise.
25931         (arm_v7m_tune): Likewise.
25932         (arm_cortex_m7_tune): Likewise.
25933         (arm_v6m_tune): Likewise.
25934         (arm_fa726te_tune): Likewise.
25936 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
25938         * altivec.md: Delete UNSPEC_VMLADDUHM.
25939         (mulv4si3_p8): New pattern.
25940         (mulv4si3): Use it for POWER8.
25941         (mulv8hi3): Use vmladduhm with zero addend.
25942         (altivec_vmladduhm): Descriptive RTL.
25944 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
25946         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25947         to use neon_move instead of mov_imm.
25948         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25949         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25951         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25952         aarch64_float_const_zero_rtx_p check before TFmode check.
25953         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25954         an fp zero.
25955         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
25956         code and attributes to match.  Change condition from register_operand
25957         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
25958         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
25959         to store2.
25961 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
25963         PR debug/66535
25964         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25965         there is no parent.
25967 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
25969         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25970         HOST_WIDE_INT parameter.
25972 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
25974         PR ipa/66181
25975         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25976         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25977         TYPE_NO_FORCE_BLK.
25978         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25980 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
25982         * rtl.h (classify_insn): Declare.
25983         * emit-rtl.c (classify_insn): Move to...
25984         * rtl.c: ...here and add generator support.
25985         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25986         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25987         * genemit.c (gen_emit_seq): New function.
25988         (gen_expand, gen_split): Use it.
25990 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
25992         * tree.c (make_vector_stat): Fix comment to state that the
25993         function returns a VECTOR_CST.
25995 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
25997         * gensupport.h (add_implicit_parallel): Declare.
25998         * genrecog.c (add_implicit_parallel): Move to...
25999         * gensupport.c (add_implicit_parallel): ...here.
26000         (process_one_cond_exec): Use it.
26001         * genemit.c (gen_insn): Likewise.
26003 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
26005         PR bootstrap/66448
26006         * passes.c (rest_of_decl_compilation): Do not register globals for
26007         early debug if they are declared in built-ins.
26009 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
26011         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26013 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26015         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26016         manually swapping.
26017         (noce_try_cmove_arith): Likewise.
26018         (noce_get_alt_condition): Likewise.
26020 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26022         * common/config/i386/i386-common.c
26023         (OPTION_MASK_ISA_MWAITX_SET): New.
26024         (ix86_handle_option): Handle mwaitx.
26025         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26026         (x86_64-*-*): Likewise.
26027         * config/i386/mwaitxintrin.h: New header.
26028         * config/i386/cpuid.h (bit_MWAITX):  Define.
26029         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26030         MWAITX support.
26031         * config/i386/i386.opt (mwaitx): New.
26032         * config/i386/i386-builtin-types.def
26033         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26034         * config/i386/i386-c.c: Define __MWAITX__ if needed.
26035         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26036         (PTA_MWAITX): New.
26037         (ix86_option_override_internal): Handle new option.
26038         (processor_alias_table): Added PTA_MWAITX.
26039         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26040         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26041         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26042         IX86_BUILTIN_MONITORX  built-ins.
26043         * config/i386/i386.h (TARGET_MWAITX): New.
26044         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26045         UNSPEC_MONITORX.
26046         (mwaitx):  New pattern.
26047         (monitorx_<mode>): New pattern.
26048         * config/i386/x86intrin.h: Include mwaitxintrin.h.
26049         * doc/extend.texi: Document monitorx and mwaitx builtins.
26050         * doc/invoke.texi: Document -mmwaitx option.
26052 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
26054         * emit-rtl.c (need_atomic_barrier_p): Mask model with
26055         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
26057 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26059         * dbxout.c (xcoff_debug_hooks): Provide a function for
26060         register_main_translation_unit hook.
26062 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26064         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26065         variants cases from switch.
26066         (rs6000_post_atomic_barrier): Same.
26067         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26068         (rs6000_expand_atomic_exchange): Same.
26069         (rs6000_expand_atomic_op): Same.
26070         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26071         SYNC variants cases from switch.
26072         (atomic_load): Same.
26073         (atomic_store): Same.
26075 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
26077         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26078         CONST_INT for goto.
26080 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
26082         PR bootstrap/66448
26083         * dwarf2out.c (check_die): Check for common duplicate attributes.
26084         (add_location_or_const_value_attribute): Do not add duplicate
26085         attributes.
26086         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26087         time around.
26088         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26089         (gen_type_die_with_usage): Call check_die.
26090         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26092 2015-06-11  Jason Merrill  <jason@redhat.com>
26094         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26095         dies.
26097 2015-06-11  Marek Polacek  <polacek@redhat.com>
26099         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26101 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
26103         PR bootstrap/66252
26104         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26105         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26106         (*addx_extend_sp32): Fix pasto.
26107         (*subx_extend): Rename into...
26108         (*subx_extend_sp32): ...this.
26109         (*adddi3_extend_sp32): Add earlyclobber.
26110         (*subdi3_insn_sp32): Likewise.
26111         (*subdi3_extend_sp32): Likewise.
26112         (*and_not_di_sp32): Likewise.
26113         (*or_not_di_sp32): Likewise.
26114         (*xor_not_di_sp32): Likewise.
26115         (*negdi2_sp32): Likewise.
26116         (*one_cmpldi2_sp32): Likewise.
26118 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
26120         * debug.h (struct gcc_debug_hooks): Add a
26121         register_main_translation_unit hook.
26122         * debug.c (do_nothing_debug_hooks): Provide a function for this
26123         new hook.
26124         * dbxout.c (dbx_debug_hooks): Likewise.
26125         * sdbout.c (sdb_debug_hooks): Likewise.
26126         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26127         * dwarf2out.c (main_translation_unit): New global variable.
26128         (dwarf2out_register_main_translation_unit): New function
26129         implementing the new hook.
26130         (dwarf2_debug_hooks): Assign
26131         dwarf2out_register_main_translation_unit to this new hook.
26132         (dwarf2out_init): Associate any main translation unit to
26133         comp_unit_die ().
26135 2015-06-11  Marek Polacek  <polacek@redhat.com>
26137         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26139 2015-06-11  Marek Polacek  <polacek@redhat.com>
26141         * match.pd: Use single_use throughout.
26143 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26145         * config/arm/arm.c (arm_option_params_internal): When optimising
26146         for speed set max_insns_skipped when arm_restrict_it.
26148 2015-06-11  Christian Bruel  <christian.bruel@st.com>
26150         PR target/52144
26151         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26152          macros in ...
26153         (arm_cpu_builtins): New function.
26154         (arm_pragma_target_parse): Call arm_cpu_builtins.
26155         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26156         (arm_register_target_pragmas): Likewise.
26157         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26158          Call arm_register_target_pragmas.
26159         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26160         (arm_pragma_target_parse): Likewise.
26162 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
26164         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26165         of the second operand.
26167 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
26169         PR target/66473
26170         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26171         to prepare mask operand for AVX512 modes.
26173 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
26175         PR target/66474
26176         * doc/md.texi (Machine Constraints): Document that on the PowerPC
26177         if you use a constraint that targets a VSX register, you must use
26178         %x<n> in the template.
26180 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
26182         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26183         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26184         (define_insn "trap"): New definition.
26186 2015-06-10  Richard Biener  <rguenther@suse.de>
26188         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26189         out from ...
26190         (vect_supported_load_permutation_p): ... here.  Handle
26191         supportable permutations in reductions.
26192         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26193         for vectorizing strided group loads.
26195 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
26197         PR target/66470
26198         * config/i386/i386.c (ix86_split_long_move): For collisions
26199         involving direct tls segment refs, move the UNSPEC_TP possibly
26200         wrapped in ZERO_EXTEND out of the address for lea, to each of
26201         the memory loads.
26203 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26205         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26206         dmb sy. Adjust tabs.
26208 2015-06-10  Tom de Vries  <tom@codesourcery.com>
26210         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26212 2015-06-10  Martin Liska  <mliska@suse.cz>
26214         PR bootstrap/66471
26215         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26216         all enum values in mem_alloc_origin.
26217         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26218         name.
26219         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26220         * bitmap.c (bitmap_register): Likewise.
26221         (dump_bitmap_statistics): Likewise.
26222         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26223         (ggc_record_overhead): Likewise.
26224         * hash-map.h: Likewise.
26225         * hash-set.h: Likewise.
26226         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26227         * hash-table.h: Likewise.
26228         * vec.c (vec_prefix::register_overhead): Likewise.
26229         (vec_prefix::release_overhead): Likewise.
26230         (dump_vec_loc_statistics): Likewise.
26232 2015-06-09  Christian Bruel  <christian.bruel@st.com>
26234         PR target/52144
26235         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26236         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26237         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26238         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26239         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26240         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26241         (arm_valid_target_attribute_p): Likewise.
26242         (arm_set_current_function, arm_can_inline_p): Likewise.
26243         (arm_valid_target_attribute_rec): Likewise.
26244         (arm_previous_fndecl): New variable.
26245         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26246         (TARGET_CAN_INLINE_P): Define.
26247         (arm_asm_trampoline_template): Emit mode.
26248         (arm_file_start): Don't set unified syntax.
26249         (arm_declare_function_name): Set unified syntax and mode.
26250         (arm_option_override): Init target_option_default_node.
26251         and target_option_current_node.
26252         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26253         (*call_symbol): Likewise.
26254         * doc/extend.texi: Document ARM/Thumb target attribute.
26255         * doc/invoke.texi: Likewise.
26257 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26259         Revert:
26260         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26261         PR rtl-optimization/64164
26262         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26263         * tree-ssa-copyrename.c: Removed.
26264         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
26265         -ftree-coalesce-vars.
26266         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26267         * common.opt (ftree-copyrename): Ignore.
26268         (ftree-coalesce-inlined-vars): Likewise.
26269         * doc/invoke.texi: Remove the ignored options above.
26270         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26271         * tree-ssa-coalesce.h: ... here.
26272         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26273         headers required by it.
26274         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26275         across variables when flag_tree_coalesce_vars.  Check register
26276         use and promoted modes to allow coalescing.  Moved to
26277         tree-ssa-coalesce.c.
26278         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26279         with its member functions to tree-ssa-coalesce.c.
26280         (var_map_base_init): Likewise.  Renamed to
26281         compute_samebase_partition_bases.
26282         (partition_view_normal): Drop want_bases parameter.
26283         (partition_view_bitmap): Likewise.
26284         * tree-ssa-live.h: Adjust declarations.
26285         * tree-ssa-coalesce.c: Include explow.h.
26286         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26287         default defs at the entry point.
26288         (dump_part_var_map): New.
26289         (compute_optimized_partition_bases): New, called by...
26290         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26291         of compute_samebase_partition_bases.  Adjust.
26292         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26293         * cfgexpand.c (leader_merge): New.
26294         (get_rtl_for_parm_ssa_default_def): New.
26295         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26296         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26297         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
26298         redundant MEM attr setting.
26299         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
26300         from...
26301         (expand_one_stack_var): ... this.  New wrapper to check and
26302         skip already expanded SSA partitions.
26303         (record_alignment_for_reg_var): New, factored out of...
26304         (expand_one_var): ... this.
26305         (expand_one_ssa_partition): New.
26306         (adjust_one_expanded_partition_var): New.
26307         (expand_one_register_var): Check and skip already expanded SSA
26308         partitions.
26309         (expand_used_vars): Don't create DECLs for anonymous SSA
26310         names.  Expand all SSA partitions, then adjust all SSA names.
26311         (pass::execute): Replace the loops that set
26312         SA.partition_to_pseudo from partition leaders and cleared
26313         DECL_RTL for multi-location variables, and that which used to
26314         rename vars and set attrs, with one that clears DECL_RTL and
26315         checks that PARMs and RESULTs default_defs match DECL_RTL.
26316         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26317         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26318         * explow.c (promote_ssa_mode): New.
26319         * explow.h (promote_ssa_mode): Declare.
26320         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26321         * function.c: Include cfgexpand.h.
26322         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26323         (use_register_for_parm_decl): Wrapper for the above to
26324         special-case the result_ptr.
26325         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26326         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26327         multiple locations.
26328         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26329         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
26330         (assign_parm_setup_block): Prefer SSA-assigned location.
26331         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
26332         if stack_parm is NULL.
26333         (assign_parm_setup_stack): Prefer SSA-assigned location.
26334         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26335         rtl before testing for pointer bounds.  Special-case result_ptr.
26336         (expand_function_start): Maybe reset DECL_RTL of result.
26337         Prefer SSA-assigned location for result and static chain.
26338         Factor out DECL_RESULT and SET_DECL_RTL.
26339         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26340         anonymous SSA names.  Use promote_ssa_mode.
26341         (get_temp_reg): Likewise.
26342         (remove_ssa_form): Adjust.
26343         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26344         and get its reg_usage for reg invalidation.
26345         (compute_bb_dataflow): Pass it insn.
26346         (emit_notes_in_bb): Likewise.
26347         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26348         fail assert on conversion between unsigned types.
26350 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26352         PR tree-optimization/65460
26353         * omp-low.c (expand_omp_target): Set parallelized_function on
26354         cgraph_node for child_fn.
26356 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26358         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26359         parallelized_function before add_new_function.
26361 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
26363         * gcc-plugin.h: Move decls to plugin.h and include it.
26364         * plugin.h: Relocate decls from gcc-plugin.h
26365         * ggc-page.c: Include required header files.
26366         * passes.c: Likewise.
26367         * cgraphunit.c: Likewise.
26369 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26371         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26373 2015-06-09  Jason Merrill  <jason@redhat.com>
26375         PR bootstrap/66448
26376         * toplev.c (check_global_declaration): Don't warn about a clone.
26378 2015-06-09  Marek Polacek  <polacek@redhat.com>
26380         PR tree-optimization/66299
26381         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26382         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26383         patterns.
26385 2015-06-09  Richard Biener  <rguenther@suse.de>
26387         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26388         (vect_analyze_slp_instance): Instead do not falsely drop
26389         load permutations.
26391 2015-06-09  Richard Biener  <rguenther@suse.de>
26393         PR middle-end/66423
26394         * match.pd: Handle A % (unsigned)(1 << B).
26396 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
26398         * varasm.c (output_object_block_htab): Remove.
26399         (output_object_block_compare): New.
26400         (output_object_blocks): Sort named object_blocks before outputting
26401         them.
26403 2015-06-09  Richard Biener  <rguenther@suse.de>
26405         PR tree-optimization/66419
26406         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26407         consider GROUP_GAP when detecting a perfect subchain.
26409 2015-06-09  Nick Clifton  <nickc@redhat.com>
26411         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26412         place read only data in the .frodata section.
26414 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
26416         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26417         (atomic_store<mode>): Likewise.
26419 2015-06-09  Richard Biener  <rguenther@suse.de>
26421         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26423 2015-06-09  Richard Biener  <rguenther@suse.de>
26425         PR middle-end/66413
26426         * tree-inline.c (insert_init_debug_bind): Unshare value.
26428 2015-06-09  Richard Biener  <rguenther@suse.de>
26430         PR tree-optimization/66396
26431         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26432         Rename virtual operands.
26434 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26436         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26437         always return false.
26439 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26441         PR rtl-optimization/64164
26442         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26443         * tree-ssa-copyrename.c: Removed.
26444         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
26445         -ftree-coalesce-vars.
26446         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26447         * common.opt (ftree-copyrename): Ignore.
26448         (ftree-coalesce-inlined-vars): Likewise.
26449         * doc/invoke.texi: Remove the ignored options above.
26450         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26451         * tree-ssa-coalesce.h: ... here.
26452         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26453         headers required by it.
26454         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26455         across variables when flag_tree_coalesce_vars.  Check register
26456         use and promoted modes to allow coalescing.  Moved to
26457         tree-ssa-coalesce.c.
26458         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26459         with its member functions to tree-ssa-coalesce.c.
26460         (var_map_base_init): Likewise.  Renamed to
26461         compute_samebase_partition_bases.
26462         (partition_view_normal): Drop want_bases parameter.
26463         (partition_view_bitmap): Likewise.
26464         * tree-ssa-live.h: Adjust declarations.
26465         * tree-ssa-coalesce.c: Include explow.h.
26466         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26467         default defs at the entry point.
26468         (dump_part_var_map): New.
26469         (compute_optimized_partition_bases): New, called by...
26470         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26471         of compute_samebase_partition_bases.  Adjust.
26472         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26473         * cfgexpand.c (leader_merge): New.
26474         (get_rtl_for_parm_ssa_default_def): New.
26475         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26476         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26477         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
26478         redundant MEM attr setting.
26479         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
26480         from...
26481         (expand_one_stack_var): ... this.  New wrapper to check and
26482         skip already expanded SSA partitions.
26483         (record_alignment_for_reg_var): New, factored out of...
26484         (expand_one_var): ... this.
26485         (expand_one_ssa_partition): New.
26486         (adjust_one_expanded_partition_var): New.
26487         (expand_one_register_var): Check and skip already expanded SSA
26488         partitions.
26489         (expand_used_vars): Don't create DECLs for anonymous SSA
26490         names.  Expand all SSA partitions, then adjust all SSA names.
26491         (pass::execute): Replace the loops that set
26492         SA.partition_to_pseudo from partition leaders and cleared
26493         DECL_RTL for multi-location variables, and that which used to
26494         rename vars and set attrs, with one that clears DECL_RTL and
26495         checks that PARMs and RESULTs default_defs match DECL_RTL.
26496         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26497         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26498         * explow.c (promote_ssa_mode): New.
26499         * explow.h (promote_ssa_mode): Declare.
26500         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26501         * function.c: Include cfgexpand.h.
26502         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26503         (use_register_for_parm_decl): Wrapper for the above to
26504         special-case the result_ptr.
26505         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26506         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26507         multiple locations.
26508         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26509         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
26510         (assign_parm_setup_block): Prefer SSA-assigned location.
26511         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
26512         if stack_parm is NULL.
26513         (assign_parm_setup_stack): Prefer SSA-assigned location.
26514         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26515         rtl before testing for pointer bounds.  Special-case result_ptr.
26516         (expand_function_start): Maybe reset DECL_RTL of result.
26517         Prefer SSA-assigned location for result and static chain.
26518         Factor out DECL_RESULT and SET_DECL_RTL.
26519         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26520         anonymous SSA names.  Use promote_ssa_mode.
26521         (get_temp_reg): Likewise.
26522         (remove_ssa_form): Adjust.
26523         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26524         and get its reg_usage for reg invalidation.
26525         (compute_bb_dataflow): Pass it insn.
26526         (emit_notes_in_bb): Likewise.
26527         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26528         fail assert on conversion between unsigned types.
26530 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26532         PR debug/58315
26533         * tree-inline.c (reset_debug_binding): New.
26534         (reset_debug_bindings): Likewise.
26535         (expand_call_inline): Call it.
26537 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26539         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26540         TYPE_STRING_FLAG.
26542 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
26544         * lto-streamer-out.c (lto_output_location): Stream
26545         reserved locations correctly.
26546         * lto-streamer-in.c (lto_output_location): Likewise.
26548 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
26550         * coretypes.h: Include hash-table.h and hash-set.h for host files.
26551         * ggc.h: Don't include statistics.h>
26552         * hash-map.h: Remove all includes.
26553         * hash-set.h: Likewise.
26554         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26555         the include list. Remove <new>.
26556         * inchash.h: Remove all includes.
26557         * mem-stats.h: Likewise.
26558         * vec.h: No special processing for generators or ggc.
26559         * alias.c : Adjust include files.
26560         * alloc-pool.c : Likewise.
26561         * alloc-pool.h : Likewise.
26562         * asan.c : Likewise.
26563         * attribs.c : Likewise.
26564         * auto-inc-dec.c : Likewise.
26565         * auto-profile.c : Likewise.
26566         * bb-reorder.c : Likewise.
26567         * bitmap.c : Likewise.
26568         * bitmap.h : Likewise.
26569         * bt-load.c : Likewise.
26570         * builtins.c : Likewise.
26571         * caller-save.c : Likewise.
26572         * calls.c : Likewise.
26573         * ccmp.c : Likewise.
26574         * cfg.c : Likewise.
26575         * cfganal.c : Likewise.
26576         * cfgbuild.c : Likewise.
26577         * cfgcleanup.c : Likewise.
26578         * cfgexpand.c : Likewise.
26579         * cfghooks.c : Likewise.
26580         * cfgloop.c : Likewise.
26581         * cfgloop.h : Likewise.
26582         * cfgloopanal.c : Likewise.
26583         * cfgloopmanip.c : Likewise.
26584         * cfgrtl.c : Likewise.
26585         * cgraph.c : Likewise.
26586         * cgraphbuild.c : Likewise.
26587         * cgraphclones.c : Likewise.
26588         * cgraphunit.c : Likewise.
26589         * cilk-common.c : Likewise.
26590         * combine-stack-adj.c : Likewise.
26591         * combine.c : Likewise.
26592         * compare-elim.c : Likewise.
26593         * context.c : Likewise.
26594         * convert.c : Likewise.
26595         * coverage.c : Likewise.
26596         * cppbuiltin.c : Likewise.
26597         * cprop.c : Likewise.
26598         * cse.c : Likewise.
26599         * cselib.c : Likewise.
26600         * data-streamer-in.c : Likewise.
26601         * data-streamer-out.c : Likewise.
26602         * data-streamer.c : Likewise.
26603         * data-streamer.h : Likewise.
26604         * dbxout.c : Likewise.
26605         * dce.c : Likewise.
26606         * ddg.c : Likewise.
26607         * debug.c : Likewise.
26608         * df-core.c : Likewise.
26609         * df-problems.c : Likewise.
26610         * df-scan.c : Likewise.
26611         * df.h : Likewise.
26612         * dfp.c : Likewise.
26613         * dojump.c : Likewise.
26614         * dominance.c : Likewise.
26615         * domwalk.c : Likewise.
26616         * double-int.c : Likewise.
26617         * dse.c : Likewise.
26618         * dumpfile.c : Likewise.
26619         * dwarf2asm.c : Likewise.
26620         * dwarf2cfi.c : Likewise.
26621         * dwarf2out.c : Likewise.
26622         * emit-rtl.c : Likewise.
26623         * et-forest.c : Likewise.
26624         * except.c : Likewise.
26625         * except.h : Likewise.
26626         * explow.c : Likewise.
26627         * expmed.c : Likewise.
26628         * expr.c : Likewise.
26629         * final.c : Likewise.
26630         * fixed-value.c : Likewise.
26631         * fold-const.c : Likewise.
26632         * function.c : Likewise.
26633         * fwprop.c : Likewise.
26634         * gcc-plugin.h : Likewise.
26635         * gcc.c : Likewise.
26636         * gcse-common.c : Likewise.
26637         * gcse.c : Likewise.
26638         * genattrtab.c : Likewise.
26639         * genautomata.c : Likewise.
26640         * genconditions.c : Likewise.
26641         * genemit.c : Likewise.
26642         * generic-match-head.c : Likewise.
26643         * genextract.c : Likewise.
26644         * gengtype-state.c : Likewise.
26645         * gengtype.c : Likewise.
26646         * genhooks.c : Likewise.
26647         * genmatch.c : Likewise.
26648         * genmodes.c : Likewise.
26649         * genrecog.c : Likewise.
26650         * gensupport.c : Likewise.
26651         * ggc-common.c : Likewise.
26652         * ggc-internal.h : Likewise.
26653         * ggc-none.c : Likewise.
26654         * ggc-page.c : Likewise.
26655         * gimple-builder.c : Likewise.
26656         * gimple-expr.c : Likewise.
26657         * gimple-fold.c : Likewise.
26658         * gimple-iterator.c : Likewise.
26659         * gimple-low.c : Likewise.
26660         * gimple-match-head.c : Likewise.
26661         * gimple-pretty-print.c : Likewise.
26662         * gimple-ssa-isolate-paths.c : Likewise.
26663         * gimple-ssa-strength-reduction.c : Likewise.
26664         * gimple-ssa.h : Likewise.
26665         * gimple-streamer-in.c : Likewise.
26666         * gimple-streamer-out.c : Likewise.
26667         * gimple-streamer.h : Likewise.
26668         * gimple-walk.c : Likewise.
26669         * gimple.c : Likewise.
26670         * gimplify-me.c : Likewise.
26671         * gimplify.c : Likewise.
26672         * godump.c : Likewise.
26673         * graph.c : Likewise.
26674         * graphds.c : Likewise.
26675         * graphite-blocking.c : Likewise.
26676         * graphite-dependences.c : Likewise.
26677         * graphite-interchange.c : Likewise.
26678         * graphite-isl-ast-to-gimple.c : Likewise.
26679         * graphite-optimize-isl.c : Likewise.
26680         * graphite-poly.c : Likewise.
26681         * graphite-scop-detection.c : Likewise.
26682         * graphite-sese-to-poly.c : Likewise.
26683         * graphite.c : Likewise.
26684         * haifa-sched.c : Likewise.
26685         * hard-reg-set.h : Likewise.
26686         * hw-doloop.c : Likewise.
26687         * ifcvt.c : Likewise.
26688         * inchash.c : Likewise.
26689         * incpath.c : Likewise.
26690         * init-regs.c : Likewise.
26691         * input.c : Likewise.
26692         * internal-fn.c : Likewise.
26693         * ipa-chkp.c : Likewise.
26694         * ipa-comdats.c : Likewise.
26695         * ipa-cp.c : Likewise.
26696         * ipa-devirt.c : Likewise.
26697         * ipa-icf-gimple.c : Likewise.
26698         * ipa-icf.c : Likewise.
26699         * ipa-inline-analysis.c : Likewise.
26700         * ipa-inline-transform.c : Likewise.
26701         * ipa-inline.c : Likewise.
26702         * ipa-polymorphic-call.c : Likewise.
26703         * ipa-profile.c : Likewise.
26704         * ipa-prop.c : Likewise.
26705         * ipa-pure-const.c : Likewise.
26706         * ipa-ref.c : Likewise.
26707         * ipa-reference.c : Likewise.
26708         * ipa-split.c : Likewise.
26709         * ipa-utils.c : Likewise.
26710         * ipa-visibility.c : Likewise.
26711         * ipa.c : Likewise.
26712         * ira-build.c : Likewise.
26713         * ira-color.c : Likewise.
26714         * ira-conflicts.c : Likewise.
26715         * ira-costs.c : Likewise.
26716         * ira-emit.c : Likewise.
26717         * ira-lives.c : Likewise.
26718         * ira.c : Likewise.
26719         * jump.c : Likewise.
26720         * langhooks.c : Likewise.
26721         * lcm.c : Likewise.
26722         * libfuncs.h : Likewise.
26723         * lists.c : Likewise.
26724         * loop-doloop.c : Likewise.
26725         * loop-init.c : Likewise.
26726         * loop-invariant.c : Likewise.
26727         * loop-iv.c : Likewise.
26728         * loop-unroll.c : Likewise.
26729         * lower-subreg.c : Likewise.
26730         * lra-assigns.c : Likewise.
26731         * lra-coalesce.c : Likewise.
26732         * lra-constraints.c : Likewise.
26733         * lra-eliminations.c : Likewise.
26734         * lra-lives.c : Likewise.
26735         * lra-remat.c : Likewise.
26736         * lra-spills.c : Likewise.
26737         * lra.c : Likewise.
26738         * lto-cgraph.c : Likewise.
26739         * lto-compress.c : Likewise.
26740         * lto-opts.c : Likewise.
26741         * lto-section-in.c : Likewise.
26742         * lto-section-out.c : Likewise.
26743         * lto-streamer-in.c : Likewise.
26744         * lto-streamer-out.c : Likewise.
26745         * lto-streamer.c : Likewise.
26746         * lto-streamer.h : Likewise.
26747         * mcf.c : Likewise.
26748         * mode-switching.c : Likewise.
26749         * modulo-sched.c : Likewise.
26750         * omega.c : Likewise.
26751         * omp-low.c : Likewise.
26752         * optabs.c : Likewise.
26753         * opts-global.c : Likewise.
26754         * opts.h : Likewise.
26755         * passes.c : Likewise.
26756         * plugin.c : Likewise.
26757         * postreload-gcse.c : Likewise.
26758         * postreload.c : Likewise.
26759         * predict.c : Likewise.
26760         * print-rtl.c : Likewise.
26761         * print-tree.c : Likewise.
26762         * profile.c : Likewise.
26763         * read-md.c : Likewise.
26764         * read-md.h : Likewise.
26765         * read-rtl.c : Likewise.
26766         * real.c : Likewise.
26767         * realmpfr.c : Likewise.
26768         * recog.c : Likewise.
26769         * ree.c : Likewise.
26770         * reg-stack.c : Likewise.
26771         * regcprop.c : Likewise.
26772         * reginfo.c : Likewise.
26773         * regrename.c : Likewise.
26774         * regstat.c : Likewise.
26775         * reload.c : Likewise.
26776         * reload1.c : Likewise.
26777         * reorg.c : Likewise.
26778         * resource.c : Likewise.
26779         * rtl-chkp.c : Likewise.
26780         * rtl.c : Likewise.
26781         * rtl.h : Likewise.
26782         * rtlanal.c : Likewise.
26783         * rtlhash.c : Likewise.
26784         * rtlhash.h : Likewise.
26785         * rtlhooks.c : Likewise.
26786         * sanopt.c : Likewise.
26787         * sched-deps.c : Likewise.
26788         * sched-ebb.c : Likewise.
26789         * sched-rgn.c : Likewise.
26790         * sched-vis.c : Likewise.
26791         * sdbout.c : Likewise.
26792         * sel-sched-dump.c : Likewise.
26793         * sel-sched-ir.c : Likewise.
26794         * sel-sched-ir.h : Likewise.
26795         * sel-sched.c : Likewise.
26796         * sese.c : Likewise.
26797         * shrink-wrap.c : Likewise.
26798         * shrink-wrap.h : Likewise.
26799         * simplify-rtx.c : Likewise.
26800         * stack-ptr-mod.c : Likewise.
26801         * statistics.c : Likewise.
26802         * stmt.c : Likewise.
26803         * stor-layout.c : Likewise.
26804         * store-motion.c : Likewise.
26805         * stringpool.c : Likewise.
26806         * symtab.c : Likewise.
26807         * target-globals.c : Likewise.
26808         * targhooks.c : Likewise.
26809         * tlink.c : Likewise.
26810         * toplev.c : Likewise.
26811         * tracer.c : Likewise.
26812         * trans-mem.c : Likewise.
26813         * tree-affine.c : Likewise.
26814         * tree-affine.h : Likewise.
26815         * tree-browser.c : Likewise.
26816         * tree-call-cdce.c : Likewise.
26817         * tree-cfg.c : Likewise.
26818         * tree-cfgcleanup.c : Likewise.
26819         * tree-chkp-opt.c : Likewise.
26820         * tree-chkp.c : Likewise.
26821         * tree-chrec.c : Likewise.
26822         * tree-complex.c : Likewise.
26823         * tree-data-ref.c : Likewise.
26824         * tree-dfa.c : Likewise.
26825         * tree-diagnostic.c : Likewise.
26826         * tree-dump.c : Likewise.
26827         * tree-eh.c : Likewise.
26828         * tree-eh.h : Likewise.
26829         * tree-emutls.c : Likewise.
26830         * tree-hasher.h : Likewise.
26831         * tree-if-conv.c : Likewise.
26832         * tree-inline.c : Likewise.
26833         * tree-inline.h : Likewise.
26834         * tree-into-ssa.c : Likewise.
26835         * tree-iterator.c : Likewise.
26836         * tree-loop-distribution.c : Likewise.
26837         * tree-nested.c : Likewise.
26838         * tree-nrv.c : Likewise.
26839         * tree-object-size.c : Likewise.
26840         * tree-outof-ssa.c : Likewise.
26841         * tree-parloops.c : Likewise.
26842         * tree-phinodes.c : Likewise.
26843         * tree-predcom.c : Likewise.
26844         * tree-pretty-print.c : Likewise.
26845         * tree-profile.c : Likewise.
26846         * tree-scalar-evolution.c : Likewise.
26847         * tree-sra.c : Likewise.
26848         * tree-ssa-address.c : Likewise.
26849         * tree-ssa-alias.c : Likewise.
26850         * tree-ssa-ccp.c : Likewise.
26851         * tree-ssa-coalesce.c : Likewise.
26852         * tree-ssa-copy.c : Likewise.
26853         * tree-ssa-copyrename.c : Likewise.
26854         * tree-ssa-dce.c : Likewise.
26855         * tree-ssa-dom.c : Likewise.
26856         * tree-ssa-dse.c : Likewise.
26857         * tree-ssa-forwprop.c : Likewise.
26858         * tree-ssa-ifcombine.c : Likewise.
26859         * tree-ssa-live.c : Likewise.
26860         * tree-ssa-loop-ch.c : Likewise.
26861         * tree-ssa-loop-im.c : Likewise.
26862         * tree-ssa-loop-ivcanon.c : Likewise.
26863         * tree-ssa-loop-ivopts.c : Likewise.
26864         * tree-ssa-loop-manip.c : Likewise.
26865         * tree-ssa-loop-niter.c : Likewise.
26866         * tree-ssa-loop-prefetch.c : Likewise.
26867         * tree-ssa-loop-unswitch.c : Likewise.
26868         * tree-ssa-loop.c : Likewise.
26869         * tree-ssa-math-opts.c : Likewise.
26870         * tree-ssa-operands.c : Likewise.
26871         * tree-ssa-phiopt.c : Likewise.
26872         * tree-ssa-phiprop.c : Likewise.
26873         * tree-ssa-pre.c : Likewise.
26874         * tree-ssa-propagate.c : Likewise.
26875         * tree-ssa-reassoc.c : Likewise.
26876         * tree-ssa-sccvn.c : Likewise.
26877         * tree-ssa-scopedtables.c : Likewise.
26878         * tree-ssa-sink.c : Likewise.
26879         * tree-ssa-strlen.c : Likewise.
26880         * tree-ssa-structalias.c : Likewise.
26881         * tree-ssa-tail-merge.c : Likewise.
26882         * tree-ssa-ter.c : Likewise.
26883         * tree-ssa-threadedge.c : Likewise.
26884         * tree-ssa-threadupdate.c : Likewise.
26885         * tree-ssa-uncprop.c : Likewise.
26886         * tree-ssa-uninit.c : Likewise.
26887         * tree-ssa.c : Likewise.
26888         * tree-ssanames.c : Likewise.
26889         * tree-stdarg.c : Likewise.
26890         * tree-streamer-in.c : Likewise.
26891         * tree-streamer-out.c : Likewise.
26892         * tree-streamer.c : Likewise.
26893         * tree-streamer.h : Likewise.
26894         * tree-switch-conversion.c : Likewise.
26895         * tree-tailcall.c : Likewise.
26896         * tree-vect-data-refs.c : Likewise.
26897         * tree-vect-generic.c : Likewise.
26898         * tree-vect-loop-manip.c : Likewise.
26899         * tree-vect-loop.c : Likewise.
26900         * tree-vect-patterns.c : Likewise.
26901         * tree-vect-slp.c : Likewise.
26902         * tree-vect-stmts.c : Likewise.
26903         * tree-vectorizer.c : Likewise.
26904         * tree-vectorizer.h : Likewise.
26905         * tree-vrp.c : Likewise.
26906         * tree.c : Likewise.
26907         * tsan.c : Likewise.
26908         * ubsan.c : Likewise.
26909         * valtrack.c : Likewise.
26910         * valtrack.h : Likewise.
26911         * value-prof.c : Likewise.
26912         * var-tracking.c : Likewise.
26913         * varasm.c : Likewise.
26914         * varpool.c : Likewise.
26915         * vec.c: Likewise.
26916         * vmsdbgout.c : Likewise.
26917         * vtable-verify.c : Likewise.
26918         * vtable-verify.h : Likewise.
26919         * web.c : Likewise.
26920         * wide-int.cc : Likewise.
26921         * xcoffout.c : Likewise.
26922         * config/aarch64/aarch64-builtins.c : Likewise.
26923         * config/aarch64/aarch64.c : Likewise.
26924         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26925         * config/alpha/alpha.c : Likewise.
26926         * config/arc/arc.c : Likewise.
26927         * config/arm/aarch-common.c : Likewise.
26928         * config/arm/arm-builtins.c : Likewise.
26929         * config/arm/arm-c.c : Likewise.
26930         * config/arm/arm.c : Likewise.
26931         * config/avr/avr-c.c : Likewise.
26932         * config/avr/avr-log.c : Likewise.
26933         * config/avr/avr.c : Likewise.
26934         * config/bfin/bfin.c : Likewise.
26935         * config/c6x/c6x.c : Likewise.
26936         * config/cr16/cr16.c : Likewise.
26937         * config/cris/cris.c : Likewise.
26938         * config/darwin-c.c : Likewise.
26939         * config/darwin.c : Likewise.
26940         * config/default-c.c : Likewise.
26941         * config/epiphany/epiphany.c : Likewise.
26942         * config/epiphany/mode-switch-use.c : Likewise.
26943         * config/epiphany/resolve-sw-modes.c : Likewise.
26944         * config/fr30/fr30.c : Likewise.
26945         * config/frv/frv.c : Likewise.
26946         * config/ft32/ft32.c : Likewise.
26947         * config/glibc-c.c : Likewise.
26948         * config/h8300/h8300.c : Likewise.
26949         * config/i386/i386-c.c : Likewise.
26950         * config/i386/i386.c : Likewise.
26951         * config/i386/msformat-c.c : Likewise.
26952         * config/i386/winnt-cxx.c : Likewise.
26953         * config/i386/winnt-stubs.c : Likewise.
26954         * config/i386/winnt.c : Likewise.
26955         * config/ia64/ia64-c.c : Likewise.
26956         * config/ia64/ia64.c : Likewise.
26957         * config/iq2000/iq2000.c : Likewise.
26958         * config/lm32/lm32.c : Likewise.
26959         * config/m32c/m32c-pragma.c : Likewise.
26960         * config/m32c/m32c.c : Likewise.
26961         * config/m32r/m32r.c : Likewise.
26962         * config/m68k/m68k.c : Likewise.
26963         * config/mcore/mcore.c : Likewise.
26964         * config/mep/mep-pragma.c : Likewise.
26965         * config/mep/mep.c : Likewise.
26966         * config/microblaze/microblaze-c.c : Likewise.
26967         * config/microblaze/microblaze.c : Likewise.
26968         * config/mips/mips.c : Likewise.
26969         * config/mmix/mmix.c : Likewise.
26970         * config/mn10300/mn10300.c : Likewise.
26971         * config/moxie/moxie.c : Likewise.
26972         * config/msp430/msp430-c.c : Likewise.
26973         * config/msp430/msp430.c : Likewise.
26974         * config/nds32/nds32-cost.c : Likewise.
26975         * config/nds32/nds32-fp-as-gp.c : Likewise.
26976         * config/nds32/nds32-intrinsic.c : Likewise.
26977         * config/nds32/nds32-isr.c : Likewise.
26978         * config/nds32/nds32-md-auxiliary.c : Likewise.
26979         * config/nds32/nds32-memory-manipulation.c : Likewise.
26980         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26981         * config/nds32/nds32-predicates.c : Likewise.
26982         * config/nds32/nds32.c : Likewise.
26983         * config/nios2/nios2.c : Likewise.
26984         * config/nvptx/nvptx.c : Likewise.
26985         * config/pa/pa.c : Likewise.
26986         * config/pdp11/pdp11.c : Likewise.
26987         * config/rl78/rl78-c.c : Likewise.
26988         * config/rl78/rl78.c : Likewise.
26989         * config/rs6000/rs6000-c.c : Likewise.
26990         * config/rs6000/rs6000.c : Likewise.
26991         * config/rx/rx.c : Likewise.
26992         * config/s390/s390-c.c : Likewise.
26993         * config/s390/s390.c : Likewise.
26994         * config/sh/sh-c.c : Likewise.
26995         * config/sh/sh-mem.cc : Likewise.
26996         * config/sh/sh.c : Likewise.
26997         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26998         * config/sh/sh_treg_combine.cc : Likewise.
26999         * config/sol2-c.c : Likewise.
27000         * config/sol2-cxx.c : Likewise.
27001         * config/sol2-stubs.c : Likewise.
27002         * config/sol2.c : Likewise.
27003         * config/sparc/sparc-c.c : Likewise.
27004         * config/sparc/sparc.c : Likewise.
27005         * config/spu/spu-c.c : Likewise.
27006         * config/spu/spu.c : Likewise.
27007         * config/stormy16/stormy16.c : Likewise.
27008         * config/tilegx/mul-tables.c : Likewise.
27009         * config/tilegx/tilegx-c.c : Likewise.
27010         * config/tilegx/tilegx.c : Likewise.
27011         * config/tilepro/mul-tables.c : Likewise.
27012         * config/tilepro/tilepro-c.c : Likewise.
27013         * config/tilepro/tilepro.c : Likewise.
27014         * config/v850/v850-c.c : Likewise.
27015         * config/v850/v850.c : Likewise.
27016         * config/vax/vax.c : Likewise.
27017         * config/visium/visium.c : Likewise.
27018         * config/vms/vms-c.c : Likewise.
27019         * config/vms/vms.c : Likewise.
27020         * config/vxworks.c : Likewise.
27021         * config/winnt-c.c : Likewise.
27022         * config/xtensa/xtensa.c : Likewise.
27024 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27026         PR lto/65378
27027         * ipa-utils.h (warn_types_mismatch): Update prototype.
27028         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27029         parameters.
27030         (type_mismatch_p): New function.
27031         (warn_types_mismatch): Reorg to work better on non-C++ types.
27032         (odr_types_equivalent_p): Add loc1/loc2 parameters.
27033         (add_type_duplicate): Update.
27035 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27037         PR rtl-optimization/66444
27038         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27039         call_used_regs.
27041 2015-06-08  Richard Biener  <rguenther@suse.de>
27043         PR tree-optimization/66422
27044         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27045         block after inserted gcc_unreachable.
27047 2015-06-08  Nick Clifton  <nickc@redhat.com>
27049         * config/rx/rx.c (rx_function_value): Do not promote vector types.
27050         (rx_promote_function_mode): Likewise.
27051         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27053 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
27055         * genattrtab.c (insn_alternatives): Change type from int *
27056         to uint64_t *.
27057         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27058         (get_attr_value): Change type of num_alt to uint64_t.
27059         (compute_alternative_mask): Change return type from
27060         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27061         (make_alternative_compare, mk_attr_alt): Change argument type
27062         from int to uint64_t.
27063         (simplify_test_exp): Change type of i from int to uint64_t.
27064         Shift ((uint64_t) 1) instead of 1 up.
27065         (main): Adjust oballocvec first argument from int to uint64_t.
27066         Shift ((uint64_t) 1) instead of 1 up.
27068 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
27070         PR other/65366
27071         * gdbhooks.py: Import sys.
27072         (intptr): New function.  Replace int(...) by intptr(...).
27074 2015-06-08  Richard Biener  <rguenther@suse.de>
27076         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27077         adjustment for gaps at the end of a SLP load group properly.
27078         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27079         all permutations we can generate.
27080         (vect_transform_slp_perm_load): Use the correct group-size.
27082 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
27084         * genmatch.c (expr::gen_transform): For conditions, guess the type
27085         from the second operand.
27087 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27089         PR tree-optimization/66442
27090         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27091         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27092         if the loop latch is not a singleton.  Use
27093         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27095 2015-06-08  Marek Polacek  <polacek@redhat.com>
27097         PR sanitizer/66452
27098         * toplev.c (check_global_declaration): Don't warn about artificial
27099         decls.
27101 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27103         PR tree-optimization/66436
27104         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27105         dump file.
27106         * gimplify.c: Add tree-dump.h include.
27107         (gimplify_function_tree): Dump function to gimple dump file.
27108         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27109         dump file.
27111 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27113         PR tree-optimization/66435
27114         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27115         function.
27117 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
27119         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27120         of ptr_type_node to not be ptr_to_node.
27121         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27122         TREE_TYPE of pointers.
27123         * gimple-expr.c (useless_type_conversion): Reorder the check for
27124         function pointers and TYPE_CANONICAL.
27126 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
27128         PR bootstrap/66319
27129         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27130         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27131         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27132         later.
27133         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27134         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27135         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27136         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27137         and non iso if unix2003.
27139 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
27141         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27143 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
27145         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27146         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27147         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27148         except.c, final.c, function.c, gcse-common.c, genemit.c,
27149         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27150         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27151         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27152         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27153         more derived ones.
27155 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
27157         * combine.c (combine_split_insns): Remove cast.
27158         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27159         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27160         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27161         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27162         * genemit.c (gen_split): Change return type of generated functions to
27163         rtx_insn.
27164         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27165         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27166         gen_peephole2_* functions.
27167         (print_subroutine, main): Likewise.
27168         * recog.c (peephole2_optimize): Remove cast.
27169         (peep2_next_insn): Promote return type to rtx_insn.
27170         * recog.h (peep2_next_insn): Fix prototype.
27171         * rtl.h (try_split, split_insns): Likewise.
27173 2015-06-06  DJ Delorie  <dj@redhat.com>
27175         * config/msp430/msp430.c (msp430_asm_integer): Support addition
27176         and subtraction too.
27178 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27180         PR target/66410
27181         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27182         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27183         instead of Snd.  Disparage Sid/z alternative with '^'.
27185 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
27187         * dwarf2out.c: Remove deferred_locations*.
27188         (dwarf2_debug_hooks): Add early_finish hook.
27189         Remove global_decl hook.
27190         Add early_global_decl and late_global_decl hook.
27191         New global early_dwarf.
27192         New structure set_early_dwarf.
27193         (output_die): Indicate whether a DIE was generated early
27194         when generating assembly with -dA.
27195         (struct limbo_die_struct): Document created_for field.
27196         Remove file_table_last_lookup.
27197         (remove_AT): Return TRUE if successful.
27198         (remove_child_TAG): Clear die_parent.
27199         (reparent_child): New function abstracted from...
27200         (splice_child_die): ...here.
27201         (new_die): ICE if a DIE ends up in limbo too late.
27202         (check_die): New.
27203         (defer_location): Remove.
27204         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27205         (fill_variable_array_bounds): New.
27206         (decl_start_label): Call fill_variable_array_bounds.
27207         (gen_formal_parameter_die): Rewrite to reuse previously generated
27208         DIEs.
27209         (gen_subprogram_die): Same.
27210         (gen_variable_die): Same.
27211         (gen_const_die): Same.
27212         (gen_label_die): Same.
27213         (gen_lexical_block_die): Same.
27214         (decl_will_get_specification_p): New.
27215         (local_function_static): New.
27216         (gen_struct_or_union_type_die): Fill in variable-length fields.
27217         (gen_typedef_die): Fill in variable-length typedefs.
27218         (gen_tagged_type_die): Gracefully return on error_mark_node.
27219         Handle re-entrancy.
27220         (gen_type_die_with_usage): Handle variable-length types.
27221         Remove duplicate code for ARRAY_TYPE case.
27222         (process_scope_var): Only process imported modules during early
27223         dwarf.
27224         (dwarf2out_early_global_decl): New.
27225         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27226         (dwarf2out_type_decl): Set early_dwarf while calling
27227         dwarf2out_decl.
27228         (dwarf2out_decl): Verify that we did not recreate a previously
27229         generated DIE.
27230         Do not return on DECL_EXTERNALs in VAR_DECLs.
27231         Abstract some code to local_function_static.
27232         (lookup_filename): Remove use of file_table_last_lookup.
27233         Gracefully exit on missing file_name.
27234         (dwarf2out_finish): Verify limbo list.
27235         Remove deferred_locations_list use.
27236         Move deferred_asm_name and limbo flushing to...
27237         (dwarf2out_early_finish): ...here.  New.
27238         (dwarf2out_c_finalize): Remove set of deferred_location_list,
27239         deferred_asm_name, and file_table_last_lookup.
27240         * cgraph.h (referred_to_p): Add default argument.
27241         * cgraphunit.c (referred_to_p): Add and handle include_self
27242         argument.
27243         (analyze_functions): Add first_time argument.
27244         Call check_global_declaration for all symbols.
27245         Call late_global_decl for nodes for moribund nodes.
27246         (finalize_compilation_unit): Add new argument to
27247         analyze_functions.
27248         Call early_global_decl for functions.
27249         Call early_finish debug hook.
27250         * dbxout.c (dbxout_early_global_decl): New.
27251         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
27252         (dbx_debug_hooks): Add new hooks.
27253         (xcoff_debug_hooks): Same.
27254         * debug.c (do_nothing_debug_hooks): Add early_finish field.
27255         Add early and late debug hooks.
27256         Remove global_decl hook.
27257         * debug.h (struct gcc_debug_hooks): Add early_finish,
27258         early_global_decl, and late_global_decl fields.
27259         Remove global_decl field.
27260         Document gcc_debug_hooks.
27261         * gengtype.c (output_typename): Remove.
27262         * godump.c (go_early_global_decl): New.
27263         (go_late_global_decl): New.
27264         (go_global_decl): Remove.
27265         (dump_go_spec_init): Remove global_decl.  Add
27266         {early,late}_global_decl.
27267         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27268         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27269         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27270         (write_global_declarations): Remove.
27271         (global_decl_processing): New.
27272         * langhooks.h (struct lang_hooks_for_decls): Remove
27273         final_write_globals field.
27274         Add post_compilation_parsing_cleanups field.
27275         * passes.c (rest_of_decl_compilation): Call early_global_decl.
27276         * sdbout.c: Add early and late_global_decl hooks.  Remove
27277         sdbout_global_decl hook.
27278         Add early_finish field for sdb_debug_hooks.
27279         (sdbout_global_decl): Remove.
27280         (sdbout_early_global_decl): New.
27281         (sdbout_late_global_decl): New.
27282         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27283         * toplev.c (check_global_declaration): Rename from
27284         check_global_declaration_1.
27285         Adapt to use symtab infrastructure.
27286         (check_global_declarations): Remove.
27287         (emit_debug_global_declarations): Remove.
27288         (compile_file): Remove call to final_write_globals langhook.
27289         Run the actual compilation process.
27290         Perform any post compilation parser cleanups.
27291         Generate late debug info.
27292         * toplev.h (check_global_declaration): New.
27293         (check_global_declaration_1): Remove.
27294         (check_global_declarations): Remove.
27295         (write_global_declarations): Remove.
27296         (emit_debug_global_declarations): Remove.
27297         (global_decl_processing): New.
27298         * tree-core.h (struct tree_block): Add DIE field.
27299         * tree.h (BLOCK_DIE): New.
27300         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27301         throughout.
27302         (vmsdbgout_early_global_decl): New.
27303         (vmsdbgout_late_global_decl): New.
27304         Add early_finish debug hook field to vmsdbg_debug_hooks.
27305         Remove vmsdbgout_decl to vmsdbgout_function_decl.
27306         Add early and late_global_decl debug hooks.
27308 2015-06-05  Julian Brown  <julian@codesourcery.com>
27309             Sandra Loosemore  <sandra@codesourcery.com>
27311         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27312         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27313         to print-sysroot-suffix.sh script.
27315 2015-06-05  Tom de Vries  <tom@codesourcery.com>
27317         merge from gomp4 branch:
27318         2015-05-28  Tom de Vries  <tom@codesourcery.com>
27320         PR tree-optimization/65443
27321         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27322         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27323         (try_transform_to_exit_first_loop_alt): New function.
27324         (transform_to_exit_first_loop): Use
27325         try_transform_to_exit_first_loop_alt.
27327 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
27329         * builtins.c (expand_builtin_atomic_compare_exchange): Call
27330         emit_cmp_and_jump_insns with the mode of target.
27332 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27334         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27336 2015-06-04  DJ Delorie  <dj@redhat.com>
27338         * config/msp430/msp430.md (movsi_s): New.  Special case for
27339         storing a 20-bit symbol into a 32-bit register.
27340         * config/msp430/msp430.c (msp430_subreg): Add support for it.
27341         * config/msp430/predicates.md (msp430_symbol_operand): New.
27343 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
27345         * calls.c (prepare_call_address): Check for noplt
27346         attribute.
27347         * config/i386/i386.c (ix86_expand_call): Check
27348         for noplt attribute.
27349         (ix86_nopic_noplt_attribute_p): New function.
27350         (ix86_output_call_insn): Output indirect call for non-pic
27351         no plt calls.
27352         * doc/extend.texi (noplt): Document new attribute.
27353         * doc/invoke.texi: Document new attribute.
27355 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
27357         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27358         real.h, and fixed-value.h when included in host source files.
27359         * double-int.h: Remove redundant #includes listed above.
27360         * fixed-value.h: Likewise.
27361         * real.h: Likewise.
27362         * wide-int.h: Likewise.
27363         * inchash.h: Likewise.
27364         * rtl.h: Add some include files When included from a generator file.
27365         * target.h: Remove wide-int.h and insn-modes.h from the include list.
27366         * internal-fn.h: Don't include coretypes.h.
27367         * alias.c: Adjust includes for restructured coretypes.h.
27368         * asan.c: Likewise.
27369         * attribs.c: Likewise.
27370         * auto-inc-dec.c: Likewise.
27371         * auto-profile.c: Likewise.
27372         * bb-reorder.c: Likewise.
27373         * bt-load.c: Likewise.
27374         * builtins.c: Likewise.
27375         * caller-save.c: Likewise.
27376         * calls.c: Likewise.
27377         * ccmp.c: Likewise.
27378         * cfg.c: Likewise.
27379         * cfganal.c: Likewise.
27380         * cfgbuild.c: Likewise.
27381         * cfgcleanup.c: Likewise.
27382         * cfgexpand.c: Likewise.
27383         * cfghooks.c: Likewise.
27384         * cfgloop.c: Likewise.
27385         * cfgloop.h: Likewise.
27386         * cfgloopanal.c: Likewise.
27387         * cfgloopmanip.c: Likewise.
27388         * cfgrtl.c: Likewise.
27389         * cgraph.c: Likewise.
27390         * cgraphbuild.c: Likewise.
27391         * cgraphclones.c: Likewise.
27392         * cgraphunit.c: Likewise.
27393         * cilk-common.c: Likewise.
27394         * combine-stack-adj.c: Likewise.
27395         * combine.c: Likewise.
27396         * compare-elim.c: Likewise.
27397         * convert.c: Likewise.
27398         * coverage.c: Likewise.
27399         * cppbuiltin.c: Likewise.
27400         * cprop.c: Likewise.
27401         * cse.c: Likewise.
27402         * cselib.c: Likewise.
27403         * data-streamer-in.c: Likewise.
27404         * data-streamer-out.c: Likewise.
27405         * data-streamer.c: Likewise.
27406         * dbxout.c: Likewise.
27407         * dce.c: Likewise.
27408         * ddg.c: Likewise.
27409         * debug.c: Likewise.
27410         * df-core.c: Likewise.
27411         * df-problems.c: Likewise.
27412         * df-scan.c: Likewise.
27413         * df.h: Likewise.
27414         * dfp.c: Likewise.
27415         * dojump.c: Likewise.
27416         * dominance.c: Likewise.
27417         * domwalk.c: Likewise.
27418         * double-int.c: Likewise.
27419         * dse.c: Likewise.
27420         * dumpfile.c: Likewise.
27421         * dwarf2asm.c: Likewise.
27422         * dwarf2cfi.c: Likewise.
27423         * dwarf2out.c: Likewise.
27424         * dwarf2out.h: Likewise.
27425         * emit-rtl.c: Likewise.
27426         * et-forest.c: Likewise.
27427         * except.c: Likewise.
27428         * explow.c: Likewise.
27429         * expmed.c: Likewise.
27430         * expr.c: Likewise.
27431         * final.c: Likewise.
27432         * fixed-value.c: Likewise.
27433         * fold-const.c: Likewise.
27434         * function.c: Likewise.
27435         * fwprop.c: Likewise.
27436         * gcc-plugin.h: Likewise.
27437         * gcse.c: Likewise.
27438         * generic-match-head.c: Likewise.
27439         * ggc-page.c: Likewise.
27440         * gimple-builder.c: Likewise.
27441         * gimple-expr.c: Likewise.
27442         * gimple-fold.c: Likewise.
27443         * gimple-iterator.c: Likewise.
27444         * gimple-low.c: Likewise.
27445         * gimple-match-head.c: Likewise.
27446         * gimple-pretty-print.c: Likewise.
27447         * gimple-ssa-isolate-paths.c: Likewise.
27448         * gimple-ssa-strength-reduction.c: Likewise.
27449         * gimple-streamer-in.c: Likewise.
27450         * gimple-streamer-out.c: Likewise.
27451         * gimple-streamer.h: Likewise.
27452         * gimple-walk.c: Likewise.
27453         * gimple.c: Likewise.
27454         * gimplify-me.c: Likewise.
27455         * gimplify.c: Likewise.
27456         * godump.c: Likewise.
27457         * graph.c: Likewise.
27458         * graphite-blocking.c: Likewise.
27459         * graphite-dependences.c: Likewise.
27460         * graphite-interchange.c: Likewise.
27461         * graphite-isl-ast-to-gimple.c: Likewise.
27462         * graphite-optimize-isl.c: Likewise.
27463         * graphite-poly.c: Likewise.
27464         * graphite-scop-detection.c: Likewise.
27465         * graphite-sese-to-poly.c: Likewise.
27466         * graphite.c: Likewise.
27467         * haifa-sched.c: Likewise.
27468         * hooks.h: Likewise.
27469         * hw-doloop.c: Likewise.
27470         * ifcvt.c: Likewise.
27471         * incpath.c: Likewise.
27472         * init-regs.c: Likewise.
27473         * internal-fn.c: Likewise.
27474         * ipa-chkp.c: Likewise.
27475         * ipa-comdats.c: Likewise.
27476         * ipa-cp.c: Likewise.
27477         * ipa-devirt.c: Likewise.
27478         * ipa-icf-gimple.c: Likewise.
27479         * ipa-icf.c: Likewise.
27480         * ipa-inline-analysis.c: Likewise.
27481         * ipa-inline-transform.c: Likewise.
27482         * ipa-inline.c: Likewise.
27483         * ipa-polymorphic-call.c: Likewise.
27484         * ipa-profile.c: Likewise.
27485         * ipa-prop.c: Likewise.
27486         * ipa-pure-const.c: Likewise.
27487         * ipa-ref.c: Likewise.
27488         * ipa-reference.c: Likewise.
27489         * ipa-split.c: Likewise.
27490         * ipa-utils.c: Likewise.
27491         * ipa-visibility.c: Likewise.
27492         * ipa.c: Likewise.
27493         * ira-build.c: Likewise.
27494         * ira-color.c: Likewise.
27495         * ira-conflicts.c: Likewise.
27496         * ira-costs.c: Likewise.
27497         * ira-emit.c: Likewise.
27498         * ira-lives.c: Likewise.
27499         * ira.c: Likewise.
27500         * jump.c: Likewise.
27501         * langhooks.c: Likewise.
27502         * lcm.c: Likewise.
27503         * loop-doloop.c: Likewise.
27504         * loop-init.c: Likewise.
27505         * loop-invariant.c: Likewise.
27506         * loop-iv.c: Likewise.
27507         * loop-unroll.c: Likewise.
27508         * lower-subreg.c: Likewise.
27509         * lra-assigns.c: Likewise.
27510         * lra-coalesce.c: Likewise.
27511         * lra-constraints.c: Likewise.
27512         * lra-eliminations.c: Likewise.
27513         * lra-lives.c: Likewise.
27514         * lra-remat.c: Likewise.
27515         * lra-spills.c: Likewise.
27516         * lra.c: Likewise.
27517         * lto-cgraph.c: Likewise.
27518         * lto-compress.c: Likewise.
27519         * lto-opts.c: Likewise.
27520         * lto-section-in.c: Likewise.
27521         * lto-section-out.c: Likewise.
27522         * lto-streamer-in.c: Likewise.
27523         * lto-streamer-out.c: Likewise.
27524         * lto-streamer.c: Likewise.
27525         * mcf.c: Likewise.
27526         * mode-switching.c: Likewise.
27527         * modulo-sched.c: Likewise.
27528         * omega.c: Likewise.
27529         * omp-low.c: Likewise.
27530         * optabs.c: Likewise.
27531         * opts-global.c: Likewise.
27532         * passes.c: Likewise.
27533         * plugin.c: Likewise.
27534         * postreload-gcse.c: Likewise.
27535         * postreload.c: Likewise.
27536         * predict.c: Likewise.
27537         * print-rtl.c: Likewise.
27538         * print-tree.c: Likewise.
27539         * profile.c: Likewise.
27540         * real.c: Likewise.
27541         * realmpfr.c: Likewise.
27542         * realmpfr.h: Likewise.
27543         * recog.c: Likewise.
27544         * ree.c: Likewise.
27545         * reg-stack.c: Likewise.
27546         * regcprop.c: Likewise.
27547         * reginfo.c: Likewise.
27548         * regrename.c: Likewise.
27549         * regs.h: Likewise.
27550         * regstat.c: Likewise.
27551         * reload.c: Likewise.
27552         * reload1.c: Likewise.
27553         * reorg.c: Likewise.
27554         * resource.c: Likewise.
27555         * rtl-chkp.c: Likewise.
27556         * rtlanal.c: Likewise.
27557         * rtlhooks.c: Likewise.
27558         * sanopt.c: Likewise.
27559         * sched-deps.c: Likewise.
27560         * sched-ebb.c: Likewise.
27561         * sched-rgn.c: Likewise.
27562         * sched-vis.c: Likewise.
27563         * sdbout.c: Likewise.
27564         * sel-sched-dump.c: Likewise.
27565         * sel-sched-ir.c: Likewise.
27566         * sel-sched.c: Likewise.
27567         * sese.c: Likewise.
27568         * shrink-wrap.c: Likewise.
27569         * shrink-wrap.h: Likewise.
27570         * simplify-rtx.c: Likewise.
27571         * stack-ptr-mod.c: Likewise.
27572         * statistics.c: Likewise.
27573         * stmt.c: Likewise.
27574         * stor-layout.c: Likewise.
27575         * store-motion.c: Likewise.
27576         * stringpool.c: Likewise.
27577         * symtab.c: Likewise.
27578         * target-globals.c: Likewise.
27579         * targhooks.c: Likewise.
27580         * toplev.c: Likewise.
27581         * tracer.c: Likewise.
27582         * trans-mem.c: Likewise.
27583         * tree-affine.c: Likewise.
27584         * tree-affine.h: Likewise.
27585         * tree-browser.c: Likewise.
27586         * tree-call-cdce.c: Likewise.
27587         * tree-cfg.c: Likewise.
27588         * tree-cfgcleanup.c: Likewise.
27589         * tree-chkp-opt.c: Likewise.
27590         * tree-chkp.c: Likewise.
27591         * tree-chrec.c: Likewise.
27592         * tree-complex.c: Likewise.
27593         * tree-data-ref.c: Likewise.
27594         * tree-dfa.c: Likewise.
27595         * tree-diagnostic.c: Likewise.
27596         * tree-dump.c: Likewise.
27597         * tree-eh.c: Likewise.
27598         * tree-emutls.c: Likewise.
27599         * tree-if-conv.c: Likewise.
27600         * tree-inline.c: Likewise.
27601         * tree-into-ssa.c: Likewise.
27602         * tree-iterator.c: Likewise.
27603         * tree-loop-distribution.c: Likewise.
27604         * tree-nested.c: Likewise.
27605         * tree-nrv.c: Likewise.
27606         * tree-object-size.c: Likewise.
27607         * tree-outof-ssa.c: Likewise.
27608         * tree-parloops.c: Likewise.
27609         * tree-phinodes.c: Likewise.
27610         * tree-predcom.c: Likewise.
27611         * tree-pretty-print.c: Likewise.
27612         * tree-pretty-print.h: Likewise.
27613         * tree-profile.c: Likewise.
27614         * tree-scalar-evolution.c: Likewise.
27615         * tree-sra.c: Likewise.
27616         * tree-ssa-address.c: Likewise.
27617         * tree-ssa-alias.c: Likewise.
27618         * tree-ssa-ccp.c: Likewise.
27619         * tree-ssa-coalesce.c: Likewise.
27620         * tree-ssa-copy.c: Likewise.
27621         * tree-ssa-copyrename.c: Likewise.
27622         * tree-ssa-dce.c: Likewise.
27623         * tree-ssa-dom.c: Likewise.
27624         * tree-ssa-dse.c: Likewise.
27625         * tree-ssa-forwprop.c: Likewise.
27626         * tree-ssa-ifcombine.c: Likewise.
27627         * tree-ssa-live.c: Likewise.
27628         * tree-ssa-loop-ch.c: Likewise.
27629         * tree-ssa-loop-im.c: Likewise.
27630         * tree-ssa-loop-ivcanon.c: Likewise.
27631         * tree-ssa-loop-ivopts.c: Likewise.
27632         * tree-ssa-loop-manip.c: Likewise.
27633         * tree-ssa-loop-niter.c: Likewise.
27634         * tree-ssa-loop-prefetch.c: Likewise.
27635         * tree-ssa-loop-unswitch.c: Likewise.
27636         * tree-ssa-loop.c: Likewise.
27637         * tree-ssa-loop.h: Likewise.
27638         * tree-ssa-math-opts.c: Likewise.
27639         * tree-ssa-operands.c: Likewise.
27640         * tree-ssa-phiopt.c: Likewise.
27641         * tree-ssa-phiprop.c: Likewise.
27642         * tree-ssa-pre.c: Likewise.
27643         * tree-ssa-propagate.c: Likewise.
27644         * tree-ssa-reassoc.c: Likewise.
27645         * tree-ssa-sccvn.c: Likewise.
27646         * tree-ssa-scopedtables.c: Likewise.
27647         * tree-ssa-sink.c: Likewise.
27648         * tree-ssa-strlen.c: Likewise.
27649         * tree-ssa-structalias.c: Likewise.
27650         * tree-ssa-tail-merge.c: Likewise.
27651         * tree-ssa-ter.c: Likewise.
27652         * tree-ssa-threadedge.c: Likewise.
27653         * tree-ssa-threadupdate.c: Likewise.
27654         * tree-ssa-uncprop.c: Likewise.
27655         * tree-ssa-uninit.c: Likewise.
27656         * tree-ssa.c: Likewise.
27657         * tree-ssanames.c: Likewise.
27658         * tree-stdarg.c: Likewise.
27659         * tree-streamer-in.c: Likewise.
27660         * tree-streamer-out.c: Likewise.
27661         * tree-streamer.c: Likewise.
27662         * tree-switch-conversion.c: Likewise.
27663         * tree-tailcall.c: Likewise.
27664         * tree-vect-data-refs.c: Likewise.
27665         * tree-vect-generic.c: Likewise.
27666         * tree-vect-loop-manip.c: Likewise.
27667         * tree-vect-loop.c: Likewise.
27668         * tree-vect-patterns.c: Likewise.
27669         * tree-vect-slp.c: Likewise.
27670         * tree-vect-stmts.c: Likewise.
27671         * tree-vectorizer.c: Likewise.
27672         * tree-vrp.c: Likewise.
27673         * tree.c: Likewise.
27674         * tsan.c: Likewise.
27675         * ubsan.c: Likewise.
27676         * valtrack.c: Likewise.
27677         * value-prof.c: Likewise.
27678         * var-tracking.c: Likewise.
27679         * varasm.c: Likewise.
27680         * varpool.c: Likewise.
27681         * vmsdbgout.c: Likewise.
27682         * vtable-verify.c: Likewise.
27683         * web.c: Likewise.
27684         * wide-int-print.cc: Likewise.
27685         * wide-int-print.h: Likewise.
27686         * wide-int.cc: Likewise.
27687         * xcoffout.c: Likewise.
27688         * config/aarch64/aarch64-builtins.c: Likewise.
27689         * config/aarch64/aarch64.c: Likewise.
27690         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27691         * config/alpha/alpha.c: Likewise.
27692         * config/arc/arc.c: Likewise.
27693         * config/arm/aarch-common.c: Likewise.
27694         * config/arm/arm-builtins.c: Likewise.
27695         * config/arm/arm-c.c: Likewise.
27696         * config/arm/arm.c: Likewise.
27697         * config/avr/avr-c.c: Likewise.
27698         * config/avr/avr-log.c: Likewise.
27699         * config/avr/avr.c: Likewise.
27700         * config/bfin/bfin.c: Likewise.
27701         * config/c6x/c6x.c: Likewise.
27702         * config/cr16/cr16.c: Likewise.
27703         * config/cris/cris.c: Likewise.
27704         * config/darwin-c.c: Likewise.
27705         * config/darwin.c: Likewise.
27706         * config/default-c.c: Likewise.
27707         * config/epiphany/epiphany.c: Likewise.
27708         * config/epiphany/mode-switch-use.c: Likewise.
27709         * config/epiphany/resolve-sw-modes.c: Likewise.
27710         * config/fr30/fr30.c: Likewise.
27711         * config/frv/frv.c: Likewise.
27712         * config/ft32/ft32.c: Likewise.
27713         * config/glibc-c.c: Likewise.
27714         * config/h8300/h8300.c: Likewise.
27715         * config/i386/i386-c.c: Likewise.
27716         * config/i386/i386.c: Likewise.
27717         * config/i386/msformat-c.c: Likewise.
27718         * config/i386/winnt-cxx.c: Likewise.
27719         * config/i386/winnt-stubs.c: Likewise.
27720         * config/i386/winnt.c: Likewise.
27721         * config/ia64/ia64-c.c: Likewise.
27722         * config/ia64/ia64.c: Likewise.
27723         * config/iq2000/iq2000.c: Likewise.
27724         * config/lm32/lm32.c: Likewise.
27725         * config/m32c/m32c-pragma.c: Likewise.
27726         * config/m32c/m32c.c: Likewise.
27727         * config/m32r/m32r.c: Likewise.
27728         * config/m68k/m68k.c: Likewise.
27729         * config/mcore/mcore.c: Likewise.
27730         * config/mep/mep-pragma.c: Likewise.
27731         * config/mep/mep.c: Likewise.
27732         * config/microblaze/microblaze-c.c: Likewise.
27733         * config/microblaze/microblaze.c: Likewise.
27734         * config/mips/mips.c: Likewise.
27735         * config/mmix/mmix.c: Likewise.
27736         * config/mn10300/mn10300.c: Likewise.
27737         * config/moxie/moxie.c: Likewise.
27738         * config/msp430/msp430-c.c: Likewise.
27739         * config/msp430/msp430.c: Likewise.
27740         * config/nds32/nds32-cost.c: Likewise.
27741         * config/nds32/nds32-fp-as-gp.c: Likewise.
27742         * config/nds32/nds32-intrinsic.c: Likewise.
27743         * config/nds32/nds32-isr.c: Likewise.
27744         * config/nds32/nds32-md-auxiliary.c: Likewise.
27745         * config/nds32/nds32-memory-manipulation.c: Likewise.
27746         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27747         * config/nds32/nds32-predicates.c: Likewise.
27748         * config/nds32/nds32.c: Likewise.
27749         * config/nios2/nios2.c: Likewise.
27750         * config/nvptx/nvptx.c: Likewise.
27751         * config/pa/pa.c: Likewise.
27752         * config/pdp11/pdp11.c: Likewise.
27753         * config/rl78/rl78-c.c: Likewise.
27754         * config/rl78/rl78.c: Likewise.
27755         * config/rs6000/rs6000-c.c: Likewise.
27756         * config/rs6000/rs6000.c: Likewise.
27757         * config/rx/rx.c: Likewise.
27758         * config/s390/s390-c.c: Likewise.
27759         * config/s390/s390.c: Likewise.
27760         * config/sh/sh-c.c: Likewise.
27761         * config/sh/sh-mem.cc: Likewise.
27762         * config/sh/sh.c: Likewise.
27763         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27764         * config/sh/sh_treg_combine.cc: Likewise.
27765         * config/sol2-c.c: Likewise.
27766         * config/sol2-cxx.c: Likewise.
27767         * config/sol2-stubs.c: Likewise.
27768         * config/sol2.c: Likewise.
27769         * config/sparc/sparc-c.c: Likewise.
27770         * config/sparc/sparc.c: Likewise.
27771         * config/spu/spu-c.c: Likewise.
27772         * config/spu/spu.c: Likewise.
27773         * config/stormy16/stormy16.c: Likewise.
27774         * config/tilegx/mul-tables.c: Likewise.
27775         * config/tilegx/tilegx-c.c: Likewise.
27776         * config/tilegx/tilegx.c: Likewise.
27777         * config/tilepro/mul-tables.c: Likewise.
27778         * config/tilepro/tilepro-c.c: Likewise.
27779         * config/tilepro/tilepro.c: Likewise.
27780         * config/v850/v850-c.c: Likewise.
27781         * config/v850/v850.c: Likewise.
27782         * config/vax/vax.c: Likewise.
27783         * config/visium/visium.c: Likewise.
27784         * config/vms/vms-c.c: Likewise.
27785         * config/vms/vms.c: Likewise.
27786         * config/vxworks.c: Likewise.
27787         * config/winnt-c.c: Likewise.
27788         * config/xtensa/xtensa.c: Likewise.
27789         * common/config/bfin/bfin-common.c: Likewise.
27791 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
27793         * tree.h (tree_code_for_canonical_type_merging): New function.
27794         * tree.c (gimple_canonical_types_compatible_p): Use
27795         tree_code_for_canonical_type_merging..
27797 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27799         PR c++/66192
27800         PR target/66200
27801         * doc/tm.texi: Regenerate.
27802         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27803         * target.def (TARGET_RELAXED_ORDERING): Likewise.
27804         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27805         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27806         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27807         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27808         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27809         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27810         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27812 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27814         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27815         register fma steering pass.
27816         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27817         AARCH64_TUNE_FMA_STEERING.
27819 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
27821         * tree.c (verify_type_variant): Verify that type and variant is
27822         compatible.
27823         (gimple_canonical_types_compatible_p): Look for main variants.
27825 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27827         * config.gcc (powerpc*-*-*): Add support for a new configure
27828         option --with-advance-toolchain=<xxx> which overrides using the
27829         default header files, libraries and dynamic linker.
27831         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27832         specs to support the configure --with-advance-toolchain=<xxx>
27833         option.
27834         (INCLUDE_EXTRA_SPEC): Likewise.
27835         (LINK_OS_EXTRA_SPEC32): Likewise.
27836         (LINK_OK_EXTRA_SPEC64): Likewise.
27837         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27838         (DYNAMIC_LINKER_PREFIX): Likewise.
27839         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27840         toolchain support.
27841         (GLIBC_DYNAMIC_LINKER32): Likewise.
27842         (GLIBC_DYNAMIC_LINKER64): Likewise.
27843         (LINK_OS_LINUX_SPEC32): Likewise.
27844         (LINK_OS_LINUX_SPEC64): Likewise.
27846         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27847         configuration option.
27849 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
27851         PR target/66275
27852         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27853         to determine current function ABI.
27854         (ix86_function_value_regno_p): Ditto.
27856 2015-06-03  Martin Liska  <mliska@suse.cz>
27858         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27859         * bitmap.h (struct bitmap_usage): Likewise.
27860         * ggc-common.c (struct ggc_usage): Likewise.
27861         * mem-stats.h (struct mem_location): Likewise.
27862         (struct mem_usage): Likewise.
27863         * vec.c (struct vec_usage): Likewise.
27865 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
27867         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27868         -Bsymbolic.
27870 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
27872         * doc/plugins.texi (enum plugin_event): New event.
27873         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27874         and PLUGIN_FINISH_FUNCTION.
27875         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27876         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27878 2015-06-03  Richard Biener  <rguenther@suse.de>
27880         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27881         compute GROUP_GAP for the first element.
27882         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27883         on in-group gaps.
27885 2015-06-03  Nick Clifton  <nickc@redhat.com>
27887         * config/rl78/rl78-real.md: Add peepholes to avoid a register
27888         copy when calling a function.
27889         * config/rl78/rl78.c (need_to_save): Do not push the frame
27890         pointer in an interrupt handler prologue if it is never used.
27892 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27894         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27896 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
27898         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27899         reference when cloning alias node.
27901 2015-06-03  Martin Liska  <mliska@suse.cz>
27903         * alloc-pool.h (struct pool_usage): Correct space padding.
27904         * ggc-page.c (ggc_print_statistics): Align columns in a report.
27905         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27906         * tree.c (dump_tree_statistics): Align columns in a report.
27908 2015-06-03  Martin Liska  <mliska@suse.cz>
27910         * alloc-pool.c (allocate_pool_descriptor): Remove.
27911         (struct pool_output_info): Likewise.
27912         (print_alloc_pool_statistics): Likewise.
27913         (dump_alloc_pool_statistics): Likewise.
27914         * alloc-pool.h (struct pool_usage): New struct.
27915         (pool_allocator::initialize): Change usage of memory statistics
27916         to a new interface.
27917         (pool_allocator::release): Likewise.
27918         (pool_allocator::allocate): Likewise.
27919         (pool_allocator::remove): Likewise.
27920         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27921         for a pool allocator.
27922         * mem-stats.h (struct mem_location): Add new ctor.
27923         (struct mem_usage): Add counter for number of
27924         instances.
27925         (mem_alloc_description::register_descriptor): New overload of
27926         * mem-stats.h (mem_location::to_string): New function.
27927         * bitmap.h (struct bitmap_usage): Use this new function.
27928         * ggc-common.c (struct ggc_usage): Likewise.
27929         the function.
27931 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
27933         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27934         of GCC_INSN_FLAGS_H block.
27936 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
27938         * explow.c (plus_constant): Update check after force_const_mem call
27939         to see if the value returned is not a NULL_RTX.
27941 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
27943         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27944         remove instumentation thunks calling reachable functions.
27945         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27946         * lto/lto-partition.c (privatize_symbol_name_1): New.
27947         (privatize_symbol_name): Privatize both decl and orig_decl
27948         names for instrumented functions.
27949         * cgraph.c (cgraph_node::verify_node): Add transparent
27950         alias chain check for instrumented node.
27952 2015-06-03  Marek Polacek  <polacek@redhat.com>
27954         PR c/64223
27955         PR c/29358
27956         * tree.c (attribute_value_equal): Handle attribute format.
27957         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27959 2015-06-03  Richard Biener  <rguenther@suse.de>
27961         PR tree-optimization/63916
27962         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27963         Forward-propagate non-invariant addresses by splicing their
27964         reference ops if the result isn't going to be used by PRE.
27965         (vn_reference_lookup_3): Remove pointless assert.
27967 2015-06-03  Richard Biener  <rguenther@suse.de>
27969         PR tree-optimization/66375
27970         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27971         add to the evolution before following SSA edges.
27973 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
27975         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27976         (dump_use, dump_cand, find_induction_variables): Pass new argument
27977         to dump_iv.
27978         (record_use): Preserve the ssa name information in IV.
27980 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
27982         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27983         NO_MODE_TEST.
27984         (add_mode_tests): Don't add mode tests if the predicate only
27985         accepts scalar constant integers.  Otherwise, allow the mode
27986         of "op" to be VOIDmode if the predicate does accept such integers.
27988 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
27990         PR target/66258
27991         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27992         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27993         (aarch64_secondary_reload): Likewise
27994         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27995         to !TARGET_FLOAT.
27996         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27997         Likewise.
27999 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
28000             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28002         PR target/65768
28003         * cprop.c (try_replace_reg): Check cost of constants before propagating.
28005 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28007         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28008         provide access to the IBM extended double floating point mode if
28009         long double is IEEE 128-bit floating point.
28010         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28011         point if long double is the IBM extended double type.
28013         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28014         enable adding IEEE 128-bit floating point support.
28015         (-mfloat128-software): Likewise.
28016         (-mfloat128-sw): Likewise.
28018         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28019         128-bit floating point types to occupy any register if
28020         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
28021         -mfloat128-software is enabled.
28022         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28023         support.
28024         (rs6000_option_override_internal): Add -mfloat128-* support.
28025         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28027         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28028         and float128 type nodes.
28029         (ieee128_float_type_node): Likewise.
28030         (ibm128_float_type_node): Likewise.
28032 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28034         PR target/66136
28035         * config/aarch64/geniterators.sh: Rewrite in awk.
28037 2015-06-02  Martin Liska  <mliska@suse.cz>
28039         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28040         values to avoid -Wmaybe-uninitialized errors.
28042 2015-06-02  Richard Biener  <rguenther@suse.de>
28044         PR debug/65549
28045         * dwarf2out.c (lookup_context_die): New function.
28046         (resolve_addr): Avoid forcing a full DIE for the
28047         target of a DW_TAG_GNU_call_site during late compilation.
28048         Instead create a stub DIE without a type if we have a
28049         context DIE present.
28051 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
28053         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28055 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28057         PR tree-optimization/48052
28058         * cfgloop.h (struct control_iv): New.
28059         (struct loop): New field control_ivs.
28060         * tree-ssa-loop-niter.c : Include "stor-layout.h".
28061         (number_of_iterations_lt): Set no_overflow information.
28062         (number_of_iterations_exit): Init control iv in niter struct.
28063         (record_control_iv): New.
28064         (estimate_numbers_of_iterations_loop): Call record_control_iv.
28065         (loop_exits_before_overflow): New.  Interface factored out of
28066         scev_probably_wraps_p.
28067         (scev_probably_wraps_p): Factor loop niter related code into
28068         loop_exits_before_overflow.
28069         (free_numbers_of_iterations_estimates_loop): Free control ivs.
28070         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28072 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
28074         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28075         the target doesn't belong to the current function.
28077 2015-06-02  Marek Polacek  <polacek@redhat.com>
28079         PR middle-end/66345
28080         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28081         get_maxval_strlen does not produce an INTEGER_CST.
28083 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
28085         * config/arc/constraints.md: Use lower-case names in match_code.
28086         * config/mmix/constraints.md: Likewise.
28088 2015-06-02  Richard Biener  <rguenther@suse.de>
28090         PR tree-optimization/65961
28091         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28092         check and clarify dump message.
28093         (vect_build_slp_tree): If all children are built up from scalars
28094         build up the parent from scalars instead.
28095         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28097 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
28099         PR other/65366
28100         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
28101         instead of print ... .
28103 2015-06-02  Alan Modra  <amodra@gmail.com>
28105         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28106         2014-08-11 change.
28108 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28110         PR tree-optimization/52563
28111         PR tree-optimization/62173
28112         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
28113         (alloc_iv, set_iv): New parameter.
28114         (determine_biv_step): Delete.
28115         (find_bivs): Inline original determine_biv_step.  Pass new
28116         argument to set_iv.
28117         (idx_find_step): Use no_overflow information for conversion.
28118         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28119         resolve_mixers handle folded_casts.
28120         (instantiate_scev_name): Change bool parameter to bool pointer.
28121         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28122         (instantiate_array_ref, instantiate_scev_not): Ditto.
28123         (instantiate_scev_3, instantiate_scev_2): Ditto.
28124         (instantiate_scev_1, instantiate_scev_r): Ditto.
28125         (instantiate_scev_convert, ): Change parameter.  Pass argument
28126         to chrec_convert_aggressive.
28127         (instantiate_scev): Change argument.
28128         (resolve_mixers): New parameter and set it.
28129         (scev_const_prop): New argument.
28130         * tree-scalar-evolution.h (resolve_mixers): New parameter.
28131         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28132         of chrec_conert_1.
28133         (chrec_convert): New parameter.  Move definition below.
28134         (chrec_convert_aggressive): New parameter and set it.  Call
28135         convert_affine_scev.
28136         * tree-chrec.h (chrec_convert): New parameter.
28137         (chrec_convert_aggressive): Ditto.
28139 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28141         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28142         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28143         the LHS of a no-return call if its type has variable size.
28144         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28145         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28147 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
28149         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28150         * config.in: Regenerate.
28152 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
28154         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28155         consecutive accesses within outer-loop with force_vectorize
28156         for references with zero step in inner-loop.
28158 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28160         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28161         rather than from gcc/build directory.
28163 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28165         PR target/65697
28166         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28167         for __sync memory models, emit initial loads and final barriers as
28168         appropriate.
28170 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28172         PR target/65697
28173         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28174         (aarch64_split_atomic_op): Check for __sync memory models, emit
28175         appropriate initial loads and final barriers.
28177 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28179         * Makefile.in: Fix gcov dependencies that should
28180         not point to a build folder.
28182 2015-06-01  Richard Biener  <rguenther@suse.de>
28184         Revert
28185         2015-05-29  Richard Biener  <rguenther@suse.de>
28187         PR tree-optimization/66314
28188         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28189         parameter that says which loop the new block belongs to.
28190         (ssa_create_duplicates): Blocks duplicated for the threaded
28191         path belong to the loop of the thread destination.
28193 2015-06-01  Martin Liska  <mliska@suse.cz>
28195         * sched-deps.c: Include pool-alloc.h before
28196         cselib.h header file is included.
28198 2015-06-01  Richard Biener  <rguenther@suse.de>
28200         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28201         functions.
28203 2015-06-01  Martin Liska  <mliska@suse.cz>
28205         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28206         a function local variable.
28208 2015-06-01  Martin Liska  <mliska@suse.cz>
28210         * alloc-pool.c (create_alloc_pool): Remove.
28211         (empty_alloc_pool): Likewise.
28212         (free_alloc_pool): Likewise.
28213         (free_alloc_pool_if_empty): Likewise.
28214         (pool_alloc): Likewise.
28215         (pool_free): Likewise.
28216         * alloc-pool.h: Remove old declarations.
28218 2015-06-01  Martin Liska  <mliska@suse.cz>
28220         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28221         (ira_create_object): Likewise.
28222         (ira_create_allocno): Likewise.
28223         (ira_create_live_range): Likewise.
28224         (copy_live_range): Likewise.
28225         (ira_finish_live_range): Likewise.
28226         (ira_free_allocno_costs): Likewise.
28227         (finish_allocno): Likewise.
28228         (finish_allocnos): Likewise.
28229         (initiate_prefs): Likewise.
28230         (ira_create_pref): Likewise.
28231         (finish_pref): Likewise.
28232         (finish_prefs): Likewise.
28233         (initiate_copies): Likewise.
28234         (ira_create_copy): Likewise.
28235         (finish_copy): Likewise.
28236         (finish_copies): Likewise.
28237         (finish_prefs): Likewise.
28239 2015-06-01  Martin Liska  <mliska@suse.cz>
28241         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28242         (allocate_and_init_ipcp_value): Likewise.
28243         (ipcp_lattice::add_value): Likewise.
28244         (merge_agg_lats_step): Likewise.
28245         (ipcp_driver): Likewise.
28246         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28247         (ipa_free_all_structures_after_iinln): Likewise.
28248         * ipa-prop.h: Likewise.
28250 2015-06-01  Martin Liska  <mliska@suse.cz>
28252         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28253         pool allocator.
28254         (set_hint_predicate): Likewise.
28255         (inline_summary_alloc): Likewise.
28256         (reset_inline_edge_summary): Likewise.
28257         (reset_inline_summary): Likewise.
28258         (set_cond_stmt_execution_predicate): Likewise.
28259         (set_switch_stmt_execution_predicate): Likewise.
28260         (compute_bb_predicates): Likewise.
28261         (estimate_function_body_sizes): Likewise.
28262         (inline_free_summary): Likewise.
28264 2015-06-01  Martin Liska  <mliska@suse.cz>
28266         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28267         (ipa_edge_duplication_hook): Likewise.
28268         (ipa_free_all_structures_after_ipa_cp): Likewise.
28269         (ipa_free_all_structures_after_iinln): Likewise.
28271 2015-06-01  Martin Liska  <mliska@suse.cz>
28273         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28274         (ipa_profile_generate_summary): Likewise.
28275         (ipa_profile_read_summary): Likewise.
28276         (ipa_profile): Likewise.
28278 2015-06-01  Martin Liska  <mliska@suse.cz>
28280         * tree-ssa-structalias.c (new_var_info): Use new type-based
28281         pool allocator.
28282         (new_constraint): Likewise.
28283         (init_alias_vars): Likewise.
28284         (delete_points_to_sets): Likewise.
28286 2015-06-01  Martin Liska  <mliska@suse.cz>
28288         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28289         (free_strinfo): Likewise.
28290         (pass_strlen::execute): Likewise.
28292 2015-06-01  Martin Liska  <mliska@suse.cz>
28294         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28295         pool allocator.
28296         (vn_reference_insert_pieces): Likewise.
28297         (vn_phi_insert): Likewise.
28298         (visit_reference_op_call): Likewise.
28299         (copy_phi): Likewise.
28300         (copy_reference): Likewise.
28301         (process_scc): Likewise.
28302         (allocate_vn_table): Likewise.
28303         (free_vn_table): Likewise.
28305 2015-06-01  Martin Liska  <mliska@suse.cz>
28307         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28308         pool allocator.
28309         (add_repeat_to_ops_vec): Likewise.
28310         (get_ops): Likewise.
28311         (maybe_optimize_range_tests): Likewise.
28312         (init_reassoc): Likewise.
28313         (fini_reassoc): Likewise.
28315 2015-06-01  Martin Liska  <mliska@suse.cz>
28317         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28318         pool allocator.
28319         (bitmap_set_new): Likewise.
28320         (get_or_alloc_expr_for_constant): Likewise.
28321         (get_or_alloc_expr_for): Likewise.
28322         (phi_translate_1): Likewise.
28323         (compute_avail): Likewise.
28324         (init_pre): Likewise.
28325         (fini_pre): Likewise.
28327 2015-06-01  Martin Liska  <mliska@suse.cz>
28329         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28330         (delete_dep_node): Likewise.
28331         (create_deps_list): Likewise.
28332         (free_deps_list): Likewise.
28333         (sched_deps_init): Likewise.
28334         (sched_deps_finish): Likewise.
28336 2015-06-01  Martin Liska  <mliska@suse.cz>
28338         * regcprop.c (free_debug_insn_changes): Use new type-based
28339         pool allocator.
28340         (replace_oldest_value_reg): Likewise.
28341         (pass_cprop_hardreg::execute): Likewise.
28343 2015-06-01  Martin Liska  <mliska@suse.cz>
28345         * ira-build.c (initiate_cost_vectors): Use new type-based
28346         pool allocator.
28347         (ira_allocate_cost_vector): Likewise.
28348         (ira_free_cost_vector): Likewise.
28349         (finish_cost_vectors): Likewise.
28351 2015-06-01  Martin Liska  <mliska@suse.cz>
28353         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28354         pool allocator.
28355         (free_sched_pools): Likewise.
28356         * sel-sched-ir.h (_list_alloc): Likewise.
28357         (_list_remove): Likewise.
28359 2015-06-01  Martin Liska  <mliska@suse.cz>
28361         * stmt.c (add_case_node): Use new type-based pool allocator.
28362         (expand_case): Likewise.
28363         (expand_sjlj_dispatch_table): Likewise.
28365 2015-06-01  Martin Liska  <mliska@suse.cz>
28367         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28368         (free_bb): Likewise.
28369         (pass_cse_reciprocals::execute): Likewise.
28371 2015-06-01  Martin Liska  <mliska@suse.cz>
28373         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28374         (sra_deinitialize) Likewise.
28375         (create_access_1) Likewise.
28376         (build_accesses_from_assign) Likewise.
28377         (create_artificial_child_access) Likewise.
28379 2015-06-01  Martin Liska  <mliska@suse.cz>
28381         * dse.c (get_group_info):Use new type-based pool allocator.
28382         (dse_step0) Likewise.
28383         (free_store_info) Likewise.
28384         (delete_dead_store_insn) Likewise.
28385         (free_read_records) Likewise.
28386         (record_store) Likewise.
28387         (replace_read) Likewise.
28388         (check_mem_read_rtx) Likewise.
28389         (scan_insn) Likewise.
28390         (dse_step1) Likewise.
28391         (dse_step7) Likewise.
28393 2015-06-01  Martin Liska  <mliska@suse.cz>
28395         * df-scan.c (struct df_scan_problem_data):Use new type-based
28396         pool allocator.
28397         (df_scan_free_internal) Likewise.
28398         (df_scan_alloc) Likewise.
28399         (df_grow_reg_info) Likewise.
28400         (df_free_ref) Likewise.
28401         (df_insn_create_insn_record) Likewise.
28402         (df_mw_hardreg_chain_delete) Likewise.
28403         (df_insn_info_delete) Likewise.
28404         (df_free_collection_rec) Likewise.
28405         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28406         (df_sort_and_compress_mws) Likewise.
28407         (df_ref_create_structure) Likewise.
28408         (df_ref_record) Likewise.
28410 2015-06-01  Martin Liska  <mliska@suse.cz>
28412         * df-problems.c (df_chain_create):Use new type-based pool allocator.
28413         (df_chain_unlink_1) Likewise.
28414         (df_chain_unlink) Likewise.
28415         (df_chain_remove_problem) Likewise.
28416         (df_chain_alloc) Likewise.
28417         (df_chain_free) Likewise.
28418         * df.h (struct dataflow) Likewise.
28420 2015-06-01  Martin Liska  <mliska@suse.cz>
28422         * cselib.c (new_elt_list):Use new type-based pool allocator.
28423         (new_elt_loc_list) Likewise.
28424         (unchain_one_elt_list) Likewise.
28425         (unchain_one_elt_loc_list) Likewise.
28426         (unchain_one_value) Likewise.
28427         (new_cselib_val) Likewise.
28428         (cselib_init) Likewise.
28429         (cselib_finish) Likewise.
28431 2015-06-01  Martin Liska  <mliska@suse.cz>
28433         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28434         (sh_reorg) Likewise.
28436 2015-06-01  Martin Liska  <mliska@suse.cz>
28438         * cfg.c (initialize_original_copy_tables):Use new type-based
28439         pool allocator.
28440         (free_original_copy_tables) Likewise.
28441         (copy_original_table_clear) Likewise.
28442         (copy_original_table_set) Likewise.
28444 2015-06-01  Martin Liska  <mliska@suse.cz>
28446         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28447         pool allocator.
28448         (asan_mem_ref_new) Likewise.
28449         (free_mem_ref_resources) Likewise.
28451 2015-06-01  Martin Liska  <mliska@suse.cz>
28453         * var-tracking.c (variable_htab_free):Use new type-based
28454         pool allocator.
28455         (attrs_list_clear) Likewise.
28456         (attrs_list_insert) Likewise.
28457         (attrs_list_copy) Likewise.
28458         (shared_hash_unshare) Likewise.
28459         (shared_hash_destroy) Likewise.
28460         (unshare_variable) Likewise.
28461         (var_reg_delete_and_set) Likewise.
28462         (var_reg_delete) Likewise.
28463         (var_regno_delete) Likewise.
28464         (drop_overlapping_mem_locs) Likewise.
28465         (variable_union) Likewise.
28466         (insert_into_intersection) Likewise.
28467         (canonicalize_values_star) Likewise.
28468         (variable_merge_over_cur) Likewise.
28469         (dataflow_set_merge) Likewise.
28470         (remove_duplicate_values) Likewise.
28471         (variable_post_merge_new_vals) Likewise.
28472         (dataflow_set_preserve_mem_locs) Likewise.
28473         (dataflow_set_remove_mem_locs) Likewise.
28474         (variable_from_dropped) Likewise.
28475         (variable_was_changed) Likewise.
28476         (set_slot_part) Likewise.
28477         (clobber_slot_part) Likewise.
28478         (delete_slot_part) Likewise.
28479         (loc_exp_insert_dep) Likewise.
28480         (notify_dependents_of_changed_value) Likewise.
28481         (emit_notes_for_differences_1) Likewise.
28482         (vt_emit_notes) Likewise.
28483         (vt_initialize) Likewise.
28484         (vt_finalize) Likewise.
28486 2015-06-01  Martin Liska  <mliska@suse.cz>
28488         * ira-color.c (init_update_cost_records):Use new type-based
28489         pool allocator.
28490         (get_update_cost_record) Likewise.
28491         (free_update_cost_record_list) Likewise.
28492         (finish_update_cost_records) Likewise.
28493         (initiate_cost_update) Likewise.
28495 2015-06-01  Martin Liska  <mliska@suse.cz>
28497         * lra.c (init_insn_regs): Use new type-based pool allocator.
28498         (new_insn_reg) Likewise.
28499         (free_insn_reg) Likewise.
28500         (free_insn_regs) Likewise.
28501         (finish_insn_regs) Likewise.
28502         (init_insn_recog_data) Likewise.
28503         (init_reg_info) Likewise.
28504         (finish_reg_info) Likewise.
28505         (lra_free_copies) Likewise.
28506         (lra_create_copy) Likewise.
28507         (invalidate_insn_data_regno_info) Likewise.
28509 2015-06-01  Martin Liska  <mliska@suse.cz>
28511         * lra-lives.c (free_live_range): Use new type-based pool allocator.
28512         (free_live_range_list) Likewise.
28513         (create_live_range) Likewise.
28514         (copy_live_range) Likewise.
28515         (lra_merge_live_ranges) Likewise.
28516         (remove_some_program_points_and_update_live_ranges) Likewise.
28517         (lra_live_ranges_init) Likewise.
28518         (lra_live_ranges_finish) Likewise.
28520 2015-06-01  Martin Liska  <mliska@suse.cz>
28522         * et-forest.c (et_new_occ): Use new type-based pool allocator.
28523         (et_new_tree): Likewise.
28524         (et_free_tree): Likewise.
28525         (et_free_tree_force): Likewise.
28526         (et_free_pools): Likewise.
28527         (et_split): Likewise.
28529 2015-06-01  Martin Liska  <mliska@suse.cz>
28531         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28532         to header file.
28533         * alloc-pool.h (pool_allocator::pool_allocator): New function.
28534         (pool_allocator::release): Likewise.
28535         (inline pool_allocator::release_if_empty): Likewise.
28536         (inline pool_allocator::~pool_allocator): Likewise.
28537         (pool_allocator::allocate): Likewise.
28538         (pool_allocator::remove): Likewise.
28540 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28542         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28543         in comment.
28545 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28547         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28548         to fusible_ops.
28549         * config/arm/arm.c (arm_print_tune_info): Likewise.
28550         (arm_macro_fusion_p): Likewise.
28551         (arm_macro_fusion_pair_p): Likewise.
28553 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
28555         * config/aarch64/aarch64-protos.h (tune_params): Rename
28556         fuseable_ops to fusible_ops.
28557         * config/aarch64/aarch64.c (generic_tunings): Rename
28558         fuseable_ops to fusible_ops.
28559         (cortexa53_tunings): Likewise.
28560         (cortexa57_tunings): Likewise.
28561         (thunderx_tunings): Likewise.
28562         (xgene1_tunings): Likewise.
28563         (aarch64_macro_fusion_p): Likewise.
28564         (aarch64_macro_fusion_pair_p): Likewise.
28566 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28568         * config/s390/driver-native.c: New file.
28569         * config/s390/x-native: New file.
28570         * config.host: Add new files for s390.
28571         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28572         and -march=native
28573         * config.gcc: Likewise.
28574         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28575         * config/s390/s390-opts.h (enum processor_type): Ditto.
28576         * config/s390/s390.c (s390_option_override): Catch unhandled
28577         PROCESSOR_NATIVE
28579 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
28581         PR target/65527
28582         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28583         redirection for instrumented calls.
28584         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28585         (append_compiler_options): Append -fcheck-pointer-bounds.
28586         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28587         (chkp_redirect_edge): New.
28588         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28589         (chkp_redirect_edge): New.
28591 2015-06-01  Richard Biener  <rguenther@suse.de>
28593         PR tree-optimization/66280
28594         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28595         def-use walking.
28597 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28599         * config/aarch64/aarch64.md
28600         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28601         logic_shift_imm.
28603 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28605         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28606         Remove obsolete kludge.
28608 2015-06-01  Richard Biener  <rguenther@suse.de>
28610         * tree-ssa-reassoc.c (get_rank): Simplify.
28612 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
28614         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28615         * configure: Regenerated.
28617 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
28619         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28620         issue (add space between string literal and macro).
28621         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28623 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
28625         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28626         implict or explicit -fPIE or -fpie.
28628 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
28630         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28632 2015-05-28  DJ Delorie  <dj@redhat.com>
28634         * expmed.c (extract_bit_field_1): Avoid clobbering a
28635         yet-to-be-used base/index register.
28637 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
28639         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28640         (alias_stats): Add num_universal.
28641         (alias_set_subset_of): Special case pointers; be ready for NULL
28642         children.
28643         (alias_sets_conflict_p): Special case pointers; be ready for NULL
28644         children.
28645         (init_alias_set_entry): Break out from ...
28646         (record_alias_subset): ... here; propagate new fields;
28647         allocate children only when really needed.
28648         (get_alias_set): Do less generous pointer globbing.
28649         (dump_alias_stats_in_alias_c): Update statistics.
28651 2015-05-30  Alan Modra  <amodra@gmail.com>
28653         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28654         correct block for use of r12.
28655         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28657 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28659         PR target/66215
28660         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28661         with -mhotpatch=.
28663 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
28665         PR tree-optimization/66142
28666         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28667         virtual phis that feed themselves.
28669 2015-05-29  Richard Biener  <rguenther@suse.de>
28671         PR tree-optimization/66314
28672         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28673         parameter that says which loop the new block belongs to.
28674         (ssa_create_duplicates): Blocks duplicated for the threaded
28675         path belong to the loop of the thread destination.
28677 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
28679         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28680         to cleanup-saved-temps.
28681         * doc/sourcebuild.texi (Clean up generated test files): Expand
28682         introduction.
28683         (dg-keep-saved-temps): Document new proc.
28684         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28685         cleanup-saved-temps): Remove.
28687 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
28689         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28690         gcc_AC_CHECK_DECLS.
28691         * configure: Regenerate.
28693 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28695         * config/nios2/linux.h (CPP_SPEC): Define.
28697 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28699         * config/microblaze/linux.h (CPP_SPEC): Define.
28701 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
28703         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28704         -pthread is specified.
28706 2015-05-28  Richard Biener  <rguenther@suse.de>
28708         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28709         (vect_fixup_scalar_cycles_with_patterns): Likewise.
28710         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28711         after pattern recog.
28712         (vect_create_epilog_for_reduction): Properly handle reductions
28713         with patterns.
28714         (vectorizable_reduction): Likewise.
28715         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28716         reduction chains.
28717         (vect_get_constant_vectors): Create the correct number of
28718         initial values for reductions.
28719         (vect_schedule_slp_instance): Handle reduction chains that are
28720         type changing properly.
28721         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28723 2015-05-28  Richard Biener  <rguenther@suse.de>
28725         PR tree-optimization/66142
28726         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28727         values better in memcpy destination handling.  Handle non-aliasing
28728         we discover here.
28730 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
28732         PR target/63810
28733         * config/darwin-c.c (version_components): New global enum.
28734         (parse_version, version_as_legacy_macro)
28735         (version_as_modern_macro, macosx_version_as_macro): New functions.
28736         (version_as_macro): Remove.
28737         (darwin_cpp_builtins): Use new function.
28739 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
28741         * builtins.c (expand_builtin_acc_on_device): Mark parameters
28742         with ATTRIBUTE_UNUSED.
28744 2015-05-28  Julian Brown  <julian@codesourcery.com>
28746         PR libgomp/65742
28748         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28749         sequence for !ACCEL_COMPILER.
28751 2015-05-28  Nick Clifton  <nickc@redhat.com>
28753         * config/rx/rx.c (push_regs): New function.  Extracts code from...
28754         (rx_expand_prologue): ... here.  Use push_regs to push even small
28755         spans of registers.
28756         (pop_regs): New function.
28757         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
28758         registers.
28760 2015-05-28  Richard Biener  <rguenther@suse.de>
28762         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28763         member.
28764         (SLP_INSTANCE_BODY_COST_VEC): Remove.
28765         (vect_update_slp_costs_according_to_vf): Likewise.
28766         (vect_slp_analyze_operations): Update prototype.
28767         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28768         vect_update_slp_costs_according_to_vf, adjust.
28769         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28770         (vect_analyze_slp_cost_1): Likewise.
28771         (vect_analyze_slp_cost): Likewise.  Properly deal with
28772         widening reduction ops.  Commit body costs.
28773         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
28774         cost for loops from here.
28775         (vect_slp_analyze_operations): But do it from here when
28776         the vectorization factor is known and stmts are analyzed.
28777         (vect_bb_vectorization_profitable_p): Simplify.
28778         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28779         (vect_update_slp_costs_according_to_vf): Remove.
28781 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
28782             H.J. Lu  <hongjiu.lu@intel.com>
28784         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28785         (BUILD_CFLAGS): Likewise.
28786         (BUILD_CXXFLAGS): Likewise.
28787         (LINKER): Add @NO_PIE_FLAG@.
28788         (BUILD_LDFLAGS): Likewise.
28789         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28790         --enable-default-pie.
28791         * common.opt (fPIE): Initialize to -1.
28792         (fpie): Likewise.
28793         (no-pie): New option.
28794         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28795         * configure.ac: Add --enable-default-pie.
28796         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
28797         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
28798         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
28799         * gcc.c (NO_PIE_SPEC): New.
28800         (PIE_SPEC): Likewise.
28801         (NO_FPIE1_SPEC): Likewise.
28802         (FPIE1_SPEC): Likewise.
28803         (NO_FPIE2_SPEC): Likewise.
28804         (FPIE2_SPEC): Likewise.
28805         (NO_FPIE2_SPEC): Likewise.
28806         (FPIE_SPEC): Likewise.
28807         (NO_FPIE_SPEC): Likewise.
28808         (NO_FPIC1_SPEC): Likewise.
28809         (FPIC1_SPEC): Likewise.
28810         (NO_FPIC2_SPEC): Likewise.
28811         (FPIC2_SPEC): Likewise.
28812         (NO_FPIC2_SPEC): Likewise.
28813         (FPIC_SPEC): Likewise.
28814         (NO_FPIC_SPEC): Likewise.
28815         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28816         (FPIE1_OR_FPIC1_SPEC): Likewise.
28817         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28818         (FPIE2_OR_FPIC2_SPEC): Likewise.
28819         (NO_FPIE_AND_FPIC_SPEC): Likewise.
28820         (FPIE_OR_FPIC_SPEC): Likewise.
28821         (LD_PIE_SPEC): Likewise.
28822         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
28823         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28824         * config/darwin.h (PIE_SPEC): Renamed to ...
28825         (DARWIN_PIE_SPEC): This.
28826         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28827         * config/darwin9.h (PIE_SPEC): Renamed to ...
28828         (DARWIN_PIE_SPEC): This.
28829         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28830         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28831         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28832         FPIE2_OR_FPIC2_SPEC.
28833         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28834         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28835         * config/sol2.h (ASM_PIC_SPEC): Likewise.
28836         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28837         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28838         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28839         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28840         * config/m32r/m32r.h (ASM_SPEC): Likewise.
28841         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28842         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28843         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28844         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28845         * config/sparc/linux.h (ASM_SPEC): Likewise.
28846         * config/sparc/linux64.h (ASM_SPEC): Likewise.
28847         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28848         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28849         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28850         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28851         * config/sparc/sparc.h (ASM_SPEC): Likewise.
28852         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28853         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28854         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28855         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28856         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28857         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28858         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28859         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28860         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28861         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28862         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28863         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28864         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28865         * config/vax/linux.h (ASM_SPEC): Likewise.
28866         * doc/install.texi: Document --enable-default-pie.
28867         * doc/invoke.texi: Document -no-pie.
28868         * config.in: Regenerated.
28869         * configure: Likewise.
28871 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28873         PR rtl-optimization/66168
28874         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28875         can_move_invariant_reg.
28877 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
28879         PR target/66148
28880         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28881         REG_EQUAL note when doing insert.
28883         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28884         instead of "%d" for 'o' operand.
28886 2015-05-27  Nathan Sidwell  <nathan@acm.org>
28888         PR c++/66270
28889         * tree.c (build_pointer_type_for_mode): Canonical type does not
28890         inherit can_alias_all.
28891         (build_reference_type_for_mode): Likewise.
28893 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
28895         * expr.h (array_at_struct_end_p): Move to...
28896         (array_ref_element_size): Likewise.
28897         (component_ref_field_offset): Likewise.
28898         * tree.h (array_ref_element_size): ...here.
28899         (array_at_struct_end_p): Likewise.
28900         (component_ref_field_offset): Likewise.
28901         * expr.c (array_ref_element_size): Move to...
28902         (array_ref_low_bound): Likewise.
28903         (array_at_struct_end_p): Likewise.
28904         (array_ref_up_bound): Likewise.
28905         (component_ref_field_offset): Likewise.
28906         * tree.c (array_ref_element_size): ...here.
28907         (array_ref_low_bound): Likewise.
28908         (array_ref_up_bound): Likewise.
28909         (array_at_struct_end_p): Likewise.
28910         (component_ref_field_offset): Likewise.
28912 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
28913             Szabolcs Nagy  <szabolcs.nagy@arm.com>
28915         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28917 2015-05-27  Jason Merrill  <jason@redhat.com>
28919         PR bootstrap/66304
28920         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28921         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28922         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28924 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
28926         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28927         is true.
28929         * statistics.c (statistics_fini_pass): Print pass name.
28931 2015-05-27  Richard Biener  <rguenther@suse.de>
28933         PR tree-optimization/66272
28934         Revert parts of
28935         2014-08-15  Richard Biener  <rguenther@suse.de>
28937         PR tree-optimization/62031
28938         * tree-data-ref.c (dr_analyze_indices): Do not set
28939         DR_UNCONSTRAINED_BASE.
28940         (dr_may_alias_p): All indirect accesses have to go the
28941         formerly DR_UNCONSTRAINED_BASE path.
28942         * tree-data-ref.h (struct indices): Remove
28943         unconstrained_base member.
28944         (DR_UNCONSTRAINED_BASE): Remove.
28946 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
28948         * dwarf2out.c: Remove block_map.
28949         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28950         (gen_lexical_block_die): Same.
28951         (dwarf2out_function_decl): Remove block_map use.
28952         (dwarf2out_c_finalize): Same.
28953         * tree-core.h (struct tree_block): Add die field.
28954         * tree.h (BLOCK_DIE): New.
28956 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28958         PR target/65358
28959         * expr.c (memory_load_overlap): New function.
28960         (emit_push_insn): When pushing partial args to the stack would
28961         clobber the register part load the overlapping part into a pseudo
28962         and put it into the hard reg after pushing.  Change return type
28963         to bool.  Add bool argument.
28964         * expr.h (emit_push_insn): Change return type to bool.
28965         Add bool argument.
28966         * calls.c (expand_call): Cancel sibcall optimization when encountering
28967         partial argument on targets with ARGS_GROW_DOWNWARD and
28968         !STACK_GROWS_DOWNWARD.
28969         (emit_library_call_value_1): Update callsite of emit_push_insn.
28970         (store_one_arg): Likewise.
28972 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
28974         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28976 2015-05-27  Martin Liska  <mliska@suse.cz>
28978         * Makefile.in: Add additional dependencies related to memory report
28979         enhancement.
28980         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28981         * bitmap.c (struct bitmap_descriptor_d): Remove.
28982         (struct loc): Likewise.
28983         (struct bitmap_desc_hasher): Likewise.
28984         (bitmap_desc_hasher::hash): Likewise.
28985         (bitmap_desc_hasher::equal): Likewise.
28986         (get_bitmap_descriptor): Likewise.
28987         (bitmap_register): User new memory descriptor API.
28988         (register_overhead): Likewise.
28989         (bitmap_find_bit): Register nsearches and search_iter statistics.
28990         (struct bitmap_output_info): Remove.
28991         (print_statistics): Likewise.
28992         (dump_bitmap_statistics): Use new memory descriptor.
28993         * bitmap.h (struct bitmap_usage): New class.
28994         * genmatch.c: Extend header file inclusion.
28995         * genpreds.c: Likewise.
28996         * ggc-common.c (struct ggc_usage): New class.
28997         (struct ggc_loc_desc_hasher): Remove.
28998         (ggc_loc_desc_hasher::hash): Likewise.
28999         (ggc_loc_desc_hasher::equal): Likewise.
29000         (struct ggc_ptr_hash_entry): Likewise.
29001         (struct ptr_hash_hasher): Likewise.
29002         (ptr_hash_hasher::hash): Likewise.
29003         (ptr_hash_hasher::equal): Likewise.
29004         (make_loc_descriptor): Likewise.
29005         (ggc_prune_ptr): Likewise.
29006         (dump_ggc_loc_statistics): Use new memory descriptor.
29007         (ggc_record_overhead): Likewise.
29008         (ggc_free_overhead): Likewise.
29009         (final_cmp_statistic): Remove.
29010         (cmp_statistic): Likewise.
29011         (ggc_add_statistics): Liekwise.
29012         (ggc_prune_overhead_list): Likewise.
29013         * hash-map-traits.h: New file.
29014         * hash-map.h (struct default_hashmap_traits): Move the traits to a
29015         separate header file.
29016         * hash-set.h: Pass memory statistics info to ctor.
29017         * hash-table.c (void dump_hash_table_loc_statistics): New function.
29018         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29019         (hash_table::~hash_table): Register memory release operation.
29020         (hash_table::alloc_entries): Handle memory allocation operation.
29021         (hash_table::expand): Likewise.
29022         * inchash.c (iterative_hash_hashval_t): Move implementation to header
29023         file.
29024         (iterative_hash_host_wide_int): Likewise.
29025         * inchash.h (class hash): Likewise.
29026         * mem-stats-traits.h: New file.
29027         * mem-stats.h: New file.
29028         (mem_location): Add new class.
29029         (mem_usage): Likewise.
29030         (mem_alloc_description): Likewise.
29031         * sese.c: Add new header file inclusision.
29032         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29033         and hash_set.
29034         * tree-sra.c: Add new header file inclusision.
29035         * vec.c (struct vec_descriptor): Remove.
29036         (hash_descriptor): Likewise.
29037         (struct vec_usage): Likewise.
29038         (struct ptr_hash_entry): Likewise.
29039         (hash_ptr): Likewise.
29040         (eq_ptr): Likewise.
29041         (vec_prefix::register_overhead): Use new memory descriptor API.
29042         (vec_prefix::release_overhead): Likewise.
29043         (add_statistics): Remove.
29044         (dump_vec_loc_statistics): Use new memory descriptor API.
29045         * vec.h (struct vec_prefix): Likewise.
29046         (va_heap::reserve): Likewise.
29047         (va_heap::release): Likewise.
29048         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29050 2015-05-27  Richard Biener  <rguenther@suse.de>
29052         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29053         earlier and remove ??? comment.
29054         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29055         and got called from loop analysis bail out.  Always pass the SLP
29056         node to the vectorizable_* functions.
29057         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29058         the premature SLP check here.
29059         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29060         detected SLP stmts.
29061         (vect_detect_hybrid_slp_1): Likewise.
29063 2015-05-26  Jeff Law  <law@redhat.com>
29065         * combine.c (find_split_point): Verify that the shift count is a
29066         constant when choosing (plus (ashift ...)) as a split point.
29068         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29069         No functional changes.
29071 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
29073         * ipa-polymorphic-call.c
29074         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29075         case when call target is already known.
29077 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
29079         PR target/65979
29080         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29081         take into account the case that operands[1] and operands[2]
29082         are the same register.
29084 2015-05-26  Michael Matz  <matz@suse.de>
29086         PR middle-end/66251
29088         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29089         stores.
29090         (vect_create_vectorized_demotion_stmts): Always set
29091         STMT_VINFO_VEC_STMT, also with SLP.
29092         (vectorizable_store): Handle strided group stores.
29094 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29096         PR target/66049
29097         * config/aarch64/aarch64.md
29098         (*adds_shift_imm_<mode>):  New pattern.
29099         (*subs_shift_imm_<mode>):  Likewise.
29100         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
29101         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29102         (*add_uxt<mode>_shift2): Likewise.
29103         (*add_uxtsi_shift2_uxtw): Likewise.
29104         (*sub_uxt<mode>_shift2): Likewise.
29105         (*sub_uxtsi_shift2_uxtw): Likewise.
29107 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
29109         * config/rs6000/constraints.md (Y, U): Use match_test.
29111 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29113         PR target/52144
29114         * config/arm/arm.c (arm_option_check_internal)
29115         (arm_option_params_internal): Check opts->target_flags to set macros.
29116         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29117         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29118         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29119         (builtin_define): Replaced with def_or_undef_macro.
29120         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29121         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29122         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29123         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29124         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29125         (TARGET_ARM_FEATURE_LDREX_P)
29126         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29127         * config/arm/arm-c.c (def_or_undef_macro): New function.
29128         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29130 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29132         * c-common.h (builtin_define_with_int_value)
29133         (builtin_define_type_sizeof): Declare.
29134         * c-cppbuiltin.c (builtin_define_with_int_value)
29135         (builtin_define_type_sizeof): Externalize.
29136         (builtin_define_std): Cleanup declaration.
29137         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29138         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29139         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29140         (builtin_define, builtin_assert): New macros.
29142 2015-05-26  Richard Biener  <rguenther@suse.de>
29144         PR tree-optimization/66142
29145         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29146         MEM_REFs for the same base address.
29148 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29150         PR ipa/66181
29151         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29153 2015-05-26  Jason Merrill  <jason@redhat.com>
29155         * configure.ac: Set CXXFLAGS for ISL test.
29156         * configure: Regenerate.
29158         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
29159         strstr and basename.
29160         * configure: Regenerate.
29162 2015-05-26  Richard Biener  <rguenther@suse.de>
29164         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29165         X % C -> X & (C - 1) for C being a power-of two to ...
29166         * match.pd: ... patterns.
29168 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
29170         * match.pd (swapped_tcc_comparison): New operator list.
29171         (-A CMP -B): New simplification.
29172         * fold-const.c (fold_comparison): Remove corresponding code.
29174 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29176         * caller-save.c (init_caller_save): Base temporary register numbers
29177         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29178         * cfgloopanal.c (init_set_costs): Likewise.
29179         * dojump.c (prefer_and_bit_test): Likewise.
29180         * expr.c (init_expr_target): Likewise.
29181         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29182         * lower-subreg.c (init_lower_subreg): Likewise.
29183         * postreload.c (reload_cse_regs_1): Likewise.
29185 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29187         * gensupport.h (compute_test_codes): Declare.
29188         * gensupport.c (compute_predicate_codes): Rename to...
29189         (compute_test_codes): ...this.  Generalize error message.
29190         (process_define_predicate): Update accordingly.
29191         * genpreds.c (compute_maybe_allows): Delete.
29192         (add_constraint): Use compute_test_codes to determine whether
29193         something can accept a SUBREG, REG or MEM.
29195 2015-05-26  Torvald Riegel  <triegel@redhat.com>
29197         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29198         'memory model' to align with C++11; fix description of memory orders;
29199         fix a few typos.
29201 2015-05-26  Richard Biener  <rguenther@suse.de>
29203         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29204         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
29205         detect whether we apply SLP.  Remove call to
29206         vect_update_slp_costs_according_to_vf.
29207         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29208         vect_update_slp_costs_according_to_vf from here.  Dispatch
29209         to vect_slp_analyze_operations to analyze SLP stmts.
29210         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29211         unused bb_vec_info parameter, adjust assert.
29212         (vect_slp_analyze_operations): Pass in the slp instance tree
29213         instead of bb_vec_info.
29214         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29215         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29217 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29219         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29220         Q_REGS.  Expand comment.
29221         (REG_CLASS_NAMES): Ditto.
29222         (REG_CLASS_CONTENTS): Ditto.
29224 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
29226         PR target/66274
29227         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29228         when LEGACY_INT_REGNO_P is processed.
29230 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29232         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29234 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29236         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29237         register if not marked dead/unused, before return.
29239 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29241         PR lto/66180
29242         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29243         is set; check for assembler name at LTO time.
29244         (type_in_anonymous_namespace): Remove hacks, check that all
29245         anonymous types are called "<anon>"
29246         (odr_type_p): Simplify; add check for "<anon>"
29247         (odr_subtypes_equivalent): Add odr_type_p check.
29248         * tree.c (need_assembler_name_p): Even anonymous namespace needs
29249         assembler name.
29251 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29253         * ipa-utils.h (method_class_type): Remove.
29254         * cgraphunit.c (walk_polymorphic_call_targets): Use
29255         TYPE_METHOD_BASETYPE.
29256         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29257         on main variants only.
29258         (method_class_type): Remove.
29259         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29260         (build_type_inheritance_graph): Likewise.
29261         * ipa-icf.c (sem_function::equals_wpa): Likewise.
29262         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29263         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29265 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29267         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29268         is_typedef_decl, typedef_variant_p): Constify.
29269         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29270         is_typedef_decl, typedef_variant_p): Constify.
29272 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29274         * defaults.h (gen_tablejump): New function.
29275         (HAVE_tablejump): Add default value.
29276         * expr.c: Adjust.
29277         * stmt.c: Likewise.
29279 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29281         * defaults.h (gen_store_multiple): New function.
29282         (HAVE_store_multiple): Add default value.
29283         * expr.c (move_block_from_reg): Adjust.
29285 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29287         * defaults.h (gen_load_multiple): New function.
29288         (HAVE_load_multiple): Add default value.
29289         * expr.c (move_block_to_reg): Adjust.
29291 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29293         * defaults.h (gen_mem_signal_fence): New function.
29294         (HAVE_mem_signal_fence): Add default value.
29295         * optabs.c: Adjust.
29297 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29299         * defaults.h (gen_memory_barrier): New function.
29300         (HAVE_memory_barrier): Add default value.
29301         * optabs.c: Adjust.
29303 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29305         * defaults.h (gen_mem_thread_fence): New function.
29306         (HAVE_mem_thread_fence): Add default definition.
29307         * optabs.c: Adjust.
29309 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29311         * combine.c (find_split_point): Check the value of HAVE_lo_sum
29312         instead of if it is defined.
29313         (combine_simplify_rtx): Likewise.
29314         * lra-constraints.c (process_address_1): Likewise.
29315         * config/darwin.c: Adjust.
29316         * genconfig.c (main): Always define HAVE_lo_sum.
29318 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29320         * genmatch.c (parser::parse_operation): Reject expanding
29321         operator-list inside 'for'.
29323 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29325         * genmatch.c (parser::parse_for): Reject iterator if used as
29326         operator-list.
29328 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29330         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29331         after end of id-list.
29333 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29335         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29336         we do not try to compute canonical type for type that does not need
29337         alias set.
29338         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29339         FUNCITON_TYPE.
29340         * tree.h (type_with_alias_set_p): New.
29342 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29344         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
29345         function attributes.
29346         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29348 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
29350         * Makefile.in (check_gcc_parallelize): Delete.
29351         (lang_checks_parallelized): Update comment.
29353 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
29355         PR rtl-optimization/66237
29356         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29357         location of an "as_a" cast.
29359 2015-05-22  Jeff Law  <law@redhat.com>
29361         * config/pa/pa.md (non-canonical shift-add insns): Remove.
29362         (peepholes with non-canonical RTL sources): Remove.
29363         (peepholes for indexed stores of FP regs in integer modes): Match and
29364         generate canonical RTL.
29366 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29368         PR tree-optimization/63387
29369         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29370         ((x ord x) & (y ord y) -> (x ord y),
29371         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29372         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29373         vectors like scalars.
29375 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29377         * convert.c (convert_to_integer, convert_to_vector): Include the
29378         types in the error message.
29380 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
29382         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29383         simplifications.
29385 2015-05-22  Jeff Law  <law@redhat.com>
29387         * config/pa/pa.md (integer_indexed_store splitters): Use
29388         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
29389         insns -- adjusting the constant 2nd operand accordingly.
29391         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29392         (plus (ashift X log2) Y) if it is a split point.
29394         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29395         out of hppa_legitimize_address to handle both forms of a multiply
29396         by 2, 4 or 8.
29397         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29398         Always generate the ASHIFT variant as the result is not directly
29399         used in a MEM.  Update comments and refactor slightly to improve
29400         readability.
29402 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29404         PR target/65491
29405         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29406         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
29407         (aarch64_composite_type_p): Return false if given type and mode are
29408         for a short vector.
29410 2015-05-22  Richard Biener  <rguenther@suse.de>
29412         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29413         member.
29414         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29415         patterns when determining whether SLP is pure.
29416         (vect_is_slp_reduction): Remove check for pattern stmts.
29417         (vect_is_simple_reduction_1): Remove dead code.
29418         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29419         (vect_get_and_check_slp_defs): Pass in the stmt number.
29420         Allow the first def in a reduction to be not a pattern stmt when
29421         the rest of the stmts def are patterns.
29422         (vect_build_slp_tree_1): Allow tcc_expression codes like
29423         SAD_EXPR and DOT_PROD_EXPR.
29424         (vect_build_slp_tree): Adjust.
29425         (vect_analyze_slp): Refactor and move BB vect error message ...
29426         (vect_slp_analyze_bb_1): ... here.
29428 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
29430         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29431         for CSWTCH temporary.
29433 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29435         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29436         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
29437         unknown unspecs.
29439 2015-05-22  Richard Biener  <rguenther@suse.de>
29441         PR tree-optimization/66251
29442         * tree-vect-stmts.c (vectorizable_conversion): Properly
29443         set STMT_VINFO_VEC_STMT even for the SLP case.
29445 2015-05-22  Marek Polacek  <polacek@redhat.com>
29447         * doc/extend.texi: Use @pxref instead of @xref.
29449 2015-05-22  hiraditya  <hiraditya@msn.com>
29451         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29452         redundant if.
29454 2015-05-22  Richard Biener  <rguenther@suse.de>
29456         PR tree-optimization/65701
29457         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29458         Move peeling cost models into one place.  Peel for alignment
29459         for single loads only if an aligned load is cheaper than
29460         an unaligned load.
29462 2015-05-22  Marek Polacek  <polacek@redhat.com>
29464         PR c/47043
29465         * doc/extend.texi (Enumerator Attributes): New section.
29466         Document syntax of enumerator attributes.
29468 2015-05-22  Richard Biener  <rguenther@suse.de>
29470         * tree-vect-loop.c (get_reduction_op): New function.
29471         (vect_model_reduction_cost): Use it, add reduc_index parameter.
29472         Make ready for BB reductions.
29473         (vect_create_epilog_for_reduction): Use get_reduction_op.
29474         (vectorizable_reduction): Init reduc_index to a valid value.
29475         Adjust vect_model_reduction_cost call.
29476         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29477         operand for reduction defaults.  Add SAD_EXPR support.
29478         Assert we have a neutral op for SLP reductions.
29479         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29480         walking pattern stmt ops only recurse to SSA names.
29482 2015-05-22  Richard Biener  <rguenther@suse.de>
29484         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29485         assert with guard, remove check on detected reduction.
29486         (vect_recog_sad_pattern): Likewise.
29487         (vect_recog_widen_sum_pattern): Likewise.
29489 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29491         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29492         __always_inline__ attribute.
29493         (vaesdq_u8): Likewise.
29494         (vaesmcq_u8): Likewise.
29495         (vaesimcq_u8): Likewise.
29496         (vsha1cq_u32): Likewise.
29497         (vsha1mq_u32): Likewise.
29498         (vsha1pq_u32): Likewise.
29499         (vsha1h_u32): Likewise.
29500         (vsha1su0q_u32): Likewise.
29501         (vsha1su1q_u32): Likewise.
29502         (vsha256hq_u32): Likewise.
29503         (vsha256h2q_u32): Likewise.
29504         (vsha256su0q_u32): Likewise.
29505         (vsha256su1q_u32): Likewise.
29506         (vmull_p64): Likewise.
29507         (vmull_high_p64): Likewise.
29509 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29511         * final.c (final_scan_insn): Don't check HAVE_peephole with the
29512         preprocessor.
29513         * output.h: Likewise.
29514         * genconfig.c (main): Alwways define HAVE_peephole.
29515         * genpeep.c: Don't emit checks of HAVE_peephole.
29517 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29519         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29520         check HAVE_conditional_move with the preprocessor.
29522 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29524         * genconfig.c (main): Always define HAVE_conditional_move.
29525         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29526         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29527         is defined.
29529 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29531         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29532         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29533         and FRAME_POINTER_REGNUM with the preprocessor.
29535 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29537         * defaults.h: Add default for STACK_PUSH_CODE.
29538         * expr.c: Don't redefine STACK_PUSH_CODE.
29539         * recog.c: Likewise.
29541 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29543         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29544         sched-deps.c: Use if instead of preprocessor checks with
29545         STACK_GROWS_DOWNWARD.
29547 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29549         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29550         is defined.
29551         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29552         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29553         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29554         * doc/tm.texi: Regenerate.
29556 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
29558         PR target/66232
29559         * config/i386/constraints.md (Bg): New constraint for GOT memory
29560         operand.
29561         * config/i386/i386.md (*call_got_x32): New pattern.
29562         (*call_value_got_x32): Likewise.
29563         * config/i386/predicates.md (GOT_memory_operand): New predicate.
29565 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
29567         PR tree-optimization/66233
29568         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29569         Simplify.
29571 2015-05-21  Jeff Law  <law@redhat.com>
29573         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29574         than MULT for shadd sequences.
29576 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
29578         * alias.c (alias_stats): New static var.
29579         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29580         (dump_alias_stats_in_alias_c): New function.
29581         * alias.h (dump_alias_stats_in_alias_c): Declare.
29582         * tree-ssa-alias.c (dump_alias_stats): Call it.
29584 2015-05-08  Michael Matz  <matz@suse.de>
29586         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29587         to strided_p.
29588         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29589         (STMT_VINFO_STRIDED_P): ... this.
29590         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29591         (vect_verify_datarefs_alignment): Likewise.
29592         (vect_enhance_data_refs_alignment): Likewise.
29593         (vect_analyze_data_ref_access): Likewise.
29594         (vect_analyze_data_refs): Accept strided stores.
29595         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29596         (vect_model_load_cost): Adjust for macro rename.
29597         (vectorizable_mask_load_store): Likewise.
29598         (vectorizable_load): Likewise.
29599         (vectorizable_store): Open code strided stores.
29601 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29603         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29604         Document sqrt_insn.
29606 2015-05-21  Richard Biener  <rguenther@suse.de>
29608         PR c++/66211
29609         * match.pd: Guard pattern optimzing (int)(float)int
29610         conversions to apply only on GIMPLE.
29612 2015-05-21  Jeff Law  <law@redhat.com>
29614         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29615         multiply-accumulate/shift-add insn generation.
29617 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
29619         PR target/54236
29620         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29621         operands[1] are the same.
29623 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
29625         PR middle-end/66221
29626         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29627         build_distinct_type_copy to copy bounds.
29629 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
29631         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29632         Change to unsigned int.
29634 2015-05-20  Jeff Law  <law@redhat.com>
29636         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29637         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29638         (pa_shadd_constant_p): Allow constants for shadd insns rather
29639         than valid scaling constants for memory addresses.
29640         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29641         * config/pa/predicates.md (mem_shadd_operand): New predicate.
29642         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29643         (shift-add insns using ASHIFT): New patterns.
29645 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
29647         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29648         feasible.
29649         (fix_up_fall_thru_edges): Likewise.
29650         (fix_crossing_conditional_branches): Likewise. Promote jump targets
29651         from to rtx_insn to rtx_code_label where feasible.
29652         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29653         gen_move_insn (returned type changed to rtx_insn).
29654         * builtins.c (expand_errno_check): Fix arguments of
29655         do_compare_rtx_and_jump (now expects rtx_code_label).
29656         (expand_builtin_acc_on_device): Likewise.
29657         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29658         invert_jump (now exprects rtx_jump_insn).
29659         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29660         (construct_init_block): Use rtx_code_label.
29661         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29662         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29663         calling redirect_jump.
29664         (patch_jump_insn): Likewise.
29665         (redirect_branch_edge): Likewise.
29666         (force_nonfallthru_and_redirect): Likewise.
29667         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29668         when suitable.
29669         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29670         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29671         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29672         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29673         to store the value retured by gen_label_rtx.
29674         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29675         rtx_jump_insn.
29676         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29677         (split_branches): Fix calls of redirect_jump.
29678         * dojump.c (jumpifnot): Promote argument type from rtx to
29679         rtx_code_label.
29680         (jumpifnot_1): Likewise.
29681         (jumpif): Likewise.
29682         (jumpif_1): Likewise.
29683         (do_jump_1): Likewise.
29684         (do_jump): Likewise. Use rtx_code_label when feasible.
29685         (do_jump_by_parts_greater_rtx): Likewise.
29686         (do_jump_by_parts_zero_rtx): Likewise.
29687         (do_jump_by_parts_equality_rtx): Likewise.
29688         (do_compare_rtx_and_jump): Likewise.
29689         * dojump.h: Update function prototypes.
29690         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29691         returns rtx_insn).
29692         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29693         rtx_jump_insn.
29694         (emit_label_before): Likewise.
29695         (emit_jump_insn_after_noloc): Likewise.
29696         (emit_jump_insn_after_setloc): Likewise.
29697         (emit_jump_insn_after): Likewise
29698         (emit_jump_insn_before_setloc): Likewise.
29699         (emit_jump_insn_before): Likewise.
29700         (emit_label_before): Promote return type to rtx_code_label.
29701         (emit_label): Likewise.
29702         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29703         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29704         gen_move_insn.
29705         (emit_stack_restore): Likewise.
29706         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29707         (do_cmp_and_jump): Likewise.
29708         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29709         from rtx to rtx_code_label.
29710         (gen_move_insn_uncast): New function.
29711         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29712         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29713         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29714         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29715         invert_jump_1 and redirect_jump_1.
29716         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29717         do_compare_rtx_and_jump.
29718         (expand_addsub_overflow): Likewise.
29719         (expand_neg_overflow): Likewise.
29720         (expand_mul_overflow): Likewise.
29721         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29722         return value of gen_move_insn.
29723         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29724         * loop-doloop.c (add_test): Use rtx_code_label.
29725         (doloop_modify): Likewise.
29726         (doloop_optimize): Likewise.
29727         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29728         * lra-constraints.c (emit_spill_move): Remove cast of value returned
29729         by gen_move_insn.
29730         (inherit_reload_reg): Add cast when calling dump_insn_slim.
29731         (split_reg): Likewise.
29732         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29733         gen_move_insn.
29734         * optabs.c (expand_binop_directly): Remove casts of values returned by
29735         maybe_gen_insn.
29736         (expand_unop_direct): Likewise.
29737         (expand_abs): Likewise.
29738         (maybe_emit_unop_insn): Likewise.
29739         (maybe_gen_insn): Promote return type to rtx_insn.
29740         * optabs.h: Update prototype of maybe_gen_insn.
29741         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29742         redundant cast.
29743         * recog.c (struct peep2_insn_data): Promote type of insn field to
29744         rtx_insn.
29745         (peep2_reinit_state): Use NULL instead of NULL_RTX.
29746         (peep2_attempt): Remove casts of insn in peep2_insn_data.
29747         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29748         * recog.h (struct insn_gen_fn): Promote return types of function
29749         pointers and operator ().from rtx to rtx_insn.
29750         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29751         (fill_eager_delay_slots): Likewise.
29752         (relax_delay_slots): Likewise.
29753         (make_return_insns): Likewise.
29754         (dbr_schedule): Likewise.
29755         (optimize_skips): Likewise.
29756         (reorg_redirect_jump): Likewise.
29757         (fill_slots_from_thread): Likewise.
29758         * reorg.h: Update prototypes.
29759         * resource.c (find_dead_or_set_registers): Use dyn_cast to
29760         rtx_jump_insn instead of check.  Use it's jump_target method.
29761         * rtl.h (rtx_jump_insn::jump_label): Define new method.
29762         (rtx_jump_insn::jump_target): Define new method.
29763         (rtx_jump_insn::set_jump_target): Define new method.
29764         * rtlanal.c (tablejump_p): Promote type of one local variable.
29765         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29766         (sched_analyze_insn): Likewise.
29767         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29768         (print_insn): Likewise.
29769         * stmt.c (label_rtx): Promote return type to rtx_insn.
29770         (force_label_rtx): Likewise.
29771         (jump_target_rtx): Define new function.
29772         (expand_label): Use it, get rid of one cast.
29773         (expand_naked_return): Promote rtx to rtx_code_label.
29774         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29775         (expand_case): Use rtx_code_label instread of rtx where feasible.
29776         (expand_sjlj_dispatch_table): Likewise.
29777         (emit_case_nodes): Likewise.
29778         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
29779         * store-motion.c (insert_store): Make use of new return type of
29780         gen_move_insn and remove a cast.
29781         (replace_store_insn): Likewise.
29783 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
29785         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29786         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29788 2015-05-20  Jeff Law  <law@redhat.com>
29790         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29791         dispose of the jump thread path when the jump threading
29792         opportunity is cancelled.
29794 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29796         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29797         when printing the caret character.
29799 2015-05-20  Marek Polacek  <polacek@redhat.com>
29801         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29803 2015-05-20  Marek Polacek  <polacek@redhat.com>
29805         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29806         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29807         * gimple-fold.c (canonicalize_bool): Likewise.
29808         (same_bool_result_p): Likewise.
29809         * tree-if-conv.c (parse_predicate): Likewise.
29811 2015-05-20  Marek Polacek  <polacek@redhat.com>
29813         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29814         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29816 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29818         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29819         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29820         values.
29822 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
29824         * config/mips/mips.h (micromips_globals): Declare.
29826 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
29828         * timevar.def (TV_INITIALIZE_RTL): New.
29829         * toplev.c (initialize_rtl): Use an auto_timevar to account this
29830         function's time to TV_INITIALIZE_RTL.
29832 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
29834         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29835         gimple_build_nop calls.
29836         (chkp_find_bounds_for_elem): Likewise.
29837         (chkp_get_zero_bounds): Likewise.
29838         (chkp_get_none_bounds): Likewise.
29839         (chkp_get_bounds_by_definition): Likewise.
29840         (chkp_generate_extern_var_bounds): Likewise.
29841         (chkp_get_bounds_for_decl_addr): Likewise.
29842         (chkp_get_bounds_for_string_cst): Likewise.
29844 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
29846         PR tree-optimization/65447
29847         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29848         (dump_use, dump_uses): Support to dump sub use.
29849         (record_use): New parameters to support sub use.  Remove call to
29850         dump_use.
29851         (record_sub_use, record_group_use): New functions.
29852         (compute_max_addr_offset, split_all_small_groups): New functions.
29853         (group_address_uses, rewrite_use_address): New functions.
29854         (strip_offset): New declaration.
29855         (find_interesting_uses_address): Call record_group_use.
29856         (add_candidate): New assertion.
29857         (infinite_cost_p): Move definition forward.
29858         (add_costs): Check INFTY cost and return immediately.
29859         (get_computation_cost_at): Clear setup cost and dependent bitmap
29860         for sub uses.
29861         (determine_use_iv_cost_address): Compute cost for sub uses.
29862         (rewrite_use_address_1): Rename from old rewrite_use_address.
29863         (free_loop_data): Free sub uses.
29864         (tree_ssa_iv_optimize_loop): Call group_address_uses.
29866 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
29867             Jim Wilson  <jim.wilson@linaro.org>
29869         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29870         new  fields loadv and storev.
29871         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29872         Initialize loadv and storev.
29873         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29874         (cortexa53_extra_costs): Likewise.
29875         (cortexa57_extra_costs): Likewise.
29876         (xgene1_extra_costs): Likewise.
29877         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29878         rtx_costs.
29880 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
29882         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29883          storev.
29884         (cortexa8_extra_costs): Likewise.
29885         (cortexa5_extra_costs): Likewise.
29886         (cortexa7_extra_costs): Likewise.
29887         (cortexa12_extra_costs): Likewise.
29888         (cortexa15_extra_costs): Likewise.
29889         (v7m_extra_costs): Likewise.
29891 2015-05-20  Jeff Law  <law@redhat.com>
29893         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29894         instead of open-coded version.  Also delete the jump thread created
29895         within this function.
29897 2015-05-20  Alan Modra  <amodra@gmail.com>
29899         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29900         stack adjusting insn.  Formatting.
29901         (rs6000_emit_prologue): Track stack adjusting insn, and use of
29902         r12.  If possible, emit first -fsplit-stack arg pointer insn
29903         before stack adjust.  Don't use r12 to save cr if split-stack.
29905 2015-05-20  Alan Modra  <amodra@gmail.com>
29907         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29908         Define.
29909         (rs6000_supports_split_stack): New function.
29910         * config/rs6000/rs6000.c (machine_function): Add
29911         split_stack_arg_pointer.
29912         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29913         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29914         rather than virtual_incoming_args_rtx.
29915         (rs6000_va_start): Likewise.
29916         (split_stack_arg_pointer_used_p): New function.
29917         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29918         (morestack_ref): New var.
29919         (gen_add3_const, rs6000_expand_split_stack_prologue,
29920         rs6000_internal_arg_pointer, rs6000_live_on_entry,
29921         rs6000_split_stack_space_check): New functions.
29922         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29923         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29924         (UNSPECV_SPLIT_STACK_RETURN): Define.
29925         (split_stack_prologue, load_split_stack_limit,
29926         load_split_stack_limit_di, load_split_stack_limit_si,
29927         split_stack_return, split_stack_space_check): New expands and insns.
29928         * config/rs6000/rs6000-protos.h
29929         (rs6000_expand_split_stack_prologue): Declare.
29930         (rs6000_split_stack_space_check): Declare.
29932 2015-05-20  Alan Modra  <amodra@gmail.com>
29934         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29935         (direct_return): Test vrsave_size rather than vrsave_mask.
29936         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
29937         (rs6000_emit_epilogue): Likewise.
29939 2015-05-20  Alan Modra  <amodra@gmail.com>
29941         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29942         when not saving registers.
29943         (debug_stack_info): Adjust to omit printing unused offsets,
29944         as before.
29945         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29946         expression.
29948 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29950         PR c++/65835
29951         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29952         value_type to const char *.
29954 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
29956         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29957         to build a biarch toolchain again.
29959 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
29961         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29962         or implicit declarations.
29963         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29964         into it.
29965         (get_odr_type): Check type has linkage before adding bases.
29966         (register_odr_type): Check that type has linkage before adding it.
29967         (type_known_to_have_no_deriavations_p): Rename to ..
29968         (type_known_to_have_no_derivations_p): This one.
29969         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29970         (type_known_to_have_no_derivations_p): This one.
29971         * ipa-polymorphic-call.c
29972         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29973         type has linkage.
29975 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
29977         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29978         (layout_type): Use RECORD_OR_UNION_TYPE_P.
29980 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29982         * config/s390/s390.c (s390_vector_bool_type_p): New function.
29983         (s390_invalid_binary_op): New function.
29984         (TARGET_INVALID_BINARY_OP): Define macro.
29986 2015-05-19  David Sherwood  <david.sherwood@arm.com>
29988         * loop-invariant.c (create_new_invariant): Don't calculate address cost
29989         if mode is not a scalar integer.
29990         (get_inv_cost): Increase computational cost for unused invariants.
29992 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29994         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
29995         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
29996         * config/s390/s390-builtin-types.def: New file.
29997         * config/s390/s390-builtins.def: New file.
29998         * config/s390/s390-builtins.h: New file.
29999         * config/s390/s390-c.c: New file.
30000         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30001         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30002         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30003         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30004         prototypes.
30005         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30006         Include.
30007         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30008         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30009         variable definitions.
30010         (s390_const_operand_ok): New function.
30011         (s390_expand_builtin): Rewrite.
30012         (s390_init_builtins): New function.
30013         (s390_handle_vectorbool_attribute): New function.
30014         (s390_attribute_table): Add s390_vector_bool attribute.
30015         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30016         (s390_branch_condition_mask): Generate masks for new modes.
30017         (s390_expand_vec_compare_cc): New function.
30018         (s390_mangle_type): Add mangling for vector bool types.
30019         (enum s390_builtin): Remove.
30020         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30021         efpc builtins.
30022         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30023         s390_cpu_cpp_builtins.
30024         (REGISTER_TARGET_PRAGMAS): New macro.
30025         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30026         (insn_cmp mode attribute): Add new CC modes.
30027         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30028         (lcbb): New pattern definition.
30029         * config/s390/s390intrin.h: Include vecintrin.h.
30030         * config/s390/t-s390: New file.
30031         * config/s390/vecintrin.h: New file.
30032         * config/s390/vector.md: Include vx-builtins.md.
30033         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30034         support.
30036 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30038         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30039         CCVFHE.
30040         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30041         (s390_select_ccmode): Likewise.
30042         (s390_canonicalize_comparison): Swap operands if necessary.
30043         (s390_expand_vec_compare_scalar): Expand DFmode compare using
30044         single element vector instructions.
30045         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30046         (s390_branch_condition_mask): Generate CC masks for the new modes.
30047         * config/s390/s390.md (v0, vf, vd): New mode attributes.
30048         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30049         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30050         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30051         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30052         (*extend<DSF:mode><BFP:mode>2): New insn definition.
30053         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30054         (extend<DSF:mode><BFP:mode>2): Turn into expander.
30055         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30056         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30057         (sqrt<mode>2): Add vector instruction.
30059 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30061         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30062         constraints.
30063         * config/s390/predicates.md (const0_operand, constm1_operand)
30064         (constable_operand): Accept vector operands.
30065         * config/s390/s390-modes.def: Add supported vector modes.
30066         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30067         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30068         (s390_bytemask_vector_p, s390_expand_vec_strlen)
30069         (s390_expand_vec_compare, s390_expand_vcond)
30070         (s390_expand_vec_init): Add prototypes.
30071         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30072         (s390_vector_mode_supported_p): New function.
30073         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30074         (s390_contiguous_bitmask_vector_p): New function.
30075         (s390_bytemask_vector_p): New function.
30076         (s390_split_ok_p): Vector regs don't work either.
30077         (regclass_map): Add VEC_REGS.
30078         (s390_legitimate_constant_p): Handle vector constants.
30079         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30080         (legitimate_reload_vector_constant_p): New function.
30081         (s390_preferred_reload_class): Handle CONST_VECTOR.
30082         (s390_reload_symref_address):  Likewise.
30083         (s390_secondary_reload): Vector memory instructions only support
30084         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
30085         (s390_emit_ccraw_jump): New function.
30086         (s390_expand_vec_strlen): New function.
30087         (s390_expand_vec_compare): New function.
30088         (s390_expand_vcond): New function.
30089         (s390_expand_vec_init): New function.
30090         (s390_dwarf_frame_reg_mode): New function.
30091         (print_operand): Handle addresses with 'O' and 'R' constraints.
30092         (NR_C_MODES, constant_modes): Add vector modes.
30093         (s390_output_pool_entry): Handle vector constants.
30094         (s390_hard_regno_mode_ok): Handle vector registers.
30095         (s390_class_max_nregs): Likewise.
30096         (s390_cannot_change_mode_class): New function.
30097         (s390_invalid_arg_for_unprototyped_fn): New function.
30098         (s390_function_arg_vector): New function.
30099         (s390_function_arg_float): Remove size variable.
30100         (s390_pass_by_reference): Handle vector arguments.
30101         (s390_function_arg_advance): Likewise.
30102         (s390_function_arg): Likewise.
30103         (s390_return_in_memory): Vector values are returned in a VR if
30104         possible.
30105         (s390_function_and_libcall_value): Handle vector arguments.
30106         (s390_gimplify_va_arg): Likewise.
30107         (s390_call_saved_register_used): Consider the arguments named.
30108         (s390_conditional_register_usage): Disable v16-v31 for non-vec
30109         targets.
30110         (s390_preferred_simd_mode): New function.
30111         (s390_support_vector_misalignment): New function.
30112         (s390_vector_alignment): New function.
30113         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30114         (TARGET_VECTOR_MODE_SUPPORTED_P)
30115         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30116         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30117         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30118         (TARGET_VECTOR_ALIGNMENT): Define target macro.
30119         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30120         (FIRST_PSEUDO_REGISTER): Increase value.
30121         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30122         (VECTOR_REG_P): Define macros.
30123         (FIXED_REGISTERS, CALL_USED_REGISTERS)
30124         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30125         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30126         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30127         Add vector registers.
30128         (CANNOT_CHANGE_MODE_CLASS): Call C function.
30129         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30130         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30131         memory.
30132         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30133         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30134         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30135         (VR*_REGNUM): New constants.
30136         (ALL): New mode iterator.
30137         (INTALL): Remove mode iterator.
30138         Include vector.md.
30139         (movti): Implement TImode moves for VRs.
30140         Disable TImode splitter for VR targets.
30141         Implement splitting TImode GPR<->VR moves.
30142         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30143         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30144         reload<mode>_la_in, reload<mode>_la_out.
30145         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30146         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30147         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30148         (mov<mode> SF SD): Prefer lder, lde for loading.
30149         Add lrl and strl instructions.
30150         Add vector instructions.
30151         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30152         Call s390_expand_vec_strlen on z13.
30153         (*cc_to_int): Change predicate to nonimmediate_operand.
30154         (addti3): Rename to *addti3.  New expander.
30155         (subti3): Rename to *subti3.  New expander.
30156         * config/s390/vector.md: New file.
30158 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30160         * common/config/s390/s390-common.c (processor_flags_table): Add
30161         z13.
30162         * config.gcc: Add z13.
30163         * config/s390/s390-opts.h (enum processor_type): Add
30164         PROCESSOR_2964_Z13.
30165         * config/s390/s390.c (s390_adjust_priority): Check for
30166         PROCESSOR_2964_Z13.
30167         (s390_reorg): Likewise.
30168         (s390_sched_reorder): Likewise.
30169         (s390_sched_variable_issue): Likewise.
30170         (s390_loop_unroll_adjust): Likewise.
30171         (s390_option_override): Likewise. Default to -mvx when available.
30172         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30173         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30174         (TARGET_VX_ABI): Define macros.
30175         macros.
30176         (TARGET_DEFAULT): Add MASK_OPT_VX.
30177         * config/s390/s390.md ("cpu" attribute): Add z13.
30178         ("cpu_facility" attribute): Add vec.
30179         * config/s390/s390.opt (processor_type): Add z13.
30180         (mvx): New options.
30181         * doc/invoke.texi: Add z13 option for -march.
30183 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30185         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30186         mode check to make sure that only scalar integer values are
30187         accepted.
30189 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30191         * tree.c (verify_type_variant): Fix #undef.
30192         (gimple_canonical_types_compatible_p): Move here from lto.c
30193         (verify_type): Verify TYPE_CANONICAL compatibility.
30194         * tree.h (gimple_canonical_types_compatible_p): Declare.
30196 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30198         PR middle-end/66199
30199         * tree.h (OMP_TEAMS_COMBINED): Define.
30200         * gimplify.c (enum gimplify_omp_var_data): Add
30201         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30202         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30203         (omp_notice_variable): Accept both ORT_TEAMS
30204         and ORT_COMBINED_TEAMS.  Don't recurse if
30205         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30206         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30207         GOVD_FIRSTPRIVATE.
30208         (omp_no_lastprivate): New function.
30209         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30210         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30211         notice_outer and set appropriate bits, otherwise make
30212         sure default(none) combined constructs won't complain.
30213         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30214         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30215         omp_no_lastprivate either remove the clause or turn it
30216         into OMP_CLAUSE_PRIVATE.
30217         (gimplify_omp_for): Fix up handling of implicit
30218         lastprivate or linear iterators.
30219         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30220         ORT_COMBINED_TEAMS.
30221         * omp-low.c (lower_omp_for_lastprivate): For combined
30222         for simd use fd.loop.n2 from the for rather than simd.
30224 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30226         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30227         instead of gen_rtx_raw_REG.
30228         (cris_expand_epilogue): Likewise.
30229         * config/microblaze/microblaze.c (microblaze_classify_address):
30230         Likewise.
30231         * config/sparc/sparc.md: Likewise.
30233 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
30235         * config/alpha/alpha.c (alpha_legitimize_reload_address)
30236         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30237         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30238         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30239         Use CASE_CONST_SCALAR_INT.
30240         (print_operand) <case 'M'>: Use mode_width_operand to check the
30241         value of the constant.
30242         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30243         * config/alpha/predicates.md (input_operand): Use general_operand
30244         instead of match_code as operand check.
30245         (symbolic_operand): Use match_code with subexpression digits.
30246         * config/alpha/constraints.md (Q): Ditto.
30248 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30250         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30252 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30254         * config/s390/s390.c (s390_secondary_reload): Fix check for
30255         load/store relative.
30257 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30259         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
30260         alternative_mask to uint64_t.
30262 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30264         PR tree-optimization/66187
30265         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30266         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
30267         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30269 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
30271         * diagnostic.c (diagnostic_report_current_module): Strengthen
30272         local "new_map" from const line_map * to
30273         const line_map_ordinary *.
30274         * genmatch.c (error_cb): Likewise for local "map".
30275         (output_line_directive): Likewise for local "map".
30276         * input.c (expand_location_1): Likewise for local "map".
30277         Pass NULL rather than &map to
30278         linemap_unwind_to_first_non_reserved_loc, since the value is never
30279         read from there, and the value written back not read from here.
30280         (is_location_from_builtin_token): Strengthen local "map" from
30281         const line_map * to const line_map_ordinary *.
30282         (dump_location_info): Strengthen locals "map" from
30283         line_map *, one to const line_map_ordinary *, the other
30284         to const line_map_macro *.
30285         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30286         const line_map * to const line_map_macro *.
30287         (maybe_unwind_expanded_macro_loc): Add a call to
30288         linemap_check_macro when writing to the "map" field of the
30289         loc_map_pair.
30290         Introduce local const line_map_ordinary * "ord_map", using it in
30291         place of "map" in the part of the function where we know we have
30292         an ordinary map.  Strengthen local "m" from const line_map * to
30293         const line_map_ordinary *.
30295 2015-05-19  Nick Clifton  <nickc@redhat.com>
30297         PR target/66156
30298         * config/msp430/msp430.md (zero_extendhisi2): Add support for
30299         separate source and destination registers.
30301 2015-05-19  Richard Biener  <rguenther@suse.de>
30303         PR tree-optimization/66165
30304         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30305         for no load permutation.
30307         PR tree-optimization/66185
30308         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30309         when building the SLP node from scalars.
30311 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30312             Tristan Gingold  <gingold@adacore.com>
30314         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30315         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30316         (expand_stack_restore): Call record_new_stack_level.
30317         (expand_stack_save): Do not call do_pending_stack_adjust.
30318         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30319         * calls.c (expand_call): Call record_new_stack_level for alloca.
30320         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30321         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30322         (update_sjlj_context): New global function.
30323         * except.h (update_sjlj_context): Declare.
30324         * explow.c (record_new_stack_level): New global function.
30325         (allocate_dynamic_stack_space): Call record_new_stack_level.
30326         * explow.h (record_new_stack_level): Declare.
30327         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30328         * cfgrtl.c (duplicate_insn_chain): Likewise.
30330 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30332         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30333         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30334         STACK_GROWS_DOWNWARD as normal if.
30335         (expand_call): Likewise.
30337 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
30339         PR target/54236
30340         * config/sh/sh.md (*round_int_even): New insn_and_split and
30341         accompanying new unnamed split.
30343 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30345         * bitmap.c (bitmap_set_range): Handle count==1 specially.
30346         (bitmap_clear_range): Likewise.
30347         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30348         bitmap_set_range unconditionally.
30349         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30350         * df-scan.c (df_mark_reg): Likewise.
30351         * haifa-sched.c (setup_ref_regs): Likewise.
30352         * sched-rgn.c (update_live_1): Likewise.
30354 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30356         * regs.h (END_HARD_REGNO): Delete.
30357         (END_REGNO): Move to...
30358         * rtl.h: ...here.
30359         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30360         * caller-save.c (mark_set_regs): Likewise.
30361         * combine.c (move_deaths, distribute_notes): Likewise.
30362         * cse.c (invalidate, invalidate_for_call): Likewise.
30363         * df-scan.c (df_ref_record): Likewise.
30364         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30365         (record_last_reg_set_info): Likewise.
30366         * reg-stack.c (convert_regs_exit): Likewise.
30367         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30368         * resource.c (update_live_status): Likewise.
30369         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30371 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30373         * rtl.h (reg_info): Add an nregs field.
30374         (REG_NREGS): Use it.
30375         (SET_REGNO_RAW): Delete.
30376         (set_regno_raw): New function.
30377         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30378         (END_REGNO): Redefine in terms of REG_NREGS.
30379         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30380         SET_REGNO_RAW.
30381         * emit-rtl.c (set_mode_and_regno): Likewise.
30382         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30383         instead of SET_REGNO_RAW.
30385 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30387         * rtl.h (PUT_MODE_RAW): New macro.
30388         (PUT_REG_NOTE_KIND): Use it.
30389         (set_mode_and_regno): Declare.
30390         (gen_raw_REG): Change regno to "unsigned int".
30391         (gen_rtx_REG): Change "unsigned" to "unsigned int".
30392         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30393         use set_mode_and_regno to change the mode of registers.
30394         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30395         * emit-rtl.c (set_mode_and_regno): New function.
30396         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
30397         * caller-save.c (reg_save_code): Use set_mode_and_regno.
30398         * expr.c (init_expr_target): Likewise.
30399         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30400         * postreload.c (reload_cse_simplify_operands): Likewise.
30402 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30404         * caller-save.c (init_caller_save): Use word_mode and
30405         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30406         * expr.c (init_expr_target): Likewise.
30407         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30408         * postreload.c (reload_cse_regs_1): Likewise.
30410 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30412         * rtl.def (REG): Change format to "r".
30413         * rtl.h (rtunion): Remove rt_reg.
30414         (reg_info): New structure.
30415         (rtx_def): Add reg field to main union.
30416         (X0REGATTR): Delete.
30417         (REG_CHECK): New macro.
30418         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30419         * rtl.c (rtx_format): Document "r".
30420         (rtx_code_size): Handle REG specially.
30421         * gengenrtl.c (special_format): Return true for formats
30422         that include 'r'.
30423         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30424         Deal with REG_ATTRS after the field loop.
30425         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30426         * expmed.c (init_expmed): Call gen_raw_REG instead of
30427         gen_rtx_raw_REG.
30428         * expr.c (init_expr_target): Likewise.
30429         * regcprop.c (maybe_mode_change): Likewise.
30430         * varasm.c (make_decl_rtl): Likewise.
30431         * final.c (leaf_renumber_regs_insn): Return early after
30432         handling REGs.
30433         * genemit.c (gen_exp): Handle 'r' fields.
30434         * genpeep.c (match_rtx): Likewise.
30435         * gensupport.c (subst_pattern_match): Likewise.
30436         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30437         (alter_constraints, subst_dup): Likewise.
30438         * read-rtl.c (read_rtx_code): Likewise.
30439         * print-rtl.c (print_rtx): Likewise.
30440         * genrecog.c (find_operand, find_matching_operand): Likewise.
30441         (validate_pattern, match_pattern_2): Likewise.
30442         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30443         (rtx_test::regno_field): New function.
30444         (operator ==, safe_to_hoist_p, transition_parameter_type)
30445         (parameter_type_string, print_parameter_value)
30446         (print_nonbool_test, print_test): Handle new enum values.
30447         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30448         * lra-constraints.c (operands_match_p): Likewise.
30450 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30452         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30453         Change type of new_regno to unsigned int.
30454         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30455         new_regno to unsigned int.
30456         (df_ref_change_reg_with_loc): Remove old_regno parameter.
30457         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
30458         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30459         (SET_REGNO_RAW): Add space after ",".
30461 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30463         * rtl.h (REG_NREGS): New macro
30464         * alias.c (record_set): Use it.
30465         * cfgcleanup.c (mark_effect): Likewise.
30466         * combine.c (likely_spilled_retval_1): Likewise.
30467         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30468         (move_deaths, distribute_notes): Likewise.
30469         * cselib.c (cselib_record_set): Likewise.
30470         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30471         * df-scan.c (df_mark_reg): Likewise.
30472         * dse.c (look_for_hardregs): Likewise.
30473         * dwarf2out.c (reg_loc_descriptor): Likewise.
30474         (multiple_reg_loc_descriptor): Likewise.
30475         * expr.c (write_complex_part, read_complex_part): Likewise.
30476         (emit_move_complex): Likewise.
30477         * haifa-sched.c (setup_ref_regs): Likewise.
30478         * ira-lives.c (mark_hard_reg_live): Likewise.
30479         * lra.c (lra_set_insn_recog_data): Likewise.
30480         * mode-switching.c (create_pre_exit): Likewise.
30481         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30482         (reload_combine_recognize_pattern): Likewise.
30483         (reload_combine_note_use, move2add_record_mode): Likewise.
30484         (reload_cse_move2add): Likewise.
30485         * reg-stack.c (subst_stack_regs_pat): Likewise.
30486         * regcprop.c (kill_value, copy_value): Likewise.
30487         (copyprop_hardreg_forward_1): Likewise.
30488         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30489         (build_def_use): Likewise.
30490         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30491         (deps_analyze_insn): Likewise.
30492         * sched-rgn.c (check_live_1, update_live_1): Likewise.
30493         * sel-sched.c (count_occurrences_equiv): Likewise.
30494         * valtrack.c (dead_debug_insert_temp): Likewise.
30496 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30498         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30499         * dse.c (note_add_store): Likewise.
30500         * ira-lives.c (mark_hard_reg_dead): Likewise.
30501         * loop-invariant.c (mark_reg_store): Likewise.
30502         (mark_reg_death): Likewise.
30503         * postreload.c (reload_combine): Likewise.
30504         (reload_combine_note_store): Likewise.
30505         (reload_combine_note_use): Likewise.
30506         * recog.c (peep2_reg_dead_p): Likewise.
30508 2015-05-19  Alan Modra  <amodra@gmail.com>
30510         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30511         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30512         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30513         unused predicates.
30514         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30515         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
30516         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30517         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30519 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
30521         * config/mips/mips.md (JOIN_MODE): New mode iterator.
30522         (join2_load_Store<JOIN_MODE:mode>): New pattern.
30523         (join2_loadhi): Likewise.
30524         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30525         load-load and store-stores.
30526         * config/mips/mips.opt (mload-store-pairs): New option.
30527         (TARGET_LOAD_STORE_PAIRS): New macro.
30528         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30529         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30530         * config/mips/mips.c (mips_load_store_bonding_p): New function.
30532 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
30534         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30535         explicit swaps.
30536         * dojump.c (do_compare_rtx_and_jump): Likewise.
30537         * expmed.c (emit_store_flag_1): Likewise.
30538         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30539         * final.c (sprint_ul): Use std::reverse for reversing a string.
30540         * fold-const.c (extract_muldiv_1): Use std::swap.
30541         * genmodes.c (emit_mode_int_n): Likewise.
30542         * ifcvt.c (dead_or_predicable): Likewise.
30543         * ira-build.c (ira_merge_live_ranges): Likewise.
30544         (swap_allocno_copy_ends_if_necessary): Likewise.
30545         * ira.c (ira_setup_alts): Likewise.
30546         * loop-iv.c (iv_analyze_expr): Likewise.
30547         (implies_p): Likewise.
30548         (canon_condition): Likewise.
30549         * lra-constraints.c (swap_operands): Likewise.
30550         * lra-lives.c (lra_merge_live_ranges): Likewise.
30551         * omega.c (swap): Remove.
30552         (bswap): Remove.
30553         (omega_unprotect_1): Use std::swap.
30554         (omega_solve_geq): Likewise.
30555         * optabs.c (expand_binop_directly): Likewise.
30556         (expand_binop): Likewise.
30557         (emit_conditional_move): Likewise.
30558         (emit_conditional_add): Likewise.
30559         * postreload.c (reload_cse_simplify_operands): Likewise.
30560         * reg-stack.c (emit_swap_insn): Likewise.
30561         (swap_to_top): Likewise.
30562         (compare_for_stack_reg): Likewise.
30563         (subst_asm_stack_regs): Likewise.
30564         * reload.c (find_reloads): Likewise.
30565         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30566         * sel-sched.c (invoke_reorder_hooks): Likewise.
30567         (create_block_for_bookkeeping): Likewise.
30568         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30569         (lambda_matrix_right_hermite): Use std::swap.
30570         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30571         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30572         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30573         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30574         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30575         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30576         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30577         * tree-vrp.c (compare_ranges): Likewise.
30578         * var-tracking.c (add_with_sets): Likewise.
30579         (vt_find_locations): Likewise.
30581 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
30583         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30584         pie executables.
30585         (FBSD_ENDFILE_SPEC): Likewise.
30586         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30587         config/freebsd-spec.h.
30588         (ENDFILE_SPEC): Likewise.
30590 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
30591             Richard Henderson  <rth@redhat.com>
30593         PR target/57032
30594         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30595         Check for a memory location that is not a reference (using an AND)
30596         to an unaligned location here.
30597         * config/alpha/predicates.md (normal_memory_operand): Remove.
30599 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
30601         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30602         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30604 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
30606         * config/mips/mips.c (micromips_globals): New variable.
30607         (mips_set_compression_mode): Save and reinitialize target-dependent
30608         state for microMIPS.
30610 2015-05-18  Martin Liska  <mliska@suse.cz>
30612         * dbgcnt.def: Add new counter.
30613         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30615 2015-05-18  Martin Liska  <mliska@suse.cz>
30617         * dbgcnt.def: Sort counters.
30618         * opts.c (common_handle_option): Do not compile if
30619         -fdbg-cnt-list is enabled.
30621 2015-05-18  Tom de Vries  <tom@codesourcery.com>
30623         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30624         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
30625         address operator to va_list operand.
30626         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30627         unconditionally.
30628         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30629         operand.
30630         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30631         * config/s390/s390.c (s390_gimplify_va_arg): Same.
30632         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30634 2015-05-18  Tom de Vries  <tom@codesourcery.com>
30636         * tree-ssa-tail-merge.c: Fix whitespace.
30638 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
30640         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30641         cortex-a17, and cortex-a17.cortex-a7.
30643 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
30645         PR target/54236
30646         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30648 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
30650         PR target/66174
30651         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30652         QImode inner modes for TARGET_AVX512BW.  Force mask operand
30653         to a register for AVX512F modes.
30655 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30657         * toplev.c (emit_debug_global_declarations): Do not output debug info
30658         when doing slim LTO objects.
30660 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30662         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30663         odr_types_equivalent_p): Declare.
30664         (odr_type_p): Use gcc_checking_assert.
30665         (type_in_anonymous_namespace_p) Declare.
30666         (type_with_linkage_p): Declare.
30667         * common.opt (Wlto-type-mismatch): New warning.
30668         * ipa-devirt.c (compound_type_base): New function.
30669         (odr_or_derived_type_p): New function.
30670         (odr_types_equivalent_p): New function.
30671         (add_type_duplicate): Simplify.
30672         (type_with_linkage_p): Add hack to prevent false positives on C types
30673         (type_in_anonymous_namespace_p): Likewise.
30674         * tree.c (need_assembler_name_p): Use type_with_linkage.
30675         * tree.h (type_in_anonymous_namespace_p): Remove.
30676         * doc/invoke.texi (-Wlto-type-mismatch): Document
30678 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
30680         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30681         (verify_type): Verify STRING_FLAG.
30683 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30685         PR fortran/44054
30686         * tree-pretty-print.c (percent_K_format): Replace locus pointer
30687         with accessor function.
30688         * tree-diagnostic.c (diagnostic_report_current_function): Use
30689         diagnostic_location function.
30690         (maybe_unwind_expanded_macro_loc): Likewise.
30691         (virt_loc_aware_diagnostic_finalizer): Likewise.
30692         (default_tree_printer): Replace locus pointer with accessor function.
30693         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30694         (diagnostic_set_info_translated): Initialize second location.
30695         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30696         (diagnostic_show_locus): Handle two locations. Call
30697         diagnostic_print_caret_line.
30698         (diagnostic_print_caret_line): New.
30699         (default_diagnostic_starter): Use diagnostic_location function.
30700         (diagnostic_report_diagnostic): Use diagnostic_location function.
30701         (verbatim): Do not set text.locus.
30702         * diagnostic.h (struct diagnostic_info): Remove location field.
30703         (struct diagnostic_context): Make caret_chars an array of two.
30704         (diagnostic_location): New inline.
30705         (diagnostic_expand_location): Handle two locations.
30706         (diagnostic_same_line): New inline.
30707         (diagnostic_print_caret_line): Declare.
30708         (CARET_LINE_MARGIN): New constant.
30709         * pretty-print.c (pp_printf): Do not set text.locus.
30710         (pp_verbatim): Do not set text.locus.
30711         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30712         (struct text_info): Replace locus pointer with locations
30713         array. Add accessor functions.
30715 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
30716             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30718         PR target/65768
30719         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30720         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30721          large constants in register instead of splitting them.
30723 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
30725         PR target/66140
30726         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30727         replacements in memory addresses.
30728         (get_unaligned_address): Ditto.
30730 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
30732         * config/ft32/*: New files for FT32 port.
30733         * doc/install.texi: Add FT32 information.
30734         * doc/invoke.texi: Add FT32 information.
30735         * doc/md.texi: Add FT32 information.
30736         * doc/contrib.texi: Self added.
30738 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
30740         PR tree-optimization/64454
30741         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30742         (-1 - A -> ~A): Remove unnecessary condition.
30744 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
30746         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30747         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30748         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30750 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
30752         * ipa-chkp.h (chkp_wrap_function): New.
30753         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30754         (chkp_wrap_function_name): New.
30755         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30756         to get wrapper name.
30757         * lto-cgraph.c: Include ipa-chkp.h.
30758         (input_cgraph_1): Avoid alias chain for wrappers.
30760 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
30762         PR middle-end/66134
30763         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30764         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30766 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30768         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30769         (AARCH64_FL_SLOWMUL): Delete.
30770         (AARCH64_FL_CRC): Redefine to 1<<3.
30771         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30773 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30775         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30776         casting.
30778 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30780         * config/alpha/alpha.md (extendqidi2): Use general_operand
30781         instead of some_operand for operand[1] predicate.
30782         (extendhidi2): Ditto.
30783         (cbranchdi4): Use general_operand instead of some_operand
30784         for operand[1] and operands[2] predicates.
30785         (cstoredi4): Ditto.
30786         * config/alpha/predicates.md (some_operand): Remove unused predicate.
30787         (some_ni_operand): Ditto.
30789 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
30791         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30792         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
30793         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30794         low part of the constant using alpha_emit_set_const_1.
30795         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30797 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
30799         * varasm.c (output_constant_pool_1): Pass down alignment from
30800         constant pool entry's descriptor to output_constant_pool_2.
30801         (output_object_block): Add comment prior to call to
30802         output_constant_pool_1.
30804 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
30806         PR rtl-optimization/65862
30807         * target.def (ira_change_pseudo_allocno_class): New hook.
30808         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30809         value of the hook.
30810         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30811         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30812         hook.
30813         * ira-costs.c (find_costs_and_classes): Call the hook and change
30814         classes when it is necessary.
30815         * doc/tm.texi: Update.
30817 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
30819         * config/i386/i386.md (sibcall_memory): Check that register with
30820         callee address is not also used as one of the arguments, instead
30821         of checking that it is not live after the sibcall.
30822         (sibcall_pop_memory): Ditto.
30823         (sibcall_value_memory): Ditto.
30824         (sibcall_value_pop_memory): Ditto.
30826 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
30828         * generic-match-head.c (types_match): Handle non-types.
30829         * gimple-match-head.c (types_match): Likewise.
30830         * match.pd: Remove unnecessary TREE_TYPE for types_match.
30832 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
30834         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30835         (csneg3<mode>_insn): Enable expansion of pattern.
30837 2015-05-14  Nick Clifton  <nickc@redhat.com>
30839         * config/rl78/rl78.c (rl78_select_section): Select the correct
30840         default section based upon the category of the decl.
30842 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
30844         PR rtl-optimization/30967
30845         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30846         destination mode for the cost of scc patterns.
30848 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
30850         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30851         using SWIM248 mode iterator.
30852         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30853         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
30854         for operand[2] constraint.
30855         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30857 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
30859         PR middle-end/66133
30860         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30861         make sure it is never noreturn, even when the task body does not
30862         return.
30863         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30864         right before GIMPLE_OMP_RETURN.
30865         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30866         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
30867         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30869 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30871         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30872         * tree-ssa-math-opts.c: Include params.h
30873         (pow_synth_sqrt_info): New struct.
30874         (representable_as_half_series_p): New function.
30875         (get_fn_chain): Likewise.
30876         (print_nested_fn): Likewise.
30877         (dump_fractional_sqrt_sequence): Likewise.
30878         (dump_integer_part): Likewise.
30879         (expand_pow_as_sqrts): Likewise.
30880         (gimple_expand_builtin_pow): Use above to attempt to expand
30881         pow as series of square roots.  Removed now unused variables.
30883 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
30885         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30886         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30887         Remove *p0 and *p1 arguments.  Rewrite function.
30888         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30889         (alpha_split_const_mov): Update calls to alpha_extract_integer and
30890         alpha_emit_set_long_const.
30891         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30892         (alpha_output_mi_thunk_osf): Ditto.
30893         * config/alpha/alpha.md (movti): Do not check operands[1]
30894         for CONST_DOUBLE.
30896 2015-05-13  Richard Biener  <rguenther@suse.de>
30898         PR tree-optimization/66129
30899         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30900         commutative.
30901         (vect_schedule_slp_instance): Fix typo.
30903 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
30905         * common.opt (fdump-internal-locations): New option.
30906         * input.c: Include diagnostic-core.h.
30907         (get_end_location): New function.
30908         (write_digit): New function.
30909         (write_digit_row): New function.
30910         (dump_location_range): New function.
30911         (dump_labelled_location_range): New function.
30912         (dump_location_info): New function.
30913         * input.h (dump_location_info): New prototype.
30914         * toplev.c (compile_file): Handle flag_dump_locations.
30916 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
30918         * gimple-expr.h (is_gimple_constant): Reorder.
30919         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30921 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
30923         * combine.c (simplify_set): When generating a CC set, if the
30924         source already is in the correct mode, do not wrap it in a
30925         compare.  Simplify the rest of that code.
30927 2015-05-13  Richard Biener  <rguenther@suse.de>
30929         PR tree-optimization/66123
30930         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30931         a taken edge.
30933 2015-05-13  Richard Biener  <rguenther@suse.de>
30935         PR middle-end/66110
30936         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30937         specially.
30938         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30940 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
30942         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30943         * aclocal.m4: Regenerated with automake-1.11.6.
30945 2015-05-13  Tom de Vries  <tom@codesourcery.com>
30947         PR tree-optimization/66010
30948         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30949         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30950         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
30951         and rval based on do_deref.
30953 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
30955         PR target/65103
30956         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30957         link time constants into adress expressions and therefore set
30958         their cost to 0.
30960 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
30962         PR target/66112
30963         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30964         Use SWI248 iterator instead of SWI.
30965         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
30966         Use eq_attr "alternative" "0" instead of match_test in
30967         length_immediate attribute computation.
30968         (*mulvhi4, *mulvhi4_1): New define_insns.
30970         PR target/66112
30971         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30972         SIGNED to get precision of non-negative value.
30974 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
30976         PR target/66048
30977         * function.c (diddle_return_value_1): Process bounds first.
30978         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30979         register.
30981 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30983         PR rtl-optimization/64616
30984         * loop-invariant.c (can_move_invariant_reg): New.
30985         (move_invariant_reg): Call above new function to decide whether
30986         instruction can just be moved, skipping creation of temporary
30987         register.
30989 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
30991         PR target/pr66047.c
30992         * i386.c (ix86_function_sseregparm): Only return -1 if local function
30993         with implied regparm is called from -mno-sse function.
30994         (init_cumulative_args): Output error if ix86_function_sseregparm
30995         return -1 and SSE register would be needed.
30996         (function_arg_advance_32): Likewise.
30997         (function_arg_32): Likewise.
30998         * i386.h (ix86_args): Add decl field.
31000 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31002         PR ipa/65873
31003         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31004         inlines across optimization boundary.
31006 2015-05-12  Jason Merrill  <jason@redhat.com>
31008         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31009         string literal and macro name.
31011 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
31013         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31014         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31015         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31017 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31019         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31020         (-Wmisleading-indentation): New option.
31021         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31023 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
31025         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31026         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31027         (alpha_extract_integer): Ditto.
31028         (alpha_legitimate_constant_p): Ditto.
31029         (alpha_split_tmode_pair): Ditto.
31030         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31031         (alpha_expand_mov): Ditto.
31032         (print_operand): Remove handling of 'H' modifier.
31033         <case 'm'>: Remove CONST_DOUBLE handling.
31034         (summarize_insn): Handle CONST_WIDE_INT.
31035         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31036         (anddi3): Ditto.
31037         (movti): Handle CONST_WIDE_INT.
31038         * config/alpha/constraints.md ('H'): Remove constraint definition.
31039         ('G'): Do not match MODE_FLOAT class.
31040         * config/alpha/predicates.md (const0_operand): Also match
31041         const_wide_int.
31042         (non_add_const_operand): Ditto.
31043         (non_zero_const_operand): Ditto.
31044         (some_operand): Ditto.
31045         (input_operand): Ditto.  Handle CONST_WIDE_INT.
31046         (and_operand): Do not match const_double.
31047         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31049 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
31051         PR target/65697
31052         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31053         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31054         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31055         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31056         is_mm_seq_cst, is_mm_sync): New accessor functions.
31057         * builtins.c (expand_builtin_sync_operation,
31058         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31059         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31060         (get_memmodel,  expand_builtin_atomic_compare_exchange,
31061         expand_builtin_atomic_load, expand_builtin_atomic_store,
31062         expand_builtin_atomic_clear): Use new accessor routines.
31063         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31064         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31065         (maybe_emit_sync_lock_test_and_set): Use new accessors and
31066         MEMMODEL_SYNC_ACQUIRE.
31067         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31068         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31069         expand_atomic_store): Use new accessors.
31070         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31071         * tsan.c (instrument_builtin_call): Update check for memory model beyond
31072         final enum to use MEMMODEL_LAST.
31073         * c-family/c-common.c: Use new accessor for memmodel_base.
31074         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31075         accessors.
31076         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31077         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31078         mem_thread_fence, *dmb): Likewise.
31079         * config/alpha/alpha.c (alpha_split_compare_and_swap,
31080         alpha_split_compare_and_swap_12): Likewise.
31081         * config/arm/arm.c (arm_expand_compare_and_swap,
31082         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31083         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31084         atomic_loaddi): Likewise.
31085         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31086         Likewise.
31087         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31088         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31089         use new accessors.
31090         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31091         atomic_store<mode>, atomic_compare_and_swap<mode>,
31092         atomic_exchange<mode>): Use new accessors.
31093         * config/mips/mips.c (mips_process_sync_loop): Likewise.
31094         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31095         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31096         rs6000_post_atomic_barrier): Add new cases.
31097         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31098         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31099         (atomic_load<mode>): Add new cases and use new accessors.
31100         (store_quadpti): Add new cases.
31101         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31102         accessors.
31103         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31104         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31105         model, not 8.
31107 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31109         * ipa-devirt.c (type_with_linkage_p): New function.
31110         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31111         type has linkage.
31112         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31113         (can_be_name_hashed_p): Simplify.
31114         (hash_odr_name): Check that type has linkage before checking if it is
31115         anonymous.
31116         (types_same_for_odr): Likewise.
31117         (odr_name_hasher::equal): Likewise.
31118         (odr_subtypes_equivalent_p): Likewise.
31119         (warn_types_mismatch): Likewise.
31120         (get_odr_type): Likewise.
31121         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31122         * ipa-utils.h (odr_type_p): Move offline.
31123         * tree.c (need_assembler_name_p): Fix handling of types
31124         without linkages.
31125         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31127 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31129         * timevar.c (timevar_enable): Delete in favor of...
31130         (g_timer): New global.
31131         (struct timevar_def): Move to timevar.h inside class timer.
31132         (struct timevar_stack_def): Likewise.
31133         (timevars): Delete global in favor of field "m_timevars" within
31134         class timer in timevar.h
31135         (stack): Likewise, in favor of field "m_stack".
31136         (unused_stack_instances): Likewise, in favor of field
31137         "m_unused_stack_instances".
31138         (start_time): Likewise, in favor of field "m_start_time".
31139         (get_time): Eliminate check for timevar_enable.
31140         (timer::timer): New function, built from part of timevar_init.
31141         (timevar_init): Rewrite idempotency test from using
31142         "timevar_enable" bool to using dynamic allocation of "g_timer".
31143         Move rest of implementation into timer's constructor.
31144         (timevar_push_1): Rename to...
31145         (timer::push): ...this, adding "m_" prefixes to variables that
31146         are now fields of timer.
31147         (timevar_pop_1): Likewise, rename to...
31148         (timer::pop): ...this, and add "m_" prefixes.
31149         (timevar_start): Replace test for "timevar_enable" with one for
31150         "g_timer", and move bulk of implementation to...
31151         (timer::start): ...here, adding "m_" prefixes.
31152         (timevar_stop): Likewise, from here...
31153         (timer::stop): ...to here.
31154         (timevar_cond_start): Likewise, from here...
31155         (timer::cond_start): ...to here.
31156         (timevar_cond_stop): Likewise, from here...
31157         (timer::cond_stop): ...to here.
31158         (validate_phases): Rename to...
31159         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
31160         locals "total" and "tv" const.
31161         (timevar_print): Rename to...
31162         (timer::print): ...this, and add "m_" prefixes.  Make locals
31163         "total" and "tv" const.  Eliminate test for timevar_enable.
31164         * timevar.h (timevar_enable): Eliminate.
31165         (g_timer): New declaration.
31166         (timevar_push_1): Eliminate.
31167         (timevar_pop_1): Eliminate.
31168         (timevar_print): Eliminate.
31169         (class timer): New class.
31170         (timevar_push): Rewrite to use g_timer.
31171         (timevar_pop): Likewise.
31172         * toplev.c (toplev::~toplev): Likewise.
31174 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
31176         * arm-protos.h (arm_sched_autopref): Delete.
31177         (tune_params): Re-organize, use enums for flag values.
31178         (FUSE_OPS): New macro.
31179         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31180         (ARM_PREFETCH_BENEFICIAL): Likewise.
31181         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31182         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31183         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31184         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31185         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31186         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
31187         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31188         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31189         format.
31190         (arm_option_override, thumb2_reorg, arm_print_tune_info)
31191         (aarch_macro_fusion_pair_p): Update uses of current_tune.
31192         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31194 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
31196         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31197         "break".
31199 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
31200             Sandra Loosemore <sandra@codesourcery.com>
31202         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31203         value.
31204         (REG_CLASS_NAMES): Add "IJMP_REGS".
31205         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31206         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31207         use new "c" register constraint.
31208         * config/nios2/constraint.md (c): New register constraint
31209         corresponding to IJMP_REGS.
31211 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31213         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31214         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31215         define_splits): Delete, revamp, transmogrify into ...
31216         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31217         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31218         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31219         New.
31221 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31223         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31224         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31226 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31228         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31229         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31230         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31231         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31232         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31233         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31234         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31235         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31236         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31237         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31238         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31239         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31240         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31241         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31242         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31243         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31244         and 30 corresponding splitters): Delete.
31246 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31248         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31249         zero_extract.
31251 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31253         * combine.c (recog_for_combine_1): New function, factored out
31254         from recog_for_combine.
31255         (change_zero_ext): New function.
31256         (recog_for_combine): If recog fails, try again with the pattern
31257         modified by change_zero_ext; if that still fails, restore the
31258         pattern.
31260 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31262         * combine.c (get_undo_marker): New function.
31263         (undo_to_marker): New function, largely factored out from ...
31264         (undo_all): ... this.  Adjust.
31266 2015-05-12  Richard Biener  <rguenther@suse.de>
31268         PR tree-optimization/66101
31269         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31270         fixup if we turn a loop exit edge to a fallthru edge.
31272 2015-05-12  Richard Biener  <rguenther@suse.de>
31274         PR tree-optimization/37021
31275         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31276         (SLP_TREE_TWO_OPERATORS): New define.
31277         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31278         SLP_TREE_TWO_OPERATORS.
31279         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31280         SLP node.
31281         (vect_build_slp_tree): Adjust.
31282         (vect_analyze_slp_cost_1): Likewise.
31283         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31284         emitting two vector stmts and mixing the results.
31286 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31288         * call.c (print_z_candidates): Remove dead code.
31290 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31292         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31293         and zEC12_simple_fp.
31294         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31295         to 1.
31297 2015-05-12  Tom de Vries  <tom@codesourcery.com>
31299         PR tree-optimization/66010
31300         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31301         ifn_va_arg.
31302         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31303         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
31304         va_lists are passed, and remove corresponding handling.
31305         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
31306         do_deref argument to ifn_va_arg.
31307         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31308         ifn_va_arg.
31310 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31312         PR target/65955
31313         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31314         REG before taking its REGNO.
31316 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31318         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31319         rsp->sign_bit_copies and rsp->nonzero_bits into ...
31320         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
31321         present to get more accurate information about the number of sign bit
31322         copies and non zero bits.
31324 2015-05-12  Richard Biener  <rguenther@suse.de>
31326         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31327         do not allow unrolling.
31329 2015-05-11  Richard Henderson  <rth@redhat.com>
31331         * config/i386/i386-modes.def (CCP): New.
31332         * config/i386/i386.c (put_condition_code): Handle it.
31333         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31335 2015-05-11  Richard Henderson  <rth@redhat.com>
31337         * target.def (md_asm_clobbers): Replace with...
31338         (md_asm_adjust): this.
31339         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31340         (TARGET_MD_ASM_ADJUST): New.
31341         * tm.texi: Rebuild.
31342         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31343         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31344         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31346         * cfgexpand.c (check_operand_nalternatives): Accept vector of
31347         constraints instead of lists of outputs and inputs.
31348         (expand_asm_stmt): Save and restore input_location around the
31349         body of the function.  Move asm data into vectors instead of
31350         building tree lists.  Generate cleanup sequences as needed,
31351         rather than waiting til the end.  Use new md_asm_adjust hook.
31353         * config/vxworks.c: Include vec.h before target.h.
31354         * gimple.c: Likewise.
31355         * incpath.c: Likewise.
31356         * mode-switching.c: Likewise.
31358         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31359         (cris_md_asm_adjust): this.
31360         (TARGET_MD_ASM_CLOBBERS): Remove.
31361         (TARGET_MD_ASM_ADJUST): New.
31362         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31363         (ix86_md_asm_adjust): this.
31364         (TARGET_MD_ASM_CLOBBERS): Remove.
31365         (TARGET_MD_ASM_ADJUST): New.
31366         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31367         (mn10300_md_asm_adjust): this.
31368         (TARGET_MD_ASM_CLOBBERS): Remove.
31369         (TARGET_MD_ASM_ADJUST): New.
31370         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31371         (rs6000_md_asm_adjust): this.
31372         (TARGET_MD_ASM_CLOBBERS): Remove.
31373         (TARGET_MD_ASM_ADJUST): New.
31374         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31375         (visium_md_asm_adjust): this.
31376         (TARGET_MD_ASM_CLOBBERS): Remove.
31377         (TARGET_MD_ASM_ADJUST): New.
31379 2015-05-11  Richard Henderson  <rth@redhat.com>
31381         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31382         if noutputs is zero.
31383         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31385         * cfgexpand.c (expand_asm_operands): Merge into...
31386         (expand_asm_stmt): ... here.
31388         * cfgexpand.c (expand_asm_operands): Don't call
31389         resolve_asm_operand_names.
31390         * stmt.c (resolve_asm_operand_names): Clarify block comment.
31392 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
31394         * dwarf2out.c (gen_member_die): Sanity check that we access
31395         TYPE_MAIN_VARIANT for TYPE_METHODS.
31396         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31397         checking TYPE_METHODS.
31398         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31399         if non-null.
31400         (build_distinct_type_copy): Clear TYPE_METHODS.
31401         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31402         (verify_type): Allow TYPE_METHODS to be error_mark_node.
31403         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31405 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
31407         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31408         (emit_pattern_before_setloc): Likewise.
31410 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
31412         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31413         for define_peephole2s.
31414         (get_peephole2_pattern): New function.
31415         (main): Use it.  Call validate_pattern.
31417 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
31419         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31420         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31421         (Last callee saved reg is different for AVR_TINY architecture)
31423 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
31425         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31426         when looking for memory references.
31428 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
31430         PR target/65753
31431         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31432         via function pointers.
31434 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
31436         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31437         indirect call by forcing address into a pseudo with -fno-plt.
31438         * common.opt (flag_plt): New option.
31439         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31440         ([-fno-plt]): Document.
31442 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
31444         PR bootstrap/66105
31445         * config/rs6000/option-defaults.h: Add space between string literal
31446         and macro name.
31448 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31450         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31451         accross ARM targets.
31453 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31455         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31456         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31458 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
31460         PR rtl-optimization/66076
31461         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31462         Don't grow the heap array if it is already big enough from a
31463         previous iteration.
31465 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31467         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31468         (is_called_in_ARM_mode): Remove.
31469         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31470         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31471         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31472          arm_declare_function_name.
31474 2015-05-11  Christian Bruel  <christian.bruel@st.com>
31476         * config/arm/arm.c (arm_option_override): Reoganized and split into :
31477         (arm_option_params_internal); New function.
31478         (arm_option_check_internal): New function.
31479         (arm_option_override_internal): New function.
31480         (thumb_code, thumb1_code): Remove.
31481         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31482         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31483         (thumb_code, thumb1_code): Remove.
31484         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31486 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
31488         * config/alpha/alpha.c (alpha_emit_set_const_1)
31489         (alpha_emit_set_long_const, alpha_extract_integer)
31490         (alpha_legitimate_constant_p, alpha_split_const_mov)
31491         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31492         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31493         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31494         HOST_WIDE_INT_1U.
31495         * config/alpha/predicates.md (mode_mask_operand): Do not match
31496         const_double RTX.
31497         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31498         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31499         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31500         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31501         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31503 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
31505         PR target/65780
31506         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31507         default_binds_local_p_2.
31508         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31509         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31511 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31513         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31515 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31517         Patch by Richard Biener
31518         * coverage.c (coverage_obj_init): Delay building of type variant
31519         until the type is finished.
31521 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31523         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31524         mismatch between C and C++ type; compoare correctly ARG_TYPES
31525         for non-prototypes and output correctly parameter index for METHOD_TYPE.
31526         (odr_types_equivalent_p): Fix wording of warning about attributes;
31527         it is OK to match prototype and non-prototype.
31529 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31531         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31532         TYPE_ARG_TYPES list.
31533         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31534         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31536 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
31538         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31539         * tree.h (is_lang_specific): Constify.
31541 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
31543         PR tree-optimization/64454
31544         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31545         Rewrite.
31547 2015-05-08  Jason Merrill  <jason@redhat.com>
31549         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31550         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31551         config/darwin.h, config/darwin9.h, config/elfos.h,
31552         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31553         config/microblaze/microblaze.h, config/mips/mips.h,
31554         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31555         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31556         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31557         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31558         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31559         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31560         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31561         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31562         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31563         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31564         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31565         between string literal and macro name.
31567 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31569         * jump.c: Change argument types to rtx_insn *.
31570         * rtl.h: Adjust.
31572 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31574         * lra-constraints.c: Change argument type to rtx_insn *.
31576 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31578         * df-problems.c: Change argument type to rtx_insn *.
31580 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31582         * combine.c: Change argument type to rtx_insn *.
31584 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31586         * rtl.h: Adjust.
31587         * rtlanal.c: Change argument type to rtx_insn *.
31589 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31591         * sched-deps.c: Change argument types to rtx_insn *.
31592         * sched-int.h: Adjust.
31594 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31596         * dwarf2cfi.c: Change argument type to rtx_insn *.
31598 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31600         * ira.c (decrease_live_ranges_number): Changetype of local
31601         variable to rtx_insn *.
31602         * recog.c: Change argument types to rtx_insn *.
31603         * recog.h: Adjust.
31605 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31607         * reorg.c: Change argument types to rtx_insn *.
31609 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31611         * ira-color.c: Change argument types to rtx_insn *.
31612         * lra-eliminations.c: Likewise.
31613         * ira.h: Adjust.
31615 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31617         * gcse.c: Change argument types to rtx_insn *.
31619 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31621         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31623 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31625         * emit-rtl.c (emit_debug_insn_before): Change argument type to
31626         rtx_insn *.
31627         * rtl.h: Adjust.
31629 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31631         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31632         * rtl.h: Adjust.
31634 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31636         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31637         * rtl.h: Adjust.
31639 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31641         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31642         * rtl.h: Adjust.
31644 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31646         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31647         * rtl.h: Adjust.
31649 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31651         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31652         to rtx_insn *.
31653         * rtl.h: Adjust.
31655 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31657         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31658         to rtx_insn *.
31659         * rtl.h: Likewise.
31661 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31663         * except.c (can_nonlocal_goto): Change type of argument to
31664         rtx_insn *.
31665         * rtl.h: Adjust.
31667 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31669         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31670         * rtl.h: Adjust.
31672 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31674         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31675         * cfgrtl.c (can_delete_label_p): Adjust.
31676         * rtl.h: likewise.
31678 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31680         * reorg.c (stop_search_p): Change argument to rtx_insn *.
31682 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31684         * except.c (make_reg_eh_region_note): Change argument to
31685         rtx_insn *.
31686         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31687         * except.h: Adjust.
31689 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
31691         * mode-switching.c (commit_mode_sets): Change type of local
31692         variable from rtx to rtx_insn *.
31694 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
31696         * doc/install.texi (--enable-languages): Add missing jit and lto info.
31697         Add ^ to grep command.
31698         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31699         arg to last gimple_simplify declaration.  Add missing gimple_build
31700         declaration for built-in function case with four tree args.
31702 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31703             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31705         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31706         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31707         (GNU_USER_DYNAMIC_LINKERN32): Update.
31709 2015-05-08  Richard Biener  <rguenther@suse.de>
31711         PR tree-optimization/66036
31712         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31713         Handle strided group loads.
31714         (vect_verify_datarefs_alignment): Likewise.
31715         (vect_enhance_data_refs_alignment): Likewise.
31716         (vect_analyze_group_access): Likewise.
31717         (vect_analyze_data_ref_access): Likewise.
31718         (vect_analyze_data_ref_accesses): Likewise.
31719         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31720         (vectorizable_load): Likewise.
31722 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
31724         * config/rs6000/rs6000.md: Require operand inequality in one
31725         of the peepholes.
31727 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
31728             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
31730         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31731         from (set ...).
31732         * config/rx/rx.md (movdi, movdf): Likewise.
31733         Likewise for define_peephole2s.
31735 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31737         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31738         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31739         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31740         vtst_u64): Rewrite using gcc vector extensions.
31742 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31744         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31745         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31747 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
31749         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31751 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31753         * config/glibc-stdint.h (OPTION_MUSL): Define.
31754         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31755         Change the definition based on OPTION_MUSL for 64 bit targets.
31756         * config/linux.h (OPTION_MUSL): Redefine.
31757         * config/alpha/linux.h (OPTION_MUSL): Redefine.
31758         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31759         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31761 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
31762             Szabolcs Nagy  <szabolcs.nagy@arm.com>
31764         * config.gcc (LIBC_MUSL): New tm_defines macro.
31765         * config/linux.h (OPTION_MUSL): Define.
31766         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31767         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31768         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31769         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31770         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31771         * config/linux.opt (mmusl): New option.
31772         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31773         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31774         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31775         * configure: Regenerate.
31777 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
31778             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31780         PR target/48904
31781         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31782         * config/i386/knetbsd-gnu64.h: New file.
31784 2015-05-08  Marek Polacek  <polacek@redhat.com>
31786         PR c/64918
31787         * doc/invoke.texi: Document -Woverride-init-side-effects.
31789 2015-05-07  Marek Polacek  <polacek@redhat.com>
31791         PR c/65179
31792         * doc/invoke.texi: Document -Wshift-negative-value.
31794 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
31796         * gcov-tool.c (do_merge): Refactore to remove int ret.
31797         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31798         !type == FUNC to type != FUNC.
31799         * reload.h (struct target_reload): Changee to type of
31800         x_spill_indirect_levels from bool to unsigned char.
31802 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
31804         * rtl.h (always_void_p): New function.
31805         * gengenrtl.c (always_void_p): Likewise.
31806         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31807         with code foo are always VOIDmode.
31808         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31809         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31810         compare-elim.c, config/aarch64/aarch64.c,
31811         config/aarch64/aarch64.md, config/alpha/alpha.c,
31812         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31813         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31814         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31815         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31816         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31817         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31818         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31819         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31820         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31821         config/ia64/vect.md, config/iq2000/iq2000.c,
31822         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31823         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31824         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31825         config/mep/mep.c, config/microblaze/microblaze.c,
31826         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31827         config/mn10300/mn10300.c, config/msp430/msp430.c,
31828         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31829         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31830         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31831         config/rs6000/altivec.md, config/rs6000/rs6000.c,
31832         config/rs6000/rs6000.md, config/rs6000/vector.md,
31833         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31834         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31835         config/sh/sh.md, config/sh/sh_treg_combine.cc,
31836         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31837         config/spu/spu.md, config/stormy16/stormy16.c,
31838         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31839         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31840         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31841         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31842         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31843         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31844         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31845         var-tracking.c: Update calls accordingly.
31847 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
31849         PR middle-end/192
31850         PR middle-end/54303
31851         * varasm.c (function_mergeable_rodata_prefix): New function.
31852         (mergeable_string_section): Use it.
31853         (mergeable_constant_section): Use it.
31855 2015-05-07  Jeff Law  <law@redhat.com>
31857         PR target/39726
31858         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31859         simplifier to narrow arithmetic.
31860         * generic-match-head.c: (types_match, single_use): New functions.
31861         * gimple-match-head.c: (types_match, single_use): New functions.
31863 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
31865         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31866         rtx type.
31868 2015-05-07  Richard Biener  <rguenther@suse.de>
31870         PR tree-optimization/66002
31871         * passes.def: Schedule another pass_merge_phi after ifcombine, right
31872         before phiopt.
31874 2015-05-07  Marek Polacek  <polacek@redhat.com>
31875             Martin Uecker  <uecker@eecs.berkeley.edu>
31877         * doc/invoke.texi: Document -fsanitize=bounds-strict.
31878         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31879         into SANITIZE_NONDEFAULT.
31880         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31882 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
31884         PR target/66015
31885         * config/alpha/alpha.c (alpha_override_options_after_change): New.
31886         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31887         (alpha_override_options): Move align_loops, align_jumps and
31888         align_functions handling into alpha_override_options_after_change.
31890 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
31891             Chris Jones  <chrisj@nvidia.com>
31892             Joshua Conner  <jconner@nvidia.com>
31894         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31895         linking of crtfastmath.o.
31896         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31898 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
31900         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31901         (cstore<mode>4_unsigned_imm): New expander.
31902         (cstore<mode>4): Remove empty constraint strings.  Use the new
31903         expanders.
31905 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
31907         PR target/64208
31908         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31909         alternatives.
31911 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31913         * config/aarch64/geniterators.sh: Use standard BRE in sed.
31915 2015-05-06  Alan Modra  <amodra@gmail.com>
31917         PR target/66033
31918         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31919         (UNSPEC_NOP): Define.
31920         (reload_vsx_from_gpr<mode>): Add missing DONE.
31921         (reload_gpr_from_vsx<mode>): Likewise.
31922         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31923         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31925 2015-05-06  Christian Bruel  <christian.bruel@st.com>
31927         PR target/66015
31928         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31929         align_jumps, align_functions into aarch64_override_options_after_change.
31931 2015-05-06  Richard Biener  <rguenther@suse.de>
31933         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31934         vect_transform_slp_perm_load to check if we support a permutation
31935         for basic-block vectorization.
31937 2015-05-06  Nick Clifton  <nickc@redhat.com>
31939         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31940         used, even if it is not being used as a frame pointer.
31942 2015-05-05  Jason Merrill  <jason@redhat.com>
31944         * dwarf2out.c (gen_member_die): Don't emit anything for an
31945         anonymous class constructor.
31947 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
31949         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31950         that it reflects the block structure.
31951         (afdo_propagate_edge): Likewise.
31952         (afdo_calculate_branch_prob): Likewise.
31953         (afdo_annotate_cfg): Likewise.
31954         * cfgcleanup.c (equal_different_set_p): Likewise.
31955         (try_crossjump_to_edge): Likewise.
31956         * cgraph.c (cgraph_node::verify_node): Likewise.
31957         * cgraphunit.c (expand_all_functions): Likewise.
31958         * config/i386/i386.c (ix86_expand_copysign): Likewise.
31959         (exact_dependency_1): Likewise.
31960         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31961         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31962         * gensupport.c (process_define_subst): Likewise.
31963         * lto-wrapper.c (merge_and_complain): Likewise.
31964         * tree-if-conv.c (if_convertible_bb_p): Likewise.
31965         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31966         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31967         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31968         * tree-vect-loop.c (vectorizable_reduction): Likewise.
31969         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31970         * tree-vect-stmts.c (vectorizable_shift): Likewise.
31971         * tree-vrp.c (vrp_finalize): Likewise.
31972         * tree.c (variably_modified_type_p): Likewise.
31974 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
31976         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31977         on darwin12 and later.
31978         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31979         file to pass -rdynamic on darwin12 and later.
31980         * config/darwin.opt (rdynamic): Add.
31982 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31984         * doc/extend.texi (C Extensions): Update menu for moved Variable
31985         Attributes and Type Attributes sections.
31987 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
31989         PR target/65990
31990         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31991         if rep_8byte stringop strategy was specified for 32-bit target.
31993 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
31995         PR target/65915
31996         * config/i386/i386.md (vector convert to float spltiter): Check for
31997         xmm16+, when splitting scalar float conversion.
31998         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32000 2015-05-05  Nick Clifton  <nickc@redhat.com>
32002         * config/msp430/msp430-opts.h (enum msp430_regions): New.
32003         * config/msp430/msp430.c (msp430_override_options): Complain if
32004         -mcode-region or -mdata-region is used on a non MSP430X.
32005         (msp430_section_attr): New function.  Checks lower, upper and
32006         either attributes.
32007         (msp430_attribute_table): Add lower, upper and either.
32008         (gen_prefix): New function.  Generates a prefix for a section
32009         name.
32010         (msp430_select_section): New function - handles the choice of
32011         section for an object.  Takes into account memory region
32012         attributes and options.
32013         (msp430_function_section): Use gen_prefix.
32014         (TARGET_SECTION_TYPE_FLAGS): Define.
32015         (msp430_section_type_flags): New function.
32016         (TARGET_ASM_UNIQUE_SECTION): Define.
32017         (msp430_unique_section): New function.
32018         (msp430_output_aligned_decl_common): New function.
32019         (msp430_do_not_relax_short_jumps): New function.
32020         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32021         Define.
32022         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32023         * config/msp430/msp430-protos.h
32024         (msp430_do_not_relax_short_jumps): New prototype.
32025         (msp430_output_aligned_decl_common): New prototype.
32026         * config/msp430/msp430.md (length): New attribute.
32027         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32028         then use a long code sequence for short jumps.
32029         * config/msp430/msp430.opt (mcode-region): New.
32030         (mdata-region): New.
32031         * doc/invoke.texi: Document new options.
32032         * doc/extend.texi: Document new attributes.
32034 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32036         * config/aarch64-protos.h (struct cpu_branch_cost): New.
32037         (tune_params): Add field branch_costs.
32038         (aarch64_branch_cost): Declare.
32039         * config/aarch64.c (generic_branch_cost): New.
32040         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32041         (cortexa53_tunings): Likewise.
32042         (cortexa57_tunings): Likewise.
32043         (thunderx_tunings): Likewise.
32044         (xgene1_tunings): Likewise.
32045         (aarch64_branch_cost): Define.
32046         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32048 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32050         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32051         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32052         * config/i386/i386.md: Ditto.
32053         * config/i386/winnt.c: Ditto.
32055 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32057         * doc/extend.texi (__atomic Builtins): Move implementation details
32058         to the end of the description, rewrite opening paragraphs, state
32059         difference with __sync builtins, state C11/C++11 assumptions,
32060         weaken itemized descriptions, add explanation of memory model
32061         behaviour, expand description of compare-exchange, simplify text.
32063 2015-05-05  Renlin Li  <renlin.li@arm.com>
32065         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32067 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
32069         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32070         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32071         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32072         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32073         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32074         * configure: Regenerate.
32075         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32076         * doc/install.texi (aarch64*-*-*): Document new
32077         --enable-fix-cortex-a53-843419 option.
32078         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32079         and -mno-fix-cortex-a53-843419 options.
32081 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32083         PR target/65871
32084         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32086 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
32088         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32089         fix overactive TYPE_MIN_VALUE check and add FIXME for type
32090         compatibility problems.
32092 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32094         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32095         constraints.
32096         (cbranchsi4_reg): New.
32097         * config/microblaze/microblaze.c
32098         (microblaze_expand_conditional_branch_reg): New.
32099         * config/microblaze/microblaze-protos.h
32100         (microblaze_expand_conditional_branch_reg): New prototype.
32102 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32104         * config/microblaze/microblaze.md (peephole2): New.
32106 2015-05-04  Jeff Law  <law@redhat.com>
32108         Revert:
32109         2015-05-04  Jeff Law  <law@redhat.com>
32111         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32112         simplifier to narrow arithmetic.
32113         * generic-match-head.c: (types_match, single_use): New functions.
32114         * gimple-match-head.c: (types_match, single_use): New functions.
32116 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
32118         PR target/65987
32119         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32120         (split_branches): Likewise.
32122 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
32124         * common.opt (fdelete-null-pointer-checks): Init to -1.
32125         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32126         override flag_delete_null_pointer_checks default.
32127         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32128         behavior re address zero.  Better document target-specific behavior.
32129         (-fisolate-errneous-paths-dereference): Mention relationship to
32130         -fdelete-null-pointer-checks.
32132 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32134         PR tree-optimization/65984
32135         * ubsan.c: Include tree-cfg.h.
32136         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32137         stmt_could_throw_p test, rename can_throw variable to ends_bb.
32139 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32141         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32142         to CONST_DOUBLE_P predicate.
32143         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32144         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32145         allow only operands that satisfy standard_sse_constant_p predicate.
32146         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32147         to CONST_DOUBLE_P predicate.
32149 2015-05-04  Jeff Law  <law@redhat.com>
32151         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32152         simplifier to narrow arithmetic.
32153         * generic-match-head.c: (types_match, single_use): New functions.
32154         * gimple-match-head.c: (types_match, single_use): New functions.
32156 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
32158         * config/arm/arm.c: Restore bootstrap.
32160 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32162         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32163         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32164         as CONST_WIDE_INT, not CONST_DOUBLE.
32165         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32166         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32167         (ix86_find_base_term): Do not check for CONST_DOUBLE.
32168         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32169         (ix86_build_signbit_mask): Rewrite using wide ints.
32170         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32171         (ix86_rtx_costs): Handle CONST_WIDE_INT.
32172         (find_constant): Ditto.
32173         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32174         using gen_int_mode.
32175         * config/i386/predicates.md (x86_64_immediate_operand)
32176         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32177         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32178         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32179         (const0_operand): Also match const_wide_int.
32180         (constm1_operand): Ditto.
32181         (const1_operand): Ditto.
32183 2015-05-04  Richard Biener  <rguenther@suse.de>
32185         PR tree-optimization/65965
32186         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32187         store groups at gaps.
32189 2015-05-04  Richard Biener  <rguenther@suse.de>
32191         PR tree-optimization/65935
32192         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32193         then make sure to apply that swapping to the IL.
32195 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32197         * Makefile.in (PATCHLEVEL_c): New variable.
32198         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32199         expand the same way as if DEVPHASE_c was non-empty.
32201 2015-05-04  Kai Tietz  <ktietz@redhat.com>
32203         PR target/65559
32204         * lto-wrapper.c (run_gcc): Open filename
32205         in binary-mode.
32207 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
32209         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
32210         sections up in file, to immediately after the Function Attributes
32211         section.
32213 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
32215         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32217 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32219         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32220         (insert_partition_copy_on_edge): Adjust.
32221         (insert_rtx_to_part_on_edge): Likewise.
32222         (insert_part_to_rtx_on_edge): Likewise.
32224 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32226         * function.c (set_return_jump_label): Change type of argument to
32227         rtx_insn *.
32228         * function.h (set_return_jump_label): Adjust.
32230 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32232         * reload.h (struct reg_equivs_t): Change type of init to
32233         rtx_insn *.
32234         * ira.c (fix_reg_equiv_init): Adjust.
32235         * reload1.c (eliminate_regs_1): Likewise.
32236         (init_eliminable_invariants): Likewise.
32238 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32240         * cselib.c (fp_setter_insn): Take a rtx_insn *.
32241         * cselib.h (fp_setter_insn): Adjust.
32243 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32245         * recog.c (struct validate_replace_src_data): Change type of
32246         insn field to rtx_insn *.
32247         (validate_replace_src_group): Change type of argument to rtx_insn *.
32248         * recog.h (validate_replace_src_group): Adjust.
32250 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32252         * haifa-sched.c: Change the type of some variables to rtx_insn *.
32253         * sched-deps.c: Likewise.
32254         * sched-int.h: Likewise.
32255         * sched-rgn.c: Likewise.
32256         * sel-sched.c: Likewise.
32258 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32260         to rtx_insn *.
32261         * config/i386/i386.c: Change the type of some arguments to
32262         rtx_insn *.
32263         * config/arm/arm.c: Likewise.
32265 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32267         * lra-constraints.c: Change type of some arguments to rtx_insn *.
32269 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32271         * regcprop.c (kill_autoinc_value): Change type of argument to
32272         rtx_insn *.
32274 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32276         * genrecog.c (print_subroutine): Adjust.
32277         * recog.c (get_bool_attr_mask_uncached): Likewise.
32278         * recog.h (struct recog_data_d): Change the type of insn to
32279         rtx_insn *.
32281 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32283         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32285 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32287         * df-problems.c (df_set_note): Change type of argument to
32288         rtx_insn *.
32290 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32292         * builtins.c (expand_builtin_trap): Change type of local
32293         variable to rtx_insn *.
32294         (add_sched_insns_for_speculation): Likewise.
32295         (ix86_emit_save_regs): Likewise.
32296         (get_scratch_register_on_entry): Likewise.
32297         (ix86_emit_restore_reg_using_pop): Likewise.
32298         (ix86_emit_leave): Likewise.
32299         (ix86_emit_restore_regs_using_mov): Likewise.
32300         (ix86_expand_epilogue): Likewise.
32301         Likewise.
32302         (rl78_alloc_physical_registers_umul): Likewise.
32303         * cselib.c (discard_useless_locs): Likewise.
32304         (cselib_invalidate_regno): Likewise.
32305         (cselib_invalidate_mem): Likewise.
32306         * function.c (expand_function_start): Likewise.
32307         (emit_use_return_register_into_block): Likewise.
32308         * gcse.c: Likewise.
32309         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32310         * ifcvt.c (noce_get_alt_condition): Likewise.
32311         * loop-doloop.c (doloop_condition_get): Likewise.
32312         * lra-constraints.c (inherit_in_ebb): Likewise.
32313         * modulo-sched.c (sms_schedule_by_order): Likewise.
32314         * recog.c (next_insn_tests_no_inequality): Likewise.
32315         * reorg.c (emit_delay_sequence): Likewise.
32316         (update_reg_dead_notes): Likewise.
32317         (fix_reg_dead_note): Likewise.
32318         (fill_slots_from_thread): Likewise.
32319         (delete_computation): Likewise.
32321 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
32323         * doc/extend.texi (Variable Attributes): Add menu and proper
32324         @nodes to subsections.  Move Microsoft Windows attributes to
32325         their own subsection.
32326         (Type Attributes): Reorganize introduction to remove duplicate
32327         list of attributes.  Add menu and proper @nodes to subsections.
32328         Alphabetize the main table of common attributes.
32330 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32332         * match.pd: New simplification patterns.
32333         (x + (x & 1))  -> ((x + 1) & ~1)
32334         (x & ~(x & y)) -> ((x & ~y))
32335         (x | ~(x | y)) -> ((x | ~y))
32337 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32339         * target.def (attribute_table): Mention that struct attribute_spec
32340         is defined in tree-core.h rather than tree.h
32341         * doc/tm.texi: Regenerate.
32343 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
32345         * genrecog.c (test): Rename to rtx_test.  Update rest of file
32346         accordingly.
32348 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32350         PR translation/65959
32351         * params.h (DEFPARAM): Rename msgid to nocmsgid.
32353 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32355         * config/aarch64/aarch64-protos.h (tune_params):
32356         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32357         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32358         Return value depending on target.
32359         (generic_tunings): Initialize new target settings.
32360         (cortexa53_tunings): Likewise.
32361         (cortexa57_tunings): Likewise.
32362         (thunderx_tunings): Likewise.
32363         (xgene1_tunings): Likewise.
32365 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32367         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32368         Make Cortex-A53 shift costs more accurate.
32370 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32372         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32373         UNSIGNED_FLOAT.
32375 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
32377         * config/aarch64/aarch64.c (aarch64_rtx_costs):
32378         Calculate cost of op0 and op1 in PLUS and MINUS cases.
32380 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32382         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32383         Add cost of op0 in the compare-with-fpzero case.
32385 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
32387         * builtins.c (fold_builtin_1): Remove spurious second
32388         semicolon.
32389         * cgraph.h (symtab_node::get_availability): Likewise.
32390         * opts.c (common_handle_option): Remove spurious second semicolon.
32391         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32392         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32394 2015-04-30  Caroline Tice  <cmtice@google.com>
32396         PR gcov-profile/65929
32397         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32398         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32399         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32400         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32401         * doc/tm.texi: Regenerate.
32402         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
32403         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32404         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
32405         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32407 2015-04-30  Marek Polacek  <polacek@redhat.com>
32409         * varasm.c (handle_cache_entry): Fix logic.
32411 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32413         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32414         (*extrsi5_insn_uxtw_alt): Likewise.
32415         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32416         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32417         operations.
32419 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32421         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32422         fabd in ABS case.
32424 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32426         * config/aarch64/aarch64.md
32427         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32428         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32429         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32430         appropriately.  Handle alternative EON form.
32432 2015-04-30  Renlin Li  <renlin.li@arm.com>
32434         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32435         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32437 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
32439         PR ipa/65873
32440         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32441         -fstrict-aliasing boundaries.
32443 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32445         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32446         and [SU]MNEGL patterns.
32448 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32450         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32451         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32452         combined arithmetic-shift ops.  Properly handle all shift and extend
32453         operations that can occur in combination with PLUS/MINUS.
32454         Rename maybe_fma to compound_p.
32455         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32456         arithmetic and shift operations.
32458 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32460         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32461         rather than arith_shift cost when costing ADD/MINUS of an
32462         extended value.
32464 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
32466         PR lto/65948
32467         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32468         to itself.
32470 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
32472         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32473         are for the same position.
32475 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
32477         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
32478         vectorize_loops.
32479         (vectorize_loops): Use it.
32481 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32483         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32484         for aggregate types.
32485         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32486         type to be non_ODR.
32487         * tree.c (need_assembler_name_p): Compute mangled name for
32488         non-fundamental types and integer types.
32490 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
32492         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32493         manual swaps.
32494         * expr.c (expand_expr_real_2): Likewise.
32496 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32498         * tree.c (build_common_builtin_nodes): Do not build
32499         __builtin_alloca_with_align as equivalent of library alloca.
32501 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
32503         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32504         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32505         bugus variants.
32506         * tree.c: Include print-tree.h and ipa-utils.h
32507         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32508         (free_lang_data_in_cgraph): Call verify_type.
32509         (verify_type_variant): New function.
32510         (verify_type): New function.
32511         * tree.h (verify_type): Declare.
32513 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
32515         * config/mips/mips-cpus.def: (mips4): Change default processor
32516         from PROCESSOR_R8000 to PROCESSOR_R10000.
32518 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
32520         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32521         la/jalr instead of jal.
32523 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
32525         PR target/65871
32526         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32527         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32528         (setcc+movzbl peephole2): Check also clobbered reg.
32529         (setcc+andl peephole2): Ditto.
32531 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
32533         PR libgomp/65099
32534         * config/nvptx/mkoffload.c (target_ilp32): New variable.
32535         (main): Set it depending on "-foffload-abi=[...]".
32536         (compile_native, main): Use it to pass "-m32" or "-m64" to the
32537         compiler.
32539 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
32541         PR target/65770
32542         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32543         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32544         Flip lane index back at assembly time for bigendian.
32546 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
32548         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32549         * gimplify.c (gimplify_omp_workshare): Use it.
32551 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32553         * Makefile.in (build/genrecog.o): Depend on inchash.h.
32554         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32555         build/inchash.o
32556         * genrecog.c: Rewrite most of the code except for the third page.
32558 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32560         * inchash.h, inchash.c: Include bconfig.h for build objects.
32561         * Makefile.in (build/inchash.o): New rule.
32563 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
32565         PR target/65924
32566         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32567         number in type attribute expression.
32569 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
32571         * loop-iv.c (canon_condition): Generalize to all types of integer
32572         constant.
32574 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
32576         * gimple-walk.c: Prune duplicate or unneeded includes.
32577         (walk_gimple_asm): Only call parse_input_constraint or
32578         parse_output_constraint if their findings are used.
32579         Honour parse_input_constraint and parse_output_constraint
32580         result.
32582 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
32584         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32586 2015-04-29  Tom de Vries  <tom@codesourcery.com>
32588         PR tree-optimization/65893
32589         * passes.def (pass_all_optimizations): Move pass_stdarg to after
32590         pass_dce.
32592 2015-04-29  Richard Biener  <rguenther@suse.de>
32594         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32595         compute GROUP_SIZE for basic-block SLP.
32596         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32597         take into account gaps.
32598         (vect_get_mask_element): Properly reject references to previous
32599         vectors.
32600         (vect_transform_slp_perm_load): Likewise.
32602 2015-04-29  Christian Bruel  <christian.bruel@st.com>
32604         PR target/64835
32605         * config/i386/i386.c (ix86_default_align): New function.
32606         (ix86_override_options_after_change): Call ix86_default_align.
32607         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32608         (ix86_override_options_after_change): New function.
32610 2015-04-28  Jeff Law  <law@redhat.com>
32612         * tree-ssa-dom.c (record_equality); Fix comment typos.
32614 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32616         PR tree-optimization/65887
32617         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32619 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
32621         * doc/extend.texi (Declaring Attributes of Functions): Split into
32622         subsections by target.  Alphabetize the table of common attributes.
32623         Rewrite some of the introductory text to reflect the new structure.
32624         Update some cross-references to point to the new subsections.
32625         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
32626         duplicate copies in the discussion of function, label, and type
32627         attributes.
32629 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
32631         PR bootstrap/65910
32632         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32634 2015-04-28  Jason Merrill  <jason@redhat.com>
32636         PR c++/65734
32637         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32638         (finalize_type_size): Respect TYPE_USER_ALIGN.
32639         (layout_type) [ARRAY_TYPE]: Likewise.
32641 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
32643         * config/arm/arm.md (*arm_movt): Fix type attribute.
32644         (*cmpsi_shiftsi): Likewise.
32645         (*cmpsi_shiftsi_swp): Likewise.
32646         (*movsicc_insn): Likewise.
32647         (*cond_move): Likewise.
32648         (*if_plus_move): Likewise.
32649         (*if_move_plus): Likewise.
32650         (*if_arith_move): Likewise.
32651         (*if_move_arith): Likewise.
32652         (*if_shift_move): Likewise.
32653         (*if_move_shift): Likewise.
32654         (*arm_movtas_ze): Likewise.
32655         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32656         redundancy and type attribute.
32657         (*thumb2_movsi_insn): Fix type attribute.
32658         (*thumb2_addsi_short): Likewise.
32659         (thumb2_addsi3_compare0): Likewise.
32660         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32661         attributes accordingly.
32663 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
32665         PR other/65911
32666         * function.c (pad_to_arg_alignment): Add parentheses.
32668 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
32670         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32671         libgcc/config/frv/elf-lib.h.
32673 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32675         * tree-call-cdce.c: Fix example in header comment.
32677 2015-04-28  Richard Biener  <rguenther@suse.de>
32679         PR tree-optimization/62283
32680         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32681         fails fatally and we are vectorizing a basic-block simply
32682         cause the child to be constructed piecewise.
32683         (vect_analyze_slp_cost_1): Adjust.
32684         (vect_detect_hybrid_slp_stmts): Likewise.
32685         (vect_bb_slp_scalar_cost): Likewise.
32686         (vect_get_constant_vectors): For piecewise constructed
32687         constants place them after the last def.
32688         (vect_get_slp_defs): Adjust.
32689         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32690         externals for basic-block vectorization.
32692 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32694         PR target/63503
32695         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32696         aarch64-*-*.
32697         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32698         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32699         (AARCH64_TUNE_FMA_STEERING): Likewise.
32700         * config/aarch64/aarch64-cores.def: Set
32701         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32702         FMUL/FMADD instructions.
32703         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32704         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
32705         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32706         * config/aarch64/cortex-a57-fma-steering.h: New file.
32707         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32709 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
32711         * gensupport.c (std_preds): Add missing codes to address_operand entry.
32713 2015-04-28  Richard Biener  <rguenther@suse.de>
32715         PR tree-optimization/65851
32716         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32717         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
32718         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
32719         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32720         (ccp_visit_phi_node): Adjust.
32721         (evaluate_stmt): For simplifications to SSA names return its
32722         lattice value if that isn't VARYING.  Return immediately when
32723         simplified to a constant.
32724         (visit_assignment): Adjust.
32725         (ccp_visit_stmt): Likewise.
32727 2015-04-28  Tom de Vries  <tom@codesourcery.com>
32729         PR tree-optimization/65818
32730         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32731         evaluated.
32733 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32735         * calls.c (save_fixed_argument_area): Don't check
32736         ARGS_GROW_DOWNWARD with the preprocessor.
32737         (restore_fixed_argument_area): Likewise.
32738         (mem_overlaps_already_clobbered_arg_p): Likewise.
32739         (check_sibcall_argument_overlap): Likewise.
32740         (expand_call): Likewise.
32741         (emit_library_call_value_1): Likewise.
32742         (store_one_arg): Likewise.
32743         * function.c (assign_parms): Likewise.
32744         (locate_and_pad_parm): Likewise.
32745         (pad_to_arg_alignment): Likewise.
32746         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32748 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32750         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32751         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32752         * calls.c (save_fixed_argument_area): Don't chekc if
32753         ARGS_GROW_DOWNWARD is defined.
32754         (restore_fixed_argument_area): Likewise.
32755         (mem_overlaps_already_clobbered_arg_p): Likewise.
32756         (check_sibcall_argument_overlap): Likewise.
32757         (expand_call): Likewise.
32758         (emit_library_call_value_1): Likewise.
32759         (store_one_arg): Likewise.
32760         * function.c (assign_parms): Likewise.
32761         (locate_and_pad_parm): Likewise.
32762         (pad_to_arg_alignment): Likewise.
32763         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32765 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32767         * defaults.h (gen_epilogue): New function.
32768         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32769         defined.
32770         * cfgrtl.c (cfg_layout_finalize): Likewise.
32771         * df-scan.c: Likewise.
32772         * function.c (thread_prologue_and_epilogue_insns): Likewise.
32773         (reposition_prologue_and_epilogue_notes): Likewise.
32774         * reorg.c (find_end_label): Likewise.
32775         * toplev.c: Likewise.
32777 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32779         * bb-reorder.c (HAVE_return): Don't check if its undefined.
32780         * defaults.h (gen_simple_return): New function.
32781         (gen_simple_return): Likewise.
32782         (HAVE_return): Add default definition to false.
32783         (HAVE_simple_return): Likewise.
32784         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32785         HAVE_return and HAVE_simple_return are defined.
32786         * function.c (gen_return_pattern): Likewise.
32787         (convert_jumps_to_returns): Likewise.
32788         (thread_prologue_and_epilogue_insns): Likewise.
32789         * reorg.c (find_end_label): Likewise.
32790         (dbr_schedule): Likewise.
32791         * shrink-wrap.c: Likewise.
32792         * shrink-wrap.h: Likewise.
32794 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32796         * defaults.h (EPILOGUE_USES): Add default definition of false.
32797         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32798         * resource.c (init_resource_info): Likewise.
32800 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32802         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32803         to false.
32804         * dwarf2out.c (field_byte_offset): REmove check if
32805         PCC_BITFIELD_TYPE_MATTERS is defined.
32806         * stor-layout.c (layout_decl): Likewise.
32807         (update_alignment_for_field): Likewise.
32808         (place_field): Likewise.
32810 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32812         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32813         true.
32814         * regrename.c (check_new_reg_p): Remove check if
32815         HARD_REGNO_RENAME_OK is defined.
32816         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32818 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32820         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32821         * cse.c (fold_rtx): Likewise.
32822         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32823         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32824         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32825         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32826         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32827         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32828         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32829         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32830         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32831         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32832         * Likewise.
32833         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32834         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32835         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32836         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32837         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32838         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32839         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32840         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32841         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32842         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32843         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32844         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32845         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32846         * doc/tm.texi: Regenerate.
32847         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32848         either true or false.
32850 2015-04-27  Jeff Law  <law@redhat.com>
32852         PR tree-optimization/65217
32853         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32854         of them has a single use, make sure it is the LHS of the implied
32855         copy.
32857 2015-04-28  Alan Modra  <amodra@gmail.com>
32859         PR target/65810
32860         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32861         (offsettable_ok_by_alignment): Use minimum of decl and toc
32862         pointer alignment.  Replace dead code with assertion.
32863         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
32864         case if size exceeds toc pointer alignment.
32865         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32866         (rs6000_emit_move): Likewise.
32867         * configure.ac: Add linker toc pointer alignment check.
32868         * configure: Regenerate.
32869         * config.in: Regenerate.
32871 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
32873         * config.gcc: Add h8300-*-linux.
32874         * config/h8300/linux.h: New.
32875         * config/h8300/t-linux: New.
32876         * config/h8300/h8300.c (h8300_option_override): Normal mode
32877         is not supported for h8300-*-linux.
32878         (h8300_file_start): Target priority change.
32879         (get_shift_alg): Likewise.
32880         (h8300_shift_need_scratch_p): Likewise.
32881         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32882         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32884 2015-04-27  Caroline Tice  <cmtice@google.com>
32886         * final.c (final_scan_insn):  Output cold_function_name as function
32887         type.
32888         * varasm.c (cold_function_name):  Make global.
32889         (assemble_start_function):  Re-set cold_function_name.
32890         (assemble_end_function): Output cold partition size.
32891         * varasm.h (cold_function_name):  Declare global.
32893 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
32895         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32896         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32897         constraint.
32898         (*movxi_internal_avx512f): Ditto.
32899         (define_split): Check for xmm16+, when splitting scalar float_extend.
32900         (*extendsfdf2_mixed): Use "v" constraint.
32901         (define_split): Check for xmm16+, when splitting scalar float_truncate.
32902         (*truncdfsf_fast_sse): Use "v" constraint.
32903         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32904         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32905         (define_peephole2): Check for xmm16+, when converting scalar
32906         float_truncate.
32907         (define_peephole2): Check for xmm16+, when converting scalar
32908         float_extend.
32909         (*fop_<mode>_comm_mixed): Use "v" constraint.
32910         (*fop_<mode>_comm_sse): Ditto.
32911         (*fop_<mode>_1_mixed): Ditto.
32912         (*sqrt<mode>2_sse): Ditto.
32913         (*ieee_s<ieee_maxmin><mode>3): Ditto.
32915 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32917         * combine.c (simplify_if_then_else): Use std::swap instead
32918         of manually swapping.
32919         (known_cond): Likewise.
32920         (simplify_comparison): Likewise.
32922 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
32924         PR target/64579
32925         * config/rs6000/htm.md: Remove all define_expands.
32926         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32927         UNSPECV_HTM_TABORTWCI): Remove.
32928         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32929         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32930         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32931         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32932         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32933         tabortwci_internal): Remove define_insns.
32934         (tabort<wd>c, tabort<wd>ci): New define_insns.
32935         (tabort): Use gpc_reg_operand.
32936         (tcheck): Remove operand.
32937         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32938         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32939         expected value.
32940         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32941         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
32942         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32943         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32944         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32945         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32946         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32947         (tcheck): Remove builtin argument.
32948         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32949         not TARGET_64BIT.
32950         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
32951         tabortdc and tabortdci builtins when not in 64-bit mode.
32952         Modify code to handle the loss of the HTM define_expands.
32953         Emit code to copy the CR register to TARGET.
32954         (htm_init_builtins): Modify code to handle the loss of the HTM
32955         define_expands.
32956         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32957         (RS6000_BTC_64BIT): Likewise.
32958         (RS6000_BTC_CR): New macro.
32959         * doc/extend.texi: Update documentation for htm builtins.
32961 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32963         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32964         of manually swapping.
32965         (simplify_associative_operation): Likewise.
32966         (simplify_binary_operation): Likewise.
32967         (simplify_plus_minus): Likewise.
32968         (simplify_relational_operation): Likewise.
32969         (simplify_ternary_operation): Likewise.
32971 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
32973         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32974         (xs_hi_nonmemory_operand): Remove error.
32975         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32976         general_operand rather than xs_hi_general_operand.
32978 2015-04-27  Richard Biener  <rguenther@suse.de>
32980         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32981         (record_equivalences_from_stmt): Valueize rhs.
32982         (record_equality): Canonicalize x and y order via
32983         tree_swap_operands_p.  Do not swap operands for same loop depth.
32985 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
32987         PR target/65296
32988         PR target/65895
32989         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32990         Add hint how to use own spec file.
32992 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
32994         PR tree-optimization/65875
32995         * tree-vrp.c (update_value_range): If in is_new case setting
32996         old_vr to VR_VARYING, also set new_vr to it.  Remove
32997         old_vr->type == VR_VARYING test.
32998         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32999         SSA_PROP_INTERESTING if update_value_range returned true,
33000         but new range is VR_VARYING.
33002 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33004         * combine.c (sign_extend_short_imm): New.
33005         (set_nonzero_bits_and_sign_copies): Use above new function for sign
33006         extension of src short immediate.
33007         (reg_nonzero_bits_for_combine): Likewise for tem.
33009 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33011         * stor-layout.c (self_referential_component_ref_p): New predicate.
33012         (copy_self_referential_tree_r): Use it.
33013         (self_referential_size): Punt for simple operations directly involving
33014         self-referential component references.
33015         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33017 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33019         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33021 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33023         * vec.h (vec): Make splice arguments const.  Update definitions
33024         accordingly.
33026 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
33028         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33029         alternatives.
33031 2015-04-26  Tom de Vries  <tom@codesourcery.com>
33033         PR tree-optimization/65826
33034         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33036 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
33038         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33039         (*madd3<mode>): Ditto.
33040         (*msub4<mode>): Ditto.
33041         (*msub3<mode>): Ditto.
33042         (*nmadd4<mode>): Ditto.
33043         (*nmadd3<mode>): Ditto.
33044         (*nmadd4<mode>_fastmath): Ditto.
33045         (*nmadd3<mode>_fastmath): Ditto.
33046         (*nmsub4<mode>): Ditto.
33047         (*nmsub3<mode>): Ditto.
33048         (*nmsub4<mode>_fastmath): Ditto.
33049         (*nmsub3<mode>_fastmath): Ditto.
33051 2015-04-24  Jason Merrill  <jason@redhat.com>
33053         PR c++/50800
33054         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33055         down when building TYPE_CANONICAL.
33056         (build_pointer_type_for_mode): Likewise.
33058 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
33060         * genrecog.c (validate_pattern): Check matching constraint refers
33061         to a lower numbered operand.
33063 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33065         PR target/65849
33066         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33067         save to independent variables use the Save attribute.  This will
33068         allow these options to be modified with the #pragma/attribute
33069         target support.
33070         (-mallow-movmisalign): Likewise.
33071         (-mallow-df-permute): Likewise.
33072         (-msched-groups): Likewise.
33073         (-malways-hint): Likewise.
33074         (-malign-branch-targets): Likewise.
33075         (-mvectorize-builtins): Likewise.
33076         (-msave-toc-indirect): Likewise.
33078         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33079         can be set via the #pragma/attribute target support.
33080         (rs6000_opt_vars): Likewise.
33081         (rs6000_inner_target_options): If VSX was set, also set
33082         -mno-avoid-indexed-addresses.
33084 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33086         * config/arm/iterators.md (shiftable_ops): Rename to...
33087         (SHIFTABLE_OPS): ... This.  Update use in comments.
33088         (ior_xor): Rename to...
33089         (IOR_XOR): ... This.
33090         (vqh_ops): Rename to...
33091         (VQH_OPS): ... This.
33092         (vqhs_ops): Rename to...
33093         (VQHS_OPS): ... This.
33094         (rshifts): Rename to...
33095         (RSHIFTS): ... This.
33096         (returns): Rename to...
33097         (RETURNS): ... This.
33098         * config/arm/arm.md: Update uses of the above.
33099         * config/arm/neon.md: Likewise.
33101 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33103         * config.host (case ${host}): Add aarch64*-*-linux case.
33104         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33105         fields to all the cores.
33106         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33107         Add MCPU_MTUNE_NATIVE_SPECS.
33108         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33109         field to all extensions.
33110         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33111         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33112         Adjust definition of AARCH64_OPT_EXTENSION.
33113         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33114         (MCPU_MTUNE_NATIVE_SPECS): Define.
33115         * config/aarch64/driver-aarch64.c: New file.
33116         * config/aarch64/x-arch64: New file.
33117         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33118         -mtune and -march.
33120 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33121             Wei Mi  <wmi@google.com>
33123         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33124         * config/i386/i386.c (extract_base_offset_in_addr): New function.
33125         (ix86_operands_ok_for_move_multiple): Ditto.
33126         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33127         (movlpd/movhpd to movupd peephole2): Ditto.
33129 2015-04-24  Marek Polacek  <polacek@redhat.com>
33131         PR c/61534
33132         * input.h (from_macro_expansion_at): Define.
33134         PR c/63357
33135         * doc/invoke.texi: Update description of -Wlogical-op.
33137 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33139         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33140         ternary operator in fprintf and harmonize spacing.
33142 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33144         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33145         Mark operand1 commutative.
33147 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33149         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33150         input operands in memory.
33151         (*vec_concatv2si_sse4_1): Ditto.
33152         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33153         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33154         register_operand.
33155         (vec_extract_hi_v32hi): Ditto.
33156         (vec_extract_hi_v64hi): Ditto.
33157         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33159 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33160             Steven Bosscher <steven@gcc.gnu.org>
33162         PR rtl-optimization/34503
33163         * cprop.c (cprop_reg_p): New.
33164         (hash_scan_set): Use above function to check if register can be
33165         propagated.
33166         (find_avail_set): Return up to two sets, one whose source is a
33167         register and one whose source is a constant.  Sets are returned in an
33168         array passed as parameter rather than as a return value.
33169         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
33170         sets returned by find_avail_set, starting with the one whose source is
33171         a constant. Use cprop_reg_p to check if register can be propagated.
33172         (do_local_cprop): Use cprop_reg_p to check if register can be
33173         propagated.
33174         (implicit_set_cond_p): Likewise.
33176 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33178         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33179         (sem_function::equals): IGNORED_NODES parameter is now unused;
33180         update call of equals_private.
33181         (sem_function::equals_private): Do not call equals_wpa; skip
33182         gimple body matching if there is no body.
33183         (sem_function::init): Add logic to hash tthunk info.
33184         (sem_function::parse): Also parse thunks.
33185         * ipa-icf.h (equals_private): Update declaration.
33187 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33189         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33190         asterisk from name so this can be generated directly.
33191         (*altivec_stvx_<mode>_internal): Likewise.
33192         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33193         that this is never called during or after reload/lra.
33194         (rs6000_frame_related): Remove split_reg
33195         argument and logic that references it.
33196         (emit_frame_save): Remove last parameter from call to
33197         rs6000_frame_related.
33198         (rs6000_emit_prologue): Remove last parameter from eight calls to
33199         rs6000_frame_related.  Force generation of stvx instruction for
33200         Altivec register saves.  Remove split_reg handling, which is no
33201         longer needed.
33202         (rs6000_emit_epilogue):  Force generation of lvx instruction for
33203         Altivec register restores.
33205 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33207         * config/rs6000/rs6000.opt (mcrypto): Change option description to
33208         match category changes in ISA 2.07B.
33210 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33212         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33213         iterators.
33214         (cmp_op, cmp_type): New code attributes.
33215         (NEON_VCMP, NEON_VACMP): New int iterators.
33216         (cmp_op_unsp): New int attribute.
33217         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33218         (neon_vceq<mode>): Delete.
33219         (neon_vc<cmp_op><mode>_insn): New pattern.
33220         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33221         (neon_vcgeu<mode>): Delete.
33222         (neon_vcle<mode>): Likewise.
33223         (neon_vclt<mode>: Likewise.
33224         (neon_vcage<mode>): Likewise.
33225         (neon_vcagt<mode>): Likewise.
33226         (neon_vca<cmp_op><mode>): New define_expand.
33227         (neon_vca<cmp_op><mode>_insn): New pattern.
33228         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33230 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33232         * tree.h (attribute_value_equal): Declare.
33233         * tree.c (attribute_value_equal): Export.
33235 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33237         * ipa-icf.c (sem_item::compare_attributes): New function.
33238         (sem_item::compare_referenced_symbol_properties): Compare variable
33239         attributes.
33240         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33241         (sem_function::param_used_p): New function.
33242         (sem_function::equals_wpa): Fix attribute comparsion; match
33243         parameter type codes; do not compare paremter flags when
33244         they are not used; compare edge flags; compare indirect calls.
33245         (sem_item::update_hash_by_addr_refs): Hash reference type.
33246         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33247         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33248         reference use type.
33249         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33250         * ipa-icf.h (compare_attributes, param_used_p): Declare.
33252 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33254         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33255         cleanup.
33256         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33257         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33258         (sem_item::compare_referenced_symbol_properties): New.
33259         (sem_item::hash_referenced_symbol_properties): New.
33260         (sem_item::compare_cgraph_references): Rename to ...
33261         (sem_item::compare_symbol_references): ... this one; use
33262         compare_referenced_symbol_properties.
33263         (sem_function::equals_wpa): Do not compare
33264         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33265         DECL_IS_OPERATOR_NEW; compare pointer sizes.
33266         (sem_item::update_hash_by_addr_refs): Call
33267         hash_referenced_symbol_properties.
33268         (sem_item::update_hash_by_local_refs): Cleanup.
33269         (sem_function::merge): Do not mix up symbol properties.
33270         (sem_variable::equals_wpa): Use compare_symbol_references.
33271         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33272         (sem_item::hash_referenced_symbol_properties): New.
33273         (sem_item::compare_symbol_references): New.
33274         (sem_item::compare_cgraph_references): Remove.
33276 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
33278         PR target/26702
33279         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33280         Emit size of local.
33282 2015-04-23  Nick Clifton  <nickc@redhat.com>
33284         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33285         ATTRIBUTE_UNUSED to x parameter.
33286         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33288 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33290         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33291         TARGET_CRYPTO to TARGET_P8_VECTOR>
33292         (crypto_vpermxor_<mode>): Likewise.
33293         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33294         (BU_CRYPTO_3A): Likewise.
33295         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33296         (BU_CRYPTO_OVERLOAD_3A): New #define.
33297         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33298         (VPMSUMH): Likewise.
33299         (VPMSUMW): Likewise.
33300         (VPMSUMD): Likewise.
33301         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33302         (VPERMXOR_V4SI): Likewise.
33303         (VPERMXOR_V8HI): Likewise.
33304         (VPERMXOR_V16QI): Likewise.
33305         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33306         BU_CRYPTO_OVERLOAD_2A.
33307         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33308         BU_CRYPTO_OVERLOAD_3A.
33309         * config/rs6000/rs6000.opt (mcrypto): Change description of
33310         option.
33312 2015-04-23  Richard Biener  <rguenther@suse.de>
33314         * passes.def: Remove copy propagation passes run directly after CCP.
33315         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33316         SSA names.
33317         (ccp_visit_phi_node): Rework to handle first executable edge
33318         specially.
33320 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
33322         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33323         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33324         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33325         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33326         (thumb_legimitimize_reload_address): Remove.
33327         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33328         Remove.
33329         (thumb_legimitimize_reload_address): Remove.
33331 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33333         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33335 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33337         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33338         MAX_LDM_STM_OPS.
33339         (store_multiple): Likewise.
33341 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33343         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33344         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33345         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33346         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33347         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33348         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33349         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33350         Specify issue_rate value.
33351         (arm_issue_rate): Look up issue rate from tuning structs. Remove
33352         large switch statement.
33353         (arm_marvell_pj4_tune): New struct.
33354         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33355         struct.
33357 2015-04-23  Richard Biener  <rguenther@suse.de>
33359         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33360         (vect_find_last_store_in_slp_instance): Rename to ...
33361         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33362         (vect_analyze_slp_cost_1): Use vector_load for constant defs
33363         and vec_construct for external defs when estimating prologue cost.
33364         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33365         Compute costs here only when vectorizing loops.
33366         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33367         have been determined.
33368         (vect_schedule_slp_instance): Simplify vectorized code placement
33369         and prepare for in-BB external defs.
33370         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33371         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33372         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33373         guard.
33374         (vect_model_load_cost): Likewise.
33375         (vectorizable_store): Instead add it here.
33376         (vectorizable_load): Likewise.
33377         (vect_is_simple_use): Dump def type textually.
33379 2015-04-23  Richard Biener  <rguenther@suse.de>
33381         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33382         * cfgloop.c (verify_loop_structure): Verify the root loop node.
33383         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33384         instead of get_eh_region_from_lp_number.
33385         * loop-init.c (fix_loop_structure): If we removed a loop, reset
33386         the SCEV cache.
33388 2015-04-23  Anton Blanchard  <anton@samba.org>
33390         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33391         need for -mprofile-kernel to save LR to stack.
33393 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33395         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33396         adjustments.
33397         (insn_is_swappable_p): Return 1 for a convert from double to
33398         single precision when all of its uses are splats of BE element
33399         zero.
33401 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
33403         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33405 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33407         PR target/65456
33408         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
33409         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33410         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33411         option.
33412         (rs6000_builtin_mask_for_load): Return 0 for targets with
33413         efficient unaligned VSX accesses so that the vectorizer will use
33414         direct unaligned loads.
33415         (rs6000_builtin_support_vector_misalignment): Always return true
33416         for targets with efficient unaligned VSX accesses.
33417         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33418         stores on targets with efficient unaligned VSX accesses is almost
33419         always the same as the cost of an aligned load or store, so model
33420         it that way.
33421         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33422         unaligned vectors if we have efficient unaligned VSX accesses.
33423         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33424         undocumented option.
33426 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33428         Revert:
33429         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
33431         * config.gcc (LIBC_MUSL): New tm_defines macro.
33432         * config/linux.h (OPTION_MUSL): Define.
33433         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33434         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33435         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33437         * config/linux.opt (mmusl): New option.
33438         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33439         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33441         * configure: Regenerate.
33443 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
33445         * config.gcc (LIBC_MUSL): New tm_defines macro.
33446         * config/linux.h (OPTION_MUSL): Define.
33447         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33448         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33449         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33451         * config/linux.opt (mmusl): New option.
33452         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33453         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33455         * configure: Regenerate.
33457 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
33459         * doc/invoke.texi (-fsanitize-sections): Update description.
33460         * asan.c (set_sanitized_sections): Parse incoming arg.
33461         (section_sanitized_p): Support wildcards.
33463 2015-04-22  Tom de Vries  <tom@codesourcery.com>
33465         PR tree-optimization/65823
33466         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33467         equality between ap_copy and ap.
33469 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33471         PR target/47098
33472         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33474 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33476         PR target/47122
33477         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33479 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33481         PR target/55144
33482         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33483         remove already contained t-files.
33485 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33487         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33488         Remove unneeded forward declarations.
33489         (suitable_for_tail_call_opt_p): Commentary typo fix.
33491 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33493         * varasm.c (emit_bss): Remove redundant guard.
33495 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33497         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33499 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
33501         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33503 2015-04-22  Hale Wang  <hale.wang@arm.com>
33504             Terry Guo  <terry.guo@arm.com>
33506         PR rtl-optimization/64818
33507         * combine.c (can_combine_p): Don't combine user-specified
33508         register if it is in an asm input.
33510 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
33512         PR ipa/65076
33513         * passes.def (early_optimizations): Add pass_dse.
33515 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33517         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33518         * reorg.c (redundant_insn): Remove ifdef
33519         INSN_REFERENCES_ARE_DELAYED.
33520         * resource.c (mark_referenced_resources): Likewise.
33522 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33524         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33525         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33526         * resource.c (mark_set_resources): Likewise.
33528 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33530         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33531         * cfgcleanup.c (flow_find_cross_jump): Likewise.
33532         (flow_find_head_matching_sequence): Likewise.
33533         (try_head_merge_bb): Likewise.
33534         * combine.c (can_combine_p): Likewise.
33535         (try_combine): Likewise.
33536         (distribute_notes): Likewise.
33537         * df-problems.c (can_move_insns_across): Likewise.
33538         * final.c (final): Likewise.
33539         * gcse.c (insert_insn_end_basic_block): Likewise.
33540         * ira.c (find_moveable_pseudos): Likewise.
33541         * reorg.c (try_merge_delay_insns): Likewise.
33542         (fill_simple_delay_slots): Likewise.
33543         (fill_slots_from_thread): Likewise.
33544         * sched-deps.c (sched_analyze_2): Likewise.
33546 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33548         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33549         PIC_OFFSET_TABLE_REGNUM.
33551 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33553         * alias.c (init_alias_target): Remove ifdef
33554         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33555         * df-scan.c (df_insn_refs_collect): Likewise.
33556         (df_get_regular_block_artificial_uses): Likewise.
33557         (df_get_eh_block_artificial_uses): Likewise.
33558         (df_get_entry_block_def_set): Likewise.
33559         (df_get_exit_block_use_set): Likewise.
33560         * emit-rtl.c (gen_rtx_REG): Likewise.
33561         * ira.c (ira_setup_eliminable_regset): Likewise.
33562         * reginfo.c (init_reg_sets_1): Likewise.
33563         * regrename.c (rename_chains): Likewise.
33564         * reload1.c (reload): Likewise.
33565         (eliminate_regs_in_insn): Likewise.
33566         * resource.c (mark_referenced_resources): Likewise.
33567         (init_resource_info): Likewise.
33569 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33571         * defaults.h (MASK_RETURN_ADDR): New definition.
33572         * except.c (expand_builtin_extract_return_addr): Remove ifdef
33573         MASK_RETURN_ADDR.
33575 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33577         * defaults.h (RETURN_ADDR_OFFSET): New definition.
33578         * except.c (expand_builtin_extract_return_addr): Remove ifdef
33579         RETURN_ADDR_OFFSET.
33580         (expand_builtin_frob_return_addr): Likewise.
33582 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33584         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33585         (try_redirect_by_replacing_jump): Likewise.
33586         (rtl_tidy_fallthru_edge): Likewise.
33587         * combine.c (insn_a_feeds_b): Likewise.
33588         (find_split_point): Likewise.
33589         (simplify_set): Likewise.
33590         * cprop.c (cprop_jump): Likewise.
33591         * cse.c (cse_extended_basic_block): Likewise.
33592         * df-problems.c (can_move_insns_across): Likewise.
33593         * function.c (emit_use_return_register_into_block): Likewise.
33594         * haifa-sched.c (sched_init): Likewise.
33595         * ira.c (find_moveable_pseudos): Likewise.
33596         * loop-invariant.c (find_invariant_insn): Likewise.
33597         * lra-constraints.c (curr_insn_transform): Likewise.
33598         * postreload.c (reload_combine_recognize_const_pattern):
33599         * Likewise.
33600         * reload.c (find_reloads): Likewise.
33601         * reorg.c (delete_scheduled_jump): Likewise.
33602         (steal_delay_list_from_target): Likewise.
33603         (steal_delay_list_from_fallthrough): Likewise.
33604         (redundant_insn): Likewise.
33605         (fill_simple_delay_slots): Likewise.
33606         (fill_slots_from_thread): Likewise.
33607         (delete_computation): Likewise.
33608         * sched-rgn.c (add_branch_dependences): Likewise.
33610 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33612         * genconfig.c (main): Always define HAVE_cc0.
33613         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33614         HAVE_cc0.
33615         * cfgcleanup.c (flow_find_cross_jump): Likewise.
33616         (flow_find_head_matching_sequence): Likewise.
33617         (try_head_merge_bb): Likewise.
33618         * cfgrtl.c (rtl_merge_blocks): Likewise.
33619         (try_redirect_by_replacing_jump): Likewise.
33620         (rtl_tidy_fallthru_edge): Likewise.
33621         * combine.c (do_SUBST_MODE): Likewise.
33622         (insn_a_feeds_b): Likewise.
33623         (combine_instructions): Likewise.
33624         (can_combine_p): Likewise.
33625         (try_combine): Likewise.
33626         (find_split_point): Likewise.
33627         (subst): Likewise.
33628         (simplify_set): Likewise.
33629         (distribute_notes): Likewise.
33630         * cprop.c (cprop_jump): Likewise.
33631         * cse.c (cse_extended_basic_block): Likewise.
33632         * df-problems.c (can_move_insns_across): Likewise.
33633         * final.c (final): Likewise.
33634         (final_scan_insn): Likewise.
33635         * function.c (emit_use_return_register_into_block): Likewise.
33636         * gcse.c (insert_insn_end_basic_block): Likewise.
33637         * haifa-sched.c (sched_init): Likewise.
33638         * ira.c (find_moveable_pseudos): Likewise.
33639         * loop-invariant.c (find_invariant_insn): Likewise.
33640         * lra-constraints.c (curr_insn_transform): Likewise.
33641         * optabs.c (prepare_cmp_insn): Likewise.
33642         * postreload.c (reload_combine_recognize_const_pattern):
33643         * Likewise.
33644         * reload.c (find_reloads): Likewise.
33645         (find_reloads_address_1): Likewise.
33646         * reorg.c (delete_scheduled_jump): Likewise.
33647         (steal_delay_list_from_target): Likewise.
33648         (steal_delay_list_from_fallthrough): Likewise.
33649         (try_merge_delay_insns): Likewise.
33650         (redundant_insn): Likewise.
33651         (fill_simple_delay_slots): Likewise.
33652         (fill_slots_from_thread): Likewise.
33653         (delete_computation): Likewise.
33654         (relax_delay_slots): Likewise.
33655         * sched-deps.c (sched_analyze_2): Likewise.
33656         * sched-rgn.c (add_branch_dependences): Likewise.
33658 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33660         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33661         that is trivially ded on non cc0 targets.
33662         (simplify_set): Likewise.
33663         (mark_used_regs_combine): Likewise.
33664         * cse.c (new_basic_block): Likewise.
33665         (fold_rtx): Likewise.
33666         (cse_insn): Likewise.
33667         (cse_extended_basic_block): Likewise.
33668         (set_live_p): Likewise.
33669         * rtlanal.c (canonicalize_condition): Likewise.
33670         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33672 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33674         * conditions.h: Define macros even if HAVE_cc0 is undefined.
33675         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33676         * final.c: Likewise.
33677         * jump.c: Likewise.
33678         * recog.c: Likewise.
33679         * recog.h: Declare functions even when HAVE_cc0 is undefined.
33680         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33682 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33684         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33685         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33686         * builtins.c (expand_builtin): Remove check if
33687         EH_RETURN_DATA_REGNO is defined.
33688         * df-scan.c (df_bb_refs_collect): Likewise.
33689         (df_get_exit_block_use_set): Likewise.
33690         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33691         * ira-lives.c (process_bb_node_lives): Likewise.
33692         * lra-lives.c (process_bb_lives): Likewise.
33694 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33696         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33697         FIRST_PSEUDO_REG): New.
33698         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33699         (ARG_POINTER_REGNUM): Define to ARGP_REG.
33700         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33701         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33702         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33703         (FIRST_INT_REG): New.
33704         (LAST_INT_REG): New.
33705         (FIRST_*_REG): Define using *_REG.
33706         (LAST_*_REG): Ditto.
33707         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33708         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33709         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33711 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33713         * expmed.c: (synth_mult): Only assume overlapping
33714         shift with previous steps in alg_sub_t_m2 case.
33716 2015-04-21  Richard Biener  <rguenther@suse.de>
33718         PR tree-optimization/65650
33719         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33720         transitions involving copies.
33721         (set_lattice_value): Adjust for copy lattice state.
33722         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33723         if that doesn't dominate the merge point.
33724         (bit_value_unop): Adjust what we treat as varying mask.
33725         (bit_value_binop): Likewise.
33726         (bit_value_assume_aligned): Likewise.
33727         (evaluate_stmt): When we simplified to a SSA name record a copy
33728         instead of dropping to varying.
33729         (visit_assignment): Simplify.
33731         * gimple-match.h (gimple_simplify): Add another callback.
33732         * gimple-fold.c (fold_stmt_1): Adjust caller.
33733         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33734         for the 2nd callback.
33735         * gimple-match-head.c (gimple_simplify): Add a callback that is
33736         used to valueize the stmt operands and use it that way.
33738 2015-04-21  Richard Biener  <rguenther@suse.de>
33740         PR tree-optimization/65788
33741         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33743 2015-04-21  Richard Biener  <rguenther@suse.de>
33745         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33746         vec_construct cost by vec_stmt_cost.
33748 2015-04-21  Richard Biener  <rguenther@suse.de>
33750         * cfghooks.h (create_basic_block): Replace with two overloads
33751         for RTL and GIMPLE.
33752         (split_block): Likewise.
33753         * cfghooks.c (split_block): Rename to ...
33754         (split_block_1): ... this.
33755         (split_block): Add two type-safe overloads for RTL and GIMPLE.
33756         (split_block_after_labels): Call split_block_1.
33757         (create_basic_block): Rename to ...
33758         (create_basic_block_1): ... this.
33759         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33760         (create_empty_bb): Call create_basic_block_1.
33761         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33762         split_block_after_labels.
33763         * omp-low.c (expand_parallel_call): Likewise.
33764         (expand_omp_target): Likewise.
33765         (simd_clone_adjust): Likewise.
33766         * tree-chkp.c (chkp_get_entry_block): Likewise.
33767         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33768         create_basic_block overload.
33769         (cgraph_node::expand_thunk): Likewise.
33770         * tree-cfg.c (make_blocks): Likewise.
33771         (handle_abnormal_edges): Likewise.
33772         * tree-inline.c (copy_bb): Likewise.
33774 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33776         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33777         New pattern.
33778         (*xor_one_cmplsidi3_ze): Likewise.
33780 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33782         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33783         use df_remove_problem rather than manually removing problems, leaving
33784         holes in df->problems_in_order[].
33786 2015-04-21  Tom de Vries  <tom@codesourcery.com>
33788         PR tree-optimization/65802
33789         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33791 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33793         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33794         Increase to 128.
33795         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33796         at '.'.  Assert that there's enough space for everything.
33798 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
33800         PR tree-optimization/64950
33801         Revert:
33802         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
33804         PR target/41089
33805         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33806         as volatile.
33808 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
33810         PR rtl-optimization/64916
33811         * cfgcleanup.c (values_equal_p): New function.
33812         (can_replace_by): Use it.
33814 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
33816         PR c++/65801
33817         * doc/invoke.texi ([-Wnarrowing]): Update.
33819 2015-04-20  Jeff Law  <law@redhat.com>
33821         PR tree-optimization/65658
33822         * tree-ssa-threadupdate.c (redirection_block_p): Remove
33823         redundant test for GIMPLE_ASSIGN in last change.
33825 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
33827         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33828         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33829         (legitimize_tls_address): Ditto.
33830         (ix86_expand_move): Ditto.
33831         (ix86_expand_binary_operator): Remove reload_in_progress checks.
33832         (ix86_expand_unary_operator): Ditto.
33833         * config/i386/predicates.md (index_register_operand): Ditto.
33835 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
33837         * reorg.c (try_merge_delay_insns): Improve correctness checking
33838         for targets with multiple delay slots.
33840 2015-04-20  Jeff Law  <law@redhat.com>
33842         PR tree-optimization/65658
33843         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33844         statements too.
33846 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
33848         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33849         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33850         Delete.
33852 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
33854         PR debug/65807
33855         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33857 2015-04-20  Richard Biener  <rguenther@suse.de>
33859         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33860         * gimple-fold.c (gimple_build_valueize): New function.
33861         (gimple_build): Always use gimple_build_valueize as valueize hook.
33863 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
33865         PR target/64134
33866         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33867         and overwrite variable parts if <= 1/2 the elements are variable.
33869 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
33871         PR rtl-optimization/65805
33872         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33873         Don't use difference of offset and previous offset if
33874         update_sp_offset is non-zero.
33875         (eliminate_regs_in_insn): Ditto.
33876         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33877         lra_eliminate_regs_1 call.
33878         * lra-constraints.c (get_equiv_with_elimination): Ditto.
33880 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
33882         * hash-table.h: Remove version of hash_table that stored value_type *.
33883         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33884         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33885         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33886         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33887         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33888         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33889         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33890         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33891         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33892         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33893         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33894         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33895         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33896         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33897         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33898         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33900 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33901             Jakub Jelinek  <jakub@redhat.com>
33903         PR target/65787
33904         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33905         subsequent SH_NONE operand does not overwrite an existing *special
33906         value.
33907         (adjust_extract): Handle case where a vec_extract operation is
33908         wrapped in a PARALLEL.
33910 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
33912         PR target/65780
33913         * config/i386/i386.c (ix86_binds_local_p): Define only if
33914         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33916 2015-04-17  Jeff Law  <law@redhat.com>
33918         PR tree-optimization/47679
33919         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33920         * tree-ssa-scopedtables.c: New file.
33921         * tree-ssa-scopedtables.h: New file.
33922         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33923         (const_and_copies): Change name/type.
33924         (record_const_or_copy): Move into tree-ssa-scopedtables.c
33925         (record_const_or_copy_1): Similarly.
33926         (restore_vars_to_original_value): Similarly.
33927         (pass_dominator::execute): Create and destroy const_and_copies table.
33928         (thread_across_edge): Update passing of const_and_copies.
33929         (record_temporary_equivalence): Use method calls rather than
33930         manipulating const_and_copies directly.
33931         (record_equality, cprop_into_successor_phis): Similarly.
33932         (dom_opt_dom_walker::before_dom_children): Similarly.
33933         (dom_opt_dom_walker::after_dom_children): Similarly.
33934         (eliminate_redundant_computations): Similarly.
33935         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33936         (record_temporary_equivalence): Likewise.
33937         (invalidate_equivalences): Likewise.
33938         (record_temporary_equivalences_from_phis): Update due to type
33939         change of const_and_copies.  Use method calls rather than
33940         manipulating the stack directly.
33941         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33942         (thread_through_normal_block, thread_across_edge): Likewise.
33943         (thread_across_edge): Likewise.
33944         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33945         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
33946         of equiv_stack.
33947         (identify_jump_threads): Update due to type change of equiv_stack.
33948         (finalize_jump_threads): Delete the equiv_stack when complete.
33950 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
33952         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33953         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33954         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33956 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
33958         PR target/65535
33959         * config.gcc: Exit with a comment when we do not have a major version
33960         number for the FreeBSD target.
33962 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
33964         PR target/65689
33965         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33966         maybe_allows_mem bitfields.
33967         (maybe_allows_none_start, maybe_allows_none_end,
33968         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33969         maybe_allows_mem_end): New variables.
33970         (compute_maybe_allows): New function.
33971         (add_constraint): Use it to initialize maybe_allows_reg and
33972         maybe_allows_mem fields.
33973         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33974         is_address constraints such that those that allow neither mem nor
33975         reg come first, then those that only allow reg but not mem, then
33976         those that only allow mem but not reg, then the rest.
33977         (write_allows_reg_mem_function): New function.
33978         (write_tm_preds_h): Call it.
33979         * stmt.c (parse_output_constraint, parse_input_constraint): Use
33980         the generated insn_extra_constraint_allows_reg_mem function
33981         instead of always setting *allows_reg = true; *allows_mem = true;
33982         for unknown extra constraints.
33984 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
33986         PR target/65780
33987         * output.h (default_binds_local_p_3): New.
33988         * varasm.c (default_binds_local_p_3): Make it public.  Take an
33989         argument to indicate if common symbol may be local.  If common
33990         symbol may be local, treat non-external variable as defined
33991         locally.
33992         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33993         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33994         * config/i386/i386.c (ix86_binds_local_p): New.
33995         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33996         ix86_binds_local_p.
33998 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34000         PR debug/65771
34001         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34002         trying mem_loc_descriptor on XEXP (rtl, 0).
34004 2015-04-17  Martin Liska  <mliska@suse.cz>
34006         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34007         Release symbol_compare_collection.
34008         * ipa-reference.c: Add TODO that a vector should be released.
34010 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34012         PR target/65296
34013         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34014         to new AVR-LibC file layout (bug #44574).
34015         (*avrlibc_devicelib): Same.
34016         * config/avr/avr-mcus.def: Adjust comments.
34017         * config/avr/avr.opt (nodevicelib): Adjust help.
34019 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
34021         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34023 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
34025         PR c++/64527
34026         * gimplify.c (gimplify_init_constructor): Always emit a
34027         side-effecting constructor.
34029 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34031         PR tree-optimization/64950
34032         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34033         in cfun->curr_properties.
34034         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34035         if we generate an IFN_VA_ARG.
34036         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34037         function if PROP_gimple_lva is not set in src function.
34039 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34040             Michael Matz  <matz@suse.de>
34042         PR tree-optimization/64950
34043         * gimple-iterator.c (update_modified_stmts): Remove static.
34044         * gimple-iterator.h (update_modified_stmts): Declare.
34045         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34046         (gimplify_va_arg_internal): New function.
34047         (gimplify_va_arg_expr): Use IFN_VA_ARG.
34048         * gimplify.h (gimplify_va_arg_internal): Declare.
34049         * internal-fn.c (expand_VA_ARG): New unreachable function.
34050         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34051         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34052         (expand_ifn_va_arg): New function.
34053         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34054         (pass_stdarg::execute): Call expand_ifn_va_arg.
34055         (pass_data_lower_vaarg): New pass_data.
34056         (pass_lower_vaarg): New gimple_opt_pass.
34057         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34058         (make_pass_lower_vaarg): New function.
34059         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34060         properties_required field.
34061         * passes.def (all_passes): Add pass_lower_vaarg.
34062         * tree-pass.h (PROP_gimple_lva): Add define.
34063         (make_pass_lower_vaarg): Declare.
34065 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34067         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34068         * calls.c (call_expr_flags): Same.
34070 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34072         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34073         (pass_stdarg::execute): ... here.
34075 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34076             Michael Matz  <matz@suse.de>
34078         * tree-cfg.c (make_blocks_1): Factor out of ...
34079         (make_blocks): ... here.
34080         (make_edges_bb): Factor out of ...
34081         (make_edges): ... here.
34082         (gimple_find_sub_bbs): New function.
34083         * tree-cfg.h (gimple_find_sub_bbs): Declare.
34085 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34087         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34089 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
34091         * asan.c (set_sanitized_sections): New function.
34092         (section_sanitized_p): Ditto.
34093         (asan_protect_global): Optionally sanitize user-defined
34094         sections.
34095         * asan.h (set_sanitized_sections): Declare new function.
34096         * common.opt (fsanitize-sections): New option.
34097         * doc/invoke.texi (-fsanitize-sections): Document new option.
34098         * opts-global.c (handle_common_deferred_options): Handle new
34099         option.
34101 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34103         PR debug/65771
34104         * dwarf2out.c (loc_list_from_tree): Return NULL
34105         for DEBUG_EXPR_DECL.
34107 2015-04-17  Christian Bruel  <christian.bruel@st.com>
34109         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34110         same attributes.
34112 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34114         * ira-color.c (setup_left_conflict_sizes_p): Do not process
34115         node itself when computing left conflict subnode size.
34117 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34119         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34120         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34121         *fop_<mode>_1_sse using enabled attribute.  Use
34122         register_mixssei387nonimm_operand operand 1 predicate. Change
34123         alternative 3 constraints from "x" to "v".
34125 2015-04-16  Richard Biener  <rguenther@suse.de>
34127         PR tree-optimization/65774
34128         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34129         bit-value tracking on.
34131 2015-04-16  Richard Biener  <rguenther@suse.de>
34133         PR tree-optimization/64277
34134         * tree-vrp.c (check_array_ref): Fix anti-range handling,
34135         simplify upper bound handling.
34136         (search_for_addr_array): Simplify.
34137         (check_array_bounds): Handle ADDR_EXPRs here.
34138         (check_all_array_refs): Simplify.
34140 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34142         * config/i386/i386.c (print_reg): Rewrite function.
34144 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34146         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34147         Invert the condition.
34149 2015-04-16  Renlin Li  <renlin.li@arm.com>
34151         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34152         simplifications for UNSIGNED_FLOAT.
34154 2015-04-16  Nick Clifton  <nickc@redhat.com>
34156         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34157         MUL_UNINIT.
34158         (enum rl78_cpu_type): New.
34159         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34160         (umulhi3_shift_virt): Remove m constraint from operand 1.
34161         (umulqihi3_virt): Likewise.
34162         * config/rl78/rl78.c (rl78_option_override): Add code to process
34163         -mcpu and -mmul options.
34164         (rl78_alloc_physical_registers): Add code to handle divhi and
34165         divsi valloc attributes.
34166         (set_origin): Likewise.
34167         * config/rl78/rl78.h (RL78_MUL_G14): Define.
34168         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34169         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34170         __RL78_Gxx__.
34171         (ASM_SPEC): Pass -mcpu on to assembler.
34172         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34173         (mulqi3_rl78): Likewise.
34174         (mulhi3_g13): Likewise.
34175         (mulhi3): Generate the G13 or G14 versions of the insn directly.
34176         (mulsi3): Likewise.
34177         (mulhi3_g14): Add clobbers of AX and BC.
34178         (mulsi3_g14): Likewise.
34179         (mulsi3_g13): Likewise.
34180         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34181         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34182         * config/rl78/rl78.opt (mmul): Initialise value to
34183         RL78_MUL_UNINIT.
34184         (mcpu): New option.
34185         (m13, m14, mrl78): New option aliases.
34186         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34187         (MULTILIB_DIRNAMES): Add g13 and g14.
34188         * doc/invoke.texi: Document -mcpu and -mmul options.
34190 2015-04-16  Richard Biener  <rguenther@suse.de>
34192         * tree-ssa-ccp.c (likely_value): See if we have operands that
34193         are marked as never simulate again and return CONSTANT in this
34194         case.
34195         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34196         not have any operands that will be simulated again as
34197         not being simulated again.
34199 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
34201         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34202         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34203         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34204         attribute.
34205         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34206         enabled attribute.
34207         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34208         *float<SWI48:mode><MODEF:mode>2_sse.
34209         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34210         enabled attribute.
34211         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34212         enabled attribute.
34214 2015-04-15  Tom de Vries  <tom@codesourcery.com>
34216         PR other/65487
34217         * function.c (push_dummy_function): New function.
34218         (init_dummy_function_start): Use push_dummy_function.
34219         (pop_dummy_function): New function.  Factored out of ...
34220         (expand_dummy_function_end): ... here.
34221         * function.h (push_dummy_function, pop_dummy_function): Declare.
34222         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34223         pop_dummy_function.
34224         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34226 2015-04-15  Jeff Law  <law@redhat.com>
34228         PR tree-optimization/47679
34229         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34230         need for forward declaration in upcoming changes.
34231         (record_conditions, record_edge_info): Likewise.
34233         PR rtl-optimization/42522
34234         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34235         SIGN_EXTRACT as a whole object rather than simplifying
34236         its operand.
34238 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
34240         PR ipa/65765
34241         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34242         and GIMPLE_PREDICT use break instead of return true. For
34243         GIMPLE_EH_DISPATCH, compare dispatch region.
34245 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
34247         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
34248         details about the implementation.  Make clear preference for
34249         __atomic builtins.  Reduce possibility of future change.
34251 2015-04-15  Nick Clifton  <nickc@redhat.com>
34253         * config/rx/rx.opt (mallow-string-insns): New option.
34254         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34255         builtin if string instructions are denied.
34256         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34257         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34258         appropriate.
34259         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34260         * config/rx/rx.md (movstr): Enable pattern only if string
34261         instructions are allowed.
34262         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34263         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34264         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34265         (MULTILIB_DIRNAMES): Add no-strings.
34266         * doc/invoke.texi: Document -mno-allow-string-insns.
34268 2015-04-15  Alan Modra  <amodra@gmail.com>
34270         PR target/65408
34271         PR target/58744
34272         PR middle-end/36043
34273         * calls.c (load_register_parameters): Don't load past end of
34274         mem unless suitably aligned.
34276 2015-04-15  Nick Clifton  <nickc@redhat.com>
34278         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34279         decrement instruction as being frame related.
34280         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34281         based addresses.
34282         If zero extending a function address enclose the operation in
34283         %code(...).
34284         (rl78_preferred_reload_class): New function.
34285         (TARGET_PREFERRED_RELOAD_CLASS): Define.
34286         * config/rl78/rl78.md: Remove useless constraints in expanders.
34287         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34288         (mulhi3_rl78): Likewise.
34289         (mulhi3_g13): Likewise.
34290         (mulsi3_rl78): Likewise.
34291         (es_addr): Move to before the multiply patterns.
34293 2015-04-15  Alan Modra  <amodra@gmail.com>
34295         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34296         and sequence_stack.  Add seq.
34297         (seq_stack): Delete.
34298         * function.c (prepare_function_start): Don't access x_last_insn.
34299         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34300         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34301         * emit_rtl.c (start_sequence, push_topmost_sequence,
34302         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34303         sequence accessors.
34304         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34305         remove_insn): Likewise.  Simplify.
34306         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34307         and pop_topmost_sequence.
34308         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
34309         debug insns.
34310         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34312 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
34314         PR target/65729
34315         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34316         the assertiion.
34318 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
34320         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34321         (LEGACY_INT_REGNO_P): Ditto.
34322         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34323         (ANY_MASK_REG_P): Remove.
34324         (BND_REG_P): Rename from ANY_BND_REG_P.
34325         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34326         legacy integer registers.  Do not handle MMX_REG_P in a special way.
34327         Merge 64byte and 32byte SSE handling.
34329 2015-04-14  Nick Clifton  <nickc@redhat.com>
34331         * expr.c (expand_assignment): Force an address offset computation
34332         into a register before changing its mode.
34333         (expand_expr_real_1): Likewise.
34335 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
34337         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34338         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34339         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34340         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34341         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34342         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34343         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34344         and __aarch64_vget_lane_any.
34346 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
34348         PR rtl-optimization/65761
34349         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34350         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34352 2015-04-14  Richard Biener  <rguenther@suse.de>
34354         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34355         (graphite_can_represent_scev): Use POINTER_TYPE_P.
34357 2015-04-14  Richard Biener  <rguenther@suse.de>
34359         PR tree-optimization/65758
34360         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34361         against -1.
34362         (ccp_lattice_meet): Likewise.
34363         (bit_value_unop): Likewise.
34364         (bit_value_binop): Likewise.
34365         (bit_value_assume_aligned): Likewise.
34367 2015-04-14  Christian Bruel  <christian.bruel@st.com>
34369         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34370         function.
34372 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
34374         PR tree-optimization/63387
34375         * match.pd ((x unord x) | (y unord y) -> (x unord y),
34376         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34378 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
34380         * config/i386/predicates.md (any_QIreg_operand): Rename from
34381         q_regs_operand.  Do not process subregs.
34382         (QIreg_operand): Use QI_REGNO_P predicate.
34383         (ext_QIreg_operand): Ditto.
34384         (ext_register_operand): Ditto.
34385         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34386         (AND splitters): Ditto.
34387         (AND with -65536 splitter): Add SWI48 mode for operand 0.
34388         (AND with -256 splitter): Use any_QIreg_operand predicate and
34389         SWI248 mode for operand 0.
34390         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34391         mode for operand 0.
34392         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34394 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
34396         * doc/plugins.texi: Rewrite first introductory paragraph.
34398 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34400         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34401         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34403 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34405         * ipa-profie.c (ipa_profile): Check number of parameters
34406         and possible polymorphic call targets before
34407         devirtualizing.
34409 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
34411         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34412         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34414 2015-04-13  Richard Biener  <rguenther@suse.de>
34416         PR tree-optimization/65204
34417         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34418         takens for bit-CCP.
34420 2015-04-13  Richard Biener  <rguenther@suse.de>
34422         PR target/65660
34423         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34424         and cond_not_taken_branch_cost to 4 and 2.
34425         (bdver2_cost): Likewise.
34426         (bdver3_cost): Likewise.
34427         (bdver4_cost): Likewise.
34429 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34431         * hash-table.h (hash_table constructor): Add mem stats.
34432         (alloc_entries): Likewise.
34434 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34436         * ipa-cp.c (ipcp_driver): Relase prev_edge.
34437         * passes.c (execute_one_pass): Only add transform if pass has one.
34439 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
34441         * config/i386/i386.c (ix86_option_override_internal): Don't set
34442         -fprefetch-loop-arrays if optimizing for size.
34444 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
34445             Gerald Pfeifer  <gerald@pfeifer.com>
34447         * doc/contrib.texi (Contributors): Add Martin Jambor and
34448         Michael Matz.
34450 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
34452         * BASE-VER: Set to 6.0.0.
34454         PR tree-optimization/65747
34455         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34456         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34458 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
34460         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34461         sentence.  Improve grammar.
34463 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
34465         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34467 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
34469         PR ipa/65743
34470         * ipa-inline-transform.c (speculation_removed): Remove static var.
34471         (check_speculations): New function.
34472         (clone_inlined_nodes): Do not check spculations.
34473         (inline_call): Call check_speculations.
34474         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34475         consider non-invariants.
34477 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
34478             Martin Liska  <mliska@suse.cz>
34480         PR ipa/65722
34481         * ipa-icf.c (sem_item::compare_cgraph_references): function and
34482         variable can not match.
34483         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34484         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34486 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
34488         PR tree-optimization/65735
34489         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34490         Remove visited_phis argument, add visited_bbs, avoid recursing into the
34491         same bb rather than just into the same phi node.
34492         (thread_through_normal_block): Adjust caller.
34494 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
34496         * doc/contrib.texi (Contributors): Add Ira Rosen.
34498 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
34500         * gcov.c (find_source): Fix miswording in error message.
34501         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34502         (ix86_expand_sse_comi_round): Fix typo in error message.
34504 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
34506         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34508 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
34510         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34512 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
34514         PR target/65710
34515         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34516         Print bad_spills_num and insn_pseudos_num.
34518 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34520         PR target/65694
34521         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34522         when creating +1 values for SImode.
34524 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
34526         PR target/65729
34527         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34528         assert.
34530 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
34531             Iain Sandoe  <iain@codesourcery.com>
34533         PR target/65351
34534         * configure: Regenerate.
34536 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
34538         PR target/65671
34539         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34541 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
34543         * doc/contrib.texi (Contributors): Add John Marino.
34545 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
34547         PR tree-optimization/65709
34548         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34549         TREE_TYPE (TREE_TYPE (t)).
34551 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
34553         PR target/65710
34554         * lra-int.h (lra_bad_spill_regno_start): New.
34555         * lra.c (lra_bad_spill_regno_start): New.
34556         (lra): Set up lra_bad_spill_regno_start.  Set up
34557         lra_constraint_new_regno_start unconditionally.
34558         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34559         spill preferences.
34561 2015-04-09  Marek Polacek  <polacek@redhat.com>
34562             Jakub Jelinek  <jakub@redhat.com>
34564         PR middle-end/65554
34565         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34566         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34567         of STRIP_NOPS.
34569 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
34571         PR rtl-optimization/65693
34572         * combine.c (is_parallel_of_n_reg_sets): Move outside of
34573         #ifndef HAVE_cc0.
34575 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
34577         PR target/65296
34578         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34579         device specs file if "device-specs%s" didn't resolve to a path.
34581 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
34583         PR target/65676
34584         * config/i386/i386.c (fixup_modeless_constant): New.
34585         (ix86_expand_args_builtin): Fixup modeless constant operand.
34586         (ix86_expand_round_builtin): Ditto.
34587         (ix86_expand_special_args_builtin): Ditto.
34588         (ix86_expand_builtin): Ditto.
34590 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
34592         PR target/65693
34593         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34594         any pow2 integer in between 2 and 0x80000000U inclusive.
34596 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
34598         PR rtl-optimization/65693
34599         * combine.c (is_parallel_of_n_reg_sets): Change first argument
34600         from an rtx_insn * to an rtx.
34601         (try_combine): Adjust both callers.  Use it once more.
34603 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34605         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34606         (chkp_make_static_const_bounds): Search existing
34607         symbol by assembler name.  Use make_decl_one_only.
34608         (chkp_get_zero_bounds_var): Remove node search which
34609         is now performed in chkp_make_static_const_bounds.
34610         (chkp_get_none_bounds_var): Likewise.
34612 2015-04-08  Michael Witten  <mfwitten@gmail.com>
34614         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34615         to an example.
34617 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34619         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34621 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
34623         * doc/extend.texi (__sync Builtins): Fix grammar.
34625 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34627         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34629 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34631         * varasm.c (emit_local): Move definition of align.
34633 2015-04-08  Julian Brown  <julian@codesourcery.com>
34635         * config/nvptx/mkoffload.c (process): Support variable mapping.
34637 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
34639         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34640         alpha_links **.
34641         (alpha_write_one_linkage): Correct typo.
34643 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34645         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34647 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
34649         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34651 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
34653         * tree-chkp.h (chkp_insert_retbnd_call): New.
34654         * tree-chkp.c (chkp_insert_retbnd_call): New.
34655         * ipa-split.c (insert_bndret_call_after): Remove.
34656         (split_function): Use chkp_insert_retbnd_call.
34657         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34658         bounds for instrumented functions.
34660 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
34662         PR ipa/65540
34663         * calls.c (initialize_argument_information): When producing tail
34664         call also turn SSA_NAMES passed by references to original PARM_DECLs
34666 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
34668         PR target/65648
34669         * lra-remat.c (do_remat): Process input and non-input insn
34670         registers separately.
34672 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34674         PR debug/65678
34675         * valtrack.c (debug_lowpart_subreg): New function.
34676         (dead_debug_insert_temp): Use it.
34678         PR middle-end/65680
34679         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34680         into signed HOST_WIDE_INT the same as negative bit_offset.
34682 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
34684         * ipa-comdats.c (ipa_comdats): Visit all thunks
34685         to set proper comdat group.
34687 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34689         PR target/65489
34690         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34691         on constants for NEON VSTRUCT modes.
34693 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
34694             Iain Sandoe  <iain@codesourcery.com>
34696         PR target/65351
34697         * configure: Regenerate.
34699 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
34701         PR target/65614
34702         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34703         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34704         that LFD is used to load double constants instead of LFS.  Add
34705         defaults for all costs structures.  Add comments for missing
34706         initialization fields.
34707         (size32_cost): Likewise.
34708         (size64_cost): Likewise.
34709         (rs64a_cost): Likewise.
34710         (mpccore_cost): Likewise.
34711         (ppc403_cost): Likewise.
34712         (ppc405_cost): Likewise.
34713         (ppc440_cost): Likewise.
34714         (ppc476_cost): Likewise.
34715         (ppc601_cost): Likewise.
34716         (ppc603_cost): Likewise.
34717         (ppc604_cost): Likewise.
34718         (ppc604e_cost): Likewise.
34719         (ppc620_cost): Likewise.
34720         (ppc630_cost): Likewise.
34721         (ppccell_cost): Likewise.
34722         (ppc750_cost): Likewise.
34723         (ppc7450_cost): Likewise.
34724         (ppc8540_cost): Likewise.
34725         (ppce300c2c3_cost): Likewise.
34726         (ppce500mc_cost): Likewise.
34727         (ppce500mc64_cost): Likewise.
34728         (ppce5500_cost): Likewise.
34729         (ppce6500_cost): Likewise.
34730         (titan_cost): Likewise.
34731         (power4_cost): Likewise.
34732         (power6_cost): Likewise.
34733         (power7_cost): Likewise.
34734         (power8_cost): Likewise.
34735         (ppca2_cost): Likewise.
34736         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34738         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34739         instead of XXLOR to copy SFmode to clear out dirty bits created
34740         when SFmode denormals are generated.
34741         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34742         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34744 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34746         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34747         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34748         * config/aarch64/aarch64-tune.md: Regenerate.
34750 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
34752         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34753         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34754         * config/arm/arm-cores.def (exynos-m1): New core.
34755         * config/arm/arm-tune.md: Regenerate.
34756         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34757         * config/arm/bpabi.h: Likewise.
34759 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34761         * ipa-cp (set_single_call_flag): Remove too
34762         restrictive assert.
34764 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
34766         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34767         GOMP_offload_unregister from the destructor.
34769 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
34771         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34772         flags for instrumentation thunk.
34773         (chkp_produce_thunks): Likewise.
34775 2015-04-05  Martin Liska  <mliska@suse.cz>
34777         PR ipa/65665
34778         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34779         has computed data structure.
34780         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34782 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
34784         * invoke.texi (inline-unit-growth): Increase growth to 20%
34785         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34787 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
34789         PR target/65647
34790         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
34791         value checking.
34792         (lra_rematerialization_iter): New.
34793         * lra.c (lra): Initialize lra_rematerialization_iter.
34794         Stop updating lra_constraint_new_regno_start after switching of
34795         inheritance and rematerialization.
34796         * lra-remat.c (lra_rematerialization_iter): New.
34797         (lra_remat): Add printing pass iteration.  Do rematerialization
34798         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34800 2015-04-04  Richard Biener  <rguenther@suse.de>
34802         PR tree-optimization/64909
34803         PR tree-optimization/65660
34804         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34805         to take a cost vector for scalar iteration cost.
34806         (vect_get_single_scalar_iteration_cost): Likewise.
34807         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34808         Compute the scalar iteration cost into a cost vector.
34809         (vect_get_known_peeling_cost): Use the scalar cost vector to
34810         account for the cost of the peeled iterations.
34811         (vect_estimate_min_profitable_iters): Likewise.
34812         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34813         Likewise.
34815 2015-04-04  Alan Modra  <amodra@gmail.com>
34817         PR target/65576
34818         PR target/65240
34819         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34820         0.0 constant unless TARGET_VSX.
34821         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34822         alternative.
34824 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34826         PR ipa/65654
34827         * ipa-inline-transform.c (inline_call): Skip sanity check to work
34828         around the ICE
34830 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34832         PR ipa/65655
34833         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34834         speculative indirect edges to avoid ordering issue.
34836 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
34838         PR ipa/65076
34839         * ipa-inline.c (edge_badness): Add combined size to the denominator.
34841 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
34843         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34844         TYPE_ARTIFICIAL on the .omp_data* types.
34846 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34848         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34849         instrumentation thunks.
34851 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34853         * config/i386/i386.c (ix86_expand_call): Avoid nested
34854         PARALLEL in returned call value.
34856 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34858         * lto-cgraph.c (input_cgraph_1): Always link instrumented
34859         assembler name with original one.
34861 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34863         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34865 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34867         Revert parts of r216820.
34868         * config/i386/i386.md (movqi_internal): Correct type calculation
34869         for alternatives 3 and 5.
34871 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
34873         PR preprocessor/61977
34874         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34875         predefine __vector/__bool/__pixel macros nor context sensitive
34876         macros for CLK_ASM.
34877         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34879 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
34881         * config/pa/pa.c (pa_output_move_double): Directly handle register
34882         indexed memory operand.  Simplify handling of scaled register indexed
34883         memory operands.
34885 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
34887         PR driver/65444
34888         * config/i386/linux-common.h (MPX_SPEC): New.
34889         (CHKP_SPEC): Add MPX_SPEC.
34890         * doc/invoke.texi (-fcheck-pointer-boudns): Document
34891         possible issues with '-z bndplt' support in linker.
34893 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
34895         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34896         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34897         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34898         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34899         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34901 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
34903         * config/i386/sync.md (UNSPEC_MOVA): Remove.
34904         (atomic_load<mode>): Change operand 0 predicate to
34905         nonimmediate_operand and fix up the destination when needed.
34906         Use UNSPEC_LDA.
34907         (atomic_loaddi_fpu): Use UNSPEC_LDA.
34908         (atomic_store<mode>): Change operand 1 predicate to
34909         nonimmendate_operand and move the source to register when needed.
34910         Use UNSPEC_STA.
34911         (atomic_store<mode>_1): Use UNSPEC_STA.
34912         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34913         Fix moves from memory operand.  Use UNSPEC_STA.
34915 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34917         * expmed.c (strict_volatile_bitfield_p): Check that the access will
34918         not cross a MODESIZE boundary.
34919         (store_bit_field, extract_bit_field): Added assertions in the
34920         strict volatile bitfields code path.
34922 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
34924         PR target/65624
34925         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34926         Increase args array size by one to avoid buffer overflow.
34928 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
34930         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34931         split_part.
34932         * ipa-inline.c (edge_badness): Add wrapper penalty.
34933         (sum_callers): Move up.
34934         (inline_small_functions): Set single_caller.
34935         * ipa-inline.h (inline_summary): Add single_caller.
34936         * ipa-split.c (split_function): Set split_part.
34937         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34938         * cgraph.h (cgraph_node): Add split_part.
34940 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
34942         PR target/58945
34943         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34944         Do not split operands 0 and operands 2 to halfmode.
34945         (atomic_compare_and_swap<mode>): Update for
34946         atomic_compare_and_swap<dwi>_doubleword changes.
34948 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
34950         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34951         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34952         no caching is done.
34954 2015-03-31  Martin Liska  <mliska@suse.cz>
34956         PR ipa/65557
34957         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34958         has already filled up function summary.
34959         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34961 2015-03-31  Richard Biener  <rguenther@suse.de>
34963         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34964         of types.
34966 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
34968         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34969         nested functions.
34970         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34971         (s390_asm_output_function_label): Adapt to new signature of
34972         s390_function_num_hotpatch_hw
34973         Optimise the code generating assembler output.
34974         Add comments to assembler file.
34976 2015-03-31  Richard Biener  <rguenther@suse.de>
34978         PR middle-end/65626
34979         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34980         of the noreturn call so it is last and cleanup_control_flow_bb
34981         can do the CFG part.
34983 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
34985         PR target/65531
34986         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34987         same_comdat_group for external symbols.
34988         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34989         infinite same_comdat_group traversal loop.
34991 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
34993         PR plugins/61176
34994         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34995         automatically to $headers.
34997 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
34999         PR ipa/65610
35000         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35001         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35002         function.
35003         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35004         Use it.
35005         * ipa-prop.c (param_type_may_change_p): Likewise.
35006         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35007         (remove_unused_scope_block_p): Add in_ctor_dtor_block
35008         argument.  Before inlining, preserve
35009         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35010         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
35011         recursive calls.
35012         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35014 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35016         PR ipa/65076
35017         * ipa-inline.c (edge_badness): Base denominator on callee's
35018         grwoth squared.
35020 2015-03-27  Martin Jambor  <mjambor@suse.cz>
35022         PR ipa/65478
35023         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35024         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35025         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35026         node_calling_single_call.
35027         * ipa-cp.c (count_callers): New function.
35028         (set_single_call_flag): Likewise.
35029         (initialize_node_lattices): Count callers and set single_flag_call if
35030         necessary.
35031         (incorporate_penalties): New function.
35032         (good_cloning_opportunity_p): Use it, dump new flags.
35033         (propagate_constants_topo): Set node_within_scc flag if appropriate.
35034         * doc/invoke.texi (ipa-cp-recursion-penalty,
35035         ipa-cp-single-call-pentalty): Document.
35037 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35039         PR ipa/65588
35040         * symtab.c (symtab_node::get_partitioning_class): Register vars
35041         are duplicated.
35042         * varpool.c (symbol_table::output_variables) Do not assemble unefined
35043         decls for non-symbols.
35045 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
35047         PR target/65248
35048         * output.h (default_binds_local_p_2): New.
35049         * varasm.c (default_binds_local_p_2): Renamed to ...
35050         (default_binds_local_p_3): This.  Don't return true on protected
35051         data symbol if protected data may be external.
35052         (default_binds_local_p): Use default_binds_local_p_3.
35053         (default_binds_local_p_1): Likewise.
35054         (default_binds_local_p_2): New.
35055         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35056         default_binds_local_p_2 if TARGET_MACHO is undefined.
35058 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
35060         PR target/65593
35061         * config/i386/i386.c (legitimize_pic_address): If base
35062         is SYMBOL_REF or LABEL_REF using %rip addressing, force
35063         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35065 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35067         PR target/65531
35068         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35069         comdat groups.
35071 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35073         PR ipa/65600
35074         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35075         of optimized out indirect call.
35076         (redirect_to_unreachable): Always build symbol table node for
35077         BUILT_IN_UNREACHABLE
35079 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
35081         PR target/65407
35082         * ira-costs.c (record_reg_classes): Process all constraint string
35083         containing 0-9.
35085 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
35087         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35088         memory_operand.
35090         PR target/65052
35091         * config/c6x/constraints.md (S3): New constraint.
35092         * config/c6x/c6x.md (real_jump): Use it.
35094 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35096         PR middle-end/65595
35097         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35098         do redirection if the call is not optimized out.
35100 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35102         PR target/65495
35103         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35104         (fchkp-check-incomplete-type): Add LTO.
35105         (fchkp-zero-input-bounds-for-main): Likewise.
35106         (fchkp-first-field-has-own-bounds): Likewise.
35107         (fchkp-narrow-bounds): Likewise.
35108         (fchkp-narrow-to-innermost-array): Likewise.
35109         (fchkp-use-static-bounds): Likewise.
35110         (fchkp-use-static-const-bounds): Likewise.
35111         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35113 2015-03-27  Marek Polacek  <polacek@redhat.com>
35115         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35117 2015-03-27  Marek Polacek  <polacek@redhat.com>
35119         PR sanitizer/65583
35120         * ubsan.c (ubsan_create_edge): New function.
35121         (instrument_bool_enum_load): Call it.
35122         (instrument_nonnull_arg): Likewise.
35123         (instrument_nonnull_return): Likewise.
35124         (instrument_object_size): Likewise.
35126 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35128         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35129         auto_vec.
35131 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35133         PR lto/65536
35134         * lto-streamer.h (class lto_location_cache): New.
35135         (struct data_in): Add location_cache.
35136         (lto_input_location): Update prototype.
35137         (stream_input_location_now): New.
35138         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35139         pointer to location.
35140         (stream_input_location): Update.
35141         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35142         (warn_odr): Apply location cache before warning.
35143         (lto_input_location): Update prototype.
35144         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35145         Use stream_input_location_now.
35146         * lto-streamer-in.c (lto_location_cache::current_cache): New static
35147         variable.
35148         (lto_location_cache::cmp_loc): New function.
35149         (lto_location_cache::apply_location_cache): New function.
35150         (lto_location_cache::accept_location_cache): New function.
35151         (lto_location_cache::revert_location_cache): New function.
35152         (lto_location_cache::input_location): New function.
35153         (lto_input_location): Do location caching.
35154         (stream_input_location_now): New function.
35155         (input_eh_region, input_struct_function_base): Use
35156         stream_input_location_now.
35157         (lto_data_in_create): use new.
35158         (lto_data_in_delete): Use delete.
35159         * tree-streamer-in.c (unpack_ts_block_value_fields,
35160         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35161         lto_input_ts_exp_tree_pointers): Update for cached location api.
35163 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35165         PR ipa/65076
35166         * passes.def: Add pass_nothrow.
35167         * ipa-pure-const.c: (pass_data_nothrow): New.
35168         (pass_nothrow): New.
35169         (pass_nothrow::execute): New.
35170         (make_pass_nothrow): New.
35171         * tree-pass.h (make_pass_nothrow): Declare.
35173 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35175         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35176         edge to change by speculation resolution or redirection.
35177         (edge_set_predicate): Likewise.
35178         (inline_summary_t::duplicate): Likewise.
35179         (remap_edge_summaries): Likewise.
35181 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35183         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35184         New macros.
35185         (can_inline_edge_p): Relax option matching for always inline functions.
35187 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
35189         PR target/65561
35190         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35191         Check operand 4 and operand 0 for equality.
35192         (avx512f_vextract<shuffletype>32x4_1_maskm):
35193         Check operand 6 and operand 0 for equality.
35194         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35195         for equality.
35196         (vec_extract_hi_<mode>_maskm): Ditto.
35198 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35200         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35201         dead calls back to live.
35202         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35203         cross check to ...
35204         (cgraph_node::verify_node): ... here; verify only callee edges,
35205         not caller.
35206         * cif-code.def (CILK_SPAWN): New code.
35208 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35210         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35211         (edge_set_predicate): Use it to mark unreachable edges.
35212         (inline_summary_t::duplicate): Remove unnecesary code.
35213         (remap_edge_summaries): Likewise.
35214         (dump_inline_summary): Report contains_cilk_spawn.
35215         (compute_inline_parameters): Compute contains_cilk_spawn.
35216         (inline_read_section, inline_write_summary): Stream
35217         contains_cilk_spawn.
35218         * ipa-inline.c (can_inline_edge_p): Do not touch
35219         DECL_STRUCT_FUNCTION that may not be available;
35220         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35221         remove check for callee_fun->can_throw_non_call_exceptions and
35222         replace it by optimization attribute check; check for flag_exceptions.
35223         * ipa-inline-transform.c (inline_call): Maintain
35224         DECL_FUNCTION_PERSONALITY
35225         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35227 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
35229         PR tree-optimization/65551
35230         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35231         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35233 2015-03-26  Richard Biener  <rguenther@suse.de>
35235         PR middle-end/65555
35236         * tree-cfg.c (verify_gimple_call): Do not require a call to
35237         have no LHS if it wasn't recognized as control altering yet.
35239 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
35241         PR tree-optimization/64715
35242         * passes.def: Add another instance of pass_object_sizes before ccp1.
35243         * tree-object-size.c (pass_object_sizes::execute): In
35244         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35245         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35246         __bos result and the computed constant.  Remove redundant
35247         checks, obsoleted by gimple_call_builtin_p test.
35249         * var-tracking.c (variable_tracking_main_1): Don't track
35250         variables for targetm.no_register_allocation targets.
35252 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
35254         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35255         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35257 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
35259         PR target/65569
35260         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35261         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
35262         0.0 is correctly setup.
35263         (extenddftf2_internal): Likewise.
35265 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
35267         PR tree-optimization/65177
35268         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35269         (bb_in_bbs): New.
35270         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
35271         edges not adjacent on the path to the original code.
35273 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
35275         PR bootstrap/65537
35276         * doc/install.texi (Building a native compiler): Document new
35277         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
35278         configuration assumes that the host supports the linker plugin.
35280 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35282         PR target/65508
35283         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35284         chain for generated call.
35286 2015-03-25  Richard Biener  <rguenther@suse.de>
35288         * passes.c (pass_manager::execute_early_local_passes): Guard
35289         execution of pass_chkp_instrumentation_passes with
35290         flag_check_pointer_bounds.
35291         (pass_chkp_instrumentation_passes::gate): Likewise.
35293 2015-03-25  Martin Liska  <mliska@suse.cz>
35295         PR tree-optimization/65538
35296         * symbol-summary.h (function_summary::~function_summary):
35297         Relese memory for allocated summaries.
35298         (function_summary::release): New function.
35300 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
35302         PR lto/65515
35303         * lto-streamer-out.c (DFS::worklist): New struct.
35304         (DFS::worklist_vec): New data member.
35305         (DFS::next_dfs_num): Remove.
35306         (DFS::DFS): Rewritten using worklist instead of recursion,
35307         using most of code from DFS::DFS_write_tree.
35308         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35309         pass it to DFS_write_tree calls.
35310         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35311         quick initial checks push it into worklist_vec and return.
35313 2015-03-25  Richard Biener  <rguenther@suse.de>
35315         PR middle-end/65519
35316         * genmatch.c (expr::gen_transform): Re-write to avoid
35317         using gimple_build.
35319 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
35321         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35323 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
35325         * config/arm/arm.opt (print_tune_info): New option.
35326         * config/arm/arm.c (arm_print_tune_info): New function.
35327         (arm_file_start): Call arm_print_tune_info.
35328         * config/arm/arm-protos.h (struct tune_params): Add comment.
35329         * doc/invoke.texi (@item -mprint-tune-info): New item.
35330         (-mtune): mention it in ARM Option Summary.
35332 2015-03-25  DJ Delorie  <dj@redhat.com>
35334         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35335         correct clause.
35337 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
35338             Martin Liska  <mliska@suse.cz>
35340         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35341         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35342         (sem_item::add_type): New function.
35343         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35344         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35345         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35346         (sem_function::equals_wpa): Fix typo.
35347         * ipa-icf.h (sem_item::add_type): New function.
35348         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35349         order.
35351 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
35353         PR tree-optimization/65533
35354         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35355         with swapped operands, call vect_free_slp_tree on
35356         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35357         vector.
35359 2015-03-24  Richard Biener  <rguenther@suse.de>
35361         PR middle-end/65517
35362         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35363         for fixup if necessary.
35365 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
35367         * doc/extend.texi (Function Attributes): Add @cindex entries
35368         for all attributes and regularize their format.  Delete text
35369         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
35370         information about "eightbit_data", "tiny_data", and "model"
35371         variable attributes to the Variable Attributes section.  Fix
35372         some obvious typos and copy-editing issues.
35373         (Variable Attributes, Type Attributes): Likewise add/fix
35374         @cindex entries for all attributes.
35376 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
35378         PR target/65523
35379         * tree-chkp.c (chkp_build_returned_bound): Ignore
35380         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35382 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
35384         PR target/65505
35385         * config/sh/predicates.md (simple_mem_operand,
35386         displacement_mem_operand): Add test for reg.
35387         (short_displacement_mem_operand): Test for displacement_mem_operand
35388         before invoking sh_disp_addr_displacement.
35389         * config/sh/constraints.md (Sdd, Sra): Simplify.
35390         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35391         Remove redundant displacement_mem_operand tests.
35393 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
35395         PR target/65296
35396         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35397         the same -mmcu=MCU more than once.
35399 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
35401         PR bootstrap/65522
35402         * ipa-devirt.c: Remove duplicate demangle.h include.
35404         PR target/65504
35405         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35406         on the pseudo.
35407         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35408         REG_POINTER on *destptr after adjusting it for prologue size.
35410         PR ipa/65521
35411         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35412         ultimate_alias_target ()->order ints instead of
35413         ultimate_alias_target () pointers.
35415 2015-03-23  Richard Biener  <rguenther@suse.de>
35417         PR tree-optimization/65518
35418         * tree-vect-stmts.c (vectorizable_load): Reject single-element
35419         interleaving cases we generate absymal code for.
35421 2015-03-23  Richard Biener  <rguenther@suse.de>
35423         PR tree-optimization/65494
35424         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35425         matches here.
35426         (vect_analyze_slp_instance): But do that here, always and once.
35428 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35430         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35431         adding T or multiplying by T+1 and subracting T.
35433 2015-03-22  Jeff Law  <law@redhat.com>
35435         PR rtl-optimization/64317
35436         * Makefile.in (OBJS): Add gcse-common.c
35437         * gcse.c: Include gcse-common.h
35438         (struct modify_pair_s): Move structure definition to gcse-common.h
35439         (compute_transp): Move function to gcse-common.c.
35440         (canon_list_insert): Similarly.
35441         (record_last_mem_set_info): Break out some code and put it into
35442         gcse-common.c.  Call into the new common code.
35443         (compute_local_properties): Pass additional arguments to compute_transp.
35444         * postreload-gcse.c: Include gcse-common.h and df.h
35445         (modify_mem_list_set, blocks_with_calls): New variables.
35446         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35447         (get_bb_avail_insn): Pass in the expression index too.
35448         (alloc_mem): Allocate memory for the new bitmaps and lists.
35449         (free_mem): Free memory for the new bitmaps and lists.
35450         (insert_expr_in_table): Record a bitmap index for each entry we
35451         add to the table.
35452         (record_last_mem_set_info): Call into common code in gcse-common.c.
35453         (get_bb_avail_insn): If no available insn was found in the requested
35454         BB.  If BB has a single predecessor, see if the expression is
35455         transparent in BB and available in that single predecessor.
35456         (compute_expr_transp): New wrapper for compute_transp.
35457         (eliminate_partially_redundant_load): Pass expression's bitmap_index
35458         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
35459         (gcse_after_reload_main): If there are elements in the hash table,
35460         then compute transparency for all the elements in the hash table.
35461         * gcse-common.h: New file.
35462         * gcse-common.c: New file.
35464 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
35466         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35467         as an adjective.
35468         (System Headers): Likewise.
35469         (Ifdef): Likewise.
35470         (Traditional macros): Likewise.
35471         (Invocation): Likewise.
35472         (Option Index): Likewise.
35473         * doc/cppopts.texi (-M): Likewise.
35474         (-finput-charset): Likewise.
35475         (--help): Likewise.
35476         * doc.invoke.texi (AVR Options): Likewise.
35477         (V850 Options): Likewise.
35479 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
35481         PR ipa/65475
35482         * ipa-devirt.c: Include demangle.h
35483         (odr_type_d): Add field rtti_broken.
35484         (odr_subtypes_equivalent_p): Do not require name to match.
35485         (compare_virtual_tables): Fix typo; if type already has ODR violation,
35486         bypass the tests; be ready for function referneces in vtables that are
35487         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35488         (warn_odr): Give up for nameless types.
35489         (warn_types_mismatch): Report mismatch in mangled names;
35490         report mismatch in anonymous namespaces; look into component types to
35491         give useful error; report when mismatch is dragged in from other ODR
35492         type.
35493         (odr_types_equivalent_p): Match types for being polymorphic; avoid
35494         duplicated diagnostics.
35495         (add_type_duplicate): Reorder checks so more informative ones come
35496         first; fix typo; do not output "the extra base is defined here" when
35497         we did not warn.
35498         (BINFO_N_BASE_BINFOS): Relax sanity check.
35500 2015-03-22  Martin Liska  <mliska@suse.cz>
35501             Jakub Jelinek  <jakub@redhat.com>
35503         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35504         masks that can potentially include a builtin.
35505         (ix86_add_new_builtins): Introduce fast filter for isa values
35506         that cannot trigger builtin inclusion.
35508 2015-03-22  Martin Liska  <mliska@suse.cz>
35510         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35511         (sem_item::update_hash_by_local_refs): Likewise.
35512         (sem_variable::get_hash): Empty line is fixed.
35513         (sem_item_optimizer::execute): Include adding of hash references.
35514         (sem_item_optimizer::update_hash_by_addr_refs): New function.
35515         (sem_item_optimizer::build_hash_based_classes): Use local hash.
35516         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35517         (sem_item::update_hash_by_local_refs): Likewise.
35519 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35521         PR ipa/65502
35522         * ipa-comdats.c (enqueue_references): Walk through thunks.
35523         (ipa_comdats): Likewise.
35524         (set_comdat_group_1): New function.
35526 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35528         PR ipa/65475
35529         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35530         non-polymorphic
35532 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
35533             Gerald Pfeifer  <gerald@pfeifer.com>
35535         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35537 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
35538             Sandra Loosemore  <sandra@codesourcery.com>
35540         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35541         function parameter declaration.
35542         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35543         Update arguments to nios2_adjust_call_address().
35544         (sibcall_internal): Rename from *sibcall.
35545         (sibcall_value_internal): Rename from *sibcall_value.
35546         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35547         (nios2_large_got_address): Add target temp reg parameter.
35548         (nios2_got_address): Adjust call to nios2_large_got_address, add
35549         force_reg around it.
35550         (nios2_load_pic_address): Add target temp reg parameter, replace call
35551         to nios2_got_address with corresponding code.
35552         (nios2_legitimize_constant_address): Update call to
35553         nios2_load_pic_address.
35554         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35555         to use temp reg for PIC loading purposes.
35556         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35557         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35558         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35560 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35562         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35563         usage of "the @option{...}".
35564         (-Wopenmp-simd): Likewise.
35565         (-fsanitize-recover): Likewise.
35566         (-fsanitize-undefined-trap-on-error): Likewise.
35567         (-flto): Likewise.
35568         (tracer-dynamic-coverage-feedback): Likewise.
35569         (reorder-block-duplicate-feedback): Likewise.
35570         (loop-unroll-jam-size): Likewise.
35571         (-B): Likewise.
35572         (-I-): Likewise.
35573         (-mabs=legacy): Likewise.
35574         (-mupper-regs-df): Likewise.
35575         (-mupper-regs-sf): Likewise.
35576         (-mpointers-to-nested-functions): Likewise.
35578 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35580         * doc/extend.texi (Cilk Plus Builtins): Add markup.
35582 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
35584         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35585         additional index entries and cross-references.
35586         (-fchkp-check-incomplete-type): Likewise.
35587         (-fchkp-first-field-has-own-bounds): Likewise.
35588         (-fchkp-narrow-to-innermost-array): Likewise.
35589         (-fchkp-use-fast-string-functions): Likewise.
35590         (-fchkp-use-nochk-string-functions): Likewise.
35591         (-fchkp-use-static-const-bounds): Likewise.
35592         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35593         (-fchkp-instrument-marked-only): Likewise.
35594         (-fchkp-use-wrappers): Likewise.
35595         (-static-libmpx): Likewise.
35596         (-static-libmpxwrappers): Likewise.
35597         * doc/extend.texi (bnd_legacy): Likewise.
35598         (bnd_instrument): Likewise.
35599         (bnd_variable_size): Likewise.
35600         (Pointer Bounds Checker builtins): Likewise.
35602 2015-03-21  Tom de Vries  <tom@codesourcery.com>
35604         PR tree-optimization/65458
35605         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35606         * cgraph.h (cgraph_node): Add parallelized_function field.
35607         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35608         (input_overwrite_node): Read parallelized_function field.
35609         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35610         parallelized_function on cgraph_node for child_fn.
35611         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35612         Remove include of gt-tree-parloops.h.
35613         (parallelized_functions): Remove static variable.
35614         (parallelized_function_p): Rewrite using parallelized_function field of
35615         cgraph_node.
35616         (create_loop_fn): Remove adding to parallelized_functions.
35617         * Makefile.in (GTFILES): Remove tree-parloops.c
35619 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
35621         PR rtl-optimization/64366
35622         * lra.c (lra_update_insn_regno_info): Consider regs in
35623         CALL_INSN_FUNCTION_USAGE memory.
35625 2015-03-20  Richard Biener  <rguenther@suse.de>
35627         PR middle-end/64715
35628         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35629         for type comparison and gcc_checking_assert.
35630         (chrec_fold_plus_poly_poly): Likewise.
35631         (chrec_fold_multiply_poly_poly): Likewise.
35632         (chrec_convert_1): Likewise.
35633         * gimplify.c (gimplify_expr): Remove premature folding of
35634         &X + CST to &MEM[&X, CST].
35636 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
35638         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35639         already is final.
35640         (ipa_inline): Recompute inline_failed codes.
35641         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35642         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35643         CIF_FINAL_ERROR.
35645 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
35647         PR rtl-optimization/60851
35648         * recog.c (constrain_operands): Accept a pseudo register before reload
35649         for LRA enabled targets.
35651 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
35653         PR target/65240
35654         * config/rs6000/predicates.md (easy_fp_constant): Remove special
35655         -ffast-math handling that kept non-0 constants live in the RTL
35656         until reload.  Remove logic testing the number of instructions it
35657         took to create a constant in a GPR that was never used, due to a
35658         test for soft-float earlier.
35659         (memory_fp_constant): Delete, no longer used.
35661         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35662         alternatives for loading non-0 constants into GPRs for hard
35663         floating point that is no longer needed due to changes in
35664         easy_fp_constant.  Add support for loading 0.0 into GPRs.
35665         (mov<mode>_hardfloat32): Likewise.
35666         (mov<mode>_hardfloat64): Likewise.
35667         (mov<mode>_64bit_dm): Likewise.
35668         (movtd_64bit_nodm): Likewise.
35669         (pre-reload move FP constant define_split): Delete define_split,
35670         since it is no longer used.
35671         (extenddftf2_internal): Remove GHF constraints that are not valid
35672         for extenddftf2.
35674 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
35676         PR rtl-optimization/63491
35677         * lra-constraints.c (check_and_process_move): Use src instead of
35678         sreg.  Remove some dead code.
35680 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
35682         PR ipa/65380
35683         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35684         (sem_variable::merge): Likewise.
35686 2015-03-19  Martin Liska  <mliska@suse.cz>
35688         PR ipa/65465
35689         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35690         all fields of cgraph_thunk_info.
35692 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
35694         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35695         clone instrumented thunks.
35697 2015-03-19  Richard Biener  <rguenther@suse.de>
35699         Revert
35700         2015-03-10  Richard Biener  <rguenther@suse.de>
35702         PR middle-end/63155
35703         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35704         * tree-ssa-coalesce.c: Include timevar.h.
35705         (attempt_coalesce): Handle graph being NULL.
35706         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35707         Split out abnormal coalescing to ...
35708         (perform_abnormal_coalescing): ... this function.
35709         (coalesce_ssa_name): Perform abnormal coalescing without computing
35710         live/conflict.
35711         (verify_ssa_coalescing_worker): New function.
35712         (verify_ssa_coalescing): Likewise.
35714 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35715             Jakub Jelinek  <jakub@redhat.com>
35717         PR sanitizer/65400
35718         * tsan.c (instrument_gimple): Clear tail call flag on
35719         calls.
35721 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
35723         PR sanitizer/65400
35724         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35725         call in the return bb.
35726         (find_split_points): Add RETURN_BB argument, don't call
35727         find_return_bb.
35728         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
35729         if true append TSAN_FUNC_EXIT internal call after the call to
35730         the split off function.
35731         (execute_split_functions): Call find_return_bb here.
35732         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35733         Adjust find_split_points and split_function calls.
35735 2015-03-18  DJ Delorie  <dj@redhat.com>
35737         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35738         (iorqi3_virt): Likewise.
35740 2015-03-18  Tom de Vries  <tom@codesourcery.com>
35742         * tree-parloops.c (parallelize_loops): Make static.
35743         * tree-parloops.h (parallelize_loops): Remove extern declaration.
35745 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
35747         PR middle-end/64491
35748         Revert:
35749         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
35751         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35752         condition would be removed due to undefined behaviour.
35754 2015-03-18  Martin Liska  <mliska@suse.cz>
35756         PR ipa/65432
35757         * cgraph.c (cgraph_node::get_create): Remove unnecessary
35758         xstrdup_for_dump wrapper.
35759         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35760         sem_item::name.
35761         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35762         with xstrdup_for_dump.
35763         (sem_variable::equals): Likewise.
35764         (sem_item_optimizer::read_section): Use symtab_node::name instead of
35765         sem_item::name.
35766         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35767         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35768         symtab_node::asm_name with xstrdup_for_dump.
35769         (congruence_class::dump): Use symtab_node::name instead of
35770         sem_item::name.
35771         * ipa-icf.h (symtab_node::name): Remove.
35772         (symtab_node::asm_name): Likewise.
35774 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35776         PR tree-optimization/65450
35777         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35778         function.
35779         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35780         it instead of duplicate_ssa_name_ptr_info.
35782         PR target/65222
35783         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35785 2015-03-18  Richard Biener  <rguenther@suse.de>
35787         * tree-data-ref.h (struct access_matrix): Remove.
35788         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35789         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35790         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35791         (am_vector_index_for_loop): Likewise.
35792         (struct data_reference): Remove access_matrix member.
35793         (DR_ACCESS_MATRIX): Remove.
35794         (lambda_vector_new): Add comment.
35795         (lambda_matrix_new): Use XOBNEWVEC.
35797 2015-03-18  Richard Biener  <rguenther@suse.de>
35799         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35800         (pass_ch::execute): Cleanup the CFG only if we did sth.
35801         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35803 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35805         * expmed.c (synth_mult): Use std::swap instead of manually
35806         swapping algorithms.
35808 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
35810         PR target/65078
35811         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35813 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
35815         PR target/65296
35816         * config/avr/avr.opt (-nodevicelib): New option.
35817         * doc/invoke.texi (AVR Options): Document it.
35818         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35819         libgcc.a, libc.a, libm.a.
35820         * config/avr/specs.h: Same.
35821         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35822         which don't (directly) depend on the device.  Print more help.
35823         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35824         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35825         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35826         case of an error.
35827         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35828         for specs file name.
35829         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35830         * config/avr/avr-mcus.def: Adjust initializers and comments.
35832 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
35834         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35835         DECL_ONE_ONLY to check if decl is one only.
35836         * ipa-split.c (consider_split): Limit splitt of one only functions.
35838 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
35840         PR tree-optimization/65427
35841         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35842         functions.
35843         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35845 2015-03-16  Marek Polacek  <polacek@redhat.com>
35847         * cgraph.h (add_new_static_var): Remove declaration.
35848         * varpool.c (add_new_static_var): Remove function.
35850 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
35852         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35853         instead of vec<tree> * with vec_alloc and release for args.
35854         Adjust all users.
35856         PR middle-end/65431
35857         * omp-low.c (delete_omp_context): Only splay_tree_delete
35858         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35859         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
35861 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35863         PR sanitizer/64820
35864         * cfgexpand.c (align_base): New function.
35865         (alloc_stack_frame_space): Call it.
35866         (expand_stack_vars): Align prev_frame to be sure
35867         data->asan_vec elements aligned properly.
35869 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
35871         PR middle-end/65409
35872         * expr.c (store_field): Do not do a direct block copy if the source is
35873         a PARALLEL with BLKmode.
35875 2015-03-16  Tom de Vries  <tom@codesourcery.com>
35877         PR middle-end/65414
35878         Revert:
35879         2015-03-12  Tom de Vries  <tom@codesourcery.com>
35881         PR rtl-optimization/64895
35882         * lra-lives.c (check_pseudos_live_through_calls): Use
35883         actual_call_used_reg_set instead of call_used_reg_set, if available.
35885 2015-03-16  Alan Modra  <amodra@gmail.com>
35887         PR target/63150
35888         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35889         Modify Z->r bswapdi splitter to use dest in place of scratch.
35890         In r->Z and Z->r bswapdi splitter rename word_high, word_low
35891         to word1, word2 and rearrange logic to suit.
35892         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35893         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
35894         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35895         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
35896         early clobber.
35898 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
35900         PR tree-optimization/65369
35901         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35902         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35903         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35905         PR tree-optimization/65418
35906         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35907         are casts in the first PLUS_EXPR operand, ensure tbias and
35908         *totallowp are in the inner type.
35910         PR rtl-optimization/65401
35911         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35912         argument.  If true, adjust_address_nv of x with big-endian
35913         correction for the mode widening to GET_MODE (y).
35914         (make_field_assignment): Don't do MEM mode widening here.
35915         Use MEM_P instead of GET_CODE == MEM.
35917 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
35919         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35920         the external decls.
35922 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35924         PR target/64600
35925         * config/arm/arm.c (arm_gen_constant, AND case): Use
35926         ARM_SIGN_EXTEND when constructing AND mask.
35928 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
35930         * graph.c (print_graph_cfg): Make function names visible and append
35931         parenthesis to it.  Also make groups of basic blocks belonging to the
35932         same function visible.
35934 2015-03-12  Richard Biener  <rguenther@suse.de>
35936         PR middle-end/44563
35937         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35938         to avoid quadratic behavior with inline expansion splitting blocks.
35939         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35940         with the successor if the predecessor will be merged with it.
35941         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35942         entry block with its successor.
35944 2015-03-13  Richard Biener  <rguenther@suse.de>
35946         PR middle-end/44563
35947         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35948         (cleanup_tree_cfg_1): Do not call it.
35949         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35950         (fixup_noreturn_call): Mark the stmt as control altering.
35951         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35952         here.
35953         (pass_data_fixup_cfg): Produce a dump file.
35954         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35955         (need_noreturn_fixup): New global.
35956         (pass_dominator::execute): Fixup queued noreturn calls.
35957         (optimize_stmt): Queue calls that became noreturn for fixup.
35958         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35959         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35960         (el_to_fixup): New global.
35961         (eliminate_dom_walker::before_dom_childre): Queue calls that
35962         became noreturn for fixup.
35963         (eliminate): Fixup queued noreturn calls.
35964         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35965         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35966         (substitute_and_fold_dom_walker::before_dom_children): Queue
35967         alls that became noreturn for fixup.
35968         (substitute_and_fold): Fixup queued noreturn calls.
35970 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
35972         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35973         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35974         are building; for methods check ODR type of class they belong to if
35975         they may lead to a polymorphic call.
35976         (sem_function::compare_polymorphic_p): Be bit smarter about testing
35977         when function may lead to a polymorphic call.
35978         (sem_function::compare_type_list): Remove.
35979         (sem_variable::equals): Update use of compatible_types_p.
35980         (sem_variable::parse_tree_refs): Remove.
35981         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35982         cdtor.
35983         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35984         matching here.
35985         (func_checker::compatible_polymorphic_types_p): Break out from ...
35986         (unc_checker::compatible_types_p): ... here.
35987         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35988         Declare.
35989         (unc_checker::compatible_types_p): Update.
35990         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35991         Remove.
35993 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35995         PR rtl-optimization/65235
35996         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35997         When first element of vec_concat is const_int, calculate its size
35998         using second element.
36000 2015-03-12  Richard Biener  <rguenther@suse.de>
36002         PR middle-end/65270
36003         * fold-const.c (operand_equal_p): Fix ordering of resetting
36004         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36006 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36008         * config/s390/s390.c (s390_reorg): Move code to output nops after label
36009         to s390_reorg ().
36010         (s390_asm_output_function_label): Likewise.
36011         * config/s390/s390.c (s390_asm_output_function_label):
36012         Fix function label alignment with -mhtopatch.
36013         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36014         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36015         ("nop_2_byte"): New define_insn.
36016         ("nop_4_byte"): Likewise.
36017         ("nop_6_byte"): Likewise.
36018         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36019         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36021 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36023         PR target/65103
36024         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36025         register.
36027 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36029         PR target/65044
36030         * toplev.c (process_options): Restrict Pointer Bounds Checker
36031         usage with Address Sanitizer.
36033 2015-03-12  Richard Biener  <rguenther@suse.de>
36035         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36036         to split on.
36037         * omp-low.c (expand_omp_taskreg): Split block before removing
36038         the stmt.
36039         (expand_omp_target): Likewise.
36040         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36041         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36042         stmt to split_block.
36044 2015-03-12  Tom de Vries  <tom@codesourcery.com>
36046         PR rtl-optimization/64895
36047         * lra-lives.c (check_pseudos_live_through_calls): Use
36048         actual_call_used_reg_set instead of call_used_reg_set, if available.
36050 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36052         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36053         (cgraph_node::remove): Likewise.
36054         (cgraph_node::get_untransformed_body): Likewise.
36055         * varpool.c (varpool_node::remove): Likewise.
36056         (varpool_node::get_constructor): Add sanity check.
36058 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
36060         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36061         old GCC versions.
36062         (-fabi-compat-version): Likewise.
36063         (-ffriend-injection): Likewise.
36064         (-Wdeclaration-after-statement): Likewise.
36065         (-fomit-frame-pointer): Likewise.
36066         (-ftree-coalesce-inlined-vars): Likewise.
36067         (-fvisibility=): Likewise.
36068         * doc/extend.texi (Typeof): Likewise.
36069         (Zero Length): Likewise.
36070         (Escaped Newlines): Likewise.
36071         (Compound Literals): Likewise.
36072         (Function Attributes): Likewise.
36073         (Label Attributes): Likewise.
36074         (Type Attributes): Likewise.
36075         (Function Names): Likewise.
36076         (Other Builtins): Likewise.
36077         (Function Specific Option Pragmas): Likewise.
36078         (C++ Interface): Likewise.
36080 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
36082         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36084 2015-03-11  Marek Polacek  <polacek@redhat.com>
36086         PR tree-optimization/65388
36087         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36089 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36091         PR target/65296
36092         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36093         * configure: Regenerate.
36094         * config.in: Regenerate.
36095         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36096         [-mn-flash]: Document it.
36097         [__AVR_ARCH__]: Document avrtiny.
36099         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36100         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36101         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36103 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36105         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36107 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36109         PR target/65242
36110         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36111         allow reloads of PLUS in floating point/VSX registers.
36113 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
36115         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36116         crypto_sha256_fast.
36117         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36119 2015-03-11  Richard Biener  <rguenther@suse.de>
36121         PR tree-optimization/65310
36122         * tree-sra.c (build_ref_for_offset): Also preserve larger
36123         alignment.
36125 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
36127         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36129 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36131         PR target/65368
36132         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36133         new define_expand.
36134         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36136 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36138         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36139         (sem_function::equals_wpa): ... here.
36141 2015-03-10  Marek Polacek  <polacek@redhat.com>
36142             Jakub Jelinek  <jakub@redhat.com>
36144         PR sanitizer/65367
36145         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36146         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
36147         separately.
36149 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36151         PR target/65286
36152         * config/rs6000/t-linux: For powerpc64* target set
36153         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36155 2015-03-10  Richard Biener  <rguenther@suse.de>
36157         PR middle-end/44563
36158         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36159         for redirect_all_calls.
36161 2015-03-10  Marek Polacek  <polacek@redhat.com>
36163         * gdbinit.in (pcfun): Define and document.
36165 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
36167         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36168         of libgomp-plugin.h.
36169         (find_target_compiler): Support a case when the path to gcc is
36170         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36171         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36172         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36173         libgomp-plugin.h.
36174         (main): Use GCC_INSTALL_NAME as target_driver_name.
36175         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36176         define.
36177         (mkoffload.o): Remove obsolete include path and defines.
36178         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36180 2015-03-10  Richard Biener  <rguenther@suse.de>
36182         PR middle-end/63155
36183         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36184         * tree-ssa-coalesce.c: Include timevar.h.
36185         (attempt_coalesce): Handle graph being NULL.
36186         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36187         Split out abnormal coalescing to ...
36188         (perform_abnormal_coalescing): ... this function.
36189         (coalesce_ssa_name): Perform abnormal coalescing without computing
36190         live/conflict.
36191         (verify_ssa_coalescing_worker): New function.
36192         (verify_ssa_coalescing): Likewise.
36194 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36196         PR target/65296
36197         * config.gcc (extra_options) [avr]: Remove.
36198         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36199         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36200         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36202         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36203         (-mmcu=): Add Var and MissingArgError properties.
36204         (-march=): Remove.
36205         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36206         * config/avr/t-multilib: Regenerate.
36207         * config/avr/specs.h: New file.
36208         * config/avr/driver-avr.c: New file.
36209         * config/avr/genopt.sh: Remove file.
36210         * config/avr/avr-tables.opt: Remove file.
36211         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36212         * config/avr/avr-c.c: Same.
36213         * avr-arch.h: Same.
36214         (avr_current_device): Remove proto.
36215         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36216         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36217         (EXTRA_SPEC_FUNCTIONS): Define.
36218         (avr_devicespecs_file): New specs function proto.
36219         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36220         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36221         (avr_current_device): Remove definition and usage.
36222         (avr_set_core_architecture): New static function.
36223         (avr_option_override): Use it.
36224         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36225         (mcu_name): New static array.
36226         (comparator, avr_archs_str, avr_mcus_str): New static functions.
36227         (avr_inform_devices, avr_inform_core_architectures): New functions.
36228         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36229         (avrlibc.h) [WITH_AVRLIBC]: Include.
36230         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36231         (print_mcu): Rewrite from scratch.
36232         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36233         Forward to avr-specific specs defined in device-specs file.
36234         * config/avr/t-avr (driver-avr.o): New rule.
36235         (avr-devices.o): Depend on avr-arch.h.
36236         (avr-mcus): No more depend on avr-tables.opt.
36237         (avr-tables.opt): Remove rule.
36238         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36240 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36242         * c-family/c.opt (fchkp-use-wrappers): New.
36243         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36244         (chkp_wrap_function): New.
36245         (chkp_build_instrumented_fndecl): Support wrapped
36246         functions.
36247         * doc/invoke.texi (-fcheck-pointer-bounds): New.
36248         (-fchkp-check-incomplete-type): New.
36249         (-fchkp-first-field-has-own-bounds): New.
36250         (-fchkp-narrow-bounds): New.
36251         (-fchkp-narrow-to-innermost-array): New.
36252         (-fchkp-optimize): New.
36253         (-fchkp-use-fast-string-functions): New.
36254         (-fchkp-use-nochk-string-functions): New.
36255         (-fchkp-use-static-bounds): New.
36256         (-fchkp-use-static-const-bounds): New.
36257         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36258         (-fchkp-check-read): New.
36259         (-fchkp-check-write): New.
36260         (-fchkp-store-bounds): New.
36261         (-fchkp-instrument-calls): New.
36262         (-fchkp-instrument-marked-only): New.
36263         (-fchkp-use-wrappers): New.
36264         (-static-libmpx): New.
36265         (-static-libmpxwrappers): New.
36267 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36269         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36270         (CHKP_SPEC): Add wrappers library.
36271         * c-family/c.opt (static-libmpxwrappers): New.
36273 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36275         * config/i386/linux-common.h (LIBMPX_LIBS): New.
36276         (LIBMPX_SPEC): New.
36277         (CHKP_SPEC): New.
36278         * gcc.c (CHKP_SPEC): New.
36279         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36280         * c-family/c.opt (static-libmpx): New.
36282 2015-03-10  Richard Biener  <rguenther@suse.de>
36284         PR middle-end/44563
36285         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36286         for compare_type.
36287         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36288         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36289         (cgraph_add_edge_to_call_site_hash): Likewise.
36290         (cgraph_node::get_edge): Likewise.
36291         (cgraph_edge::set_call_stmt): Likewise.
36292         (cgraph_edge::remove_caller): Likewise.
36294 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
36296         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36297         (callee_saved_gpr_regs_size): ... this.
36298         (callee_saved_regs_first_regno): Rename to ...
36299         (callee_saved_first_gpr_regno): ... this.
36300         (callee_saved_regs_last_regno) Rename to ...
36301         (callee_saved_last_gpr_regno): ... this.
36302         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36303         variables.
36304         (nds32_initial_elimination_offset): Likewise.
36305         (nds32_expand_prologue): Likewise.
36306         (nds32_expand_epilogue): Likewise.
36307         (nds32_expand_prologue_v3push): Likewise.
36308         (nds32_expand_epilogue_v3pop): Likewise.
36309         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36310         Adjust renamed variables.
36311         (nds32_output_stack_pop): Likewise.
36313 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36315         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36316         code in comment.
36318 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36320         PR rtl-optimization/65321
36321         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36322         than shift mode.
36323         * var-tracking.c (use_narrower_mode): Likewise.
36325 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36327         PR tree-optimization/65355
36328         * varasm.c (notice_global_symbol): Do not produce RTL.
36329         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36330         anchor.
36331         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36332         check for section anchors.
36334 2015-03-10  Alan Modra  <amodra@gmail.com>
36336         PR target/65286
36337         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36338         to be single-arch by default.  Set cpu_is_64bit for powerpc64
36339         given --with-cpu=native.
36340         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36341         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36342         and powerpc64le.
36343         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36344         rs6000_isa_flags rather than TARGET_64BIT.
36346 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
36347             Kaz Kojima  <kkojima@gcc.gnu.org>
36349         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36351 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
36353         PR lto/65361
36354         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36355         on a TREE_BINFO, instead use BINFO_TYPE.
36357 2015-03-09  Richard Biener  <rguenther@suse.de>
36359         PR middle-end/65270
36360         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36361         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36362         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
36363         of that.  When comparing dereferences compare alignment.
36364         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36366 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
36368         * ipa-inline-analysis.c (check_callers): Check
36369         node->can_remove_if_no_direct_calls_and_refs_p.
36370         (growth_likely_positive): Reorganize to call
36371         can_remove_if_no_direct_calls_p later.
36372         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36373         will_be_removed_from_program_if_no_direct_calls_p): Add
36374         will_inline parameter.
36375         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36376         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36377         Handle inliner case correctly.
36379 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36381         PR tree-optimization/63743
36382         * cfgexpand.c (reorder_operands): Also reorder if only second operand
36383         had its definition forwarded by TER.
36385 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
36387         PR lto/65316
36388         * ipa-utils.h (types_odr_comparable): Add strict argument.
36389         * ipa-devirt.c: Fix whitespace;
36390         (odr_hasher): Remove.
36391         (odr_name_hasher, odr_vtable_hasher): New hashers.
36392         (can_be_name_hashed_p): New predicate.
36393         (hash_type_name): remove.
36394         (hash_odr_name): New.
36395         (odr_name_hasher::hash): new.
36396         (can_be_vtable_hashed_p): New.
36397         (hash_odr_vtable): New.
36398         (odr_vtable_hasher::hash): New.
36399         (types_same_for_odr): Add strict parameter.
36400         (types_odr_comparable): Likewise.
36401         (odr_name_hasher::equal): New.
36402         (odr_vtable_hasher::equal): New.
36403         (odr_name_hasher::remove): New.
36404         (odr_hash_type): Change to hash_table<odr_name_hasher>.
36405         (odr_vtable_hash_type): New.
36406         (odr_vtable_hash): New.
36407         (odr_subtypes_equivalent_p): Do strict comparsion.
36408         (add_type_duplicate): Merge type names; cleanup; avoid type
36409         duplicates.
36410         (register_odr_type): Initialize vtable hash.
36411         (build_type_inheritance_graph): Likewise
36412         (get_odr_type): Reorg to use two hashes.
36413         (dump_possible_polymorphic_call_targets): Move sanity check after debug
36414         output.
36415         (ipa_devirt): Dump type_inheritance_graph.
36416         (types_same_for_odr): Add strict mode.
36418 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36420         PR ipa/65334
36421         * cgraph.h (symtab_node): Add definition_alignment,
36422         can_increase_alignment_p and increase_alignment.
36423         * symtab.c (symtab_node::can_increase_alignment_p,
36424         increase_alignment_1, symtab_node::increase_alignment,
36425         symtab_node::definition_alignment): New.
36426         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36427         can_increase_alignment_p.
36428         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36429         * tree-vect-stmts.c (ensure_base_align): Likewise.
36430         * varasm.c (function_section_1): Use definition_alignment.
36431         (assemble_start_function): Likewise.
36432         (emit_local): likewise.
36433         (build_constant_desc): Likewsie.
36434         (output_constant_def_contents): Likewise.
36435         (place_block_symbol): Likewise.
36436         (output_object_block): Likewise.
36438 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36440         PR ipa/65316
36441         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36442         when outputting debug.
36444 2015-03-07  Marek Polacek  <polacek@redhat.com>
36445             Martin Uecker  <uecker@eecs.berkeley.edu>
36447         PR sanitizer/65280
36448         * doc/invoke.texi: Update description of -fsanitize=bounds.
36450 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
36452         * tree-ssa-phiopt.c (neg_replacement): Remove.
36453         (tree_ssa_phiopt_worker): Remove negate optimization.
36455 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36457         PR ipa/65302
36458         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36460 2015-03-06  Richard Biener  <rguenther@suse.de>
36462         PR middle-end/64928
36463         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36464         and liveout_obstack members.
36465         (calculate_live_on_exit): Remove.
36466         (calculate_live_ranges): Change declaration.
36467         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36468         (new_tree_live_info): Adjust.
36469         (calculate_live_ranges): Delete livein when not wanted.
36470         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36471         Deal with partly deleted live info.
36472         (loe_visit_block): Remove temporary bitmap by using
36473         bitmap_ior_and_compl_into.
36474         (live_worklist): Adjust accordingly.
36475         (calculate_live_on_exit): Make static.
36476         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36477         we do not need livein.
36479 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
36481         * real.c (real_from_string): Fix typo in assertion.
36483 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
36485         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36486         the patch.
36488 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
36490         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36492 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
36494         PR target/64342
36495         * lra-assigns.c (find_hard_regno_for): Rename to
36496         find_hard_regno_for_1.  Add a new parameter.
36497         (find_hard_regno_for): New function using find_hard_regno_for_1.
36499 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36501         PR rtl-optimization/65067
36502         * expmed.c (store_bit_field, extract_bit_field): Reworked the
36503         strict volatile bitfield handling.
36505 2015-03-05  Martin Liska  <mliska@suse.cz>
36507         PR ipa/65318
36508         * ipa-icf.c (sem_variable::equals): Compare variables types.
36510 2015-03-05  Richard Henderson  <rth@redhat.com>
36512         PR target/65121
36513         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36514         correctly check weak symbol binding.
36516 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
36518         PR middle-end/65315
36519         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36520         needed alignment.
36522 2015-03-05  Martin Liska  <mliska@suse.cz>
36524         * ipa-inline.c (inline_small_functions): Set default value to
36525         prevent warning during bootstrap.
36526         * tree.h: Add pragma guard that ignores false positives during
36527         bootstrap.
36529 2015-03-05  Richard Biener  <rguenther@suse.de>
36531         PR tree-optimization/65310
36532         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36533         Properly preserve alignment of the base of the access.
36535 2015-03-05  Richard Biener  <rguenther@suse.de>
36537         PR ipa/65270
36538         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36539         Compare dependence info.
36541 2015-03-05  Richard Biener  <rguenther@suse.de>
36543         PR middle-end/65233
36544         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36545         tree-into-ssa.h.
36546         (walk_ssa_copies): Revert last chage.  Instead do not walk
36547         SSA names registered for SSA update.
36549 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36551         PR ipa/65270
36552         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36553         vtable references for their containing type.
36554         (sem_function::equals_wpa): Compare TYPE_RESTRICT
36555         and type attributes.
36557 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
36559         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36560         before negating it.
36561         * stor-layout.c (finalize_record_size): Revert latest change.
36563 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
36565         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36567 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36569         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36570         for correct comdat handling.
36571         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36572         Likewise.
36573         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36574         (used_from_object_file_p_worker): Remove.
36575         (cgraph_node::only_called_directly_or_alised): Add
36576         used_from_object_file_p.
36577         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36578         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36579         can_remove_if_no_direct_calls_and_refs_p.
36581 2015-03-04  Nick Clifton  <nickc@redhat.com>
36583         * config/rl78/rl78.h (enum reg_class): Remove real registers from
36584         General register class.
36585         * config/rl78/rl78-real.md: Replace general register constraints
36586         with real+virtual register constraints.
36588 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36590         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36591         from checking for -mhtm option.
36593 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
36595         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36596         (struct ipa_sra_check_caller_data): Add has_thunk field.
36597         (ipa_sra_check_caller): Check for thunk.
36598         (ipa_sra_preliminary_function_checks): Give up on function with
36599         thunks.
36600         (ipa_early_sra): Use call_for_symbol_and_aliases.
36602 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
36604         PR target/65249
36605         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36606         called for __stack_chk_guard symbol.
36608 2015-03-03  DJ Delorie  <dj@redhat.com>
36610         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36611         inc/dec.
36612         (*addhi3_real): Likewise.
36613         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36614         pattern to match incrementing memory.
36615         * config/rl78/predicates.md (rl78_1_2_operand): New.
36616         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36617         it's the same and only mem.
36618         (rl78_alloc_physical_registers_op2): If there's effectively only
36619         one MEM, transcode it into HL.
36620         (rl78_far_p): Reject addresses that aren't legitimate.
36622 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36624         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36625         negating it.
36627         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36629 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36631         Implement call0 ABI for xtensa
36632         * config/xtensa/constraints.md ("a" constraint): Include stack
36633         pointer in case of call0 ABI.
36634         ("q" constraint): Make empty in case of call0 ABI.
36635         ("D" constraint): Include stack pointer in case of call0 ABI.
36636         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36637         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36638         prototypes.
36639         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36640         variable.
36641         (xtensa_regno_to_class): Make it a local variable in the
36642         function xtensa_regno_to_class.
36643         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36644         macro, function prototype and implementation.
36645         (reg_nonleaf_alloc_order): Make it a local variable in the
36646         function order_regs_for_local_alloc.
36647         (xtensa_conditional_register_usage): New function.
36648         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36649         (xtensa_valid_move): Allow direct moves to stack pointer
36650         register in call0 ABI.
36651         (xtensa_setup_frame_addresses): Only spill register windows in
36652         windowed ABI.
36653         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36654         call0 ABI respectively.
36655         (xtensa_function_arg_1): Only mark a7 register for copying in
36656         windowed ABI.
36657         (xtensa_call_save_reg): New function.
36658         (compute_frame_size): Add space for callee saved register
36659         storage to the frame size in call0 ABI.
36660         (xtensa_expand_prologue): Generate code to set up stack frame
36661         and save callee-saved registers in call0 ABI.
36662         (xtensa_expand_epilogue): New function.
36663         (xtensa_set_return_address): New function.
36664         (xtensa_return_addr): Calculate return address in call0 ABI.
36665         (xtensa_builtin_saveregs): Only mark a7 register for copying and
36666         emit copying code in windowed ABI.
36667         (order_regs_for_local_alloc): Add preferred register allocation
36668         order for non-leaf function in call0 ABI.
36669         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36670         (xtensa_asm_trampoline_template): Add trampoline generation for
36671         call0 ABI.
36672         (xtensa_trampoline_init): Add trampoline initialization for
36673         call0 ABI.
36674         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36675         functions.
36676         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36677         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36678         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36679         ABI call-used registers.
36680         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36681         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36682         call0 ABI.
36683         (REG_CLASS_CONTENTS): Include all registers into the preferred
36684         reload registers set, adjust the set in the
36685         xtensa_conditional_register_usage.
36686         (xtensa_regno_to_class): Drop variable declaration.
36687         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36688         function.
36689         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36690         respectively.
36691         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36692         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36693         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36694         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36695         location in call0 ABI.
36696         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36697         stack adjustment size when handling exception.
36698         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36699         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36700         definitions.
36701         ("return" pattern): Generate ret.n/ret in call0 ABI.
36702         ("epilogue" pattern): Expand epilogue.
36703         ("nonlocal_goto" pattern): Use default in call0 ABI.
36704         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36705         emit eh_set_a0_* depending on ABI.
36706         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36707         ("eh_set_a0_call0", "blockage"): New patterns.
36709 2015-03-03  Martin Liska  <mliska@suse.cz>
36711         PR ipa/65287
36712         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36714 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
36716         PR 65138/target
36717         * config/rs6000/rs6000-tables.opt: Regenerate table.
36719 2015-03-03  Renlin Li  <renlin.li@arm.com>
36721         * doc/md.texi (@item ^): Change ? into ^.
36723 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
36725         * doc/tm.texi: Regenerated.
36727 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
36729         * builtins.c (expand_builtin_return_addr): Add
36730         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36731         surrounding #ifdef.
36732         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36733         definition to 1.
36734         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36735         Likewise.
36736         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36737         undefined.
36738         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36739         paragraph.
36741 2015-03-03  Martin Jambor  <mjambor@suse.cz>
36742             Eric Botcazou  <ebotcazou@adacore.com>
36744         * tree-sra.c (ipa_sra_check_caller_data): New type.
36745         (has_caller_p): Removed.
36746         (ipa_sra_check_caller): New function.
36747         (ipa_sra_preliminary_function_checks): Use it.
36749 2015-03-03  Martin Liska  <mliska@suse.cz>
36751         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36752         instead of if branch.
36754 2015-03-03  Martin Liska  <mliska@suse.cz>
36756         PR ipa/65282
36757         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36759 2015-03-23  Jeff Law  <law@redhat.com>
36761         PR tree-optimization/65241
36762         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36763         hash table if INSERT is true.
36765 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36767         PR target/65296
36768         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36770 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36772         PR target/64331
36773         * config/avr/avr.c (context.h, tree-pass.h): Include them.
36774         (avr_pass_data_recompute_notes): New static variable.
36775         (avr_pass_recompute_notes): New class.
36776         (avr_register_passes): New static function.
36777         (avr_option_override): Call it.
36779 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
36781         Fix various problems with specs file generation.
36783         PR target/65296
36784         * config.gcc (extra_gcc_objs) [avr]: Remove.
36785         * config/avr/driver-avr.c: Remove file.
36786         * config/avr/t-avr (driver-avr.o): Remove rule.
36787         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36788         INCLUDES to build.  Depend on TM_H.
36789         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
36790         build warnings.  Fix non-matching types and non-existing %-codes.
36791         (tm.h): Include.
36792         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36793         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36794         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36795         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36796         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36797         (LIBGCC_SPEC): Remove definitions.
36799 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
36801         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36802         to create a register in testing mode.
36804 2015-03-03  Martin Liska  <mliska@suse.cz>
36805             Jan Hubicka  <hubicka@ucw.cz>
36807         PR ipa/65263
36808         * cgraph.c (cgraph_node::has_thunk_p): New function.
36809         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36810         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36811         (sem_function::merge): Assert is changed.
36813 2015-03-03  Martin Liska  <mliska@suse.cz>
36814             Martin Jambor  <mjambor@suse.cz>
36816         PR ipa/65087
36817         * ipa-icf.c (sem_item_optimizer::execute): Change function
36818         return value to boolean.
36819         (sem_item_optimizer::merge_classes): Likewise.
36820         (ipa_icf_driver): Return TODO_remove_functions in case there's
36821         a merge operation processed.
36822         * ipa-icf.h: Change function return value to boolean.
36824 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
36826         PR 65138/target
36827         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36828         processor type for 64-bit little endian PowerPC.
36830         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36831         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
36832         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
36833         printing built-in mask so it does not pass NULL pointers.
36835         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36836         -mcpu=powerpc64le.
36838 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
36840         PR target/58158
36841         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36842         !ISA_HAS_FP_CONDMOVE.
36844 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
36846         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36847         reload_completed.
36849 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
36851         * doc/invoke.texi (Options for Code Generation Conventions):
36852         Fix URL of DSO paper.
36854 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36856         PR ipa/65130
36857         * ipa-inline.c (check_callers): Looks for recursion.
36858         (inline_to_all_callers): Give up on uninlinable or recursive edges.
36859         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36860         summary of inline clones.
36861         (do_estimate_growth_1): Fix recursion check.
36863 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36865         PR ipa/64988
36866         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36867         comdat groups.
36869 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
36870             Aldy Hernandez  <aldyh@redhat.com>
36872         PR lto/65276
36873         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36874         when checking TYPE_BINFO.
36876 2015-03-02  Richard Biener  <rguenther@suse.de>
36878         PR ipa/65270
36879         * ipa-icf-gimple.c: Include builtins.h.
36880         (func_checker::compare_memory_operand): Compare base alignment.
36882 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36884         PR target/65184
36885         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36886         passed by reference.
36888 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
36890         PR target/65183
36891         * tree-chkp.c (chkp_check_lower): Don't check against
36892         zero bounds for already instrumented functions.
36893         (chkp_check_upper): Likewise.
36894         (chkp_fini): Clean pass local data to avoid wrong reusage.
36896 2015-02-28  Martin Liska  <mliska@suse.cz>
36897             Jan Hubicka  <hubicka@ucw.cz>
36899         * ipa-icf.c (sem_variable::equals): Improve debug output;
36900         get variable constructor.
36901         (sem_variable::parse): Do not filter out too early; give up on
36902         volatile and register vars.
36903         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36904         variables.
36905         * ipa-icf.h (sem_variable::init): Do not set ctor.
36906         (sem_variable::ctor): Remove.
36908 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
36910         PR middle-end/65233
36911         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36913 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36915         * ipa-icf.c: Include stor-layout.h
36916         (sem_function::compare_cgraph_references): Rename to ...
36917         (sem_item::compare_cgraph_references): ... this one.
36918         (sem_variable::equals_wpa): New function
36919         (sem_variable::equals): Do not check stuff already verified by
36920         equals_wpa.
36921         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36922         * ipa-icf.h (sem_item): Add compare_cgraph_references.
36923         (sem_function): Remove compare_cgraph_references.
36924         (sem_variable): Turns equals_wpa into non-inline.
36926 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36928         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36929         (sem_item::add_expr): New function.
36930         (sem_function::hash_stmt): Handle operands of most statements.
36931         (sem_variable::get_hash): Hash the actual constructor.
36932         * ipa-icf.h (sem_item): Add add_expr.
36933         (sem_function): Update prototype of hash_stmt
36935 2015-02-28  Martin Liska  <mliska@suse.cz>
36936             Jan Hubicka  <hubicka@ucw.cz>
36938         PR ipa/65245
36939         * ipa-icf-gimple.c (func_checker::compare_function_decl):
36940         Remove.
36941         (func_checker::compare_variable_decl): Skip symtab vars.
36942         (func_checker::compare_cst_or_decl): Update.
36943         * ipa-icf.c (sem_function::parse): Do not consider aliases.
36944         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36945         use correct symtab predicates.
36946         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36947         (sem_variable::parse):  Update comment.
36948         (sem_item_optimizer::build_graph): Consider ultimate aliases
36949         for references.
36951 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36953         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36954         of OBJ_TYPE_REF.
36956 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36958         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36959         (sem_variable::merge) Likewise.
36961 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36963         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36964         target; also match flag_ipa_devirt.
36966 2015-03-01  Martin Liska  <mliska@suse.cz>
36967             Jan Hubicka  <hubicka@ucw.cz>
36969         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36970         Validate variable alignment.
36971         * ipa-icf.c (sem_function::equals_private): Be more precise
36972         about non-common function attributes.
36973         (sem_variable::equals): Likewise.
36975 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36977         PR ipa/65237
36978         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36979         across COMDAT group boundary.
36981 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36983         PR ipa/65232
36984         * ipa-icf.c (clear_decl_rtl): New function.
36985         (sem_function::merge): Clear RTL before forming alias.
36986         (sem_variable::merge): Clear RTL before forming alias.
36988 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
36990         PR ipa/65236
36991         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36993 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
36995         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36996         to neon_to_gp<q>.
36998 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37000         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37001         a typo in the description.
37003 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37005         PR target/64317
37006         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37007         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37008         * lra-constraints.c: Include "params.h".
37009         (EBB_PROBABILITY_CUTOFF): Use
37010         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37011         (lra_inheritance): Use '<' instead of '<=' for
37012         EBB_PROBABILITY_CUTOFF.
37013         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37014         Document change.
37016 2015-02-27  Martin Liska  <mliska@suse.cz>
37018         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37019         vector length condition.
37021 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
37023         * doc/extend.texi (x86 transactional memory intrinsics):
37024         Reorganize discussion of _xbegin.  Clarify that the return
37025         value is a bit mask.  Expand example and move to end of section.
37027 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37028             Aldy Hernandez  <aldyh@redhat.com>
37030         PR rtl-optimization/65220
37031         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37033 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37035         PR target/65032
37036         * lra-remat.c (update_scratch_ops): New.
37037         (do_remat): Call it.
37038         * lra.c (lra_register_new_scratch_op): New. Take code from ...
37039         (remove_scratches): ... here.
37040         * lra-int.h (lra_register_new_scratch_op): New prototype.
37042 2015-02-27  Marek Polacek  <polacek@redhat.com>
37044         PR c/65040
37045         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37046         -Wformat-signedness anymore.
37048 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37050         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37051         function.
37052         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37054 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37056         * config/s390/s390.c (enum s390_builtin):
37057         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37058         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37059         (s390_init_builtins): Generate new builtin functions.
37060         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37061         (s390_sfpc, s390_efpc): New pattern definitions.
37063 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37065         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37066         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37067         (s390_builtin_decls): New array.
37068         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37069         (s390_builtin_decl): New function.
37070         (TARGET_BUILTIN_DECL): Define macro.
37072 2015-02-27  Richard Biener  <rguenther@suse.de>
37074         PR middle-end/63175
37075         * builtins.c (get_object_alignment_2): Make sure to re-apply
37076         the ANDed mask after recursing to its operand gets us a new
37077         misalignment bit position.
37079 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
37080             Martin Liska  <mliska@suse.cz>
37082         PR bootstrap/65150
37083         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37084         Use address_matters_p.
37085         (redirect_all_callers, set_addressable): New functions.
37086         (sem_function::merge): Reorganize and fix merging issues.
37087         (sem_variable::merge): Likewise.
37088         (sem_variable::compare_sections): Remove.
37089         * common.opt (fmerge-all-constants, fmerge-constants): Remove
37090         Optimization flag.
37091         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37092         redirect them.
37093         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37094         decl is used.
37095         (address_matters_1): New function.
37096         (symtab_node::address_matters_p): New function.
37097         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37098         check for merged flag.
37099         * cgraph.h (address_matters_p): Declare.
37100         (symtab_node::address_taken_from_non_vtable_p): Remove.
37101         (symtab_node::address_can_be_compared_p): New method.
37102         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37103         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37104         Remove.
37105         (comdat_can_be_unshared_p_1) Use address_matters_p.
37106         (update_vtable_references): Fix formating.
37107         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37108         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37109         * cgraphclones.c: Preserve merged and icf_merged flags.
37111 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
37113         * doc/extend.texi (Function Attributes): Fix spelling and typos.
37114         (Label Attributes): Likewise.
37115         (Cilk Plus Builtins): Likewise.
37116         (ARC SIMD Built-in Functions): Likewise.
37117         (ARM C Language Extensions (ACLE)): Likewise.
37118         (PowerPC Built-in Functions): Likewise.
37119         (PowerPC Hardware Transactional Memory Built-in Functions):
37120         Likewise.
37122 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37124         PR tree-optimization/65216
37125         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37126         new stmt and new SSA_NAME for lhs whenever the arguments have
37127         changed and weren't just swapped.  Fix comment typo.
37129         PR tree-optimization/65215
37130         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37131         for PDP endian targets.
37132         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37133         Fix up formatting issues.
37134         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
37135         size is smaller than the original, adjust MEM_REF offset by the
37136         difference of sizes.  Use is_gimple_mem_ref_addr instead of
37137         is_gimple_min_invariant test to avoid adding address temporaries.
37139 2015-02-26  Martin Liska  <mliska@suse.cz>
37140             Jan Hubicka  <hubicka@ucw.cz>
37142         PR ipa/64693
37143         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37144         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37145         (sem_item_optimizer::process_cong_reduction): Include division by
37146         sensitive references.
37147         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37148         * ipa-ref.c (ipa_ref::address_matters_p): New function.
37149         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37151 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
37153         PR target/65192
37154         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37155         Remove.
37156         * config/avr/avr.c: Same.
37157         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37158         Refuse any constant address not in 0..0xbf.
37159         * config/avr/avr.md (*mov<mode>, *movsf): Remove
37160         tiny_valid_direct_memory_access_range from insn conditions.
37161         (mov<mode>): Don't special-case expansion of avrtiny addresses.
37163 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
37165         PR target/61142
37166         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37167         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37168         * config/sh/predicates.md (const_logical_operand): New predicate.
37169         * config/sh/sh.md: Add new peephole2 patterns.
37171 2015-02-26  Marek Polacek  <polacek@redhat.com>
37173         PR ipa/65008
37174         * ipa-inline.c (early_inliner): Recompute inline parameters.
37176 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37178         PR target/65171
37179         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37180         instructions with TImode operands are included in the analysis.
37182 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37184         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37185         of an EDGE_FSM_THREAD.
37187 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37189         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37191 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
37193         PR debug/46102
37194         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37196 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37198         PR tree-optimization/65048
37199         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37200         (thread_through_all_blocks): Call valid_jump_thread_path.
37201         Remove invalid FSM jump-thread paths.
37203 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37205         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37206         (ipa_write_optimization_summaries): Likewise.
37207         * tree-streamer.h: Include data-streamer.h.
37208         (streamer_mode_table): Declare extern variable.
37209         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37210         * lto-streamer-out.c (lto_output_init_mode_table,
37211         lto_write_mode_table): New functions.
37212         (produce_asm_for_decls): Call lto_write_mode_table when streaming
37213         offloading LTO.
37214         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37215         (lto_create_simple_input_block): Add mode_table argument to the
37216         lto_input_block constructors.
37217         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37218         Likewise.
37219         * data-streamer-in.c (string_for_index): Likewise.
37220         * ipa-inline-analysis.c (inline_read_section): Likewise.
37221         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37222         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37223         * lto-streamer-in.c (lto_read_body_or_constructor,
37224         lto_input_toplevel_asms): Likewise.
37225         (lto_input_mode_table): New function.
37226         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37227         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37228         Use bp_pack_machine_mode.
37229         * real.h (struct real_format): Add name field.
37230         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37231         (class lto_input_block): Add mode_table member.
37232         (lto_input_block::lto_input_block): Add mode_table_ argument,
37233         initialize mode_table.
37234         (struct lto_file_decl_data): Add mode_table field.
37235         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37236         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37237         unpack_ts_decl_common_value_fields,
37238         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37239         * tree-streamer.c (streamer_mode_table): New variable.
37240         * real.c (ieee_single_format, mips_single_format,
37241         motorola_single_format, spu_single_format, ieee_double_format,
37242         mips_double_format, motorola_double_format,
37243         ieee_extended_motorola_format, ieee_extended_intel_96_format,
37244         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37245         ibm_extended_format, mips_extended_format, ieee_quad_format,
37246         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37247         decimal_single_format, decimal_double_format, decimal_quad_format,
37248         ieee_half_format, arm_half_format, real_internal_format): Add name
37249         field.
37250         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37252 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
37254         PR target/65161
37255         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37256         reordering for selective scheduling.
37258 2015-02-26  Terry Guo  <terry.guo@arm.com>
37260         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37261         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37262         (arm_arch_no_volatile_ce): Declare new global variable.
37263         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37264         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37265         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37266         (TARGET_NO_VOLATILE_CE): New macro.
37267         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37268         volatile memory access in IT block
37270 2015-02-25  Kai Tietz  <ktietz@redhat.com>
37272         PR tree-optimization/61917
37273         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37274         that reduc_def_stmt is null.
37276 2015-02-25  Martin Liska  <mliska@suse.cz>
37278         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37279         hard register variables.
37281 2015-02-25  Kai Tietz  <ktietz@redhat.com>
37283         PR target/64212
37284         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37285         (symtab::noninterposable_alias): Likewise.
37287 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
37289         PR target/65167
37290         * config/i386/i386.c (ix86_function_arg_regno_p): Support
37291         bounds registers.
37292         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37294 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
37296         PR target/64997
37297         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37298         as split condition; force split via '#' in output pattern.
37300 2015-02-25  Richard Biener  <rguenther@suse.de>
37301             Kai Tietz  <ktietz@redhat.com>
37303         PR tree-optimization/61917
37304         * tree-vect-loop.c (vectorizable_reduction): Allow
37305         vect_internal_def without reduction to exit graceful.
37307 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
37309         PR target/65196
37310         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37311         only with NONDEBUG_INSN_P.
37313 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
37315         Use variadic macros with avr-log.c.
37317         * config/avr/avr-protos.h (avr_vdump): New prototype.
37318         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37319         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37320         * config/avr/avr-log.c: Adjust comments.
37321         (avr_vdump): New function.
37322         (avr_vadump): Pass caller as 2nd argument instead of format string.
37323         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37324         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37326 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
37328         PR lto/64374
37329         * target.def (target_option_stream_in): New target hook.
37330         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37331         targetm.target_option.post_stream_in if non-NULL.
37332         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37333         * doc/tm.texi: Updated.
37334         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37335         function.
37336         (TARGET_OPTION_POST_STREAM_IN): Redefine.
37338 2015-02-24  Jeff Law  <law@redhat.com>
37340         PR target/65117
37341         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37342         of operand 0 and operand 2.
37343         (zero_cost_loop_end, loop_end): Similarly.
37345 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
37347         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37348         CXX_MEM_STAT_INFO.
37350 2015-02-24  DJ Delorie  <dj@redhat.com>
37352         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37353         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37354         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37355         instead of hardcoding SImode.
37357 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
37359         * omp-low.c (create_omp_child_function): Tag entrypoint
37360         functions with a special attribute.
37362 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37364         PR target/65058
37365         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37367 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
37369         PR rtl-optimization/65123
37370         * lra-remat.c (operand_to_remat): Check hard regs in insn
37371         definition too.
37373 2015-02-24  Nick Clifton  <nickc@redhat.com>
37375         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37376         to the assembler.
37378 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
37380         PR libgomp/64625
37381         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37382         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37383         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37384         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37385         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37386         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37387         (BUILT_IN_GOACC_PARALLEL): Specify as
37388         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37389         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37390         * builtin-types.def
37391         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37392         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37393         Remove function types.
37394         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37395         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37396         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37397         New function types.
37399 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
37401         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37403 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
37405         PR tree-optimization/65170
37406         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37407         if val[1] < 0, clear also val[2] and return 3.
37409 2015-02-24  Alan Modra  <amodra@gmail.com>
37411         PR target/65172
37412         * config/rs6000/rs6000.c (get_memref_parts): Only return true
37413         when *base is a reg.  Handle nested plus addresses.  Simplify
37414         pre_modify test.
37416 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
37418         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37419         use natural alignment when optimizing for size.
37421 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
37423         PR target/65153
37424         * config/sh/sh.md (movsicc_true+3): Remove peephole.
37425         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37426         * config/sh/sh.c (replace_n_hard_rtx): Remove.
37428 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
37430         PR fortran/63427
37431         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37432         too big for a wide_int.  Implement missing wrapping operation.
37434 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
37436         PR target/65163
37437         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37438         instead of const_int 4294901760.
37440 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
37442         * config/avr/t-avr: Fix typo in comment.
37444 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
37446         * doc/rtl.texi (fma): Clarify documentation.
37448 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
37450         PR debug/58123
37451         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37452         over input_location.
37454 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37456         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37457         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37458         restrict alignments to absolute_biggest_alignment.
37459         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37460         Define.
37461         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37462         * doc/tm.texi: Regenerate.
37463         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37465 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
37467         PR target/64172
37468         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37470 2015-02-20  Richard Biener  <rguenther@suse.de>
37472         PR tree-optimization/65136
37473         * tree-ssa-propagate.c: Include cfgloop.h.
37474         (replace_phi_args_in): Avoid replacing loop latch edge PHI
37475         arguments with constants.
37477 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
37478             Martin Liska  <mliska@suse.cz>
37480         PR target/63892
37481         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37482         don't try to create_thunk if stdarg_p.  If
37483         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37484         redirect_callers if possible.
37485         (sem_item_optimizer::execute): Call unregister_hooks here...
37486         (ipa_icf_driver): ... instead of here.
37488 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37490         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37491         Mark operand 0 as earlyclobber in 2nd alternative.
37492         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37493         Write negated shift amount into QI lowpart operand 0 and use it
37494         in the shift step.
37495         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37497 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37499         * cgraph.h (clone_function_name_1): Declare.
37500         * cgraphclones.c (clone_function_name_1): New function.
37501         (clone_function_name): Use it.
37502         * lto-partition.c: Include "stringpool.h".
37503         (must_not_rename, maybe_rewrite_identifier)
37504         (validize_symbol_for_target): New static functions.
37505         (privatize_symbol_name): Use must_not_rename.
37506         (promote_symbol): Call validize_symbol_for_target.
37507         (lto_promote_cross_file_statics): Likewise.
37508         (lto_promote_statics_nonwpa): Likewise.
37510 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
37512         PR target/64452
37513         * config/avr/avr.md (pushhi_insn): New insn.
37514         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37516 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
37517             Jakub Jelinek  <jakub@redhat.com>
37519         * tree-streamer.c (preload_common_nodes): Don't preload
37520         TI_VA_LIST* for offloading.
37521         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37522         in_lto_p.
37524 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
37526         * config/pa/pa.c (pa_emit_move_sequence): Always force
37527         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
37528         note on insn.
37530         * config/pa/pa.c (pa_reloc_rw_mask): New function.
37531         (TARGET_ASM_RELOC_RW_MASK): Define.
37532         (pa_cannot_force_const_mem): Revert previous change.
37534 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
37535             Jan Hubicka  <hubicka@ucw.cz>
37537         PR ipa/65028
37538         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37539         across jump functions.
37541 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
37543         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37545 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
37547         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37549 2015-02-19  Richard Henderson  <rth@redhat.com>
37551         PR middle-end/65074
37552         * varasm.c (default_binds_local_p_2): Don't test node->definition;
37553         test DECL_EXTERNAL independent of symtab_node.
37555 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
37557         PR lto/65012
37558         * varpool.c (varpool_node::get_constructor): Return early
37559         if this->lto_file_data is NULL.
37561 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
37563         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37564         (rank_for_schedule_debug): Update.
37565         (ready_sort): Make static.  Move sorting logic to ...
37566         (ready_sort_debug, ready_sort_real): New static functions.
37567         (schedule_block): Sort both debug insns and real insns in preparation
37568         for ready list trimming.  Improve debug output.
37569         * sched-int.h (ready_sort): Remove global declaration.
37571 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
37573         * ipa-icf.c (sem_function::equals_private): Adjust.
37574         (sem_function::bb_dict_test): Take a vec<int> * instead of
37575         auto_vec<int>.
37576         * ipa-icf.h (bb_dict_test): Likewise.
37578 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37580         PR gcov-profile/64634
37581         * tree-eh.c (frob_into_branch_around): Fix up typos
37582         in function comment.
37583         (lower_catch): Put eh_seq resulting from EH lowering of
37584         the cleanup sequence after the cleanup rather than before it.
37586 2015-02-18  Tom de Vries  <tom@codesourcery.com>
37588         * common.opt (fstdarg-opt): New option.
37589         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37590         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37591         (@item -fstdarg-opt): New item.
37593 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
37595         PR target/65064
37596         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37597         for common symbols.
37599 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37601         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37602         insn-modes.h.
37603         (ALL_HOST_OBJS): Add mkoffload.o.
37604         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37606 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
37608         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37609         (compare_virtual_tables): Be smarter about skipping typeinfos;
37610         do sane output on virtual table table mismatch.
37611         (warn_odr): Be ready for forward declarations of enums;
37612         output sane info on base mismatch and virtual table mismatch.
37613         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37614         when only one type is polymorphic.
37615         (get_odr_type): Fix hashtable corruption.
37616         (dump_odr_type): Dump mangled names.
37618 2015-02-18  Richard Biener  <rguenther@suse.de>
37620         PR tree-optimization/65063
37621         * tree-predcom.c (determine_unroll_factor): Return 1 if we
37622         have replaced looparound PHIs.
37624 2015-02-18  Martin Liska  <mliska@suse.cz>
37626         * lto-streamer.c (lto_streamer_init): Encapsulate
37627         streamer_check_handled_ts_structures with checking macro.
37629 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
37631         PR ipa/65087
37632         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37633         section if !implicit_section.
37634         (cgraph_node::create_version_clone_with_body): Likewise.
37635         * trans-mem.c (ipa_tm_create_version): Likewise.
37637 2015-02-18  Richard Biener  <rguenther@suse.de>
37639         PR tree-optimization/62217
37640         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37641         into BIVs.
37643 2015-02-18  Marek Polacek  <polacek@redhat.com>
37645         PR sanitizer/65081
37646         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37647         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37648         is in range [-16K, -1].  Don't issue run-time error if
37649         (ptr > ptr + offset).
37651 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
37653         * doc/install.texi (nvptx-*-none): New section.
37654         * doc/invoke.texi (Nvidia PTX Options): Likewise.
37655         * config/nvptx/nvptx.opt: Update.
37657         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37658         (access_check): New functions, copied from
37659         config/i386/intelmic-mkoffload.c.
37660         (main): For non-installed testing, look in all COMPILER_PATHs for
37661         GCC_INSTALL_NAME.
37663         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37665 2015-02-18  Andrew Pinski  <apinski@cavium.com>
37666             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
37668         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37669         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37671 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37673         * ipa-visibility.c (function_and_variable_visibility): Only
37674         check locality if node is not already local.
37675         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37676         call_for_symbol_and_aliases instead of
37677         call_for_symbol_thunks_and_aliases.
37678         (ipa_inline): Likewise.
37679         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37680         first walk aliases.
37681         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37682         call_for_symbol_and_aliases.
37683         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37684         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37685         (ipa_propagate_frequency): Update.
37686         (ipa_profile): Add opt_for_fn gueards.
37688 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37690         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37691         * doc/invoke.texi (SH options): Document it.
37692         * config/sh/sh.c (sh_insn_length_adjustment): Check
37693         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37695 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
37697         * common.opt (fipa-cp-alignment): New.
37698         * ipa-cp.c (ipcp_store_alignment_results): Check
37699         flag_ipa_cp_alignment.
37700         * opts.c (default_options_table): Enable -fipa-cp-alignment for
37701         -O2.
37702         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37703         * doc/invoke.texi: Document -fipa-cp-alignment.
37705 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
37707         PR target/64793
37708         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37709         to nil.  Adjust comments.
37711 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
37713         * ipa-visibility.c (function_and_variable_visibility): Only
37714         check locality if node is not already local.
37715         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37716         call_for_symbol_and_aliases instead of
37717         call_for_symbol_thunks_and_aliases.
37718         (ipa_inline): Likewise.
37719         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37720         first walk aliases.
37721         * ipa.c (symbol_table::remove_unreachable_nodes): Use
37722         call_for_symbol_and_aliases.
37723         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37724         (ipa_propagate_frequency_1): Use it; use opt_for_fn
37725         (ipa_propagate_frequency): Update.
37726         (ipa_profile): Add opt_for_fn guards.
37728 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
37730         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37731         skipping of "strange" tokens.
37733 2015-02-17  Jeff Law  <law@redhat.com>
37735         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
37736         obsolete comment.
37738 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
37740         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37741         as forcing a HARD_DEP between instructions, thereby
37742         disallowing rewriting to break dependencies.
37744 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37746         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37747         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37748         variables in boundary that have no inlitalizer encoded and are
37749         not aliases.
37750         * varasm.c (default_binds_local_p_2): External definitions do not
37751         count as definitions here.
37753 2015-02-16  Jeff Law  <law@redhat.com>
37755         PR tree-optimization/64823
37756         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37757         statements.
37758         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37759         threading through blocks with PHIs, but no statements.
37760         (thread_through_normal_block): Distinguish between blocks where
37761         we did not process all the statements and blocks with no statements.
37763 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
37764             James Greenhalgh  <james.greenhalgh@arm.com>
37766         PR ipa/64963
37767         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37768         section if not linkonce.  Fix up formatting.
37769         (cgraph_node::create_version_clone_with_body): Copy section.
37770         * trans-mem.c (ipa_tm_create_version): Likewise.
37772 2015-02-16  Richard Biener  <rguenther@suse.de>
37774         PR tree-optimization/65077
37775         * tree-ssa-structalias.c (get_constraint_for_1): Handle
37776         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37777         (find_func_aliases): Allow float values to carry pointers again.
37779 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
37781         * doc/install.texi (Specific): Reorder targets list to put
37782         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
37783         from the top menu.
37785 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
37786             David Edelsohn  <dje.gcc@gmail.com>
37788         PR target/65058
37789         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37790         mapping class to external variable or function reference.
37791         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37792         mapping class.
37794 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
37796         PR target/53348
37797         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37798         ASM_WEAKEN_DECL if defined.
37800 2015-02-16  Richard Biener  <rguenther@suse.de>
37802         PR lto/65015
37803         * varasm.c (default_file_start): For LTO produced units
37804         emit <artificial> as file directive.
37806 2015-02-16  Richard Biener  <rguenther@suse.de>
37808         PR tree-optimization/63593
37809         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37810         stmts and releasing SSA names until...
37811         (execute_pred_commoning): ... after processing all chains.
37813 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
37815         PR ipa/65059
37816         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37817         external functions.
37819 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
37821         * doc/bugreport.texi: Adjust section titles throughout the file
37822         to use "Title Case".
37823         * doc/extend.texi: Likewise.
37824         * doc/gcov.texi: Likewise.
37825         * doc/implement-c.texi: Likewise.
37826         * doc/implement-cxx.texi: Likewise.
37827         * doc/invoke.texi: Likewise.
37828         * doc/objc.texi: Likewise.
37829         * doc/standards.texi: Likewise.
37830         * doc/trouble.texi: Likewise.
37832 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
37834         * cgraph.h (symtab_node::has_aliases_p): Simplify.
37835         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37836         * tree.c (lookup_binfo_at_offset): Make static.
37837         (get_binfo_at_offset): Do not shadow offset; add explanatory
37838         comment.
37840 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
37842         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37843         for all floading point loads and stores except those using a register
37844         index address.
37845         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37846         to a register.
37848 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
37850         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37851         (do_estimate_growth_1): Record if any uninlinable edge was seen.
37852         (estimate_growth): Handle uninlinable edges correctly.
37853         (check_callers): New.
37854         (growth_likely_positive): Handle aliases correctly.
37856 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
37858         * ipa-chkp.c: Use iterate_direct_aliases.
37859         * symtab.c (resolution_used_from_other_file_p): Move inline.
37860         (symtab_node::create_reference): Fix formating.
37861         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37862         (symtab_node::iterate_reference): Move inline.
37863         (symtab_node::iterate_referring): Move inline.
37864         (symtab_node::iterate_direct_aliases): Move inline.
37865         (symtab_node::used_from_object_file_p_worker): Inline into ...
37866         (symtab_node::used_from_object_file_p): ... this one; move inline.
37867         (symtab_node::call_for_symbol_and_aliases): Move inline;
37868         use iterate_direct_aliases.
37869         (symtab_node::call_for_symbol_and_aliases_1): New method.
37870         (cgraph_node::call_for_symbol_and_aliases): Move inline;
37871         use iterate_direct_aliases.
37872         (cgraph_node::call_for_symbol_and_aliases_1): New method.
37873         (varpool_node::call_for_node_and_aliases): Rename to ...
37874         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37875         use iterate_direct_aliases.
37876         (varpool_node::call_for_symbol_and_aliases_1): New method.
37877         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37878         (ipa_discover_readonly_nonaddressable_var): Update.
37879         * ipa-devirt.c: Fix formating.
37880         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37881         Move inline.
37882         (cgraph_node::call_for_symbol_and_aliases): Move inline.
37883         (cgraph_node::call_for_symbol_and_aliases_1): New function..
37884         * cgraph.h (used_from_object_file_p_worker): Remove.
37885         (resolution_used_from_other_file_p): Move inline.
37886         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37887         (symtab_node::iterate_reference): Move inline.
37888         (symtab_node::iterate_referring): Move inline.
37889         (symtab_node::iterate_direct_aliases): Move inline.
37890         (symtab_node::used_from_object_file_p_worker): Inline into ...
37891         (symtab_node::used_from_object_file_p): Move inline.
37892         * tree-emutls.c (ipa_lower_emutls): Update.
37893         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37894         (varpool_node::call_for_node_and_aliases): Remove.
37896 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
37898         PR tree-optimization/62209
37899         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37900         op == range->exp, insert seq and gimplified code after labels
37901         instead of after the phi.
37903 2015-02-13  Jeff Law  <law@redhat.com>
37905         PR bootstrap/65060
37906         Revert my change for tree-optimization/64823.
37908 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
37910         PR tree-optimization/65053
37911         * tree-ssa-phiopt.c (value_replacement): When moving assign before
37912         cond, either reset VR on lhs or set it to phi result VR.
37914 2015-02-13  Jeff Law  <law@redhat.com>
37916         PR tree-optimization/64823
37917         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37918         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37919         threading through blocks with PHIs, but no statements.
37920         (thread_through_normal_block): Distinguish between blocks where
37921         we did not process all the statements and blocks with no statements.
37923         PR rtl-optimization/47477
37924         * match.pd (convert (plus/minus (convert @0) (convert @1): New
37925         simplifier to narrow arithmetic.
37927 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
37929         PR ipa/65028
37930         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37931         polymorphic call info when type is not known to be preserved.
37933 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
37935         PR ipa/65028
37936         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37937         (inline_call): Use it.
37939 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
37941         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37942         GOMP_DEVICE_NVIDIA_PTX.
37944 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
37946         PR ipa/65034
37947         * stmt.c (emit_case_nodes): Use void_type_node instead of
37948         NULL_TREE as LABEL_DECL type.
37950 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
37952         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37953         constraints.
37954         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37955         symbolic references to data to be forced to constant memory on the
37956         SOM target.
37958 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
37960         PR tree-optimization/65002
37961         * tree-cfg.c (pass_data_fixup_cfg): Don't update
37962         SSA on start.
37963         * tree-sra.c (some_callers_have_no_vuse_p): New.
37964         (ipa_early_sra): Reject functions whose callers
37965         assume function is read only.
37967 2015-02-13  Richard Biener  <rguenther@suse.de>
37969         PR lto/65015
37970         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37971         for LTO produced CUs.
37973 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
37975         PR tree-optimization/64705
37976         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37977         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37978         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37979         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37980         expand_simple_operations.
37982 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
37983             Richard Henderson  <rth@redhat.com>
37985         PR rtl/32219
37986         * cgraphunit.c (cgraph_node::finalize_function): Set definition
37987         before notice_global_symbol.
37988         (varpool_node::finalize_decl): Likewise.
37989         * varasm.c (default_binds_local_p_2): Rename from
37990         default_binds_local_p_1, add weak_dominate argument.  Use direct
37991         returns instead of assigning to local variable.  Unify varpool and
37992         cgraph paths via symtab_node.  Reject undef weak variables before
37993         testing visibility.  Reorder tests for simplicity.
37994         (default_binds_local_p): Use default_binds_local_p_2.
37995         (default_binds_local_p_1): Likewise.
37996         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37997         via symtab_node.
37998         (default_elf_asm_output_external): Emit visibility when specified.
38000 2015-02-13  Alan Modra  <amodra@gmail.com>
38002         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38003         code setting up r11 for out-of-line fp restore.
38005 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
38007         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38008         (muser-mode): Likewise.
38010 2015-02-13  Alan Modra  <amodra@gmail.com>
38012         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38013         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38015 2015-02-12  David Howells  <dhowells@redhat.com>
38017         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38018         warning.
38019         * tree-ssa-uninit.c (dump_predicates): Likewise.
38020         * opts.c (print_filtered_help): Likewise.
38022 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38024         * dwarf2out.c (output_die): Use "%s", name instead of name to
38025         avoid -Wformat-security warning.
38027         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38028         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38029         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38030         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38032 2015-02-12  Jason Merrill  <jason@redhat.com>
38034         * common.opt (-flifetime-dse): New.
38036 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38038         PR sanitizer/65019
38039         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38041         PR tree-optimization/65014
38042         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38043         use original second operand of arg0 or arg1 instead of
38044         that adjusted by STRIP_NOPS.
38046 2015-02-11  Jeff Law  <law@redhat.com>
38048         PR target/63347
38049         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38050         that needs to be queued, just queue it for a single cycle.
38052 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
38054         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38055         bodies of thunks; comment on why.
38056         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38057         symbols are extern.
38059 2015-02-11  Richard Henderson  <rth@redhat.com>
38061         PR sanitize/65000
38062         * tree-eh.c (mark_reachable_handlers): Mark source and destination
38063         regions of __builtin_eh_copy_values.
38065 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38067         PR middle-end/65003
38068         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38069         ultimate alias is MEM with SYMBOL_REF satisfying
38070         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
38071         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38073 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
38075         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38076         "diagnostic-core.h".
38077         (main): Initialize progname, and call diagnostic_initialize.
38079         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38080         instead of __OPENMP_TARGET__.
38082         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38083         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38084         hard-coding PTX_ID.
38086 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
38088         * doc/sourcebuild.texi (pie_enabled): Document.
38090 2015-02-11  Martin Liska  <mliska@suse.cz>
38092         PR ipa/64813
38093         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38094         a return value for call to a function that is noreturn.
38096 2015-02-11  Richard Biener  <rguenther@suse.de>
38098         PR lto/65015
38099         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38100         and -fresolution.
38102 2015-02-11  Andrew Pinski  <apinski@cavium.com>
38104         PR target/64893
38105         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38106         Change the first argument type to size_type_node and add another
38107         size_type_node.
38108         (aarch64_simd_expand_builtin): Handle the new argument to
38109         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38110         print an out when the first two arguments are not
38111         nonzero integer constants.
38112         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38113         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38115 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38117         PR target/61925
38118         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38119         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38120         (ix86_set_current_function): Rewritten.
38121         (ix86_add_new_builtins): Temporarily clear current_target_pragma
38122         when creating builtin fndecls.
38124 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38126         PR ipa/65005
38127         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38128         function.
38129         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38130         have no comdat group.
38131         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38132         (lto_output_varpool_node): Always output alias info.
38133         (output_refs): Output refs of boundary aliases, too.
38134         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38135         (output_symtab): Output call eges in thunks in boundary.
38136         (get_alias_symbol): Remove.
38137         (input_node, input_varpool_node): Do not special case weakrefs.
38138         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38139         alias and thunks targets in the boundary; do not take removed symbols
38140         from their comdat groups.
38141         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38142         (cgraph_node::global_info): Remove.
38143         (cgraph_node::rtl_info): Look through aliases and thunks.
38144         * cgrpah.h (global_info): Remove.
38145         (non_local_p): Remove.
38147 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38148             Sandra Loosemore  <sandra@codesourcery.com>
38150         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38151         to inline asm.  List dialects in proper order.
38153 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38154             Sandra Loosemore  <sandra@codesourcery.com>
38156         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38158 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38160         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38161         modified) reference to Solaris.
38163 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
38165         * doc/extend.texi (Extended Asm): Fix typos.
38167 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
38169         PR sanitizer/65004
38170         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38172 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
38174         PR target/64661
38175         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38176         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38177         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38178         * config/sh/constraints.md (Ara, Add): New constraints.
38179         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38180         predicates.
38181         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38182         atomic_mem_operand_0.  Don't use force_reg on the memory address.
38183         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38184         Sra constraint.  Convert to insn_and_split.  Add workaround for
38185         PR 64974.
38186         (atomic_compare_and_swap<mode>_hard): Copy to
38187         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
38188         Use atomic_mem_operand_0 predicate.
38189         (atomic_compare_and_swap<mode>_soft_gusa,
38190         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38191         AraAdd constraints.
38192         (atomic_compare_and_swap<mode>_soft_tcb,
38193         atomic_compare_and_swap<mode>_soft_imask,
38194         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38195         atomic_mem_operand_0 predicate and SraSdd constraints.
38196         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38197         constraint.
38198         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38199         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
38200         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38201         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
38202         force_reg on the memory address.
38203         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38204         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38205         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38206         atomic_mem_operand_1 predicate and Sra constraint.
38207         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38208         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38209         Use atomic_mem_operand_1 predicate.
38210         (atomic_<fetchop_name><mode>_hard): Copy to
38211         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38212         Use atomic_mem_operand_1 predicate.
38213         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38214         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38215         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
38216         insn_and_split.  Use atomic_mem_operand_1 predicate.
38217         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38218         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
38219         Use atomic_mem_operand_1 predicate.
38220         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38221         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38222         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38223         in generated insn with original mem operand before emitting the insn.
38224         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38225         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38226         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38227         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38228         Use atomic_mem_operand_1 predicate and AraAdd constraints.
38229         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38230         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38231         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38232         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38233         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38234         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38235         atomic_not_fetch<mode>_soft_tcb,
38236         atomic_<fetchop_name>_fetch<mode>_soft_imask,
38237         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38238         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38239         Use atomic_mem_operand_1 predicate and SraSdd constraints.
38241 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
38243         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38244         and 3 earlyclobber operands.
38246 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38248         * common.opt (fstack-reuse): Mark as optimization.
38250 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38252         PR ipa/64982
38253         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38255 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
38257         PR tree-optimization/64326
38258         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38260 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
38262         PR gcov-profile/61889
38263         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38265 2015-02-10  Richard Biener  <rguenther@suse.de>
38267         PR tree-optimization/64995
38268         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38269         value we use is final.
38270         (visit_reference_op_store): Always valueize op.
38271         (visit_use): Properly valueize vuses.
38273 2015-02-10  Richard Biener  <rguenther@suse.de>
38275         PR tree-optimization/64909
38276         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38277         pass a scalar-stmt count estimate to the cost model.
38278         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38280 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
38282         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38283         enabled by default together with var-tracking.
38285 2015-02-10  Nick Clifton  <nickc@redhat.com>
38287         * config/rl78/rl78.c: Remove DIV attribute code accidentally
38288         included in previous rl78 commit.
38290 2015-02-10  Richard Biener  <rguenther@suse.de>
38292         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38293         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38294         return the bitpack.
38296 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
38298         PR gcov-profile/61889
38299         * config.in: regenerate.
38300         * configure.in: Likewise.
38301         * configure.ac: Check for ftw.h.
38302         * gcov-tool.c: Check for ftw.h before using nftw.
38304 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
38306         PR lto/64076
38307         * ipa-visibility.c (update_visibility_by_resolution_info): Only
38308         assert when not in lto mode.
38310 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
38312         * ira-color.c (setup_left_conflict_sizes_p): Simplify
38313         initialization/assignment of conflict_size.
38315 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
38317         PR ipa/64978
38318         * ipa-cp.c (gather_caller_stats): Skip thunks.
38319         (propagate_constants_topo): Skip aliases.
38321 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
38323         PR target/64761
38324         * config/sh/sh.c (sh_option_override): Don't change
38325         -freorder-blocks-and-partition to -freorder-blocks even when
38326         unwinding is enabled.
38327         (sh_can_follow_jump): Return false if the followee jump is
38328         a crossing jump when -freorder-blocks-and-partition is specified.
38329         * config/sh/sh.md (*jump_compact_crossing): New insn.
38331 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
38332             Kaz Kojima  <kkojima@gcc.gnu.org>
38334         PR target/64761
38335         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38336         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38337         (sh_can_redirect_branch): Rename to ...
38338         (sh_can_follow_jump): ... this.  Constify argument types.
38339         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38340         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38341         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38342         * doc/tm.texi: Regenerate.
38344 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38346         PR sanitizer/64981
38347         * builtins.c (expand_builtin): Call targetm.expand_builtin
38348         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38350 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38352         PR ipa/61548
38353         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38355 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38357         PR ipa/63566
38358         * ipa-icf.c (set_local): New function.
38359         (sem_function::merge): Use it.
38361 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38363         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38364         (add_type_duplicate): Fix comparison of BINFOs.
38366 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38368         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38369         on getting VOID pointer.
38371 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38373         PR target/64979
38374         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38375         va_list escapes.
38377 2015-02-09  Richard Biener  <rguenther@suse.de>
38379         * genmatch.c (replace_id): Copy expr_type.
38381 2015-02-09  Richard Biener  <rguenther@suse.de>
38383         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38384         (streamer_write_tree_bitfields): Declare.
38385         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38386         properly unpack padding.
38387         (unpack_value_fields): Inline ...
38388         (streamer_read_tree_bitfields): ... here.
38389         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38390         and properly add padding bits.
38391         (streamer_pack_tree_bitfields): Fold into ...
38392         (streamer_write_tree_bitfields): ... this new function,
38393         exposing the bitpack object.
38394         * lto-streamer-out.c (lto_write_tree_1): Call
38395         streamer_write_tree_bitfields.
38397 2015-02-09  Richard Biener  <rguenther@suse.de>
38399         PR tree-optimization/54000
38400         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38401         (struct ivopts_data): Add loop_loc member.
38402         (tree_ssa_iv_optimize_loop): Dump loop location.
38403         (create_new_ivs): Likewise, also dump number of IVs generated.
38405 2015-02-09  Martin Liska  <mliska@suse.cz>
38407         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38408         just if not yet registered.
38409         (ipa_icf_generate_summary): Register callgraph hooks.
38411 2015-02-08  Andrew Pinski  <apinski@cavium.com>
38413         * config/aarch64/aarch64.c (gty_dummy): Delete.
38415 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38417         PR ipa/63566
38418         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38419         (cgraph_node::local_p): Remove thunk related FIXME.
38421 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38423         PR ipa/63566
38424         * i386.c (ix86_function_regparm): Look through aliases to see if callee
38425         is local and optimized.
38426         (ix86_function_sseregparm): Likewise; also use target's SSE math
38427         settings; error out instead of silently generating wrong code
38428         on mismatches.
38429         (init_cumulative_args): Look through aliases.
38431 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38433         PR ipa/63566
38434         * ipa-split.c (execute_split_functions): Split if function has aliases.
38436 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38438         PR ipa/63566
38439         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38440         aliases before trying to expand it.
38441         (cgraph_node::expand_thunk): Fix formating.
38443 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
38445         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38446         (Using Assembly Language with C): Expand introduction.
38447         (Basic Asm): Copy-edit.  Add more information about uses of
38448         basic asm.
38449         (Extended Asm): Copy-edit.  Document new escape syntax and
38450         %l[label] syntax.
38451         (Global Reg Vars): Copy-edit.
38452         (Local Reg Vars): Likewise.
38454 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
38456         PR debug/2714
38457         PR bootstrap/64256
38458         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38459         (DBX_CONTIN_CHAR): Define.
38461 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
38462             Brian Rzycki  <b.rzycki@samsung.com>
38464         PR tree-optimization/64878
38465         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38466         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38467         Stop recursion at loop phi nodes after having visited a loop phi node.
38469 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38471         * toplev.c (process_options): Change flag_ipa_ra before creating
38472         optimization_{default,current}_node.
38474         PR ipa/64896
38475         * cgraphunit.c (cgraph_node::expand_thunk): If
38476         restype is not is_gimple_reg_type nor the thunk_fndecl
38477         returns aggregate_value_p, set restmp to a temporary variable
38478         instead of resdecl.
38480 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
38482         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38484 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
38486         PR target/64205
38487         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38488         add a general secondary reload handler for SDmode, unless we have
38489         both read/write support for SDmode.
38491 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38493         PR middle-end/64937
38494         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38495         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38496         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38497         1 before, push it to abstract_vec.
38498         (dwarf2out_abstract_function): Adjust caller.  Don't call
38499         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38500         DECL_ABSTRACT_P flags for all abstract_vec elts.
38502 2015-02-06  Renlin Li  <renlin.li@arm.com>
38504         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38505         complex gimple.
38506         * tree-ssa.c (execute_update_addresses_taken): Likewise.
38508 2015-02-06  Jeff Law  <law@redhat.com>
38510         PR target/64889
38511         * config/h8300/h8300.c (push): New argument "in_prologue".
38512         Pass "in_prologue" along to "F".
38513         (h8300_push_pop): Corresponding changes.
38514         (h8300_expand_prologue): Likewise.
38515         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
38517 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
38519         PR rtl-optimization/64957
38520         PR debug/64817
38521         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38522         IOR rather than for AND.
38524 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
38526         PR target/62631
38527         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38528         of shift-add and (add + shift) operations.  Rename local variable.
38530 2015-02-05  Jeff Law  <law@redhat.com>
38532         PR target/17306
38533         * config/h8300/constraints.md (U): Correctly dectect
38534         "eightbit_data" memory addresses.
38535         * config/h8300/h8300.c (eightbit_constant_address_p): Also
38536         handle (const (plus (symbol_ref (x)))) where x is declared
38537         as an 8-bit data memory address.
38538         * config/h8300/h8300.md (call, call_value): Correctly detect
38539         "funcvec" functions.
38541         PR target/43264
38542         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38543         24 to 28 bits for the H8/300.
38545 2015-02-06  Alan Modra  <amodra@gmail.com>
38547         PR target/64876
38548         * config/rs6000/rs6000.c (chain_already_loaded): New function.
38549         (rs6000_call_aix): Use it.
38551 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
38553         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38554         check.
38556 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
38558         * config/h8300/constraints.md ("U" constraint): Use strict
38559         variant of REG_OK_FOR_BASE_P after reload has started.
38561 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
38563         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38564         define to zero if !TARGET_NEON.
38565         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38567 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38568             Trevor Saunders  <tsaunders@mozilla.com>
38570         PR ipa/61548
38571         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38573 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38575         PR ipa/61548
38576         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38577         when removing varpool nodes.
38579 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38581         PR ipa/61548
38582         * varpool.c (varpool_node::remove): Fix order of variables.
38584 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38586         PR ipa/64686
38587         * ipa-inline.c (inline_small_functions): Fix ordering issue between
38588         speculation resolution and key updates.
38590 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38592         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38593         about not letting any speculative edges unupdated.
38595 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38597         PR gcov/64123
38598         * gcov-io.c (gcov_var): Export.
38600 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38602         PR middle-end/64922
38603         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38604         edges that become speculative.
38606 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38608         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38609         or DW_LANG_Fortran08.
38610         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38611         DW_LANG_Fortran08.
38612         (gen_compile_unit_die): Handle "GNU Fortran2003" and
38613         "GNU Fortran2008" language strings.
38614         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38615         * langhooks.h (lang_GNU_Fortran): New prototype.
38616         * langhooks.c (lang_GNU_Fortran): New function.
38617         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38618         lang_GNU_Fortran.
38620 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
38622         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38623         (RTX_OK_FOR_OLO10_P): Likewise.
38625 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
38627         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38629 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
38631         PR middle-end/64922
38632         * gimple.c: Include gimple-ssa.h.
38633         (maybe_remove_unused_call_args): New function.
38634         * gimple.h (maybe_remove_unused_call_args): Declare.
38635         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38636         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38637         * gimple-fold.c (gimple_fold_call): Likewise.
38639 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
38641         PR rtl-optimization/64905
38642         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38643         pointer alignment if it isn't needed.
38645 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38647         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38648         cortex-a72.cortex-a53.
38649         * config/aarch64/aarch64-tune.md: Regenerate.
38650         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38652 2015-02-04  Nick Clifton  <nickc@redhat.com>
38654         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38655         inside a MEM.
38657 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
38659         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38660         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38661         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38662         of DEF_BUILTIN.
38663         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38664         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38665         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38666         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38667         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38668         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38669         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38670         * tree-core.h (enum built_in_function): In between
38671         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38672         for builtins that use DEF_BUILTIN_CHKP macro.
38674 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
38676         PR debug/64817
38677         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38678         operands for tcc_comparison exprs.  Fix typos.
38680         PR debug/64817
38681         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38682         of two XORs that have an intervening AND or IOR.
38684         PR debug/64817
38685         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38686         simplification of XOR of AND to not allocate new rtx before
38687         committing to a simplification.
38689 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38691         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38692         manual swaps in all peepholes.
38694 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38696         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38697         of manual swapping implementation.
38698         (aarch64_expand_vec_perm_const_1): Likewise.
38700 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
38702         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38703         (generic_addrcost_table): Remove NAMED_PARAM.
38704         (cortexa57_addrcost_table): Likewise.
38705         (xgene1_addrcost_table): Likewise.
38706         (generic_regmove_table): Likewise.
38707         (cortexa53_regmove_table): Likewise.
38708         (xgene1_regmove_table): Likewise.
38709         (generic_vector_table): Likewise.
38710         (cortexa57_vector_table): Likewise.
38711         (xgene1_vector_table): Likewise.
38712         (generic_tunings): Likewise.
38713         (cortexa53_tunings): Likewise.
38714         (cortexa57_tunings): Likewise.
38715         (xgene1_tunings): Likewise.
38717 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
38719         * config/arm/arm-cores.def: Add cortex-a72 and
38720         cortex-a72.cortex-a53.
38721         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38722         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38723         * config/arm/arm-tune.md: Regenerate.
38724         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38725         "cortex-a72.cortex-a53".
38726         * doc/invoke.texi (ARM Options/-mtune): Likewise.
38728 2015-02-04  Nick Clifton  <nickc@redhat.com>
38730         PR target/64408
38731         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38732         of accepted codes.
38733         (nonimmediate_di_operand): Likewise.
38735         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38736         prefixes of known F5 using MSP430 MCUs.
38738 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38740         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38741         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38742         instead of __builtin_sqrt.
38744 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
38746         * varasm.c (do_assemble_alias): Follow transparent alias
38747         chain for target.
38748         (default_assemble_visibility): Follow transparent alias
38749         chain for decl name.
38751 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
38753         PR middle-end/62103
38754         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38755         to compute size of referenced value in the constant case.
38757 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38759         PR rtl-optimization/64756
38760         * cse.c (invalidate_dest): New function.
38761         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
38762         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38763         invalidate and do not record it.
38765 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
38767         PR target/64660
38768         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38769         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38770         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38771         atomic_nand<mode>_soft_tcb): New insns.
38772         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38773         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38774         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38775         Split into atomic_not_fetchsi_hard if operands[0] is unused.
38776         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38777         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38778         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
38779         atomic_not<mode>_hard if operands[0] is unused.
38780         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38781         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38782         if operands[0] is unused.
38783         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
38784         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38785         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38786         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38787         unused.
38788         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
38789         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38790         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38791         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38792         if operands[0] is unused.
38793         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
38794         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38795         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
38796         atomic_nand_fetchsi_hard if operands[0] is unused.
38797         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
38798         atomic_nand<mode>_hard if operands[0] is unused.
38799         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
38800         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38801         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
38802         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38803         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
38804         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38805         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38806         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38807         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
38808         atomic_not<mode>_hard if operands[0] is unused.
38809         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38810         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38811         unused.
38812         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38813         into atomic_not<mode>_soft_tcb if operands[0] is unused.
38814         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
38815         atomic_nand<mode>_hard if operands[0] is unused.
38816         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
38817         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38819 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
38821         PR jit/64810
38822         * Makefile.in (GCC_OBJS): Add gcc-main.o.
38823         * gcc-main.c: New file, containing "main" taken from gcc.c.
38824         * gcc.c (do_self_spec): Free decoded_options.
38825         (class driver): Move declaration to gcc.h.
38826         (main): Move declaration and implementation to new file
38827         gcc-main.c.
38828         (driver_get_configure_time_options): New function.
38829         * gcc.h (class driver): Move this declaration here, from
38830         gcc.c.
38831         (driver_get_configure_time_options): New declaration.
38833 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
38835         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38836         cross-module inlining.
38837         * cgraph.h (cgraph_node): Add flag merged.
38838         * ipa-icf.c (sem_function::merge): Maintain it.
38840 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
38842         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38843         instead of OBJECT_P.
38845 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
38847         PR target/62631
38848         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38849         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38850         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38851         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38853 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
38855         PR other/63504
38856         * combine.c (reg_n_sets_max): New variable.
38857         (can_change_dest_mode, reg_nonzero_bits_for_combine,
38858         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38859         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38860         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38861         (rest_of_handle_combine): Initialize reg_n_sets_max.
38863 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
38865         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38866         if some always_inline was inlined, apply changes before inlining
38867         heuristically.
38869 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
38871         PR jit/64810
38872         * config/arm/arm.c (arm_option_override): Set
38873         arm_selected_arch/cpu/tune to NULL on entry.
38875 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
38876             Andrew Pinski  <pinskia@gcc.gnu.org>
38877             Jakub Jelinek  <jakub@gcc.gnu.org>
38879         PR target/64231
38880         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38881         integer typing for small model. Use IN_RANGE.
38883 2015-02-02  Richard Biener  <rguenther@suse.de>
38885         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38886         * tree-vrp.c (vrp_valueize_1): Likewise.
38888 2015-02-02  Alan Modra  <amodra@gmail.com>
38890         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38891         than mem for toc_restore.
38892         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38893         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38894         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38896 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
38898         PR target/64047
38899         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38900         explicit default options.
38902 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
38904         PR ipa/64872
38905         * ipa-utils.c (ipa_merge_profiles): Add release argument.
38906         * ipa-icf.c (sem_function::merge): Do not release body when merging.
38907         * ipa-utils.h (ipa_merge_profiles): Update prototype.
38909 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
38911         PR debug/64817
38912         * cfgexpand.c (deep_ter_debug_map): New variable.
38913         (avoid_deep_ter_for_debug): New function.
38914         (expand_debug_expr): If TERed SSA_NAME is in
38915         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38916         instead of trying to expand SSA_NAME's def stmt.
38917         (expand_debug_locations): When expanding debug bind
38918         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38919         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38920         value.
38921         (pass_expand::execute): Call avoid_deep_ter_for_debug on
38922         all debug bind stmts.  Delete deep_ter_debug_map after
38923         expand_debug_location if non-NULL and clear it.
38925 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
38927         PR target/64851
38928         * config/sh/sync.md (atomic_fetch_notsi_hard,
38929         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38930         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38931         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38932         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38933         atomic_not_fetch<mode>_soft_imask): New insns.
38935 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38937         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38938         (rank_for_schedule_debug): Split from ...
38939         (rank_for_schedule): ... this.
38940         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38941         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38943 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
38945         * doc/md.texi (Machine Constraints): Alphabetize table by target.
38946         * doc/extend.texi (x86 Variable Attributes): Move section to
38947         correct alphabetization after renaming.
38948         (x86 Type Attributes): Likewise.
38949         (Target Builtins): Re-alphabetize menu.
38950         (x86 Built-in Functions): Move section to correct alphabetization
38951         after renaming.
38952         (x86 transactional memory intrinsics): Likewise.
38953         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38954         and x86 Windows Options in table and menu.
38955         (x86 Options): Move section to correct alphabetization after
38956         renaming.
38957         (x86 Windows Options): Likewise.
38959 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
38961         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38962         preferred names of the architecture and its 32- and 64-bit
38963         variants.
38964         * doc/invoke.texi: Likewise.
38965         * doc/md.texi: Likewise.
38967 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
38969         PR target/64882
38970         * config/i386/predicates.md (address_no_seg_operand): Reject
38971         non-CONST_INT_P operands in invalid mode.
38973 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
38975         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38976         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
38977         * config/i386/predicates.md (address_no_seg_operand): Call
38978         address_operand with VOIDmode.
38979         (vsib_address_operand): Ditto.
38980         (address_mpx_no_base_operand): Ditto.
38981         (address_mpx_no_index_operand): Ditto.
38983 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38985         PR target/64688
38986         * lra-constraints.c (original_subreg_reg_mode): New.
38987         (simplify_operand_subreg): Try to simplify subreg of const.  Use
38988         original_subreg_reg_mode for it.
38989         (swap_operands): Update original_subreg_reg_mode.
38990         (curr_insn_transform): Set up original_subreg_reg_mode.
38992 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
38994         PR target/64617
38995         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38996         function.
38997         (process_alt_operands): Use it.
38998         (curr_insn_transform): Check the optional reload pseudo class is
38999         ok for the mode.
39001 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
39003         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39004         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39005         prototype.
39006         * toplev.h (init_asm_output): Update comment on use of
39007         UNKNOWN_LOCATION with fatal_error.
39008         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39009         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39010         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39011         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39012         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39013         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39014         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39015         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39016         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39017         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39018         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39019         fatal_error changed to pass input_location as first argument.
39021 2015-01-30  Martin Liska  <mliska@suse.cz>
39023         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39024         in #pragma GCC diagnostic guards.
39026 2015-01-30  Richard Biener  <rguenther@suse.de>
39028         PR tree-optimization/64829
39029         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39030         not add a widening conversion pattern but hand off extra
39031         widenings to callers.
39032         (vect_recog_widen_mult_pattern): Handle extra widening produced
39033         by vect_handle_widen_op_by_const.
39034         (vect_recog_widen_shift_pattern): Likewise.
39035         (vect_pattern_recog_1): Remove excess vertical space in dumping.
39036         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39037         (vect_init_vector_1): Likewise.
39038         (vect_get_vec_def_for_operand): Likewise.
39039         (vect_finish_stmt_generation): Likewise.
39040         (vectorizable_load): Likewise.
39041         (vect_analyze_stmt): Likewise.
39042         (vect_is_simple_use): Likewise.
39044 2015-01-29  Jeff Law  <law@redhat.com>
39046         * combine.c (try_combine): Fix typo in comment.
39048 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
39050         PR target/64580
39051         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39052         (rs6000_stack_info): Add assert.
39053         (rs6000_output_savres_externs): New function, split off from...
39054         (rs6000_output_function_prologue): ... here.  Do not call it for
39055         thunks.
39057 2015-01-29  Jeff Law  <law@redhat.com>
39059         PR target/15184
39060         * combine.c (try_combine): If I0 is a memory load and I3 a store
39061         to a related address, increase the "goodness" of doing a 4-insn
39062         combination with I0-I3.
39063         (make_field_assignment): Handle SUBREGs in the ior+and case.
39065 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
39067         PR tree-optimization/64746
39068         * tree-if-conv.c (mask_exists): New function.
39069         (predicate_mem_writes): Save created mask with given size for further
39070         use.
39071         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39072         (ifcvt_repair_bool_pattern): Collect all statements that are root
39073         of bool pattern and use iterative algorithm to remove multiple uses
39074         of predicates, display number of required iterations.
39076 2015-01-29  Richard Biener  <rguenther@suse.de>
39078         PR tree-optimization/64853
39079         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39080         stmt will get simulated again.
39081         * tree-ssa-ccp.c (valueize_op_1): Likewise.
39083 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39085         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39086         return_in_pc.  Remove redundant assignments.
39087         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39088         (arm_expand_epilogue): Don't compare boolean with true in if condition.
39090 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
39092         * config/i386/i386.c (ix86_mode_after): Make static.
39094 2015-01-29  Richard Biener  <rguenther@suse.de>
39096         PR tree-optimization/64844
39097         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39098         dump cost model analysis.
39099         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39100         Do not register adjusted load/store costs here.
39102 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39103             Uros Bizjak  <ubizjak@gmail.com>
39105         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39106         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39107         using x86_use_pseudo_pic_reg.
39108         * config/i386/i386.c (ix86_conditional_register_usage): Remove
39109         support for fixed PIC register.
39110         (ix86_use_pseudo_pic_reg): Not static any more.
39112 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39114         PR middle-end/64805
39115         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39116         to avoid error in cgraph node verification.
39118 2015-01-29  Marek Polacek  <polacek@redhat.com>
39120         * doc/standards.texi: Reflect that the default for C is gnu11.
39122 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
39124         PR target/64761
39125         * reorg.c (switch_text_sections_between_p): New function.
39126         (relax_delay_slots): Call it when testing if the jump insn
39127         is removable.  Use targetm.can_follow_jump when testing if
39128         the conditional branch can follow an unconditional jump.
39130 2015-01-27  Caroline Tice  <cmtice@google.com>
39132         Committing VTV Cywin/Ming patch for Patrick Wollgast
39133         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39134         if -fvtable-verify=preinit/std is used.
39135         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39136         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39137         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39138         if -fvtable-verify=preinit/std is used.
39139         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39140         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39141         if -fvtable-verify=preinit/std is used.
39142         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39143         * config/i386/mingw32.h (LIB_SPEC): Likewise.
39144         * varasm.c (assemble_variable): Add code to properly set the comdat
39145         section and name for the .vtable_map_vars section in case the
39146         target is PE or COFF.
39148 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39150         PR ipa/64801
39151         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39152         make sane BB profile.
39153         (cgraph_node::expand_thunk): Make sane BB profile.
39154         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39155         * cgraph.h (init_lowered_empty_function): Update prototype.
39156         * config/i386/i386.c (make_resolver_func): Update call.
39157         * predict.c (gate): Disable branch prediction pass if
39158         profile is already there.
39160 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39162         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39163         * opth-gen.awk: Likewise.
39164         * common.opt: Mark flag_fp_contract_mode as Optimization.
39166 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39168         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39169         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39171 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
39173         PR target/64659
39174         * config/sh/predicates.md (atomic_arith_operand,
39175         atomic_logical_operand): Remove.
39176         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39177         (atomic_arith_operand_0): New predicate.
39178         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39179         Use atomic_arith_operand_0 for input values.
39180         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39181         atomic_compare_and_swap<mode>_soft_gusa,
39182         atomic_compare_and_swap<mode>_soft_tcb,
39183         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39184         arith_reg_operand instead of register_operand.
39185         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
39186         atomic_arith_operand_0 for newval input.
39187         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39188         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39189         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39190         arith_reg_operand instead of register_operand.
39191         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39192         fetchop_predicate_1, fetchop_constraint_1_llcs,
39193         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39194         fetchop_constraint_1_imask): New code iterator attributes.
39195         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39196         register_operand.  Use fetchop_predicate_1.
39197         (atomic_fetch_<fetchop_name>si_hard,
39198         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39199         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39200         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39201         and arith_reg_operand instead of register_operand.  Use
39202         fetchop_predicate_1, fetchop_constraint_1_gusa.
39203         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39204         and arith_reg_operand instead of register_operand.  Use
39205         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
39206         to allow R0 usage.
39207         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39208         and arith_reg_operand instead of register_operand.  Use
39209         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
39210         to allow R0 usage.
39211         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39212         register_operand.  Use atomic_logical_operand_1.
39213         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39214         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39215         arith_reg_operand instead of register_operand.
39216         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39217         Use arith_reg_dest and arith_reg_operand instead of register_operand.
39218         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
39219         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39220         register_operand.  Use fetchop_predicate_1.
39221         (atomic_<fetchop_name>_fetchsi_hard,
39222         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39223         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39224         fetchop_constraint_1_llcs.
39225         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39226         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39227         fetchop_constraint_1_gusa.
39228         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39229         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39230         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
39231         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39232         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39233         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
39234         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39235         register_operand.  Use atomic_logical_operand_1.
39236         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39237         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39238         arith_reg_operand instead of register_operand.
39239         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39240         arith_reg_operand instead of register_operand.  Use logical_operand
39241         and K08.  Adjust asm sequence to allow R0 usage.
39242         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39243         arith_reg_operand instead of register_operand.  Use logical_operand
39244         and K08.
39246 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
39248         PR other/63504
39249         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39250         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39251         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39252         only get_full_len HOST_WIDE_INTs from get_val () array rather than
39253         all bits in *val_wide.
39255 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
39257         * varpool.c (tls_model_names): Fix names.
39258         (varpool_node::dump): Dump tls- prefix for tls models.
39260 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
39261             Bernd Schmidt  <bernds@codesourcery.com>
39262             Nathan Sidwell  <nathan@codesourcery.com>
39264         * config/nvptx/mkoffload.c: New file.
39265         * config/nvptx/t-nvptx: Add build rules for it.
39266         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39267         (extra_programs): Add mkoffload.
39268         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39269         function.
39270         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39272 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
39274         PR middle-end/64809
39275         * cfgexpand.c (reorder_operands): Skip debug gimples.
39277 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
39279         PR tree-optimization/64277
39280         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39281         range info when possible to refine estimation.
39283 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39285         PR tree-optimization/64718
39286         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39287         be a 16bit unsigned integer when n->range is 16.
39288         (bswap_replace): Convert src to that type if necessary for all bswap
39289         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
39290         set in pass_optimize_bswap::execute ().
39292 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
39294         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39295         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39296         integer and floating point variants.
39297         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39299 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
39301         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39302         for all vector modes.
39304 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
39306         PR bootstrap/64612
39307         * doc/sourcebuild.texi (comdat_group): Document.
39309 2015-01-28  Terry Guo  <terry.guo@arm.com>
39311         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39313 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
39315         * toplev.c (print_version): Add param "show_global_state", and
39316         only print GGC and plugin information if it is true.
39317         (init_asm_output): Pass in "true" for the new param when calling
39318         print_version.
39319         (process_options): Likewise.
39320         (toplev::main): Likewise.
39321         * toplev.h (print_version): Add new param to decl.
39323 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
39325         PR ipa/60871
39326         PR ipa/64139
39327         * tree.c (lookup_binfo_at_offset): New function.
39328         (get_binfo_at_offset): Use it.
39330 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
39332         PR ipa/64282
39333         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39334         on vtable being vtable.
39336 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39338         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39339         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39340         -mhotpatch= option.
39341         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39342         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
39343         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39344         Renamed.
39345         (s390_hotpatch_trampoline_halfwords_max): Renamed.
39346         (s390_hotpatch_hw_max): New name.
39347         (s390_hotpatch_trampoline_halfwords): Renamed.
39348         (s390_hotpatch_hw_before_label): New name.
39349         (get_hotpatch_attribute): Removed.
39350         (s390_hotpatch_hw_after_label): New name.
39351         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39352         attribute.
39353         (s390_attribute_table): Ditto.
39354         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39355         (s390_function_num_hotpatch_hw): New name.
39356         Remove special handling of inline functions and hotpatching.
39357         Return number of nops before and after the function label.
39358         (s390_can_inline_p): Removed.
39359         (s390_asm_output_function_label): Emit a configurable number of nops
39360         after the function label.
39361         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39362         (TARGET_CAN_INLINE_P) Removed.
39363         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39365 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39366             Jiong Wang  <jiong.wang@arm.com>
39368         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39369         of scratch reg.
39370         (cb<optab><mode>1): Likewise.
39371         * config/aarch64/iterators.md (bcond): New define_code_attr.
39373 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39375         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39376         memory accesses.
39378 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39380         * config/s390/s390.c (s390_register_move_cost): Increase costs for
39381         FPR->GPR moves.
39383 2015-01-27  Richard Biener  <rguenther@suse.de>
39385         * tree-vrp.c (update_value_range): Intersect the range with
39386         old recorded SSA name range information.
39388 2015-01-27  Nick Clifton  <nickc@redhat.com>
39390         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39391         BC, DE and HL registers directly, not via AX.
39392         When decrementing the stack pointer by a large amount, transfer SP
39393         into AX and perform the subtraction there.
39394         (rl78_expand_epilogue): Perform the inverse of the above
39395         enhancements.
39397 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39399         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39401 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39402             Yury Gribov  <y.gribov@samsung.com>
39404         PR ubsan/64741
39405         * ubsan.c (ubsan_source_location): Refactor code.
39406         (ubsan_type_descriptor): Update type size. Refactor code.
39408 2015-01-27  Richard Biener  <rguenther@suse.de>
39410         PR tree-optimization/56273
39411         PR tree-optimization/59124
39412         PR tree-optimization/64277
39413         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39414         from the first VRP pass.
39416 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39418         PR ipa/64776
39419         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39420         handle the first argument in the same loop as all the other arguments.
39422         PR rtl-optimization/61058
39423         * jump.c (cleanup_barriers): Update basic block boundaries
39424         if BLOCK_FOR_INSN is non-NULL on PREV.
39426 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
39428         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39429         bounds narrowing, already instrumented calls and calls to
39430         not instrumentable functions.
39432 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
39434         PR tree-optimization/64807
39435         * wide-int.cc (wi::divmod_internal): Clear
39436         b_dividend[dividend_blocks_needed].
39438 2015-01-26  DJ Delorie  <dj@redhat.com>
39440         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39441         volatile memory references.
39443 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
39445         PR target/49263
39446         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39447         remove_insn.
39448         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39449         shifts if it already fits into K08.
39451 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
39453         PR ipa/64730
39454         * ipa-inline.c (inline_small_functions): Print "unknown" even
39455         if edge->call_stmt is non-NULL, but has builtins or unknown
39456         location.
39458         PR middle-end/64421
39459         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39460         with asterisk, skip the first character.
39462 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
39464         PR target/64806
39465         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39466         order change.
39468 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
39470         PR target/64795
39471         * config/i386/i386.md (*movdi_internal): Also check operand 0
39472         to determine TYPE_LEA operand.
39473         (*movsi_internal): Ditto.
39475 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
39477         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39478         OPTION_MASK_QUAD_MEMORY_ATOMIC.
39480 2015-01-26  Renlin Li  <renlin.li@arm.com>
39482         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39483         the comment.
39484         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39485         for higher part.
39487 2015-01-26  Richard Biener  <rguenther@suse.de>
39489         PR middle-end/64764
39490         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39491         combining two BIT_AND_EXPR predicates.
39493 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
39495         PR bootstrap/64754
39496         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39498 2015-01-26  Terry Guo  <terry.guo@arm.com>
39500         * config/arm/arm.c (arm_file_start): Update the assignment of
39501         Tag_ABI_HardFP_use.
39503 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
39505         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39506         pipeline model.
39507         config/arm/arm.md: Include the new Cortex-A57 model.
39508         (generic_sched): Don't use generic_sched when tuning for
39509         Cortex-A57.
39511 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
39512             Uros Bizjak  <ubizjak@gmail.com>
39514         * config/i386/i386.c (get_builtin_code_for_version): Add
39515         support for BMI and BMI2 multiversion functions.
39517 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
39519         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39520         (extract_bit_field): Likewise.
39521         (extract_low_bits): Likewise.
39522         (expand_mult): Likewise.
39523         (expand_mult_highpart_adjust): Likewise.
39525 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
39527         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39528         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39529         * config/i386/i386.c (processor_model): Add
39530         M_INTEL_COREI7_BROADWELL.
39531         (arch_names_table): Add "broadwell".
39533 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
39535         PR target/49263
39536         PR target/53987
39537         PR target/64345
39538         PR target/59533
39539         PR target/52933
39540         PR target/54236
39541         PR target/51244
39542         * config/sh/sh-protos.h
39543         (sh_extending_set_of_reg::can_use_as_unextended_reg,
39544         sh_extending_set_of_reg::use_as_unextended_reg,
39545         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39546         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39547         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39548         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39549         (sh_treg_insns): New class.
39550         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39551         (scope_counter): New class.
39552         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39553         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39554         sh_extending_set_of_reg::can_use_as_unextended_reg,
39555         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39556         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39557         sh_split_treg_set_expr): New functions.
39558         (addsubcosts): Handle treg_set_expr.
39559         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39560         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39561         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39562         (sh_insn_operands_modified_between_p): Make non-static.
39563         * config/sh/predicates.md (zero_extend_movu_operand): Allow
39564         simple_mem_operand in addition to displacement_mem_operand.
39565         (zero_extend_operand): Don't allow zero_extend_movu_operand.
39566         (treg_set_expr, treg_set_expr_not_const01,
39567         arith_reg_or_treg_set_expr): New predicates.
39568         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39569         arith_or_int_operand instead of logical_operand.  Convert to
39570         insn_and_split.  Try to optimize constant operand in splitter.
39571         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
39572         (*tstqi_t_zero): Delete.
39573         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39574         (tstsi_t_and_not): Delete.
39575         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39576         Convert to insn_and_split.
39577         (unnamed split, tstsi_t_zero_extract_xor,
39578         tstsi_t_zero_extract_subreg_xor_little,
39579         tstsi_t_zero_extract_subreg_xor_big): Delete.
39580         (*tstsi_t_shift_mask): New insn_and_split.
39581         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39582         to recombine with surrounding insns when splitting.
39583         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39584         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39585         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39586         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39587         (*cbranch_div0s: Delete.
39588         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
39589         Try to recombine with surrounding insns when splitting.  Add operand
39590         order variants.
39591         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39592         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39593         *addc_r_r_msb, *addc_2r_msb): Delete.
39594         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
39595         order variant.
39596         (*addc_negreg_t): New insn_and_split.
39597         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
39598         Try to recombine with surrounding insns when splitting.
39599         Add operand order variants.
39600         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39601         insn_and_split patterns.
39602         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
39603         surrounding insns when splitting.
39604         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39605         (*rotcl): Likewise.  Add zero_extract variant.
39606         (*ashrsi2_31): New insn_and_split.
39607         (*negc): Convert to insn_and_split.  Use treg_set_expr.
39608         (*zero_extend<mode>si2_disp_mem): Update comment.
39609         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39610         condition.
39611         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
39612         with surrounding insns when splitting.
39613         (any_treg_expr_to_reg): New insn_and_split.
39614         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39615         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39616         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39617         *zero_extract_2): New single bit zero extract patterns.
39618         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39619         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39620         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39621         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39622         set destination.
39623         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39624         register_operand for set source.
39626 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
39628         * i386.opt (prefetch_sse): New targetsave.
39629         * i386.c (ix86_function_specific_save): Save prefetch_sse.
39630         (ix86_function_specific_restore): Restore prefetch_sse and initialize
39631         ix86_cost/ix86_tune_cost.
39633 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39635         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39636         Support the JIT by using 0 as the language type.
39638 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
39640         PR target/64317
39641         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
39642         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39643         (mark_regno_live, process_bb_lives): Pass new parameter value to
39644         make_hard_regno_born.
39646 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39648         PR rtl-optimization/63637
39649         PR rtl-optimization/60663
39650         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39651         if elt->cost is MAX_COST for ASM_OPERANDS.
39652         (find_sets_in_insn): Fix up comment typo.
39653         (cse_insn): Don't set src_volatile for all non-volatile
39654         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39655         or with "memory" clobber.  Set elt->cost to MAX_COST
39656         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
39657         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39659 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39661         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39662         alternative 1.
39664 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
39666         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39667         libgcc/config/i386/elf-lib.h.
39669 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39671         PR driver/64737
39672         * gcc.c (print_configuration): Don't print a blank line at the end
39673         here...
39674         (run_attempt): ... but here unstead.
39676         PR middle-end/64734
39677         * omp-low.c (scan_sharing_clauses): Don't ignore
39678         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39679         on target data/update constructs.
39681 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39683         PR target/50928
39684         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39685         (DEBUG_RELOAD): Removed define.
39686         (m32c_limit_reload_class): Enable traces with if DEBUG0.
39687         (m32c_function_arg): Added a type cast.
39688         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39689         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39690         * config/m32c/bitops.md (andqi3_16): Likewise.
39691         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39692         (push_a01_l): Likewise.
39694 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39696         PR jit/64721
39697         * main.c (main): Construct toplev instances with init_signals=true.
39698         * toplev.c (general_init): Add param "init_signals", and use it to
39699         conditionalize the calls to signal and host_hooks.extra_signals.
39700         (toplev::toplev): Add param "init_signals".
39701         (toplev::main): When invoking general_init, pass m_init_signals
39702         to control whether signal-handlers are installed.
39703         * toplev.h (toplev::toplev): Add param "init_signals".
39704         (toplev::m_init_signals): New field.
39706 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
39708         PR jit/64722
39709         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39710         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39711         latter may be affected by the former (e.g. on i686).
39713 2015-01-23  Martin Liska  <mliska@suse.cz>
39715         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39716         false positive during profiledbootstrap.
39718 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39720         PR libgomp/64672
39721         * lto-opts.c (lto_write_options): Output non-explicit conservative
39722         -fno-openacc.
39723         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39724         (append_compiler_options): Pass -fopenacc through.
39726 2015-01-23  Tom de Vries  <tom@codesourcery.com>
39728         PR libgomp/64707
39729         * lto-opts.c (lto_write_options): Output non-explicit conservative
39730         -fno-openmp.
39731         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39732         (append_compiler_options): Pass -fopenmp through.
39734 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
39736         PR debug/64511
39737         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39738         GTY markup.
39740         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39741         * diagnostic.def (DK_ICE_NOBT): New kind.
39742         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39743         like DK_ICE, but never print backtrace.
39744         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39745         (internal_error_no_backtrace): New function.
39746         * gcc.c (execute): Use internal_error_no_backtrace instead of
39747         internal_error.
39749 2015-01-22  Jeff Law  <law@redhat.com>
39751         PR target/52076
39752         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39753         improve code density for small immediate to memory case.
39754         (insv): Better handle bitfield assignments when the field is
39755         being set to all ones.
39756         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39757         operand predicate.
39759 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39760             Jakub Jelinek  <jakub@redhat.com>
39762         PR middle-end/64729
39763         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39764         for !TARGET_LIBC_PROVIDES_SSP version and
39765         -fstack-protector-{all,strong,explicit} otherwise.
39766         * config/freebsd.h (LINK_SSP_SPEC): Handle
39767         -fstack-protector-{strong,explicit}.
39769 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
39770             H.J. Lu  <hongjiu.lu@intel.com>
39772         PR ipa/64694
39773         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39774         heap.
39776 2015-01-22  Wei Mi  <wmi@google.com>
39778         PR rtl-optimization/64557
39779         * dse.c (record_store): Call get_addr for mem_addr.
39780         (check_mem_read_rtx): Likewise.
39782 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
39784         * fold-const.c (const_binop): Add early return for non-tcc_binary.
39786 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
39788         * toplev.c (init_local_tick): Process the failure when read
39789         fails for random_seed.
39791         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39792         'pretty_name' to avoid memory overflow.
39794 2015-01-22  Richard Biener  <rguenther@suse.de>
39796         PR middle-end/64728
39797         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39798         abnormal coalescing on undefined SSA names.
39800 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
39802         PR target/64688
39803         PR target/64477
39804         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39805         for alternative 3.
39806         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39808 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
39810         PR middle-end/63325
39811         * fold-const.c (fold_checksum_tree): Don't include value of
39812         expr->decl_with_vis.symtab_node in the checksum.
39814 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39816         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39818 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
39820         PR driver/64690
39821         * gcc.c (insert_comments): New function.
39822         (try_generate_repro): Call it.
39823         (append_text): Removed.
39825 2015-01-22  Richard Biener  <rguenther@suse.de>
39827         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39828         with IL incompatible options.  Properly honor user optimize
39829         attributes.
39831 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
39833         PR rtl-optimization/64682
39834         * combine.c (distribute_notes): When moving a death note for
39835         a register that is set in the new I2, make sure to put it
39836         before that new I2.
39838 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
39840         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39841         not TARGET_DEFAULT.
39843 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
39845         PR debug/64511
39846         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39847         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39848         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39850         PR sanitizer/64706
39851         * doc/invoke.texi (-fsanitize=vptr): Document.
39853         PR rtl-optimization/62078
39854         * dse.c: Include cfgcleanup.h.
39855         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39856         anything call purge_all_dead_edges and cleanup_cfg at the end
39857         of the pass.
39859 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
39861         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39862         edges.
39864 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39866         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39867         decl attribute.
39869 2015-01-21  David Sherwood  <david.sherwood@arm.com>
39870             Tejas Belagod <Tejas.Belagod@arm.com>
39872         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39873         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39874         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39875         Removed.
39877 2015-01-21  David Sherwood  <david.sherwood@arm.com>
39878             Tejas Belagod <Tejas.Belagod@arm.com>
39880         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39881         (aarch64_reverse_mask): New decls.
39882         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39883         (insn_count): New mode_attr.
39884         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39885         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39886         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39887         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39888         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39889         (aarch64_simd_st4): New patterns.
39890         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39891         (aarch64_reverse_mask): New functions.
39893 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
39895         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39896         Declare.
39897         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39898         addressing modes for BE.
39899         (aarch64_print_operand): Add 'R' specifier.
39900         (aarch64_simd_disambiguate_copy): Delete.
39901         (aarch64_simd_emit_reg_reg_move): New function.
39902         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39903         in define_splits for structural moves.
39904         (mov<mode>): Use less restrictive predicates.
39905         (*aarch64_mov<mode>): Simplify and only allow for LE.
39906         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39908 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
39910         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39912 2015-01-21  Richard Henderson  <rth@redhat.com>
39914         PR target/64669
39915         * ccmp.c (used_in_cond_stmt_p): Remove.
39916         (expand_ccmp_expr): Don't use it.
39918 2015-01-21  Nick Clifton  <nickc@redhat.com>
39920         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39921         PARALLELs.
39923 2015-01-21  Richard Biener  <rguenther@suse.de>
39925         PR middle-end/64313
39926         * tree-core.h (builtin_info, builtin_info_type): Turn from
39927         an object with two arrays into an array of an object with
39928         decl and two flags, implicit_p and declared_p.
39929         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39930         set_builtin_decl, set_builtin_decl_implicit_p,
39931         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39932         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39933         * builtins.c (builtin_info): Adjust.
39934         * gimplify.c (gimplify_addr_expr): References to builtins
39935         that have been declared by the user makes them eligible for
39936         use by the compiler.  Call set_builtin_decl_implicit_p on them.
39938 2015-01-20  Jeff Law  <law@redhat.com>
39940         PR target/59946
39941         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39942         allow pc-relative addresses in operand predicates or constraints.
39944 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
39946         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39947         neon on aarch32 processors for stringops.
39949 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39951         PR ipa/63576
39952         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39954 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
39956         PR lto/45375
39957         * ipa-inline.c: Include lto-streamer.h
39958         (report_inline_failed_reason): Output source file differences and
39959         flags on optimization/target node mismatch.
39960         (can_inline_edge_p): Consider caller to be the outer inline function;
39961         be less restrictive about matching opimize and optimize_size attributes.
39962         (inline_account_function_p): Break out from ...
39963         (inline_small_functions): ... here.
39964         * ipa-inline-transform.c (clone_inlined_nodes): Use
39965         inline_account_function_p.
39966         (inline_call): Use optimize attribution; use inline_account_function_p.
39967         (inline_transform): Use opt_for_fn.
39968         * ipa-inline.h (inline_account_function_p): Declare.
39970 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
39972         PR debug/64663
39973         * dwarf2out.c (decl_piece_node): Don't put bitsize into
39974         mode if bitsize <= 0.
39975         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39976         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39977         sizes and positions.
39979 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
39981         * config/nios2/nios2.c (nios2_asm_file_end): Implement
39982         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39983         needed.
39984         (TARGET_ASM_FILE_END): Define.
39986 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39988         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39989         (struct tune_params): Use the enum.
39990         * arm.c (arm_*_tune): Update.
39991         (arm_option_override): Update.
39993 2015-01-20  Richard Biener  <rguenther@suse.de>
39995         PR ipa/64684
39996         * ipa-reference.c (add_static_var): Inline ...
39997         (analyze_function): ... here after splitting out from ...
39998         (is_proper_for_analysis): ... this.
40000 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
40002         PR target/64149
40003         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40004         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40005         replace the conditional with it's true branch.
40006         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40007         (arm_lra_p): Remove.
40009 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
40011         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40013 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40015         * config/tilegx/mul-tables.c: Move symtab.h include after
40016         coretypes.h include.
40017         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40018         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40019         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40020         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40021         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40023 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
40025         PR bootstrap/64676
40026         Revert:
40027         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40029         PR rtl-optimization/64081
40030         * loop-iv.c (def_pred_latch_p): New function.
40031         (latch_dominating_def): Allow specific cases with non-single
40032         definitions.
40033         (iv_get_reaching_def): Likewise.
40034         (check_complex_exit_p): New function.
40035         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40036         with exits not executing on any iteration.
40038 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40040         PR lto/45375
40041         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40042         to set branch cost.
40044 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40046         PR lto/45375
40047         * i386.c (gate): Check flag_expensive_optimizations and
40048         optimize_size.
40049         (ix86_option_override_internal): Drop optimize_size condition
40050         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40051         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40052         MASK_PREFER_AVX128.
40053         (ix86_avx256_split_vector_move_misalign,
40054         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40055         * sse.md (all uses of TARGET_PREFER_AVX128): Add
40056         optimize_insn_for_speed_p check.
40058 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
40060         * config/mips/mips.h (FP_ASM_SPEC): New define.
40061         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40062         instead.
40064 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
40066         PR target/53988
40067         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40068         nullptr for insn when reaching the first insn.
40069         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40070         (sh_insn_operands_modified_between_p): Add nullptr check.
40071         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
40072         sign extending mem load if the insn contains any UNSPEC or
40073         UNSPEC_VOLATILE.
40075 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40077         * params.def (inline-unit-growth): Drop to 15%.
40078         * invoke.texi (inline-unit-growth): Document change.
40080 2015-01-19  Martin Liska  <mliska@suse.cz>
40082         PR ipa/64668
40083         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40084         function for second argument of OBJ_TYPE_REF.
40086 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40088         PR ipa/64218
40089         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40090         whether function is an alias.
40092 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40094         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40095         cases.
40097 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
40099         PR rtl-optimization/64671
40100         * lra-remat.c (operand_to_remat): Don't consider jump and call
40101         insns.
40103 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
40105         PR target/59828
40106         * config/rs6000/default64.h: Include rs6000-cpus.def.
40107         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40108         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40109         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40110         and POWER8.
40111         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40112         POWER8.
40113         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40114         pseudo-op to specify assembler dialect.
40116 2015-01-19  Martin Liska  <mliska@suse.cz>
40118         PR ipa/64664
40119         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40120         Handle safe potentially removed nodes during filtering.
40122 2015-01-19  Martin Liska  <mliska@suse.cz>
40124         * doc/extend.texi (no_icf): Add new attribute description.
40125         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40126         where the pass attempts to merge a function with no_icf attribute.
40128 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40130         PR target/64532
40131         * doc/md.texi (ARM Options): Document register constraints.
40133 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
40134             Andrew Pinski  <apinski@cavium.com>
40136         PR target/64304
40137         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40138         (ashl<mode>3): Don't expand if operands[2] is not constant.
40140 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40142         PR target/64448
40143         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40144         Match xor-and-xor RTL pattern.
40146 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40148         PR rtl-optimization/64081
40149         * loop-iv.c (def_pred_latch_p): New function.
40150         (latch_dominating_def): Allow specific cases with non-single
40151         definitions.
40152         (iv_get_reaching_def): Likewise.
40153         (check_complex_exit_p): New function.
40154         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40155         with exits not executing on any iteration.
40157 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
40159         * common.opt (fgraphite): Fix a typo.
40161 2015-01-19  Felix Yang  <felix.yang@huawei.com>
40163         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40164         pattern.
40165         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40166         uminp, smax_nanp, smin_nanp): New builtins.
40167         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40168         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40169         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40170         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40171         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40172         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40173         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40174         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40175         vpminnms_f32): Rewrite using builtin functions.
40177 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
40179         PR libgomp/64625
40180         * omp-low.c (offload_symbol_decl): Remove variable.
40181         (get_offload_symbol_decl): Remove function.
40182         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40183         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40184         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40185         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40186         BUILT_IN_GOACC_UPDATE don't pass it at all.
40188 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40190         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40191         callers.
40193 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40195         * ipa-chkp.c (chkp_produce_thunks): Add early param
40196         to split thunks production into two passes.  Keep
40197         'always_inline' function bodies after the first pass.
40198         (pass_data_ipa_chkp_early_produce_thunks): New.
40199         (pass_ipa_chkp_early_produce_thunks): New.
40200         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40201         chkp_produce_thunks signature.
40202         (make_pass_ipa_chkp_early_produce_thunks): New.
40203         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40204         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40205         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40207 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40209         * cgraph.c (cgraph_node::dump): Dump profile flags.
40211 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
40213         PR target/64652
40214         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40215         reg appear first in the parallel.
40217 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40219         * ipa-reference.c (set_reference_optimization_summary,
40220         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40221         disabled.
40222         (ignore_module_statics): New static var.
40223         (propagate_bits): If ipa-reference is disabled, do not look into local
40224         properties.
40225         (analyze_function): Disable analysis when ipa_reference is disabled.
40226         (generate_summary): Do not dump when reference is disabled;
40227         collect vars accessed from functions with ipa-reference disabled.
40228         (get_read_write_all_from_node): When ipa-reference is disabled, use the
40229         node flags.
40230         (gate): Enable for LTO.
40231         (ignore_edge_p): New function.
40232         (propagate): Skip functions w/o ipa-reference analysis.
40233         * optc-save-gen.awk: Handle optimize_debug correctly.
40234         * opth-gen.awk: Likewise.
40235         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40236         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40237         fira-share-save-slots, fira-share-spill-slots,
40238         fmodulo-sched-allow-regmoves, fpartial-inlining,
40239         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40240         ftracer, ftree-parallelize-loops, fassociative-math,
40241         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40242         Optimization
40243         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40244         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40245         Optimization.
40246         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40247         Fix for IPA.
40249 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40251         PR ipa/64378
40252         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40253         flag correctly.
40254         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40256 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
40258         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40259         Remove duplicate option listings.
40261 2015-01-18  Felix Yang  <felix.yang@huawei.com>
40263         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40264         (autofdo_source_profile::get_callsite_total_count,
40265         function_instance::get_function_instance_by_decl,
40266         string_table::get_index, string_table::get_index_by_decl,
40267         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40268         Fix comment typos. Reformatting and minor code rearrangement.
40270 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40272         * config/rs6000/rs6000.md (probe_stack): Delete.
40273         (probe_stack_address): New.
40275 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40277         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40278         to test for 32-bit ABIs, not !TARGET_POWERPC64.
40280 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40282         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40283         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
40284         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
40285         snafu.
40286         (rs6000_libcall_value): Use the new function.
40288 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
40290         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40292 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
40294         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40295         implement a more precise life analysis for it during backward scan.
40297 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
40299         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40301 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
40303         PR rtl-optimization/52773
40304         * calls.c (emit_library_call_value): When pushing arguments use
40305         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40306         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
40307         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40309 2015-01-17  Jeff Law  <law@redhat.com>
40311         PR rtl-optimization/32790
40312         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40313         not ZERO_EXTEND in SET_DESTs.
40315 2015-01-17  Alan Modra  <amodra@gmail.com>
40317         * cprop.c (do_local_cprop): Revert last change.
40319 2015-01-16  DJ Delorie  <dj@redhat.com>
40320             Nick Clifton  <nickc@redhat.com>
40322         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40323         (addhi3_real): Likewise.  Fix [HL+0] syntax.
40324         (subqi3_real): Likewise.
40325         (subhi3_real): Likewise.
40326         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
40327         (cbranchhi4_real): Likewise.
40328         (cbranchhi4_real_inverted): Likewise.
40329         (cbranchsi4_real_lt): Likewise.
40330         (cbranchsi4_real_ge): Likewise.
40331         (cbranchsi4_real_ge): Likewise.
40332         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40333         (sub<mode>3_virt): Likewise.
40334         (cbranchqi4_virt): Likewise.
40335         (cbranchhi4_virt): Likewise.
40336         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40337         always use '[reg+imm]' even when imm is zero.
40338         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40339         (rl78_general_operand): New.
40340         (rl78_nonimmediate_operand): New.
40341         (rl78_nonfar_operand): Use them.
40342         (rl78_nonfar_nonimm_operand): Likewise.
40343         (rl78_stack_based_mem): Fix.
40344         * config/rl78/constraints.md (Ibqi): New.
40345         (IBqi): New.
40346         (Wsa): New.
40347         (Wsf): New.
40348         (Cs1): Fix.
40349         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40350         (iorqi3): Likewise.
40351         (xorqi3): Likewise.
40352         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40354         * config/rl78/constrains (Qs8): New constraint.
40355         * config/rl78/rl78.c (rl78_flags_already_set): New function.
40356         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40357         * config/rl78/rl78-real.md (update_Z): New attribute.
40358         Update patterns to set it.
40359         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40360         shorter compare and branch sequence can be used.
40361         (cbranchhi4_real): Likewise.
40362         (cbranchhi4_real_inverted): Likewise.
40364         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40365         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40366         address space.
40367         * config/rl78/rl78.c (rl78_get_name_encoding): New.
40368         (rl78_option_override): Allow -mes0 only if C.
40369         (characterize_address): Support subregs of symbol_refs.
40370         (rl78_addr_space_address_mode): Move.  Add __near.
40371         (rl78_far_p): Likewise.
40372         (rl78_addr_space_pointer_mode): Likewise.
40373         (rl78_as_legitimate_address): Likewise.
40374         (rl78_addr_space_subset_p): Likewise.
40375         (rl78_addr_space_convert): Likewise.
40376         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40377         symbols with -mes0.
40378         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
40379         addressing.
40380         (rl78_alloc_physical_registers_op1): Change logic to prefer
40381         symbol[BC] addressing.
40382         (frodata_section): New.
40383         (rl78_asm_init_sections): Initialize it.
40384         (rl78_select_section): Put __far readonly symbols in .frodata.
40385         (rl78_make_type_far): New.
40386         (rl78_insert_attributes): Force all readonly symbols to be
40387         __far when -mes0.
40388         (rl78_asm_out_integer): New.
40389         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40390         * config/rl78/rl78.opt (-mes0): New.
40392         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40393         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40394         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40395         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40396         (rl78_saddr_p): New.
40397         (rl78_output_aligned_common): New.
40398         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40399         (rl78_handle_saddr_attribute): New.
40400         (rl78_handle_naked_attribute): New.
40401         (rl78_attribute_table): Add saddr.
40402         (rl78_print_operand_1): Don't print '!' on saddr operands.
40403         (rl78_print_operand_1): Strip encodings.
40404         (rl78_sfr_p): New.
40405         (rl78_strip_name_encoding): New.
40406         (rl78_attrlist_to_encoding): New.
40407         (rl78_encode_section_info): New.
40408         (rl78_asm_init_sections): New.
40409         (rl78_select_section): New.
40410         (rl78_output_labelref): New.
40411         (rl78_output_aligned_common): New.
40412         (rl78_asm_out_integer): New.
40413         (rl78_asm_ctor_dtor): New.
40414         (rl78_asm_constructor): New.
40415         (rl78_asm_destructor): New.
40417         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40418         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40419         (transcode_memory_rtx): Update.
40420         (rl78_expand_epilogue): Use A_REG instead of 0.
40422 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40424         * config/arm/arm-protos.h (struct tune_params): New field
40425         sched_autopref_queue_depth.
40426         * config/arm/arm.c (sched-int.h): Include header.
40427         (arm_first_cycle_multipass_dfa_lookahead_guard,)
40428         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40429         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40430         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40431         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40432         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40433         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40434         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40435         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
40436         * config/arm/t-arm (arm.o): Update.
40437         * haifa-sched.c (update_insn_after_change): Update.
40438         (rank_for_schedule): Use auto-prefetcher model, if requested.
40439         (autopref_multipass_init): New static function.
40440         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40441         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40442         variable for debug dumps.
40443         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40444         (autopref_multipass_dfa_lookahead_guard): New global function that
40445         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40446         (init_h_i_d): Update.
40447         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40448         * sched-int.h (enum autopref_multipass_data_status): New const enum.
40449         (autopref_multipass_data_): Structure for auto-prefetcher data.
40450         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40451         (struct _haifa_insn_data:autopref_multipass_data): New field.
40452         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40453         (autopref_multipass_dfa_lookahead_guard): Declare.
40455 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40457         * rtlanal.c (get_base_term): Handle SCRATCH.
40459 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40461         * config/aarch64/aarch64.c
40462         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40463         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40464         * config/arm/arm.c
40465         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40466         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40468 2015-01-17  Alan Modra  <amodra@gmail.com>
40470         * cprop.c (do_local_cprop): Disallow replacement of fixed
40471         hard registers.
40473 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40475         PR target/62066
40476         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40477         early return 0.
40479 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40481         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40482         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40484 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40486         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40487         * config/arm/thumb1.md: ... Here.
40489 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40491         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40492         TImode for TARGET_32BIT.
40494 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40496         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40497         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40498         as ...
40499         (rs6000_abi_word_mode): New function.
40501 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40503         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40504         instead of UNITS_PER_WORD to describe the size of stack slots.
40506 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40508         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40509         as rs6000_promote_function_mode.  Move comment to there.
40510         (rs6000_promote_function_mode): New function.
40512 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
40514         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40515         -mpowerpc64 is active.
40517 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
40519         PR middle-end/64353
40520         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40521         virtuals on start.
40523 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
40525         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40526         introduced in revision 219724.
40528 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40529             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40531         PR target/64263
40532         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40533         destination is not a GP reg.
40534         (*movdi_aarch64): Likewise.
40536 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
40538         PR target/64623
40539         * config/rs6000/default64.h: Revert ISA change.
40541 2015-01-16  Richard Biener  <rguenther@suse.de>
40543         PR middle-end/64614
40544         * tree-ssa-uninit.c: Include tree-cfg.h.
40545         (MAX_SWITCH_CASES): New define.
40546         (convert_control_dep_chain_into_preds): Handle switch statements.
40547         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40548         (normalize_one_pred_1): Do not split bit-manipulations.
40549         Record (x & CST).
40551 2015-01-16  Richard Biener  <rguenther@suse.de>
40553         PR tree-optimization/64568
40554         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40555         complex load rewriting for TARGET_MEM_REFs.
40557 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
40559         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40561 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
40563         PR target/64149
40564         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40565         variable.
40566         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40567         (aarch64_lra_p): Remove.
40569 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
40571         PR target/64363
40572         * ipa-chkp.h (chkp_instrumentable_p): New.
40573         * ipa-chkp.c: Include tree-inline.h.
40574         (chkp_instrumentable_p): New.
40575         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40576         Fix processing of not instrumentable functions.
40577         (chkp_versioning): Use chkp_instrumentable_p. Warn about
40578         not instrumentable functions.
40579         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40580         chkp_instrumentable_p.
40581         * tree-inline.h (copy_forbidden): New.
40582         * tree-inline.c (copy_forbidden): Not static anymore.
40584 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40586         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40587         ptr1, ptr2 unused.
40589 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
40591         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40592         type OP_OUT to OP_INOUT.
40594 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
40596         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40597         (high x) y) to y if x and y have the same base.
40599 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
40601         * config/arm/cortex-a57.md: New.
40602         * config/aarch64/aarch64.md: Include it.
40603         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40604         * config/aarch64/aarch64-tune.md: Regenerate.
40606 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
40608         PR target/64015
40609         * ccmp.c (expand_ccmp_next): New function.
40610         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40611         and compare insn sequence.
40612         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40613         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40614         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40615         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40616         (*ccmp_ior): Changed to ccmp_ior<mode>.
40617         (cmp<mode>): New pattern.
40618         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40619         parameters.
40620         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40622 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
40624         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40625         _mm256_bsrli_epi128): New.
40626         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40628 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
40630         * expmed.c (store_bit_field_using_insv): Improve warning message.
40631         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40633 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
40635         PR rtl-optimization/64011
40636         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40637         there is partial overflow.
40639 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40641         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40642         prototype.
40643         (nds32_expand_epilogue_v3pop): Likewise.
40644         * config/nds32/nds32.md (sibcall): Define this for sibling call
40645         optimization.
40646         (sibcall_register): Likewise.
40647         (sibcall_immediate): Likewise.
40648         (sibcall_value): Likewise.
40649         (sibcall_value_register): Likewise.
40650         (sibcall_value_immediate): Likewise.
40651         (sibcall_epilogue): Likewise.
40652         (epilogue): Pass false to indicate this is not a sibcall epilogue.
40653         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40654         (nds32_expand_epilogue_v3pop): Likewise.
40656 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40658         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40659         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40660         (return_internal): New.
40661         (return): Define this named pattern.
40662         (simple_return): Define this named pattern.
40663         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40664         pattern instead of unspec_volatile_func_return.
40665         (nds32_expand_epilogue_v3pop): Likewise.
40666         (nds32_can_use_return_insn): New function.
40668 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40670         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40671         * config/nds32/nds32.md (pop25return): New.
40672         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40673         pop25return pattern.
40675 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40677         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40678         -mforbid-fp-as-gp, and -mex9 options.
40680 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
40682         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40683         remove -mgp-direct option.
40685 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40687         * doc/invoke.texi (--param early-inlining-insns): Update default value.
40688         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40690 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40692         * ipa-inline.c (inline_small_functions): Work around hints
40693         cache issue.
40695 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
40697         PR target/59710
40698         * doc/invoke.texi (Option Summary): Document new Nios II
40699         -mgpopt= syntax.
40700         (Nios II Options): Likewise.
40701         * config/nios2/nios2.opt: Add -mgpopt= option support.
40702         Modify existing -mgpopt and -mno-gpopt options to be aliases.
40703         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40704         * config/nios2/nios2.c (nios2_option_override): Adjust
40705         -mgpopt defaulting.
40706         (nios2_in_small_data_p): Return true for explicit small data
40707         sections even with -G0.
40708         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40709         option choices.
40711 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40713         PR ipa/64612
40714         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40715         of comdat locals.
40716         (inline_call): Fix removal of aliases.
40718 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
40720         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40721         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40722         * opts.c (common_handle_option): Add -fsanitize=vptr.
40723         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40724         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40725         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40726         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40727         (ubsan_expand_vptr_ifn): New prototype.
40728         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40729         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40730         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40731         expand_LOOP_VECTORIZED): Make argument nameless, remove
40732         ATTRIBUTE_UNUSED.
40733         (expand_UBSAN_VPTR): New function.
40734         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40735         in fn spec.
40736         (UBSAN_VPTR): New internal function.
40737         * sanopt.c (tree_map_traits): Renamed to ...
40738         (sanopt_tree_map_traits): ... this.
40739         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40740         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40741         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
40742         (maybe_optimize_ubsan_vptr_ifn): New function.
40743         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40744         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
40745         -fsanitize=vptr.
40746         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40747         internal calls like pure functions for aliasing, even when they
40748         have other side-effects that prevent making them ECF_PURE.
40749         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40750         (ubsan_expand_vptr_ifn): New function.
40752 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
40754         PR rtl-optimization/64110
40755         * stmt.c (parse_output_constraint): Process '^' and '$'.
40756         (parse_input_constraint): Ditto.
40757         * lra-constraints.c (process_alt_operands): Process the new
40758         constraints.
40759         * ira-costs.c (record_reg_classes): Process the new constraint
40760         '^'.
40761         * genoutput.c (indep_constraints): Add '^' and '$'.
40762         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40763         * doc/md.texi: Add description of the new constraints.
40765 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
40766             Bernd Schmidt  <bernds@codesourcery.com>
40767             Cesar Philippidis  <cesar@codesourcery.com>
40768             James Norris  <jnorris@codesourcery.com>
40769             Tom de Vries  <tom@codesourcery.com>
40770             Ilmir Usmanov  <i.usmanov@samsung.com>
40771             Dmitry Bocharnikov  <dmitry.b@samsung.com>
40772             Evgeny Gavrin  <e.gavrin@samsung.com>
40773             Jakub Jelinek  <jakub@redhat.com>
40775         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40776         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40777         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40778         New function types.
40779         * builtins.c: Include "gomp-constants.h".
40780         (expand_builtin_acc_on_device): New function.
40781         (expand_builtin, is_inexpensive_builtin): Handle
40782         BUILT_IN_ACC_ON_DEVICE.
40783         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40784         New macros.
40785         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40786         flag_openmp.
40787         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40788         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40789         i386/intelmic-offload.h.
40790         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40791         to libgomp and its dependencies.
40792         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40793         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40794         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40795         * config/ia64/hpux.h (LIB_SPEC): Likewise.
40796         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40797         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40798         * doc/generic.texi: Update for OpenACC changes.
40799         * doc/gimple.texi: Likewise.
40800         * doc/invoke.texi: Likewise.
40801         * doc/sourcebuild.texi: Likewise.
40802         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40803         GF_OMP_FOR_KIND_OACC_LOOP.
40804         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40805         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40806         GF_OMP_TARGET_KIND_OACC_UPDATE,
40807         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40808         Dump more data.
40809         * gimple.c: Update comments for OpenACC changes.
40810         * gimple.def: Likewise.
40811         * gimple.h: Likewise.
40812         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40813         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40814         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40815         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40816         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40817         appropriate place.
40818         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40819         * gimplify.c: Include "gomp-constants.h".
40820         Update comments for OpenACC changes.
40821         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40822         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40823         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40824         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40825         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40826         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40827         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40828         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40829         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40830         OMP_CLAUSE_SEQ.
40831         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40832         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
40833         OMP_CLAUSE_SET_MAP_KIND.
40834         (gimplify_oacc_cache): New function.
40835         (gimplify_omp_for): Handle OACC_LOOP.
40836         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40837         OACC_DATA.
40838         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40839         OACC_EXIT_DATA, OACC_UPDATE.
40840         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40841         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40842         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40843         (gimplify_body): Consider flag_openacc next to flag_openmp.
40844         * lto-streamer-out.c: Include "gomp-constants.h".
40845         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40846         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40847         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40848         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40849         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40850         (BUILT_IN_ACC_ON_DEVICE): New builtins.
40851         * omp-low.c: Include "gomp-constants.h".
40852         Update comments for OpenACC changes.
40853         (struct omp_context): Add reduction_map, gwv_below, gwv_this
40854         members.
40855         (extract_omp_for_data, use_pointer_for_field, install_var_field)
40856         (new_omp_context, delete_omp_context, scan_sharing_clauses)
40857         (create_omp_child_function, scan_omp_for, scan_omp_target)
40858         (check_omp_nesting_restrictions, lower_reduction_clauses)
40859         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40860         Update for OpenACC changes.
40861         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40862         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40863         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40864         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40865         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40866         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
40867         OMP_CLAUSE_MAP_*.
40868         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40869         Handle GF_OMP_FOR_KIND_OACC_LOOP.
40870         (expand_omp_target, lower_omp_target): Handle
40871         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40872         GF_OMP_TARGET_KIND_OACC_UPDATE,
40873         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40874         GF_OMP_TARGET_KIND_OACC_DATA.
40875         (pass_expand_omp::execute, execute_lower_omp)
40876         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40877         flag_openmp.
40878         (offload_symbol_decl): New variable.
40879         (oacc_get_reduction_array_id, oacc_max_threads)
40880         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40881         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40882         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40883         (oacc_gimple_assign, oacc_initialize_reduction_data)
40884         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40885         functions.
40886         (is_targetreg_ctx): Remove function.
40887         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40888         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40889         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40890         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40891         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40892         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40893         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40894         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40895         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40896         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40897         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40898         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40899         * tree-core.h: Update comments for OpenACC changes.
40900         (enum omp_clause_map_kind): Remove.
40901         (struct tree_omp_clause): Change type of map_kind member from enum
40902         omp_clause_map_kind to unsigned char.
40903         * tree-inline.c: Update comments for OpenACC changes.
40904         * tree-nested.c: Likewise.  Include "gomp-constants.h".
40905         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40906         (convert_tramp_reference_stmt, convert_gimple_call): Update for
40907         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
40908         OMP_CLAUSE_SET_MAP_KIND.
40909         * tree-pretty-print.c: Include "gomp-constants.h".
40910         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40911         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40912         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40913         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40914         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40915         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
40916         instead of OMP_CLAUSE_MAP_*.
40917         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40918         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40919         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40920         * tree-streamer-in.c: Include "gomp-constants.h".
40921         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40922         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
40923         * tree-streamer-out.c: Include "gomp-constants.h".
40924         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40925         OMP_CLAUSE_MAP_*.
40926         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40927         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40928         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40929         * tree.c (omp_clause_num_ops): Update accordingly.
40930         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40931         Likewise.
40932         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40933         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40934         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40935         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40936         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40937         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40938         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40939         (OMP_CLAUSE_SET_MAP_KIND): New macro.
40940         * varpool.c (varpool_node::get_create): Consider flag_openacc next
40941         to flag_openmp.
40942         * config/i386/intelmic-offload.h: New file.
40943         * config/nvptx/offload.h: Likewise.
40945 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40947         * explow.h: Remove duplicate contents.
40948         * dojump.h: Likewise.
40950 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
40952         * arm.c (arm_xgene_tune): Add default initializer for instruction
40953         fusion.
40955 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
40957         PR ipa/64068
40958         PR ipa/64559
40959         * ipa.c (symbol_table::remove_unreachable_nodes):
40960         Do not put abstract origins into boundary.
40962 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
40964         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40965         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40967 2015-01-15  Steve Ellcey  <sellcey@mips.com>
40969         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40970         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40971         builtins.def, and chkp-builtins.def.
40973 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
40975         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40976         ISA 2.7 (POWER8).
40978 2015-01-15  Richard Biener  <rguenther@suse.de>
40980         PR tree-optimization/61743
40981         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40982         information on PHIs for some simple cases.
40984 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
40986         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40987         Include xgene1.md.
40988         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40989         * config/arm/arm-cores.def (xgene1): New entry.
40990         * config/arm/arm-tables.opt: Regenerate.
40991         * config/arm/arm-tune.md: Regenerate.
40992         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40994 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
40996         * tree-if-conv.c: Include hash-map.h.
40997         (aggressive_if_conv): New variable.
40998         (fold_build_cond_expr): Add simplification of non-zero condition.
40999         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41000         destination block is not always executed.
41001         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41002         than two predecessors if AGGRESSIVE_IF_CONV is true.
41003         (if_convertible_stmt_p): Fix commentary.
41004         (all_preds_critical_p): New function.
41005         (has_pred_critical_p): New function.
41006         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41007         BB can have more than two predecessors and all incoming edges can be
41008         critical.
41009         (predicate_bbs): Skip predication for loop exit block, use build2_loc
41010         to compute predicate for true edge.
41011         (find_phi_replacement_condition): Delete this function.
41012         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41013         Allow interchange PHI arguments if EXTENDED is false.
41014         Change check that block containing reduction statement candidate
41015         is predecessor of phi-block since phi may have more than two arguments.
41016         (phi_args_hash_traits): New helper structure.
41017         (struct phi_args_hash_traits): New type.
41018         (phi_args_hash_traits::hash): New function.
41019         (phi_args_hash_traits::equal_keys): New function.
41020         (gen_phi_arg_condition): New function.
41021         (predicate_scalar_phi): Add handling of phi nodes with more than two
41022         arguments, delete COND and TRUE_BB arguments, insert body of
41023         find_phi_replacement_condition to predicate ordinary phi nodes.
41024         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41025         delete call of find_phi_replacement_condition and invoke
41026         predicate_scalar_phi with two arguments.
41027         (insert_gimplified_predicates): Add assert that non-predicated block
41028         don't have statements to insert.
41029         (ifcvt_split_critical_edges): New function.
41030         (ifcvt_split_def_stmt): Likewise.
41031         (ifcvt_walk_pattern_tree): Likewise.
41032         (stmt_is_root_of_bool_pattern): Likewise.
41033         (ifcvt_repair_bool_pattern): Likewise.
41034         (ifcvt_local_dce): Likewise.
41035         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41036         is copy of inner or outer loop force_vectorize field, invoke
41037         ifcvt_split_critical_edges, ifcvt_local_dce and
41038         ifcvt_repair_bool_pattern for aggressive if-conversion.
41040 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
41042         * config/aarch64/aarch64.md: Include xgene1.md.
41043         * config/aarch64/xgene1.md: New file.
41045 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41047         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41048         xgene1 (APM XGene-1) core definition.
41049         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41050         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41051         * doc/invoke.texi: Document -mcpu=xgene1.
41053 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41055         * dojump.h: New header file.
41056         * explow.h: Likewise.
41057         * expr.h: Remove includes.
41058         Move expmed.c prototypes to expmed.h.
41059         Move dojump.c prototypes to dojump.h.
41060         Move alias.c prototypes to alias.h.
41061         Move explow.c prototypes to explow.h.
41062         Move calls.c prototypes to calls.h.
41063         Move emit-rtl.c prototypes to emit-rtl.h.
41064         Move varasm.c prototypes to varasm.h.
41065         Move stmt.c prototypes to stmt.h.
41066         (saved_pending_stack_adjust): Move to dojump.h.
41067         (adjust_address): Move to explow.h.
41068         (adjust_address_nv): Move to emit-rtl.h.
41069         (adjust_bitfield_address): Likewise.
41070         (adjust_bitfield_address_size): Likewise.
41071         (adjust_bitfield_address_nv): Likewise.
41072         (adjust_automodify_address_nv): Likewise.
41073         * explow.c (expr_size): Move to expr.c.
41074         (int_expr_size): Likewise.
41075         (tree_expr_size): Likewise.
41076         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41077         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41078         * genemit.c (main): Generate includes statistics.h, real.h,
41079         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41080         stmt.h.
41081         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41082         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41083         explow.h, emit-rtl.h, stmt.h.
41084         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41085         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41086         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41087         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41088         emit-rtl.h, varasm.h, stmt.h.
41089         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41090         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41091         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41092         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41093         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41094         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41095         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41096         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41097         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41098         tm.h tree.h varasm.h vec.h wide-int.h.
41099         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41100         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41101         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41102         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41103         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41104         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41105         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41106         * loop-iv.c: Likewise.
41107         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41108         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41109         statistics.h stmt.h tree.h varasm.h wide-int.h.
41110         * lra-constraints.c: Likewise.
41111         * lra-eliminations.c: Likewise.
41112         * lra-lives.c: Likewise.
41113         * lra-remat.c: Likewise.
41114         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41115         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41116         statistics.h stmt.h tree.h varasm.h wide-int.h.
41117         * hw-doloop.c: Likewise.
41118         * ira-color.c: Likewise.
41119         * ira-emit.c: Likewise.
41120         * loop-doloop.c: Likewise.
41121         * loop-invariant.c: Likewise.
41122         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41123         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41124         statistics.h stmt.h tree.h varasm.h wide-int.h.
41125         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41126         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41127         statistics.h stmt.h tree.h varasm.h wide-int.h.
41128         * combine-stack-adj.c: Likewise.
41129         * cse.c: Likewise.
41130         * ddg.c: Likewise.
41131         * ifcvt.c: Likewise.
41132         * ira-costs.c: Likewise.
41133         * jump.c: Likewise.
41134         * lra-coalesce.c: Likewise.
41135         * lra-spills.c: Likewise.
41136         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41137         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41138         stmt.h varasm.h wide-int.h.
41139         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41140         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41141         varasm.h.
41142         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41143         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41144         statistics.h stmt.h varasm.h wide-int.h.
41145         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41146         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41147         varasm.h wide-int.h.
41148         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41149         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41150         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41151         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41152         statistics.h stmt.h.
41153         * config/tilepro/tilepro.c: Likewise.
41154         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41155         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41156         * config/pdp11/pdp11.c: Likewise.
41157         * config/xtensa/xtensa.c: Likewise.
41158         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41159         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41160         varasm.h.
41161         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41162         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41163         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41164         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41165         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41166         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41167         * rtl-chkp.c: Likewise.
41168         * tree-chkp-opt.c: Likewise.
41169         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41170         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41171         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41172         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41173         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41174         statistics.h stmt.h.
41175         * tree-vect-data-refs.c: Likewise.
41176         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41177         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41178         rtl.h statistics.h stmt.h varasm.h.
41179         * internal-fn.c: Likewise.
41180         * ipa-icf-gimple.c: Likewise.
41181         * lto-section-out.c: Likewise.
41182         * tree-data-ref.c: Likewise.
41183         * tree-nested.c: Likewise.
41184         * tree-outof-ssa.c: Likewise.
41185         * tree-predcom.c: Likewise.
41186         * tree-pretty-print.c: Likewise.
41187         * tree-scalar-evolution.c: Likewise.
41188         * tree-ssa-strlen.c: Likewise.
41189         * tree-vect-loop.c: Likewise.
41190         * tree-vect-patterns.c: Likewise.
41191         * tree-vect-slp.c: Likewise.
41192         * tree-vect-stmts.c: Likewise.
41193         * tsan.c: Likewise.
41194         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41195         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41196         stmt.h.
41197         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41198         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41199         statistics.h stmt.h varasm.h.
41200         * loop-unroll.c: Likewise.
41201         * ubsan.c: Likewise.
41202         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41203         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41204         stmt.h varasm.h.
41205         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41206         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41207         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41208         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41209         statistics.h stmt.h.
41210         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41211         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41212         statistics.h stmt.h varasm.h.
41213         * gimple-match-head.c: Likewise.
41214         * lto-cgraph.c: Likewise.
41215         * lto-section-in.c: Likewise.
41216         * lto-streamer-in.c: Likewise.
41217         * lto-streamer-out.c: Likewise.
41218         * tree-affine.c: Likewise.
41219         * tree-cfg.c: Likewise.
41220         * tree-cfgcleanup.c: Likewise.
41221         * tree-if-conv.c: Likewise.
41222         * tree-into-ssa.c: Likewise.
41223         * tree-ssa-alias.c: Likewise.
41224         * tree-ssa-copyrename.c: Likewise.
41225         * tree-ssa-dse.c: Likewise.
41226         * tree-ssa-forwprop.c: Likewise.
41227         * tree-ssa-live.c: Likewise.
41228         * tree-ssa-math-opts.c: Likewise.
41229         * tree-ssa-pre.c: Likewise.
41230         * tree-ssa-sccvn.c: Likewise.
41231         * tree-tailcall.c: Likewise.
41232         * tree-vect-generic.c: Likewise.
41233         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41234         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41235         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41236         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41237         * varasm.c: Likewise.
41238         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41239         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41240         varasm.h.
41241         * init-regs.c: Likewise.
41242         * ira.c: Likewise.
41243         * omp-low.c: Likewise.
41244         * stack-ptr-mod.c: Likewise.
41245         * tree-ssa-reassoc.c: Likewise.
41246         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41247         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41248         varasm.h.
41249         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41250         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41251         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41252         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41253         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41254         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41255         * tree-ssa-phiopt.c: Likewise.
41256         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41257         fixed-value.h hashtab.h real.h statistics.h stmt.h.
41258         * config/fr30/fr30.c: Likewise.
41259         * config/frv/frv.c: Likewise.
41260         * expr.c: Likewise.
41261         * final.c: Likewise.
41262         * optabs.c: Likewise.
41263         * passes.c: Likewise.
41264         * simplify-rtx.c: Likewise.
41265         * stmt.c: Likewise.
41266         * toplev.c: Likewise.
41267         * var-tracking.c: Likewise.
41268         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41269         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41270         * lower-subreg.c: Likewise.
41271         * postreload-gcse.c: Likewise.
41272         * ree.c: Likewise.
41273         * reginfo.c: Likewise.
41274         * store-motion.c: Likewise.
41275         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41276         fixed-value.h hashtab.h real.h stmt.h varasm.h.
41277         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41278         fixed-value.h hashtab.h statistics.h stmt.h.
41279         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41280         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41281         * except.c: Likewise.
41282         * explow.c: Likewise.
41283         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41284         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41285         varasm.h.
41286         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41287         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41288         * tree-ssa-structalias.c: Likewise.
41289         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41290         fixed-value.h insn-config.h real.h statistics.h.
41291         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41292         fixed-value.h insn-config.h real.h statistics.h stmt.h.
41293         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41294         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41295         * cfgbuild.c: Likewise.
41296         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41297         fixed-value.h real.h rtl.h statistics.h stmt.h.
41298         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41299         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41300         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41301         fixed-value.h real.h statistics.h stmt.h.
41302         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41303         fixed-value.h real.h statistics.h stmt.h varasm.h.
41304         * cprop.c: Likewise.
41305         * modulo-sched.c: Likewise.
41306         * postreload.c: Likewise.
41307         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41308         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41309         statistics.h stmt.h varasm.h.
41310         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41311         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41312         rtl.h statistics.h stmt.h varasm.h.
41313         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41314         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41315         varasm.h.
41316         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41317         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41318         varasm.h.
41319         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41320         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41321         varasm.h.
41322         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41323         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41324         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41325         function.h real.h statistics.h stmt.h varasm.h.
41326         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41327         insn-config.h real.h statistics.h stmt.h.
41328         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41329         statistics.h stmt.h.
41330         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41331         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41332         statistics.h stmt.h varasm.h.
41333         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41334         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41335         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41336         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41337         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41338         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41339         statistics.h stmt.h varasm.h.
41340         * ipa-polymorphic-call.c: Likewise.
41341         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41342         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41343         statistics.h stmt.h.
41344         * config/c6x/c6x.c: Likewise.
41345         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41346         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41347         statistics.h stmt.h varasm.h.
41348         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41349         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41350         stmt.h varasm.h.
41351         * ipa-split.c: Likewise.
41352         * tree-eh.c: Likewise.
41353         * tree-ssa-dce.c: Likewise.
41354         * tree-ssa-loop-niter.c: Likewise.
41355         * tree-vrp.c: Likewise.
41356         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41357         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41358         stmt.h.
41359         * config/nds32/nds32-fp-as-gp.c: Likewise.
41360         * config/nds32/nds32-intrinsic.c: Likewise.
41361         * config/nds32/nds32-isr.c: Likewise.
41362         * config/nds32/nds32-md-auxiliary.c: Likewise.
41363         * config/nds32/nds32-memory-manipulation.c: Likewise.
41364         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41365         * config/nds32/nds32-predicates.c: Likewise.
41366         * config/nds32/nds32.c: Likewise.
41367         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41368         fixed-value.h hashtab.h real.h statistics.h.
41369         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41370         fixed-value.h hashtab.h real.h statistics.h stmt.h.
41371         * config/arm/arm.c: Likewise.
41372         * config/avr/avr.c: Likewise.
41373         * config/bfin/bfin.c: Likewise.
41374         * config/h8300/h8300.c: Likewise.
41375         * config/i386/i386.c: Likewise.
41376         * config/ia64/ia64.c: Likewise.
41377         * config/iq2000/iq2000.c: Likewise.
41378         * config/m32c/m32c.c: Likewise.
41379         * config/m32r/m32r.c: Likewise.
41380         * config/m68k/m68k.c: Likewise.
41381         * config/mcore/mcore.c: Likewise.
41382         * config/mep/mep.c: Likewise.
41383         * config/mips/mips.c: Likewise.
41384         * config/mn10300/mn10300.c: Likewise.
41385         * config/moxie/moxie.c: Likewise.
41386         * config/pa/pa.c: Likewise.
41387         * config/rl78/rl78.c: Likewise.
41388         * config/rx/rx.c: Likewise.
41389         * config/s390/s390.c: Likewise.
41390         * config/sh/sh.c: Likewise.
41391         * config/sparc/sparc.c: Likewise.
41392         * config/spu/spu.c: Likewise.
41393         * config/stormy16/stormy16.c: Likewise.
41394         * config/v850/v850.c: Likewise.
41395         * config/vax/vax.c: Likewise.
41396         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41397         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41398         * config/msp430/msp430.c: Likewise.
41399         * predict.c: Likewise.
41400         * value-prof.c: Likewise.
41401         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41402         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41403         * config/microblaze/microblaze.c: Likewise.
41404         * config/nios2/nios2.c: Likewise.
41405         * config/rs6000/rs6000.c: Likewise.
41406         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41407         insn-config.h real.h rtl.h statistics.h stmt.h.
41408         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41409         insn-config.h real.h statistics.h stmt.h.
41410         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41411         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41412         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41413         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41414         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41415         fixed-value.h real.h statistics.h stmt.h.
41416         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41417         fixed-value.h statistics.h stmt.h.
41418         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41419         stmt.h.
41421 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
41423         * gengtype.c (create_user_defined_type): Workaround
41424         -Wmaybe-uninitialized false positives.
41425         * cse.c (fold_rtx): Likewise.
41426         * loop-invariant.c (gain_for_invariant): Likewise.
41428 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
41430         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41431         set the memory attributes in all cases but clear MEM_EXPR if need be.
41433 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41435         PR tree-optimization/64434
41436         * cfgexpand.c (reorder_operands): New function.
41437         (expand_gimple_basic_block): Insert call of reorder_operands if
41438         optimized is true.
41440 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
41442         * config/mips/micromips.md (*swp): Remove explicit parallel.
41443         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41444         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41445         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41446         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41447         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41448         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41449         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41450         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41451         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41452         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41453         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41454         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41455         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41456         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41457         (mips_wrdsp): Likewise.
41458         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41459         parallel.
41460         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41461         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41462         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41463         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41464         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41465         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41466         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41467         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41468         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41470 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41472         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41473         (mips_print_operand): Support 'y' to print exact log2 in decimal
41474         of a const_int.
41475         * config/mips/mips.h (ISA_HAS_LSA): New define.
41476         (ISA_HAS_DLSA): Likewise.
41477         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41478         * config/mips/predicates.md (const_immlsa_operand): New predicate.
41480 2015-01-15  Martin Liska  <mliska@suse.cz>
41482         PR target/64377
41483         * optc-save-gen.awk: Add support for array types.
41485 2015-01-15  Richard Biener  <rguenther@suse.de>
41487         PR middle-end/64365
41488         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41489         for MEM_REF access functions with the same base can never partially
41490         overlap.
41492 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
41494         * common.opt: New option -fstack-protector-explicit.
41495         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41496         (stack_protect_decl_phase): Handle stack_protect attribute for
41497         explicit stack protection requests.
41498         (expand_used_vars): Similarly.
41499         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41500         * doc/extend.texi: Add documentation for "stack_protect" attribute.
41501         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41503 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
41505         PR target/53988
41506         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41507         reg-reg copies.
41508         (sh_extending_set_of_reg): New struct.
41509         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41510         sh_remove_reg_dead_or_unused_notes): New Declarations.
41511         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41512         sh_find_extending_set_of_reg, sh_split_tst_subregs,
41513         sh_extending_set_of_reg::use_as_extended_reg): New functions.
41514         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41515         convert to insn_and_split and use new function sh_split_tst_subregs.
41517 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
41519         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41520         option.
41521         (Optimization Options): Move -fuse-ld documentation to...
41522         (Link Options): ...here.
41524 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41526         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41527         offsets.
41528         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41529         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41530         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41531         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41532         instead of ZR for the memory operand of LL/SC.
41533         (compare_and_swap_12, sync_add<mode>): Likewise.
41534         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41535         (sync_new_<optab>_12, sync_nand_12): Likewise.
41536         (sync_old_nand_12, sync_new_nand_12): Likewise.
41537         (sync_sub<mode>, sync_old_add<mode>): Likewise.
41538         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41539         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41540         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41541         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41542         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41543         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41544         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41545         * doc/md.texi (ZC): Update description.
41547 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
41549         * builtins.c (expand_builtin_atomic_exchange): Remove error when
41550         memory model is CONSUME.
41551         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41552         expand_builtin_atomic_store): Change invalid memory model errors to
41553         warnings.
41554         (expand_builtin_atomic_clear): Change invalid model errors to warnings
41555         and issue warning for CONSUME.
41557 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
41559         * lto-cgraph: Update function comments for
41560         lto_symtab_encoder_encode_*.
41562 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
41564         * Makefile.in (site.exp): Do not set ENABLE_LTO.
41566 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
41568         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41569         * lto-cgraph.c (select_what_to_stream): Remove argument, use
41570         lto_stream_offload_p instead.
41571         * lto-streamer.h (select_what_to_stream): Remove argument.
41572         * passes.c (ipa_write_summaries): Likewise.
41573         * tree-pass.h (ipa_write_summaries): Likewise.
41575 2015-01-14  Richard Biener  <rguenther@suse.de>
41577         PR tree-optimization/59354
41578         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41579         groups larger than the slp group size as having gaps.
41581 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
41583         PR middle-end/59448
41584         * builtins.c (get_memmodel): Promote consume to acquire always.
41586 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41588         PR target/64386
41589         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41590         V32HImode.
41592 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41594         PR target/64393
41595         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41596         Enable AVX512BW.
41597         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41598         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41599         AVX512VBMI, as it implies AVX512BW.
41601 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
41603         PR target/64387
41604         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41605         (vec_unpacks_hi_v16sf): Ditto.
41607 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41609         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41610         is not available.
41612 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41614         * doc/invoke.texi (mapcs): Mention deprecation.
41615         (mapcs-frame): Likewise.
41617 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41619         PR target/64453
41620         * config/arm/arm.c (callee_saved_reg_p): Define.
41621         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41622         register is callee saved instead of !call_used_regs[reg].
41623         (thumb1_compute_save_reg_mask): Likewise.
41625 2015-01-14  Hale Wang  <hale.wang@arm.com>
41627         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41628         Cortex-M7.
41630 2015-01-14  Richard Biener  <rguenther@suse.de>
41632         PR lto/64415
41633         * tree-inline.c (insert_debug_decl_map): Check destination
41634         function MAY_HAVE_DEBUG_STMTS.
41635         (insert_init_debug_bind): Likewise.
41636         (insert_init_stmt): Remove redundant check.
41637         (remap_gimple_stmt): Drop debug stmts if the destination
41638         function has var-tracking assignments disabled.
41640 2015-01-14  Martin Liska  <mliska@suse.cz>
41642         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41643         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41645 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41647         PR target/64460
41648         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41649         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41651 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
41653         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41654         level from an ARCH; do not inject the default.
41655         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41656         MIPS_ISA_LEVEL_SPEC.
41657         (MIPS_ISA_NAN2008_SPEC): Update comment.
41658         (BASE_DRIVER_SELF_SPECS): Likewise.
41659         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41660         MIPS_DEFAULT_ISA_LEVEL_SPEC.
41661         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41662         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41663         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41665 2015-01-14  Richard Biener  <rguenther@suse.de>
41667         PR tree-optimization/64493
41668         PR tree-optimization/64495
41669         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41670         assign the proper vectorized PHI to the inner loop exit PHIs.
41672 2015-01-14  Joey Ye  <joey.ye@arm.com>
41674         * config/arm/arm.c (arm_compute_save_reg_mask):
41675         Do not save lr in case of tail call.
41676         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41678 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
41680         * tree-vrp.c (check_array_ref): Emit more warnings
41681         for warn_array_bounds >= 2.
41682         * common.opt: New option -Warray-bounds=.
41683         * doc/invoke.texi: Document -Warray-bounds=.
41685 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
41687         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41688         (mforbid-fp-as-gp): Remove.
41689         (mex9): Remove.
41690         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41691         (nds32_symbol_load_store_p): Remove.
41692         (nds32_fp_as_gp_check_available): Clean up implementation.
41693         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41694         cases.
41695         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41696         fp-as-gp and ex9 cases.
41698 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41700         * tree-profile.c (init_ic_make_global_vars): Drop workaround
41701         for bintuils bug 14342.
41702         (init_ic_make_global_vars): Likewise.
41703         (gimple_init_edge_profiler): Likewise.
41704         (gimple_gen_ic_func_profiler): Likewise.
41706 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
41708         * ipa-inline.c (inline_small_functions): Swap the operands in
41709         enum.
41711 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41713         PR ipa/64481
41714         * ipa-inline-analysis.c (node_growth_cache): Remove.
41715         (initialize_growth_caches): Do not initialize it.
41716         (free_growth_caches): Do not free it.
41717         (do_estimate_growth): Rename to ...
41718         (estimate_growth): ... this one; drop growth cache code.
41719         (growth_likely_positive): Always go the heuristics way.
41720         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41721         (reset_edge_caches): Do not reset node growth.
41722         (heap_edge_removal_hook): Do not maintain cache.
41723         (inline_small_functions): Likewise; strenghten sanity check.
41724         (ipa_inline): Do not maintain caches.
41725         * ipa-inline.h (node_growth_cache): Remove.
41726         (do_estimate_growth): Remove to ...
41727         (estimate_growth): this one; remove inline version.
41728         (reset_node_growth_cache): Remove.
41730 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
41732         PR ipa/64565
41733         * ipa-inline.c (inline_small_functions): Update callee keys after
41734         resolving speculation
41735         (inline_small_functions): Always check monotonicity of the queue.
41737 2015-01-13  Marek Polacek  <polacek@redhat.com>
41739         PR middle-end/64391
41740         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41742 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41744         PR rtl-optimization/64286
41745         * ree.c (combine_reaching_defs): Move part of comment earlier,
41746         remove !SCALAR_INT_MODE_P check.
41747         (add_removable_extension): Don't add vector mode
41748         extensions if all uses of the source register aren't the same
41749         vector extensions.
41751 2015-01-13  Renlin Li  <renlin.li@arm.com>
41753         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41754         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41756 2015-01-13  Martin Liska  <mliska@suse.cz>
41758         * ipa-icf.c (sem_function::equals_private): Call new functions
41759         cl_target_option_print_diff and cl_optimization_print_diff.
41760         * optc-save-gen.awk (cl_target_option_print_diff): New function.
41761         (cl_optimization_print_diff): Likewise.
41762         * opth-gen.awk: Likewise.
41764 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
41766         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41767         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41768         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41769         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41770         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41771         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41773 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41775         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41776         instead of src mode.
41778 2015-01-13  Richard Biener  <rguenther@suse.de>
41780         PR lto/64373
41781         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41782         DECL_CONTEXT.
41784 2015-01-13  Andrew Pinski  <apinski@cavium.com>
41786         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41787         volatile mems.
41788         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41790 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
41792         PR middle-end/63974
41793         * cfgexpand.c (expand_computed_goto): Don't call
41794         convert_memory_address here.
41796 2015-01-13  Richard Biener  <rguenther@suse.de>
41798         PR tree-optimization/64406
41799         * tree-loop-distibution.c (pass_loop_distribution::execute):
41800         Reset the SCEV hashtable if we distributed anything.
41802 2015-01-13  Richard Biener  <rguenther@suse.de>
41804         PR tree-optimization/64404
41805         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41806         SLP types for CSEd loads.
41808 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
41810         PR tree-optimization/64436
41811         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41812         merge of two symbolic numbers for a bitwise OR to ...
41813         (perform_symbolic_merge): This. Also fix computation of the range and
41814         end of the symbolic number corresponding to the result of a bitwise OR.
41816 2015-01-13  Richard Biener  <rguenther@suse.de>
41818         PR tree-optimization/64568
41819         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41820         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41822 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41824         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41825         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41827 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41829         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41830         target-specific symbol_ref flag.
41831         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41832         resides in rodata section.
41833         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41834         (nds32_encode_section_info): New function.
41836 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41838         * config/nds32/nds32.md (call): Use pseudo instruction bal which
41839         clobbers TA_REGNUM if large code model is specified.
41840         (call_register): Likewise.
41841         (call_immediate): Likewise.
41842         (call_value): Likewise.
41843         (call_value_register): Likewise.
41844         (call_value_immediate): Likewise.
41846 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41848         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41849         (TARGET_CMODEL_MEDIUM): New macro.
41850         (TARGET_CMODEL_LARGE): New macro.
41851         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41852         code model setting in assembly code.
41854 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41856         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41857         Remove MASK_GP_DIRECT flag.
41858         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41859         one of the multilib default options.
41860         * config/nds32/nds32.opt (mgp-direct): Remove.
41861         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41862         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
41864 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
41866         * config/nds32/nds32.opt (mcmodel): Add new option.
41867         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41868         to describe code model.
41870 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
41872         PR target/64479
41873         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41875 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
41877         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41878         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41879         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41880         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41881         __builtin_sh_set_fpscr.
41883 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
41885         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41886         after a funtion name just to indicate it is a function.
41887         ([-fsanitize-undefined-trap-on-error]): Likewise.
41888         ([-fdbg-cnt=]): Likewise.
41889         ([-mmemcpy]): Likewise.
41890         ([-mflush-func]): Likewise.
41891         ([-msynci]): Likewise.
41893 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
41895         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41896         example.
41898 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
41900         PR tree-optimization/64563
41901         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41902         instead of != VR_VARYING.
41904         PR target/64513
41905         * config/i386/i386.c (ix86_expand_prologue): Add
41906         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41908         PR tree-optimization/64454
41909         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41910         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41911         for signed or [0, op1 - 1] for unsigned modulo.
41912         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41913         even if op1 does not satisfy integer_pow2p.
41915         PR other/64370
41916         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41918 2015-01-12  Jeff Law  <law@redhat.com>
41920         PR target/64461
41921         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41922         (trunchiqi2, truncsihi2): Similarly.
41924         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41925         rather than calling F.
41927 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41929         * tsan.c (instrument_expr): Use force_gimple_operand.
41930         Use may_be_nonaddressable_p instead of is_gimple_addressable.
41932 2015-01-12  Richard Biener  <rguenther@suse.de>
41934         PR tree-optimization/64530
41935         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41936         back dr1.
41938 2015-01-12  Richard Biener  <rguenther@suse.de>
41940         PR middle-end/64357
41941         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41942         latches properly.
41944 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41946         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41947         Cortex-A17 tuning parameters.
41948         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41950 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41952         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41953         * config/arm/arm.c (arm_macro_fusion_p): New function.
41954         (arm_macro_fusion_pair_p): Likewise.
41955         (TARGET_SCHED_MACRO_FUSION_P): Define.
41956         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41957         (ARM_FUSE_NOTHING): Likewise.
41958         (ARM_FUSE_MOVW_MOVT): Likewise.
41959         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41960         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41961         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41962         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41963         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41964         arm_cortex_a5_tune): Specify fuseable_ops value.
41966 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
41968         PR bootstrap/64561
41969         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41970         test for PIE with copy reloc.
41971         * configure: Regenerated.
41973 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41975         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41976         in gen_rtx_REG.
41977         (arm_tls_descseq_addr): Likewise.
41978         (arm_gen_movmemqi): Likewise.
41979         (arm_expand_epilogue_apcs_frame): Likewise.
41980         (arm_expand_epilogue): Likewise.
41981         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
41982         in gen_rtx_REG.
41984 2015-01-12  Martin Liska  <mliska@suse.cz>
41986         PR ipa/64550
41987         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41988         volatility for correct operands.
41990 2015-01-12  Martin Liska  <mliska@suse.cz>
41992         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41993         indication that a function is not leaf.
41994         (sem_function::compare_polymorphic_p): Likewise.
41996 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41998         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41999         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42000         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42001         fold-const.h, tree-check.h.
42003 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42005         PR ipa/63967
42006         PR ipa/64425
42007         * ipa-inline.c (compute_uninlined_call_time,
42008         compute_inlined_call_time): Use counts for extra precision when
42009         needed possible.
42010         (big_speedup_p): Fix formating.
42011         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42012         (relative_time_benefit): Remove.
42013         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42014         merge guessed and read profile paths.
42015         (inline_small_functions): Count only !optimize_size functions into
42016         initial size; be more lax about sanity check when profile is used;
42017         be sure to update inlined function profile when profile is read.
42019 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42021         PR ipa/63470
42022         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42023         cost when edge becomes direct.
42024         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42025         is resolved or when introducing new speculation.
42027 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
42029         PR ipa/64551
42030         PR ipa/64552
42031         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42032         '||' to fix typo issue.
42034         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42035         accept and return NULL.
42037 2015-01-12  Martin Liska  <mliska@suse.cz>
42039         * cgraph.c (cgraph_edge::remove_callee): Move function to header
42040         file for being inlined.
42041         (cgraph_set_edge_callee): Delete.
42042         (cgraph_edge::redirect_callee): Move function to header file
42043         for being inlined.
42044         (cgraph_edge::make_direct): Use new function.
42045         (cgraph_edge::dump_edge_flags): New function created from
42046         static dump_edge_flags function.
42047         (cgraph_node::dump): Use new function.
42048         (cgraph_edge::verify_count_and_frequency): New function created
42049         from verify_edge_count_and_frequency.
42050         (cgraph_edge::verify_corresponds_to_fndecl): New function created
42051         from verify_edge_corresponds_to_fndecl.
42052         (verify_edge_corresponds_to_fndecl): Delete.
42053         (cgraph_node::verify_node): Use new function.
42054         * cgraph.h (cgraph_edge::set_callee): New function.
42055         (cgraph_edge::dump_edge_flags): Likewise.
42056         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42058 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
42060         * ipa-utils.c (estimate_function_body_sizes): Do not
42061         free node params when called late with early=true.
42063 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
42065         * doc/md.texi (Instruction Patterns): Rewrite text for
42066         clarity.
42067         (Example): Likewise.
42069 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
42071         * doc/invoke.texi (Option Summary): Break long lines.
42072         [(-fdiagnostics-color)]: Put long literal in @smallexample
42073         instead of inline.
42074         [(-fsanitize-recover)]: Likewise.
42075         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42076         [(-ffast-math)]: Likewise.
42077         [(--param max-inline-insns-recursive)]: Likewise.
42078         [(--param max-inline-recursive-depth)]: Likewise.
42079         [(-mno-text-section-literals)]: Likewise.
42081 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
42083         * doc/install.texi: Update for libgomp being renamed from "GNU
42084         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42085         Runtime Library".
42086         * doc/sourcebuild.texi: Likewise.
42088 2015-01-10  Anthony Green  <green@moxielogic.com>
42090         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42091         mul.x availability for moxiebox configuration.
42093 2015-01-09  Anthony Green  <green@moxielogic.com>
42095         * config/moxie/moxie.md: Tabify assembly output.
42097 2015-01-09  Anthony Green  <green@moxielogic.com>
42099         * config/moxie/moxie.md (CC_REG): Correct register definition.
42101 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
42103         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42104         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
42105         of log files.
42107 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42109         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42111 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
42112             Jakub Jelinek  <jakub@redhat.com>
42114         PR middle-end/64412
42115         * lto-streamer.h (lto_stream_offload_p): New declaration.
42116         * lto-streamer.c (lto_stream_offload_p): New variable.
42117         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42118         at the same time as section_name_prefix.
42119         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42120         if lto_stream_offload_p.
42121         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42122         stream TREE_TARGET_OPTION if lto_stream_offload_p.
42123         (write_ts_function_decl_tree_pointers): Don't
42124         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42125         * tree-streamer-in.c (unpack_value_fields): Don't stream
42126         TREE_TARGET_OPTION in if ACCEL_COMPILER.
42127         (lto_input_ts_function_decl_tree_pointers): Don't stream
42128         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42129         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42130         instead of section_name_prefix string comparisons.
42132 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
42134         PR rtl-optimization/64536
42135         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42136         tablejumps.
42138 2015-01-09  Michael Collison  <michael.collison@linaro.org>
42140         PR tree-optimization/64322
42141         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42142         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42144 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42146         PR rtl-optimization/64539
42147         * regcprop.c (kill_clobbered_values): Factor out of ...
42148         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
42149         instead of note_stores with kill_clobbered_value.
42151 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42153          * ginclude/unwind-arm-common.h: Revert previous commit.
42155 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42157         * config.gcc (arm*-*-freebsd*): New configuration.
42158         * config/arm/freebsd.h: New file.
42159         * config.host: Add extra components for arm*-*-freebsd*.
42160         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42161         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42163 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42165         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42166         for -mcpu=e6500.
42167         * config/rs6000/t-rtems: Add e6500 multilibs.
42169 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42171         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42172         MPC8540.
42174 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42176         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42177         MULTILIB_EXCEPTIONS.
42179 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42181         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42182         MULTILIB_EXCEPTIONS.
42184 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42186         * config/arm/t-rtems-eabi: Rename to...
42187         * config/arm/t-rtems: ...this.
42188         * config/arm/rtems-eabi.h: Rename to...
42189         * config/arm/rtems.h: ...this.
42190         * config.gcc (arm*-*-rtems*): Reflect changes above.
42192 2015-01-09  Richard Biener  <rguenther@suse.de>
42194         PR tree-optimization/64410
42195         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42196         on the LHS.
42197         (execute_update_addresses_taken): Deal with that.
42198         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42199         loads/stores for complex variables.
42201 2015-01-09  Martin Liska  <mliska@suse.cz>
42203         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42204         name comparison.
42205         (func_checker::compare_memory_operand): New function.
42206         (func_checker::compare_operand): Split case to newly
42207         added functions.
42208         (func_checker::compare_cst_or_decl): New function.
42209         (func_checker::compare_gimple_call): Identify
42210         memory operands.
42211         (func_checker::compare_gimple_assign): Likewise.
42212         * ipa-icf-gimple.h: New function.
42214 2015-01-09  Martin Liska  <mliska@suse.cz>
42216         PR ipa/64503
42217         * sreal.c (sreal::dump): Change unsigned format to signed for
42218         m_exp value.
42219         (sreal::to_double): Replace exp2 with scalbln.
42221 2015-01-09  Martin Liska  <mliska@suse.cz>
42223         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42224         * ipa-icf.c (sem_function::equals_private): Add support for target and
42225         (sem_item_optimizer::merge_classes): Remove redundant function
42226         optimization flags comparison.
42227         * tree.h (target_opts_for_fn): New function.
42229 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42231         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42233 2015-01-09  Kito Cheng  <kito@0xlab.org>
42235         PR rtl-optimization/64348
42236         * lra-constraints.c (split_reg): Fix caller-save store/restore
42237         instruction generation.
42239 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
42241         PR gcov-profile/61790
42242         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42243         long long.  Fallback to int64_t if host doesn't have long long and
42244         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
42246 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42248         PR tree-optimization/63989
42249         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42250         from 1000 to 10000.
42251         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42252         (get_stridx): If we don't have a record for certain SSA_NAME,
42253         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42254         constant offset, call get_stridx_plus_constant.
42255         (get_stridx_plus_constant): New function.
42256         (zero_length_string): Don't use get_stridx here.
42258         PR target/55023
42259         PR middle-end/64388
42260         * dse.c (struct insn_info): Mention frame_read set also
42261         before reload for tail calls on some targets.
42262         (scan_insn): Revert 2014-12-22 change.  Set frame_read
42263         also before reload for tail calls if
42264         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
42265         instead of add_non_frame_wild_read for non-const/memset
42266         tail calls after reload.
42268 2015-01-08  Jason Merrill  <jason@redhat.com>
42270         * ubsan.c (do_ubsan_in_current_function): New.
42271         (pass_ubsan::gate): Use it.
42272         * ubsan.h: Declare it.
42273         * convert.c (convert_to_integer): Use it.
42275 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42277         PR target/64338
42278         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42279         compare_code when it is unconditionally overwritten afterwards.
42280         Use ix86_reverse_condition instead of reverse_condition.  Don't
42281         change code if *reverse_condition* returned UNKNOWN and don't
42282         swap ct/cf and negate diff in that case.
42284 2015-01-08  Mike Stump  <mikestump@comcast.net>
42286         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42287         (pass_tsan_O0::gate): Likewise.
42288         * extend.texi (Function Attributes): Add no_sanitize_thread
42289         documentation.
42291 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
42293         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42294         for registering builtins.
42295         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42296         add -fopenmp to the argv_obstack used when invoking
42297         compile_for_target.
42299         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42300         add "-m32" or "-m64" to argv_obstack.
42301         (generate_host_descr_file): Likewise, when invoking host_compiler.
42302         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42303         ld.
42305 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
42307         * config/sh/sh-mem.cc: Use constant as second operand when emitting
42308         tstsi_t insns.
42310 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
42312         PR target/55212
42313         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42314         constant load if constant operand fits into I08.
42316 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42318         PR sanitizer/64336
42319         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42320         and TREE_THIS_VOLATILE for MEM_REFs.
42321         (build5_stat): Fix up initialization of TREE_READONLY and
42322         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42324 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
42326         PR target/64533
42327         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42328         of r for the second alternative of the destination operand.
42330 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
42332         PR target/36557
42333         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42335 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42337         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42338         keywords.
42339         ([-fivar-visibility], [-fvisibility]): Likewise.
42341 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42343         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42344         the file where @code, @command, etc is more appropriate.
42346 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
42348         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42349         of -mrecip= documentation.
42351 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
42353         PR target/64505
42354         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42355         correct reload handler if -m32 -mpowerpc64 is used.
42357 2015-01-06  Tom de Vries  <tom@codesourcery.com>
42359         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42361 2015-01-08  Christian Bruel  <christian.bruel@st.com>
42363         PR target/64507
42364         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42366 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42368         PR tree-optimization/63259
42369         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42370         if optab exists for 16bit byteswap.
42372 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
42374         * opts.c (common_handle_option): Add support for
42375         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42376         * doc/invoke.texi: Document -fno-sanitize=all,
42377         -f{,no-}sanitize-recover=all.  Document that
42378         -fsanitize=float-cast-overflow is not enabled
42379         by -fsanitize=undefined.  Fix up documentation
42380         of -f{,no-}sanitize-recover.
42382 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
42384         * config.gcc: Add Visium support.
42385         * configure.ac: Likewise.
42386         * configure: Regenerate.
42387         * doc/extend.texi (interrupt attribute): Add Visium.
42388         * doc/invoke.texi: Document Visium options.
42389         * doc/install.texi: Document Visium target.
42390         * doc/md.texi: Document Visium constraints.
42391         * common/config/visium: New directory.
42392         * config/visium: Likewise.
42394 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
42396         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42397         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42399 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
42401         * combine.c (combine_validate_cost): Do not count the cost of a
42402         split I2 twice.  Do not display it twice in the dump, either.
42404 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
42406         Revert parts of r219199.
42407         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42408         <inttypes.h>.
42409         ([-Wtraditional]): Restore markup on <limits.h>.
42411 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
42413         PR c++/31397
42414         * doc/invoke.texi: Document -Wsuggest-override.
42416 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
42418         PR rtl-optimization/64287
42419         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42420         (process_options): Disable flag_ipa_ra if profiling.
42422 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
42424         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42426 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
42428         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42429         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42430         put under #if TARGET_LOOPS guard.
42432 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
42434         * config/i386/i386.c (output_387_binary_op): Use std::swap.
42436 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
42438         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42439         * rtl.h (refers_to_regno_p): Add overload.
42440         * cse.c: Use it.
42441         * bt-load.c: Likewise.
42442         * combine.c: Likewise.
42443         * df-scan.c: Likewise.
42444         * sched-deps.c: Likewise.
42445         * config/s390/s390.c: Likewise.
42446         * config/m32r/m32r.c: Likewise.
42447         * config/rs6000/spe.md: Likewise.
42448         * config/rs6000/rs6000.c: Likewise.
42449         * config/pa/pa.c: Likewise.
42450         * config/stormy16/stormy16.c: Likewise.
42451         * config/cris/cris.c: Likewise.
42452         * config/arc/arc.md: Likewise.
42453         * config/arc/arc.c: Likewise.
42454         * config/sh/sh.md: Likewise.
42455         * config/sh/sh.c: Likewise.
42456         * config/frv/frv.c: Likewise.
42458 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42460         PR sanitizer/64265
42461         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42462         call as cleanup of the whole body.
42463         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42464         * tsan.c (replace_func_exit): New function.
42465         (instrument_func_exit): Moved earlier.
42466         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42467         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42468         been found.
42469         (tsan_pass): Don't call instrument_func_exit.
42470         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42471         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42472         inlining.
42474         PR sanitizer/64344
42475         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42476         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42477         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
42478         if the result is integer_zerop, return NULL_TREE.
42479         * convert.c (convert_to_integer): Pass expr as ARG.
42481         PR tree-optimization/64465
42482         * tree-inline.c (redirect_all_calls): During inlining
42483         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42484         changed the stmt to a non-throwing call.
42486 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
42488         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42489         etc markup throughout the file.
42491 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42493         Enable experimental TSAN support for Ada.
42494         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42496 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42498         PR tree-optimization/64494
42499         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42500         clear SSA_NAME_ANTI_RANGE_P flag.
42502 2015-01-05  Marek Polacek  <polacek@redhat.com>
42504         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42506 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
42508         Update copyright years.
42510         * gcc.c (process_command): Update copyright notice dates.
42511         * gcov-dump.c: Ditto.
42512         * gcov.c: Ditto.
42513         * doc/cpp.texi: Bump @copying's copyright year.
42514         * doc/cppinternals.texi: Ditto.
42515         * doc/gcc.texi: Ditto.
42516         * doc/gccint.texi: Ditto.
42517         * doc/gcov.texi: Ditto.
42518         * doc/install.texi: Ditto.
42519         * doc/invoke.texi: Ditto.
42521         * auto-profile.c, auto-profile.h: Fix up Copyright line.
42523 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
42525         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42526         verb tense, etc.
42527         ([-fvtable-verify], [-fvtv-debug]): Likewise.
42528         ([-Wabi]): Likewise.
42529         ([-fmessage-length]): Likewise.
42530         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42531         ([-Wno-discarded-qualifiers]): Likewise.
42532         ([-Wnodiscarded-array-qualifiers]): Likewise.
42533         ([-Wno-virtual-move-assign]): Likewise.
42534         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42535         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42536         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42537         ([-fsanitize-undefined-trap-on-error]): Likewise.
42538         ([-floop-interchange]): Likewise.
42539         ([-ftree-coalesce-inlined-vars]): Likewise.
42540         ([-fvect-cost-model]): Likewise.
42541         ([-flto]): Likewise.
42542         ([--param]): Likewise.
42543         (Spec Files): Likewise.
42544         ([-mstrict-align]): Likewise.
42545         ([-mfix-cortex-a53-835769]): Likewise.
42546         ([-march], [-mtune]): Likewise.
42547         ([-mpic-register]): Likewise.
42548         ([-munaligned-access]): Likewise.
42549         ([-msp8]): Likewise.
42550         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42551         (AVR Built-in Macros): Likewise.
42552         ([-mpreferred-stack-boundary]): Likewise.
42553         ([-mtune-crtl]): Likewise.
42554         ([-mashf]): Likewise.
42555         ([-mmcu=]): Likewise.
42556         ([-minrt]): Likewise.
42557         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42558         ([-mupper-regs]): Likewise.
42559         ([-matomic-model]): Likewise.
42560         ([-mdiv]): Likewise.
42561         ([-mzdcbranch]): Likewise.
42562         ([-mdisable-callt]): Likewise.
42563         ([-msoft-float]): Likewise.
42564         ([-m8byte-align]): Likewise.
42565         ([-fstack-reuse]): Likewise.
42567 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42569         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42570         Fix markup, light copy-editing.
42571         ([-fauto-profile]): Rewrite to fix formatting and content
42572         problems.
42574 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42576         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42577         Copy-edit description.
42578         ([-fisolate-erroneous-paths-attribute]): Likewise.
42579         * common.opt (fisolate-erroneous-paths-dereference):
42580         Copy-edit description.
42581         (fisolate-erroneous-paths-attribute): Likewise.
42583 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42585         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42586         tidy grammar.
42588 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
42590         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42591         ([-fvtv-debug]): Likewise.
42592         ([-Wc++-compat]): Likewise.
42593         ([-Wc++11-compat]): Likewise.
42594         ([-Wc++14-compat]): Likewise.
42595         ([-Wno-sized-deallocation]): Likewise.
42596         ([-femit-class-debug-always]): Likewise.
42597         ([-femit-struct-debug-detailed]): Likewise.
42598         ([-fno-keep-inline-dllexport]): Likewise.
42599         ([-fira-algorithm]): Likewise.
42600         ([-fira-region]): Likewise.
42601         ([-flra-remat]): Likewise.
42602         ([-fipa-ra]): Likewise.
42603         ([-fhoist-adjacent-loads]): Likewise.
42604         ([-fisolate-erroneous-paths-dereference]): Likewise.
42605         ([-fisolate-erroneous-paths-attribute]): Likewise.
42606         ([-ftree-switch-conversion]): Likewise.
42607         ([-ftree-tail-merge]): Likewise.
42608         ([-ftree-loop-if-convert]): Likewise.
42609         ([-ftree-loop-if-convert-stores]): Likewise.
42610         ([-ftree-loop-distribution]): Likewise.
42611         ([-ftree-loop-distribute-patterns]): Likewise.
42612         ([-flto-compression-level]): Likewise.
42613         ([-flto-report]): Likewise.
42614         ([-flto-report-wpa]): Likewise.
42615         ([-fuse-linker-plugin]): Likewise.
42616         ([-mfix-cortex-a53-835769]): Likewise.
42617         ([-mno-fix-cortex-a53-835769]): Likewise.
42618         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42619         explicit listing; add a note to the discussion indicating they
42620         exist.  Reorder table to group similar options.  Add missing
42621         @opindex entries.  Add @need commands throughout the table to
42622         allow it to be split across multiple pages.
42623         ([-m8bit-idiv]): Fix @opindex.
42624         ([-mavx256-split-unaligned-load]): Likewise.
42625         ([-mavx256-split-unaligned-store]): Likewise.
42626         ([-mstack-protector-guard]): Likewise.
42627         ([-mcpu=]): Likewise.
42628         ([-mcpu]): Likewise.
42629         ([-mpointer-size=]): Likewise.
42631 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
42633         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42634         instead of `m' constraint.  Likewise for unnamed movb comparison
42635         patterns using reg_before_reload_operand predicate.
42636         * config/pa/predicates.md (reg_before_reload_operand): Tighten
42637         predicate to reject register index and LO_SUM DLT memory forms
42638         after reload.
42640 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
42642         * doc/invoke.texi (Option Summary): Fix spelling of
42643         -fdevirtualize-at-ltrans.
42644         ([-fdevirtualize]): Fix markup.
42645         ([-fdevirtualize-speculatively]): Fix typo.
42646         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
42647         implementor-speaky.
42648         * common.opt (fdevirtualize-at-ltrans): Likewise.
42649         * ipa-devirt.c: Fix typos in comments throughout the file.
42650         (ipa_devirt): Fix typos in format strings for dump output.
42652 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
42654         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42655         discussion of defaults, light copy-editing.
42657 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42659         * tsan.c (instrument_expr): corrected previous checkin.
42661 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42663         Instrument bit field and unaligned accesses for TSAN.
42664         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42665         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42666         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42667         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42668         unaligned memory regions.
42670 2015-01-01  Anthony Green  <green@moxielogic.com>
42672         * config/moxie/predicates.md (moxie_general_movsrc_operand):
42673         Restrict move source register offsets to 16 bits.
42675 Copyright (C) 2015 Free Software Foundation, Inc.
42677 Copying and distribution of this file, with or without modification,
42678 are permitted in any medium without royalty provided the copyright
42679 notice and this notice are preserved.