2015-12-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob6450d52b0c2c1688dd230f7e987fbd9e7027eb5b
1 2015-12-16  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/68892
4         * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
5         cost for permuted loads.
7 2015-12-16  Jakub Jelinek  <jakub@redhat.com>
9         PR rtl-optimization/65980
10         * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
11         next_nonnote_nondebug_insn instead of next_real_insn and
12         skip over CODE_LABELs too.
14 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
16         * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
17         Do not copy DECL_VIRTUAL_P.
19 2015-12-15  Martin Sebor  <msebor@redhat.com>
21         c++/42121
22         * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
23         members.
24         * tree.c (type_contains_placeholder_1): Avoid assuming type has
25         a non-null domain or an upper bound to handle flexible array
26         members.
27         * varasm.c (output_constructor_regular_field):  Same.
28         (output_constructor): Set min_index to integer_zero_node rather
29         than null when a type has no domain to avoid crashing later.
31 2015-12-15  Nathan Sidwell  <nathan@acm.org>
33         * config/nvptx/nvptx.c (write_one_arg): Rename to ...
34         (write_arg_mode): ... here.  Update callers.
35         (write_arg): Rename to ...
36         (write__arg_type): ... here.  Update callers.
37         (write_return_mode): New fn, broken out of ...
38         (write_return): ... here.  Rename to ...
39         (write_return_type): ... here.  Call it. Update callers.
40         (write_fn_proto_from_insn): Use write_arg_mode and
41         write_return_mode.
42         (init_frame): New fn.
43         (nvptx_declare_function_name): Call it for frame and varargs. Only
44         emit outgoing static chain, if it's live.
45         (nvptx_output_return): Use reg_names for return reg name.
46         (nvptx_output_call_insn): Likewise.
47         (nvptx_reorg): Mark unused hard regs too.
49 2015-12-15  Nathan Sidwell  <nathan@acm.org>
51         * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
52         then reject subregs.
53         (nvptx_reg_or_mem_operand): Likewise.
54         (nvptx_nonmemory_operand): Likewise.
55         (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
56         (call_insn, call_value_insn): Address is not SImode.
57         * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
58         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
59         RETURN_REG class.
60         (REGNO_REG_CLASS): Alwaus ALL_REGS.
61         (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
62         (HARD_FRAME_POINTER_REGNUM): Delete.
63         (REGISTER_NAMES): Move earlier.
64         (struct nvptx_args): Remove 'off'.
65         (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
66         (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
67         * config/nvptx/nvptx.c (arg_promotion): Delete.
68         (nvptx_expand_call): Remove check for funtype being an fntype.
70 2015-12-15  Jason Merrill  <jason@redhat.com>
72         * hash-map.h, hash-table.h: Make copy constructors explicit.
74 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
76         * cgraphunit.c (output_in_order): Do not assemble "omp declare target
77         link" variables in ACCEL_COMPILER.
78         * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
79         "omp declare target link" variables.
80         * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
81         declare target link" variables.
82         (add_decls_addresses_to_decl_constructor): For "omp declare target
83         link" variables output address of the artificial pointer instead
84         of address of the variable.  Set most significant bit of the size
85         to mark them.
86         (pass_data_omp_target_link): New pass_data.
87         (pass_omp_target_link): New class.
88         (find_link_var_op): New static function.
89         (make_pass_omp_target_link): New function.
90         * passes.def: Add pass_omp_target_link.
91         * tree-pass.h (make_pass_omp_target_link): Declare.
92         * varpool.c (symbol_table::output_variables): Do not assemble "omp
93         declare target link" variables in ACCEL_COMPILER.
95 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
97         PR middle-end/21273
98         * gensupport.c (collect_insn_data): Look for number of alternatives
99         in MATCH_SCRATCH.
101 2015-12-15  Nathan Sidwell  <nathan@acm.org>
103         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
104         (CANNOT_CHANGE_MODE_CLASS): Always return true.
105         (HARD_REGNO_MODE_OK): Reformat.
106         * config/nvptx/nvptx.md (define_expand mov<mode>): No
107         RETURN_REGNUM handling here.
108         * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
109         here.
110         (write_one_arg): No QI or HI mode args.
111         (write_fn_proto_from_insn): No argument promotion here.
112         (nvptx_output_return_insn): No return promotion here.
113         (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
114         (nvptx_output_call_insn): No return promotion here.
116 2015-12-15  Martin Jambor  <mjambor@suse.cz>
118         PR ipa/68851
119         * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
120         * cgraph.h (cgraph_node): Change comment of collect_callers.
122 2015-12-15  Jakub Jelinek  <jakub@redhat.com>
124         PR tree-optimization/66688
125         * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
126         noreturn call followed only by debug stmts by removing
127         the debug stmts and handling it the same as if the noreturn
128         call is the last stmt.
130 2015-12-14  Steve Ellcey  <sellcey@imgtec.com>
132         * config/mips/mips.c (mips_promote_function_mode): New function.
133         (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
134         (TARGET_PROMOTE_PROTOTYPES): Remove.
136 2015-12-14  Jason Merrill  <jason@redhat.com>
138         PR c++/68309
139         * hash-table.h: Add copy constructor.
140         * hash-map.h: Add copy constructor.
142 2015-12-14  Tom de Vries  <tom@codesourcery.com>
144         PR other/68882
145         * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
146         * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
147         * tree-cfg.c (dump_default_def): New function.
148         (dump_function_to_file): Dump default defs for arguments, static chain,
149         and decl-by-reference.
151 2015-12-14  Nathan Sidwell  <nathan@acm.org>
153         * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
154         * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
155         (pass_in_memory, promote_arg, promote_return): New.
156         (nvptx_function_arg_boundary): Delete.
157         (nvptx_function_value): Use promote_return.
158         (nvptx_pass_by_reference): Use pass_in_memory.
159         (nvptx_return_in_memory): Use pass_in_memory.
160         (nvptx_promote_function_mode): Use promote_arg.
161         (write_arg): Adjust arg splitting logic.
162         (write_return): Check and clear ret_reg_mode, if needed.
163         (write_fn_proto, nvptx_declare_function_name): Adust write_return
164         calls.
165         (TARGET_RUNCTION_ARG_BOUNDARY,
166         TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
168 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
170         PR c/68833
171         * common.opt (Wmissing-noreturn): Add Warning option.
172         * opts-common.c (control_warning_option): If opt is
173         alias_target with alias_arg, set arg to it.
175 2015-12-14  Segher Boessenkool  <segher@kernel.crashing.org>
177         PR target/68865
178         PR target/68879
179         * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
180         into registers.
182 2015-12-14  Richard Biener  <rguenther@suse.de>
184         Revert accidentially applied
185         PR tree-optimization/68707
186         PR tree-optimization/67323
187         * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
188         if they can be vectorized using load/store-lane instructions.
190 2015-12-14  Richard Biener  <rguenther@suse.de>
192         PR tree-optimization/68852
193         * tree-vectorizer.h (struct _slp_tree): Add def_type member.
194         (SLP_TREE_DEF_TYPE): New accessor.
195         * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
196         hack.
197         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
198         SLP_TREE_DEF_TYPE.
199         (vect_build_slp_tree): When a node is to be built up from scalars
200         do not push a NULL as child but instead set its def_type to
201         vect_external_def.
202         (vect_analyze_slp_cost_1): Check for child def-type instead
203         of NULL.
204         (vect_detect_hybrid_slp_stmts): Likewise.
205         (vect_bb_slp_scalar_cost): Likewise.
206         (vect_get_slp_defs): Likewise.
207         (vect_slp_analyze_node_operations): Likewise.  Before
208         processing node push the children def-types to the underlying
209         stmts vinfo and restore it afterwards.
210         (vect_schedule_slp_instance): Likewise.
211         (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
212         as not vectorizable.
214 2015-12-14  Richard Biener  <rguenther@suse.de>
216         PR tree-optimization/68775
217         * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
218         a operand swapping even if replacing the op with scalars.
220 2015-12-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
222         * combine.c (change_zero_ext): Do not create a shift of zero length.
224 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
226         * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
227         Provide target hook.
228         (arc_no_speculation_in_delay_slots_p): New function.
230 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
231             Andrew Burgess  <andrew.burgess@embecosm.com>
233         * config/arc/arc.c (frame_move): Set frame related flag.
234         (arc_save_restore): Emit epilogue related DWARF2 information.
235         (arc_expand_epilogue): Likewise.
236         * config/arc/arc.opt (mno-epilogue-cfi): Remove.
237         (mepilogue-cfi): Likewise.
238         * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
240 2015-12-14  Martin Jambor  <mjambor@suse.cz>
242         PR ipa/66616
243         * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
244         (call_passes_through_thunk_p): ...here.
245         (find_more_scalar_values_for_callers_subset): Perform thunk checks
246         like propagate_constants_accross_call does.
248 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
250         PR rtl-optimization/68730
251         * cfgrtl.c (cfg_layout_finalize): Free dominators.
253 2015-12-13  Alexandre Oliva <aoliva@redhat.com>
255         PR debug/67355
256         * var-tracking.c (reverse_op): Don't add dummy zero to reverse
257         ops that simplify back to the original value.
258         * alias.c (refs_newer_value_p): Cut off recursion for
259         expressions containing the original value.
261 2015-12-13  Kazu Kirata  <kazu@gcc.gnu.org>
263         * config/m68k/m68k.md (load feeding clear byte): New peephole2.
265 2015-12-13  Tom de Vries  <tom@codesourcery.com>
267         * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
268         parameters of GOACC_paralllel.
270 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
272         * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
273         flag to lto_get_section_data.
274         * varpool.c (varpool_node::get_constructor): Likewise.
275         * lto-section-in.c (lto_get_section_data): Add new flag decompress.
276         (lto_free_section_data): Likewise.
277         (lto_get_raw_section_data): New function.
278         (lto_free_raw_section_data): New function.
279         (copy_function_or_variable): Copy sections w/o decompressing.
280         (lto_output_decl_state_refs): Picke compressed bit.
281         * lto-streamer.h (lto_in_decl_state): New flag compressed.
282         (lto_out_decl_state): Likewise.
283         (lto_get_section_data, lto_free_section_data): Update prototypes
284         (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
285         (lto_write_raw_data): Declare.
286         (lto_begin_section): Remove FIXME.
287         (lto_write_raw_data): New function.
288         (lto_write_stream): Remove FIXME.
289         (lto_new_out_decl_state): Set compressed flag.
291 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
293         * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
294         unnecesary type decls.
295         * tree.h (is_redundant_typedef): Declare.
296         * dwarf2out.c (is_redundant_typedef): Export; booleanize
298 2015-12-12  Eric Botcazou  <ebotcazou@adacore.com>
300         * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
301         * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
302         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
303         (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
304         <CONST_DOUBLE>: Remove VOIDmode test.
305         (epilogue_renumber) <CONST_WIDE_INT>: New case.
306         (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
307         (sparc_assemble_integer): Likewise.
308         (set_extends): Likewise.
309         (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
310         <CONST_WIDE_INT>: New case.
311         <CONST_DOUBLE>: Remove support for VOIDmode.
312         <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
313         * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
314         (const_all_ones_operand): Likewise.
315         (uns_small_int_operand): Remove const_double and code conditionalized
316         on HOST_BITS_PER_WIDE_INT == 32.
317         (arith_double_operand): Likewise.
318         (arith_double_add_operand): Likewise.
319         (input_operand): Remove support for CONST_DOUBLE with DImode.
320         * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
321         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
322         (DFmode CONST_DOUBLE splitter): Likewise.
323         (*adddi3_insn_sp32): Likewise.
324         (*subdi3_insn_sp32): Likewise.
325         (DImode logical splitter): Likewise.
326         (DImode CONST_DOUBLE splitter): Delete.
328 2015-12-12  Paolo Bonzini  <bonzini@gnu.org>
330         PR sanitizer/68418
331         * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
332         sanitization of left shifts for wrapping signed types as well.
334 2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
336         PR middle-end/68215
337         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
338         Do not gimplify the result.
339         (do_unop): Adjust call to tree_vec_extract.
340         (do_binop): Likewise.
341         (do_compare): Likewise.
342         (do_plus_minus): Likewise.
343         (do_negate): Likewise.
344         (expand_vector_condition): Likewise.
345         (do_cond): Likewise.
347 2015-12-11  Nathan Sidwell  <nathan@acm.org>
349         * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
350         (OUTGOING_ARG_POINTER_REGNUM): Delete.
351         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
352         (REGISTER_NAMES): Name static chain regs.
353         * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
354         ifs.
355         (nvptx_incoming_arg): Merge ifs.
356         (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
357         (nvptx_function_value): Tail call nvptx_libcall_value.
358         (nvptx_pass_by_reference): Add ARG_UNUSED.
359         (nvptx_static_chain): Use conditional op.
360         (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
362 2015-12-11  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
363             Dominique d'Humieres  <dominiq@lps.ens.fr>
365         PR target/26427
366         PR target/33120
367         PR testsuite/35710
368         * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
369         trailing whitespace.
371 2015-12-11  Jan Beulich  <jbeulich@suse.com>
373         * cfgexpand.c (expand_one_var): Exit early for static and
374         external variables when adjusting stack alignment related.
376 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
378         * config/s390/s390.c (s390_rtx_costs)
379         (s390_cannot_force_const_mem, legitimate_pic_operand_p)
380         (s390_preferred_reload_class, s390_reload_symref_address)
381         (legitimate_reload_constant_p, print_operand): Wide int support.
382         * config/s390/predicates.md ("const0_operand", "constm1_operand")
383         ("consttable_operand"): Likewise.
384         ("larl_operand"): Add a comment.
385         * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
386         support.
388 2015-12-11  Nathan Sidwell  <nathan@acm.org>
390         * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
391         * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
392         unrecognizable RTX.
394 2015-12-11  Tom de Vries  <tom@codesourcery.com>
396         * passes.def: Remove unpaired TERMINATE_PASS_LIST.
398 2015-12-11  Michael Matz  <matz@suse.de>
400         * hash-map.h (hash_map::hash_map): Gather statistics only
401         when GATHER_STATISTICS is true.
402         * hash-set.h (hash_set::hash_set): Ditto.
403         * hash-table.h (hash_table::hash_table): Ditto.
404         (hash_table::create_ggc): Ditto.
406 2015-12-11  Martin Jambor  <mjambor@suse.cz>
408         PR ipa/68064
409         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
410         assert that align is nonzero.
412 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
414         * config/s390/s390.c (s390_expand_setmem): Use new expanders.
415         * config/s390/s390.md ("*setmem_long")
416         ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
417         ("*setmem_long_and_31z"): New define_insn.
418         ("setmem_long_<P:mode>"): New expanders.
419         * (<modesize>): New mode attribute
421 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
423         * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
424         ("movstr<P:mode>"): New indirect expanders used by "movstr".
426 2015-12-11  Martin Liska  <mliska@suse.cz>
427             Uros Bizjak  <ubizjak@gmail.com>
429         PR target/67484
430         * config/i386/i386.c (ix86_valid_target_attribute_tree):
431         Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
432         opts->x_ix86_tune_string.
434 2015-12-11  Richard Biener  <rguenther@suse.de>
436         * lto-streamer.h (lto_simple_header_with_strings): Remove
437         main_size field already in lto_simple_header.
439 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
441         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
442         mask vectype.
444 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
446         * config/i386/i386.c (ix86_get_mask_mode): Use scalar
447         modes for 32 and 16 byte boolean vectors when possible.
449 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
451         PR rtl-optimization/67778
452         PR rtl-optimization/68634
453         * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
454         to put the prologue earlier.  When determining if an earlier block is
455         suitable, make sure it dominates every block reachable from it.
457 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
459         PR rtl-optimization/68814
460         * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
461         BYTES_BIG_ENDIAN.
463 2015-12-10  Nathan Sidwell  <nathan@acm.org>
465         * config/nvptx/nvptx.c (nvptx_function_arg,
466         nvptx_function_incoming_arg, nvptx_function_arg_advance,
467         nvptx_strict_argument_naming, nvptx_function_arg_boundary,
468         nvptx_libcall_value, nvptx_function_value,
469         nvptx_function_value_regno_p, nvptx_pass_by_reference,
470         nvptx_return_in_memory, nvptx_promote_function_mode,
471         nvptx_static_chain): Move earlier.
472         (write_one_arg): Break out as helper fn for ...
473         (write_arg): ... this new function.  Adjust all callers.
475 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
477         * lto-streamer-out.c (wrap_refs): Only wrap public decls.
479 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
481         * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
482         (good_cloning_opportunity_p): Likewise.
483         (gather_context_independent_values): Do not return true when
484         polymorphic call context is known or when we have known aggregate
485         value of unused parameter.
486         (estimate_local_effects): Try to create clone for all context
487         when either some params are substituted or devirtualization is possible
488         or some params can be removed; use local flag instead of
489         node->will_be_removed_from_program_if_no_direct_calls_p.
490         (identify_dead_nodes): Likewise.
492 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
494         * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
495         list.
496         (-Wmisleading-indentation): Update documentation to reflect
497         being enabled by -Wall in C/C++.
499 2015-12-10  Vladimir Makarov  <vmakarov@redhat.com>
501         PR rtl-optimization/68691
502         * lra-spills.c (lra_final_code_change): Check pseudo occurrence
503         number in non-debug insns and remove debug insns if necessary.
505 2015-12-10  Martin Sebor  <msebor@redhat.com>
507         * invoke.texi (Warning Options): Update -Wall options.  Clarify
508         when some -Wextra options are enabled.  Add -Wplacement-new example.
510 2015-12-10  Uros Bizjak  <ubizjak@gmail.com>
512         * graphite-scop-detection.c (gather_bbs::before_dom_children):
513         Change return type to an edge.  Always return NULL.
515 2015-12-10  Jeff Law  <law@redhat.com>
517         PR tree-optimization/68619
518         * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
519         return value from optimize_stmt.
520         (dom_opt_dom_walker): Add new argument to dom_walker constructor.
521         (pass_dominator:execute): If a block has an unreachable edge,
522         remove all jump threads through any successor of the affected block.
523         (record_equivalences_from_phis): Ignore alternative if the edge
524         does not have EDGE_EXECUTABLE set.
525         (single_incoming_edge_ignoring_loop_edges): Similarly.
526         (optimize_stmt): If a gimple_code has a compile-time constant
527         condition, return the edge taken for that constant value.  Also
528         change the condition to true/false as necessary.
529         * domwalk.h (dom_walker::dom_walker): Add new argument
530         skip_unreachable_blocks.  Don't provide empty constructor body.
531         (dom_walker::before_dom_children): Change return type.
532         (dom_walker::bb_reachable): Declare new private method.
533         (dom_walker::propagate_unreachable_to_edges): Likewise.
534         (dom_walker::m_unreachable_dom): Declare new private data member.
535         (dom_walker::m_skip_unreachable_blocks): Likewise.
536         * domwalk.c: Include dumpfile.h.
537         (dom_walker::dom_walker): New constructor.  Initialize private data
538         members.  If needed, set EDGE_EXECUTABLE for all edges in the CFG,
539         extracted from tree-ssa-sccvn.c.
540         (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
541         (dom_walker::propagate_unreachable_to_edges): Likewise.
542         (dom_walker::walk): Only call before_dom_children on reachable
543         blocks.  If before_dom_children returns an edge, then clear
544         EDGE_EXECUTABLE for all other outgoing edges from the same block.
545         For unreachable blocks, call propagate_unreachable_to_edges.
546         Similarly, only call after_dom_children on reachable blocks.  For
547         unreachable blocks, conditionally clear m_unreachable_dom.
548         * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
549         private data member.
550         (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
551         class.
552         (run_scc_vn): Likewise.
553         (sccvn_dom_walker::before_dom_children): Likewise.  Return the taken
554         outgoing edge if a COND, SWITCH, or GOTO are optimized.
555         * compare-elim.c (find_comparison_dom_walker::before_dom_children):
556         Change return type to an edge.  Always return NULL.
557         * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
558         * gimple-ssa-strength-reduction.c
559         (find_candidates_dom_walker::before_dom_children): Likewise.
560         * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
561         (ipcp_modif_dom_walker::before_dom_children): Likewise.
562         * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
563         (rewrite_update_dom_walker::before_dom_children): Likewise.
564         (mark_def_dom_children::before_dom_children): Likewise.
565         * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
566         * tree-ssa-loop-im.c
567         (invariantness_dom_walker::before_dom_children): Likewise.
568         (move_computations_dom_walker::before_dom_walker): Likewise.
569         * tree-ssa-phiopt.c
570         (nontrapping_dom_walker::before_dom_children): Likewise.
571         * tree-ssa-pre.c
572         (eliminate_dom_walker::before_dom_children): Likewise.
573         * tree-ssa-propagate.c
574         (substitute_and_fold_dom_walker::before_dom_children): Likewise.
575         * tree-ssa-strlen.c
576         (strlen_dom_walker::before_dom_children): Likewise.
577         * tree-ssa-uncprop.c
578         (uncprop_dom_walker::before_dom_children): Likewise.
580 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
582         PR rtl-optimization/68376
583         PR rtl-optimization/68670
584         * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
585         or > -1 conditions regardless of negate, and disallow
586         all other conditions.
588 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
590         * tree-chkp.c (chkp_call_returns_bounds_p): Return true
591         for VA_ARG call.
592         (chkp_fixup_inlined_call): New.
593         * tree-chkp.h (chkp_fixup_inlined_call): New.
594         * tree-stdarg.c: Include tree-chkp.h.
595         (expand_ifn_va_arg_1): Fixup bndret calls for removed
596         VA_ARG calls.
598 2015-12-10  Martin Jambor  <mjambor@suse.cz>
600         * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
601         (replace_locals_op): Duplicate gimple sequences in OMP clauses.
603 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
605         * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
607 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
609         * ifcvt.c (noce_try_inverse_constants): Fix indentation.
611 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
613         * regrename.c (scan_rtx_address): Fix indentation.
615 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
617         * function.c (locate_and_pad_parm): Fix indentation.
619 2015-12-10  Richard Biener  <rguenther@suse.de>
621         * tree-ssa-structalias.c (struct variable_info): Add
622         is_ipa_escape_point flag.
623         (new_var_info): Initialize to false.
624         (find_func_aliases): Generate escape constraints for stores
625         properly in IPA mode.
626         (ipa_pta_execute): Compute is_ipa_escape_point for globals.
628 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
630         * config/arc/atomic.md: Add new file.
632 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
634         * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
635         (arc_split_compare_and_swap): Likewise.
636         (arc_expand_compare_and_swap): Likewise.
637         * config/arc/arc.c (arc_init): Check usage atomic option.
638         (arc_pre_atomic_barrier): New function.
639         (arc_post_atomic_barrier): Likewise.
640         (emit_unlikely_jump): Likewise.
641         (arc_expand_compare_and_swap_qh): Likewise.
642         (arc_expand_compare_and_swap): Likewise.
643         (arc_split_compare_and_swap): Likewise.
644         (arc_expand_atomic_op): Likewise.
645         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
646         (ASM_SPEC): Enable mlock option when matomic is used.
647         * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
648         (VUNSPEC_ARC_CAS): Likewise.
649         (VUNSPEC_ARC_LL): Likewise.
650         (VUNSPEC_ARC_SC): Likewise.
651         (VUNSPEC_ARC_EX): Likewise.
652         * config/arc/arc.opt (matomic): New option.
653         * config/arc/constraints.md (ATO): New constraint.
654         * config/arc/predicates.md (mem_noofs_operand): New predicate.
655         * doc/invoke.texi: Document -matomic.
656         * config/arc/atomic.md: New file.
658 2015-12-10  Richard Biener  <rguenther@suse.de>
660         PR tree-optimization/68817
661         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
662         gaps early.
664 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
666         * tree-vect-stmts.c (vectorizable_assignment): Support
667         useless boolean conversion.
669 2015-12-10  Alan Lawrence  <alan.lawrence@arm.com>
671         * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
673 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
675         PR tree-optimization/68785
676         * gimple-fold.c (fold_ctor_reference): Pass return value from
677         native_encode_expr to native_interpret_expr.
678         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
680 2015-12-10  Richard Biener  <rguenther@suse.de>
682         PR ipa/68331
683         * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
684         parameter and make vars_contains_nonlocal properly have
685         function-scope semantics in IPA mode.
686         (find_what_var_points_to): Add fndecl parameter.
687         (find_what_p_points_to): Likewise.
688         (pt_solution_includes_global): Remove IPA PTA early out.
689         (compute_points_to_sets): Adjust.
690         (ipa_pta_execute): Likewise.  Clear final_solutions after
691         each function.
693 2015-12-10  Tom de Vries  <tom@codesourcery.com>
695         PR ada/65102
696         * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
697         ifdef to allow disabling default @node GNU Free Documentation License.
699 2015-12-10  Richard Biener  <rguenther@suse.de>
701         * tree-ssa-structalias.c (create_function_info_for): Add missing
702         constraint from nonlocal for DECL_RESULT.
704 2015-12-10  Richard Biener  <rguenther@suse.de>
706         * tree-if-conv.c: Include params.h.
707         (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
708         instead of flag_tree_loop_if_convert_stores to guard cases
709         we'd introduce store-data-races.
711 2015-12-10  Richard Biener  <rguenther@suse.de>
713         PR ipa/68721
714         * ipa-split.c (split_function): Record return value properly
715         when the split part doesn't set it.
717 2015-12-10  Richard Biener  <rguenther@suse.de>
719         PR tree-optimization/68806
720         * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
721         reduction chains and ignore SLP reductions.
723 2015-12-10  Richard Biener  <rguenther@suse.de>
725         * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
726         dependences.
727         (if_convertible_loop_p): Adjust.
729 2015-12-10  Tom de Vries  <tom@codesourcery.com>
731         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
732         invalid assert.
734 2015-12-10  Martin Liska  <mliska@suse.cz>
736         * tree-vect-data-refs.c: Free an overwritten dataref.
738 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
740         PR target/68729
741         * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
742         consistent with modes of the input and output operands when doing
743         reloads to and from floating point registers.  Do reload for all
744         address forms.
746 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
748         PR ipa/61886
749         PR middle-end/25140
750         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
751         (nonoverlapping_component_refs_of_decl_p): Update sanity check.
752         (decl_refs_may_alias_p): Use compare_base_decls.
753         * alias.c: Include cgraph.h
754         (get_alias_set): Add cut-off for recursion.
755         (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
756         (compare_base_decls): New function.
757         (base_alias_check): Likewise.
758         (memrefs_conflict_p): Likewise.
759         (nonoverlapping_memrefs_p): Likewise.
760         * alias.h (compare_base_decls): Declare.
762 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
764         PR ipa/61886
765         * ipa-visibility.c (function_and_variable_visibility): Fix vtable
766         rewritting guard.
768 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
770         PR ipa/61886
771         PR middle-end/25140
772         * ipa-reference.c (ipa_reference_get_not_read_global,
773         ipa_reference_get_not_read_global): Fix WRT aliases.
774         (is_improper): Break out from ...
775         (is_proper_for_analysis): ... here; fix WRT aliases.
776         (analyze_function, generate_summary,
777         ipa_reference_write_optimization_summary,
778         ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
779         * ipa-refrence.h (ipa_reference_var_uid): New inline.
780         * tree-ssa-alias.c: Revert my accidental previous commit.
781         (ref_maybe_used_by_call_p_1,
782         call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
784 2015-12-09  Andreas Tobler  <andreast@gcc.gnu.org>
786         * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
788 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
789             Sebastian Pop  <s.pop@samsung.com>
791         * graphite-optimize-isl.c: Include isl/ast_build.h
792         (optimize_isl): Set several isl_options_set_* options.
794 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
795             Sebastian Pop  <s.pop@samsung.com>
797         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
798         the same order as adding data reference access functions.
800 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
801             Sebastian Pop  <s.pop@samsung.com>
803         * graphite-optimize-isl.c (optimize_isl): Improve dump message.
805 2015-12-09  Marek Polacek  <polacek@redhat.com>
807         PR tree-optimization/66949
808         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
809         single_non_singleton_phi_for_edges to get the PHI from
810         factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
811         (factor_out_conditional_conversion): Adjust declaration.  Make it
812         return the newly-created PHI.
814 2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>
816         * config/aarch64/aarch64-protos.h
817         (aarch64_cannot_change_mode_class): Bring back.
818         * config/aarch64/aarch64.c
819         (aarch64_cannot_change_mode_class): Likewise.
820         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
821         * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
822         zero_extract rather than truncate.
823         (aarch64_movdi_<mode>high): Likewise.
825 2015-12-09  Jakub Jelinek  <jakub@redhat.com>
827         PR tree-optimization/68786
828         * tree-if-conv.c: Include builtins.h.
829         (predicate_mem_writes): Put result of get_object_alignment (ref)
830         into second argument's value.
831         * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
832         pointer alignment into second argument's value.
833         * tree-data-ref.c (get_references_in_stmt): Use value of second
834         argument for build_aligned_type, and only the type to build
835         a zero second argument for MEM_REF.
836         * internal-fn.c (expand_mask_load_optab_fn,
837         expand_mask_store_optab_fn): Likewise.
839 2015-12-09  Richard Biener  <rguenther@suse.de>
841         PR tree-optimization/68583
842         * tree-if-conv.c (if_convertible_phi_p): Drop
843         flag_tree_loop_if_convert_stores check in favor of the
844         existing any_mask_load_store check.
845         (insert_gimplified_predicates): Likewise.
846         (combine_blocks): Likewise.
847         (tree_if_conversion): Likewise.
848         (ifcvt_memrefs_wont_trap): Properly check
849         flag_tree_loop_if_convert_stores in all places that can end
850         up introducing store-data-races.
851         (if_convertible_gimple_assign_stmt_p): Remove restriction
852         on flag_tree_loop_if_convert_stores for stores we can if-convert
853         without introducing store-data-races.  Force versioning for
854         all if-converted stores.
856 2015-12-09  Tom de Vries  <tom@codesourcery.com>
858         PR tree-optimization/68716
859         * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
860         BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
862 2015-12-09  Martin Liska  <mliska@suse.cz>
864         * hash-traits.h (struct typed_delete_remove): New function.
865         (typed_delete_remove ::remove): Likewise.
866         * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
867         auto_vec with vec.
868         (record_common_cand): Replace XNEW with operator new.
870 2015-12-09  Martin Liska  <mliska@suse.cz>
872         * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
874 2015-12-09  Martin Liska  <mliska@suse.cz>
876         PR ipa/68790
877         * ipa-icf.c (sem_function::param_used_p): Return true
878         if ipa_node_params_sum equals to NULL.
880 2015-12-09  Richard Biener  <rguenther@suse.de>
882         PR tree-optimization/68583
883         * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
884         flag and rename predicates to w_predicate, rw_predicate and
885         base_w_predicate.
886         (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
887         (DR_BASE_W_UNCONDITIONALLY): ... this.
888         (DR_W_UNCONDITIONALLY): Add.
889         (hash_memrefs_baserefs_and_store_DRs_read): Adjust.  Compute
890         unconditionally written separately from read or written.
891         (ifcvt_memrefs_wont_trap): Properly treat reads.
892         (ifcvt_could_trap_p): Inline ...
893         (if_convertible_gimple_assign_stmt_p): ... here.  Refactor
894         to avoid code duplication.
895         (if_convertible_loop_p_1): Adjust and properly initialize
896         predicates.
898 2015-12-09  Richard Biener  <rguenther@suse.de>
900         * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
901         if it was not yet set.
902         * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
903         overwrite an existing entry.
905 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
907         * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
908         * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
909         * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
911 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
913         PR ipa/61886
914         * symtab.c (symtab_node::equal_address_to): New parameter
915         MEMORY_ACCESSED.
916         * cgraph.h (symtab_node::equal_address_to): Update prototype.
918 2015-12-08  DJ Delorie  <dj@redhat.com>
920         * config/rx/rx.opt (-mjsr): Add.
921         * config/rx/predicates.md (rx_call_operand): Avoid overflowing
922         calls when -mjsr.
923         * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
924         overflowing jumps.
925         * doc/invoke.texi (-mjsr): Document it.
927 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
929         PR ipa/61886
930         * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
931         lto_symtab_prevailing_decl): MOve to lto-symtab.h.
932         * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
933         DECL_ABSTRACT_ORIGIN is not error_mark_node.
935 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
937         * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
939 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
941         * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
942         indentation.
944 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
946         PR ipa/61886
947         * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
948         into the boundary.
950 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
952         PR ipa/61886
953         * varpool.c (varpool_node::get_availability): Recurse only on
954         weakrefs with definition in the target.
955         (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
957 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
959         PR ipa/61886
960         * ipa-visibility.c (can_replace_by_local_alias): Look through
961         transparent aliases; refuse weakrefs.
962         (update_visibility_by_resolution_info): Skip transparent aliases in the
963         analysis part
965 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
967         PR ipa/61886
968         * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
969         (symtab_node::noninterposable_alias): Do not accept transparent
970         aliases.
972 2015-12-08  Nathan Sidwell  <nathan@acm.org>
974         * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
975         decl_offset, init_part, object_size, object_finished): Replace
976         with ...
977         (struct init_frag): ... this new struct variable.
978         (begin_decl_field, output_decl_chunk): Replace with ...
979         (output_init_frag): ... this new function.
980         (nvptx_assemble_value): Reimplement.
981         (nvptx_assemble_integer, nvptx_output_skip): Adjust.
982         (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
983         (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
985 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
987         PR middle-end/68291
988         PR middle-end/68292
989         * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
990         with BLKmode promoted mode based on RESULT_DECLs.
992 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
994         PR target/68701
995         * config/i386/i386.c (ix86_option_override_internal): Enable
996         -maccumulate-outgoing-args when %ebp is fixed due to stack
997         realignment requirements.
999 2015-12-08  Tom de Vries  <tom@codesourcery.com>
1001         PR tree-optimization/68640
1002         * omp-low.c (install_var_field): Clear the restrict qualifier on the var
1003         type.
1005 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
1007         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
1008         assembler to make source always 128bit.
1010 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
1012         PR c/48088
1013         PR c/68657
1014         * common.opt (Wframe-larger-than=): Add Warning.
1015         * opts.h (control_warning_option): Add ARG argument.
1016         * opts-common.c (cmdline_handle_error): New function.
1017         (read_cmdline_option): Use it.
1018         (control_warning_option): Likewise.  Add ARG argument.
1019         If non-NULL, decode it if needed and pass through
1020         to handle_generated_option.  Handle CLVC_ENUM like
1021         CLVC_BOOLEAN.
1022         * opts.c (common_handle_option): Adjust control_warning_option
1023         caller.
1024         (enable_warning_as_error): Likewise.
1026 2015-12-08  Matthew Wahab  <matthew.wahab@arm.com>
1028         * config/aarch64/aarch64-options-extensions.def: Remove
1029         AARCH64_FL_RDMA from "fp" and "simd".  Remove "pan", "lor",
1030         "rdma".
1031         * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
1032         (AARCH64_FL_LOR): Remove.
1033         (AARCH64_FL_RDMA): Remove.
1034         (AARCH64_FL_V8_1): New.
1035         (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
1036         and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1037         (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1038         * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
1039         section on -march=native.  Group descriptions of permitted
1040         architecture names together.  Expand description of
1041         -march=armv8.1-a.
1042         (AArch64 -mtune): Slightly rework section on -march=native.
1043         (AArch64 -mcpu): Slightly rework section on -march=native.
1044         (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
1045         State that -march=armv8.1-a enables "crc" and "lse".
1047 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
1049         * doc/invoke.texi (SPARC options): Fix typo.
1051 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
1053         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
1054         (output_probe_stack_range): Rotate the loop and simplify.
1056 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
1058         * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
1059         infinity filterning code.
1061 2015-12-08  Ilya Enkovich  <enkovich.gnu@gmail.com>
1063         PR tree-optimization/68766
1064         * tree-vectorizer.c (vectorize_loops): Check for
1065         if-converted loops when debug counters are used.
1067 2015-12-07  DJ Delorie  <dj@redhat.com>
1069         * config/rl78/constraints.md (Wfr): Change to be a non-memory
1070         constraint.
1071         * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
1072         * config/rl78/rl78.c (rl78_one_far_p): Define.
1073         * config/rl78/rl78-virt (movqi_virt): Fix far memory
1074         alternatives.
1075         (movhi_virt): Likewise.
1076         (zero_extendqihi2_virt): Likewise.
1077         (extendqihi2_virt): Likewise.
1078         (add<mode>3_virt): Likewise.
1079         (sub<mode>3_virt): Likewise.
1080         (andqi3_virt): Likewise.
1081         (iorqi3_virt): Likewise.
1082         (xorqi3_virt): Likewise.
1083         * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
1084         overflow in large files.
1086 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
1088         PR target/63668
1089         * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
1090         * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
1091         * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
1092         * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
1094 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
1096         * reorg.c (optimize_skip): Do not put frame related instructions
1097         in annulled delay slots.
1098         (steal_delay_list_from_target): Ditto.
1099         (fill_slots_from_thread): Ditto.
1101 2015-12-07  Evandro Menezes  <e.menezes@samsung.com>
1103         * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
1104         * config/aarch64/aarch64.md: Include "exynos-m1.md".
1105         * config/arm/arm.md: Likewise.
1106         * config/arm/exynos-m1.md: New file.
1108 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
1110         * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
1112 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1114         * config//nvptx/nvptx.c (write_return): New.
1115         (write_fn_proto, nvptx_declare_function_name): Call it.
1117 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
1119         PR ipa/61886
1120         * symtab.c (ultimate_transparent_alias_target): New inline function.
1121         (symbol_table::assembler_names_equal_p): New method; break out from ...
1122         (symbol_table::decl_assembler_name_equal): ... here.
1123         (symbol_table::change_decl_assembler_name): Also update names and
1124         translation links of transparent aliases.
1125         (symtab_node::dump_base): Dump transparent_alias.
1126         (symtab_node::verify_base): Implement basic transparent alias
1127         verification.
1128         (symtab_node::make_decl_local): Support localization of weakrefs;
1129         recurse to transparent aliases; set TREE_STATIC.
1130         (symtab_node::ultimate_alias_target_1): Handle visibility of
1131         transparent aliases.
1132         (symtab_node::resolve_alias): New parmaeter transparent; handle
1133         transparent aliases; recurse to aliases of aliases to fix comdat
1134         groups.
1135         (symtab_node::get_partitioning_class): Handle transparent aliases.
1136         * ipa-visibility.c (cgraph_externally_visible_p,
1137         varpool_node::externally_visible_p): Visibility of transparent alias
1138         depends on its target.
1139         (function_and_variable_visibility): Do not tweak visibility of
1140         transparent laiases.
1141         (function_and_variable_visibility): Likewise.
1142         * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1143         transparent_alias flag.
1144         * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1145         Support transparent aliases.
1146         * cgraph.h (symtab_node): Update prototype of resolve_alias;
1147         add transparent_alias flag.
1148         (symbol_table: Add assembler_names_equal_p.
1149         (symtab_node::real_symbol_p): Skip transparent aliases.
1150         * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1151         (handle_alias_pairs): Set transparent_alias for weakref.
1152         (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1153         aliases.
1154         * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1155         skip symbols not put into boundary; stream transparent_alias.
1156         (lto_output_varpool_node): Likewise.
1157         (input_overwrite_node, input_varpool_node): Stream transparent alias.
1158         * varpool.c (ctor_for_folding, varpool_node::get_availability,
1159         varpool_node::assemble_aliases,
1160         symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1161         (varpool_node::create_alias): Set transparent_alias.
1163 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
1165         PR middle-end/68291
1166         PR middle-end/68292
1167         * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1168         SSA names based on RESULT_DECLs.
1169         * function.c (expand_function_start): Do not create BLKmode REGs
1170         for GIMPLE registers when coalescing is enabled.
1172 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1174         * final.c (shorten_branches): Fix check for basic asm.
1175         * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1176         basic asm.
1178 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1180         * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1181         return call.
1183 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
1185         * pretty-print.c (text_info::set_range): Rename to...
1186         (text_info::set_location): ...this, converting 2nd param
1187         from source_range to a location_t.
1188         * pretty-print.h (text_info::set_location): Convert
1189         from inline function to external definition.
1190         (text_info::set_range): Delete.
1192 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1194         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1195         complex and vector types.  Cope with packed structs.
1197 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
1199         PR target/68627
1200         * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1201         Force destination to 512 bits register.
1203 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
1205         PR target/68633
1206         * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1207         (define_insn "kunpcksi"): Ditto.
1208         (define_insn "kunpckdi"): Ditto.
1210 2015-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1212         * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1214 2015-12-06  Victoria Stepanyan  <victoria.stepanyan@amd.com>
1216         * common/config/i386/i386-common.c
1217         (OPTION_MASK_ISA_CLZERO_SET): New.
1218         (ix86_handle_option): Handle clzero.
1219         * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1220         (x86_64-*-*): Likewise.
1221         * config/i386/clzerointrin.h: New header.
1222         * config/i386/cpuid.h (bit_CLZERO):  Define.
1223         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1224         CLZERO support.
1225         * config/i386/i386.opt (clzero): New.
1226         * config/i386/i386-c.c: Define __CLZERO__ if needed.
1227         * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1228         (PTA_CLZERO): New.
1229         (ix86_option_override_internal): Handle new option.
1230         (processor_alias_table): Added PTA_CLZERO.
1231         (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1232         (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1233         (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1234         IX86_BUILTIN_CLZERO  built-ins.
1235         * config/i386/i386.h (TARGET_CLZERO):  New.
1236         * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1237         (clzero):  New pattern.
1238         (clzero_<mode>): New pattern.
1239         * config/i386/x86intrin.h: Include clzerointrin.h.
1240         * doc/extend.texi: Document clzero builtins.
1241         * doc/invoke.texi: Document -mclzero option.
1243 2015-12-05  Jan Hubicka  <hubicka@ucw.cz>
1245         * ipa-icf.c (sem_function::merge): Check that local_original exists.
1247 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
1249         PR target/68609
1250         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1251         bool arguement.
1252         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1253         non-reciporcal path.
1254         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1255         (sqrt<mode>2): Replace define_insn with define_expand that may call
1256         rs6000_emit_swsqrt.
1258 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1259             Sebastian Pop  <s.pop@samsung.com>
1261         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1262         Improve debug.
1263         (get_rename_from_scev): Check that all the ops in an expression
1264         have their uses dominated by corresponding defs.
1266 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1267             Sebastian Pop  <s.pop@samsung.com>
1269         PR tree-optimization/68693
1270         * graphite-scop-detection.c (dot_all_sese): New
1271         (dot_all_scops_1): Renamed to dot_all_sese.
1272         (dot_all_scops): Removed.
1273         (dot_sese): New.
1274         (dot_cfg): New.
1275         (scop_detection::get_nearest_dom_with_single_entry): Check that
1276         preds are from different loop levels.
1277         (scop_detection::get_nearest_pdom_with_single_exit): Check that
1278         succs are from different loop levels.
1279         (scop_detection::print_sese): Inlined.
1280         (scop_detection::print_edge): New.
1281         (scop_detection::merge_sese): Added dumps.
1282         * graphite.h: Add declarations.
1284 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
1286         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1287         constraints.
1289 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
1291         PR rtl-optimization/68349
1292         * lra-eliminations.c (move_plus_up): New function.
1293         (lra_eliminate_regs_1): Use the function.
1295 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1297         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1298         (init_output_initializer): ... this.
1299         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1300         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1301         nvptx_assemble_decl_begin.
1303 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
1305         * sancov.c: New file.
1306         * Makefile.in (OBJS): Add sancov.o.
1307         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1308         * passes.def (sancov_pass): Add.
1309         * tree-pass.h  (sancov_pass): Add.
1310         * common.opt (-fsanitize-coverage=trace-pc): Add.
1311         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1312         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1313         flag_sanitize_coverage.
1315 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1317         PR middle-end/65958
1318         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1319         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1320         * config/arm/arm.md (probe_stack_range): Adjust.
1321         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1322         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1323         (probe_stack_range_<PTR:mode>): Adjust.
1325 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
1327         * convert.c (convert_to_real_1): When converting from a
1328         REAL_TYPE, preserve the location of EXPR in the result.
1329         * tree.c (get_pure_location): Make non-static.
1330         (set_source_range): Return the resulting location_t.
1331         (make_location): New function.
1332         * tree.h (get_pure_location): New decl.
1333         (get_finish): New inline function.
1334         (set_source_range): Convert return type from void to location_t.
1335         (make_location): New decl.
1337 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1339         PR c/68656
1340         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1341         input_location to inform.
1342         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1343         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1344         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1346 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
1348         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1349         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1350         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1351         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1352         comdat and non-comdat.
1353         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1354         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1355         and icf_merged.
1357 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
1359         * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1360         instead of register_operand.  Remove empty constraints.  Use std::swap.
1361         (cstore_si_as_di, cstore<mode>4_signed_imm,
1362         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1363         gpc_reg_operand instead of register_operand.
1364         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1365         register_operand.  Remove empty constraints.
1367 2015-12-04  Nick Clifton  <nickc@redhat.com>
1369         * config.gcc (extra_gcc_objs): Define for MSP430.
1370         * common/config/msp430/msp430-common.c (msp430_handle_option):
1371         Pass both -mmcu and -mcpu on to the back end if they are both defined.
1372         * config/msp430/msp430.c (hwmult_name): New function.
1373         (msp430_option_override): If an unrecognised MCU name is
1374         detected only warn if the user has not provided suitable
1375         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
1376         warning messages.  Generate warnings about conflicts between
1377         -mmcu and -mcpu and -mhwmult options.
1378         If neither -mcpu nor -mmcu have been specified but -mhwmult=
1379         f5series has the select the 430X isa.
1380         (msp430_no_hwmult): If -mmcu has not been specified and
1381         msp430_hwmult_type is AUTO then return true.
1382         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1383         (LIB_SPEC): Add hardware multiply library selection.
1384         * config/msp430/t-msp430: Delete hardware multiply multilibs.
1385         Add rule to build driver-msp430.o
1386         * config/msp430/driver-msp430.c: New file.
1387         * config/msp430/msp430.opt (warn-mcu): New option.
1388         * doc/invoke.texi: Update description of -mhwmult=auto.
1389         Document -mwarn-mcu option.
1391 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
1393         * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1394         (cstore<mode>4): Call it.
1396 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1398         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1400         PR tree-optimization/68680
1401         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1402         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
1403         by name.
1405         PR tree-optimization/68671
1406         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1407         blocks starting with the successor of first bb we've modified
1408         and ending with last_bb call reset_flow_sensitive_info_in_bb.
1410 2015-12-04  Jeff Law  <law@redhat.com>
1412         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1413         indicating if a gimple conditional was optimized to true/false.
1414         (reassociate_bb): Bubble up return value from
1415         maybe_optimize_range_tests.
1416         (do_reassoc): Similarly, but for reassociate_bb.
1417         (execute_reassoc): Return TODO_cleanup_cfg as needed.
1419 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1421         * config/aarch64/aarch64.c (aarch64_override_options_internal):
1422         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1423         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1424         does not affect the assembler directives.
1426 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1428         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
1429         emit .machine and .machinemode to the top of the assembler file.
1430         (TARGET_ASM_FILE_START): Provide target hook.
1431         (s390_asm_output_machine_for_arch): Protect with
1432         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
1434 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1436         * config/s390/s390.opt (s390_arch_string): Remove.
1437         (s390_tune_string): Likewise.
1438         (s390_cost_pointer): Add Variable.
1439         (s390_tune_flags): Add TargetVariable.
1440         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
1441         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
1442         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
1443         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
1444         (mwarn-framesize=): Save option.
1445         (mno-stack-guard, mno-stack-guard): New option.
1446         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
1447         (mwarn-framesize=): Convert to UInteger (negative values are rejected
1448         now).
1449         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
1450         macros changeable through the GCC target pragma into a separate
1451         function.
1452         (s390_cpu_cpp_builtins): Likewise.
1453         (s390_pragma_target_parse): New function, implement GCC target pragma
1454         if enabled.
1455         (s390_register_target_pragmas): Register s390_pragma_target_parse if
1456         available.
1457         * common/config/s390/s390-common.c (s390_handle_option):
1458         Export.
1459         Move setting s390_arch_flags to s390.c.
1460         Remove s390_tune_flags.
1461         Allow 0 as argument to -mstack-size (switch to default value).
1462         Allow 0 as argument to -mstack-guard (switch off).
1463         Remove now unnecessary explicit parsing code for -mwarn-framesize.
1464         * config/s390/s390-protos.h (s390_handle_option): Export.
1465         (s390_valid_target_attribute_tree): Export.
1466         (s390_reset_previous_fndecl): Export.
1467         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
1468         and end of HTM and VX builtins.
1469         (s390_asm_output_function_prefix): Declare hook.
1470         (s390_asm_declare_function_size): Likewise.
1471         * config/s390/s390-builtins.h (B_GROUP): Use macro.
1472         * config/s390/s390-opts.h: Add comment about processor_type usage.
1473         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
1474         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
1475         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
1476         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
1477         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
1478         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
1479         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
1480         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
1481         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
1482         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
1483         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
1484         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
1485         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
1486         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
1487         undefined.
1488         (vec_all_nan): Rewrite as macro using statement expressions to avoid
1489         that the vector keyword needs to be defined when including the file.
1490         (vec_all_numeric): Likewise.
1491         (vec_any_nan): Likewise.
1492         (vec_any_numeric):  Likewise.
1493         * config/s390/s390.c (s390_previous_fndecl): New static variable.
1494         (s390_set_current_function): New function.
1495         (s390_cost): Wrapper macro to allow defining the cost table pointer in
1496         the options file.
1497         (processor_table): Table for march= and mtune= parsing.
1498         (s390_init_builtins): Enable all builtins and types unconditionally.
1499         (s390_expand_builtin): Generate an error message if builtin is not
1500         supported by current options.
1501         Correct an error message.
1502         (s390_function_specific_restore): New function to set s390_cost.
1503         (s390_asm_output_machine_for_arch): New function for emitting .machine
1504         and .machinmode directives to the assembler file.
1505         (s390_asm_output_function_prefix): Likewise.
1506         (s390_asm_declare_function_size):  Likewise.
1507         (s390_asm_output_function_label): Add mdebug output for feature testing.
1508         (s390_option_override): Move implementation into internal function.
1509         (s390_option_override_internal): Likewise.
1510         Implement option overriding based on current options.
1511         (s390_valid_target_attribute_inner_p): New function implementing target
1512         attribute logic.
1513         (s390_valid_target_attribute_tree): Likewise.
1514         (s390_valid_target_attribute_p): Likewise.
1515         (s390_reset_previous_fndecl): Likewise.
1516         (s390_set_current_function): Likewise.
1517         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
1518         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
1519         (TARGET_OPTION_RESTORE): Likewise.
1520         * doc/extend.texi: S390: Document target attribute and pragma.
1521         * config.in: Regenerated.
1522         * configure: Regenerated.
1523         * configure.ac: S390: Check for .machinemode and .machine in gas.
1524         S390: Check for architecture modifiers support in gas.
1526 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
1528         * doc/extend.texi ("simd"): Describe new flags.
1530 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
1532         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
1533         operand checked for alignment.
1535 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1537         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
1538         emission too. Change 'no_arg_types' to 'prototyped'.
1539         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
1540         main.
1541         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
1543 2015-12-04  Richard Biener  <rguenther@suse.de>
1545         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
1546         member and initialize it.
1547         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
1548         if necessary.
1549         (sccvn_dom_walker::before_dom_children): If unreachable_dom
1550         is set BB is not reachable either.  Set unreachable_dom
1551         if not set and BB is unreachable.
1553 2015-12-04  Richard Biener  <rguenther@suse.de>
1555         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
1556         query with GATHER_STATISTICS.
1558 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1560         PR middle-end/65958
1561         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
1562         fields, add keep_stack and reorder them.
1563         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
1564         set it to false.  Do not insert a stack save/restore pair if it has
1565         been set to true by the gimplification of the statements.
1566         Restore it to the saved value on exit if it is still false.
1567         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
1568         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
1569         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
1570         * doc/extend.texi (Variable Length): Document new behavior.
1571         * doc/generic.texi (Blocks): Document new handling of VLAs.
1573 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1574             Tristan Gingold  <gingold@adacore.com>
1576         PR middle-end/65958
1577         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
1578         Declare.
1579         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
1580         UNSPEC_PROBE_STACK_RANGE.
1581         (blockage): New instruction.
1582         (probe_stack_range_<PTR:mode>): Likewise.
1583         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
1584         function.
1585         (aarch64_output_probe_stack_range): Likewise.
1586         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
1587         static builtin stack checking is enabled.
1588         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
1589         Define to 1.
1591 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1593         PR target/68214
1594         * config/arm/arm.md (*call_mem): Delete pattern.
1595         (*call_value_mem): Likewise.
1596         * config/arm/arm.c (output_call_mem): Delete.
1597         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
1599 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
1601         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
1602         aarch64_sync_memory_operand.
1604 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1606         PR target/68655
1607         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
1608         (expand_vec_perm_1): Use it and recurse if everything else
1609         failed.  Use nd.perm instead of perm2.
1610         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
1611         instead of gen_lowpart for the target.
1612         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
1613         and recurse if everything else failed.
1615 2015-12-04  Richard Biener  <rguenther@suse.de>
1617         PR middle-end/68636
1618         * builtins.c (get_pointer_alignment_1): Take care of byte to
1619         bit alignment computation overflow.
1621 2015-12-04  Richard Biener  <rguenther@suse.de>
1623         PR middle-end/67438
1624         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
1625         a constant with single_use.
1627 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
1628             Jiong Wang  <jiong.wang@arm.com>
1630         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
1631         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
1633 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
1635         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
1636         Add short circuit for !flag_strict_aliasing
1637         (get_alias_set): Remove flag_strict_aliasing check.
1638         (new_alias_set): Likewise.
1640 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
1642         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
1643         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
1644         (exynosm1_regmove_cost): Likewise.
1645         (exynosm1_vector_cost): Likewise.
1646         (exynosm1_tunings): Likewise.
1647         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
1648         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
1650 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
1651             Richard Biener  <richard.guenther@gmail.com>
1653         * cfgexpand.c (pass_expand::execute): Replace call to
1654         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
1655         * tree-ssa.c (delete_tree_ssa): Likewise.
1656         * function.c (set_cfun): Call redirect_edge_var_map_empty.
1657         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
1658         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
1659         (redirect_edge_var_map_empty): New.
1660         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
1661         (redirect_edge_var_map_empty): New.
1663 2015-12-03  Jeff Law  <law@redhat.com>
1665         PR tree-optimization/68599
1666         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
1667         in call to loop_optimizer_init.
1668         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
1669         optimization to drop the assumptions/infinite notations if
1670         the loop has a single exit.
1672 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1674         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
1675         the pattern cannot FAIL.
1676         (vec_store_lanes@var{m}@var{n}): Likewise.
1677         (maskload@var{m}@var{n}): Likewise.
1678         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
1679         in the name of the pattern.
1680         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
1681         floating-point mode and that all operands have that mode.
1682         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
1683         pattern cannot FAIL.
1684         (sqrt@var{m}2): Document that mode m must be a scalar or vector
1685         floating-point mode, that all operands have that mode, and that
1686         the patterns cannot FAIL.  Remove previous documentation referring
1687         to @code{double} and @code{float}.
1688         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
1689         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
1690         (copysign@var{m}3): Likewise.
1691         (exp@var{m}2): Likewise.  Explicitly state the base.
1692         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
1693         (btrunc@var{m}2, rint@var{m}2): Likewise.
1694         (round@var{m}2): Likewise.  Fix incorrect description of rounding
1695         effect.
1696         (ceil@var{m}2): As for round@var{m}2.
1697         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
1698         the instruction must not raise an inexact condition.
1699         (scalb@var{m}3): Document previously-undocumented pattern
1700         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
1701         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
1702         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
1703         (significand@var{m}2): Likewise.
1704         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
1705         mode m and operand 0 is defined more freely.  Document that @var{m}
1706         can be a scalar or vector integer mode and that the pattern is not
1707         allowed to FAIL.
1708         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
1709         (clrsb@var{m}2): Likewise, except that the description of the
1710         mode was missing in this case.
1712 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1714         * internal-fn.def (RSQRT): New function.
1715         * optabs.def (rsqrt_optab): New optab.
1716         * doc/md.texi (rsqrtM2): Document.
1717         * target.def (builtin_reciprocal): Replace gcall argument with
1718         a function decl.  Restrict hook to machine functions.
1719         * doc/tm.texi: Regenerate.
1720         * targhooks.h (default_builtin_reciprocal): Update prototype.
1721         * targhooks.c (default_builtin_reciprocal): Likewise.
1722         * tree-ssa-math-opts.c: Include internal-fn.h.
1723         (internal_fn_reciprocal): New function.
1724         (pass_cse_reciprocals::execute): Call it, and build a call to an
1725         internal function on success.  Only call targetm.builtin_reciprocal
1726         for machine functions.
1727         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1728         second argument.
1729         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1730         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1731         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1732         machine functions.
1733         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1734         (aarch64_builtin_reciprocal): Replace gcall argument with a
1735         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
1736         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
1737         (aarch64_optab_supported_p): New function.
1738         (TARGET_OPTAB_SUPPORTED_P): Define.
1739         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1740         (rsqrt<mode>2): ...this.
1741         * config/i386/i386.c (use_rsqrt_p): New function.
1742         (ix86_builtin_reciprocal): Replace gcall argument with a
1743         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
1744         check.  Only handle machine functions.
1745         (ix86_optab_supported_p): Handle rsqrt_optab.
1746         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1747         (rs6000_builtin_reciprocal): Replace gcall argument with a
1748         function decl.  Remove optimize_insn_for_size_p check.
1749         Only handle machine functions.
1750         (rs6000_optab_supported_p): New function.
1752 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
1754         PR target/68471
1755         PR target/68472
1756         * config/i386/i386.c (ix86_mitigate_rop): Don't call
1757         compute_bb_for_insn again.  Call df_insn_rescan_all.
1758         * config/i386/i386.md (set_got_rex64): Override modrm_class.
1760         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1762 2015-12-03  Nathan Sidwell  <nathan@acm.org>
1764         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1765         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1766         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1767         (nvptx_option_override): Set data ares for worker vars.
1768         (nvptx_addr_space_from_sym): Delete.
1769         (nvptx_encode_section_info): New.
1770         (section_for_sym, section_for_decl): New.
1771         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1772         (nvptx_section_from_addr_space): Delete.
1773         (nvptx_section_for_decl): Delete.
1774         (nvptx_output_aligned, nvptx_declare_object_name,
1775         nvptx_assemble_undefined_decl): Use section_for_decl, remove
1776         unnecessary checks.
1777         (nvptx_print_operand): Add 'D', adjust 'A'.
1778         (nvptx_expand_worker_addr): Adjust unspec generation.
1779         (TARGET_ENCODE_SECTION_INFO): Override.
1780         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1781         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1782         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1783         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1784         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1785         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1786         (UNSPEC_TO_GENERIC): New.
1787         (nvptx_register_or_symbolic_operand): Delete.
1788         (cvt_code, cvt_name, cvt_str): Delete.
1789         (convaddr_<cvt_name><mode> [P]): Delete.
1790         (convaddr_<mode> [P]): New.
1792 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1794         PR rtl-optimization/68624
1795         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1796         blocks if they exist and simplify the logic choosing the order to emit
1797         them in.
1799 2015-12-03  Richard Biener  <rguenther@suse.de>
1801         PR tree-optimization/66051
1802         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1803         on load group size.  Do not pass in vectorization_factor.
1804         (vect_transform_slp_perm_load): Do not require any permute support.
1805         (vect_build_slp_tree): Do not pass in vectorization factor.
1806         (vect_analyze_slp_instance): Do not compute vectorization
1807         factor estimate.  Use vector size instead of vectorization factor
1808         estimate to split store groups for BB vectorization.
1810 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
1812         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1813         DECL as return value is allowed to have NULL bounds.
1815 2015-12-03  Tom de Vries  <tom@codesourcery.com>
1817         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1818         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1819         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1821 2015-12-03  Richard Biener  <rguenther@suse.de>
1823         PR tree-optimization/67800
1824         PR tree-optimization/68333
1825         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1826         restriction to reduction contexts but allow SLP reductions as well.
1827         (vect_recog_sad_pattern): Likewise.
1828         (vect_recog_widen_sum_pattern): Likewise.
1830 2015-12-03  Richard Biener  <rguenther@suse.de>
1832         PR tree-optimization/68639
1833         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1834         belonging to different loops.
1835         (vect_analyze_data_ref_accesses): Likewise.
1837 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1839         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1840         Remove "prefix_extra".
1841         (define_insn "vec_extract_hi_<mode>_mask"): New.
1842         (define_insn "vec_extract_hi_<mode>"): Remove masking.
1844 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1846         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1847         (propagate_pure_const): Use it; fix comments and optimize loops.
1849 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1851         * ipa-pure-const.c (ignore_edge): Rename to ...
1852         (ignore_edge_for_nothrow) ... this one; also ignore eges to
1853         interposable functions or ones that can not throw.
1854         (propagate_nothrow): Fix handling of availability.
1856 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1858         PR ipa/68184
1859         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1861 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1862             Sebastian Pop  <s.pop@samsung.com>
1864         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1865         isl_ast_op_zdiv_r.
1866         (gcc_expression_from_isl_expr_op): Same.
1868 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1869             Sebastian Pop  <s.pop@samsung.com>
1871         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1872         that insertion point is still in the region.
1874 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1875             Sebastian Pop  <s.pop@samsung.com>
1877         PR tree-optimization/68550
1878         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1879         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1880         statements.
1882 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1884         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1885         * configure: Regenerate.
1886         * config.in: Regenerate.
1887         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1888         function.
1889         (rs6000_output_function_prologue): Use it instead of checking
1890         cfun->machine->r2_setup_needed.  Use internal labels instead of
1891         GNU as local label extension.  Handle ELFv2 large code model.
1892         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1893         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1895 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1897         PR target/68647
1898         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1899         New functions.
1900         (expand_unop): Use them.
1902 2015-12-02  Marek Polacek  <polacek@redhat.com>
1904         PR c++/68653
1905         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1907 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1909         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
1910         SHUFFLE defines.
1911         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1913 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1914             Sebastian Pop  <s.pop@samsung.com>
1916         * graphite-dependences.c (scop_get_reads): Add extra dumps.
1917         (scop_get_must_writes): Same.
1918         (scop_get_may_writes): Same.
1919         (compute_deps): Same.
1920         * graphite-sese-to-poly.c (bounds_are_valid): New.
1921         (pdr_add_data_dimensions): Call bounds_are_valid.
1923 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1924             Sebastian Pop  <s.pop@samsung.com>
1926         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1927         * graphite-poly.c (apply_poly_transforms): Same.
1928         * graphite.c (gate_graphite_transforms): Same.
1929         * toplev.c (process_options): Same.
1931 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1933         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1934         (mips_output_probe_stack_range): Rotate the loop and simplify.
1936 2015-12-02  David Sherwood  <david.sherwood@arm.com>
1938         * config/aarch64/aarch64.md: New pattern.
1939         * config/aarch64/aarch64-simd.md: Likewise.
1940         * config/aarch64/iterators.md: New unspecs, iterators.
1942 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1944         * dwarf2out.c (dwar2out_var_location): In addition to notes,
1945         process indirect calls whose target is compile-time known.
1946         Enhance pattern matching to get the SYMBOL_REF they embed.
1947         (gen_subprogram_die): Handle such calls.
1948         * final.c (final_scan_insn): For call instructions, invoke the
1949         var_location debug hook only after the call has been emitted.
1951 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1953         * gimplify.c (enum gimplify_omp_var_data): Add enum value
1954         GOVD_MAP_FORCE.
1955         (oacc_default_clause): Fix default for scalars in oacc kernels.
1956         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1958 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1960         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1961         parameter base_pointers_restrict.
1962         (omp_target_base_pointers_restrict_p): New function.
1963         (scan_omp_target): Call scan_sharing_clauses with
1964         base_pointers_restrict arg.
1966 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1968         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1969         (nvptx_underlying_object_mode): Delete.
1970         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1971         (output_reg): New.
1972         (nvptx_declare_function_name): Use output_reg.  Remove punning buffer.
1973         (nvptx_output_mov_insn): New.
1974         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1975         Use output_reg. Merge 't' and 'u' handling.
1976         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1977         (struct machine_function): Remvoe punning_buffer_size.
1978         (REGISTER_NAMES): Remove %punbuffer.
1979         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1980         UNSPEC_CPLX_HIGHPART): Delete.
1981         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1982         nvptx_output_mov_insn.
1983         (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1984         Use nvptx_output_mov_insn.
1985         (highpartscsf2,  set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1986         Delete.
1987         (mov<mode> [SDCM]): Delete.
1989 2015-12-02  Richard Biener  <rguenther@suse.de>
1991         * tree.h (tree_invariant_p): Declare.
1992         * tree.c (tree_invariant_p): Export.
1993         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1994         create SAVE_EXPRs but reject patterns if we would need to.
1996 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1998         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1999         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
2001 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
2003         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
2004         (cstore<mode>4): Use it.
2006 2015-12-02  Richard Biener  <rguenther@suse.de>
2008         PR tree-optimization/68625
2009         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
2010         cleanup_control_flow_bb.
2011         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
2012         on all BBs, then cleanup_tree_cfg_bb and finally iterate
2013         over the worklist doing both.
2015 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
2017         PR tree-optimization/68432
2018         * coretypes.h (optimization_type): New enum.
2019         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
2020         * doc/tm.texi: Regenerate.
2021         * target.def (optab_supported_p): New hook.
2022         * targhooks.h (default_optab_supported_p): Declare.
2023         * targhooks.c (default_optab_supported_p): New function.
2024         * predict.h (function_optimization_type): Declare.
2025         (bb_optimization_type): Likewise.
2026         * predict.c (function_optimization_type): New function.
2027         (bb_optimization_type): Likewise.
2028         * optabs-query.h (convert_optab_handler): Define an overload
2029         that takes an optimization type.
2030         (direct_optab_handler): Likewise.
2031         * optabs-query.c (convert_optab_handler): Likewise.
2032         (direct_optab_handler): Likewise.
2033         * internal-fn.h (direct_internal_fn_supported_p): Take an
2034         optimization_type argument.
2035         * internal-fn.c (direct_optab_supported_p): Likewise.
2036         (multi_vector_optab_supported_p): Likewise.
2037         (direct_internal_fn_supported_p): Likewise.
2038         * builtins.c (replacement_internal_fn): Update call to
2039         direct_internal_fn_supported_p.
2040         * gimple-match-head.c (build_call_internal): Likewise.
2041         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2042         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
2043         * tree.c (maybe_build_call_expr_loc): Likewise.
2044         * config/i386/i386.c (ix86_optab_supported_p): New function.
2045         (TARGET_OPTAB_SUPPORTED_P): Define.
2046         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
2047         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
2048         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
2049         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
2050         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
2051         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
2053 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
2055         * Makefile.in (GENSUPPORT_H): New macro.
2056         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2057         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
2058         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
2059         (build/genconstants.o, build/genextract.o, build/genflags.o)
2060         (build/gentarget-def.o): Use it.
2061         (build/genemit.o): Likewise.  Depend on internal-fn.def.
2062         * genopinit.c: Move block comment to optabs.def.
2063         (optab_tag, optab_def): Move to gensupport.h
2064         (pattern): Likewise, renaming to optab_pattern.
2065         (match_pattern): Move to gensupport.c
2066         (gen_insn): Use find_optab.
2067         (patterns, pattern_cmp): Replace pattern with optab_pattern.
2068         (main): Likewise.  Use num_optabs.
2069         * optabs.def: Add comment that was previously in genopinit.c.
2070         * gensupport.h (optab_tag): Moved from genopinit.c
2071         (optab_def): Likewise, expanding commentary.
2072         (optab_pattern): Likewise, after renaming from pattern.
2073         (optabs, num_optabs, find_optab): Declare.
2074         * gensupport.c (optabs): Moved from genopinit.c.
2075         (num_optabs): New variable.
2076         (match_pattern): Moved from genopinit.c.
2077         (find_optab): New function, extracted from genopinit.c:gen_insn.
2078         * genemit.c (nofail_optabs): New variable.
2079         (emit_c_code): New function.
2080         (gen_expand): Check whether the instruction is an optab that isn't
2081         allowed to fail.  Call emit_c_code.
2082         (gen_split): Call emit_c_code here too.
2083         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
2085 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2087         * config/s390/predicates.md (const_mask_operand): New predicate.
2088         * config/s390/s390-builtins.def: Set a smaller bitmask
2089         for a few builtins.
2090         * config/s390/vector.md: Change predicate from immediate_operand
2091         to either const_int_operand or const_mask_operand.  Add special
2092         insn conditions on patterns which have to exclude certain values.
2093         * config/s390/vx-builtins.md: Likewise.
2095 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2097         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
2098         mode from DI to SI.
2100 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2102         * config/s390/s390-builtin-types.def: New builtin types added.
2103         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
2104         * config/s390/s390.c (s390_expand_builtin): Always truncate
2105         constants to the mode in the pattern.
2106         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
2107         respective builtin __builtin_s390_vec_splat_*.
2109 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2111         * config/s390/s390-builtin-types.def: Sort builtin types.
2113 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2115         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
2116         condition for the RT flag.
2118 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2120         * config/s390/constraints.md ("jKK"): New constraint.
2121         * config/s390/s390.c (tm-constrs.h): Include for
2122         satisfies_constraint_*.
2123         (s390_legitimate_constant_p): Allow jKK constants.  Use
2124         satisfies_constraint_* also for the others.
2125         (legitimate_reload_vector_constant_p): Likewise.
2126         (print_operand): Allow h output modifier on vectors.
2127         * config/s390/vector.md ("mov<mode>"): Add vrepi.
2129 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2131         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2132         letter I->K.
2134 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2136         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2137         ("bswaphi2"): New pattern.
2138         New splitter for HI reg-reg bswap.
2140 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
2142         PR driver/68029
2143         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2144         if it is the first parameter.
2146 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2148         PR tree-optimization/68577
2149         * tree-vect-stmts.c (simple_integer_narrowing): New function.
2150         (vectorizable_call): Restrict internal function handling
2151         to NONE and NARROW cases, using simple_integer_narrowing
2152         to test for the latter.  Add cost of narrowing operation
2153         and insert it where necessary.
2155 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
2157         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2158         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2159         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2161 2015-12-01  Nathan Sidwell  <nathan@acm.org>
2163         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2164         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2165         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2166         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2167         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2168         (init_output_initializer): Call write_var_marker.
2169         (nvptx_output_aligned_decl): New.
2170         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2172 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2174         * c-common.c (parse_optimize_options): Do not silently ignore
2175         -fstrict-aliasing changes.
2177 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2179         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2180         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2181         stream TYPE_ALIAS_SET.
2182         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2183         stream TYPE_ALIAS_SET.
2185 2015-12-01  Nathan Sidwell  <nathan@acm.org>
2187         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2188         consider mode.
2190 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2192         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2193         indirection for large and small code models.
2194         (adjust_vperm): Likewise.
2196 2015-12-01  Julian Brown  <julian@codesourcery.com>
2197             Cesar Philippidis  <cesar@codesourcery.com>
2198             James Norris  <James_Norris@mentor.com>
2200         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2201         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2202         (is_gimple_omp_oacc): Add support for above.
2203         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2204         (omp_notice_variable): Diagnose undefined implicit uses of
2205         use_device variables in offloaded regions.
2206         (gimplify_scan_omp_clauses): Add host_data, use_device
2207         support. Diagnose undefined mapping of use_device variables in
2208         OpenACC clauses.
2209         (gimplify_omp_workshare): Add host_data support.
2210         (gimplify_expr): Likewise.
2211         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2212         * omp-low.c (lookup_decl_in_outer_ctx)
2213         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2214         host_data regions.
2215         (scan_sharing_clauses): Support use_device.
2216         (check_omp_nesting_restrictions): Support host_data.
2217         (expand_omp_target): Support host_data.
2218         (lower_omp_target): Skip over outer host_data regions when looking
2219         up decls. Support use_device.
2220         (make_gimple_omp_edges): Support host_data.
2221         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2223 2015-12-01  Marek Polacek  <polacek@redhat.com>
2225         PR middle-end/68582
2226         * cgraphunit.c (check_global_declaration): Only depend
2227         on TREE_THIS_VOLATILE for VAR_DECLs.
2229 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2231         PR tree-optimization/68474
2232         * tree-call-cdce.c (use_internal_fn): Protect call to
2233         gen_shrink_wrap_conditions.
2235 2015-12-01  Christian Bruel  <christian.bruel@st.com>
2237         PR target/68617
2238         * config/arm/arm.opt (unaligned_access): Save.
2239         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2240         * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2241         (arm_option_override_internal): ... here.
2242         * config/arm/arm.h (TARGET_32BIT_P): New macro.
2244 2015-12-01  Richard Biener  <rguenther@suse.de>
2246         PR tree-optimization/68379
2247         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2248         always base loads on the first used DR of a group.
2249         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2250         Compute alignment of the first scalar element unconditionally.
2252 2015-12-01  Richard Biener  <rguenther@suse.de>
2254         PR middle-end/68590
2255         * genmatch.c (struct capture_info): Add match_use_count.
2256         (capture_info::walk_match): Increment match_use_count.
2257         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2258         replacements in a save_expr if they occur more often than
2259         in the original expression.
2261 2015-12-01  Richard Biener  <rguenther@suse.de>
2263         PR ipa/68470
2264         * ipa-split.c (split_function): Handle main part not returning.
2266 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
2268         PR middle-end/68595
2269         * tree-vect-stmts.c (vect_init_vector): Cast boolean
2270         scalars to a proper value before building a vector.
2272 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2274         * genattrtab.c (check_attr_test): Take an attr_desc instead of
2275         an is_const flag.  Put the file_location argument first.
2276         Update recursive calls.  Improve error messages.
2277         (check_attr_value): Take a file location and use it instead
2278         of attr->loc.  Improve error messages.  Update calls to
2279         check_attr_test.
2280         (check_defs): Update call to check_attr_value.
2281         (make_canonical): Likewise.
2282         (gen_attr): Likewise.
2283         (main): Likewise.
2284         (gen_insn_reserv): Update call to check_attr_test.
2286 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2288         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2290 2015-12-01  Richard Biener  <rguenther@suse.de>
2292         PR middle-end/68590
2293         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2295 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2297         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2298         odr_type_p): Move to ...
2299         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2300         odr_type_p): here; miscro-optimize.
2302 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
2304         PR tree-optimization/68529
2305         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2306         Compute no-overflow information for control iv.
2307         (number_of_iterations_lt, number_of_iterations_le): Add new param.
2308         (number_of_iterations_cond): Pass new argument to above functions.
2310 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
2312         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2313         inlining -fno-strict-aliasing into -fstrict-aliasing body.
2315 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2316             Sebastian Pop  <s.pop@samsung.com>
2318         PR tree-optimization/68565
2319         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2320         codegen_error.  Fail when rhs of division operations is integer_zerop.
2321         (ternary_op_to_tree): Early return on codegen_error.
2322         (unary_op_to_tree): Same.
2323         (nary_op_to_tree): Same.
2324         (gcc_expression_from_isl_expr_op): Same.
2325         (gcc_expression_from_isl_expression): Same.
2326         (graphite_create_new_loop): On codegen_error continue generating
2327         wrong code.
2328         (graphite_create_new_loop_guard): Same.
2329         (build_iv_mapping): Same.
2330         (graphite_create_new_guard): Same.
2332 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2333             Sebastian Pop  <s.pop@samsung.com>
2335         * graphite-isl-ast-to-gimple.c: Fix dump messages.
2336         * graphite-scop-detection.c: Same.
2337         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2339 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2341         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2342         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2343         (convert_local_omp_clauses): Likewise.
2345 2015-11-30  Tom de Vries  <tom@codesourcery.com>
2347         PR tree-optimization/46032
2348         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2349         factored out of ...
2350         (find_func_aliases_for_call): ... here.
2351         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2352         BUILT_IN_GOMP_PARALLEL.
2353         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
2354         function.
2356 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
2358         PR tree-optimization/68501
2359         * target.def (builtin_reciprocal): Replace the 3 arguments with
2360         a gcall * one, adjust description.
2361         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2362         with a gcall * one.
2363         * targhooks.c (default_builtin_reciprocal): Likewise.
2364         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2365         targetm.builtin_reciprocal even on internal functions, adjust
2366         the arguments and allow replacing an internal function with normal
2367         built-in.
2368         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2369         with a gcall * one.  Handle internal fns too.
2370         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2371         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2372         * doc/tm.texi (builtin_reciprocal): Document.
2374 2015-11-30  Richard Biener  <rguenther@suse.de>
2376         PR tree-optimization/68592
2377         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2378         on the pattern def sequence.
2380 2015-11-30  Nathan Sidwell  <nathan@acm.org>
2382         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2383         (write_one_arg): Reorder parms, add 'sep' param.
2384         (nvptx_write_function_decl): Rename to ...
2385         (write_fn_proto): ... here.  Do name replacement. Emit linaer
2386         comment marker. Deal with both decls and defns. Simplify argument
2387         formatting.
2388         (write_function_decl_and_comment): Delete.
2389         (write_func_decl_from_insn): Rename to ...
2390         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
2391         (nvptx_record_fndecl): Call write_fn_proto.
2392         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2393         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2394         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2396 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
2398         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2399         (define_insn "*k<logic><mode>"): Use new iterator.
2401 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2403         PR target/28115
2404         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2405         (sparc_adjust_cost): Add missing space.
2407 2015-11-30  Richard Biener  <rguenther@suse.de>
2409         PR c/68162
2410         * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2412 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2414         * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2415         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2416         base ref, DR pairs and store base_predicate for write type DRs.
2417         (ifcvt_memrefs_wont_trap): Guard checks with
2418         -ftree-loop-if-convert-stores flag.
2420 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2422         * cgraph.c (cgraph_node::make_local): No name is unique during
2423         incremental linking.
2424         * cgraph.h (can_be_discarded_p): Update comment; also common and
2425         WEAK in named sections can be discarded; when doing incremental
2426         link do not rely on resolution being the final one.
2427         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
2428         When symbol can be discarded, do not rely on resolution info.
2429         * symtab.c (symtab_node::nonzero_address): Take into account that
2430         symbol can be discarded.
2431         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
2432         definition correctly.
2433         (function_and_variable_visibility): Do not set unique_name when
2434         incrementally linking.
2436 2015-11-29  Nathan Sidwell  <nathan@acm.org>
2438         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
2439         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
2440         (ctrap<mode>): Use const0_operand.
2442 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2444         * ipa-devirt.c (add_type_duplicate): Remove redundant
2445         ODR violation dump.
2447 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
2449         PR target/28115
2450         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
2451         recog_memoized test for insn and check recog_memoized for dep_insn.
2453 2015-11-28  Nathan Sidwell  <nathan@acm.org>
2455         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
2456         (FRAME_POINTER_CFA_OFFSET): Define.
2457         (struct nvptx_args): Use 'tree' type.
2458         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
2460 2015-11-28  Tom de Vries  <tom@codesourcery.com>
2462         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2464 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
2466         * doc/invoke.texi (Option Summary): Use negative form of
2467         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
2468         sort alphabetically and re-justify.
2470 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
2472         PR rtl-optimization/68536
2473         * lra.c (lra_emit_add): Add code for null base.
2474         * lra-constraints.c (curr_insn_transform): Skip operators for
2475         subreg reloads.
2477 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2479         Revert
2480         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2482         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2483         multiple_sets.
2484         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2485         are not modified by the final modified insns in the basic blocks.
2487 2015-11-27  Nathan Sidwell  <nathan@acm.org>
2489         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
2490         Don't declare.
2491         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
2492         (nvptx_maybe_convert_symbolic_operand): Simplify.
2493         (nvptx_addr_space_from_address): Delete.
2494         (nvptx_print_operand): Adjust 'A' case.
2496 2015-11-27  Richard Biener  <rguenther@suse.de>
2498         PR tree-optimization/68559
2499         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
2500         peeling for gap checks ...
2501         * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
2502         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
2503         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
2505 2015-11-27  Nathan Sidwell  <nathan@acm.org>
2507         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
2508         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
2509         (nvptx_record_fndecl): Don't return value, remove force
2510         argument. Require fndecl.
2511         (nvptx_record_libfunc): New.
2512         (nvptx_record_needed_decl): Deteermine how to record decl here.
2513         (nvptx_maybe_record_fnsym): New.
2514         (nvptx_expand_call): Don't record libfuncs here,
2515         (nvptx_maybe_convert_symbolic_operand): Use
2516         nvptx_maye_record_fnsym.
2517         (nvptx_assemble_integer): Reimplement with single switch.
2518         (nvptx_output_call_insn): Register libfuncs here.
2519         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
2520         * config/nvptx/nvptx.md (expand_movdi): Don't call
2521         nvptx_record_needed_decl.
2523 2015-11-27  Richard Biener  <rguenther@suse.de>
2525         PR tree-optimization/68553
2526         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
2527         generation for 1:1 permutations.
2528         (vect_transform_slp_perm_load): Detect 1:1 permutations.
2530 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
2532         * gimple.h (nonbarrier_call_p): Declare.
2533         * gimple.c (nonbarrier_call_p): New function.
2534         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
2535         Also increment call phase for ASMs with vdef and potential barrier
2536         calls.
2538 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2540         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2541         multiple_sets.
2542         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2543         are not modified by the final modified insns in the basic blocks.
2545 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2547         PR rtl-optimization/68506
2548         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
2549         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
2550         blocks.
2552 2015-11-27  Martin Liska  <mliska@suse.cz>
2554         PR c++/68312
2555         * vec.h (release_vec_vec): New function.
2557 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
2559         PR tree-optimization/68552
2560         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
2561         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
2562         or whether v0 == v1.
2564 2015-11-27  Martin Liska  <mliska@suse.cz>
2566         * tree-ssa-uninit.c: Fix whitespaces in the source file.
2567         The change is just automatical.
2569 2015-11-27  Martin Liska  <mliska@suse.cz>
2571         * tree-chkp.c (chkp_make_static_bounds): Release buffer
2572         used for string.
2574 2015-11-27  Martin Liska  <mliska@suse.cz>
2576         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2577         Do not release memory for comp_alias_ddrs.
2578         * tree-vect-loop.c (destroy_loop_vec_info): Release
2579         the memory for all loop_vec_info.
2581 2015-11-27  Martin Liska  <mliska@suse.cz>
2583         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
2584         of a local-scope vec.
2585         (struct final_warning_record): Use auto_vec instead of vec.
2587 2015-11-27  Richard Biener  <rguenther@suse.de>
2589         PR tree-optimization/68553
2590         * tree-vect-slp.c (vect_get_mask_element): Remove.
2591         (vect_transform_slp_perm_load): Implement in a simpler way.
2593 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
2595         PR rtl-optimization/67753
2596         PR rtl-optimization/64164
2597         * function.c (assign_parm_setup_block): Right-shift
2598         upward-padded big-endian args when bypassing the stack slot.
2600 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
2602         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
2603         `-mcompact-branches='.
2604         (MIPS Options): Likewise.
2606 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2608         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
2610 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
2612         * doc/install.texi (Prerequisites): Increase ISL requirement to
2613         0.14 or 0.15.
2615 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2617         * config/aarch64/arm_neon.h
2618         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
2619         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
2620         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2621         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
2622         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
2623         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
2624         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
2625         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
2626         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2627         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
2628         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
2629         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
2631 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2633         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
2634         (vqrdmlahq_s16, vqrdmlahq_s32): New.
2635         (vqrdmlsh_s16, vqrdmlsh_s32): New.
2636         (vqrdmlshq_s16, vqrdmlshq_s32): New.
2638 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2640         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
2641         ARM_FEATURE_QRDMX.
2643 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
2645         PR debug/53927
2646         * tree-nested.c (finalize_nesting_tree_1): Append a field to
2647         hold the frame base address.
2648         * dwarf2out.c (gen_subprogram_die): Generate for
2649         DW_AT_static_link a location description that computes the value
2650         of this field.
2652 2015-11-26  Tom de Vries  <tom@codesourcery.com>
2654         revert:
2655         2015-11-25  Tom de Vries  <tom@codesourcery.com>
2657         * cfgloop.c (find_single_latch): New function, factored out of ...
2658         (flow_loops_find): ... here.
2659         (verify_loop_structure): Improve verification of loop->latch.
2660         * cfgloop.h (find_single_latch): Declare.
2661         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2663 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2665         * config/aarch64/aarch64-simd-builtins.def:
2666         Add missing changes from r230962.
2668 2015-11-26  Nathan Sidwell  <nathan@acm.org>
2670         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
2671         arg with name.  Don't deal with split regs.  Tweak formatting.
2672         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
2673         (nvptx_output_call_insn): Don't deal with split regs here.
2675 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2677         * config/aarch64/aarch64-simd-builtins.def
2678         (sqrdmlah, sqrdmlsh): New.
2679         (sqrdmlah_lane, sqrdmlsh_lane): New.
2680         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
2682 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2684         * config/aarch64/aarch64-simd.md
2685         (aarch64_sqmovun<mode>): Fix some white-space.
2686         (aarch64_<sur>qmovun<mode>): Likewise.
2687         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
2688         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
2689         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
2690         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
2691         (UNSPEC_SQRDMLSH): New.
2692         (SQRDMLH_AS): New.
2693         (rdma_as): New.
2695 2015-11-26  Richard Biener  <rguenther@suse.de>
2697         PR tree-optimization/66721
2698         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
2699         iteration cost earlier.  Re-do analysis without SLP when
2700         vectorization using SLP fails and without has a chance to succeed.
2702 2015-11-26  Richard Biener  <rguenther@suse.de>
2704         * genmatch.c (dt_simplify::gen_1): For generic wrap all
2705         multi-result-use captures in a SAVE_EXPR.
2707 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2709         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
2710         (TARGET_SIMD_RDMA): New.
2712 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2714         * combine.c (subst): Do not return clobber of zero in widening mult
2715         case.  Just return x unchanged if it is a no-op substitution.
2717 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
2719         PR target/68416
2720         * config/i386/i386.h (enum reg_class): Add
2721         bounds registers to ALL_REGS.
2723 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2725         PR tree-optimization/68128
2726         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2727         * gimplify.c: Include gimple-walk.h.
2728         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2729         (omp_notice_variable): Set flags to n->value if n already
2730         exists in target region, but we need to jump to do_outer.
2731         (omp_shared_to_firstprivate_optimizable_decl_p,
2732         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2733         functions.
2734         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2735         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2736         not modified in the body.  Call omp_mark_stores for outer
2737         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2738         in the body or on OMP_CLAUSE_LASTPRIVATE.
2739         (gimplify_adjust_omp_clauses): Add body argument, call
2740         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2741         Set OMP_CLAUSE_SHARED_READONLY
2742         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2743         not modified in the body.  Call omp_mark_stores for outer
2744         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2745         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2746         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2747         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2748         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2749         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2750         * tree-nested.c (convert_nonlocal_omp_clauses,
2751         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2752         non-local vars or local vars referenced from nested routines.
2753         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2754         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
2755         TREE_READONLY, don't call use_pointer_for_field with non-NULL
2756         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2758 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
2760         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2761         about signed left shift stronger and clarify the cases when they're
2762         broken.
2764 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2765             Bernd Schmidt  <bschmidt@redhat.com>
2767         PR rtl-optimization/67226
2768         * calls.c (store_one_arg): Take into account
2769         crtl->args.pretend_args_size when checking for overlap between
2770         arg->value and argblock + arg->locate.offset during sibcall
2771         optimization.
2773 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
2775         * config/aarch64/aarch64.md (cbranch<mode>4): Use
2776         aarch64_fp_compare_operand.
2777         (store_pairsf): Use aarch64_reg_or_fp_zero.
2778         (store_pairdf): Likewise.
2779         (cstore<mode>4): Use aarch64_fp_compare_operand.
2780         (cmov<mode>6): Likewise.
2781         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2783 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
2784             Sebastian Pop  <s.pop@samsung.com>
2786         PR tree-optimization/68453
2787         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2788         not redirect edges already pointing to their destination.
2789         (translate_isl_ast_node_for): Split edges after loops to create
2790         basic blocks for close phi nodes.  Save merge points at the end of
2791         a loop guard.
2792         (translate_isl_ast_node_if): Save merge points at the end of the
2793         if region.
2794         (add_close_phis_to_outer_loops): New.
2795         (add_close_phis_to_merge_points): New.
2796         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2797         (copy_bb_and_scalar_dependences): Do not split basic blocks on
2798         loop close phi locations.
2800 2015-11-25  Jan Hubicka  <jh@suse.cz>
2802         * ipa-visibility.c (cgraph_externally_visible_p,
2803         varpool_node::externally_visible_p): When doing incremental linking,
2804         hidden symbols may be still used later.
2805         (update_visibility_by_resolution_info): Do not drop weak during
2806         incremental link.
2807         (function_and_variable_visibility): Fix formating.
2808         * flag-types.h (lto_linker_output): Declare.
2809         * common.opt 9flag_incremental_link): New flag.
2811 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2813         * config/rs6000/constraints.md (wb constraint): New constraint for
2814         ISA 3.0 d-form scalar addressing.
2816         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2817         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2818         Altivec registers.  Add wb constraint for Altivec registers with
2819         D-form addressing.  If we have ISA 3.0 d-form support, undo
2820         secondary reload support for using FPR registers if we want to do
2821         D-form addressing.
2822         (rs6000_debug_reg_global): Likewise.
2823         (rs6000_setup_reg_addr_masks): Likewise.
2824         (rs6000_init_hard_regno_mode_ok): Likewise.
2825         (rs6000_secondary_reload): Likewise.
2826         (rs6000_preferred_reload_class): Likewise.
2827         (rs6000_secondary_reload_class): Likewise.
2829         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2830         constraint.
2832         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2833         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2834         (f32_lm2): Likewise.
2835         (f32_li2): Likewise.
2836         (f32_sr2): Likewise.
2837         (f32_sm2): Likewise.
2838         (f32_si2): Likewise.
2839         (f64_p9): Likewise.
2840         (extendsfdf2_fpr): Likewise.
2841         (mov<mode>_hardfloat): Likewise.
2842         (mov<mode>_hardfloat32): Likewise.
2843         (mov<mode>_hardfloat64): Likewise.
2845         * doc/md.texi (RS/6000 constraints): Document wb constraint.
2846         Fixup we constraint documentation.
2848 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2850         * omp-low.c (pass_expand_omp_ssa::clone): New function.
2851         * passes.def: Add pass_oacc_kernels pass group.
2852         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2854 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2856         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2857         Declare.
2858         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2859         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2860         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2861         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2863 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2865         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2866         TV_IPA_LTO_OUTPUT): New.
2867         * lto-compress.c: Include timevar.h
2868         (lto_end_compression, lto_end_uncompression): Add timers.
2869         * langhooks.c: Include timevar.h.
2870         (lhd_append_data): Add timer.
2872 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2874         * varasm.c (default_elf_asm_output_limited_string,
2875         default_elf_asm_output_ascii): Replace fprintf by putc.
2877 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
2879         PR rtl-optimization/67954
2880         * lra-constraints.c (curr_insn_transform): Add check on scratch
2881         pseudo when change class to NO_REGS.  Add an assert.
2883 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2885         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2886         constraint is 'n'.
2887         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2888         (nvptx_write_function_decl): Number args from 0.
2889         (nvptx_declare_function_name): Likewise.
2890         (nvptx_function_incoming_arg): Likewise.
2891         (nvptx_output_call_insn): Correct formatting.
2893 2015-11-25  David Sherwood  <david.sherwood@arm.com>
2895         * optabs.def: Add new optabs fmax_optab/fmin_optab.
2896         * internal-fn.def: Add new fmax/fmin internal functions.
2897         * doc/md.texi: Add fmin and fmax patterns.
2899 2015-11-25  Jason Merrill  <jason@redhat.com>
2901         PR c++/68385
2902         * tree.c (integer_zerop, integer_onep, integer_each_onep)
2903         (integer_all_onesp, integer_minus_onep, integer_pow2p)
2904         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2905         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2907 2015-11-25  Richard Biener  <rguenther@suse.de>
2909         PR middle-end/68528
2910         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2911         on stripped operands.
2913 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2915         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2916         (nvptx_declare_function_name): Move assignments next to register
2917         declarations, and process params here.
2919 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
2921         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2922         both the symbol and the "dot" symbol for function descriptors. Fix
2923         inversion for rename of symbols with dollar sign.
2925 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2927         * cfgloop.c (find_single_latch): New function, factored out of ...
2928         (flow_loops_find): ... here.
2929         (verify_loop_structure): Improve verification of loop->latch.
2930         * cfgloop.h (find_single_latch): Declare.
2931         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2933 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2935         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2936         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2937         (STARTFILE_SPEC): Use %(startfile_vtv).
2938         (ENDFILE_SPEC): Use %(endfile_vtv).
2939         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2940         ENDFILE_VTV_SPEC.
2942         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2944 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
2946         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2947         noce_can_store_speculate): Delete.
2948         (noce_process_if_block): Don't try to handle single MEM stores.
2949         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2950         * alias.c (memory_must_be_modified_in_insn_p): Delete.
2952 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2954         PR rtl-optimization/68435
2955         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2956         for conflicts between a, b and the set destinations.
2958 2015-11-25  Richard Biener  <rguenther@suse.de>
2960         PR tree-optimization/68517
2961         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2962         Properly handle zero-sized types.
2964 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2966         * ipa-inline-analysis.c: Include gimplify.h
2967         (set_cond_stmt_execution_predicate,
2968         set_switch_stmt_execution_predicate): Be sure to not leak locations
2969         to function body.
2971 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
2973         PR target/67089
2974         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2975         match_uaddsub_overflow): New functions.
2976         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2978 2015-11-25  Richard Biener  <rguenther@suse.de>
2980         PR tree-optimization/68492
2981         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2982         op from scalars after operand swapping.
2984 2015-11-25  Richard Biener  <rguenther@suse.de>
2986         PR tree-optimization/68502
2987         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2988         check that the step is a multiple of the type size.
2990 2015-11-24  Michael Collison  <michael.collison@linaro.org>
2992         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2993         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2994         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2996 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
2998         * frame-header-opt.c (gate): Check for optimize > 0.
2999         (has_inlined_assembly): New function.
3000         (needs_frame_header_p): Remove is_leaf_function check,
3001         add argument type check.
3002         (callees_functions_use_frame_header): Add is_leaf_function
3003         and has_inlined_assembly calls..
3004         (set_callers_may_not_allocate_frame): New function.
3005         (frame_header_opt): Add is_leaf_function call, add
3006         set_callers_may_not_allocate_frame call.
3007         * config/mips/mips.c (mips_compute_frame_info): Add check
3008         to see if callee saved regs can be put in frame header.
3009         (mips_expand_prologue): Add check to see if step1 is zero,
3010         fix cfa restores when using frame header to store regs.
3011         (mips_can_use_return_insn): Check to see if registers are
3012         stored in frame header.
3013         * config/mips/mips.h (machine_function): Add
3014         callers_may_not_allocate_frame and
3015         use_frame_header_for_callee_saved_regs fields.
3017 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3019         PR rtl-optimization/68520
3020         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
3021         its bit was already set in BB_WITH.
3023 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3025         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
3026         double check that type is main variant.
3027         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
3028         variant.
3029         (verify_type_variant): Verify that variants have no
3030         TYPE_ALIAS_SET_KNOWN_P set
3031         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
3032         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
3033         only for main variants; stream TYPE_ALIAS_SET as a bit.
3034         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
3035         accordingly.
3037 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3039         * tree.c (make_vector_type): Properly compute canonical type of the
3040         main variant.
3041         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
3042         a main variant.
3044 2015-11-24  Nathan Sidwell  <nathan@acm.org>
3046         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
3047         VOIDmode, don't alter incoming mode.
3048         (nvptx_split_reg_p): Delete.
3049         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
3050         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
3051         maybe_split_mode calls.
3052         (nvptx_print_operand): Use maybe_split_mode.
3054 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3056         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
3057         only for types where LTO sets them.
3058         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
3059         (make_vector_type): Likewise.
3060         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
3061         * tree.h (canonical_type_used_p): New inline.
3062         * alias.c (get_alias_set): Handle structural equality for all
3063         types that pass canonical_type_used_p.
3064         (record_component_aliases): Look through all types with
3065         record_component_aliases for possible pointers; sanity check that
3066         the alias sets match.
3068 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3070         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
3072 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
3074         * tree.c (free_node): New function.
3075         (type_hash_canon): Use it.
3076         * tree.h (free_node): Declare.
3078 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
3079             Michael Meissner  <meissner@linux.vnet.ibm.com>
3081         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
3082         (Fv2): New mode attribute to be used when ISA 2.07 instructions
3083         are used on SF values, and ISA 2.06 instructions on DF values.
3084         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
3085         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
3086         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
3087         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
3088         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
3089         (fre<Fs>): Use <Fv2> instead of <Fv>.
3090         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
3091         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
3092         (xsrdpi<mode>): Add support for the lround function.
3093         (lround<mode>di2): Likewise.
3094         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3095         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3096         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3097         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3099 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
3100             Sebastian Pop  <s.pop@samsung.com>
3102         PR tree-optimization/67984
3103         * graphite-isl-ast-to-gimple.c (is_constant): New.
3104         (get_rename): Call is_constant.
3105         (get_new_name): Same.
3107 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
3108             Sebastian Pop  <s.pop@samsung.com>
3110         * graphite-dependences.c: Only include graphite.h.
3111         * graphite-isl-ast-to-gimple.c: Same.
3112         * graphite-optimize-isl.c: Same.
3113         * graphite-poly.c: Same.
3114         * graphite-scop-detection.c: Same.
3115         * graphite-sese-to-poly.c: Same.
3116         * graphite.c: Same.
3117         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
3118         * graphite-poly.h: Same.
3119         * graphite-scop-detection.h: Same.
3120         * graphite.h: New.
3122 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
3124         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
3125         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
3126         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
3127         function already takes care of checking what it can emit.
3129 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3131         * doc/invoke.texi (-fpic): Add the AArch64 limit.
3132         (-fPIC): Add AArch64.
3134 2015-11-24  Tom de Vries  <tom@codesourcery.com>
3136         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3137         (pass_lim::execute): Allow to run outside pass_tree_loop.
3139 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
3141         * config/aarch64/aarch64.md (add<mode>3):
3142         Block early expansion into 2 add instructions.
3143         (add<mode>3_pluslong): New pattern to combine complex
3144         immediates into 2 additions.
3146 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3148         PR target/66217
3149         PR target/67677
3150         PR target/68332
3151         * config/rs6000/predicates.md (and_operand): Check that the operand
3152         is a const_int before calling rs6000_is_valid_and_mask.
3154 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3156         * config/aarch64/aarch64.md (*condjump): Rename to...
3157         (condjump): ... This.
3158         (*compare_condjump<mode>): New define_insn_and_split.
3159         (*compare_cstore<mode>_insn): Likewise.
3160         (*cstore<mode>_insn): Rename to...
3161         (cstore<mode>_insn): ... This.
3162         * config/aarch64/iterators.md (CMP): Handle ne code.
3163         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3165 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
3167         PR target/68497
3168         * config/i386/i386.c (output_387_binary_op): Fix assertion for
3169         -fno-checking case.
3171 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3173         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3174         (val_ssa_equiv_hash_traits::remove): Likewise.
3175         (pass_uncprop::execute): Adjust.
3177 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3179         * hash-map-traits.h (simple_hashmap_traits ::remove): call
3180         destructors on values that are being removed.
3181         * mem-stats.h (hash_map): Pass type of values to
3182         simple_hashmap_traits.
3183         * tree-sra.c (sra_deinitialize): Remove work around for hash
3184         maps not destructing values.
3185         * genmatch.c (sinfo_hashmap_traits): Adjust.
3186         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3188 2015-11-24  Richard Biener  <rguenther@suse.de>
3189             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3191         PR middle-end/68375
3192         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3193         bogus assertion.
3195 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
3197         PR target/68483
3198         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3199         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3200         returns false.
3201         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3202         whenever first is nelt or above.  Don't mask expected with
3203         2 * nelt - 1.
3205 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
3207         PR c/68337
3208         * gimple-fold.c: Include ipa-chkp.h.
3209         (gimple_fold_builtin_memory_op): Don't fold call if we
3210         are going to instrument it and it may copy pointers.
3212 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
3213             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3215         PR rtl-optimization/68194
3216         PR rtl-optimization/68328
3217         PR rtl-optimization/68185
3218         * ree.c (combine_reaching_defs): Reject copy_needed case if
3219         copies_list is not empty.
3221 2015-11-24  Richard Biener  <rguenther@suse.de>
3223         PR middle-end/68221
3224         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3225         use mem_ref_offset.
3227 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3229         PR rtl-optimization/68381
3230         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3231         is poisoned.
3233 2015-11-23  Nick Clifton  <nickc@redhat.com>
3234             Jeff Law  <law@redhat.com>
3236         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3237         the source/dest of the target extension require a different number of
3238         hard registers.
3239         (combine_set_extension): Remove #if 0 code.
3241 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3242             Sebastian Pop  <s.pop@samsung.com>
3244         PR tree-optimization/68314
3245         * graphite-optimize-isl.c (optimize_isl): Do not call
3246         isl_union_map_is_equal.
3247         * graphite-poly.c (new_scop): Remove original_schedule.
3248         (free_scop): Same.
3249         * graphite-poly.h (struct scop): Same.
3250         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3251         Remove.
3252         (build_pbb_scattering_polyhedrons): Add back.
3253         (build_scop_minimal_scattering): Remove.
3254         (build_scop_scattering): Add back.
3255         (build_scop_original_schedule): Remove.
3256         (build_poly_scop): Revert to only call build_scop_scattering.
3258 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3259             Sebastian Pop  <s.pop@samsung.com>
3261         PR tree-optimization/68493
3262         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3263         missing early return when codegen_error is set.
3265 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3266             Sebastian Pop  <s.pop@samsung.com>
3268         PR tree-optimization/68279
3269         * graphite-poly.c (new_scop): Remove poly_scop_p.
3270         * graphite-poly.h (struct scop): Same.
3271         (build_poly_scop): Declare.
3272         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3273         (cleanup_loop_iter_dom): New.
3274         (build_loop_iteration_domains): Early return when scev analysis fails.
3275         (create_pw_aff_from_tree): Same.
3276         (add_condition_to_pbb): Same.
3277         (add_conditions_to_domain): Same.
3278         (add_conditions_to_constraints): Same.
3279         (build_scop_iteration_domain): Same.
3280         (build_poly_scop): Same.  Do not initialize poly_scop_p.
3281         * graphite-sese-to-poly.h: Remove.
3282         * graphite.c: Do not include graphite-sese-to-poly.h.
3283         (graphite_transform_loops): Stop before code generation when
3284         build_poly_scop fails.
3285         * sese.c (scalar_evolution_in_region): Add fixme note about scev
3286         analysis.
3288 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3289             Sebastian Pop  <s.pop@samsung.com>
3291         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3292         Remove call to update_ssa.
3293         * sese.c (sese_insert_phis_for_liveouts): Same.
3295 2015-11-23  Marek Polacek  <polacek@redhat.com>
3297         PR tree-optimization/68455
3298         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3299         extract_range_from_multiplicative_op_1 on symbolic ranges.
3301 2015-11-23  Richard Henderson  <rth@redhat.com>
3303         * optabs.def (uaddv4_optab, usubv4_optab): New.
3304         * internal-fn.c (expand_addsub_overflow): Use them.
3305         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3307         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3308         to reversed operands.
3309         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3310         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3311         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3312         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3313         (*add<SWI>3_cconly_overflow_2): New.
3314         (*add<SWI>3_cc_overflow_2): New.
3315         (*addsi3_zext_cc_overflow_2): New.
3317 2015-11-23  Richard Biener  <rguenther@suse.de>
3319         PR tree-optimization/68465
3320         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3321         Also record equalities from multiple predecessor blocks if
3322         only one non-backedge exists.
3324 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3326         PR target/68363
3327         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3328         that are not INSN_P.
3330 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
3332         * config/aarch64/aarch64-builtins.c
3333         (aarch64_gimple_fold_builtin): Fold FMULX.
3335 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
3337         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3338         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
3339         after GCC header files and before graphite header files.
3340         * graphite-dependences.c: Same.
3341         * graphite-isl-ast-to-gimple.c: Same.
3342         * graphite-optimize-isl.c: Same.
3343         * graphite-poly.c: Same.
3344         * graphite-scop-detection.c: Same.
3345         * graphite-sese-to-poly.c: Same.
3346         * graphite.c: Same.
3348 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
3349             Jiong Wang  <jiong.wang@arm.com>
3351         PR tree-optimization/68317
3352         PR tree-optimization/68326
3353         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3354         final min and max are not infinity.
3356 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3357             Richard Biener  <rguenther@suse.de>
3359         PR tree-optimization/68327
3360         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3361         compute vectype for non-relevant mask producers.
3362         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3363         relevance earlier.
3365 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3367         PR tree-optimization/68460
3368         * tree-parloops.c (gather_scalar_reductions): Also call
3369         free_stmt_vec_info_vec if simple_loop_info == NULL.
3371 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
3373         * opts.c (finish_options): Allow -fsanitize-recover=address for
3374         userspace sanitization.
3375         * asan.c (asan_expand_check_ifn): Redefine recover_p.
3376         * doc/invoke.texi (fsanitize-recover): Update documentation.
3378 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3380         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3382 2015-11-23  Richard Biener  <rguenther@suse.de>
3384         PR tree-optimization/68445
3385         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3386         two different strides.
3388 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3390         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3391         * config/s390/s390.c (s390_check_symref_alignment): Use new
3392         symref flags, early abort on wrong alignment
3393         (s390_secondary_reload): Use new symref flags.
3394         (s390_encode_section_info): Likewise.
3395         * config/s390/predicates.md: Likewise.
3397 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
3399         PR target/68390
3400         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3401         for indirect function call.
3403 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
3405         * config/aarch64/aarch64-simd.md
3406         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3407         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3408         (*aarch64_mulx_elt_to_64v2df): Likewise.
3409         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3410         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3411         (vmulx_lane_f64): Likewise.
3412         (vmulxq_lane_f32): Refactored & moved.
3413         (vmulxq_lane_f64): Likewise.
3414         (vmulx_laneq_f32): New.
3415         (vmulx_laneq_f64): Likewise.
3416         (vmulxq_laneq_f32): Likewise.
3417         (vmulxq_laneq_f64): Likewise.
3418         (vmulxs_lane_f32): Likewise.
3419         (vmulxs_laneq_f32): Likewise.
3420         (vmulxd_lane_f64): Likewise.
3421         (vmulxd_laneq_f64): Likewise.
3423 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
3425         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
3426         In LTO we do not compute TYPE_CANONICAL of pointers.
3427         (gimple_canonical_types_compatible_p): Improve coments; sanity check
3428         that pointers do not have canonical type that would make us believe
3429         they are different.
3430         * alias.c (get_alias_set): Do structural type equality on pointers;
3431         enable pointer path for LTO; also glob pointer to vector with pointer
3432         to vector element; glob pointers and references for LTO; do more strict
3433         sanity checking about build_pointer_type returning the canonical type
3434         which is also the main variant.
3435         (record_component_aliases): When component type is pointer and we
3436         do LTO; record void_type_node alias set.
3438 2015-11-21  Nathan Sidwell  <nathan@acm.org>
3440         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
3442         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
3443         leading blank line.
3444         (write_func_decl_from_insn): Likewise.
3445         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
3446         (nvptx_file_end): Likewise.
3447         (nvptx_function_end): Undent output.
3448         (nvptx_expand_call): Fix formatting.
3449         (nvptx_output_call_insn): Indent output.
3450         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3451         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
3453 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
3455         PR debug/66432
3456         * tree-inline.c (copy_debug_stmt): If
3457         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
3458         in decl_debug_args, don't call remap_gimple_op_r on it.
3460 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3462         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
3463         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
3464         Check that all record types are complete.
3465         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
3466         compare alias sets for types w/o alias sets.
3468 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3470         * config/sparc/sparc.md (umulxhi_vis): Move around.
3471         (*umulxhi_sp64): Likewise.
3472         (umulxhi_v8plus): Likewise.
3473         (xmulx_vis): Likewise.
3474         (*xmulx_sp64): Likewise.
3475         (xmulx_v8plus): Likewise.
3476         (xmulxhi_vis): Likewise.
3477         (*xmulxhi_sp64): Likewise.
3478         (xmulxhi_v8plus): Likewise.
3480 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
3482         PR 62314
3483         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
3484         (class layout): Update comment
3485         (layout::print_any_fixits): New method.
3486         (layout::move_to_column): New method.
3487         (diagnostic_show_locus): Add call to layout.print_any_fixits.
3489 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
3491         PR middle-end/68221
3492         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
3493         has non-zero bias, subtract it in integer type instead of
3494         pointer plus of negated bias.
3496         PR middle-end/68339
3497         * omp-low.c (expand_simd_clones): Call node->get_body () before
3498         allocating stuff in GC.
3500 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
3502         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
3504 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
3506         * config/aarch64/aarch64.md (predicated): Copy attribute from
3507         "arm.md".
3508         * config/arm/arm.md (predicated): Added description.
3510 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3512         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
3513         for unaligned_access.
3514         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
3515         from matching condition.
3516         (unaligned_loadhis): Likewise.
3517         (unaligned_loadhiu): Likewise.
3518         (unaligned_storesi): Likewise.
3519         (unaligned_storehi): Likewise.
3521 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3523         PR target/68149
3524         * config/arm/arm.md (unaligned_loaddi): Delete.
3525         (unaligned_storedi): Likewise.
3526         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
3527         unaligned DImode memory ops.  Instead perform two back-to-back
3528         unaligned SImode ops.
3530 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
3531             James Norris  <jnorris@codesourcery.com>
3533         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
3534         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
3536 2015-11-20  Alan Hayward <alan.hayward@arm.com>
3538         PR tree-optimization/68413
3539         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
3540         evolution base
3541         (vectorizable_reduction): Use cached base
3543 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3545         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
3546         dump-file string.
3547         (try_create_reduction_list): Same.  Fix typo in dump-file string.
3549 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3551         * doc/md.texi (Standard Names): Move entry for addptr3 around,
3552         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
3553         glitch in entries for cbranch4 and jump.
3555 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3557         PR tree-optimization/68373
3558         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
3559         of ...
3560         (scev_const_prop): ... here.
3561         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
3562         * tree-parloops.c (try_create_reduction_list): Call
3563         final_value_replacement_loop.
3565 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
3567         PR tree-optimization/52272
3568         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
3569         (struct iv_common_cand_hasher): New struct.
3570         (iv_common_cand_hasher::hash): New function.
3571         (iv_common_cand_hasher::equal): New function.
3572         (struct ivopts_data): New fields, iv_common_cand_tab and
3573         iv_common_cands.
3574         (tree_ssa_iv_optimize_init): Initialize above fields.
3575         (record_common_cand, common_cand_cmp): New functions.
3576         (add_iv_candidate_derived_from_uses): New function.
3577         (add_iv_candidate_for_use): Record iv_common_cands derived from
3578         iv use in hash table, instead of adding candidates directly.
3579         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
3580         (record_important_candidates): Add important candidates to iv uses'
3581         related_cands.  Always keep related_cands for future use.
3582         (try_add_cand_for): Use iv uses' related_cands.
3583         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
3584         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
3586 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3588         * config/s390/s390.md ("bswaphi2"): New pattern.
3590 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3592         * config/s390/s390.md (GPR1_REGNUM): New constant.
3593         ("*trunc<BFP:mode><DFP_ALL:mode>2")
3594         ("*trunc<DFP_ALL:mode><BFP:mode>2")
3595         ("trunc<BFP:mode><DFP_ALL:mode>2")
3596         ("trunc<DFP_ALL:mode><BFP:mode>2")
3597         ("*extend<BFP:mode><DFP_ALL:mode>2")
3598         ("*extend<DFP_ALL:mode><BFP:mode>2")
3599         ("extend<BFP:mode><DFP_ALL:mode>2")
3600         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
3602 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3603             Sebastian Pop  <s.pop@samsung.com>
3605         PR tree-optimization/68428
3606         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
3607         over basic blocks outside the scop.
3609 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3610             Sebastian Pop  <s.pop@samsung.com>
3612         PR tree-optimization/68341
3613         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
3614         gcc_unreachable and safely fail codegen.
3615         (copy_loop_close_phi_args): Do not insert merge phis in a basic
3616         block with loop phi nodes.
3617         (edge_for_new_close_phis): New.
3618         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
3620 2015-11-19  Nathan Sidwell  <nathan@acm.org>
3622         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
3623         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
3624         (nvptx_declare_objec_name): Likewise.
3626 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3628         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
3629         (get_false_edge_from_guard_bb): Move...
3630         * sese.c (get_false_edge_from_guard_bb)
3631         (get_true_edge_from_guard_bb): ... here.
3633 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
3635         Revert
3636         2015-11-18  Alan Modra  <amodra@gmail.com>
3638         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3639         type-limits warning.
3642 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3644         * tree.h (desired_pro_or_demotion_p): New function.
3645         * tree-vrp.c (simplify_cond_using_ranges): Call it.
3647 2015-11-19  Michael Matz  <matz@suse.de>
3649         PR rtl-optimization/68392
3650         * fwprop.c (update_uses): Use flag_checking instead of
3651         gcc_checking_assert.
3653 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
3655         * doc/gty.texi (Support for inheritance): Fix missing
3656         parentheses in example.
3658 2015-11-19  Marek Polacek  <polacek@redhat.com>
3660         PR tree-optimization/68431
3661         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
3663 2015-11-19  Nathan Sidwell  <nathan@acm.org>
3665         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
3666         atomic_exchange<mode>): Input values can be immediates.
3668 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3670         PR lto/61313
3671         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
3672         by the user.
3673         * configure: Regenerate.
3675 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3677         PR target/68408
3678         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
3679         (DTORS_SECTION_ASM_OP): Likewise.
3681 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
3683         PR rtl-optimization/68376
3684         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
3685         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
3687 2015-11-19  Richard Biener  <rguenther@suse.de>
3689         PR middle-end/68117
3690         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
3691         redirect_edge_var_map_destroy.
3693 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
3695         PR target/67770
3696         * config/i386/i386.md (simple_return): Disable if
3697         ix86_static_chain_on_stack is true.
3699 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
3701         PR bootstrap/68393
3702         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
3703         destinations.
3705 2015-11-18  Jeff Law  <law@redhat.com>
3707         PR tree-optimization/68198
3708         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
3709         between threading a multi-way branch and a thread path that contains
3710         a multi-way branch.  Disallow the case where a path contains a
3711         multi-way branch and does not thread a multi-way branch.
3712         (thread_through_all_blocks): Update comment.
3714 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
3716         PR c/65083
3717         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
3718         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
3719         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
3720         functions before defining as macros.
3722 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3724         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3725         (nvptx_record_offload_symbol): Remove code compensating for lack
3726         of default dimension handling.
3727         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3729 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3731         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3732         type to bool for early exit.
3733         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3734         in case of error.
3735         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3736         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3737         predecessor dominates the other.
3738         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3739         element is not found it returns -1.
3740         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3741         out early when codegen fails.
3742         (graphite_regenerate_ast_isl): Remove codegen region when pending
3743         phis could not be generated.
3745 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3747         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3748         semicolon.
3749         (class translate_isl_ast_to_gimple): Indentation.
3750         (translate_pending_phi_nodes): Comment.
3751         (add_parameters_to_ivs_params): Moved from sese.c inside class
3752         translate_isl_ast_to_gimple.
3753         (get_max_schedule_dimensions): Same.
3754         (generate_isl_context): Same.
3755         (extend_schedule): Same.
3756         (generate_isl_schedule): Same.
3757         (set_options): Same.
3758         (scop_to_isl_ast): Same.
3759         (is_valid_rename): Same.
3760         (get_rename): Same.
3761         (get_rename_from_scev): Same.
3762         (get_def_bb_for_const): Same.
3763         (get_new_name): Same.
3764         (collect_all_ssa_names): Same.
3765         (copy_loop_phi_args): Same.
3766         (copy_loop_phi_nodes): Same.
3767         (copy_loop_close_phi_args): Same.
3768         (copy_loop_close_phi_nodes): Same.
3769         (copy_cond_phi_args): Same.
3770         (copy_cond_phi_nodes): Same.
3771         (graphite_copy_stmts_from_block): Same.
3772         (copy_bb_and_scalar_dependences): Same.
3773         (add_phi_arg_for_new_expr): Same.
3774         (rename_uses): Same.
3775         (set_rename): Same.
3776         (set_rename_for_each_def): Same.
3777         (gsi_insert_earliest): Same.
3778         (rename_all_uses): Same.
3779         (codegen_error_p): Same.
3780         (print_isl_ast_node): Same.
3781         (translate_isl_ast_for_loop): Call function codegen_error_p.
3782         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3783         (translate_isl_ast_node_user): Make nb_loops const and release
3784         iv_map before exit.
3785         (get_true_edge_from_guard_bb): Move all free-functions early.
3786         (get_false_edge_from_guard_bb): Same.
3787         (bb_contains_loop_close_phi_nodes): Same.
3788         (bb_contains_loop_phi_nodes): Same.
3789         (is_loop_closed_ssa_use):  Same.
3790         (number_of_phi_nodes): Same.
3791         (phi_uses_name): Same.
3792         (later_of_the_two): Same.
3793         (substitute_ssa_name):
3794         (get_edges): Same.
3795         (get_loc): Same.
3796         (get_loop_init_value): Same.
3797         (find_init_value): Same.
3798         (find_init_value_close_phi): Same.
3799         (ast_build_before_for): Same.
3800         (graphite_regenerate_ast_isl): Formatting changes.
3801         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3802         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3803         (set_rename): Same.
3804         (gsi_insert_earliest): Same.
3805         (collect_all_ssa_names): Same.
3806         (rename_all_uses): Same.
3807         (rename_uses): Same.
3808         (get_def_bb_for_const): Same.
3809         (copy_loop_phi_nodes): Same.
3810         (copy_loop_close_phi_args): Same.
3811         (copy_loop_close_phi_nodes): Same.
3812         (copy_cond_phi_args): Same.
3813         (copy_cond_phi_nodes): Same.
3814         (set_rename_for_each_def): Same.
3815         (graphite_copy_stmts_from_block): Same.
3816         (copy_bb_and_scalar_dependences): Same.
3817         (if_region_set_false_region): Same.
3818         (scev_analyzable_p): Same.
3819         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3821 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
3823         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3824         commit from r125920 for FreeBSD.
3826 2015-11-18  Jason Merrill  <jason@redhat.com>
3828         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3829         to be vecs of vecs.
3830         (add_finalizer): Split out from ggc_internal_alloc.
3831         (ggc_handle_finalizers): Run finalizers for the current depth.
3832         (init_ggc, ggc_pch_read): Reserve space for finalizers.
3834 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
3836         PR target/68410
3837         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3838         from || expression.
3840 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3842         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3843         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3844         and atmega328pb.
3845         * doc/avr-mmcu.texi: Regenerate.
3847 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3849         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3850         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3851         (struct bb_sese): New struct.
3852         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3853         (BB_GET_SESE, BB_SET_SESE): Define.
3854         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3855         (nvptx_find_sese): New.
3856         (nvptx_neuter_pars): Find SESE regions when optimizing.
3858 2015-11-18  Alan Modra  <amodra@gmail.com>
3860         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3861         type-limits warning.
3863 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3865         PR bootstrap/68406
3866         * hash-set.h (hash_set::traverse): Expand Key typedef.
3868 2015-11-18  Martin Liska  <mliska@suse.cz>
3870         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3871         options struct.
3873 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3875         * config/nvptx/nvptx.c (global_lock_var): New.
3876         (nvptx_global_lock_addr): New.
3877         (nvptx_lockless_update): Recomment and adjust for clarity.
3878         (nvptx_lockfull_update): New.
3879         (nvptx_reduction_update): New.
3880         (nvptx_goacc_reduction_fini): Call it.
3882 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
3884         * regrename.h (struct du_head): Add target_data_1 and target_data_2
3885         fields.
3886         * regrename.c (create_new_chain): Clear entire struct after allocating.
3888         * config/i386/i386.opt (mmitigate-rop): New option.
3889         * doc/invoke.texi (mmitigate-rop): Document.
3890         * config/i386/i386.c: Include "regrename.h".
3891         (ix86_rop_should_change_byte_p, reg_encoded_number,
3892         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3893         static functions.
3894         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3895         * config/i386/i386.md (attr "modrm_class"): New.
3896         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3897         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3898         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3900 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3902         PR target/68405
3903         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3905 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
3907         PR tree-optimization/68157
3908         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3909         pow_stmt or mul_stmt from stmt's uid.
3910         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3912 2015-11-18  Martin Liska  <mliska@suse.cz>
3914         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3916 2015-11-18  Martin Liska  <mliska@suse.cz>
3918         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3919         Fix GNU coding style.
3920         (find_def_preds): Use auto_vec.
3921         (destroy_predicate_vecs): Change signature of the function.
3922         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3923         new signature.
3924         (simplify_preds_4): Use destroy_predicate_vecs instread of
3925         just releasing preds vector.
3926         (normalize_preds): Likewise.
3927         (is_use_properly_guarded): Use new signature of
3928         destroy_predicate_vecs.
3929         (find_uninit_use): Likewise.
3931 2015-11-18  Richard Biener  <rguenther@suse.de>
3933         PR tree-optimization/67790
3934         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3935         IL rewrite for MINUS_EXPR reductions, rename back to ...
3936         (vect_is_simple_reduction): ... this, removing the wrapper.
3937         (vect_force_simple_reduction): Adjust.
3938         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3939         reductions and make use if reduc_index in all places.  For
3940         the final reduction of MINUS_EXPR use PLUS_EXPR.
3942 2015-11-18  Alan Modra  <amodra@gmail.com>
3944         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3945         to ld.
3946         * configure: Regenerate.
3948 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3950         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3952 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3954         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3955         uses of ssa_name with constant.
3957 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3959         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3960         something changed.
3962 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3964         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3965         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3966         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3968 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
3970         * regrename.c (regrename_find_superclass): New function, code moved
3971         from ...
3972         (rename_chains): ... here.  Call it.
3973         * regrename.h (regrename_find_superclass): Declare.
3975         * regrename.c (record_out_operands): Terminate earlyclobbered
3976         operands here.
3978         PR target/66785
3979         * regrename.c (record_operand_use): Keep track of failed operands
3980         and stop appending if we see any.
3981         * regrename.h (struct operand_rr_info): Add a failed field and shrink
3982         n_chains to short.
3984 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3986         PR 48568
3987         * doc/extend.texi (Common Function Attributes) [visibility]:
3988         Add cross-references to matching variable and type attributes.
3989         (Common Variable Attributes) [visibility]: Add missing entry.
3991 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3993         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3994         entries that map directly to optabs.
3996 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3998         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3999         entries that map directly to optabs.
4001 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4003         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
4004         * internal-fn.c (direct_internal_fn_array): Update accordingly.
4005         * tree-vectorizer.h (vectorizable_function): Delete.
4006         * tree-vect-stmts.c: Include internal-fn.h.
4007         (vectorizable_internal_function): New function.
4008         (vectorizable_function): Inline into...
4009         (vectorizable_call): ...here.  Explicitly reject calls that read
4010         from or write to memory.  Try using an internal function before
4011         falling back on the old vectorizable_function behavior.
4013 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4015         * target.def (builtin_vectorized_function): Take a combined_fn (in
4016         the form of an unsigned int) rather than a function decl.
4017         (builtin_md_vectorized_function): New.
4018         * targhooks.h (default_builtin_vectorized_function): Replace the
4019         fndecl argument with an unsigned int.
4020         (default_builtin_md_vectorized_function): Declare.
4021         * targhooks.c (default_builtin_vectorized_function): Replace the
4022         fndecl argument with an unsigned int.
4023         (default_builtin_md_vectorized_function): New function.
4024         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
4025         New hook.
4026         * doc/tm.texi: Regenerate.
4027         * tree-vect-stmts.c (vectorizable_function): Update call to
4028         builtin_vectorized_function, also passing internal functions.
4029         Call builtin_md_vectorized_function for target-specific builtins.
4030         * config/aarch64/aarch64-protos.h
4031         (aarch64_builtin_vectorized_function): Replace fndecl argument
4032         with an unsigned int.
4033         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
4034         (aarch64_builtin_vectorized_function): Update after above changes.
4035         Use CASE_CFN_*.
4036         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
4037         fndecl argument with an unsigned int.
4038         * config/arm/arm-builtins.c: Include case-cfn-macros.h
4039         (arm_builtin_vectorized_function): Update after above changes.
4040         Use CASE_CFN_*.
4041         * config/i386/i386.c: Include case-cfn-macros.h
4042         (ix86_veclib_handler): Take a combined_fn rather than a
4043         built_in_function.
4044         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
4045         mathfn_built_in rather than calling builtin_decl_implicit directly.
4046         (ix86_builtin_vectorized_function) Update after above changes.
4047         Use CASE_CFN_*.
4048         * config/rs6000/rs6000.c: Include case-cfn-macros.h
4049         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
4050         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
4051         than calling builtin_decl_implicit directly.
4052         (rs6000_builtin_vectorized_function): Update after above changes.
4053         Use CASE_CFN_*.  Move BUILT_IN_MD to...
4054         (rs6000_builtin_md_vectorized_function): ...this new function.
4055         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
4057 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4059         * tree-vect-patterns.c: Include internal-fn.h.
4060         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
4062 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4064         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4065         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
4067 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4069         * builtins.c (expand_errno_check, expand_builtin_mathfn)
4070         (expand_builtin_mathfn_2): Delete.
4071         (expand_builtin): Remove handling of functions with
4072         internal function equivalents.
4073         * internal-fn.def (SET_EDOM): New internal function.
4074         * internal-fn.h (set_edom_supported_p): Declare.
4075         * internal-fn.c (expand_SET_EDOM): New function.
4076         (set_edom_supported_p): Likewise.
4077         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
4078         Rewrite comment at head of file.
4079         (is_call_dce_candidate): Rename to...
4080         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
4081         or gimple_call_builtin_p here.
4082         (edom_only_function): New function.
4083         (shrink_wrap_one_built_in_call_with_conds): New function, split out
4084         from...
4085         (shrink_wrap_one_built_in_call): ...here.
4086         (can_use_internal_fn, use_internal_fn): New functions.
4087         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
4088         for calls that have an lhs.
4089         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
4090         (pass_call_cdce::execute): Skip blocks that are optimized for size.
4091         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
4092         calls with an lhs.
4093         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
4094         at -O and above.
4096 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4098         * builtins.h (called_as_built_in): Declare.
4099         * builtins.c (called_as_built_in): Make external.
4100         * internal-fn.h (expand_internal_call): Define a variant that
4101         specifies the internal function explicitly.
4102         * internal-fn.c (expand_load_lanes_optab_fn)
4103         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
4104         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
4105         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
4106         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
4107         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
4108         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
4109         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
4110         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
4111         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
4112         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
4113         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
4114         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
4115         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
4116         argument.
4117         (internal_fn_expanders): Update prototype.
4118         (expand_internal_call): Define a variant that specifies the
4119         internal function explicitly. Use it to implement the previous
4120         interface.
4121         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
4122         functions as calls to internal functions.
4124 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4126         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
4127         (generated_files): Likewise.
4128         (s-cfn-operators, cfn-operators.pd): New rules.
4129         (s-match): Depend on cfn-operators.pd.
4130         * gencfn-macros.c: Expand comment to describe -o behavior.
4131         (print_define_operator_list): New function.
4132         (main): Accept -o.  Call print_define_operator_list.
4133         * genmatch.c (main): Add the current directory to the include path.
4134         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
4135         instead.
4137 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4139         * doc/match-and-simplify.texi: Document the "null" identifier.
4140         * genmatch.c (id_base::NULL_ID): New kind.
4141         (null_id): New variable.
4142         (get_operator): Add a parameter that says whether null identifiers
4143         are allowed.
4144         (contains_id): New function.
4145         (lower_for): Skip substitutions that would have a null_id in
4146         either the match or the result.
4147         (parser::parse_for): Allow the null identifier to be used.
4148         (parser::parse_operator_list): Likewise.
4149         (main): Initialize null_id.
4151 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4153         * match.pd: Use HYPOT and COS rather than hypot and cos.
4154         Use CASE_CFN_* macros.  Guard log/exp folds with
4155         SCALAR_FLOAT_TYPE_P.
4156         * genmatch.c (internal_fn): New enum.
4157         (fn_id::fn): Change to an unsigned int.
4158         (fn_id::fn_id): Accept internal_fn too.
4159         (add_builtin): Rename to...
4160         (add_function): ...this and turn into a template.
4161         (get_operator): Only try one variation if the original name fails.
4162         Only add _EXPR if the original name was all lower case.
4163         Try converting internal and built-in function names to their
4164         CFN equivalents.
4165         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4166         (dt_simplify::gen_1): Likewise.
4167         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4168         and get_call_combined_fn for generic.
4169         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4170         (decision_tree::gen): Likewise.
4171         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4172         Use add_function rather than add_builtin.  Register internal
4173         functions too.
4174         * generic-match-head.c: Include case-cfn-macros.h.
4175         * gimple-fold.c (replace_stmt_with_simplification): Use
4176         gimple_call_combined_fn to test whether we can keep an
4177         existing call.
4178         * gimple-match.h (code_helper): Replace built_in_function
4179         with combined_fn.
4180         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4181         and case-fn-macros.h.
4182         (gimple_resimplify1): Use fold_const_call.
4183         (gimple_resimplify2, gimple_resimplify3): Likewise.
4184         (build_call_internal, build_call): New functions.
4185         (maybe_push_res_to_seq): Use them.
4186         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
4187         rather than a built-in function.
4188         * tree.h (build_call_expr_internal_loc): Declare.
4189         (maybe_build_call_expr_loc): Likewise.
4190         * tree.c (build_call_expr_internal_loc_array): New function.
4191         (maybe_build_call_expr_loc): Likewise.
4193 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4195         * builtins.h (mathfn_built_in): Add a variant that takes
4196         a combined_fn.
4197         * builtins.c: Include case-cfn-macros.h.
4198         (CASE_MATHFN): Use CASE_CFN_*.
4199         (CASE_MATHFN_REENT): Use CFN_ codes.
4200         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4201         argument with a combined_fn.
4202         (mathfn_built_in): Add a variant that takes a combined_fn.
4203         (expand_builtin_int_roundingfn_2): Update callers accordingly.
4204         (fold_builtin_sincos, fold_builtin_classify): Likewise.
4206 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4208         * tree-vect-patterns.c: Include case-cfn-macros.h.
4209         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4211 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4213         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4214         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4215         (pass_cse_sincos::execute): Likewise.
4217 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4219         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4220         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4221         (decrement_power, acceptable_pow_call): Likewise.
4222         (attempt_builtin_copysign): Likewise.
4224 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4226         * tree-vrp.c: Include case-cfn-macros.h.
4227         (extract_range_basic): Switch on combined_fn rather than handling
4228         built-in functions and internal functions separately.
4230 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4232         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4233         than a built_in_function.
4234         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4235         a function decl.
4236         (integer_valued_real_call_p): Likewise.
4237         * fold-const.c: Include case-cfn-macros.h
4238         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4239         (negate_expr_p): Update accordingly.
4240         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4241         a function decl.
4242         (integer_valued_real_call_p): Likewise.
4243         (tree_invalid_nonnegative_warnv_p): Update accordingly.
4244         (integer_valued_real_p): Likewise.
4245         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4246         to tree_call_nonnegative_warnv_p.
4247         (gimple_call_integer_valued_real_p): Likewise
4248         integer_valued_real_call_p.
4249         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4250         (backprop::process_builtin_call_use): Extend to combined_fn.
4251         (strip_sign_op_1): Likewise.
4252         (backprop::process_use): Don't check for built-in calls here.
4253         (backprop::execute): Likewise.
4254         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4256 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4258         * fold-const-call.h (fold_const_call): Replace built_in_function
4259         arguments with combined_fn arguments.
4260         * fold-const-call.c: Include case-cfn-macros.h.
4261         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4262         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4263         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4264         built_in_function arguments with combined_fn arguments.
4265         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4266         (fold_builtin_3): Update calls to fold_const_call.
4268 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4270         * Makefile.in (HASH_TABLE_H): Add GGC_H.
4271         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4272         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4273         (build/gencfn-macros$(build_exeext): New rules.
4274         (genprogerr): Add cfn-macros.
4275         * hash-set.h (hash_set): Use the traits value_type as the key.
4276         * gencfn-macros.c: New file.
4278 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4280         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4281         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4282         * builtins.c (associated_internal_fn): Handle them.
4284 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4286         * builtins.h (associated_internal_fn): Declare.
4287         (replacement_internal_fn): Likewise.
4288         * builtins.c: Include internal-fn.h
4289         (associated_internal_fn, replacement_internal_fn): New functions.
4290         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4291         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4292         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4293         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4294         (LDEXP): New functions.
4295         * internal-fn.c: Include recog.h.
4296         (unary_direct, binary_direct): New macros.
4297         (expand_direct_optab_fn): New function.
4298         (expand_unary_optab_fn): New macro.
4299         (expand_binary_optab_fn): Likewise.
4300         (direct_unary_optab_supported_p): Likewise.
4301         (direct_binary_optab_supported_p): Likewise.
4303 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4305         * coretypes.h (tree_pair): New type.
4306         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
4307         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4308         * internal-fn.h (direct_internal_fn_info): New structure.
4309         (direct_internal_fn_array): Declare.
4310         (direct_internal_fn_p, direct_internal_fn): New functions.
4311         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4312         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4313         (mask_store_direct, store_lanes_direct): New macros.
4314         (direct_internal_fn_array) New array.
4315         (get_multi_vector_move): Return the optab handler without asserting
4316         that it is available.
4317         (expand_LOAD_LANES): Rename to...
4318         (expand_load_lanes_optab_fn): ...this and add an optab argument.
4319         (expand_STORE_LANES): Rename to...
4320         (expand_store_lanes_optab_fn): ...this and add an optab argument.
4321         (expand_MASK_LOAD): Rename to...
4322         (expand_mask_load_optab_fn): ...this and add an optab argument.
4323         (expand_MASK_STORE): Rename to...
4324         (expand_mask_store_optab_fn): ...this and add an optab argument.
4325         (direct_internal_fn_types, direct_optab_supported_p)
4326         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4327         (direct_internal_fn_supported_p): New functions.
4328         (direct_mask_load_optab_supported_p): New macro.
4329         (direct_load_lanes_optab_supported_p): Likewise.
4330         (direct_mask_store_optab_supported_p): Likewise.
4331         (direct_store_lanes_optab_supported_p): Likewise.
4333 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4335         * tree-core.h (internal_fn): Move immediately after the definition
4336         of built_in_function.
4337         (combined_fn): New enum.
4338         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4339         (internal_fn_p, as_internal_fn): New functions.
4340         (get_call_combined_fn, combined_fn_name): Declare.
4341         * tree.c (get_call_combined_fn): New function.
4342         (combined_fn_name): Likewise.
4343         * gimple.h (gimple_call_combined_fn): Declare.
4344         * gimple.c (gimple_call_combined_fn): New function.
4346 2015-11-17  Martin Sebor  <msebor@redhat.com>
4348         PR c++/68308
4349         * cp/init.c (build_new_1): Check for expression constness
4350         the right way.
4352 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
4354         PR target/53587
4355         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4356         option list.
4357         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
4358         discussion of the Microsoft structure layout details here from
4359         its former home in extend.texi.
4360         * doc/extend.texi (x86 Variable Attributes): Replace detailed
4361         discussion with pointer to its new location.  Add cross-reference
4362         to corresponding type attributes.
4363         (x86 Type Attributes): Add cross-references to command-line options
4364         and variable attributes.
4366 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
4368         PR middle-end/68134
4369         * targhooks.c (default_get_mask_mode): Filter out
4370         scalar modes returned by mode_for_vector.
4372 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4374         PR target/68143
4375         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4376         offset from dstbase and use it appropriately in
4377         adjust_automodify_address.
4378         (arm_block_set_aligned_vect): Likewise.
4380 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
4382         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4383         (MULTILIB_DIRNAMES): Adjust accordingly.
4385 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
4387         * config/aarch64/aarch64-cores.def (cortex-a35): New.
4388         * config/aarch64/aarch64.c (cortexa35_tunings): New.
4389         * config/aarch64/aarch64-tune.md: Regenerate.
4390         * doc/invoke.texi (-mcpu): Add Cortex-A35
4392 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
4394         PR target/68263
4395         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4396         to 32 for IAMCU.
4397         * config/i386/sse.md (*mov<mode>_internal): Always enable
4398         AVX and SSE unaligned moves for IAMCU.
4400 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
4402         * tree-if-conv.c: Include varasm.h
4403         (ref_DR_map): Define.
4404         (baseref_DR_map): Like wise
4405         (struct ifc_dr): Add new tree predicate field.
4406         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4407         (memrefs_read_or_written_unconditionally): Remove.
4408         (write_memrefs_written_at_least_once): Remove.
4409         (ifcvt_memrefs_wont_trap): Use hash maps to query
4410         unconditional read/written information.
4411         (if_convertible_loop_p_1):  Initialize hash maps and predicates
4412         before hashing data references and delete hashmaps at the end.
4414 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
4416         PR 56036
4417         * doc/invoke.texi (Optimize Options): Move @end table to the right
4418         place.
4420 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
4422         PR 65129
4423         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4424         return value.
4426 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
4428         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
4429         128-bit types, just types that fit in a single vector.
4430         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
4432 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
4434         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
4435         in the user documentation.
4436         (define_peephole2, define_split): Similarly.
4438 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
4440         * lto-streamer-out.c (write_global_references): Adjust integer type.
4441         (lto_output_decl_state_refs): Likewise.
4443 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
4445         * config/arm/arm-cores.def (cortex-a35): New.
4446         * config/arm/arm.c (arm_cortex_a35_tune): New.
4447         * config/arm/arm-tables.opt: Regenerate.
4448         * config/arm/arm-tune.md: Regenerate.
4449         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
4450         * config/arm/t-aprofile: Likewise.
4451         * doc/invoke.texi (-mcpu): Likewise.
4453 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
4455         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
4456         and qdf24xx and xgene1 to match -march=armv8-a.
4458 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
4460         PR rtl-optimization/68330
4461         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
4462         of LSHIFTRT by a non-zero constant integer.
4464 2015-11-16  Richard Biener  <rguenther@suse.de>
4466         PR tree-optimization/68306
4467         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
4468         bogus copying from verify_data_ref_alignment and use continue
4469         instead of return.
4471 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
4472             Kaz Kojima  <kkojima@gcc.gnu.org>
4474         PR target/68277
4475         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
4476         operands[2].
4477         (*addsi3): Add another insn_and_split variant for reload.
4479 2015-11-16  Richard Biener  <rguenther@suse.de>
4481         PR middle-end/68117
4482         * cfgexpand.c (pass_expand::execute): Destroy the edge
4483         redirection var map before setting RTL CFG hooks.
4485 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
4487         * config/i386/sse.md (reduc_splus_v8df): Rename to...
4488         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
4490         (reduc_splus_v4df): Rename to...
4491         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
4493         (reduc_splus_v2df): Rename to...
4494         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
4496         (reduc_splus_v16sf): Rename to...
4497         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
4499         (reduc_splus_v8sf): Rename to...
4500         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
4502         (reduc_splus_v4sf): Rename to...
4503         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
4505         (reduc_<code>_<mode>, all 3 variants): Rename each to...
4506         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
4508         (reduc_umin_v8hf): Rename to...
4509         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
4511 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
4513         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
4514         without additional conditions.
4515         * doc/extend.texi (@item simd): New.
4517 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4519         * passes.c (first_pass_instance): Remove variable.
4520         (execute_todo): Remove setting of first_pass_instance.
4521         * tree-pass.h (first_pass_instance): Remove declaration.
4523 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4525         * passes.def: Add arg to pass_ccp pass instantiation.
4526         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
4527         instead of first_pass_instance.
4528         (do_ssa_ccp): Add and handle param nonzero_p.
4529         (pass_ccp::pass_ccp): Initialize nonzero_p.
4530         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
4531         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
4532         (pass_ccp::nonzero_p): New private member.
4534 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4536         * passes.def: Add arg to pass_object_sizes pass instantiation.
4537         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
4538         insert_min_max_p.
4539         (pass_object_sizes::set_pass_param): New member function.  Set
4540         insert_min_max_p.
4541         (pass_object_sizes::insert_min_max_p): New private member.
4542         (pass_object_sizes::execute): Use insert_min_max_p instead of
4543         first_pass_instance.
4545 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4547         * passes.def: Add arg to pass_dominator pass instantiation.
4548         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
4549         of comment.
4550         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
4551         may_peel_loop_headers_p.
4552         (pass_dominator::set_pass_param): New member function.  Set
4553         may_peel_loop_headers_p.
4554         (pass_dominator::may_peel_loop_headers_p): New private member.
4555         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
4556         first_pass_instance.
4558 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4560         * passes.def: Add arg to pass_reassoc pass instantiation.
4561         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
4562         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
4563         of first_pass_instance.
4564         (execute_reassoc): Add and handle insert_powi_p parameter.
4565         (pass_reassoc::insert_powi_p): New private member.
4566         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
4567         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
4568         (pass_reassoc::execute): Call execute_reassoc with extra arg.
4570 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4572         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
4573         * gen-pass-instances.awk (handle_line): Same.
4574         * pass_manager.h (class pass_manager): Define and undefine
4575         NEXT_PASS_WITH_ARG.
4576         * passes.c (opt_pass::set_pass_param): New function.
4577         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
4578         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
4579         * tree-pass.h (gimple_opt::set_pass_param): Declare.
4580         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
4581         warn_array_bounds_p parameter.
4582         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
4583         (pass_vrp::set_pass_param): New function.
4584         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
4585         (pass_vrp::warn_array_bounds_p): New private member.
4587 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4589         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
4590         (output_probe_stack_range): Rotate the loop and simplify.
4592 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4594         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4595         (output_probe_stack_range): Rotate the loop and simplify.
4597 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4599         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
4600         an lea instruction when possible.
4601         (output_adjust_stack_and_probe): Rotate the loop and simplify.
4602         (ix86_emit_probe_stack_range): Adjust.
4603         (output_probe_stack_range): Rotate the loop and simplify.
4605 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4607         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
4608         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
4609         with appropriate pragma GCC target.
4611 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4613         PR target/65837
4614         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
4615         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
4617 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
4619         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
4620         (cortexa57_tunings): Use it.
4622 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4624         PR target/65837
4625         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
4626         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
4627         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
4628         undefine __ARM_FP.
4629         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
4630         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
4631         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
4632         * doc/extend.texi (-mfpu=): Describe attribute.
4634 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4636         PR target/65837
4637         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
4638         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
4639         arm_init_neon_builtins.
4640         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
4641         (arm_init_neon_builtins_internal)
4642         (arm_init_crypto_builtins_internal):
4643         Test and set neon_set_p, neon_crypto_set_p.
4644         (neon_set_p, neon_crypto_set_p): New static booleans.
4646 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4648         PR target/65837
4649         * config/arm/arm.c (arm_fpu_desc): Remove.
4650         (all_fpus): Make global.
4651         (arm_option_override): Use FPU TARGET accessors.
4652         (arm_declare_function_name): Likewise.
4653         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
4654         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
4655         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
4656         (TARGET_NEON): Likewise.
4657         (all_fpus): Declare extern.
4658         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
4659         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
4661 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4663         PR middle-end/68366
4664         * sdbout.c: Include emit-rtl.h and function.h.
4666 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
4668         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
4669         Remove support for FreeBSD 5 and earlier.
4671 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4673         * configure: Regenerate.
4674         * configure.ac: Always define ENABLE_OFFLOADING.
4675         * cgraph.c (cgraph_node::create): Adjust.
4676         * gcc.c (process_command): Likewise.
4677         * omp-low.c (create_omp_child_function): Likewise.
4678         (expand_omp_target): Likewise.
4679         * varpool.c (varpool_node::get_create): Likewise.
4681 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4683         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
4684         * df-scan.c (df_get_exit_block_use_set): Adjust.
4685         * except.c (expand_eh_return): Likewise.
4687 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4689         * config/i386/i386.h (TARGET_PECOFF): Remove define.
4690         * defaults.h (TARGET_PECOFF): New default definition.
4691         * varasm.c (handle_vtv_comdat_section): Adjust.
4693 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4695         * defaults.h: New definition of SDB_DEBUGGING_INFO.
4696         * doc/tm.texi: Regenerate.
4697         * doc/tm.texi.in: Adjust.
4698         * final.c (rest_of_clean_state): Remove check if
4699         SDB_DEBUGGING_INFO is defined.
4700         * function.c (number_blocks): Likewise.
4701         * output.h: Likewise.
4702         * sdbout.c: Likewise.
4703         * toplev.c (process_options): Likewise.
4705 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4707         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
4708         (enum sdb_masks): Likewise.
4709         * sdbout.c (plain_type_1): Likewise.
4710         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
4712 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4714         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
4715         internal calls - 0 if ordered simd and 1 for ordered threads simd.
4716         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
4717         argument is 1, replace it with GOMP_ordered_* call instead of removing
4718         it.
4720 2015-11-13  Rich Felker <dalias@libc.org>
4722         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
4723         address loading hack for FDPIC targets.
4725 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
4726             Jeff Law  <law@redhat.com>
4728         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4729         * common.opt (-fsplit-paths): New flag controlling path splitting.
4730         * doc/invoke.texi (fsplit-paths): Document.
4731         * opts.c (default_options_table): Add -fsplit-paths to -O2.
4732         * passes.def: Add split_paths pass.
4733         * timevar.def (TV_SPLIT_PATHS): New timevar.
4734         * tracer.c: Include "tracer.h"
4735         (ignore_bb_p): No longer static.
4736         (transform_duplicate): New function, broken out of tail_duplicate.
4737         (tail_duplicate): Use transform_duplicate.
4738         * tracer.h (ignore_bb_p): Declare
4739         (transform_duplicate): Likewise.
4740         * tree-pass.h (make_pass_split_paths): Declare.
4741         * gimple-ssa-split-paths.c: New file.
4743 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
4744             Marek Polacek  <polacek@redhat.com>
4745             Jason Merrill  <jason@redhat.com>
4747         * convert.c (maybe_fold_build1_loc): New.
4748         (maybe_fold_build2_loc): New.
4749         (convert_to_pointer_1): Split out from convert_to_pointer.
4750         (convert_to_pointer_nofold): New.
4751         (convert_to_real_1): Split out from convert_to_real.
4752         (convert_to_real_nofold): New.
4753         (convert_to_integer_1): Split out from convert_to_integer.
4754         (convert_to_integer_nofold): New.
4755         (convert_to_complex_1): Split out from convert_to_complex.
4756         (convert_to_complex_nofold): New.
4757         * convert.h: Declare new functions.
4758         * tree-complex.c (create_one_component_var): Break up line to
4759         avoid sequence point issues.
4761 2015-11-13  Jason Merrill  <jason@redhat.com>
4763         * fold-const.c (fold_convert_const): Fold changing cv-quals on
4764         VECTOR_CST.
4766         * hash-map.h (hash_map::empty): New.
4768 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4770         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4771         (oacc_loop_fixed_partitions): Correct return type to bool.
4772         (oacc_loop_auto_partitions): New.
4773         (oacc_loop_partition): Take mask argument, call
4774         oacc_loop_auto_partitions.
4775         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4777 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4779         * config/rs6000/constraints.md (we constraint): New constraint for
4780         64-bit power9 vector support.
4781         (wL constraint): New constraint for the element in a vector that
4782         can be addressed by the MFVSRLD instruction.
4784         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4785         declaration.
4786         (convert_int_to_float128): Likewise.
4787         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4788         hardware support for IEEE 128-bit floating point.
4789         (rs6000_expand_float128_convert): Likewise.
4790         (convert_float128_to_int): Likewise.
4791         (convert_int_to_float128): Likewise.
4793         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4794         ISA 3.0 hardware IEEE 128-bit floating point.
4795         (UNSPEC_IEEE128_MOVE): Likewise.
4796         (UNSPEC_IEEE128_CONVERT): Likewise.
4797         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4798         (Ff): Add support for DImode.
4799         (Fv): Likewise.
4800         (any_fix code iterator): New and updated iterators for IEEE
4801         128-bit floating point hardware support.
4802         (any_float code iterator): Likewise.
4803         (s code attribute): Likewise.
4804         (su code attribute): Likewise.
4805         (az code attribute): Likewise.
4806         (uns code attribute): Likewise.
4807         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4808         floating point hardware support.
4809         (abs<mode>2, FLOAT128 iterator): Likewise.
4810         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4811         floating point hardware.
4812         (sub<mode>3, IEEE128 iterator): Likewise.
4813         (mul<mode>3, IEEE128 iterator): Likewise.
4814         (div<mode>3, IEEE128 iterator): Likewise.
4815         (copysign<mode>3, IEEE128 iterator): Likewise.
4816         (sqrt<mode>2, IEEE128 iterator): Likewise.
4817         (neg<mode>2, IEEE128 iterator): Likewise.
4818         (abs<mode>2, IEEE128 iterator): Likewise.
4819         (nabs<mode>2, IEEE128 iterator): Likewise.
4820         (fma<mode>4_hw, IEEE128 iterator): Likewise.
4821         (fms<mode>4_hw, IEEE128 iterator): Likewise.
4822         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4823         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4824         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4825         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4826         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4827         (fix_fixuns code attribute): Likewise.
4828         (float_floatuns code attribute): Likewise.
4829         (fix<uns>_<mode>si2_hw): Likewise.
4830         (fix<uns>_<mode>di2_hw): Likewise.
4831         (float<uns>_<mode>si2_hw): Likewise.
4832         (float<uns>_<mode>di2_hw): Likewise.
4833         (xscvqp<su>wz_<mode>): Likewise.
4834         (xscvqp<su>dz_<mode>): Likewise.
4835         (xscv<su>dqp_<mode): Likewise.
4836         (ieee128_mfvsrd): Likewise.
4837         (ieee128_mfvsrwz): Likewise.
4838         (ieee128_mtvsrw): Likewise.
4839         (ieee128_mtvsrd): Likewise.
4840         (trunc<mode>df2_odd): Likewise.
4841         (cmp<mode>_h): Likewise.
4842         (128-bit GPR splitters): Don't split a 128-bit move that is a
4843         direct move between GPR and vector registers using ISA 3.0 direct
4844         move instructions.
4845         (maddld4): Add support for the ISA 3.0 integer multiply-add
4846         instruction.
4848         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4849         debugging.
4850         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4851         constraint.  Disable the VSX<->GPR direct move helpers if we have
4852         the MFVSRLD and MTVSRDD instructions.
4853         (rs6000_secondary_reload_simple_move): Add support for doing
4854         vector direct moves directly without additional scratch registers
4855         if we have ISA 3.0 instructions.
4856         (rs6000_secondary_reload_direct_move): Update comments.
4857         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4858         instructions.
4860         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4861         direct move instructions.
4862         (vsx_movti_64bit): Likewise.
4863         (vsx_extract_<mode>): Likewise.
4865         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4866         macros for ISA 3.0 direct move instructions.
4867         (TARGET_DIRECT_MOVE_128): Likewise.
4868         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4869         instruction.
4871         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4872         constraints.  Update wa documentation to say not to use %x<n> on
4873         instructions that only take Altivec registers.
4875 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4877         * Makefile.in (OBJS): Add gcc-rich-location.o.
4878         * diagnostic.c (diagnostic_append_note): Pass line_table to
4879         rich_location ctor.
4880         (emit_diagnostic): Likewise.
4881         (inform): Likewise.
4882         (inform_n): Likewise.
4883         (warning): Likewise.
4884         (warning_at): Likewise.
4885         (warning_n): Likewise.
4886         (pedwarn): Likewise.
4887         (permerror): Likewise.
4888         (error): Likewise.
4889         (error_n): Likewise.
4890         (error_at): Likewise.
4891         (sorry): Likewise.
4892         (fatal_error): Likewise.
4893         (internal_error): Likewise.
4894         (internal_error_no_backtrace): Likewise.
4895         (source_range::debug): Likewise.
4896         * gcc-rich-location.c: New file.
4897         * gcc-rich-location.h: New file.
4898         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4899         (warning_at): Likewise.
4900         * gimple.h (gimple_set_block): Use set_block function.
4901         * input.c (dump_line_table_statistics): Dump stats on how many
4902         ranges were optimized vs how many needed ad-hoc table.
4903         (write_digit_row): Add "map" param; use its range_bits
4904         to calculate the per-character offset.
4905         (dump_location_info): Print the range and column bits for each
4906         ordinary map.  Use the range bits to calculate the per-character
4907         offset.  Pass the map as a new param to the various calls to
4908         write_digit_row.  Eliminate uses of
4909         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4910         * print-tree.c (print_node): Print any source range information.
4911         * rtl-error.c (diagnostic_for_asm): Likewise.
4912         * toplev.c (general_init): Initialize line_table's
4913         default_range_bits.
4914         * tree-cfg.c (move_block_to_fn): Likewise.
4915         (move_block_to_fn): Likewise.
4916         * tree-inline.c (copy_phis_for_bb): Likewise.
4917         * tree.c (tree_set_block): Likewise.
4918         (get_pure_location): New function.
4919         (set_source_range): New functions.
4920         (set_block): New function.
4921         (set_source_range): New functions.
4922         * tree.h (CAN_HAVE_RANGE_P): New.
4923         (EXPR_LOCATION_RANGE): New.
4924         (EXPR_HAS_RANGE): New.
4925         (get_expr_source_range): New inline function.
4926         (DECL_LOCATION_RANGE): New.
4927         (set_source_range): New decls.
4928         (get_decl_source_range): New inline function.
4930 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4932         PR tree-optimization/67682
4933         * tree-vect-slp.c (vect_split_slp_store_group): New.
4934         (vect_analyze_slp_instance): During basic block SLP, recurse on
4935         subgroups if vect_build_slp_tree fails after 1st vector.
4937 2015-11-13  Christian Bruel  <christian.bruel@st.com>
4939         PR target/65837
4940         * config/arm/arm.c (arm_option_override): Move NEON check...
4941         (arm_option_check_internal): here
4942         (arm_file_start): Move .fpu print...
4943         (arm_declare_function_name): here
4944         (arm_option_print): Dump current fpu name.
4945         * config/arm/arm.opt (arm_fpu_index): Mark Save.
4947 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
4948             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4950         * combine.c (subst): Don't substitute or simplify when
4951         handling register-wise widening multiply.
4952         (force_to_mode): Likewise.
4954 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4956         PR tree-optimization/68264
4957         * tree-call-cdce.c (gen_one_condition): Update commentary.
4958         (gen_conditions_for_pow_int_base): Invert the sense of the tests
4959         passed to gen_one_condition.
4960         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
4961         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4962         using EDGE_FALSE_VALUE for edges to the call block and
4963         EDGE_TRUE_VALUE for the others.
4965 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4967         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4968         complex types.
4970 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4972         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4974 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4976         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4977         len_of_prefix.
4979 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4981         * gen-pass-instances.awk (handle_line): Add args_str variable.
4983 2015-11-13  Martin Liska  <mliska@suse.cz>
4985         * graphite-poly.c (free_scop): Release scop->drs vector.
4986         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4987         Release dom vector.
4988         (try_generate_gimple_bb): Use vNULL as a default initialization
4989         for vectors.
4991 2015-11-13  Martin Liska  <mliska@suse.cz>
4993         PR ipa/68311
4994         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4995         Replace array initialization (using a variable post-increment)
4996         that possible triggers multiple unsequenced modifications
4997         with a pair of pushes to a vector.
4999 2015-11-13  Richard Biener  <rguenther@suse.de>
5001         PR tree-optimization/68306
5002         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
5003         loop related checks ...
5004         (vect_verify_datarefs_alignment): ... here.
5005         (vect_slp_analyze_and_verify_node_alignment): Compute and
5006         verify alignment of the single DR that it matters.
5007         * tree-vect-stmts.c (vectorizable_store): Add an assert.
5008         (vectorizable_load): Add a comment.
5009         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
5010         for determining load cost.
5012 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
5014         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
5015         mix of boolean and integer vectors in a single statement.
5016         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
5017         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
5018         determine constant type.
5019         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
5020         for loop invariants.
5022 2015-11-13  Alan Hayward <alan.hayward@arm.com>
5024         PR tree-optimization/66558
5025         * tree-vect-loop.c (is_integer_induction):Add.
5026         (vectorizable_reduction): Add integer induction checks.
5028 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5030         Revert [ARM] Remove neon-testgen.ml and generated tests.
5032         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
5034         [ARM] Remove neon-testgen.ml and generated tests.
5036         * config/arm/neon-testgen.ml: Remove.
5038 2015-11-13  Richard Biener  <rguenther@suse.de>
5040         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
5041         Signal fatal failure if early checks fail.
5042         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
5043         do not bother testing further vector sizes.
5045 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
5047         * config/i386/predicates.md (misaligned_operand): Return true if
5048         operand is aligned to less than its natural alignmnet.
5050 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
5052         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
5053         (vec_cmpu@var{m}@var{n}): New item.
5054         (vcond@var{m}@var{n}): Specify comparison is signed.
5055         (vcondu@var{m}@var{n}): New item.
5056         (vcond_mask_@var{m}@var{n}): New item.
5057         (maskload@var{m}@var{n}): New item.
5058         (maskstore@var{m}@var{n}): New item.
5060 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
5062         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5063         types of stored value and storage are compatible.
5065 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
5067         * gcc.c (POST_LINK_SPEC): Define if not already defined.
5068         (LINK_COMMAND_SPEC): Use post_link.
5069         (post_link_spec): New, initialize to POST_LINK_SPEC.
5070         (post_link): Initialize new static spec.
5071         * doc/tm.texi.in (POST_LINK_SPEC): Document.
5072         * doc/tm.texi: Regenerated.
5074 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5076         PR driver/67613
5077         * Makefile.in (GCC_OBJS): Add spellcheck.o.
5078         (OBJS): Add spellcheck-tree.o.
5079         * gcc.c: Include "spellcheck.h".
5080         (suggest_option): New function.
5081         (driver::handle_unrecognized_options): Call suggest_option to
5082         provide a hint about misspelled options.
5083         * spellcheck.c: Update file comment.
5084         (levenshtein_distance): Convert 4-param implementation from static
5085         to extern scope.  Remove note about unit tests from leading
5086         comment for const char * implementation.  Move tree
5087         implementation to...
5088         * spellcheck-tree.c: New file.
5089         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
5091 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
5093         * Makefile.in (OBJS): Add spellcheck.o.
5094         * spellcheck.c: New file.
5095         * spellcheck.h: New file.
5097 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
5099         * config/ft32/ft32.md (*sne): New insn pattern.
5101 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
5103         * cprop.c (is_too_expensive): Remove.
5104         (gcse.h): Include.
5105         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
5106         is_too_expensive.
5107         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
5108         * gcse.c (is_too_expensive): Rename to ...
5109         (gcse_or_cprop_is_too_expensive): ... this.
5110         Expand warning to add required size of max-gcse-memory.
5111         (one_pre_gcse_pass): Use it.
5112         (one_code_hoisting_pass): Use it.
5113         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
5115 2015-11-12  James Norris  <jnorris@codesourcery.com>
5116             Joseph Myers  <joseph@codesourcery.com>
5118         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
5119         GF_OMP_TARGET_KIND_OACC_DECLARE.
5120         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
5121         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5122         * gimplify.c (oacc_declare_returns): New.
5123         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
5124         (device_resident_p): New function.
5125         (oacc_default_clause): Handle device_resident clause.
5126         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
5127         (gimplify_expr): Handle OACC_DECLARE.
5128         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5129         * omp-low.c (expand_omp_target): Handle
5130         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5131         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5132         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5133         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5134         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5135         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5136         GOMP_MAP_DEVICE_RESIDENT.
5138 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
5140         [ARM] Remove neon-testgen.ml and generated tests.
5142         * config/arm/neon-testgen.ml: Remove.
5144 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
5146         * config/aarch64/aarch64-cores.def (qdf24xx): New.
5147         * config/aarch64/aarch64-tune.md: Regenerated.
5148         * config/arm/arm-cores.def (qdf24xx): New.
5149         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5150         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5151         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5152         (ARM Options/-mtune): Likewise.
5154 2015-11-12  Martin Liska  <mliska@suse.cz>
5156         * config/i386/i386.c (ix86_valid_target_attribute_p):
5157         Finalize options at the of the function.
5158         * gcc.c (driver_get_configure_time_options): Call newly
5159         introduced init_opts_obstack.
5160         * lto-wrapper.c (main): Likewise.
5161         * opts.c (init_opts_obstack): New function.
5162         (init_options_struct): Call newly introduced init_opts_obstack.
5163         * opts.h (init_options_struct): Declare.
5165 2015-11-12  Martin Liska  <mliska@suse.cz>
5167         PR ipa/68035
5168         * ipa-icf.c (void sem_item::set_hash): New function.
5169         (sem_function::get_hash): Use renamed m_hash member variable.
5170         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5171         (sem_item::update_hash_by_local_refs): Likewise.
5172         (sem_variable::get_hash): Use renamed m_hash member variable.
5173         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5174         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5175         (sem_item_optimizer::build_graph): As the hash value of an item
5176         is lazy initialized, force the calculation.
5177         * ipa-icf.h (set_hash): Declare new function and rename hash member
5178         variable to m_hash.
5180 2015-11-12  Richard Biener  <rguenther@suse.de>
5182         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5183         Rename to vect_slp_analyze_instance_dependence.
5184         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5185         Remove WAR special-case.
5186         (vect_slp_analyze_node_dependences): Instead add more specific
5187         code here, not relying on other instances being vectorized.
5188         (vect_slp_analyze_instance_dependence): Adjust accordingly.
5189         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5190         vertical space in dump files.
5191         (vect_print_slp_tree): Likewise.
5192         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5193         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5194         not vectorized stmts until after dependence analysis removed
5195         instances.  Merge alignment and dependence checks.
5196         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5197         flag on all stmts.
5199 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
5201         * config/aarch64/aarch64-protos.h (tune_params): Add new members
5202         "max_case_values" and "cache_line_size".
5203         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5204         function.
5205         (aarch64_override_options_internal): Tune heuristics based on new
5206         members in "tune_params".
5207         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5209 2015-11-12  Richard Biener  <rguenther@suse.de>
5211         PR tree-optimization/68306
5212         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5213         relevant and vectorizable checks here.
5214         (vect_verify_datarefs_alignment): Add relevant check here.
5216 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
5218         * gimplify.c (oacc_default_clause): New.
5219         (omp_notice_variable): Call it.
5221 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5223         PR tree-optimization/68305
5224         * tree-vect-slp.c (vect_get_constant_vectors): Support
5225         COND_EXPR with SSA_NAME as a condition.
5227 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5229         * config/visium/visium-protos.h (notice_update_cc): Delete.
5230         (print_operand): Likewise.
5231         (print_operand_address): Likewise.
5233 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5235         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5236         FUNCTION_VALUE_REGNO_P): Remove.
5237         * config/alpha/alpha-protos.h (function_value): Remove.
5238         * config/alpha/alpha.c (function_value): Rename to...
5239         (alpha_function_value_1): ... this.  Make static.
5240         (alpha_function_value, alpha_libcall_value,
5241         alpha_function_value_regno_p): New functions.
5242         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5243         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5245 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5247         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5248         * config/alpha/alpha.c (alpha_memory_latency): Make static.
5249         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5250         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5252 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5254         PR target/67265
5255         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5256         assertion on the CFA register.
5258 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5260         * expr.c (do_store_flag): Expand vector comparison as
5261         VEC_COND_EXPR if vector comparison is not supported by target.
5263 2015-11-12  Renlin Li  <renlin.li@arm.com>
5265         * config/arm/arm.md (addsi3_compare_op2): Make the order of
5266         assembly pattern consistent with constraint order.
5268 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5270         * gen-pass-instances.awk (handle_line): Simplify match regexp.
5272 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5274         * gen-pass-instances.awk (handle_line): Simplify init of
5275         postfix_starts_at.
5277 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5279         * gen-pass-instances.awk (handle_line): Rename var where to
5280         call_starts_at.
5282 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
5284         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5285         do not expand to rtl.
5287 2015-11-12  Richard Biener  <rguenther@suse.de>
5289         PR tree-optimization/58497
5290         * tree-vect-generic.c: Include gimplify.h.
5291         (tree_vec_extract): Lookup constant/constructor DEFs.
5292         (do_cond): Unshare cond.
5294 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5296         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5297         combined insn if the alignment of vector mode memory operand
5298         is less than ssememalign.
5300 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5302         * gen-pass-instances.awk (handle_line): Print parentheses and
5303         pass_name explicitly.
5305 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5307         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5308         and postfix vars.
5310 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5312         * gen-pass-instances.awk (handle_line): Add comments.
5314 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5316         * gen-pass-instances.awk (handle_line): Rename len_of_end to
5317         len_of_close.
5319 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5321         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5323 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5325         * gen-pass-instances.awk (handle_line): Restructure using early-out.
5327 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5329         * gen-pass-instances.awk (handle_line): Unify semicolon use.
5331 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5333         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5335 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5337         * gen-pass-instances.awk: Add emacs indent setting.
5339 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5341         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5342         to match.pd.
5343         Move Convert A/(B/C) to (A/B)*C to match.pd.
5344         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5345         Move Optimize (X & (-A)) / A where A is a power of 2, to
5346         X >> log2(A) to match.pd.
5348         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5349         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5350         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5351         New simplifier.
5352         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5354 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
5356         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5357         variable.
5358         (neon_vst2_lane<mode>): Likewise.
5359         (neon_vld3_lane<mode>): Likewise.
5360         (neon_vst3_lane<mode>): Likewise.
5361         (neon_vld4_lane<mode>): Likewise.
5362         (neon_vst4_lane<mode>): Likewise.
5364 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
5365             Sebastian Pop  <s.pop@samsung.com>
5367         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5368         New member codegen_error
5369         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5370         early return.
5371         (translate_isl_ast_node_user): Early return in case of error.
5372         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5373         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5374         (add_parameters_to_ivs_params): Remove macro.
5375         (graphite_regenerate_ast_isl): Add if_region pointer to region.
5376         * graphite-poly.c (new_poly_dr): Remove macro.
5377         (print_pdr): Same.
5378         (new_gimple_poly_bb): Same.
5379         (free_gimple_poly_bb): Same.
5380         (print_scop_params): Same.
5381         * graphite-poly.h (struct poly_dr): Same.
5382         (struct poly_bb): Add new_bb.
5383         (gbb_from_bb): Remove dead code.
5384         (pbb_from_bb): Same.
5385         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5386         (parameter_index_in_region): Same.
5387         (find_scop_parameters): Same.
5388         (build_cross_bb_scalars_def): New.
5389         (build_cross_bb_scalars_use): New.
5390         (graphite_find_cross_bb_scalar_vars): New
5391         (try_generate_gimple_bb): Reads and Writes.
5392         (build_alias_set): Move.
5393         (gather_bbs::before_dom_children): Gather bbs visited.
5394         (build_scops): call build_alias_set.
5395         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5396         (remove_simple_copy_phi): Delete.
5397         (remove_invariant_phi): Delete.
5398         (simple_copy_phi_p): Delete.
5399         (reduction_phi_p): Delete.
5400         (isl_id_for_dr): Remove unused param.
5401         (parameter_index_in_region_1): Remove macro usage.
5402         (set_scop_parameter_dim): Same.
5403         (add_param_constraints): Same.
5404         (add_conditions_to_constraints): Same
5405         (build_scop_iteration_domain): Same.
5406         (pdr_add_alias_set): Comment.
5407         (add_scalar_version_numbers): New.
5408         (build_poly_dr): ISL id.
5409         (build_scop_drs): Move.
5410         (build_poly_sr_1): Same.
5411         (insert_stmts): Remove.
5412         (build_poly_sr): New.
5413         (new_pbb_from_pbb): Delete.
5414         (insert_out_of_ssa_copy_on_edge): Delete.
5415         (create_zero_dim_array): Delete.
5416         (scalar_close_phi_node_p): Delete.
5417         (propagate_expr_outside_region): Delete.
5418         (rewrite_close_phi_out_of_ssa): Delete.
5419         (rewrite_phi_out_of_ssa): Delete.
5420         (rewrite_degenerate_phi): Delete.
5421         (rewrite_reductions_out_of_ssa): Delete.
5422         (rewrite_cross_bb_scalar_dependence): Delete.
5423         (handle_scalar_deps_crossing_scop_limits):
5424         (rewrite_cross_bb_scalar_deps): Delete.
5425         (build_poly_scop): Remove calls to out-of-ssa functions.
5426         * graphite.c (graphite_transform_loops): Early return in case of
5427         codegen error.
5428         * sese.c (debug_rename_map_1): Delete.
5429         (debug_rename_map): Delete.
5430         (sese_record_loop): Remove macro.
5431         (build_sese_loop_nests): Same.
5432         (new_sese_info): Same.
5433         (free_sese_info): Same.
5434         (sese_insert_phis_for_liveouts):
5435         (is_loop_closed_ssa_use): New.
5436         (number_of_phi_nodes): New.
5437         (bb_contains_loop_close_phi_nodes): New.
5438         (bb_contains_loop_phi_nodes): New.
5439         (phi_uses_name): New.
5440         (is_valid_rename):
5441         (get_rename): Add old_bb and loop_phi for more precise matching of
5442         exprs.
5443         (set_rename): Pass region.
5444         (later_of_the_two): New.
5445         (gsi_insert_earliest): New.
5446         (collect_all_ssa_names): New.
5447         (substitute_ssa_name): New.
5448         (rename_all_uses): New.
5449         (get_rename_from_scev): New.
5450         (rename_uses): Pass old_bb for more precise matching of exprs.
5451         (get_def_bb_for_const): New.
5452         (get_new_name): New.
5453         (get_loc): New.
5454         (get_edges): New.
5455         (copy_loop_phi_args): New.
5456         (copy_loop_phi_nodes): New.
5457         (get_loop_init_value): New.
5458         (find_init_value): New.
5459         (find_init_value_close_phi): New.
5460         (copy_loop_close_phi_args): New.
5461         (copy_loop_close_phi_nodes): New.
5462         (add_phi_arg_for_new_expr): New.
5463         (copy_cond_phi_args): New.
5464         (copy_cond_phi_nodes): New.
5465         (copy_phi_nodes): New.
5466         (should_copy_to_new_region): New.
5467         (set_rename_for_each_def): New.
5468         (graphite_copy_stmts_from_block): Early return in case of error.
5469         (copy_bb_and_scalar_dependences): Same.
5470         * sese.h (vec_find): New.
5471         (SESE_PARAMS): Delete.
5472         (SESE_LOOPS): Delete.
5473         (SESE_LOOP_NEST): Delete.
5474         (sese_contains_loop): Remove macro usage.
5475         (sese_nb_params): Same.
5476         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
5478 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5480         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
5481         isl_union_map_add_map on every pbb->schedule.
5483 2015-11-11  Tom de Vries  <tom@codesourcery.com>
5485         * tree-parloops.c (create_parallel_loop): Return void.
5487 2015-11-11  Tom de Vries  <tom@codesourcery.com>
5489         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
5490         block only when needed.
5492 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
5494         * config/alpha/alpha-protos.h (print_operand): Remove.
5495         (print_operand_address): Remove.
5496         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
5497         (PRINT_OPERAND_ADDRESS): Remove.
5498         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
5499         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
5500         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
5501         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
5502         (print_operand_address): Rename to...
5503         (alpha_print_operand_address): ...this and make static.
5504         (print_operand): Rename to...
5505         (alpha_print_operand): ...this and make static.
5506         (alpha_print_operand_punct_valid_p): New static function.
5508 2015-11-11  Richard Biener  <rguenther@suse.de>
5510         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
5511         Declare.
5512         (vect_analyze_data_refs_alignment): Make loop vect specific.
5513         (vect_verify_datarefs_alignment): Likewise.
5514         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
5515         Add missing continue.
5516         (vect_compute_data_ref_alignment): Export.
5517         (vect_compute_data_refs_alignment): Merge into...
5518         (vect_analyze_data_refs_alignment): ... this.
5519         (verify_data_ref_alignment): Split out from ...
5520         (vect_verify_datarefs_alignment): ... here.
5521         (vect_slp_analyze_and_verify_node_alignment): New function.
5522         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
5523         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
5524         misplaced checks on alignment.
5525         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
5526         alignment analysis after SLP discovery and do it per instance.
5527         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
5528         bother to re-try using different vector sizes.
5530 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
5531             Cesar Philippidis  <cesar@codesourcery.com>
5533         * gimplify.c (enum omp_region_type): Add ORT_ACC,
5534         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
5535         (gimple_add_tmp_var): Add ORT_ACC checks.
5536         (gimplify_var_or_parm_decl): Likewise.
5537         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
5538         (omp_add_variable): Look in outer contexts for openacc and allow
5539         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
5540         (omp_notice_variable, omp_is_private, omp_check_private): Add
5541         ORT_ACC checks.
5542         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
5543         Permit private openacc reductions.
5544         (gimplify_oacc_cache): Specify ORT_ACC.
5545         (gimplify_omp_workshare): Adjust OpenACC region types.
5546         (gimplify_omp_target_update): Likewise.
5547         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
5548         (lower-rec_input_clauses): Don't handle openacc firstprivate
5549         references here.
5550         (lower_omp_target): Emit initializers for openacc firstprivate vars.
5552 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
5554         PR target/67265
5555         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
5556         frame pointer for stack checking if non-call exceptions aren't used.
5557         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
5559 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
5561         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
5562         [LA]SHIFTRT.
5564 2015-11-11  Martin Liska  <mliska@suse.cz>
5565             Richard Biener  <rguenther@suse.de>
5567         PR rtl-optimization/68287
5568         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
5569         number of elements.
5571 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
5573         * config/mips/mips.c (mips_breakable_sequence_p): New function.
5574         (mips_break_sequence): New function.
5575         (mips_reorg_process_insns): Use them. Use compact branches in selected
5576         situations.
5578 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
5580         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
5582 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
5583             Jim Wilson  <wilson@gcc.gnu.org>
5585         PR target/67305
5586         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
5587         be true and eliminable registers mentioned.
5589 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
5591         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
5592         options.
5593         * config/arc/arc-opts.h: Add ARCv2 CPUs.
5594         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
5595         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
5596         situation, and store instructions with large offsets.
5597         (arc_secondary_reload_conv): New function.
5598         (arc_init): Add ARCv2 options.
5599         (arc_conditional_register_usage): Select the proper register usage
5600         for ARCv2 processors.
5601         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
5602         architecture.
5603         (arc_compute_function_type): Likewise.
5604         (arc_print_operand): Handle new ARCv2 punctuation characters.
5605         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
5606         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
5607         function.
5608         (arc_reorg, arc_hazard): Use it.
5609         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
5610         (ASM_SPEC): Add ARCv2 options.
5611         (TARGET_NORM): ARC HS has norm instructions by default.
5612         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
5613         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
5614         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
5615         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
5616         Likewise.
5617         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
5618         (TARGET_LP_WR_INTERLOCK): Likewise.
5619         * config/arc/arc.md
5620         (commutative_binary_mult_comparison_result_used, movsicc_insn)
5621         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
5622         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
5623         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
5624         Use it for ARCv2.
5625         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
5626         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
5627         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
5628         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
5629         (extzvsi): New pattern.
5630         * config/arc/arc.opt: New ARCv2 options.
5631         * config/arc/arcEM.md: New file.
5632         * config/arc/arcHS.md: Likewise.
5633         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
5634         values.
5635         (Cm2): A signed 9-bit integer constant constraint.
5636         (C62): An unsigned 6-bit integer constant constraint.
5637         (C16): A signed 16-bit integer constant constraint.
5638         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
5639         (short_const_int_operand): New predicate.
5640         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
5641         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
5642         -mcode-density and -mdiv-rem.
5644 2015-11-11  Julia Koval  <julia.koval@intel.com>
5646         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
5648 2015-11-11  Julia Koval  <julia.koval@intel.com>
5650         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
5652 2015-11-11  Martin Liska  <mliska@suse.cz>
5654         * gimple-ssa-strength-reduction.c (create_phi_basis):
5655         Use auto_vec.
5656         * passes.c (release_dump_file_name): New function.
5657         (pass_init_dump_file): Used from this function.
5658         (pass_fini_dump_file): Likewise.
5659         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
5660         * var-tracking.c (vt_initialize): Use pool_allocator.
5662 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
5663             Jiong Wang      <jiong.wang@arm.com>
5665         PR tree-optimization/68234
5666         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
5667         node which estimiated to be VR_VARYING initially.
5669 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
5671         * regname.c (scan_rtx_reg): Check the matching number of consecutive
5672         registers when tying chains.
5673         (build_def_use): Move terminated_this_insn earlier in the function.
5675 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
5677         * configure.ac: Use = with test and not ==.
5678         * configure: Regenerated.
5680 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
5682         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
5683         machine asserts.  Update defines for 64 bit.
5685 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5687         PR target/63870
5688         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
5689         lane number.
5690         (neon_vst1_lane<mode>): Likewise.
5691         (neon_vld2_lane<mode>): Likewise.
5692         (neon_vst2_lane<mode>): Likewise.
5693         (neon_vld3_lane<mode>): Likewise.
5694         (neon_vst3_lane<mode>): Likewise.
5695         (neon_vld4_lane<mode>): Likewise.
5696         (neon_vst4_lane<mode>): Likewise.
5698 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5700         PR target/63870
5701         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
5702         qualifier_struct_load_store_lane_index.
5703         (arm_storestruct_lane_qualifiers) Likewise.
5704         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
5705         big-endian.
5706         (neon_vst1_lane<mode>) Likewise.
5707         (neon_vld2_lane<mode>) Likewise.
5708         (neon_vst2_lane<mode>) Likewise.
5709         (neon_vld3_lane<mode>) Likewise.
5710         (neon_vst3_lane<mode>) Likewise.
5711         (neon_vld4_lane<mode>) Likewise.
5712         (neon_vst4_lane<mode>) Likewise.
5714 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5716         PR target/63870
5717         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
5718         qualifier_struct_load_store_lane_index.
5719         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5720         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
5721         argument qualifiers.
5722         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
5723         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5725 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
5727         * config/nvptx/nvptx.opt (moptimize): New flag.
5728         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5729         default.
5730         (nvptx_optimize_inner): New.
5731         (nvptx_process_pars): Call it when optimizing.
5732         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5734 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5736         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5737         Remove redundant code.
5739 2015-11-10  Jeff Law  <law@redhat.com>
5741         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5742         call to output_address.
5743         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5744         Add unnamed machine_mode argument.
5746 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5748         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5749         default to 64-bit.
5751 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5753         * config/i386/i386.md (*movabs<mode>_1): Add explicit
5754         size directives for -masm=intel.
5755         (*movabs<mode>_2): Ditto.
5757 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5759         * config/i386/i386.c (ix86_print_operand): Remove dead code that
5760         tried to avoid (%rip) for call operands.
5762 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5764         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5765         argument.  Do not use RIP relative addressing when no_rip is set.
5766         (ix86_print_operand): Update call to ix86_print_operand_address_as.
5767         (ix86_print_operand_address): Ditto.
5768         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5769         absolute movabs operand 0.  Add square braces for -masm=intel.
5770         (*movabs<mode>_2): Ditto for operand 1.
5772 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5774         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5775         combine_vcvtf2i pattern.
5777 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5779         * config/arm/arm.c (neon_valid_immediate): Remove integer
5780         CONST_DOUBLE handling.  It should never occur.
5782 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
5784         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5785         (ATOMIC_LDOP): Likewise.
5786         (atomic_ldop): Likewise.
5787         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5788         (ATOMIC_LDOP): Likewise.
5789         (atomic_ldop): Likewise.
5791 2015-11-10  Martin Liska  <mliska@suse.cz>
5793         * alloc-pool.h (allocate_raw): New function.
5794         (operator new (size_t, object_allocator<T> &a)): Use the
5795         function instead of object_allocator::allocate).
5797 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5799         * config/i386/sse.md (HALFMASKMODE): New attribute.
5800         (DOUBLEMASKMODE): New attribute.
5801         (vec_pack_trunc_qi): New.
5802         (vec_pack_trunc_<mode>): New.
5803         (vec_unpacks_lo_hi): New.
5804         (vec_unpacks_lo_si): New.
5805         (vec_unpacks_lo_di): New.
5806         (vec_unpacks_hi_hi): New.
5807         (vec_unpacks_hi_<mode>): New.
5809 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5811         * optabs.c (expand_binop_directly): Allow scalar mode for
5812         vec_pack_trunc_optab.
5813         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5814         boolean vector producers from pattern sequence when computing VF.
5815         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5816         vect_recog_mask_conversion_pattern.
5817         (search_type_for_mask): Choose the smallest
5818         type if different size types are mixed.
5819         (build_mask_conversion): New.
5820         (vect_recog_mask_conversion_pattern): New.
5821         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5822         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5823         load with pattern.
5824         (vectorizable_conversion): Support boolean vectors.
5825         (free_stmt_vec_info): Allow patterns for statements with no lhs.
5826         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5828 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5830         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5831         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5832         Cast mask to FP mode if required.
5833         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5834         (vcond_mask_<mode><avx512fmaskmodelower>): New.
5835         (vcond_mask_<mode><sseintvecmodelower>): New.
5836         (vcond_mask_<mode><sseintvecmodelower>): New.
5837         (vcond_mask_v2div2di): New.
5838         (vcond_mask_<mode><sseintvecmodelower>): New.
5839         (vcond_mask_<mode><sseintvecmodelower>): New.
5841 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5843         * optabs-query.h (get_vcond_mask_icode): New.
5844         * optabs-tree.c (expand_vec_cond_expr_p): Use
5845         get_vcond_mask_icode for VEC_COND_EXPR with mask.
5846         * optabs.c (expand_vec_cond_mask_expr): New.
5847         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5848         * optabs.def (vcond_mask_optab): New.
5849         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5850         generate redundant comparison for COND_EXPR.
5851         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5852         as a condition.
5853         (vectorizable_condition): Likewise.
5854         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5855         cond_exp with no embedded comparison.
5856         (vect_build_slp_tree_1): Likewise.
5858 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5860         * config/i386/sse.md (maskload<mode>): Rename to ...
5861         (maskload<mode><sseintvecmodelower>): ... this.
5862         (maskstore<mode>): Rename to ...
5863         (maskstore<mode><sseintvecmodelower>): ... this.
5864         (maskload<mode><avx512fmaskmodelower>): New.
5865         (maskstore<mode><avx512fmaskmodelower>): New.
5867 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5869         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5870         (expand_MASK_STORE): Adjust to maskstore optab changes.
5871         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5872          Adjust to maskload, maskstore optab changes.
5873         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5874         * optabs.def (maskload_optab): Transform into convert optab.
5875         (maskstore_optab): Likewise.
5876         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5877         can_vec_mask_load_store_p signature change.
5878         (predicate_mem_writes): Use boolean mask.
5879         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5880         can_vec_mask_load_store_p signature change.  Allow invariant masks.
5881         (vectorizable_operation): Ignore type precision for boolean vectors.
5883 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5885         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5886         (const_vector_mask_from_tree): New.
5887         (const_vector_from_tree): Use const_vector_mask_from_tree
5888         for boolean vectors.
5889         * optabs-query.h (get_vec_cmp_icode): New.
5890         * optabs-tree.c (expand_vec_cmp_expr_p): New.
5891         * optabs-tree.h (expand_vec_cmp_expr_p): New.
5892         * optabs.c (vector_compare_rtx): Add OPNO arg.
5893         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5894         (expand_vec_cmp_expr): New.
5895         * optabs.def (vec_cmp_optab): New.
5896         (vec_cmpu_optab): New.
5897         * optabs.h (expand_vec_cmp_expr): New.
5898         * tree-vect-generic.c (expand_vector_comparison): Add vector
5899         comparison optabs check.
5900         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
5901         operations for VF.  Add mask type computation.
5902         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5903         (vectorizable_comparison): New.
5904         (vect_analyze_stmt): Add vectorizable_comparison.
5905         (vect_transform_stmt): Likewise.
5906         (vect_init_vector): Support boolean vector invariants.
5907         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5908         (vectorizable_condition): Directly provide vectype for invariants
5909         used in comparison.
5910         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5911         (enum vect_var_kind): Add vect_mask_var.
5912         (enum stmt_vec_info_type): Add comparison_vec_info_type.
5913         (vectorizable_comparison): New.
5914         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5915         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5916         (vect_create_destination_var): Likewise.
5917         * tree-vect-patterns.c (check_bool_pattern): Check fails
5918         if we can vectorize comparison directly.
5919         (search_type_for_mask): New.
5920         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5921         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5922         comparison statements.
5923         (vect_get_constant_vectors): Support boolean vector constants.
5924         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5925         (ix86_expand_int_vec_cmp): New.
5926         (ix86_expand_fp_vec_cmp): New.
5927         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5928         op_true and op_false.
5929         (ix86_int_cmp_code_to_pcmp_immediate): New.
5930         (ix86_fp_cmp_code_to_pcmp_immediate): New.
5931         (ix86_cmp_code_to_pcmp_immediate): New.
5932         (ix86_expand_mask_vec_cmp): New.
5933         (ix86_expand_fp_vec_cmp): New.
5934         (ix86_expand_int_sse_cmp): New.
5935         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5936         (ix86_expand_int_vec_cmp): New.
5937         (ix86_get_mask_mode): New.
5938         (TARGET_VECTORIZE_GET_MASK_MODE): New.
5939         * config/i386/sse.md (avx512fmaskmodelower): New.
5940         (vec_cmp<mode><avx512fmaskmodelower>): New.
5941         (vec_cmp<mode><sseintvecmodelower>): New.
5942         (vec_cmpv2div2di): New.
5943         (vec_cmpu<mode><avx512fmaskmodelower>): New.
5944         (vec_cmpu<mode><sseintvecmodelower>): New.
5945         (vec_cmpuv2div2di): New.
5947 2015-11-10  Richard Biener  <rguenther@suse.de>
5949         PR tree-optimization/68240
5950         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5951         properly.
5952         (visit_phi): For PHIs with just a single executable edge
5953         take its value directly.
5954         (expressions_equal_p): Handle VN_TOP properly.
5956 2015-11-10  Richard Biener  <rguenther@suse.de>
5958         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5959         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5960         conservatively.
5962 2015-11-10  Richard Biener  <rguenther@suse.de>
5964         PR tree-optimization/56118
5965         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5966         cost favor vectorized version.
5968 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5970         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5971         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5972         (neg_not_op): New code attribute.
5974 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5976         * ifcvt.c (noce_try_inverse_constants): New function.
5977         (noce_process_if_block): Call it.
5978         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5979         * optabs.def (negcc_optab, notcc_optab): Declare.
5980         * optabs.c (emit_conditional_neg_or_complement): New function.
5981         * doc/tm.texi (Standard Names): Document negcc, notcc names.
5983 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5985         PR rtl-optimization/68236
5986         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5987         if insn_queue doesn't exist.
5988         (haifa_sched_finish): Reset insn_queue to NULL.
5990 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
5992         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5993         (build_def_use): Initialize terminated_this_insn.
5994         (find_best_rename_reg): Pick and check register from the tied chain.
5995         (regrename_do_replace): Mark head as renamed.
5996         (struct du_head *terminated_this_insn). New static variable.
5997         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
5998         * regrename.h (struct du_head): Add tied_chain, renamed members.
6000 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6002         PR bootstrap/68256
6003         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
6004         Return false.
6006 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6008         PR target/57845
6009         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
6010         not promote the mode for aggregate types.
6012 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6014         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
6015         * omp-low.c (build_oacc_routine_dims): New.
6017 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6019         * config/rs6000/constraints.md (wF constraint): New constraints
6020         for power9/toc fusion.
6021         (wG constraint): Likewise.
6023         * config/rs6000/predicates.md (u6bit_cint_operand): New
6024         predicate, recognize 0..63.
6025         (upper16_cint_operand): New predicate for power9 and toc fusion.
6026         (fpr_reg_operand): Likewise.
6027         (toc_fusion_or_p9_reg_operand): Likewise.
6028         (toc_fusion_mem_raw): Likewise.
6029         (toc_fusion_mem_wrapped): Likewise.
6030         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
6031         address range.
6032         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
6033         instead.
6034         (fusion_addis_mem_combo_load): Add support for power9 fusion of
6035         floating point loads, floating point stores, and gpr stores.
6036         (fusion_addis_mem_combo_store): Likewise.
6037         (fusion_offsettable_mem_operand): Likewise.
6039         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
6040         (emit_fusion_load_store): Likewise.
6041         (fusion_p9_p): Likewise.
6042         (expand_fusion_p9_load): Likewise.
6043         (expand_fusion_p9_store): Likewise.
6044         (emit_fusion_p9_load): Likewise.
6045         (emit_fusion_p9_store): Likewise.
6046         (fusion_wrap_memory_address): Likewise.
6048         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
6049         elements for power9 fusion.
6050         (rs6000_debug_print_mode): Rework debug information to print more
6051         information about fusion.
6052         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
6053         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
6054         offsettable memory address.
6055         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
6056         (emit_fusion_gpr_load): Move most of the code from
6057         emit_fusion_gpr_load into emit_fusion-addis that handles both
6058         power8 and power9 fusion.
6059         (emit_fusion_addis): Likewise.
6060         (emit_fusion_load_store): Likewise.
6061         (fusion_wrap_memory_address): Add support for TOC fusion.
6062         (fusion_split_address): Likewise.
6063         (fusion_p9_p): Add support for power9 fusion.
6064         (expand_fusion_p9_load): Likewise.
6065         (expand_fusion_p9_store): Likewise.
6066         (emit_fusion_p9_load): Likewise.
6067         (emit_fusion_p9_store): Likewise.
6069         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
6070         new instructions in ISA 3.0.
6071         (TARGET_CTZ): Likewise.
6072         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
6073         (TARGET_TOC_FUSION_FP): Likewise.
6075         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
6076         fusion unspecs.
6077         (UNSPEC_FUSION_ADDIS): Likewise.
6078         (QHSI mode iterator): New iterator for power9 fusion.
6079         (GPR_FUSION): Likewise.
6080         (FPR_FUSION): Likewise.
6081         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
6082         (umod<mode>3): Likewise.
6083         (divmod peephole): Likewise.
6084         (udivmod peephole): Likewise.
6085         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
6086         instructions.
6087         (ctz<mode>2_h): Likewise.
6088         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
6089         (ashdi3_extswsli_dot): Likewise.
6090         (ashdi3_extswsli_dot2): Likewise.
6091         (power9 fusion splitter): New power9/toc fusion support.
6092         (toc_fusionload_<mode>): Likewise.
6093         (toc_fusionload_di): Likewise.
6094         (fusion_gpr_load_<mode>): Update predicate function.
6095         (power9 fusion peephole2s): New power9/toc fusion support.
6096         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6097         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
6098         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
6099         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
6100         (fusion_p9_<mode>_constant): Likewise.
6102 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
6104         * optabs.c (prepare_libcall_arg): New function.
6105         (expand_fixed_convert): Add call to prepare_libcall_arg.
6107 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
6109         * sched-int.h (dump_rgn_dependencies_dot): Declare
6110         * sched-rgn.c (dump_rgn_dependencies_dot): New function
6111         * print-rtl.h (print_insn): Add prototype
6113         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
6114         * common.opt (-fsched-verbose): Set default value to 1.
6115         * invoke.texi (-fsched-verbose): Update the option's description.
6117 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6119         * config/visium/visium.h (PRINT_OPERAND): Delete.
6120         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6121         (PRINT_OPERAND_ADDRESS): Likewise.
6122         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
6123         to...
6124         (visium_print_operand_punct_valid_p): ...this.  New function.
6125         (TARGET_PRINT_OPERAND): Define to...
6126         (print_operand): Rename to...
6127         (visium_print_operand): ...this.
6128         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6129         (visium_output_address): Rename to...
6130         (visium_print_operand_address): ...this.
6131         (print_operand_address): Delete.
6133 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6135         PR middle-end/68259
6136         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6137         Check that the type of the first operand is an aggregate type.
6139 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6141         * omp-low.c: Fix some OpenACC comment typos.
6142         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6143         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6144         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6146 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
6148         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6150 2015-11-09  Jeff Law  <law@redhat.com>
6152         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6153         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
6154         Fix comment typo.
6156 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6157             Peter Bergner  <bergner@vnet.ibm.com>
6159         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6160         ISA 3.0 (power9).
6161         (-mpower9-vector): Likewise.
6162         (-mpower9-dform): Likewise.
6163         (-mpower9-minmax): Likewise.
6164         (-mtoc-fusion): Likewise.
6165         (-mmodulo): Likewise.
6166         (-mfloat128-hardware): Likewise.
6168         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6169         mask for ISA 3.0 (power9).
6170         (POWERPC_MASKS): Add new ISA 3.0 switches.
6171         (power9 cpu): Add power9 cpu.
6173         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6174         (ASM_CPU_SPEC): Likewise.
6175         (EXTRA_SPECS): Likewise.
6177         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6178         PROCESSOR_POWER9.
6180         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6181         (rs6000_debug_reg_global): Add support for power9 fusion.
6182         (rs6000_setup_reg_addr_masks): Cache mode size.
6183         (rs6000_option_override_internal): Until real power9 tuning is
6184         added, use -mtune=power8 for -mcpu=power9.
6185         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6186         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6187         of Altivec registers.
6188         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6189         (rs6000_loop_align): Add support for power9 cpu.
6190         (rs6000_file_start): Likewise.
6191         (rs6000_adjust_cost): Likewise.
6192         (rs6000_issue_rate): Likewise.
6193         (insn_must_be_first_in_group): Likewise.
6194         (insn_must_be_last_in_group): Likewise.
6195         (force_new_group): Likewise.
6196         (rs6000_register_move_cost): Likewise.
6197         (rs6000_opt_masks): Likewise.
6199         * config/rs6000/rs6000.md (cpu attribute): Add power9.
6200         * config/rs6000/rs6000-tables.opt: Regenerate.
6202         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6203         _ARCH_PWR9 if power9 support is available.
6205         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6206         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6208         * configure.ac: Determine if the assembler supports the ISA 3.0
6209         instructions.
6210         * config.in (HAVE_AS_POWER9): Likewise.
6211         * configure: Regenerate.
6213         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6214         switches.
6216 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6218         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6219         Remove integer CONST_DOUBLE handling.  It should never occur.
6221 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6223         PR target/68129
6224         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6225         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6226         Delete VOIDmode case.  Assert that mode is not VOIDmode.
6227         * config/aarch64/predicates.md (const0_operand): Remove const_double
6228         match.
6230 2015-11-09  Martin Liska  <mliska@suse.cz>
6232         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6233         body_info release function.
6234         * ipa-prop.c (ipa_release_body_info): New function.
6235         (ipa_analyze_node): Call the function.
6236         (ipa_node_params::~ipa_node_params): Release known_csts.
6237         * ipa-prop.h (ipa_release_body_info): Declare.
6239 2015-11-09  Martin Liska  <mliska@suse.cz>
6241         * gcc.c (record_temp_file): Release name string.
6242         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6243         * lra-lives.c (free_live_range_list): Utilize
6244         lra_live_range_pool for allocation and deallocation.
6245         (create_live_range): Likewise.
6246         (copy_live_range): Likewise.
6247         (lra_merge_live_ranges): Likewise.
6248         (remove_some_program_points_and_update_live_ranges): Likewise.
6249         (lra_create_live_ranges_1): Release point_freq_vec that can
6250         be not freed from previous iteration of the function.
6251         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6252         * tree-sra.c (sra_deinitialize): Release all vectors in
6253         base_access_vec.
6254         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6255         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6256         Release edge_info for a removed edge.
6257         (thread_through_all_blocks): Free region vector.
6258         * tree-ssa.h (free_dom_edge_info): Declare function extern.
6260 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
6262         * optabs.c (expand_vec_cond_expr): Always get sign from type.
6263         * tree.c (wide_int_to_tree): Support negative values for boolean.
6264         (build_nonstandard_boolean_type): Use signed type for booleans.
6266 2015-11-09  Richard Biener  <rguenther@suse.de>
6268         PR tree-optimization/68248
6269         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6271 2015-11-09  Richard Biener  <rguenther@suse.de>
6273         PR tree-optimization/56118
6274         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6275         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6276         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6277         function.
6278         (vect_slp_analyze_data_ref_dependences): Instead of computing
6279         all dependences of the region DRs just analyze the code motions
6280         SLP vectorization will perform.  Remove SLP instances that
6281         cannot have their store/load motions applied.
6282         (vect_analyze_data_refs): Allow DRs without a vectype
6283         in BB vectorization.
6285 2015-11-09  Julian Brown  <julian@codesourcery.com>
6287         * final.c (output_asm_insn): Pass VOIDmode to output_address.
6288         (output_address): Add MODE argument. Pass to print_operand_address
6289         hook.
6290         * targhooks.c (default_print_operand_address): Add MODE argument.
6291         * targhooks.h (default_print_operand_address): Update prototype.
6292         * output.h (output_address): Update prototype.
6293         * target.def (print_operand_address): Add MODE argument.
6294         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6295         output_address.
6296         (print_operand): Pass access mode to output_address.
6297         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6298         argument.
6299         (mcore_print_operand): Update calls to mcore_print_operand_address.
6300         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6301         output_address.
6302         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6303         output_address.
6304         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6305         global.
6306         (tilegx_print_operand): Don't set above global. Update calls to
6307         output_address.
6308         (tilegx_print_operand_address): Add MODE argument. Use instead of
6309         output_memory_reference_mode global.
6310         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6311         (frv_print_operand): Pass mode to frv_print_operand_address calls.
6312         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6313         output_address.
6314         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6315         (cris_print_operand): Pass mode to output_address calls.
6316         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6317         * config/aarch64/aarch64.h (aarch64_print_operand)
6318         (aarch64_print_operand_address): Remove prototypes.
6319         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6320         global.
6321         (aarch64_print_operand): Make static. Update calls to output_address.
6322         (aarch64_print_operand_address): Add MODE argument. Use instead of
6323         aarch64_memory_reference_mode global.
6324         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6325         hooks.
6326         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6327         Delete macro definitions.
6328         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6329         * config/xtensa/xtensa.c (print_operand): Pass mode in
6330         output_address calls.
6331         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6332         argument.
6333         (h83000_print_operand): Update calls to h8300_print_operand_address
6334         and output_address.
6335         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6336         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6337         global.
6338         (tilepro_print_operand): Pass mode to output_address.
6339         (tilepro_print_operand_address): Add MODE argument. Use instead of
6340         output_memory_reference_mode.
6341         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6342         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6343         to output_address calls.
6344         (nvptx_print_operand_address): Add MODE argument.
6345         * config/alpha/alpha.c (print_operand): Pass mode argument in
6346         output_address calls.
6347         * config/m68k/m68k.c (print_operand): Pass mode argument in
6348         output_address call.
6349         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6350         (avr_print_operand): Update calls to avr_print_operand_address.
6351         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6352         argument. Update calls to output_address.
6353         (sparc_print_operand): Pass mode to output_address.
6354         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6355         argument.
6356         (iq2000_print_operand): Pass mode in output_address calls.
6357         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6358         MODE argument.
6359         (xstormy16_print_operand): Pass mode to
6360         xstormy16_print_operand_address calls.
6361         * config/mips/mips.c (mips_print_operand): Update calls to
6362         output_address.
6363         (mips_print_operand_address): Add MODE argument.
6364         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6365         to output_address.
6366         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6367         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6368         output_address.
6369         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6370         (rx_print_operand): Update calls to output_address,
6371         rx_print_operand_address.
6372         * config/nds32/nds32.c (nds32_print_operand): Update calls to
6373         output_address.
6374         (nds32_print_operand_address): Add MODE argument.
6375         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6376         output_address calls.
6377         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6378         output_address call.
6379         (c6x_print_address_operand): Update calls to output_address.
6380         (c6x_print_operand_address): Pass mode to above.
6381         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6382         (v850_print_operand): Pass mode to v850_print_operand_address,
6383         output_address.
6384         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6385         (mmix_print_operand): Pass mode in output_address calls.
6386         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6387         (sh_print_operand): Pass mem mode to output_address,
6388         sh_print_operand_address.
6389         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6390         (cr16_print_operand): Pass mode to output_address,
6391         cr16_print_operand_address.
6392         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6393         output_address.
6394         * config/microblaze/microblaze.c (print_operand): Pass mode to
6395         output_address.
6396         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6397         output_address.
6398         (nios2_print_operand_address): Add MODE argument. Update call to
6399         nios2_print_operand_address.
6400         * config/s390/s390.c (print_operand): Pass mode to output_address.
6401         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6402         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6403         output_address.
6404         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6405         Use instead of output_memory_reference_mode.
6406         (output_memory_reference_mode): Delete global.
6407         (arm_print_operand): Pass mem mode to output_address.
6408         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6409         (m32r_print_operand): Pass mode to output_address.
6410         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6411         argument.
6412         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6413         * config/i386/i386.c (ix86_print_operand): Pass mode to
6414         output_address calls.
6415         (ix86_print_operand_address): Add MODE argument.
6417 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6419         PR middle-end/68251
6420         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6421         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6422         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6423         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6425 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6427         PR rtl-optimization/67749
6428         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
6429         case before emitting the two blocks.  Instead modify the register
6430         in the corresponding final insn of the basic block.
6432 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6434         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
6435         assembler syntax.
6436         Support Solaris ld.
6437         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
6439         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
6440         HAVE_INITFINI_ARRAY_SUPPORT.
6441         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
6443         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
6444         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
6445         Don't check HAVE_AS_SPARC_NOBITS.
6446         Heed SECTION_NOTYPE.
6448         * configure: Regenerate.
6449         * config.in: Regenerate.
6451 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6453         PR middle-end/68253
6454         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
6456 2015-11-09  Richard Henderson  <rth@redhat.com>
6458         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
6459         __SEG_GS, __SEG_TLS.
6460         (ix86_register_pragmas): Register address spaces __seg_fs,
6461         __seg_gs, __seg_tls.
6462         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
6463         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
6464         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
6465         * config/i386/i386.c (ix86_decompose_address): Likewise.
6466         (ix86_legitimate_address_p): Likewise.
6467         (memory_address_length): Likewise.  Check mem address space too.
6468         (ix86_print_operand): Use ix86_print_operand_address_as.
6469         (ix86_print_operand_address_as): Rename from
6470         ix86_print_operand_address, add new addr_space_t parameter.
6471         Validate that either the parameter or the ix86_address segment
6472         is default address space.  Handle ADDR_SPACE_SEG_TLS.
6473         (ix86_print_operand_address): New.
6474         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
6475         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
6476         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
6477         (ix86_addr_space_zero_address_valid): New.
6478         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6479         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
6480         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
6481         * config/i386/predicates.md (address_no_seg_operand): Likewise.
6482         (vsib_address_operand): Likewise.
6483         (address_mpx_no_base_operand): Likewise.
6484         (address_mpx_no_index_operand): Likewise.
6485         * doc/extend.texi (x86 Named Address Spaces): New section.
6487         * config/i386/i386.c (ix86_check_no_addr_space): New.
6488         (decide_alg): Add have_as parameter.
6489         (alg_usable_p): Likewise; disable rep algorithms if set.
6490         (ix86_expand_set_or_movmem): Notice if either MEM has a
6491         non-default address space.
6492         (ix86_expand_strlen): Likewise.
6493         * config/i386/i386.md (strmov, strset): Likewise.
6494         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
6495         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
6496         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
6497         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
6498         *cmpstrnqi_1, *strlenqi_1): Likewise.
6500         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
6501         (*movabs<mode>_2): Likewise.
6503         * dwarf2out.c (modified_type_die): Pass the address space number
6504         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
6505         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
6506         * targhooks.c (default_addr_space_debug): New.
6507         * targhooks.h (default_addr_space_debug): Declare.
6508         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
6509         * doc/tm.texi: Rebuild.
6511         * gimple.c (check_loadstore): Return false when 0 is a valid address.
6512         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
6513         null when 0 is valid in the source address space.
6514         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6515         * targhooks.c (default_addr_space_zero_address_valid): New.
6516         * targhooks.h (default_addr_space_zero_address_valid): Declare.
6517         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
6518         * doc/tm.texi: Rebuild.
6520         * cselib.c (add_mem_for_addr): Compare address spaces when
6521         matching memories.
6522         (cselib_lookup_mem): Likewise.
6523         * fold-const.c (operand_equal_p): Check address spaces of
6524         pointer types before checking integer constants.
6526         PR tree-opt/66768
6527         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
6528         the correct type for the base.
6530 2015-11-09  Jeff Law  <law@redhat.com>
6532         * tree-into-ssa.c (names_to_release): No longer static.
6533         * tree-into-ssa.h (names_to_release): Declare.
6534         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
6535         (release_free_names_and_compact_live_names): New function extracted
6536         from pass_release_ssa_names::execute.
6537         (pass_release_ssa_names::execute): Use it.
6539 2015-11-09  Alan Modra  <amodra@gmail.com>
6541         * gensupport.c (add_mnemonic_string): Make len param a size_t.
6542         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
6543         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
6544         return value.
6546 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
6548         PR rtl-optimization/68182
6549         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
6550         branch with only one successor just like unconditional branches.
6552 2015-11-08  Jeff Law  <law@redhat.com>
6554         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
6555         non-FSM path has no edges marked with EDGE_DFS_BACK.
6556         (ssa_redirect_edges): No longer call mark_loop_for_removal.
6557         (thread_single_edge, def_split_header_continue_p): Remove.
6558         (bb_ends_with_multiway_branch): Likewise.
6559         (thread_through_loop_header): Remove cases of threading from
6560         latch through the header.  Simplify knowing we won't thread
6561         the latch.
6562         (thread_through_all_blocks): Simplify knowing that only the FSM
6563         threader needs to handle backedges.
6565 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6567         * doc/extend.texi (type attributes): Document scalar_storage_order.
6568         (Structure-Packing Pragmas): Rename into...
6569         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
6570         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
6571         (Warnings): Document -Wno-scalar-storage-order.
6572         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
6573         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
6574         extract_bit_field and store_bit_field.
6575         (initialize_argument_information): Adjust call to store_expr.
6576         (load_register_parameters): Adjust call to extract_bit_field.
6577         * expmed.c (check_reverse_storage_order_support): New function.
6578         (check_reverse_float_storage_order_support): Likewise.
6579         (flip_storage_order): Likewise.
6580         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
6581         of the value if it is true.  Pass REVERSE to recursive call after
6582         adjusting the target offset.
6583         Do not use extraction or movstrict instruction if REVERSE is true.
6584         Pass REVERSE to store_fixed_bit_field.
6585         (store_bit_field): Add REVERSE parameter and pass to it to above.
6586         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
6587         store_split_bit_field and store_fixed_bit_field_1.
6588         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
6589         order of the value if it is true and adjust the target offset.
6590         (store_split_bit_field): Add REVERSE parameter and pass it to
6591         store_fixed_bit_field.  Adjust the target offset if it is true.
6592         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
6593         of the value if it is true.  Pass REVERSE to recursive call after
6594         adjusting the target offset.
6595         Do not use extraction or subreg instruction if REVERSE is true.
6596         Pass REVERSE to extract_fixed_bit_field.
6597         (extract_bit_field): Add REVERSE parameter and pass to it to above.
6598         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
6599         extract_split_bit_field and extract_fixed_bit_field_1.
6600         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
6601         order of the value if it is true and adjust the target offset.
6602         (extract_split_bit_field): Add REVERSE parameter and pass it to
6603         extract_fixed_bit_field.  Adjust the target offset if it is true.
6604         * expmed.h (flip_storage_order): Declare.
6605         (store_bit_field): Adjust prototype.
6606         (extract_bit_field): Likewise.
6607         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
6608         (emit_group_store): Adjust call to store_bit_field.
6609         (copy_blkmode_from_reg): Likewise.
6610         (copy_blkmode_to_reg): Likewise.
6611         (write_complex_part): Likewise.
6612         (read_complex_part): Likewise.
6613         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
6614         that it isn't true if the target is a register.
6615         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
6616         and flip the storage order of the value.
6617         <BIT_IOR_EXPR>: Flip the storage order of the value.
6618         (get_bit_range): Adjust call to get_inner_reference.
6619         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
6620         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
6621         with reverse storage order.
6622         (store_expr_with_bounds): Add REVERSE parameter and pass it to
6623         recursive calls and call to store_bit_field.  Force the value into a
6624         register if it is true and then flip the storage order of the value.
6625         (store_expr): Add REVERSE parameter and pass it to above.
6626         (categorize_ctor_elements_1): Adjust call to
6627         initializer_constant_valid_p.
6628         (store_constructor_field): Add REVERSE parameter and pass it to
6629         recursive calls and call to store_field.
6630         (store_constructor): Add REVERSE parameter and pass it to calls to
6631         store_constructor_field and store_expr.  Set it to true for an
6632         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
6633         (store_field): Add REVERSE parameter and pass it to recursive calls
6634         and calls to store_expr and store_bit_field.  Temporarily flip the
6635         storage order of the value with record type and integral mode and
6636         adjust the shift if it is true.
6637         (get_inner_reference): Add PREVERSEP parameter and set it to true
6638         upon encoutering a reference with reverse storage order.
6639         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
6640         (expand_constructor): Adjust call to store_constructor.
6641         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
6642         of the union type to store_expr in the MEM case and assert that it
6643         isn't set in the REG case.  Adjust call to store_field.
6644         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
6645         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
6646         get_inner_reference and extract_bit_field. Temporarily flip the
6647         storage order of the value with record type and integral mode and
6648         adjust the shift if it is true.  Flip the storage order of the value
6649         at the end if it is true.
6650         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
6651         get_inner_reference.  Do not fetch an inner reference if it is true.
6652         * expr.h (store_expr_with_bounds): Ajust prototype.
6653         (store_expr): Likewise.
6654         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
6655         REF_REVERSE_STORAGE_ORDER on the reference according to it.
6656         (optimize_bit_field_compare): Deal with reverse storage order.
6657         Adjust calls to get_inner_reference and make_bit_field_ref.
6658         (decode_field_reference): Add PREVERSEP parameter and adjust call to
6659         get_inner_reference.
6660         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
6661         to decode_field_reference and make_bit_field_ref.
6662         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
6663         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
6664         (fold_comparison): Adjust call to get_inner_reference.
6665         (split_address_to_core_and_offset): Adjust call to
6666         get_inner_reference.
6667         * gimple-expr.c (useless_type_conversion_p): Return false for array
6668         types with different TYPE_REVERSE_STORAGE_ORDER flag.
6669         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
6670         REF_REVERSE_STORAGE_ORDER flag.
6671         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
6672         * output.h (assemble_real): Adjust prototype.
6673         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
6674         * stor-layout.c (finish_record_layout): Propagate the
6675         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
6676         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
6677         (TYPE_SATURATING): Adjust.
6678         (REF_REVERSE_STORAGE_ORDER): Document.
6679         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
6680         set it to true upon encoutering a reference with reverse storage order.
6681         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
6682         * tree-inline.c (remap_gimple_op_r): Propagate the
6683         REF_REVERSE_STORAGE_ORDER flag.
6684         (copy_tree_body_r): Likewise.
6685         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
6686         store_expr.
6687         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
6688         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
6689         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6690         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
6691         REF_REVERSE_STORAGE_ORDER flag.
6692         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
6693         (gimple_canonical_types_compatible_p): Likewise.
6694         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
6695         (TYPE_SATURATING): Adjust.
6696         (REF_REVERSE_STORAGE_ORDER): New flag.
6697         (reverse_storage_order_for_component_p): New inline predicate.
6698         (storage_order_barrier_p): Likewise.
6699         (get_inner_reference): Adjust prototype.
6700         * varasm.c: Include expmed.h.
6701         (assemble_variable_contents): Adjust call to output_constant.
6702         (assemble_real): Add REVERSE parameter.  Flip the storage
6703         order of the value if REVERSE is true.
6704         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
6705         (assemble_constant_contents): Adjust call to output_constant.
6706         (output_constant_pool_2): Adjust call to assemble_real.
6707         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
6708         TYPE_REVERSE_STORAGE_ORDER.
6709         (initializer_constant_valid_p): Add REVERSE parameter.
6710         (output_constant): Add REVERSE parameter.
6711         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
6712         <REAL_TYPE>: Adjust call to assemble_real.
6713         <COMPLEX_TYPE>: Pass it to recursive calls.
6714         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
6715         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
6716         (struct oc_local_state): Add REVERSE field.
6717         (output_constructor_array_range): Adjust calls to output_constant.
6718         (output_constructor_regular_field): Likewise.
6719         (output_constructor_bitfield): Adjust call to output_constructor.
6720         Flip the storage order of the value if REVERSE is true.
6721         (output_constructor): Add REVERSE parameter.  Set it to true for an
6722         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
6723         output_constructor_bitfield.
6724         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6725         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6726         * builtins.c (get_object_alignment_2): Likewise.
6727         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6728         and get_ref_base_and_extent.
6729         * dbxout.c (dbxout_expand_expr): Likewise.
6730         * dwarf2out.c (add_var_loc_to_decl): Likewise.
6731         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6732         (loc_list_from_tree): Likewise.
6733         (fortran_common): Likewise.
6734         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6735         get_ref_base_and_extent.
6736         (get_base_constructor): Likewise.
6737         (fold_const_aggregate_ref_1): Likewise.
6738         * gimple-laddress.c (pass_laddress::execute): Adjust call to
6739         get_inner_reference.
6740         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6741         get_inner_reference and bail out on reverse storage order.
6742         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6743         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6744         build_ref_for_offset.
6745         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6746         get_ref_base_and_extent.
6747         (ipa_polymorphic_call_context): Likewise.
6748         (extr_type_from_vtbl_ptr_store): Likewise.
6749         (check_stmt_for_type_change): Likewise.
6750         (get_dynamic_type): Likewise.
6751         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6752         get_ref_base_and_extent.
6753         (compute_complex_assign_jump_func): Likewise.
6754         (get_ancestor_addr_info): Likewise.
6755         (compute_known_type_jump_func): Likewise.
6756         (determine_known_aggregate_parts): Likewise.
6757         (ipa_get_adjustment_candidate): Likewise.
6758         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6759         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6760         (build_ref_for_offset): Adjust prototype.
6761         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6762         get_inner_reference.
6763         * tree-affine.c (tree_to_aff_combination): Adjust call to
6764         get_inner_reference.
6765         (get_inner_reference_aff): Likewise.
6766         * tree-data-ref.c (split_constant_offset_1): Likewise.
6767         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
6768         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6769         get_inner_reference.
6770         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6771         (dump_access): Print new fields.
6772         (create_access): Adjust call to get_ref_base_and_extent and set the
6773         REVERSE flag according to the result.
6774         (completely_scalarize_record): Set the REVERSE flag.
6775         (scalarize_elem): Add REVERSE parameter.
6776         (build_access_from_expr_1): Preserve storage order barriers.
6777         (build_accesses_from_assign): Likewise.
6778         (build_ref_for_offset): Add REVERSE parameter and set the
6779         REF_REVERSE_STORAGE_ORDER flag accordingly.
6780         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6781         the REF_REVERSE_STORAGE_ORDER flag if there are components.
6782         (analyze_access_subtree): Likewise.
6783         (create_artificial_child_access): Set the REVERSE flag.
6784         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6785         (turn_representatives_into_adjustments): Propagate REVERSE flag.
6786         (ipa_sra_check_caller): Adjust call to get_inner_reference.
6787         * tree-ssa-alias.c (ao_ref_base): Adjust call to
6788         get_ref_base_and_extent.
6789         (aliasing_component_refs_p): Likewise.
6790         (stmt_kills_ref_p_1): Likewise.
6791         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6792         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6793         Return true if reverse storage order.
6794         <BIT_FIELD_REF>: Likewise.
6795         <COMPONENT_REF>: Likewise.
6796         <ARRAY_REF>: Likewise.
6797         <ARRAY_RANGE_REF>: Likewise.
6798         (split_address_cost): Likewise.  Bail out if reverse storage order.
6799         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6800         get_inner_reference.  Bail out if reverse storage order.
6801         (bswap_replace): Adjust call to get_inner_reference.
6802         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6803         the REF_REVERSE_STORAGE_ORDER flag.
6804         <BIT_FIELD_REF>: Likewise.
6805         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6806         barriers.
6807         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6808         to the REF_REVERSE_STORAGE_ORDER flag.
6809         <BIT_FIELD_REF>: Likewise.
6810         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6811         (contains_storage_order_barrier_p): New predicate.
6812         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6813         Punt on storage order barriers if necessary.
6814         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6815         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6816         call to get_ref_base_and_extent.
6817         (do_structure_copy): Likewise.
6818         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6819         get_inner_reference.
6820         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
6821         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6822         * ubsan.c (instrument_bool_enum_load): Likewise.
6823         (instrument_object_size): Likewise.
6824         * var-tracking.c (track_expr_p): Adjust call to
6825         get_ref_base_and_extent.
6826         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6827         get_inner_reference.
6828         * config/s390/s390.c (s390_expand_atomic): Adjust call to
6829         store_bit_field.
6830         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6831         extract_bit_field.
6832         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6834 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
6836         * config/sparc/sparc.opt (mfix-at697f): Add final period.
6838 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6840         PR rtl-optimization/67864
6841         * common/config/i386/i386-common.c (ix86_option_optimization_table)
6842         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6843         at -Os and up.
6845 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6847         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6848         internal functions.
6850 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6852         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6853         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6855 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6857         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6858         * internal-fn.c: Don't undef it here.
6859         * tree-core.h: Likewise.
6861 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6863         * builtins.c (fold_builtin_nan): Delete.
6864         (fold_builtin_memcmp): Remove case where both arguments are constant.
6865         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6866         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6867         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6868         * fold-const-call.c: Include fold-const.h.
6869         (host_size_t_cst_p): New function.
6870         (build_cmp_result, fold_const_builtin_nan): Likewise.
6871         (fold_const_call_1): New function, split out from...
6872         (fold_const_call): ...here (for all three interfaces).  Handle
6873         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6875 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6877         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6878         (fold_builtin_1): Don't call them.
6879         * fold-const-call.c: Include tm.h.
6880         (fold_const_call_ss): New variant for integer-to-integer folds.
6881         (fold_const_call): Call it.
6883 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6885         * builtins.c (fold_builtin_classify): Move constant cases to...
6886         * fold-const-call.c (fold_const_call_ss): ...here.
6888 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6890         * builtins.h (c_getstr): Move to...
6891         * fold-const.h (c_getstr): ...here.
6892         * builtins.c (c_getstr): Move to...
6893         * fold-const.c (c_getstr): ...here.
6895 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6897         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6898         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6900 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6902         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6903         the dominance info; free it if we can't.
6904         (pass_call_cdce::execute): Don't free the dominance info here.
6906 2015-11-06  Jeff Law <law@redhat.com>
6908         * tree-ssa-threadedge.c (dummy_simplify): Remove.
6909         (thread_around_empty_blocks): Remove backedge_seen_p argument.
6910         If we thread to a backedge, then return false.  Update recursive
6911         call to eliminate backedge_seen_p argument.
6912         (thread_through_normal_block): Remove backedge_seen_p argument.
6913         Remove backedge_seen_p argument from calls to
6914         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
6915         If we thread to a backedge, then return 0.
6916         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
6917         pass it to thread_through_normal_block or thread_through_empty_blocks.
6918         For joiner handling, if we see a backedge, do not try normal
6919         threading.
6921 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6923         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6924         * graphite-poly.c (new_scop): Initialize original_schedule.
6925         (free_scop): Free original_schedule.
6926         * graphite-poly.h (struct scop): Add field original_schedule.
6927         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6928         (build_poly_scop): Call build_scop_original_schedule.
6930 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6932         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6933         (build_pbb_minimal_scattering_polyhedrons): New.
6934         (build_scop_scattering): Remove.
6935         (build_scop_minimal_scattering): New.
6936         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6937         (build_poly_scop): Call build_scop_minimal_scattering.
6939 2015-11-06  Jeff Law <law@redhat.com>
6941         * cfg-flags.def (IGNORE): New edge flag.
6942         * tree-vrp.c (identify_jump_threads): Mark and clear edges
6943         scheduled for removal with EDGE_IGNORE around call into
6944         jump threader.  Do no thread across edges with EDGE_IGNORE,
6945         but do allow threading across those with EDGE_DFS_BACK.
6947 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
6949         * doc/md.texi (multi-alternative constraints): Don't document
6950         alternatives inherently tied to reload for the user documentation.
6952 2015-11-06  Michael Collison  <michael.collison@linaro.org>
6953             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6955         Revert:
6956         2015-08-01  Michael Collison  <michael.collison@linaro.org
6957                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6959         * config/arm/arm.md (*arm_smin_cmp): New pattern.
6960         (*arm_umin_cmp): Likewise.
6962 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
6964         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6965         * omp-low.c (check_omp_nesting_restrictions): Update for the
6966         various new OpenMP 4.5 nesting restrictions, clarified
6967         nesting glossary, closely nested region relationship clarified
6968         to mean explicit or implicit parallel regions (target/teams),
6969         use %</%> or %qs where appropriate.
6971 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6972             Sebastian Pop  <s.pop@samsung.com>
6974         * graphite-scop-detection.c (loop_is_valid_scop): Call
6975         optimize_loop_nest_for_speed_p.
6977 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6978             Sebastian Pop  <s.pop@samsung.com>
6980         * graphite-optimize-isl.c (optimize_isl): Call
6981         isl_options_set_schedule_maximize_band_depth.
6983 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6984             Sebastian Pop  <s.pop@samsung.com>
6986         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6987         and exit edges should not be a part of irreducible loop.
6988         (scop_detection::can_represent_loop_1): Loops should not be
6989         irreducible.
6990         (scop_detection::harmful_stmt_in_region): All the basic block
6991         should belong to reducible loops.
6993 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
6995         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6996         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6997         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6998         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6999         (aarch64_tbx4v8qi): Rename to...
7000         aarch64_tbx4<mode>): ... this.
7001         (aarch64_qtbl3<mode>): New pattern.
7002         (aarch64_qtbx3<mode>): New pattern.
7003         (aarch64_qtbl4<mode>): New pattern.
7004         (aarch64_qtbx4<mode>): New pattern.
7005         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
7006         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
7007         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
7008         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
7009         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
7010         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
7011         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
7012         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
7013         functions.
7015 2015-11-06  Mike Stump  <mikestump@comcast.net>
7017         PR debug/66728
7018         * dwarf2out.c (get_full_len): Return a value based upon the actual
7019         precision needed for the value.
7020         (add_const_value_attribute): Use a maximal wide-int for
7021         CONST_WIDE_INTs, not VOIDmode.
7022         (output_die): Don't ever output NULL with printf.
7024         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
7025         BLKmode nor VOIDmode values.
7027 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
7029         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
7030         and "range2".
7031         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
7032         * diagnostic-core.h (warning_at_rich_loc): New declaration.
7033         (error_at_rich_loc): New declaration.
7034         (permerror_at_rich_loc): New declaration.
7035         (inform_at_rich_loc): New declaration.
7036         * diagnostic-show-locus.c (adjust_line): Delete.
7037         (struct point_state): New struct.
7038         (class colorizer): New class.
7039         (class layout_point): New class.
7040         (class layout_range): New class.
7041         (struct line_bounds): New.
7042         (class layout): New class.
7043         (colorizer::colorizer): New ctor.
7044         (colorizer::~colorizer): New dtor.
7045         (layout::layout): New ctor.
7046         (layout::print_source_line): New method.
7047         (layout::print_annotation_line): New method.
7048         (layout::get_state_at_point): New method.
7049         (layout::get_x_bound_for_row): New method.
7050         (diagnostic_show_locus): Reimplement in terms of class layout.
7051         (diagnostic_print_caret_line): Delete.
7052         * diagnostic.c (diagnostic_initialize): Replace
7053         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
7054         (diagnostic_set_info_translated): Convert param from location_t
7055         to rich_location *.  Eliminate calls to set_location on the
7056         message in favor of storing the rich_location ptr there.
7057         (diagnostic_set_info): Convert param from location_t to
7058         rich_location *.
7059         (diagnostic_build_prefix): Break out array into...
7060         (diagnostic_kind_color): New variable.
7061         (diagnostic_get_color_for_kind): New function.
7062         (diagnostic_report_diagnostic): Colorize the option_text
7063         using the color for the severity.
7064         (diagnostic_append_note): Update for change in signature of
7065         diagnostic_set_info.
7066         (diagnostic_append_note_at_rich_loc): New function.
7067         (emit_diagnostic): Update for change in signature of
7068         diagnostic_set_info.
7069         (inform): Likewise.
7070         (inform_at_rich_loc): New function.
7071         (inform_n): Update for change in signature of diagnostic_set_info.
7072         (warning): Likewise.
7073         (warning_at): Likewise.
7074         (warning_at_rich_loc): New function.
7075         (warning_n): Update for change in signature of diagnostic_set_info.
7076         (pedwarn): Likewise.
7077         (permerror): Likewise.
7078         (permerror_at_rich_loc): New function.
7079         (error): Update for change in signature of diagnostic_set_info.
7080         (error_n): Likewise.
7081         (error_at): Likewise.
7082         (error_at_rich_loc): New function.
7083         (sorry): Update for change in signature of diagnostic_set_info.
7084         (fatal_error): Likewise.
7085         (internal_error): Likewise.
7086         (internal_error_no_backtrace): Likewise.
7087         (source_range::debug): New function.
7088         * diagnostic.h (struct diagnostic_info): Eliminate field
7089         "override_column".  Add field "richloc".
7090         (struct diagnostic_context): Add field "colorize_source_p".
7091         (diagnostic_override_column): Delete.
7092         (diagnostic_set_info): Convert param from location_t to
7093         rich_location *.
7094         (diagnostic_set_info_translated): Likewise.
7095         (diagnostic_append_note_at_rich_loc): New function.
7096         (diagnostic_num_locations): New function.
7097         (diagnostic_expand_location): Get the location from the
7098         rich_location.
7099         (diagnostic_print_caret_line): Delete.
7100         (diagnostic_get_color_for_kind): New declaration.
7101         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
7102         (error_cb): Update for change in signature of "error" callback.
7103         (fatal_at): Likewise.
7104         (warning_at): Likewise.
7105         * input.c (linemap_client_expand_location_to_spelling_point): New.
7106         * pretty-print.c (text_info::set_range): New method.
7107         (text_info::get_location): New method.
7108         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
7109         (struct text_info): Eliminate "locations" array in favor of
7110         "m_richloc", a rich_location *.
7111         (textinfo::set_location): Add a "caret_p" param, and reimplement
7112         in terms of a call to set_range.
7113         (textinfo::get_location): Eliminate inline implementation in favor of
7114         an out-of-line reimplementation.
7115         (textinfo::set_range): New method.
7116         * rtl-error.c (diagnostic_for_asm): Update for change in signature
7117         of diagnostic_set_info.
7118         * tree-diagnostic.c (default_tree_printer): Update for new
7119         "caret_p" param for textinfo::set_location.
7120         * tree-pretty-print.c (percent_K_format): Likewise.
7122 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7124         Properly apply.
7125         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7126         * config/aarch64/aarch64.c
7127         (aarch64_can_use_per_function_literal_pools_p): New.
7128         (aarch64_use_blocks_for_constant_p): Adjust declaration
7129         and use aarch64_can_use_function_literal_pools_p.
7130         (aarch64_select_rtx_section): Update.
7132 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7134         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7135         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7136         (arm_output_multireg_pop): Likewise.
7137         (output_move_double):  Likewise.
7138         (output_move_quad):  Likewise.
7139         (output_return_instruction): Likewise.
7140         (arm_print_operand): Remove support for %( and %. print modifiers.
7141         (arm_output_shift): Make unified asm.
7142         (arm_declare_function_name): Likewise.
7143         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7144         (ASM_APP_OFF): Adjust.
7145         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7146         (ASM_OUTPUT_REG_POP): Likewise.
7147         * config/arm/arm.md: Adjust uses of %., %(, %)
7148         * config/arm/sync.md: Likewise.
7149         * config/arm/thumb2.md: Likewise.
7150         * config/arm/ldmstm.md: Regenerate.
7151         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7152         * doc/invoke.texi (masm-unified-syntax): Update documentation.
7154 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
7156         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7158 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
7160         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7161         add OEP_MATCH_SIDE_EFFECTS.
7162         * fold-const.c (operand_equal_p): Update documentation; handle
7163         OEP_MATCH_SIDE_EFFECTS.
7164         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7165         OEP_MATCH_SIDE_EFFECTS.
7167 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
7168             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7170         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7171         * config/aarch64/aarch64-protos.h: Declare.
7172         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7173         frsqrts.
7174         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7175         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7176         code when applicable.
7177         * config/aarch64/aarch64.md: Added enum entries.
7178         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7180 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
7182         PR ipa/68057
7183         PR ipa/68220
7184         * ipa-polymorphic-call.c
7185         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7186         issue when offset is out of range.
7187         (contains_type_p): Fix out of range check, clear dynamic flag.
7189 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
7191         * config.gcc (e6500): Fix cpu_is_64bit typo.
7193 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
7195         * tree-sra.c (completely_scalarize): Properly handle negative array
7196         indices using offset_int.
7198 2015-11-06  Richard Biener  <rguenther@suse.de>
7200         * alloc-pool.h (object_allocator::allocate): Default-initialize
7201         object.
7203 2015-11-06  Richard Biener  <rguenther@suse.de>
7205         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7206         * lra.c (init_reg_info): Truncate copy_vec instead of
7207         re-allocating a new one and leaking the old.
7208         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7209         bb_infos vec.
7210         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7211         * postreload-gcse.c (free_mem): Free modify_mem_list and
7212         canon_modify_mem_list.
7214 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
7216         PR tree-optimization/68145
7217         * tree-vect-stmts.c (vectorizable_operation): Fix
7218         determination for booleans.
7220 2015-11-06  Tom de Vries  <tom@codesourcery.com>
7222         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7223         cond_jump, instead of split after last nondebug insn before cond_jump.
7224         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7225         returning.
7227 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7229         PR target/68088
7230         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7231         subregs from accumulator and make sure it's a register.
7233 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
7235         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7236         low part to scalar.
7237         (reduc_uplus_<mode>): Remove.
7238         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7239         loongson_extract_lo_<mode>.
7240         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7241         reduc_smax_<mode>, reduc_smax_<mode>, use vec
7242         loongson_extract_lo_<mode>.
7243         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7245 2015-11-06  Richard Biener  <rguenther@suse.de>
7247         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7248         members.
7249         (vect_stmt_in_region_p): Declare.
7250         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7251         (destroy_bb_vec_info): Likewise.
7252         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7253         (vect_get_and_check_slp_defs): Likewise.
7254         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7255         (vect_slp_bb): Likewise.
7256         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7257         in terms of vect_stmt_in_region_p.
7258         (vect_pattern_recog): Iterate over the BB region.
7259         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7260         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7261         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7262         * config/i386/i386.c: Include gimple-iterator.h.
7263         * config/aarch64/aarch64.c: Likewise.
7265 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
7267         PR rtl-optimization/67753
7268         PR rtl-optimization/64164
7269         * function.c (assign_parm_setup_block): Avoid allocating a
7270         stack slot if we don't have an ABI-reserved one.  Emit the
7271         copy to target_reg in the conversion seq if the copy from
7272         entry_parm is in it too.  Don't use the conversion seq to copy
7273         a PARALLEL to a REG or a CONCAT.
7275 2015-11-06  Richard Biener  <rguenther@suse.de>
7277         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7278         equal_keys.
7280 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
7281             Thomas Schwinge  <thomas@codesourcery.com>
7282             James Norris  <jnorris@codesourcery.com>
7285         * gimplify.c (gimplify_scan_omp_clauses): Add support for
7286         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
7287         (gimplify_adjust_omp_clauses): Likewise.
7288         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7289         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7290         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7291         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7292         (omp_clause_code_name): Likewise.
7293         (walk_tree_1): Handle OMP_CLAUSE_TILE.
7294         * tree.h (OMP_TILE_LIST): New macro.
7296 2015-11-05  Martin Sebor  <msebor@redhat.com>
7298         PR c++/67942
7299         * doc/invoke.texi (-Wplacement-new): Document new option.
7301 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
7303         PR tree-optimization/65963
7304         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7305         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7307 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
7309         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7310         (noce_convert_multiple_sets): Likewise.
7311         (noce_process_if_block): Call them.
7313 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7315         * gimple-fold.c: Include omp-low.h.
7316         (fold_internal_goacc_dim): New.
7317         (gimple_fold_call): Call it.
7319 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
7320             Ilya Verbin  <ilya.verbin@intel.com>
7322         * builtin-types.def
7323         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7324         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7325         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7326         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7327         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7328         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7329         (struct cgraph_simd_clone_arg): Adjust comment.
7330         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7331         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
7332         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7333         to GOMP_target_data_ext.
7334         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7335         to GOMP_target_update_ext.
7336         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7337         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7338         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7339         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7340         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7341         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7342         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7343         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7344         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7345         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7346         * tree-core.h (enum omp_clause_schedule_kind): Add
7347         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7348         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7349         OMP_CLAUSE_SCHEDULE_LAST value.
7350         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7351         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7352         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7353         OMP_FOR_CHECK.  Remove comment.
7354         * tree-pretty-print.c (dump_omp_clause): Handle
7355         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7356         Simplify.  Print schedule clause modifiers.
7357         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7358         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7359         cases.
7360         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7361         (omp_default_clause): Tweak for
7362         private/firstprivate/is_device_ptr variables on target
7363         construct and use_device_ptr on target data.
7364         (omp_check_private): Likewise.
7365         (omp_notice_variable): For references check whether what it refers
7366         to has mappable type, rather than the reference itself.
7367         (omp_is_private): Diagnose linear iteration variables on non-simd
7368         constructs.
7369         (omp_no_lastprivate): Return true only for Fortran.
7370         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7371         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7372         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7373         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7374         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
7375         lastprivate and linear when combined with distribute.  Gimplify
7376         variable low-bound for array reduction.  Look through
7377         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7378         reductions.
7379         (gimplify_adjust_omp_clauses_1): For implicit references to
7380         variables with reference type and when not ref to scalar or
7381         ref to pointer, map what they refer to using tofrom and
7382         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7383         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7384         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7385         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
7386         Diagnose the same var on both firstprivate and lastprivate on
7387         distribute construct.
7388         (gimplify_omp_for): Fix up handling of predetermined
7389         lastprivate or linear iter vars when combined with distribute.
7390         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7391         functions.
7392         (gimplify_omp_workshare): Call optimize_target_teams.
7393         * omp-low.c (struct omp_region): Add sched_modifiers field.
7394         (struct omp_for_data): Likewise.
7395         (omp_any_child_fn_dumped): New variable.
7396         (extract_omp_for_data): Fill in sched_modifiers, and mask out
7397         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7398         from sched_kind.
7399         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7400         bits of OMP_CLAUSE_SCHED_KIND.
7401         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7402         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
7403         for array section reductions.
7404         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7405         for distribute parallel for, if there are lastprivate clauses on the
7406         for.
7407         (lower_rec_input_clauses): Handle non-zero low-bound on array
7408         section reductions.
7409         (lower_reduction_clauses): Likewise.
7410         (lower_send_clauses): Look through POINTER_PLUS_EXPR
7411         for array section reductions.
7412         (expand_parallel_call): Use nonmonotonic entrypoints for
7413         nonmonotonic: dynamic/guided.
7414         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7415         child_fn if current_function_decl has assembler name set, but child_fn
7416         does not.  Dump the header and IL of the child function when not in SSA
7417         form.
7418         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
7419         arguments to BUILT_IN_GOMP_TARGET.
7420         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7421         Initialize the extra _looptemp_ clause to fd->loop.n2.
7422         (expand_omp_for): Use nonmonotonic entrypoints for
7423         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
7424         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
7425         again if we have dumped any child functions.
7426         (lower_omp_for_lastprivate): Determine the right count variable
7427         for distribute simd, or distribute parallel for{, simd}.
7428         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
7429         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
7430         support.
7431         (simd_clone_clauses_extract): Handle variable step
7432         for references and arguments passed by reference.
7433         (simd_clone_mangle): Mangle ref/uval/val variable steps.
7434         (simd_clone_adjust_argument_types): Handle
7435         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
7436         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7437         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
7438         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7439         (simd_clone_linear_addend): New function.
7440         (simd_clone_adjust): Handle variable step like similarly
7441         to constant step, use simd_clone_linear_addend to determine
7442         the actual step at runtime.
7444 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7446         * target.def (goacc.dim_limit): New hook.
7447         * targhooks.h (default_goacc_dim_limit): Declare.
7448         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
7449         * doc/tm.texi: Rebuilt.
7450         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
7451         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
7452         (default_goacc_dim_limit): New.
7453         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7454         (nvptx_goacc_dim_limit) New.
7455         (TARGET_GOACC_DIM_LIMIT): Override.
7456         * tree-vrp.c: Include omp-low.h, target.h.
7457         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
7458         IFN_GOACC_DIM_POS.
7460 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7462         * tree-vect-generic.c (do_compare): Use -1 for true
7463         result instead of 1.
7465 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7467         * config/aarch64/aarch64.c
7468         (aarch64_can_use_per_function_literal_pools_p): New.
7469         (aarch64_use_blocks_for_constant_p): Adjust declaration
7470         and use aarch64_can_use_function_literal_pools_p.
7471         (aarch64_select_rtx_section): Update.
7473 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7475         * targhooks.c (default_get_mask_mode): Use BLKmode in
7476         case target doesn't support required vector mode.
7477         * stor-layout.c (layout_type); Check for BLKmode.
7479 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
7480             Sebastian Pop  <s.pop@samsung.com>
7482         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7483         Remove use of parameter_rename_map.
7484         (copy_def): Remove.
7485         (copy_internal_parameters): Remove.
7486         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7487         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7488         (free_sese_info): Do not free parameter_rename_map.
7489         (set_rename): Do not use parameter_rename_map.
7490         (rename_uses): Update call to set_rename.
7491         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7492         * sese.h (parameter_rename_map_t): Remove.
7493         (struct sese_info_t): Remove field parameter_rename_map.
7495 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
7496             Sebastian Pop  <s.pop@samsung.com>
7498         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
7499         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
7500         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
7501         anonymous namespace.
7502         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
7503         (isl_id_for_pbb): Use a buffer of size 10.
7504         (isl_id_for_ssa_name): Same.
7505         * sese.c (set_rename): Add more dumps.
7507 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7509         * omp-low.c (struct omp_context): Remove reduction_map field.
7510         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
7511         (new_omp_context, delete_omp_context, scan_omp_target): Remove
7512         reduction_map handling.
7513         (lower_omp_target): Remove obsolete openacc reduction handling.
7515 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7517         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
7519 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7520             Cesar Philippidis  <cesar@codesourcery.com>
7522         * config/nvptx/nvptx.c: Include gimple headers.
7523         (worker_red_size, worker_red_align, worker_red_name,
7524         worker_red_sym): New.
7525         (nvptx_option_override): Initialize worker reduction buffer.
7526         (nvptx_file_end): Write out worker reduction buffer var.
7527         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
7528         nvptx_expand_cmp_swap): New builtin expanders.
7529         (enum nvptx_builtins): New.
7530         (nvptx_builtin_decls): New.
7531         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
7532         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7533         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
7534         nvptx_lockless_update): New helpers.
7535         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
7536         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
7537         (nvptx_goacc_reduction): New.
7538         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
7539         TARGET_BUILTIN_DECL): Override.
7540         (TARGET_GOACC_REDUCTION): Override.
7542 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7543             Cesar Philippidis  <cesar@codesourcery.com>
7545         * internal-fn.def (GOACC_REDUCTION): New.
7546         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
7547         * internal-fn.c (expand_GOACC_REDUCTION): New.
7548         * target.def (goacc.reduction): New OpenACC hook.
7549         * targhooks.h (default_goacc_reduction): Declare.
7550         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
7551         * doc/tm.texi: Rebuilt.
7552         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
7553         scan_sharing_clauses): Remove oacc reduction handling here.
7554         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
7555         (oacc_lower_reduction_var_helper): Delete.
7556         (lower_oacc_reductions): New.
7557         (lower_reduction_clauses): Don't handle OpenACC reductions here.
7558         (lower_oacc_head_tail): Call lower_oacc_reductions.
7559         (oacc_gimple_assign, oacc_init_reduction_array,
7560         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
7561         oacc_process_reduction_data): Delete.
7562         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
7563         dummy OpenACC gang reduction for reductions at outer level.
7564         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
7565         (default_goacc_reduction): New.
7566         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
7568 2015-11-04  Martin Liska  <mliska@suse.cz>
7570         * cgraphunit.c (cgraph_node::expand_thunk): Call
7571         allocate_struct_function before init_function_start.
7572         (cgraph_node::expand): Use push_cfun and pop_cfun.
7573         * config/i386/i386.c (ix86_code_end): Call
7574         allocate_struct_function before init_function_start.
7575         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
7576         * function.c (init_function_start): Move preamble to all
7577         callers.
7578         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
7579         (execute_one_pass): Handle newly added TODO_discard_function.
7580         (execute_pass_list_1): Terminate if cfun equals to NULL.
7581         (execute_pass_list): Do not push and pop cfun, expect that
7582         cfun is set.
7583         * tree-pass.h (TODO_discard_function): Define.
7585 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
7587         * cfganal.c (inverted_post_order_compute): Remove conditional
7588         compilation, use flag_checking.
7589         * config.in: Regenerate.
7590         * configure: Regenerate.
7591         * configure.ac: Remove ENABLE_CHECKING.
7592         * genconditions.c: Do not #undef ENABLE_CHECKING.
7593         * sese.h (bb_in_region): Comment out broken check.
7594         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
7595         conditional compilation, use flag_checking.
7597 2015-11-04  Tom de Vries  <tom@codesourcery.com>
7599         PR tree-optimization/67742
7600         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
7601         field.
7602         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
7603         (create_variable_info_for_1): Add and handle handle_param parameter.
7604         Add restrict handling.
7605         (create_variable_info_for): Call create_variable_info_for_1 with extra
7606         arg.
7607         (make_param_constraints): Drop restrict_name parameter.  Ignore
7608         vi->only_restrict_pointers.
7609         (intra_create_variable_infos): Call create_variable_info_for_1 with
7610         extra arg.  Remove restrict handling.  Call make_param_constraints with
7611         one fewer arg.
7613 2015-11-04  Tom de Vries  <tom@codesourcery.com>
7615         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
7616         variable.
7618 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7620         * config/arm/coff.h: Remove.
7622 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
7624         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
7625         check for aggregate types and beef up comment for mode check.
7627 2015-11-03  Richard Biener  <rguenther@suse.de>
7629         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
7630         data references here.
7631         * tree-vect-loop.c: Include cgraph.h.
7632         (vect_analyze_loop_2): Collect data references here.
7633         * tree-vect-slp.c (find_bb_location): Inline ...
7634         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
7635         Factor in vect_slp_transform_bb.
7636         (vect_slp_transform_bb): Removed.
7637         (vect_slp_analyze_bb_1): Collect data references here.
7638         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
7639         vect_slp_bb.
7640         * tree-vectorizer.h (vect_slp_bb): Declare.
7641         (vect_slp_analyze_bb): Remove.
7642         (vect_slp_transform_bb): Remove.
7643         (find_bb_location): Remove.
7644         (vect_analyze_data_refs): Remove stmt count reference parameter.
7646 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
7648         * multiple_target.c (create_dispatcher_calls): Add target check
7649         on ifunc.
7650         (create_target_clone): Change assembler name for versioned declarations.
7652 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
7653             Chung-Lin Tang  <cltang@codesourcery.com>
7655         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
7656         * omp-low.c (check_omp_nesting_restrictions): Allow
7657         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
7658         contexts.
7660 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
7662         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
7663         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
7664         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
7665         builtin.
7666         (vmulxq_f32): Likewise.
7667         (vmulx_f64): New.
7668         (vmulxq_f64): Rewrite to call fmulx builtin.
7669         (vmulxs_f32): Likewise.
7670         (vmulxd_f64): Likewise.
7671         (vmulx_lane_f32): Remove.
7672         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
7674 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
7676         * config/aarch64/aarch64.md (*movhf_aarch64): Use
7677         aarch64_reg_or_fp_zero for second operand.
7679 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
7681         * gimple-expr.c: Include hash-set.h and rtl.h.
7682         (mark_addressable_queue): New var.
7683         (mark_addressable): Factor actual marking into...
7684         (mark_addressable_1): ... this.  Queue it up during expand.
7685         (mark_addressable_2): New.
7686         (flush_mark_addressable_queue): New.
7687         * gimple-expr.h (flush_mark_addressable_queue): Declare.
7688         * cfgexpand.c: Include gimple-expr.h.
7689         (pass_expand::execute): Flush mark_addressable queue.
7691 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
7693         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
7694         bb_no_side_effects_p tests...
7695         (tree_ssa_ifcombine_bb): ... here.
7697         PR tree-optimization/68083
7698         * tree-ssa-ifcombine.c: Include tree-ssa.h.
7699         (bb_no_side_effects_p): Test for undefined uses too.
7700         * tree-ssa.c (gimple_uses_undefined_value_p): New.
7701         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
7703 2015-11-02  Jeff Law <law@redhat.com>
7705         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
7706         cases where the loop latch edge is in the middle of an FSM path.
7708 2015-11-03  Tom de Vries  <tom@codesourcery.com>
7710         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
7711         (make_param_constraints): ... this.  Add and handle restrict_name
7712         parameter.  Handle is_full_var case.
7713         (intra_create_variable_infos): Use make_param_constraints.
7715 2015-11-03  Tom de Vries  <tom@codesourcery.com>
7717         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
7718         make_copy_constraint call with make_constraint_from call.
7720 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
7722         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
7723         PIE executables.
7725 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7727         * builtins.h (fold_fma): Move to fold-const-call.h.
7728         * builtins.c: Include fold-const-call.h.
7729         (mathfn_built_in_2): New function, split out from...
7730         (mathfn_built_in_1): ...here.
7731         (do_real_to_int_conversion, fold_const_builtin_pow)
7732         (fold_const_builtin_logb, fold_const_builtin_significand)
7733         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7734         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7735         (fold_builtin_sincos): Use fold_const_call to handle constants.
7736         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7737         checks for ERROR_MARK.  Use fold_const_call to handle constant
7738         folds for math functions.
7739         (fold_fma): Move to fold-const-call.c.
7740         * fold-const.c: Include fold-const-call.h.
7741         * Makefile.in (OBJS): Add fold-const-call.o.
7742         (PLUGIN_HEADERS): Add fold-const-call.h.
7743         * realmpfr.h (real_from_mpfr): Allow the format to be specified
7744         directly.
7745         * realmpfr.c (real_from_mpfr): Likewise.
7746         * fold-const-call.h, fold-const-call.c: New files.
7748 2015-11-02  Julian Brown  <julian@codesourcery.com>
7750         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7751         brackets and semicolon.
7753 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
7755         Revert:
7756         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7758         PR tree-optimization/65963
7759         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7760         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7762 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
7764         PR middle-end/68166
7765         * fold-const.c: Include "md5.h".
7767 2015-11-01  Jeff Law <law@redhat.com>
7769         * vmsdbgout.c: Revert unused header file reduction patch.
7771         * config/mcore/mcore.c: Include regs.h.
7773 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7775         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7777 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7779         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7780         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7781         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7783 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
7785         * ggc-common.c: Restore needed header for checking=release.
7787 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7789         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7791 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7793         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7794         existing varinfo for arguments.
7796 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7798         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7799         create_function_info_for.  Dump constraints generated during
7800         create_function_info_for. Move intra_create_variable_infos call and
7801         function-return-values-escape bit to ...
7802         (create_function_info_for): ... here, and merge
7803         intra_create_variable_infos call with argument loop.  Add and handle
7804         nonlocal_p parameter.
7806 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7808         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7809         updating is alap, and seperated from preceding code.  Make sure
7810         insert_vi_for_tree is seperated from surrounding code.
7812 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7814         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7816 2015-10-30  Jeff Law <law@redhat.com>
7817             Nathan Sidwell  <nathan@acm.org>
7819         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7820         args.
7821         (MOVE_MAX): Set to 8.
7823 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
7825         * cgraph.c: Include context.h for offloading.
7826         * varpool.c: Include context.h and omp-low.h.
7828 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
7830         * rtl.h (contains_symbol_ref_p): Declare.
7831         (SYMBOL_REF_P): Define.
7832         * rtlanal.c (contains_symbol_ref_p: New function.
7833         * lra-constraints.c (contains_symbol_ref_p): Remove.
7834         * var-tracking.c (contains_symbol_ref): Remove.
7835         (track_expr_p): Use contains_symbol_ref_p instead of
7836         contains_symbol_ref.
7838 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7840         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7841         * fold-const.c (get_array_ctor_element_at_index): New.
7842         (fold): Remove binary-search through CONSTRUCTOR, call previous.
7844         * fold-const.h (get_array_ctor_element_at_index): New.
7846 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
7848         * Makefile.in (OBJS): Add multiple_target.o.
7849         * attrib.c (make_attribute): Moved from config/i386/i386.c
7850         * config/i386/i386.c (make_attribute): Deleted.
7851         * multiple_target.c (create_dispatcher_calls): New.
7852         (get_attr_len): Ditto.
7853         (get_attr_str): Ditto.
7854         (separate_attrs): Ditto.
7855         (is_valid_asm_symbol): Ditto.
7856         (create_new_asm_name): Ditto.
7857         (create_target_clone): Ditto.
7858         (expand_target_clones): Ditto.
7859         (ipa_target_clone): Ditto.
7860         (ipa_dispatcher_calls): Ditto.
7861         * passes.def (pass_target_clone): Two new ipa passes.
7862         * tree-pass.h (make_pass_target_clone): Ditto.
7863         * doc/extend.texi (target_clones): New attribute description.
7865 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7867         PR rtl-optimization/68106
7868         * lra-remat.c (input_regno_present_p): Process hard regs
7869         explicitly present in machine description insns.
7870         (call_used_input_regno_present_p): Ditto.
7871         (calculate_gen_cands): Ditto.
7872         (do_remat): Ditto.
7874 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
7876         * config/arm/neon-testgen.ml: Fix comment typo.
7878 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7880         * rtlanal.c (reg_set_p): Expand function comment.
7882 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
7884         * alias.c: Remove unused headers.
7885         * asan.c: Likewise.
7886         * attribs.c: Likewise.
7887         * auto-inc-dec.c: Likewise.
7888         * auto-profile.c: Likewise.
7889         * bb-reorder.c: Likewise.
7890         * bitmap.c: Likewise.
7891         * bt-load.c: Likewise.
7892         * builtins.c: Likewise.
7893         * caller-save.c: Likewise.
7894         * calls.c: Likewise.
7895         * ccmp.c: Likewise.
7896         * cfg.c: Likewise.
7897         * cfganal.c: Likewise.
7898         * cfgbuild.c: Likewise.
7899         * cfgcleanup.c: Likewise.
7900         * cfgexpand.c: Likewise.
7901         * cfghooks.c: Likewise.
7902         * cfgloop.c: Likewise.
7903         * cfgloopanal.c: Likewise.
7904         * cfgloopmanip.c: Likewise.
7905         * cfgrtl.c: Likewise.
7906         * cgraph.c: Likewise.
7907         * cgraphbuild.c: Likewise.
7908         * cgraphclones.c: Likewise.
7909         * cgraphunit.c: Likewise.
7910         * cilk-common.c: Likewise.
7911         * combine-stack-adj.c: Likewise.
7912         * combine.c: Likewise.
7913         * compare-elim.c: Likewise.
7914         * convert.c: Likewise.
7915         * coverage.c: Likewise.
7916         * cppbuiltin.c: Likewise.
7917         * cprop.c: Likewise.
7918         * cse.c: Likewise.
7919         * cselib.c: Likewise.
7920         * data-streamer-in.c: Likewise.
7921         * data-streamer-out.c: Likewise.
7922         * data-streamer.c: Likewise.
7923         * dbxout.c: Likewise.
7924         * dce.c: Likewise.
7925         * ddg.c: Likewise.
7926         * debug.c: Likewise.
7927         * df-core.c: Likewise.
7928         * df-problems.c: Likewise.
7929         * df-scan.c: Likewise.
7930         * dfp.c: Likewise.
7931         * dojump.c: Likewise.
7932         * dominance.c: Likewise.
7933         * domwalk.c: Likewise.
7934         * double-int.c: Likewise.
7935         * dse.c: Likewise.
7936         * dumpfile.c: Likewise.
7937         * dwarf2asm.c: Likewise.
7938         * dwarf2cfi.c: Likewise.
7939         * dwarf2out.c: Likewise.
7940         * emit-rtl.c: Likewise.
7941         * except.c: Likewise.
7942         * explow.c: Likewise.
7943         * expmed.c: Likewise.
7944         * expr.c: Likewise.
7945         * final.c: Likewise.
7946         * fixed-value.c: Likewise.
7947         * fold-const.c: Likewise.
7948         * function.c: Likewise.
7949         * fwprop.c: Likewise.
7950         * gcse.c: Likewise.
7951         * generic-match-head.c: Likewise.
7952         * ggc-common.c: Likewise.
7953         * gimple-builder.c: Likewise.
7954         * gimple-expr.c: Likewise.
7955         * gimple-fold.c: Likewise.
7956         * gimple-iterator.c: Likewise.
7957         * gimple-low.c: Likewise.
7958         * gimple-match-head.c: Likewise.
7959         * gimple-pretty-print.c: Likewise.
7960         * gimple-ssa-isolate-paths.c: Likewise.
7961         * gimple-ssa-strength-reduction.c: Likewise.
7962         * gimple-streamer-in.c: Likewise.
7963         * gimple-streamer-out.c: Likewise.
7964         * gimple-walk.c: Likewise.
7965         * gimple.c: Likewise.
7966         * gimplify-me.c: Likewise.
7967         * gimplify.c: Likewise.
7968         * godump.c: Likewise.
7969         * graph.c: Likewise.
7970         * graphds.c: Likewise.
7971         * haifa-sched.c: Likewise.
7972         * hw-doloop.c: Likewise.
7973         * ifcvt.c: Likewise.
7974         * init-regs.c: Likewise.
7975         * internal-fn.c: Likewise.
7976         * ipa-chkp.c: Likewise.
7977         * ipa-comdats.c: Likewise.
7978         * ipa-cp.c: Likewise.
7979         * ipa-devirt.c: Likewise.
7980         * ipa-icf-gimple.c: Likewise.
7981         * ipa-icf.c: Likewise.
7982         * ipa-inline-analysis.c: Likewise.
7983         * ipa-inline-transform.c: Likewise.
7984         * ipa-inline.c: Likewise.
7985         * ipa-polymorphic-call.c: Likewise.
7986         * ipa-profile.c: Likewise.
7987         * ipa-prop.c: Likewise.
7988         * ipa-pure-const.c: Likewise.
7989         * ipa-ref.c: Likewise.
7990         * ipa-reference.c: Likewise.
7991         * ipa-split.c: Likewise.
7992         * ipa-utils.c: Likewise.
7993         * ipa-visibility.c: Likewise.
7994         * ipa.c: Likewise.
7995         * ira-build.c: Likewise.
7996         * ira-color.c: Likewise.
7997         * ira-conflicts.c: Likewise.
7998         * ira-costs.c: Likewise.
7999         * ira-emit.c: Likewise.
8000         * ira-lives.c: Likewise.
8001         * ira.c: Likewise.
8002         * jump.c: Likewise.
8003         * langhooks.c: Likewise.
8004         * lcm.c: Likewise.
8005         * lists.c: Likewise.
8006         * loop-doloop.c: Likewise.
8007         * loop-init.c: Likewise.
8008         * loop-invariant.c: Likewise.
8009         * loop-iv.c: Likewise.
8010         * loop-unroll.c: Likewise.
8011         * lower-subreg.c: Likewise.
8012         * lra-assigns.c: Likewise.
8013         * lra-coalesce.c: Likewise.
8014         * lra-constraints.c: Likewise.
8015         * lra-eliminations.c: Likewise.
8016         * lra-lives.c: Likewise.
8017         * lra-remat.c: Likewise.
8018         * lra-spills.c: Likewise.
8019         * lra.c: Likewise.
8020         * lto-cgraph.c: Likewise.
8021         * lto-compress.c: Likewise.
8022         * lto-opts.c: Likewise.
8023         * lto-section-in.c: Likewise.
8024         * lto-section-out.c: Likewise.
8025         * lto-streamer-in.c: Likewise.
8026         * lto-streamer-out.c: Likewise.
8027         * lto-streamer.c: Likewise.
8028         * mcf.c: Likewise.
8029         * mode-switching.c: Likewise.
8030         * modulo-sched.c: Likewise.
8031         * optabs.c: Likewise.
8032         * opts-global.c: Likewise.
8033         * passes.c: Likewise.
8034         * plugin.c: Likewise.
8035         * postreload-gcse.c: Likewise.
8036         * postreload.c: Likewise.
8037         * predict.c: Likewise.
8038         * print-tree.c: Likewise.
8039         * profile.c: Likewise.
8040         * real.c: Likewise.
8041         * realmpfr.c: Likewise.
8042         * recog.c: Likewise.
8043         * ree.c: Likewise.
8044         * reg-stack.c: Likewise.
8045         * regcprop.c: Likewise.
8046         * reginfo.c: Likewise.
8047         * regrename.c: Likewise.
8048         * regstat.c: Likewise.
8049         * reload.c: Likewise.
8050         * reload1.c: Likewise.
8051         * reorg.c: Likewise.
8052         * resource.c: Likewise.
8053         * rtl-chkp.c: Likewise.
8054         * rtl-error.c: Likewise.
8055         * rtlanal.c: Likewise.
8056         * rtlhooks.c: Likewise.
8057         * sanopt.c: Likewise.
8058         * sched-deps.c: Likewise.
8059         * sched-ebb.c: Likewise.
8060         * sched-rgn.c: Likewise.
8061         * sdbout.c: Likewise.
8062         * sel-sched-dump.c: Likewise.
8063         * sel-sched-ir.c: Likewise.
8064         * sel-sched.c: Likewise.
8065         * sese.c: Likewise.
8066         * shrink-wrap.c: Likewise.
8067         * simplify-rtx.c: Likewise.
8068         * stack-ptr-mod.c: Likewise.
8069         * statistics.c: Likewise.
8070         * stmt.c: Likewise.
8071         * stor-layout.c: Likewise.
8072         * store-motion.c: Likewise.
8073         * stringpool.c: Likewise.
8074         * symtab.c: Likewise.
8075         * target-globals.c: Likewise.
8076         * targhooks.c: Likewise.
8077         * toplev.c: Likewise.
8078         * tracer.c: Likewise.
8079         * trans-mem.c: Likewise.
8080         * tree-affine.c: Likewise.
8081         * tree-call-cdce.c: Likewise.
8082         * tree-cfg.c: Likewise.
8083         * tree-cfgcleanup.c: Likewise.
8084         * tree-chkp-opt.c: Likewise.
8085         * tree-chkp.c: Likewise.
8086         * tree-chrec.c: Likewise.
8087         * tree-complex.c: Likewise.
8088         * tree-data-ref.c: Likewise.
8089         * tree-dfa.c: Likewise.
8090         * tree-diagnostic.c: Likewise.
8091         * tree-dump.c: Likewise.
8092         * tree-eh.c: Likewise.
8093         * tree-emutls.c: Likewise.
8094         * tree-if-conv.c: Likewise.
8095         * tree-inline.c: Likewise.
8096         * tree-into-ssa.c: Likewise.
8097         * tree-iterator.c: Likewise.
8098         * tree-loop-distribution.c: Likewise.
8099         * tree-nested.c: Likewise.
8100         * tree-nrv.c: Likewise.
8101         * tree-object-size.c: Likewise.
8102         * tree-outof-ssa.c: Likewise.
8103         * tree-parloops.c: Likewise.
8104         * tree-phinodes.c: Likewise.
8105         * tree-predcom.c: Likewise.
8106         * tree-pretty-print.c: Likewise.
8107         * tree-profile.c: Likewise.
8108         * tree-scalar-evolution.c: Likewise.
8109         * tree-sra.c: Likewise.
8110         * tree-ssa-address.c: Likewise.
8111         * tree-ssa-alias.c: Likewise.
8112         * tree-ssa-ccp.c: Likewise.
8113         * tree-ssa-coalesce.c: Likewise.
8114         * tree-ssa-copy.c: Likewise.
8115         * tree-ssa-dce.c: Likewise.
8116         * tree-ssa-dse.c: Likewise.
8117         * tree-ssa-forwprop.c: Likewise.
8118         * tree-ssa-ifcombine.c: Likewise.
8119         * tree-ssa-live.c: Likewise.
8120         * tree-ssa-loop-ch.c: Likewise.
8121         * tree-ssa-loop-im.c: Likewise.
8122         * tree-ssa-loop-ivcanon.c: Likewise.
8123         * tree-ssa-loop-ivopts.c: Likewise.
8124         * tree-ssa-loop-manip.c: Likewise.
8125         * tree-ssa-loop-niter.c: Likewise.
8126         * tree-ssa-loop-prefetch.c: Likewise.
8127         * tree-ssa-loop-unswitch.c: Likewise.
8128         * tree-ssa-loop.c: Likewise.
8129         * tree-ssa-math-opts.c: Likewise.
8130         * tree-ssa-operands.c: Likewise.
8131         * tree-ssa-phiopt.c: Likewise.
8132         * tree-ssa-phiprop.c: Likewise.
8133         * tree-ssa-pre.c: Likewise.
8134         * tree-ssa-propagate.c: Likewise.
8135         * tree-ssa-reassoc.c: Likewise.
8136         * tree-ssa-scopedtables.c: Likewise.
8137         * tree-ssa-sink.c: Likewise.
8138         * tree-ssa-strlen.c: Likewise.
8139         * tree-ssa-structalias.c: Likewise.
8140         * tree-ssa-tail-merge.c: Likewise.
8141         * tree-ssa-ter.c: Likewise.
8142         * tree-ssa-threadupdate.c: Likewise.
8143         * tree-ssa-uncprop.c: Likewise.
8144         * tree-ssa-uninit.c: Likewise.
8145         * tree-ssa.c: Likewise.
8146         * tree-ssanames.c: Likewise.
8147         * tree-stdarg.c: Likewise.
8148         * tree-streamer-in.c: Likewise.
8149         * tree-streamer-out.c: Likewise.
8150         * tree-streamer.c: Likewise.
8151         * tree-switch-conversion.c: Likewise.
8152         * tree-tailcall.c: Likewise.
8153         * tree-vect-data-refs.c: Likewise.
8154         * tree-vect-generic.c: Likewise.
8155         * tree-vect-loop-manip.c: Likewise.
8156         * tree-vect-loop.c: Likewise.
8157         * tree-vect-patterns.c: Likewise.
8158         * tree-vect-slp.c: Likewise.
8159         * tree-vect-stmts.c: Likewise.
8160         * tree-vectorizer.c: Likewise.
8161         * tree-vrp.c: Likewise.
8162         * tree.c: Likewise.
8163         * tsan.c: Likewise.
8164         * ubsan.c: Likewise.
8165         * value-prof.c: Likewise.
8166         * var-tracking.c: Likewise.
8167         * varasm.c: Likewise.
8168         * varpool.c: Likewise.
8169         * vmsdbgout.c: Likewise.
8170         * vtable-verify.c: Likewise.
8171         * web.c: Likewise.
8172         * wide-int-print.cc: Likewise.
8173         * wide-int.cc: Likewise.
8174         * xcoffout.c: Likewise.
8176 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
8178         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8179         between pass numbering and execution order.
8181 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8183         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8184         check for dependencies.
8186 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8188         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8189         CDI_DOMINATORS.
8191 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8193         * real.h (format_helper): New.
8194         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8195         (real_from_target, real_nan, real_2expN, real_value_truncate)
8196         (significand_size, real_from_string2, exact_real_inverse)
8197         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8198         (real_round, real_isinteger, real_from_integer): Replace
8199         machine_mode arguments with format_helper arguments.
8200         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8201         (real_from_integer, real_nan, real_2expN, real_convert)
8202         (real_value_truncate, exact_real_truncate, real_to_target)
8203         (real_from_target, significand_size, real_powi, real_trunc)
8204         (real_floor, real_ceil, real_round, real_isinteger): Replace
8205         machine_mode arguments with format_helper arguments.
8206         (real_to_target_fmt, real_from_target_fmt): Delete.
8207         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8208         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8209         argument with real_format.
8210         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8212 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8214         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8215         (fixed_to_decimal, fixed_convert_from_real)
8216         (real_convert_from_fixed): Fix mode arguments to real_2expN.
8218 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8220         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8221         SCALAR_FLOAT_MODE_P.
8223 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
8225         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8226         (completely_scalarize): Comment zero-length arrays.
8227         (get_access_replacement): Correct comment re. precondition.
8229 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8231         * config/i386/i386.c (get_builtin_code_for_version): Set priority
8232         for PROCESSOR_ZNVER1.
8233         (enum processor_model): Add M_AMDFAM17H_znver1.
8234         (struct arch_names_table): Likewise.
8235         * doc/extend.texi: ADD znver1.
8237 2015-10-30  Richard Biener  <rguenther@suse.de>
8239         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8240         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
8241         zeros to be folded to VECTOR_CSTs.
8242         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8243         * fold-const.c (fold): Use build_vector_from_ctor.
8245 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
8247         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8248         "mov %0.h[0], %1.h[0] to "neon_move".
8249         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8250         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8251         "mov_imm".
8252         (*cmovsi_insn_uxtw): Likewise.
8254 2015-10-30  Tom de Vries  <tom@codesourcery.com>
8256         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8257         unsigned, and initialize, and use initial value instead of hardcoded
8258         constant.  Add generic constraints dumping section.  Don't dump global
8259         initializers constraints dumping section if empty.  Don't update
8260         variable from if unused.
8262 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8264         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8265         flag_checking and/or CHECKING_P to eliminate conditional compilation
8266         on ENABLE_CHECKING.
8267         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8268         * config/bfin/bfin.c (hwloop_optimize): Likewise.
8269         * config/i386/i386.c (ix86_print_operand_address): Likewise.
8270         (output_387_binary_op): Likewise.
8271         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8272         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8273         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8274         Likewise.
8275         * config/rs6000/rs6000.h: Likewise.
8276         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8278 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8280         * config/sh/sh.opt (mfdpic): Add missing period.
8282 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
8284         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8285         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8286         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8287         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8288         mcore_base_register_rtx_p, mcore_legitimate_index_p,
8289         mcore_legitimate_address_p): New functions.
8290         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8292 2015-10-29  Jeff Law  <law@redhat.com>
8294         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8295         method.
8296         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8297         * tree-ssa-threadedge.c
8298         (record_temporary_equivalences_from_stmts_at_dest): Remove
8299         backedge_seen argument and associated code which invalidated
8300         equivalences based on the value of that argument.
8301         (thread_through_normal_block): Corresponding changes.
8303 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8305         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8306         function earlier in the file.
8307         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8308         df_regs_ever_live_p.
8310 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8312         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8313         by ignoring it.
8315 2015-10-29  Richard Henderson  <rth@redhat.com>
8317         PR target/68124
8318         PR rtl-opt/67609
8319         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8320         sse check to the exact conditions of PR 67609.
8322 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8324         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8325         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8326         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8327         of the traditional names that TFmode uses for handling IEEE
8328         extended double. If -mfloat128, add KFmode functions for all of
8329         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8330         make TFmode use the same emulation functions as KFmode.
8331         (init_float128_ibm): Likewise.
8332         (init_float128_ieee): Likewise.
8333         (rs6000_generate_compare): For IEEE 128-bit floating point
8334         comparisons, call the unordered comparison function instead of the
8335         ordered comparison function.
8336         (rs6000_expand_float128_convert): Deal with operands that are
8337         memory operands. Restructure the code to use a switch statement on
8338         the mode. Add support for TFmode defaulting to either IBM extended
8339         double or IEEE 128-bit floating point. If the underlying types are
8340         the same, use a move instead of a conversion function.
8341         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8342         use for IEEE 128-bit floating point constants with -mfloat128.
8343         (rs6000_c_mode_for_suffix): Likewise.
8344         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8345         128-bit floating point with IBM extended double floating point.
8346         (rs6000_invalid_binary_op): Likewise.
8347         (rs6000_gen_le_vsx_permute): On little endian systems generate a
8348         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8349         types that can go in vector registers.
8350         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8351         point types that can go in vector registers on little endian
8352         PowerPC systems.
8353         (mark_swaps_for_removal): Likewise.
8354         (rs6000_analyze_swaps): Likewise.
8355         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8357         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8358         rework IEEE 128-bit floating point insns to deal with TFmode being
8359         either IBM extended double or IEEE 128-bit floating point.
8360         (IFKF): Likewise.
8361         (IBM128): Update iterator to add condition that the mode is IBM
8362         extended double.
8363         (IEEE128): New iterator for IEEE 128-bit floating point.
8364         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8365         (FLOAT128): Likewise.
8366         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8367         iterator.
8368         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8369         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8370         instead of hard coding TFmode or KFmode.
8371         (negtf2_internal): Likewise.
8372         (neg<mode>2_internal): Likewise.
8373         (abs<mode>2): Likewise.
8374         (abstf2_internal): Likewise.
8375         (abs<mode>2_internal): Likewise.
8376         (ieee_128bit_neg<mode>2): Likewise.
8377         (ieee_128bit_neg<mode>2_internal): Likewise.
8378         (ieee_128bit_abs<mode>2): Likewise.
8379         (ieee_128bit_abs<mode>2_internal): Likewise.
8380         (ieee_128bit_nabs<mode>2): Likewise.
8381         (ieee_128bit_nabs<mode>2_internal): Likewise.
8382         (extendiftf2): Add explicit conversions between 128-bit floating
8383         point types. Drop the old conversions that had become unwieldy.
8384         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8385         (extendifkf2): Likewise.
8386         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8387         (extendtfkf2): Likewise.
8388         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8389         (trunciftf2): Likewise.
8390         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8391         (truncifkf2): Likewise.
8392         (float<SDI:mode><IFKF:mode>2): Likewise.
8393         (trunckftf2): Likewise.
8394         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8395         (trunctfif2): Likewise.
8396         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8397         (extenddftf2): Rework 128-bit floating point conversions to
8398         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8399         KFmode expanders into one function.
8400         (extenddf<mode>2): Likewise.
8401         (extenddftf2_fprs): Likewise.
8402         (extenddf<mode>2_fprs): Likewise.
8403         (extenddftf2_vsx): Likewise.
8404         (extenddf<mode>2_vsx): Likewise.
8405         (extendsftf2): Likewise.
8406         (extendsf<mode>2): Likewise.
8407         (trunctfdf2): Likewise.
8408         (trunc<mode>df2): Likewise.
8409         (trunctfdf2_internal1): Likewise.
8410         (trunc<mode>df2_internal1): Likewise.
8411         (trunctfdf2_internal2): Likewise.
8412         (trunc<mode>df2_internal2): Likewise.
8413         (trunctfsf2): Likewise.
8414         (trunc<mode>sf2): Likewise.
8415         (trunctfsf2_fprs): Likewise.
8416         (trunc<mode>sf2_fprs): Likewise.
8417         (floatsit2f): Likewise.
8418         (floatsi<mode>2): Likewise.
8419         (fix_trunc_helper): Likewise.
8420         (fix_trunc_helper<mode>): Likewise.
8421         (fix_trunctfsi2): Likewise.
8422         (fix_trunc<mode>si2): Likewise.
8423         (fix_trunctfsi2_fprs): Likewise.
8424         (fix_trunc<mode>si2_fprs): Likewise.
8425         (fix_trunctfsi2_internal): Likewise.
8426         (fix_trunc<mode>si2_internal): Likewise.
8427         (fix_trunctfdi2): Likewise.
8428         (fix_trunc<mode>di2): Likewise.
8429         (fixuns_trunctf<mode>2): Likewise.
8430         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8431         (floatditf2): Likewise.
8432         (floatdi<mode>2): Likewise.
8433         (floatuns<mode>tf2): Likewise.
8434         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
8435         (cmptf_internal1): Use a mode iterator to add support for both
8436         types (IFmode, TFmode) that support IBM extended double.
8437         (cmp<mode>_internal1): Likewise.
8438         (cmptf_internal2): Likewise.
8439         (cmp<mode>_internal2): Likewise.
8441         * doc/extend.texi (Floating Types): Document __ibm128 and
8442         __float128 on PowerPC.
8444         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8445         -mfloat128 and -mno-float128.
8447 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8449         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
8450         floating point modes that can go in vector registers.
8451         (MODES_TIEABLE_P): Move tests for vector modes before tests for
8452         scalar floating point, so that IEEE 128-bit floating point that
8453         can go in vector registers bind with vectors and not FP.
8454         (struct rs6000_args): Add libcall field.
8456         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
8457         and -mfloat128-software switches.  Replace them with a binary
8458         -mfloat128 switch.
8459         (-mfloat128): Likewise.
8461         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8462         128-bit floating point types in GPRs, even if the appropriate
8463         option enabling the type was not used.
8464         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
8465         debugging.
8466         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
8467         pre-decrement on IEEE 128-bit floating point values.
8468         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
8469         is IEEE 128-bit floating point.
8470         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
8471         128-bit floating point types that can go in vector registers.
8472         (rs6000_option_override_internal): Change -mfloat128-none and
8473         -mfloat128-software to -mfloat128, and move code to be near other
8474         VSX option handling.
8475         (rs6000_option_override_internal): Disable -mfloat128 if we don't
8476         have the Altivec ABI.
8477         (rs6000_init_builtins): Don't make TFmode use either IFmode or
8478         KFmode floating point nodes. Instead, have three separate nodes.
8479         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
8480         eventually moving the long double default to IEEE 128-bit floating
8481         point.
8482         (rs6000_opt_masks): Add -mfloat128.
8483         (struct rs6000_opt_var): Fix typo in comment.
8484         (init_cumulative_args): Initialize libcall field in
8485         CUMULATIVE_ARGS.
8486         (rs6000_function_arg): Treat library functions as if they had
8487         prototypes to prevent IEEE 128-bit support functions from passing
8488         arguments in both GPRs and vector registers.
8489         (rs6000_arg_partial_bytes): Likewise.
8491         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
8492         an option that can be turned on via -mcpu=<xxx>.
8494         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
8495         longer used.
8497         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8498         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
8499         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
8500         double is IBM extended double.
8502         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
8503         SUBREGs.
8505 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8507         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
8508         * genconditions.c: Define CHECKING_P in the generated code.
8509         * genextract.c: Use flag_checking in insn_extract.
8510         * gengtype.c (main): Remove conditional compilation.
8511         * gengtype.h: Likewise.
8513 2015-10-29  Jeff Law  <law@redhat.com>
8515         PR tree-optimization/67892
8516         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
8517         in comment.
8518         (thread_through_normal_block): If we have seen a backedge, then
8519         do nothing.  No longer call find_jump_threads_backwards here.
8520         (thread_across_edge): Use find_jump_threads_backwards to find
8521         jump threads if the old style threader was not successful.
8522         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
8523         gsi_last_nondebug_bb.  Return NULL if the block does not end
8524         with a control statement.
8525         (find_jump_threads_backwards): Setup code moved here from
8526         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
8527         single edge argument instead of name & block.
8528         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
8529         prototype.
8531 2015-10-29  Tom de Vries  <tom@codesourcery.com>
8533         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
8534         types.
8536 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
8538         * omp-low.c (lower_omp_target): Remove unreachable code & merge
8539         ifs.
8541 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
8543         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
8545 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8547         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8548         guard_bb0 and use guard_bb throughout.
8550 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8552         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8553         unnecessary label.
8555 2015-10-29  Richard Biener  <rguenther@suse.de>
8557         PR middle-end/68142
8558         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
8559         overflow.
8561 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
8563         * alias.c: Reorder #include statements and remove duplicates.
8564         * asan.c: Likewise.
8565         * attribs.c: Likewise.
8566         * auto-inc-dec.c: Likewise.
8567         * auto-profile.c: Likewise.
8568         * bb-reorder.c: Likewise.
8569         * bt-load.c: Likewise.
8570         * builtins.c: Likewise.
8571         * caller-save.c: Likewise.
8572         * calls.c: Likewise.
8573         * ccmp.c: Likewise.
8574         * cfg.c: Likewise.
8575         * cfganal.c: Likewise.
8576         * cfgbuild.c: Likewise.
8577         * cfgcleanup.c: Likewise.
8578         * cfgexpand.c: Likewise.
8579         * cfghooks.c: Likewise.
8580         * cfgloop.c: Likewise.
8581         * cfgloopanal.c: Likewise.
8582         * cfgloopmanip.c: Likewise.
8583         * cfgrtl.c: Likewise.
8584         * cgraph.c: Likewise.
8585         * cgraphbuild.c: Likewise.
8586         * cgraphclones.c: Likewise.
8587         * cgraphunit.c: Likewise.
8588         * cilk-common.c: Likewise.
8589         * combine-stack-adj.c: Likewise.
8590         * combine.c: Likewise.
8591         * compare-elim.c: Likewise.
8592         * convert.c: Likewise.
8593         * coverage.c: Likewise.
8594         * cppbuiltin.c: Likewise.
8595         * cprop.c: Likewise.
8596         * cse.c: Likewise.
8597         * cselib.c: Likewise.
8598         * data-streamer-in.c: Likewise.
8599         * data-streamer-out.c: Likewise.
8600         * data-streamer.c: Likewise.
8601         * dbxout.c: Likewise.
8602         * dce.c: Likewise.
8603         * ddg.c: Likewise.
8604         * debug.c: Likewise.
8605         * df-core.c: Likewise.
8606         * df-problems.c: Likewise.
8607         * df-scan.c: Likewise.
8608         * dfp.c: Likewise.
8609         * dojump.c: Likewise.
8610         * dominance.c: Likewise.
8611         * double-int.c: Likewise.
8612         * dse.c: Likewise.
8613         * dumpfile.c: Likewise.
8614         * dwarf2asm.c: Likewise.
8615         * dwarf2cfi.c: Likewise.
8616         * dwarf2out.c: Likewise.
8617         * emit-rtl.c: Likewise.
8618         * except.c: Likewise.
8619         * explow.c: Likewise.
8620         * expmed.c: Likewise.
8621         * expr.c: Likewise.
8622         * final.c: Likewise.
8623         * fixed-value.c: Likewise.
8624         * fold-const.c: Likewise.
8625         * function.c: Likewise.
8626         * fwprop.c: Likewise.
8627         * gcse.c: Likewise.
8628         * generic-match-head.c: Likewise.
8629         * ggc-common.c: Likewise.
8630         * gimple-builder.c: Likewise.
8631         * gimple-expr.c: Likewise.
8632         * gimple-fold.c: Likewise.
8633         * gimple-iterator.c: Likewise.
8634         * gimple-low.c: Likewise.
8635         * gimple-match-head.c: Likewise.
8636         * gimple-pretty-print.c: Likewise.
8637         * gimple-ssa-isolate-paths.c: Likewise.
8638         * gimple-ssa-strength-reduction.c: Likewise.
8639         * gimple-streamer-in.c: Likewise.
8640         * gimple-streamer-out.c: Likewise.
8641         * gimple-walk.c: Likewise.
8642         * gimple.c: Likewise.
8643         * gimplify-me.c: Likewise.
8644         * gimplify.c: Likewise.
8645         * godump.c: Likewise.
8646         * graph.c: Likewise.
8647         * graphite-poly.c: Likewise.
8648         * haifa-sched.c: Likewise.
8649         * hw-doloop.c: Likewise.
8650         * ifcvt.c: Likewise.
8651         * incpath.c: Likewise.
8652         * init-regs.c: Likewise.
8653         * internal-fn.c: Likewise.
8654         * ipa-chkp.c: Likewise.
8655         * ipa-comdats.c: Likewise.
8656         * ipa-cp.c: Likewise.
8657         * ipa-devirt.c: Likewise.
8658         * ipa-icf-gimple.c: Likewise.
8659         * ipa-icf.c: Likewise.
8660         * ipa-inline-analysis.c: Likewise.
8661         * ipa-inline-transform.c: Likewise.
8662         * ipa-inline.c: Likewise.
8663         * ipa-polymorphic-call.c: Likewise.
8664         * ipa-profile.c: Likewise.
8665         * ipa-prop.c: Likewise.
8666         * ipa-pure-const.c: Likewise.
8667         * ipa-ref.c: Likewise.
8668         * ipa-reference.c: Likewise.
8669         * ipa-split.c: Likewise.
8670         * ipa-utils.c: Likewise.
8671         * ipa-visibility.c: Likewise.
8672         * ipa.c: Likewise.
8673         * ira-build.c: Likewise.
8674         * ira-color.c: Likewise.
8675         * ira-conflicts.c: Likewise.
8676         * ira-costs.c: Likewise.
8677         * ira-emit.c: Likewise.
8678         * ira-lives.c: Likewise.
8679         * ira.c: Likewise.
8680         * jump.c: Likewise.
8681         * langhooks.c: Likewise.
8682         * lcm.c: Likewise.
8683         * lists.c: Likewise.
8684         * loop-doloop.c: Likewise.
8685         * loop-init.c: Likewise.
8686         * loop-invariant.c: Likewise.
8687         * loop-iv.c: Likewise.
8688         * loop-unroll.c: Likewise.
8689         * lower-subreg.c: Likewise.
8690         * lra-assigns.c: Likewise.
8691         * lra-coalesce.c: Likewise.
8692         * lra-constraints.c: Likewise.
8693         * lra-eliminations.c: Likewise.
8694         * lra-lives.c: Likewise.
8695         * lra-remat.c: Likewise.
8696         * lra-spills.c: Likewise.
8697         * lra.c: Likewise.
8698         * lto-cgraph.c: Likewise.
8699         * lto-compress.c: Likewise.
8700         * lto-opts.c: Likewise.
8701         * lto-section-in.c: Likewise.
8702         * lto-section-out.c: Likewise.
8703         * lto-streamer-in.c: Likewise.
8704         * lto-streamer-out.c: Likewise.
8705         * lto-streamer.c: Likewise.
8706         * mode-switching.c: Likewise.
8707         * modulo-sched.c: Likewise.
8708         * omp-low.c: Likewise.
8709         * optabs.c: Likewise.
8710         * opts-global.c: Likewise.
8711         * passes.c: Likewise.
8712         * plugin.c: Likewise.
8713         * postreload-gcse.c: Likewise.
8714         * postreload.c: Likewise.
8715         * predict.c: Likewise.
8716         * print-tree.c: Likewise.
8717         * profile.c: Likewise.
8718         * real.c: Likewise.
8719         * realmpfr.c: Likewise.
8720         * recog.c: Likewise.
8721         * ree.c: Likewise.
8722         * reg-stack.c: Likewise.
8723         * regcprop.c: Likewise.
8724         * reginfo.c: Likewise.
8725         * regrename.c: Likewise.
8726         * regstat.c: Likewise.
8727         * reload.c: Likewise.
8728         * reload1.c: Likewise.
8729         * reorg.c: Likewise.
8730         * resource.c: Likewise.
8731         * rtl-chkp.c: Likewise.
8732         * rtl-error.c: Likewise.
8733         * rtlanal.c: Likewise.
8734         * rtlhooks.c: Likewise.
8735         * sanopt.c: Likewise.
8736         * sched-deps.c: Likewise.
8737         * sched-ebb.c: Likewise.
8738         * sched-rgn.c: Likewise.
8739         * sese.c: Likewise.
8740         * shrink-wrap.c: Likewise.
8741         * simplify-rtx.c: Likewise.
8742         * stack-ptr-mod.c: Likewise.
8743         * statistics.c: Likewise.
8744         * stmt.c: Likewise.
8745         * stor-layout.c: Likewise.
8746         * store-motion.c: Likewise.
8747         * stringpool.c: Likewise.
8748         * symtab.c: Likewise.
8749         * target-globals.c: Likewise.
8750         * targhooks.c: Likewise.
8751         * toplev.c: Likewise.
8752         * tracer.c: Likewise.
8753         * trans-mem.c: Likewise.
8754         * tree-affine.c: Likewise.
8755         * tree-call-cdce.c: Likewise.
8756         * tree-cfg.c: Likewise.
8757         * tree-cfgcleanup.c: Likewise.
8758         * tree-chkp-opt.c: Likewise.
8759         * tree-chkp.c: Likewise.
8760         * tree-chrec.c: Likewise.
8761         * tree-complex.c: Likewise.
8762         * tree-data-ref.c: Likewise.
8763         * tree-dfa.c: Likewise.
8764         * tree-diagnostic.c: Likewise.
8765         * tree-dump.c: Likewise.
8766         * tree-eh.c: Likewise.
8767         * tree-emutls.c: Likewise.
8768         * tree-if-conv.c: Likewise.
8769         * tree-inline.c: Likewise.
8770         * tree-into-ssa.c: Likewise.
8771         * tree-iterator.c: Likewise.
8772         * tree-loop-distribution.c: Likewise.
8773         * tree-nested.c: Likewise.
8774         * tree-nrv.c: Likewise.
8775         * tree-object-size.c: Likewise.
8776         * tree-outof-ssa.c: Likewise.
8777         * tree-parloops.c: Likewise.
8778         * tree-phinodes.c: Likewise.
8779         * tree-predcom.c: Likewise.
8780         * tree-pretty-print.c: Likewise.
8781         * tree-profile.c: Likewise.
8782         * tree-scalar-evolution.c: Likewise.
8783         * tree-sra.c: Likewise.
8784         * tree-ssa-address.c: Likewise.
8785         * tree-ssa-alias.c: Likewise.
8786         * tree-ssa-ccp.c: Likewise.
8787         * tree-ssa-coalesce.c: Likewise.
8788         * tree-ssa-copy.c: Likewise.
8789         * tree-ssa-dce.c: Likewise.
8790         * tree-ssa-dom.c: Likewise.
8791         * tree-ssa-dse.c: Likewise.
8792         * tree-ssa-forwprop.c: Likewise.
8793         * tree-ssa-ifcombine.c: Likewise.
8794         * tree-ssa-live.c: Likewise.
8795         * tree-ssa-loop-ch.c: Likewise.
8796         * tree-ssa-loop-im.c: Likewise.
8797         * tree-ssa-loop-ivcanon.c: Likewise.
8798         * tree-ssa-loop-ivopts.c: Likewise.
8799         * tree-ssa-loop-manip.c: Likewise.
8800         * tree-ssa-loop-niter.c: Likewise.
8801         * tree-ssa-loop-prefetch.c: Likewise.
8802         * tree-ssa-loop-unswitch.c: Likewise.
8803         * tree-ssa-loop.c: Likewise.
8804         * tree-ssa-math-opts.c: Likewise.
8805         * tree-ssa-operands.c: Likewise.
8806         * tree-ssa-phiopt.c: Likewise.
8807         * tree-ssa-phiprop.c: Likewise.
8808         * tree-ssa-pre.c: Likewise.
8809         * tree-ssa-propagate.c: Likewise.
8810         * tree-ssa-reassoc.c: Likewise.
8811         * tree-ssa-sccvn.c: Likewise.
8812         * tree-ssa-scopedtables.c: Likewise.
8813         * tree-ssa-sink.c: Likewise.
8814         * tree-ssa-strlen.c: Likewise.
8815         * tree-ssa-structalias.c: Likewise.
8816         * tree-ssa-tail-merge.c: Likewise.
8817         * tree-ssa-ter.c: Likewise.
8818         * tree-ssa-threadedge.c: Likewise.
8819         * tree-ssa-threadupdate.c: Likewise.
8820         * tree-ssa-uncprop.c: Likewise.
8821         * tree-ssa-uninit.c: Likewise.
8822         * tree-ssa.c: Likewise.
8823         * tree-ssanames.c: Likewise.
8824         * tree-stdarg.c: Likewise.
8825         * tree-streamer-in.c: Likewise.
8826         * tree-streamer-out.c: Likewise.
8827         * tree-streamer.c: Likewise.
8828         * tree-switch-conversion.c: Likewise.
8829         * tree-tailcall.c: Likewise.
8830         * tree-vect-data-refs.c: Likewise.
8831         * tree-vect-generic.c: Likewise.
8832         * tree-vect-loop-manip.c: Likewise.
8833         * tree-vect-loop.c: Likewise.
8834         * tree-vect-patterns.c: Likewise.
8835         * tree-vect-slp.c: Likewise.
8836         * tree-vect-stmts.c: Likewise.
8837         * tree-vectorizer.c: Likewise.
8838         * tree-vrp.c: Likewise.
8839         * tree.c: Likewise.
8840         * tsan.c: Likewise.
8841         * ubsan.c: Likewise.
8842         * value-prof.c: Likewise.
8843         * var-tracking.c: Likewise.
8844         * varasm.c: Likewise.
8845         * varpool.c: Likewise.
8846         * vtable-verify.c: Likewise.
8847         * web.c: Likewise.
8848         * wide-int-print.cc: Likewise.
8849         * wide-int.cc: Likewise.
8850         * xcoffout.c: Likewise.
8852 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
8854         * Makefile.in (NO_PIE_CFLAGS): New.
8855         (NO_PIE_FLAG): Likewise.
8856         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8857         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8858         (BUILD_NO_PIE_CFLAGS): Likewise.
8859         (BUILD_NO_PIE_FLAG): Likewise.
8860         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8861         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8862         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8863         $(BUILD_NO_PIE_CFLAGS).
8864         (BUILD_CXXFLAGS): Likewise.
8865         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8866         $(BUILD_NO_PIE_FLAG).
8867         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
8868         (BUILD_NO_PIE_FLAG): Likewise.
8869         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8870         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8871         * configure: Regenerated.
8873 2015-10-29  Richard Biener  <rguenther@suse.de>
8875         PR middle-end/56956
8876         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8877         unsigned conditonal negation to ABS_EXPR.
8879 2015-10-29  Richard Biener  <rguenther@suse.de>
8881         * gimple-match-head.c (gimple_simplify): Remove premature checking
8882         of builtin_decl_implicit of function calls we simplify.
8884 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
8886         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8887         (get_computation_cost_at): Ditto.
8888         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8889         and inv_expr_id.
8891 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8893         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8894         superfluous code.
8896 2015-10-28  Jason Merrill  <jason@redhat.com>
8898         * Makefile.in (TAGS): Include libcpp and libiberty.
8900 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8902         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8903         (extract_omp_for_data): Remove OpenACC special handling of
8904         chunking.
8906         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8907         (struct parallel): Update comment.
8908         (nvptx_reorg): Likewise.
8909         (nvptx_neuter): Cleanup whitespace.
8911 2015-10-28  Richard Henderson  <rth@redhat.com>
8913         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8915 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8917         PR target/67839
8918         * config/avr/predicates.md (low_io_address_operand): Don't
8919         consider MODE when computing upper bound.
8920         (io_address_operand): Likewise.
8922 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
8924         * fold-const.c (operand_equal_p): Do not verify that types are
8925         compatible for MEM_REFs.
8927 2015-10-28  Richard Biener  <rguenther@suse.de>
8929         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8930         in simplifying VEC_COND_EXPR conditions.
8932 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8934         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8935         into vi_next of a full_var.
8937 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8939         * tree-ssa-structalias.c (new_var_info, make_heapvar)
8940         (make_constraint_from_restrict, make_constraint_from_global_restrict)
8941         (create_function_info_for, create_variable_info_for_1)
8942         (create_variable_info_for): Add and handle add_id parameter.
8943         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8944         (init_base_vars): Add extra argument to calls to new_var_info.
8945         (get_vi_for_tree): Add extra argument to call to
8946         create_variable_info_for.
8947         (process_constraint, do_deref, process_all_all_constraints): Add extra
8948         argument to calls to new_scalar_tmp_constraint_exp.
8949         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8950         argument to calls to make_heapvar.
8951         (make_restrict_var_constraints): Add extra argument to call to
8952         make_constraint_from_global_restrict.
8953         (intra_create_variable_infos): Add extra argument to call to
8954         create_variable_info_for_1.
8955         (ipa_pta_execute): Add extra argument to call to
8956         create_function_info_for.
8958 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8960         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8961         (sibcall_value): Likewise.
8963 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8965         * config/nvptx/nvptx.h (struct machine_function): Add
8966         axis_predicate.
8967         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8968         nvptx_expand_oacc_join): Declare.
8969         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8970         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8971         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8972         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8973         UNSPECV_JOINING, UNSPECV_JOIN): New.
8974         (BITS, BITD): New mode iterators.
8975         (br_true_uni, br_false_uni): New.
8976         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8977         (oacc_dim_size, oacc_dim_pos): New.
8978         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8979         (oacc_fork, oacc_join): New.
8980         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8981         (worker_load<mode>, worker_store<mode>): New.
8982         (nvptx_barsync): New.
8983         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8984         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8985         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8986         worker_bcast_sym): New.
8987         (nvptx_option_override): Initialize worker broadcast buffer.
8988         (nvptx_emit_forking, nvptx_emit_joining): New.
8989         (nvptx_init_axis_predicate): New.
8990         (nvptx_declare_function_name): Init axis predicates.
8991         (nvptx_expand_call): Add fork/join markers around routine call.
8992         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8993         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8994         (nvptx_gen_vcast): New.
8995         (struct wcast_data_t): New.
8996         (enum propagate_mask): New.
8997         (nvptx_gen_wcast): New.
8998         (nvptx_print_operand): Add 'S' case.
8999         (struct parallel): New.
9000         (parallel::parallel, parallel::~parallel): New.
9001         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
9002         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
9003         nvptx_find_par, nvptx_discover_pars): New.
9004         (nvptx_propagate): New.
9005         (vprop_gen, nvptx_vpropagate): New.
9006         (wprop_gen, nvptx_wpropagate): New.
9007         (nvptx_wsync): New.
9008         (nvptx_single, nvptx_skip_par): New.
9009         (nvptx_process_pars, nvptx_neuter_pars): New.
9010         (ntptx_reorg): Split blocks, generate parallel structure, apply
9011         neutering.
9012         (nvptx_cannot_copy_insn_p): New.
9013         (nvptx_file_end): Emit worker broadcast decl.
9014         (nvptx_goacc_fork_join): New.
9015         (TARGET_CANNOT_COPY_INSN_P): Override.
9016         (TARGET_GOACC_FORK_JOIN): Override.
9018 2015-10-28  Richard Biener  <rguenther@suse.de>
9020         * fold-const.c (negate_expr_p): Adjust the division case to
9021         properly avoid introducing undefined overflow.
9022         (fold_negate_expr): Likewise.
9024 2015-10-28  Richard Biener  <rguenther@suse.de>
9026         PR tree-optimization/65962
9027         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9028         Avoid creating loop carried dependences also for outer loops
9029         of the loop a use to replace is in.
9031 2015-10-28  Richard Biener  <rguenther@suse.de>
9033         * common.opt (fchecking): New flag controlling flag_checking.
9034         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
9035         * timevar.c (timer::print): Adjust output.
9036         * doc/invoke.texi (fchecking): Document.
9038 2015-10-28  Richard Biener  <rguenther@suse.de>
9040         PR middle-end/68067
9041         * fold-const.c (negate_expr_p): We cannot negate plus or minus
9042         if overflow is not wrapping.  Likewise multiplication unless
9043         one operand is constant and not power of two.
9044         (fold_negate_expr): Adjust accordingly.
9046 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9048         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
9049         fields.
9050         (is_oacc_parallel, is_oacc_kernels): New.
9051         (enclosing_target_ctx): May return NULL.
9052         (ctx_in_oacc_kernels_region): New.
9053         (check_oacc_kernel_gwv): New.
9054         (oacc_loop_or_target_p): Delete.
9055         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
9056         operands.  Strip reductions fro kernels.
9057         (scan_omp_target): Don't calculate gwv mask.
9058         (lower_oacc_head_mark, lower_oacc_loop_marker,
9059         lower_oacc_head_tail): New.
9060         (struct oacc_collapse): New.
9061         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
9062         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9063         Remove OpenACC handling.
9064         (expand_oacc_for): New.
9065         (expand_omp_for): Call expand_oacc_for.
9066         (lower_omp_for): Call lower_oacc_head_tail.
9068 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
9070         * attribs.c (check_attribute_tables): New function, broken out from...
9071         (init_attributes): Use it.
9072         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
9073         gcc_checking_assert and checking_* functions to eliminate
9074         ENABLE_CHECKING conditionals.
9075         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
9076         (pass_expand::execute): Likewise.
9077         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
9078         * cgraphunit.c (mark_functions_to_output): Likewise.
9079         (cgraph_node::expand_thunk): Likewise.
9080         (symbol_table::compile): Likewise.
9081         * ddg.c (add_cross_iteration_register_deps): Likewise.
9082         (create_ddg_all_sccs): Likewise.
9083         * df-core.c (df_finish_pass, df_analyze): Likewise.
9084         * diagnostic-core.h: Likewise.
9085         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
9086         * dominance.c (calculate_dominance_info): Likewise.
9087         * dwarf2out.c (add_AT_die_ref): Likewise.
9088         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
9089         (loc_list_from_tree, gen_lexical_block_die): Likewise.
9090         gen_type_die_with_usage, gen_type_die): Likewise.
9091         (dwarf2out_decl): Likewise.
9092         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
9093         * except.c (duplicate_eh_regions): Likewise.
9094         * fwprop.c (register_active_defs, update_df_init): Likewise.
9095         (fwprop_init, fwprop_done): Likewise.
9096         (update_uses): Likewise.
9097         * ggc-page.c (ggc_grow): Likewise.
9098         * gimplify.c (gimplify_body): Likewise.
9099         (gimplify_hasher::equal): Likewise.
9100         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
9101         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
9102         Likewise.
9103         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
9104         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
9105         * hash-table.h (::find_empty_slot_for_expand): Likewise.
9106         * ifcvt.c (if_convert): Likewise.
9107         * ipa-cp.c (ipcp_propagate_stage): Likewise.
9108         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
9109         (odr_type_p, odr_types_equivalent_p): Likewise.
9110         (add_type_duplicate, get_odr_type): Likewise.
9111         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9112         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9113         (sem_item_optimizer::verify_classes): Likewise.
9114         (sem_item_optimizer::traverse_congruence_split): Likewise.
9115         (sem_item_optimizer::checking_verify_classes): New.
9116         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
9117         method.
9118         * cfgrtl.c (commit_edge_insertions): Likewise.
9119         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
9120         (rtl_flow_call_edges_add): Likewise.
9121         * cgraph.c (symbol_table::create_edge): Likewise.
9122         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9123         * cgraph.h (symtab_node): Likewise.
9124         (symtab_node::checking_verify_symtab_nodes): Define.
9125         (cgraph_node::checking_verify_cgraph_nodes): Define.
9126         * cfghooks.h (checking_verify_flow_info): Define.
9127         * cfgloop.h (checking_verify_loop_structure): Define.
9128         * dominance.h (checking_verify_dominators): Define.
9129         * et-forest.c: Fix comment.
9130         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9131         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9132         ENABLE_CHECKING conditionals.
9133         * ipa-inline-transform.c (save_inline_function_body): Likewise.
9134         * ipa-inline.c (inline_small_functions): Likewise.
9135         (early_inliner): Likewise.
9136         * ipa-inline.h (estimate_edge_growth): Likewise.
9137         * ipa-visibility.c (function_and_variable_visibility): Likewise.
9138         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9139         (ipa_single_use): Likewise.
9140         * ira-int.h: Likewise.
9141         * ira.c (ira): Likewise.
9142         * loop-doloop.c (doloop_optimize_loops): Likewise.
9143         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9144         * loop-invariant.c (move_loop_invariants): Likewise.
9145         * lra-assigns.c (lra_assign): Likewise.
9146         * lra-constraints.c (lra_constraints): Likewise.
9147         * lra-eliminations.c (lra_eliminate): Likewise.
9148         * lra-int.h (struct lra_reg): Likewise.
9149         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9150         (lra_create_live_ranges_1): Likewise.
9151         * lra-remat.c (create_remat_bb_data): Likewise.
9152         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9153         (lra): Likewise.
9154         (check_rtl): Always define. Remove incorrect guard around
9155         extract_constrain_insn call.
9156         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9157         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9158         ENABLE_CHECKING conditionals.
9159         * lto-streamer-out.c (DFS::DFS): Likewise.
9160         (lto_output): Likewise.
9161         * lto-streamer.c (lto_streamer_init): Likewise.
9162         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9163         expand_omp_target, execute_expand_omp): Likewise.
9164         (lower_omp_target): Likewise.
9165         * passes.c (execute_function_todo): Likewise.
9166         (execute_todo, execute_one_pass): Likewise.
9167         (verify_curr_properties): Always define.
9168         * predict.c (tree_estimate_probability: Use flag_checking,
9169         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9170         ENABLE_CHECKING conditionals.
9171         (propagate_freq): Likewise.
9172         * pretty-print.c (pp_format): Likewise.
9173         * real.c (real_to_decimal_for_mode): Likewise.
9174         * recog.c (split_all_insns): Likewise.
9175         * regcprop.c (kill_value_one_regno): Likewise.
9176         (copy_value): Likewise.
9177         (validate_value_data): Define unconditionally.
9178         * reload.c: Fix comment.
9179         * timevar.c: Include options.h
9180         * tree-ssa.h (checking_verify_ssa): Define.
9181         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9182         * sched-deps.c (CHECK): Remove unused macro.
9183         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9184         gcc_checking_assert and checking_* functions to eliminate
9185         ENABLE_CHECKING conditionals.
9186         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9187         * sel-sched.c (struct moveop_static_params): Likewise.
9188         (find_best_reg_for_expr, move_cond_jump): Likewise.
9189         (move_op_orig_expr_not_found): Likewise.
9190         (code_motion_process_successors, move_op): Likewise.
9191         * ssa-iterators.h (first_readonly_imm_use): Likewise.
9192         (next_readonly_imm_use): Likewise.
9193         * store-motion.c (compute_store_table): Likewise.
9194         * symbol-summary.h (function_summary::function_summary): Likewise.
9195         * target.h (cumulative_args_t): Likewise.
9196         (get_cumulative_args, pack_cumulative_args): Likewise.
9197         * timevar.c: (timer::print): Likewise.
9198         * trans-mem.c (ipa_tm_execute): Likewise.
9199         * tree-cfg.c (move_stmt_op): Likewise.
9200         (move_sese_region_to_fn): Likewise.
9201         (gimple_flow_call_edges_add): Likewise.
9202         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9203         Likewise.
9204         * tree-eh.c (remove_unreachable_handlers): Likewise.
9205         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9206         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9207         * tree-into-ssa.c (update_ssa): Likewise.
9208         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9209         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9210         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9211         * tree-predcom.c (suitable_component_p): Likewise.
9212         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9213         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9214         * tree-ssa-live.c (verify_live_on_entry): Likewise.
9215         * tree-ssa-live.h (register_ssa_partition): Likewise.
9216         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9217         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9218         (tree_transform_and_unroll_loop): Likewise.
9219         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9220         * tree-ssa-operands.c (get_expr_operands): Likewise.
9221         * tree-ssa-propagate.c (replace_exp_1): Likewise.
9222         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9223         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9224         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9225         * tree-ssanames.c (release_ssa_name_fn): Likewise.
9226         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9227         * tree-vect-loop-manip.c
9228         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9229         (slpeel_checking_verify_cfg_after_peeling): Likewise.
9230         (vect_do_peeling_for_loop_bound): Likewise.
9231         (vect_do_peeling_for_alignment): Likewise.
9232         * tree-vrp.c (supports_overflow_infinity): Likewise.
9233         (set_value_range): Likewise.
9234         * tree.c (free_lang_data_in_cgraph): Likewise.
9235         * value-prof.c (gimple_remove_histogram_value): Likewise.
9236         (free_hist): Likewise.
9237         * var-tracking.c (canonicalize_values_star): Likewise.
9238         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9240 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9242         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9243         IFN_GOACC_LOOP): New.
9244         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9245         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9246         IFN_UNIQUE_OACC_TAIL_MARK.
9247         (enum ifn_goacc_loop_kind): New.
9248         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9249         IFN_UNIQUE_OACC_JOIN cases.
9250         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9251         (expand_GOACC_LOOP): New.
9252         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9253         * omp-low.c: Include gimple-pretty-print.h.
9254         (struct oacc_loop): New.
9255         (enum oacc_loop_flags): New.
9256         (oacc_thread_numbers): New.
9257         (oacc_xform_loop): New.
9258         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9259         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9260         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9261         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9262         oacc_loop_discovery): New.
9263         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9264         oacc_loop_process): New.
9265         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9266         (execute_oacc_device_lower): Discover & process loops.  Process
9267         internal fns.
9268         * target.def (goacc.fork_join): Change sense of hook, clarify
9269         documentation.
9270         * doc/tm.texi: Regenerated.
9272 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9274         * target-insns.def (oacc_fork, oacc_join): Define.
9275         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9276         (goacc.fork_join): New GOACC hook.
9277         * targhooks.h (default_goacc_fork_join): Declare.
9278         * omp-low.c (default_goacc_forkjoin): New.
9279         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9280         * doc/tm.texi: Regenerate.
9282 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9284         * omp-low.c (oacc_init_rediction_array): New.
9285         (oacc_initialize_reduction_data): Initialize array.
9287 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9289         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9291 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9293         * internal-fn.c (expand_UNIQUE): New.
9294         * internal-fn.h (enum ifn_unique_kind): New.
9295         * internal-fn.def (IFN_UNIQUE): New.
9296         * target-insns.def (unique): Define.
9297         * gimple.h (gimple_call_internal_unique_p): New.
9298         * gimple.c (gimple_call_same_target_p): Check internal fn
9299         uniqueness.
9300         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9301         * tree-ssa-threadedge.c
9302         (record_temporary_equivalences_from_stmts): Likewise.
9303         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9305 2015-10-27  Richard Henderson  <rth@redhat.com>
9307         PR rtl-opt/67609
9308         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9309         narrowing subregs on SSE and MMX registers.
9310         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9311         appear to be sub-words of multi-register pseudos must be rejected.
9312         * doc/tm.texi: Regenerate.
9314 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9316         PR target/68102
9317         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9318         operands[0] is a reg before taking its REGNO in split condition.
9319         (*movdi_aarch64): Likewise.
9321 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9323         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9324         Handle floating point inner modes properly.
9326 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
9328         * tree-vect-looop.c
9329         (vectorizable_live_operation): Change iterator.
9331 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9332             Aditya Kumar  <aditya.k7@samsung.com>
9334         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9335           function to schedule based on isl_schedule_node.
9336         (get_schedule_map_st): New schedule optimizer based on
9337         isl_schedule_node.
9338         (scop_get_domains): New. Return the isl_union_set containing the
9339         domains of all the pbbs.
9340         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9342 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
9344         PR target/67215
9345         * calls.c (prepare_call_address): Don't handle -fno-plt here.
9346         * config/i386/i386.c (ix86_expand_call): Generate indirect call
9347         via GOT for -fno-plt.  Support indirect call via GOT for x32.
9348         * config/i386/predicates.md (sibcall_memory_operand): Allow
9349         GOT memory operand.
9351 2015-10-27  Richard Biener  <rguenther@suse.de>
9353         PR tree-optimization/68104
9354         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9355         strided access check ...
9356         (vect_compute_data_refs_alignment): ... here.
9358 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
9359             Joseph Myers  <joseph@codesourcery.com>
9360             Mark Shinwell  <shinwell@codesourcery.com>
9361             Andrew Stubbs  <ams@codesourcery.com>
9362             Rich Felker <dalias@libc.org>
9364         * config.gcc: Handle --enable-fdpic.
9365         * config/sh/constraints.md (Ccl): New constraint.
9366         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9367         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9368         __SH_FDPIC__.
9369         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9370         library functions.
9371         * config/sh/sh-protos.h (function_symbol_result): New struct.
9372         (function_symbol): Return function_symbol_result.
9373         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9374         declarations.
9375         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9376         target hook.
9377         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9378         (sh_option_override): Force -fPIC if FDPIC is in effect.
9379         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9380         UNSPEC_GOTOFFFUNCDESC cases.
9381         (prepare_move_operands): Use FDPIC initial GOT register for
9382         TLS-related GOT access; inhibit cross-section address offset constants
9383         for FDPIC.
9384         (sh_assemble_integer): New function.
9385         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9386         PC-relative call sites.
9387         (expand_ashiftrt): Adapt invocation of function_symbol.
9388         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9389         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9390         UNSPEC_GOTOFFFUNCDESC.
9391         (legitimize_pic_address): Resolve function symbols to function
9392         descriptors for FDPIC.  Do not use GOT-relative addressing for local
9393         data that may be read-only on FDPIC.
9394         (sh_emit_storesi, sh_emit_storehi): New functions.
9395         (sh_trampoline_init): Generate FDPIC trampolines.
9396         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9397         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9398         (sh_output_mi_thunk): Generate FDPIC call.
9399         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
9400         FDPIC, generate call site labels to use PC-relative addressing rather
9401         than GOT-relative addressing.
9402         (sh_conditional_register_usage): Make PIC register fixed and call used
9403         when FDPIC is in effect.
9404         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9405         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9406         sh_get_fdpic_reg_initial_val): New functions.
9407         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9408         Handle -mfdpic.
9409         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9410         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9411         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9412         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9413         FDPIC_SELF_SPECS.
9414         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9415         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9416         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9417         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9418         constants.
9419         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9420         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9421         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9422         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9423         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9424         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
9425         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
9426         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
9427         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9428         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
9429         block_move_real, block_lump_real, block_move_real_i4,
9430         block_lump_real_i4): Add support for FDPIC calls.
9431         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
9432         call_value_pop): Adjust for new function_symbol signature.
9433         * config/sh/sh.opt (-mfdpic): New option.
9434         * doc/install.texi (Options specification): Document --enable-fdpic.
9435         * doc/invoke.texi (SH Options): Document -mfdpic.
9438 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9440         PR tree-optimization/65963
9441         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
9442         LSHIFT_EXPRs as equivalent MULT_EXPRs.
9444 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9446         PR target/67929
9447         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
9448         * config/arm/constraints.md (Dp): Update callsite.
9449         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
9451 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9453         * builtins.c (fold_builtin_load_exponent): Rename to...
9454         (fold_const_builtin_load_exponent): ...this and only handle
9455         constant arguments.
9456         (fold_builtin_2): Update accordingly.
9457         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
9459 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9461         * builtins.c (fold_builtin_logb): Rename to...
9462         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
9463         (fold_builtin_significand): Rename to...
9464         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
9465         (fold_builtin_1): Update accordingly.
9467 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9469         * builtins.c (fold_builtin_fmin_fmax): Delete.
9470         (fold_builtin_2): Handle constant fmin and fmax arguments here.
9471         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
9473 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
9475         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
9476         for register extension into sign and zero register extension.
9477         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
9478         for sign and zero register extension.
9479         (cortexa57_addrcost_table): Likewise.
9480         (xgene1_addrcost_table): Likewise.
9482 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9484         * fold-const.c (fold_minmax): Delete.
9485         (fold_binary_loc): Don't call it.
9486         * match.pd: Add rules previously handled by fold_minmax.
9488 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9490         * builtins.c (fold_builtin_fma): Remove constant handling.
9491         (fold_builtin_3): Handle constant fma arguments here.
9493 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9495         * builtins.c (fold_builtin_fabs): Remove constant handling.
9496         (fold_builtin_abs): Likewise.
9498 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9500         * builtins.c (fold_builtin_copysign): Delete.
9501         (fold_builtin_2): Handle constant copysign arguments here.
9502         * match.pd: Add rules previously handled by fold_builtin_copysign.
9504 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9506         * builtins.c (fold_builtin_signbit): Delete.
9507         (fold_builtin_2): Handle constant signbit arguments here.
9508         * match.pd: Add rules previously handled by fold_builtin_signbit.
9510 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9512         * match.pd: Handle sqrt(x) cmp 0 specially.
9514 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
9516         * tree-vect-generic.c (expand_vector_operations_1): Check
9517         optab type before using it.
9519 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9521         * config/aarch64/aarch64-protos.h
9522         (struct tune_params): Add autoprefetcher_model field.
9523         * config/aarch64/aarch64.c: Include params.h
9524         (generic_tunings): Specify autoprefetcher_model value.
9525         (cortexa53_tunings): Likewise.
9526         (cortexa57_tunings): Likewise.
9527         (cortexa72_tunings): Likewise.
9528         (thunderx_tunings): Likewise.
9529         (xgene1_tunings): Likewise.
9530         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
9531         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
9532         (aarch64_override_options_internal): Set
9533         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
9535 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9537         * builtins.c (fold_builtin_exponent): Delete.
9538         (fold_builtin_2): Handle constant expN arguments here.
9539         * match.pd: Fold expN(logN(x)) -> x.
9541 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9543         * builtins.c (fold_builtin_powi): Delete.
9544         (fold_builtin_2): Handle constant powi arguments here.
9545         * match.pd: Add rules previously handled by fold_builtin_powi.
9547 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9549         * builtins.c (fold_builtin_pow): Delete in favor of...
9550         (fold_const_builtin_pow): ...this new function.  Only handle constant
9551         arguments.
9552         (fold_builtin_2): Update accordingly.
9553         * match.pd: Add rules previously handled by fold_builtin_pow.
9555 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9557         * builtins.c (fold_builtin_hypot): Delete.
9558         (fold_builtin_2): Handle constant hypot arguments here.
9559         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
9560         hypot(x, x) to fabs(x)*sqrt(2).
9562 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9564         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
9565         instead of make_ssa_name if not yet in SSA form.
9567 2015-10-27  Richard Biener  <rguenther@suse.de>
9569         * cfg.c (free_edge): Add function argument and use it instead of cfun.
9570         (clear_edges): Likewise.
9571         * cfg.h (clear_edges): Adjust prototype.
9572         * cfgexpand.c (pass_expand::execute): Adjust.
9573         * cfgloop.c (release_recorded_exits): Add function argument and use
9574         it instead of cfun.
9575         * cfgloop.h (release_recorded_exits): Adjust prototype.
9576         (loops_state_satisfies_p): Add overload with function argument.
9577         (loops_state_set): Likewise.
9578         (loops_state_clear): Likewise.
9579         (struct loop_iterator): Add function argument to constructor
9580         and iterator and use it instead of cfun.
9581         (FOR_EACH_LOOP_FN): New macro.
9582         (loop_optimizer_finalize): Add overload with function argument.
9583         * loop-init.c (loop_optimizer_init): Adjust.
9584         (fix_loop_structure): Likewise.
9585         (loop_optimizer_finaliz): Add function argument and use it
9586         instead of cfun.
9587         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
9588         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
9589         * cgraph.c (release_function_body): Do not push/pop cfun.
9590         * final.c (rest_of_clean_state): Adjust.
9591         * graphite.c (graphite_finalize): Likewise.
9592         * tree-ssa-copy.c (fini_copy_prop): Likewise.
9593         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9594         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9595         (tree_unroll_loops_completely): Likewise.
9596         (pass_complete_unrolli::execute): Likewise.
9597         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
9598         Add function argument and use it instead of cfun.
9599         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
9600         Adjust prototype.
9601         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
9602         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
9603         instead of cfun.
9604         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
9605         * tree-ssanames.c (fini_ssanames): Add function argument and use it
9606         instead of cfun.
9607         * tree-ssanames.c (fini_ssanames): Adjust prototype.
9608         * tree-vrp.c (execute_vrp): Adjust.
9609         * value-prof.c (free_histograms): Add function argument and use it
9610         instead of cfun.
9611         * value-prof.h (free_histograms): Adjust prototype.
9613 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9615         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
9616         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
9617         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
9619 2015-10-27  Tom de Vries  <tom@codesourcery.com>
9621         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
9622         field_type.
9624 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
9626         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
9627         (inv_can_prop_to_addr_use): New function.
9628         (record_use): Call can_prop_to_addr_uses, set the new field.
9629         (get_inv_cost): Count cost if inv can't be propagated into its
9630         address uses.
9632 2015-10-26  Doug Evans  <dje@google.com>
9634         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
9636 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
9638         * match.pd (fold_widened_comparison): Apply simplifications to all
9639         integral types.
9641 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
9643         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
9644         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
9645         * doc/tm.texi: Regenerated.
9646         * reorg.c (dbr_schedule): Use new hook.
9647         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
9649 2015-10-26  Jeff Law  <law@redhat.com>
9651         PR tree-optimization/68013
9652         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9653         Make sure the first block in the path is in VISITED_BBs.
9655 2015-10-26  Richard Biener  <rguenther@suse.de>
9656         Dominik Vogt  <vogt@linux.vnet.ibm.com>
9658         PR middle-end/67443
9659         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
9660         Properly prune ref->ref for accesses outside of ref.
9662 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9664         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
9665         new statements to be inserted if inplace.  Allow calls to have
9666         nonempty sequences.
9668 2015-10-26  Richard Biener  <rguenther@suse.de>
9670         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
9671         (do_valueize): New function.
9672         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
9673         replace_uses_by.
9674         * tree-ssa-threadedge.c: Remove builtins.h include, include
9675         gimple-fold.h
9676         (fold_assignment_stmt): Remove.
9677         (threadedge_valueize): New function.
9678         (record_temporary_equivalences_from_stmts): Use
9679         gimple_fold_stmt_to_constant_1, note additional cleanup
9680         opportunities.
9682 2015-10-26  Richard Biener  <rguenther@suse.de>
9684         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
9685         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
9687 2015-10-26  Alan Hayward <alan.hayward@arm.com>
9689         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
9690         VEC_COND_EXPR types.
9692 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9694         * auto-inc-dec.c (insert_move_insn_before): Delete.
9695         (attempt_change): Remember to cost the simple move in the
9696         FORM_PRE_ADD and FORM_POST_ADD cases.
9698 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
9700         PR target/68091
9701         * config/sh/sh.c (sh_vector_mode_supported_p): Use
9702         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
9704 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9706         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
9707         factored out of ...
9708         (intra_create_variable_infos): ... here.
9710 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9712         * tree-ssa-structalias.c (intra_create_variable_infos): Add
9713         restrict_pointer_p and recursive_restrict_p variables.
9715 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9717         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
9718         get_vi_for_tree call.
9720 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9722         PR middle-end/67989
9723         * optabs.c (expand_atomic_compare_and_swap): Handle case when
9724         ptarget_oval or ptarget_bool are const0_rtx.
9726 2015-10-26  Christian Bruel  <christian.bruel@st.com>
9728         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9729         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9730         * cp/method.c (implicitly_declare_fn): Likewise.
9731         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9732         * java/class.c (add_method_1): Likewise.
9734 2015-10-26  Richard Biener  <rguenther@suse.de>
9736         * alloc-pool.h (base_pool_allocator): Use placement new.
9737         (base_pool_allocator::remove): Likewise.  Compute size outside of
9738         flag_checking.
9740 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9742         * builtins.c (do_real_to_int_conversion): New function.
9743         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9744         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9745         arguments here.
9746         * match.pd: Add rules previously handled by fold_fixed_mathfn
9747         and fold_builtin_int_roundingfn.
9749 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9751         * match.pd: Use macros to define built-in operator lists.
9753 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
9754             Richard Biener  <rguenther@suse.de>
9756         * genmatch.c (dt_simplify::gen): Skip captures that are
9757         part of the result.
9758         (parser::parse_expr): Allow captures in results too.
9759         * builtins.c (fold_builtin_cexp): Delete.
9760         (fold_builtin_1): Handle constant cexp arguments here.
9761         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9763 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
9765         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9766         conditional compilation.
9767         (base_pool_allocator::remove): Use flag_checking.
9769 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
9771         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9773         PR middle-end/68079
9774         * dojump.c (do_compare_and_jump): Canonicalize both function and
9775         method types.
9777 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
9779         PR target/68084
9780         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9781         for =@ccae.
9783 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9785         PR ipa/pr67600
9786         * ipa-polymorphic-call.c
9787         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9788         instance offset with offset of outer type.
9790 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9792         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9794 2015-10-23  Caroline Tice  <cmtice@google.com>
9796         (from Richard Biener
9797         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
9798         call to iterative_hash_host_wide_int.
9800 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9802         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9803         Define as yes.
9805 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9807         * tree-vect-generic.c (expand_vector_operations_1): Check
9808         optab exists before use it.
9810 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9812         * tree-vect-generic.c (expand_vector_condition): Avoid
9813         uninitialized variable warning.
9815 2015-10-23  Jeff Law  <law@redhat.com>
9817         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9818         here.  Instead...
9819         (execute_todo): Call it here.
9820         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9821         statistics
9822         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9824 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9825             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9827         * config.gcc (enable_secureplt): Add *-linux*-musl*.
9829 2015-10-23  Jeff Law  <law@redhat.com>
9831         PR tree-optimization/67830
9832         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9833         Explicitly verify the mask has no bits outside the type of
9834         the innermost operands.
9836 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9837             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9839         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9840         (MUSL_DYNAMIC_LINKER64): Define.
9841         (GNU_USER_DYNAMIC_LINKER32): Update.
9842         (GNU_USER_DYNAMIC_LINKER64): Update.
9843         (CHOOSE_DYNAMIC_LINKER): Update.
9845         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9846         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9847         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9848         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9849         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9850         (CHOOSE_DYNAMIC_LINKER): Update.
9851         (INCLUDE_DEFAULTS): Redefine.
9853         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9855 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9857         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9858         comparing addresses.
9860 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9862         * fold-const.c (operand_equal_p): Handle matching of vector
9863         constructors.
9865 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9867         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9869 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
9870             Andrew Pinski  <apinski@cavium.com>
9872         PR rtl-optimization/67736
9873         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9874         of gen_lowpart.
9876 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9878         PR middle-end/68066
9879         * tree.c (build_truth_vector_type): Support BLK mode
9880         returned for boolean vector.
9882 2015-10-23  Alan Hayward <alan.hayward@arm.com>
9884         PR tree-optimization/65947
9885         * tree-vect-loop.c
9886         (vect_is_simple_reduction_1): Find condition reductions.
9887         (vect_model_reduction_cost): Add condition reduction costs.
9888         (get_initial_def_for_reduction): Add condition reduction initial var.
9889         (vect_create_epilog_for_reduction): Add condition reduction epilog.
9890         (vectorizable_reduction): Condition reduction support.
9891         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9892         * doc/sourcebuild.texi (Vector-specific attributes): Document
9893         vect_max_reduc
9895 2015-10-23  Richard Biener  <rguenther@suse.de>
9897         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9898         and builtins.def.
9900 2015-10-23  Richard Biener  <rguenther@suse.de>
9901             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9903         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9904         into (A ^ B) - B to match.pd
9905         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9907         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9908         New simplifier.
9909         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9910         New simplifier.
9911         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9912         New simplifier.
9913         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9914         New simplifier.
9915         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9916         INTEGER_CST@1)): New simplifier.
9918 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
9920         * builtins.c (integer_valued_real_p): Move to fold-const.c.
9921         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9922         (fold_builtin_ceil, fold_builtin_round): Delete.
9923         (fold_builtin_1): Handle constant trunc, floor, ceil and round
9924         arguments here.
9925         * convert.c (convert_to_real): Remove narrowing of rounding
9926         functions.
9927         * fold-const.h (integer_valued_real_unary_p)
9928         (integer_valued_real_binary_p, integer_valued_real_call_p)
9929         (integer_valued_real_single_p, integer_valued_real_p): Declare.
9930         * fold-const.c (tree_single_nonnegative_warnv_p): Move
9931         name_registered_for_update_p check to SSA_NAME case statement.
9932         Don't call tree_simple_nonnegative_warnv_p for SSA names.
9933         (integer_valued_real_unary_p, integer_valued_real_binary_p)
9934         (integer_valued_real_call_p, integer_valued_real_single_p)
9935         (integer_valued_real_invalid_p): New functions.
9936         (integer_valued_real_p): Move from fold-const.c and rework
9937         to call the functions above.  Handle SSA names.
9938         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9939         * gimple-fold.c (gimple_assign_integer_valued_real_p)
9940         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9941         (gimple_stmt_integer_valued_real_p): New functions.
9942         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9943         Fold f(x)->x for the same f if x is known to be integer-valued.
9944         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9945         the result.  Canonicalize floor(x) as trunc(x) if x is
9946         nonnegative.
9948 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9950         * tree-ssa-structalias.c (intra_create_variable_infos): Use
9951         make_constraint_from.
9953 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9955         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9956         setting of is_full_var in case of a single field.
9958 2015-10-22  Martin Sebor  <msebor@redhat.com>
9960         PR driver/68043
9961         * config/i386/i386.opt: Add missing periods to the ends of sentences.
9962         * config/msp430/msp430.opt: Same.
9964 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9966         * doc/extend.exp (Global Register Variables): Rewrite.
9968 2015-10-22  Jeff Law  <law@redhat.com>
9970         * genattrtab.c (main): If we do not have any annul-true or annul-false
9971         slots, then write out a dummy eligible_for_annul_true or
9972         eligible_for_annul_false as needed.
9974 2015-10-22  Nick Clifton  <nickc@redhat.com>
9976         * config/msp430/msp430.opt: Add -msilicon-errata and
9977         -msilicon-errata-warn.
9978         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9979         assembler.
9980         * doc/invoke.texi: Document new options.
9982 2015-10-22  Richard Biener  <rguenther@suse.de>
9984         PR tree-optimization/58497
9985         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9986         (expand_vector_operations_1): Use it.  Lower operations on
9987         all uniform vectors to scalar operations if the HW supports it.
9989 2015-10-22  Richard Biener  <rguenther@suse.de>
9991         PR tree-optimization/19049
9992         PR tree-optimization/65962
9993         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9994         to strided accesses if single-element interleaving doesn't work.
9996 2015-10-22  Richard Biener  <rguenther@suse.de>
9998         PR middle-end/68046
9999         PR middle-end/61893
10000         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
10001         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
10002         (expand_unop): Likewise.
10004 2015-10-22  Richard Biener  <rguenther@suse.de>
10006         * fold-const.c (fold_addr_of_array_ref_difference): Properly
10007         convert operands before folding a MINUS_EXPR.
10008         (fold_binary_loc): Move simplification of MINUS_EXPR on
10009         converted POINTER_PLUS_EXPRs ...
10010         * match.pd: ... here.
10012 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10014         * builtins.c (fold_builtin_tan): Delete.
10015         (fold_builtin_1): Handle constant tan arguments here.
10016         * match.pd: Simplify (tan (atan x)) to x.
10018 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
10020         * builtins.c (fold_builtin_cproj): Delete.
10021         (fold_builtin_1): Handle constant arguments here.
10022         (build_complex_cproj): Move and rename to...
10023         * tree.c: (build_complex_inf): ...this.
10024         * tree.h (build_complex_inf): Declare.
10025         * match.pd: Fold cproj(x)->x if x has no infinity.
10026         Use build_complex_inf for existing cproj rules.
10028 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10030         PR target/68015
10031         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
10032         already have a comparison result.
10034 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10036         PR target/63304
10037         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
10038         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
10039         (aarch64_classify_address): Likewise.
10040         (aarch64_secondary_reload): Likewise.
10041         (aarch64_override_options_after_change_1): Adjust.
10042         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10043         Use aarch64_nopcrelative_literal_loads.
10044         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10045         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10046         Declare.
10048 2015-10-21  Martin Sebor  <msebor@redhat.com>
10050         PR driver/68043
10051         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
10052         (print_filtered_help): Reference aliased option's name and encourage
10053         readers to use it in preference to the alias if the former is not
10054         documented.  Mention when using an option is diagnosed.
10055         * gcc.c (display_help): End each sentence with a period.
10057         * common.opt: End each sentence that describes an option with
10058         a period.
10059         * config/aarch64/aarch64.opt: Same.
10060         * config/alpha/alpha.opt: Same.
10061         * config/arc/arc.opt: Same.
10062         * config/arm/arm.opt: Same.
10063         * config/avr/avr.opt: Same.
10064         * config/bfin/bfin.opt: Same.
10065         * config/c6x/c6x.opt: Same.
10066         * config/cr16/cr16.opt: Same.
10067         * config/cris/cris.opt: Same.
10068         * config/cris/linux.opt: Same.
10069         * config/darwin.opt: Same.
10070         * config/epiphany/epiphany.opt: Same.
10071         * config/fr30/fr30.opt: Same.
10072         * config/frv/frv.opt: Same.
10073         * config/ft32/ft32.opt: Same.
10074         * config/g.opt: Same.
10075         * config/h8300/h8300.opt: Same.
10076         * config/i386/cygming.opt: Same.
10077         * config/i386/djgpp.opt: Same.
10078         * config/i386/i386.opt: Same.
10079         * config/i386/interix.opt: Same.
10080         * config/i386/mingw-w64.opt: Same.
10081         * config/i386/mingw.opt: Same.
10082         * config/ia64/ia64.opt: Same.
10083         * config/ia64/ilp32.opt: Same.
10084         * config/iq2000/iq2000.opt: Same.
10085         * config/linux.opt: Same.
10086         * config/lm32/lm32.opt: Same.
10087         * config/lynx.opt: Same.
10088         * config/m32c/m32c.opt: Same.
10089         * config/m32r/m32r.opt: Same.
10090         * config/m68k/ieee.opt: Same.
10091         * config/m68k/m68k.opt: Same.
10092         * config/mcore/mcore.opt: Same.
10093         * config/mep/mep.opt: Same.
10094         * config/microblaze/microblaze.opt: Same.
10095         * config/mips/mips.opt: Same.
10096         * config/mmix/mmix.opt: Same.
10097         * config/mn10300/mn10300.opt: Same.
10098         * config/moxie/moxie.opt: Same.
10099         * config/msp430/msp430.opt: Same.
10100         * config/nios2/elf.opt: Same.
10101         * config/nios2/nios2.opt: Same.
10102         * config/nvptx/nvptx.opt: Same.
10103         * config/pa/pa-hpux.opt: Same.
10104         * config/pa/pa-hpux1010.opt: Same.
10105         * config/pa/pa-hpux1111.opt: Same.
10106         * config/pa/pa-hpux1131.opt: Same.
10107         * config/pa/pa.opt: Same.
10108         * config/pa/pa64-hpux.opt: Same.
10109         * config/pdp11/pdp11.opt: Same.
10110         * config/rl78/rl78.opt: Same.
10111         * config/rs6000/476.opt: Same.
10112         * config/rs6000/aix64.opt: Same.
10113         * config/rs6000/darwin.opt: Same.
10114         * config/rs6000/linux64.opt: Same.
10115         * config/rs6000/rs6000.opt: Same.
10116         * config/rs6000/sysv4.opt: Same.
10117         * config/s390/s390.opt: Same.
10118         * config/s390/tpf.opt: Same.
10119         * config/sh/sh.opt: Same.
10120         * config/sol2.opt: Same.
10121         * config/sparc/long-double-switch.opt: Same.
10122         * config/sparc/sparc.opt: Same.
10123         * config/spu/spu.opt: Same.
10124         * config/stormy16/stormy16.opt: Same.
10125         * config/tilegx/tilegx.opt: Same.
10126         * config/tilepro/tilepro.opt: Same.
10127         * config/v850/v850.opt: Same.
10128         * config/vax/vax.opt: Same.
10129         * config/visium/visium.opt: Same.
10130         * config/vms/vms.opt: Same.
10131         * config/vxworks.opt: Same.
10132         * config/xtensa/xtensa.opt: Same.
10134 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10135             Sebastian Pop  <s.pop@samsung.com>
10137         * graphite-scop-detection.c (parameter_index_in_region): Update call to
10138         invariant_in_sese_p_rec.
10139         * graphite-sese-to-poly.c (extract_affine): Same.
10140         * sese.c (invariant_in_sese_p_rec): Pass in an extra
10141         parameter has_vdefs.
10142         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10143         variable depends on virtual definitions in the current region.
10144         * sese.h (invariant_in_sese_p_rec): Update declaration.
10146 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10147             Sebastian Pop  <s.pop@samsung.com>
10149         * graphite-scop-detection.c (build_scops): Do not handle scops
10150         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10151         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10153 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
10155         * config.in: Regenerate.
10156         * configure: Regenerate.
10157         * configure.ac (CHECKING_P): Define.
10158         * system.h: Use CHECKING_P.
10160 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10162         PR ipa/67056
10163         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10164         is negative we don't know the type.
10165         (check_stmt_for_type_change): Skip constructors of non-polymorphic
10166         types as those won't help devirutalization.
10168 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10170         * fold-const.c (operand_equal_p): Add code matching empty constructors.
10172 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
10174         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10175         comments.
10176         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10177         Add comments on sign of the result.
10178         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10179         Recurse on operand #1 instead of operand #0.
10180         <CEIL_MOD_EXPR>: Do not recurse.
10181         <ROUND_MOD_EXPR>: Likewise.
10183 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10185         * cfgrtl.c (pass_free_cfg::execute): Adjust.
10186         * final.c (dbr_sequence_length): Always define.
10187         (shorten_branches): Adjust.
10188         * genattr-common.c (main): Always define DELAY_SLOTS.
10189         * genattr.c (main): Unconditionally declare functions and define
10190         macros related to delay slots.
10191         * genattrtab.c (write_eligible_delay): Adjust.
10192         (main): Always write out delay slot functions.
10193         * opts.c (default_options_table): Adjust.
10194         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10195         (redirect_with_delay_list_safe_p): Likewise.
10196         (fill_simple_delay_slots): Likewise.
10197         (fill_slots_from_thread): Likewise.
10198         (make_return_insns): Likewise.
10199         (dbr_schedule): Likewise.
10200         (rest_of_handle_delay_slots): Likewise.
10201         (pass_delay_slots::gate): Likewise.
10202         * toplev.c (process_options): Likewise.
10204 2015-10-21  Richard Henderson  <rth@redhat.com>
10206         * targhooks.c (default_addr_space_pointer_mode): Remove check
10207         for generic address space.
10208         (default_addr_space_address_mode): Likewise.
10209         (default_addr_space_valid_pointer_mode): Likewise.
10210         (default_addr_space_legitimate_address_p): Likewise.
10211         (default_addr_space_legitimize_address): Likewise.
10212         * target.def (addr_space.pointer_mode): Update documentation
10213         of default behavior.
10214         (addr_space.address_mode): Likewise.
10215         * tm.texi: Update.
10217         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10218         address spaces.
10220 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10222         * builtins.c (fold_builtin_cabs): Delete.
10223         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
10224         * match.pd: Add rules previously handled by fold_builtin_cabs.
10226 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10228         * fold-const.h (fold_strip_sign_ops): Delete.
10229         * fold-const.c (fold_strip_sign_ops): Likewise.
10230         (fold_unary_loc, fold_binary_loc): Remove calls to it.
10231         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10232         (fold_builtin_ccos): Delete.
10233         (fold_builtin_pow): Don't call fold_strip_sign_ops.
10234         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10235         Remove fndecl argument.
10236         (fold_builtin_1): Update calls accordingly.  Handle constant
10237         cos, cosh, ccos and ccosh here.
10239 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10241         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10242         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10243         * common.opt (fssa-backprop): New option.
10244         * fold-const.h (negate_mathfn_p): Declare.
10245         * fold-const.c (negate_mathfn_p): Make public.
10246         * timevar.def (TV_TREE_BACKPROP): New.
10247         * tree-pass.h (make_pass_backprop): Declare.
10248         * passes.def (pass_backprop): Add.
10249         * gimple-ssa-backprop.c: New file.
10251 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10252             Sebastian Pop  <s.pop@samsung.com>
10254         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10255         Do not call create_empty_if_region_on_edge when cond_expr is true.
10256         (translate_isl_ast_node_for): Check whether a guard has been generated.
10258 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10260         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10261         (operator=): Removed.
10262         (dr_info): Make alias_set number the last argument with default
10263         value of invalid_alias_set.
10264         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10265         of dr_info.
10266         (rewrite_reductions_out_of_ssa): Iterate only through the
10267         basic blocks which are inside region.
10268         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10269         * sese.h (struct sese_l): Removed assignment operator.
10270         (split_region_for_bb): Removed dead code.
10272 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10274         * graphite-poly.h (struct dr_info): Removed conversion constructor.
10275         (struct scop): Renamed scop::region to scop::scop_info
10276         (scop_set_region): Same.
10277         (SCOP_REGION): Removed
10278         (SCOP_CONTEXT): Removed.
10279         (POLY_SCOP_P): Removed.
10280         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10281         Rename scop->region to scop->scop_info.
10282         (add_parameters_to_ivs_params): Same.
10283         (graphite_regenerate_ast_isl): Same.
10284         * graphite-poly.c (new_scop): Same.
10285         (free_scop): Same.
10286         (print_scop_params): Same.
10287         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10288         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10289         (dot_all_scops_1): Rename scop->region to scop->scop_info.
10290         (scop_detection::nb_pbbs_in_loops): Same.
10291         (find_scop_parameters): Same.
10292         (try_generate_gimple_bb): Same.
10293         (gather_bbs::before_dom_children): Same.
10294         (gather_bbs::after_dom_children): Same.
10295         (build_scops): Same.
10296         * graphite-sese-to-poly.c (build_scop_scattering): Same.
10297         (extract_affine_chrec): Same.
10298         (extract_affine): Same.
10299         (set_scop_parameter_dim): Same.
10300         (build_loop_iteration_domains): Same.
10301         (create_pw_aff_from_tree): Same.
10302         (add_param_constraints): Same.
10303         (build_scop_iteration_domain): Same.
10304         (build_scop_drs): Same.
10305         (analyze_drs_in_stmts): Same.
10306         (insert_out_of_ssa_copy_on_edge): Same.
10307         (rewrite_close_phi_out_of_ssa):Same.
10308         (rewrite_reductions_out_of_ssa):Same.
10309         (handle_scalar_deps_crossing_scop_limits):Same.
10310         (rewrite_cross_bb_scalar_deps):Same.
10311         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10312         (build_poly_scop):Same.
10313         (build_alias_set): Use pointer to dr_info.
10314         * graphite.c (print_graphite_scop_statistics):
10315         (graphite_transform_loops):
10316         * sese.h (struct sese_l): Remove conversion constructor.
10318 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10320         PR middle-end/67966
10321         * tree.c (verify_type): Verify that TYPE_MODE match
10322         between TYPE_CANONICAL and type.
10323         * expr.c (store_expr_with_bounds): Revert my previous change.
10324         * expmed.c (store_bit_field_1): Revert prevoius change.
10325         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10326         to match for all types.
10328 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
10330         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10331         nesting.
10333 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10335         * doc/tm.texi: Regenerated.
10336         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10337         * stor-layout.c (layout_type): Use mode to get vector mask size.
10338         * target.def (get_mask_mode): New.
10339         * targhooks.c (default_get_mask_mode): New.
10340         * targhooks.h (default_get_mask_mode): New.
10341         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10342         for boolean vector.
10343         * tree.c (MAX_BOOL_CACHED_PREC): New.
10344         (nonstandard_boolean_type_cache): New.
10345         (build_nonstandard_boolean_type): New.
10346         (make_vector_type): Vector mask has no canonical type.
10347         (build_truth_vector_type): New.
10348         (build_same_sized_truth_vector_type): New.
10349         (truth_type_for): Support vector masks.
10350         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10351         (build_truth_vector_type): New.
10352         (build_same_sized_truth_vector_type): New.
10353         (build_nonstandard_boolean_type): New.
10354         * tree-cfg.c (verify_gimple_comparison) Require boolean
10355         vector type for vector comparison.
10356         (verify_gimple_assign_ternary): Likewise.
10357         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10358         condition operand.
10359         * tree-vect-stmts.c (vectorizable_condition): Use boolean
10360         vector type for vector comparison.
10361         * tree-vect-generic.c (elem_op_func): Add new operand to hold
10362         vector type.
10363         (do_unop): Adjust to modified function type.
10364         (do_binop): Likewise.
10365         (do_plus_minus): Likewise.
10366         (do_negate); Likewise.
10367         (expand_vector_piecewise): Likewise.
10368         (do_cond): Likewise.
10369         (do_compare): Use comparison instead of condition.
10370         (expand_vector_divmod): Use boolean vector type for comparison.
10371         (expand_vector_operations_1): Skip scalar mask operations.
10373 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10375         * omp-low.c (simd_clone_create): Set in_other_partition
10376         for created clones.
10378 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
10380         * doc/extend.exp (Local Register Variables): Rewrite.
10382 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10384         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10385         and x*x in cases where the operands are sign ops.  Extend these
10386         rules to handle copysign as a sign op (including for cos, cosh
10387         and pow, which already treated negate and abs as sign ops).
10389 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
10391         PR target/68018
10392         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10393         for 64-bit MS_ABI targets also when default incoming stack boundary
10394         is overriden.
10396 2015-10-21  Richard Biener  <rguenther@suse.de>
10398         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10399         cond stmts, enhanced and split out from ...
10400         (vn_phi_eq): ... here.
10402 2015-10-21  Richard Biener  <rguenther@suse.de>
10404         PR middle-end/68031
10405         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10406         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10407         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
10408         make sure they are not registered for update.
10410 2015-10-21  Richard Biener  <rguenther@suse.de>
10412         PR tree-optimization/68026
10413         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10414         unsigned VARYING values.
10416 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
10418         * asan.c (asan_emit_stack_protection): Don't pass local stack to
10419         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10420         NULL and use local stack than.
10421         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10422         in addition to __asan_init.
10423         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10424         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
10425         * asan.h (asan_intercepted_p): Handle new string builtins.
10426         * ubsan.c (ubsan_use_new_style_p): New function.
10427         (ubsan_instrument_float_cast): If location is unknown, assign
10428         input_location to loc. Propagate loc to ubsan_create_data if
10429         ubsan_use_new_style_p returned true.
10431 2015-10-21  Jeff Law  <law@redhat.com>
10433         * Makefile.in (OBJS): Remove sched-vis.c
10434         * sched-vis.c: Removed.  Code moved into...
10435         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
10436         * rtl.h: Remove prototypes for functions now living in print-rtl.c
10437         * print-rtl.h Add prototypes for new functions in print-rtl.c.
10438         * auto-inc-dec.c: Include print-rtl.h
10439         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
10440         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
10442         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
10443         ATTRIBUTE_UNUSED.
10445 2015-10-21  Richard Biener  <rguenther@suse.de>
10446             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10448         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
10449         to match.pd.
10450 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
10451 about signed left shift stronger and clarify the cases when they're
10452 broken.
10453         Move (a * (1 << b)) is (a << b) to match.pd.
10454         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
10455         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
10456         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
10458         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
10459         New simplifier.
10460         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
10461         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
10462         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
10463         : New simplifier.
10464         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
10465         New simplifier.
10466         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
10468 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
10469             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10470             Alan Modra  <amodra@gmail.com>
10472         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
10473         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
10474         (LINK_SPEC): Add %(link_secure_plt).
10475         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
10476         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
10478 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
10479             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10481         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
10482         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
10484 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10486         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
10487         New function.
10488         (fusion_load_store): Use it.
10489         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
10490         ldp and stp in VD modes.
10491         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
10492         (store_pair<mode>, VD): Likewise.
10494 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
10496         PR rtl-optimization/67609
10497         * lra-splill.c (lra_final_code_change): Don't remove all
10498         sub-registers.
10500 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10502         * simplify-rtx.c (simplify_binary_operation): If either operand was
10503         a constant pool reference use them if all other simplifications failed.
10505 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10507         * config/aarch64/aarch64.md
10508         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
10509         * config/aarch64/aarch64-simd.md
10510         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
10511         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
10512         (aarch64_fpconst_pow_of_2): New function.
10513         (aarch64_vec_fpconst_pow_of_2): Likewise.
10514         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
10515         prototype.
10516         (aarch64_vec_fpconst_pow_of_2): Likewise.
10517         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
10518         (aarch64_fp_vec_pow2): Likewise.
10520 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
10522         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
10523         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
10524         * config/alpha/alpha.c (alpha_function_arg_advance): Update
10525         ALPHA_ARG_SIZE usage.
10526         (alpha_arg_partial_bytes): Ditto.
10528 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10530         PR target/66810
10531         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
10532         error_mark_node decls.
10534 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10536         PR target/67963
10537         PR target/67985
10538         * common/config/i386/i386-common.c (ix86_handle_option): Remove
10539         OPT_miamcu handling.
10540         * config/i386/i386.c (PTA_NO_80387): New macro.
10541         (processor_alias_table): Add PTA_NO_80387 to lakemont.
10542         (ix86_option_override_internal): Update MASK_80387 from
10543         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
10544         SSE math only if 80387 is supported.  Don't change
10545         MASK_FLOAT_RETURNS.
10546         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
10547         80387 is supported.
10548         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
10549         if TARGET_80387 is true and TARGET_IAMCU is false.
10550         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
10551         is true and TARGET_IAMCU_P is false.
10553 2015-10-20  Richard Biener  <rguenther@suse.de>
10555         PR tree-optimization/68017
10556         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
10558 2015-10-20  Martin Liska  <mliska@suse.cz>
10560         * cgraphclones.c (cgraph_node::create_virtual_clone):
10561         Verify cgraph_node.local.versionable instead of calling
10562         tree_versionable_function_p.
10563         * ipa-cp.c (determine_versionability): Save the information
10564         to ipa_node_params summary.
10565         (ipcp_versionable_function_p): Use it.
10566         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
10567         (ipcp_generate_summary): Do not compute cgraph_node
10568         versionability.
10569         * ipa-inline-analysis.c (inline_generate_summary): Compute
10570         versionability for all cgraph nodes.
10571         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
10572         ipa_node_params::versionability.
10573         * ipa-prop.h (struct ipa_node_params): Declare it.
10575 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10577         PR other/67868
10578         * varasm.c (assemble_variable): Move special vtv handling to..
10579         (handle_vtv_comdat_sections): .. here. New function.
10580         (output_object_block): Handle vtv sections.
10582 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10584         PR target/66912
10585         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
10587 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
10589         * doc/extend.texi: Update documentation WRT inline functions.
10591 2015-10-20  Alan Modra  <amodra@gmail.com>
10593         PR go/66870
10594         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
10595         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10596         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10598 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
10600         PR rtl-optimization/66790
10601         * df.h (DF_MIR): New macro.
10602         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
10603         (DF_MIR_INFO_BB): New macro.
10604         (DF_MIR_IN, DF_MIR_OUT): New macros.
10605         (struct df_mir_bb_info): New.
10606         (df_mir): New macro.
10607         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
10608         declarations.
10609         (df_mir_get_bb_info): New.
10610         * df-problems.c (struct df_mir_problem_data): New.
10611         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
10612         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
10613         df_mir_confluence_0, df_mir_confluence_n,
10614         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
10615         df_mir_bottom_dump, df_mir_verify_solution_start,
10616         df_mir_verify_solution_end): New.
10617         (problem_MIR): New.
10618         (df_mir_add_problem, df_mir_simulate_one_insn): New.
10619         * timevar.def (TV_DF_MIR): New.
10620         * ree.c: Include bitmap.h
10621         (add_removable_extension): Add an INIT_REGS parameter.  Use it
10622         to skip zero-extensions that may get an uninitialized register.
10623         (find_removable_extensions): Compute must-initialized registers
10624         using the MIR dataflow problem. Update the call to
10625         add_removable_extension.
10626         (find_and_remove_re): Call df_mir_add_problem.
10628 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
10630         * common/config/mn10300/mn10300-common.c
10631         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
10632         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
10634 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
10636         * doc/extend.texi (Explicit Register Variables): Simplify and
10637         avoid unnecessary and confusion abbreviations.  Update cross
10638         references.
10639         doc/implement-c.tex: Update cross reference.
10641 2015-10-19  Jeff Law  <law@redhat.com>
10643         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
10644         that create irreducible loops unless the path elimiantes a multiway
10645         branch.
10647 2015-10-19  Richard Biener  <rguenther@suse.de>
10649         PR tree-optimization/67975
10650         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
10651         * tree-cfg.c (extract_true_false_controlled_edges): Split out
10652         core worker from ...
10653         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
10654         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
10655         instead of block number for PHIs with two or one args.
10656         (vn_phi_eq): Compare edge predicates of PHIs that are in different
10657         blocks.
10659 2015-10-19  Richard Biener  <rguenther@suse.de>
10661         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
10662         (gimple_stmt_nonnegative_warnv_p): Use it.
10663         * match.pd (CPROJ): New operator list.
10664         (cproj (complex ...)): Move simplifications from ...
10665         * builtins.c (fold_builtin_cproj): ... here.
10667 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10669         * config/i386/i386.c (ix86_expand_vector_move): Use
10670         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
10671         alignment.
10673 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10675         * doc/invoke.texi: Replace @optindex with @opindex.
10677 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10679         PR target/67995
10680         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
10681         arch= is set,  clear all bits in x_ix86_isa_flags, except for
10682         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
10684 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
10686         PR middle-end/68002
10687         * common.opt (fkeep-static-functions): New option.
10688         * doc/invoke.texi: Document it.
10689         * cgraphunit.c (cgraph_node::finalize_function): Use it.
10691 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10693         * sched-int.h (struct autopref_multipass_data_): Remove offset
10694         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
10695         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
10696         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
10697         (autopref_rank_data): New function.
10698         (autopref_rank_for_schedule): Use it.
10699         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
10701 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
10703         PR other/65800
10704         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
10706 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10708         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
10709         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
10710         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
10711         (STANDARD_STARTFILE_PREFIX_1): New.
10712         (STANDARD_STARTFILE_PREFIX_2): New.
10714 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10716         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
10717         (darwin_driver_init): Note a version-min when provided on the c/l.
10718         * config/darwin.h (%darwin_minversion): Remove.
10719         * config/i386/darwin.h: Likewise.
10720         * config/rs6000/darwin.h: Likewise.
10721         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
10722         rather than an arbitrary constant.
10724 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10726         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10727         PPC, detect conflicts between -arch and multilib settings.  Detect
10728         and warn about conflicts between multiple -arch definitions.
10730 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10732         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10734 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10736         * lra-constraints.c (add_next_usage_insn): Change argument type
10737         from rtx to rtx_insn *.
10739 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
10741         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10742         for Lakemont.
10744 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
10746         * config/tilepro/gen-mul-tables.cc: Adjust include files.
10747         * config/tilegx/mul-tables.c: Regenerate.
10748         * config/tilepro/mul-tables.c: Regenerate.
10750         * config/tilegx/tilegx-c.c: Adjust include files.
10751         * config/tilegx/tilegx.c: Likewise.
10752         * config/tilepro/tilepro-c.c: Likewise.
10753         * config/tilepro/tilepro.c: Likewise.
10754         * config/aarch64/aarch64-builtins.c: Likewise.
10755         * config/aarch64/aarch64.c: Likewise.
10756         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10757         * config/alpha/alpha.c: Likewise.
10758         * config/arc/arc.c: Likewise.
10759         * config/arm/aarch-common.c: Likewise.
10760         * config/arm/arm-builtins.c: Likewise.
10761         * config/arm/arm-c.c: Likewise.
10762         * config/arm/arm.c: Likewise.
10763         * config/avr/avr-c.c: Likewise.
10764         * config/avr/avr-devices.c: Likewise.
10765         * config/avr/avr-log.c: Likewise.
10766         * config/avr/avr.c: Likewise.
10767         * config/bfin/bfin.c: Likewise.
10768         * config/c6x/c6x.c: Likewise.
10769         * config/cr16/cr16.c: Likewise.
10770         * config/cris/cris.c: Likewise.
10771         * config/darwin-c.c: Likewise.
10772         * config/darwin-driver.c: Likewise.
10773         * config/darwin.c: Likewise.
10774         * config/default-c.c: Likewise.
10775         * config/epiphany/epiphany.c: Likewise.
10776         * config/epiphany/mode-switch-use.c: Likewise.
10777         * config/epiphany/resolve-sw-modes.c: Likewise.
10778         * config/fr30/fr30.c: Likewise.
10779         * config/frv/frv.c: Likewise.
10780         * config/ft32/ft32.c: Likewise.
10781         * config/glibc-c.c: Likewise.
10782         * config/h8300/h8300.c: Likewise.
10783         * config/i386/host-cygwin.c: Likewise.
10784         * config/i386/host-mingw32.c: Likewise.
10785         * config/i386/i386-c.c: Likewise.
10786         * config/i386/i386.c: Likewise.
10787         * config/i386/msformat-c.c: Likewise.
10788         * config/i386/winnt-cxx.c: Likewise.
10789         * config/i386/winnt-stubs.c: Likewise.
10790         * config/i386/winnt.c: Likewise.
10791         * config/ia64/ia64-c.c: Likewise.
10792         * config/ia64/ia64.c: Likewise.
10793         * config/iq2000/iq2000.c: Likewise.
10794         * config/lm32/lm32.c: Likewise.
10795         * config/m32c/m32c-pragma.c: Likewise.
10796         * config/m32c/m32c.c: Likewise.
10797         * config/m32r/m32r.c: Likewise.
10798         * config/mcore/mcore.c: Likewise.
10799         * config/mep/mep-pragma.c: Likewise.
10800         * config/mep/mep.c: Likewise.
10801         * config/microblaze/microblaze-c.c: Likewise.
10802         * config/microblaze/microblaze.c: Likewise.
10803         * config/mips/mips-tables.opt
10804         * config/mips/mips.c: Likewise.
10805         * config/mmix/mmix.c: Likewise.
10806         * config/mn10300/mn10300.c: Likewise.
10807         * config/moxie/moxie.c: Likewise.
10808         * config/msp430/msp430-c.c: Likewise.
10809         * config/msp430/msp430.c: Likewise.
10810         * config/nds32/nds32-cost.c: Likewise.
10811         * config/nds32/nds32-fp-as-gp.c: Likewise.
10812         * config/nds32/nds32-intrinsic.c: Likewise.
10813         * config/nds32/nds32-isr.c: Likewise.
10814         * config/nds32/nds32-md-auxiliary.c: Likewise.
10815         * config/nds32/nds32-memory-manipulation.c: Likewise.
10816         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10817         * config/nds32/nds32-predicates.c: Likewise.
10818         * config/nds32/nds32.c: Likewise.
10819         * config/nios2/nios2.c: Likewise.
10820         * config/nvptx/mkoffload.c: Likewise.
10821         * config/nvptx/nvptx.c: Likewise.
10822         * config/pa/pa.c: Likewise.
10823         * config/pdp11/pdp11.c: Likewise.
10824         * config/rl78/rl78-c.c: Likewise.
10825         * config/rl78/rl78.c: Likewise.
10826         * config/rs6000/host-darwin.c: Likewise.
10827         * config/rs6000/rs6000-c.c: Likewise.
10828         * config/rs6000/rs6000-linux.c: Likewise.
10829         * config/rs6000/rs6000.c: Likewise.
10830         * config/rx/rx.c: Likewise.
10831         * config/s390/s390-c.c: Likewise.
10832         * config/s390/s390.c: Likewise.
10833         * config/sh/sh-c.c: Likewise.
10834         * config/sh/sh-mem.cc: Likewise.
10835         * config/sh/sh.c: Likewise.
10836         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10837         * config/sh/sh_treg_combine.cc: Likewise.
10838         * config/sol2-c.c: Likewise.
10839         * config/sol2-cxx.c: Likewise.
10840         * config/sol2-stubs.c: Likewise.
10841         * config/sol2.c: Likewise.
10842         * config/sparc/sparc-c.c: Likewise.
10843         * config/sparc/sparc.c: Likewise.
10844         * config/spu/spu-c.c: Likewise.
10845         * config/spu/spu.c: Likewise.
10846         * config/stormy16/stormy16.c: Likewise.
10847         * config/v850/v850-c.c: Likewise.
10848         * config/v850/v850.c: Likewise.
10849         * config/vax/vax.c: Likewise.
10850         * config/visium/visium.c: Likewise.
10851         * config/vms/vms-c.c: Likewise.
10852         * config/vms/vms.c: Likewise.
10853         * config/vxworks.c: Likewise.
10854         * config/winnt-c.c: Likewise.
10855         * config/xtensa/xtensa.c: Likewise.
10857 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10859         PR target/67745
10860         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10861         (FUNCTION_BOUNDARY_P): New macro:
10862         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10863         New hook.
10864         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10865         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10866         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10867         * function.c (allocate_struct_function): Call
10868         relayout_function hook.
10869         * passes.c (rest_of_decl_compilation): Likewise.
10871 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10873         PR target/67745
10874         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10875         * config/arm/arm.c (arm_option_override_internal): Call
10876         arm_override_options_after_change_1.
10877         (arm_override_options_after_change): New function.
10878         (arm_override_options_after_change_1): Likewise.
10879         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10881 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10883         Revert:
10884         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10885         empty constructors.
10887 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
10889         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10890         argument is an ADDR_EXPR.
10892 2015-10-16  Richard Biener  <rguenther@suse.de>
10894         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10895         and get rid of force_gimple_operand_gsi.
10896         (gimple_fold_builtin_memory_chk): Likewise.
10897         (gimple_fold_builtin_stxcpy_chk): Likewise.
10898         (rewrite_to_defined_overflow): Likewise.
10899         (gimple_convert_to_ptrofftype): New function.
10900         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10902 2015-10-16  Richard Biener  <rguenther@suse.de>
10904         * tree-nested.h (build_addr): Adjust prototype.
10905         * tree-nested.c (build_addr): Remove context argument and use
10906         mark_addressable.
10907         (get_static_chain): Adjust calls to build_addr.
10908         (convert_nl_goto_reference): Likewise.
10909         (convert_tramp_reference_op): Likewise.
10910         (finalize_nesting_tree_1): Likewise.
10911         * value-prof.c (gimple_ic): Likewise.
10912         * gimple-low.c (lower_builtin_setjmp): Likewise.
10913         * tree-parloops.c (take_address_of): Likewise.
10914         (create_call_for_reduction_1): Likewise.
10915         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10916         (gimple_gen_ic_func_profiler): Likewise.
10918 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10920         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10921         empty constructors.
10923 2015-10-16  Michael Collison  <michael.collison@linaro.org>
10924             Andrew Pinski <andrew.pinski@caviumnetworks.com>
10926         * match.pd ((x < y) && (x < z) -> x < min (y,z),
10927         (x > y) and (x > z) -> x > max (y,z))
10929 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10930             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10932         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10933         (DYNAMIC_LINKER): Renamed to ...
10934         (GLIBC_DYNAMIC_LINKER): This.
10935         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10937 2015-10-15  Marek Polacek  <polacek@redhat.com>
10939         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10940         gimple_call_builtin instead of is_gimple_call.
10942 2015-10-15  Richard Biener  <rguenther@suse.de>
10944         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10946 2015-10-15  Richard Biener  <rguenther@suse.de>
10948         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10949         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10950         * tree-vect-loop.c (get_initial_def_for_induction): Drop
10951         use of force_gimple_operand in favor of gimple_build.
10952         Use vect_get_new_ssa_name.
10953         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10954         (vectorizable_mask_load_store): Likewise.
10955         (vectorizable_call): Likewise.
10956         (vectorizable_store): Likewise.
10957         (vectorizable_load): Likewise.
10958         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10960 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
10962         PR tree-optimization/67945
10963         * tree-pass.h (PROP_gimple_opt_math): New property flag.
10964         * generic-match-head.c (canonicalize_math_p): New function.
10965         * gimple-match-head.c: Include tree-pass.h.
10966         (canonicalize_math_p): New function.
10967         * match.pd: Group math built-in rules into simplifications
10968         and canonicalizations.  Guard the latter with canonicalize_math_p.
10969         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10970         PROP_gimple_opt_math property.
10972 2015-10-15  Marek Polacek  <polacek@redhat.com>
10974         PR tree-optimization/67953
10975         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10977 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
10979         * config.gcc: Recognize "." in architecture base name for AArch64.
10981 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10983         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10984         ROUND_UP macro.
10985         * config/mips/mips.c (mips_setup_incoming_varargs): Use
10986         ROUND_DOWN to calculate off.
10987         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10988         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10989         rounded_size.
10991 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10993         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10995 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
10996             Torvald Riegel  <triegel@redhat.com>
10998         PR target/67281
10999         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
11000         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11001         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
11002         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
11003         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
11004         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11005         trechkpt, treclaim, tsr, ttest): New define_expands.
11006         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11007         __TM_FENCE__ for htm.
11008         * doc/extend.texi: Update documentation for htm builtins.
11010 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
11012         PR target/67967
11013         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
11014         REG_CFA_EXPRESSION to aligned SSE stores.
11016 2015-10-14  Jeff Law  <law@redhat.com>
11018         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
11019         num_threaded_edges for successful FSM threads too.
11021 2015-10-14  Richard Biener  <rguenther@suse.de>
11023         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
11024         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
11025         (vect_get_vec_def_for_operand): Remove unused parameter.
11026         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
11027         (vect_create_epilog_for_reduction): Likewise.
11028         (vectorizable_reduction): Likewise.
11029         (vectorizable_live_operation): Likewise.
11030         * tree-vect-patterns.c (type_conversion_p): Likewise.
11031         (vect_recog_vector_vector_shift_pattern): Likewise.
11032         (check_bool_pattern): Likewise.
11033         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11034         (vect_analyze_slp_cost_1): Likewise.
11035         * tree-vect-stmts.c (process_use): Likewise.
11036         (vect_get_vec_def_for_operand): Do not handle reductions.
11037         (vect_get_vec_defs): Adjust.
11038         (vectorizable_mask_load_store): Likewise.
11039         (vectorizable_call): Likewise.
11040         (vectorizable_simd_clone_call): Likewise.
11041         (vect_get_loop_based_defs): Likewise.
11042         (vectorizable_conversion): Likewise.
11043         (vectorizable_assignment): Likewise.
11044         (vectorizable_shift): Likewise.
11045         (vectorizable_operation): Likewise.
11046         (vectorizable_store): Likewise.
11047         (vectorizable_load): Likewise.
11048         (vect_is_simple_cond): Likewise.
11049         (vectorizable_condition): Likewise.
11050         (vect_is_simple_use): Remove unused parameters.
11051         (vect_is_simple_use_1): Adjust and rename.
11053 2015-10-14  Richard Biener  <rguenther@suse.de>
11055         PR tree-optimization/67915
11056         * match.pd: Handle comparisons of addresses of STRING_CSTs.
11057         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
11058         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
11059         stmt folding in favor of GIMPLE one.
11061 2015-10-14  Marek Polacek  <polacek@redhat.com>
11063         PR tree-optimization/67815
11064         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
11065         (reassociate_bb): Call it.
11067 2015-10-14  Richard Biener  <rguenther@suse.de>
11069         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11070         Reset info at start.
11071         (vect_analyze_group_access_1): Add debug print.
11072         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
11073         (vect_compute_single_scalar_iteration_cost): ... to this.
11074         (vect_analyze_loop_2): Adjust.
11075         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
11076         * tree-vectorizer.h: ... here.
11077         (add_stmt_info_to_vec): Remove.
11078         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
11080 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11082         * targhooks.c (default_target_option_pragma_parse): Do not warn if
11083         called on behalf of "#pragma GCC pop_options".
11085 2015-10-14  Tom de Vries  <tom@codesourcery.com>
11087         * cfganal.c (verify_no_unreachable_blocks): New function.
11088         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
11089         verify_no_unreachable_blocks.
11090         cfganal.h (verify_no_unreachable_blocks): Declare.
11092 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
11094         * common.opt: Add flag_checking.
11095         * system.h (CHECKING_P): Define.
11097 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
11098             Aldy Hernandez  <aldyh@redhat.com>
11099             Ilya Verbin  <ilya.verbin@intel.com>
11101         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
11102         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
11103         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
11104         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
11105         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
11106         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
11107         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
11108         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
11109         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
11110         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
11111         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11112         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11113         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
11114         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
11115         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
11116         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
11117         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
11118         (struct cgraph_simd_clone_arg): Adjust comment.
11119         * coretypes.h (struct gomp_ordered): New forward decl.
11120         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
11121         set critical clauses to it.
11122         (gimple_build_omp_ordered): Return gomp_ordered * instead of
11123         gimple *.  Add CLAUSES argument, set ordered clauses to it.
11124         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
11125         GIMPLE_OMP_ORDERED.
11126         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
11127         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
11128         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
11129         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11130         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
11131         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11132         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
11133         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11134         renumber
11135         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11136         (gomp_critical): Add clauses field.
11137         (gomp_ordered): New struct.
11138         (is_a_helper <gomp_ordered *>::test): New inline.
11139         (gimple_build_omp_critical): Add CLAUSES argument.
11140         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
11141         instead of gimple *.
11142         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11143         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11144         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11145         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11146         inline functions.
11147         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11148         (dump_gimple_omp_target): Handle enter data and exit data.
11149         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11150         (dump_gimple_omp_critical): Print clauses.
11151         (dump_gimple_omp_ordered): New function.
11152         (dump_gimple_omp_task): Handle taskloop.
11153         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11154         GIMPLE_OMP_ORDERED.
11155         * gimple-walk.c (walk_gimple_op): Walk clauses on
11156         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11157         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11158         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11159         (struct gimplify_omp_ctx): Add loop_iter_var,
11160         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11161         and target_firstprivatize_array_bases fields.
11162         (delete_omp_context): Release loop_iter_var.
11163         (gimplify_bind_expr): Handle ORT_NONE.
11164         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11165         ORT_COMBINED_TARGET.
11166         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11167         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11168         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
11169         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
11170         ctx->target_map_scalars_firstprivate.
11171         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
11172         data sharing clauses.  For data sharing clause with VLA decl
11173         on omp target/target data don't add firstprivate for the pointer.
11174         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11175         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11176         the addition of ORT_COMBINED_TARGET.
11177         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
11178         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
11179         pointers as zero length array sections and
11180         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11181         data sharing.
11182         (omp_check_private): Handle omp_member_access_dummy_var vars.
11183         (find_decl_expr): New function.
11184         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
11185         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11186         Handle OMP_CLAUSE_GANG separately.  Handle
11187         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11188         clauses.  Diagnose linear clause on combined
11189         distribute {, parallel for} simd construct, unless it is the loop
11190         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11191         Handle map clauses with COMPONENT_REF.  Initialize
11192         ctx->target_map_scalars_firstprivate,
11193         ctx->target_firstprivatize_array_bases and
11194         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
11195         linear clause even to target region if combined.  Remove
11196         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11197         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
11198         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11199         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
11200         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11201         For linear clause on worksharing loop combined with parallel add
11202         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
11203         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
11204         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
11205         taskloop if needed.
11206         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11207         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11208         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11209         GOMP_MAP_POINTER.
11210         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
11211         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11212         in target body.  Handle removal of struct mapping if struct is not
11213         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
11214         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
11215         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
11216         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11217         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11218         clause appear together.  Handle
11219         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
11220         clause if it has map-type-modifier always.  Handle
11221         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11222         clauses.
11223         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11224         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11225         callers.
11226         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
11227         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
11228         iterators in doacross loops.
11229         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11230         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
11231         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
11232         for the addition of ORT_COMBINED_TARGET.
11233         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11234         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
11235         and OMP_TARGET_EXIT_DATA.
11236         (gimplify_omp_ordered): New function.
11237         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11238         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
11239         Gimplify clauses on OMP_CRITICAL.
11240         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11241         expand_GOMP_SIMD_ORDERED_END): New functions.
11242         * internal-fn.def (GOMP_SIMD_ORDERED_START,
11243         GOMP_SIMD_ORDERED_END): New internal functions.
11244         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11245         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11246         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11247         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11248         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11249         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11250         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11251         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11252         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11253         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11254         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11255         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11256         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11257         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11258         adjust type.
11259         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11260         GOMP_target_data_41, adjust type.
11261         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11262         GOMP_target_update_41, adjust type.
11263         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11264         field.
11265         (struct omp_for_data): Add ordered and simd_schedule fields.
11266         (omp_member_access_dummy_var, unshare_and_remap_1,
11267         unshare_and_remap, is_taskloop_ctx): New functions.
11268         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11269         (extract_omp_for_data): Handle taskloops and doacross loops
11270         and simd schedule modifier.
11271         (omp_adjust_chunk_size): New function.
11272         (get_ws_args_for): Use it.
11273         (lookup_sfield): Change first argument to splay_tree_key,
11274         add overload with first argument tree.
11275         (maybe_lookup_field): Likewise.
11276         (use_pointer_for_field): Handle omp_member_access_dummy_var.
11277         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11278         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11279         (build_outer_var_ref): Add LASTPRIVATE argument, handle
11280         taskloops and omp_member_access_dummy_var vars.
11281         (build_sender_ref): Change first argument to splay_tree_key,
11282         add overload with first argument tree.
11283         (install_var_field): For mask & 8 use &DECL_UID as key instead
11284         of the tree itself.
11285         (fixup_child_record_type): Const qualify *.omp_data_i.
11286         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11287         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11288         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11289         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11290         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11291         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11292         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11293         kinds.
11294         (add_taskreg_looptemp_clauses): New function.
11295         (scan_omp_parallel): Use it.
11296         (scan_omp_task): Likewise.
11297         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11298         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11299         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11300         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
11301         sandwiched taskloop constructs.  Type check
11302         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
11303         region.  Diagnose depend(source) or depend(sink:...) on
11304         target constructs or task/taskloop.
11305         (handle_simd_reference): Use get_name.
11306         (lower_rec_input_clauses): Likewise.  Ignore all
11307         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11308         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
11309         before passing it to omp_clause_{default,copy}_ctor.  Handle
11310         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
11311         lastprivate_firstprivate flag for linear that needs copyin and
11312         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11313         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11314         on taskloop lookup decl in outer context.  Pass true to
11315         build_outer_var_ref lastprivate argument.  Handle
11316         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11317         outside of outer taskloop for.
11318         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11319         OMP_CLAUSE_DECL.
11320         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11321         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
11322         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
11323         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
11324         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11325         abstract origin.  Handle omp_member_access_dummy_var vars.
11326         (expand_parallel_call): Use expand_omp_build_assign.
11327         (expand_task_call): Handle taskloop construct expansion.  Add
11328         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
11329         integers.  Add priority argument to GOMP_task* calls.  Or in
11330         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11331         GOMP_task call.
11332         (expand_omp_build_assign): Add prototype.  Add AFTER
11333         argument, if true emit statements after *GSI_P and continue linking.
11334         (expand_omp_taskreg): Adjust expand_task_call caller.
11335         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11336         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11337         zero_iter2_bb and first_zero_iter2 arguments, handle computation
11338         of counts even for ordered loops.
11339         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11340         (expand_omp_ordered_source, expand_omp_ordered_sink,
11341         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11342         functions.
11343         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
11344         clauses on worksharing loop.  Handle DOACROSS loop expansion.
11345         (expand_omp_for_static_nochunk): Handle linear clauses on
11346         worksharing loop.  Adjust expand_omp_for_init_counts
11347         callers.
11348         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
11349         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
11350         expand_omp_for_init_counts callers.
11351         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11352         functions.
11353         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11354         Handle doacross loops.
11355         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11356         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
11357         GOMP_target_{41,update_41,enter_exit_data} libcalls.
11358         (expand_omp): Don't expand ordered depend constructs here, record
11359         ord_stmt instead for later expand_omp_for_generic.
11360         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11361         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11362         clause as stand-alone directive.
11363         (lower_omp_ordered_clauses): New function.
11364         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11365         don't lower anything.
11366         (lower_omp_for_lastprivate): Use last _looptemp_ clause
11367         on taskloop for comparison.
11368         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
11369         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11370         expansion for linear adjustments.
11371         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11372         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11373         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
11374         to tree * pointing to the stmt's clauses.
11375         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11376         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11377         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11378         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11379         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11380         clauses.  Always use short kind and 8-bit align shift.
11381         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11382         (struct lower_omp_regimplify_operands_data): New type.
11383         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11384         New functions.
11385         (lower_omp_1): Use lower_omp_regimplify_operands instead of
11386         gimple_regimplify_operands.
11387         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11388         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11389         clause as stand-alone directive.
11390         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11391         (simd_clone_mangle): Mangle the various linear kinds
11392         per the new ABI.
11393         (simd_clone_adjust_argument_types): Handle
11394         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11395         (simd_clone_init_simd_arrays): Don't do anything for uval.
11396         (simd_clone_adjust): Handle
11397         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11398         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11399         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11400         * omp-low.h (omp_member_access_dummy_var): New prototype.
11401         * passes.def (pass_simduid_cleanup): Schedule another copy of the
11402         pass after all optimizations.
11403         * tree.c (omp_clause_code_name): Add entries for
11404         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11405         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11406         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
11407         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11408         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11409         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
11410         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11411         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11412         clauses.
11413         * tree-core.h (enum omp_clause_linear_kind): New.
11414         (struct tree_omp_clause): Change type of map_kind
11415         from unsigned char to unsigned int.  Add subcode.if_modifier
11416         and subcode.linear_kind fields.
11417         (enum omp_clause_code): Add
11418         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11419         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11420         (OMP_CLAUSE_REDUCTION): Document
11421         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11422         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11423         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11424         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
11425         operand.
11426         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
11427         operand.
11428         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
11429         codes.
11430         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
11431         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
11432         char.
11433         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
11434         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
11435         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
11436         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
11437         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
11438         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
11439         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
11440         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
11441         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
11442         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
11443         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
11444         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
11445         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
11446         * tree-inline.c (remap_gimple_stmt): Handle clauses on
11447         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
11448         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
11449         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
11450         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11451         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11452         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11453         (convert_local_omp_clauses): Likewise.
11454         * tree-pretty-print.c (dump_omp_clause): Handle
11455         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11456         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11457         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
11458         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
11459         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
11460         GOMP_MAP_FORCE_DEALLOC.  Handle
11461         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
11462         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
11463         and clauses on OMP_ORDERED and OMP_CRITICAL.
11464         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
11465         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
11466         (vectorize_loops): Adjust comments.
11467         (pass_simduid_cleanup::execute): Likewise.
11468         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11469         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
11470         * wide-int.h (wi::gcd): New.
11472 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
11474         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
11475         (ix86_function_arg_advance): Ditto.
11476         (ix86_function_arg): Ditto.
11477         (ix86_gimplify_va_arg): Ditto.
11478         (ix86_class_max_nregs): Ditto.
11479         (inline_memory_move_cost): Ditto.
11480         (ix86_set_reg_reg_cost): Ditto.
11481         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
11483 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
11485         PR middle-end/67912
11486         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
11488 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
11490         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
11491         ROUND_UP macro and UNITS_PER_WORD * 2.
11492         * config/sparc/sparc.c (sparc_compute_frame_size):
11493         Use ROUND_UP and ROUND_DOWN macros where applicable.
11494         (function_arg_record_value, function_arg_record_value_1)
11495         (function_arg_record_value_1): Ditto.
11496         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
11497         alignment to double-word.
11498         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
11499         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
11500         rounded_size.
11502 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
11504         * rtl.h (print_insn): Fix prototype.
11506 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11508         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
11509         -1.  Add assert that returned entry matches phi argument.
11510         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
11511         free_stmt_vec_info_vec ...
11512         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
11513         with -1.
11515 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
11517         PR tree-optimization/67909, 67947
11518         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
11519         really skip the inner loop.
11521 2015-10-13  Jeff Law  <law@redhat.com>
11523         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11524         Allow single block jump threading paths.
11526 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11528         PR tree-optimization/67476
11529         * doc/invoke.texi (@item parloops-schedule): New item.
11530         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
11531         * tree-parloops.c: Include params-enum.h.
11532         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
11534 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11536         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
11537         * params-enum.h: New file.
11538         * opts.c (handle_param): Handle case that param arg is a string.
11539         * params-list.h: Handle DEFPARAMENUM5 in params.def.
11540         * params.c (find_param): New function, factored out of ...
11541         (set_param_value): ... here.
11542         (param_string_value_p): New function.
11543         * params.h (struct param_info): Add value_names field.
11544         (find_param, param_string_value_p): Declare.
11546 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11548         PR tree-optimization/67476
11549         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
11551 2015-10-13  Richard Biener  <rguenther@suse.de>
11553         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
11554         the data dependence vector.
11555         (vect_peeling_hash_insert): Get the peeling hash table as argument.
11556         (vect_peeling_hash_get_lowest_cost): Likewise.
11557         (vect_enhance_data_refs_alignment): Adjust.
11558         (struct _vect_peel_info, struct _vect_peel_extended_info,
11559         struct peel_info_hasher): Move from ...
11560         * tree-vectorizer.h: ... here.
11561         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
11562         (LOOP_VINFO_PEELING_HTAB): Likewise.
11563         (struct _loop_vec_info): Remove min_profitable_iters and
11564         peeling_htab members.
11565         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
11566         here.
11567         (destroy_loop_vec_info): Adjust.
11568         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
11569         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
11570         to estimate alias versioning cost.
11571         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
11573 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
11575         * real.h (real_isinteger): Declare.
11576         * real.c (real_isinteger): New function.
11577         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
11578         if y is an even integer.
11580 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11582         revert:
11583         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11584         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11585         counts when these are more informative.
11587 2015-10-12  Jeff Law  <law@redhat.com>
11589         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
11590         (fsm_find_control_stmt_paths): Change name of first argument to
11591         more accurately relfect what it really is.  Handle simplification
11592         of GIMPLE_COND after finding a thread path for NAME.
11593         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
11594         nontrivial conditions to be handled by FSM threader.
11595         (thread_through_normal_block): Extract the name to looup via
11596         FSM threader from COND_EXPR.
11598         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
11599         restriction that traced SSA_NAME is a user variable.
11601 2015-10-12  Tom de Vries  <tom@codesourcery.com>
11603         PR tree-optimization/67476
11604         * omp-low.c (expand_omp_for_generic): Add missing phis.
11606 2015-10-12  Tom de Vries  <tom@codesourcery.com>
11608         PR tree-optimization/67476
11609         * omp-low.c (expand_omp_for_generic): Handle simple latch.
11611 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
11613         * config/aarch64/aarch64-simd-builtins.def: Update builtins
11614         tables: add tbl3 and tbx4.
11615         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
11616         (aarch64_tbx4v8qi): New.
11617         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
11618         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
11619         Rewrite using builtin functions.
11620         * config/aarch64/iterators.md (UNSPEC_TBX): New.
11622 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
11624         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
11625         ROUND_UP macro.
11626         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11627         Use ROUND_UP and ROUND_DOWN macros where applicable.
11628         (rs6000_darwin64_record_arg_flush): Ditto.
11629         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
11630         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
11631         rounded_size.
11633 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
11635         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
11636         (AARCH64_ROUND_DOWN): Ditto.
11637         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
11639 2015-10-12  Richard Biener  <rguenther@suse.de>
11641         PR ipa/67783
11642         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
11643         code that analyzes IVs on each stmt but in a cheaper way avoiding
11644         quadratic behavior.
11646 2015-10-12  Nick Clifton  <nickc@redhat.com>
11648         * config/msp430/msp430.c (msp430_mcu_names): Rename to
11649         msp430_mcu_data, add fields for ISA and hardware multiply
11650         support.  Import latest data from the devices.csv file.
11651         (msp430_override_option): Use the data from the new array.
11652         (msp430_use_f5_series_hwmult): Likewise.
11653         (use_32bit_hwmult): Likewise.
11654         (msp430_no_hwmult): Likewise.
11655         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
11656         MCU names.
11657         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
11658         not recognised then no hardware multiply support is assumed and
11659         that only the MSP430 ISA is allowed.
11661 2015-10-12  Richard Biener  <rguenther@suse.de>
11663         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
11664         related code ...
11665         (vect_analyze_loop_2): ... here.
11667 2015-10-11  Jason Merrill  <jason@redhat.com>
11669         PR c++/67557
11670         * expr.c (store_field): Call store_constructor directly when
11671         storing a CONSTRUCTOR into a target smaller than its type.
11672         Guard against unsafe bitwise copy.
11674 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11676         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11677         counts when these are more informative.
11679 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11681         * tree-profile.c (tree_profiling): Do not clear
11682         pure/const when not instrumenting.
11683         (pass tree_profile): Add dump of symtab.
11685 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11687         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
11688         addresses.
11689         (fold_addr_of_array_ref_difference): Likewise.
11691 2015-10-11  Jeff Law  <law@redhat.com>
11693         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
11694         tree-ssa-threadbackward.c.
11695         (fsm_find_control_statement_thread_paths): Likewise.
11696         (thread_through_normal_block): Break out FSM bits and move them
11697         into a new function in tree-ssa-threadbackward.c.  Call new function
11698         instead.
11699         Minimize header file usage.
11700         * tree-ssa-threadbackward.h: New file.
11701         * tree-ssa-threadbackward.c: Likewise.
11702         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
11704 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
11706         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
11708 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
11710         PR rtl-optimization/67864
11711         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
11712         fallthrough edges for conditional jumps.  Don't sort candidate
11713         edges if not optimizing for speed.
11715 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11717         * defaults.h (REVERSE_CONDITION): New default definition.
11718         * jump.c (reversed_comparison_code_parts): Adjust.
11720 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11722         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
11723         check HARD_FRAME_POINTER_IS_ARG_POINTER.
11725 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11727         * defaults.h (FRAME_ADDR_RTX): New default definition.
11728         * builtins.c (expand_builtin_return_addr): Adjust.
11730 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11732         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11733         * builtins.c (expand_builtin_return_addr): Adjust.
11735 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11737         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11738         * builtins.c (expand_builtin_return_addr): Adjust.
11739         * doc/tm.texi: Likewise.
11740         * doc/tm.texi.in: Likewise.
11741         * except.c (expand_builtin_unwind_init): Likewise.
11743 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11745         * builtins.c (expand_builtin_return_addr): Adjust.
11746         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11748 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11750         * tree.c (type_with_interoperable_signedness): New.
11751         (gimple_canonical_types_compatible_p): Use it.
11752         * tree.h (type_with_interoperable_signedness): Declare
11754 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11756         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11757         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11758         when OEP_ADDRESS_OF is se.
11760 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11761             Sebastian Pop  <s.pop@samsung.com>
11763         * graphite-dependences.c (scop_get_dependences): Add dump of the
11764         data dependence graph.
11765         * graphite-poly.c (print_isl_union_map): New.
11766         (debug_isl_union_map): New.
11767         * graphite-poly.h (print_isl_union_map): Declare.
11768         (debug_isl_union_map): Declare.
11770 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11771             Sebastian Pop  <s.pop@samsung.com>
11773         * graphite-poly.c (print_iteration_domain): Remove verbosity.
11774         Remove OpenScop formatting.
11775         (print_iteration_domains): Same.
11776         (debug_iteration_domain): Same.
11777         (debug_iteration_domains): Same.
11778         (print_pdr): Same.
11779         (debug_pdr): Same.
11780         (dump_gbb_cases): Same.
11781         (dump_gbb_conditions): Same.
11782         (print_pdrs): Same.
11783         (debug_pdrs): Same.
11784         (print_pbb_body): Same.
11785         (print_pbb): Same.
11786         (print_scop_params): Same.
11787         (print_scop_context): Same.
11788         (print_scop): Same.
11789         (debug_pbb_domain): Same.
11790         (debug_pbb): Same.
11791         (debug_scop_context): Same.
11792         (debug_scop): Same.
11793         (debug_scop_params): Same.
11794         * graphite-poly.h: Same.
11795         * graphite.c (graphite_transform_loops): Same.
11797 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11799         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11800         call that isn't needed.
11802 2015-10-09  Jeff Law  <law@redhat.com>
11804         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11805         rather than moving each name to the freelist individually.
11807 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
11809         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11810         * frame-header-opt.c: New file.
11811         * config/mips/mips-proto.h (mips_register_frame_header_opt):
11812         Add prototype.
11813         * config/mips/mips.c (mips_compute_frame_info): Check
11814         optimize_call_stack flag.
11815         (mips_option_override): Register new frame_header_opt pass.
11816         (mips_frame_info, mips_int_mask, mips_shadow_set,
11817         machine_function): Move these types to...
11818         * config/mips/mips.h: here.
11819         (machine_function): Add does_not_use_frame_header and
11820         optimize_call_stack fields.
11821         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11822         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11823         Document new flags.
11824         * config/mips/mips.opt (mframe-header-opt): Add new option.
11826 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
11828         * config/i386/i386.c
11829         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11830         ROUND_DOWN where applicable.
11832 2015-10-09  Jeff Law  <law@redhat.com>
11834         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11835         correct statement.
11837 2015-10-09  Renlin Li  <renlin.li@arm.com>
11839         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11840         operands[0] and operands[2].
11841         (neon_vtrn<mode>_insn): Likewise.
11842         (neon_vzip<mode>_insn): Likewise.
11844 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11846         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11847         ((X & C2) << C1): Expand to...
11848         (X {&,^,|} C2 << C1): ...This.
11849         ((X & C2) >> C1): Expand to...
11850         (X {&,^,|} C2 >> C1): ...This.
11852 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
11854         PR target/67895
11855         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11856         Adjust embedded rounding/SAE specifier position.
11857         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11858         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11859         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11860         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11861         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11862         Likewise.
11863         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11865 2015-10-09  Martin Jambor  <mjambor@suse.cz>
11867         tree-optimization/67794
11868         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11869         between types of state,ents but accept original definitions as a
11870         parameter.
11871         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11872         iterate over definitions.
11874 2015-10-09  James Norris  <jnorris@codesourcery.com>
11876         * config/rs6000/rs6000.c (rs6000_offload_options): New.
11877         (TARGET_OFFLOAD_OPTIONS): New.
11879 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
11881         PR middle-end/67891
11882         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11884         PR middle-end/67766
11885         * function.c (expand_function_end): Move return value
11886         promotion past the handling of PARALLELs and CONCATs.
11888         PR rtl-optimization/67828
11889         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11890         (tree_may_unswitch_on): Don't unswitch on expressions
11891         involving undefined values.
11893 2015-10-09  Richard Biener  <rguenther@suse.de>
11895         * genmatch.c (print_operand): Fix formatting.
11896         (dt_node::append_simplify): Warn for multiple simplifiers
11897         that match the same pattern.
11898         * match.pd (log (exp @0)): Remove duplicates.
11900 2015-10-09  Richard Biener  <rguenth@suse.de>
11902         PR target/67366
11903         * gimple-fold.c (optabs-query.h): Include
11904         (gimple_fold_builtin_memory_op): Allow unaligned stores
11905         when movmisalign_optabs are available.
11907 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11909         PR target/67366
11910         * config/arm/arm.md (movmisalign<mode>): New.
11911         * config/arm/iterators.md (HSI): New.
11913 2015-10-09  Richard Biener  <rguenther@suse.de>
11915         PR tree-optimization/67891
11916         * gimple-match.h (gimple_simplified_result_is_gimple_val):
11917         New helper.
11918         (gimple_resimplify1): Declare.
11919         (gimple_resimplify2): Likewise.
11920         (gimple_resimplify3): Likewise.
11921         * gimple-match-head.c (gimple_resimplify1): Export.
11922         (gimple_resimplify2): Likewise.
11923         (gimple_resimplify3): Likewise.
11924         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11925         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11926         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11927         to avoid creating stmts without VN info.
11929 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
11931         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11932         of availability.
11934 2015-10-08  Jeff Law  <law@redhat.com>
11936         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11937         and release_ssa_name in two places.
11938         (gimple_stringop_fixed_value): Similarly.
11940         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11941         release_defs.
11943         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11944         unlink_stmt_vdef and release_ssa_name_fn.
11946         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11947         release_defs.
11949 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
11951         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11952         SSE register save area to 16 bytes only if the incoming stack
11953         boundary is no less than 16 bytes.
11955 2015-10-08  Jeff Law  <law@redhat.com>
11957         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11958         release_ssa_name.  Fix typo in comment.
11960 2015-10-08  Nathan Sidwell  <nathan@acm.org>
11962         * config/nvptx/nvptx.h (struct machine_function): Add comment.
11963         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11964         may return pointer as well as in memory.
11965         (nvptx_output_return): Likewise.
11967 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11969         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11970         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
11971         * match.pd: Add rules previously handled by fold_builtin_sqrt
11972         and fold_builtin_cbrt.
11974 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11976         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11977         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11978         * fold-const.h (tree_unary_nonnegative_warnv_p)
11979         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11980         (tree_expr_nonnegative_warnv_p): Add depth parameters.
11981         * fold-const.c: Include gimple-fold.h and params.h.
11982         (tree_ssa_name_nonnegative_warnv_p): New function.
11983         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11984         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11985         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11986         Add a depth parameter and increment it for recursive calls to
11987         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
11988         to handle SSA names.
11989         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11990         (gimple_stmt_nonnegative_warnv_p): Declare.
11991         * tree-vrp.c (remove_range_assertions): Remove assert that condition
11992         cannot be proven false.
11993         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11994         (gimple_stmt_nonnegative_warnv_p): Move to...
11995         * gimple-fold.c: ...here.  Add depth parameters and pass them
11996         down to the tree routines.  Accept statements that aren't
11997         assignments or calls but just return false for them.
11998         (gimple_val_nonnegative_real_p): Delete.
11999         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12000         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
12001         Check HONOR_NANs first.
12003 2015-10-08  Martin Jambor  <mjambor@suse.cz>
12005         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
12006         unnecessary MIN.
12008 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
12010         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
12011         in the tail of outer-loop.
12013 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
12015         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
12016         return UI_NONE.
12018 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
12020         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
12021         "cfghooks.h", add prototypes for introduced new functions.
12022         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
12023         checks on ability of loop unswitching to tree_unswitch_single_loop;
12024         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
12025         on innermost loop check.
12026         (tree_unswitch_single_loop): Add all required checks on ability of
12027         loop unswitching under zero recursive level guard.
12028         (tree_unswitch_outer_loop): New function.
12029         (find_loop_guard): Likewise.
12030         (empty_bb_without_guard_p): Likewise.
12031         (used_outside_loop_p): Likewise.
12032         (get_vop_from_header): Likewise.
12033         (hoist_guard): Likewise.
12034         (check_exit_phi): Likewise.
12036 2015-10-08  Marek Polacek  <polacek@redhat.com>
12038         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
12039         ops element.
12041 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12043         PR c/65345
12044         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
12045         create_tmp_var_raw instead of create_tmp_var.
12047 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
12049         * expr.c (store_expr_with_bounds): Handle aggregate moves from
12050         BLKmode.
12051         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
12052         to define gimple type system; compare aggregates only by size.
12054 2015-10-07  Jeff Law  <law@redhat.com>
12056         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
12057         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
12058         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
12059         unnecessarily.
12061 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
12062             Sebastian Pop  <s.pop@samsung.com>
12064         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
12065         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
12066         (generate_isl_schedule): Same.
12067         * graphite-optimize-isl.c (scop_get_domains): Same.
12068         (apply_schedule_map_to_scop): Same.
12069         * graphite-poly.c (print_iteration_domains): Same.
12070         (remove_gbbs_in_scop): Same.
12071         (new_scop): Same.
12072         (free_scop): Same.
12073         (print_scop): Same.
12074         * graphite-poly.h (struct scop): Rename bbs to pbbs.
12075         (SCOP_BBS): Remove.
12076         * graphite-scop-detection.c (compare_bb_depths): Remove.
12077         (graphite_sort_dominated_info): Remove.
12078         (try_generate_gimple_bb): Move out of scop_detection.
12079         (all_non_dominated_preds_marked_p): Remove.
12080         (build_scop_bbs_1): Remove.
12081         (build_scop_bbs): Remove.
12082         (nb_pbbs_in_loops): Do not use SCOP_BBS.
12083         (find_scop_parameters): Same.
12084         (sese_dom_walker): Rename gather_bbs.
12085         (before_dom_children): Call try_generate_gimple_bb and collect gbb
12086         and pbb.
12087         (build_scops): Call gather_bbs.
12088         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
12089         (add_conditions_to_constraints): Same.
12090         (build_scop_iteration_domain): Same.
12091         (build_scop_drs): Same.
12092         (new_pbb_from_pbb): Same.
12093         * sese.c (new_sese_info): Create bbs.
12094         * sese.h (struct sese_info_t): Add bbs.
12096 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
12098         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
12099         encoding in 64-bit mode.
12101 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
12103         PR target/66697
12104         * config/i386/i386.c (ix86_option_override_internal): Always use
12105         8-byte minimum stack boundary in 64-bit mode.
12106         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12107         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
12108         Add a REG_CFA_EXPRESSION note if needed.
12109         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
12110         (ix86_handle_force_align_arg_pointer_attribute): New.
12111         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
12112         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
12113         with ix86_handle_force_align_arg_pointer_attribute.
12114         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
12116 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
12117             Sebastian Pop  <s.pop@samsung.com>
12119         * graphite-scop-detection.c (parameter_index_in_region): Remove
12120         use of SESE_ADD_PARAMS.
12121         (find_scop_parameters): Same.
12122         * sese.c (new_sese_info): Same.
12123         * sese.h (struct sese_info_t): Remove add_params.
12124         (SESE_ADD_PARAMS): Remove.
12126 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
12127             Sebastian Pop  <s.pop@samsung.com>
12129         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12130         an sese_info_p.
12131         (copy_def): Same.
12132         (copy_internal_parameters): Same.
12133         (translate_isl_ast_to_gimple): Use an sese_l.
12134         (build_iv_mapping): Same.
12135         * graphite-poly.c (new_sese): Rename new_sese_info.
12136         (free_sese): Rename free_sese_info.
12137         * graphite-poly.h (struct scop): Use an sese_info_p.
12138         (scop_set_region): Same.
12139         * graphite-scop-detection.c (struct sese_l): Moved...
12140         (get_entry_bb): Moved...
12141         (get_exit_bb): Moved...
12142         (parameter_index_in_region_1): Use an sese_info_p.
12143         (parameter_index_in_region): Same.
12144         (scan_tree_for_params): Same.
12145         (find_params_in_bb): Same.
12146         (sese_dom_walker): Use an sese_l.
12147         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12148         (reduction_phi_p): Same.
12149         (parameter_index_in_region_1): Use an sese_info_p.
12150         (propagate_expr_outside_region): Use an sese_l.
12151         * graphite.c: Replace uses of SCOP_REGION.
12152         * sese.c (sese_record_loop): Use an sese_info_p.
12153         (build_sese_loop_nests): Same.
12154         (sese_build_liveouts_use): Same.
12155         (sese_build_liveouts_bb): Same.
12156         (sese_build_liveouts_bb): Same.
12157         (sese_bad_liveouts_use): Same.
12158         (sese_reset_debug_liveouts_bb): Same.
12159         (sese_build_liveouts): Same.
12160         (new_sese): Renamed new_sese_info.
12161         (free_sese): Renamed free_sese_info.
12162         (set_rename): Use an sese_info_p.
12163         (graphite_copy_stmts_from_block): Same.
12164         (copy_bb_and_scalar_dependences): Same.
12165         (outermost_loop_in_sese_1): Use an sese_l.
12166         (outermost_loop_in_sese): Same.
12167         (if_region_set_false_region): Use an sese_info_p.
12168         (move_sese_in_condition): Same.
12169         (scalar_evolution_in_region): Use an sese_l.
12170         * sese.h (struct sese_l): ... here.
12171         (SESE_ENTRY): Remove.
12172         (SESE_ENTRY_BB): Remove.
12173         (SESE_EXIT): Remove.
12174         (SESE_EXIT_BB): Remove.
12175         (sese_contains_loop): Use an sese_info_p.
12176         (sese_nb_params): Same.
12177         (bb_in_sese_p): Use an sese_l.
12178         (stmt_in_sese_p): Same.
12179         (defined_in_sese_p): Same.
12180         (loop_in_sese_p): Same.
12181         (sese_loop_depth): Same.
12182         (struct ifsese_s): Use an sese_info_p.
12183         (gbb_loop_at_index): Use an sese_l.
12184         (nb_common_loops): Same.
12185         (scev_analyzable_p): Same.
12187 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12189         * config/i386/i386.c (ix86_conditional_register_usage): Use
12190         CALL_USED_REGISTERS_MASK.
12191         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12193 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12195         PR bootstrap/67385
12196         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12197         * configure: Regenerated.
12199 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12201         PR target/67850
12202         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12203         (ix86_set_current_function): This.
12204         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12206 2015-10-07  Richard Biener  <rguenther@suse.de>
12208         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12209         (vinfo_for_stmt): Adjust.
12210         (set_vinfo_for_stmt): Likewise.
12211         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12212         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12213         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12214         of inner loop.
12215         (vect_analyze_loop_1): Remove.
12216         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12217         inner loop when vectorizing an outer loop by splitting out from ...
12218         (vect_analyze_loop_form): ... here.
12220 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12222         PR c/65345
12223         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12224         Use create_tmp_var_raw instead of create_tmp_var.
12226 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
12228         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12229         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12230         * real.c (CACHED_FRACTION): New helper macro.
12231         (dconst_third_ptr): Use it.
12232         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12233         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12234         dconst_sixth.
12235         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12237 2015-10-06  Jeff Law  <law@redhat.com>
12239         PR tree-optimization/67816
12240         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12241         from remove_jump_threads_starting_at.  Accept an edge rather than
12242         a basic block.
12243         * tree-ssa-threadupdate.c (removed_edges): New hash table.
12244         (remove_jump_threads_including): Note edges that get removed from
12245         the CFG for later pruning of jump threading paths including them.
12246         (thread_through_all_blocks): Remove paths which include edges that
12247         have been removed.
12248         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12249         on each outgoing edges when optimizing away a control statement.
12251 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12253         * reorg.c (emit_delay_sequence): Store list of delay slot insns
12254         in a vector instead of rtx_insn_list.
12255         (add_to_delay_list): Likewise.
12256         (delete_from_delay_slot): Likewise.
12257         (optimize_skip): Likewise.
12258         (redirect_with_delay_list_safe_p): Likewise.
12259         (check_annul_list_true_false): Likewise.
12260         (steal_delay_list_from_target): Likewise.
12261         (steal_delay_list_from_fallthrough): Likewise.
12262         (redundant_insn): Likewise.
12263         (fill_simple_delay_slots): Likewise.
12264         (fill_slots_from_thread): Likewise.
12265         (fill_eager_delay_slots): Likewise.
12266         (relax_delay_slots): Likewise.
12268 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
12270         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12271         For -mgpopt=local, also exclude unintialized common symbols.
12272         * doc/invoke.texi (Nios II Options): Document the change.
12274 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12276         * config/aarch64/iterators.md (vwcore): Add missing cases for
12277          V4HF/V8HF modes.
12279 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12280             Sebastian Pop  <s.pop@samsung.com>
12282         * graphite-poly.c (new_scop): Initialize drs.
12283         * graphite-poly.h (struct dr_info): New.
12284         (struct scop): Add drs.
12285         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12286         (pdr_add_memory_accesses): Same.
12287         (build_poly_dr): Same.
12288         (build_alias_set): Same.
12289         (build_scop_drs): Same.
12290         (build_pbb_drs): Remove.
12291         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12292         * tree-data-ref.h (data_reference): Remove alias_set.
12294 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12295             Sebastian Pop  <s.pop@samsung.com>
12297         * graphite-poly.c (free_data_refs_aux): Remove.
12298         (free_gimple_poly_bb): Do not call free_data_refs_aux.
12299         * graphite-poly.h (struct base_alias_pair): Remove.
12300         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12301         base_alias_pair and dr->aux.
12302         (build_alias_set): Same.
12303         * tree-data-ref.c (create_data_ref): Initialize alias_set.
12304         * tree-data-ref.h (data_reference): Add alias_set.
12306 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12307             Sebastian Pop  <s.pop@samsung.com>
12309         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12310         Do not set PDR_BASE_OBJECT_SET.
12311         * graphite-poly.h (poly_dr): Same.
12312         (PDR_BASE_OBJECT_SET): Remove.
12313         (new_poly_dr): Update decl.
12314         * graphite-sese-to-poly.c (build_poly_dr): Update call to
12315         new_poly_dr.
12316         (write_alias_graph_to_ascii_dimacs): Remove.
12317         (write_alias_graph_to_ascii_dot): Remove.
12318         (write_alias_graph_to_ascii_ecc): Remove.
12319         (dr_same_base_object_p): Remove.
12320         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
12321         code.
12322         (build_base_obj_set_for_drs): Remove.
12323         (dump_alias_graphs): Remove.
12324         (build_scop_drs): Remove dead code.
12326 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12327             Peter Bergner  <bergner@vnet.ibm.com>
12329         PR target/67808
12330         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12331         allow registers, but provide insns for the combiner to create for
12332         loads from memory. Separate VSX code from non-VSX code. For
12333         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12334         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12335         so that registers come before memory operations. Drop support from
12336         converting DFmode to TFmode, if the DFmode value is in a GPR
12337         register.
12338         (extenddftf2_fprs): Likewise.
12339         (extenddftf2_internal): Likewise.
12340         (extenddftf2_vsx): Likewise.
12341         (extendsftf2): In the expander, only allow registers, but provide
12342         insns for the combiner to create for stores and loads.
12344 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12346         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12347         from the decl parameter.
12349 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
12351         PR 67861
12352         * gimple-fold.c (gimple_fold_builtin): Add break after
12353         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12355 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
12357         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12358         to scop->isl_context.
12360 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12362         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12363         (output_probe_stack_range): Rotate the loop and simplify.
12364         (thumb1_expand_prologue): Tweak sorry message.
12365         * config/arm/arm.md (probe_stack): Use bare string.
12367 2015-10-06  Nick Clifton  <nickc@redhat.com>
12369         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12371 2015-10-06  Nick Clifton  <nickc@redhat.com>
12373         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12374         (ATTR_PERSIST): New constant.
12375         (msp430_data_attr): New function - verifies an attribute that only
12376         applies to variables.
12377         (msp430_attributes): Add noinit and persistent attributes.
12378         (noinit_section): New variable.
12379         (presis_section): New variable.
12380         (TARGET_ASM_INIT_SECTIONS): Define.
12381         (msp430_init_sections): New function - initialises the noinit and
12382         persist section variables.
12383         (msp430_select_section): Add support for noinit and persist
12384         attributes.
12385         (msp430_section_type_flags): Likewise.
12386         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
12387         and persistent attributes.
12389 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12390             Sebastian Pop  <s.pop@samsung.com>
12392         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12393         (no_violations): Remove.
12394         (subtract_commutative_associative_deps): Remove.
12395         (compute_deps): Do not call subtract_commutative_associative_deps.
12396         (transform_is_safe): Remove.
12397         (graphite_legal_transform): Remove.
12398         * graphite-poly.h (graphite_legal_transform): Remove.
12400 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
12402         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12403         which are in this region are passed so gcc_assert and remove redundant
12404         computation.
12405         * sese.c (sese_build_liveouts): Pass only those bbs which are not
12406         in region.
12407         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12408         gcc_assert on that and remove unnecessary computation.
12409         (sese_build_liveouts_use): Same.
12411 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12413         * graphite-dependences.c (scop_get_reads): Renamed scop->context
12414         to scop->param_context.
12415         (scop_get_must_writes): Same.
12416         (scop_get_may_writes): Same.
12417         (scop_get_original_schedule): Same.
12418         (scop_get_transformed_schedule): Same.
12419         (subtract_commutative_associative_deps): Same.
12420         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12421         (generate_isl_context): Same.
12422         (generate_isl_schedule): Same.
12423         (scop_to_isl_ast): Same.
12424         (graphite_regenerate_ast_isl): Same.
12425         * graphite-optimize-isl.c (scop_get_domains): Same.
12426         (optimize_isl): Renamed scop->context to scop->param_context.
12427         * graphite-poly.c (new_poly_bb): Change the type of argument to
12428         gimple_poly_bb_p.
12429         (new_scop): Renamed scop->context to scop->param_context.
12430         (free_scop): Same.
12431         (print_scop_context): Same.
12432         * graphite-poly.h (new_poly_dr): Change the type of argument from
12433         void* to data_reference_p.
12434         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
12435         (new_poly_bb): Change the type of argument from void* to
12436         gimple_poly_bb_p.
12437         (pbb_set_black_box): Same.
12438         (struct scop): Rename context to param_context, ctx to isl_context.
12439         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
12440         Move declarations closer to assignment.
12441         (find_params_in_bb): Same.
12442         (find_scop_parameters): Same.
12443         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
12444         Global to be used for statement IDs.
12445         (isl_id_for_pbb): Use ssa_name_version_typesize.
12446         (simple_copy_phi_p): Move declarations closer to assignment.
12447         (build_pbb_scattering_polyhedrons): Same.
12448         (build_scop_scattering): Same.
12449         (isl_id_for_ssa_name): Same.
12450         (extract_affine_name): Same.
12451         (extract_affine_int): Same.
12452         (extract_affine): Same.
12453         (set_scop_parameter_dim): Use renamed member.
12454         (build_loop_iteration_domains): Same.
12455         (add_param_constraints): Same.
12456         (build_scop_iteration_domain): Same.
12457         (pdr_add_data_dimensions): Same.
12458         (build_poly_dr): Same.
12459         (build_scop_drs): Move declarations closer to assignment.
12460         (analyze_drs_in_stmts): Same.
12461         (insert_out_of_ssa_copy): Same.
12462         (insert_out_of_ssa_copy_on_edge): Same.
12463         (propagate_expr_outside_region): Same.
12464         (rewrite_phi_out_of_ssa): Same.
12465         (rewrite_degenerate_phi): Same.
12466         (rewrite_reductions_out_of_ssa): Same.
12467         (rewrite_cross_bb_scalar_dependence): Same.
12468         (handle_scalar_deps_crossing_scop_limits): Same.
12469         (rewrite_cross_bb_scalar_deps): Same.
12470         * graphite.c (graphite_transform_loops): Use renamed member.
12472 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
12474         PR c/65345
12475         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12476         create_tmp_var_raw instead of create_tmp_var.
12478 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12480         PR c/65345
12481         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
12482         Use create_tmp_var_raw instead of create_tmp_var.
12484 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
12486         PR target/67849
12487         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
12488         split for upper-bank registers when target does not support
12489         AVX512VL.
12490         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
12491         split when target does not support AVX512VL.
12493 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
12495         PR c/65345
12496         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
12497         Adjust to use create_tmp_var_raw instead of create_tmp_var.
12499 2015-10-06  Nick Clifton  <nickc@redhat.com>
12501         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
12502         multiplication.
12504 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12506         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
12507         (case ${target}): Add znver1.
12508         * config/i386/cpuid.h(bit_CLZERO):  Define.
12509         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
12510         -march=native recognize znver1 processors.
12511         * config/i386/i386-c.c (ix86_target_macros_internal): Add
12512         znver1, clzero def_and_undef.
12513         * config/i386/i386.c (struct processor_costs znver1_cost): New.
12514         (m_znver1): New definition.
12515         (m_AMD_MULTIPLE): Includes m_znver1.
12516         (processor_target_table): Add znver1 entry.
12517         (ix86_target_string) : Add clzero entry.
12518         (static const char *const cpu_names): Add znver1 entry.
12519         (ix86_option_override_internal): Add znver1 instruction sets.
12520         (PTA_CLZERO) :  New definition.
12521         (ix86_option_override_internal): Handle new clzerooption.
12522         (ix86_issue_rate): Add znver1.
12523         (ix86_adjust_cost): Add znver1.
12524         (ia32_multipass_dfa_lookahead): Add znver1.
12525         (has_dispatch): Add znver1.
12526         * config/i386/i386.h (TARGET_znver1): New definition.
12527         (TARGET_CLZERO): Define.
12528         (TARGET_CLZERO_P): Define.
12529         (struct ix86_size_cost): Add TARGET_ZNVER1.
12530         (enum processor_type): Add PROCESSOR_znver1.
12531         * config/i386/i386.md (define_attr "cpu"): Add znver1.
12532         (set_attr znver1_decode): New definitions for znver1.
12533         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
12534         (mclzero): New.
12535         * config/i386/mmx.md (set_attr znver1_decode): New definitions
12536         for znver1.
12537         * config/i386/sse.md (set_attr znver1_decode): Likewise.
12538         * config/i386/x86-tune.def:  Add znver1 tunings.
12539         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
12540         * doc/invoke.texi: Add details about znver1
12542 2015-10-06  Richard Biener  <rguenther@suse.de>
12544         PR tree-optimization/67859
12545         * tree-ssa-pre.c (create_expression_by_pieces): Properly
12546         discard not inserted stmts.
12548 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
12550         * doc/extend.texi (Template Instantiation): Reorder options and
12551         de-emphasize -frepo.
12552         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
12553         example instead of -frepo.
12555 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12557         PR c/65345
12558         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
12559         use create_tmp_var_raw rather than create_tmp_var.
12561 2015-10-06  Richard Biener  <rguenther@suse.de>
12563         * tree-vectorizer.h (vec_info): New base class for...
12564         (_loop_vec_info): ... this and ...
12565         (_bb_vec_info): ... this.
12566         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
12567         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12568         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12569         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
12570         vect_destroy_datarefs): Adjust interface to take a vec_info *
12571         rather than both a loop_vec_info and a bb_vec_info argument.
12572         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
12573         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
12574         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
12575         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
12576         accordingly.
12577         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
12578         (destroy_loop_vec_info, vect_analyze_loop_2,
12579         vect_is_simple_reduction_1, get_initial_def_for_induction,
12580         vect_create_epilog_for_reduction, vectorizable_reduction,
12581         vectorizable_live_operation, vect_transform_loop): Adjust.
12582         * tree-vect-patterns.c (type_conversion_p,
12583         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
12584         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
12585         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
12586         check_bool_pattern, vect_recog_bool_pattern,
12587         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
12588         * tree-vect-slp.c (vect_get_and_check_slp_defs,
12589         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
12590         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
12591         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
12592         (new_bb_vec_info): Initialize base classs.
12593         * tree-vect-stmts.c (record_stmt_cost, process_use,
12594         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
12595         vectorizable_mask_load_store, vectorizable_call,
12596         vectorizable_simd_clone_call, vectorizable_conversion,
12597         vectorizable_assignment, vectorizable_shift,
12598         vectorizable_operation, vectorizable_store,
12599         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
12600         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
12601         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
12603 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12605         PR c/65345
12606         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
12607         create_tmp_var_raw rather than create_tmp_var.
12609 2015-10-05  Marek Polacek  <polacek@redhat.com>
12611         * tree-ssa-loop-im.c
12612         (move_computations_dom_walker::before_dom_children): Don't set
12613         SSA_NAME_ANTI_RANGE_P.
12614         * tree-ssa-phiopt.c (value_replacement): Likewise.
12616 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12617             Sebastian Pop  <s.pop@samsung.com>
12619         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
12621 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12622             Sebastian Pop  <s.pop@samsung.com>
12624         * graphite-poly.c (new_gimple_poly_bb): ... here.
12625         (free_data_refs_aux): ... here.
12626         (free_gimple_poly_bb): ... here.
12627         (remove_gbbs_in_scop): ... here.
12628         (new_scop): Call new_sese.
12629         (free_scop): Call remove_gbbs_in_scop and free_sese.
12630         * graphite-poly.h (base_alias_pair): ... here.
12631         (new_gimple_poly_bb): Declare.
12632         (free_gimple_poly_bb): Declare.
12633         * graphite-scop-detection.c (parameter_index_in_region_1):
12634         (parameter_index_in_region): ... here.
12635         (scan_tree_for_params): ... here.
12636         (find_params_in_bb): ... here.
12637         (find_scop_parameters): ... here.
12638         (build_scops): Call find_scop_parameters.
12639         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
12640         (free_scops): Move...
12641         (single_pred_cond_non_loop_exit): Move...
12642         (sese_dom_walker::before_dom_children): Move...
12643         (sese_dom_walker::after_dom_children): Move...
12644         (build_poly_scop): Move...
12645         * graphite-sese-to-poly.h (base_alias_pair): Move...
12646         * graphite.c (free_scops): ... here.
12648 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12649             Sebastian Pop  <s.pop@samsung.com>
12651         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
12652         (trivially_empty_bb_p): Move...
12653         (same_close_phi_node): Move...
12654         (new_gimple_poly_bb): Move...
12655         (compare_bb_depths): Move...
12656         (graphite_sort_dominated_info): Move...
12657         (remove_duplicate_close_phi): Move...
12658         (make_close_phi_nodes_unique): Move...
12659         (canonicalize_loop_closed_ssa): Move...
12660         (canonicalize_loop_closed_ssa_form): Move...
12661         (loop_ivs_can_be_represented): Move...
12662         (single_pred_cond_non_loop_exit): Move...
12663         (graphite_can_represent_init): Move...
12664         (graphite_can_represent_scev): Move...
12665         (stmt_has_simple_data_refs_p): Move...
12666         (stmt_has_side_effects):  Move...
12667         (graphite_can_represent_stmt): Move...
12668         (scop_detection): ... here.
12669         (sese_dom_walker): ... and here.
12670         (build_scops): Call all moved functions.
12671         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
12672         (all_non_dominated_preds_marked_p): Move...
12673         (build_scop_bbs_1): Move...
12674         (build_scop_bbs): Move...
12675         (set_scop_parameter_dim): Move...
12676         (nb_pbbs_in_loops): Move...
12677         (build_poly_scop): Do not call all the moved functions.
12679 2015-10-05  Martin Jambor  <mjambor@suse.cz>
12680             Jan Hubicka  <hubicka@ucw.cz>
12682         * ipa-cp.c (ipcp_alignment_lattice): New type.
12683         (ipcp_param_lattices): Use the above to represent alignment.
12684         (ipcp_alignment_lattice::print): New function.
12685         (print_all_lattices): Use it to print alignment information.
12686         (ipcp_alignment_lattice::top_p): New function.
12687         (ipcp_alignment_lattice::bottom_p): Likewise.
12688         (ipcp_alignment_lattice::set_to_bottom): Likewise.
12689         (ipcp_alignment_lattice::meet_with_1): Likewise.
12690         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
12691         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
12692         (initialize_node_lattices): Likewise.
12693         (propagate_alignment_accross_jump_function): Work with the new class
12694         for alignment lattices.
12695         (propagate_constants_accross_call): Pass only the alignment lattice to
12696         propagate_alignment_accross_jump_function.
12697         (ipcp_store_alignment_results): Work with the new class for alignment
12698         lattices.
12700 2015-10-05  Marek Polacek  <polacek@redhat.com>
12702         PR tree-optimization/67821
12703         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
12705 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
12707         PR other/65021
12708         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
12709         function to...
12710         (mkoffload_cleanup): ... this.  Adjust all users.
12711         (maybe_unlink): Look at save_temps and verbose flags instead of
12712         debug flag.
12713         (main): Parse "-save-temps" flag.
12714         (generate_target_descr_file, generate_target_offloadend_file)
12715         (generate_host_descr_file, prepare_target_image): Pass it on.
12716         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
12717         (mkoffload_cleanup): New function.
12718         (maybe_unlink): Look at save_temps and verbose flags instead of
12719         debug flag.
12720         (main): Instead of calling utils_cleanup, register atexit handler
12721         for mkoffload_cleanup.
12722         (main): Parse "-save-temps" flag.
12723         (compile_native, main): Pass it on.
12724         * lto-wrapper.c (compile_offload_image): Likewise.
12726 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12728         * gimple.h (gimple_op_ptr): Require a non const gimple *.
12729         (gimple_assign_lhs_ptr): Likewise.
12730         (gimple_assign_rhs1_ptr): Likewise.
12731         (gimple_assign_rhs2_ptr): Likewise.
12732         (gimple_assign_rhs3_ptr): Likewise.
12733         (gimple_call_lhs_ptr): Likewise.
12734         (gimple_call_fn_ptr): Likewise.
12735         (gimple_call_chain_ptr): Likewise.
12736                 (gimple_call_arg_ptr): Likewise.
12737                 (gimple_cond_lhs_ptr): Likewise.
12738         (gimple_cond_rhs_ptr): Likewise.
12739         (gimple_switch_index_ptr): Likewise.
12740         (gimple_return_retval_ptr): Likewise.
12742 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12744         * gimple.h (gimple_asm_input_op_ptr): Remove.
12745         (gimple_asm_output_op_ptr): Likewise.
12747 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12749         * gimple.h (gimple_location_ptr): Remove.
12750         * tree-vrp.c (check_all_array_refs): Adjust.
12752 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12754         * tree-ssa-operands.c (build_uses): store tree * instead of
12755         tree.
12756         (finalize_ssa_uses): Adjust.
12757         (append_use): Likewise.
12758         (verify_ssa_operands): Likewise.
12760 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12762         * real.h (build_real_truncate): Declare.
12763         * tree.c (build_real_truncate): New function.
12764         (strip_float_extensions): Use it.
12765         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12766         (fold_builtin_hypot, fold_builtin_pow): Likewise.
12767         * match.pd: Likewise.
12769 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12770            Jiong Wang  <jiong.wang@arm.com>
12772         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12774 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12776         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12777         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12778         (aarch64_print_operand, aarch64_float_const_representable_p)
12779         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12780         instead of REAL_VALUE_FROM_CONST_DOUBLE.
12781         * config/arc/arc.c (arc_print_operand): Likewise.
12782         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12783         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12784         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12785         Likewise.
12786         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12787         (consttable_16): Likewise.
12788         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12789         * config/avr/avr.c (avr_print_operand): Likewise.
12790         * config/bfin/bfin.md: Likewise (in a define_split).
12791         * config/c6x/c6x.md: Likewise (in a define_split).
12792         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12793         (cr16_print_operand): Likewise.
12794         * config/cris/cris.c (cris_print_operand): Likewise.
12795         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12796         * config/fr30/fr30.c (fr30_print_operand): Likewise.
12797         (fr30_const_double_is_zero): Likewise.
12798         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12799         * config/frv/frv.md: Likewise (in a define_split).
12800         * config/frv/predicates.md (int_2word_operand): Likewise.
12801         * config/h8300/h8300.c (h8300_print_operand): Likewise.
12802         * config/i386/i386.c (standard_80387_constant_p): Likewise.
12803         (ix86_print_operand, ix86_split_to_parts): Likewise.
12804         * config/i386/i386.md: Likewise (in a define_split).
12805         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12806         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12807         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12808         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12809         (print_operand): Likewise.
12810         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12811         * config/mep/mep.md: Likewise (in define_split).
12812         * config/microblaze/microblaze.c (microblaze_const_double_ok)
12813         (print_operand): Likewise.
12814         * config/mips/mips.md (consttable_float): Likewise.
12815         * config/mmix/mmix.c (mmix_intval): Likewise.
12816         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12817         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12818         * config/pa/pa.c (pa_singlemove_string): Likewise.
12819         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12820         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12821         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12822         (output_toc): Likewise.
12823         * config/rs6000/rs6000.md: Likewise (in define_splits).
12824         * config/rx/rx.c (rx_print_operand): Likewise.
12825         * config/s390/s390.c (s390_output_pool_entry): Likewise.
12826         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12827         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12828         (and also in define_splits).
12829         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12830         (fp_high_losum_p): Likewise.
12831         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12832         (*movsf_high): Likewise.
12833         * config/spu/spu.c (const_double_to_hwint): Likewise.
12834         * config/v850/v850.c (const_double_split): Likewise.
12835         * config/vax/vax.c (vax_float_literal): Likewise.
12836         * config/visium/visium.c (visium_expand_copysign): Likewise.
12837         * config/visium/visium.md: Likewise (in define_split).
12838         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12839         * config/xtensa/xtensa.c (print_operand): Likewise.
12840         (xtensa_output_literal): Likewise.
12841         * cprop.c (implicit_set_cond_p): Likewise.
12842         * dwarf2out.c (insert_float): Likewise.
12843         * expmed.c (expand_mult, make_tree): Likewise.
12844         * expr.c (compress_float_constant): Likewise.
12845         * rtlanal.c (split_double): Likewise.
12846         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12847         (simplify_const_unary_operation, simplify_binary_operation_1)
12848         (simplify_const_binary_operation): Likewise.
12849         (simplify_const_relational_operation): Likewise.
12850         * varasm.c (output_constant_pool_2): Likewise.
12852 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12854         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12855         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12856         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12857         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12858         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12859         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12860         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12861         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12862         (ix86_emit_swsqrtsf): Likewise.
12863         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12864         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12865         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12866         * config/pa/pa.c (pa_expand_builtin): Likewise.
12867         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12868         (rs6000_scale_v2df): Likewise.
12869         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12870         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12871         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12872         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12873         (vec_ctul): Likewise.
12874         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12875         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12876         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12877         * cse.c (fold_rtx): Likewise.
12878         * emit-rtl.c (immed_double_const): Likewise (in comments).
12879         (init_emit_once): Likewise.
12880         * expr.c (compress_float_constant, expand_expr_real_1)
12881         (const_vector_from_tree): Likewise.
12882         * optabs.c (expand_float, expand_fix): Likewise.
12883         * reg-stack.c (reg_to_stack): Likewise.
12884         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12885         (simplify_const_unary_operation, simplify_binary_operation_1)
12886         (simplify_const_binary_operation, simplify_relational_operation)
12887         (simplify_immed_subreg): Likewise.
12889 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12891         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12892         * doc/tm.texi: Regenerate.
12893         * real.h (REAL_ARITHMETIC): Delete.
12894         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12895         (ix86_expand_round_sse4): Use real_arithmetic instead of
12896         REAL_ARITHMETIC.
12897         * config/i386/sse.md (round<mode>2): Likewise.
12898         * rtl.h (rtx_to_tree_code): Likewise (in comment).
12899         * explow.c (rtx_to_tree_code): Likewise (in comment).
12900         * match.pd: Likewise.
12901         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12902         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12903         (expand_pow_as_sqrts): Likewise.
12904         * tree-pretty-print.c (dump_generic_node): Remove code that
12905         was conditional on REAL_ARITHMETIC being undefined.
12907 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12909         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12910         * doc/tm.texi: Regenerate.
12911         * real.h (real_less): Declare.
12912         (REAL_VALUES_LESS): Delete.
12913         * real.c (real_less): New function.
12914         (real_compare): Use it.
12915         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12916         of REAL_VALUES_LESS.
12917         * config/microblaze/microblaze.c (microblaze_const_double_ok):
12918         Likewise.
12919         * fold-const.c (fold_convert_const_int_from_real): Likewise.
12920         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12921         (simplify_const_relational_operation): Likewise.
12922         * tree-call-cdce.c (check_pow): Likewise.
12923         (gen_conditions_for_pow_cst_base): Likewise.
12925 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12927         * real.h (REAL_VALUES_IDENTICAL): Delete.
12928         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12929         instead of REAL_VALUES_IDENTICAL.
12930         * fold-const.c (operand_equal_p): Likewise.
12931         * ipa-icf.c (sem_variable::equals): Likewise.
12932         * tree-complex.c (some_nonzerop): Likewise.
12933         (expand_complex_multiplication): Likewise.
12934         * tree.c (simple_cst_equal): Likewise.
12935         * varasm.c (compare_constant): Likewise.
12937 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12939         * real.h (real_equal): Declare.
12940         (REAL_VALUES_EQUAL): Delete.
12941         * real.c (real_equal): New function.
12942         (real_compare): Use it.
12943         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12944         * doc/tm.texi: Regenerate.
12945         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12946         real_equal instead of REAL_VALUES_EQUAL.
12947         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12948         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12949         (fp_const_from_val): Likewise.
12950         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12951         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12952         (floating_exact_log2): Likewise.
12953         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12954         * config/vax/vax.c (vax_float_literal): Likewise.
12955         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12956         * cprop.c (implicit_set_cond_p): Likewise.
12957         * expmed.c (expand_mult): Likewise.
12958         * fold-const.c (const_binop): Likewise.
12959         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12960         (simplify_const_binary_operation): Likewise.
12961         (simplify_const_relational_operation): Likewise.
12962         * tree-call-cdce.c (check_pow): Likewise.
12963         (gen_conditions_for_pow_cst_base): Likewise.
12964         * tree-inline.c (estimate_num_insns): Likewise.
12965         * tree-ssa-dom.c (record_equality): Likewise.
12966         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12967         (gimple_expand_builtin_pow): Likewise.
12968         (pass_optimize_widening_mul::execute): Likewise.
12969         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12970         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12971         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12973 2015-10-05  Richard Biener  <rguenther@suse.de>
12975         PR ipa/67783
12976         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12977         consider loop header PHI defs as IVs.
12979 2015-10-05  Richard Biener  <rguenther@suse.de>
12981         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12982         call handling ...
12983         (create_expression_by_pieces): ... here and build GIMPLE
12984         calls directly.  Use gimple_build API and avoid force_gimple_operand.
12985         (insert_into_preds_of_block): Simplify.
12986         (do_regular_insertion): Add comment.
12988 2015-10-04  Jason Merrill  <jason@redhat.com>
12990         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12992 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
12994         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12995         check for general register.
12996         (ix86_emit_save_regs): Ditto.
12997         (ix86_emit_save_regs_using_mov): Ditto.
12998         (ix86_emit_restore_regs_using_pop): Ditto.
12999         (ix86_emit_restore_regs_using_mov): Ditto.
13001 2015-10-03  Marek Polacek  <polacek@redhat.com>
13003         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
13004         (insn-dfatab.o): Likewise.
13006 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
13008         * config.gcc (xtensa*-*-uclinux*): New configuration.
13009         * config/xtensa/uclinux.h: New file.
13010         * config/xtensa/uclinux.opt: New file.
13012 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
13014         * doc/cpp.texi (Standard Predefined Macros): Document value of
13015         __cplusplus for C++14.
13017 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
13019         * gcc.c (process_command): Use spec_machine rather than
13020         spec_host_machine to build tooldir_prefix2.
13022 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13023             Bernd Schmidt  <bernds@codesourcery.com>
13025         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
13026         (Token, Stmt): Remove structs.
13027         (decls, vars, fns): Remove variables.
13028         (alloc_comment, append_stmt, is_keyword): Remove macros.
13029         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
13030         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
13031         (parse_init, parse_file): Remove functions.
13032         (read_file): Accept a pointer to a length and store into it.
13033         (process): Don't try to parse the input file, just write it out as
13034         a string, but looking for maps.  Also write out the length.
13035         (main): Don't use "-S" to compile PTX code.
13037 2015-10-02  Jeff Law  <law@redhat.com>
13039         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
13040         fixups.
13042 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
13044         PR target/67822
13045         * config/nvptx/mkoffload.c (main): Scan the argument vector for
13046         -fopenmp, and skip generating an offloading image if specified.
13048 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
13050         * system.h (ROUND_UP): New macro definition.
13051         (ROUND_DOWN): Ditto.
13052         * ggc-page.c (ROUND_UP): Remove local macro definition.
13053         (PAGE_ALIGN): Implement using ROUND_UP macro.
13055         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
13056         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
13057         to align values.
13058         (ix86_compute_frame_layout): Ditto.
13059         (ix86_expand_prologue): Ditto.
13060         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
13061         to round down values.
13062         (expand_set_or_movmem_via_rep): Ditto.
13064 2015-10-02  Marek Polacek  <polacek@redhat.com>
13066         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
13068 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
13070         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
13071         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
13072         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
13073         (free_gimple_bb): Renamed free_gimple_poly_bb.
13074         (try_generate_gimple_bb): Hoist loop invariant code.
13075         (analyze_drs_in_stmts): Same.
13076         (build_scop_drs): Call renamed functions.
13077         (new_pbb_from_pbb): Same.
13078         (scop_ivs_can_be_represented): Delete as functionality now moved to
13079         graphite-scop-detection.c
13080         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
13082 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
13084         * graphite-scop-detection.c (stmt_has_side_effects): New function
13085           outlined from stmt_simple_for_scop_p.
13086         (graphite_can_represent_stmt): Same.
13087         (stmt_simple_for_scop_p): Moved code out of this function for better
13088         readability.
13090 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
13092         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
13093         F_AVX512IFMA.
13094         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
13096 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13098         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
13100 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
13102         PR rtl-optimization/67756
13103         * lra-constraints.c (match_reload): Add a new parameter.  Use it
13104         for creating a pseudo with the same value.
13105         (curr_insn_transform): Pass a new argument to match_reload.
13107 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
13109         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
13110         (expand_vec_perm_even_odd_1): Handle V64QImode.
13111         (ix86_expand_vec_perm_const_1): Try expansion with
13112         expand_vec_perm_even_odd_trunc as well.
13113         * config/i386/sse.md (VI124_AVX512F): Rename to ...
13114         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
13115         to V54QI.
13116         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
13117         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
13118         to V32HI and V16SI.
13119         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
13120         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
13121         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
13122         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
13123         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
13124         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
13126 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
13128         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13129         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13131 2015-10-02  Jason Merrill  <jason@redhat.com>
13133         PR c/59218
13134         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13135         (diagnose_tm_1_op): Also diagnose volatile accesses in
13136         transaction_safe function.
13138 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
13140         * system.h (malloc.h): Don't include obsolete header.
13142 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13144         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13145         (TLS_SECTION_ASM_FLAG): Delete.
13147 2015-10-02  Marek Polacek  <polacek@redhat.com>
13149         PR c/64249
13150         * doc/invoke.texi: Document -Wduplicated-cond.
13151         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13152         (insn-dfatab.o): Likewise.
13153         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13154         warning.
13156 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
13158         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13159         sequences.
13161 2015-10-02  Renlin Li  <renlin.li@arm.com>
13163         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13165 2015-10-02  Renlin Li  <renlin.li@arm.com>
13167         PR target/66776
13168         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13170 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13172         PR rtl-optimization/67786
13173         PR rtl-optimization/67787
13174         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13175         it modifies a reg used in the condition calculation.
13177 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
13179         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13180         alternatives for reads from memory and moves from general-purpose
13181         registers.
13182         (*aarch64_combinez_be<mode>): Likewise.
13184 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
13186         PR target/51726
13187         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13188         selectany within this function without need to keep attribute.
13189         (i386_pe_encode_section_info): Remove selectany-code.
13191 2015-10-02  Richard Biener  <rguenther@suse.de>
13193         * tree-ssa-sccvn.c (has_VN_INFO): New function.
13194         (free_scc_vn): Use it.
13195         (visit_use): Remove dead code and refactor to use gassign
13196         and use less indentation.
13198 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13200         PR target/67788
13201         PR target/67789
13202         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13203         (rs6000_cannot_copy_insn_p): New function.
13204         * config/rs6000/rs6000.md (cannot_copy): New attribute.
13205         (load_toc_v4_PIC_1_normal): Set cannot_copy.
13206         (load_toc_v4_PIC_1_476): Ditto.
13208 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
13210         * graphite-scop-detection.c (struct sese_l): New conversion constructor
13211         so that this type can be pushed into a vec.
13212         (class scop_builder): use sese_l to collect scops.
13213         (get_scops): New getter function.
13214         (remove_intersecting_scops): Use sese_l instead of scops_p.
13215         (intersects): Same.
13216         (add_scop): Same.
13217         (subsumes): Same.
13218         (remove_subscops): Same.
13219         (build_scops): Add scops to vec<scops_p> once all the scops have been
13220         detected.
13222 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
13224         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13225         Renamed type from gimple_bb_p to gimple_poly_bb_p.
13226         (translate_isl_ast_node_user): Same.
13227         * graphite-poly.c (new_poly_bb): Same.
13228         * graphite-poly.h (gbb_from_bb): Same.
13229         * sese.h: Same.
13230         * graphite-sese-to-poly.c (new_gimple_bb):
13231         gimple_bb_p -> gimple_poly_bb_p
13232         (build_scop_scattering): Same.
13233         (find_params_in_bb): Same.
13234         (add_conditions_to_domain): Same.
13235         (sese_dom_walker::before_dom_children): Same.
13236         (analyze_drs_in_stmts): Same.
13237         (new_pbb_from_pbb): Same.
13238         (free_data_refs_aux): New pointer to type base_alias_pair.
13239         * graphite-sese-to-poly.h: Same.
13240         * sese.c (if_region_set_false_region): Fixed Indentation.
13241         (move_sese_in_condition): Same.
13243 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13244             Aditya Kumar  <aditya.k7@samsung.com>
13246         PR tree-optimization/66980
13247         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13248         when data reference analysis has failed.
13250 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13251             Aditya Kumar  <aditya.k7@samsung.com>
13253         PR tree-optimization/67754
13254         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13255         scev analysis on the same loop nest as analyze_drs_in_stmts.
13256         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13257         renamed...
13258         (try_generate_gimple_bb): Call outermost_loop_in_sese.
13259         (analyze_drs_in_stmts): Same.
13260         * sese.c (outermost_loop_in_sese): ...here.
13262 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13263             Aditya Kumar  <aditya.k7@samsung.com>
13265         PR tree-optimization/67754
13266         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13267         recursion on the inner loops.
13269 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13271         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13272         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13273         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13274         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13275         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13277 2015-10-01  Marek Polacek  <polacek@redhat.com>
13279         PR c/65345
13280         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13281         create_tmp_var_raw rather than create_tmp_var.
13283 2015-10-01  Marek Polacek  <polacek@redhat.com>
13285         PR tree-optimization/67769
13286         * tree-ssa-phiopt.c (conditional_replacement): Call
13287         reset_flow_sensitive_info_in_bb.
13288         (minmax_replacement): Likewise.
13289         (abs_replacement): Likewise.
13291 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13293         * builtins.c: Don't include gomp-constants.h.
13294         (fold_builtin_1): Don't fold acc_on_device here.
13295         * gimple-fold.c: Include gomp-constants.h.
13296         (gimple_fold_builtin_acc_on_device): New.
13297         (gimple_fold_builtin): Call it.
13299 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13301         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13302         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13304 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
13306         * config/arm/aarch-common-protos.h
13307         (aarch_accumulator_forwarding): New.
13308         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13309         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13310         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13311         * config/arm/cortex-a53.md: Rewrite.
13313 2015-10-01  Richard Biener  <rguenther@suse.de>
13315         * gimple-match.h (mprts_hook): Declare.
13316         * gimple-match.head.c (mprts_hook): Define.
13317         (maybe_push_res_to_seq): Use new hook.
13318         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13319         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13320         (vn_ssa_aux::has_constants): Remove.
13321         * tree-ssa-sccvn.c: Include gimple-match.h.
13322         (VN_INFO_GET): Assert we don't re-use SSA names.
13323         (vn_get_expr_for): Remove.
13324         (expr_has_constants): Likewise.
13325         (stmt_has_constants): Likewise.
13326         (simplify_binary_expression): Likewise.
13327         (simplify_unary_expression): Likewise.
13328         (vn_lookup_simplify_result): New hook.
13329         (visit_copy): Adjust.
13330         (visit_reference_op_call): Likewise.
13331         (visit_phi): Likewise.
13332         (visit_use): Likewise.
13333         (process_scc): Likewise.
13334         (init_scc_vn): Likewise.
13335         (visit_reference_op_load): Likewise.  Use match-and-simplify and
13336         a gimple seq for inserted expressions.
13337         (try_to_simplify): Remove GENERIC stmt combining code.
13338         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13339         * tree-ssa-pre.c (eliminate_insert): Adjust.
13340         (eliminate_dom_walker::before_dom_children): Likewise.
13342 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13344         * doc/invoke.texi (Optimization Options): Add
13345         -freorder-blocks-algorithm=.
13346         (Optimize Options) <-O>: Add -freorder-blocks.
13347         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
13348         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13349         <-freorder-blocks>: Also enabled at levels -O and -Os.
13350         <-freorder-blocks-algorithm=>: Document new option.
13352 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13354         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13355         with flag_reorder_blocks_algorithm.
13356         * common.opt (freorder-blocks-algorithm=): New flag.
13357         (reorder_blocks_algorithm): New enum.
13358         * flag-types.h (reorder_blocks_algorithm): New enum.
13359         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13360         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13362 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13364         * bb-reorder.c: Add intro comment.
13365         (reorder_basic_blocks_software_trace_cache): Print a header to
13366         the dump file.
13367         (edge_order): New function.
13368         (reorder_basic_blocks_simple): New function.
13369         (reorder_basic_blocks): Choose between the STC and the simple
13370         algorithms (always choose the former).
13372 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13374         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13375         function, factored out from ...
13376         (reorder_basic_blocks): ... here.
13378 2015-10-01  Tom de Vries  <tom@codesourcery.com>
13380         * tree-cfg.c (dump_function_to_file): Dump function attributes using
13381         __attribute__(()) string.  Move dumping of function attributes to before
13382         function name.
13384 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
13386         PR target/66870
13387         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13388         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13389         based on gold linker version.
13390         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13391         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13392         * configure, config.in: Regenerate.
13394 2015-10-01  Alan Modra  <amodra@gmail.com>
13396         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13397         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13398         (rs6000_output_mi_thunk): Likewise.
13400 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13402         * config/nvptx/mkoffload.c (process): Change offload data format.
13404 2015-09-30  Jeff Law  <law@redhat.com>
13406         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13407         with constant conditions.
13408         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13409         (remove_ctrl_stmt_and_useless_edges): No longer static.
13410         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13411         (remove_ctrl_stmt_and_useless_edges): Likewise.
13413 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13414             Cesar Philippidis  <cesar@codesourcery.com>
13416         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13417         (TARGET_GOACC_VALIDATE_DIMS): Override.
13418         * target.def (TARGET_GOACC): New target hook prefix.
13419         (validate_dims): New hook.
13420         * targhooks.h (default_goacc_validate_dims): New.
13421         * omp-low.c (oacc_validate_dims): New.
13422         (execute_oacc_device_lower): New.
13423         (default_goacc_validate_dims): New.
13424         (pass_data_oacc_device_lower): New.
13425         (pass_oacc_device_lower): New pass.
13426         (make_pass_oacc_device_lower): New.
13427         * tree-pass.h (make_pass_oacc_device_lower): Declare.
13428         * passes.def (pass_oacc_device_lower): Add it.
13429         * doc/tm.texi: Rebuilt.
13430         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
13431         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
13433 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13435         PR rtl-optimization/67037
13436         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
13438 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
13440         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
13441         * passes.c: Include tree-ssanames.h.
13442         (execute_function_todo): Flush the pending free SSA_NAMEs after
13443         eliminating unreachable basic blocks.
13444         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
13445         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
13446         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
13447         (flush_ssanames_freelist): New function.
13448         (release_ssaname_fn): Put released names on the queue.
13449         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
13450         * tree-ssanames.h (flush_ssanames_freelist): Declare.
13452 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13454         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
13455         (generate_target_descr_file, generate_target_offloadend_file)
13456         (generate_host_descr_file, prepare_target_image): Pass it on.
13457         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
13458         (compile_native, main): Pass it on.
13459         * lto-wrapper.c (compile_offload_image): Likewise.
13461 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13462             Ilya Verbin  <ilya.verbin@intel.com>
13463             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13465         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
13466         (prepare_target_image, main): Refactor argv building to use
13467         obstacks.
13469 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13471         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
13472         * config/spu/spu.c (spu_expand_atomic_op): New function.
13473         * config/spu/spu.md (AINT): New mode iterator.
13474         (ATOMIC): New code iterator.
13475         (atomic_name, atomic_pred): New code predicates.
13476         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
13477         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
13478         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
13479         "atomic_<atomic_name>_fetch<mode>"): Likewise.
13481 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
13483         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
13484         debug insns.
13485         (scalar_chain::convert_reg): Likewise.
13487 2015-09-30  Richard Biener  <rguenther@suse.de>
13489         * builtins.c: Add comment that no new simplifications should
13490         be added here.
13492 2015-09-30  Marek Polacek  <polacek@redhat.com>
13494         PR tree-optimization/67690
13495         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
13496         reset_flow_sensitive_info_in_bb.
13497         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13498         * tree-ssanames.c: Include "gimple-iterator.h".
13499         (reset_flow_sensitive_info_in_bb): New function.
13500         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
13502 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13504         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
13505         variable, replacing it with...
13506         (offload_abi): ... this new variable.  Adjust all users.
13507         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
13509 2015-09-30  Matthias Klose  <doko@ubuntu.com>
13511         * configure.ac: Remove extraneous ;;.
13512         * configure: Regenerate.
13514 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
13516         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
13517         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
13518         predicate, disallow register for operand 2.
13520 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
13522         * graphite-dependences.c (scop_get_dependences): Moved in down
13523         in order to be visible to its caller.
13524         * graphite-poly.h: Removed compute_deps, and extend_schedule.
13526 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
13527             Aditya Kumar  <aditya.k7@samsung.com>
13529         PR tree-optimization/67754
13530         * graphite-optimize-isl.c (optimize_isl): Call
13531         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
13533 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13535         * builtins.c (expand_builtin_acc_on_device): Delete.
13536         (expand_builtin): Don't call it.
13537         (fold_builtin_1): Fold acc_on_device.
13539 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13541         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
13542         (ix86_nsaved_sseregs): Likewise.
13544 2015-09-29  Jeff Law  <law@redhat.com>
13546         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
13547         computation of unused value.
13549         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
13550         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
13551         inline macro expansion.
13553         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
13555         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
13556         (gen_shl_sext): Likewise.
13557         * config/sh/sh.md (divsi3): Likewise.
13558         (imm->ext_dest_operand splitter): Likewise.
13560 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
13561             Aditya Kumar  <aditya.k7@samsung.com>
13563         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
13564         (nb_data_writes_in_bb): Remove.
13565         (split_pbb): Remove.
13566         (split_reduction_stmt): Remove.
13567         (is_reduction_operation_p): Remove.
13568         (phi_contains_arg): Remove.
13569         (follow_ssa_with_commutative_ops): Remove.
13570         (detect_commutative_reduction_arg): Remove.
13571         (detect_commutative_reduction_assign): Remove.
13572         (follow_inital_value_to_phi): Remove.
13573         (edge_initial_value_for_loop_phi): Remove.
13574         (initial_value_for_loop_phi): Remove.
13575         (used_outside_reduction): Remove.
13576         (detect_commutative_reduction): Remove.
13577         (translate_scalar_reduction_to_array_for_stmt): Remove.
13578         (remove_phi): Remove.
13579         (dr_indices_valid_in_loop): Remove.
13580         (close_phi_written_to_memory): Remove.
13581         (translate_scalar_reduction_to_array): Remove.
13582         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
13583         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
13584         (rewrite_commutative_reductions_out_of_ssa): Remove.
13585         (build_poly_scop): Remove call to
13586         rewrite_commutative_reductions_out_of_ssa.
13588 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
13590         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
13591         Add new insn types for vector load and store pairs.
13592         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
13593         types "neon_ldp{,_q}".
13594         * config/arm/cortex-a57.md (neon_load_c): Add insn types
13595         "neon_ldp{,_q}".
13596         (neon_store_complex): Add insn types "neon_stp{,_q}".
13597         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13598         "neon_{ldp,stp}_q".
13600 2015-09-29  Jeff Law  <law@redhat.com>
13602         * config/rx/constraints.md (Int08): Fix undefined left shift
13603         behaviour.
13604         (Sint08, Sint16, Sint24): Likewise.
13605         * config/rx/rx.c (rx_get_stack_layout): Likewise.
13607         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
13608         behaviour.
13610         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
13611         left shift behaviour.
13612         * config/msp430/constraints.md ('L' constraint): Similarly.
13613         ('Ys' constraint): Similarly.
13615 2015-09-29  Richard Biener  <rguenther@suse.de>
13617         PR tree-optimization/67170
13618         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
13619         the translate function pointer parameter to get the
13620         bool whether to disambiguate only by reference.
13621         (walk_non_aliased_vuses): Likewise.
13622         * tree-ssa-alias.c (maybe_skip_until): Adjust.
13623         (get_continuation_for_phi_1): Likewise.
13624         (get_continuation_for_phi): Likewise.
13625         (walk_non_aliased_vuses): Likewise.
13626         * tree-ssa-sccvn.c (const_parms): New bitmap.
13627         (vn_reference_lookup_3): Adjust for interface change.
13628         Disambiguate parameters pointing to readonly memory.
13629         (free_scc_vn): Free const_parms.
13630         (run_scc_vn): Initialize const_parms from a fn spec attribute.
13632 2015-09-29  Richard Biener  <rguenther@suse.de>
13634         PR tree-optimization/67741
13635         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
13636         builtin calls with correct signature.
13638 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
13640         PR target/65105
13641         * config/i386/i386.c: Include dbgcnt.h.
13642         (has_non_address_hard_reg): New.
13643         (convertible_comparison_p): New.
13644         (scalar_to_vector_candidate_p): New.
13645         (remove_non_convertible_regs): New.
13646         (scalar_chain): New.
13647         (scalar_chain::scalar_chain): New.
13648         (scalar_chain::~scalar_chain): New.
13649         (scalar_chain::add_to_queue): New.
13650         (scalar_chain::mark_dual_mode_def): New.
13651         (scalar_chain::analyze_register_chain): New.
13652         (scalar_chain::add_insn): New.
13653         (scalar_chain::build): New.
13654         (scalar_chain::compute_convert_gain): New.
13655         (scalar_chain::replace_with_subreg): New.
13656         (scalar_chain::replace_with_subreg_in_insn): New.
13657         (scalar_chain::emit_conversion_insns): New.
13658         (scalar_chain::make_vector_copies): New.
13659         (scalar_chain::convert_reg): New.
13660         (scalar_chain::convert_op): New.
13661         (scalar_chain::convert_insn): New.
13662         (scalar_chain::convert): New.
13663         (convert_scalars_to_vector): New.
13664         (pass_data_stv): New.
13665         (pass_stv): New.
13666         (make_pass_stv): New.
13667         (ix86_option_override): Created and register stv pass.
13668         (flag_opts): Add -mstv.
13669         (ix86_option_override_internal): Likewise.
13670         * config/i386/i386.md (SWIM1248x): New.
13671         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
13672         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
13673         (*anddi3_doubleword): New.
13674         (*zext<mode>_doubleword): New.
13675         (*zextsi_doubleword): New.
13676         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
13677         (*<code>di3_doubleword): New.
13678         * config/i386/i386.opt (mstv): New.
13679         * dbgcnt.def (stv_conversion): New.
13681 2015-09-29  Tom de Vries  <tom@codesourcery.com>
13683         * tree-cfg.c (dump_function_to_file): Dump function attributes.
13685 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13687         PR target/67716
13688         * config/sh/sh.c (sh_override_options_after_change): New.
13689         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13690         (sh_option_override): Move align_loops, align_jumps and
13691         align_functions handling into sh_override_options_after_change.
13693 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
13695         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
13696         (nvptx_record_offload_symbol): Record function execution geometry.
13697         * config/nvptx/mkoffload.c (process): Include launch geometry in
13698         function data.
13699         * omp-low.c (oacc_launch_pack): New.
13700         (replace_oacc_fn_attrib): New.
13701         (set_oacc_fn_attrib): New.
13702         (get_oacc_fn_attrib): New.
13703         (expand_omp_target): Create keyed varargs for GOACC_parallel call
13704         generation.
13705         * omp-low.h (get_oacc_fn_attrib): Declare.
13706         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
13707         (DEF_FUNCTION_TYPE_VAR_11): Delete.
13708         * tree.h (OMP_CLAUSE_EXPR): New.
13709         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
13711 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13712             Sebastian Pop  <s.pop@samsung.com>
13714         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
13716 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13717             Sebastian Pop  <s.pop@samsung.com>
13719         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
13720         * graphite-scop-detection.c (struct sese_l): New type.
13721         (get_entry_bb): API for getting entry bb of SESE.
13722         (get_exit_bb): API for getting exit bb of SESE.
13723         (class debug_printer): New type.  Simple printer in debug mode.
13724         (trivially_empty_bb_p): New.  Return true when BB is empty or
13725         contains only debug instructions.
13726         (graphite_can_represent_expr): Call scalar_evoution_in_region
13727         instead of analyze_scalar_evolution.  Pass in scop instead of only
13728         the scop entry.
13729         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13730         scop entry.
13731         (stmt_simple_for_scop_p): Same.
13732         (harmful_stmt_in_bb): Same.
13733         (graphite_can_represent_loop): Deleted.
13734         (struct scopdet_info): Deleted.
13735         (scopdet_basic_block_info): Deleted.
13736         (build_scops_1): Deleted.
13737         (bb_in_sd_region): Deleted.
13738         (find_single_entry_edge): Deleted.
13739         (find_single_exit_edge): Deleted.
13740         (create_single_entry_edge): Deleted.
13741         (sd_region_without_exit): Deleted.
13742         (create_single_exit_edge): Deleted.
13743         (unmark_exit_edges): Deleted.
13744         (mark_exit_edges): Deleted.
13745         (create_sese_edges): Deleted.
13746         (build_graphite_scops): Deleted.
13747         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13748         (build_scops): Use the new scop_builder to build scops.
13749         (dot_all_scops_1): Use the new pretty printer.  Print loop father
13750         as well.
13751         (loop_body_is_valid_scop): New.  Return true if loop body is a
13752         valid scop.
13753         (class scop_builder): New.  Builds SCoPs for polyhedral
13754         optimizations.
13755         (scop_builder): New constructor.
13756         (static sese_l invalid_sese): sese_l with invalid edges.
13757         (get_sese): Get an sese (from a loop) if possible, invalid_sese
13758         otherwise.
13759         (get_nearest_dom_with_single_entry): Get nearest dominator of a
13760         basic_block with single entry.  Return NULL if we get to the
13761         beginning of a function.
13762         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13763         a basic_block with single exit.  Return NULL if we get to the
13764         beginning of a function.
13765         (print_sese): Pretty-print SESE.
13766         (merge_sese): Merge two SESEs if possible and return the new SESE.
13767         (build_scop_depth): Start building the SCoP within a loop nest.
13768         (build_scop_breadth): Start building the SCoP at a single loop
13769         depth.  Merge adjacent SESEs if valid.
13770         (can_represent_loop_1): Returns true if Graphite can represent
13771         loop inside SCoP.  Helper for can_represent_loop.
13772         (can_represent_loop): Returns true if Graphite can represent LOOP
13773         and all its nested loops in SCoP.
13774         (loop_is_valid_scop): Returns true if LOOP and all its nests
13775         constitute a valid SCoP.
13776         (region_has_one_loop): Returns true of a region has only one loop.
13777         (add_scop): Add SCoP to the list of valid scops.  Removes an
13778         already existing scop if it intersects with or subsumed by this one.
13779         (harmful_stmt_in_region): Returns true if SCoP has any statment
13780         which cannot be represented by Graphite.
13781         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13782         (remove_subscops): Remove any SCoP from the list of already found
13783         SCoPs, if subsumed by S1.
13784         (intersects): Return true if region bounded by SCoPs S1 and S2
13785         intersect.
13786         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13787         * graphite.c (print_graphite_scop_statistics):
13788         (print_graphite_statistics): Print SCoP info while debugging.
13789         (graphite_initialize): Early exit in case number of loops in a
13790         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13791         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13792         (graphite_finalize):
13793         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13794         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13795         (recompute_all_dominators): Recalculate POST_DOMINATORS.
13796         * tree-cfg.c (print_loops): Print the function name while printing
13797         loops.
13799 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13800             Sebastian Pop  <s.pop@samsung.com>
13802         PR tree-optimization/67700
13803         * graphite-sese-to-poly.c (parameter_index_in_region): Call
13804         invariant_in_sese_p_rec.
13805         (extract_affine): Same.
13806         (rewrite_cross_bb_scalar_deps): Call update_ssa.
13807         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
13808         * sese.h (invariant_in_sese_p_rec): Declare.
13810 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
13812         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13814 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
13816         Revert:
13817         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13818                     Jiong Wang  <jiong.wang@arm.com>
13820         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13821         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13822         (REG_CLASS_NAMES): Likewise.
13823         (REG_CLASS_CONTENTS): Likewise.
13824         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13825         (aarch64_register_move_cost): Likewise.
13826         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13827         possible.
13828         * config/aarch64/constraints.md (Uc0): New constraint.
13830 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
13832         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13834 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
13836         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13837         SECTION_EXCLUDE in XO mapping class.
13839 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
13841         PR target/54236
13842         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13843         and handle ne and eq codes.
13844         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13845         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
13846         CONST_INT_P.  Use reverse_condition.
13847         (sh_split_treg_set_expr): Likewise.
13849 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
13851         * config/arm/types.md (type): Add rotate_imm.
13852         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13853         ROR immediate case.
13854         (*rorsi3_insn_uxtw): Likewise.
13855         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13856         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13857         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13859 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13861         PR rtl-optimization/67481
13862         * ifcvt.c (contains_ccmode_rtx_p): New function.
13863         (insn_valid_noce_process_p): Use it.
13865 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13867         PR rtl-optimization/67456
13868         PR rtl-optimization/67464
13869         PR rtl-optimization/67465
13870         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13871         move in the mode of x.  Handle combination of complex and simple
13872         block pairs as well as the case when one is empty.
13874 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13876         * doc/gimple.texi: Update references to gimple_statement_base.
13877         * gdbhooks.py: Likewise.
13878         * gimple.h: Likewise.
13880 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13882         * config/sparc/driver-sparc.c: map LEON to leon3
13884 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13886         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13887           and make it inverse to change default
13888         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13889           supervisor mode
13890         * doc/invoke.texi: Document change of default
13892 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13894         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13895         true on %f0 for a target without FPU.
13896         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13897         without FPU.
13898         (untyped_return): Do not load %f0 for a target without FPU.
13900 2015-09-28  Andrew Pinski  <apinski@cavium.com>
13902         * config/aarch64/aarch64.md (prefetch):
13903         Change the predicate of operand 0 to register_operand.
13905 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
13907         * config/i386/predicates.md (register_sse4nonimm_operand): New
13908         predicate.
13909         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13910         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13911         Use register_sse4nonimm_operand as operand 0 predicate.
13912         (*vec_extractv8hi_sse2): Remove insn pattern.
13913         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13914         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13916 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
13917             Kaz Kojima  <kkojima@gcc.gnu.org>
13919         PR target/67391
13920         * config/sh/sh-protos.h (sh_lra_p): Declare.
13921         * config/sh/sh.c (sh_lra_p): Make non-static.
13922         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13923         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
13924         Expand into addsi3_scr if operands[2] if needed.
13925         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
13926         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
13927         (addsi3_scr, *addsi3): New insn_and_split patterns.
13929 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
13931         PR rtl-optimization/64164
13932         PR tree-optimization/67312
13933         PR middle-end/67340
13934         PR middle-end/67490
13935         PR bootstrap/67597
13936         * cfgexpand.c (parm_in_stack_slot_p): Remove.
13937         (ssa_default_def_partition): Remove.
13938         (get_rtl_for_parm_ssa_default_def): Remove.
13939         (set_rtl): Check that RTL assignments match expectations.
13940         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
13941         default def location for params and results.  Record SSA names
13942         or types in REG and MEM attrs, respectively.
13943         (set_parm_rtl): New.
13944         (expand_one_ssa_partition): Drop logic that assigned MEMs with
13945         unassigned addresses.
13946         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13947         deferred stack alloc vars.
13948         (expand_used_vars): Skip partitions holding parm default defs.
13949         Move adjust_one_expanded_partition_var loop...
13950         (pass_expand::execute): ... here.  Drop redundant assert.
13951         Adjust comments before the final loop over all ssa names.
13952         Require assigned rtl of parms and results to match exactly.
13953         Reset its attributes to match them, not any other variables in
13954         the same partition.
13955         (expand_debug_expr): Use entry value for PARM's default defs
13956         only iff they have zero nondebug uses.
13957         * cfgexpand.h (parm_in_stack_slot_p): Remove.
13958         (get_rtl_for_parm_ssa_default_def): Remove.
13959         (set_parm_rtl): Declare.
13960         * doc/invoke.texi: Improve wording.
13961         * explow.c (promote_decl_mode): Fix promote_function_mode for
13962         result decls not by reference.
13963         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13964         bypass TYPE_MODE to get the actual vector mode.
13965         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
13966         2015-08-19's changes as follows.  Drop include of
13967         basic-block.h and df.h.
13968         (rtl_for_parm): Remove.
13969         (maybe_reset_rtl_for_parm): Remove.
13970         (parm_in_unassigned_mem_p): Remove.
13971         (use_register_for_decl): Add logic for RESULT_DECLs matching
13972         assign_parms' behavior.
13973         (split_complex_args): Revert.
13974         (assign_parms_augmented_arg_list): Revert.  Add comment
13975         referencing the logic above.
13976         (assign_parm_adjust_stack_rtl): Revert.
13977         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
13978         of SET_DECL_RTL.  Set up a REG if the parm demands so.
13979         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
13980         calls into a single set_parm_rtl.  Set up a temporary RTL
13981         temporarily for expand_assignment.
13982         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
13983         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
13984         (assign_bounds): Revert.
13985         (assign_parms): Revert.  Use set_parm_rtl.
13986         (allocate_struct_function): Relayout result and parms of
13987         non-abstruct functions.
13988         (expand_function_start): Revert.  Use set_parm_rtl.  If the
13989         result is not a hard reg, create a pseudo from the promoted
13990         mode of the default def.  Promote static chain mode.
13991         * tree-outof-ssa.c (remove_ssa_form): Drop unused
13992         partition_has_default_def.  Set up
13993         partitions_for_parm_default_defs.
13994         (finish_out_of_ssa): Remove partition_has_default_def.
13995         Release partitions_for_parm_default_defs.
13996         * tree-outof-ssa.h (struct ssaexpand): Remove
13997         partition_has_default_def.  Add
13998         partitions_for_parm_default_defs.
13999         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
14000         stor-layout.h.
14001         (build_ssa_conflict_graph): Fix conflict-detection of default
14002         defs of even unused default defs of params and results.
14003         (for_all_parms): New.
14004         (create_default_def): New.
14005         (register_default_def): New.
14006         (coalesce_with_default): New.
14007         (create_outofssa_var_map): Create default defs for all parms
14008         and results, and register their partitions.  Add GIMPLE_RETURN
14009         operands as coalesce candidates with results.  Add default
14010         defs of each parm or result as coalesce candidates with its
14011         other defs.  Mark each result def, and each default def of
14012         parms, as used_in_copy.
14013         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
14014         with the ssa names, even anonymous ones.  Drop
14015         parm_in_stack_slot_p calls.  Require same signedness and
14016         alignment.
14017         (coalesce_ssa_name): Add coalesce candidates for all defs of
14018         each parm and result, even unused ones.
14019         (parm_default_def_partition_arg): New type.
14020         (set_parm_default_def_partition): New.
14021         (get_parm_default_def_partitions): New.
14022         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
14023         * tree-ssa-live.c (partition_view_init): Regard unused defs of
14024         parms and results as used.
14025         (verify_live_on_entry): Don't error out just because they're
14026         not live.
14028 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
14030         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14031         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
14032         (output_fde): Don't output length for debug_frame on AIX.
14033         (output_call_frame_info): Don't output length for debug_frame on AIX.
14034         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
14035         HAVE_XCOFF_DWARF_EXTRAS.
14036         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
14037         HAVE_XCOFF_DWARF_EXTRAS.
14038         (output_compilation_unit_header): Don't output length on AIX.
14039         (output_pubnames): Don't output length on AIX.
14040         (output_aranges): Delete argument. Compute length locally. Don't
14041         output length on AIX.
14042         (output_line_info): Don't output length on AIX.
14043         (dwarf2out_finish): Don't compute aranges_length.
14044         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14045         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
14046         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
14047         symbol decoration for AIX.
14048         (rs6000_xcoff_debug_unwind_info): New.
14049         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
14050         for SECTION_DEBUG.
14051         (rs6000_xcoff_declare_function_name): Emit different
14052         .function pseudo-op when DWARF2_DEBUG. Don't call
14053         xcoffout_declare_function for DWARF2_DEBUG.
14054         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
14055         Redefine.
14056         * config/rs6000/aix71.h: New.
14057         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
14058         locations support.
14059         * configure: Regenerate.
14060         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
14061         DWARF support.
14063 2015-09-26  Jeff Law  <law@redhat.com>
14065         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
14066         behaviour.
14067         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
14068         behaviour.
14070         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
14071         behaviour
14073         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
14074         undefined behaviour.
14076         * config/cris/cris.md (asrandb): Fix left shift undefined
14077         behaviour.
14078         (asrandw): Likewise.
14080 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
14082         PR target/61578
14083         * lra-constarints.c (match_reload): Check presence of the input pseudo
14084         in the output operand.
14086 2015-09-25  Tobias Burnus  <burnus@net-b.de>
14088         * doc/invoke.texi (-fsanitize): Minor wording tweak.
14090 2015-09-25  Tobias Burnus  <burnus@net-b.de>
14092         * doc/invoke.texi (-fsanitize): Update URLs.
14094 2015-09-25  Teresa Johnson  <tejohnson@google.com>
14096         * opts.c (finish_options): Unset -freorder-blocks-and-partition
14097         if not using profile.
14099 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14101         PR pretty-print/67567
14102         * pretty-print.c (pp_string): Add gcc_checking_assert.
14103         * pretty-print.h (output_buffer_append_r): Likewise.
14105 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
14107         PR target/67675
14108         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
14109         addr2 individually.  Don't emit logical or insn if one is known to
14110         be aligned approriately.
14111         (sh_expand_cmpnstr): Likewise.
14113 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
14115         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
14116         __builtin_aarch64_fp[sc]r arguments into a register.
14118 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
14120         * config.gcc (x86_archs): Replace lakemount with lakemont.
14121         (with_cpu): Likewise.
14122         (with_arch): Likewise.
14123         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14124         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
14125         __tune_lakemount__ with __tune_lakemont__.
14126         * config/i386/i386.c (lakemount_cost): Renamed to ...
14127         (lakemont_cost): This.
14128         (m_LAKEMOUNT): Renamed to ...
14129         (m_LAKEMONT): This.
14130         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14131         (processor_target_table): Replace "lakemount" with "lakemont".
14132         (processor_alias_table): Likewise.
14133         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14134         PROCESSOR_LAKEMONT.
14135         (ix86_adjust_cost): Likewise.
14136         (ia32_multipass_dfa_lookahead): Likewise.
14137         * config/i386/i386.h (processor_type): Likewise.
14138         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14139         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
14140         Lakemount with Lakemont.
14142 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14144         * config.gcc (x86_archs): Replace iamcu with lakemount.
14145         (with_cpu): Likewise.
14146         (with_arch): Likewise.
14147         * doc/invoke.texi: Likewise.
14148         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14149         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
14150         __tune_iamcu__ with __tune_lakemount__.
14151         * config/i386/i386.c (iamcu_cost): Renamed to ...
14152         (lakemount_cost): This.
14153         (m_IAMCU): Renamed to ...
14154         (m_LAKEMOUNT): This.
14155         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14156         (processor_target_table): Replace "iamcu" with "lakemount".
14157         (processor_alias_table): Likewise.
14158         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14159         PROCESSOR_LAKEMOUNT.
14160         (ix86_adjust_cost): Likewise.
14161         (ia32_multipass_dfa_lookahead): Likewise.
14162         * config/i386/i386.h (processor_type): Likewise.
14163         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14165 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
14167         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14168         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14169         Declare.
14170         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14171         (pa_expand_compare_and_swap_loop): New.
14172         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14173         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14174         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14175         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14176         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14177         Revise.
14179 2015-09-24  Michael Collison  <michael.collison@linaro.org>
14181         PR other/57195
14182         * read-md.c (read_name): Allow mode iterators inside angle
14183         brackets in rtl expressions.
14185 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
14187         PR target/61578
14188         * ira-color.c (update_allocno_cost): Add parameter.
14189         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
14190         parameter.
14192 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14194         PR driver/67640
14195         * opts-common.c (prune_options): Discard all -fdiagnostics-color
14196         but the last one, which is moved to the front to be processed
14197         first.
14198         * opts.c (enable_warning_as_error): Reject options that do not
14199         control warnings.
14201 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
14203         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14205 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
14207         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14208         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14209         (aarch64_cannot_force_const_mem): Likewise.
14210         (aarch64_classify_address): Likewise.
14211         (aarch64_classify_symbolic_expression): Likewise.
14212         (aarch64_print_operand): Likewise.
14213         (aarch64_classify_symbol): Likewise.
14214         (aarch64_mov_operand_p): Likewise.
14215         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14216         (aarch64_mov_operand): Likewise.
14218 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
14220         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14221         for info->spe_gp_size.
14223 2015-09-24  Richard Biener  <rguenther@suse.de>
14225         PR lto/67699
14226         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14227         abstract origins.
14229 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
14231         * tree-object-size.c (plus_stmt_object_size)
14232         (cond_expr_object_size): Change the formal parameters from gimple
14233         to gimple *.
14234         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14235         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14236         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14238 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14240         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14241         Check for ld -type pie on Solaris 11.x and 12.
14242         * configure: Regenerate.
14243         * config.in: Regenerate.
14245         * gcc.c (LD_PIE_SPEC): Allow redefinition.
14247         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14248         (STARTFILE_SPEC): Use it.
14249         (ENDFILE_CRTEND_SPEC): Define.
14250         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14251         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14252         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14253         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14254         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14255         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14256         (ENDFILE_ARCH_SPEC): Define.
14257         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14259 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14261         * configure.ac (gcc_cv_solaris_crts): New test.
14262         * configure. Regenerate.
14263         * config.in: Regenerate.
14264         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14265         HAVE_SOLARIS_CRTS variant.
14267 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14269         * tree-inline.h (count_insns_seq): Delete prototype.
14270         (estimate_num_insns_seq): Define prototype.
14271         * tree-inline.c (count_insns_seq): Delete.
14272         (estimate_num_insns_seq): Remove static qualifier.
14273         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14274         with estimate_num_insns_seq.
14276 2015-09-24  Richard Biener  <rguenther@suse.de>
14278         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14279         members.
14280         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14281         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
14282         offset.
14283         (ao_ref_init_from_vn_reference): Record clique and base in the
14284         built base.
14285         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14287 2015-09-24  Richard Biener  <rguenther@suse.de>
14289         PR tree-optimization/48885
14290         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14291         as not including any restrict tags from other pointers.
14293 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14295         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14296         character when appending to offload_targets.
14298         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14299         offload targets by commas, not colons.
14300         * config.in: Regenerate.
14301         * configure: Likewise.
14302         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14303         instead of setting up the default offload targets here...
14304         (process_command): ..., do it here.
14305         libgomp/
14306         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14307         targets are separated by commas.
14308         * config.h.in: Regenerate.
14310 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14311             Nathan Sidwell  <nathan@codesourcery.com>
14313         * omp-low.h (omp_reduction_init_op): Declare.
14314         * omp-low.c (omp_reduction_init_op): New, broken out of ...
14315         (omp_reduction_init): ... here.  Call it.
14316         * tree-parloops.c (initialize_reductions): Use
14317         omp_reduction_init_op.
14319 2015-09-23   Richard Biener  <rguenther@suse.de>
14321         PR middle-end/67662
14322         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14323         undefined overflow unless they will cancel out.
14325 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14327         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14328         insn emit.
14330 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14332         PR c/49655
14333         * opts.h (write_langs): Declare.
14334         * opts-global.c (write_langs): Make it extern.
14336 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
14338         PR target/67391
14339         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14340         overlapping regs when matching the pattern.
14342 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14344         * config/aarch64/aarch64-simd.md
14345         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14346         (aarch64_float_truncate_hi_v4sf_le): New.
14347         (aarch64_float_truncate_hi_v4sf_be): Likewise.
14349 2015-09-23  Richard Biener  <rguenther@suse.de>
14351         * tree-ssa-structalias.c (intra_create_variable_infos): Build
14352         representatives for all restrict qualified pointer destinations.
14354 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14356         * config/i386/i386.md (define_code_attr mshift): New.
14357         (define_mode_iterator SWI1248_AVX512BW): Rename ...
14358         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14359         only.
14360         (define_insn "*k<logic><mode>"): Use new iterator name.
14361         (define_insn "*<mshift><mode>3"): New.
14363 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
14365         PR middle-end/67649
14366         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14367         mark the block as accessible.
14369 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
14371         * function.c (thread_prologue_and_epilogue_insns): Delete
14372         orig_entry_edge argument to try_shrink_wrapping.
14373         * shrink-wrap.c (can_get_prologue): New function.
14374         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14375         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
14376         can_get_prologue where needed.  Remove code that finds a single
14377         edge for the prologue.  Remove code that tests if any reg clobbered
14378         by the prologue is live on the prologue edge.  Remove code that finds
14379         the new prologue edge after duplicating blocks.  Make a new prologue
14380         block and edge.
14381         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14383 2015-09-22  Jeff Law  <law@redhat.com>
14385         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14386         behavior.
14388 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
14390         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
14391         -Wtemplates, -Wnamespaces): Document.
14393 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14395         PR tree-optimization/67671
14396         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14397         pointer references as restrict.
14399 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14401         * config/nios2/nios2.c (nios2_legitimize_address): When handling
14402         'reg + reloc' cases, allow first operand to be non-REG, and use
14403         force_reg() to enforce address pattern.
14405 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
14407         PR target/67480
14408         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14409         (define_mode_iterator VI12_AVX_AVX512F): New.
14410         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14411         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14412         (define_insn "*<code><mode>3"): ... Into new pattern using
14413         VI12_AVX_AVX512F iterators without masking.
14415 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14417         * config.gcc: Support "skylake-avx512".
14418         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14419         PROCESSOR_SKYLAKE_AVX512.
14420         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14421         (processor_target_table): Add "skylake-avx512".
14422         (PTA_SKYLAKE_AVX512): Define.
14423         (ix86_option_override_internal): Add "skylake_avx512".
14424         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
14425         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
14426         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
14427         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
14428         * doc/invoke.texi (skylake-avx512): New.
14430 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14432         * config/i386/i386.md (define_insn "kunpckhi"): Fix
14433         operand in pattern.
14434         (define_insn "kunpcksi"): Ditto.
14435         (define_insn "kunpckdi"): Ditto.
14437 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14439         * config/i386/i386.md (define_split not/xor SWI1248x): Use
14440         iterator instead of fixed modes.
14442 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14444         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14445         Adjust declaration.
14446         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
14447         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
14448         out_result.  Update to support update-fetch operations.
14449         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
14450         Adjust for change to aarch64_gen_atomic_ldop.
14451         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
14452         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
14453         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
14454         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
14455         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
14457 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14459         * config/aarch64/aarch64-protos.h
14460         (aarch64_atomic_ldop_supported_p): Declare.
14461         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
14462         (enum aarch64_atomic_load_op_code): New.
14463         (aarch64_emit_atomic_load_op): New.
14464         (aarch64_gen_atomic_ldop): Update to support load-operate
14465         patterns.
14466         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
14467         to an expander.
14468         (aarch64_atomic_<atomic_optab><mode>): New.
14469         (aarch64_atomic_<atomic_optab><mode>_lse): New.
14470         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
14471         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
14472         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
14474 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14476         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
14477         (UNSPECV_ATOMIC_LDOP_OR): New.
14478         (UNSPECV_ATOMIC_LDOP_BIC): New.
14479         (UNSPECV_ATOMIC_LDOP_XOR): New.
14480         (UNSPECV_ATOMIC_LDOP_PLUS): New.
14481         (ATOMIC_LDOP): New.
14482         (atomic_ldop): New.
14483         (aarch64_atomic_load<atomic_ldop><mode>): New.
14485 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14487         * config/aarch64/aarch64.md
14488         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
14489         pattern.
14491 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14493         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14494         Declare.
14495         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
14496         (aarch64_gen_atomic_ldop): New.
14497         (aarch64_split_atomic_op): Fix whitespace and add a comment.
14498         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
14499         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
14500         (atomic_exchange<mode>): Replace with an expander.
14501         (aarch64_atomic_exchange<mode>): New.
14502         (aarch64_atomic_exchange<mode>_lse): New.
14503         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
14504         (aarch64_atomic_swp<mode>): New.
14506 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14508         * tree-inline.c (expand_call_inline): Use inform for extra note.
14509         Do not give a note with UNKNOWN_LOCATION.
14510         Replace input_location with gimple_location (stmt).
14511         Use true/false instead of TRUE/FALSE.
14513 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14515         PR tree-optimization/67666
14516         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
14517         with single field non-conservative.
14519 2015-09-21  David S. Miller  <davem@davemloft.net>
14521         PR/67622
14522         Revert:
14523         2015-09-11  David S. Miller  <davem@davemloft.net>
14525         * config/sparc/constraints.md: Make "U" constraint a real register
14526         constraint.
14527         * config/sparc/sparc.c (TARGET_LRA_P): Define.
14528         (D_MODES, DF_MODES): Add missing cast.
14529         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14530         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14531         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14532         cost to 8.
14533         * config/sparc/sparc.h (PROMOTE_MODE): Define.
14534         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14535         provide these insn when flag_pic.
14537         2015-09-17  David S. Miller  <davem@davemloft.net>
14539         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
14540         Declare.
14541         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
14542         function.
14543         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14544         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14545         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14546         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14547         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14548         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14549         provide when flag_pic.
14551 2015-09-21  Jeff Law  <law@redhat.com>
14553         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
14554         behavior.
14556 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14558         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
14560 2015-09-21  Richard Biener  <rguenther@suse.de>
14562         * passes.c (rest_of_decl_compilation): Do not call
14563         dwarf2out_early_global_decl for aliases.
14565 2015-09-21  Richard Biener  <rguenther@suse.de>
14567         PR debug/67664
14568         * dwarf2out.c (add_location_or_const_value_attribute): Remove
14569         attribute parameter.  Early exit if either DW_AT_const_value
14570         or DW_AT_location are present already.
14571         (gen_variable_die): Adjust caller.
14572         (dwarf2out_late_global_decl): Likewise.
14574 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14576         PR target/67657
14577         * config/sh/sh.c (sh_remove_overlapping_post_inc,
14578         sh_peephole_emit_move_insn): Add new functions.
14579         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
14580         sh_peephole_emit_move_insn): Declere them.
14581         * config/sh/sh.md: Use them in various peephole2 patterns.
14583 2015-09-21  Richard Biener  <rguenther@suse.de>
14585         PR middle-end/67651
14586         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
14587         address with -fno-delete-null-pointer-checks.
14589 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
14591         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
14592         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
14593         (reduc_uplus_v16qi): Remove.
14595         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
14596         (reduc_<VEC_reduc_name>_v2df): Remove.
14597         (reduc_<VEC_reduc_name>_v4sf): Remove.
14598         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
14600         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
14601         gen_ function by removing * prefix.
14602         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
14604 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14606         PR middle-end/60832
14607         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14608         Print i_bound without converting it to a tree.
14610 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
14612         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
14613         operands[4] operands[5] swap with std::swap, removed tmp variable.
14614         (arm_evpc_neon_vzip): Replaced in0/in1 and
14615         out0/out1 swaps with std::swap, removed x variable.
14616         (arm_evpc_neon_vtrn): Replaced in0/int1 and
14617         out0/out1 swaos with std::swap, removed x variable.
14618         (arm_expand_vec_perm_const_1): Replaced
14619         d->op0/d->op1 swap with std::swap, removed x variable.
14620         (arm_evpc_neon_vuzp): Replaced in0/in1 and
14621         out0/out1 swaps with std::swap, removed x variable.
14623 2015-09-21  Jonathan Yong  <10walls@gmail.com>
14625         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14626         sysroot/usr/lib/32api for additional win32 libraries,
14627         fixes failing Cygwin bootstrapping.
14629 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14631         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
14633 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14635         PR target/67126
14636         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
14637         (*mov_t_msb_neg): Rewrite negc pattern.
14639 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14641         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
14642         immediate generation code.
14644 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14646         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
14647         redundant immediate generation code.
14649 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14651         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
14652         (AARCH64_NUM_BITMASKS): Remove.
14653         (aarch64_bitmasks_cmp): Remove.
14654         (aarch64_build_bitmask_table): Remove.
14656 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14658         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
14659         slow immediate matching loops with a faster algorithm.
14661 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14663         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
14664         faster algorithm.
14666 2015-09-20  Jeff Law  <law@redhat.com>
14668         PR tree-optimization/47679
14669         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
14670         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
14671         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
14672         (thread_through_normal_block): Use record_temporary_equivalences.
14674 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
14676         * coretypes.h (gimple): Change typedef to be a forward declaration.
14677         * gimple.h (gimple_statement_base): rename to gimple.
14678         * (all functions and types using gimple): Adjust.
14679         * *.[ch]: Likewise.
14681 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
14682             David Edelsohn  <dje.gcc@gmail.com>
14684         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
14685         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14686         (EH_FRAME_THROUGH_COLLECT2): Define.
14687         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14688         (ASM_OUTPUT_DWARF_PCREL): Define.
14689         (ASM_OUTPUT_DWARF_DATAREL): Define.
14691 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
14693         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
14694         of TARGET_ELF32.
14696 2015-09-18  Jeff Law  <law@redhat.com>
14698         PR tree-optimization/47679
14699         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
14700         it here ...
14701         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
14702         object.  Update constructor.
14703         (pass_dominator::execute):  Corresponding chagnes to declaration
14704         and initialization of avail_exprs_stack.  Update constructor call
14705         for dom_opt_dom_walker object.
14706         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
14707         it down to children as needed.
14708         (record_equivalences_from_incoming_edge): Likewise.
14709         (eliminate_redundant_computations): Likewise.
14710         (record_equivalences_from_stmt): Likewise.
14711         (simplify_stmt_for_jump_threading): Likewise.
14712         (record_temporary_equivalences): Likewise.
14713         (optimize_stmt): Likewise.
14714         (dom_opt_dom_walker::thread_across_edge): Update access to
14715         avail_exprs_stack object and pass it to children as needed.
14716         (dom_opt_dom_walker::before_dom_children): Similarly.
14717         (dom_opt_dom_walker::after_dom_children): Similarly.
14718         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
14719         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
14720         Add avail_expr_stack argument.  Pass it to children as needed.
14721         (dummy_simplify): Likewise.
14722         (simplify_control_stmt_condition): Likewise.
14723         (thread_around_empty_blocks): Likewise.
14724         (thread_through_normal_block): Likewise.
14725         (thread_across_edge): Likewise.
14726         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14727         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14729         PR tree-optimization/47679
14730         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
14731         it here ...
14732         (dom_opt_dom_walker): New private member holding the const_and_copies
14733         object.  Update constructor.
14734         (pass_dominator::execute): Corresponding changes to declaration
14735         and initialization of const_and_copies.  Update constructor call
14736         for the dom_opt_dom_walker object.
14737         (record_temporary_equivalences): Accept const_and_copies argument
14738         pass it down to children as needed.
14739         (record_equality): Likewise.
14740         (record_equivalences_from_incoming_edge): Likewise.
14741         (cprop_into_successor_phis, optimize_stmt): Likewise.
14742         (eliminate_redundant_computations): Likewise.
14743         (dom_opt_dom_walker::thread_across_edge): Update access to
14744         const_and_copies object and pass it to children as needed.
14745         (dom_opt_dom_walker::before_dom_children): Similarly.
14746         (dom_opt_dom_walker::after_dom_children): Similarly.
14748         PR tree-optimization/47679
14749         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
14750         it into the avail_exprs_stack class.
14751         (pass_dominator::execute): Corresponding changes to declaration
14752         and initialization of avail_exprs.  Pass avail_exprs to
14753         dump_dominator_optimization_stats.
14754         (record_cond): Extract avail_exprs from avail_exprs_stack.
14755         (lookup_avail_expr): Similarly.
14756         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
14757         position in file.
14758         (dump_dominator_optimization_stats): Make static and prototype.
14759         Add argument for the hash table to dump.
14760         (debug_dominator_optimization_stats): Remove.
14761         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14762         prototype.
14763         (debug_dominator_optimization_stats): Similarly.
14764         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14765         "void" in prototype for pop_to_marker method.  Add accessor method
14766         for the underlying avail_exprs table.
14768         * tree-ssa-threadedge.c: Remove trailing whitespace.
14770 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
14772         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14773         unsigned.
14774         (pa_ldil_cint_p): Likewise.
14775         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14776         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14777         Update callers.
14778         * config/pa/pa.md: Likewise.
14780 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
14782         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14783         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14784         (diagnostic_show_locus): Likewise.
14785         (diagnostic_print_caret_line): Likewise.
14786         * diagnostic-show-locus.c: New file.
14788 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
14790         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14791         "back" parameter. Declare label in #if block.
14793 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
14795         PR middle-end/67619
14796         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14797         the address to a register.
14799 2015-09-18  Jeff Law  <law@redhat.com>
14801         PR tree-optimization/47679
14802         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14803         * tree-ssa-dom.c: Remove unnecessary header includes.
14804         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14805         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14806         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14807         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14808         (pass_phi_only_cprop::execute): Likewise.
14809         (make_pass_phi_only_cprop): Likewise.
14810         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
14811         uses of file scoped statics by passing the required objects
14812         as parameters wherever needed.
14814 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
14815             David Edelsohn  <dje.gcc@gmail.com>
14817         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14818         EH_FRAME_THROUGH_COLLECT2.
14819         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14820         DW_EH_PE_datarel.
14821         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14822         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
14823         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14824         * except.c (switch_to_exception_section): Use a read-only section
14825         even if EH_FRAME_SECTION_NAME is undefined.
14826         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14827         * collect2.c (write_c_file_stat): Provide dbase on AIX.
14828         (scan_prog_file): Don't export __dso_handle nor
14829         __gcc_unwind_dbase.
14830         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14831         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14832         (ASM_OUTPUT_DWARF_PCREL): Define.
14833         (ASM_OUTPUT_DWARF_DATAREL): Define.
14834         (EH_FRAME_THROUGH_COLLECT2): Define.
14835         (EH_FRAME_IN_DATA_SECTION): Delete.
14836         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14837         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14838         Declare.
14839         (rs6000_asm_output_dwarf_datarel): Declare.
14840         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14841         (rs6000_aix_asm_output_dwarf_datarel): New.
14842         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14843         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14844         (EH_FRAME_THROUGH_COLLECT2): Define.
14845         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14846         (EH_FRAME_THROUGH_COLLECT2): Define.
14847         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14848         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14849         (EH_FRAME_THROUGH_COLLECT2): New.
14850         (ASM_OUTPUT_DWARF_DATAREL): New.
14851         * doc/tm.texi: Regenerate.
14853 2015-09-18  Richard Biener  <rguenther@suse.de>
14855         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14856         we're in early phase.
14857         (schedule_generic_params_dies_gen): Likewise.
14858         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14859         work as possible, retaining unhandled cases.
14860         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14861         clear out generic_type_instances at the end.
14862         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14863         (dwarf2out_early_finish): ... here.  Do most of
14864         gen_remaining_tmpl_value_param_die_attribute here.
14866 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
14868         PR tree-optimization/67283
14869         * tree-sra.c (type_consists_of_records_p): Rename to...
14870         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14871         (completely_scalarize_record): Rename to...
14872         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14873         (scalarize_elem): New.
14874         (analyze_all_variable_accesses): Follow renamings.
14876 2015-09-18  Richard Biener  <rguenther@suse.de>
14878         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14879         in early-dwarf.
14881 2015-09-18  Richard Biener  <rguenther@suse.de>
14883         PR tree-optimization/66142
14884         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14885         treat MEM[&x] and x the same.
14886         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14887         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14888         when we simplified sth.
14889         (vn_reference_maybe_forwprop_address): Likewise.
14890         (valueize_refs_1): When we simplified through
14891         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14892         set valueized_anything to true.
14893         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14894         one ref kills the other instead of just a offset-based test.
14895         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14896         for the operand_equal_p test to compare bases and also compare
14897         sizes.
14899 2015-09-17  Christian Bruel  <christian.bruel@st.com>
14901         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14903 2015-09-17  Richard Henderson  <rth@redhat.com>
14905         PR libstdc++/65913
14906         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14907         pointers that encode the alignment of the object.
14909 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14911         PR rtl-optimization/66790
14912         * df-problems.c (LIVE): Amend documentation.
14914 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14916         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14917         and optabs-tree.o.
14918         (GTFILES): Replace optabs.c with optabs-libfunc.c.
14919         * genopinit.c (main): Add an include guard to insn-opinit.h.
14920         Protect the rtx_code parts with NUM_RTX_CODE.
14921         * optabs.h: Split parts out to...
14922         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14923         * optabs.c: Split parts out to...
14924         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14925         * cilk-common.c: Include optabs-query.h rather than optabs.h.
14926         * fold-const.c: Likewise.
14927         * target-globals.c: Likewise.
14928         * tree-if-conv.c: Likewise.
14929         * tree-ssa-forwprop.c: Likewise.
14930         * tree-ssa-loop-prefetch.c: Likewise.
14931         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14932         Remove unncessary include files.
14933         * tree-ssa-phiopt.c: Likewise.
14934         * tree-ssa-reassoc.c: Likewise.
14935         * tree-switch-conversion.c: Likewise.
14936         * tree-vect-data-refs.c: Likewise.
14937         * tree-vect-generic.c: Likewise.
14938         * tree-vect-loop.c: Likewise.
14939         * tree-vect-patterns.c: Likewise.
14940         * tree-vect-slp.c: Likewise.
14941         * tree-vect-stmts.c: Likewise.
14942         * tree-vrp.c: Likewise.
14943         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14944         rather than optabs.h.
14945         * expr.c: Include optabs-tree.h.
14946         * function.c: Likewise.
14948 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14950         PR middle-end/65958
14951         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14952         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14953         * config/arm/arm.c: Include common/common-target.h.
14954         (use_return_insn): Return 0 if the static chain register was saved
14955         above a non-APCS frame.
14956         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14957         (struct scratch_reg): New.
14958         (get_scratch_register_on_entry): New function.
14959         (release_scratch_register_on_entry): Likewise.
14960         (arm_emit_probe_stack_range): Likewise.
14961         (output_probe_stack_range): Likewise.
14962         (arm_expand_prologue): Factor out code dealing with the IP register
14963         for nested function and adjust it for stack checking.
14964         Invoke arm_emit_probe_stack_range if static builtin stack checking
14965         is enabled.
14966         (thumb1_expand_prologue): Sorry out if static builtin stack checking
14967         is enabled.
14968         (arm_expand_epilogue): Add the saved static chain register, if any, to
14969         the amount of pre-pushed registers to pop.
14970         (arm_frame_pointer_required): Return true if static stack checking is
14971         enabled and we want to catch the exception with the EABI unwinder.
14972         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14973         (UNSPEC_PROBE_STACK_RANGE): Likewise.
14974         * config/arm/arm.md (probe_stack): New insn.
14975         (probe_stack_range): Likewise.
14977 2015-09-17  Richard Biener  <rguenther@suse.de>
14979         * genmatch.c (parser::parse_expr): Improve error message
14980         for mis-placed flags.
14982 2015-09-17  Richard Biener  <rguenther@suse.de>
14984         * passes.c (rest_of_decl_compilation): Always call early_global_decl
14985         debug hook when we created a varpool node.
14986         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14987         dwarf2out_early_global_decl, when not just add location or
14988         value attributes to existing DIEs.
14990 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
14992         * config/aarch64/aarch64.md (copysigndf3): New.
14993         (copysignsf3): Likewise.
14995 2015-09-17  David S. Miller  <davem@davemloft.net>
14997         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14998         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14999         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15000         (HARD_REGNO_CALLER_SAVE_MODE): Define.
15001         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15002         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15003         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15004         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15005         provide when flag_pic.
15007 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
15009         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
15010         object_allocator change.
15012 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
15014         PR tree-optimization/66388
15015         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
15016         (dump_iv): Dump no_overflow information.
15017         (alloc_iv): Initialize new field for struct iv.
15018         (mark_bivs): Count number of no_overflow bivs.
15019         (find_deriving_biv_for_expr, record_biv_for_address_use): New
15020         functions.
15021         (idx_find_step): Call new functions above.
15022         (add_candidate_1, add_candidate): New paramter.
15023         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
15024         (get_computation_aff): Simplify convertion of cand for BIV.
15025         (get_computation_cost_at): Step cand's base if necessary.
15027 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
15029         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
15030         parameter.
15031         (tree_simplify_using_condition): Ditto.
15032         (simplify_using_initial_conditions): Ditto.
15033         (loop_exits_before_overflow): Pass new argument to function
15034         simplify_using_initial_conditions.  Remove case for type conversions
15035         simplification.
15036         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
15037         parameter.
15038         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
15039         in iv base using loop initial conditions.
15041 2015-09-16  Jeff Law  <law@redhat.com>
15043         PR tree-optimization/47679
15044         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
15045         (free_all_edge_infos): Use it.
15046         (allocate_edge_info): Free preexisting edge info data.
15047         (pass_dominator::execute): Set up initial edge info structures.
15048         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
15049         thread_across_edge.
15050         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
15051         If non-null, then push/pop markers appropriately.
15052         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15053         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
15054         thread-across_edge.
15056 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
15058         * config/ft32/ft32.c: Fix the memory address space predicate.
15060 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
15062         PR target/67573
15063         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
15064         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15066 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15068         * toplev.h (check_global_declaration): Remove declaration.
15069         * toplev.c (check_global_declaration): Move to ...
15070         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
15071         (analyze_functions): Update call.
15073 2015-09-16  David S. Miller  <davem@davemloft.net>
15075         * lra-constraints.c (simplify_operand_subreg): Do not assume that
15076         lowpart of a SUBREG has offset zero.
15078 2015-09-16  Jeff Law  <law@redhat.com>
15080         PR tree-optimization/47679
15081         * tree-ssa-dom.c (enum expr_kind): Moved from here to
15082         tree-ssa-scopedtables.h.
15083         (struct hashable_expr, class expr_hash_elt): Likewise.
15084         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
15085         Move associated methods into tree-ssa-scopedtables.c.
15086         (avail_expr_hash, initialize_expr_from_cond): Similarly.
15087         (hashable_expr_equal_p, add_expr_commutative): Likewise.
15088         (add_hashable_expr): Likewise.
15089         (record_cond): Delete element directly.
15090         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
15091         private copy ctor and assignment operator methods.
15092         (expr_elt_hasher): Inline trivial methods.
15093         (initialize_expr_from_cond): Prototype.
15094         * tree-ssa-scopedtables.c: Add necessary includes, functions and
15095         methods that were previously in tree-ssa-dom.c.  Improve various
15096         comments.
15098 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
15100         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
15102 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
15104         PR bootstrap/67587
15105         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15106         fixup_partitions.
15108 2015-09-16  Richard Biener  <rguenther@suse.de>
15110         PR middle-end/67253
15111         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
15112         location of possibly shared trees.
15114 2015-09-16  Richard Biener  <rguenther@suse.de>
15116         PR middle-end/67271
15117         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
15119 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
15121         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
15122         offset and size computations instead of HOST_WIDE_INT.
15124 2015-09-16  Richard Biener  <rguenther@suse.de>
15126         PR middle-end/67442
15127         * fold-const.c (extract_muldiv_1): Properly extend multiplication
15128         result before builting a tree via wide_int_to_tree.
15130 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
15132         * Makefile.in: Add memory-block.cc
15133         (pool_allocator::initialize): Use fixed block size.
15134         (pool_allocator::release): Use memory_block_pool.
15135         (pool_allocator::allocate): Likewise.
15136         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15137         object pools.
15138         * cfg.c (initialize_original_copy_tables): Likewise.
15139         * cselib.c (elt_list_pool, elt_loc_list_pool,
15140         cselib_val_pool): Likewise.
15141         * df-problems.c (df_chain_alloc): Likewise.
15142         * df-scan.c (df_scan_alloc): Likewise.
15143         * dse.c (cse_store_info_pool, rtx_store_info_pool,
15144         read_info_type_pool, insn_info_type_pool, bb_info_pool,
15145         group_info_pool, deferred_change_pool): Likewise.
15146         * et-forest.c (et_nodes, et_occurrences): Likewise.
15147         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15148         ipcp_agg_lattice_pool): Likewise.
15149         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15150         * ipa-profile.c (histogram_pool): Likewise.
15151         * ipa-prop.c (ipa_refdesc_pool): Likewise.
15152         * ira-build.c (live_range_pool, allocno_pool, object_pool,
15153         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15154         * ira-color.c (update_cost_record_pool): Likewise.
15155         * lra-lives.c (lra_live_range_pool): Likewise.
15156         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15157         * memory-block.cc: New file.
15158         * memory-block.h: New file.
15159         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15160         * sched-deps.c (sched_deps_init): Likewise.
15161         * sel-sched-ir.c (sched_lists_pool): Likewise.
15162         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15163         * tree-sra.c (access_pool): Likewise.
15164         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15165         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15166         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15167         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15168         * tree-ssa-strlen.c (strinfo_pool): Likewise.
15169         * tree-ssa-structalias.c (variable_info_pool): Likewise.
15170         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15171         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15173 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
15175         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15176         definition.
15177         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15178         call0 ABI.
15180 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
15182         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15183         to pass TLS call argument, according to current ABI.
15184         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15185         callx0 for TLS call, according to current ABI.
15187 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
15189         * tree-eh.c (lower_try_finally_dup_block): Clear location information
15190         on stack restore statements.
15191         (decide_copy_try_finally): Do not consider a stack restore statement as
15192         coming from sources.
15194 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
15196         * config/alpha/alpha.c (alpha_expand_block_clear): Use
15197         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15199 2015-09-15  Jeff Law  <law@redhat.com>
15201         PR tree-optimization/47679
15202         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15203         methods and private members.
15204         (avail_exprs_stack): Similarly.  Change type of global
15205         from a pair of expr_hash_elt_t to the new class.
15206         (expr_elt_hasher::hash): Corresponding changes.
15207         (expr_elt_hasher::equal): Similarly.
15208         (avail_expr_hash): Similarly.
15209         (pass_dominator::execute): Similarly.
15210         (dom_opt_dom_walker::thread_across_edge): Similarly.
15211         (record_cond): Similarly.
15212         (dom_opt_dom_walker::before_dom_children): Similarly.
15213         (dom_opt_dom_walker::after_dom_children): Similarly.
15214         (lookup_avail_expr): Likewise.
15215         (initialize_hash_element): Now a expr_hash_elt constructor.
15216         (initialize_hash_element_from_expr): Similarly.
15217         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15218         (free_expr_hash_elt): Call dtor for the element.
15219         (remove_local_expressions_from_table): Now the "pop_to_marker"
15220         method in the available_exprs_stack class.
15221         (avail_expr_stack::record_expr): Method factored out.
15222         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15223         Fix formatting.
15224         (hashable_expr_equal_p): Fix formatting.
15226 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
15228         * input.h (location_get_source_line): Drop "expanded_location"
15229         param in favor of a file and line number.
15230         * input.c (location_get_source_line): Likewise.
15231         (dump_location_info): Update for change in signature of
15232         location_get_source_line.
15233         * diagnostic.c (diagnostic_print_caret_line): Likewise.
15235 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
15237         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15238         Bump to 4KB for SJLJ exceptions.
15239         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
15240         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15241         * doc/tm.texi: Regenerate.
15243 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15245         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15246         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
15247         Update prototype.
15249 2015-09-15  Richard Biener  <rguenther@suse.de>
15251         PR tree-optimization/67470
15252         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15253         structure for PHI hoisting by inserting a forwarder block
15254         if appropriate.
15256 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15258         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15259         (arm_option_print): New function.
15261 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15263         PR target/52144
15264         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15265         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15266         Remove flags parameter.
15267         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15268         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15269         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15270         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15271         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15272         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15273         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15274         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15276 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15278         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15280         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15281         AARCH64_VALID_SIMD_DREG_MODE.
15283 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15285         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15286         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15287         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15288         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15289         aarch64_ld4_lane<mode>): Combine together, making...
15290         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15291         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15292         aarch64_st4_lane<mode>): Combine together, making...
15293         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15294         * config/aarch64/iterators.md (nregs): Add comment.
15296 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15298         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15299         Change operand mode from <V_TWO_ELEM> to BLK.
15300         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15301         (aarch64_vec_store_lanesoi_lane<mode): Likewise
15302         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15303         (aarch64_ld2_lane<mode>): Likewise.
15304         (aarch64_st2_lane<VQ:mode>): Likewise.
15305         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15307 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15309         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15310         Change operand mode from <V_FOUR_ELEM> to BLK.
15311         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15312         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15313         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15314         (aarch64_ld4_lane<mode>): Likewise.
15315         (aarch64_st4_lane<mode>): Likewise.
15316         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15318 2015-09-15  Richard Biener  <rguenther@suse.de>
15320         PR middle-end/67563
15321         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15322         transfer EH info from old to new stmt.
15323         (replace_call_with_value): Likewise.
15324         (replace_call_with_call_and_fold): Likewise.
15325         (gimple_fold_builtin_memory_op): Likewise.
15326         (gimple_fold_builtin_memset): Likewise.
15327         (gimple_fold_builtin_stpcpy): Likewise.
15328         (gimple_fold_call): Likewise.
15330 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15332         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15333         comment.
15334         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15335         (aarch64_simd_intEI_type_node): Likewise.
15336         (aarch64_simd_builtin_std_type): Remove EImode case.
15337         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15338         * config/aarch64/aarch64-modes.def: Remove EImode.
15340 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15342         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15343         Change operand mode from <V_THREE_ELEM> to BLK.
15344         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15345         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15346         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15347         (aarch64_ld3_lane<mode>): Likewise.
15348         (aarch64_st3_lane<mode>): Likewise.
15349         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15351 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15353         * config/aarch64/aarch64-simd.md
15354         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15355         Change all TImode operands to BLKmode.
15356         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15357         Change all EImode operands to BLKmode.
15358         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15359         Change all OImode operands to BLKmode.
15361         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15362         and call set_mem_size.
15363         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15365         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15367 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15369         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15370         to...
15371         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15373         (vec_store_lanesci_lane<mode>): Rename to...
15374         (aarch64_vec_store_lanesci_lane<mode>): ...this.
15376         (vec_store_lanesxi_lane<mode>): Rename to...
15377         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15379         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15380         aarch64_st4_lane<mode>): Follow renaming.
15382 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15384         * config/s390/s390.c (s390_const_operand_ok): Add missing
15385         brackets.
15387 2015-09-15  Richard Biener  <rguenther@suse.de>
15389         PR lto/67568
15390         * lto-streamer.h (lto_location_cache::current_sysp): Properly
15391         initialize.
15392         * lto-streamer-out.c (clear_line_info): Likewise.
15394 2015-09-15  Richard Biener  <rguenther@suse.de>
15396         * doc/match-and-simplify.texi: Fix wording.
15398 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
15400         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15401         unnecessary type conversion in op1.
15403 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
15405         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15406         (dup_block_and_redirect): Delete function.
15407         (can_dup_for_shrink_wrapping): New function.
15408         (fix_fake_fallthrough_edge): New function.
15409         (try_shrink_wrapping): Rewrite function.
15410         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15412 2015-09-14  Rich Felker  <dalias@libc.org>
15414         * configure.ac: Change target pattern for sh TLS support
15415         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15416         * configure: Regenerate.
15418 2015-09-14  Jeff Law  <law@redhat.com>
15420         PR tree-optimization/47679
15421         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15422         type rather than void *.
15424 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15426         PR fortran/67460
15427         * diagnostic.c (diagnostic_initialize): Do not set
15428         some_warnings_are_errors.
15429         (diagnostic_finish): Use DK_WERROR count instead.
15430         (diagnostic_report_diagnostic): Do not set
15431         some_warnings_are_errors.
15432         * diagnostic.h (struct diagnostic_context): Remove
15433         some_warnings_are_errors.
15435 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
15437         * config/sparc/predicates.md (const_all_ones_operand): Use
15438         CONSTM1_RTX to simplify definition.
15440 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
15442         PR target/67061
15443         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
15444         Handle call insns.
15446 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
15448         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
15449         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
15450         OPT_fshow_column to handled saved option cases.
15451         (append_compiler_options): Do not skip the above added options.
15453 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15455         PR target/63304
15456         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
15457         nopcrelative_literal_loads.
15458         (aarch64_classify_address): Likewise.
15459         (aarch64_constant_pool_reload_icode): Define.
15460         (aarch64_secondary_reload): Handle secondary reloads for
15461         literal pools.
15462         (aarch64_override_options): Handle nopcrelative_literal_loads.
15463         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
15464         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
15465         Define.
15466         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15467         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
15468         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
15469         predicate.
15470         * doc/invoke.texi (mpc-relative-literal-loads): Document.
15472 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
15474         PR middle-end/67401
15475         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
15476         sync_compare_and_swap_optab libcall to target_oval.
15478 2015-09-14  Marek Polacek  <polacek@redhat.com>
15480         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
15481         value.
15482         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
15484 2015-09-11  Mark Wielaard  <mjw@redhat.com>
15486         PR c/28901
15487         * toplev.c (check_global_declaration): Check and use
15488         warn_unused_const_variable.
15489         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
15490         (-Wunused-variable): Remove non-constant. For C implies
15491         -Wunused-const-variable.
15492         (-Wunused-const-variable): New.
15494 2015-09-14  Richard Biener  <rguenther@suse.de>
15496         * doc/match-and-simplify.texi: Update for changed syntax
15497         of inner ifs and the new switch expression.
15499 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15501         * config/i386/haswell.md: New file describing Haswell pipeline.
15502         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
15503         haswell-like processors.
15504         (ix86_reassociation_width): Increase reassociation width for 64-bit
15505         Haswell processor family.
15506         * config/i386/i386.md: Introduce haswell cpu and include new md file.
15508 2015-09-14  Richard Biener  <rguenther@suse.de>
15510         * doc/match-and-simplify.texi: Fixup some formatting issues
15511         and document the 's' flag.
15513 2015-09-13  Olivier Hainque  <hainque@adacore.com>
15514             Eric Botcazou  <ebotcazou@adacore.com>
15516         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
15517         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
15518         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
15519         (TARGET_CPU_gr5): Likewise.
15520         (TARGET_CPU_gr6): Likewise.
15521         (MULTILIB_DEFAULTS): Likewise.
15522         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
15523         for mcpu=gr5 and mcpu=gr6.
15524         (MULTILIB_DIRNAMES): Adjust accordingly.
15526 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15528         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
15529         (mem_ref_p): Likewise.
15530         (outermost_indep_loop): Adjust.
15531         (mem_ref_in_stmt): Likewise.
15532         (determine_max_movement): Likewise.
15533         (mem_ref_alloc): Likewise.
15534         (record_mem_ref_loc): Likewise.
15535         (set_ref_stored_in_loop): Likewise.
15536         (mark_ref_stored): Likewise.
15537         (gather_mem_refs_stmt): Likewise.
15538         (mem_refs_may_alias_p): Likewise.
15539         (for_all_locs_in_loop): Likewise.
15540         (struct rewrite_mem_ref_loc): Likewise.
15541         (rewrite_mem_refs): Likewise.
15542         (struct first_mem_ref_loc_1): Likewise.
15543         (first_mem_ref_loc): Likewise.
15544         (struct sm_set_flag_if_changed): Likewise.
15545         (execute_sm_if_changed_flag_set): Likewise.
15546         (execute_sm): Likewise.
15547         (hoist_memory_references):
15548         (struct ref_always_accessed): Likewise.
15549         (ref_always_accessed_p): Likewise.
15550         (refs_independent_p): Likewise.
15551         (record_dep_loop): Likewise.
15552         (ref_indep_loop_p_1): Likewise.
15553         (ref_indep_loop_p_2): Likewise.
15554         (ref_indep_loop_p): Likewise.
15555         (can_sm_ref_p): Likewise.
15556         (find_refs_for_sm): Likewise.
15557         (tree_ssa_lim_finalize): Likewise.
15559 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15561         * dwarf2out.c (dw_attr_ref): Remove typedef.
15562         (dw_line_info_ref): Likewise.
15563         (pubname_ref): Likewise.
15564         (dw_ranges_ref): Likewise.
15565         (dw_ranges_by_label_ref): Likewise.
15566         (comdat_type_node_ref): Likewise.
15567         (get_AT): Adjust.
15568         (get_AT_low_pc): Likewise.
15569         (get_AT_hi_pc): Likewise.
15570         (get_AT_string): Likewise.
15571         (get_AT_flag): Likewise.
15572         (get_AT_unsigned): Likewise.
15573         (get_AT_ref): Likewise.
15574         (get_AT_file): Likewise.
15575         (remove_AT): Likewise.
15576         (print_die): Likewise.
15577         (check_die): Likewise.
15578         (die_checksum): Likewise.
15579         (attr_checksum_ordered): Likewise.
15580         (struct checksum_attributes): Likewise.
15581         (collect_checksum_attributes): Likewise.
15582         (die_checksum_ordered): Likewise.
15583         (same_die_p): Likewise.
15584         (is_declaration_die): Likewise.
15585         (clone_die): Likewise.
15586         (clone_as_declaration): Likewise.
15587         (copy_declaration_context): Likewise.
15588         (break_out_comdat_types): Likewise.
15589         (copy_decls_walk): Likewise.
15590         (output_location_lists): Likewise.
15591         (external_ref_hasher::hash): Likewise.
15592         (optimize_external_refs_1): Likewise.
15593         (build_abbrev_table): Likewise.
15594         (size_of_die): Likewise.
15595         (unmark_all_dies): Likewise.
15596         (size_of_pubnames): Likewise.
15597         (output_die_abbrevs): Likewise.
15598         (output_die): Likewise.
15599         (output_pubnames): Likewise.
15600         (add_ranges_num): Likewise.
15601         (add_ranges_by_labels): Likewise.
15602         (add_high_low_attributes): Likewise.
15603         (gen_producer_string): Likewise.
15604         (dwarf2out_set_name): Likewise.
15605         (new_line_info_table): Likewise.
15606         (prune_unused_types_walk_attribs): Likewise.
15607         (prune_unused_types_update_strings): Likewise.
15608         (prune_unused_types): Likewise.
15609         (resolve_addr): Likewise.
15610         (optimize_location_lists_1): Likewise.
15611         (index_location_lists): Likewise.
15612         (dwarf2out_finish): Likewise.
15614 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15616         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
15618 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15620         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
15621         (dump_asserts_for): Adjust.
15622         (register_new_assert_for): Likewise.
15623         (process_assert_insertions): Likewise.
15624         (insert_range_assertions): Likewise.
15626 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15628         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
15629         and remove typedef.
15630         (new_temp_expr_table): Adjust.
15631         (free_temp_expr_table): Likewise.
15632         (version_to_be_replaced_p): Likewise.
15633         (make_dependent_on_partition): Likewise.
15634         (add_to_partition_kill_list): Likewise.
15635         (remove_from_partition_kill_list): Likewise.
15636         (add_dependence): Likewise.
15637         (finished_with_expr): Likewise.
15638         (process_replaceable): Likewise.
15639         (kill_expr): Likewise.
15640         (kill_virtual_exprs): Likewise.
15641         (mark_replaceable): Likewise.
15642         (find_replaceable_in_bb): Likewise.
15643         (find_replaceable_exprs): Likewise.
15644         (debug_ter): Likewise.
15646 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15648         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
15649         (struct btr_user): Rename from btr_user_s.
15650         (struct btr_def): Rename from btr_def_s.
15651         (find_btr_def_group): Adjust.
15652         (add_btr_def): Likewise.
15653         (new_btr_user): Likewise.
15654         (note_other_use_this_block): Likewise.
15655         (compute_defs_uses_and_gen): Likewise.
15656         (link_btr_uses): Likewise.
15657         (build_btr_def_use_webs): Likewise.
15658         (block_at_edge_of_live_range_p): Likewise.
15659         (btr_def_live_range): Likewise.
15660         (combine_btr_defs): Likewise.
15661         (move_btr_def): Likewise.
15662         (migrate_btr_def): Likewise.
15663         (migrate_btr_defs): Likewise.
15665 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15667         * var-tracking.c (shared_hash_def): Rename to shared_hash.
15668         (shared_hash): Remove typedef.
15669         (struct dataflow_set): Adjust.
15670         (shared_hash_unshare): Likewise.
15671         (dataflow_set_merge): Likewise.
15672         (vt_initialize): Likewise.
15673         (vt_finalize): Likewise.
15675 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15677         * var-tracking.c (struct location_chain): Rename from
15678         location_chain_def.
15679         (struct variable_part): Adjust.
15680         (variable_htab_free): Likewise.
15681         (unshare_variable): Likewise.
15682         (get_init_value): Likewise.
15683         (get_addr_from_local_cache): Likewise.
15684         (drop_overlapping_mem_locs): Likewise.
15685         (val_reset): Likewise.
15686         (struct variable_union_info): Likewise.
15687         (variable_union): Likewise.
15688         (find_loc_in_1pdv): Likewise.
15689         (insert_into_intersection): Likewise.
15690         (intersect_loc_chains): Likewise.
15691         (canonicalize_loc_order_check): Likewise.
15692         (canonicalize_values_mark): Likewise.
15693         (canonicalize_values_star): Likewise.
15694         (canonicalize_vars_star): Likewise.
15695         (variable_merge_over_cur): Likewise.
15696         (remove_duplicate_values): Likewise.
15697         (variable_post_merge_new_vals): Likewise.
15698         (variable_post_merge_perm_vals): Likewise.
15699         (find_mem_expr_in_1pdv): Likewise.
15700         (dataflow_set_preserve_mem_locs): Likewise.
15701         (dataflow_set_remove_mem_locs): Likewise.
15702         (variable_part_different_p): Likewise.
15703         (onepart_variable_different_p): Likewise.
15704         (find_src_set_src): Likewise.
15705         (dump_var): Likewise.
15706         (set_slot_part): Likewise.
15707         (clobber_slot_part): Likewise.
15708         (delete_slot_part): Likewise.
15709         (vt_expand_var_loc_chain): Likewise.
15710         (emit_note_insn_var_location): Likewise.
15711         (vt_finalize): Likewise.
15713 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15715         * dse.c (store_info_t): Remove typedef.
15716         (group_info_t): Likewise.
15717         (const_group_info_t): Likewise.
15718         (deferred_change_t): Likewise.
15719         (get_group_info): Adjust.
15720         (free_store_info): Likewise.
15721         (canon_address): Likewise.
15722         (clear_rhs_from_active_local_stores): Likewise.
15723         (record_store): Likewise.
15724         (replace_read): Likewise.
15725         (check_mem_read_rtx): Likewise.
15726         (scan_insn): Likewise.
15727         (remove_useless_values): Likewise.
15728         (dse_step1): Likewise.
15729         (dse_step2_init): Likewise.
15730         (dse_step2_nospill): Likewise.
15731         (scan_stores_nospill): Likewise.
15732         (scan_reads_nospill): Likewise.
15733         (dse_step3_exit_block_scan): Likewise.
15734         (dse_step3): Likewise.
15735         (dse_step5_nospill): Likewise.
15736         (dse_step6): Likewise.
15738 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15740         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15741         (alias_set_entry): Remove typedef.
15742         (alias_set_subset_of): Adjust.
15743         (alias_sets_conflict_p): Likewise.
15744         (init_alias_set_entry): Likewise.
15745         (get_alias_set): Likewise.
15746         (new_alias_set): Likewise.
15747         (record_alias_subset): Likewise.
15749 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
15751         * doc/install.texi (Downloading the source): Mark up
15752         contrib/download_prerequisites properly and drop leading "./".
15754 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15756         * config/arc/arc.h: Remove define of STRUCT_VALUE.
15757         * config/lm32/lm32.h: Likewise.
15758         * config/mep/mep.h: Likewise.
15759         * config/visium/visium.h: Likewise.
15760         * system.h: Poison STRUCT_VALUE macro.
15762 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
15764         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15765         CONSTANT_P operands.
15767 2015-09-11  David S. Miller  <davem@davemloft.net>
15769         * config/sparc/constraints.md: Make "U" constraint a real register
15770         constraint.
15771         * config/sparc/sparc.c (TARGET_LRA_P): Define.
15772         (D_MODES, DF_MODES): Add missing cast.
15773         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15774         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15775         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15776         cost to 8.
15777         * config/sparc/sparc.h (PROMOTE_MODE): Define.
15778         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15779         provide these insn when flag_pic.
15781 2015-09-11  Jeff Law  <law@redhat.com>
15783         PR tree-optimization/47679
15784         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15785         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15786         member with m_.  Update inline member functions as necessary.  Add
15787         toplevel comment.
15788         * tree-ssa-scopedtables.c: Update const_and_copies's member
15789         functions to use m_ prefix to access the stack.
15791 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15793         * graphite-optimize-isl.c (disable_tiling): Remove.
15794         (get_schedule_for_band): Do not use disable_tiling.
15795         (get_prevector_map): Delete function.
15796         (enable_polly_vector): Remove.
15797         (get_schedule_for_band_list): Remove dead code.
15799 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15801         * graphite-optimize-isl.c (get_tile_map): Refactor.
15802         (get_schedule_for_band): Same.
15803         (getScheduleForBand): Same.
15804         (get_prevector_map): Same.
15805         (get_schedule_for_band_list): Same.
15806         (get_schedule_map): Same.
15807         (get_single_map): Same.
15808         (apply_schedule_map_to_scop): Same.
15809         (optimize_isl): Same.
15811 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15813         PR target/63304
15814         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15815         (movtf): Delete.
15816         * config/aarch64/iterators.md (GPF_TF_F16): New.
15817         (GPF_F16): Delete.
15819 2015-09-10  Nathan Sidwell  <nathan@acm.org>
15821         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15822         (nvptx_reorg): Adjust comments.
15824 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
15826         PR bootstrap/67363
15827         * configure.ac: Check if setenv and unsetenv are declared.
15828         * configure: Rebuild.
15829         * config.in: Rebuild.
15830         * system.h: Declare setenv and unsetenv if not declared.
15832 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15834         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15835         commentary to simplify permute mask adjustment equation.
15836         (special_handling_values): Add SH_VPERM.
15837         (const_load_sequence_p): New function.
15838         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15839         the mask loaded from the constant pool.
15840         (adjust_vperm): New function.
15841         (handle_special_swappables): Call adjust_vperm.
15842         (dump_swap_insn_table): Handle SH_VPERM.
15844 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15846         * shrink-wrap.c (requires_stack_frame_p): Remove static.
15847         * shrink-wrap.h (requires_stack_frame_p): Put back.
15849 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
15851         * reload1.c (elimination_costs_in_insn): Locally turn
15852         -Wmaybe-uninitialized into a warning.
15854 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
15856         * shrink-wrap.c (requires_stack_frame_p): Make static.
15857         (prepare_shrink_wrap): Likewise.
15858         (dup_block_and_redirect): Likewise.
15859         * shrink-wrap.h: Remove declarations of those functions.
15861 2015-09-10  Mark Wielaard  <mjw@redhat.com>
15863         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15865 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
15867         PR target/67506
15868         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15869         missing simplify_gen_subreg.
15871 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15873         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15874         the vector element is bigger than 64 bit.
15876 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15878         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15879         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15881 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15883         * config/s390/s390.c: Add V1TImode to constant pool modes.
15885 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15887         PR target/67439
15888         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15889         predicate.  Set predicable_short_it attr to "no".
15891 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
15893         PR rtl-optimization/67421
15894         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15895         left wide shift tranformation.
15897 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
15899         * common/config/arc/arc-common.c: Remove references to A5.
15900         * config/arc/arc-opts.h: Likewise.
15901         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15902         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15903         * config/arc/t-arc-newlib: Likewise.
15905 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
15907         * config/arc/arc.md (length): Fix attribute length for conditional
15908         executed instructions with long immediate.
15910 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15912         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15913         type for second alternative.
15915 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
15917         * doc/invoke.texi (Downloading GCC): Mention
15918         contrib/download_prerequisites script.
15920 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
15922         PR c++/67523
15923         * gimplify.c (gimplify_omp_for): If inner stmt is not found
15924         for combined loop, assert seen_error () and return GS_ERROR.
15926         PR middle-end/67521
15927         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15928         if decl is already in outer->variables.
15930         PR middle-end/67517
15931         * gimplify.c (gimplify_scan_omp_clauses): Instead of
15932         asserting that decl is not specified in octx->variables,
15933         break out of the loop if it is.
15935         PR c++/67514
15936         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15937         iterator is not explicitly determined, but is defined inside
15938         of the combined workshare region, handle it like if it has
15939         DECL_EXPR in OMP_FOR_PRE_BODY.
15941 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15943         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15944         (*cmp<mode>): Add assembler spacing.
15945         (setcc_int<mode>, set_cc_float<mode>): Likewise.
15946         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15947         level.
15948         (write_func_decl_from_insn): Refactor argument loops & comma emission.
15949         (nvptx_expand_call): Likewise.
15950         (nvptx_output_call_insn): Likewise.
15951         (nvptx_reorg_subreg): Add spacing.
15953 2015-09-09  Marek Polacek  <polacek@redhat.com>
15955         PR middle-end/67512
15956         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15957         for comparisons.
15959 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15961         PR c++/53184
15962         * doc/invoke.texi ([Wsubobject-linkage]): Document.
15964 2015-09-09  Tom de Vries  <tom@codesourcery.com>
15966         * params-list.h: Add missing copyright notice.
15968 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15970         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15971         sel_truesi, not andsi.
15973 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15975         * config/arm/arm.md (*subsi3_compare0): Rename to...
15976         (subsi3_compare0): ... This.
15977         (modsi3): New define_expand.
15978         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15979         when operand is power of 2.
15981 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15983         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15984         (*neg<mode>2_compare0): Rename to...
15985         (neg<mode>2_compare0): ... This.
15986         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15987         Move check for speed inside the if-then-elses.  Reflect
15988         CSNEG sequence in MOD by power of 2 case.
15990 2015-09-09  Alan Modra  <amodra@gmail.com>
15992         PR target/67378
15993         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15994         reload replacement for PRE_MODIFY address reg.
15996 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
15998         PR tree-optimization/53852
15999         * config.in: Regenerate.
16000         * configure: Regenerate.
16001         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
16002         * graphite-optimize-isl.c (optimize_isl): Stop computation when
16003         PARAM_MAX_ISL_OPERATIONS is reached.
16004         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
16005         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
16006         result equal to isl_stat_ok as the status now can be isl_error_quota.
16007         (subtract_commutative_associative_deps): Same.
16008         (compute_deps): Same.
16010 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
16011             Sebastian Pop  <s.pop@samsung.com>
16013         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16014         Return the parameter if it was saved in corresponding
16015         parameter_rename_map of the region.
16016         (copy_def): Copy def from sese region to the newly created region.
16017         (copy_internal_parameters): Copy all the internal parameters defined
16018         within a region to the newly created region.
16019         (graphite_regenerate_ast_isl): Copy parameters to the new region before
16020         translating isl to gimple.
16021         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
16022         the loop-nest does not have any data-references.
16023         (build_graphite_scops): Create a scop only when there is at least one
16024         loop inside it.
16025         (contains_only_close_phi_nodes): Deleted.
16026         (print_graphite_scop_statistics): Deleted
16027         (print_graphite_statistics): Deleted
16028         (limit_scops): Deleted.
16029         (build_scops): Removed call to limit_scops.
16030         * sese.c (new_sese): Construct.
16031         (free_sese): Destruct.
16032         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
16033         added.
16034         (set_rename): Pass sese region so that parameters inside the region can
16035         be added to its parameter_rename_map.
16036         (rename_uses): Pass sese region.
16037         (graphite_copy_stmts_from_block): Do not copy parameters that have been
16038         generated in the header of the scop. For each SSA_NAME in the
16039         parameter_rename_map rename its usage.
16040         (invariant_in_sese_p_rec): Return false if tree t is defined outside
16041         sese region.
16042         (scalar_evolution_in_region): If the tree t is invariant just return t.
16043         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
16044         struct sese to keep track of all the parameters which need renaming.
16045         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
16046         any data-refs.
16047         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
16049 2015-09-08  Tom de Vries  <tom@codesourcery.com>
16051         * Makefile.in (generated_files): Add params.list.
16052         (params.list, s-params.list): Add rule.
16053         * params.h (enum compiler_param): Include params-list.h.  Move define
16054         DEFPARAM, include params.def and undef DEFPARAM ...
16055         * params-list.h: ... here.  New file.
16057 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
16059         * pretty-print.h (printer_fn): Fix typo in comment.
16061 2015-09-07  Jeff Law  <law@redhat.com>
16063         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
16065 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16067         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
16068         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
16069         (arm_neon_fp16_hw): New.
16071 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16073         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
16074         UNITS_PER_WORD >= 4.
16076 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16078         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
16079         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
16080         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
16081         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
16082         (aarch64_float_extend_lo_v2df): Rename to...
16083         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
16085         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
16086         (float_extend_lo): Add v4sf.
16088         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
16089         * config/aarch64/iterators.md (VQ_HSF): New iterator.
16090         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
16091         (Vwide): New mode_attr.
16093 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16095         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
16096         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
16097         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
16098         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
16099         V4HF and V8HF variants to iterator.
16101         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
16103         * config/aarch64/iterators.md (VDQF_F16): New.
16104         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
16106 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16108         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
16109         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16110         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
16111         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
16112         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
16113         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16114         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
16115         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
16116         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
16117         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
16118         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
16119         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16120         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
16121         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
16122         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
16123         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
16124         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
16125         vld1q_dup_f16): New.
16127 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16129         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16130         Reparameterize to...
16131         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16132         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16133         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16135         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16136         v8hf variant.
16137         (float_truncate_lo_): Use BUILTIN_VDF iterator.
16139         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16141         * config/aarch64/iterators.md (VDF, Vdtype): New.
16142         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16144 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16146         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16147         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16148         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16149         Add __builtin_aarch64_simd_hf.
16150         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16151         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16152         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16153         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16154         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16155         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16156         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16157         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16158         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16160         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16161         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16162         (VDC, Vdbl): Add V4HF.
16164 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16166         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16167         V4HFmode and V8HFmode.
16168         (aarch64_split_simd_move): Add case for V8HFmode.
16169         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16170         (aarch64_simd_builtin_std_type): Handle HFmode.
16171         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16173         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16174         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16175         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16177         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16178         Float16x8_t.
16180         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16181         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16182         New typedefs.
16183         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16184         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16185         vst1q_lane_f16): New.
16186         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16187         (VALLDI_F16, VALL_F16): New.
16188         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16189         Add cases for V4HF and V8HF.
16190         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16192 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16194         * config/arm/arm-builtins.c (VAR11, VAR12): New.
16195         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16196         vld4_dup): Add v4hf variant.
16197         (vget_high, vget_low): Add v8hf variant.
16198         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16199         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16200         v4hf and v8hf variants.
16202         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16203         (VDX): Add V4HF.
16204         (V_DOUBLE): Add case for V4HF.
16205         (VQX): Add V8HF.
16206         (V_HALF): Add case for V8HF.
16207         (VDQX): Add V4HF, V8HF.
16208         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16209         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16211         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16212         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16213         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16214         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16215         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16216         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16217         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16218         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16219         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16221         (neon_vcreate, neon_vreinterpretv8qi<mode>,
16222         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16223         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16224         Change VDX to VD_RE.
16226         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16227         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16228         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16230         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16231         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16232         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16233         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16234         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16235         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16236         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16237         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16238         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16240 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16242         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16243         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16244         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16245         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16246         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16247         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16248         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16249         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16250         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16251         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16252         New.
16254 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16256         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16258         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16260         * config/arm/arm-builtins.c (v8hf_UP): New.
16261         (arm_init_simd_builtin_types): Initialise Float16x8_t.
16263         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16265         * config/arm/arm_neon.h (float16x8_t): New typedef.
16267 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16269         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16270         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16271         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16272         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16273         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16274         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16275         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16276         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16277         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16278         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16280 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
16282         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16283         non-alphanumeric characters in the symbol name.
16285 2015-09-07  Marek Polacek  <polacek@redhat.com>
16287         PR inline-asm/67448
16288         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16289         a memory input.
16291 2015-09-07  Marek Polacek  <polacek@redhat.com>
16293         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16295 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
16297         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16298         not warn.
16300 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
16302         PR middle-end/67452
16303         * tree-ssa-live.c: Include cfgloop.h.
16304         (remove_unused_locals): Clear loop->simduid if simduid is about
16305         to be removed from cfun->local_decls.
16307 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16309         PR target/65210
16310         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16311         attribute as well.
16313 2015-09-04  Tom de Vries  <tom@codesourcery.com>
16315         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16317 2015-09-04  Jeff Law  <law@redhat.com>
16319         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16320         unnecessary constructor.  It's now trivial and implemented inside...
16321         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16322         constructor.  Add comments to various methods.  Remove unused
16323         private fields.
16324         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16325         * tree-vrp.c (identify_jump_threads): Likewise.
16326         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16327         indentation issues.
16328         (thread_across_edge): Similarly.
16329         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16330         arguments in constructor call.
16332 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
16334         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16335         temp path contains a '-'.
16337 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16338             Petr Murzin  <petr.murzin@intel.com>
16339             Kirill Yukhin  <kirill.yukhin@intel.com>
16341         * config/i386/i386-builtin-types.def
16342         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16343         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16344         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16345         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16346         * config/i386/i386.c
16347         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16348         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16349         IX86_BUILTIN_SCATTERALTDIV16SI.
16350         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16351         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16352         __builtin_ia32_scatteraltdiv8si.
16353         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16354         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16355         IX86_BUILTIN_SCATTERALTDIV16SI.
16356         (ix86_vectorize_builtin_scatter): New.
16357         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16358         ix86_vectorize_builtin_scatter.
16360 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16361             Petr Murzin  <petr.murzin@intel.com>
16362             Kirill Yukhin  <kirill.yukhin@intel.com>
16364         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16365         * doc/tm.texi: Regenerate.
16366         * target.def: Add scatter builtin.
16367         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16368         for loads/stores in case of gather/scatter accordingly.
16369         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16370         STMT_VINFO_GATHER_P(S).
16371         (vect_check_gather): Rename to ...
16372         (vect_check_gather_scatter): this.
16373         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16374         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16375         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16376         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16377         variable and new checkings for it accordingly.
16378         * tree-vect-stmts.c
16379         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16380         STMT_VINFO_GATHER_P(S).
16381         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16382         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16384 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16386         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16387         define_insn.
16388         (mulv16qi3): New define_expand.
16390 2015-09-03  Martin Sebor  <msebor@redhat.com>
16392         PR c/66516
16393         * doc/extend.texi (Other Builtins): Document when the address
16394         of a built-in function can be taken.
16396 2015-09-03  Richard Biener  <rguenther@suse.de>
16398         * dwarf2out.c (flush_limbo_die_list): Split out from ...
16399         (dwarf2out_early_finish): ... here.
16400         (dwarf2out_finish): Do not call dwarf2out_early_finish but
16401         flush_limbo_die_list.  Assert we have no deferred asm names.
16403 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16405         * optabs.c (expand_binop): Don't create a broadcast vector with a
16406         source element wider than the inner mode.
16408 2015-09-03  Richard Biener  <rguenther@suse.de>
16410         * varasm.c (output_constant): Use fold_convert instead of
16411         wide_int_to_tree.
16413 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16415         PR tree-optimization/65637
16416         * omp-low.c (expand_omp_for_static_chunk): Handle case that
16417         fin_bb has 2 predecessors.
16419 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16421         PR tree-optimization/65637
16422         * omp-low.c (find_phi_with_arg_on_edge): New function.
16423         (expand_omp_for_static_chunk): Fix inner loop phi.
16425 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16427         PR tree-optimization/65637
16428         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
16429         that head is NULL.
16431 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16433         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
16435 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16437         * doc/invoke.texi (parloops-chunk-size): Add item.
16438         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
16439         * tree-parloops.c: Include params.h.
16440         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
16441         param parloops-chunk-size is used.
16443 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16445         PR middle-end/67351
16446         * fold-const.c (fold_binary_loc) : Move
16447         Transform (x >> c) << c into x & (-1<<c) or
16448         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
16449         types using simplify and match.
16450         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
16451         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
16453 2015-09-03  Richard Biener  <rguenther@suse.de>
16455         PR ipa/66705
16456         * tree-ssa-structalias.c (ctor_for_analysis): New function.
16457         (create_variable_info_for_1): Use ctor_for_analysis instead
16458         of get_constructor.
16459         (create_variable_info_for): Likewise.
16461 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
16463         PR ipa/67280
16464         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
16465         in new callgraph edge.
16467 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
16469         PR target/59810
16470         PR target/63652
16471         PR target/63653
16472         * config/aarch64/aarch64-simd.md
16473         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
16474         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
16475         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
16476         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
16478 2015-09-02  Alan Modra  <amodra@gmail.com>
16480         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
16481         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
16482         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
16484 2015-09-02  Alan Modra  <amodra@gmail.com>
16486         PR target/67417
16487         * config/rs6000/predicates.md (current_file_function_operand): Don't
16488         return true for weak symbols.
16489         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
16491 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16492             Andrew Bennett  <andrew.bennett@imgtec.com>
16494         * config/mips/mips-opts.h (mips_cb_setting): New enum.
16495         * config/mips/mips-protos.h: Add definitions for
16496         mips_output_jump and mips_output_equal_conditional_branch
16497         * config/mips/mips.c (MIPS_JR): Change to support the
16498         JIC instruction.
16499         (mips_emit_compare): Add support for the MIPS R6 conditional
16500         compact branches.
16501         (mips_process_sync_loop): Likewise.
16502         (mips_output_order_conditional_branch): Likewise.
16503         (mips16_build_call_stub): Change MIPS_CALL to
16504         mips_output_jump.
16505         (mips_print_operand_punctuation): Update 's' case to only
16506         apply to micromips r2.
16507         (mips_adjust_insn_length): Add support for forbidden slot
16508         hazards.
16509         (mips_avoid_hazard): Likewise.
16510         (mips_reorg_process_insns): Likewise.
16511         (mips_output_jump): New function.
16512         (mips_output_equal_conditional_branch): Likewise.
16513         (mips_output_conditional_branch): Use jrc/bc if compact
16514         branch support is enabled.  Ensure the forbidden slots
16515         between the two branch instructions is filled with a nop.
16516         (mips_option_override): Add support to process the compact
16517         branch option and set the correct defaults.  Prevent
16518         non-explict relocs being using for MIPS R6.
16519         (mips_trampoline_init): Add compact branch support.
16520         (mips_mult_zero_zero_cost): Allow zero initialisation of
16521         accumulators with TARGET_DSP.
16522         * config/mips/mips.h (TARGET_CB_NEVER): New define.
16523         (TARGET_CB_MAYBE): New define.
16524         (TARGET_CB_ALWAYS): New define.
16525         (ISA_HAS_DELAY_SLOTS): New define.
16526         (ISA_HAS_COMPACT_BRANCHES): New define.
16527         (ISA_HAS_JRC): New define.
16528         (MIPS_BRANCH_C): New define.
16529         (MIPS_CALL): Removed.
16530         (MICROMIPS_J): Removed.
16531         * config/mips/mips.md (compact_form): New attr.
16532         (hazard): Add support for forbidden slots.
16533         (define_delay): Add support for compact branches.
16534         (*branch_order<mode>): Likewise.
16535         (*branch_order<mode>_inverted): Likewise.
16536         (*branch_equality<mode>): Likewise.
16537         (*branch_equality<mode>_inverted): Likewise.
16538         (*jump_absolute): Likewise.
16539         (*jump_pic): Likewise.
16540         (indirect_jump): Use mips_output_jump to produce assembly output.
16541         (tablejump_<mode>"): Likewise.
16542         (*<optab>"): Likewise.
16543         (<optab>_internal): Likewise.
16544         (sibcall_internal): Likewise.
16545         (sibcall_value_internal): Likewise.
16546         (sibcall_value_multiple_internal): Likewise.
16547         (call_internal): Likewise.
16548         (call_split): Likewise.
16549         (call_internal_direct): Likewise.
16550         (call_direct_split): Likewise.
16551         (call_value_internal): Likewise.
16552         (call_value_split): Likewise.
16553         (call_value_internal_direct): Likewise.
16554         (call_value_direct_split): Likewise.
16555         (call_value_multiple_internal): Likewise.
16556         (call_value_multiple_split): Likewise.
16557         (mips_get_fcsr_mips16_<mode>): Likewise.
16558         (mips_set_fcsr_mips16_<mode>): Likewise.
16559         (tls_get_tp_mips16_<mode>): Likewise.
16560         * config/mips/mips.opt: Add -mcompact-branches option.
16561         * config/mips/predicates.md (order_operator): Ensure the
16562         conditional compact branches are only used if the ISA them.
16563         * doc/invoke.texi: Document -mcompact-branches option.
16565 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
16567         PR target/61578
16568         * lra-lives.c (process_bb_lives): Process move pseudos with the
16569         same value for copies and preferences
16570         * lra-constraints.c (match_reload): Create match reload pseudo
16571         with the same value from single dying input pseudo.
16573 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
16575         PR target/67405
16576         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
16578 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
16580         * trans-mem.c: Add contributed-by.
16581         * trans-mem.h: Same.
16583 2015-09-01  Richard Biener  <rguenther@suse.de>
16585         * expr.c (expand_expr_real_1): For expanding TERed defs
16586         set the current location to that of the def if not UNKNOWN.
16588 2015-09-01  David Sherwood  <david.sherwood@arm.com>
16590         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
16592 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16594         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
16595         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
16596         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
16597         Include rtl-iter.h.
16598         (noce_simple_bbs): New function.
16599         (noce_try_move): Bail if basic blocks are not simple.
16600         (noce_try_store_flag): Likewise.
16601         (noce_try_store_flag_constants): Likewise.
16602         (noce_try_addcc): Likewise.
16603         (noce_try_store_flag_mask): Likewise.
16604         (noce_try_cmove): Likewise.
16605         (noce_try_minmax): Likewise.
16606         (noce_try_abs): Likewise.
16607         (noce_try_sign_mask): Likewise.
16608         (noce_try_bitop): Likewise.
16609         (bbs_ok_for_cmove_arith): New function.
16610         (noce_emit_all_but_last): Likewise.
16611         (noce_emit_insn): Likewise.
16612         (noce_emit_bb): Likewise.
16613         (noce_try_cmove_arith): Handle non-simple basic blocks.
16614         (insn_valid_noce_process_p): New function.
16615         (contains_mem_rtx_p): Likewise.
16616         (bb_valid_for_noce_process_p): Likewise.
16617         (noce_process_if_block): Allow non-simple basic blocks
16618         where appropriate.
16620 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
16622         * tree-ssa-dom.c (record_equivalences_from_phis,
16623         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
16624         (lookup_avail_expr): Likewise, and remove comment and unused temp.
16626 2015-09-01  Nick Clifton  <nickc@redhat.com>
16628         * config/msp430/msp430.opt (mcpu): Fix typo.
16630 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16632         * config/aarch64/aarch64.c (aarch64_set_current_function):
16633         Re-layout any vector parameters have non-simd layout.
16634         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
16635         Delete.
16636         (aarch64_simd_expand_args): Delete call to the above.
16638 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
16640         * doc/invoke.texi (asan-stack): Add space before option.
16642 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
16644         * tree.h (zerop): New function.
16645         * tree.c (zerop): Likewise.
16646         (element_precision): Handle expressions.
16647         * match.pd (define_predicates): Add zerop.
16648         (x <= +Inf): Fix comment.
16649         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
16650         * fold-const.c (fold_binary_loc): ... here. Remove.
16652 2015-08-31  Richard Biener  <rguenther@suse.de>
16654         PR middle-end/67381
16655         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
16657 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
16659         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
16660         (CEXPI): New operator list.
16661         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
16662         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
16663         Converted from ...
16664         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
16666 2015-08-31  Tom de Vries  <tom@codesourcery.com>
16668         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
16669         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
16670         parameter.
16671         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
16672         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
16673         (rewrite_into_loop_closed_ssa): ... here.
16674         (replace_uses_in_dominated_bbs): Remove function.
16675         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
16676         rewrite_into_loop_closed_ssa_1.
16678 2015-08-31  Michael Matz  <matz@suse.de>
16680         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
16681         enter entry and exit blocks for reverse post order.
16683 2015-08-31  Richard Biener  <rguenther@suse.de>
16685         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
16686         (lto_location_cache::current_sysp): Likewise.
16687         (output_block::current_sysp): Likewise.
16688         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
16689         (lto_location_cache::apply_location_cache): Properly record
16690         system header locations.
16691         (lto_location_cache::input_location): Input whether a file
16692         is a system header.
16693         * lto-streamer-out.c (lto_output_location): Stream whether a file
16694         is a system header.
16696 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16698         PR bootstrap/67363
16699         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
16701 2015-08-31  Tom de Vries  <tom@codesourcery.com>
16703         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
16704         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
16705         Improve function header comments.
16707 2015-08-30  Michael Collison  <michael.collison@linaro.org>
16709         PR other/67320
16710         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
16711         standard names
16713 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16715         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16716         special_handling bitfield.
16717         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
16718         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
16719         that represents a general xxpermdi.
16720         (insn_is_swappable_p): Add handling for vec_concat of two
16721         doublewords, which maps to a specific xxpermdi.
16722         (adjust_xxpermdi): New function.
16723         (adjust_concat): Likewise.
16724         (handle_special_swappables): Call adjust_xxpermdi and
16725         adjust_concat.
16726         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16728 2015-08-30  Rich Felker <dalias@libc.org>
16730         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16731         case instead of sh[123456ble]-*-*.
16733 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
16735         * ira.c (print_unform_and_important_classes,
16736         print_translated_classes): Remove reg_class_names static array.
16737         (print_unform_and_important_classes): Rename to ...
16738         (print_uniform_and_important_classes): ... this.
16739         (ira_debug_allocno_classes): Update accordingly.
16741 2015-08-29  Tom de Vries  <tom@codesourcery.com>
16743         PR tree-optimization/46193
16744         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16745         clause.
16747 2015-08-28  Jeff Law  <law@redhat.com>
16749         PR lto/66752
16750         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16751         unable to find X NE 0 in the tables, return X as the simplified
16752         condition.
16753         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16754         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16755         to VISISTED_BBS.
16756         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16757         after removing the control flow statement and unnecessary edges.
16759 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
16761         Revert:
16762         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16764         PR tree-optimization/67283
16765         * tree-sra.c (type_consists_of_records_p): Rename to...
16766         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16768         (completely_scalarize_record): Rename to...
16769         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16770         code to:
16771         (scalarize_elem): New.
16773 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
16775         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16776         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16777         (aarch64_symbol_type): Likewise.
16778         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16779         Likewise.
16780         (aarch64_expand_mov_immediate): Likewise.
16781         (aarch64_print_operand): Likewise.
16782         (aarch64_classify_tls_symbol): Likewise.
16784 2015-08-28  Richard Biener  <rguenther@suse.de>
16786         * cgraphunit.c (symbol_table::compile): Move early debug generation
16787         and finish...
16788         (symbol_table::finalize_compilation_unit): ... back here and
16789         add a !seen_error () guard.
16791 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16793         * toplev.c (process_options): Do not use flag_loop_block,
16794         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
16795         flag_loop_optimize_isl.
16797 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16799         * Makefile.in (OBJS): Remove graphite-blocking.o and
16800         graphite-interchange.o.
16801         * common.opt (floop-strip-mine, floop-interchange, floop-block):
16802         Alias of floop-nest-optimize.
16803         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16804         Document as alias of -floop-nest-optimize.
16805         * graphite-blocking.c: Remove.
16806         * graphite-interchange.c: Remove.
16807         * graphite-optimize-isl.c: Include dumpfile.h.
16808         (getScheduleForBand): Add dump for tiled loops.  Use
16809         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16810         * graphite-poly.c (scop_max_loop_depth): Remove.
16811         (print_scattering_function_1): Remove.
16812         (print_scattering_function): Remove.
16813         (print_scattering_functions): Remove.
16814         (debug_scattering_function): Remove.
16815         (debug_scattering_functions): Remove.
16816         (apply_poly_transforms): Remove use of flag_loop_block,
16817         flag_loop_strip_mine, and flag_loop_interchange.
16818         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16819         PBB_ORIGINAL.
16820         (print_pdr_access_layout): Remove.
16821         (print_pdr): Print ISL representation.
16822         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16823         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16824         (free_scop): Same.
16825         (openscop_print_pbb_domain): Remove.
16826         (print_pbb): Remove call to print_scattering_function.
16827         (openscop_print_scop_context): Remove.
16828         (print_scop_context): Do not print matrices anymore.
16829         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16830         SCOP_TRANSFORMED_SCHEDULE.
16831         (print_isl_set): Add printing of a new line.
16832         (print_isl_map): Same.
16833         (print_isl_aff): Same.
16834         (print_isl_constraint): Same.
16835         (loop_to_lst): Remove.
16836         (scop_to_lst): Remove.
16837         (lst_indent_to): Remove.
16838         (print_lst): Remove.
16839         (debug_lst): Remove.
16840         (dot_lst_1): Remove.
16841         (dot_lst): Remove.
16842         (reverse_loop_at_level): Remove.
16843         (reverse_loop_for_pbbs): Remove.
16844         * graphite-poly.h (pdr_dim_iter_domain): Remove.
16845         (pdr_nb_params): Remove.
16846         (pdr_alias_set_dim): Remove.
16847         (pdr_subscript_dim): Remove.
16848         (pdr_iterator_dim): Remove.
16849         (pdr_parameter_dim): Remove.
16850         (same_pdr_p): Remove.
16851         (struct poly_scattering): Remove.
16852         (struct poly_bb): Remove _original, _transformed, _saved.
16853         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16854         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16855         (PBB_NB_LOCAL_VARIABLES): Remove.
16856         (PBB_NB_SCATTERING_TRANSFORM): Remove.
16857         (schedule_to_scattering): Remove.
16858         (number_of_write_pdrs): Remove.
16859         (pbb_dim_iter_domain): Remove.
16860         (pbb_nb_params): Remove.
16861         (pbb_nb_scattering_orig): Remove.
16862         (pbb_nb_scattering_transform): Remove.
16863         (pbb_nb_dynamic_scattering_transform): Remove.
16864         (pbb_nb_local_vars): Remove.
16865         (pbb_iterator_dim): Remove.
16866         (pbb_parameter_dim): Remove.
16867         (psco_scattering_dim): Remove.
16868         (psct_scattering_dim): Remove.
16869         (psct_local_var_dim): Remove.
16870         (psco_iterator_dim): Remove.
16871         (psct_iterator_dim): Remove.
16872         (psco_parameter_dim): Remove.
16873         (psct_parameter_dim): Remove.
16874         (psct_dynamic_dim): Remove.
16875         (psct_static_dim): Remove.
16876         (psct_add_local_variable): Remove.
16877         (new_lst_loop): Remove.
16878         (new_lst_stmt): Remove.
16879         (free_lst): Remove.
16880         (copy_lst): Remove.
16881         (lst_add_loop_under_loop): Remove.
16882         (lst_depth): Remove.
16883         (lst_dewey_number): Remove.
16884         (lst_dewey_number_at_depth): Remove.
16885         (lst_pred): Remove.
16886         (lst_succ): Remove.
16887         (lst_find_pbb): Remove.
16888         (find_lst_loop): Remove.
16889         (lst_find_first_pbb): Remove.
16890         (lst_empty_p): Remove.
16891         (lst_find_last_pbb): Remove.
16892         (lst_contains_p): Remove.
16893         (lst_contains_pbb): Remove.
16894         (lst_create_nest): Remove.
16895         (lst_remove_from_sequence): Remove.
16896         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16897         (lst_niter_for_loop): Remove.
16898         (pbb_update_scattering): Remove.
16899         (lst_update_scattering_under): Remove.
16900         (lst_update_scattering): Remove.
16901         (lst_insert_in_sequence): Remove.
16902         (lst_replace): Remove.
16903         (lst_substitute_3): Remove.
16904         (lst_distribute_lst): Remove.
16905         (lst_remove_all_before_including_pbb): Remove.
16906         (lst_remove_all_before_excluding_pbb): Remove.
16907         (struct scop): Remove original_schedule, transformed_schedule, and
16908         saved_schedule.
16909         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16910         (SCOP_SAVED_SCHEDULE): Remove.
16911         (poly_scattering_new): Remove.
16912         (poly_scattering_free): Remove.
16913         (poly_scattering_copy): Remove.
16914         (store_scattering_pbb): Remove.
16915         (store_lst_schedule): Remove.
16916         (restore_lst_schedule): Remove.
16917         (store_scattering): Remove.
16918         (restore_scattering_pbb): Remove.
16919         (restore_scattering): Remove.
16920         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16921         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
16922         compute the scattering polyhedron dimension from the dimension of
16923         pbb->domain.
16924         (build_scop_scattering): Update call to
16925         build_pbb_scattering_polyhedrons.
16926         (build_poly_scop): Remove call to scop_to_lst.
16927         * graphite.c (graphite_transform_loops): Add call to print_scop.
16928         (gate_graphite_transforms): Remove use of flag_loop_block,
16929         flag_loop_interchange, and flag_loop_strip_mine.
16931 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16933         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16934         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16935         -floop-nest-optimize.
16936         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16937         (generate_luj_sepclass): Remove.
16938         (generate_luj_options): Remove.
16939         (set_options): Remove opt_luj.
16940         (scop_to_isl_ast): Remove opt_luj.
16941         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16942         flag_loop_unroll_jam.
16943         (getPrevectorMap_full): Remove.
16944         (getScheduleForBandList): Remove map_sepcl.
16945         (getScheduleMap): Same.
16946         (apply_schedule_map_to_scop): Remove sepcl.
16947         (optimize_isl): Same.
16948         * graphite-poly.c (apply_poly_transforms): Remove check for
16949         flag_loop_unroll_jam.
16950         (new_poly_bb): Remove map_sepclass.
16951         * graphite-poly.h (struct poly_bb): Same.
16952         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16953         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16954         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16955         * toplev.c (process_options): Remove flag_loop_unroll_jam.
16957 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
16959         PR target/67317
16960         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16961         (addqi3_cc): Ditto.
16962         (UNSPEC_ADD_CARRY): Remove.
16963         (addqi3_cconly_overflow): New expander.
16964         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16965         Adjust for changed add<mode>3_carry.
16966         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16967         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16968         (<plusminus_insn><mode>3_carry): Remove expander.
16969         (*<plusminus_insn><mode>3_carry): Split insn pattern to
16970         add<mode>3_carry and sub<mode>3_carry.
16971         (plusminus_carry_mnemonic): Remove code attribute.
16972         (add<mode>3_carry): Canonicalize insn pattern.
16973         (*addsi3_carry_zext): Ditto.
16974         (sub<mode>3_carry): Ditto.
16975         (*subsi3_carry_zext): Ditto.
16976         (adcx<mode>3): Remove insn pattern.
16977         (addcarry<mode>): New insn pattern.
16978         (subborrow<mode>): Ditto.
16979         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16980         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16981         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16982         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16983         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16984         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16985         Rewrite expander to not clobber carry flag chains.
16987 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
16989         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16990         instead of a rotate.
16992 2015-08-27  Marek Polacek  <polacek@redhat.com>
16994         PR middle-end/67005
16995         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16996         an entry into an irreducible region.
16998 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17000         * configure: Regenerate.
17002 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
17004         PR tree-optimization/67283
17005         * tree-sra.c (type_consists_of_records_p): Rename to...
17006         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17008         (completely_scalarize_record): Rename to...
17009         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
17010         (scalarize_elem): New.
17012 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
17014         * tree-sra.c (completely_scalarize_var): Rename to...
17015         (create_total_scalarization_access): ... Here. Drop call to
17016         completely_scalarize_record.
17018         (analyze_all_variable_accesses): Replace completely_scalarize_var
17019         with create_total_scalarization_access and completely_scalarize_record.
17021 2015-08-27  Alan Modra  <amodra@gmail.com>
17023         PR target/67356
17024         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
17025         for operand 1.
17027 2015-08-27  Richard Biener  <rguenther@suse.de>
17029         * passes.c (rest_of_decl_compilation): Guard early_global_decl
17030         call with !seen_error ().
17031         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
17032         early debug generation and finish...
17033         (symbol_table::compile): ... here to put it after a !seen_error ()
17034         guard.
17036 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17038         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
17039         Solaris 12+.
17041 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17042             Andre Vieira  <andre.simoesdiasvieira@arm.com>
17044         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
17045         (*cb<optab><mode>1): Likewise.
17046         (*tb<optab><mode>1): Likewise.
17047         (*cb<optab><mode>1): Likewise.
17048         * config/aarch64/iterators.md (inv_cb): New code attribute.
17049         (inv_tb): Likewise.
17050         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
17051         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
17053 2015-08-27  Richard Biener  <rguenther@suse.de>
17055         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
17057 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17059         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
17060         trap to fix ICE.
17062 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17064         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
17065         Add declaration.
17067         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
17068         comment.
17069         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
17070         floating point in VSX registers.
17071         (rs6000_output_move_128bit): Always print out the set insn if we
17072         can't generate an appropriate 128-bit move.
17073         (rs6000_generate_compare): Add support for IEEE 128-bit floating
17074         point in VSX registers comparisons.
17075         (rs6000_expand_float128_convert): Likewise.
17077         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
17078         predicate for only GPR hard registers.
17080         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
17081         modes to iterators. Add new iterators for moving 128-bit values in
17082         scalar FPR registers and VSX registers.
17083         (FMOVE128): Likewise.
17084         (FMOVE128_FPR): Likewise.
17085         (FMOVE128_GPR): Likewise.
17086         (FMOVE128_VSX): Likewise.
17087         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
17088         in VSX registers.
17089         (IFKF): Likewise.
17090         (IBM128): Likewise.
17091         (TFIFKF): Likewise.
17092         (RELOAD): Add IEEE 128-bit floating point modes.
17093         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
17094         floating point in VSX registers modes.
17095         (signbit<mode>2, IBM128 iterator): Likewise.
17096         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
17097         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17098         (negtf2): Likewise.
17099         (neg<mode>2, TFIFKF iterator): Likewise.
17100         (negtf2_internal): Likewise.
17101         (abstf2): Likewise.
17102         (abs<mode>2, TFIFKF iterator): Likewise.
17103         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
17104         VSX insn support for negate, absolute value, and negative absolute
17105         value.
17106         (ieee_128bit_vsx_neg<mode>2): Likewise.
17107         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
17108         (ieee_128bit_vsx_abs<mode>2): Likewise.
17109         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17110         (ieee_128bit_vsx_nabs<mode>2): Likewise.
17111         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17112         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
17113         floating point in VSX registers.
17114         (unpack<mode>_dm): Likewise.
17115         (unpack<mode>_nodm): Likewise.
17116         (pack<mode>): Likewise.
17117         (unpackv1ti): Likewise.
17118         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
17119         (packv1ti): Likewise.
17120         (pack<mode>, FMOVE128_VSX iterator): Likewise.
17121         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
17122         registers.
17123         (extenddftf2_internal): Likewise.
17124         (trunctfdf2): Likewise.
17125         (trunctfdf2_internal2): Likewise.
17126         (fix_trunc_helper): Likewise.
17127         (fix_trunctfdi2"): Likewise.
17128         (floatditf2): Likewise.
17129         (floatuns<mode>tf2): Likewise.
17130         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17131         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17132         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17133         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17134         (float<SDI:mode><IFKF:mode>2): Likewise.
17135         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17137 2015-08-26  Renlin Li  <renlin.li@arm.com>
17139         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17141 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17142             Jiong Wang  <jiong.wang@arm.com>
17144         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17145         (tlsie_tiny_<mode>): New define_insn.
17146         (tlsie_tiny_sidi): Likewise.
17147         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17148         SYMBOL_TINY_TLSIE.
17149         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17150         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17151         SYMBOL_TINY_TLSIE.
17152         (aarch64_expand_mov_immediate): Likewise.
17153         (aarch64_print_operand): Likewise.
17154         (arch64_classify_tls_symbol): Likewise.
17156 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17158         * config/arm/arm-arches.def: Replace single value flags with
17159         an initializer built from ARM_FSET_MAKE_CPU1.
17160         * config/arm/arm-cores.def: Likewise.
17161         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17162         derivation from the ARM_CORE macro definition, use the given value
17163         instead.
17164         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17165         ARM_ARCH macro definition, use the given value instead.
17167 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17169         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17170         feature set.
17171         (struct builtin_description): Replace field mask with field
17172         features.
17173         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17174         (IWMMXT2_BUILTIN): Likewise.
17175         (IWMMXT2_BUILTIN2): Likewise.
17176         (FP_BUILTIN): Likewise.
17177         (CRC32_BUILTIN): Likewise.
17178         (CRYPTO_BUILTIN): Likewise.
17179         (iwmmx_mbuiltin): Likewise.
17180         (iwmmx2_mbuiltin): Likewise.
17181         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17182         struct builtin_description.
17184 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17186         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17187         (struct builtin_description): Change type of mask to unsigned
17188         long.
17189         * config/arm/arm-protos.h (insn_flags): Declare as type
17190         arm_feature_set.
17191         (tune_flags): Likewise.
17192         * config/arm/arm.c (feature_count): New.
17193         (insn_flags): Define as type arm_feature_set.
17194         (tune_flags): Likewise.
17195         (struct processors): Define field flags as type arm_feature_set.
17196         (all_cores): Update for change to struct processors.
17197         (all_architectures): Likewise.
17198         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17199         macros.
17200         (arm_option_override_internal): Likewise.
17201         (arm_option_override): Likewise.
17203 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17204             Jiong Wang  <jiong.wang@arm.com>
17206         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17207         tls size for tiny, small, large memory model.
17208         (aarch64_load_symref_appropriately): Support new symbol types.
17209         (aarch64_expand_mov_immediate): Likewise.
17210         (aarch64_print_operand): Likewise.
17211         (aarch64_classify_tls_symbol): Likewise.
17212         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17213         (aarch64_symbol_type): Likewise.
17214         * config/aarch64/aarch64.md (tlsle): Deleted.
17215         (tlsle12_<mode>): New define_insn.
17216         (tlsle24_<mode>): Likewise.
17217         (tlsle32_<mode>): Likewise.
17218         (tlsle48_<mode>): Likewise.
17219         * doc/sourcebuild.texi (AArch64-specific attributes): Document
17220         "aarch64_tlsle32".
17222 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17224         * config/arm/arm-protos.h (FL_NONE): New.
17225         (FL_ANY): New.
17226         (arm_feature_set): New.
17227         (ARM_FSET_MAKE): New.
17228         (ARM_FSET_MAKE_CPU1): New.
17229         (ARM_FSET_MAKE_CPU2): New.
17230         (ARM_FSET_CPU1): New.
17231         (ARM_FSET_CPU2): New.
17232         (ARM_FSET_EMPTY): New.
17233         (ARM_FSET_ANY): New.
17234         (ARM_FSET_HAS_CPU1): New.
17235         (ARM_FSET_HAS_CPU2): New.
17236         (ARM_FSET_HAS_CPU): New.
17237         (ARM_FSET_ADD_CPU1): New.
17238         (ARM_FSET_ADD_CPU2): New.
17239         (ARM_FSET_DEL_CPU1): New.
17240         (ARM_FSET_DEL_CPU2): New.
17241         (ARM_FSET_UNION): New.
17242         (ARM_FSET_INTER): New.
17243         (ARM_FSET_XOR): New.
17244         (ARM_FSET_EXCLUDE): New.
17245         (AFM_FSET_IS_EMPTY): New.
17246         (ARM_FSET_CPU_SUBSET): New.
17248 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17250         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17251         SYMBOL_TLSLE to SYMBOL_TLSLE24.
17252         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17253         Likewise.
17254         (aarch64_expand_mov_immediate): Likewise.
17255         (aarch64_print_operand): Likewise.
17256         (aarch64_classify_symbol): Likewise.
17258 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17260         * config/aarch64/aarch64.opt (mtls-size): New entry.
17261         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17262         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17263         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17265 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17267         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17268         ARM_CORE entry.  Fix some white-space.
17269         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17270         ARM_CORE definition.
17272 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17274         * fold-const.c (fold_binary_loc) : Move Optimize
17275         root(x)*root(y) as root(x*y) to match.pd.
17276         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17277         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17278         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17279         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17280         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17281         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17282         (mult (exps:s @0) (exps:s @1)) : New simplifier.
17283         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17284         (rdiv @0 (exps:s @1)) : New simplifier.
17286 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
17288         * gcc.c (driver::finalize): Only assign to extra_specs if
17289         [EXTRA_SPECS].
17291 2015-08-25  Marek Polacek  <polacek@redhat.com>
17293         PR middle-end/67330
17294         * varasm.c (declare_weak): Return after giving an error.
17296 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
17298         * gcc-main.c (main): Add params to driver ctor.
17299         * gcc.c (class env_manager): New.
17300         (env): New global.
17301         (env_manager::init): New.
17302         (env_manager::get): New.
17303         (env_manager::xput): New.
17304         (env_manager::restore): New.
17305         Poison getenv and putenv.
17306         (DEFAULT_TARGET_SYSTEM_ROOT): New.
17307         (target_system_root): Update initialization to use
17308         DEFAULT_TARGET_SYSTEM_ROOT.
17309         (struct spec_list): Add field "default_ptr".
17310         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17311         (init_spec): Likewise.
17312         (set_spec): Clear field "default_ptr".
17313         (read_specs): Free "spec" and "buffer".
17314         (xputenv): Reimplement in terms of env_manager.
17315         (process_command): Replace ::getenv calls with calls to the
17316         env_manager singleton.
17317         (process_brace_body): Free string in three places.
17318         (driver::driver): New.
17319         (driver::~driver): New.
17320         (used_arg): Convert from a function to...
17321         (class used_arg_t): ...this class, and...
17322         (used_arg): ...this new global instance.
17323         (used_arg_t::finalize): New function.
17324         (getenv_spec_function): Add "const" to local "value".  Replace
17325         ::getenv call with call to the env_manager singleton.
17326         (path_prefix_reset): New function.
17327         (driver::finalize): New function.
17328         * gcc.h (driver::driver): New.
17329         (driver::~driver): New.
17330         (driver::finalize): New.
17332 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17334         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17335         target doesn't have one.
17337 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17339         PR target/67346
17340         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17342 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17344         PR target/67344
17345         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17346         a define_insn, remove second alternative.
17348 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
17349             Joseph Myers  <joseph@codesourcery.com>
17351         * gcc.c (struct switchstr): Expand comment.
17353 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17355         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17356         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17358 2015-08-25  Richard Biener  <rguenther@suse.de>
17360         PR middle-end/67306
17361         * genmatch.c (expr::gen_transform): Verify the result of
17362         builtin_decl_implicit.
17363         (dt_simplify::gen_1): Likewise.
17365 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17367         * config/arm/constraints.md: Also list Cs and US ARM-specific
17368         constraints as used.
17370 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17372         PR target/66609
17373         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17374         UNSPEC_PCREL.
17375         (nonpic_symbol_mentioned_p): Likewise.
17376         (sh_delegitimize_address): Likewise.
17377         (sh_function_ok_for_sibcall): Take into account weak symbols.
17378         (sh_expand_sym_label2reg): New.
17379         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17380         * config/sh/sh.md (UNSPEC_PCREL): New enum.
17381         (call_pcrel): Use sh_expand_sym_label2reg.
17382         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17383         (symPCREL_label2reg) New expand.
17385 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17387         * graphite-poly.c: Change type of region from void* to sese.
17388         * graphite-poly.h (struct scop): Changing the type of scop::region
17389         from void* to sese. Change accessor macro accordingly.
17390         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17392 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17394         * graphite-scop-detection.c (stmt_simple_for_scop_p):
17395         Constrain only on INTEGER_TYPE.
17397 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17399         PR target/67211
17400         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17401         -mefficient-unaligned-vsx on ISA 2.7.
17403         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17404         option to a masked option.
17406         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17407         logic for -mefficient-unaligned-vsx so that it is set via an arch
17408         ISA option, instead of being set if -mtune=power8 is set. Move
17409         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17410         near other default option handling.
17412 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17414         * genflags.c (gen_macro): Delete.
17415         (gen_proto): Don't create GEN.*CALL.* macros.
17416         * gensupport.h (get_file_location): Declare.
17417         * gensupport.c (rtx_locs): New variable.
17418         (read_md_rtx): Record rtx locations.
17419         (get_file_location): New function.
17420         * target-insns.def (call, call_pop, call_value, call_value_pop)
17421         (sibcall, sibcall_value): New patterns.
17422         * gentarget-def.c (parse_argument): New function.
17423         (def_target_insn): Use it.  Handle optional operands.  Raise an
17424         error if an .md pattern has the wrong number of operands for the
17425         pattern name.  Remove the names of unused operands from the prototype.
17426         * builtins.c (expand_builtin_apply): Use targetm functions
17427         instead of HAVE_call_value and GEN_CALL_VALUE.
17428         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
17429         and sibcall_value_pop.
17430         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
17431         of GEN_CALL.
17432         * config/alpha/alpha.md (untyped_call): Likewise.
17433         * config/iq2000/iq2000.md (untyped_call): Likewise.
17434         * config/m68k/m68k.md (untyped_call): Likewise.
17435         * config/mips/mips.md (untyped_call): Likewise.
17436         * config/pa/pa.md (untyped_call): Likewise.
17437         * config/rs6000/rs6000.md (untyped_call): Likewise.
17438         * config/sparc/sparc.md (untyped_call): Likewise.
17439         * config/tilegx/tilegx.md (untyped_call): Likewise.
17440         * config/tilepro/tilepro.md (untyped_call): Likewise.
17441         * config/visium/visium.md (untyped_call): Likewise.
17442         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
17443         gen_call_value instead of GEN_CALL_VALUE.
17444         * config/arm/arm.md (untyped_call): Likewise.
17445         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
17446         GEN_CALL.
17448 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17450         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
17451         (have_cbranchcc4): New variable.
17452         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
17453         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
17454         (if_convert): Initialize have_cbranchcc4.
17456 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17458         * builtins.c (expand_cmpstrn): Rename to...
17459         (expand_cmpstrn_or_cmpmem): ...this.
17460         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
17461         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
17462         Remove mode argument.
17463         (expand_builtin): Update accordingly.
17465 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17467         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
17468         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
17469         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
17470         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
17471         Add predicates for operands 0 and 3.
17472         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
17473         operand.
17474         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
17475         immediate_operand to nonmemory_operand.
17477 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17479         * df-scan.c (df_insn_info_init_fields): New function, split out
17480         from...
17481         (df_insn_create_insn_record): ...here.
17482         (df_insn_info_free_fields): New function, split out from...
17483         (df_insn_info_delete): ...here.
17484         (df_insn_rescan): Use the new functions instead of freeing and
17485         reallocating the df_insn_info.
17487 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17489         * doc/install.texi (Binaries): Remove links no longer valid.
17491 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
17493         * config/nvptx/mkoffload.c (process): Replace
17494         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
17496 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
17498         PR target/67329
17499         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
17501 2015-08-24  Renlin Li  <renlin.li@arm.com>
17503         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
17504         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
17505         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
17506         * config/arm/constraints.md ("j"): Add check for high code.
17508 2015-08-24  Tom de Vries  <tom@codesourcery.com>
17510         PR tree-optimization/65468
17511         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
17512         chunk_size is one.
17514 2015-08-24  Nathan Sidwell  <nathan@acm.org>
17516         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
17517         change to nvptx_type_from_mode call. Use arg_promotion for both
17518         split and non-split args.
17520 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17522         * target-insns.def (movstr): New pattern.
17523         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
17524         (expand_movstr): Use targetm rather than HAVE_movstr/
17525         CODE_FOR_movstr.
17527 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17529         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
17530         cast syntax.
17532 2015-08-24  Andrew Pinski  <apinski@cavium.com>
17534         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
17535         AARCH64_EXTRA_TUNING_OPTION.
17536         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
17537         New enum.
17538         (aarch64_extra_tuning_flags): Base the shifted value on the index
17539         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
17540         * config/aarch64/aarch64.c: Remove the last argument to
17541         AARCH64_EXTRA_TUNING_OPTION.
17543 2015-08-23  Nathan Sidwell  <nathan@acm.org>
17545         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
17546         decls.
17547         (nvptx_declare_function_name): Insert formatting tabs for
17548         consistency.
17550 2015-08-23  Tom de Vries  <tom@codesourcery.com>
17552         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
17553         parm_decl, rather than generating a dummy default def in cfun.
17554         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
17555         ssa_name from cfun and child_fn do not share a stmt as def stmt.
17556         (move_stmt_op): Handle PARM_DECl.
17557         (gather_ssa_name_hash_map_from): New function.
17558         (move_sese_region_to_fn): Add default defs for function params, and add
17559         them to vars_map.  Release copied ssa names.
17560         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
17562 2015-08-23  Tom de Vries  <tom@codesourcery.com>
17564         * doc/sourcebuild.texi: Rename vect_no_int_max with
17565         vect_no_int_min_max.  Update description.
17567 2015-08-22  Andrew Pinski  <apinski@cavium.com>
17569          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
17570         * config/aarch64/aarch64-protos.h
17571         (aarch64_fusion_pairs_index): New enum.
17572         (aarch64_fusion_pairs): Base the shifted value on the index instead
17573         Rewrite AARCH64_FUSE_ALL to be based on the end index.
17574         of the argument to AARCH64_FUSION_PAIR.
17575         * config/aarch64/aarch64.c: Remove the last argument to
17576         AARCH64_FUSION_PAIR.
17578 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
17580         * dominance.c (new_zero_array): Define.
17581         (dom_info): Redefine as class with proper encapsulation.
17582         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
17583         Add new members.
17584         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
17585         allocations/deallocations.  Pass function as parameter (instead of
17586         using cfun).
17587         (dom_info::get_idom): Define accessor method.
17588         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
17589         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
17590         (calculate_dominance_info): Adjust to use dom_info class.
17591         (verify_dominators): Likewise.
17593 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
17595         * print-rtl.c (print_rtx): Check the correct range for
17596         flag_dump_unnumbered_links to behave as documented.
17598         PR rtl-optimization/67227
17599         PR rtl-optimization/64164
17600         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
17601         (nonoverlapping_memrefs_p): Test offsets and sizes when given
17602         identical gimple_reg exprs.
17604 2015-08-21  Nathan Sidwell  <nathan@acm.org>
17606         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
17607         expansion.
17608         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
17609         crtl->stack_alignment_needed to determine alignment.
17610         (nvptx_get_drap_rtx): New.
17611         (TARGET_GET_DRAP_RTX): Override.
17612         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
17614 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17616         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
17618 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17620         * configure.ac: Remove uwin* cases.
17621         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
17622         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
17623         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
17624         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
17625         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
17626         i[34567]86-*-uwin*, powerpc-*-beos*.
17628 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
17630         * gencodes.c (gencodes): Print the comma for the preceding
17631         enum value rather than the current one.  Use aliased enum values
17632         rather than #defines for compiled-out patterns.
17633         (main): Update accordingly.  Replace LAST_INSN_CODE with
17634         NUM_INSN_CODES.
17635         * lra.c (insn_code_data): Update accordingly.
17636         (finish_insn_code_data_once, get_static_insn_data): Likewise.
17637         * recog.h (target_recog): Likewise.
17638         (preprocess_insn_constraints): Change parameter to unsigned int.
17639         * recog.c (preprocess_insn_constraints): Likewise.
17640         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
17641         * tree-vect-stmts.c (vectorizable_operation): Simplify.
17643 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17645         PR rtl-optimization/61657
17646         * loop-iv.c (iv_number_of_iterations): Declare up and down as
17647         unsigned.  Remove superflous uint64_t cast.
17649 2014-08-21  Felix Yang  <felix.yang@huawei.com>
17650             Jiji Jiang  <jiangjiji@huawei.com>
17652         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
17653         argument and get builtin function code directly from CALL.
17654         (gimple_stringop_fixed_value): Modified accordingly.
17655         (gimple_stringops_transform, gimple_stringops_values_to_profile):
17656         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
17658 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17660         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
17662 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17664         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
17665         to match.pd.
17666         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
17667         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
17668         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
17669         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
17670         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
17671         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
17672         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
17673         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
17674         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
17675         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
17677         * match.pd (SIN ) : New Operator.
17678         (TAN) : New Operator.
17679         (mult (SQRT@1 @0) @1) : New simplifier.
17680         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
17681         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17682         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17683         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
17684         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
17685         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
17686         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
17687         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
17688         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
17689         (rdiv @0 (POW:s @1 @2)) : New simplifier.
17691 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
17693         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
17694         loop if EXPR is simplified to const value.
17696 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
17698         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17699         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
17701 2015-08-21  Richard Biener  <rguenther@suse.de>
17703         PR middle-end/67285
17704         * gimple-fold.c (replace_stmt_with_simplification): Assert
17705         seq is empty when replacing a call with itself but different
17706         arguments.
17707         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
17708         a call require that it is const.
17710 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17712         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
17713         * builtins.c (get_object_alignment_2): Adjust.
17714         * varasm.c (align_variable): Likewise.
17715         (get_variable_align): Likewise.
17716         (build_constant_desc): Likewise.
17717         (force_const_mem): Likewise.
17718         * doc/tm.texi.in: Likewise.
17719         * doc/tm.texi: Regenerate.
17721 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17723         * genconfig.c (main): Always define HAVE_cc0.
17724         * recog.c (rest_of_handle_peephole2): Adjust.
17726 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17728         * reorg.c (relax_delay_slots): Don't use #if to check value of
17729         HAVE_cc0.
17731 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17733         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17734         * targhooks.c (default_have_conditional_execution): Adjust.
17736 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17738         * rtl.h (rtvec_all_equal_p): Declare.
17739         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17740         * rtl.c (rtvec_all_equal_p): New function.
17741         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17742         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17743         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17744         * config/arm/arm.c (neon_vdup_constant): Likewise.
17745         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17746         * config/tilegx/constraints.md (W, Y): Likewise.
17747         * config/tilepro/constraints.md (W, Y): Likewise.
17748         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17749         (classify_immediate): Use unwrap_const_vec_duplicate.
17750         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17751         (reg_or_v2s8bit_operand): Likewise.
17752         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17753         (reg_or_v4s8bit_operand): Likewise.
17755 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17757         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17758         (vec_shasigma_be): New #define.
17759         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17760         (VPMSUMH): Likewise.
17761         (VPMSUMW): Likewise.
17762         (VPMSUMD): Likewise.
17763         (VPMSUM): New BU_P8V_OVERLOAD_2.
17764         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17765         entries for VEC_MADD and VEC_VPMSUM.
17767 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
17769         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17770         Multiply argument avr_n_flash by 64 to match unit of "KiB".
17771         (avr_pgm_check_var_decl): Same.
17773 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
17775         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17776         initialization of HFmode scalar type (float16_t) to...
17777         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17778         code.
17780         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17782         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17783         having an -mfp16-format.
17785 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17787         * config/i386/predicates.md (vector_all_ones_operand): Use
17788         CONSTM1_RTX to simplify definition.
17790 2015-08-20  Richard Biener  <rguenther@suse.de>
17792         * toplev.c (compile_file): Remove loop calling late_global_decl
17793         on all symbols.
17794         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17795         on decls we assembled.
17797 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
17799         * common/config/aarch64/aarch64-common.c
17800         (AARCH64_CPU_NAME_LENGTH): Delete.
17801         (aarch64_option_extension): New.
17802         (all_extensions): Likewise.
17803         (processor_name_to_arch): Likewise.
17804         (arch_to_arch_name): Likewise.
17805         (all_cores): New.
17806         (all_architectures): Likewise.
17807         (aarch64_get_extension_string_for_isa_flags): Likewise.
17808         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17809         architecture names.
17810         * config/aarch64/aarch64-protos.h
17811         (aarch64_get_extension_string_for_isa_flags): New.
17812         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17813         (aarch64_option_print): Get the string to print from
17814         aarch64_get_extension_string_for_isa_flags.
17815         (aarch64_declare_function_name): Likewise.
17816         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17817         (MCPU_TO_MARCH_SPEC): This.
17818         (ASM_CPU_SPEC): Use it.
17819         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17820         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17821         (EXTRA_SPEC_FUNCTIONS): Use it.
17823 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
17825         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17826         expansion when !ISA_HAS_LWL_LWR.
17827         (mips_block_move_straight): Update the size of elements copied to
17828         account for alignment when !ISA_HAS_LWL_LWR.
17829         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17831 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17833         * expr.c (expand_expr_real_2): Check gimple statement during
17834         LSHIFT_EXPR expand.
17836 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
17838         * common.opt (fstack-protector): Initialize to -1.
17839         (fstack-protector-all): Likewise.
17840         (fstack-protector-strong): Likewise.
17841         (fstack-protector-explicit): Likewise.
17842         * configure.ac: Add --enable-default-ssp.
17843         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
17844         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17845         -1.
17846         * doc/install.texi: Document --enable-default-ssp.
17847         * config.in: Regenerated.
17848         * configure: Likewise.
17850 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
17852         PR rtl-optimization/64164
17853         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17854         (parm_in_stack_slot_p): ... this.  Disregard mode, what
17855         matters is whether the parm will live in a pseudo or a stack
17856         slot.
17857         (expand_one_ssa_partition): Deal with params without a default
17858         def.  Disregard mode.
17859         * cfgexpand.h: Renamed function declaration.
17860         * tree-ssa-coalesce.c: Adjust.
17861         * function.c (split_complex_args): Allocate stack slot for
17862         unassigned parms before splitting.
17863         (parm_in_unassigned_mem_p): New.  Use it instead of
17864         parm_maybe_byref_p throughout this file.
17865         (assign_parm_setup_block): Use it.  Accept pseudos in the
17866         expand-assigned rtl.
17867         (assign_parm_setup_reg): Drop BLKmode requirement.
17868         (assign_parm_setup_stack): Allocate and fill in the address of
17869         unassigned MEM parms.
17871 2015-08-19  David Sherwood  <david.sherwood@arm.com>
17873         * genmodes.c (emit_mode_unit_size_inline): New function.
17874         (emit_mode_unit_precision_inline): New function.
17875         (emit_insn_modes_h): Emit new #define.  Emit new functions.
17876         (emit_mode_unit_size): New function.
17877         (emit_mode_unit_precision): New function.
17878         (emit_mode_adjustments): Add mode_unit_size adjustments.
17879         (emit_insn_modes_c): Emit new arrays.
17880         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17881         use new inline methods.
17883 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17885         * config/aarch64/aarch64.c (bit_count): Delete prototype
17886         and definition.
17887         (aarch64_print_operand): Use popcount_hwi instead of the above.
17889 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17891         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17892         comment.
17894 2015-08-19  Marek Polacek  <polacek@redhat.com>
17896         PR middle-end/67133
17897         * gimple-ssa-isolate-paths.c
17898         (insert_trap_and_remove_trailing_statements): Rename to ...
17899         (insert_trap): ... this.  Don't remove trailing statements; split
17900         block instead.
17901         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17903 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
17905         PR other/67042
17906         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17907         conditionalize the whole on __GNUC__.  Add fallback code
17908         depending neither on undefined nor implementation-defined behaviour.
17910 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17912         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17913         whitespaces with tab.
17915 2015-08-19  Florian Weimer  <fweimer@redhat.com>
17917         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17918         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17919         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17920         Move Name_Ids instantiation to the Prj.Proc package, to avoid
17921         trampolines.
17923 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17925         * config/arm/arm.c (bounds_check): Use %wd print format
17926         for HOST_WIDE_INT arguments.
17928 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
17930         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17931         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17932         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17933         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17934         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17935         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17936         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17937         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17938         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17939         typedefs.
17941 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
17943         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17944         function.c, graphite-scop-detection.c, haifa-sched.c,
17945         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17946         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17947         varasm.c: Remove typedefs of structs.
17949 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
17951         * config/rs6000/altivec.h (vec_adde): New define.
17952         (vec_addec): Likewise.
17953         (vec_double): Likewise.
17954         (vec_bperm): Likewise.
17955         (vec_gb): Likewise.
17956         * config/rs6000/rs6000-builtin.def (ADDE): New
17957         BU_ALTIVEC_OVERLOAD_3.
17958         (ADDEC): Likewise.
17959         (DOUBLE): New BU_VSX_OVERLOAD_1.
17960         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17961         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17962         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17963         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17964         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17965         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17966         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17967         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17968         and P8V_BUILTIN_VEC_VBPERMQ.
17970 2015-08-18  Jason Merrill  <jason@redhat.com>
17972         * print-tree.c (print_node): Handle TREE_BINFO.
17974 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17976         PR middle-end/36757
17977         * builtins.c (expand_builtin_signbit): Add asserts to make sure
17978         we can expand BUILT_IN_SIGNBIT inline.
17979         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17980         * doc/extend.texi: Document the type-generic __builtin_signbit.
17982 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
17984         PR rtl-optimization/67218
17985         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17986         (simplify_unary_operation_1): Use it.
17988 2015-08-18  Marek Polacek  <polacek@redhat.com>
17990         PR middle-end/67222
17991         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17992         if the call isn't valid.
17993         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17994         gimple_call_builtin_p.
17995         (call_may_clobber_ref_p_1): Likewise.
17996         (stmt_kills_ref_p): Likewise.
17998 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
18000         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
18001         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
18002         (mips_hard_regno_scratch_ok): Likewise.
18003         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
18004         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
18006 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
18008         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
18009         (determine_value_range): Call refine_value_range_using_guard for
18010         each loop initial condition to improve value range.
18012 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
18014         * config/i386/i386.c: Remove include of fibheap.h.
18016 2015-08-17  Richard Biener  <rguenther@suse.de>
18018         PR tree-optimization/67221
18019         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
18020         (sccvn_dom_walker::before_dom_children): Mark backedges of
18021         non-executable blocks as not executable.
18023 2015-08-17  David Sherwood  <david.sherwood@arm.com>
18025         * config/arm/arm.c (neon_element_bits): Replace call to
18026         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
18027         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
18028         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
18029         (neon_vdup_lane<mode>): Likewise.
18030         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
18031         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
18032         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
18033         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
18034         * config/spu/spu.c (arith_immediate_p): Likewise.
18035         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18036         * expr.c (expand_expr_real_2): Likewise.
18037         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
18038         * simplify-rtx.c (simplify_immed_subreg): Likewise.
18039         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18040         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
18041         New variable.
18042         * fold-const.c (fold_binary_loc): Replace call to
18043         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
18044         GET_MODE_UNIT_PRECISION (m).
18046 2015-08-17  Mike Stump  <mikestump@comcast.net>
18048         * config/arm/arm.c (arm_block_move_unaligned_straight):
18049         Emit normal move instead of unaligned load when source or destination
18050         are appropriately aligned.
18052 2015-08-17  Richard Biener  <rguenther@suse.de>
18053             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18055         PR middle-end/16107
18056         * match.pd (div (coss (op @0) : New simplifier.
18058 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
18060         PR rtl-optimization/64164
18061         PR bootstrap/66978
18062         PR middle-end/66983
18063         PR rtl-optimization/67000
18064         PR middle-end/67034
18065         PR middle-end/67035
18066         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18067         * tree-ssa-copyrename.c: Removed.
18068         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
18069         -ftree-coalesce-vars.
18070         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18071         * common.opt (ftree-copyrename): Ignore.
18072         (ftree-coalesce-inlined-vars): Likewise.
18073         * doc/invoke.texi: Remove the ignored options above.
18074         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18075         * tree-ssa-coalesce.h: ... here.
18076         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18077         headers required by it.
18078         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18079         across variables when flag_tree_coalesce_vars.  Check register
18080         use and promoted modes to allow coalescing.  Do not coalesce
18081         maybe-byref parms with SSA_NAMEs of other variables, or
18082         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
18083         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18084         with its member functions to tree-ssa-coalesce.c.
18085         (var_map_base_init): Likewise.  Renamed to
18086         compute_samebase_partition_bases.
18087         (partition_view_normal): Drop want_bases parameter.
18088         (partition_view_bitmap): Likewise.
18089         * tree-ssa-live.h: Adjust declarations.
18090         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
18091         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18092         default defs at the entry point.
18093         (dump_part_var_map): New.
18094         (compute_optimized_partition_bases): New, called by...
18095         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18096         of compute_samebase_partition_bases.  Adjust.
18097         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18098         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
18099         (ssa_default_def_partition): New.
18100         (get_rtl_for_parm_ssa_default_def): New.
18101         (align_local_variable, add_stack_var): Support anonymous SSA
18102         names.
18103         (defer_stack_allocation): Likewise.  Declare earlier.
18104         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18105         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18106         Do no record deferred-allocation marker in
18107         SA.partition_to_pseudo.
18108         (expand_stack_vars): Adjust check for the marker in it.
18109         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
18110         redundant MEM attr setting.
18111         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
18112         from...
18113         (expand_one_stack_var): ... this.  New wrapper to check and
18114         skip already expanded SSA partitions.
18115         (record_alignment_for_reg_var): New, factored out of...
18116         (expand_one_var): ... this.
18117         (expand_one_ssa_partition): New.
18118         (adjust_one_expanded_partition_var): New.
18119         (expand_one_register_var): Check and skip already expanded SSA
18120         partitions.
18121         (expand_used_vars): Don't create DECLs for anonymous SSA
18122         names.  Expand all SSA partitions, then adjust all SSA names.
18123         (pass::execute): Replace the loops that set
18124         SA.partition_to_pseudo from partition leaders and cleared
18125         DECL_RTL for multi-location variables, and that which used to
18126         rename vars and set attrs, with one that clears DECL_RTL and
18127         checks that PARMs and RESULTs default_defs match DECL_RTL.
18128         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18129         * emit-rtl.c: Include stor-layout.h.
18130         (set_reg_attrs_for_parm): Handle NULL decl.
18131         (set_reg_attrs_for_decl_rtl): Take mode from expression if
18132         it's not a DECL.
18133         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18134         rather than its possibly-NULL DECL.
18135         * explow.c (promote_ssa_mode): New.
18136         * explow.h (promote_ssa_mode): Declare.
18137         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18138         (read_complex_part): Export.
18139         * expr.h (read_complex_part): Declare.
18140         * cfgexpand.h (parm_maybe_byref_p): Declare.
18141         * function.c: Include cfgexpand.h.
18142         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18143         (use_register_for_parm_decl): Wrapper for the above to
18144         special-case the result_ptr.
18145         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18146         (split_complex_args): Take assign_parm_data_all argument.
18147         Pass it to rtl_for_parm.  Set up rtl and context for split
18148         args.  Reset complex parm before fetching its default decl
18149         rtl.
18150         (assign_parms_unsplit_complex): Use the default-def complex
18151         parm rtl if it matches the components.
18152         (assign_parms_augmented_arg_list): Adjust.
18153         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18154         multiple locations.  Recognize split complex args.
18155         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18156         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18157         (assign_parm_setup_block): Prefer SSA-assigned location, and
18158         fill in its address if the memory location of a maybe-byref
18159         parm was not assigned by cfgexpand.
18160         (assign_parm_setup_reg): Likewise.  Adjust its mode as
18161         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
18162         sure passed_pointer parms don't need conversion.  Copy address
18163         or value as needed.
18164         (assign_parm_setup_stack): Prefer SSA-assigned location.
18165         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18166         rtl before testing for pointer bounds.  Special-case result_ptr.
18167         (expand_function_start): Maybe reset DECL_RTL of result.
18168         Prefer SSA-assigned location for result and static chain.
18169         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
18170         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
18171         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18172         anonymous SSA names.  Use promote_ssa_mode.
18173         (get_temp_reg): Likewise.
18174         (remove_ssa_form): Adjust.
18175         * stor-layout.c (layout_decl): Don't set mem attributes of
18176         non-MEMs.
18177         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18178         and get its reg_usage for reg invalidation.
18179         (compute_bb_dataflow): Pass it insn.
18180         (emit_notes_in_bb): Likewise.
18182 2015-08-14  Marek Polacek  <polacek@redhat.com>
18184         * tree-core.h (tree_base): Fix typo.
18186 2015-08-14  Marek Polacek  <polacek@redhat.com>
18188         PR middle-end/67133
18189         * gimple.c (infer_nonnull_range_by_attribute): Check that the
18190         nonnull argument position is not outside function arguments.
18192 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
18194         PR target/67143
18195         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18196         'lconst_atomic' with 'const_atomic'.
18197         (atomic_fetch_<optab><mode>): Likewise.
18198         (atomic_<optab>_fetch<mode>): Likewise.
18199         * config/aarch64/iterators.md (lconst-atomic): Move below
18200         'const_atomic'.
18201         (const_atomic): New.
18203 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
18204             Bernd Schmidt  <bernds@codesourcery.com>
18206         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18207         debug options.
18208         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18209         (DWARF2_DEBUGGING_INFO): Don't define.
18210         * debug.h (dwarf2_lineno_debug_hooks): Declare.
18211         * toplev.c (process_options): Add a case for it.
18212         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18213         (dwarf2out_init): Skip most initializations if
18214         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18215         case.
18216         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18217         DWARF2_LINENO_DEBUGGING_INFO.
18218         * opts.c (set_debug_level): Likewise.
18220 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
18222         * config/arm/types.md (is_neon_type): Add missing types.
18224 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
18226         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18227         for skylake.
18228         * config/i386/i386.c (PTA_SKYLAKE): New macros.
18229         (processor_alias_table): Add skylake description.
18230         (enum processor_model): Add skylake processor.
18231         (arch_names_table): Add skylake record.
18232         * doc/invoke.texi: Add skylake item.
18234 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
18236         * ira-int.h: Include recog.h.
18237         * ira-build.c: Don't include recog.h.
18238         * ira-color.c: Likewise.
18239         * ira-conflicts.c: Likewise.
18240         * ira-costs.c: Likewise.
18241         * ira-emit.c: Likewise.
18242         * ira-lives.c: Likewise.
18243         * ira.c: Likewise.
18244         * sched-deps.c: Likewise.
18245         * sel-sched.c: Likewise.
18246         * target-globals.c: Likewise.
18248 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18250         PR bootstrap/55035
18251         * reload1.c (elimination_costs_in_insn): Make it obvious to the
18252         compiler that the n_dups and n_operands loop bounds are invariant.
18254 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18256         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18257         expressions in A and B.
18259 2015-08-13  Richard Biener  <rguenther@suse.de>
18261         * tree.c (nonnull_arg_p): Move from ...
18262         * tree-vrp.c (nonnull_arg_p): ... here.
18263         * tree.h (nonnull_arg_p): Declare.
18264         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18265         here, register ptr != 0 for nonnull_arg_p pointer arguments.
18266         Properly initialize static chain and by-reference result pointer.
18267         (run_scc_vn): Adjust.
18269 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18271         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18272         TUNE_I6400.
18274 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18276         * config/aarch64/aarch64-protos.h
18277         (aarch64_gen_atomic_cas): Declare.
18278         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18279         Choose appropriate instruction pattern for the target.
18280         (aarch64_gen_atomic_cas): New.
18281         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18282         (atomic_compare_and_swap<mode>_1): Rename to
18283         aarch64_compare_and_swap<mode>.  Fix some indentation.
18284         (aarch64_compare_and_swap<mode>_lse): New.
18285         (aarch64_atomic_cas<mode>): New.
18287 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18289         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18290         (TARGET_LSE): New.
18292 2015-08-13  Richard Biener  <rguenther@suse.de>
18294         PR tree-optimization/67191
18295         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18296         assert we value-numbered last stmts operand because it can validly
18297         trigger for unreachable code.
18299 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18301         PR rtl-optimization/67103
18302         * ifcvt.c (noce_try_store_flag_constants): Move
18303         x = (-(test != 0) & (b - a)) + a transformation to...
18304         (noce_try_cmove): ... Here.  Try it if normal conditional
18305         move fails.
18307 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18309         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18310         pseudo-processors.
18311         * config/mips/mips.md (processor): Remove w32 and w64.
18313 2015-08-13  Richard Biener  <rguenther@suse.de>
18315         PR tree-optimization/66502
18316         PR tree-optimization/67167
18317         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18318         backedge arguments.
18319         (vn_phi_lookup): Adjust.
18320         (vn_phi_insert): Likewise.
18321         (visit_phi): Prefer to value-number to another PHI node
18322         over value-numbering to a PHI argument.
18323         (init_scc_vn): Mark DFS back edges.
18325 2015-08-13  Richard Biener  <rguenther@suse.de>
18327         * gimple.h (gcall::code_): New constant static member.
18328         (gcond::code_): Likewise.
18329         * gimple.c (gcall::code_): Define.
18330         (gcond::code_): Likewise.
18331         (is_a_helper <const gcond *>): Add.
18332         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18333         and forward to a new gcall overload with less checking and a
18334         cheaper way to access the operand.
18335         (gimple_call_lhs_ptr): Likewise.
18336         (gimple_call_set_lhs): Likewise.
18337         (gimple_call_internal_p): Likewise.
18338         (gimple_call_with_bounds_p): Likewise.
18339         (gimple_call_set_with_bounds): Likewise.
18340         (gimple_call_internal_fn): Likewise.
18341         (gimple_call_set_ctrl_altering): Likewise.
18342         (gimple_call_ctrl_altering_p): Likewise.
18343         (gimple_call_fntype): Likewise.
18344         (gimple_call_fn): Likewise.
18345         (gimple_call_fn_ptr): Likewise.
18346         (gimple_call_set_fndecl): Likewise.
18347         (gimple_call_fndecl): Likewise.
18348         (gimple_call_chain): Likewise.
18349         (gimple_call_num_args): Likewise.
18350         (gimple_call_arg): Likewise.
18351         (gimple_call_arg_ptr): Likewise.
18352         (gimple_call_set_arg): Likewise.
18353         (gimple_call_noreturn_p): Likewise.
18354         (gimple_cond_code): Likewise.
18355         (gimple_cond_lhs): Likewise.
18356         (gimple_cond_rhs): Likewise.
18357         (gimple_has_lhs): Reduce checking.
18359 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18361         PR middle-end/25529
18362         * match.pd (div (mult @0 @1) @1) : New simplifier.
18364 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18366         PR target/67071
18367         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18368         predicate to allow construction of vector constants using the
18369         VSLDOI vector shift instruction.
18371         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18372         declaration.
18374         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18375         the number of bytes to be shifted left and filled in with either
18376         all zero or all one bits.
18377         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18378         methods exist.
18379         (output_vec_const_move): On power8, generate XXLORC to generate
18380         a vector constant with all 1's. Do a split if we need to use a
18381         VSLDOI instruction.
18383         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18384         properly test for the MSB.
18386         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18387         vector constants that can be created with VSLDOI.
18389 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18391         revert:
18392         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18393         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18394         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18395         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18396         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18397         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18398         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18399         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18400         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18402 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
18404         * config/xtensa/constraints.md (define_constraint "Y"): New
18405         constraint.
18406         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18407         * config/xtensa/linux.h (ASM_SPEC): Likewise.
18408         * config/xtensa/predicates.md (move_operand): Match constants
18409         and symbols in the presence of TARGET_AUTO_LITPOOLS.
18410         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18411         immediate references to TLS data.
18412         (xtensa_emit_move_sequence): Don't force constants to memory in
18413         the presence of TARGET_AUTO_LITPOOLS.
18414         (print_operand): Add 'y' format, same as default, but capable of
18415         printing SF mode constants as well.
18416         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18417         (movsf_internal): Add movi pattern that loads literal.
18418         (movsf, movdf): Don't force constants to memory in the presence
18419         of TARGET_AUTO_LITPOOLS.
18420         (movdf_internal): Add 'Y' constraint.
18421         * config/xtensa/xtensa.opt (mauto-litpools): New option.
18422         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18424 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
18426         * config/arm/arm-fpus.def: Replace booleans with feature flags.
18427         Update comment.
18428         * config/arm/arm.c (ARM_FPU): Update macro.
18429         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
18430         (TARGET_FP16): Likewise.
18431         (TARGET_CRYPTO): Likewise.
18432         (TARGET_NEON): Likewise.
18433         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
18434         field features.
18436 2015-08-12  Tom de Vries  <tom@codesourcery.com>
18438         PR other/67092
18439         PR other/67098
18440         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
18441         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
18442         accordingly.  Mention default for --with-stage1-ldflags.
18444 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
18446         * config/arm/arm.h (arm_fpu_feature_set): New.
18447         (ARM_FPU_FSET_HAS): New.
18448         (FPU_FL_NONE): New.
18449         (FPU_FL_NEON): New.
18450         (FPU_FL_FP16): New.
18451         (FPU_FL_CRYPTO): New.
18453 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18455         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
18456         after -mcmodel=large -fPIC sorry.
18458 2015-08-12  Richard Biener  <rguenther@suse.de>
18460         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
18461         comparison operand order and commutative ternary op operand order.
18462         (sccvn_dom_walker::cond_stack): New state to track temporary
18463         expressions.
18464         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
18465         no longer valid.
18466         (sccvn_dom_walker::record_cond): Add a single temporary conditional
18467         expression.
18468         (sccvn_dom_walker::record_conds): Add a temporary conditional
18469         expressions and all related expressions also true/false.
18470         (sccvn_dom_walker::before_dom_children): Record temporary
18471         expressions based on the controlling condition of a single
18472         predecessor.  When trying to simplify a conditional statement
18473         lookup expressions we might have inserted earlier.
18475 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
18477         PR target/67127
18478         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
18479         to ARM core registers.
18481 2015-08-12  Nathan Sidwell  <nathan@acm.org>
18483         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
18484         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
18486 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
18488         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
18489         line with comments.
18490         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
18492 2015-08-12  Richard Biener  <rguenther@suse.de>
18494         * gimple.h (remove_pointer): New trait.
18495         (GIMPLE_CHECK2): New inline template function.
18496         (gassign::code_): New constant static member.
18497         (is_a_helper<const gassign *>): Add.
18498         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
18499         and forward to a new gassign overload with less checking and a
18500         cheaper way to access the operand.
18501         (gimple_assign_lhs_ptr): Likewise.
18502         (gimple_assign_set_lhs): Likewise.
18503         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
18504         Likewise.
18505         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
18506         Likewise.
18507         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
18508         Likewise.
18509         (gimple_assign_rhs_code): Likewise.
18510         * gimple.c (gassign::code_): Define.
18512 2015-08-12  Richard Biener  <rguenther@suse.de>
18514         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18515         Eliminate edges marked as not executable by SCCVN.
18516         * tree-ssa-sccvn.c: Include gimple-iterator.h.
18517         (cond_dom_walker): Rename to sccvn_dom_walker.
18518         (sccvn_dom_walker::before_dom_children): Value-number defs
18519         of all stmts.
18520         (run_scc_vn): Remove loop value-numbering all SSA names.
18521         Drop not visited SSA names to varying.
18523 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18525         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18526         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18527         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18528         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18529         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18530         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18531         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18532         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18533         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18535 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
18537         PR target/66954
18538         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
18539         to enum feature_priority and feature_list.
18540         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
18541         and isa_names_table.
18543 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18545         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
18546         vect_induction_def.
18548 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18550         PR c/66098
18551         PR c/66711
18552         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
18553         account when deciding what was the command-line status.
18555 2015-08-11  Nathan Sidwell  <nathan@acm.org>
18557         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
18559         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
18560         we're not the only contributor to target phi.
18562 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
18564         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
18565         FIXED_REG0.
18567 2015-08-11  Tom de Vries  <tom@codesourcery.com>
18569         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
18571 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
18573         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
18574         with CPU_SLM.
18575         * config/i386/i386.md (cpu): Remove knl.
18577 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
18579         PR libgomp/65742
18580         PR middle-end/66332
18581         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
18582         open-coded sequence.
18583         * omp-low.c (oacc_process_reduction_data): Remove handline of
18584         GOMP_DEVICE_HOST_NONSHM.
18586         * lto-streamer-in.c (lto_input_mode_table): Adjust to
18587         GET_MODE_INNER changes.
18589 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
18590             Ilya Verbin  <ilya.verbin@intel.com>
18592         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
18594 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18596         * doc/options.texi (EnabledBy): Document that the argument must be
18597         a Common option.
18598         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
18599         Not enabled by -Wall.
18600         * optc-gen.awk: Give nicer error messages. Detect if the argument
18601         of EnabledBy is not a Common option.
18602         * common.opt (Wnull-dereference): Not enabled by -Wall.
18603         * opt-functions.awk (lang_enabled_by): Nicer error messages.
18605 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
18607         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
18608         model == 0x4f as Broadwell.
18610 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18612         PR rtl-optimization/67028
18613         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
18614         Add test to see if a const_int fits in the new mode.
18616 2015-08-07  DJ Delorie  <dj@redhat.com>
18618         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
18620 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18622         PR rtl-optimization/67029
18623         * ira-color.c: Include "recog.h" before including "ira-int.h".
18624         * target-globals.c: Likewise.
18625         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
18626         adds an alternative_mask argument and use it instead of
18627         preferred_alternatives.
18628         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
18629         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
18630         * sched-deps.c: Include "ira-int.h" after including "ira.h".
18631         (sched_analyze_insn): Update call to
18632         ira_implicitly_set_insn_hard_regs.
18633         * sel-sched.c: Include "ira-int.h" after including "ira.h".
18634         (implicit_clobber_conflict_p): Update call to
18635         ira_implicitly_set_insn_hard_regs.
18637 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
18639         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
18641 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18643         PR target/67002
18644         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
18645         currently_expanding_to_rtl is set.
18647 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
18649         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
18650         * configure: Regenerate.
18652 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18653             Jiong Wang  <jiong.wang@arm.com>
18655         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
18656         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
18657         (REG_CLASS_NAMES): Likewise.
18658         (REG_CLASS_CONTENTS): Likewise.
18659         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
18660         (aarch64_register_move_cost): Likewise.
18661         (aarch64_load_symref_appropriately): Invoke the new added pattern if
18662         possible.
18663         * config/aarch64/constraints.md (Uc0): New constraint.
18665 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
18667         * config/aarch64/constraints.md (Usf): Add the test of
18668         aarch64_is_noplt_call_p.
18670 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
18672         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
18673         declaration.
18674         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
18675         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
18676         (call_symbol): Likewise.
18678 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
18680         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
18681         for vectorizing multiplication patterns.
18682         * tree-vectorizer.h: Adjust the number of patterns.
18684 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
18686         * config/i386/sse.md (*vec_concatv2df): Declare added
18687         alternatives as sselog type.
18689 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18691         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
18692         all GPRs.
18694 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18696         * config/s390/s390.c (s390_expand_tbegin): Expand either
18697         tbegin_1_z13 or tbegin_1 depending on VX flag.
18698         * config/s390/s390.md ("tbegin_1_z13"): New expander.
18700 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18702         * config/s390/s390.opt: Clarify description for -mzvector
18703         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
18704         -mzvector.
18706 2015-08-06  Richard Biener  <rguenther@suse.de>
18708         * gimple.h (gimple_call_set_fn): Access op member directly.
18709         (gimple_call_chain_ptr): Likewise.
18710         (gimple_call_set_chain): Likewise.
18711         (gimple_cond_lhs_ptr): Likewise.
18712         (gimple_cond_set_lhs): Likewise.
18713         (gimple_cond_rhs_ptr): Likewise.
18714         (gimple_cond_set_rhs): Likewise.
18715         (gimple_cond_true_label): Likewise.
18716         (gimple_cond_set_true_label): Likewise.
18717         (gimple_cond_set_false_label): Likewise.
18718         (gimple_cond_false_label): Likewise.
18719         (gimple_label_label): Likewise.
18720         (gimple_label_set_label): Likewise.
18721         (gimple_goto_set_dest): Likewise.
18722         (gimple_asm_input_op): Likewise.
18723         (gimple_asm_input_op_ptr): Likewise.
18724         (gimple_asm_set_input_op): Likewise.
18725         (gimple_asm_output_op): Likewise.
18726         (gimple_asm_output_op_ptr): Likewise.
18727         (gimple_asm_set_output_op): Likewise.
18728         (gimple_asm_clobber_op): Likewise.
18729         (gimple_asm_set_clobber_op): Likewise.
18730         (gimple_asm_label_op): Likewise.
18731         (gimple_asm_set_label_op): Likewise.
18732         (gimple_switch_index): Likewise.
18733         (gimple_switch_index_ptr): Likewise.
18734         (gimple_return_retval_ptr): Likewise.
18735         (gimple_return_retval): Likewise.
18736         (gimple_return_set_retval): Likewise.
18737         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
18738         (gimple_switch_label): Likewise.
18739         (gimple_switch_set_label): Likewise.
18741 2015-08-06  Richard Biener  <rguenther@suse.de>
18743         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18744         bool comparison canonicalization and restrict to integers.
18746 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
18748         * coretypes.h (enum symbol_visibility): Relocate here.
18749         * flag-types.h (enum symbol_visibility): Remove.
18750         * tree-core.h (enum symbol_visibility): Remove.
18752 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
18754         PR target/66870
18755         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18756         for no_split_stack function attribute along with
18757         flag_split_stack.
18758         (rs6000_expand_split_stack_prologue): Likewise.
18760 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18761             Jeff Law  <law@redhat.com>
18763         PR c/16351
18764         * doc/invoke.texi (Wnull-dereference): New.
18765         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18766         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18767         Warn for potential NULL dereferences.
18768         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18769         * ubsan.c (instrument_nonnull_arg): Call
18770         infer_nonnull_range_by_attribute.
18771         (instrument_nonnull_return): Likewise.
18772         * common.opt (Wnull-dereference); New.
18773         * gimple.c (infer_nonnull_range): Remove bool arguments.
18774         (infer_nonnull_range_by_dereference): New.
18775         (infer_nonnull_range_by_attribute): New.
18776         * gimple.h: Update declarations.
18778 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18780         * gensupport.c (sequence_num): Replace with...
18781         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18782         ...these new variables.
18783         (init_rtx_reader_args_cb): Update accordingly.
18784         (get_num_code_insns): Likewise.
18785         (read_md_rtx): Rework to use a while loop and get_c_test.
18786         Use the new counters.  Remove redundant DEFINE_SUBST case.
18787         * genoutput.c (gen_split): Delete.
18788         (main): Don't call it.
18790 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18792         * gensupport.h (get_c_test): Declare.
18793         * gensupport.c (get_c_test): New function.
18794         * genconditions.c (main): Use it.
18795         * genrecog.c (validate_pattern): Likewise.
18796         (match_pattern_1): Likewise.  Remove c_test argument.
18797         (match_pattern): Update accordingly and remove c_test argument.
18798         (main): Update accordingly.
18800 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18802         * gensupport.h (get_num_insn_codes): Declare.
18803         * gensupport.c (get_num_insn_codes): New function.
18804         * genattrtab.c (optimize_attrs): Rename max_insn_code to
18805         num_insn_codes.
18806         (main): Likewise.  Use get_num_insn_codes.
18807         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18809 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18811         PR middle-end/66311
18812         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18813         is zero- rather than sign-extended.
18815 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18817         * target-insns.def (can_extend): Delete.
18819 2015-08-05  Richard Biener  <rguenther@suse.de>
18821         PR tree-optimization/67121
18822         * tree-if-conv.c (combine_blocks): Clear range-info produced
18823         by stmts no longer executed conditionally.
18825 2015-08-05  Nick Clifton  <nickc@redhat.com>
18827         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18828         to allow identical far pointers to remain.
18830 2015-08-05  Richard Biener  <rguenther@suse.de>
18832         PR middle-end/67120
18833         * match.pd: Compare address bases with == if they are decls
18834         or SSA names, not operand_equal_p.  Otherwise fail.
18836 2015-08-05  Richard Biener  <rguenther@suse.de>
18838         PR tree-optimization/67055
18839         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18840         NULL gimple_block.
18842         * g++.dg/torture/pr67055.C: New testcase.
18844 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18846         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18847         noavx512vl.
18848         (define_attr "enabled"): Handle avx521vl and noavx512vl.
18849         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18850         AVX-512 alternative out of SSE.
18851         (define_insn "*vec_concatv2df"): Ditto.
18853 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18855         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18856         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18857         CODE_FOR_avx_ptestv4di.
18858         * config/i386/sse.md (define_mode_iterator V_AVX): New.
18859         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18860         (define_insn "avx_ptest256"): Merge this ...
18861         (define_insn "sse4_1_ptest"): And this ...
18862         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18864 2015-08-05  Richard Biener  <rguenther@suse.de>
18866         PR tree-optimization/67109
18867         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18868         against too big groups.  Print whether this is a load or store
18869         group.  Rename from ...
18870         (vect_analyze_group_access): ... this which is now a wrapper
18871         dissolving an invalid group.
18872         (vect_analyze_data_ref_accesses): Print whether this is a load
18873         or store group.
18875 2015-08-05  Richard Biener  <rguenther@suse.de>
18877         PR middle-end/67107
18878         * match.pd: Guard const_binop result checking against NULL_TREE
18879         result.
18881 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
18883         * cse.c (cse_insn): Restoring old behaviour for src_eqv
18884          when dest and value in the REG_EQUAL are same and dest
18885          is STRICT_LOW_PART.
18887 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
18889         * config/moxie/moxie.h (PRINT_OPERAND,
18890           PRINT_OPERAND_ADDRESS): Remove macros.
18891         * config/moxie/moxie-protos.h (moxie_print_operand,
18892           moxie_print_operand_address): Remove declaration.
18893         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18894           TARGET_PRINT_OPERAND_ADDRESS): Define.
18895           (moxie_print_operand, moxie_print_operand_address): Make static.
18897 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18899         PR target/66731
18900         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18901         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18903 2015-08-04  Richard Biener  <rguenther@suse.de>
18905         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18906         generated code.
18907         (dt_operand::gen_gimple_expr): Adjust.
18909 2015-08-04  Richard Biener  <rguenther@suse.de>
18911         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18912         bool compares on RHS.
18913         * match.pd: Add X ==/!= !X is false/true pattern.
18915 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
18917         * config/aarch64/aarch64.c: Change inner loop statement cost
18918         to be consistent with other targets.
18920 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
18922         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18923         targets.
18925 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18927         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18928         (machine_function): Remove pseudos field.
18930 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18932         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18933         Exit early and use target_option_current_node if processing current
18934         pragma.
18936 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18938         * doc/extend.texi (AArch64 Function Attributes): New node.
18939         (AArch64 Pragmas): Likewise.
18941 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18943         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18944         Initialize simd builtins if TARGET_SIMD.
18945         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18946         Make sure that the builtins are initialized only once no matter how
18947         many times the function is called.
18948         (aarch64_init_builtins): Unconditionally initialize crc builtins.
18949         (aarch64_relayout_simd_param): New function.
18950         (aarch64_simd_expand_args): Use above during argument expansion.
18951         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18952         simd builtins if TARGET_SIMD.
18953         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18954         prototype.
18955         (aarch64_relayout_simd_types): Likewise.
18957 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18959         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18960         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18961         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18962         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18963         static keyword.
18964         (aarch64_reset_previous_fndecl): New function.
18965         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18966         the string.
18967         * config/aarch64/aarch64-c.c: New file.
18968         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18969         Push and pop options at beginning and end.  Remove ifdef
18970         __ARM_FEATURE_CRC32.
18971         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18972         Add pragma +nothing+simd and +nothing+crypto where appropriate.
18973         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18974         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18975         Define prototype.
18976         (aarch64_register_pragmas): Likewise.
18977         (aarch64_reset_previous_fndecl): Likewise.
18978         (aarch64_process_target_attr): Likewise.
18979         (aarch64_override_options_internal): Likewise.
18981 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18983         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18984         New function.
18985         (aarch64_can_inline_p): Likewise.
18986         (TARGET_CAN_INLINE_P): Define.
18988 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18990         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18991         Remove static.  Handle OPT_mgeneral_regs_only,
18992         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18993         OPT_momit_leaf_frame_pointer.
18994         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18995         (aarch64_attr_opt_type): New enum.
18996         (aarch64_attribute_info): New struct.
18997         (aarch64_handle_attr_arch): New function.
18998         (aarch64_handle_attr_cpu): Likewise.
18999         (aarch64_handle_attr_tune): Likewise.
19000         (aarch64_handle_attr_isa_flags): Likewise.
19001         (aarch64_attributes): New table.
19002         (aarch64_process_one_target_attr): New function.
19003         (num_occurences_in_str): Likewise.
19004         (aarch64_process_target_attr): Likewise.
19005         (aarch64_option_valid_attribute_p): Likewise.
19006         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19007         * config/aarch64/aarch64-protos.h: Include input.h
19008         (aarch64_handle_option): Declare prototype.
19010 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19012         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
19013         * config/aarch64/aarch64.c: Include target-globals.h
19014         (aarch64_previous_fndecl): New variable.
19015         (aarch64_set_current_function): New function.
19016         (TARGET_SET_CURRENT_FUNCTION): Define.
19018 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19020         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
19021         (explicit_arch): Likewise.
19022         (x_aarch64_isa_flags): Likewise.
19023         (mgeneral-regs-only): Mark as Save.
19024         (mfix-cortex-a53-835769): Likewise.
19025         (mcmodel=): Likewise.
19026         (mstrict-align): Likewise.
19027         (momit-leaf-frame-pointer): Likewise.
19028         (mtls-dialect): Likewise.
19029         (master=): Likewise.
19030         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
19031         (aarch64_isa_flags): Remove extern declaration.
19032         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
19033         to indicate success or failure.
19034         (aarch64_validate_march): Likewise.
19035         (aarch64_validate_mtune): Likewise.
19036         (aarch64_isa_flags): Delete.
19037         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
19038         instead of aarch64_isa_flags.
19039         (aarch64_get_tune_cpu): New function.
19040         (aarch64_get_arch): Likewise.
19041         (aarch64_override_options): Use above and set up explicit_tune_core
19042         and explicit_arch.
19043         (aarch64_print_extension): Move earlier in file.  Add isa_flags
19044         argument and use that instead of the global aarch64_isa_flags.
19045         (aarch64_option_save): New function.
19046         (aarch64_option_restore): Likewise.
19047         (aarch64_option_print): Likewise.
19048         (aarch64_declare_function_name): Likewise.
19049         (aarch64_start_file): Delete.
19050         (TARGET_ASM_FILE_START): Do not define.
19051         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
19052         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
19053         Declare prototype.
19055 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19057         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
19058         flag_omit_leaf_frame_pointer to 2.
19060 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19062         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
19063         define to 0 or 1.
19064         (TARGET_FIX_ERR_A53_835769): New macro.
19065         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19066         handling of opts->x_aarch64_fix_a53_err835769.
19067         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
19068         than aarch64_fix_a53_err835769.
19069         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
19070         * config/aarch64/aarch64-linux.h: Likewise.
19072 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
19074         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
19075         ix86_expand_int_movcc as boolean.
19077 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19079         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
19080         (aarch64_cpu_string): Likewise.
19081         (aarch64_tune_string): Likewise.
19082         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
19083         (aarch64_parse_extension): Return aarch64_parse_opt_result.
19084         Add extra argument to put result into.
19085         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
19086         (aarch64_parse_cpu): Add arguments to put results into. Return
19087         aarch64_parse_opt_result.
19088         (aarch64_parse_tune): Likewise.
19089         (aarch64_override_options_after_change_1): New function.
19090         (aarch64_override_options_internal): New function.
19091         (aarch64_validate_mcpu): Likewise.
19092         (aarch64_validate_march): Likewise.
19093         (aarch64_validate_mtune): Likewise.
19094         (aarch64_override_options): Update to reflect above changes.
19095         Move some logic into aarch64_override_options_internal.
19096         Initialize target_option_default_node and target_option_current_node.
19097         (aarch64_override_options_after_change): Move logic into
19098         aarch64_override_options_after_change_1 and call it with global_options.
19099         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
19100         flag values from that.
19102 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19104         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19105         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
19106         * config/aarch64/aarch64.c (struct processor): Add arch field.
19107         (all_architectures): Handle above, move above all_cores.
19108         (all_cores): Handle above.
19109         (aarch64_parse_arch): Handle above changes.
19110         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
19111         above.  Update comments.
19112         (armv8.1-a): Likewise.
19113         * config/aarch64/aarch64-cores.def: Update according to above.
19114         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
19115         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
19116         aarch64_arch_driver_info.
19118 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19120         * config/aarch64/aarch64.c (struct processor): Add ident field.
19121         Rename core sched_core.
19122         (all_cores): Handle above changes.
19123         (all_architectures): Likewise.
19124         (aarch64_parse_arch): Likewise.
19125         (aarch64_override_options): Likewise.
19127 2015-08-04  Richard Biener  <rguenther@suse.de>
19129         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19130         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19131         comparisons embedded in [VEC_]COND_EXPRs.
19133 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
19135         * tree-if-conv.c: Fix various typos in comments.
19136         * tree-vect-stmts.c: Likewise.
19138 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19140         PR tree-optimization/67043
19141         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19142         preheader after hoisting invariant in it.
19143         (find_defs): Force recomputation of all luids.
19145 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
19147         * config/rs6000/htm.md (tabort.): Restrict the source operand to
19148         using a base register.
19150 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
19152         * main.c (main): Pass in NULL for toplev's external_timer.
19153         * timevar.c: Include coretypes.h.
19154         (class timer::named_items): New.
19155         (timer::named_items::named_items): New.
19156         (timer::named_items::~named_items): New.
19157         (timer::named_items::push): New.
19158         (timer::named_items::pop): New.
19159         (timer::named_items::print): New.
19160         (timer::timer): Initialize field "m_jit_client_items".
19161         (timer::~timer): New.
19162         (timer::push): Move bulk of implementation to...
19163         (timer::push_internal): ...here.  New function.
19164         (timer::pop): Move bulk of implementation to...
19165         (timer::pop_internal): ...here.  New function.
19166         (timer::push_client_item): New.
19167         (timer::pop_client_item): New.
19168         (timer::print_row): New function, taken from timer::print.
19169         (timer::print): Print "GCC items" header if we also have client
19170         items.  Move row-printing to timer::print_row.  Print any client
19171         items.
19172         (timer::get_topmost_item_name): New method.
19173         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19174         (TV_JIT_CLIENT_CODE): New.
19175         * timevar.h (timer::push_client_item): New declaration.
19176         (timer::pop_client_item): New declaration.
19177         (timer::get_topmost_item_name): New method.
19178         (timer::push_internal): New declaration.
19179         (timer::pop_internal): New declaration.
19180         (timer::print_row): New declaration.
19181         (timer::named_items): New declaration.
19182         (timer::m_jit_client_items): New field.
19183         (timer): Add friend class named_items.
19184         (auto_timevar::auto_timevar): Add timer param.
19185         (auto_timevar::~auto_timevar): Use field "m_timer".
19186         (auto_timevar::m_timer): New field.
19187         * toplev.c (initialize_rtl): Add g_timer as param when
19188         constructing auto_timevar instance.
19189         (toplev::toplev): Add "external_timer" param, and use it to
19190         initialize the "g_timer" global if non-NULL.
19191         (toplev::~toplev): If this created "g_timer", delete it.
19192         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19193         with "external_timer" timer *.
19195 2015-08-03  Alexander Basov <coohpt@gmail.com>
19197         PR middle-end/64744
19198         PR middle-end/48470
19199         PR middle-end/43404
19200         * cfgexpand.c (expand_one_var): Add check if stack is going to
19201         be used in naked function.
19202         * expr.c (expand_expr_addr_expr_1): Remove excess checking
19203         whether expression should not reside in MEM.
19204         * function.c (use_register_for_decl): Do not use registers for
19205         non-register things (volatile, float, BLKMode) in naked functions.
19207 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
19209         PR target/67060
19210         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19211         Adjust splits to match new pattern.
19213 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19215         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19216         (VEC_M): Likewise.
19217         (VEC_N): Likewise.
19218         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19219         point in VSX registers.
19221         * config/rs6000/constraints.md (wb constraint): Document unused
19222         w<x> constraint.
19223         (we constraint): Likewise.
19224         (wo constraint): Likewise.
19225         (wp constraint): New constraint for IEEE 128-bit floating point in
19226         VSX registers.
19227         (wq constraint): Likewise.
19229         * config/rs6000/predicates.md (easy_fp_constant): Add support for
19230         IEEE 128-bit floating point in VSX registers.
19231         (easy_scalar_constant): Likewise.
19233         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19234         constraints (wp, wq) for IEEE 128-bit floating point in VSX
19235         registers.
19236         (rs6000_init_hard_regno_mode_ok): Likewise.
19238         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19239         floating point in VSX registers.
19240         (VSX_L): Likewise.
19241         (VSX_M): Likewise.
19242         (VSX_M2): Likewise.
19243         (VSm): Likewise.
19244         (VSs): Likewise.
19245         (VSr): Likewise.
19246         (VSa): Likewise.
19247         (VSv): Likewise.
19248         (vsx_le_permute_<mode>): Add support to properly swap bytes for
19249         IEEE 128-bit floating point in VSX registers on little endian.
19250         (vsx_le_undo_permute_<mode>): Likewise.
19251         (vsx_le_perm_load_<mode>): Likewise.
19252         (vsx_le_perm_store_<mode>): Likewise.
19253         (splitters for IEEE 128-bit fp moves): Likewise.
19255         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19256         wq constraints.
19258         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19259         floating point in VSX registers.
19260         (VM2): Likewise.
19262         * doc/md.text (Machine Constraints): Document wp and wq
19263         constraints on PowerPC.
19265 2015-08-03  Jeff Law  <law@redhat.com>
19267         PR middle-end/66314
19268         PR gcov-profile/66899
19269         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19270         iterate over the jump threading paths when an element in the
19271         jump threading paths array is eliminated.
19273 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
19275         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19277 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
19279         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19280         is_use_properly_guarded the variable def_preds.  Free its
19281         contents before returning.
19282         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19283         (is_use_properly_guarded): Replace local variable def_preds with
19284         a parameter.  Adjust accordingly.  Only update *def_preds if it's
19285         the empty vector.
19287 2015-08-03  Richard Biener  <rguenther@suse.de>
19289         * genmatch.c (simplify::for_subst_vec): New member.
19290         (binary_ok): New helper for for lowering.
19291         (lower_for): Delay substituting operators into result expressions
19292         if we can merge the results eventually again.
19293         (capture_info::walk_result): Adjust for user_id appearing as
19294         result expression operator.
19295         (expr::gen_transform): Likewise.
19296         (dt_simplify::gen_1): Likewise.
19297         (dt_simplify::gen): Pass not substituted operators to tail
19298         functions or initialize local variable with it.
19299         (decision_tree::gen): Adjust function signature.
19300         * match.pd: Fix tests against global code and add default
19301         cases to switch stmts.
19303 2015-08-03  Richard Biener  <rguenther@suse.de>
19305         * genmatch.c (dt_simplify::gen): Create captures array
19306         with an initializer.
19308 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19310         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19311         the host compiler is affected by placement new aliasing bug.
19312         * configure: Regenerate.
19313         * Makefile.in (ALIASING_FLAGS): New variable.
19314         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19316 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19318         PR target/66731
19319         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19320         (negmulsf3_vfp): Likewise.
19321         (muldf3negdf_vfp): Disable for -frounding-math.
19322         (mulsf3negsf_vfp): Likewise.
19323         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19324         fix MULT cost with -frounding-math.
19326 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19328         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19329         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19330         explicit.  Prefer to add the flag whenever possible.
19331         (noce_process_if_block): Try noce_try_store_flag_constants before
19332         noce_try_cmove.
19334 2015-08-03  Richard Biener  <rguenther@suse.de>
19336         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19337         New hash-map to record equivalent transforms.
19338         (dt_node::analyze): Populate the equivalent transforms hash-map.
19339         (dt_simplify::info): Add reference to hash-map entry.
19340         (dt_simplify::gen): If we have split out a function for the
19341         transform, generate a call to it.
19342         (sinfo_hashmap_traits::hash): New function.
19343         (compare_op): New helper function for ...
19344         (sinfo_hashmap_traits::equal_keys): ... this new function.
19345         (decision_tree::gen): Split out common equivalent transforms
19346         into functions.
19348 2015-08-03  Richard Biener  <rguenther@suse.de>
19350         * gimple-fold.c (fold_gimple_assign): Remove folding of
19351         the comparison in COND_EXPRs.
19353 2015-08-03  Richard Biener  <rguenther@suse.de>
19355         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19356         on the rhs of assignments first simplify the embedded
19357         GENERIC condition.
19359 2015-08-03  Richard Biener  <rguenther@suse.de>
19361         PR tree-optimization/66917
19362         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19363         field.
19364         (DR_VECT_AUX): New macro.
19365         (set_dr_misalignment): Adjust.
19366         (dr_misalignment): Likewise.
19367         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19368         Compute whether the base is at least element aligned.
19369         * tree-vect-stmts.c (ensure_base_align): Adjust.
19370         (vectorizable_store): If the base is not element aligned
19371         preserve alignment of the original access if misalignment is unknown.
19372         (vectorizable_load): Likewise.
19374 2015-08-02  Martin Sebor  <msebor@redhat.com>
19376         * doc/invoke.texi (Wframe-address): Document it.
19377         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19378         Clarify possible effects of calling the functions with non-zero
19379         arguments and mention -Wframe-address.
19380         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19382 2015-08-01  Michael Collison  <michael.collison@linaro.org
19383             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19385         * config/arm/arm.md (*arm_smin_cmp): New pattern.
19386         (*arm_umin_cmp): Likewise.
19388 2015-08-01  Caroline Tice  <cmtice@google.com>
19390         PR 66521
19391         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19392         global variables.
19393         (vtbl_find_mangled_name):  New function.
19394         (vtbl_register_mangled_name):  New function.
19395         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
19396         mangled name in mangled name vectors.
19397         (find_or_create_vtbl_map_node):  Ditto.
19398         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
19399         update recursion_depth on function entry; pass it to every recursive
19400         call; automatically exit if depth > 25 (give up looking at that point).
19401         (verify_bb_vtables):  Initialize recursion_depth and pass it to
19402         var_is_used_for_virtual_call_p.
19403         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19404         global variable decls.
19405         (vtbl_register_mangled_name): New extern function decl.
19407 2015-08-01  Tom de Vries  <tom@codesourcery.com>
19409         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19410         function.
19411         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19412         Declare.
19413         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19414         operation_no_trapping_overflow.  Allow non-overflow operations.
19415         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19416         operations.
19418 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19420         PR target/67049
19421         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19423 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19425         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
19426         Enable for TARGET_32BIT.
19427         (*if_move_neg): Likewise.
19429 2015-07-31  Nick Clifton  <nickc@redhat.com>
19431         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
19432         Returns true for __model__.
19433         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19435 2015-07-31  Alan Modra  <amodra@gmail.com>
19437         PR target/66870
19438         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
19439         (rs6000_emit_prologue): Set it.
19440         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
19442 2015-07-31  Richard Biener  <rguenther@suse.de>
19444         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
19445         -> X == (C1 ^ C2) which is already implemented in match.pd.
19446         Remove redundant dispatching to fold_relational_const.
19447         Move unordered self and NaN compares ...
19448         * match.pd: ... as patterns here.  Remove some stray captures
19449         and add a comment.
19451 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
19453         * config/i386/i386.c
19454         (bdesc_special_args): Convert mask type from signed to unsigned for
19455         masked builtins.
19456         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
19457         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
19458         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
19459         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
19460         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
19461         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
19462         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
19463         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
19464         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
19465         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
19466         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
19467         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
19468         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
19469         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
19470         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
19471         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
19472         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
19473         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
19474         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
19475         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
19476         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
19477         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
19478         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
19479         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
19480         * config/i386/i386-builtin-types.def
19481         (V16QI_FTYPE_V16SI): Remove.
19482         (V8DF_FTYPE_V8SI): Ditto.
19483         (V8HI_FTYPE_V8DI): Ditto.
19484         (V8SI_FTYPE_V8DI): Ditto.
19485         (V8SF_FTYPE_V8DF): Ditto.
19486         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
19487         (V16HI_FTYPE_V16SI): Ditto.
19488         (V16SF_FTYPE_V16HI): Ditto.
19489         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
19490         (V16SF_FTYPE_V16SI): Ditto.
19491         (V4DI_FTYPE_V4DI): Ditto.
19492         (V16SI_FTYPE_V16SF): Ditto.
19493         (V16SF_FTYPE_FLOAT): Ditto.
19494         (V8DF_FTYPE_DOUBLE): Ditto.
19495         (V8DI_FTYPE_INT64): Ditto.
19496         (V8DI_FTYPE_V4DI): Ditto.
19497         (V16QI_FTYPE_V8DI): Ditto.
19498         (UINT_FTYPE_V4SF): Ditto.
19499         (UINT64_FTYPE_V4SF): Ditto.
19500         (UINT_FTYPE_V2DF): Ditto.
19501         (UINT64_FTYPE_V2DF): Ditto.
19502         (V16SI_FTYPE_V16SI): Ditto.
19503         (V8DI_FTYPE_V8DI): Ditto.
19504         (V16SI_FTYPE_PV4SI): Ditto.
19505         (V16SF_FTYPE_PV4SF): Ditto.
19506         (V8DI_FTYPE_PV2DI): Ditto.
19507         (V8DF_FTYPE_PV2DF): Ditto.
19508         (V4DI_FTYPE_PV2DI): Ditto.
19509         (V4DF_FTYPE_PV2DF): Ditto.
19510         (V16SI_FTYPE_PV2SI): Ditto.
19511         (V16SF_FTYPE_PV2SF): Ditto.
19512         (V8DI_FTYPE_PV4DI): Ditto.
19513         (V8DF_FTYPE_PV4DF): Ditto.
19514         (V8SF_FTYPE_FLOAT): Ditto.
19515         (V4SF_FTYPE_FLOAT): Ditto.
19516         (V4DF_FTYPE_DOUBLE): Ditto.
19517         (V8SF_FTYPE_PV4SF): Ditto.
19518         (V8SI_FTYPE_PV4SI): Ditto.
19519         (V4SI_FTYPE_PV2SI): Ditto.
19520         (V8SF_FTYPE_PV2SF): Ditto.
19521         (V8SI_FTYPE_PV2SI): Ditto.
19522         (V16SF_FTYPE_PV8SF): Ditto.
19523         (V16SI_FTYPE_PV8SI): Ditto.
19524         (V8DI_FTYPE_V8SF): Ditto.
19525         (V4DI_FTYPE_V4SF): Ditto.
19526         (V2DI_FTYPE_V4SF): Ditto.
19527         (V64QI_FTYPE_QI): Ditto.
19528         (V32HI_FTYPE_HI): Ditto.
19529         (V8UHI_FTYPE_V8UHI): Ditto.
19530         (V16UHI_FTYPE_V16UHI): Ditto.
19531         (V32UHI_FTYPE_V32UHI): Ditto.
19532         (V2UDI_FTYPE_V2UDI): Ditto.
19533         (V4UDI_FTYPE_V4UDI): Ditto.
19534         (V8UDI_FTYPE_V8UDI): Ditto.
19535         (V4USI_FTYPE_V4USI): Ditto.
19536         (V8USI_FTYPE_V8USI): Ditto.
19537         (V16USI_FTYPE_V16USI): Ditto.
19538         (V2DF_FTYPE_V2DF_UINT64): Ditto.
19539         (V2DI_FTYPE_V2DF_V2DF): Ditto.
19540         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
19541         (V8DF_FTYPE_V8DF_V8DI): Ditto.
19542         (V4SF_FTYPE_V4SF_UINT64): Ditto.
19543         (V4SI_FTYPE_V4SF_V4SF): Ditto.
19544         (V16SF_FTYPE_V16SF_V16SI): Ditto.
19545         (V64QI_FTYPE_V32HI_V32HI): Ditto.
19546         (V32HI_FTYPE_V16SI_V16SI): Ditto.
19547         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
19548         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
19549         (V32HI_FTYPE_V64QI_V64QI): Ditto.
19550         (V32HI_FTYPE_V32HI_V32HI): Ditto.
19551         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
19552         (V16SI_FTYPE_V16SI_V4SI): Ditto.
19553         (V16SI_FTYPE_V16SI_V16SI): Ditto.
19554         (V16SI_FTYPE_V32HI_V32HI): Ditto.
19555         (V16SI_FTYPE_V16SI_SI): Ditto.
19556         (V8DI_FTYPE_V8DI_V8DI): Ditto.
19557         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
19558         (V8DI_FTYPE_V16SI_V16SI): Ditto.
19559         (V8DI_FTYPE_V8DI_V2DI): Ditto.
19560         (QI_FTYPE_QI): Ditto.
19561         (SI_FTYPE_SI): Ditto.
19562         (DI_FTYPE_DI): Ditto.
19563         (QI_FTYPE_QI_QI): Ditto.
19564         (QI_FTYPE_QI_INT): Ditto.
19565         (HI_FTYPE_HI_INT): Ditto.
19566         (SI_FTYPE_SI_INT): Ditto.
19567         (DI_FTYPE_DI_INT): Ditto.
19568         (HI_FTYPE_V16QI_V16QI): Ditto.
19569         (SI_FTYPE_V32QI_V32QI): Ditto.
19570         (DI_FTYPE_V64QI_V64QI): Ditto.
19571         (QI_FTYPE_V8HI_V8HI): Ditto.
19572         (HI_FTYPE_V16HI_V16HI): Ditto.
19573         (SI_FTYPE_V32HI_V32HI): Ditto.
19574         (QI_FTYPE_V4SI_V4SI): Ditto.
19575         (QI_FTYPE_V8SI_V8SI): Ditto.
19576         (QI_FTYPE_V2DI_V2DI): Ditto.
19577         (QI_FTYPE_V4DI_V4DI): Ditto.
19578         (QI_FTYPE_V8DI_V8DI): Ditto.
19579         (HI_FTYPE_V16SI_V16SI): Ditto.
19580         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
19581         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
19582         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
19583         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
19584         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
19585         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
19586         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
19587         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
19588         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
19589         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
19590         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
19591         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
19592         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
19593         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
19594         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
19595         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
19596         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
19597         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
19598         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
19599         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
19600         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
19601         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
19602         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
19603         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
19604         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
19605         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
19606         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
19607         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
19608         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
19609         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
19610         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
19611         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
19612         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
19613         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
19614         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
19615         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
19616         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
19617         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
19618         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
19619         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
19620         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
19621         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
19622         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
19623         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
19624         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
19625         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
19626         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
19627         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
19628         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
19629         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
19630         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
19631         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
19632         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
19633         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
19634         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
19635         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
19636         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
19637         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
19638         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
19639         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
19640         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
19641         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
19642         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
19643         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
19644         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
19645         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
19646         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
19647         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
19648         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
19649         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
19650         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
19651         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
19652         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
19653         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
19654         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
19655         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
19656         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
19657         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
19658         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
19659         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
19660         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
19661         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
19662         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
19663         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
19664         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
19665         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
19666         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
19667         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
19668         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
19669         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
19670         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
19671         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
19672         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
19673         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
19674         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
19675         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
19676         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
19677         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
19678         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
19679         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
19680         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
19681         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
19682         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
19683         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
19684         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
19685         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
19686         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
19687         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
19688         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
19689         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
19690         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
19691         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
19692         (HI_FTYPE_HI): Ditto.
19693         (HI_FTYPE_V16QI): Ditto.
19694         (SI_FTYPE_V32QI): Ditto.
19695         (DI_FTYPE_V64QI): Ditto.
19696         (QI_FTYPE_V8HI): Ditto.
19697         (HI_FTYPE_V16HI): Ditto.
19698         (SI_FTYPE_V32HI): Ditto.
19699         (QI_FTYPE_V4SI): Ditto.
19700         (QI_FTYPE_V8SI): Ditto.
19701         (HI_FTYPE_V16SI): Ditto.
19702         (QI_FTYPE_V2DI): Ditto.
19703         (QI_FTYPE_V4DI): Ditto.
19704         (QI_FTYPE_V8DI): Ditto.
19705         (V16QI_FTYPE_HI): Ditto.
19706         (V32QI_FTYPE_SI): Ditto.
19707         (V64QI_FTYPE_DI): Ditto.
19708         (V8HI_FTYPE_QI): Ditto.
19709         (V16HI_FTYPE_HI): Ditto.
19710         (V32HI_FTYPE_SI): Ditto.
19711         (V4SI_FTYPE_QI): Ditto.
19712         (V4SI_FTYPE_HI): Ditto.
19713         (V8SI_FTYPE_QI): Ditto.
19714         (V8SI_FTYPE_HI): Ditto.
19715         (V2DI_FTYPE_QI): Ditto.
19716         (V4DI_FTYPE_QI): Ditto.
19717         (HI_FTYPE_HI_HI): Ditto.
19718         (SI_FTYPE_SI_SI): Ditto.
19719         (DI_FTYPE_DI_DI): Ditto.
19720         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
19721         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
19722         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
19723         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19724         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19725         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19726         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19727         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19728         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19729         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19730         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19731         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19732         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19733         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19734         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19735         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19736         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19737         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19738         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19739         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19740         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19741         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19742         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19743         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19744         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19745         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19746         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19747         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19748         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19749         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19750         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19751         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19752         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19753         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19754         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19755         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19756         (V16SI_FTYPE_HI): Ditto.
19757         (V8DI_FTYPE_QI): Ditto.
19758         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19759         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19760         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19761         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19762         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19763         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19764         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19765         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19766         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19767         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19768         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19769         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19770         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19771         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19772         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19773         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19774         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19775         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19776         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19777         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19778         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19779         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19780         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19781         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19782         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19783         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19784         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19785         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19786         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19787         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19788         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19789         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19790         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19791         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19792         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19793         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19794         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19795         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19796         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19797         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19798         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19799         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19800         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19801         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19802         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19803         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19804         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19805         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19806         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19807         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19808         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19809         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19810         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19811         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19812         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19813         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19814         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19815         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19816         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19817         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19818         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19819         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19820         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19821         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19822         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19823         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19824         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19825         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19826         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19827         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19828         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19829         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19830         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19831         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19832         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19833         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19834         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19835         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19836         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19837         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19838         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19839         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19840         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19841         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19842         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19843         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19844         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19845         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19846         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19847         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19848         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19849         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19850         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19851         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19852         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19853         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19854         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19855         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19856         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19857         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19858         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19859         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19860         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19861         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19862         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19863         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19864         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19865         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19866         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19867         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19868         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19869         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19870         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19871         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19872         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19873         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19874         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19875         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19876         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19877         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19878         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19879         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19880         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19881         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19882         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19883         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19884         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19885         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19886         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19887         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19888         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19889         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19890         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19891         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19892         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19893         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19894         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19895         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19896         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19897         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19898         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19899         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19900         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19901         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19902         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19903         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19904         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19905         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19906         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19907         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19908         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19909         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19910         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19911         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19912         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19913         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19914         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19915         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19916         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19917         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19918         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19919         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19920         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19921         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19922         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19923         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19924         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19925         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19926         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19927         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19928         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19929         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19930         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19931         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19932         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19933         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19934         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19935         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19936         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19937         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19938         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19939         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19940         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19941         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19942         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19943         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19944         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19945         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19946         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19947         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19948         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19949         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19950         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19951         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19952         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19953         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19954         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19955         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19956         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19957         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19958         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19959         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19960         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19961         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19962         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19963         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19964         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19965         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19966         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19967         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19968         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19969         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19970         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19971         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19972         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19973         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19974         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19975         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19976         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19977         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19978         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19979         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19980         (QI_FTYPE_V8DF_INT_QI): Ditto.
19981         (QI_FTYPE_V4DF_INT_QI): Ditto.
19982         (QI_FTYPE_V2DF_INT_QI): Ditto.
19983         (HI_FTYPE_V16SF_INT_HI): Ditto.
19984         (QI_FTYPE_V8SF_INT_QI): Ditto.
19985         (QI_FTYPE_V4SF_INT_QI): Ditto.
19986         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19988 2015-07-31  Richard Biener  <rguenther@suse.de>
19990         * gimple-fold.c (fold_gimple_assign): Remove folding of
19991         GIMPLE_BINARY_RHS.
19993 2015-07-31  Tom de Vries  <tom@codesourcery.com>
19995         PR tree-optimization/66846
19996         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19997         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19998         (expand_omp_target) [ENABLE_CHECKING]: Same.
19999         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
20000         cfun if !LOOPS_NEED_FIXUP.
20001         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
20002         that omp_for already has its own loop struct.
20003         * tree-parloops.c (create_phi_for_local_result)
20004         (create_call_for_reduction): Handle simple latch bb.
20005         (create_parallel_loop): Add simple latch bb to preserve
20006         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
20007         (gen_parallel_loop): Remove call to cancel_loop_tree.
20008         (parallelize_loops): Skip loops that are inner loops of parallelized
20009         loops.
20010         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
20011         verify_loop_structure.
20013 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
20015         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
20016         * config/v850/v850.md (RV_REGNUM): New constants.
20017         * config/v850/v850.c (v850_libcall_value): New functions.
20018         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
20019         (TARGET_LIBCALL_VALUE): Define.
20021 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
20023         * rtl.h (lowpart_subreg): Move in file.
20024         * loop-iv.c (lowpart_subreg): Move to...
20025         * simplify-rtx.c (lowpart_subreg): ...here.
20026           (simplify_binary_operation_1): Use lowpart_subreg instead of
20027           simplify_gen_subreg.
20028         * expr.c (expand_expr_real_2): Ditto.
20029         * emit-rtl.c (gen_lowpart_common): Ditto.
20030         * combine.c (gen_lowpart_for_combine): Ditto.
20031         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
20032           expand_debug_source_expr): Ditto.
20034 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
20036         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
20037         (expand_builtin_atomic_clear): Remove support for atomic_clear
20038         pattern.
20040 2015-07-30  Richard Biener  <rguenther@suse.de>
20042         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
20043         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
20044         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
20045         redundant operand canonicalization.
20047 2015-07-30  David Sherwood  <david.sherwood@arm.com>
20049         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
20050         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
20051         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
20052         * config/arm/arm.c (neon_valid_immediate): Likewise.
20053         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
20054         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
20055         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
20056         (expand_vec_perm_vpshufb2_vpermq): Likewise.
20057         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
20058         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
20059         * config/i386/sse.md
20060         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
20061         (*ssse3_palignr<mode>_perm): Likewise.
20062         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
20063         * config/spu/spu.c (arith_immediate_p): Likewise.
20064         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20065         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
20067 2015-07-30  Richard Biener  <rguenther@suse.de>
20069         * genmatch.c (decision_tree::gen_gimple): Merge with ...
20070         (decision_tree::gen_generic): ... this into ...
20071         (decision_tree::gen): ... this.
20072         (main): Adjust callers.
20074 2015-07-30  Richard Biener  <rguenther@suse.de>
20076         * genmatch.c (verbose): New global.
20077         (warning_at): Add overload with source_location.
20078         (capture_info::capture_info): Add bool whether generating gimple
20079         or generic.  Add gimple member.
20080         (capture_info::cinfo): Add capture member.
20081         (capture_info::walk_match): Record capture.  Warn on
20082         non-captured leafs.
20083         (capture_info::walk_c_expr): Add more fragments captures cannot
20084         escape through.  Warn on escaped captures.
20085         (dt_simplify::gen_1): Warn on operands we force to have no
20086         side-effects.
20087         (main): Initialize verbose.
20088         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
20090 2015-07-30  Richard Biener  <rguenther@suse.de>
20092         PR middle-end/67053
20093         * match.pd: Allow both operands to independently have conversion
20094         when simplifying compares of addresses.
20096 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
20098         PR target/66217
20099         PR target/67045
20100         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
20101         around those cases that need one.
20103 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
20105         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
20107 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20109         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
20110         New.  Copied from config/i386/gnu-user.h.
20111         (ASM_COMMENT_START): Likewise.
20112         (DBX_REGISTER_NUMBER): Likewise.
20114 2015-07-29  Richard Biener  <rguenther@suse.de>
20116         * gimple-fold.c (fold_gimple_cond): Remove.
20117         (fold_stmt_1): Do not call it.
20119 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
20121         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
20122         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
20124         * config/aarch64/aarch64-modes.def: Add HFmode.
20126         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20127         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20129         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20130         aarch64_promoted_type): New.
20132         (aarch64_float_const_representable_p): Disable HFmode.
20133         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20134         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20135         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20137         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20138         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20140         * config/aarch64/iterators.md (GPF_F16): New.
20142 2015-07-29  Richard Biener  <rguenther@suse.de>
20144         * match.pd: Merge address comparison patterns and make them
20145         handle some more cases.
20147 2015-07-29  Richard Biener  <rguenther@suse.de>
20149         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20150         (parser::parse_capture): Add bool argument on whether to reject
20151         unknown captures.
20152         (parser::parse_expr): Adjust.
20153         (parser::parse_op): Likewise.
20154         (parser::parse_pattern): Likewise.
20156 2015-07-29  Richard Biener  <rguenther@suse.de>
20158         * gimple-fold.c (has_use_on_stmt): New function.
20159         (replace_stmt_with_simplification): Use it to allow
20160         abnormals originally referenced in the stmt.
20161         (fold_stmt_1): Canonicalize operand order.
20163 2015-07-28  David Sherwood  <david.sherwood@arm.com>
20165         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20166         GET_MODE_INNER unconditionally.
20167         * config/spu/spu.c (arith_immediate_p): Likewise.
20168         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20169         * expmed.c (synth_mult): Remove check for VOIDmode result from
20170         GET_MODE_INNER.
20171         (expand_mult_const): Likewise.
20172         * fold-const.c (fold_binary_loc): Replace call to element_precision
20173         with call to GET_MODE_PRECISION.
20174         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20175         m->name.
20176         (emit_mode_inner): Likewise.
20177         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20178         result check.
20179         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20180         (GET_MODE_UNIT_PRECISION): Likewise.
20181         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20182         * simplify-rtx.c (simplify_immed_subreg): Likewise.
20183         * stor-layout.c (bitwise_type_for_mode): Update assert.
20184         (element_precision): Remove.
20186 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20188         * target-insns.def (reload_load_address): New targetm instruction
20189         pattern.
20190         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20192 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20194         * target-insns.def (atomic_test_and_set): New targetm instruction
20195         pattern.
20196         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20197         HAVE_*/gen_* interface.
20199 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20201         * target-insns.def (can_extend, ptr_extend): New targetm instruction
20202         patterns.
20203         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20204         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20205         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20206         * rtlanal.c (nonzero_bits1): Likewise.
20207         (num_sign_bit_copies1): Likewise.
20209 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20211         * target-insns.def (eh_return): New targetm instruction pattern.
20212         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20213         interface.
20214         * function.c (thread_prologue_and_epilogue_insns): Remove
20215         preprocessor condition.
20217 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20219         * target-insns.def (indirect_jump): New targetm instruction pattern.
20220         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20221         interface.
20223 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20225         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20226         instead of nonimmediate_operand.  Remove C condiition.
20228 2015-07-28  Richard Biener  <rguenther@suse.de>
20230         * match.pd: Add more simplification of address comparisons.
20232 2015-07-28  Richard Biener  <rguenther@suse.de>
20234         * match.pd: Re-order two cases in comparison with max/min
20235         value simplification to make it apply for bools.
20237 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20239         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20240         Handle simple SIGN_EXTEND or ZERO_EXTEND.
20241         (aarch64_rtx_costs): Properly strip extend or extract before
20242         passing down to rtx costs again.
20244 2015-07-28  Nick Clifton  <nickc@redhat.com>
20246         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20247         Optimizes the case where -mes0 is active and a constant symbolic
20248         address is used.
20249         * config/rl78/rl78-protos.h: Prototype the new function.
20250         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20252 2015-07-28  Tom de Vries  <tom@codesourcery.com>
20254         * tree-parloops.c (reduc_stmt_res): New function.
20255         (initialize_reductions, add_field_for_reduction)
20256         (create_phi_for_local_result, create_loads_for_reductions)
20257         (create_stores_for_reduction, build_new_reduction): Handle case that
20258         reduc_stmt is a phi.
20259         (gather_scalar_reductions): Allow double_reduc reductions.
20261 2015-07-28  Richard Biener  <rguenther@suse.de>
20263         * fold-const.c (fold_comparison): Remove equality folding
20264         of decl addresses ...
20265         * match.pd: ... here and merge with existing pattern.
20267 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20269         PR tree-optimization/66828
20270         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20271         from int64_t to uint64_t.
20273 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20275         * opts-common.c (read_cmdline_option): List DriverOnly enum values
20276         as valid only in the error message of the driver, not in the
20277         messages of the language compilers.
20279 2015-07-27  Tom de Vries  <tom@codesourcery.com>
20281         * tree-parloops.c (gather_scalar_reductions): Simplify function
20282         structure.
20284 2015-07-27  Marek Polacek  <polacek@redhat.com>
20286         * ipa-devirt.c (types_same_for_odr): Fix typo.
20288 2015-07-27  Jason Merrill  <jason@redhat.com>
20290         PR debug/66468
20291         * dwarf2out.c (gen_inlined_subroutine_die): Check
20292         cgraph_function_possibly_inlined_p.
20294 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20296         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20297         Place integer variant first.
20298         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20300 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20302         PR/63870
20303         * config/arm/arm-builtins.c (enum arm_builtins):
20304         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20305         (ARM_BUILTIN_NEON_BASE): Rename macro to....
20306         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20307         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20308         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20310 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20312         PR/63870
20313         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20314         Add qualifier_lane_index.
20315         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20316         (arm_getlane_qualifiers): Use qualifier_lane_index.
20317         (arm_lanemac_qualifiers): Rename to...
20318         (arm_mac_n_qualifiers): ...this.
20319         (LANEMAC_QUALIFIERS): Rename to...
20320         (MAC_N_QUALIFIERS): ...this.
20321         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20322         (arm_setlane_qualifiers): Use qualifier_lane_index.
20323         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20324         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20325         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20326         (arm_expand_neon_builtin): Handle qualifier_lane_index.
20328         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20329         * config/arm/arm.c (bounds_check): Likewise, improve error message.
20330         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20331         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20332         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20333         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20334         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20335         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20336         qualifiers to TERNOP_IMM.
20337         (vdup_lane): Change qualifiers to GETLANE.
20338         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20339         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20340         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20341         vqdmlsl_n): Change qualifiers to MAC_N.
20343         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20344         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20345         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20346         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20347         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20348         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20349         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20350         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20351         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20352         Remove call to neon_lane_bounds.
20354 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20356         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20357         Place integer variant first.
20359 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
20361         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20362         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20363         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20364         for armv6kz targets.
20365         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20366         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20367         (FL_FOR_ARCH6ZK): Remove.
20368         (FL_FOR_ARCH6KZ): New.
20369         (arm_arch6zk): New declaration.
20370         * config/arm/arm-tables.opt: Regenerate.
20371         * config/arm/arm.c (arm_arch6kz): New.
20372         (arm_option_override): Set arm_arch6kz.
20373         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20374         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20375         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20377 2015-07-27  Marek Polacek  <polacek@redhat.com>
20379         PR c++/66555
20380         PR c/54979
20381         * doc/invoke.texi: Document -Wtautological-compare.
20383 2015-07-27  Richard Biener  <rguenther@suse.de>
20385         * genmatch.c (decision_tree::gen_gimple): Split out large
20386         subtrees into separate functions.
20387         (decision_tree::gen_generic): Likewise.
20389 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
20391         * config/alpha/alpha.c: Use SUBREG_P predicate.
20392         * config/alpha/predicates.md: Ditto.
20394 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20396         * config.host (s390*-*-*): Include driver-native.c only when
20397         building with s390* as host *and* target.
20399 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
20401         PR target/66930
20402         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20403         T bit register modified_between_p check.
20405 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20407         * config/i386/i386.c: Use SUBREG_P predicate.
20408         * config/i386/i386.md: Ditto.
20409         * config/i386/sse.md: Ditto.
20410         * config/i386/predicates.md: Ditto.
20412 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20414         PR target/67004
20415         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20416         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20418 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20420         * Makefile.in: Remove use of TREEBROWSER.
20421         * config.in: Regenerated.
20422         * configure: Regenerated.
20423         * configure.ac: Remove definition of TREEBROWSER.
20424         * tree-browser.c: Removed.
20425         * tree-browser.def: Removed.
20427 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20429         * graphite-scop-detection.c: Include gimple-pretty-print.h.
20430         (stmt_simple_for_scop_p): Print when a stmt is not handled in
20431         Graphite.
20432         (scopdet_basic_block_info): Print when a loop or bb cannot be
20433         represented in Graphite.
20435 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20437         PR target/66648
20438         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
20439         execution guard when min_size is less than size_needed.
20441 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20443         * doc/install.texi: Document supported versions of ISL.
20445 2015-07-25  Jeff Law  <law@redhat.com>
20447         Revert:
20448         PR lto/66752
20449         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20450         unable to find X NE 0 in the tables, return X as the simplified
20451         condition.
20452         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20453         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20454         to VISISTED_BBS.  */
20455         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20456         after removing the control flow statement and unnecessary edges.
20458 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
20460         Revert:
20461         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20463         PR rtl-optimization/64164
20464         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20465         * tree-ssa-copyrename.c: Removed.
20466         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20467         -ftree-coalesce-vars.
20468         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20469         * common.opt (ftree-copyrename): Ignore.
20470         (ftree-coalesce-inlined-vars): Likewise.
20471         * doc/invoke.texi: Remove the ignored options above.
20472         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20473         * tree-ssa-coalesce.h: ... here.
20474         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20475         headers required by it.
20476         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20477         across variables when flag_tree_coalesce_vars.  Check register
20478         use and promoted modes to allow coalescing.  Moved to
20479         tree-ssa-coalesce.c.
20480         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20481         with its member functions to tree-ssa-coalesce.c.
20482         (var_map_base_init): Likewise.  Renamed to
20483         compute_samebase_partition_bases.
20484         (partition_view_normal): Drop want_bases parameter.
20485         (partition_view_bitmap): Likewise.
20486         * tree-ssa-live.h: Adjust declarations.
20487         * tree-ssa-coalesce.c: Include explow.h.
20488         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20489         default defs at the entry point.
20490         (dump_part_var_map): New.
20491         (compute_optimized_partition_bases): New, called by...
20492         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20493         of compute_samebase_partition_bases.  Adjust.
20494         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20495         * cfgexpand.c (leader_merge): New.
20496         (get_rtl_for_parm_ssa_default_def): New.
20497         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20498         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20499         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20500         redundant MEM attr setting.
20501         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20502         from...
20503         (expand_one_stack_var): ... this.  New wrapper to check and
20504         skip already expanded SSA partitions.
20505         (record_alignment_for_reg_var): New, factored out of...
20506         (expand_one_var): ... this.
20507         (expand_one_ssa_partition): New.
20508         (adjust_one_expanded_partition_var): New.
20509         (expand_one_register_var): Check and skip already expanded SSA
20510         partitions.
20511         (expand_used_vars): Don't create DECLs for anonymous SSA
20512         names.  Expand all SSA partitions, then adjust all SSA names.
20513         (pass::execute): Replace the loops that set
20514         SA.partition_to_pseudo from partition leaders and cleared
20515         DECL_RTL for multi-location variables, and that which used to
20516         rename vars and set attrs, with one that clears DECL_RTL and
20517         checks that PARMs and RESULTs default_defs match DECL_RTL.
20518         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20519         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20520         * explow.c (promote_ssa_mode): New.
20521         * explow.h (promote_ssa_mode): Declare.
20522         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20523         * function.c: Include cfgexpand.h.
20524         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20525         (use_register_for_parm_decl): Wrapper for the above to
20526         special-case the result_ptr.
20527         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20528         (split_complex_args): Take assign_parm_data_all argument.
20529         Pass it to rtl_for_parm.  Set up rtl and context for split
20530         args.
20531         (assign_parms_augmented_arg_list): Adjust.
20532         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20533         multiple locations.  Recognize split complex args.
20534         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20535         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20536         (assign_parm_setup_block): Prefer SSA-assigned location.
20537         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20538         if stack_parm is NULL.
20539         (assign_parm_setup_stack): Prefer SSA-assigned location.
20540         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20541         rtl before testing for pointer bounds.  Special-case result_ptr.
20542         (expand_function_start): Maybe reset DECL_RTL of result.
20543         Prefer SSA-assigned location for result and static chain.
20544         Factor out DECL_RESULT and SET_DECL_RTL.
20545         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20546         anonymous SSA names.  Use promote_ssa_mode.
20547         (get_temp_reg): Likewise.
20548         (remove_ssa_form): Adjust.
20549         * stor-layout.c (layout_decl): Don't set mem attributes of
20550         non-MEMs.
20551         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20552         and get its reg_usage for reg invalidation.
20553         (compute_bb_dataflow): Pass it insn.
20554         (emit_notes_in_bb): Likewise.
20556 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20558         * config/i386/i386.c (ix86_va_start): Remove
20559         unneeded !TARGET_64BIT check.
20560         (ix86_gimplify_va_arg): Ditto.
20562 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20564         * graphite-sese-to-poly.c (build_poly_scop): Always call
20565         rewrite_commutative_reductions_out_of_ssa.
20567 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20569         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
20570         flag_associative_math to FLOAT_TYPE_P.  Honour
20571         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
20573 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20575         PR c++/64079
20576         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
20577         and "%qD" in warning_at instead of "%q+D" in warning.
20579 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
20581         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
20582         (ix86_function_abi): Cleanup.
20584 2015-07-24  Michael Darling  <darlingm@gmail.com>
20586         PR other/66259
20587         * acinclude.m4: Reflects renaming of configure.in to configure.ac
20588         * configure: Likewise
20589         * configure.ac: Likewise
20590         * doc/install.texi: Likewise
20591         * doc/tm.texi: Likewise
20592         * doc/tm.texi.in: Likewise
20594 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20596         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
20597         manually swapping values.
20598         * cse.c (fold_rtx): Likewise.
20599         * lra-eliminations.c (form_sum): Likewise.
20601 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
20603         PR target/64003
20604         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
20605         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
20606         (*jcc_1, *jcc_2, jump, simple_return_internal)
20607         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
20608         Set length_nobnd attribute instead of length attribute.
20609         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
20610         (length_nobnd): Remove attribute.
20611         (length): Remove length_nobnd processing.
20613 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
20615         * gimplify.c (omp_default_clause): New function.  Reorganize flow
20616         for clarity. Broken out of ...
20617         (omp_notice_variable): ... here.
20619 2015-07-24  Gary Funck  <gary@intrepid.com>
20621         PR middle-end/66984
20622         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
20623         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
20625 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20627         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
20628         exit-first loop transform.
20630 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
20632         PR 66714
20633         * tree-cfg.c (struct replace_decls_d): New struct.
20634         (replace_block_vars_by_duplicates_1): New function.
20635         (replace_block_vars_by_duplicates): Use it to replace the decls
20636         in the value exprs by duplicates.
20638 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20640         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
20641         -shared, -symbolic, -rdynamic.
20643 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20645         PR target/65711
20646         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
20647         -dynamic-linker within %{!static %{!shared, and -rdynamic within
20648         %{!static.
20650 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20652         PR ipa/66566
20653         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
20654         edge summary is available.
20656 2015-07-24  Richard Biener  <rguenther@suse.de>
20658         * genmatch.c (struct dt_node): Add statistic fields.
20659         (dt_node::analyze): New method.
20660         (decision_tree::gen_gimple): Call analyze on the root node
20661         and print statistics to stderr.
20662         (decision_tree::gen_generic): Likewise.
20664 2015-07-24  Richard Biener  <rguenther@suse.de>
20666         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
20667         against the highest or lowest possible integer ...
20668         * match.pd: ... as patterns here.
20670 2015-07-24  Richard Biener  <rguenther@suse.de>
20672         * genmatch.c (struct capture_info): Add same_as field.
20673         (capture_info::capture_info): Initialize same_as.
20674         (capture_info::walk_match): Compute same_as.
20675         (capture_info::walk_result): Compute stuff for the leader.
20676         (capture_info::walk_c_expr): Likewise.
20677         (dt_simplify::gen_1): Only look at leaders when deciding
20678         to force no side-effects or emit side-effects of omitted operands.
20680 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20682         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
20683         reg note to the GPR -> FPR save instructions.
20685 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20687         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
20688         cheaper.
20689         (s390_expand_insv): Don't generate risbg pattern for constant zero
20690         sources.
20691         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
20692         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
20693         splitters.
20695 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20697         * config/s390/s390.c (s390_reorg): Clean up handling of processors
20698         with
20699         -mtune=
20700         (s390_issue_rate): Likewise.
20701         (s390_sched_reorder): Likewise.
20702         (s390_sched_variable_issue): Likewise.
20703         (s390_loop_unroll_adjust): Likewise.
20704         (s390_option_override):  Likewise.
20706 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20708         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
20709         processor capabilities with -march=native.
20710         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
20711         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
20712         (S390_TARGET_BITS_STRING): Macro to simplify specs.
20714 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20716         * config/s390/s390.c (s390_issue_rate): Handle
20717         PROCESSOR_2094_Z9_EC.
20718         (s390_option_override): Likewise.
20719         (s390_adjust_priority): Likewise.
20721 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20723         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20724         when cross compiling.
20726 2015-07-24  Richard Biener  <rguenther@suse.de>
20728         * fold-const.c (maybe_canonicalize_comparison_1): Move
20729         A code CST canonicalization ...
20730         * match.pd: ... to a pattern here.
20732 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
20734         Revert:
20735         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20736         PR target/63521
20737         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20738         (HONOR_REG_ALLOC_ORDER): Define.
20740 2015-07-24  Richard Biener  <rguenther@suse.de>
20742         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20743         * fold-const.c (fold_comparison): Move parameter does not
20744         alias &local simplification ...
20745         * match.pd: ... as a pattern here.
20747 2015-07-24  Richard Biener  <rguenther@suse.de>
20749         * gimple-fold.c (replace_stmt_with_simplification): Special-case
20750         valueizing call operands.
20751         * gimple-match-head.c (maybe_push_res_to_seq): Take
20752         number of call arguments from ops array.
20753         (do_valueize): New function.
20754         (gimple_simplify): Return true if valueization changed
20755         any operand even if the result didn't simplify further.
20757 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20759         PR middle-end/25530
20760         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20762 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20764         PR middle-end/25529
20765         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20767 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20769         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20770         instruction.
20772 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20774         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20775         clean up.
20777 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
20779         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20780         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
20781         targets here.
20782         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20783         ms_va_list_type_node initialization.
20785 2015-07-23  Jeff Law  <law@redhat.com>
20787         PR lto/66752
20788         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20789         unable to find X NE 0 in the tables, return X as the simplified
20790         condition.
20791         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20792         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20793         to VISISTED_BBS.  */
20794         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20795         after removing the control flow statement and unnecessary edges.
20797 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20799         * tree-pass.h (get_current_pass_name): Removed.
20801 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20803         PR rtl-optimization/64164
20804         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20805         * tree-ssa-copyrename.c: Removed.
20806         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20807         -ftree-coalesce-vars.
20808         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20809         * common.opt (ftree-copyrename): Ignore.
20810         (ftree-coalesce-inlined-vars): Likewise.
20811         * doc/invoke.texi: Remove the ignored options above.
20812         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20813         * tree-ssa-coalesce.h: ... here.
20814         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20815         headers required by it.
20816         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20817         across variables when flag_tree_coalesce_vars.  Check register
20818         use and promoted modes to allow coalescing.  Moved to
20819         tree-ssa-coalesce.c.
20820         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20821         with its member functions to tree-ssa-coalesce.c.
20822         (var_map_base_init): Likewise.  Renamed to
20823         compute_samebase_partition_bases.
20824         (partition_view_normal): Drop want_bases parameter.
20825         (partition_view_bitmap): Likewise.
20826         * tree-ssa-live.h: Adjust declarations.
20827         * tree-ssa-coalesce.c: Include explow.h.
20828         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20829         default defs at the entry point.
20830         (dump_part_var_map): New.
20831         (compute_optimized_partition_bases): New, called by...
20832         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20833         of compute_samebase_partition_bases.  Adjust.
20834         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20835         * cfgexpand.c (leader_merge): New.
20836         (get_rtl_for_parm_ssa_default_def): New.
20837         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20838         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20839         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20840         redundant MEM attr setting.
20841         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20842         from...
20843         (expand_one_stack_var): ... this.  New wrapper to check and
20844         skip already expanded SSA partitions.
20845         (record_alignment_for_reg_var): New, factored out of...
20846         (expand_one_var): ... this.
20847         (expand_one_ssa_partition): New.
20848         (adjust_one_expanded_partition_var): New.
20849         (expand_one_register_var): Check and skip already expanded SSA
20850         partitions.
20851         (expand_used_vars): Don't create DECLs for anonymous SSA
20852         names.  Expand all SSA partitions, then adjust all SSA names.
20853         (pass::execute): Replace the loops that set
20854         SA.partition_to_pseudo from partition leaders and cleared
20855         DECL_RTL for multi-location variables, and that which used to
20856         rename vars and set attrs, with one that clears DECL_RTL and
20857         checks that PARMs and RESULTs default_defs match DECL_RTL.
20858         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20859         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20860         * explow.c (promote_ssa_mode): New.
20861         * explow.h (promote_ssa_mode): Declare.
20862         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20863         * function.c: Include cfgexpand.h.
20864         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20865         (use_register_for_parm_decl): Wrapper for the above to
20866         special-case the result_ptr.
20867         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20868         (split_complex_args): Take assign_parm_data_all argument.
20869         Pass it to rtl_for_parm.  Set up rtl and context for split
20870         args.
20871         (assign_parms_augmented_arg_list): Adjust.
20872         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20873         multiple locations.  Recognize split complex args.
20874         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20875         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20876         (assign_parm_setup_block): Prefer SSA-assigned location.
20877         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20878         if stack_parm is NULL.
20879         (assign_parm_setup_stack): Prefer SSA-assigned location.
20880         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20881         rtl before testing for pointer bounds.  Special-case result_ptr.
20882         (expand_function_start): Maybe reset DECL_RTL of result.
20883         Prefer SSA-assigned location for result and static chain.
20884         Factor out DECL_RESULT and SET_DECL_RTL.
20885         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20886         anonymous SSA names.  Use promote_ssa_mode.
20887         (get_temp_reg): Likewise.
20888         (remove_ssa_form): Adjust.
20889         * stor-layout.c (layout_decl): Don't set mem attributes of
20890         non-MEMs.
20891         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20892         and get its reg_usage for reg invalidation.
20893         (compute_bb_dataflow): Pass it insn.
20894         (emit_notes_in_bb): Likewise.
20896 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
20898         PR target/66217
20899         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20900         prototype.
20901         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20902         (rs6000_emit_2insn_and): Handle dot forms.
20903         * config/rs6000/rs6000.md (and<mode>3): Adjust.
20904         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
20905         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20907 2015-07-23  Richard Biener  <rguenther@suse.de>
20909         * generic-match-head.c: Include cgraph.h.
20910         * gimple-match-head.c: Likewise.
20911         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20912         SSA names.
20913         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20914         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
20915         pattern.
20917 2015-07-23  Richard Biener  <rguenther@suse.de>
20919         * gimple-fold.c (fold_gimple_cond): Do not require folding
20920         results to pass valid_gimple_rhs_p.
20921         * tree-cfg.h (fold_cond_expr_cond): Remove.
20922         * tree-cfg.c (fold_cond_expr_cond): Likewise.
20923         (make_edges): Do not call it.
20924         * tree-inline.c (tree_function_versioning): Likewise.
20926 2015-07-23  Tom de Vries  <tom@codesourcery.com>
20928         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20929         vect_force_simple_reduction.
20930         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20931         (vect_is_simple_reduction_1): Add and handle
20932         need_wrapping_integral_overflow parameter.
20933         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20934         need_wrapping_integral_overflow parameter.
20935         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20936         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20937         decl.
20939 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
20941         PR tree-optimization/66926,66951
20942         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20943         INNER_LOOP and fix up condition for renaming virtual operands.
20945 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20947         * combine.c (try_combine): Use std::swap instead of manually
20948         swapping.
20950 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
20952         * config/mips/i6400.md: New file.
20953         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20954         (mips64r6): Likewise.
20955         (i6400): Define.
20956         * config/mips/mips-tables.opt: Regenerate.
20957         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20958         (mips_issue_rate): Add support for i6400.
20959         (mips_multipass_dfa_lookahead): Likewise.
20960         * config/mips/mips.h (TUNE_I6400): Define.
20961         * config/mips/mips.md: Include i6400.md.
20962         (processor): Add i6400.
20963         * doc/invoke.texi (-march=@var{arch}): Add i6400.
20965 2015-07-23  Richard Biener  <rguenther@suse.de>
20967         PR middle-end/66916
20968         * match.pd: Guard widen and sign-change comparison simplification
20969         with single_use.
20971 2015-07-23  Richard Biener  <rguenther@suse.de>
20973         PR tree-optimization/66945
20974         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20975         ::before_dom_children): Force the propagators idea of
20976         non-executable edges to materialize, not what the folder
20977         chooses.
20979 2015-07-23  Richard Biener  <rguenther@suse.de>
20981         * gimple.h (gimple_cond_make_false): Use 0 != 0.
20982         (gimple_cond_make_true): Use 1 != 0.
20984 2015-07-22  DJ Delorie  <dj@redhat.com>
20986         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20987         slashes.
20989         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20990         (ashrhi3): Likewise.
20991         (lshrhi3): Likewise.
20992         (movhi): Take advantage of zero-extend to load small constants.
20993         (movpsi): Likewise.
20994         (and<mode>3): Likewise.
20995         (zero_extendqihi2): Likewise.
20996         (zero_extendqisi2): New.
20997         * config/msp430/constraints.md (N,O): New.
20998         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
21000 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
21002         PR target/66954
21003         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
21004         to enum feature_priority and feature_list.
21005         (fold_builtin_cpu): Add F_AES to enum processor_features
21006         and isa_names_table.
21008 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
21010         PR driver/66737
21011         * config/i386/linux-common.h (MPX_SPEC): Use linker option
21012         for 64bit target only.
21014 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
21016         * config/nvptx/nvptx.c: Expand some comments.
21018 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
21020         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
21021         (cortex_a53_advsimd): ...This.
21023 2015-07-22  Richard Biener  <rguenther@suse.de>
21025         * genmatch.c (expr::gen_transform): Clarify error message
21026         and display location.
21028 2015-07-22  Richard Biener  <rguenther@suse.de>
21030         * genmatch.c (struct operand): Add location member.
21031         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
21032         constructors.
21033         (struct simplify): Remove match_location and result_location
21034         members.
21035         (elsehwere): Adjust.
21037 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
21039         * config/mips/m5100.md: New file.
21040         * config/mips/mips-cpus.def (m5100, m5101): Define.
21041         * config/mips/mips-tables.opt: Regenerate.
21042         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
21043         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
21044         -march=m5101 to -mips32r5.
21045         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
21046         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
21047         !-msoft-float.
21048         * config/mips/mips.md: Include m5100.md.
21049         (processor): Add m5100.
21050         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
21052 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
21054         * config/mips/mips-cpus.def (interaptiv): Define.
21055         * config/mips/mips-tables.opt: Regenerate.
21056         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
21057         -mips32r2.
21058         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
21059         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
21061 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
21063         PR target/63521
21064         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21065         (HONOR_REG_ALLOC_ORDER): Define.
21067 2015-07-22  Richard Biener  <rguenther@suse.de>
21069         PR tree-optimization/66952
21070         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
21071         blocks we end up executing unconditionally reset all SSA
21072         info such as range and alignment.
21073         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
21074         * tree-ssanames.c (reset_flow_sensitive_info): New function.
21076 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
21078         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
21079         typo in attribute.
21081 2015-07-22  Richard Biener  <rguenther@suse.de>
21083         * genmatch.c (parser::parse_result): Properly handle
21084         match with result operands and conditions.
21086 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
21088         PR target/63870
21089         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21090         Add qualifier_struct_load_store_lane_index.
21091         (aarch64_types_loadstruct_lane_qualifiers): Use
21092         qualifier_struct_load_store_lane_index for lane index argument for
21093         last argument.
21094         (aarch64_types_storestruct_lane_qualifiers): Ditto.
21095         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21096         (aarch64_simd_expand_args): Add new argument describing mode of
21097         builtin. Check lane bounds for arguments with
21098         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21099         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
21100         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21101         (aarch64_simd_expand_builtin): Handle arguments with
21102         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
21103         aarch64_simd_expand_args.
21104         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
21105         vst[234]_lane with BUILTIN_VALLDIF.
21106         * config/aarch64/aarch64-simd.md:
21107         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
21108         endianness reversal on lane index.
21109         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
21110         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
21111         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
21112         (vec_store_lanesci_lane<mode>): Ditto.
21113         (vec_store_lanesxi_lane<mode>): Ditto.
21114         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
21115         reversal of lane index.
21116         (aarch64_ld3_lane<mode>): Ditto.
21117         (aarch64_ld4_lane<mode>): Ditto.
21118         (aarch64_st2_lane<mode>): Ditto.
21119         (aarch64_st3_lane<mode>): Ditto.
21120         (aarch64_st4_lane<mode>): Ditto.
21121         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
21122         to qmode. Add new mode parameter. Update uses.
21123         (__LD3_LANE_FUNC): Ditto.
21124         (__LD4_LANE_FUNC): Ditto.
21125         (__ST2_LANE_FUNC): Ditto.
21126         (__ST3_LANE_FUNC): Ditto.
21127         (__ST4_LANE_FUNC): Ditto.
21129 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
21131         * doc/invoke.texi (Language Independent Options): Rename node to
21132         Diagnostic Message Formatting Options.
21134 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
21136         PR ipa/66424.
21137         * lra-remat.c (operand_to_remat): Prevent using insns with input
21138         subregs processed separately by IRA.
21140 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
21142         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21143         straight loops.
21144         (single_imm_use): Check for iterator node.
21145         (num_imm_uses): Likewise.
21146         * tree-ssa-operands.c (has_zero_uses_1): Delete.
21147         (single_imm_use_1): Check for iterator node.
21149 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21150             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21152         * configure.ac: Add check for new options in isl-0.15.
21153         * config.in, configure: Rebuilt.
21154         * graphite-blocking.c: Include <isl/constraint.h>
21155         * graphite-interchange.c,  graphite-poly.c: Likewise.
21156         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21157         * graphite.c: Likewise.
21158         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21159         <isl/union_set.h>.
21160         * graphite-dependences.c: Include <isl/constraint.h>.
21161         (max_number_of_out_dimensions): Returns isl_stat.
21162         (extend_schedule_1): Likewise
21163         (extend_schedule): Corresponding changes.
21164         * graphite-optimize-isl.c: Include <isl/constraint.h> and
21165         <isl/union_set.h>.
21166         (getSingleMap): Change return type of isl_stat.
21167         (optimize_isl): Conditionally use
21168         isl_options_set_schedule_serialize_sccs.
21169         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21170         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21172 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
21174         PR target/66956
21175         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21176         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21178 2015-07-21  Richard Biener  <rguenther@suse.de>
21180         PR tree-optimization/66948
21181         * genmatch.c (capture_info::walk_match): Also recurse to
21182         captures.  Properly compute expr state from captures of
21183         captures.
21184         * match.pd: Add single-use guards to
21185         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21187 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
21189         * config/nvptx/mkoffload.c (process): Add static destructor call.
21191 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21193         PR middle-end/66915
21194         * match.pd (A - B -> A + (-B)): Don't allow folding
21195         when type if a fixed-point type.
21197 2015-07-20  DJ Delorie  <dj@redhat.com>
21199         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21200         (iorqi3_real): Likewise for set1.
21202 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
21204         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21205         for !TARGET_64BIT.
21207 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
21209         * graphite-isl-ast-to-gimple.c:
21210         Refactor so that each function can access 'region'. This will help
21211         maintain a parameter rename_map within a region.
21213 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
21215         * config/rs6000/rs6000.md (*lt0_disi): New.
21217 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
21219         PR target/66217
21220         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
21221         "available letters" comment.
21222         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21223         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21224         and_2rld_operand):  Delete.
21225         (and_operand): Adjust.
21226         (rotate_mask_operator): New.
21227         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21228         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21229         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21230         extract_ME): Delete.
21231         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21232         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21233         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21234         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21235         rs6000_emit_2insn_and): New.
21236         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21237         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21238         includes_rldic_lshift_p, includes_rldicr_lshift_p,
21239         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21240         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21241         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21242         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21243         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21244         rs6000_emit_2insn_and): New.
21245         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21246         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21247         handling.
21248         <NOT>: Don't fall through to next case.
21249         <AND>: Handle the various rotate-and-mask cases directly.
21250         <IOR>: Always cost as one insn.
21251         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21252         (and<mode>3): Adjust expander for the new patterns.
21253         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21254         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21255         (*and<mode>3_imm_dot_shifted): New.
21256         (*and<mode>3_mask): Delete, rewrite as ...
21257         (and<mode>3_mask): ... New.
21258         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21259         (andsi3_internal0_nomc): Delete.
21260         (*andsi3_internal6): Delete.
21261         (*and<mode>3_2insn): New.
21262         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21263         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21264         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21265         *insvdi_internal3): Delete.
21266         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21267         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21268         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21269         *ior<mode>_mask): New.
21270         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21271         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21272         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21273         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21274         Delete.
21275         (ashr<mode>3): Delete expander.
21276         (*ashr<mode>3): Rename to ...
21277         (ashr<mode>3): ... This.
21278         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21279         (*rotldi3_internal4, *rotldi3_internal5 and split,
21280         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21281         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21282         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21283         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21284         (splitter for loading a mask): Adjust.
21285         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21287 2015-07-20  Marek Polacek  <polacek@redhat.com>
21289         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21290         output_add_clobbers, output_added_clobbers_hard_reg_p,
21291         gen_rtx_scratch): Remove declarations.
21293 2015-07-20  Marek Polacek  <polacek@redhat.com>
21295         PR c++/55095
21296         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21298 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21300         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21301         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21303 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21305         * combine.c (combine_simplify_rtx): Move simplification step
21306         before various transformations/substitutions.
21308 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
21310         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21311         (struct int_traits): Likewise.
21313 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21315         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21316         function to vmsdbgout_function_decl.
21318 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21320         PR target/66922
21321         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21322         from misaligned positions.
21323         (ix86_expand_pinsr): Reject insertions to misaligned positions.
21325 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
21327         PR middle-end/46851
21328         PR middle-end/60340
21329         * Makefile.in: Removed omega.o.
21330         * common.opt: Document flag fcheck-data-deps as deprecated.
21331         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21332         its associated params: omega-max-vars, omega-max-geqs,
21333         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21334         omega-max-keys, omega-eliminate-redundant-constraints.
21335         * doc/loop.texi: Remove all the section on Omega.
21336         * graphite-blocking.c: Include missing params.h: it used to be
21337         included through tree-data-ref.h and omega.h.
21338         * graphite-isl-ast-to-gimple.c: Same.
21339         * graphite-optimize-isl.c: Same.
21340         * graphite-sese-to-poly.c: Same.
21341         * graphite.c: Same.
21342         * omega.c: Remove.
21343         * omega.h: Remove.
21344         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21345         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21346         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21347         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21348         * passes.def: Remove pass_check_data_deps.
21349         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21350         (dump_conflict_function): Same.
21351         (dump_subscript): Same.
21352         (print_direction_vector): Same.
21353         (print_dir_vectors): Same.
21354         (print_lambda_vector): Same.
21355         (print_dist_vectors): Same.
21356         (dump_data_dependence_relation): Same.
21357         (dump_data_dependence_relations): Same.
21358         (dump_dist_dir_vectors): Same.
21359         (dump_ddrs): Same.
21360         (init_omega_eq_with_af): Removed.
21361         (omega_extract_distance_vectors): Removed.
21362         (omega_setup_subscript): Removed.
21363         (init_omega_for_ddr_1): Removed.
21364         (init_omega_for_ddr): Removed.
21365         (ddr_consistent_p): Removed.
21366         (compute_affine_dependence): Do not use omega to check data
21367         dependences.
21368         (compute_data_dependences_for_bb): Removed.
21369         (analyze_all_data_dependences): Removed.
21370         (tree_check_data_deps): Removed.
21371         * tree-data-ref.h: Do not include omega.h.
21372         (compute_data_dependences_for_bb): Removed.
21373         (tree_check_data_deps): Removed.
21374         * tree-ssa-loop.c (pass_check_data_deps): Removed.
21375         (make_pass_check_data_deps): Removed.
21376         * tree-ssa-phiopt.c: Include params.h.
21377         * tree-vect-data-refs.c: Same.
21378         * tree-vect-slp.c: Same.
21380 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21382         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21383         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
21384         (mem->fpreg splitters): Ditto.
21385         (general_operand->nonimmediate_operand splitter): Use explicit modes.
21386         Disable DFmode for TARGET_64BIT.
21388 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
21390         PR target/66906
21391         * config/i386/i386.c (ix86_expand_prologue): Replicate static
21392         chain on the stack.
21394 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21396         * config/nvptx/mkoffload.c (process): Constify host data.
21397         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21398         Constify host data.
21399         (generate_host_descr_file): Likewise.
21401 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
21402             Sebastian Pop  <s.pop@samsung.com>
21404         PR middle-end/61929
21405         * graphite-dependences.c (add_pdr_constraints): Renamed
21406         pdr->extent to pdr->subscript_sizes.
21407         * graphite-interchange.c (build_linearized_memory_access): Add
21408         back all gcc_assert's that the "isl_int to isl_val conversion"
21409         patch has removed.  Refactored.
21410         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21411         * graphite-poly.c (new_poly_dr): Same.
21412         (free_poly_dr): Same.
21413         * graphite-poly.h (struct poly_dr): Same.
21414         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21415         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21416         * graphite-scop-detection.h: Fix space.
21417         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21418         back all gcc_assert's removed by a previous patch.
21419         (wrap): Remove the_isl_ctx global variable that the same patch has
21420         added.
21421         (build_loop_iteration_domains): Same.
21422         (add_param_constraints): Same.
21423         (pdr_add_data_dimensions): Same.  Refactored.
21424         (build_poly_dr): Renamed extent to subscript_sizes.
21426 2015-07-17  Marek Polacek  <polacek@redhat.com>
21428         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
21429         * match.pd: ... here.
21431 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21433         * config/nvptx/mkoffload.c (process): Constify target data.
21434         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21435         Constify target data.
21436         (generate_target_offloadend_file): Likewise.
21438 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
21440         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
21441         to allow renaming of PHI arguments on edges incoming from outer
21442         loop header, add corresponding check before start PHI iterator.
21443         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
21444         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
21445         with true force_vectorize.  Set-up dominator for outer loop too.
21446         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
21447         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
21448         was marked with force_vectorize and has restricted cfg.
21449         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
21450         inner loop.
21451         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21452         do peeling for outer loops.
21454 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
21455             Matthias Klose  <doko@ubuntu.com>
21457         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
21458         build-sysroot, sysroot from the `Miscenalleous configure options' to
21459         the `Directories' section and strip trailing `/' from with_sysroot.
21460         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
21461         * configure: Regenerated.
21463 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
21465         PR target/66824
21466         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
21467         (TARGET_HARD_DF_REGS): Ditto.
21468         (TARGET_HARD_XF_REGS): Ditto.
21469         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
21470         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
21471         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
21472         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
21473         (*movsf_internal): Add alternatives 16 and 17. Enable
21474         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
21476 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
21478         PR rtl-optimization/66891
21479         * calls.c (expand_call): Wrap precompute_register_parameters with
21480         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
21482 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
21484         * config/nvptx/mkoffload.c (process): Constify mapping variables.
21485         Define target data struct and initialize it.
21487 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
21489         PR rtl-optimization/66626
21490         * ira.h (emit-rtl.h): Include.
21491         (non_spilled_static_chain_regno_p): New.
21492         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
21493         unless it is non spilled static chain pseudo.
21494         (assign_hard_rego): Spill memory profitable allocno unless it is
21495         non spilled static chain pseudo.
21496         (allocno_spill_priority_compare): Put non spilled static chain
21497         pseudo at the end of sorted array.
21498         (improve_allocation): Do nothing if we have static chain and
21499         non-local goto.
21500         (allocno__priority_compare_func): Put non spilled static chain
21501         pseudo at the beginning of sorted array.
21502         (move_spill_restore): Ignore non spilled static chain pseudo.
21503         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
21504         to non spilled static chain pseudo.
21505         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
21506         pseudo at the beginning of sorted array.
21507         (spill_for): Spill non spilled static chain pseudo last.
21508         * lra-constraints.c (lra_constraints): Remove static chain pseudo
21509         check for equivalence.
21511 2015-07-16  Martin Liska  <mliska@suse.cz>
21513         PR ipa/66896.
21514         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
21515         dst_ctx if it does not exist.
21517 2015-07-16  Martin Liska  <mliska@suse.cz>
21519         * hash-set.h (remove): New function.
21520         (iterator): New iteration class for hash_set.
21522 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21524         * genattrtab.c (make_canonical): Add a file_location parameter.
21525         Use fatal_at rather than fatal.
21526         (get_attr_value): Likewise.  Update call to make_canonical.
21527         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
21528         (make_internal_attr): Update calls accordingly.
21530 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21532         * read-md.h (message_with_line, error_with_line): Delete.
21533         * read-md.c (message_with_line, error_with_line): Delete.
21534         * gensupport.h: Include read-md.h.
21535         (md_rtx_info): New structure.
21536         (read_md_rtx): Use it.  Return a bool success value.
21537         * gensupport.c (read_md_rtx): Likewise.
21538         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
21539         (main): Update after interface changes.
21540         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
21541         (main): Update after interface changes.
21542         * genattrtab.c (insn_code_number): Delete.
21543         (optimize_attrs): Add a max_insn_code parameter and use it instead
21544         of insn_code_number.
21545         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
21546         Use *_at rather than *_with_line functions.
21547         (gen_insn): Likewise.
21548         (gen_delay): Likewise.
21549         (gen_insn_reserv): Likewise.
21550         (gen_bypass): Take an md_rtx_info rather than an rtx.
21551         (main): Update after interface changes.  Use a local max_insn_code
21552         variable instead of insn_code_number.
21553         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
21554         an rtx.  Use fatal_at rather than fatal.
21555         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
21556         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
21557         (gen_absence_set, gen_final_absence_set, gen_automaton)
21558         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
21559         (main): Update after interface changes.
21560         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
21561         and code number.
21562         (main): Update after interface changes.
21563         * genconditions.c (main): Use new read_md_rtx interface.
21564         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
21565         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
21566         (main): Update after interface changes.
21567         * genemit.c (insn_code_number, insn_index_number): Delete.
21568         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21569         Use fatal_at rather than fatal.
21570         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
21571         rather than fatal.
21572         (gen_split): Likewise.
21573         (main): Update after interface changes.
21574         * genextract.c (line_no): Delete.
21575         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21576         Update call to walk_rtx.
21577         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
21578         rather than message_with_line.
21579         (walk_rtx): Add an md_rtx_info argument.  Update call to
21580         VEC_safe_set_locstr.
21581         (main): Update after interface changes.
21582         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
21583         and lineno.  Use error_at rather than separate message_with_line
21584         calls and have_error assignments.
21585         (main): Update after interface changes.
21586         * genmddump.c (main): Use new read_md_rtx interface.
21587         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
21588         (main): Update after interface changes.
21589         * genoutput.c (next_code_number): Delete.
21590         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21591         (gen_peephole, gen_expand, gen_split): Likewise.
21592         (note_constraint): Likewise.  Use *_at rather than *_with_line
21593         functions.
21594         (main): Update after interface changes.
21595         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
21596         rtx and lineno.
21597         (main): Update after interface changes.
21598         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
21599         than an rtx and lineno.
21600         (process_define_constraint): Likewise.
21601         (process_define_register_constraint): Likewise.
21602         (main): Update after interface changes.
21603         * genrecog.c (next_insn_code, pattern_lineno): Delete.
21604         (validate_pattern): Replace top-level rtx with an md_rtx_info.
21605         Use *_at rather than *_with_line functions.
21606         (match_pattern_2): Likewise.
21607         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
21608         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
21609         Use *_at rather than *_with_line functions.
21610         * gentarget-def.c (add_insn): New function.
21611         (main): Use it.  Use new read_md_rtx interface.
21613 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21615         * gensupport.h (compute_test_codes): Take a file_location rather
21616         than a line number.
21617         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
21618         rather than *_with_line functions.
21619         (process_define_predicate): Update call to compute_test_codes.
21620         * genpreds.c (validate_exp): Take a file_location rather than a
21621         line number.  Use *_at functions rather than *_with_line functions.
21622         (process_define_predicate): Update call to validate_exp.
21623         (constraint_data): Replace lineno field with a file_location.
21624         (add_constraint): Take a file_location rather than a line number.
21625         Use *_at functions rather than *_with_line functions.  Fix error
21626         message for address constraints.  Update after changes to
21627         validate_exp, constraint_data and compute_test_codes.
21628         (process_define_constraint): Update accordingly.
21629         (process_define_register_constraint): Likewise.
21631 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21633         * genoutput.c (data): Use a file_location to record the source
21634         position.
21635         (nothing): Delete.
21636         (idata, idata_end): Remove initialization.
21637         (constraint_data): Replace lineno with a file_location.
21638         (output_insn_data): Update after changes to data.
21639         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
21640         (scan_operands): Likewise, using *_at rather than *_with_line
21641         functions.
21642         (process_template): Likewise.
21643         (validate_insn_alternatives): Likewise.
21644         (validate_insn_operands): Likewise.
21645         (validate_optab_operands): Likewise.
21646         (init_insn_for_nothing): Initialize idata and idata_end.
21647         (note_constraint): Update after changes to constraint_data,
21648         using at rather than with_line functions.
21649         (mdep_constraint_len): Take a file_location rather than a
21650         line number.  Use at rather than with_line functions.
21652 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21654         * read-md.h (fatal_at): Declare.
21655         * read-md.c (fatal_at): New function.
21656         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
21657         to record the source position.
21658         (check_attr_test): Take a file_location instead of a line number.
21659         Use fatal_at instead of fatal.
21660         (check_attr_value): Update after above changes, using "at"
21661         rather than "with_line" reporting functions.
21662         (convert_set_attr_alternative): Likewise.
21663         (gen_attr): Likewise.
21664         (check_defs): Likewise.  Don't assign to read_md_filename.
21665         (gen_insn): Update initialization after above changes.
21666         (gen_delay): Likewise.
21667         (write_insn_cases): Print the filename for a define_peephole.
21668         (gen_insn_reserv): Take a line number as argument and update
21669         the call to check_attr_test.
21670         (main): Pass a line number to gen_insn_reserv.
21672 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21674         * read-md.h (file_location): New structure.
21675         (directive_handler_t): Take a file_location rather than a line number.
21676         (message_at, error_at): Declare.
21677         (read_skip_construct): Delete.
21678         * read-md.c (message_with_line_1): Replace with...
21679         (message_at_1): ...this new function.
21680         (message_at, error_at): New functions.
21681         (message_with_line, error_with_line): Update to use message_at_1.
21682         (handle_enum): Take a file_location rather than a line number
21683         and use error_at for error reporting.
21684         (handle_include): Likewise.
21685         (read_skip_construct): Likewise.  Make static.
21686         (handle_file): Update after above changes.  Pass a file_location
21687         rather than a line number to handle_directive.
21688         * gensupport.c (queue_elem): Replace separate filename and lineno
21689         with a file_location.
21690         (queue_pattern): Replace filename and lineno arguments with a
21691         file_location.  Update after change to queue_elem.
21692         (process_define_predicate): Replace lineno argument with a
21693         file_location and use error_at for error reporting.  Update
21694         after above changes.
21695         (process_rtx): Likewise.
21696         (subst_pattern_match): Likewise.
21697         (get_alternatives_number): Likewise.
21698         (alter_predicate_for_insn): Likewise.
21699         (rtx_handle_directive): Likewise.
21700         (is_predicable): Update after above changes, using error_at rather
21701         than error_with_line.
21702         (has_subst_attribute): Likewise.
21703         (identify_predicable_attribute): Likewise.
21704         (alter_attrs_for_subst_insn): Likewise.
21705         (process_one_cond_exec): Likewise.
21706         (process_substs_on_one_elem): Likewise.
21707         (process_define_subst): Likewise.
21708         (check_define_attr_duplicates): Likewise.
21709         (read_md_rtx): Update after change to queue_elem.
21711 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21713         * genoutput.c (next_index_number): Delete.
21714         (data): Remove index_number.
21715         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
21716         (main): Remove manipulation of next_index_number.
21718 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21720         * genattrtab.c (check_attr_value): Remove handling of null attrs.
21721         (make_canonical): Likewise.
21723 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
21725         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21726         instead of adjust_address_nv.
21727         (restore_stack_nonlocal): Likewise.
21728         (nonlocal_goto): Likewise.
21730 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21732         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21733         not have a corresponding loop header phi.
21735 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21737         * tree-parloops.c (create_loads_for_reductions): Handle case that
21738         reduction is unused.
21740 2015-07-16  Richard Biener  <rguenther@suse.de>
21742         PR tree-optimization/66894
21743         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21744         about deriving NE_EXPR from truncated values.
21746 2015-07-16  Martin Liska  <mliska@suse.cz>
21748         * alloc-pool.h
21749         (object_allocator): Add new class.
21750         (pool_allocator::initialize): Use the underlying class.
21751         (pool_allocator::allocate): Likewise.
21752         (pool_allocator::remove): Likewise.
21753         (operator new): A new generic allocator.
21754         * asan.c (struct asan_mem_ref): Remove unused members.
21755         (asan_mem_ref_new): Replace new operator with
21756         object_allocator::allocate.
21757         (free_mem_ref_resources): Change deallocation.
21758         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21759         with object_allocator.
21760         * config/sh/sh.c (add_constant): Replace new operator with
21761         object_allocator::allocate.
21762         (sh_reorg): Change call to a release method.
21763         * cselib.c (struct elt_list): Remove unused members.
21764         (new_elt_list): Replace new operator with
21765         object_allocator::allocate.
21766         (new_elt_loc_list): Likewise.
21767         (new_cselib_val): Likewise.
21768         (unchain_one_elt_list): Change delete operator with remove method.
21769         (unchain_one_elt_loc_list): Likewise.
21770         (unchain_one_value): Likewise.
21771         (cselib_finish): Release newly added static allocators.
21772         * cselib.h (struct cselib_val): Remove unused members.
21773         (struct elt_loc_list): Likewise.
21774         * df-problems.c (df_chain_alloc): Replace pool_allocator with
21775         object_allocator.
21776         * df-scan.c (struct df_scan_problem_data): Likewise.
21777         (df_scan_alloc): Likewise.
21778         * df.h (struct dataflow): Likewise.
21779         * dse.c (struct read_info_type): Likewise.
21780         (struct insn_info_type): Likewise.
21781         (struct dse_bb_info_type): Likewise.
21782         (struct group_info): Likewise.
21783         (struct deferred_change): Likewise.
21784         (get_group_info): Likewise.
21785         (delete_dead_store_insn): Likewise.
21786         (free_read_records): Likewise.
21787         (replace_read): Likewise.
21788         (check_mem_read_rtx): Likewise.
21789         (scan_insn): Likewise.
21790         (dse_step1): Likewise.
21791         (dse_step7): Likewise.
21792         * et-forest.c (struct et_occ): Remove unused members.
21793         (et_new_occ): Use allocate instead of new operator.
21794         (et_new_tree): Likewise.
21795         (et_free_tree): Call release method explicitly.
21796         (et_free_tree_force): Likewise.
21797         (et_free_pools): Likewise.
21798         (et_split): Use remove instead of delete operator.
21799         * et-forest.h (struct et_node): Remove unused members.
21800         * ipa-cp.c: Change pool_allocator to object_allocator.
21801         * ipa-inline-analysis.c: Likewise.
21802         * ipa-profile.c: Likewise.
21803         * ipa-prop.c: Likewise.
21804         * ipa-prop.h: Likewise.
21805         * ira-build.c (initiate_cost_vectors): Cast return value.
21806         (ira_allocate_cost_vector): Likewise.
21807         * ira-color.c (struct update_cost_record): Remove unused members.
21808         * lra-int.h (struct lra_live_range): Likewise.
21809         (struct lra_copy): Likewise.
21810         (struct lra_insn_reg): Likewise.
21811         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21812         * lra.c (new_insn_reg): Replace new operator with allocate method.
21813         (free_insn_regs): Same for operator delete.
21814         (finish_insn_regs): Release new static allocator.
21815         (finish_insn_recog_data): Likewise.
21816         (lra_free_copies): Replace delete operator with remove method.
21817         (lra_create_copy): Replace operator new with allocate method.
21818         (invalidate_insn_data_regno_info): Same for remove method.
21819         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21820         (free_debug_insn_changes): Replace delete operator with remove method.
21821         (replace_oldest_value_reg): Replace operator new with allocate method.
21822         (pass_cprop_hardreg::execute): Release new static variable.
21823         * sched-deps.c (sched_deps_init): Change pool_allocator to
21824         object_allocator.
21825         * sel-sched-ir.c: Likewise.
21826         * sel-sched-ir.h: Likewise.
21827         * stmt.c (expand_case): Likewise.
21828         (expand_sjlj_dispatch_table): Likewise.
21829         * tree-sra.c (struct access): Remove unused members.
21830         (struct assign_link): Likewise.
21831         (sra_deinitialize): Release newly added static pools.
21832         (create_access_1):Replace operator new with allocate method.
21833         (build_accesses_from_assign): Likewise.
21834         (create_artificial_child_access): Likewise.
21835         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21836         pool_allocator to object_allocator.
21837         * tree-ssa-pre.c: Likewise.
21838         * tree-ssa-reassoc.c: Likewise.
21839         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21840         * tree-ssa-strlen.c: Likewise.
21841         * tree-ssa-structalias.c: Likewise.
21842         * var-tracking.c (onepart_pool_allocate): New function.
21843         (unshare_variable): Use the newly added function.
21844         (variable_merge_over_cur): Likewise.
21845         (variable_from_dropped): Likewise.
21846         (variable_was_changed): Likewise.
21847         (set_slot_part): Likewise.
21848         (emit_notes_for_differences_1): Likewise.
21849         (vt_finalize): Release newly added static pools.
21851 2015-07-16  Martin Jambor  <mjambor@suse.cz>
21853         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
21854         all uses.  Fix two typos in its general comment.
21855         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
21857 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
21859         * config/i386/linux-common.h (LINK_MPX): New.
21860         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21861         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21862         indicating '-z bndplt' support by linker.
21863         * configure: Regenerate.
21864         * config.in: Regenerate.
21866 2015-07-16  Richard Biener  <rguenther@suse.de>
21868         * fold-const.c (fold_widened_comparison): Remove.
21869         (fold_sign_changed_comparison): Likewise.
21870         (fold_comparison): Move widened and sign-changed comparison
21871         simplification ...
21872         * match.pd: ... to patterns here.
21873         * generic-match-head.c: Include target.h.
21874         * gimple-match-head.c: Likewise.
21876 2015-07-16  Richard Biener  <rguenther@suse.de>
21878         * tree-ssa-dom.c (dom_valueize): New function.
21879         (record_temporary_equivalences): Also record equivalences
21880         for dominating stmts that have uses of equivalences we are
21881         about to record.
21883 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
21885         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21886         add_autoinc_candidates.
21887         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21888         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21889         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21890         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21891         Call new function.
21892         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21893         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21894         Remove parameter struct iv*.  Call add_autoinc_candidates here.
21895         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21896         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21897         Call new function.
21898         (find_iv_candidates): Call new functions.
21900 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
21902         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21903         uninitialized-variable warning.
21905 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21907         PR target/65249
21908         * config/sh/sh.md (movdi): Split simple reg move to two movsi
21909         when the destination is R0.
21911 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
21913         PR target/66866
21914         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21915         * config/i386/i386.c (ix86_expand_pextr): New function.
21916         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
21917         for non-lowpart subregs.
21918         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21919         (insv<mode>): Use SWI248 mode iterator.
21920         (insv<mode>_1): Ditto.
21922 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21923             Sebastian Pop  <s.pop@samsung.com>
21925         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21926         iterator to use_stmt.
21928 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21929             Sebastian Pop <s.pop@samsung.com>
21931         * graphite-scop-detection.c (build_scops_1): Discard scops for
21932         which entry==exit.
21934 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21935             Sebastian Pop <s.pop@samsung.com>
21937         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21938         case of a return statement in scop.
21940 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21941             Sebastian Pop <s.pop@samsung.com>
21943         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21944         INTEGER_TYPE parameters.
21945         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21946         VECTOR_CST in scan_tree_for_params.
21947         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21949 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21951         * gimple-pretty-print.h: Don't include pretty-print.h.
21952         * tree-streamer.h: Don't include lto-streamer.h.
21953         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21954         * gimple-streamer-in.c: Remove redundant includes.
21955         * gimple-streamer-out.c: Likewise.
21956         * ipa-devirt.c: Likewise.
21957         * ipa-icf.c: Likewise.
21958         * ipa-inline-analysis.c: Likewise.
21959         * ipa-polymorphic-call.c: Likewise.
21960         * ipa-profile.c: Likewise.
21961         * ipa-prop.c: Likewise.
21962         * ipa-pure-const.c: Likewise.
21963         * lto-cgraph.c: Likewise.
21964         * lto-streamer-in.c: Likewise.
21965         * lto-streamer-out.c: Likewise.
21966         * lto-streamer.c: Likewise.
21967         * tree-streamer-in.c: Likewise.
21968         * tree-streamer-out.c: Likewise.
21969         * tree-streamer.c: Likewise.
21971 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21973         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21974         include input.h.
21975         * opts.c: Remove multiline #include comment.
21977 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21979         * config/nvptx/mkoffload.c (process): Add C++ protection to
21980         emitted code.
21982 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21984         PR target/66854
21985         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21986         null before IEEE 128-bit floating point support patch.
21988 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21990         * simplify-rtx.c (simplify_ternary_operation): Add simplification
21991         for (!c) != {0,...,0} ? a : b for vector modes.
21993 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
21994             Martin Jambor  <mjambor@suse.cz>
21996         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21997         struct func_body_info* instead of struct ipa_node_params*, expecting
21998         fbi->info to be filled in.  Replace throughout.  Adjust call to
21999         ipa_load_from_parm_agg.
22000         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
22001         instead of struct ipa_node_params*.  Adjust calls to other functions
22002         so that they pass either fbi or fbi->info.
22003         (set_switch_stmt_execution_predicate): Likewise.
22004         (will_be_nonconstant_predicate): Likewise.
22005         (compute_bb_predicates): Likewise.
22006         (estimate_function_body_sizes): Move asserts earlier.  Fill in
22007         struct func_body_info, replace parms_info with fbi.info.  Adjust
22008         calls to functions that now accept struct func_body_info.
22009         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
22010         (struct func_body_info): Likewise.
22011         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
22012         remove static.  Adjust callers.
22013         (ipa_load_from_parm_agg): Remove.
22014         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
22015         (func_body_info): Likewise.
22016         (ipa_load_from_parm_agg): Adjust prototype.
22018 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22020         * gensupport.c (rtx_handle_directive): Adjust.
22021         * read-rtl.c (apply_iterators): Take vector to add rtxs to
22022         instead of expr list rtx.
22023         (add_define_attr_for_define_subst): Likewise.
22024         (add_define_subst_attr): Likewise.
22025         (read_subst_mapping): Likewise.
22026         (read_rtx): Likewise.
22027         * rtl.h (read_rtx): Adjust.
22029 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22031         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
22033 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
22035         PR target/58066
22036         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
22037         (*tls_local_dynamic_base_64_<mode>): Ditto.
22038         (*tls_local_dynamic_base_64_largepic): Ditto.
22039         (tls_global_dynamic_64_<mode>): Update expander pattern.
22040         (tls_local_dynamic_base_64_<mode>): Ditto.
22042 2015-07-15  Richard Biener  <rguenther@suse.de>
22044         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
22045         and bool_var == 1 -> bool_var simplifications ...
22046         * match.pd: ... to patterns here.  Factor out negate_expr_p
22047         cases from the A - B -> A + (-B) patterns as negate_expr_p
22048         predicate and add a -(A + B) -> (-B) - A pattern.
22050 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
22052         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
22054 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
22055             Robert Suchanek  <robert.suchanek@imgtec.com>
22057         * config/mips/mips.c (mips_int_mask): New enum.
22058         (mips_shadow_set): Likewise.
22059         (int_mask): New variable.
22060         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
22061         (machine_function): Add int_mask and use_shadow_register_set.
22062         (mips_attribute_table): Add attribute handlers for interrupt and
22063         use_shadow_register_set.
22064         (mips_interrupt_mask): New static function.
22065         (mips_handle_interrupt_attr): Likewise.
22066         (mips_handle_use_shadow_register_set_attr): Likewise.
22067         (mips_use_shadow_register_set): Change return type to enum
22068         mips_shadow_set.  Add argument handling for use_shadow_register_set
22069         attribute.
22070         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
22071         compare with mips_shadow_set enum.
22072         (mips_compute_frame_info): Add interrupt mask and
22073         use_shadow_register_set to per-function information structure.
22074         Add a stack slot for EPC unconditionally.
22075         (mips_expand_prologue): Compare use_shadow_register_set value
22076         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
22077         masked interrupt register but in EIC mode use K0 and save Cause in K0.
22078         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
22079         copying the stack pointer from the shadow register set.
22080         * config/mips/mips.h (SR_IM0): New define.
22081         * config/mips/mips.md (mips_rdpgpr): Rename to...
22082         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
22083         * doc/extend.texi (Declaring Attributes of Functions): Document
22084         optional arguments for interrupt and use_shadow_register_set
22085         attributes.
22087 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
22089         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
22090         interrupt attribute.
22091         (mips_expand_prologue): Disable the floating point unit in an ISR.
22092         * config/mips/mips.h (SR_COP1): New define.
22094 2015-07-15  Richard Biener  <rguenther@suse.de>
22096         * genmatch.c (parser::peek, parser::peek_ident): Add argument
22097         to tell how many tokens to peek ahead (default 1).
22098         (parser::eat_token, parser::eat_ident): Return token consumed.
22099         (parser::parse_result): Parse new switch statement.
22100         * match.pd: Use case statements where appropriate.
22102 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
22104         PR rtl-optimization/58066
22105         * calls.c (expand_call): Precompute register parameters before stack
22106         alignment is performed.
22108 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
22110         PR rtl-optimization/66838
22111         * postreload.c (reload_cse_move2add): Also process
22112         CALL_INSN_FUNCTION_USAGE when resetting information of
22113         call-clobbered registers.
22115 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22116             Cesar Philippidis  <cesar@codesourcery.com>
22117             Chung-Lin Tang  <cltang@codesourcery.com>
22119         * config/nios2/constraints.md (U, v): New constraints.
22120         * config/nios2/predicates.md (rdprs_dcache_operand): New.
22121         (ldstex_memory_operand): New.
22122         * config/nios2/sync.md: New file.
22123         * config/nios2/nios2.md (unspecv): Add new builtin function
22124         UNSPECV codes.
22125         (rdprs, flushd, flushda, wrpie, eni): New patterns.
22126         (top-level): Include sync.md.
22127         * config/nios2/nios2.c (N2_FTYPES): Add function types for
22128         new builtins.
22129         (N2_BUILTINS): Add arch field setting, add new builtins.
22130         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22131         for arch field.
22132         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22133         Also handle ldex/stex/ldsex/stsex builtins.
22134         (nios2_expand_rdprs_builtin): New function.
22135         (nios2_expand_cache_builtin): New function.
22136         (nios2_expand_wrpie_builtin): New function.
22137         (nios2_expand_eni_builtin): New function.
22138         (nios2_expand_builtin): Add arch field handling and new builtin
22139         cases.
22140         * doc/extend.texi (Altera Nios II Built-in Functions): Document
22141         new builtins.
22142         * doc/md.texi (Machine Constraints): Document U and v constraints.
22144 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22145             Cesar Philippidis  <cesar@codesourcery.com>
22146             Chung-Lin Tang  <cltang@codesourcery.com>
22148         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22149         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22150         callee_save_reg_size and uses_anonymous_args fields.
22151         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22152         (nios2_create_cfa_notes): New function.
22153         (nios2_adjust_stack): New function for adjusting stack.
22154         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22155         Use nios2_adjust_stack.
22156         (nios2_expand_epilogue): Likewise.
22157         (nios2_expand_return): New function.
22158         (nios2_can_use_return_insn): Update for CDX pop.n usage.
22159         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22160         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22161         * config/nios2/nios2.md (return): Use nios2_expand_return.
22163 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22164             Cesar Philippidis  <cesar@codesourcery.com>
22165             Chung-Lin Tang  <cltang@codesourcery.com>
22167         * config/nios2/predicates.md (pop_operation): New.
22168         (ldwm_operation, stwm_operation): New.
22169         (nios2_hard_register_operand): New.
22170         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22171         (ldstwm_operation_p): Declare.
22172         (gen_ldstwm_peep): Declare.
22173         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22174         (base_reg_adjustment_p): New.
22175         (pop_operation_p): New.
22176         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22177         (nios2_ldstwm_regset_p): New.
22178         (ldstwm_operation_p): New.
22179         (gen_ldst): New.
22180         (nios2_ldst_parallel): New.
22181         (struct ldswm_operand): Declare.
22182         (compare_ldstwm_operands): New.
22183         (can_use_cdx_ldstw): New.
22184         (gen_ldstwm_peep): New.
22185         * config/nios2/nios2-ldstwm.sml: New.
22186         * config/nios2/nios2.md: Include ldstwm.md.
22187         * config/nios2/ldstwm.md: Generated.
22189 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22190             Cesar Philippidis  <cesar@codesourcery.com>
22191             Chung-Lin Tang  <cltang@codesourcery.com>
22193         * config/nios2/nios2.h (LABEL_ALIGN): Define.
22194         (REG_ALLOC_ORDER): Define.
22195         (ADJUST_REG_ALLOC_ORDER): Define.
22196         (HONOR_REG_ALLOC_ORDER): Define.
22197         (CDX_REG_P): Define.
22198         (ANDCLEAR_INT): Define.
22199         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22200         (nios2_label_align): Declare.
22201         (nios2_cdx_narrow_form_p): Declare.
22202         (nios2_adjust_reg_alloc_order): Declare.
22203         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22204         operation.
22205         (nios2_large_unspec_reloc_p): New function, split from...
22206         (nios2_legitimate_pic_operand_p): ...here.
22207         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22208         (nios2_print_operand_punct_valid_p): New.
22209         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
22210         (split_mem_address): New.
22211         (split_alu_insn): New.
22212         (cdxreg): New.
22213         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22214         (enum nios2_add_insn_kind): New.
22215         (nios2_add_insn_names, nios2_add_insn_narrow): New.
22216         (nios2_add_insn_classify): New.
22217         (nios2_add_insn_asm): New.
22218         (nios2_cdx_narrow_form_p): New.
22219         (label_align, min_labelno, max_labelno): New.
22220         (nios2_reorg): New.
22221         (nios2_label_align): New.
22222         (nios2_adjust_reg_alloc_order): New.
22223         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22224         (TARGET_MACHINE_DEPENDENT_REORG): Define.
22225         * config/nios2/constraints.md (P): New constraint.
22226         * config/nios2/predicates.md (const_and_operand): New.
22227         (and_operand): New.
22228         (stack_memory_operand): New.
22229         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22230         (length): Update to use nios2_cdx_narrow_form_p().
22231         (type): Add new insn type values.
22232         (control, alu, st, ld, shift): Update insn reservations with
22233         new insn type values.
22234         (*high, *lo_sum): Define new insn patterns for constant generation.
22235         (movqi_internal, movhi_internal, movsi_internal): Reduce
22236         alternatives, update asm template to handle CDX variants, update
22237         type attributes.
22238         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22239         template, update type attributes.
22240         (extendhisi2, extendqi<mode>2): Likewise.
22241         (addsi3): Change to use function for asm string.
22242         (subsi3): Add CDX notation to asm template, update type attributes.
22243         (negsi3, one_cmplsi3): Likewise.
22244         (andsi3): New pattern, specialized from logical patterns.
22245         (<code>si3): Remove and case, combine alternatives, update asm
22246         template.
22247         (<shift_op>si3): Add CDX notation, update type attributes.
22248         (rotrsi3): Update type attribute.
22249         (*merge, extzv, insv): New insn patterns.
22250         (return): Change to define_expand.
22251         (simple_return): Add CDX notation, update type attributes.
22252         (indirect_jump): Add CDX notation.
22253         (jump): Update asm cases, update length attribute expression.
22254         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22255         (nios2_cbranch): Update asm cases and length attribute expression
22256         to handle CDX variants.
22257         (nios2_cmp<code>): Update asm template.
22258         (nop): Add CDX notation, update type attributes.
22259         (trap): Add CDX notation.
22260         (ctrapsi4): Update asm cases and length attribute expression to
22261         handle CDX variant.
22262         * doc/md.texi (Machine Constraints): Document P constraint.
22264 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22265             Cesar Philippidis  <cesar@codesourcery.com>
22266             Chung-Lin Tang  <cltang@codesourcery.com>
22268         * config/nios2/nios2.h (SMALL_INT12): New macro.
22269         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22270         (nios2_valid_addr_expr_p): Use it.
22271         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22272         with implicit "io" instructions on R2.
22273         * config/nios2/constraints.md (w): New constraint.
22274         * config/nios2/predicates.md (ldstio_memory_operand): New.
22275         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22276         operand predicate and constraint.
22277         (ld<bh>io_signed, st<bhw>io>): Likewise.
22278         * doc/md.texi (Machine Constraints): Document w constraint.
22280 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22281             Cesar Philippidis  <cesar@codesourcery.com>
22282             Chung-Lin Tang  <cltang@codesourcery.com>
22284         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22285         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22286         Nios II architecture level.
22287         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22288         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22289         (OPTION_DEFAULT_SPECS): Define.
22290         (ASM_SPEC): Add -march= spec strings.
22291         * config/nios2/nios2.c (nios2_option_override): Check for
22292         conflicts involving new options.
22293         * config.gcc (nios2*-*-*): Support --with-arch=.
22294         * doc/invoke.texi (Option Summary, Nios II Options): Document
22295         -march=, -mbmx, and -mcdx.
22297 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
22299         PR rtl-optimization/66626
22300         * lra-constraints.c (lra_constraints): Prevent equivalence
22301         substitution for static chain pseudo in functions with nonlocal
22302         goto.
22304 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22306         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22307         (nios2_emit_stack_limit_check): Add size parameter.  Handle
22308         -fstack-limit-symbol as well as -fstack-limit-register.
22309         (nios2_expand_prologue): Emit only a single stack limit check,
22310         even if multiple stack adjustments are required.
22311         (nios2_option_override): Diagnose unsupported combination of -fpic
22312         and -stack-limit-symbol.
22314 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
22316         * Makefile.in (top_srcdir): New.
22317         * configure.ac: Use AM_ZLIB.
22318         * configure: Regeneated.
22320 2015-07-14  Matthias Klose  <doko@ubuntu.com>
22322         PR target/66840
22323         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22325 2015-07-14  Richard Biener  <rguenther@suse.de>
22327         PR tree-optimization/66863
22328         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22329         what we record for conversion use stmt lhs inequalities.
22331 2015-07-14  Richard Biener  <rguenther@suse.de>
22333         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22334         (decision_tree::gen_gimple): Likewise.
22336 2015-07-14  Tom de Vries  <tom@codesourcery.com>
22338         * gcc.c (greater_than_spec_func): Declare forward.
22339         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22340         -ftree-parallelize-loops={0,1}.
22341         (static_spec_functions): Add greater_than_spec_func function with name
22342         "gt".
22343         (greater_than_spec_func): New function.
22345 2015-07-14  Richard Biener  <rguenther@suse.de>
22347         * tree-ssa-dom.c (record_temporary_equivalences): Merge
22348         wideing type conversion case from record_equivalences_from_incoming_edge
22349         and use record_equality to record equivalences.
22350         (record_equivalences_from_incoming_edge): Call
22351         record_temporary_equivalences.
22353 2015-07-14  Richard Biener  <rguenther@suse.de>
22355         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22356         (struct if_expr): New.
22357         (struct with_expr): Likewise.
22358         (is_a_helper): Add helpers for if_expr and with_expr.
22359         (struct simplify): Add simplify_kind enum and member.  Remove
22360         ifexpr_vec member.
22361         (simplify::simplify): Adjust.
22362         (lower_commutative): Adjust.
22363         (lower_opt_convert): Likewise.
22364         (lower_cond): Likewise.
22365         (replace_id): Handle with_expr and if_expr.
22366         (lower_for): Adjust.
22367         (dt_simplify::gen_1): New recursive worker, split out from ...
22368         (dt_simplify::gen): ... here.  Deal with if and with expansion
22369         recursively.
22370         (capture_info::capture_info): Take context argument
22371         (capture_info::walk_result): Only analyze specific result.
22372         (parser::parse_result): New function.
22373         (parser::parse_simplify): Adjust to parse ifs with then end
22374         else case.
22375         (parser::parse_if): Simplify.
22376         (parser::parse_pattern): Pass down simplify kind.
22377         * match.pd: Convert if structure to new syntax.
22379 2015-07-13  Marek Polacek  <polacek@redhat.com>
22381         * rtl.c (rtx_equal_p_cb): Fix typo.
22383 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
22385         * omega.h: Don't include config.h, don't include params.h again if
22386         omega.h has already been included.
22387         * graphite-poly.h: Include sese.h.
22388         * graphite.c: Don't include sese.h, remove needless includes and
22389         minimize includes outside #ifdef HAVE_isl block.
22390         * graphite-blocking.c: Don't include sese.h, remove needless includes,
22391         and wrap entire file in #ifdef HAVE_isl
22392         * graphite-dependences.c: Likewise.
22393         * graphite-interchange.c: Likewise.
22394         * graphite-isl-ast-to-gimple.c: Likewise.
22395         * graphite-optimize-isl.c: Likewise.
22396         * graphite-poly.c: Likewise.
22397         * graphite-scop-detection.c: Likewise.
22398         * graphite-sese-to-poly.c: Likewise.
22400 2015-07-13  Tom de Vries  <tom@codesourcery.com>
22402         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22404 2015-07-13  Renlin Li  <renlin.li@arm.com>
22406         PR rtl/66556
22407         * simplify-rtx.c (simplify_const_relational_operation): Add
22408         side_effects_p checks.
22410 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
22412         * bitmap.h: Fix double word typos.
22413         * builtins.c: Same.
22414         * calls.c: Same.
22415         * cfgloopmanip.c: Same.
22416         * cgraph.c: Same.
22417         * cgraph.h: Same.
22418         * cgraphclones.c: Same.
22419         * combine.c: Same.
22420         * config/aarch64/aarch64-protos.h: Same.
22421         * config/aarch64/aarch64.c: Same.
22422         * config/aarch64/aarch64.md: Same.
22423         * config/arm/arm.md: Same.
22424         * config/arm/arm1020e.md: Same.
22425         * config/arm/arm1026ejs.md: Same.
22426         * config/arm/arm926ejs.md: Same.
22427         * config/arm/fa526.md: Same.
22428         * config/arm/fa606te.md: Same.
22429         * config/arm/fa626te.md: Same.
22430         * config/arm/fa726te.md: Same.
22431         * config/arm/fmp626.md: Same.
22432         * config/darwin.c: Same.
22433         * config/epiphany/epiphany.c: Same.
22434         * config/frv/frv.c: Same.
22435         * config/ft32/ft32.c: Same.
22436         * config/gnu-user.h: Same.
22437         * config/h8300/constraints.md: Same.
22438         * config/i386/i386.c: Same.
22439         * config/i386/i386.md: Same.
22440         * config/iq2000/iq2000.md: Same.
22441         * config/mips/mips.c: Same.
22442         * config/mmix/mmix.md: Same.
22443         * config/moxie/moxie.c: Same.
22444         * config/nds32/nds32.md: Same.
22445         * config/pa/pa.h: Same.
22446         * config/rs6000/aix.h: Same.
22447         * config/rs6000/rs6000.h: Same.
22448         * config/sh/sh.c: Same.
22449         * config/tilegx/tilegx.md: Same.
22450         * config/tilepro/gen-mul-tables.cc: Same.
22451         * cse.c: Same.
22452         * dbxout.c: Same.
22453         * doc/invoke.texi: Same.
22454         * dse.c: Same.
22455         * dwarf2out.c: Same.
22456         * final.c: Same.
22457         * gcc.c: Same.
22458         * genmatch.c: Same.
22459         * gimplify.c: Same.
22460         * hash-table.h: Same.
22461         * internal-fn.c: Same.
22462         * ipa-cp.c: Same.
22463         * ipa-devirt.c: Same.
22464         * ipa-icf.c: Same.
22465         * ipa-icf.h: Same.
22466         * ipa-profile.c: Same.
22467         * ipa-prop.c: Same.
22468         * ipa-prop.h: Same.
22469         * ira.c: Same.
22470         * omp-low.c: Same.
22471         * reg-stack.c: Same.
22472         * regcprop.c: Same.
22473         * reorg.c: Same.
22474         * rtl.h: Same.
22475         * sbitmap.h: Same.
22476         * tree-eh.c: Same.
22477         * tree-inline.c: Same.
22478         * tree-sra.c: Same.
22479         * tree-ssa-dom.c: Same.
22480         * tree-ssa-loop-ivopts.c: Same.
22481         * tree-ssa-structalias.c: Same.
22482         * tree-ssa-tail-merge.c: Same.
22483         * tree-ssa-ter.c: Same.
22484         * tree-ssa-threadupdate.c: Same.
22485         * tree-ssa-uninit.c: Same.
22486         * tree-ssanames.c: Same.
22487         * tree-vect-loop-manip.c: Same.
22488         * tree-vrp.c: Same.
22489         * tree.c: Same.
22490         * valtrack.c: Same.
22491         * vec.h: Same.
22493 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22495         PR middle-end/66726
22496         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
22497         tree_ssa_phiopt_worker): Call it.
22499 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22501         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
22502         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
22503         REG_EQUAL note.
22505 2015-07-11  Marek Polacek  <polacek@redhat.com>
22507         PR middle-end/66353
22508         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
22509         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
22510         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
22511         rather than bb_has_abnormal_call_pred.
22512         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
22513         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
22514         rather than bb_has_abnormal_call_pred.
22516 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
22518         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22519         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
22520         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22521         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
22522         v850_legitimate_address_p): New functions.
22523         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22525 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
22527         PR target/66819
22528         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
22529         indirect sibcall with register arguments if register available
22530         for argument passing.
22531         (init_cumulative_args): Set cfun->machine->arg_reg_available
22532         to (cum->nregs > 0) or to true if function has a variable
22533         argument list.
22534         (function_arg_advance_32): Set cfun->machine->arg_reg_available
22535         to false if cum->nregs <= 0.
22536         * config/i386/i386.h (machine_function): Add arg_reg_available.
22538 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22540         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
22541         and gen_higpart instead of gen_rtx_SUBREG.
22542         * config/i386/i386.md
22543         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
22544         (read-modify peephole2): Use gen_lowpart instead of
22545         gen_rtx_SUBREG for operand 5.
22547 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
22549         * config/tilepro/gen-mul-tables.cc (main): Change include list for
22550         generated files.
22551         * config/tilepro/mul-tables.c: Regenerate.
22552         * config/tilegx/mul-tables.c: Regenerate.
22554 2015-07-10  Richard Biener  <rguenther@suse.de>
22556         * fold-const.c (distribute_bit_expr): Remove.
22557         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
22558         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
22559         to A & (B | C) and simplifying A << C1 << C2 to ...
22560         * match.pd: ... patterns here.
22562 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
22564         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22565         Mark mem as READONLY and NOTRAP for PIC symbol.
22567 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
22569         * gimple-predict.h: New file.
22570         (gimple_predict_predictor, gimple_predict_set_predictor,
22571         gimple_predict_outcome, gimple_predict_set_outcome,
22572         gimple_build_predict): Relocate here.
22573         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
22574         gimple_predict_outcome, gimple_predict_set_outcome): Move to
22575         gimple-predict.h.
22576         * gimple.c (gimple_build_predict): Move to gimple-predict.h
22577         * basic-block.h: Don't include cfghooks.h.
22578         * backend.h: Don't include predict.h.
22579         * cfghooks.h: Include predict.h.
22580         * gimple-pretty-print.c: Include gimple-predict.h.
22581         * gimplify.c: Likwise.
22582         * predict.c: Adjust includes.
22583         * tree-inline.c: Likewise.
22584         * asan.c: Likewise.
22585         * auto-inc-dec.c: Likewise.
22586         * auto-profile.c: Likewise.
22587         * bb-reorder.c: Likewise.
22588         * builtins.c: Likewise.
22589         * caller-save.c: Likewise.
22590         * calls.c: Likewise.
22591         * cfganal.c: Likewise.
22592         * cfgbuild.c: Likewise.
22593         * cfg.c: Likewise.
22594         * cfgcleanup.c: Likewise.
22595         * cfgexpand.c: Likewise.
22596         * cfghooks.c: Likewise.
22597         * cfgloopanal.c: Likewise.
22598         * cfgloop.c: Likewise.
22599         * cfgloopmanip.c: Likewise.
22600         * cfgrtl.c: Likewise.
22601         * cgraph.c: Likewise.
22602         * cgraphunit.c: Likewise.
22603         * combine.c: Likewise.
22604         * cprop.c: Likewise.
22605         * cse.c: Likewise.
22606         * dce.c: Likewise.
22607         * dojump.c: Likewise.
22608         * dse.c: Likewise.
22609         * except.c: Likewise.
22610         * expmed.c: Likewise.
22611         * expr.c: Likewise.
22612         * final.c: Likewise.
22613         * fold-const.c: Likewise.
22614         * function.c: Likewise.
22615         * fwprop.c: Likewise.
22616         * gcc-plugin.h: Likewise.
22617         * gcse.c: Likewise.
22618         * genattrtab.c: Likewise.
22619         * genemit.c: Likewise.
22620         * gengtype.c: Likewise.
22621         * genopinit.c: Likewise.
22622         * genoutput.c: Likewise.
22623         * genpreds.c: Likewise.
22624         * genrecog.c: Likewise.
22625         * gimple-fold.c: Likewise.
22626         * gimple-iterator.c: Likewise.
22627         * gimple-ssa-isolate-paths.c: Likewise.
22628         * gimple-ssa-strength-reduction.c: Likewise.
22629         * graph.c: Likewise.
22630         * graphite-blocking.c: Likewise.
22631         * graphite.c: Likewise.
22632         * graphite-dependences.c: Likewise.
22633         * graphite-interchange.c: Likewise.
22634         * graphite-isl-ast-to-gimple.c: Likewise.
22635         * graphite-optimize-isl.c: Likewise.
22636         * graphite-poly.c: Likewise.
22637         * graphite-scop-detection.c: Likewise.
22638         * graphite-sese-to-poly.c: Likewise.
22639         * haifa-sched.c: Likewise.
22640         * ifcvt.c: Likewise.
22641         * internal-fn.c: Likewise.
22642         * ipa-cp.c: Likewise.
22643         * ipa-profile.c: Likewise.
22644         * ipa-split.c: Likewise.
22645         * ipa-utils.c: Likewise.
22646         * ira-build.c: Likewise.
22647         * ira-color.c: Likewise.
22648         * ira-conflicts.c: Likewise.
22649         * ira-costs.c: Likewise.
22650         * ira-emit.c: Likewise.
22651         * ira-lives.c: Likewise.
22652         * jump.c: Likewise.
22653         * loop-doloop.c: Likewise.
22654         * loop-init.c: Likewise.
22655         * loop-invariant.c: Likewise.
22656         * loop-unroll.c: Likewise.
22657         * lower-subreg.c: Likewise.
22658         * lra-assigns.c: Likewise.
22659         * lra.c: Likewise.
22660         * lra-coalesce.c: Likewise.
22661         * lra-constraints.c: Likewise.
22662         * lra-lives.c: Likewise.
22663         * lto-cgraph.c: Likewise.
22664         * lto-streamer-in.c: Likewise.
22665         * mode-switching.c: Likewise.
22666         * modulo-sched.c: Likewise.
22667         * omp-low.c: Likewise.
22668         * optabs.c: Likewise.
22669         * passes.c: Likewise.
22670         * postreload.c: Likewise.
22671         * postreload-gcse.c: Likewise.
22672         * profile.c: Likewise.
22673         * recog.c: Likewise.
22674         * regstat.c: Likewise.
22675         * reload1.c: Likewise.
22676         * reorg.c: Likewise.
22677         * rtlanal.c: Likewise.
22678         * sched-ebb.c: Likewise.
22679         * sel-sched-ir.c: Likewise.
22680         * sese.c: Likewise.
22681         * shrink-wrap.c: Likewise.
22682         * simplify-rtx.c: Likewise.
22683         * stmt.c: Likewise.
22684         * store-motion.c: Likewise.
22685         * tracer.c: Likewise.
22686         * trans-mem.c: Likewise.
22687         * tree-call-cdce.c: Likewise.
22688         * tree-cfg.c: Likewise.
22689         * tree-cfgcleanup.c: Likewise.
22690         * tree-chkp.c: Likewise.
22691         * tree-complex.c: Likewise.
22692         * tree-eh.c: Likewise.
22693         * tree-if-conv.c: Likewise.
22694         * tree-loop-distribution.c: Likewise.
22695         * tree-outof-ssa.c: Likewise.
22696         * tree-parloops.c: Likewise.
22697         * tree-predcom.c: Likewise.
22698         * tree-pretty-print.c: Likewise.
22699         * tree-profile.c: Likewise.
22700         * tree-sra.c: Likewise.
22701         * tree-ssa.c: Likewise.
22702         * tree-ssa-coalesce.c: Likewise.
22703         * tree-ssa-dce.c: Likewise.
22704         * tree-ssa-dom.c: Likewise.
22705         * tree-ssa-forwprop.c: Likewise.
22706         * tree-ssa-ifcombine.c: Likewise.
22707         * tree-ssa-loop-ch.c: Likewise.
22708         * tree-ssa-loop-im.c: Likewise.
22709         * tree-ssa-loop-ivcanon.c: Likewise.
22710         * tree-ssa-loop-ivopts.c: Likewise.
22711         * tree-ssa-loop-manip.c: Likewise.
22712         * tree-ssa-loop-prefetch.c: Likewise.
22713         * tree-ssa-loop-unswitch.c: Likewise.
22714         * tree-ssa-math-opts.c: Likewise.
22715         * tree-ssa-phiopt.c: Likewise.
22716         * tree-ssa-pre.c: Likewise.
22717         * tree-ssa-reassoc.c: Likewise.
22718         * tree-ssa-sink.c: Likewise.
22719         * tree-ssa-tail-merge.c: Likewise.
22720         * tree-ssa-threadedge.c: Likewise.
22721         * tree-ssa-threadupdate.c: Likewise.
22722         * tree-switch-conversion.c: Likewise.
22723         * tree-tailcall.c: Likewise.
22724         * tree-vect-data-refs.c: Likewise.
22725         * tree-vect-loop.c: Likewise.
22726         * tree-vect-loop-manip.c: Likewise.
22727         * tree-vectorizer.c: Likewise.
22728         * tree-vrp.c: Likewise.
22729         * ubsan.c: Likewise.
22730         * value-prof.c: Likewise.
22731         * varasm.c: Likewise.
22732         * var-tracking.c: Likewise.
22733         * config/aarch64/aarch64-builtins.c: Likewise.
22734         * config/aarch64/aarch64.c: Likewise.
22735         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22736         * config/alpha/alpha.c: Likewise.
22737         * config/arc/arc.c: Likewise.
22738         * config/arm/arm.c: Likewise.
22739         * config/avr/avr.c: Likewise.
22740         * config/bfin/bfin.c: Likewise.
22741         * config/c6x/c6x.c: Likewise.
22742         * config/cr16/cr16.c: Likewise.
22743         * config/cris/cris.c: Likewise.
22744         * config/darwin.c: Likewise.
22745         * config/darwin-c.c: Likewise.
22746         * config/epiphany/epiphany.c: Likewise.
22747         * config/epiphany/mode-switch-use.c: Likewise.
22748         * config/epiphany/resolve-sw-modes.c: Likewise.
22749         * config/fr30/fr30.c: Likewise.
22750         * config/frv/frv.c: Likewise.
22751         * config/ft32/ft32.c: Likewise.
22752         * config/h8300/h8300.c: Likewise.
22753         * config/i386/i386.c: Likewise.
22754         * config/i386/winnt.c: Likewise.
22755         * config/ia64/ia64.c: Likewise.
22756         * config/iq2000/iq2000.c: Likewise.
22757         * config/lm32/lm32.c: Likewise.
22758         * config/m32c/m32c.c: Likewise.
22759         * config/m32r/m32r.c: Likewise.
22760         * config/m68k/m68k.c: Likewise.
22761         * config/mcore/mcore.c: Likewise.
22762         * config/mep/mep.c: Likewise.
22763         * config/microblaze/microblaze.c: Likewise.
22764         * config/mips/mips.c: Likewise.
22765         * config/mmix/mmix.c: Likewise.
22766         * config/mn10300/mn10300.c: Likewise.
22767         * config/moxie/moxie.c: Likewise.
22768         * config/msp430/msp430.c: Likewise.
22769         * config/nds32/nds32.c: Likewise.
22770         * config/nds32/nds32-cost.c: Likewise.
22771         * config/nds32/nds32-fp-as-gp.c: Likewise.
22772         * config/nds32/nds32-intrinsic.c: Likewise.
22773         * config/nds32/nds32-isr.c: Likewise.
22774         * config/nds32/nds32-md-auxiliary.c: Likewise.
22775         * config/nds32/nds32-memory-manipulation.c: Likewise.
22776         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22777         * config/nds32/nds32-predicates.c: Likewise.
22778         * config/nios2/nios2.c: Likewise.
22779         * config/nvptx/nvptx.c: Likewise.
22780         * config/pa/pa.c: Likewise.
22781         * config/pdp11/pdp11.c: Likewise.
22782         * config/rl78/rl78.c: Likewise.
22783         * config/rs6000/rs6000.c: Likewise.
22784         * config/rx/rx.c: Likewise.
22785         * config/s390/s390.c: Likewise.
22786         * config/sh/sh.c: Likewise.
22787         * config/sh/sh-mem.cc: Likewise.
22788         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22789         * config/sh/sh_treg_combine.cc: Likewise.
22790         * config/sparc/sparc.c: Likewise.
22791         * config/spu/spu.c: Likewise.
22792         * config/stormy16/stormy16.c: Likewise.
22793         * config/tilegx/tilegx.c: Likewise.
22794         * config/tilepro/tilepro.c: Likewise.
22795         * config/v850/v850.c: Likewise.
22796         * config/vax/vax.c: Likewise.
22797         * config/visium/visium.c: Likewise.
22798         * config/xtensa/xtensa.c: Likewise.
22800 2015-07-10  Richard Biener  <rguenther@suse.de>
22802         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22803         (decision_tree::gen_gimple): Likewise.
22804         (decision_tree::gen_generic): Likewise.
22806 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22808         PR target/66813
22809         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22810         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22812 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
22814         PR middle-end/66820
22815         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22816         or ORT_TASK contexts.
22817         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22818         is non-zero.
22820 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22822         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22823         above function.
22825 2015-07-10  Tom de Vries  <tom@codesourcery.com>
22827         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22828         insert nit + 1 bound.
22830 2015-07-10  Richard Biener  <rguenther@suse.de>
22832         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22833         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22834         (if_convertible_loop_p_1): For this always compute bb predicates.
22835         (if_convertible_loop_p): And free them.
22837 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22839         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22840         in dump message.
22842 2015-07-10  Richard Biener  <rguenther@suse.de>
22844         PR tree-optimization/66823
22845         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22846         inverted predicate.
22848 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
22850         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22851         to handle mips[32|64]r3 and mips[32|64]r5.
22853 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
22855         PR middle-end/66633
22856         * tree-nested.c (get_static_chain): Or in a flag into
22857         info->static_chain_added.
22858         (get_frame_field, get_nonlocal_debug_decl): Likewise.
22859         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22860         2015-07-01 changes.
22861         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22862         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22863         add it to clauses.
22865         PR tree-optimization/66718
22866         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22867         field.
22868         (vect_simd_lane_linear): New function.
22869         (vectorizable_simd_clone_call): Support using linear arguments for
22870         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22872 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22874         PR target/66821
22875         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22877 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22879         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22880         Use machine mode, not enum machine_mode in the prototype.
22882         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22883         classify 128-bit floating point support.
22884         (FLOAT128_IBM_P): Likewise.
22885         (FLOAT128_VECTOR_P): Likewise.
22886         (FLOAT128_2REG_P): Likewise.
22887         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22888         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22889         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22890         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22892         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22893         tests against TFmode/TDmode, since those modes do not use VSX
22894         addresses.
22895         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22896         support.
22897         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22898         tests against TFmode, etc.
22899         (invalid_e500_subreg): Add tests against IFmode/KFmode.
22900         (reg_offset_addressing_ok_p): Likewise.
22901         (rs6000_legitimate_offset_address_p): Likewise.
22902         (rs6000_legitimize_address): Likewise.
22903         (rs6000_legitimize_reload_address): Likewise.
22904         (rs6000_legitimate_address_p): Clean up tests against TFmode and
22905         TDmode to use the new helper macros, which will include IFmode and
22906         KFmode.
22907         (rs6000_emit_move): Likewise.
22908         (rs6000_darwin64_record_arg_recurse): Likewise.
22909         (print_operand): Likewise.
22910         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22911         that uses a single vector register as a vector and not as a
22912         floating point register in terms of the calling sequence.
22913         (rs6000_discover_homogeneous_aggregate): Likewise.
22914         (rs6000_return_in_memory): Likewise.
22915         (init_cumulative_args): Likewise.
22916         (rs6000_function_arg_boundary): Likewise.
22917         (rs6000_function_arg_advance_1): Likewise.
22918         (rs6000_function_arg): Likewise.
22919         (rs6000_pass_by_reference): Likewise.
22920         (rs6000_gimplify_va_arg): Likewise.
22921         (rs6000_secondary_reload_memory): Use machine_mode not enum
22922         machine mode.
22923         (rs6000_split_multireg_move): Use new helper macros.
22924         (spe_func_has_64bit_regs_p): Likewise.
22925         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22926         (output_toc): Use new helper macros.
22927         (rs6000_register_move_cost): Likewise.
22928         (rs6000_function_value): Add IEEE 128-bit floating point calling
22929         sequence support.
22930         (rs6000_libcall_value): Likewise.
22931         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22932         floating point support.
22933         (rs6000_vector_mode_supported_p): Likewise.
22935 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
22937         PR rtl-optimization/66782
22938         * lra-int.h (struct lra_insn_recog_data): Add comment about
22939         clobbered hard regs for arg_hard_regs.
22940         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22941         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22942         Add condition for processing used hard regs.
22943         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22944         Process clobbered hard regs.
22946 2015-07-09  Michael Matz  <matz@suse.de>
22948         * genmatch.c (fprintf_indent): New function.
22949         (operand::gen_transform): Add indent parameter.
22950         (expr::gen_transform, c_expr::gen_transform,
22951         capture::gen_transform): Ditto and use fprintf_indent.
22952         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22953         (dt_operand::gen, dt_operand::gen_predicate,
22954         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22955         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22956         (decision_tree::gen_gimple): Adjust calls and indent generated
22957         code.
22958         (decision_tree::gen_generic): Ditto.
22959         (write_predicate): Ditto.
22961 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22963         PR target/66814
22964         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22965         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22966         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22967         {GENERAL,SSE,MMX}_REG_P where appropriate.
22969 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22971         * lto-streamer.h: Don't include target.h and alloc-pool.h.
22972         * builtins.c: Adjust includes.
22973         * gimple.c: Likewise.
22974         * ipa-icf.c: Likewise.
22975         * lto-opts.c: Likewise.
22976         * ipa-reference.c: Likewise.
22977         * lto-section-out.c: Likewise.
22978         * lto-streamer-in.c: Likewise.
22979         * lto-streamer-out.c: Likewise.
22980         * opts-global.c: Likewise.
22981         * symtab.c: Likewise.
22982         * tree-chkp.c: Likewise.
22983         * tree-ssa-live.c: Likewise.
22984         * tree-streamer-in.c: Likewise.
22985         * tree-streamer-out.c: Likewise.
22986         * config/darwin.c: Likewise.
22987         * config/i386/winnt.c: Likewise.
22989 2015-07-09  Richard Biener  <rguenther@suse.de>
22991         * genmatch.c (struct expr): Add force_single_use flag.
22992         (expr::expr): Add copy constructor.
22993         (capture_info::walk_match): Gather force_single_use captures.
22994         (expr::gen_transform): Use possibly NULLified sequence.
22995         (dt_simplify::gen): Apply single-use restrictions by NULLifying
22996         seq if any constrained expr is not single-use.
22997         (parser::parse_expr): Refactor to allow multiple flags.  Handle
22998         's' flag to force an expression have a single-use if the pattern
22999         simplifies to more than one statement.
23000         * match.pd: Convert most single_use conditionals to :s flags.
23002 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23004         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
23005         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23006         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
23008 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
23010         * flags.h: Don't include flag-types.h or options.h.
23011         * opts-common.c: Adjust includes.
23012         * opts-global.c: Likewise.
23013         * common/config/epiphany/epiphany-common.c: Likewise.
23015 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23017         PR target/66818
23018         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
23019         for IA MCU.
23021 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
23023         PR target/66817
23024         * config/i386/i386.c (ix86_return_in_memory): Return true
23025         if int_size_in_bytes returns negative for IA MCU.
23027 2015-07-09  Marek Polacek  <polacek@redhat.com>
23029         PR tree-optimization/66718
23030         * Makefile.in (OBJS): Add gimple-laddress.o.
23031         * passes.def: Schedule pass_laddress.
23032         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
23033         * tree-pass.h (make_pass_laddress): Declare.
23034         * gimple-laddress.c: New file.
23036 2015-07-09  Richard Biener  <rguenther@suse.de>
23038         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
23040 2015-07-09  Richard Biener  <rguenther@suse.de>
23042         PR tree-optimization/66807
23043         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
23045 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
23047         * function.c (stack_protect_epilogue): Use if rather than switch for
23048         check targetm.have_stack_protect_test.
23050 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23052         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
23053         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
23054         * config/arc/arc.h: Likewise.
23055         * config/arm/arm.h: Likewise.
23056         * config/bfin/bfin.h: Likewise.
23057         * config/epiphany/epiphany.h: Likewise.
23058         * config/frv/frv.h: Likewise.
23059         * config/ia64/ia64.h: Likewise.
23060         * config/iq2000/iq2000.h: Likewise.
23061         * config/lm32/lm32.h: Likewise.
23062         * config/m32r/m32r.h: Likewise.
23063         * config/mcore/mcore.h: Likewise.
23064         * config/mep/mep.h: Likewise.
23065         * config/microblaze/microblaze.h: Likewise.
23066         * config/mips/mips.h: Likewise.
23067         * config/mmix/mmix.h: Likewise.
23068         * config/mn10300/mn10300.h: Likewise.
23069         * config/nds32/nds32.h: Likewise.
23070         * config/nios2/nios2.h: Likewise.
23071         * config/pa/pa.h: Likewise.
23072         * config/rl78/rl78.h: Likewise.
23073         * config/sh/sh.h: Likewise.
23074         * config/sparc/sparc.h: Likewise.
23075         * config/stormy16/stormy16.h: Likewise.
23076         * config/tilegx/tilegx.h: Likewise.
23077         * config/tilepro/tilepro.h: Likewise.
23078         * config/v850/v850.h: Likewise.
23079         * config/xtensa/xtensa.h: Likewise.
23080         * doc/tm.texi: Regenerate.
23081         * doc/tm.texi.in: Adjust.
23082         * combine.c (simplify_set): Likewise.
23083         (simplify_comparison): Likewise.
23084         * expr.c (store_constructor): Likewise.
23085         * internal-fn.c (expand_arith_overflow): Likewise.
23086         * reload.c (push_reload): Likewise.
23087         (find_reloads): Likewise.
23088         (find_reloads_subreg_address): Likewise.
23089         * reload1.c (eliminate_regs_1): Likewise.
23090         * rtlanal.c (nonzero_bits1): Likewise.
23091         (num_sign_bit_copies1): Likewise.
23092         * simplify-rtx.c (simplify_truncation): Likewise.
23094 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23096         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
23097         of AUTO_INC_DEC with the preprocessor.
23098         * combine.c (combine_instructions): Likewise.
23099         (can_combine_p): Likewise.
23100         (try_combine): Likewise.
23101         * emit-rtl.c (try_split): Likewise.
23102         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23103         * lower-subreg.c (resolve_simple_move): Likewise.
23104         * lra.c (update_inc_notes): Likewise.
23105         * recog.c (asm_operand_ok): Likewise.
23106         (constrain_operands): Likewise.
23107         * regrename.c (scan_rtx_address): Likewise.
23108         * reload.c (update_auto_inc_notes): Likewise.
23109         (reg_inc_found_and_valid_p): Likewise.
23110         * reload1.c (reload): Likewise.
23111         (emit_input_reload_insns): Likewise.
23112         (delete_output_reload): Likewise.
23113         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23114         * valtrack.c (cleanup_auto_inc_dec): Likewise.
23116 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23118         * rtl.h: Always define AUTO_INC_DEC.
23119         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
23120         * combine.c (combine_instructions): Likewise.
23121         (can_combine_p): Likewise.
23122         (try_combine): Likewise.
23123         * emit-rtl.c (try_split): Likewise.
23124         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23125         * lower-subreg.c (resolve_simple_move): Likewise.
23126         * lra.c (update_inc_notes): Likewise.
23127         * recog.c (asm_operand_ok): Likewise.
23128         (constrain_operands): Likewise.
23129         * regrename.c (scan_rtx_address): Likewise.
23130         * reload.c (update_auto_inc_notes): Likewise.
23131         (find_equiv_reg): Likewise.
23132         * reload1.c (reload): Likewise.
23133         (reload_as_needed): Likewise.
23134         (choose_reload_regs): Likewise.
23135         (emit_input_reload_insns): Likewise.
23136         (delete_output_reload): Likewise.
23137         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23138         * valtrack.c (cleanup_auto_inc_dec): Likewise.
23140 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23142         * combine.c (can_combine_def_p): Don't check the value of
23143         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23144         (combinable_i3pat): Likewise.
23145         (mark_used_regs_combine): Likewise.
23146         * regrename.c (rename_chains): Likewise.
23147         * reload.c (find_reloads_address): Likewise.
23148         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23150 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23152         * combine.c (update_rsp_from_reg_equal): Don't check if
23153         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23154         (reg_nonzero_bits_for_combine): Likewise.
23155         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23156         1.
23157         * config/frv/frv.h: Likewise.
23158         * config/lm32/lm32.h: Likewise.
23159         * config/mep/mep.h: Likewise.
23160         * config/mips/mips.h: Likewise.
23161         * config/rs6000/rs6000.h: Likewise.
23162         * config/sh/sh.h: Likewise.
23163         * config/tilegx/tilegx.h (enum reg_class): Likewise.
23164         * config/tilepro/tilepro.h: Likewise.
23165         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23166         * doc/tm.texi: Regenerate.
23167         * doc/tm.texi.in: Adjust.
23168         * rtlanal.c (nonzero_bits1): Likewise.
23170 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23172         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23173         with the preprocessor.
23174         (combine_instructions): Likewise.
23175         (try_combine): Likewise.
23176         (subst): Likewise.
23177         (distribute_notes): Likewise.
23179 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23181         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23182         defined.
23183         (simplify_set): Likewise.
23184         * cse.c (cse_insn): Likewise.
23185         * fold-const.c (fold_single_bit_test): Likewise.
23186         (fold_unary_loc): Likewise.
23187         * postreload.c (reload_cse_simplify_set): Likewise.
23188         (reload_cse_simplify_operands): Likewise.
23190 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
23192         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23193         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23195 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
23197         PR target/66746
23198         * config/i386/x86intrin.h: Include <adxintrin.h> even if
23199         __iamcu__ is defined.
23201 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23203         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23205 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
23207         PR target/66523
23208         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23209         names from preservation.
23211 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
23213         PR target/66806
23214         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23215         change for IAMCU.
23216         (function_arg_advance_32): Don't pass vectors in registers for
23217         IAMCU.
23218         (function_arg_32): Likewise.
23219         (ix86_return_in_memory): Don't return vectors in registers for
23220         IAMCU.
23222 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
23224         PR middle-end/66334
23225         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23226         hard regno live at the start of BB with incoming abnormal edges.
23227         * lra-lives.c (process_bb_lives): Ditto.
23229 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
23231         PR libgomp/65099
23232         * config/nvptx/mkoffload.c (main): Create an offload image only in
23233         64-bit configurations.
23235 2015-07-08  Martin Liska  <mliska@suse.cz>
23237         PR bootstrap/66744
23238         * tree-sra.c (create_access_1): Call ctor without brackets.
23239         (create_artificial_child_access): Likewise.
23241 2015-07-08  Richard Biener  <rguenther@suse.de>
23243         PR tree-optimization/66793
23244         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23245         Properly split the block after stmts ending it.
23247 2015-07-08  Richard Biener  <rguenther@suse.de>
23249         PR tree-optimization/66794
23250         * passes.c (execute_function_todo): Assert that post-dominators
23251         are not computed.
23252         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23253         Free post-dominators.
23255 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23257         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23258         with early exit.
23260 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23262         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23263         more than or equal 8 and less than 32 when optimizing for size.
23265 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23267         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23268         COSTS_N_INSNS (1) and increment it appropriately throughout the
23269         function.
23271 2015-07-08  Richard Biener  <rguenther@suse.de>
23273         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23275 2015-07-08  Alan Modra  <amodra@gmail.com>
23277         * target.def (rtx_costs): Remove "code" param, add "mode".
23278         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23279         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
23280         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23281         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
23282         call.  Track mode when given in rtx.
23283         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
23284         (default_address_cost): Pass Pmode to rtx_cost.
23285         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23286         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23287         with NULL set.
23288         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
23289         (notreg_cost): Add mode param.  Use it.
23290         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
23291         mode param and pass to set_src_cost.  Update all calls.
23292         (hash_scan_set): Formatting.
23293         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23294         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23295         * hooks.h: Ditto.
23296         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23297         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23298         emit_store_flag): Update set_src_cost and rtx_cost calls.
23299         * auto-inc-dec.c (attempt_change): Likewise.
23300         * calls.c (precompute_register_parameters): Likewise.
23301         * combine.c (expand_compound_operation, make_extraction,
23302         force_to_mode, distribute_and_simplify_rtx): Likewise.
23303         * dojump.c (prefer_and_bit_test): Likewise.
23304         * dse.c (find_shift_sequence): Likewise.
23305         * expr.c (compress_float_constant): Likewise.
23306         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23307         * ifcvt.c (noce_try_sign_mask): Likewise.
23308         * loop-doloop.c (doloop_optimize): Likewise.
23309         * loop-invariant.c (create_new_invariant): Likewise.
23310         * lower-subreg.c (shift_cost, compute_costs): Likewise.
23311         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23312         lshift_cheap_p): Likewise.
23313         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23314         try_replace_in_use, reload_cse_move2add): Likewise.
23315         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23316         Likewise.
23317         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23318         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23319         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23320         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23321         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23322         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
23323         to rtx_cost calls.
23324         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23325         * config/arc/arc.c (arc_rtx_costs): Likewise.
23326         * config/arm/arm.c (arm_rtx_costs): Likewise.
23327         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23328         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23329         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23330         * config/cris/cris.c (cris_rtx_costs): Likewise.
23331         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23332         * config/frv/frv.c (frv_rtx_costs): Likewise.
23333         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23334         * config/i386/i386.c (ix86_rtx_costs): Likewise.
23335         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23336         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23337         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23338         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23339         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23340         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23341         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23342         * config/mep/mep.c (mep_rtx_cost): Likewise.
23343         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23344         * config/mips/mips.c (mips_rtx_costs): Likewise.
23345         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23346         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23347         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23348         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23349         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23350         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23351         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23352         * config/pa/pa.c (hppa_rtx_costs): Likewise.
23353         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23354         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23355         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23356         * config/s390/s390.c (s390_rtx_costs): Likewise.
23357         * config/sh/sh.c (sh_rtx_costs): Likewise.
23358         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23359         * config/spu/spu.c (spu_rtx_costs): Likewise.
23360         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23361         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23362         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23363         * config/v850/v850.c (v850_rtx_costs): Likewise.
23364         * config/vax/vax.c (vax_rtx_costs): Likewise.
23365         * config/visium/visium.c (visium_rtx_costs): Likewise.
23366         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23367         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23368         "code" param, and pass as outer_code to first rtx_cost call.  Pass
23369         mode to rtx_cost calls.
23370         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23371         calls.
23372         (aarch64_rtx_costs_wrapper): Update.
23373         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23374         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23375         rtx_cost calls.
23376         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23377         and rtx_cost calls.
23378         (avr_operand_rtx_cost): Similarly.
23379         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23380         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23381         * config/mips/mips.c (mips_stack_address_p): Comment typo.
23382         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23383         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23384         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23385         rtx_cost.
23386         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23387         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23388         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23389         * doc/tm.texi: Regenerate.
23391 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
23393         * tree-core.h: Include symtab.h.
23394         * rtl.h: Include hard-reg-set.h but not flags.h.
23395         (HARD_CONST): Remove condition compilation involving HARD_CONST since
23396         hard-reg-set.h is always included.
23397         * regs.h: Don't include hard-reg-set.h or rtl.h.
23398         * cfg.h: Include dominance.h.
23399         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23400         * backend.h: New.  Aggregate commonly used backend header files.
23401         * gimple-ssa.h: Don't include tree-hasher.h.
23402         * ssa.h: New.  Aggregate commonly used SSA header files.
23403         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23404         * sel-sched-ir.h: Flatten includes.
23405         * lra-int.h: Flatten completely.
23406         * sel-sched-dump.h: Flatten includes.
23407         * ira-int.h: Flatten includes.
23408         * gimple-streamer.h: Remove all includes.
23409         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23410         * resource.h: Flatten hard-reg-set.h and df.h.
23411         * sched-int.h: Flatten insn-arrt.h and df.h.
23412         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23413         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23414         * genattrtab.c (write_header): Adjust generated includes.
23415         * genautomata.c (main): Likewise.
23416         * genconditions.c (write-header): Likewise.
23417         * genemit.c (main): Likewise.
23418         * gengtype.c (open_base_files): Likewise.
23419         * genopinit.c (main): Likewise.
23420         * genoutput.c (output_prologue): Likewise.
23421         * genpeep.c (main): Likewise.
23422         * genpreds.c (write_insn_preds_c): Likewise.
23423         * genrecog.c (write_header): Likewise.
23424         * alias.c: Adjust includes.
23425         * asan.c: Likewise.
23426         * attribs.c: Likewise.
23427         * auto-inc-dec.c: Likewise.
23428         * auto-profile.c: Likewise.
23429         * bb-reorder.c: Likewise.
23430         * bt-load.c: Likewise.
23431         * builtins.c: Likewise.
23432         * caller-save.c: Likewise.
23433         * calls.c: Likewise.
23434         * ccmp.c: Likewise.
23435         * cfg.c: Likewise.
23436         * cfganal.c: Likewise.
23437         * cfgbuild.c: Likewise.
23438         * cfgcleanup.c: Likewise.
23439         * cfgexpand.c: Likewise.
23440         * cfghooks.c: Likewise.
23441         * cfgloop.c: Likewise.
23442         * cfgloopanal.c: Likewise.
23443         * cfgloopmanip.c: Likewise.
23444         * cfgrtl.c: Likewise.
23445         * cgraph.c: Likewise.
23446         * cgraphbuild.c: Likewise.
23447         * cgraphclones.c: Likewise.
23448         * cgraphunit.c: Likewise.
23449         * cilk-common.c: Likewise.
23450         * combine-stack-adj.c: Likewise.
23451         * combine.c: Likewise.
23452         * compare-elim.c: Likewise.
23453         * convert.c: Likewise.
23454         * coverage.c: Likewise.
23455         * cppbuiltin.c: Likewise.
23456         * cprop.c: Likewise.
23457         * cse.c: Likewise.
23458         * cselib.c: Likewise.
23459         * data-streamer-in.c: Likewise.
23460         * data-streamer-out.c: Likewise.
23461         * data-streamer.c: Likewise.
23462         * dbxout.c: Likewise.
23463         * dce.c: Likewise.
23464         * ddg.c: Likewise.
23465         * debug.c: Likewise.
23466         * df-core.c: Likewise.
23467         * df-problems.c: Likewise.
23468         * df-scan.c: Likewise.
23469         * dfp.c: Likewise.
23470         * dojump.c: Likewise.
23471         * dominance.c: Likewise.
23472         * domwalk.c: Likewise.
23473         * double-int.c: Likewise.
23474         * dse.c: Likewise.
23475         * dumpfile.c: Likewise.
23476         * dwarf2asm.c: Likewise.
23477         * dwarf2cfi.c: Likewise.
23478         * dwarf2out.c: Likewise.
23479         * emit-rtl.c: Likewise.
23480         * et-forest.c: Likewise.
23481         * except.c: Likewise.
23482         * explow.c: Likewise.
23483         * expmed.c: Likewise.
23484         * expr.c: Likewise.
23485         * final.c: Likewise.
23486         * fixed-value.c: Likewise.
23487         * fold-const.c: Likewise.
23488         * function.c: Likewise.
23489         * fwprop.c: Likewise.
23490         * gcc-plugin.h: Likewise.
23491         * gcse-common.c: Likewise.
23492         * gcse.c: Likewise.
23493         * generic-match-head.c: Likewise.
23494         * ggc-page.c: Likewise.
23495         * gimple-builder.c: Likewise.
23496         * gimple-expr.c: Likewise.
23497         * gimple-fold.c: Likewise.
23498         * gimple-iterator.c: Likewise.
23499         * gimple-low.c: Likewise.
23500         * gimple-match-head.c: Likewise.
23501         * gimple-pretty-print.c: Likewise.
23502         * gimple-ssa-isolate-paths.c: Likewise.
23503         * gimple-ssa-strength-reduction.c: Likewise.
23504         * gimple-streamer-in.c: Likewise.
23505         * gimple-streamer-out.c: Likewise.
23506         * gimple-walk.c: Likewise.
23507         * gimple.c: Likewise.
23508         * gimplify-me.c: Likewise.
23509         * gimplify.c: Likewise.
23510         * godump.c: Likewise.
23511         * graph.c: Likewise.
23512         * graphite-blocking.c: Likewise.
23513         * graphite-dependences.c: Likewise.
23514         * graphite-interchange.c: Likewise.
23515         * graphite-isl-ast-to-gimple.c: Likewise.
23516         * graphite-optimize-isl.c: Likewise.
23517         * graphite-poly.c: Likewise.
23518         * graphite-scop-detection.c: Likewise.
23519         * graphite-sese-to-poly.c: Likewise.
23520         * graphite.c: Likewise.
23521         * haifa-sched.c: Likewise.
23522         * hw-doloop.c: Likewise.
23523         * ifcvt.c: Likewise.
23524         * init-regs.c: Likewise.
23525         * internal-fn.c: Likewise.
23526         * ipa-chkp.c: Likewise.
23527         * ipa-comdats.c: Likewise.
23528         * ipa-cp.c: Likewise.
23529         * ipa-devirt.c: Likewise.
23530         * ipa-icf-gimple.c: Likewise.
23531         * ipa-icf.c: Likewise.
23532         * ipa-inline-analysis.c: Likewise.
23533         * ipa-inline-transform.c: Likewise.
23534         * ipa-inline.c: Likewise.
23535         * ipa-polymorphic-call.c: Likewise.
23536         * ipa-profile.c: Likewise.
23537         * ipa-prop.c: Likewise.
23538         * ipa-pure-const.c: Likewise.
23539         * ipa-ref.c: Likewise.
23540         * ipa-reference.c: Likewise.
23541         * ipa-split.c: Likewise.
23542         * ipa-utils.c: Likewise.
23543         * ipa-visibility.c: Likewise.
23544         * ipa.c: Likewise.
23545         * ira-build.c: Likewise.
23546         * ira-color.c: Likewise.
23547         * ira-conflicts.c: Likewise.
23548         * ira-costs.c: Likewise.
23549         * ira-emit.c: Likewise.
23550         * ira-lives.c: Likewise.
23551         * ira.c: Likewise.
23552         * jump.c: Likewise.
23553         * langhooks.c: Likewise.
23554         * lcm.c: Likewise.
23555         * loop-doloop.c: Likewise.
23556         * loop-init.c: Likewise.
23557         * loop-invariant.c: Likewise.
23558         * loop-iv.c: Likewise.
23559         * loop-unroll.c: Likewise.
23560         * lower-subreg.c: Likewise.
23561         * lra-assigns.c: Likewise.
23562         * lra-coalesce.c: Likewise.
23563         * lra-constraints.c: Likewise.
23564         * lra-eliminations.c: Likewise.
23565         * lra-lives.c: Likewise.
23566         * lra-remat.c: Likewise.
23567         * lra-spills.c: Likewise.
23568         * lra.c: Likewise.
23569         * lto-cgraph.c: Likewise.
23570         * lto-compress.c: Likewise.
23571         * lto-opts.c: Likewise.
23572         * lto-section-in.c: Likewise.
23573         * lto-section-out.c: Likewise.
23574         * lto-streamer-in.c: Likewise.
23575         * lto-streamer-out.c: Likewise.
23576         * lto-streamer.c: Likewise.
23577         * mcf.c: Likewise.
23578         * mode-switching.c: Likewise.
23579         * modulo-sched.c: Likewise.
23580         * omega.c: Likewise.
23581         * omp-low.c: Likewise.
23582         * optabs.c: Likewise.
23583         * opts-global.c: Likewise.
23584         * passes.c: Likewise.
23585         * plugin.c: Likewise.
23586         * postreload-gcse.c: Likewise.
23587         * postreload.c: Likewise.
23588         * predict.c: Likewise.
23589         * print-rtl.c: Likewise.
23590         * print-tree.c: Likewise.
23591         * profile.c: Likewise.
23592         * real.c: Likewise.
23593         * realmpfr.c: Likewise.
23594         * recog.c: Likewise.
23595         * ree.c: Likewise.
23596         * reg-stack.c: Likewise.
23597         * regcprop.c: Likewise.
23598         * reginfo.c: Likewise.
23599         * regrename.c: Likewise.
23600         * regstat.c: Likewise.
23601         * reload.c: Likewise.
23602         * reload1.c: Likewise.
23603         * reorg.c: Likewise.
23604         * resource.c: Likewise.
23605         * rtl-chkp.c: Likewise.
23606         * rtlanal.c: Likewise.
23607         * rtlhooks.c: Likewise.
23608         * sanopt.c: Likewise.
23609         * sched-deps.c: Likewise.
23610         * sched-ebb.c: Likewise.
23611         * sched-rgn.c: Likewise.
23612         * sched-vis.c: Likewise.
23613         * sdbout.c: Likewise.
23614         * sel-sched-dump.c: Likewise.
23615         * sel-sched-ir.c: Likewise.
23616         * sel-sched.c: Likewise.
23617         * sese.c: Likewise.
23618         * shrink-wrap.c: Likewise.
23619         * simplify-rtx.c: Likewise.
23620         * stack-ptr-mod.c: Likewise.
23621         * stmt.c: Likewise.
23622         * stor-layout.c: Likewise.
23623         * store-motion.c: Likewise.
23624         * stringpool.c: Likewise.
23625         * symtab.c: Likewise.
23626         * target-globals.c: Likewise.
23627         * targhooks.c: Likewise.
23628         * toplev.c: Likewise.
23629         * tracer.c: Likewise.
23630         * trans-mem.c: Likewise.
23631         * tree-affine.c: Likewise.
23632         * tree-browser.c: Likewise.
23633         * tree-call-cdce.c: Likewise.
23634         * tree-cfg.c: Likewise.
23635         * tree-cfgcleanup.c: Likewise.
23636         * tree-chkp-opt.c: Likewise.
23637         * tree-chkp.c: Likewise.
23638         * tree-chrec.c: Likewise.
23639         * tree-complex.c: Likewise.
23640         * tree-data-ref.c: Likewise.
23641         * tree-dfa.c: Likewise.
23642         * tree-diagnostic.c: Likewise.
23643         * tree-dump.c: Likewise.
23644         * tree-eh.c: Likewise.
23645         * tree-emutls.c: Likewise.
23646         * tree-if-conv.c: Likewise.
23647         * tree-inline.c: Likewise.
23648         * tree-into-ssa.c: Likewise.
23649         * tree-iterator.c: Likewise.
23650         * tree-loop-distribution.c: Likewise.
23651         * tree-nested.c: Likewise.
23652         * tree-nrv.c: Likewise.
23653         * tree-object-size.c: Likewise.
23654         * tree-outof-ssa.c: Likewise.
23655         * tree-parloops.c: Likewise.
23656         * tree-phinodes.c: Likewise.
23657         * tree-predcom.c: Likewise.
23658         * tree-pretty-print.c: Likewise.
23659         * tree-profile.c: Likewise.
23660         * tree-scalar-evolution.c: Likewise.
23661         * tree-sra.c: Likewise.
23662         * tree-ssa-address.c: Likewise.
23663         * tree-ssa-alias.c: Likewise.
23664         * tree-ssa-ccp.c: Likewise.
23665         * tree-ssa-coalesce.c: Likewise.
23666         * tree-ssa-copy.c: Likewise.
23667         * tree-ssa-copyrename.c: Likewise.
23668         * tree-ssa-dce.c: Likewise.
23669         * tree-ssa-dom.c: Likewise.
23670         * tree-ssa-dse.c: Likewise.
23671         * tree-ssa-forwprop.c: Likewise.
23672         * tree-ssa-ifcombine.c: Likewise.
23673         * tree-ssa-live.c: Likewise.
23674         * tree-ssa-loop-ch.c: Likewise.
23675         * tree-ssa-loop-im.c: Likewise.
23676         * tree-ssa-loop-ivcanon.c: Likewise.
23677         * tree-ssa-loop-ivopts.c: Likewise.
23678         * tree-ssa-loop-manip.c: Likewise.
23679         * tree-ssa-loop-niter.c: Likewise.
23680         * tree-ssa-loop-prefetch.c: Likewise.
23681         * tree-ssa-loop-unswitch.c: Likewise.
23682         * tree-ssa-loop.c: Likewise.
23683         * tree-ssa-math-opts.c: Likewise.
23684         * tree-ssa-operands.c: Likewise.
23685         * tree-ssa-phiopt.c: Likewise.
23686         * tree-ssa-phiprop.c: Likewise.
23687         * tree-ssa-pre.c: Likewise.
23688         * tree-ssa-propagate.c: Likewise.
23689         * tree-ssa-reassoc.c: Likewise.
23690         * tree-ssa-sccvn.c: Likewise.
23691         * tree-ssa-scopedtables.c: Likewise.
23692         * tree-ssa-sink.c: Likewise.
23693         * tree-ssa-strlen.c: Likewise.
23694         * tree-ssa-structalias.c: Likewise.
23695         * tree-ssa-tail-merge.c: Likewise.
23696         * tree-ssa-ter.c: Likewise.
23697         * tree-ssa-threadedge.c: Likewise.
23698         * tree-ssa-threadupdate.c: Likewise.
23699         * tree-ssa-uncprop.c: Likewise.
23700         * tree-ssa-uninit.c: Likewise.
23701         * tree-ssa.c: Likewise.
23702         * tree-ssanames.c: Likewise.
23703         * tree-stdarg.c: Likewise.
23704         * tree-streamer-in.c: Likewise.
23705         * tree-streamer-out.c: Likewise.
23706         * tree-streamer.c: Likewise.
23707         * tree-switch-conversion.c: Likewise.
23708         * tree-tailcall.c: Likewise.
23709         * tree-vect-data-refs.c: Likewise.
23710         * tree-vect-generic.c: Likewise.
23711         * tree-vect-loop-manip.c: Likewise.
23712         * tree-vect-loop.c: Likewise.
23713         * tree-vect-patterns.c: Likewise.
23714         * tree-vect-slp.c: Likewise.
23715         * tree-vect-stmts.c: Likewise.
23716         * tree-vectorizer.c: Likewise.
23717         * tree-vrp.c: Likewise.
23718         * tree.c: Likewise.
23719         * tsan.c: Likewise.
23720         * ubsan.c: Likewise.
23721         * valtrack.c: Likewise.
23722         * value-prof.c: Likewise.
23723         * var-tracking.c: Likewise.
23724         * varasm.c: Likewise.
23725         * varpool.c: Likewise.
23726         * vmsdbgout.c: Likewise.
23727         * vtable-verify.c: Likewise.
23728         * web.c: Likewise.
23729         * wide-int.cc: Likewise.
23730         * xcoffout.c: Likewise.
23731         * config/aarch64/aarch64-builtins.c: Likewise.
23732         * config/aarch64/aarch64.c: Likewise.
23733         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23734         * config/alpha/alpha.c: Likewise.
23735         * config/arc/arc.c: Likewise.
23736         * config/arm/aarch-common.c: Likewise.
23737         * config/arm/arm-builtins.c: Likewise.
23738         * config/arm/arm-c.c: Likewise.
23739         * config/arm/arm.c: Likewise.
23740         * config/avr/avr-c.c: Likewise.
23741         * config/avr/avr-log.c: Likewise.
23742         * config/avr/avr.c: Likewise.
23743         * config/bfin/bfin.c: Likewise.
23744         * config/c6x/c6x.c: Likewise.
23745         * config/cr16/cr16.c: Likewise.
23746         * config/cris/cris.c: Likewise.
23747         * config/darwin-c.c: Likewise.
23748         * config/darwin.c: Likewise.
23749         * config/epiphany/epiphany.c: Likewise.
23750         * config/epiphany/mode-switch-use.c: Likewise.
23751         * config/epiphany/resolve-sw-modes.c: Likewise.
23752         * config/fr30/fr30.c: Likewise.
23753         * config/frv/frv.c: Likewise.
23754         * config/ft32/ft32.c: Likewise.
23755         * config/h8300/h8300.c: Likewise.
23756         * config/i386/i386-c.c: Likewise.
23757         * config/i386/i386.c: Likewise.
23758         * config/i386/msformat-c.c: Likewise.
23759         * config/i386/winnt-cxx.c: Likewise.
23760         * config/i386/winnt-stubs.c: Likewise.
23761         * config/i386/winnt.c: Likewise.
23762         * config/ia64/ia64-c.c: Likewise.
23763         * config/ia64/ia64.c: Likewise.
23764         * config/iq2000/iq2000.c: Likewise.
23765         * config/lm32/lm32.c: Likewise.
23766         * config/m32c/m32c-pragma.c: Likewise.
23767         * config/m32c/m32c.c: Likewise.
23768         * config/m32r/m32r.c: Likewise.
23769         * config/m68k/m68k.c: Likewise.
23770         * config/mcore/mcore.c: Likewise.
23771         * config/mep/mep-pragma.c: Likewise.
23772         * config/mep/mep.c: Likewise.
23773         * config/microblaze/microblaze-c.c: Likewise.
23774         * config/microblaze/microblaze.c: Likewise.
23775         * config/mips/mips.c: Likewise.
23776         * config/mmix/mmix.c: Likewise.
23777         * config/mn10300/mn10300.c: Likewise.
23778         * config/moxie/moxie.c: Likewise.
23779         * config/msp430/msp430-c.c: Likewise.
23780         * config/msp430/msp430.c: Likewise.
23781         * config/nds32/nds32-cost.c: Likewise.
23782         * config/nds32/nds32-fp-as-gp.c: Likewise.
23783         * config/nds32/nds32-intrinsic.c: Likewise.
23784         * config/nds32/nds32-isr.c: Likewise.
23785         * config/nds32/nds32-md-auxiliary.c: Likewise.
23786         * config/nds32/nds32-memory-manipulation.c: Likewise.
23787         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23788         * config/nds32/nds32-predicates.c: Likewise.
23789         * config/nds32/nds32.c: Likewise.
23790         * config/nios2/nios2.c: Likewise.
23791         * config/nvptx/nvptx.c: Likewise.
23792         * config/pa/pa.c: Likewise.
23793         * config/pdp11/pdp11.c: Likewise.
23794         * config/rl78/rl78-c.c: Likewise.
23795         * config/rl78/rl78.c: Likewise.
23796         * config/rs6000/rs6000-c.c: Likewise.
23797         * config/rs6000/rs6000.c: Likewise.
23798         * config/rx/rx.c: Likewise.
23799         * config/s390/s390-c.c: Likewise.
23800         * config/s390/s390.c: Likewise.
23801         * config/sh/sh-c.c: Likewise.
23802         * config/sh/sh-mem.cc: Likewise.
23803         * config/sh/sh.c: Likewise.
23804         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23805         * config/sh/sh_treg_combine.cc: Likewise.
23806         * config/sol2-c.c: Likewise.
23807         * config/sol2-cxx.c: Likewise.
23808         * config/sol2-stubs.c: Likewise.
23809         * config/sol2.c: Likewise.
23810         * config/sparc/sparc-c.c: Likewise.
23811         * config/sparc/sparc.c: Likewise.
23812         * config/spu/spu-c.c: Likewise.
23813         * config/spu/spu.c: Likewise.
23814         * config/stormy16/stormy16.c: Likewise.
23815         * config/tilegx/mul-tables.c: Likewise.
23816         * config/tilegx/tilegx-c.c: Likewise.
23817         * config/tilegx/tilegx.c: Likewise.
23818         * config/tilepro/mul-tables.c: Likewise.
23819         * config/tilepro/tilepro-c.c: Likewise.
23820         * config/tilepro/tilepro.c: Likewise.
23821         * config/v850/v850-c.c: Likewise.
23822         * config/v850/v850.c: Likewise.
23823         * config/vax/vax.c: Likewise.
23824         * config/visium/visium.c: Likewise.
23825         * config/vms/vms-c.c: Likewise.
23826         * config/vms/vms.c: Likewise.
23827         * config/vxworks.c: Likewise.
23828         * config/xtensa/xtensa.c: Likewise.
23830 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
23832         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23833         Remove operand constraints.  Change operand 2 predicate to
23834         nonmemory operand.  Limit const_int values to mode bitsize.  Only
23835         allow const_int values less than 32 when optimizing for size.
23836         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23837         Remove operand constraints.
23838         (*bt<mode>): Use SImode for const_int values less than 32.
23839         (regmode): Remove mode attribute.
23841 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
23843         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23844         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23845           moxie_legitimate_address_p): New functions.
23846           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23848 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23850         PR tree-optimization/66642
23851         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23852         header comment.  Rename split_edge variable to edge_at_split.  Split
23853         exit edge to create new loop exit bb.  Insert loop exit phis in new
23854         loop exit bb.
23856 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23858         * tree-cfg.c (get_virtual_phi): New function.
23859         * tree-cfg.h (get_virtual_phi): Declare.
23860         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23861         (rewrite_virtuals_into_loop_closed_ssa): New function.
23862         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23863         Declare.
23864         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23865         (transform_to_exit_first_loop_alt): Use
23866         rewrite_virtuals_into_loop_closed_ssa.
23868 2015-07-07  Richard Biener  <rguenther@suse.de>
23870         * fold-const.c (fold_binary_loc): Move
23871         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23872         * match.pd: ... here.
23873         Add (X * C1) % C2 -> 0 simplification pattern derived from
23874         extract_muldiv_1.
23876 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
23878         PR target/66780
23879         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23880         change for target/65249.
23882 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
23884         * symtab.c (address_matters_1): Fix typo in comment above.
23885         (can_increase_alignment_p): Likewise.
23887 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23889         * function.c (free_after_compilation): Clear PROP_cfg in
23890         f->curr_properties.
23892 2015-07-07  Richard Biener  <rguenther@suse.de>
23894         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23895         add which use to.
23896         (add_control_edge): Remove excessive vertical space in dumping.
23897         (process_ssa_edge_worklist): Simulate at most one statement and
23898         return whether we did.  Do not simulate PHIs if they are in a
23899         BB not yet simulated.
23900         (ssa_propagate): Adjust to always drain the BB worklist whenever
23901         a BB is available there, likewise the VARYING edges list before
23902         the interesting edge list.
23904 2015-07-07  Christian Bruel  <christian.bruel@st.com>
23906         PR target/52144
23907         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23909 2015-07-07  Richard Biener  <rguenther@suse.de>
23911         PR middle-end/66739
23912         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23913         A - B.
23915 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23917         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
23918         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
23919         Copy operand 0 to a temporary if !ext_register_operand.  Remove
23920         ancient extract_bit_field workaround.
23921         (insv<mode>_1): Rename from mov<mode>_insv_1.
23922         (*insvqi): Rename from *movqi_insv_2.
23923         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23924         for renamed insvsi_1.
23925         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23927 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
23929         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
23930         call to nvptx_reorg_subreg.
23932 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
23934         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23935         * graphite-dependencies.c, graphite-interchange.c,
23936         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23937         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23938         Likewise.
23940 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
23942         * match.pd: Remove element_mode inside HONOR_*.
23943         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23944         (~X | X -> -1, ~X ^ X -> -1): Merge.
23945         * tree.c (build_each_one_cst): New function.
23946         * tree.h (build_each_one_cst): Likewise.
23948 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23950         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23951         PROCESSOR_IAMCU.
23953 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
23955         * config.gcc <mips*-*-*>: Add fused-madd.opt.
23956         * config/mips/mips.opt (mfused-madd): Remove.
23957         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23958         * config/mips/mips.h (TARGET_MIPS8000): New.
23959         (ISA_HAS_FP_MADD4_MSUB4): Remove.
23960         (ISA_HAS_FP_MADDF_MSUBF): Remove.
23961         (ISA_HAS_FP_MADD3_MSUB3): Remove.
23962         (ISA_HAS_NMADD4_NMSUB4): Remove.
23963         (ISA_HAS_NMADD3_NMSUB3): Remove.
23964         (ISA_HAS_FUSED_MADD4): New.
23965         (ISA_HAS_UNFUSED_MADD4): New.
23966         (ISA_HAS_FUSED_MADDF): New.
23967         (ISA_HAS_FUSED_MADD3): New.
23968         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23969         (*fma<mode>4_madd3) New.
23970         (*fma<mode>4_madd4) New.
23971         (*fma<mode>4_maddf) New.
23972         (fms<mode>4) New.
23973         (*fms<mode>4_msub3) New.
23974         (*fms<mode>4_msub4) New.
23975         (fnma<mode>4) New.
23976         (*fnma<mode>4_nmadd3) New.
23977         (*fnma<mode>4_nmadd4) New.
23978         (fnms<mode>4) New.
23979         (*fnms<mode>4_nmsub3) New.
23980         (*fnms<mode>4_nmsub4) New.
23981         (*madd4<mode>) Modify to be unfused only.
23982         (*msub4<mode>) Modify to be unfused only.
23983         (*nmadd4<mode>) Modify to be unfused only.
23984         (*nmsub4<mode>) Modify to be unfused only.
23985         (*madd3<mode>) Remove.
23986         (*msub3<mode>) Remove.
23987         (*nmadd3<mode>) Remove.
23988         (*nmsub3<mode>) Remove.
23989         (*nmadd3<mode>_fastmath) Remove.
23990         (*nmsub3<mode>_fastmath) Remove.
23991         (*nmadd4<mode>_fastmath) Update condition.
23992         (*nmsub4<mode>_fastmath) Update condition.
23994 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23996         PR target/65956
23997         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23998         alignment attribute, exploring one level down for records and arrays.
24000 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
24002         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
24003         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
24004         Copy operand 1 to a temporary if !ext_register_operand.  Remove
24005         ancient extract_bit_field workaround.
24006         (*extv<mode>): Rename from *mov<mode>_extv_1.
24007         (*extvqi): Rename from *movqi_extv_1.
24008         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
24009         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
24010         to a temporary if !ext_register_operand.  Remove ancient
24011         extract_bit_field workaround.
24012         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
24013         (*extzvqi): Rename from *movqi_extzv_2.
24014         (*testqi_ext_3): Remove modes from const_int_operand predicated
24015         operands.  Add "n" constraint.
24016         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
24017         operand.  Add "J" constraint.
24018         (*btsq, *btrq, *btcq peephole2s): Remove mode from
24019         const_0_to_63 predicated operand.
24020         (regmode): New insn attribute.
24021         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
24022         to nonmemory_operand.  Use regmode insn attribute.
24023         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
24024         (*jcc_bt<mode>_mask): Remove mode from operand 3.
24025         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
24026         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
24027         operands.  Use "N" constraint instead of "n".
24029 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
24031         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
24033 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
24035         PR target/66749
24036         * config/i386/i386.c (iamcu_cost): New.
24037         (m_IAMCU): Likewise.
24038         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
24039         (processor_target_table): Add an entry for "iamcu".
24040         (processor_alias_table): Likewise.
24041         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
24042         (ix86_adjust_cost): Likewise.
24043         (ia32_multipass_dfa_lookahead): Likewise.
24044         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
24045         * config/i386/x86-tune.def: Updated for m_IAMCU.
24047 2015-07-06  Richard Biener  <rguenther@suse.de>
24049         PR tree-optimization/66772
24050         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
24051         values are available in the PHI node BB when there are
24052         still unexecutable edges.
24054 2015-07-06  Richard Biener  <rguenther@suse.de>
24056         PR tree-optimization/66767
24057         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
24058         Make sure to build the alignment test on a SSA name without
24059         final alignment info valid only if the alignment test
24060         evaluates to true.
24062 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
24064         PR target/66620
24065         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
24066         loop start when inserting LSETUP.
24068 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
24070         PR target/53383
24071         * config/i386/i386.c (ix86_option_override_internal): Allow
24072         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
24074 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24076         * read-md.c (decimal_string): Rename to ...
24077         (md_decimal_string): ... this.
24078         (handle_enum): Reflect this.
24080 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24082         PR target/66731
24083         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
24085 2015-07-06  Richard Biener  <rguenther@suse.de>
24087         PR middle-end/66759
24088         * match.pd: Add missing constraint of y to REAL_CST in
24089         REAL_CST - x CMP y to y - CST CMP x simplification.
24091 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
24093         PR tree-optimization/66757
24094         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
24096 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
24097             Sandra Loosemore <sandra@codesourcery.com>
24099         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
24100         Delete extern declaration.
24101         (gprel_constant_p): Add extern declaration.
24102         * config/nios2/constraints.md ("S"): Use gprel_constant_p
24103         instead of nios2_symbol_ref_in_small_data_p.
24104         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
24105         (nios2_symbol_ref_in_small_data_p): Make static.
24106         (gprel_constant_p): Make non-static.
24108 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
24110         * doc/fragments.texi (Target Fragment): Convert debian.org
24111         link to use https.
24112         * doc/install.texi (Configuration): Ditto.
24114 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
24116         PR tree-optimization/66718
24117         * tree-vect-stmts.c (vectorizable_call): Replace uses of
24118         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
24120         PR tree-optimization/66718
24121         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
24122         vectorizable_load, vectorizable_condition): Move vectype,
24123         nunits, ncopies computation after checking what kind of statement
24124         stmt is.
24126 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24128         * target-insns.def (extv, extzv, insv): New targetm instruction
24129         patterns.
24130         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24131         interface.
24132         * recog.c (simplify_while_replacing): Likewise.
24134 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24136         * target-insns.def (doloop_begin, doloop_end): New targetm
24137         instruction patterns.
24138         * loop-init.c: Include target.h.
24139         (pass_loop2::gate): Use the new targetm patterns instead of
24140         HAVE_*/gen_* interface.
24141         (pass_rtl_doloop::gate): Likewise.
24142         (pass_rtl_doloop::execute): Remove preprocessor condition.
24143         * hw-doloop.c: Build unconditionally.
24144         * loop-doloop.c: Likewise.
24145         (doloop_optimize): Use the new targetm patterns instead of
24146         HAVE_*/gen_* interface.
24147         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24148         * modulo-sched.c (doloop_register_get): Likewise.
24150 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24152         * target-insns.def (clear_cache): New targetm instruction pattern.
24153         * builtins.c (expand_builtin___clear_cache): Use it instead of
24154         HAVE_*/gen_* interface.
24156 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24158         * target-insns.def (allocate_stack, check_stack, probe_stack)
24159         (probe_stack_address, split_stack_prologue, split_stack_space_check):
24160         New targetm instruction patterns.
24161         * explow.c (allocate_dynamic_stack_space): Use them instead of
24162         HAVE_*/gen_* interface.
24163         (emit_stack_probe): Likewise.
24164         (probe_stack_range): Likewise.
24165         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24167 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24169         * target-insns.def (stack_protect_set, stack_protect_test): New
24170         targetm instruction patterns.
24171         * cfgexpand.c (stack_protect_prologue): Use them instead of
24172         HAVE_*/gen_* interface.
24173         * function.c (stack_protect_epilogue): Likewise.
24175 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24177         * expr.h (gen_move_insn_uncast): Delete.
24178         * expr.c (gen_move_insn_uncast): Delete.
24180 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24182         * target-insns.def (restore_stack_block, restore_stack_function)
24183         (restore_stack_nonlocal, save_stack_block, save_stack_function)
24184         (save_stack_nonlocal): New targetm instruction patterns.
24185         * builtins.c (expand_builtin_apply): Use them instead of
24186         HAVE_*/gen_* interface.
24187         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24189 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24191         * target-insns.def (trap): New targetm instruction pattern.
24192         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24193         interface.
24194         * explow.c (allocate_dynamic_stack_space): Likewise.
24195         * ifcvt.c (find_if_header): Likewise.
24197 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24199         * target-insns.def (prefetch): New targetm instruction pattern.
24200         * tree-ssa-loop-prefetch.c: Include targeth.
24201         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24202         of HAVE_*/gen_* interface.
24203         * builtins.c (expand_builtin_prefetch): Likewise.
24204         * toplev.c (process_options): Likewise.
24206 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24208         * target-insns.def (untyped_call, untyped_return): New targetm
24209         instruction patterns.
24210         * builtins.c (expand_builtin_apply): Use them instead of
24211         HAVE_*/gen_* interface.
24212         (result_vector): Define unconditionally.
24214 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24216         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24217         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24218         (nonlocal_goto_receiver): New targetm instruction patterns.
24219         * builtins.c (expand_builtin_setjmp_setup): Use them instead
24220         of HAVE_*/gen_* interface.
24221         (expand_builtin_setjmp_receiver): Likewise.
24222         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24223         * except.c (expand_dw2_landing_pad_for_region): Likewise.
24225 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24227         * target.def: Add code_for_* hooks.
24228         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24229         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24230         * target-insns.def (casesi, tablejump): New targetm instruction
24231         patterns.
24232         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24233         (do_tablejump): Likewise.
24234         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24235         (expand_sjlj_dispatch_table): Likewise.
24236         * targhooks.c (default_case_values_threshold): Likewise.
24238 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
24240         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24241         Use rtx_insn * instead of rtx.
24242         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24243         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24244         (nios2_call_tls_get_addr): Likewise.
24245         (nios2_emit_expensive_div): Likewise.
24246         (nios2_emit_move_sequence): Change return type to bool.
24247         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24248         Change return type to bool.
24250 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24252         PR target/66747
24253         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24255 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
24257         PR target/66114
24258         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24259         of register_operand.  Remove constraint.
24261 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
24263         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24264         the first argument.
24266 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
24268         * attribs.c (decl_attributes): Guard inform with the return value
24269         of the preceding warning.
24271 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24273         * doc/invoke.texi (moverride): Move to correct section.
24275 2015-07-03  Richard Biener  <rguenther@suse.de>
24277         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24278         Copy from tree.c
24279         (dt_operand::gen_gimple_expr): After valueizing operands
24280         re-canonicalize operand order for commutative tree codes.
24282 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
24284         PR target/66746.
24285         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24286         is defined.
24287         (__crc32w): Likewise.
24288         (__crc32d): Likewise.
24289         (__rdpmc): Likewise.
24290         (__rdtscp): Likewise.
24291         (_rdpmc): Likewise.
24292         (_rdtscp): Likewise.
24293         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24294         is defined.
24296 2015-07-03  Richard Biener  <rguenther@suse.de>
24298         * fold-const.c (fold_mathfn_compare): Remove.
24299         (fold_inf_compare): Likewise.
24300         (fold_comparison): Move floating point comparison simplifications...
24301         * match.pd: ... to patterns here.  Introduce simple_comparisons
24302         operator list and use it for patterns formerly in fold_comparison.
24304 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24306         PR tree-optimization/66119
24307         * toplev.c (process_options): Don't set up default values for
24308         the sra_max_scalarization_size_{speed,size} parameters.
24309         * tree-sra (analyze_all_variable_accesses): If no values
24310         have been set for the sra_max_scalarization_size_{speed,size}
24311         parameters, call get_move_ratio to get target defaults.
24313 2015-07-03  Richard Biener  <rguenther@suse.de>
24315         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24316         * match.pd: ... here.
24318 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
24320         PR target/37072
24321         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24322         is not actually the default on FreeBSD.
24324 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24326         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24327         definition.
24328         (CMPGE_8HI): Likewise.
24329         (CMPGE_4SI): Likewise.
24330         (CMPGE_2DI): Likewise.
24331         (CMPGE_U16QI): Likewise.
24332         (CMPGE_U8HI): Likewise.
24333         (CMPGE_U4SI): Likewise.
24334         (CMPGE_U2DI): Likewise.
24335         (CMPLE_16QI): Likewise.
24336         (CMPLE_8HI): Likewise.
24337         (CMPLE_4SI): Likewise.
24338         (CMPLE_2DI): Likewise.
24339         (CMPLE_U16QI): Likewise.
24340         (CMPLE_U8HI): Likewise.
24341         (CMPLE_U4SI): Likewise.
24342         (CMPLE_U2DI): Likewise.
24343         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24344         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24345         ALTIVEC_BUILTIN_VEC_CMPLE.
24346         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24347         floating-point vector modes.
24348         (vector_nlt<mode>): New define_expand.
24349         (vector_nltu<mode>): Likewise.
24350         (vector_ngt<mode>): Likewise.
24351         (vector_ngtu<mode>): Likewise.
24353 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
24355         PR rtl-optimization/66706
24356         * combine.c (make_compound_operation): If an AND of SUBREG of
24357         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24359 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
24361         * tree-pass.h (make_pass_ch_vect): New.
24362         * passes.def: Add pass_ch_vect just before pass_if_conversion.
24364         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24365         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24366         make_pass_ch_vect): New.
24367         (pass_ch): Extend ch_base.
24369         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24370         (ch_base::copy_headers): ...here.
24372 2015-07-02  Richard Biener  <rguenther@suse.de>
24374         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24375         * fold-const.c (get_pointer_modulus_and_residue): Remove.
24376         (fold_binary_loc): Implement (T)ptr & CST in terms of
24377         get_pointer_alignment_1.
24378         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24379         Make sure to build the alignment test on a SSA name without
24380         final alignment info valid only after the prologue.
24382 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
24384         * config/cris/cris.md ("epilogue"): Remove condition.
24385         ("prologue"): Ditto.
24387 2015-07-02  Richard Biener  <rguenther@suse.de>
24389         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24390         parameter to record a condition that is false.
24391         (record_conditions): When recording an extra NE_EXPR that is
24392         true also record a EQ_EXPR that is false.
24394 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
24396         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24397         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24398         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
24399         (set_iv, find_interesting_uses_address, add_candidate_1): New
24400         argument to alloc_iv.
24401         (find_interesting_uses_op, find_interesting_uses_cond): Don't
24402         duplicate struct iv.
24403         (free_loop_data): Don't free struct iv explicitly.
24404         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24406 2015-07-01  DJ Delorie  <dj@redhat.com>
24408         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24409         (LIB_SPEC): Add.
24410         (SUPPORTS_DISCRIMINATOR): Define.
24412 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24414         PR bootstrap/66685
24415         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24416         there are no CALLs in the same pattern.
24418 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24420         PR rtl-optimization/61047
24421         * rtlanal.c (get_initial_register_offset): New function.
24422         (rtx_addr_can_trap_p_1): Check offsets of stack references.
24424 2015-07-01  Richard Biener  <rguenther@suse.de>
24426         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
24427         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
24428         ~X CMP C -> X CMP' ~C to ...
24429         * match.pd: ... patterns here.
24431 2015-07-01  Nick Clifton  <nickc@redhat.com>
24433         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
24434         a 16-bit value into a 20-bit memory slot.
24436 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24438         * doc/sourcebuild.texi (AArch64-specific attributes): Document
24439         "aarch64_tiny", "aarch64_small", "aarch64_large",
24440         "aarch64_little_endian", "aarch64_big_endian".
24442 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24444         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
24445         Document "aarch64_small_fpic".
24447 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24449         * configure.ac: Add check for aarch64 assembler -fpic relocation
24450         modifier support.
24451         * configure: Regenerate.
24452         * config.in: Regenerate.
24453         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
24454         to -fPIC if not support of -fpic relocation modifier in assembler.
24456 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24458         PR bootstrap/66685
24459         * rtl.c (classify_insn): Handle returns in PARALLELs.
24461 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
24463         PR middle-end/66633
24464         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
24465         to true if the function is nested and if not optimizing.
24466         (convert_local_omp_clauses): Initialize need_frame to true if the
24467         function contains nested functions and if not optimizing.
24469 2015-07-01  Richard Biener  <rguenther@suse.de>
24471         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
24472         (X & Y) ^ Y -> ~X & Y transforms to ...
24473         * match.pd: ... here.
24475 2015-07-01  Richard Biener <rguenther@suse.de>
24477         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
24478         of converts to avoid uninteresting noise from the conversion
24479         simplifying patterns.
24481 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
24483         * config/c6x/c6x.c (try_rename_operands): Do not depend on
24484         gcc_assert evaluating its argument for side-effect.
24486 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
24488         PR target/64833
24489         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
24490         flag_pic is set.
24492 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
24494         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
24495         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
24496         (hash_scc): Add this_ref_p and ref_p parameters and pass them
24497         to the inner DFS walk.
24499 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24501         * target-insns.def (jump): New targetm instruction pattern.
24502         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
24503         instead of gen_jump.
24504         (fix_up_crossing_landing_pad): Likewise.
24505         (add_labels_and_missing_jumps): Likewise.
24506         (fix_crossing_conditional_branches): Likewise.
24507         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24508         (force_nonfallthru_and_redirect): Likewise.
24509         * cse.c (cse_insn): Likewise.
24510         * expmed.c (expand_divmod): Likewise.
24511         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
24512         * haifa-sched.c (init_before_recovery): Likewise.
24513         (sched_create_recovery_edges): Likewise.
24514         * ifcvt.c (find_cond_trap): Likewise.
24515         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
24516         (expand_float, expand_fix): Likewise.
24517         * stmt.c (emit_jump): Likewise.
24519 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24521         * defaults.h (HAVE_load_multiple, gen_load_multiple)
24522         (HAVE_store_multiple, gen_store_multiple): Delete.
24523         * target-insns.def (load_multiple, store_multiple): New targetm
24524         instruction patterns.
24525         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
24526         of HAVE_*/gen_* interface.
24528 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24530         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
24531         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
24532         (gen_mem_signal_fence): Delete.
24533         * target-insns.def (mem_signal_fence, mem_thread_fence)
24534         (memory_barrier): New targetm instruction patterns.
24535         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
24536         interface.
24537         (expand_mem_signal_fence): Likewise.
24539 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24541         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
24542         * target-insns.def (epilogue, prologue, sibcall_prologue): New
24543         targetm instruction patterns.
24544         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
24545         interface.
24546         * calls.c (expand_call): Likewise.
24547         * cfgrtl.c (cfg_layout_finalize): Likewise.
24548         * df-scan.c (df_get_entry_block_def_set): Likewise.
24549         (df_get_exit_block_use_set): Likewise.
24550         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24551         * final.c (final_start_function): Likewise.
24552         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24553         (reposition_prologue_and_epilogue_notes): Likewise.
24554         * reorg.c (find_end_label): Likewise.
24555         * toplev.c (process_options): Likewise.
24557 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
24559         * typed-splay-tree.h: New file.
24561 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
24563         PR debug/66691
24564         * lra-int.h (lra_substitute_pseudo): Add a parameter.
24565         (lra_substitute_pseudo_within_insn): Ditto.
24566         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
24567         of constant.
24568         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
24569         to lra_substitute_pseudo.
24570         * lra-lives.c (process_bb_lives): Add an argument to
24571         lra_substitute_pseudo_within_insn call.
24572         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
24573         argument to lra_substitute_pseudo and
24574         lra_substitute_pseudo_within_insn calls.
24575         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
24577 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
24579         * configure: Regenerated.
24581 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
24583         * config.gcc: Support i[34567]86-*-elfiamcu target.
24584         * config/i386/iamcu.h: New.
24585         * config/i386/i386.opt: Add -miamcu.
24586         * doc/invoke.texi: Document -miamcu.
24587         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
24588         off x87/MMX/SSE/AVX codegen for -miamcu.
24589         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24590         __iamcu/__iamcu__ for -miamcu.
24591         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
24592         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
24593         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
24594         * config/i386/i386.c (ix86_option_override_internal): Ignore and
24595         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
24596         MCU by default.  Default long double to 64-bit for Intel MCU.
24597         Turn on -freg-struct-return for Intel MCU.  Issue an error when
24598         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
24599         AVX is turned on.
24600         (function_arg_advance_32): Pass value whose size is no larger
24601         than 8 bytes in registers for Intel MCU.
24602         (function_arg_32): Likewise.
24603         (ix86_return_in_memory): Return value whose size is no larger
24604         than 8 bytes in registers for Intel MCU.
24605         (iamcu_alignment): New function.
24606         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
24607         true.
24608         (ix86_local_alignment): Don't increase alignment for Intel MCU.
24609         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
24610         true.
24612 2015-06-30  Marek Polacek  <polacek@redhat.com>
24614         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
24615         both operands of the resulting expression.
24617         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
24618         the final expression with the operand's type and then convert
24619         it to the type of the expression.
24621 2015-06-30  Richard Biener  <rguenther@suse.de>
24623         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
24624         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
24625         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
24626         * match.pd: ... to patterns here.
24628 2015-06-30  Richard Biener  <rguenther@suse.de>
24630         PR tree-optimization/66704
24631         * tree-vect-data-refs.c (vect_setup_realignment): Use
24632         make_ssa_name for non-SSA name source.
24634 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
24636         PR middle-end/66702
24637         * omp-low.c (simd_clone_adjust): Handle addressable linear
24638         or uniform parameters or non-gimple type uniform parameters.
24640 2015-06-30  Richard Biener  <rguenther@suse.de>
24642         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
24643         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
24644         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
24645         * match.pd: ... here.
24646         Add a few cases of A - B -> A + (-B) when B "easily" negates.
24647         Move (x & y) | x -> x and friends before
24648         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
24650 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
24652         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
24653         -mfix-ut699 is not specified.
24654         (leon3_load): Rename into...
24655         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
24656         is specified.
24658 2015-06-30  Marek Polacek  <polacek@redhat.com>
24660         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
24661         * match.pd: ... here.
24663 2015-06-30  Richard Biener  <rguenther@suse.de>
24665         * target-insns.def (canonicalize_funcptr_for_compare): Add.
24666         * fold-const.c (build_range_check): Replace uses of
24667         HAVE_canonicalize_funcptr_for_compare.
24668         (fold_widened_comparison): Likewise.
24669         (fold_sign_changed_comparison): Likewise.
24670         * dojump.c: Include "target.h".
24671         (do_compare_and_jump): Replace uses of
24672         HAVE_canonicalize_funcptr_for_compare and
24673         gen_canonicalize_funcptr_for_compare.
24674         * expr.c (do_store_flag): Likewise.
24676 2015-06-30  Tom de Vries  <tom@codesourcery.com>
24678         PR tree-optimization/66652
24679         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
24680         max_loop_iterations to determine if nit + 1 overflows.
24682 2015-06-30  Richard Biener  <rguenther@suse.de>
24684         * tree-vrp.c (register_edge_assert_for_2): Also register
24685         asserts for dominating conversion results.
24687 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
24689         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
24690         field in struct iv.
24692 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
24694         PR target/66509
24695         * configure.ac: Fix filds and fildq test for 64-bit.
24696         * configure: Regenerated.
24698 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
24700         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
24701         (nvptx_reorg): Here.  Keep the non-subreg pieces.
24703 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
24705         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
24706         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24708 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
24710         * config/i386/i386.md (*jcc_1): Use %! in asm template.
24711         Set attribute "length_nobnd" instead of "length".
24712         (*jcc_2): Ditto.
24713         (jump): Ditto.
24714         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
24716 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
24718         * config/nios2/nios2.c (nios2_delegitimize_address): Make
24719         assert less restrictive.
24721 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24723         PR fortran/66605
24724         * cgraphunit.c (cgraph_node::finalize_function): Do not call
24725         do_warn_unused_parameter.
24726         * function.c (do_warn_unused_parameter): Move from here.
24727         * function.h (do_warn_unused_parameter): Do not declare.
24729 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24731         PR target/65697
24732         * gcc.target/arm/armv-sync-comp-swap.c: New.
24733         * gcc.target/arm/armv-sync-op-acquire.c: New.
24734         * gcc.target/arm/armv-sync-op-full.c: New.
24735         * gcc.target/arm/armv-sync-op-release.c: New.
24737 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24739         PR target/65697
24740         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24741         initial acquire barrier with final barrier.
24743 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24745         PR target/65697
24746         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24747         initial acquire barrier with final barrier.
24749 2015-06-29  Richard Henderson  <rth@redhat.com>
24751         * config/i386/constraints.md (Bf): New constraint.
24752         * config/i386/i386-c.c (ix86_target_macros): Define
24753         __GCC_ASM_FLAG_OUTPUTS__.
24754         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24755         as flags outputs.
24756         * doc/extend.texi (FlagOutputOperands): Document them.
24758 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
24760         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24761         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24762         unspec name.
24763         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24764         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24765         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24766         (aarch64_symbol_context): Ditto.
24767         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24768         and use new pattern name.
24769         (aarch64_expand_mov_immediate): Ditto.
24770         (aarch64_print_operand): Ditto.
24771         (aarch64_classify_tls_symbol): Ditto.
24773 2015-06-29  Marek Polacek  <polacek@redhat.com>
24774             Marc Glisse  <marc.glisse@inria.fr>
24776         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24777         * match.pd: ... pattern here.
24779 2015-06-29  Tom de Vries  <tom@codesourcery.com>
24781         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24782         function structure.
24784 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24786         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24787         feature description, split out the native option, add a link to
24788         the feature documentation, rearrange and slightly rewrite text.
24789         (Aarch64 options, -mcpu): Likewise.
24790         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
24791         +rdma implies Adv. SIMD.
24793 2015-06-29  Marek Polacek  <polacek@redhat.com>
24795         PR c/66322
24796         * function.c (stack_protect_epilogue): Remove a cast to int.
24797         * doc/invoke.texi: Update -Wswitch-bool description.
24799 2015-06-29  Richard Biener  <rguenther@suse.de>
24801         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24802         * fold-const.c (fold_binary_loc): Move &A - &B simplification
24803         via ptr_difference_const ...
24804         * match.pd: ... here.
24805         When matching (X ^ Y) == Y also match with swapped operands.
24807 2015-06-29  Richard Biener  <rguenther@suse.de>
24809         * lto-streamer.h (LTO_major_version): Bump to 5.
24811 2015-06-29  Richard Biener  <rguenther@suse.de>
24813         PR tree-optimization/66677
24814         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24815         STMT_VINFO_VEC_STMT clobbering less strict.
24817 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
24819         PR middle-end/64130
24820         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24821         division, compute max and min when value ranges for dividend and
24822         divisor are available.
24824 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
24825             Sandra Loosemore <sandra@codesourcery.com>
24827         * regrename.h (regrename_do_replace): Change to return bool.
24828         * regrename.c (rename_chains): Check return value of
24829         regname_do_replace.
24830         (regrename_do_replace): Re-validate the modified insns and
24831         return bool status.
24832         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24833         Update to match rename_chains changes.
24834         * config/c6x/c6x.c (try_rename_operands): Assert that
24835         regrename_do_replace returns true.
24837 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
24839         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24840         operand 2 here.  Use copy_addr_to_reg to copy non-index
24841         register operand 2 to a temporary.
24842         (<mode>_stx): Ditto for operand 1.
24843         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24844         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24845         (ix86_store_bounds): Ditto.
24847 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
24849         * print-tree.c (print_node) [TREE_VEC]: Print its length.
24851 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
24853         * gimple.c (gimple_call_set_fndecl): Remove.
24854         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24855         build1_loc directly instead of build_fold_addr_expr_loc.
24857 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24859         * hash-map.h (hash_map::traverse): Use the definition of the
24860         Key typedef rather than the typedef itself.
24862 2015-06-26  Martin Jambor  <mjambor@suse.cz>
24864         PR debug/66301
24865         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24866         NULL instead of calling dump_enabled_p.
24868 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24870         * config/aarch64/aarch64.opt: (override): New.
24871         * doc/invoke.texi (override): Document.
24872         * config/aarch64/aarch64.c (aarch64_flag_desc): New
24873         (aarch64_fusible_pairs): Likewise.
24874         (aarch64_tuning_flags): Likewise.
24875         (aarch64_tuning_override_function): Likewise.
24876         (aarch64_tuning_override_functions): Likewise.
24877         (aarch64_parse_one_option_token): Likewise.
24878         (aarch64_parse_boolean_options): Likewise.
24879         (aarch64_parse_fuse_string): Likewise.
24880         (aarch64_parse_tune_string): Likewise.
24881         (aarch64_parse_one_override_token): Likewise.
24882         (aarch64_parse_override_string): Likewise.
24883         (aarch64_override_options): Parse the -override string if it
24884         is present.
24886 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24888         * config/aarch64/aarch64-protos.h (tune_params): Remove
24889         const from members.
24890         (aarch64_tune_params): Remove const, change to no longer be
24891         a pointer.
24892         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24893         change to no longer be a pointer, initialize to generic_tunings.
24894         (aarch64_min_divisions_for_recip_mul): Change dereference of
24895         aarch64_tune_params to member access.
24896         (aarch64_reassociation_width): Likewise.
24897         (aarch64_rtx_mult_cost): Likewise.
24898         (aarch64_address_cost): Likewise.
24899         (aarch64_branch_cost): Likewise.
24900         (aarch64_rtx_costs): Likewise.
24901         (aarch64_register_move_cost): Likewise.
24902         (aarch64_memory_move_cost): Likewise.
24903         (aarch64_sched_issue_rate): Likewise.
24904         (aarch64_builtin_vectorization_cost): Likewise.
24905         (aarch64_override_options): Take a copy of the selected tuning
24906         struct in to aarch64_tune_params, rather than just setting
24907         a pointer, change dereferences of aarch64_tune_params to member
24908         accesses.
24909         (aarch64_override_options_after_change): Change dereferences of
24910         aarch64_tune_params to member access.
24911         (aarch64_macro_fusion_p): Likewise.
24912         (aarch_macro_fusion_pair_p): Likewise.
24913         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24915 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24917         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24918         (aarch64_tune_flags): Likewise.
24919         (AARCH64_TUNE_FMA_STEERING): Likewise.
24920         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24921         to AARCH64_FL_USE_FMA_STEERING_PASS.
24922         (cortex-a57.cortex-a53): Likewise.
24923         (cortex-a72): Use cortexa72_tunings.
24924         (cortex-a72.cortex-a53): Likewise.
24925         (exynos-m1): Likewise.
24926         * config/aarch64/aarch64-protos.h (tune_params): Add
24927         a field: extra_tuning_flags.
24928         * config/aarch64/aarch64-tuning-flags.def: New.
24929         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24930         (aarch64_extra_tuning_flags): Likewise.
24931         (aarch64_tune_params): Declare here.
24932         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24933         (cortexa53_tunings): Likewise.
24934         (cortexa57_tunings): Likewise.
24935         (thunderx_tunings): Likewise.
24936         (xgene1_tunings): Likewise.
24937         (cortexa72_tunings): New.
24938         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24939          (gate): Check against aarch64_tune_params.
24940         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24941         aarch64-protos.h.
24943 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24945         * config/aarch64/aarch64-fusion-pairs.def: New.
24946         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24947         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24948         aarch64_fusion_pairs.
24949         (AARCH64_FUSE_MOV_MOVK): Likewise.
24950         (AARCH64_FUSE_ADRP_ADD): Likewise.
24951         (AARCH64_FUSE_MOVK_MOVK): Likewise.
24952         (AARCH64_FUSE_ADRP_LDR): Likewise.
24953         (AARCH64_FUSE_CMP_BRANCH): Likewise.
24955 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24957         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24958         SYMBOL_SMALL_GOT_28K.
24959         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24960         relocation modifiers.
24961         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24962         (ldr_got_small_28k_<mode>): New.
24963         (ldr_got_small_28k_sidi): New.
24964         * config/aarch64/iterators.md (got_modifier): New mode iterator.
24965         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24966         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24967         SYMBOL_SMALL_GOT_28K.
24968         (aarch64_rtx_costs): Add costs for new instruction sequences.
24969         (initialize_aarch64_code_model): Initialize new model.
24970         (aarch64_classify_symbol): Recognize new model and new symbol classification.
24971         (aarch64_asm_preferred_eh_data_format): Support new model.
24972         (aarch64_load_symref_appropriately): Generate new instruction
24973         sequences for -fpic.
24974         (TARGET_USE_PSEUDO_PIC_REG): New definition.
24975         (aarch64_use_pseudo_pic_reg): New function.
24977 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24979         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24980         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24981         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24982         (aarch64_expand_mov_immediate): Ditto.
24983         (aarch64_print_operand): Ditto.
24984         (aarch64_classify_symbol): Ditto.
24986 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
24988         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24990 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
24992         PR bootstrap/66638
24993         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24994         assertion failed.  Remove assertion itself.
24996 2015-06-26  Richard Biener  <rguenther@suse.de>
24998         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24999         and -A CMP CST -> A CMP -CST which is redundant with a pattern
25000         in match.pd.
25001         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
25002         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
25003         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
25004         * match.pd: ... patterns here.
25006 2015-06-26  Marek Polacek  <polacek@redhat.com>
25008         * match.pd ((x | y) & ~(x & y) -> x ^ y,
25009         (x | y) & (~x ^ y) -> x & y): New patterns.
25011 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
25013         * rtl.h (emit): Add an optional boolean parameter to control
25014         whether barriers are emitted.
25015         * emit-rtl.c (emit): Likewise.
25016         * gensupport.c (get_emit_function): Return null rather than "emit".
25017         * genemit.c (gen_emit_seq): Handle the null return value.
25018         Don't emit barriers after the final instruction in the sequence.
25019         * gentarget-def.c (main): Don't emit barriers after the instruction.
25021 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25023         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
25024         TARGET_UNIFIED_ASM.
25026 2015-06-26  Richard Biener  <rguenther@suse.de>
25028         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
25030 2015-06-26  Richard Biener  <rguenther@suse.de>
25032         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
25033         irrespective on whether the inner operation has a single use
25034         of both off are constant.
25036 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
25037             Segher Boessenkool  <segher@kernel.crashing.org>
25039         PR target/66412
25040         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
25041         before doing PUT_MODE or PUT_CODE on operands to avoid
25042         in-place RTX modification.
25044 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
25046         * gentarget-def.c (def_target_insn): Cast return of strtol to
25047         unsigned int.
25049 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25051         * gimple.h (gimple_call_set_fn): Move inline function.
25052         * gimple.c (gimple_call_set_fn): Relocate here.
25054 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
25056         PR target/65979
25057         PR target/66611
25058         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
25059         the replacement insn will work.
25061 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
25063         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
25064         by default.
25066 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25068         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
25069         * cgraph.h: Include ipa-ref.h and plugin-api.h.
25070         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
25071         (symtab_node::address_can_be_compared_p): Move function.
25072         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
25073         definition here.
25074         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
25075         * auto-profile.c: Likewise.
25076         * bb-reorder.c: Likewise.
25077         * builtins.c: Likewise.
25078         * calls.c: Likewise.
25079         * cfgexpand.c: Likewise.
25080         * cgraphbuild.c: Likewise.
25081         * cgraphclones.c: Likewise.
25082         * cgraphunit.c: Likewise.
25083         * combine.c: Likewise.
25084         * coverage.c: Likewise.
25085         * data-streamer-in.c: Likewise.
25086         * data-streamer-out.c: Likewise.
25087         * data-streamer.c: Likewise.
25088         * dbxout.c: Likewise.
25089         * dwarf2out.c: Likewise.
25090         * except.c: Likewise.
25091         * expr.c: Likewise.
25092         * final.c: Likewise.
25093         * fold-const.c: Likewise.
25094         * ggc-page.c: Likewise.
25095         * gimple-fold.c: Likewise.
25096         * gimple-iterator.c: Likewise.
25097         * gimple-pretty-print.c: Likewise.
25098         * gimple-streamer-in.c: Likewise.
25099         * gimple-streamer-out.c: Likewise.
25100         * gimple.c: Likewise.
25101         * gimplify.c: Likewise.
25102         * ipa-chkp.c: Likewise.
25103         * ipa-comdats.c: Likewise.
25104         * ipa-cp.c: Likewise.
25105         * ipa-devirt.c: Likewise.
25106         * ipa-icf-gimple.c: Likewise.
25107         * ipa-icf.c: Likewise.
25108         * ipa-inline-analysis.c: Likewise.
25109         * ipa-inline-transform.c: Likewise.
25110         * ipa-inline.c: Likewise.
25111         * ipa-polymorphic-call.c: Likewise.
25112         * ipa-profile.c: Likewise.
25113         * ipa-prop.c: Likewise.
25114         * ipa-pure-const.c: Likewise.
25115         * ipa-ref.c: Likewise.
25116         * ipa-reference.c: Likewise.
25117         * ipa-split.c: Likewise.
25118         * ipa-utils.c: Likewise.
25119         * ipa-visibility.c: Likewise.
25120         * ipa.c: Likewise.
25121         * langhooks.c: Likewise.
25122         * lto-cgraph.c: Likewise.
25123         * lto-compress.c: Likewise.
25124         * lto-opts.c: Likewise.
25125         * lto-section-in.c: Likewise.
25126         * lto-section-out.c: Likewise.
25127         * lto-streamer-in.c: Likewise.
25128         * lto-streamer-out.c: Likewise.
25129         * lto-streamer.c: Likewise.
25130         * omp-low.c: Likewise.
25131         * opts-global.c: Likewise.
25132         * passes.c: Likewise.
25133         * predict.c: Likewise.
25134         * print-tree.c: Likewise.
25135         * profile.c: Likewise.
25136         * ree.c: Likewise.
25137         * sanopt.c: Likewise.
25138         * stor-layout.c: Likewise.
25139         * symtab.c: Likewise.
25140         * toplev.c: Likewise.
25141         * trans-mem.c: Likewise.
25142         * tree-cfg.c: Likewise.
25143         * tree-chkp.c: Likewise.
25144         * tree-eh.c: Likewise.
25145         * tree-emutls.c: Likewise.
25146         * tree-inline.c: Likewise.
25147         * tree-nested.c: Likewise.
25148         * tree-parloops.c: Likewise.
25149         * tree-pretty-print.c: Likewise.
25150         * tree-profile.c: Likewise.
25151         * tree-sra.c: Likewise.
25152         * tree-ssa-alias.c: Likewise.
25153         * tree-ssa-live.c: Likewise.
25154         * tree-ssa-loop-ivcanon.c: Likewise.
25155         * tree-ssa-loop-ivopts.c: Likewise.
25156         * tree-ssa-pre.c: Likewise.
25157         * tree-ssa-sccvn.c: Likewise.
25158         * tree-ssa-strlen.c: Likewise.
25159         * tree-ssa-structalias.c: Likewise.
25160         * tree-streamer-in.c: Likewise.
25161         * tree-streamer-out.c: Likewise.
25162         * tree-streamer.c: Likewise.
25163         * tree-switch-conversion.c: Likewise.
25164         * tree-tailcall.c: Likewise.
25165         * tree-vect-data-refs.c: Likewise.
25166         * tree-vect-stmts.c: Likewise.
25167         * tree-vectorizer.c: Likewise.
25168         * tree.c: Likewise.
25169         * tsan.c: Likewise.
25170         * ubsan.c: Likewise.
25171         * value-prof.c: Likewise.
25172         * varasm.c: Likewise.
25173         * varpool.c: Likewise.
25174         * config/arm/arm.c: Likewise.
25175         * config/bfin/bfin.c: Likewise.
25176         * config/c6x/c6x.c: Likewise.
25177         * config/cris/cris.c: Likewise.
25178         * config/darwin-c.c: Likewise.
25179         * config/darwin.c: Likewise.
25180         * config/i386/i386.c: Likewise.
25181         * config/i386/winnt.c: Likewise.
25182         * config/microblaze/microblaze.c: Likewise.
25183         * config/mips/mips.c: Likewise.
25184         * config/rs6000/rs6000.c: Likewise.
25185         * config/rx/rx.c: Likewise.
25186         * config/s390/s390.c: Likewise.
25187         * config/tilegx/mul-tables.c: Likewise.
25189 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25191         * config/aarch64/aarch64.c, config/alpha/alpha.c,
25192         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25193         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25194         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25195         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25196         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25197         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25198         config/microblaze/microblaze.c, config/mips/mips.c,
25199         config/mmix/mmix.c, config/mn10300/mn10300.c,
25200         config/moxie/moxie.c, config/msp430/msp430.c,
25201         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25202         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25203         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25204         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25205         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25206         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25207         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25208         target-def.h include.
25209         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
25211 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25213         * Makefile.in (TARGET_DEF): Add target-insns.def.
25214         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25215         (build/gentarget-def.o): New rule.
25216         (genprogrtl): Add target-def.
25217         * target-insns.def, gentarget-def.c: New files.
25218         * target.def: Add targetm.have_* and targetm.gen_* hooks,
25219         based on the contents of target-insns.def.
25220         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25221         (HAVE_return, gen_return): Delete.
25222         * target-def.h: Include insn-target-def.h.
25223         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25224         instead of direct calls.  Rely on them to do the appropriate assertions.
25225         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
25226         (convert_jumps_to_returns): Use targetm interface instead of
25227         direct calls.
25228         (thread_prologue_and_epilogue_insns): Likewise.
25229         * reorg.c (find_end_label, dbr_schedule): Likewise.
25230         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25231         * shrink-wrap.c (convert_to_simple_return): Likewise.
25232         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25234 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25236         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25237         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25238         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25239         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25240         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25241         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25242         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25243         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25244         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25245         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25246         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25247         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25248         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25249         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25250         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25251         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25252         includes to end.
25254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25256         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25257         (unbounded_int_hashmap_traits::key_type): Likewise.
25258         * hash-map.h (hash_map): Get the key type from the traits.
25259         * hash-traits.h (default_hash_traits): By default, inherit from the
25260         template parameter.
25261         * alias.c (alias_set_traits): Delete.
25262         (alias_set_entry_d::children): Use alias_set_hash as the first
25263         template parameter.
25264         (record_alias_subset): Update accordingly.
25265         * except.c (tree_hash_traits): Delete.
25266         (type_to_runtime_map): Use tree_hash as the first template parameter.
25267         (init_eh): Update accordingly.
25268         * genmatch.c (capture_id_map_hasher): Delete.
25269         (cid_map_t): Use nofree_string_hash as first template parameter.
25270         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25271         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25272         Use symbol_compare_hash as the first template parameter in
25273         subdivide_hash_map.
25274         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25275         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25276         template parameter.
25277         * passes.c (pass_registry_hasher): Delete.
25278         (name_to_pass_map): Use nofree_string_hash as the first template
25279         parameter.
25280         (register_pass_name): Update accordingly.
25281         * sanopt.c (sanopt_tree_map_traits): Delete.
25282         (sanopt_tree_triplet_map_traits): Delete.
25283         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25284         template parameter.
25285         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25286         the first template parameter.
25287         * sese.c (rename_map_hasher): Delete.
25288         (rename_map_type): Use tree_ssa_name_hash as the first template
25289         parameter.
25290         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25291         (function_summary::m_map): Use map_hash as the first template
25292         parameter.
25293         (function_summary::release): Update accordingly.
25294         * tree-if-conv.c (phi_args_hash_traits): Delete.
25295         (predicate_scalar_phi): Use tree_operand_hash as the first template
25296         parameter to phi_arg_map.
25297         * tree-inline.h (dependence_hasher): Delete.
25298         (copy_body_data::dependence_map): Use dependence_hash as the first
25299         template parameter.
25300         * tree-inline.c (remap_dependence_clique): Update accordingly.
25301         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25302         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25303         parameter.
25304         (addr_stridxptr): Update accordingly.
25305         * value-prof.c (profile_id_traits): Delete.
25306         (cgraph_node_map): Use profile_id_hash as the first template
25307         parameter.
25308         (init_node_map): Update accordingly.
25309         * config/alpha/alpha.c (string_traits): Delete.
25310         (machine_function::links): Use nofree_string_hash as the first
25311         template parameter.
25312         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25313         * config/m32c/m32c.c (pragma_traits): Delete.
25314         (pragma_htab): Use nofree_string_hash as the first template parameter.
25315         (m32c_note_pragma_address): Update accordingly.
25316         * config/mep/mep.c (pragma_traits): Delete.
25317         (pragma_htab): Use nofree_string_hash as the first template parameter.
25318         (mep_note_pragma_flag): Update accordingly.
25319         * config/mips/mips.c (mips16_flip_traits): Delete.
25320         (mflip_mips16_htab): Use nofree_string_hash as the first template
25321         parameter.
25322         (mflip_mips16_use_mips16_p): Update accordingly.
25323         (local_alias_traits): Delete.
25324         (mips16_local_aliases): Use nofree_string_hash as the first template
25325         parameter.
25326         (mips16_local_alias): Update accordingly.
25328 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25330         * hash-map-traits.h (default_hashmap_traits): Delete.
25332 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25334         * hash-map-traits.h (unbounded_hashmap_traits): New class.
25335         (unbounded_int_hashmap_traits): Likewise.
25336         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25338 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25340         * ipa-icf.h (symbol_compare_hash): New class.
25341         (symbol_compare_hashmap_traits): Use it.
25342         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25343         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25344         (mem_alloc_description::reverse_mem_map_t): Remove redundant
25345         default_hashmap_traits.
25346         * sanopt.c (sanopt_tree_triplet_hash): New class.
25347         (sanopt_tree_triplet_map_traits): Use it.
25349 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25351         * gengtype-parse.c (require_template_declaration): Allow '+' in
25352         template parameters.  Consolidate cases.
25353         * hash-traits.h (int_hash): New class.
25354         * alias.c (alias_set_hash): New structure.
25355         (alias_set_traits): Use it.
25356         * symbol-summary.h (function_summary::map_hash): New class.
25357         (function_summary::summary_hashmap_traits): Use it.
25358         * tree-inline.h (dependence_hash): New class.
25359         (dependence_hasher): Use it.
25360         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25361         * value-prof.c (profile_id_hash): New class.
25362         (profile_id_traits): Use it.
25364 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25366         * config/mips/mips.c (mips16_flip_traits): Use it.
25367         (local_alias_traits, mips16_local_aliases): Convert from a map of
25368         rtxes to a map of symbol names.
25369         (mips16_local_alias): Update accordingly.
25371 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25373         * hash-traits.h (string_hash, nofree_string_hash): New classes.
25374         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25375         * passes.c (pass_registry_hasher): Likewise.
25376         * config/alpha/alpha.c (string_traits): Likewise.
25377         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25378         * config/m32c/m32c.c (pragma_traits): Likewise.
25379         * config/mep/mep.c (pragma_traits): Likewise.
25381 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25383         * tree-hash-traits.h (tree_hash): New class.
25384         * except.c: Include tree-hash-traits.h.
25385         (tree_hash_traits): Use tree_hash.
25387 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25389         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25390         * sese.c: Include tree-hash-traits.h.
25391         (rename_map_hasher): Use tree_ssa_name_hasher.
25393 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25395         * tree-hash-traits.h (tree_decl_hash): New class.
25396         * tree-ssa-strlen.c: Include tree-hash-traits.h.
25397         (stridxlist_hash_traits): Use tree_decl_hash.
25399 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25401         * tree-hash-traits.h: New file.
25402         (tree_operand_hash): New class.
25403         * sanopt.c: Include tree-hash-traits.h.
25404         (sanopt_tree_map_traits): Use tree_operand_hash.
25405         * tree-if-conv.c: Include tree-hash-traits.h.
25406         (phi_args_hash_traits): Use tree_operand_hash.
25407         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25408         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25410 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25412         * hash-map-traits.h: Include hash-traits.h.
25413         (simple_hashmap_traits): New class.
25414         * mem-stats.h (hash_map): Change the default traits to
25415         simple_hashmap_traits<default_hash_traits<Key> >.
25417 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25419         * hash-table.h: Update comments.
25421 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25423         * hash-traits.h (default_hash_traits): New structure.
25424         * hash-set.h (default_hashset_traits): Delete.
25425         (hash_set): Use default_hash_traits<Key> instead of
25426         default_hashset_traits.  Delete hash_entry type and use Key directly.
25427         * ipa-devirt.c (pair_traits): Delete.
25428         (default_hash_traits <type_pair>): Override.
25429         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
25430         (odr_types_equivalent_p, add_type_duplicate): Likewise.
25432 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25434         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
25436 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25438         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
25439         (has_is_empty, is_empty_helper): Delete.
25440         (has_mark_deleted, mark_deleted_helper): Delete.
25441         (has_mark_empty, mark_empty_helper): Delete.
25442         (hash_table::is_deleted): Call the Descriptor unconditionally.
25443         (hash_table::is_empty): Likewise.
25444         (hash_table::mark_deleted): Likewise.
25445         (hash_table::mark_empty): Likewise.
25447 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25449         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
25450         redundant typedefs and members.
25451         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
25452         redundant typedefs.
25453         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
25454         * ipa-devirt.c (odr_name_hasher): Likewise.
25455         (polymorphic_call_target_hasher): Likewise.
25456         * ira-costs.c (cost_classes_hasher): Likewise.
25457         * statistics.c (stats_counter_hasher): Likewise.
25458         * trans-mem.c (log_entry_hasher): Likewise.
25459         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25460         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
25461         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
25462         * var-tracking.c (variable_hasher): Likewise.
25463         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
25464         Remove redundant typedefs and members.
25466 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25468         * hash-traits.h (ggc_cache_hasher): Rename to...
25469         (ggc_cache_remove): ...this and remove typedefs.
25470         (ggc_cache_ptr_hash): New class.
25471         * hash-table.h: Update commentary.
25472         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
25473         rather than ggc_cache_hasher.
25474         (const_wide_int_hasher, reg_attr_hasher): Likewise.
25475         (const_double_hasher, const_fixed_hasher): Likewise.
25476         * function.c (insn_cache_hasher): Likewise.
25477         * trans-mem.c (tm_wrapper_hasher): Likewise.
25478         * tree.h (tree_decl_map_cache_hasher): Likewise.
25479         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
25480         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
25481         * ubsan.c (tree_type_map_cache_hasher): Likewise.
25482         * varasm.c (tm_clone_hasher): Likewise.
25483         * config/i386/i386.c (dllimport_hasher): Likewise.
25484         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
25485         (tree_hasher): Likewise.
25487 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25489         * hash-traits.h (ggc_hasher): Rename to...
25490         (ggc_remover): ...this and remove typedefs.
25491         (ggc_cache_hasher): Update accordingly.  Add typedefs.
25492         (ggc_ptr_hash): New class.
25493         * hash-table.h: Update comment.
25494         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
25495         ggc_hasher.
25496         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
25497         (tree_descriptor_hasher): Likewise.
25498         * cgraph.c (function_version_hasher): Likewise.
25499         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
25500         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
25501         (dw_loc_list_hasher, addr_hasher): Likewise.
25502         * function.h (used_type_hasher): Likewise.
25503         * function.c (temp_address_hasher): Likewise.
25504         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
25505         * libfuncs.h (libfunc_hasher): Likewise.
25506         * lto-streamer.h (decl_state_hasher): Likewise.
25507         * optabs.c (libfunc_decl_hasher): Likewise.
25508         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
25509         * varasm.c (section_hasher, object_block_hasher): Likewise.
25510         (const_rtx_desc_hasher): Likewise.
25511         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
25512         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
25514 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25516         * hash-traits.h (free_ptr_hash): New class.
25517         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
25518         rather than typed_free_remove.  Remove redudant typedefs.
25519         (external_ref_hasher): Likewise.
25520         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
25521         (ehspec_hasher): Likewise.
25522         * ggc-common.c (saving_hasher): Likewise.
25523         * gimplify.c (gimplify_hasher): Likewise.
25524         * haifa-sched.c (delay_i2_hasher): Likewise.
25525         * loop-invariant.c (invariant_expr_hasher): Likewise.
25526         * loop-iv.c (biv_entry_hasher): Likewise.
25527         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
25528         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
25529         * tree-cfg.c (locus_discrim_hasher): Likewise.
25530         * tree-eh.c (finally_tree_hasher): Likewise.
25531         * tree-into-ssa.c (var_info_hasher): Likewise.
25532         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
25533         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
25534         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
25535         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
25536         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
25537         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
25538         (shared_bitmap_hasher): Likewise.
25539         * tree-ssa-threadupdate.c (redirection_data): Likewise.
25540         * tree-vectorizer.h (peel_info_hasher): Likewise.
25541         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
25542         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
25544 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25546         * hash-table.h: Update comments.
25547         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
25548         (nofree_ptr_hash): New class.
25549         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
25550         than typed_noop_remove.  Remove redudant typedefs.
25551         * attribs.c (attribute_hasher): Likewise.
25552         * cfg.c (bb_copy_hasher): Likewise.
25553         * cselib.c (cselib_hasher): Likewise.
25554         * dse.c (invariant_group_base_hasher): Likewise.
25555         * dwarf2cfi.c (trace_info_hasher): Likewise.
25556         * dwarf2out.c (macinfo_entry_hasher): Likewise.
25557         (comdat_type_hasher, loc_list_hasher): Likewise.
25558         * gcse.c (pre_ldst_expr_hasher): Likewise.
25559         * genmatch.c (id_base): Likewise.
25560         * genrecog.c (test_pattern_hasher): Likewise.
25561         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
25562         * haifa-sched.c (delay_i1_hasher): Likewise.
25563         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
25564         * ipa-icf.h (congruence_class_group_hash): Likewise.
25565         * ipa-profile.c (histogram_hash): Likewise.
25566         * ira-color.c (allocno_hard_regs_hasher): Likewise.
25567         * lto-streamer.h (string_slot_hasher): Likewise.
25568         * lto-streamer.c (tree_entry_hasher): Likewise.
25569         * plugin.c (event_hasher): Likewise.
25570         * postreload-gcse.c (expr_hasher): Likewise.
25571         * store-motion.c (st_expr_hasher): Likewise.
25572         * tree-sra.c (uid_decl_hasher): Likewise.
25573         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
25574         (ssa_name_var_hash): Likewise.
25575         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
25576         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
25577         * tree-ssa-pre.c (pre_expr_d): Likewise.
25578         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
25579         * vtable-verify.h (registration_hasher): Likewise.
25580         * vtable-verify.c (vtbl_map_hasher): Likewise.
25581         * config/arm/arm.c (libcall_hasher): Likewise.
25582         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
25583         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
25584         * config/sol2.c (comdat_entry_hasher): Likewise.
25585         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
25586         (print_fold_checksum, fold_checksum_tree): Likewise.
25587         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
25588         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
25589         (fold_build_call_array_loc): Likewise.
25590         * tree-ssa-ccp.c (gimple_htab): Likewise.
25591         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
25592         rather than pointer_type.
25594 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25596         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
25597         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
25599 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25601         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
25602         (ggc_hasher::ggc_mx): Likewise.
25603         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
25604         that duplicate ggc_hasher ones.
25606 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25608         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
25609         (gt_cleare_cache): Check here for deleted and empty entries.
25610         Replace handle_cache_entry with a call to keep_cache_entry.
25611         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
25612         (ggc_cache_hasher::keep_cache_entry): New function.
25613         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
25614         (tm_wrapper_hasher::keep_cache_entry): New function.
25615         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
25616         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25617         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
25618         (type_cache_hasher::keep_cache_entry): New function.
25619         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
25620         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25621         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
25622         (tree_type_map_cache_hasher::keep_cache_entry): New function.
25623         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
25624         (tm_clone_hasher::keep_cache_entry): New function.
25625         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
25626         (dllimport_hasher::keep_cache_entry): New function.
25628 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25630         * hash-table.h: Include hash-traits.h.
25631         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
25632         (ggc_cache_hasher): Move to...
25633         * hash-traits.h: ...this new file.
25635 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25637         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
25638         struct cl_optimization.
25639         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
25640         * tree.c (make_node_stat): Allocate cl_optimization struct.
25641         (copy_node_stat): Allocate and copy cl_optimization struct.
25643 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25645         * function.h (struct incoming_args): Move struct.
25646         (pass_by_reference, reference_callee_copied): Remove prototypes.
25647         * emit-rtl.h (struct incoming_args): Relocate struct here.
25648         * calls.h (pass_by_reference, reference_callee_copied): Relocate
25649         prototypes here.
25650         * function.c (pass_by_reference, reference_callee_copied): Move.
25651         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
25652         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
25653         * ipa-chkp.c: Include calls.h.
25655 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
25657         * alias.h (alias_set_type): Move typedef.
25658         * coretypes.h (alias_set_type): Relocate typedef here.
25659         * rtl.h: Don't include alias.h.
25661 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25663         * cgraph.h (cgraph_rtl_info): Move to rtl.h
25664         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
25665         and instance.
25666         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
25667         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
25668         doesn't exist.
25669         * calls.c: Include hard-reg-set.h before rtl.h.
25670         * ira.c: Likewise.
25672 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25673             Vladimir Makarov  <vmakarov@redhat.com>
25675         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
25676         Add assert.
25678 2015-06-25  Richard Biener  <rguenther@suse.de>
25680         * fold-const.c (fold_binary_loc): Move simplification of
25681         (X <<>> C1) & C2 ...
25682         * match.pd: ... here.
25684 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
25686         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
25688 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25690         * match.pd: Add patterns for vec_conds between 1 and 0.
25692 2015-06-25  Richard Biener  <rguenther@suse.de>
25694         * tree-vect-stmts.c (vectorizable_conversion): Do not set
25695         STMT_VINFO_VEC_STMT for SLP.
25696         (vectorizable_store): Likewise.
25697         (vectorizable_load): Likewise.
25698         (vect_transform_stmt): Catch SLP vectorization clobbering
25699         STMT_VINFO_VEC_STMT.
25701 2015-06-25  Richard Biener  <rguenther@suse.de>
25703         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
25704         dumping.
25705         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
25706         cleanup resulting dead code and parameters.
25707         (vect_transform_slp_perm_load): Adjust.
25709 2015-06-25  Nick Clifton  <nickc@redhat.com>
25711         * config/bfin/bfin.c (bfin_expand_prologue): Set
25712         current_function_static_stack_size if flag_stack_usage_info is set.
25713         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
25714         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
25715         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
25716         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
25718 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25720         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
25721         comment that the generated IV is unsigned.
25723 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25725         PR target/29693
25726         * config/arm/arm.c (arm_dbx_register_number): Return
25727         DWARF_FRAME_REGISTERS by default.
25729 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25731         * dominance.c (calculate_dominance_info): Fix verify_dominators call
25732         argument.  Call verify_dominator when reusing dominator info.
25734 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
25736         PR target/66563
25737         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25738         an additional element of the unspec vector.  Modify indices
25739         of operands.
25740         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25741         * config/sh/sh.c (prepare_move_operands): Pass incremented
25742         const_int to gen_GOTaddr2picreg.
25743         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25745 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25747         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25748         Condition on TARGET_FLOAT.
25750 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25752         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25753         and (no)crypto.
25755 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25757         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25759         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25760         aarch64_err_no_fpadvsimd.
25762         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25763         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25764         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25765         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25766         Turn error into assert, test TARGET_FLOAT.
25767         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25768         TARGET_FLOAT.
25770 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
25772         PR debug/66482
25773         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25775 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
25777         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25779 2015-06-24  Renlin Li <renlin.li@arm.com>
25781         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25782         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25784 2015-06-24  Richard Biener  <rguenther@suse.de>
25786         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25787         (main): Likewise.
25788         (lower_opt_convert): Support lowering of conditional view_convert.
25789         (parser::parse_operation): Likewise.
25790         (parser::parse_for): Likewise.
25792 2015-06-24  Renlin Li  <renlin.li@arm.com>
25794         * varasm.c (emit_local): Use unsigned int for align variable.
25796 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25798         PR target/63408
25799         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25800         for negative numbers.
25802 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25804         PR rtl-optimization/66306
25805         * reload.c (find_reloads): Swap the match_dup info for
25806         commutative operands.
25808 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25810         * config/s390/vx-builtins.md
25811         ("vec_scatter_element<mode>_<non_vec_int>")
25812         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25813         attribute with bhfgq.
25815 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25817         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25819 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25821         * config/s390/s390-builtin-types.def: Add flag to indicate the
25822         options under which the function type is needed.
25823         * config/s390/s390-builtins.def: Add flag to indicate the options
25824         under which the builtin is enabled.
25825         * config/s390/s390-builtins.h: Add flags parameter to macro
25826         definitions.
25827         (bflags_for_builtin): New function.
25828         (flags_for_builtin): Renamed to ...
25829         (opflags_for_builtin): ... this.
25830         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25831         flags_for_builtin to bflags_for_builtin and
25832         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25833         * config/s390/s390.c: Add initialization of bflags_builtin and
25834         opflags_builtin arrays.
25835         Remove code for flags_builtin.
25836         (s390_init_builtins): Only create builtin function types if one of
25837         their flags is active.
25838         Only create builtins if all of their flags are active.
25839         (s390_expand_builtin): Rename flags_for_builtin to
25840         opflags_for_builtin.
25842 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25844         * config/s390/vecintrin.h: Remove internal builtins.
25846 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25848         * config/s390/s390.c (s390_secondary_reload): Fix check for
25849         GENERAL_REGS register class.
25851 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25853         * config/s390/s390.c (s390_support_vector_misalignment): Call
25854         default implementation for !TARGET_VX.
25856 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25858         * config/s390/s390.c (s390_legitimate_constant_p): Add
25859         TARGET_VX check.
25861 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25863         * config/s390/s390.c (s390_vector_abi): New variable definition.
25864         (s390_check_type_for_vector_abi): New function.
25865         (TARGET_ASM_FILE_END): New macro definition.
25866         (s390_asm_file_end): New function.
25867         (s390_function_arg): Call s390_check_type_for_vector_abi.
25868         (s390_gimplify_va_arg): Likewise.
25869         * configure: Regenerate.
25870         * configure.ac: Check for .gnu_attribute Binutils feature.
25872 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
25874         PR target/65803
25875         * config/bfin/bfin.c (hwloop_optimize): Initialize
25876         JUMP_LABEL for newly created jump.
25878 2015-06-23  Tristan Gingold  <gingold@adacore.com>
25880         * collect-utils.c (collect_wait): Unlink the response file here
25881         instead of...
25882         (do_wait): ...here.
25883         (utils_cleanup): ...and here.
25885 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
25887         * df-scan.c: Don't include target-def.h.
25888         * targhooks.c: Likewise.
25889         * config/arm/arm-c.c: Likewise.
25890         * config/i386/i386-c.c: Likewise.
25891         * config/nds32/nds32-cost.c: Likewise.
25892         * config/nds32/nds32-fp-as-gp.c: Likewise.
25893         * config/nds32/nds32-intrinsic.c: Likewise.
25894         * config/nds32/nds32-isr.c: Likewise.
25895         * config/nds32/nds32-md-auxiliary.c: Likewise.
25896         * config/nds32/nds32-memory-manipulation.c: Likewise.
25897         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25898         * config/nds32/nds32-predicates.c: Likewise.
25900 2015-06-23  Richard Biener  <rguenther@suse.de>
25902         PR tree-optimization/66636
25903         * tree-vect-stmts.c (vectorizable_store): Properly compute the
25904         def type for further defs for strided stores.
25906 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
25908         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25909         conditional selects.
25910         (setcc_int<mode>, setcc_float<mode>): Reformat.
25912 2015-06-23  Marek Polacek  <polacek@redhat.com>
25914         * match.pd ((x + y) - (x | y) -> x & y,
25915         (x + y) - (x & y) -> x | y): New patterns.
25917 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
25919         PR 65711
25920         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25921         '-dynamic-linker' within %{!shared: ...}.
25923 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
25925         PR target/66560
25926         * config/i386/predicates.md (addsub_vm_operator): New predicate.
25927         (addsub_vs_operator): Ditto.
25928         (addsub_vs_parallel): Ditto.
25929         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25930         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25931         Put minus RTX before plus and adjust vec_merge selector.
25932         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25933         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25934         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25935         (addsub vec_merge splitters): New combiner splitters.
25936         (addsub vec_select/vec_concat splitters): Ditto.
25938 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
25940         PR tree-optimization/66449
25941         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25942         POINTER_PLUS_EXPR for pointers.
25944 2015-06-23  Alan Modra  <amodra@gmail.com>
25946         * rtlanal.c (commutative_operand_precedence): Correct comments.
25947         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25948         declaration.  Return an int.  Distinguish REG,REG return from
25949         others.
25950         (struct simplify_plus_minus_op_data): Make local to function.
25951         (simplify_plus_minus): Don't set canonicalized if merely sorting
25952         registers.  Avoid packing ops if nothing changes.  White space fixes.
25954 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
25956         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25957         -fdump-ada-spec is passed but not if -fsyntax-only is.
25959 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
25961         PR bootstrap/63740
25962         * lra-lives.c (process_bb_lives): Check insn copying the same
25963         reload pseudo and don't create a copy for it.
25965 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25967         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25968         for cond_stmt.
25970 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25972         * builtins.def (DEF_GOMP_BUILTIN): Test
25973         'flag_tree_parallelize_loops > 1' instead of
25974         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
25976 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25978         * dominance.c (calculate_dominance_info): Verify dominators if
25979         early-out.
25981 2015-06-22  Marek Polacek  <polacek@redhat.com>
25983         * match.pd ((x ^ y) ^ (x | y) -> x & y,
25984         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25985         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25986         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25988 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
25990         PR target/65871
25991         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25992         cost of embedded comparison.
25994 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25996         PR target/65914
25997         * config/rs6000/predicates.md (altivec_register_operand): Permit
25998         virtual stack registers.
25999         (vsx_register_operand): Likewise.
26000         (vfloat_operand): Likewise.
26001         (vint_operand): Likewise.
26002         (vlogical_operand): Likewise.
26004 2015-06-22  Richard Biener  <rguenther@suse.de>
26006         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
26007         and single_scalar_iteration_cost members.
26008         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
26009         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
26010         (vect_get_single_scalar_iteration_cost): Remove.
26011         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26012         Use LOOP_VINFO_SCALAR_ITERATION_COST.
26013         * tree-vect-loop.c (destroy_loop_vec_info): Free
26014         scalar_cost_vec.
26015         (vect_get_single_scalar_iteration_cost): Compute result into
26016         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
26017         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
26018         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
26019         (vect_estimate_min_profitable_iters): Use them.
26021 2015-06-22  Christian Bruel  <christian.bruel@st.com>
26023         PR target/52144
26024         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
26025         (TARGET_INSERT_ATTRIBUTES): Define.
26026         (thumb_flipper): New var.
26027         * config/arm/arm.opt (-mflip-thumb): New switch.
26029 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
26030             Martin Liska  <mliska@suse.cz>
26032         PR ipa/65908
26033         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
26034         construction of arg_types.
26035         (sem_function::sem_function): Likewise.
26036         (sem_function::~sem_function): Remove destruction of arg_types.
26037         (sem_function::compatible_parm_types_p): New function.
26038         (sem_function::equals_wpa): Reorg matching of return values
26039         and parameter types.
26040         (sem_function::equals_private): Reorg mathcing of argument types.
26041         (sem_function::parse_tree_args): Remove.
26042         * ipa-icf.h (init_wpa): Do not call it.
26043         (parse_tree_args): Remove.
26044         (compatible_parm_types_p): Declare.
26045         (result_type): Remove.
26046         (arg_types): Remove.
26048 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
26050         PR ipa/66351
26051         * ipa-polymorphic-call.c
26052         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
26053         initializing alias oracle; fix formating; set base_alias_set if it
26054         is known.
26056 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
26058         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
26059         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
26060         (find_inc): Likewise.
26061         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
26062         swapping.
26063         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
26064         * df-scan.c (df_swap_refs): Remove.
26065         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
26066         * dominance.c (link_roots): Use std::swap instead of manually swapping.
26067         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
26068         * fold-const.c (fold_relational_const): Likewise.
26069         * genattrtab.c (simplify_test_exp): Likewise.
26070         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
26071         gimple_simplify): Likewise.
26072         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
26073         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
26074         * ipa-devirt.c (add_type_duplicate): Likewise.
26075         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
26076         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
26077         * lra.c (lra_create_copy): Likewise.
26078         * lto-streamer-out.c (DFS::DFS): Likewise.
26079         * modulo-sched.c (get_sched_window): Likewise.
26080         * omega.c (omega_pretty_print_problem): Likewise.
26081         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
26082         * reload1.c (reloads_unique_chain_p): Likewise.
26083         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
26084         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
26085         use std::swap.
26086         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
26087         manually swapping.
26088         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
26089         predicate_mem_writes): Likewise.
26090         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
26091         * tree-predcom.c (combine_chains): Likewise.
26092         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
26093         refs_may_alias_p_1): Likewise.
26094         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
26095         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26096         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
26097         number_of_iterations_cond): Likewise.
26098         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26099         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
26100         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26101         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
26102         * tree-vrp.c (extract_range_from_binary_expr_1,
26103         extract_range_from_unary_expr_1): Likewise.
26105 2015-06-20  Marek Polacek  <polacek@redhat.com>
26107         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
26109 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26111         PR target/66591
26112         * config/sh/sh.c (prepare_move_operands): Replace subreg
26113         index term with R0 for base and index addressing.
26115 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
26117         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
26118         op1 is an fp zero.
26119         (movsf_aarch64): Change condition from register_operand to
26120         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
26121         load1.  Change type for alternative 7 to store1.
26122         (movdf_aarch64): Likewise.
26124 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
26126         * config/vax/vax.md: Adjust sign/zero extend patterns to
26127         handle SUBREGs in operands[1].
26129 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26131         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26132         of manually swapping.
26133         (expand_vec_perm_interleave2): Likewise.
26135 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
26137         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26138         reuse bounds created for abnormal ssa names.
26140 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
26142         * config/nvptx/nvptx.md (allocate_stack): Rename to...
26143         (allocate_stack_<mode>): ... this, and add :P on both
26144         match_operand and unspec.
26145         (allocate_stack): New expander.
26147 2015-06-19  Christian Bruel  <christian.bruel@st.com>
26149         PR target/66541
26150         PR target/52144
26151         * config/arm/arm.c (arm_set_current_function): Handle
26152         explicit default options.
26154 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
26156         * config/i386/i386.md (*movsicc_noc_zext): New insn.
26157         (zero-extended cmove with mem peephole2): New pattern.
26158         (cmove with mem peephole2): Merge patterns.
26160 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
26162         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26164 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
26166         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26167         * config/mips/mips.md (*madd4<mode>): Ditto.
26168         (*nmadd3<mode>) Ditto.
26169         (*nmadd4<mode>_fastmath): Ditto.
26170         (*nmadd3<mode>_fastmath): Ditto.
26171         (*nmsub4<mode>): Ditto.
26172         (*nmsub3<mode>): Ditto.
26173         (*nmsub4<mode>_fastmath): Ditto.
26174         (*nmsub3<mode>_fastmath): Ditto.
26176 2015-06-18  Michael Matz  <matz@suse.de>
26178         PR middle-end/66253
26179         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26180         grouped strided stores.
26181         (vectorizable_load): Don't use the DR from first_stmt in
26182         the non-SLP grouped strided case.
26184 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26186         PR target/66569
26187         * function.c (assign_bounds): Add arguments assign_regs,
26188         assign_special, assign_bt.
26189         (assign_parms): For vararg functions handle bounds in BT
26190         and special slots after incoming vararg bounds.
26192 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26194         PR middle-end/66568
26195         * cfgexpand.c (expand_return): Handle missing bounds.
26196         (expand_gimple_stmt_1): Likewise.
26197         * tree-chkp.c (chkp_expand_zero_bounds): New.
26198         * tree-chkp.h (chkp_expand_zero_bounds): New.
26200 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26202         PR middle-end/66567
26203         * ipa-chkp.c (chkp_maybe_create_clone): Require
26204         functions to be instrumentable.
26205         * tree-chkp.c (chkp_replace_function_pointer): Use
26206         chkp_instrumentable_p instead of attribute check.
26208 2015-06-18  Richard Biener  <rguenther@suse.de>
26210         PR tree-optimization/66510
26211         * tree-vect-stmts.c (vectorizable_load): Properly compute the
26212         number of vector loads for SLP permuted loads.
26213         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26214         check the stride for loop vectorization.
26215         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26216         vectorization factor.
26217         (vect_analyze_group_access): If the group size is not a power
26218         of two require a epilogue loop.
26219         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26220         compute and optimizing and alias test pruning after final
26221         vectorization factor computation.
26222         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26223         vector alignment.
26224         (vect_transform_slp_perm_load): Properly compute the original
26225         number of vector load stmts.
26227 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
26229         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26230         "unlikely character , in @var" warning.
26232 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
26234         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26235         (ix86_function_arg_advance): Ditto.
26236         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
26238 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26240         * function.h (struct rtl_data): Remove struct and accessor macros.
26241         * emit-rtl.h (struct rtl_data): Relocate to here.
26242         * Makefile.in (GTFILES): Add emit-rtl.h.
26243         * df-core.c: Include emit-rtl.h.
26244         * genattrtab.c: Likewise.
26245         * genconditions.c: Likewise.
26246         * genpreds.c: Likewise.
26247         * genrecog.c: Likewise.
26248         * regcprop.c: Likewise.
26249         * resource.c: Likewise.
26250         * sched-rgn.c: Likewise.
26251         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26252         * config/i386/winnt.c: Likewise.
26254 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
26256         PR middle-end/66429
26257         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26258         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
26259         and has_force_vectorize_loops flags from cfun into
26260         child_cfun.
26261         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26262         if simduid is non-NULL.
26263         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26264         * passes.def (pass_simduid_cleanup): Add new pass after loop
26265         passes.
26266         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26267         indirection from htab argument's type.
26268         (shrink_simd_arrays): New function.
26269         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
26270         Don't call adjust_simduid_builtins if there are no loops.
26271         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26272         (pass_simduid_cleanup::execute): New method.
26273         (make_pass_simduid_cleanup): New function.
26275 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
26277         * tree-core.h (tree_target_option): Make opts field a pointer to a
26278         cl_target_option instead of an instance of the struct.
26279         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26280         the structure.
26281         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26282         TARGET_OPTION_NODE.
26283         (copy_node_stat): Allocate and copy struct cl_target_option.
26285 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26287         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26288         Remove conditional exposure of prototypes.
26289         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26290         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
26291         definitions in tree.h with functions.
26292         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26293         anon_aggrname_p.
26294         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26296 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
26298         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26299         (*cmp<mode>_signed): ... this.
26300         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26301         (*cmp<mode>_unsigned): ... this.  Remove %b.
26303 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26305         * coretypes.h: Include input.h and as-a.h.
26306         * rtl.h: Include input.h and as-a.h for generator files.
26307         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26308         * vec.c: Don't include diagnostic-core.h.
26309         * alias.c: Do not include input.h, line-map.h or is-a.h.
26310         * asan.c: Likewise.
26311         * attribs.c: Likewise.
26312         * auto-inc-dec.c: Likewise.
26313         * auto-profile.c: Likewise.
26314         * bb-reorder.c: Likewise.
26315         * bt-load.c: Likewise.
26316         * builtins.c: Likewise.
26317         * caller-save.c: Likewise.
26318         * calls.c: Likewise.
26319         * ccmp.c: Likewise.
26320         * cfg.c: Likewise.
26321         * cfganal.c: Likewise.
26322         * cfgbuild.c: Likewise.
26323         * cfgcleanup.c: Likewise.
26324         * cfgexpand.c: Likewise.
26325         * cfghooks.c: Likewise.
26326         * cfgloop.c: Likewise.
26327         * cfgloop.h: Likewise.
26328         * cfgloopanal.c: Likewise.
26329         * cfgloopmanip.c: Likewise.
26330         * cfgrtl.c: Likewise.
26331         * cgraph.c: Likewise.
26332         * cgraphbuild.c: Likewise.
26333         * cgraphclones.c: Likewise.
26334         * cgraphunit.c: Likewise.
26335         * cilk-common.c: Likewise.
26336         * combine-stack-adj.c: Likewise.
26337         * combine.c: Likewise.
26338         * compare-elim.c: Likewise.
26339         * convert.c: Likewise.
26340         * coverage.c: Likewise.
26341         * cppbuiltin.c: Likewise.
26342         * cprop.c: Likewise.
26343         * cse.c: Likewise.
26344         * cselib.c: Likewise.
26345         * data-streamer-in.c: Likewise.
26346         * data-streamer-out.c: Likewise.
26347         * data-streamer.c: Likewise.
26348         * dbxout.c: Likewise.
26349         * dce.c: Likewise.
26350         * ddg.c: Likewise.
26351         * debug.c: Likewise.
26352         * df-core.c: Likewise.
26353         * df-problems.c: Likewise.
26354         * df-scan.c: Likewise.
26355         * df.h: Likewise.
26356         * dfp.c: Likewise.
26357         * diagnostic-core.h: Likewise.
26358         * diagnostic.c: Likewise.
26359         * dojump.c: Likewise.
26360         * dominance.c: Likewise.
26361         * domwalk.c: Likewise.
26362         * double-int.c: Likewise.
26363         * dse.c: Likewise.
26364         * dumpfile.c: Likewise.
26365         * dumpfile.h: Likewise.
26366         * dwarf2asm.c: Likewise.
26367         * dwarf2cfi.c: Likewise.
26368         * dwarf2out.c: Likewise.
26369         * emit-rtl.c: Likewise.
26370         * et-forest.c: Likewise.
26371         * except.c: Likewise.
26372         * explow.c: Likewise.
26373         * expmed.c: Likewise.
26374         * expr.c: Likewise.
26375         * final.c: Likewise.
26376         * fixed-value.c: Likewise.
26377         * fold-const.c: Likewise.
26378         * function.c: Likewise.
26379         * fwprop.c: Likewise.
26380         * gcc-plugin.h: Likewise.
26381         * gcse.c: Likewise.
26382         * generic-match-head.c: Likewise.
26383         * ggc-page.c: Likewise.
26384         * gimple-builder.c: Likewise.
26385         * gimple-expr.c: Likewise.
26386         * gimple-fold.c: Likewise.
26387         * gimple-iterator.c: Likewise.
26388         * gimple-low.c: Likewise.
26389         * gimple-match-head.c: Likewise.
26390         * gimple-pretty-print.c: Likewise.
26391         * gimple-ssa-isolate-paths.c: Likewise.
26392         * gimple-ssa-strength-reduction.c: Likewise.
26393         * gimple-streamer-in.c: Likewise.
26394         * gimple-streamer-out.c: Likewise.
26395         * gimple-streamer.h: Likewise.
26396         * gimple-walk.c: Likewise.
26397         * gimple.c: Likewise.
26398         * gimplify-me.c: Likewise.
26399         * gimplify.c: Likewise.
26400         * godump.c: Likewise.
26401         * graph.c: Likewise.
26402         * graphite-blocking.c: Likewise.
26403         * graphite-dependences.c: Likewise.
26404         * graphite-interchange.c: Likewise.
26405         * graphite-isl-ast-to-gimple.c: Likewise.
26406         * graphite-optimize-isl.c: Likewise.
26407         * graphite-poly.c: Likewise.
26408         * graphite-scop-detection.c: Likewise.
26409         * graphite-sese-to-poly.c: Likewise.
26410         * graphite.c: Likewise.
26411         * haifa-sched.c: Likewise.
26412         * hw-doloop.c: Likewise.
26413         * ifcvt.c: Likewise.
26414         * init-regs.c: Likewise.
26415         * input.c: Likewise.
26416         * internal-fn.c: Likewise.
26417         * ipa-chkp.c: Likewise.
26418         * ipa-comdats.c: Likewise.
26419         * ipa-cp.c: Likewise.
26420         * ipa-devirt.c: Likewise.
26421         * ipa-icf-gimple.c: Likewise.
26422         * ipa-icf.c: Likewise.
26423         * ipa-inline-analysis.c: Likewise.
26424         * ipa-inline-transform.c: Likewise.
26425         * ipa-inline.c: Likewise.
26426         * ipa-polymorphic-call.c: Likewise.
26427         * ipa-profile.c: Likewise.
26428         * ipa-prop.c: Likewise.
26429         * ipa-pure-const.c: Likewise.
26430         * ipa-ref.c: Likewise.
26431         * ipa-reference.c: Likewise.
26432         * ipa-split.c: Likewise.
26433         * ipa-utils.c: Likewise.
26434         * ipa-visibility.c: Likewise.
26435         * ipa.c: Likewise.
26436         * ira-build.c: Likewise.
26437         * ira-color.c: Likewise.
26438         * ira-conflicts.c: Likewise.
26439         * ira-costs.c: Likewise.
26440         * ira-emit.c: Likewise.
26441         * ira-lives.c: Likewise.
26442         * ira.c: Likewise.
26443         * jump.c: Likewise.
26444         * langhooks.c: Likewise.
26445         * lcm.c: Likewise.
26446         * loop-doloop.c: Likewise.
26447         * loop-init.c: Likewise.
26448         * loop-invariant.c: Likewise.
26449         * loop-iv.c: Likewise.
26450         * loop-unroll.c: Likewise.
26451         * lower-subreg.c: Likewise.
26452         * lra-assigns.c: Likewise.
26453         * lra-coalesce.c: Likewise.
26454         * lra-constraints.c: Likewise.
26455         * lra-eliminations.c: Likewise.
26456         * lra-lives.c: Likewise.
26457         * lra-remat.c: Likewise.
26458         * lra-spills.c: Likewise.
26459         * lra.c: Likewise.
26460         * lto-cgraph.c: Likewise.
26461         * lto-compress.c: Likewise.
26462         * lto-opts.c: Likewise.
26463         * lto-section-in.c: Likewise.
26464         * lto-section-out.c: Likewise.
26465         * lto-streamer-in.c: Likewise.
26466         * lto-streamer-out.c: Likewise.
26467         * lto-streamer.c: Likewise.
26468         * mcf.c: Likewise.
26469         * mode-switching.c: Likewise.
26470         * modulo-sched.c: Likewise.
26471         * omega.c: Likewise.
26472         * omp-low.c: Likewise.
26473         * optabs.c: Likewise.
26474         * opts-global.c: Likewise.
26475         * opts.h: Likewise.
26476         * passes.c: Likewise.
26477         * plugin.c: Likewise.
26478         * postreload-gcse.c: Likewise.
26479         * postreload.c: Likewise.
26480         * predict.c: Likewise.
26481         * pretty-print.h: Likewise.
26482         * print-rtl.c: Likewise.
26483         * print-tree.c: Likewise.
26484         * profile.c: Likewise.
26485         * real.c: Likewise.
26486         * realmpfr.c: Likewise.
26487         * recog.c: Likewise.
26488         * ree.c: Likewise.
26489         * reg-stack.c: Likewise.
26490         * regcprop.c: Likewise.
26491         * reginfo.c: Likewise.
26492         * regrename.c: Likewise.
26493         * regstat.c: Likewise.
26494         * reload.c: Likewise.
26495         * reload1.c: Likewise.
26496         * reorg.c: Likewise.
26497         * resource.c: Likewise.
26498         * rtl-chkp.c: Likewise.
26499         * rtl-error.c: Likewise.
26500         * rtlanal.c: Likewise.
26501         * rtlhooks.c: Likewise.
26502         * sanopt.c: Likewise.
26503         * sched-deps.c: Likewise.
26504         * sched-ebb.c: Likewise.
26505         * sched-rgn.c: Likewise.
26506         * sched-vis.c: Likewise.
26507         * sdbout.c: Likewise.
26508         * sel-sched-dump.c: Likewise.
26509         * sel-sched-ir.c: Likewise.
26510         * sel-sched.c: Likewise.
26511         * sese.c: Likewise.
26512         * shrink-wrap.c: Likewise.
26513         * simplify-rtx.c: Likewise.
26514         * stack-ptr-mod.c: Likewise.
26515         * statistics.c: Likewise.
26516         * stmt.c: Likewise.
26517         * stor-layout.c: Likewise.
26518         * store-motion.c: Likewise.
26519         * streamer-hooks.c: Likewise.
26520         * stringpool.c: Likewise.
26521         * symtab.c: Likewise.
26522         * target-globals.c: Likewise.
26523         * targhooks.c: Likewise.
26524         * toplev.c: Likewise.
26525         * tracer.c: Likewise.
26526         * trans-mem.c: Likewise.
26527         * tree-affine.c: Likewise.
26528         * tree-browser.c: Likewise.
26529         * tree-call-cdce.c: Likewise.
26530         * tree-cfg.c: Likewise.
26531         * tree-cfgcleanup.c: Likewise.
26532         * tree-chkp-opt.c: Likewise.
26533         * tree-chkp.c: Likewise.
26534         * tree-chrec.c: Likewise.
26535         * tree-complex.c: Likewise.
26536         * tree-data-ref.c: Likewise.
26537         * tree-dfa.c: Likewise.
26538         * tree-diagnostic.c: Likewise.
26539         * tree-dump.c: Likewise.
26540         * tree-eh.c: Likewise.
26541         * tree-emutls.c: Likewise.
26542         * tree-if-conv.c: Likewise.
26543         * tree-inline.c: Likewise.
26544         * tree-into-ssa.c: Likewise.
26545         * tree-iterator.c: Likewise.
26546         * tree-loop-distribution.c: Likewise.
26547         * tree-nested.c: Likewise.
26548         * tree-nrv.c: Likewise.
26549         * tree-object-size.c: Likewise.
26550         * tree-outof-ssa.c: Likewise.
26551         * tree-parloops.c: Likewise.
26552         * tree-phinodes.c: Likewise.
26553         * tree-predcom.c: Likewise.
26554         * tree-pretty-print.c: Likewise.
26555         * tree-profile.c: Likewise.
26556         * tree-scalar-evolution.c: Likewise.
26557         * tree-sra.c: Likewise.
26558         * tree-ssa-address.c: Likewise.
26559         * tree-ssa-alias.c: Likewise.
26560         * tree-ssa-ccp.c: Likewise.
26561         * tree-ssa-coalesce.c: Likewise.
26562         * tree-ssa-copy.c: Likewise.
26563         * tree-ssa-copyrename.c: Likewise.
26564         * tree-ssa-dce.c: Likewise.
26565         * tree-ssa-dom.c: Likewise.
26566         * tree-ssa-dse.c: Likewise.
26567         * tree-ssa-forwprop.c: Likewise.
26568         * tree-ssa-ifcombine.c: Likewise.
26569         * tree-ssa-live.c: Likewise.
26570         * tree-ssa-loop-ch.c: Likewise.
26571         * tree-ssa-loop-im.c: Likewise.
26572         * tree-ssa-loop-ivcanon.c: Likewise.
26573         * tree-ssa-loop-ivopts.c: Likewise.
26574         * tree-ssa-loop-manip.c: Likewise.
26575         * tree-ssa-loop-niter.c: Likewise.
26576         * tree-ssa-loop-prefetch.c: Likewise.
26577         * tree-ssa-loop-unswitch.c: Likewise.
26578         * tree-ssa-loop.c: Likewise.
26579         * tree-ssa-math-opts.c: Likewise.
26580         * tree-ssa-operands.c: Likewise.
26581         * tree-ssa-phiopt.c: Likewise.
26582         * tree-ssa-phiprop.c: Likewise.
26583         * tree-ssa-pre.c: Likewise.
26584         * tree-ssa-propagate.c: Likewise.
26585         * tree-ssa-reassoc.c: Likewise.
26586         * tree-ssa-sccvn.c: Likewise.
26587         * tree-ssa-scopedtables.c: Likewise.
26588         * tree-ssa-sink.c: Likewise.
26589         * tree-ssa-strlen.c: Likewise.
26590         * tree-ssa-structalias.c: Likewise.
26591         * tree-ssa-tail-merge.c: Likewise.
26592         * tree-ssa-ter.c: Likewise.
26593         * tree-ssa-threadedge.c: Likewise.
26594         * tree-ssa-threadupdate.c: Likewise.
26595         * tree-ssa-uncprop.c: Likewise.
26596         * tree-ssa-uninit.c: Likewise.
26597         * tree-ssa.c: Likewise.
26598         * tree-ssanames.c: Likewise.
26599         * tree-stdarg.c: Likewise.
26600         * tree-streamer-in.c: Likewise.
26601         * tree-streamer-out.c: Likewise.
26602         * tree-streamer.c: Likewise.
26603         * tree-switch-conversion.c: Likewise.
26604         * tree-tailcall.c: Likewise.
26605         * tree-vect-data-refs.c: Likewise.
26606         * tree-vect-generic.c: Likewise.
26607         * tree-vect-loop-manip.c: Likewise.
26608         * tree-vect-loop.c: Likewise.
26609         * tree-vect-patterns.c: Likewise.
26610         * tree-vect-slp.c: Likewise.
26611         * tree-vect-stmts.c: Likewise.
26612         * tree-vectorizer.c: Likewise.
26613         * tree-vrp.c: Likewise.
26614         * tree.c: Likewise.
26615         * tsan.c: Likewise.
26616         * ubsan.c: Likewise.
26617         * valtrack.c: Likewise.
26618         * value-prof.c: Likewise.
26619         * var-tracking.c: Likewise.
26620         * varasm.c: Likewise.
26621         * varpool.c: Likewise.
26622         * vmsdbgout.c: Likewise.
26623         * vtable-verify.c: Likewise.
26624         * web.c: Likewise.
26625         * wide-int.cc: Likewise.
26626         * xcoffout.c: Likewise.
26627         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
26628         * common/common-targhooks.c: Likewise.
26629         * config/aarch64/aarch64-builtins.c: Likewise.
26630         * config/aarch64/aarch64.c: Likewise.
26631         * config/alpha/alpha.c: Likewise.
26632         * config/arc/arc.c: Likewise.
26633         * config/arm/aarch-common.c: Likewise.
26634         * config/arm/arm-builtins.c: Likewise.
26635         * config/arm/arm-c.c: Likewise.
26636         * config/arm/arm.c: Likewise.
26637         * config/avr/avr-c.c: Likewise.
26638         * config/avr/avr-log.c: Likewise.
26639         * config/avr/avr.c: Likewise.
26640         * config/bfin/bfin.c: Likewise.
26641         * config/c6x/c6x.c: Likewise.
26642         * config/cr16/cr16.c: Likewise.
26643         * config/cris/cris.c: Likewise.
26644         * config/darwin-c.c: Likewise.
26645         * config/darwin.c: Likewise.
26646         * config/default-c.c: Likewise.
26647         * config/epiphany/epiphany.c: Likewise.
26648         * config/epiphany/mode-switch-use.c: Likewise.
26649         * config/epiphany/resolve-sw-modes.c: Likewise.
26650         * config/fr30/fr30.c: Likewise.
26651         * config/frv/frv.c: Likewise.
26652         * config/ft32/ft32.c: Likewise.
26653         * config/glibc-c.c: Likewise.
26654         * config/h8300/h8300.c: Likewise.
26655         * config/i386/i386-c.c: Likewise.
26656         * config/i386/i386.c: Likewise.
26657         * config/i386/msformat-c.c: Likewise.
26658         * config/i386/winnt-cxx.c: Likewise.
26659         * config/i386/winnt-stubs.c: Likewise.
26660         * config/i386/winnt.c: Likewise.
26661         * config/ia64/ia64-c.c: Likewise.
26662         * config/ia64/ia64.c: Likewise.
26663         * config/iq2000/iq2000.c: Likewise.
26664         * config/lm32/lm32.c: Likewise.
26665         * config/m32c/m32c-pragma.c: Likewise.
26666         * config/m32c/m32c.c: Likewise.
26667         * config/m32r/m32r.c: Likewise.
26668         * config/m68k/m68k.c: Likewise.
26669         * config/mcore/mcore.c: Likewise.
26670         * config/mep/mep-pragma.c: Likewise.
26671         * config/mep/mep.c: Likewise.
26672         * config/microblaze/microblaze-c.c: Likewise.
26673         * config/microblaze/microblaze.c: Likewise.
26674         * config/mips/mips.c: Likewise.
26675         * config/mmix/mmix.c: Likewise.
26676         * config/mn10300/mn10300.c: Likewise.
26677         * config/moxie/moxie.c: Likewise.
26678         * config/msp430/msp430-c.c: Likewise.
26679         * config/msp430/msp430.c: Likewise.
26680         * config/nds32/nds32-cost.c: Likewise.
26681         * config/nds32/nds32-fp-as-gp.c: Likewise.
26682         * config/nds32/nds32-intrinsic.c: Likewise.
26683         * config/nds32/nds32-isr.c: Likewise.
26684         * config/nds32/nds32-md-auxiliary.c: Likewise.
26685         * config/nds32/nds32-memory-manipulation.c: Likewise.
26686         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26687         * config/nds32/nds32-predicates.c: Likewise.
26688         * config/nds32/nds32.c: Likewise.
26689         * config/nios2/nios2.c: Likewise.
26690         * config/nvptx/nvptx.c: Likewise.
26691         * config/pa/pa.c: Likewise.
26692         * config/pdp11/pdp11.c: Likewise.
26693         * config/rl78/rl78-c.c: Likewise.
26694         * config/rl78/rl78.c: Likewise.
26695         * config/rs6000/rs6000-c.c: Likewise.
26696         * config/rs6000/rs6000.c: Likewise.
26697         * config/rx/rx.c: Likewise.
26698         * config/s390/s390-c.c: Likewise.
26699         * config/s390/s390.c: Likewise.
26700         * config/sh/sh-c.c: Likewise.
26701         * config/sh/sh-mem.cc: Likewise.
26702         * config/sh/sh.c: Likewise.
26703         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26704         * config/sh/sh_treg_combine.cc: Likewise.
26705         * config/sol2-c.c: Likewise.
26706         * config/sol2-cxx.c: Likewise.
26707         * config/sol2-stubs.c: Likewise.
26708         * config/sol2.c: Likewise.
26709         * config/sparc/sparc-c.c: Likewise.
26710         * config/sparc/sparc.c: Likewise.
26711         * config/spu/spu-c.c: Likewise.
26712         * config/spu/spu.c: Likewise.
26713         * config/stormy16/stormy16.c: Likewise.
26714         * config/tilegx/mul-tables.c: Likewise.
26715         * config/tilegx/tilegx-c.c: Likewise.
26716         * config/tilegx/tilegx.c: Likewise.
26717         * config/tilepro/mul-tables.c: Likewise.
26718         * config/tilepro/tilepro-c.c: Likewise.
26719         * config/tilepro/tilepro.c: Likewise.
26720         * config/v850/v850-c.c: Likewise.
26721         * config/v850/v850.c: Likewise.
26722         * config/vax/vax.c: Likewise.
26723         * config/visium/visium.c: Likewise.
26724         * config/vms/vms-c.c: Likewise.
26725         * config/vms/vms.c: Likewise.
26726         * config/vxworks.c: Likewise.
26727         * config/winnt-c.c: Likewise.
26728         * config/xtensa/xtensa.c: Likewise.
26730 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
26732         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26733         function.
26734         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26736 2015-06-17  Richard Biener  <rguenther@suse.de>
26738         PR tree-optimization/66251
26739         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26740         stmts for SLP strided stores.
26742         Revert
26743         2015-05-22  Richard Biener  <rguenther@suse.de>
26745         PR tree-optimization/66251
26746         * tree-vect-stmts.c (vectorizable_conversion): Properly
26747         set STMT_VINFO_VEC_STMT even for the SLP case.
26749         2015-05-26  Michael Matz  <matz@suse.de>
26751         PR middle-end/66251
26752         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26753         STMT_VINFO_VEC_STMT, also with SLP.
26755 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
26757         PR target/56766
26758         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26759         (*avx_addsubv4df3_1s): Ditto.
26760         (*sse3_addsubv2df3_1): Ditto.
26761         (*sse3_addsubv2df3_1s): Ditto.
26762         (*avx_addsubv8sf3_1): Ditto.
26763         (*avx_addsubv8sf3_1s): Ditto.
26764         (*sse3_addsubv4sf3_1): Ditto.
26765         (*sse3_addsubv4sf3_1s): Ditto.
26767 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
26769         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26770         (SYSROOT_SUFFIX_SPEC): Update.
26771         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26772         (STARTFILE_PREFIX_SPEC): Update.
26773         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26774         (MULTILIB_REQUIRED): New.
26775         (MULTILIB_OSDIRNAMES): New.
26776         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26777         (MULTILIB_REQUIRED): New.
26778         (MULTILIB_OSDIRNAMES): New.
26780 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
26782         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26783         * config/aarch64/aarch64-options-extensions.def: Update "fP",
26784         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
26785         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26786         (AARCH64_FL_PAN): New.
26787         (AARCH64_FL_LOR): New.
26788         (AARCH64_FL_RDMA): New.
26789         (AARCH64_FL_FOR_ARCH8_1): New.
26790         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26791         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26793 2015-06-16  Martin Liska  <mliska@suse.cz>
26795         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26796         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26797         guard.
26799 2015-06-16  Richard Biener  <rguenther@suse.de>
26801         * tree-vect-stmts.c (vectorizable_store): Adjust.
26802         (vectorizable_load): Likewise.
26803         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26804         Simplify.
26805         (vect_create_data_ref_ptr): Likewise.
26806         (bump_vector_ptr): Adjust.
26808 2015-06-16  Richard Biener  <rguenther@suse.de>
26810         * tree-vect-stmts.c (vectorizable_load): Properly start loads
26811         with the first element if this is grouped loads.
26813 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
26815         * config/arm/arm-protos.h (struct tune_params): Rename
26816         log_op_non_sc to log_op_non_short_circuit, and rename enum
26817         values to expand SC to SHORT_CIRCUIT.
26818         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26819         to LOG_OP_NON_SHORT_CIRCUIT.
26820         (arm_fastmul_tune):Likewise
26821         (arm_strongarm_tune): Likewise.
26822         (arm_xscale_tune): Likewise.
26823         (arm_9e_tune): Likewise.
26824         (arm_marvell_pj4_tune): Likewise.
26825         (arm_v6t2_tune): Likewise.
26826         (arm_cortex_tune): Likewise.
26827         (arm_cortex_a8_tune): Likewise.
26828         (arm_cortex_a7_tune): Likewise.
26829         (arm_cortex_a15_tune): Likewise.
26830         (arm_cortex_a53_tune): Likewise.
26831         (arm_cortex_a57_tune): Likewise.
26832         (arm_xgene1_tune): Likewise.
26833         (arm_cortex_a5_tune): Likewise.
26834         (arm_cortex_a9_tune): Likewise.
26835         (arm_cortex_a12_tune): Likewise.
26836         (arm_v7m_tune): Likewise.
26837         (arm_cortex_m7_tune): Likewise.
26838         (arm_v6m_tune): Likewise.
26839         (arm_fa726te_tune): Likewise.
26841 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
26843         * altivec.md: Delete UNSPEC_VMLADDUHM.
26844         (mulv4si3_p8): New pattern.
26845         (mulv4si3): Use it for POWER8.
26846         (mulv8hi3): Use vmladduhm with zero addend.
26847         (altivec_vmladduhm): Descriptive RTL.
26849 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
26851         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26852         to use neon_move instead of mov_imm.
26853         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26854         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26856         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26857         aarch64_float_const_zero_rtx_p check before TFmode check.
26858         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26859         an fp zero.
26860         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
26861         code and attributes to match.  Change condition from register_operand
26862         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
26863         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
26864         to store2.
26866 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
26868         PR debug/66535
26869         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26870         there is no parent.
26872 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
26874         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26875         HOST_WIDE_INT parameter.
26877 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
26879         PR ipa/66181
26880         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26881         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26882         TYPE_NO_FORCE_BLK.
26883         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26885 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
26887         * rtl.h (classify_insn): Declare.
26888         * emit-rtl.c (classify_insn): Move to...
26889         * rtl.c: ...here and add generator support.
26890         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26891         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26892         * genemit.c (gen_emit_seq): New function.
26893         (gen_expand, gen_split): Use it.
26895 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
26897         * tree.c (make_vector_stat): Fix comment to state that the
26898         function returns a VECTOR_CST.
26900 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
26902         * gensupport.h (add_implicit_parallel): Declare.
26903         * genrecog.c (add_implicit_parallel): Move to...
26904         * gensupport.c (add_implicit_parallel): ...here.
26905         (process_one_cond_exec): Use it.
26906         * genemit.c (gen_insn): Likewise.
26908 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
26910         PR bootstrap/66448
26911         * passes.c (rest_of_decl_compilation): Do not register globals for
26912         early debug if they are declared in built-ins.
26914 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
26916         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26918 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26920         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26921         manually swapping.
26922         (noce_try_cmove_arith): Likewise.
26923         (noce_get_alt_condition): Likewise.
26925 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26927         * common/config/i386/i386-common.c
26928         (OPTION_MASK_ISA_MWAITX_SET): New.
26929         (ix86_handle_option): Handle mwaitx.
26930         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26931         (x86_64-*-*): Likewise.
26932         * config/i386/mwaitxintrin.h: New header.
26933         * config/i386/cpuid.h (bit_MWAITX):  Define.
26934         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26935         MWAITX support.
26936         * config/i386/i386.opt (mwaitx): New.
26937         * config/i386/i386-builtin-types.def
26938         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26939         * config/i386/i386-c.c: Define __MWAITX__ if needed.
26940         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26941         (PTA_MWAITX): New.
26942         (ix86_option_override_internal): Handle new option.
26943         (processor_alias_table): Added PTA_MWAITX.
26944         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26945         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26946         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26947         IX86_BUILTIN_MONITORX  built-ins.
26948         * config/i386/i386.h (TARGET_MWAITX): New.
26949         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26950         UNSPEC_MONITORX.
26951         (mwaitx):  New pattern.
26952         (monitorx_<mode>): New pattern.
26953         * config/i386/x86intrin.h: Include mwaitxintrin.h.
26954         * doc/extend.texi: Document monitorx and mwaitx builtins.
26955         * doc/invoke.texi: Document -mmwaitx option.
26957 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
26959         * emit-rtl.c (need_atomic_barrier_p): Mask model with
26960         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
26962 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26964         * dbxout.c (xcoff_debug_hooks): Provide a function for
26965         register_main_translation_unit hook.
26967 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26969         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26970         variants cases from switch.
26971         (rs6000_post_atomic_barrier): Same.
26972         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26973         (rs6000_expand_atomic_exchange): Same.
26974         (rs6000_expand_atomic_op): Same.
26975         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26976         SYNC variants cases from switch.
26977         (atomic_load): Same.
26978         (atomic_store): Same.
26980 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
26982         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26983         CONST_INT for goto.
26985 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
26987         PR bootstrap/66448
26988         * dwarf2out.c (check_die): Check for common duplicate attributes.
26989         (add_location_or_const_value_attribute): Do not add duplicate
26990         attributes.
26991         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26992         time around.
26993         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26994         (gen_type_die_with_usage): Call check_die.
26995         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26997 2015-06-11  Jason Merrill  <jason@redhat.com>
26999         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
27000         dies.
27002 2015-06-11  Marek Polacek  <polacek@redhat.com>
27004         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
27006 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
27008         PR bootstrap/66252
27009         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
27010         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
27011         (*addx_extend_sp32): Fix pasto.
27012         (*subx_extend): Rename into...
27013         (*subx_extend_sp32): ...this.
27014         (*adddi3_extend_sp32): Add earlyclobber.
27015         (*subdi3_insn_sp32): Likewise.
27016         (*subdi3_extend_sp32): Likewise.
27017         (*and_not_di_sp32): Likewise.
27018         (*or_not_di_sp32): Likewise.
27019         (*xor_not_di_sp32): Likewise.
27020         (*negdi2_sp32): Likewise.
27021         (*one_cmpldi2_sp32): Likewise.
27023 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
27025         * debug.h (struct gcc_debug_hooks): Add a
27026         register_main_translation_unit hook.
27027         * debug.c (do_nothing_debug_hooks): Provide a function for this
27028         new hook.
27029         * dbxout.c (dbx_debug_hooks): Likewise.
27030         * sdbout.c (sdb_debug_hooks): Likewise.
27031         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27032         * dwarf2out.c (main_translation_unit): New global variable.
27033         (dwarf2out_register_main_translation_unit): New function
27034         implementing the new hook.
27035         (dwarf2_debug_hooks): Assign
27036         dwarf2out_register_main_translation_unit to this new hook.
27037         (dwarf2out_init): Associate any main translation unit to
27038         comp_unit_die ().
27040 2015-06-11  Marek Polacek  <polacek@redhat.com>
27042         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
27044 2015-06-11  Marek Polacek  <polacek@redhat.com>
27046         * match.pd: Use single_use throughout.
27048 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27050         * config/arm/arm.c (arm_option_params_internal): When optimising
27051         for speed set max_insns_skipped when arm_restrict_it.
27053 2015-06-11  Christian Bruel  <christian.bruel@st.com>
27055         PR target/52144
27056         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
27057          macros in ...
27058         (arm_cpu_builtins): New function.
27059         (arm_pragma_target_parse): Call arm_cpu_builtins.
27060         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
27061         (arm_register_target_pragmas): Likewise.
27062         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
27063          Call arm_register_target_pragmas.
27064         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
27065         (arm_pragma_target_parse): Likewise.
27067 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27069         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
27070         of the second operand.
27072 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
27074         PR target/66473
27075         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
27076         to prepare mask operand for AVX512 modes.
27078 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
27080         PR target/66474
27081         * doc/md.texi (Machine Constraints): Document that on the PowerPC
27082         if you use a constraint that targets a VSX register, you must use
27083         %x<n> in the template.
27085 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
27087         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
27088         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
27089         (define_insn "trap"): New definition.
27091 2015-06-10  Richard Biener  <rguenther@suse.de>
27093         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
27094         out from ...
27095         (vect_supported_load_permutation_p): ... here.  Handle
27096         supportable permutations in reductions.
27097         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
27098         for vectorizing strided group loads.
27100 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
27102         PR target/66470
27103         * config/i386/i386.c (ix86_split_long_move): For collisions
27104         involving direct tls segment refs, move the UNSPEC_TP possibly
27105         wrapped in ZERO_EXTEND out of the address for lea, to each of
27106         the memory loads.
27108 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27110         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
27111         dmb sy. Adjust tabs.
27113 2015-06-10  Tom de Vries  <tom@codesourcery.com>
27115         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
27117 2015-06-10  Martin Liska  <mliska@suse.cz>
27119         PR bootstrap/66471
27120         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
27121         all enum values in mem_alloc_origin.
27122         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
27123         name.
27124         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
27125         * bitmap.c (bitmap_register): Likewise.
27126         (dump_bitmap_statistics): Likewise.
27127         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
27128         (ggc_record_overhead): Likewise.
27129         * hash-map.h: Likewise.
27130         * hash-set.h: Likewise.
27131         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27132         * hash-table.h: Likewise.
27133         * vec.c (vec_prefix::register_overhead): Likewise.
27134         (vec_prefix::release_overhead): Likewise.
27135         (dump_vec_loc_statistics): Likewise.
27137 2015-06-09  Christian Bruel  <christian.bruel@st.com>
27139         PR target/52144
27140         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27141         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27142         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27143         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27144         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27145         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27146         (arm_valid_target_attribute_p): Likewise.
27147         (arm_set_current_function, arm_can_inline_p): Likewise.
27148         (arm_valid_target_attribute_rec): Likewise.
27149         (arm_previous_fndecl): New variable.
27150         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27151         (TARGET_CAN_INLINE_P): Define.
27152         (arm_asm_trampoline_template): Emit mode.
27153         (arm_file_start): Don't set unified syntax.
27154         (arm_declare_function_name): Set unified syntax and mode.
27155         (arm_option_override): Init target_option_default_node.
27156         and target_option_current_node.
27157         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27158         (*call_symbol): Likewise.
27159         * doc/extend.texi: Document ARM/Thumb target attribute.
27160         * doc/invoke.texi: Likewise.
27162 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27164         Revert:
27165         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27166         PR rtl-optimization/64164
27167         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27168         * tree-ssa-copyrename.c: Removed.
27169         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27170         -ftree-coalesce-vars.
27171         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27172         * common.opt (ftree-copyrename): Ignore.
27173         (ftree-coalesce-inlined-vars): Likewise.
27174         * doc/invoke.texi: Remove the ignored options above.
27175         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27176         * tree-ssa-coalesce.h: ... here.
27177         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27178         headers required by it.
27179         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27180         across variables when flag_tree_coalesce_vars.  Check register
27181         use and promoted modes to allow coalescing.  Moved to
27182         tree-ssa-coalesce.c.
27183         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27184         with its member functions to tree-ssa-coalesce.c.
27185         (var_map_base_init): Likewise.  Renamed to
27186         compute_samebase_partition_bases.
27187         (partition_view_normal): Drop want_bases parameter.
27188         (partition_view_bitmap): Likewise.
27189         * tree-ssa-live.h: Adjust declarations.
27190         * tree-ssa-coalesce.c: Include explow.h.
27191         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27192         default defs at the entry point.
27193         (dump_part_var_map): New.
27194         (compute_optimized_partition_bases): New, called by...
27195         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27196         of compute_samebase_partition_bases.  Adjust.
27197         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27198         * cfgexpand.c (leader_merge): New.
27199         (get_rtl_for_parm_ssa_default_def): New.
27200         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27201         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27202         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27203         redundant MEM attr setting.
27204         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27205         from...
27206         (expand_one_stack_var): ... this.  New wrapper to check and
27207         skip already expanded SSA partitions.
27208         (record_alignment_for_reg_var): New, factored out of...
27209         (expand_one_var): ... this.
27210         (expand_one_ssa_partition): New.
27211         (adjust_one_expanded_partition_var): New.
27212         (expand_one_register_var): Check and skip already expanded SSA
27213         partitions.
27214         (expand_used_vars): Don't create DECLs for anonymous SSA
27215         names.  Expand all SSA partitions, then adjust all SSA names.
27216         (pass::execute): Replace the loops that set
27217         SA.partition_to_pseudo from partition leaders and cleared
27218         DECL_RTL for multi-location variables, and that which used to
27219         rename vars and set attrs, with one that clears DECL_RTL and
27220         checks that PARMs and RESULTs default_defs match DECL_RTL.
27221         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27222         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27223         * explow.c (promote_ssa_mode): New.
27224         * explow.h (promote_ssa_mode): Declare.
27225         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27226         * function.c: Include cfgexpand.h.
27227         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27228         (use_register_for_parm_decl): Wrapper for the above to
27229         special-case the result_ptr.
27230         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27231         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27232         multiple locations.
27233         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27234         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27235         (assign_parm_setup_block): Prefer SSA-assigned location.
27236         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27237         if stack_parm is NULL.
27238         (assign_parm_setup_stack): Prefer SSA-assigned location.
27239         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27240         rtl before testing for pointer bounds.  Special-case result_ptr.
27241         (expand_function_start): Maybe reset DECL_RTL of result.
27242         Prefer SSA-assigned location for result and static chain.
27243         Factor out DECL_RESULT and SET_DECL_RTL.
27244         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27245         anonymous SSA names.  Use promote_ssa_mode.
27246         (get_temp_reg): Likewise.
27247         (remove_ssa_form): Adjust.
27248         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27249         and get its reg_usage for reg invalidation.
27250         (compute_bb_dataflow): Pass it insn.
27251         (emit_notes_in_bb): Likewise.
27252         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27253         fail assert on conversion between unsigned types.
27255 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27257         PR tree-optimization/65460
27258         * omp-low.c (expand_omp_target): Set parallelized_function on
27259         cgraph_node for child_fn.
27261 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27263         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27264         parallelized_function before add_new_function.
27266 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
27268         * gcc-plugin.h: Move decls to plugin.h and include it.
27269         * plugin.h: Relocate decls from gcc-plugin.h
27270         * ggc-page.c: Include required header files.
27271         * passes.c: Likewise.
27272         * cgraphunit.c: Likewise.
27274 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27276         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27278 2015-06-09  Jason Merrill  <jason@redhat.com>
27280         PR bootstrap/66448
27281         * toplev.c (check_global_declaration): Don't warn about a clone.
27283 2015-06-09  Marek Polacek  <polacek@redhat.com>
27285         PR tree-optimization/66299
27286         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27287         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27288         patterns.
27290 2015-06-09  Richard Biener  <rguenther@suse.de>
27292         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27293         (vect_analyze_slp_instance): Instead do not falsely drop
27294         load permutations.
27296 2015-06-09  Richard Biener  <rguenther@suse.de>
27298         PR middle-end/66423
27299         * match.pd: Handle A % (unsigned)(1 << B).
27301 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
27303         * varasm.c (output_object_block_htab): Remove.
27304         (output_object_block_compare): New.
27305         (output_object_blocks): Sort named object_blocks before outputting
27306         them.
27308 2015-06-09  Richard Biener  <rguenther@suse.de>
27310         PR tree-optimization/66419
27311         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27312         consider GROUP_GAP when detecting a perfect subchain.
27314 2015-06-09  Nick Clifton  <nickc@redhat.com>
27316         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27317         place read only data in the .frodata section.
27319 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
27321         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27322         (atomic_store<mode>): Likewise.
27324 2015-06-09  Richard Biener  <rguenther@suse.de>
27326         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27328 2015-06-09  Richard Biener  <rguenther@suse.de>
27330         PR middle-end/66413
27331         * tree-inline.c (insert_init_debug_bind): Unshare value.
27333 2015-06-09  Richard Biener  <rguenther@suse.de>
27335         PR tree-optimization/66396
27336         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27337         Rename virtual operands.
27339 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27341         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27342         always return false.
27344 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27346         PR rtl-optimization/64164
27347         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27348         * tree-ssa-copyrename.c: Removed.
27349         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27350         -ftree-coalesce-vars.
27351         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27352         * common.opt (ftree-copyrename): Ignore.
27353         (ftree-coalesce-inlined-vars): Likewise.
27354         * doc/invoke.texi: Remove the ignored options above.
27355         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27356         * tree-ssa-coalesce.h: ... here.
27357         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27358         headers required by it.
27359         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27360         across variables when flag_tree_coalesce_vars.  Check register
27361         use and promoted modes to allow coalescing.  Moved to
27362         tree-ssa-coalesce.c.
27363         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27364         with its member functions to tree-ssa-coalesce.c.
27365         (var_map_base_init): Likewise.  Renamed to
27366         compute_samebase_partition_bases.
27367         (partition_view_normal): Drop want_bases parameter.
27368         (partition_view_bitmap): Likewise.
27369         * tree-ssa-live.h: Adjust declarations.
27370         * tree-ssa-coalesce.c: Include explow.h.
27371         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27372         default defs at the entry point.
27373         (dump_part_var_map): New.
27374         (compute_optimized_partition_bases): New, called by...
27375         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27376         of compute_samebase_partition_bases.  Adjust.
27377         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27378         * cfgexpand.c (leader_merge): New.
27379         (get_rtl_for_parm_ssa_default_def): New.
27380         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27381         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27382         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27383         redundant MEM attr setting.
27384         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27385         from...
27386         (expand_one_stack_var): ... this.  New wrapper to check and
27387         skip already expanded SSA partitions.
27388         (record_alignment_for_reg_var): New, factored out of...
27389         (expand_one_var): ... this.
27390         (expand_one_ssa_partition): New.
27391         (adjust_one_expanded_partition_var): New.
27392         (expand_one_register_var): Check and skip already expanded SSA
27393         partitions.
27394         (expand_used_vars): Don't create DECLs for anonymous SSA
27395         names.  Expand all SSA partitions, then adjust all SSA names.
27396         (pass::execute): Replace the loops that set
27397         SA.partition_to_pseudo from partition leaders and cleared
27398         DECL_RTL for multi-location variables, and that which used to
27399         rename vars and set attrs, with one that clears DECL_RTL and
27400         checks that PARMs and RESULTs default_defs match DECL_RTL.
27401         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27402         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27403         * explow.c (promote_ssa_mode): New.
27404         * explow.h (promote_ssa_mode): Declare.
27405         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27406         * function.c: Include cfgexpand.h.
27407         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27408         (use_register_for_parm_decl): Wrapper for the above to
27409         special-case the result_ptr.
27410         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27411         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27412         multiple locations.
27413         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27414         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27415         (assign_parm_setup_block): Prefer SSA-assigned location.
27416         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27417         if stack_parm is NULL.
27418         (assign_parm_setup_stack): Prefer SSA-assigned location.
27419         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27420         rtl before testing for pointer bounds.  Special-case result_ptr.
27421         (expand_function_start): Maybe reset DECL_RTL of result.
27422         Prefer SSA-assigned location for result and static chain.
27423         Factor out DECL_RESULT and SET_DECL_RTL.
27424         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27425         anonymous SSA names.  Use promote_ssa_mode.
27426         (get_temp_reg): Likewise.
27427         (remove_ssa_form): Adjust.
27428         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27429         and get its reg_usage for reg invalidation.
27430         (compute_bb_dataflow): Pass it insn.
27431         (emit_notes_in_bb): Likewise.
27432         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27433         fail assert on conversion between unsigned types.
27435 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27437         PR debug/58315
27438         * tree-inline.c (reset_debug_binding): New.
27439         (reset_debug_bindings): Likewise.
27440         (expand_call_inline): Call it.
27442 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27444         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
27445         TYPE_STRING_FLAG.
27447 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27449         * lto-streamer-out.c (lto_output_location): Stream
27450         reserved locations correctly.
27451         * lto-streamer-in.c (lto_output_location): Likewise.
27453 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
27455         * coretypes.h: Include hash-table.h and hash-set.h for host files.
27456         * ggc.h: Don't include statistics.h>
27457         * hash-map.h: Remove all includes.
27458         * hash-set.h: Likewise.
27459         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
27460         the include list. Remove <new>.
27461         * inchash.h: Remove all includes.
27462         * mem-stats.h: Likewise.
27463         * vec.h: No special processing for generators or ggc.
27464         * alias.c : Adjust include files.
27465         * alloc-pool.c : Likewise.
27466         * alloc-pool.h : Likewise.
27467         * asan.c : Likewise.
27468         * attribs.c : Likewise.
27469         * auto-inc-dec.c : Likewise.
27470         * auto-profile.c : Likewise.
27471         * bb-reorder.c : Likewise.
27472         * bitmap.c : Likewise.
27473         * bitmap.h : Likewise.
27474         * bt-load.c : Likewise.
27475         * builtins.c : Likewise.
27476         * caller-save.c : Likewise.
27477         * calls.c : Likewise.
27478         * ccmp.c : Likewise.
27479         * cfg.c : Likewise.
27480         * cfganal.c : Likewise.
27481         * cfgbuild.c : Likewise.
27482         * cfgcleanup.c : Likewise.
27483         * cfgexpand.c : Likewise.
27484         * cfghooks.c : Likewise.
27485         * cfgloop.c : Likewise.
27486         * cfgloop.h : Likewise.
27487         * cfgloopanal.c : Likewise.
27488         * cfgloopmanip.c : Likewise.
27489         * cfgrtl.c : Likewise.
27490         * cgraph.c : Likewise.
27491         * cgraphbuild.c : Likewise.
27492         * cgraphclones.c : Likewise.
27493         * cgraphunit.c : Likewise.
27494         * cilk-common.c : Likewise.
27495         * combine-stack-adj.c : Likewise.
27496         * combine.c : Likewise.
27497         * compare-elim.c : Likewise.
27498         * context.c : Likewise.
27499         * convert.c : Likewise.
27500         * coverage.c : Likewise.
27501         * cppbuiltin.c : Likewise.
27502         * cprop.c : Likewise.
27503         * cse.c : Likewise.
27504         * cselib.c : Likewise.
27505         * data-streamer-in.c : Likewise.
27506         * data-streamer-out.c : Likewise.
27507         * data-streamer.c : Likewise.
27508         * data-streamer.h : Likewise.
27509         * dbxout.c : Likewise.
27510         * dce.c : Likewise.
27511         * ddg.c : Likewise.
27512         * debug.c : Likewise.
27513         * df-core.c : Likewise.
27514         * df-problems.c : Likewise.
27515         * df-scan.c : Likewise.
27516         * df.h : Likewise.
27517         * dfp.c : Likewise.
27518         * dojump.c : Likewise.
27519         * dominance.c : Likewise.
27520         * domwalk.c : Likewise.
27521         * double-int.c : Likewise.
27522         * dse.c : Likewise.
27523         * dumpfile.c : Likewise.
27524         * dwarf2asm.c : Likewise.
27525         * dwarf2cfi.c : Likewise.
27526         * dwarf2out.c : Likewise.
27527         * emit-rtl.c : Likewise.
27528         * et-forest.c : Likewise.
27529         * except.c : Likewise.
27530         * except.h : Likewise.
27531         * explow.c : Likewise.
27532         * expmed.c : Likewise.
27533         * expr.c : Likewise.
27534         * final.c : Likewise.
27535         * fixed-value.c : Likewise.
27536         * fold-const.c : Likewise.
27537         * function.c : Likewise.
27538         * fwprop.c : Likewise.
27539         * gcc-plugin.h : Likewise.
27540         * gcc.c : Likewise.
27541         * gcse-common.c : Likewise.
27542         * gcse.c : Likewise.
27543         * genattrtab.c : Likewise.
27544         * genautomata.c : Likewise.
27545         * genconditions.c : Likewise.
27546         * genemit.c : Likewise.
27547         * generic-match-head.c : Likewise.
27548         * genextract.c : Likewise.
27549         * gengtype-state.c : Likewise.
27550         * gengtype.c : Likewise.
27551         * genhooks.c : Likewise.
27552         * genmatch.c : Likewise.
27553         * genmodes.c : Likewise.
27554         * genrecog.c : Likewise.
27555         * gensupport.c : Likewise.
27556         * ggc-common.c : Likewise.
27557         * ggc-internal.h : Likewise.
27558         * ggc-none.c : Likewise.
27559         * ggc-page.c : Likewise.
27560         * gimple-builder.c : Likewise.
27561         * gimple-expr.c : Likewise.
27562         * gimple-fold.c : Likewise.
27563         * gimple-iterator.c : Likewise.
27564         * gimple-low.c : Likewise.
27565         * gimple-match-head.c : Likewise.
27566         * gimple-pretty-print.c : Likewise.
27567         * gimple-ssa-isolate-paths.c : Likewise.
27568         * gimple-ssa-strength-reduction.c : Likewise.
27569         * gimple-ssa.h : Likewise.
27570         * gimple-streamer-in.c : Likewise.
27571         * gimple-streamer-out.c : Likewise.
27572         * gimple-streamer.h : Likewise.
27573         * gimple-walk.c : Likewise.
27574         * gimple.c : Likewise.
27575         * gimplify-me.c : Likewise.
27576         * gimplify.c : Likewise.
27577         * godump.c : Likewise.
27578         * graph.c : Likewise.
27579         * graphds.c : Likewise.
27580         * graphite-blocking.c : Likewise.
27581         * graphite-dependences.c : Likewise.
27582         * graphite-interchange.c : Likewise.
27583         * graphite-isl-ast-to-gimple.c : Likewise.
27584         * graphite-optimize-isl.c : Likewise.
27585         * graphite-poly.c : Likewise.
27586         * graphite-scop-detection.c : Likewise.
27587         * graphite-sese-to-poly.c : Likewise.
27588         * graphite.c : Likewise.
27589         * haifa-sched.c : Likewise.
27590         * hard-reg-set.h : Likewise.
27591         * hw-doloop.c : Likewise.
27592         * ifcvt.c : Likewise.
27593         * inchash.c : Likewise.
27594         * incpath.c : Likewise.
27595         * init-regs.c : Likewise.
27596         * input.c : Likewise.
27597         * internal-fn.c : Likewise.
27598         * ipa-chkp.c : Likewise.
27599         * ipa-comdats.c : Likewise.
27600         * ipa-cp.c : Likewise.
27601         * ipa-devirt.c : Likewise.
27602         * ipa-icf-gimple.c : Likewise.
27603         * ipa-icf.c : Likewise.
27604         * ipa-inline-analysis.c : Likewise.
27605         * ipa-inline-transform.c : Likewise.
27606         * ipa-inline.c : Likewise.
27607         * ipa-polymorphic-call.c : Likewise.
27608         * ipa-profile.c : Likewise.
27609         * ipa-prop.c : Likewise.
27610         * ipa-pure-const.c : Likewise.
27611         * ipa-ref.c : Likewise.
27612         * ipa-reference.c : Likewise.
27613         * ipa-split.c : Likewise.
27614         * ipa-utils.c : Likewise.
27615         * ipa-visibility.c : Likewise.
27616         * ipa.c : Likewise.
27617         * ira-build.c : Likewise.
27618         * ira-color.c : Likewise.
27619         * ira-conflicts.c : Likewise.
27620         * ira-costs.c : Likewise.
27621         * ira-emit.c : Likewise.
27622         * ira-lives.c : Likewise.
27623         * ira.c : Likewise.
27624         * jump.c : Likewise.
27625         * langhooks.c : Likewise.
27626         * lcm.c : Likewise.
27627         * libfuncs.h : Likewise.
27628         * lists.c : Likewise.
27629         * loop-doloop.c : Likewise.
27630         * loop-init.c : Likewise.
27631         * loop-invariant.c : Likewise.
27632         * loop-iv.c : Likewise.
27633         * loop-unroll.c : Likewise.
27634         * lower-subreg.c : Likewise.
27635         * lra-assigns.c : Likewise.
27636         * lra-coalesce.c : Likewise.
27637         * lra-constraints.c : Likewise.
27638         * lra-eliminations.c : Likewise.
27639         * lra-lives.c : Likewise.
27640         * lra-remat.c : Likewise.
27641         * lra-spills.c : Likewise.
27642         * lra.c : Likewise.
27643         * lto-cgraph.c : Likewise.
27644         * lto-compress.c : Likewise.
27645         * lto-opts.c : Likewise.
27646         * lto-section-in.c : Likewise.
27647         * lto-section-out.c : Likewise.
27648         * lto-streamer-in.c : Likewise.
27649         * lto-streamer-out.c : Likewise.
27650         * lto-streamer.c : Likewise.
27651         * lto-streamer.h : Likewise.
27652         * mcf.c : Likewise.
27653         * mode-switching.c : Likewise.
27654         * modulo-sched.c : Likewise.
27655         * omega.c : Likewise.
27656         * omp-low.c : Likewise.
27657         * optabs.c : Likewise.
27658         * opts-global.c : Likewise.
27659         * opts.h : Likewise.
27660         * passes.c : Likewise.
27661         * plugin.c : Likewise.
27662         * postreload-gcse.c : Likewise.
27663         * postreload.c : Likewise.
27664         * predict.c : Likewise.
27665         * print-rtl.c : Likewise.
27666         * print-tree.c : Likewise.
27667         * profile.c : Likewise.
27668         * read-md.c : Likewise.
27669         * read-md.h : Likewise.
27670         * read-rtl.c : Likewise.
27671         * real.c : Likewise.
27672         * realmpfr.c : Likewise.
27673         * recog.c : Likewise.
27674         * ree.c : Likewise.
27675         * reg-stack.c : Likewise.
27676         * regcprop.c : Likewise.
27677         * reginfo.c : Likewise.
27678         * regrename.c : Likewise.
27679         * regstat.c : Likewise.
27680         * reload.c : Likewise.
27681         * reload1.c : Likewise.
27682         * reorg.c : Likewise.
27683         * resource.c : Likewise.
27684         * rtl-chkp.c : Likewise.
27685         * rtl.c : Likewise.
27686         * rtl.h : Likewise.
27687         * rtlanal.c : Likewise.
27688         * rtlhash.c : Likewise.
27689         * rtlhash.h : Likewise.
27690         * rtlhooks.c : Likewise.
27691         * sanopt.c : Likewise.
27692         * sched-deps.c : Likewise.
27693         * sched-ebb.c : Likewise.
27694         * sched-rgn.c : Likewise.
27695         * sched-vis.c : Likewise.
27696         * sdbout.c : Likewise.
27697         * sel-sched-dump.c : Likewise.
27698         * sel-sched-ir.c : Likewise.
27699         * sel-sched-ir.h : Likewise.
27700         * sel-sched.c : Likewise.
27701         * sese.c : Likewise.
27702         * shrink-wrap.c : Likewise.
27703         * shrink-wrap.h : Likewise.
27704         * simplify-rtx.c : Likewise.
27705         * stack-ptr-mod.c : Likewise.
27706         * statistics.c : Likewise.
27707         * stmt.c : Likewise.
27708         * stor-layout.c : Likewise.
27709         * store-motion.c : Likewise.
27710         * stringpool.c : Likewise.
27711         * symtab.c : Likewise.
27712         * target-globals.c : Likewise.
27713         * targhooks.c : Likewise.
27714         * tlink.c : Likewise.
27715         * toplev.c : Likewise.
27716         * tracer.c : Likewise.
27717         * trans-mem.c : Likewise.
27718         * tree-affine.c : Likewise.
27719         * tree-affine.h : Likewise.
27720         * tree-browser.c : Likewise.
27721         * tree-call-cdce.c : Likewise.
27722         * tree-cfg.c : Likewise.
27723         * tree-cfgcleanup.c : Likewise.
27724         * tree-chkp-opt.c : Likewise.
27725         * tree-chkp.c : Likewise.
27726         * tree-chrec.c : Likewise.
27727         * tree-complex.c : Likewise.
27728         * tree-data-ref.c : Likewise.
27729         * tree-dfa.c : Likewise.
27730         * tree-diagnostic.c : Likewise.
27731         * tree-dump.c : Likewise.
27732         * tree-eh.c : Likewise.
27733         * tree-eh.h : Likewise.
27734         * tree-emutls.c : Likewise.
27735         * tree-hasher.h : Likewise.
27736         * tree-if-conv.c : Likewise.
27737         * tree-inline.c : Likewise.
27738         * tree-inline.h : Likewise.
27739         * tree-into-ssa.c : Likewise.
27740         * tree-iterator.c : Likewise.
27741         * tree-loop-distribution.c : Likewise.
27742         * tree-nested.c : Likewise.
27743         * tree-nrv.c : Likewise.
27744         * tree-object-size.c : Likewise.
27745         * tree-outof-ssa.c : Likewise.
27746         * tree-parloops.c : Likewise.
27747         * tree-phinodes.c : Likewise.
27748         * tree-predcom.c : Likewise.
27749         * tree-pretty-print.c : Likewise.
27750         * tree-profile.c : Likewise.
27751         * tree-scalar-evolution.c : Likewise.
27752         * tree-sra.c : Likewise.
27753         * tree-ssa-address.c : Likewise.
27754         * tree-ssa-alias.c : Likewise.
27755         * tree-ssa-ccp.c : Likewise.
27756         * tree-ssa-coalesce.c : Likewise.
27757         * tree-ssa-copy.c : Likewise.
27758         * tree-ssa-copyrename.c : Likewise.
27759         * tree-ssa-dce.c : Likewise.
27760         * tree-ssa-dom.c : Likewise.
27761         * tree-ssa-dse.c : Likewise.
27762         * tree-ssa-forwprop.c : Likewise.
27763         * tree-ssa-ifcombine.c : Likewise.
27764         * tree-ssa-live.c : Likewise.
27765         * tree-ssa-loop-ch.c : Likewise.
27766         * tree-ssa-loop-im.c : Likewise.
27767         * tree-ssa-loop-ivcanon.c : Likewise.
27768         * tree-ssa-loop-ivopts.c : Likewise.
27769         * tree-ssa-loop-manip.c : Likewise.
27770         * tree-ssa-loop-niter.c : Likewise.
27771         * tree-ssa-loop-prefetch.c : Likewise.
27772         * tree-ssa-loop-unswitch.c : Likewise.
27773         * tree-ssa-loop.c : Likewise.
27774         * tree-ssa-math-opts.c : Likewise.
27775         * tree-ssa-operands.c : Likewise.
27776         * tree-ssa-phiopt.c : Likewise.
27777         * tree-ssa-phiprop.c : Likewise.
27778         * tree-ssa-pre.c : Likewise.
27779         * tree-ssa-propagate.c : Likewise.
27780         * tree-ssa-reassoc.c : Likewise.
27781         * tree-ssa-sccvn.c : Likewise.
27782         * tree-ssa-scopedtables.c : Likewise.
27783         * tree-ssa-sink.c : Likewise.
27784         * tree-ssa-strlen.c : Likewise.
27785         * tree-ssa-structalias.c : Likewise.
27786         * tree-ssa-tail-merge.c : Likewise.
27787         * tree-ssa-ter.c : Likewise.
27788         * tree-ssa-threadedge.c : Likewise.
27789         * tree-ssa-threadupdate.c : Likewise.
27790         * tree-ssa-uncprop.c : Likewise.
27791         * tree-ssa-uninit.c : Likewise.
27792         * tree-ssa.c : Likewise.
27793         * tree-ssanames.c : Likewise.
27794         * tree-stdarg.c : Likewise.
27795         * tree-streamer-in.c : Likewise.
27796         * tree-streamer-out.c : Likewise.
27797         * tree-streamer.c : Likewise.
27798         * tree-streamer.h : Likewise.
27799         * tree-switch-conversion.c : Likewise.
27800         * tree-tailcall.c : Likewise.
27801         * tree-vect-data-refs.c : Likewise.
27802         * tree-vect-generic.c : Likewise.
27803         * tree-vect-loop-manip.c : Likewise.
27804         * tree-vect-loop.c : Likewise.
27805         * tree-vect-patterns.c : Likewise.
27806         * tree-vect-slp.c : Likewise.
27807         * tree-vect-stmts.c : Likewise.
27808         * tree-vectorizer.c : Likewise.
27809         * tree-vectorizer.h : Likewise.
27810         * tree-vrp.c : Likewise.
27811         * tree.c : Likewise.
27812         * tsan.c : Likewise.
27813         * ubsan.c : Likewise.
27814         * valtrack.c : Likewise.
27815         * valtrack.h : Likewise.
27816         * value-prof.c : Likewise.
27817         * var-tracking.c : Likewise.
27818         * varasm.c : Likewise.
27819         * varpool.c : Likewise.
27820         * vec.c: Likewise.
27821         * vmsdbgout.c : Likewise.
27822         * vtable-verify.c : Likewise.
27823         * vtable-verify.h : Likewise.
27824         * web.c : Likewise.
27825         * wide-int.cc : Likewise.
27826         * xcoffout.c : Likewise.
27827         * config/aarch64/aarch64-builtins.c : Likewise.
27828         * config/aarch64/aarch64.c : Likewise.
27829         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27830         * config/alpha/alpha.c : Likewise.
27831         * config/arc/arc.c : Likewise.
27832         * config/arm/aarch-common.c : Likewise.
27833         * config/arm/arm-builtins.c : Likewise.
27834         * config/arm/arm-c.c : Likewise.
27835         * config/arm/arm.c : Likewise.
27836         * config/avr/avr-c.c : Likewise.
27837         * config/avr/avr-log.c : Likewise.
27838         * config/avr/avr.c : Likewise.
27839         * config/bfin/bfin.c : Likewise.
27840         * config/c6x/c6x.c : Likewise.
27841         * config/cr16/cr16.c : Likewise.
27842         * config/cris/cris.c : Likewise.
27843         * config/darwin-c.c : Likewise.
27844         * config/darwin.c : Likewise.
27845         * config/default-c.c : Likewise.
27846         * config/epiphany/epiphany.c : Likewise.
27847         * config/epiphany/mode-switch-use.c : Likewise.
27848         * config/epiphany/resolve-sw-modes.c : Likewise.
27849         * config/fr30/fr30.c : Likewise.
27850         * config/frv/frv.c : Likewise.
27851         * config/ft32/ft32.c : Likewise.
27852         * config/glibc-c.c : Likewise.
27853         * config/h8300/h8300.c : Likewise.
27854         * config/i386/i386-c.c : Likewise.
27855         * config/i386/i386.c : Likewise.
27856         * config/i386/msformat-c.c : Likewise.
27857         * config/i386/winnt-cxx.c : Likewise.
27858         * config/i386/winnt-stubs.c : Likewise.
27859         * config/i386/winnt.c : Likewise.
27860         * config/ia64/ia64-c.c : Likewise.
27861         * config/ia64/ia64.c : Likewise.
27862         * config/iq2000/iq2000.c : Likewise.
27863         * config/lm32/lm32.c : Likewise.
27864         * config/m32c/m32c-pragma.c : Likewise.
27865         * config/m32c/m32c.c : Likewise.
27866         * config/m32r/m32r.c : Likewise.
27867         * config/m68k/m68k.c : Likewise.
27868         * config/mcore/mcore.c : Likewise.
27869         * config/mep/mep-pragma.c : Likewise.
27870         * config/mep/mep.c : Likewise.
27871         * config/microblaze/microblaze-c.c : Likewise.
27872         * config/microblaze/microblaze.c : Likewise.
27873         * config/mips/mips.c : Likewise.
27874         * config/mmix/mmix.c : Likewise.
27875         * config/mn10300/mn10300.c : Likewise.
27876         * config/moxie/moxie.c : Likewise.
27877         * config/msp430/msp430-c.c : Likewise.
27878         * config/msp430/msp430.c : Likewise.
27879         * config/nds32/nds32-cost.c : Likewise.
27880         * config/nds32/nds32-fp-as-gp.c : Likewise.
27881         * config/nds32/nds32-intrinsic.c : Likewise.
27882         * config/nds32/nds32-isr.c : Likewise.
27883         * config/nds32/nds32-md-auxiliary.c : Likewise.
27884         * config/nds32/nds32-memory-manipulation.c : Likewise.
27885         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27886         * config/nds32/nds32-predicates.c : Likewise.
27887         * config/nds32/nds32.c : Likewise.
27888         * config/nios2/nios2.c : Likewise.
27889         * config/nvptx/nvptx.c : Likewise.
27890         * config/pa/pa.c : Likewise.
27891         * config/pdp11/pdp11.c : Likewise.
27892         * config/rl78/rl78-c.c : Likewise.
27893         * config/rl78/rl78.c : Likewise.
27894         * config/rs6000/rs6000-c.c : Likewise.
27895         * config/rs6000/rs6000.c : Likewise.
27896         * config/rx/rx.c : Likewise.
27897         * config/s390/s390-c.c : Likewise.
27898         * config/s390/s390.c : Likewise.
27899         * config/sh/sh-c.c : Likewise.
27900         * config/sh/sh-mem.cc : Likewise.
27901         * config/sh/sh.c : Likewise.
27902         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27903         * config/sh/sh_treg_combine.cc : Likewise.
27904         * config/sol2-c.c : Likewise.
27905         * config/sol2-cxx.c : Likewise.
27906         * config/sol2-stubs.c : Likewise.
27907         * config/sol2.c : Likewise.
27908         * config/sparc/sparc-c.c : Likewise.
27909         * config/sparc/sparc.c : Likewise.
27910         * config/spu/spu-c.c : Likewise.
27911         * config/spu/spu.c : Likewise.
27912         * config/stormy16/stormy16.c : Likewise.
27913         * config/tilegx/mul-tables.c : Likewise.
27914         * config/tilegx/tilegx-c.c : Likewise.
27915         * config/tilegx/tilegx.c : Likewise.
27916         * config/tilepro/mul-tables.c : Likewise.
27917         * config/tilepro/tilepro-c.c : Likewise.
27918         * config/tilepro/tilepro.c : Likewise.
27919         * config/v850/v850-c.c : Likewise.
27920         * config/v850/v850.c : Likewise.
27921         * config/vax/vax.c : Likewise.
27922         * config/visium/visium.c : Likewise.
27923         * config/vms/vms-c.c : Likewise.
27924         * config/vms/vms.c : Likewise.
27925         * config/vxworks.c : Likewise.
27926         * config/winnt-c.c : Likewise.
27927         * config/xtensa/xtensa.c : Likewise.
27929 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27931         PR lto/65378
27932         * ipa-utils.h (warn_types_mismatch): Update prototype.
27933         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27934         parameters.
27935         (type_mismatch_p): New function.
27936         (warn_types_mismatch): Reorg to work better on non-C++ types.
27937         (odr_types_equivalent_p): Add loc1/loc2 parameters.
27938         (add_type_duplicate): Update.
27940 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27942         PR rtl-optimization/66444
27943         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27944         call_used_regs.
27946 2015-06-08  Richard Biener  <rguenther@suse.de>
27948         PR tree-optimization/66422
27949         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27950         block after inserted gcc_unreachable.
27952 2015-06-08  Nick Clifton  <nickc@redhat.com>
27954         * config/rx/rx.c (rx_function_value): Do not promote vector types.
27955         (rx_promote_function_mode): Likewise.
27956         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27958 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
27960         * genattrtab.c (insn_alternatives): Change type from int *
27961         to uint64_t *.
27962         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27963         (get_attr_value): Change type of num_alt to uint64_t.
27964         (compute_alternative_mask): Change return type from
27965         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27966         (make_alternative_compare, mk_attr_alt): Change argument type
27967         from int to uint64_t.
27968         (simplify_test_exp): Change type of i from int to uint64_t.
27969         Shift ((uint64_t) 1) instead of 1 up.
27970         (main): Adjust oballocvec first argument from int to uint64_t.
27971         Shift ((uint64_t) 1) instead of 1 up.
27973 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
27975         PR other/65366
27976         * gdbhooks.py: Import sys.
27977         (intptr): New function.  Replace int(...) by intptr(...).
27979 2015-06-08  Richard Biener  <rguenther@suse.de>
27981         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27982         adjustment for gaps at the end of a SLP load group properly.
27983         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27984         all permutations we can generate.
27985         (vect_transform_slp_perm_load): Use the correct group-size.
27987 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
27989         * genmatch.c (expr::gen_transform): For conditions, guess the type
27990         from the second operand.
27992 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27994         PR tree-optimization/66442
27995         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27996         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27997         if the loop latch is not a singleton.  Use
27998         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
28000 2015-06-08  Marek Polacek  <polacek@redhat.com>
28002         PR sanitizer/66452
28003         * toplev.c (check_global_declaration): Don't warn about artificial
28004         decls.
28006 2015-06-08  Tom de Vries  <tom@codesourcery.com>
28008         PR tree-optimization/66436
28009         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
28010         dump file.
28011         * gimplify.c: Add tree-dump.h include.
28012         (gimplify_function_tree): Dump function to gimple dump file.
28013         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
28014         dump file.
28016 2015-06-08  Tom de Vries  <tom@codesourcery.com>
28018         PR tree-optimization/66435
28019         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
28020         function.
28022 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
28024         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
28025         of ptr_type_node to not be ptr_to_node.
28026         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
28027         TREE_TYPE of pointers.
28028         * gimple-expr.c (useless_type_conversion): Reorder the check for
28029         function pointers and TYPE_CANONICAL.
28031 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
28033         PR bootstrap/66319
28034         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
28035         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
28036         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
28037         later.
28038         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
28039         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
28040         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
28041         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
28042         and non iso if unix2003.
28044 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
28046         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
28048 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
28050         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
28051         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
28052         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
28053         except.c, final.c, function.c, gcse-common.c, genemit.c,
28054         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
28055         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
28056         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
28057         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
28058         more derived ones.
28060 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
28062         * combine.c (combine_split_insns): Remove cast.
28063         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
28064         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
28065         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
28066         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
28067         * genemit.c (gen_split): Change return type of generated functions to
28068         rtx_insn.
28069         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
28070         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
28071         gen_peephole2_* functions.
28072         (print_subroutine, main): Likewise.
28073         * recog.c (peephole2_optimize): Remove cast.
28074         (peep2_next_insn): Promote return type to rtx_insn.
28075         * recog.h (peep2_next_insn): Fix prototype.
28076         * rtl.h (try_split, split_insns): Likewise.
28078 2015-06-06  DJ Delorie  <dj@redhat.com>
28080         * config/msp430/msp430.c (msp430_asm_integer): Support addition
28081         and subtraction too.
28083 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
28085         PR target/66410
28086         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
28087         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
28088         instead of Snd.  Disparage Sid/z alternative with '^'.
28090 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
28092         * dwarf2out.c: Remove deferred_locations*.
28093         (dwarf2_debug_hooks): Add early_finish hook.
28094         Remove global_decl hook.
28095         Add early_global_decl and late_global_decl hook.
28096         New global early_dwarf.
28097         New structure set_early_dwarf.
28098         (output_die): Indicate whether a DIE was generated early
28099         when generating assembly with -dA.
28100         (struct limbo_die_struct): Document created_for field.
28101         Remove file_table_last_lookup.
28102         (remove_AT): Return TRUE if successful.
28103         (remove_child_TAG): Clear die_parent.
28104         (reparent_child): New function abstracted from...
28105         (splice_child_die): ...here.
28106         (new_die): ICE if a DIE ends up in limbo too late.
28107         (check_die): New.
28108         (defer_location): Remove.
28109         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
28110         (fill_variable_array_bounds): New.
28111         (decl_start_label): Call fill_variable_array_bounds.
28112         (gen_formal_parameter_die): Rewrite to reuse previously generated
28113         DIEs.
28114         (gen_subprogram_die): Same.
28115         (gen_variable_die): Same.
28116         (gen_const_die): Same.
28117         (gen_label_die): Same.
28118         (gen_lexical_block_die): Same.
28119         (decl_will_get_specification_p): New.
28120         (local_function_static): New.
28121         (gen_struct_or_union_type_die): Fill in variable-length fields.
28122         (gen_typedef_die): Fill in variable-length typedefs.
28123         (gen_tagged_type_die): Gracefully return on error_mark_node.
28124         Handle re-entrancy.
28125         (gen_type_die_with_usage): Handle variable-length types.
28126         Remove duplicate code for ARRAY_TYPE case.
28127         (process_scope_var): Only process imported modules during early
28128         dwarf.
28129         (dwarf2out_early_global_decl): New.
28130         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28131         (dwarf2out_type_decl): Set early_dwarf while calling
28132         dwarf2out_decl.
28133         (dwarf2out_decl): Verify that we did not recreate a previously
28134         generated DIE.
28135         Do not return on DECL_EXTERNALs in VAR_DECLs.
28136         Abstract some code to local_function_static.
28137         (lookup_filename): Remove use of file_table_last_lookup.
28138         Gracefully exit on missing file_name.
28139         (dwarf2out_finish): Verify limbo list.
28140         Remove deferred_locations_list use.
28141         Move deferred_asm_name and limbo flushing to...
28142         (dwarf2out_early_finish): ...here.  New.
28143         (dwarf2out_c_finalize): Remove set of deferred_location_list,
28144         deferred_asm_name, and file_table_last_lookup.
28145         * cgraph.h (referred_to_p): Add default argument.
28146         * cgraphunit.c (referred_to_p): Add and handle include_self
28147         argument.
28148         (analyze_functions): Add first_time argument.
28149         Call check_global_declaration for all symbols.
28150         Call late_global_decl for nodes for moribund nodes.
28151         (finalize_compilation_unit): Add new argument to
28152         analyze_functions.
28153         Call early_global_decl for functions.
28154         Call early_finish debug hook.
28155         * dbxout.c (dbxout_early_global_decl): New.
28156         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
28157         (dbx_debug_hooks): Add new hooks.
28158         (xcoff_debug_hooks): Same.
28159         * debug.c (do_nothing_debug_hooks): Add early_finish field.
28160         Add early and late debug hooks.
28161         Remove global_decl hook.
28162         * debug.h (struct gcc_debug_hooks): Add early_finish,
28163         early_global_decl, and late_global_decl fields.
28164         Remove global_decl field.
28165         Document gcc_debug_hooks.
28166         * gengtype.c (output_typename): Remove.
28167         * godump.c (go_early_global_decl): New.
28168         (go_late_global_decl): New.
28169         (go_global_decl): Remove.
28170         (dump_go_spec_init): Remove global_decl.  Add
28171         {early,late}_global_decl.
28172         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28173         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28174         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28175         (write_global_declarations): Remove.
28176         (global_decl_processing): New.
28177         * langhooks.h (struct lang_hooks_for_decls): Remove
28178         final_write_globals field.
28179         Add post_compilation_parsing_cleanups field.
28180         * passes.c (rest_of_decl_compilation): Call early_global_decl.
28181         * sdbout.c: Add early and late_global_decl hooks.  Remove
28182         sdbout_global_decl hook.
28183         Add early_finish field for sdb_debug_hooks.
28184         (sdbout_global_decl): Remove.
28185         (sdbout_early_global_decl): New.
28186         (sdbout_late_global_decl): New.
28187         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28188         * toplev.c (check_global_declaration): Rename from
28189         check_global_declaration_1.
28190         Adapt to use symtab infrastructure.
28191         (check_global_declarations): Remove.
28192         (emit_debug_global_declarations): Remove.
28193         (compile_file): Remove call to final_write_globals langhook.
28194         Run the actual compilation process.
28195         Perform any post compilation parser cleanups.
28196         Generate late debug info.
28197         * toplev.h (check_global_declaration): New.
28198         (check_global_declaration_1): Remove.
28199         (check_global_declarations): Remove.
28200         (write_global_declarations): Remove.
28201         (emit_debug_global_declarations): Remove.
28202         (global_decl_processing): New.
28203         * tree-core.h (struct tree_block): Add DIE field.
28204         * tree.h (BLOCK_DIE): New.
28205         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28206         throughout.
28207         (vmsdbgout_early_global_decl): New.
28208         (vmsdbgout_late_global_decl): New.
28209         Add early_finish debug hook field to vmsdbg_debug_hooks.
28210         Remove vmsdbgout_decl to vmsdbgout_function_decl.
28211         Add early and late_global_decl debug hooks.
28213 2015-06-05  Julian Brown  <julian@codesourcery.com>
28214             Sandra Loosemore  <sandra@codesourcery.com>
28216         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28217         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28218         to print-sysroot-suffix.sh script.
28220 2015-06-05  Tom de Vries  <tom@codesourcery.com>
28222         merge from gomp4 branch:
28223         2015-05-28  Tom de Vries  <tom@codesourcery.com>
28225         PR tree-optimization/65443
28226         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28227         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28228         (try_transform_to_exit_first_loop_alt): New function.
28229         (transform_to_exit_first_loop): Use
28230         try_transform_to_exit_first_loop_alt.
28232 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
28234         * builtins.c (expand_builtin_atomic_compare_exchange): Call
28235         emit_cmp_and_jump_insns with the mode of target.
28237 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28239         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28241 2015-06-04  DJ Delorie  <dj@redhat.com>
28243         * config/msp430/msp430.md (movsi_s): New.  Special case for
28244         storing a 20-bit symbol into a 32-bit register.
28245         * config/msp430/msp430.c (msp430_subreg): Add support for it.
28246         * config/msp430/predicates.md (msp430_symbol_operand): New.
28248 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
28250         * calls.c (prepare_call_address): Check for noplt
28251         attribute.
28252         * config/i386/i386.c (ix86_expand_call): Check
28253         for noplt attribute.
28254         (ix86_nopic_noplt_attribute_p): New function.
28255         (ix86_output_call_insn): Output indirect call for non-pic
28256         no plt calls.
28257         * doc/extend.texi (noplt): Document new attribute.
28258         * doc/invoke.texi: Document new attribute.
28260 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
28262         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28263         real.h, and fixed-value.h when included in host source files.
28264         * double-int.h: Remove redundant #includes listed above.
28265         * fixed-value.h: Likewise.
28266         * real.h: Likewise.
28267         * wide-int.h: Likewise.
28268         * inchash.h: Likewise.
28269         * rtl.h: Add some include files When included from a generator file.
28270         * target.h: Remove wide-int.h and insn-modes.h from the include list.
28271         * internal-fn.h: Don't include coretypes.h.
28272         * alias.c: Adjust includes for restructured coretypes.h.
28273         * asan.c: Likewise.
28274         * attribs.c: Likewise.
28275         * auto-inc-dec.c: Likewise.
28276         * auto-profile.c: Likewise.
28277         * bb-reorder.c: Likewise.
28278         * bt-load.c: Likewise.
28279         * builtins.c: Likewise.
28280         * caller-save.c: Likewise.
28281         * calls.c: Likewise.
28282         * ccmp.c: Likewise.
28283         * cfg.c: Likewise.
28284         * cfganal.c: Likewise.
28285         * cfgbuild.c: Likewise.
28286         * cfgcleanup.c: Likewise.
28287         * cfgexpand.c: Likewise.
28288         * cfghooks.c: Likewise.
28289         * cfgloop.c: Likewise.
28290         * cfgloop.h: Likewise.
28291         * cfgloopanal.c: Likewise.
28292         * cfgloopmanip.c: Likewise.
28293         * cfgrtl.c: Likewise.
28294         * cgraph.c: Likewise.
28295         * cgraphbuild.c: Likewise.
28296         * cgraphclones.c: Likewise.
28297         * cgraphunit.c: Likewise.
28298         * cilk-common.c: Likewise.
28299         * combine-stack-adj.c: Likewise.
28300         * combine.c: Likewise.
28301         * compare-elim.c: Likewise.
28302         * convert.c: Likewise.
28303         * coverage.c: Likewise.
28304         * cppbuiltin.c: Likewise.
28305         * cprop.c: Likewise.
28306         * cse.c: Likewise.
28307         * cselib.c: Likewise.
28308         * data-streamer-in.c: Likewise.
28309         * data-streamer-out.c: Likewise.
28310         * data-streamer.c: Likewise.
28311         * dbxout.c: Likewise.
28312         * dce.c: Likewise.
28313         * ddg.c: Likewise.
28314         * debug.c: Likewise.
28315         * df-core.c: Likewise.
28316         * df-problems.c: Likewise.
28317         * df-scan.c: Likewise.
28318         * df.h: Likewise.
28319         * dfp.c: Likewise.
28320         * dojump.c: Likewise.
28321         * dominance.c: Likewise.
28322         * domwalk.c: Likewise.
28323         * double-int.c: Likewise.
28324         * dse.c: Likewise.
28325         * dumpfile.c: Likewise.
28326         * dwarf2asm.c: Likewise.
28327         * dwarf2cfi.c: Likewise.
28328         * dwarf2out.c: Likewise.
28329         * dwarf2out.h: Likewise.
28330         * emit-rtl.c: Likewise.
28331         * et-forest.c: Likewise.
28332         * except.c: Likewise.
28333         * explow.c: Likewise.
28334         * expmed.c: Likewise.
28335         * expr.c: Likewise.
28336         * final.c: Likewise.
28337         * fixed-value.c: Likewise.
28338         * fold-const.c: Likewise.
28339         * function.c: Likewise.
28340         * fwprop.c: Likewise.
28341         * gcc-plugin.h: Likewise.
28342         * gcse.c: Likewise.
28343         * generic-match-head.c: Likewise.
28344         * ggc-page.c: Likewise.
28345         * gimple-builder.c: Likewise.
28346         * gimple-expr.c: Likewise.
28347         * gimple-fold.c: Likewise.
28348         * gimple-iterator.c: Likewise.
28349         * gimple-low.c: Likewise.
28350         * gimple-match-head.c: Likewise.
28351         * gimple-pretty-print.c: Likewise.
28352         * gimple-ssa-isolate-paths.c: Likewise.
28353         * gimple-ssa-strength-reduction.c: Likewise.
28354         * gimple-streamer-in.c: Likewise.
28355         * gimple-streamer-out.c: Likewise.
28356         * gimple-streamer.h: Likewise.
28357         * gimple-walk.c: Likewise.
28358         * gimple.c: Likewise.
28359         * gimplify-me.c: Likewise.
28360         * gimplify.c: Likewise.
28361         * godump.c: Likewise.
28362         * graph.c: Likewise.
28363         * graphite-blocking.c: Likewise.
28364         * graphite-dependences.c: Likewise.
28365         * graphite-interchange.c: Likewise.
28366         * graphite-isl-ast-to-gimple.c: Likewise.
28367         * graphite-optimize-isl.c: Likewise.
28368         * graphite-poly.c: Likewise.
28369         * graphite-scop-detection.c: Likewise.
28370         * graphite-sese-to-poly.c: Likewise.
28371         * graphite.c: Likewise.
28372         * haifa-sched.c: Likewise.
28373         * hooks.h: Likewise.
28374         * hw-doloop.c: Likewise.
28375         * ifcvt.c: Likewise.
28376         * incpath.c: Likewise.
28377         * init-regs.c: Likewise.
28378         * internal-fn.c: Likewise.
28379         * ipa-chkp.c: Likewise.
28380         * ipa-comdats.c: Likewise.
28381         * ipa-cp.c: Likewise.
28382         * ipa-devirt.c: Likewise.
28383         * ipa-icf-gimple.c: Likewise.
28384         * ipa-icf.c: Likewise.
28385         * ipa-inline-analysis.c: Likewise.
28386         * ipa-inline-transform.c: Likewise.
28387         * ipa-inline.c: Likewise.
28388         * ipa-polymorphic-call.c: Likewise.
28389         * ipa-profile.c: Likewise.
28390         * ipa-prop.c: Likewise.
28391         * ipa-pure-const.c: Likewise.
28392         * ipa-ref.c: Likewise.
28393         * ipa-reference.c: Likewise.
28394         * ipa-split.c: Likewise.
28395         * ipa-utils.c: Likewise.
28396         * ipa-visibility.c: Likewise.
28397         * ipa.c: Likewise.
28398         * ira-build.c: Likewise.
28399         * ira-color.c: Likewise.
28400         * ira-conflicts.c: Likewise.
28401         * ira-costs.c: Likewise.
28402         * ira-emit.c: Likewise.
28403         * ira-lives.c: Likewise.
28404         * ira.c: Likewise.
28405         * jump.c: Likewise.
28406         * langhooks.c: Likewise.
28407         * lcm.c: Likewise.
28408         * loop-doloop.c: Likewise.
28409         * loop-init.c: Likewise.
28410         * loop-invariant.c: Likewise.
28411         * loop-iv.c: Likewise.
28412         * loop-unroll.c: Likewise.
28413         * lower-subreg.c: Likewise.
28414         * lra-assigns.c: Likewise.
28415         * lra-coalesce.c: Likewise.
28416         * lra-constraints.c: Likewise.
28417         * lra-eliminations.c: Likewise.
28418         * lra-lives.c: Likewise.
28419         * lra-remat.c: Likewise.
28420         * lra-spills.c: Likewise.
28421         * lra.c: Likewise.
28422         * lto-cgraph.c: Likewise.
28423         * lto-compress.c: Likewise.
28424         * lto-opts.c: Likewise.
28425         * lto-section-in.c: Likewise.
28426         * lto-section-out.c: Likewise.
28427         * lto-streamer-in.c: Likewise.
28428         * lto-streamer-out.c: Likewise.
28429         * lto-streamer.c: Likewise.
28430         * mcf.c: Likewise.
28431         * mode-switching.c: Likewise.
28432         * modulo-sched.c: Likewise.
28433         * omega.c: Likewise.
28434         * omp-low.c: Likewise.
28435         * optabs.c: Likewise.
28436         * opts-global.c: Likewise.
28437         * passes.c: Likewise.
28438         * plugin.c: Likewise.
28439         * postreload-gcse.c: Likewise.
28440         * postreload.c: Likewise.
28441         * predict.c: Likewise.
28442         * print-rtl.c: Likewise.
28443         * print-tree.c: Likewise.
28444         * profile.c: Likewise.
28445         * real.c: Likewise.
28446         * realmpfr.c: Likewise.
28447         * realmpfr.h: Likewise.
28448         * recog.c: Likewise.
28449         * ree.c: Likewise.
28450         * reg-stack.c: Likewise.
28451         * regcprop.c: Likewise.
28452         * reginfo.c: Likewise.
28453         * regrename.c: Likewise.
28454         * regs.h: Likewise.
28455         * regstat.c: Likewise.
28456         * reload.c: Likewise.
28457         * reload1.c: Likewise.
28458         * reorg.c: Likewise.
28459         * resource.c: Likewise.
28460         * rtl-chkp.c: Likewise.
28461         * rtlanal.c: Likewise.
28462         * rtlhooks.c: Likewise.
28463         * sanopt.c: Likewise.
28464         * sched-deps.c: Likewise.
28465         * sched-ebb.c: Likewise.
28466         * sched-rgn.c: Likewise.
28467         * sched-vis.c: Likewise.
28468         * sdbout.c: Likewise.
28469         * sel-sched-dump.c: Likewise.
28470         * sel-sched-ir.c: Likewise.
28471         * sel-sched.c: Likewise.
28472         * sese.c: Likewise.
28473         * shrink-wrap.c: Likewise.
28474         * shrink-wrap.h: Likewise.
28475         * simplify-rtx.c: Likewise.
28476         * stack-ptr-mod.c: Likewise.
28477         * statistics.c: Likewise.
28478         * stmt.c: Likewise.
28479         * stor-layout.c: Likewise.
28480         * store-motion.c: Likewise.
28481         * stringpool.c: Likewise.
28482         * symtab.c: Likewise.
28483         * target-globals.c: Likewise.
28484         * targhooks.c: Likewise.
28485         * toplev.c: Likewise.
28486         * tracer.c: Likewise.
28487         * trans-mem.c: Likewise.
28488         * tree-affine.c: Likewise.
28489         * tree-affine.h: Likewise.
28490         * tree-browser.c: Likewise.
28491         * tree-call-cdce.c: Likewise.
28492         * tree-cfg.c: Likewise.
28493         * tree-cfgcleanup.c: Likewise.
28494         * tree-chkp-opt.c: Likewise.
28495         * tree-chkp.c: Likewise.
28496         * tree-chrec.c: Likewise.
28497         * tree-complex.c: Likewise.
28498         * tree-data-ref.c: Likewise.
28499         * tree-dfa.c: Likewise.
28500         * tree-diagnostic.c: Likewise.
28501         * tree-dump.c: Likewise.
28502         * tree-eh.c: Likewise.
28503         * tree-emutls.c: Likewise.
28504         * tree-if-conv.c: Likewise.
28505         * tree-inline.c: Likewise.
28506         * tree-into-ssa.c: Likewise.
28507         * tree-iterator.c: Likewise.
28508         * tree-loop-distribution.c: Likewise.
28509         * tree-nested.c: Likewise.
28510         * tree-nrv.c: Likewise.
28511         * tree-object-size.c: Likewise.
28512         * tree-outof-ssa.c: Likewise.
28513         * tree-parloops.c: Likewise.
28514         * tree-phinodes.c: Likewise.
28515         * tree-predcom.c: Likewise.
28516         * tree-pretty-print.c: Likewise.
28517         * tree-pretty-print.h: Likewise.
28518         * tree-profile.c: Likewise.
28519         * tree-scalar-evolution.c: Likewise.
28520         * tree-sra.c: Likewise.
28521         * tree-ssa-address.c: Likewise.
28522         * tree-ssa-alias.c: Likewise.
28523         * tree-ssa-ccp.c: Likewise.
28524         * tree-ssa-coalesce.c: Likewise.
28525         * tree-ssa-copy.c: Likewise.
28526         * tree-ssa-copyrename.c: Likewise.
28527         * tree-ssa-dce.c: Likewise.
28528         * tree-ssa-dom.c: Likewise.
28529         * tree-ssa-dse.c: Likewise.
28530         * tree-ssa-forwprop.c: Likewise.
28531         * tree-ssa-ifcombine.c: Likewise.
28532         * tree-ssa-live.c: Likewise.
28533         * tree-ssa-loop-ch.c: Likewise.
28534         * tree-ssa-loop-im.c: Likewise.
28535         * tree-ssa-loop-ivcanon.c: Likewise.
28536         * tree-ssa-loop-ivopts.c: Likewise.
28537         * tree-ssa-loop-manip.c: Likewise.
28538         * tree-ssa-loop-niter.c: Likewise.
28539         * tree-ssa-loop-prefetch.c: Likewise.
28540         * tree-ssa-loop-unswitch.c: Likewise.
28541         * tree-ssa-loop.c: Likewise.
28542         * tree-ssa-loop.h: Likewise.
28543         * tree-ssa-math-opts.c: Likewise.
28544         * tree-ssa-operands.c: Likewise.
28545         * tree-ssa-phiopt.c: Likewise.
28546         * tree-ssa-phiprop.c: Likewise.
28547         * tree-ssa-pre.c: Likewise.
28548         * tree-ssa-propagate.c: Likewise.
28549         * tree-ssa-reassoc.c: Likewise.
28550         * tree-ssa-sccvn.c: Likewise.
28551         * tree-ssa-scopedtables.c: Likewise.
28552         * tree-ssa-sink.c: Likewise.
28553         * tree-ssa-strlen.c: Likewise.
28554         * tree-ssa-structalias.c: Likewise.
28555         * tree-ssa-tail-merge.c: Likewise.
28556         * tree-ssa-ter.c: Likewise.
28557         * tree-ssa-threadedge.c: Likewise.
28558         * tree-ssa-threadupdate.c: Likewise.
28559         * tree-ssa-uncprop.c: Likewise.
28560         * tree-ssa-uninit.c: Likewise.
28561         * tree-ssa.c: Likewise.
28562         * tree-ssanames.c: Likewise.
28563         * tree-stdarg.c: Likewise.
28564         * tree-streamer-in.c: Likewise.
28565         * tree-streamer-out.c: Likewise.
28566         * tree-streamer.c: Likewise.
28567         * tree-switch-conversion.c: Likewise.
28568         * tree-tailcall.c: Likewise.
28569         * tree-vect-data-refs.c: Likewise.
28570         * tree-vect-generic.c: Likewise.
28571         * tree-vect-loop-manip.c: Likewise.
28572         * tree-vect-loop.c: Likewise.
28573         * tree-vect-patterns.c: Likewise.
28574         * tree-vect-slp.c: Likewise.
28575         * tree-vect-stmts.c: Likewise.
28576         * tree-vectorizer.c: Likewise.
28577         * tree-vrp.c: Likewise.
28578         * tree.c: Likewise.
28579         * tsan.c: Likewise.
28580         * ubsan.c: Likewise.
28581         * valtrack.c: Likewise.
28582         * value-prof.c: Likewise.
28583         * var-tracking.c: Likewise.
28584         * varasm.c: Likewise.
28585         * varpool.c: Likewise.
28586         * vmsdbgout.c: Likewise.
28587         * vtable-verify.c: Likewise.
28588         * web.c: Likewise.
28589         * wide-int-print.cc: Likewise.
28590         * wide-int-print.h: Likewise.
28591         * wide-int.cc: Likewise.
28592         * xcoffout.c: Likewise.
28593         * config/aarch64/aarch64-builtins.c: Likewise.
28594         * config/aarch64/aarch64.c: Likewise.
28595         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28596         * config/alpha/alpha.c: Likewise.
28597         * config/arc/arc.c: Likewise.
28598         * config/arm/aarch-common.c: Likewise.
28599         * config/arm/arm-builtins.c: Likewise.
28600         * config/arm/arm-c.c: Likewise.
28601         * config/arm/arm.c: Likewise.
28602         * config/avr/avr-c.c: Likewise.
28603         * config/avr/avr-log.c: Likewise.
28604         * config/avr/avr.c: Likewise.
28605         * config/bfin/bfin.c: Likewise.
28606         * config/c6x/c6x.c: Likewise.
28607         * config/cr16/cr16.c: Likewise.
28608         * config/cris/cris.c: Likewise.
28609         * config/darwin-c.c: Likewise.
28610         * config/darwin.c: Likewise.
28611         * config/default-c.c: Likewise.
28612         * config/epiphany/epiphany.c: Likewise.
28613         * config/epiphany/mode-switch-use.c: Likewise.
28614         * config/epiphany/resolve-sw-modes.c: Likewise.
28615         * config/fr30/fr30.c: Likewise.
28616         * config/frv/frv.c: Likewise.
28617         * config/ft32/ft32.c: Likewise.
28618         * config/glibc-c.c: Likewise.
28619         * config/h8300/h8300.c: Likewise.
28620         * config/i386/i386-c.c: Likewise.
28621         * config/i386/i386.c: Likewise.
28622         * config/i386/msformat-c.c: Likewise.
28623         * config/i386/winnt-cxx.c: Likewise.
28624         * config/i386/winnt-stubs.c: Likewise.
28625         * config/i386/winnt.c: Likewise.
28626         * config/ia64/ia64-c.c: Likewise.
28627         * config/ia64/ia64.c: Likewise.
28628         * config/iq2000/iq2000.c: Likewise.
28629         * config/lm32/lm32.c: Likewise.
28630         * config/m32c/m32c-pragma.c: Likewise.
28631         * config/m32c/m32c.c: Likewise.
28632         * config/m32r/m32r.c: Likewise.
28633         * config/m68k/m68k.c: Likewise.
28634         * config/mcore/mcore.c: Likewise.
28635         * config/mep/mep-pragma.c: Likewise.
28636         * config/mep/mep.c: Likewise.
28637         * config/microblaze/microblaze-c.c: Likewise.
28638         * config/microblaze/microblaze.c: Likewise.
28639         * config/mips/mips.c: Likewise.
28640         * config/mmix/mmix.c: Likewise.
28641         * config/mn10300/mn10300.c: Likewise.
28642         * config/moxie/moxie.c: Likewise.
28643         * config/msp430/msp430-c.c: Likewise.
28644         * config/msp430/msp430.c: Likewise.
28645         * config/nds32/nds32-cost.c: Likewise.
28646         * config/nds32/nds32-fp-as-gp.c: Likewise.
28647         * config/nds32/nds32-intrinsic.c: Likewise.
28648         * config/nds32/nds32-isr.c: Likewise.
28649         * config/nds32/nds32-md-auxiliary.c: Likewise.
28650         * config/nds32/nds32-memory-manipulation.c: Likewise.
28651         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28652         * config/nds32/nds32-predicates.c: Likewise.
28653         * config/nds32/nds32.c: Likewise.
28654         * config/nios2/nios2.c: Likewise.
28655         * config/nvptx/nvptx.c: Likewise.
28656         * config/pa/pa.c: Likewise.
28657         * config/pdp11/pdp11.c: Likewise.
28658         * config/rl78/rl78-c.c: Likewise.
28659         * config/rl78/rl78.c: Likewise.
28660         * config/rs6000/rs6000-c.c: Likewise.
28661         * config/rs6000/rs6000.c: Likewise.
28662         * config/rx/rx.c: Likewise.
28663         * config/s390/s390-c.c: Likewise.
28664         * config/s390/s390.c: Likewise.
28665         * config/sh/sh-c.c: Likewise.
28666         * config/sh/sh-mem.cc: Likewise.
28667         * config/sh/sh.c: Likewise.
28668         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
28669         * config/sh/sh_treg_combine.cc: Likewise.
28670         * config/sol2-c.c: Likewise.
28671         * config/sol2-cxx.c: Likewise.
28672         * config/sol2-stubs.c: Likewise.
28673         * config/sol2.c: Likewise.
28674         * config/sparc/sparc-c.c: Likewise.
28675         * config/sparc/sparc.c: Likewise.
28676         * config/spu/spu-c.c: Likewise.
28677         * config/spu/spu.c: Likewise.
28678         * config/stormy16/stormy16.c: Likewise.
28679         * config/tilegx/mul-tables.c: Likewise.
28680         * config/tilegx/tilegx-c.c: Likewise.
28681         * config/tilegx/tilegx.c: Likewise.
28682         * config/tilepro/mul-tables.c: Likewise.
28683         * config/tilepro/tilepro-c.c: Likewise.
28684         * config/tilepro/tilepro.c: Likewise.
28685         * config/v850/v850-c.c: Likewise.
28686         * config/v850/v850.c: Likewise.
28687         * config/vax/vax.c: Likewise.
28688         * config/visium/visium.c: Likewise.
28689         * config/vms/vms-c.c: Likewise.
28690         * config/vms/vms.c: Likewise.
28691         * config/vxworks.c: Likewise.
28692         * config/winnt-c.c: Likewise.
28693         * config/xtensa/xtensa.c: Likewise.
28694         * common/config/bfin/bfin-common.c: Likewise.
28696 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
28698         * tree.h (tree_code_for_canonical_type_merging): New function.
28699         * tree.c (gimple_canonical_types_compatible_p): Use
28700         tree_code_for_canonical_type_merging..
28702 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28704         PR c++/66192
28705         PR target/66200
28706         * doc/tm.texi: Regenerate.
28707         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
28708         * target.def (TARGET_RELAXED_ORDERING): Likewise.
28709         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
28710         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
28711         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
28712         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
28713         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
28714         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
28715         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
28717 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28719         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
28720         register fma steering pass.
28721         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
28722         AARCH64_TUNE_FMA_STEERING.
28724 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
28726         * tree.c (verify_type_variant): Verify that type and variant is
28727         compatible.
28728         (gimple_canonical_types_compatible_p): Look for main variants.
28730 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28732         * config.gcc (powerpc*-*-*): Add support for a new configure
28733         option --with-advance-toolchain=<xxx> which overrides using the
28734         default header files, libraries and dynamic linker.
28736         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28737         specs to support the configure --with-advance-toolchain=<xxx>
28738         option.
28739         (INCLUDE_EXTRA_SPEC): Likewise.
28740         (LINK_OS_EXTRA_SPEC32): Likewise.
28741         (LINK_OK_EXTRA_SPEC64): Likewise.
28742         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28743         (DYNAMIC_LINKER_PREFIX): Likewise.
28744         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28745         toolchain support.
28746         (GLIBC_DYNAMIC_LINKER32): Likewise.
28747         (GLIBC_DYNAMIC_LINKER64): Likewise.
28748         (LINK_OS_LINUX_SPEC32): Likewise.
28749         (LINK_OS_LINUX_SPEC64): Likewise.
28751         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28752         configuration option.
28754 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
28756         PR target/66275
28757         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28758         to determine current function ABI.
28759         (ix86_function_value_regno_p): Ditto.
28761 2015-06-03  Martin Liska  <mliska@suse.cz>
28763         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28764         * bitmap.h (struct bitmap_usage): Likewise.
28765         * ggc-common.c (struct ggc_usage): Likewise.
28766         * mem-stats.h (struct mem_location): Likewise.
28767         (struct mem_usage): Likewise.
28768         * vec.c (struct vec_usage): Likewise.
28770 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
28772         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28773         -Bsymbolic.
28775 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
28777         * doc/plugins.texi (enum plugin_event): New event.
28778         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28779         and PLUGIN_FINISH_FUNCTION.
28780         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28781         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28783 2015-06-03  Richard Biener  <rguenther@suse.de>
28785         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28786         compute GROUP_GAP for the first element.
28787         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28788         on in-group gaps.
28790 2015-06-03  Nick Clifton  <nickc@redhat.com>
28792         * config/rl78/rl78-real.md: Add peepholes to avoid a register
28793         copy when calling a function.
28794         * config/rl78/rl78.c (need_to_save): Do not push the frame
28795         pointer in an interrupt handler prologue if it is never used.
28797 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28799         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28801 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28803         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28804         reference when cloning alias node.
28806 2015-06-03  Martin Liska  <mliska@suse.cz>
28808         * alloc-pool.h (struct pool_usage): Correct space padding.
28809         * ggc-page.c (ggc_print_statistics): Align columns in a report.
28810         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28811         * tree.c (dump_tree_statistics): Align columns in a report.
28813 2015-06-03  Martin Liska  <mliska@suse.cz>
28815         * alloc-pool.c (allocate_pool_descriptor): Remove.
28816         (struct pool_output_info): Likewise.
28817         (print_alloc_pool_statistics): Likewise.
28818         (dump_alloc_pool_statistics): Likewise.
28819         * alloc-pool.h (struct pool_usage): New struct.
28820         (pool_allocator::initialize): Change usage of memory statistics
28821         to a new interface.
28822         (pool_allocator::release): Likewise.
28823         (pool_allocator::allocate): Likewise.
28824         (pool_allocator::remove): Likewise.
28825         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28826         for a pool allocator.
28827         * mem-stats.h (struct mem_location): Add new ctor.
28828         (struct mem_usage): Add counter for number of
28829         instances.
28830         (mem_alloc_description::register_descriptor): New overload of
28831         * mem-stats.h (mem_location::to_string): New function.
28832         * bitmap.h (struct bitmap_usage): Use this new function.
28833         * ggc-common.c (struct ggc_usage): Likewise.
28834         the function.
28836 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28838         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28839         of GCC_INSN_FLAGS_H block.
28841 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
28843         * explow.c (plus_constant): Update check after force_const_mem call
28844         to see if the value returned is not a NULL_RTX.
28846 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28848         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28849         remove instumentation thunks calling reachable functions.
28850         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28851         * lto/lto-partition.c (privatize_symbol_name_1): New.
28852         (privatize_symbol_name): Privatize both decl and orig_decl
28853         names for instrumented functions.
28854         * cgraph.c (cgraph_node::verify_node): Add transparent
28855         alias chain check for instrumented node.
28857 2015-06-03  Marek Polacek  <polacek@redhat.com>
28859         PR c/64223
28860         PR c/29358
28861         * tree.c (attribute_value_equal): Handle attribute format.
28862         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28864 2015-06-03  Richard Biener  <rguenther@suse.de>
28866         PR tree-optimization/63916
28867         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28868         Forward-propagate non-invariant addresses by splicing their
28869         reference ops if the result isn't going to be used by PRE.
28870         (vn_reference_lookup_3): Remove pointless assert.
28872 2015-06-03  Richard Biener  <rguenther@suse.de>
28874         PR tree-optimization/66375
28875         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28876         add to the evolution before following SSA edges.
28878 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
28880         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28881         (dump_use, dump_cand, find_induction_variables): Pass new argument
28882         to dump_iv.
28883         (record_use): Preserve the ssa name information in IV.
28885 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28887         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28888         NO_MODE_TEST.
28889         (add_mode_tests): Don't add mode tests if the predicate only
28890         accepts scalar constant integers.  Otherwise, allow the mode
28891         of "op" to be VOIDmode if the predicate does accept such integers.
28893 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
28895         PR target/66258
28896         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28897         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28898         (aarch64_secondary_reload): Likewise
28899         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28900         to !TARGET_FLOAT.
28901         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28902         Likewise.
28904 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
28905             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28907         PR target/65768
28908         * cprop.c (try_replace_reg): Check cost of constants before propagating.
28910 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28912         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28913         provide access to the IBM extended double floating point mode if
28914         long double is IEEE 128-bit floating point.
28915         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28916         point if long double is the IBM extended double type.
28918         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28919         enable adding IEEE 128-bit floating point support.
28920         (-mfloat128-software): Likewise.
28921         (-mfloat128-sw): Likewise.
28923         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28924         128-bit floating point types to occupy any register if
28925         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
28926         -mfloat128-software is enabled.
28927         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28928         support.
28929         (rs6000_option_override_internal): Add -mfloat128-* support.
28930         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28932         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28933         and float128 type nodes.
28934         (ieee128_float_type_node): Likewise.
28935         (ibm128_float_type_node): Likewise.
28937 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28939         PR target/66136
28940         * config/aarch64/geniterators.sh: Rewrite in awk.
28942 2015-06-02  Martin Liska  <mliska@suse.cz>
28944         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28945         values to avoid -Wmaybe-uninitialized errors.
28947 2015-06-02  Richard Biener  <rguenther@suse.de>
28949         PR debug/65549
28950         * dwarf2out.c (lookup_context_die): New function.
28951         (resolve_addr): Avoid forcing a full DIE for the
28952         target of a DW_TAG_GNU_call_site during late compilation.
28953         Instead create a stub DIE without a type if we have a
28954         context DIE present.
28956 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
28958         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28960 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28962         PR tree-optimization/48052
28963         * cfgloop.h (struct control_iv): New.
28964         (struct loop): New field control_ivs.
28965         * tree-ssa-loop-niter.c : Include "stor-layout.h".
28966         (number_of_iterations_lt): Set no_overflow information.
28967         (number_of_iterations_exit): Init control iv in niter struct.
28968         (record_control_iv): New.
28969         (estimate_numbers_of_iterations_loop): Call record_control_iv.
28970         (loop_exits_before_overflow): New.  Interface factored out of
28971         scev_probably_wraps_p.
28972         (scev_probably_wraps_p): Factor loop niter related code into
28973         loop_exits_before_overflow.
28974         (free_numbers_of_iterations_estimates_loop): Free control ivs.
28975         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28977 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
28979         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28980         the target doesn't belong to the current function.
28982 2015-06-02  Marek Polacek  <polacek@redhat.com>
28984         PR middle-end/66345
28985         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28986         get_maxval_strlen does not produce an INTEGER_CST.
28988 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
28990         * config/arc/constraints.md: Use lower-case names in match_code.
28991         * config/mmix/constraints.md: Likewise.
28993 2015-06-02  Richard Biener  <rguenther@suse.de>
28995         PR tree-optimization/65961
28996         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28997         check and clarify dump message.
28998         (vect_build_slp_tree): If all children are built up from scalars
28999         build up the parent from scalars instead.
29000         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
29002 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
29004         PR other/65366
29005         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
29006         instead of print ... .
29008 2015-06-02  Alan Modra  <amodra@gmail.com>
29010         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
29011         2014-08-11 change.
29013 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
29015         PR tree-optimization/52563
29016         PR tree-optimization/62173
29017         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
29018         (alloc_iv, set_iv): New parameter.
29019         (determine_biv_step): Delete.
29020         (find_bivs): Inline original determine_biv_step.  Pass new
29021         argument to set_iv.
29022         (idx_find_step): Use no_overflow information for conversion.
29023         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
29024         resolve_mixers handle folded_casts.
29025         (instantiate_scev_name): Change bool parameter to bool pointer.
29026         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
29027         (instantiate_array_ref, instantiate_scev_not): Ditto.
29028         (instantiate_scev_3, instantiate_scev_2): Ditto.
29029         (instantiate_scev_1, instantiate_scev_r): Ditto.
29030         (instantiate_scev_convert, ): Change parameter.  Pass argument
29031         to chrec_convert_aggressive.
29032         (instantiate_scev): Change argument.
29033         (resolve_mixers): New parameter and set it.
29034         (scev_const_prop): New argument.
29035         * tree-scalar-evolution.h (resolve_mixers): New parameter.
29036         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
29037         of chrec_conert_1.
29038         (chrec_convert): New parameter.  Move definition below.
29039         (chrec_convert_aggressive): New parameter and set it.  Call
29040         convert_affine_scev.
29041         * tree-chrec.h (chrec_convert): New parameter.
29042         (chrec_convert_aggressive): Ditto.
29044 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
29046         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
29047         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
29048         the LHS of a no-return call if its type has variable size.
29049         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
29050         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
29052 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
29054         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
29055         * config.in: Regenerate.
29057 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
29059         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
29060         consecutive accesses within outer-loop with force_vectorize
29061         for references with zero step in inner-loop.
29063 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
29065         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
29066         rather than from gcc/build directory.
29068 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
29070         PR target/65697
29071         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
29072         for __sync memory models, emit initial loads and final barriers as
29073         appropriate.
29075 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
29077         PR target/65697
29078         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
29079         (aarch64_split_atomic_op): Check for __sync memory models, emit
29080         appropriate initial loads and final barriers.
29082 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
29084         * Makefile.in: Fix gcov dependencies that should
29085         not point to a build folder.
29087 2015-06-01  Richard Biener  <rguenther@suse.de>
29089         Revert
29090         2015-05-29  Richard Biener  <rguenther@suse.de>
29092         PR tree-optimization/66314
29093         * tree-ssa-threadupdate.c (create_block_for_threading): Add
29094         parameter that says which loop the new block belongs to.
29095         (ssa_create_duplicates): Blocks duplicated for the threaded
29096         path belong to the loop of the thread destination.
29098 2015-06-01  Martin Liska  <mliska@suse.cz>
29100         * sched-deps.c: Include pool-alloc.h before
29101         cselib.h header file is included.
29103 2015-06-01  Richard Biener  <rguenther@suse.de>
29105         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
29106         functions.
29108 2015-06-01  Martin Liska  <mliska@suse.cz>
29110         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
29111         a function local variable.
29113 2015-06-01  Martin Liska  <mliska@suse.cz>
29115         * alloc-pool.c (create_alloc_pool): Remove.
29116         (empty_alloc_pool): Likewise.
29117         (free_alloc_pool): Likewise.
29118         (free_alloc_pool_if_empty): Likewise.
29119         (pool_alloc): Likewise.
29120         (pool_free): Likewise.
29121         * alloc-pool.h: Remove old declarations.
29123 2015-06-01  Martin Liska  <mliska@suse.cz>
29125         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
29126         (ira_create_object): Likewise.
29127         (ira_create_allocno): Likewise.
29128         (ira_create_live_range): Likewise.
29129         (copy_live_range): Likewise.
29130         (ira_finish_live_range): Likewise.
29131         (ira_free_allocno_costs): Likewise.
29132         (finish_allocno): Likewise.
29133         (finish_allocnos): Likewise.
29134         (initiate_prefs): Likewise.
29135         (ira_create_pref): Likewise.
29136         (finish_pref): Likewise.
29137         (finish_prefs): Likewise.
29138         (initiate_copies): Likewise.
29139         (ira_create_copy): Likewise.
29140         (finish_copy): Likewise.
29141         (finish_copies): Likewise.
29142         (finish_prefs): Likewise.
29144 2015-06-01  Martin Liska  <mliska@suse.cz>
29146         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29147         (allocate_and_init_ipcp_value): Likewise.
29148         (ipcp_lattice::add_value): Likewise.
29149         (merge_agg_lats_step): Likewise.
29150         (ipcp_driver): Likewise.
29151         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29152         (ipa_free_all_structures_after_iinln): Likewise.
29153         * ipa-prop.h: Likewise.
29155 2015-06-01  Martin Liska  <mliska@suse.cz>
29157         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29158         pool allocator.
29159         (set_hint_predicate): Likewise.
29160         (inline_summary_alloc): Likewise.
29161         (reset_inline_edge_summary): Likewise.
29162         (reset_inline_summary): Likewise.
29163         (set_cond_stmt_execution_predicate): Likewise.
29164         (set_switch_stmt_execution_predicate): Likewise.
29165         (compute_bb_predicates): Likewise.
29166         (estimate_function_body_sizes): Likewise.
29167         (inline_free_summary): Likewise.
29169 2015-06-01  Martin Liska  <mliska@suse.cz>
29171         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29172         (ipa_edge_duplication_hook): Likewise.
29173         (ipa_free_all_structures_after_ipa_cp): Likewise.
29174         (ipa_free_all_structures_after_iinln): Likewise.
29176 2015-06-01  Martin Liska  <mliska@suse.cz>
29178         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29179         (ipa_profile_generate_summary): Likewise.
29180         (ipa_profile_read_summary): Likewise.
29181         (ipa_profile): Likewise.
29183 2015-06-01  Martin Liska  <mliska@suse.cz>
29185         * tree-ssa-structalias.c (new_var_info): Use new type-based
29186         pool allocator.
29187         (new_constraint): Likewise.
29188         (init_alias_vars): Likewise.
29189         (delete_points_to_sets): Likewise.
29191 2015-06-01  Martin Liska  <mliska@suse.cz>
29193         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29194         (free_strinfo): Likewise.
29195         (pass_strlen::execute): Likewise.
29197 2015-06-01  Martin Liska  <mliska@suse.cz>
29199         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29200         pool allocator.
29201         (vn_reference_insert_pieces): Likewise.
29202         (vn_phi_insert): Likewise.
29203         (visit_reference_op_call): Likewise.
29204         (copy_phi): Likewise.
29205         (copy_reference): Likewise.
29206         (process_scc): Likewise.
29207         (allocate_vn_table): Likewise.
29208         (free_vn_table): Likewise.
29210 2015-06-01  Martin Liska  <mliska@suse.cz>
29212         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29213         pool allocator.
29214         (add_repeat_to_ops_vec): Likewise.
29215         (get_ops): Likewise.
29216         (maybe_optimize_range_tests): Likewise.
29217         (init_reassoc): Likewise.
29218         (fini_reassoc): Likewise.
29220 2015-06-01  Martin Liska  <mliska@suse.cz>
29222         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29223         pool allocator.
29224         (bitmap_set_new): Likewise.
29225         (get_or_alloc_expr_for_constant): Likewise.
29226         (get_or_alloc_expr_for): Likewise.
29227         (phi_translate_1): Likewise.
29228         (compute_avail): Likewise.
29229         (init_pre): Likewise.
29230         (fini_pre): Likewise.
29232 2015-06-01  Martin Liska  <mliska@suse.cz>
29234         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29235         (delete_dep_node): Likewise.
29236         (create_deps_list): Likewise.
29237         (free_deps_list): Likewise.
29238         (sched_deps_init): Likewise.
29239         (sched_deps_finish): Likewise.
29241 2015-06-01  Martin Liska  <mliska@suse.cz>
29243         * regcprop.c (free_debug_insn_changes): Use new type-based
29244         pool allocator.
29245         (replace_oldest_value_reg): Likewise.
29246         (pass_cprop_hardreg::execute): Likewise.
29248 2015-06-01  Martin Liska  <mliska@suse.cz>
29250         * ira-build.c (initiate_cost_vectors): Use new type-based
29251         pool allocator.
29252         (ira_allocate_cost_vector): Likewise.
29253         (ira_free_cost_vector): Likewise.
29254         (finish_cost_vectors): Likewise.
29256 2015-06-01  Martin Liska  <mliska@suse.cz>
29258         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29259         pool allocator.
29260         (free_sched_pools): Likewise.
29261         * sel-sched-ir.h (_list_alloc): Likewise.
29262         (_list_remove): Likewise.
29264 2015-06-01  Martin Liska  <mliska@suse.cz>
29266         * stmt.c (add_case_node): Use new type-based pool allocator.
29267         (expand_case): Likewise.
29268         (expand_sjlj_dispatch_table): Likewise.
29270 2015-06-01  Martin Liska  <mliska@suse.cz>
29272         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29273         (free_bb): Likewise.
29274         (pass_cse_reciprocals::execute): Likewise.
29276 2015-06-01  Martin Liska  <mliska@suse.cz>
29278         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29279         (sra_deinitialize) Likewise.
29280         (create_access_1) Likewise.
29281         (build_accesses_from_assign) Likewise.
29282         (create_artificial_child_access) Likewise.
29284 2015-06-01  Martin Liska  <mliska@suse.cz>
29286         * dse.c (get_group_info):Use new type-based pool allocator.
29287         (dse_step0) Likewise.
29288         (free_store_info) Likewise.
29289         (delete_dead_store_insn) Likewise.
29290         (free_read_records) Likewise.
29291         (record_store) Likewise.
29292         (replace_read) Likewise.
29293         (check_mem_read_rtx) Likewise.
29294         (scan_insn) Likewise.
29295         (dse_step1) Likewise.
29296         (dse_step7) Likewise.
29298 2015-06-01  Martin Liska  <mliska@suse.cz>
29300         * df-scan.c (struct df_scan_problem_data):Use new type-based
29301         pool allocator.
29302         (df_scan_free_internal) Likewise.
29303         (df_scan_alloc) Likewise.
29304         (df_grow_reg_info) Likewise.
29305         (df_free_ref) Likewise.
29306         (df_insn_create_insn_record) Likewise.
29307         (df_mw_hardreg_chain_delete) Likewise.
29308         (df_insn_info_delete) Likewise.
29309         (df_free_collection_rec) Likewise.
29310         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29311         (df_sort_and_compress_mws) Likewise.
29312         (df_ref_create_structure) Likewise.
29313         (df_ref_record) Likewise.
29315 2015-06-01  Martin Liska  <mliska@suse.cz>
29317         * df-problems.c (df_chain_create):Use new type-based pool allocator.
29318         (df_chain_unlink_1) Likewise.
29319         (df_chain_unlink) Likewise.
29320         (df_chain_remove_problem) Likewise.
29321         (df_chain_alloc) Likewise.
29322         (df_chain_free) Likewise.
29323         * df.h (struct dataflow) Likewise.
29325 2015-06-01  Martin Liska  <mliska@suse.cz>
29327         * cselib.c (new_elt_list):Use new type-based pool allocator.
29328         (new_elt_loc_list) Likewise.
29329         (unchain_one_elt_list) Likewise.
29330         (unchain_one_elt_loc_list) Likewise.
29331         (unchain_one_value) Likewise.
29332         (new_cselib_val) Likewise.
29333         (cselib_init) Likewise.
29334         (cselib_finish) Likewise.
29336 2015-06-01  Martin Liska  <mliska@suse.cz>
29338         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29339         (sh_reorg) Likewise.
29341 2015-06-01  Martin Liska  <mliska@suse.cz>
29343         * cfg.c (initialize_original_copy_tables):Use new type-based
29344         pool allocator.
29345         (free_original_copy_tables) Likewise.
29346         (copy_original_table_clear) Likewise.
29347         (copy_original_table_set) Likewise.
29349 2015-06-01  Martin Liska  <mliska@suse.cz>
29351         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29352         pool allocator.
29353         (asan_mem_ref_new) Likewise.
29354         (free_mem_ref_resources) Likewise.
29356 2015-06-01  Martin Liska  <mliska@suse.cz>
29358         * var-tracking.c (variable_htab_free):Use new type-based
29359         pool allocator.
29360         (attrs_list_clear) Likewise.
29361         (attrs_list_insert) Likewise.
29362         (attrs_list_copy) Likewise.
29363         (shared_hash_unshare) Likewise.
29364         (shared_hash_destroy) Likewise.
29365         (unshare_variable) Likewise.
29366         (var_reg_delete_and_set) Likewise.
29367         (var_reg_delete) Likewise.
29368         (var_regno_delete) Likewise.
29369         (drop_overlapping_mem_locs) Likewise.
29370         (variable_union) Likewise.
29371         (insert_into_intersection) Likewise.
29372         (canonicalize_values_star) Likewise.
29373         (variable_merge_over_cur) Likewise.
29374         (dataflow_set_merge) Likewise.
29375         (remove_duplicate_values) Likewise.
29376         (variable_post_merge_new_vals) Likewise.
29377         (dataflow_set_preserve_mem_locs) Likewise.
29378         (dataflow_set_remove_mem_locs) Likewise.
29379         (variable_from_dropped) Likewise.
29380         (variable_was_changed) Likewise.
29381         (set_slot_part) Likewise.
29382         (clobber_slot_part) Likewise.
29383         (delete_slot_part) Likewise.
29384         (loc_exp_insert_dep) Likewise.
29385         (notify_dependents_of_changed_value) Likewise.
29386         (emit_notes_for_differences_1) Likewise.
29387         (vt_emit_notes) Likewise.
29388         (vt_initialize) Likewise.
29389         (vt_finalize) Likewise.
29391 2015-06-01  Martin Liska  <mliska@suse.cz>
29393         * ira-color.c (init_update_cost_records):Use new type-based
29394         pool allocator.
29395         (get_update_cost_record) Likewise.
29396         (free_update_cost_record_list) Likewise.
29397         (finish_update_cost_records) Likewise.
29398         (initiate_cost_update) Likewise.
29400 2015-06-01  Martin Liska  <mliska@suse.cz>
29402         * lra.c (init_insn_regs): Use new type-based pool allocator.
29403         (new_insn_reg) Likewise.
29404         (free_insn_reg) Likewise.
29405         (free_insn_regs) Likewise.
29406         (finish_insn_regs) Likewise.
29407         (init_insn_recog_data) Likewise.
29408         (init_reg_info) Likewise.
29409         (finish_reg_info) Likewise.
29410         (lra_free_copies) Likewise.
29411         (lra_create_copy) Likewise.
29412         (invalidate_insn_data_regno_info) Likewise.
29414 2015-06-01  Martin Liska  <mliska@suse.cz>
29416         * lra-lives.c (free_live_range): Use new type-based pool allocator.
29417         (free_live_range_list) Likewise.
29418         (create_live_range) Likewise.
29419         (copy_live_range) Likewise.
29420         (lra_merge_live_ranges) Likewise.
29421         (remove_some_program_points_and_update_live_ranges) Likewise.
29422         (lra_live_ranges_init) Likewise.
29423         (lra_live_ranges_finish) Likewise.
29425 2015-06-01  Martin Liska  <mliska@suse.cz>
29427         * et-forest.c (et_new_occ): Use new type-based pool allocator.
29428         (et_new_tree): Likewise.
29429         (et_free_tree): Likewise.
29430         (et_free_tree_force): Likewise.
29431         (et_free_pools): Likewise.
29432         (et_split): Likewise.
29434 2015-06-01  Martin Liska  <mliska@suse.cz>
29436         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
29437         to header file.
29438         * alloc-pool.h (pool_allocator::pool_allocator): New function.
29439         (pool_allocator::release): Likewise.
29440         (inline pool_allocator::release_if_empty): Likewise.
29441         (inline pool_allocator::~pool_allocator): Likewise.
29442         (pool_allocator::allocate): Likewise.
29443         (pool_allocator::remove): Likewise.
29445 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29447         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
29448         in comment.
29450 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29452         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
29453         to fusible_ops.
29454         * config/arm/arm.c (arm_print_tune_info): Likewise.
29455         (arm_macro_fusion_p): Likewise.
29456         (arm_macro_fusion_pair_p): Likewise.
29458 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29460         * config/aarch64/aarch64-protos.h (tune_params): Rename
29461         fuseable_ops to fusible_ops.
29462         * config/aarch64/aarch64.c (generic_tunings): Rename
29463         fuseable_ops to fusible_ops.
29464         (cortexa53_tunings): Likewise.
29465         (cortexa57_tunings): Likewise.
29466         (thunderx_tunings): Likewise.
29467         (xgene1_tunings): Likewise.
29468         (aarch64_macro_fusion_p): Likewise.
29469         (aarch64_macro_fusion_pair_p): Likewise.
29471 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29473         * config/s390/driver-native.c: New file.
29474         * config/s390/x-native: New file.
29475         * config.host: Add new files for s390.
29476         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
29477         and -march=native
29478         * config.gcc: Likewise.
29479         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
29480         * config/s390/s390-opts.h (enum processor_type): Ditto.
29481         * config/s390/s390.c (s390_option_override): Catch unhandled
29482         PROCESSOR_NATIVE
29484 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
29486         PR target/65527
29487         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
29488         redirection for instrumented calls.
29489         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
29490         (append_compiler_options): Append -fcheck-pointer-bounds.
29491         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
29492         (chkp_redirect_edge): New.
29493         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
29494         (chkp_redirect_edge): New.
29496 2015-06-01  Richard Biener  <rguenther@suse.de>
29498         PR tree-optimization/66280
29499         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
29500         def-use walking.
29502 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29504         * config/aarch64/aarch64.md
29505         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
29506         logic_shift_imm.
29508 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
29510         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
29511         Remove obsolete kludge.
29513 2015-06-01  Richard Biener  <rguenther@suse.de>
29515         * tree-ssa-reassoc.c (get_rank): Simplify.
29517 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
29519         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
29520         * configure: Regenerated.
29522 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
29524         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
29525         issue (add space between string literal and macro).
29526         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
29528 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
29530         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
29531         implict or explicit -fPIE or -fpie.
29533 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
29535         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
29537 2015-05-28  DJ Delorie  <dj@redhat.com>
29539         * expmed.c (extract_bit_field_1): Avoid clobbering a
29540         yet-to-be-used base/index register.
29542 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
29544         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
29545         (alias_stats): Add num_universal.
29546         (alias_set_subset_of): Special case pointers; be ready for NULL
29547         children.
29548         (alias_sets_conflict_p): Special case pointers; be ready for NULL
29549         children.
29550         (init_alias_set_entry): Break out from ...
29551         (record_alias_subset): ... here; propagate new fields;
29552         allocate children only when really needed.
29553         (get_alias_set): Do less generous pointer globbing.
29554         (dump_alias_stats_in_alias_c): Update statistics.
29556 2015-05-30  Alan Modra  <amodra@gmail.com>
29558         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
29559         correct block for use of r12.
29560         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
29562 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29564         PR target/66215
29565         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
29566         with -mhotpatch=.
29568 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
29570         PR tree-optimization/66142
29571         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
29572         virtual phis that feed themselves.
29574 2015-05-29  Richard Biener  <rguenther@suse.de>
29576         PR tree-optimization/66314
29577         * tree-ssa-threadupdate.c (create_block_for_threading): Add
29578         parameter that says which loop the new block belongs to.
29579         (ssa_create_duplicates): Blocks duplicated for the threaded
29580         path belong to the loop of the thread destination.
29582 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29584         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
29585         to cleanup-saved-temps.
29586         * doc/sourcebuild.texi (Clean up generated test files): Expand
29587         introduction.
29588         (dg-keep-saved-temps): Document new proc.
29589         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
29590         cleanup-saved-temps): Remove.
29592 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
29594         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
29595         gcc_AC_CHECK_DECLS.
29596         * configure: Regenerate.
29598 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29600         * config/nios2/linux.h (CPP_SPEC): Define.
29602 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29604         * config/microblaze/linux.h (CPP_SPEC): Define.
29606 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29608         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
29609         -pthread is specified.
29611 2015-05-28  Richard Biener  <rguenther@suse.de>
29613         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
29614         (vect_fixup_scalar_cycles_with_patterns): Likewise.
29615         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
29616         after pattern recog.
29617         (vect_create_epilog_for_reduction): Properly handle reductions
29618         with patterns.
29619         (vectorizable_reduction): Likewise.
29620         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
29621         reduction chains.
29622         (vect_get_constant_vectors): Create the correct number of
29623         initial values for reductions.
29624         (vect_schedule_slp_instance): Handle reduction chains that are
29625         type changing properly.
29626         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
29628 2015-05-28  Richard Biener  <rguenther@suse.de>
29630         PR tree-optimization/66142
29631         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
29632         values better in memcpy destination handling.  Handle non-aliasing
29633         we discover here.
29635 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
29637         PR target/63810
29638         * config/darwin-c.c (version_components): New global enum.
29639         (parse_version, version_as_legacy_macro)
29640         (version_as_modern_macro, macosx_version_as_macro): New functions.
29641         (version_as_macro): Remove.
29642         (darwin_cpp_builtins): Use new function.
29644 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
29646         * builtins.c (expand_builtin_acc_on_device): Mark parameters
29647         with ATTRIBUTE_UNUSED.
29649 2015-05-28  Julian Brown  <julian@codesourcery.com>
29651         PR libgomp/65742
29653         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
29654         sequence for !ACCEL_COMPILER.
29656 2015-05-28  Nick Clifton  <nickc@redhat.com>
29658         * config/rx/rx.c (push_regs): New function.  Extracts code from...
29659         (rx_expand_prologue): ... here.  Use push_regs to push even small
29660         spans of registers.
29661         (pop_regs): New function.
29662         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
29663         registers.
29665 2015-05-28  Richard Biener  <rguenther@suse.de>
29667         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
29668         member.
29669         (SLP_INSTANCE_BODY_COST_VEC): Remove.
29670         (vect_update_slp_costs_according_to_vf): Likewise.
29671         (vect_slp_analyze_operations): Update prototype.
29672         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
29673         vect_update_slp_costs_according_to_vf, adjust.
29674         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
29675         (vect_analyze_slp_cost_1): Likewise.
29676         (vect_analyze_slp_cost): Likewise.  Properly deal with
29677         widening reduction ops.  Commit body costs.
29678         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
29679         cost for loops from here.
29680         (vect_slp_analyze_operations): But do it from here when
29681         the vectorization factor is known and stmts are analyzed.
29682         (vect_bb_vectorization_profitable_p): Simplify.
29683         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
29684         (vect_update_slp_costs_according_to_vf): Remove.
29686 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
29687             H.J. Lu  <hongjiu.lu@intel.com>
29689         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
29690         (BUILD_CFLAGS): Likewise.
29691         (BUILD_CXXFLAGS): Likewise.
29692         (LINKER): Add @NO_PIE_FLAG@.
29693         (BUILD_LDFLAGS): Likewise.
29694         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
29695         --enable-default-pie.
29696         * common.opt (fPIE): Initialize to -1.
29697         (fpie): Likewise.
29698         (no-pie): New option.
29699         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
29700         * configure.ac: Add --enable-default-pie.
29701         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
29702         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
29703         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
29704         * gcc.c (NO_PIE_SPEC): New.
29705         (PIE_SPEC): Likewise.
29706         (NO_FPIE1_SPEC): Likewise.
29707         (FPIE1_SPEC): Likewise.
29708         (NO_FPIE2_SPEC): Likewise.
29709         (FPIE2_SPEC): Likewise.
29710         (NO_FPIE2_SPEC): Likewise.
29711         (FPIE_SPEC): Likewise.
29712         (NO_FPIE_SPEC): Likewise.
29713         (NO_FPIC1_SPEC): Likewise.
29714         (FPIC1_SPEC): Likewise.
29715         (NO_FPIC2_SPEC): Likewise.
29716         (FPIC2_SPEC): Likewise.
29717         (NO_FPIC2_SPEC): Likewise.
29718         (FPIC_SPEC): Likewise.
29719         (NO_FPIC_SPEC): Likewise.
29720         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
29721         (FPIE1_OR_FPIC1_SPEC): Likewise.
29722         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
29723         (FPIE2_OR_FPIC2_SPEC): Likewise.
29724         (NO_FPIE_AND_FPIC_SPEC): Likewise.
29725         (FPIE_OR_FPIC_SPEC): Likewise.
29726         (LD_PIE_SPEC): Likewise.
29727         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
29728         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29729         * config/darwin.h (PIE_SPEC): Renamed to ...
29730         (DARWIN_PIE_SPEC): This.
29731         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29732         * config/darwin9.h (PIE_SPEC): Renamed to ...
29733         (DARWIN_PIE_SPEC): This.
29734         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29735         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29736         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29737         FPIE2_OR_FPIC2_SPEC.
29738         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29739         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29740         * config/sol2.h (ASM_PIC_SPEC): Likewise.
29741         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29742         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29743         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29744         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29745         * config/m32r/m32r.h (ASM_SPEC): Likewise.
29746         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29747         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29748         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29749         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29750         * config/sparc/linux.h (ASM_SPEC): Likewise.
29751         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29752         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29753         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29754         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29755         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29756         * config/sparc/sparc.h (ASM_SPEC): Likewise.
29757         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29758         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29759         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29760         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29761         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29762         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29763         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29764         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29765         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29766         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29767         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29768         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29769         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29770         * config/vax/linux.h (ASM_SPEC): Likewise.
29771         * doc/install.texi: Document --enable-default-pie.
29772         * doc/invoke.texi: Document -no-pie.
29773         * config.in: Regenerated.
29774         * configure: Likewise.
29776 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29778         PR rtl-optimization/66168
29779         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29780         can_move_invariant_reg.
29782 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
29784         PR target/66148
29785         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29786         REG_EQUAL note when doing insert.
29788         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29789         instead of "%d" for 'o' operand.
29791 2015-05-27  Nathan Sidwell  <nathan@acm.org>
29793         PR c++/66270
29794         * tree.c (build_pointer_type_for_mode): Canonical type does not
29795         inherit can_alias_all.
29796         (build_reference_type_for_mode): Likewise.
29798 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
29800         * expr.h (array_at_struct_end_p): Move to...
29801         (array_ref_element_size): Likewise.
29802         (component_ref_field_offset): Likewise.
29803         * tree.h (array_ref_element_size): ...here.
29804         (array_at_struct_end_p): Likewise.
29805         (component_ref_field_offset): Likewise.
29806         * expr.c (array_ref_element_size): Move to...
29807         (array_ref_low_bound): Likewise.
29808         (array_at_struct_end_p): Likewise.
29809         (array_ref_up_bound): Likewise.
29810         (component_ref_field_offset): Likewise.
29811         * tree.c (array_ref_element_size): ...here.
29812         (array_ref_low_bound): Likewise.
29813         (array_ref_up_bound): Likewise.
29814         (array_at_struct_end_p): Likewise.
29815         (component_ref_field_offset): Likewise.
29817 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29818             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29820         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29822 2015-05-27  Jason Merrill  <jason@redhat.com>
29824         PR bootstrap/66304
29825         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29826         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29827         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29829 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
29831         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29832         is true.
29834         * statistics.c (statistics_fini_pass): Print pass name.
29836 2015-05-27  Richard Biener  <rguenther@suse.de>
29838         PR tree-optimization/66272
29839         Revert parts of
29840         2014-08-15  Richard Biener  <rguenther@suse.de>
29842         PR tree-optimization/62031
29843         * tree-data-ref.c (dr_analyze_indices): Do not set
29844         DR_UNCONSTRAINED_BASE.
29845         (dr_may_alias_p): All indirect accesses have to go the
29846         formerly DR_UNCONSTRAINED_BASE path.
29847         * tree-data-ref.h (struct indices): Remove
29848         unconstrained_base member.
29849         (DR_UNCONSTRAINED_BASE): Remove.
29851 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
29853         * dwarf2out.c: Remove block_map.
29854         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29855         (gen_lexical_block_die): Same.
29856         (dwarf2out_function_decl): Remove block_map use.
29857         (dwarf2out_c_finalize): Same.
29858         * tree-core.h (struct tree_block): Add die field.
29859         * tree.h (BLOCK_DIE): New.
29861 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29863         PR target/65358
29864         * expr.c (memory_load_overlap): New function.
29865         (emit_push_insn): When pushing partial args to the stack would
29866         clobber the register part load the overlapping part into a pseudo
29867         and put it into the hard reg after pushing.  Change return type
29868         to bool.  Add bool argument.
29869         * expr.h (emit_push_insn): Change return type to bool.
29870         Add bool argument.
29871         * calls.c (expand_call): Cancel sibcall optimization when encountering
29872         partial argument on targets with ARGS_GROW_DOWNWARD and
29873         !STACK_GROWS_DOWNWARD.
29874         (emit_library_call_value_1): Update callsite of emit_push_insn.
29875         (store_one_arg): Likewise.
29877 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29879         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29881 2015-05-27  Martin Liska  <mliska@suse.cz>
29883         * Makefile.in: Add additional dependencies related to memory report
29884         enhancement.
29885         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29886         * bitmap.c (struct bitmap_descriptor_d): Remove.
29887         (struct loc): Likewise.
29888         (struct bitmap_desc_hasher): Likewise.
29889         (bitmap_desc_hasher::hash): Likewise.
29890         (bitmap_desc_hasher::equal): Likewise.
29891         (get_bitmap_descriptor): Likewise.
29892         (bitmap_register): User new memory descriptor API.
29893         (register_overhead): Likewise.
29894         (bitmap_find_bit): Register nsearches and search_iter statistics.
29895         (struct bitmap_output_info): Remove.
29896         (print_statistics): Likewise.
29897         (dump_bitmap_statistics): Use new memory descriptor.
29898         * bitmap.h (struct bitmap_usage): New class.
29899         * genmatch.c: Extend header file inclusion.
29900         * genpreds.c: Likewise.
29901         * ggc-common.c (struct ggc_usage): New class.
29902         (struct ggc_loc_desc_hasher): Remove.
29903         (ggc_loc_desc_hasher::hash): Likewise.
29904         (ggc_loc_desc_hasher::equal): Likewise.
29905         (struct ggc_ptr_hash_entry): Likewise.
29906         (struct ptr_hash_hasher): Likewise.
29907         (ptr_hash_hasher::hash): Likewise.
29908         (ptr_hash_hasher::equal): Likewise.
29909         (make_loc_descriptor): Likewise.
29910         (ggc_prune_ptr): Likewise.
29911         (dump_ggc_loc_statistics): Use new memory descriptor.
29912         (ggc_record_overhead): Likewise.
29913         (ggc_free_overhead): Likewise.
29914         (final_cmp_statistic): Remove.
29915         (cmp_statistic): Likewise.
29916         (ggc_add_statistics): Liekwise.
29917         (ggc_prune_overhead_list): Likewise.
29918         * hash-map-traits.h: New file.
29919         * hash-map.h (struct default_hashmap_traits): Move the traits to a
29920         separate header file.
29921         * hash-set.h: Pass memory statistics info to ctor.
29922         * hash-table.c (void dump_hash_table_loc_statistics): New function.
29923         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29924         (hash_table::~hash_table): Register memory release operation.
29925         (hash_table::alloc_entries): Handle memory allocation operation.
29926         (hash_table::expand): Likewise.
29927         * inchash.c (iterative_hash_hashval_t): Move implementation to header
29928         file.
29929         (iterative_hash_host_wide_int): Likewise.
29930         * inchash.h (class hash): Likewise.
29931         * mem-stats-traits.h: New file.
29932         * mem-stats.h: New file.
29933         (mem_location): Add new class.
29934         (mem_usage): Likewise.
29935         (mem_alloc_description): Likewise.
29936         * sese.c: Add new header file inclusision.
29937         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29938         and hash_set.
29939         * tree-sra.c: Add new header file inclusision.
29940         * vec.c (struct vec_descriptor): Remove.
29941         (hash_descriptor): Likewise.
29942         (struct vec_usage): Likewise.
29943         (struct ptr_hash_entry): Likewise.
29944         (hash_ptr): Likewise.
29945         (eq_ptr): Likewise.
29946         (vec_prefix::register_overhead): Use new memory descriptor API.
29947         (vec_prefix::release_overhead): Likewise.
29948         (add_statistics): Remove.
29949         (dump_vec_loc_statistics): Use new memory descriptor API.
29950         * vec.h (struct vec_prefix): Likewise.
29951         (va_heap::reserve): Likewise.
29952         (va_heap::release): Likewise.
29953         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29955 2015-05-27  Richard Biener  <rguenther@suse.de>
29957         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29958         earlier and remove ??? comment.
29959         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29960         and got called from loop analysis bail out.  Always pass the SLP
29961         node to the vectorizable_* functions.
29962         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29963         the premature SLP check here.
29964         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29965         detected SLP stmts.
29966         (vect_detect_hybrid_slp_1): Likewise.
29968 2015-05-26  Jeff Law  <law@redhat.com>
29970         * combine.c (find_split_point): Verify that the shift count is a
29971         constant when choosing (plus (ashift ...)) as a split point.
29973         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29974         No functional changes.
29976 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
29978         * ipa-polymorphic-call.c
29979         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29980         case when call target is already known.
29982 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
29984         PR target/65979
29985         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29986         take into account the case that operands[1] and operands[2]
29987         are the same register.
29989 2015-05-26  Michael Matz  <matz@suse.de>
29991         PR middle-end/66251
29993         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29994         stores.
29995         (vect_create_vectorized_demotion_stmts): Always set
29996         STMT_VINFO_VEC_STMT, also with SLP.
29997         (vectorizable_store): Handle strided group stores.
29999 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
30001         PR target/66049
30002         * config/aarch64/aarch64.md
30003         (*adds_shift_imm_<mode>):  New pattern.
30004         (*subs_shift_imm_<mode>):  Likewise.
30005         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
30006         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30007         (*add_uxt<mode>_shift2): Likewise.
30008         (*add_uxtsi_shift2_uxtw): Likewise.
30009         (*sub_uxt<mode>_shift2): Likewise.
30010         (*sub_uxtsi_shift2_uxtw): Likewise.
30012 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
30014         * config/rs6000/constraints.md (Y, U): Use match_test.
30016 2015-05-26  Christian Bruel  <christian.bruel@st.com>
30018         PR target/52144
30019         * config/arm/arm.c (arm_option_check_internal)
30020         (arm_option_params_internal): Check opts->target_flags to set macros.
30021         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30022         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
30023         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30024         (builtin_define): Replaced with def_or_undef_macro.
30025         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30026         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
30027         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30028         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
30029         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
30030         (TARGET_ARM_FEATURE_LDREX_P)
30031         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
30032         * config/arm/arm-c.c (def_or_undef_macro): New function.
30033         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
30035 2015-05-26  Christian Bruel  <christian.bruel@st.com>
30037         * c-common.h (builtin_define_with_int_value)
30038         (builtin_define_type_sizeof): Declare.
30039         * c-cppbuiltin.c (builtin_define_with_int_value)
30040         (builtin_define_type_sizeof): Externalize.
30041         (builtin_define_std): Cleanup declaration.
30042         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
30043         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
30044         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
30045         (builtin_define, builtin_assert): New macros.
30047 2015-05-26  Richard Biener  <rguenther@suse.de>
30049         PR tree-optimization/66142
30050         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
30051         MEM_REFs for the same base address.
30053 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30055         PR ipa/66181
30056         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
30058 2015-05-26  Jason Merrill  <jason@redhat.com>
30060         * configure.ac: Set CXXFLAGS for ISL test.
30061         * configure: Regenerate.
30063         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
30064         strstr and basename.
30065         * configure: Regenerate.
30067 2015-05-26  Richard Biener  <rguenther@suse.de>
30069         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
30070         X % C -> X & (C - 1) for C being a power-of two to ...
30071         * match.pd: ... patterns.
30073 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
30075         * match.pd (swapped_tcc_comparison): New operator list.
30076         (-A CMP -B): New simplification.
30077         * fold-const.c (fold_comparison): Remove corresponding code.
30079 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
30081         * caller-save.c (init_caller_save): Base temporary register numbers
30082         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
30083         * cfgloopanal.c (init_set_costs): Likewise.
30084         * dojump.c (prefer_and_bit_test): Likewise.
30085         * expr.c (init_expr_target): Likewise.
30086         * ira.c (setup_prohibited_mode_move_regs): Likewise.
30087         * lower-subreg.c (init_lower_subreg): Likewise.
30088         * postreload.c (reload_cse_regs_1): Likewise.
30090 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
30092         * gensupport.h (compute_test_codes): Declare.
30093         * gensupport.c (compute_predicate_codes): Rename to...
30094         (compute_test_codes): ...this.  Generalize error message.
30095         (process_define_predicate): Update accordingly.
30096         * genpreds.c (compute_maybe_allows): Delete.
30097         (add_constraint): Use compute_test_codes to determine whether
30098         something can accept a SUBREG, REG or MEM.
30100 2015-05-26  Torvald Riegel  <triegel@redhat.com>
30102         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
30103         'memory model' to align with C++11; fix description of memory orders;
30104         fix a few typos.
30106 2015-05-26  Richard Biener  <rguenther@suse.de>
30108         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
30109         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
30110         detect whether we apply SLP.  Remove call to
30111         vect_update_slp_costs_according_to_vf.
30112         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
30113         vect_update_slp_costs_according_to_vf from here.  Dispatch
30114         to vect_slp_analyze_operations to analyze SLP stmts.
30115         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
30116         unused bb_vec_info parameter, adjust assert.
30117         (vect_slp_analyze_operations): Pass in the slp instance tree
30118         instead of bb_vec_info.
30119         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
30120         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
30122 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
30124         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
30125         Q_REGS.  Expand comment.
30126         (REG_CLASS_NAMES): Ditto.
30127         (REG_CLASS_CONTENTS): Ditto.
30129 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
30131         PR target/66274
30132         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30133         when LEGACY_INT_REGNO_P is processed.
30135 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
30137         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30139 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30141         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30142         register if not marked dead/unused, before return.
30144 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30146         PR lto/66180
30147         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30148         is set; check for assembler name at LTO time.
30149         (type_in_anonymous_namespace): Remove hacks, check that all
30150         anonymous types are called "<anon>"
30151         (odr_type_p): Simplify; add check for "<anon>"
30152         (odr_subtypes_equivalent): Add odr_type_p check.
30153         * tree.c (need_assembler_name_p): Even anonymous namespace needs
30154         assembler name.
30156 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30158         * ipa-utils.h (method_class_type): Remove.
30159         * cgraphunit.c (walk_polymorphic_call_targets): Use
30160         TYPE_METHOD_BASETYPE.
30161         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30162         on main variants only.
30163         (method_class_type): Remove.
30164         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30165         (build_type_inheritance_graph): Likewise.
30166         * ipa-icf.c (sem_function::equals_wpa): Likewise.
30167         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30168         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30170 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30172         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30173         is_typedef_decl, typedef_variant_p): Constify.
30174         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30175         is_typedef_decl, typedef_variant_p): Constify.
30177 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30179         * defaults.h (gen_tablejump): New function.
30180         (HAVE_tablejump): Add default value.
30181         * expr.c: Adjust.
30182         * stmt.c: Likewise.
30184 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30186         * defaults.h (gen_store_multiple): New function.
30187         (HAVE_store_multiple): Add default value.
30188         * expr.c (move_block_from_reg): Adjust.
30190 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30192         * defaults.h (gen_load_multiple): New function.
30193         (HAVE_load_multiple): Add default value.
30194         * expr.c (move_block_to_reg): Adjust.
30196 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30198         * defaults.h (gen_mem_signal_fence): New function.
30199         (HAVE_mem_signal_fence): Add default value.
30200         * optabs.c: Adjust.
30202 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30204         * defaults.h (gen_memory_barrier): New function.
30205         (HAVE_memory_barrier): Add default value.
30206         * optabs.c: Adjust.
30208 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30210         * defaults.h (gen_mem_thread_fence): New function.
30211         (HAVE_mem_thread_fence): Add default definition.
30212         * optabs.c: Adjust.
30214 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30216         * combine.c (find_split_point): Check the value of HAVE_lo_sum
30217         instead of if it is defined.
30218         (combine_simplify_rtx): Likewise.
30219         * lra-constraints.c (process_address_1): Likewise.
30220         * config/darwin.c: Adjust.
30221         * genconfig.c (main): Always define HAVE_lo_sum.
30223 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30225         * genmatch.c (parser::parse_operation): Reject expanding
30226         operator-list inside 'for'.
30228 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30230         * genmatch.c (parser::parse_for): Reject iterator if used as
30231         operator-list.
30233 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30235         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30236         after end of id-list.
30238 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
30240         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30241         we do not try to compute canonical type for type that does not need
30242         alias set.
30243         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30244         FUNCITON_TYPE.
30245         * tree.h (type_with_alias_set_p): New.
30247 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
30249         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
30250         function attributes.
30251         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30253 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
30255         * Makefile.in (check_gcc_parallelize): Delete.
30256         (lang_checks_parallelized): Update comment.
30258 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
30260         PR rtl-optimization/66237
30261         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30262         location of an "as_a" cast.
30264 2015-05-22  Jeff Law  <law@redhat.com>
30266         * config/pa/pa.md (non-canonical shift-add insns): Remove.
30267         (peepholes with non-canonical RTL sources): Remove.
30268         (peepholes for indexed stores of FP regs in integer modes): Match and
30269         generate canonical RTL.
30271 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30273         PR tree-optimization/63387
30274         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30275         ((x ord x) & (y ord y) -> (x ord y),
30276         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30277         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30278         vectors like scalars.
30280 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30282         * convert.c (convert_to_integer, convert_to_vector): Include the
30283         types in the error message.
30285 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30287         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30288         simplifications.
30290 2015-05-22  Jeff Law  <law@redhat.com>
30292         * config/pa/pa.md (integer_indexed_store splitters): Use
30293         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
30294         insns -- adjusting the constant 2nd operand accordingly.
30296         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30297         (plus (ashift X log2) Y) if it is a split point.
30299         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30300         out of hppa_legitimize_address to handle both forms of a multiply
30301         by 2, 4 or 8.
30302         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30303         Always generate the ASHIFT variant as the result is not directly
30304         used in a MEM.  Update comments and refactor slightly to improve
30305         readability.
30307 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30309         PR target/65491
30310         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30311         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
30312         (aarch64_composite_type_p): Return false if given type and mode are
30313         for a short vector.
30315 2015-05-22  Richard Biener  <rguenther@suse.de>
30317         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30318         member.
30319         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30320         patterns when determining whether SLP is pure.
30321         (vect_is_slp_reduction): Remove check for pattern stmts.
30322         (vect_is_simple_reduction_1): Remove dead code.
30323         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30324         (vect_get_and_check_slp_defs): Pass in the stmt number.
30325         Allow the first def in a reduction to be not a pattern stmt when
30326         the rest of the stmts def are patterns.
30327         (vect_build_slp_tree_1): Allow tcc_expression codes like
30328         SAD_EXPR and DOT_PROD_EXPR.
30329         (vect_build_slp_tree): Adjust.
30330         (vect_analyze_slp): Refactor and move BB vect error message ...
30331         (vect_slp_analyze_bb_1): ... here.
30333 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
30335         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30336         for CSWTCH temporary.
30338 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30340         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30341         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
30342         unknown unspecs.
30344 2015-05-22  Richard Biener  <rguenther@suse.de>
30346         PR tree-optimization/66251
30347         * tree-vect-stmts.c (vectorizable_conversion): Properly
30348         set STMT_VINFO_VEC_STMT even for the SLP case.
30350 2015-05-22  Marek Polacek  <polacek@redhat.com>
30352         * doc/extend.texi: Use @pxref instead of @xref.
30354 2015-05-22  hiraditya  <hiraditya@msn.com>
30356         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30357         redundant if.
30359 2015-05-22  Richard Biener  <rguenther@suse.de>
30361         PR tree-optimization/65701
30362         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30363         Move peeling cost models into one place.  Peel for alignment
30364         for single loads only if an aligned load is cheaper than
30365         an unaligned load.
30367 2015-05-22  Marek Polacek  <polacek@redhat.com>
30369         PR c/47043
30370         * doc/extend.texi (Enumerator Attributes): New section.
30371         Document syntax of enumerator attributes.
30373 2015-05-22  Richard Biener  <rguenther@suse.de>
30375         * tree-vect-loop.c (get_reduction_op): New function.
30376         (vect_model_reduction_cost): Use it, add reduc_index parameter.
30377         Make ready for BB reductions.
30378         (vect_create_epilog_for_reduction): Use get_reduction_op.
30379         (vectorizable_reduction): Init reduc_index to a valid value.
30380         Adjust vect_model_reduction_cost call.
30381         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30382         operand for reduction defaults.  Add SAD_EXPR support.
30383         Assert we have a neutral op for SLP reductions.
30384         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30385         walking pattern stmt ops only recurse to SSA names.
30387 2015-05-22  Richard Biener  <rguenther@suse.de>
30389         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30390         assert with guard, remove check on detected reduction.
30391         (vect_recog_sad_pattern): Likewise.
30392         (vect_recog_widen_sum_pattern): Likewise.
30394 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30396         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30397         __always_inline__ attribute.
30398         (vaesdq_u8): Likewise.
30399         (vaesmcq_u8): Likewise.
30400         (vaesimcq_u8): Likewise.
30401         (vsha1cq_u32): Likewise.
30402         (vsha1mq_u32): Likewise.
30403         (vsha1pq_u32): Likewise.
30404         (vsha1h_u32): Likewise.
30405         (vsha1su0q_u32): Likewise.
30406         (vsha1su1q_u32): Likewise.
30407         (vsha256hq_u32): Likewise.
30408         (vsha256h2q_u32): Likewise.
30409         (vsha256su0q_u32): Likewise.
30410         (vsha256su1q_u32): Likewise.
30411         (vmull_p64): Likewise.
30412         (vmull_high_p64): Likewise.
30414 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30416         * final.c (final_scan_insn): Don't check HAVE_peephole with the
30417         preprocessor.
30418         * output.h: Likewise.
30419         * genconfig.c (main): Alwways define HAVE_peephole.
30420         * genpeep.c: Don't emit checks of HAVE_peephole.
30422 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30424         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
30425         check HAVE_conditional_move with the preprocessor.
30427 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30429         * genconfig.c (main): Always define HAVE_conditional_move.
30430         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
30431         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
30432         is defined.
30434 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30436         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
30437         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
30438         and FRAME_POINTER_REGNUM with the preprocessor.
30440 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30442         * defaults.h: Add default for STACK_PUSH_CODE.
30443         * expr.c: Don't redefine STACK_PUSH_CODE.
30444         * recog.c: Likewise.
30446 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30448         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
30449         sched-deps.c: Use if instead of preprocessor checks with
30450         STACK_GROWS_DOWNWARD.
30452 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30454         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
30455         is defined.
30456         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
30457         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
30458         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
30459         * doc/tm.texi: Regenerate.
30461 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30463         PR target/66232
30464         * config/i386/constraints.md (Bg): New constraint for GOT memory
30465         operand.
30466         * config/i386/i386.md (*call_got_x32): New pattern.
30467         (*call_value_got_x32): Likewise.
30468         * config/i386/predicates.md (GOT_memory_operand): New predicate.
30470 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
30472         PR tree-optimization/66233
30473         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
30474         Simplify.
30476 2015-05-21  Jeff Law  <law@redhat.com>
30478         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
30479         than MULT for shadd sequences.
30481 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
30483         * alias.c (alias_stats): New static var.
30484         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
30485         (dump_alias_stats_in_alias_c): New function.
30486         * alias.h (dump_alias_stats_in_alias_c): Declare.
30487         * tree-ssa-alias.c (dump_alias_stats): Call it.
30489 2015-05-08  Michael Matz  <matz@suse.de>
30491         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
30492         to strided_p.
30493         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
30494         (STMT_VINFO_STRIDED_P): ... this.
30495         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
30496         (vect_verify_datarefs_alignment): Likewise.
30497         (vect_enhance_data_refs_alignment): Likewise.
30498         (vect_analyze_data_ref_access): Likewise.
30499         (vect_analyze_data_refs): Accept strided stores.
30500         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
30501         (vect_model_load_cost): Adjust for macro rename.
30502         (vectorizable_mask_load_store): Likewise.
30503         (vectorizable_load): Likewise.
30504         (vectorizable_store): Open code strided stores.
30506 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30508         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
30509         Document sqrt_insn.
30511 2015-05-21  Richard Biener  <rguenther@suse.de>
30513         PR c++/66211
30514         * match.pd: Guard pattern optimzing (int)(float)int
30515         conversions to apply only on GIMPLE.
30517 2015-05-21  Jeff Law  <law@redhat.com>
30519         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
30520         multiply-accumulate/shift-add insn generation.
30522 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
30524         PR target/54236
30525         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
30526         operands[1] are the same.
30528 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
30530         PR middle-end/66221
30531         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
30532         build_distinct_type_copy to copy bounds.
30534 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
30536         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
30537         Change to unsigned int.
30539 2015-05-20  Jeff Law  <law@redhat.com>
30541         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
30542         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
30543         (pa_shadd_constant_p): Allow constants for shadd insns rather
30544         than valid scaling constants for memory addresses.
30545         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
30546         * config/pa/predicates.md (mem_shadd_operand): New predicate.
30547         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
30548         (shift-add insns using ASHIFT): New patterns.
30550 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
30552         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
30553         feasible.
30554         (fix_up_fall_thru_edges): Likewise.
30555         (fix_crossing_conditional_branches): Likewise. Promote jump targets
30556         from to rtx_insn to rtx_code_label where feasible.
30557         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
30558         gen_move_insn (returned type changed to rtx_insn).
30559         * builtins.c (expand_errno_check): Fix arguments of
30560         do_compare_rtx_and_jump (now expects rtx_code_label).
30561         (expand_builtin_acc_on_device): Likewise.
30562         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
30563         invert_jump (now exprects rtx_jump_insn).
30564         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
30565         (construct_init_block): Use rtx_code_label.
30566         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
30567         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
30568         calling redirect_jump.
30569         (patch_jump_insn): Likewise.
30570         (redirect_branch_edge): Likewise.
30571         (force_nonfallthru_and_redirect): Likewise.
30572         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
30573         when suitable.
30574         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
30575         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
30576         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
30577         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
30578         to store the value retured by gen_label_rtx.
30579         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
30580         rtx_jump_insn.
30581         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
30582         (split_branches): Fix calls of redirect_jump.
30583         * dojump.c (jumpifnot): Promote argument type from rtx to
30584         rtx_code_label.
30585         (jumpifnot_1): Likewise.
30586         (jumpif): Likewise.
30587         (jumpif_1): Likewise.
30588         (do_jump_1): Likewise.
30589         (do_jump): Likewise. Use rtx_code_label when feasible.
30590         (do_jump_by_parts_greater_rtx): Likewise.
30591         (do_jump_by_parts_zero_rtx): Likewise.
30592         (do_jump_by_parts_equality_rtx): Likewise.
30593         (do_compare_rtx_and_jump): Likewise.
30594         * dojump.h: Update function prototypes.
30595         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
30596         returns rtx_insn).
30597         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
30598         rtx_jump_insn.
30599         (emit_label_before): Likewise.
30600         (emit_jump_insn_after_noloc): Likewise.
30601         (emit_jump_insn_after_setloc): Likewise.
30602         (emit_jump_insn_after): Likewise
30603         (emit_jump_insn_before_setloc): Likewise.
30604         (emit_jump_insn_before): Likewise.
30605         (emit_label_before): Promote return type to rtx_code_label.
30606         (emit_label): Likewise.
30607         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
30608         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
30609         gen_move_insn.
30610         (emit_stack_restore): Likewise.
30611         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
30612         (do_cmp_and_jump): Likewise.
30613         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
30614         from rtx to rtx_code_label.
30615         (gen_move_insn_uncast): New function.
30616         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
30617         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
30618         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
30619         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
30620         invert_jump_1 and redirect_jump_1.
30621         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
30622         do_compare_rtx_and_jump.
30623         (expand_addsub_overflow): Likewise.
30624         (expand_neg_overflow): Likewise.
30625         (expand_mul_overflow): Likewise.
30626         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
30627         return value of gen_move_insn.
30628         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
30629         * loop-doloop.c (add_test): Use rtx_code_label.
30630         (doloop_modify): Likewise.
30631         (doloop_optimize): Likewise.
30632         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
30633         * lra-constraints.c (emit_spill_move): Remove cast of value returned
30634         by gen_move_insn.
30635         (inherit_reload_reg): Add cast when calling dump_insn_slim.
30636         (split_reg): Likewise.
30637         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
30638         gen_move_insn.
30639         * optabs.c (expand_binop_directly): Remove casts of values returned by
30640         maybe_gen_insn.
30641         (expand_unop_direct): Likewise.
30642         (expand_abs): Likewise.
30643         (maybe_emit_unop_insn): Likewise.
30644         (maybe_gen_insn): Promote return type to rtx_insn.
30645         * optabs.h: Update prototype of maybe_gen_insn.
30646         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
30647         redundant cast.
30648         * recog.c (struct peep2_insn_data): Promote type of insn field to
30649         rtx_insn.
30650         (peep2_reinit_state): Use NULL instead of NULL_RTX.
30651         (peep2_attempt): Remove casts of insn in peep2_insn_data.
30652         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
30653         * recog.h (struct insn_gen_fn): Promote return types of function
30654         pointers and operator ().from rtx to rtx_insn.
30655         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
30656         (fill_eager_delay_slots): Likewise.
30657         (relax_delay_slots): Likewise.
30658         (make_return_insns): Likewise.
30659         (dbr_schedule): Likewise.
30660         (optimize_skips): Likewise.
30661         (reorg_redirect_jump): Likewise.
30662         (fill_slots_from_thread): Likewise.
30663         * reorg.h: Update prototypes.
30664         * resource.c (find_dead_or_set_registers): Use dyn_cast to
30665         rtx_jump_insn instead of check.  Use it's jump_target method.
30666         * rtl.h (rtx_jump_insn::jump_label): Define new method.
30667         (rtx_jump_insn::jump_target): Define new method.
30668         (rtx_jump_insn::set_jump_target): Define new method.
30669         * rtlanal.c (tablejump_p): Promote type of one local variable.
30670         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
30671         (sched_analyze_insn): Likewise.
30672         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
30673         (print_insn): Likewise.
30674         * stmt.c (label_rtx): Promote return type to rtx_insn.
30675         (force_label_rtx): Likewise.
30676         (jump_target_rtx): Define new function.
30677         (expand_label): Use it, get rid of one cast.
30678         (expand_naked_return): Promote rtx to rtx_code_label.
30679         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
30680         (expand_case): Use rtx_code_label instread of rtx where feasible.
30681         (expand_sjlj_dispatch_table): Likewise.
30682         (emit_case_nodes): Likewise.
30683         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
30684         * store-motion.c (insert_store): Make use of new return type of
30685         gen_move_insn and remove a cast.
30686         (replace_store_insn): Likewise.
30688 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
30690         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
30691         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
30693 2015-05-20  Jeff Law  <law@redhat.com>
30695         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
30696         dispose of the jump thread path when the jump threading
30697         opportunity is cancelled.
30699 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30701         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
30702         when printing the caret character.
30704 2015-05-20  Marek Polacek  <polacek@redhat.com>
30706         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
30708 2015-05-20  Marek Polacek  <polacek@redhat.com>
30710         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
30711         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
30712         * gimple-fold.c (canonicalize_bool): Likewise.
30713         (same_bool_result_p): Likewise.
30714         * tree-if-conv.c (parse_predicate): Likewise.
30716 2015-05-20  Marek Polacek  <polacek@redhat.com>
30718         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
30719         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
30721 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30723         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30724         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30725         values.
30727 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
30729         * config/mips/mips.h (micromips_globals): Declare.
30731 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
30733         * timevar.def (TV_INITIALIZE_RTL): New.
30734         * toplev.c (initialize_rtl): Use an auto_timevar to account this
30735         function's time to TV_INITIALIZE_RTL.
30737 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
30739         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30740         gimple_build_nop calls.
30741         (chkp_find_bounds_for_elem): Likewise.
30742         (chkp_get_zero_bounds): Likewise.
30743         (chkp_get_none_bounds): Likewise.
30744         (chkp_get_bounds_by_definition): Likewise.
30745         (chkp_generate_extern_var_bounds): Likewise.
30746         (chkp_get_bounds_for_decl_addr): Likewise.
30747         (chkp_get_bounds_for_string_cst): Likewise.
30749 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
30751         PR tree-optimization/65447
30752         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30753         (dump_use, dump_uses): Support to dump sub use.
30754         (record_use): New parameters to support sub use.  Remove call to
30755         dump_use.
30756         (record_sub_use, record_group_use): New functions.
30757         (compute_max_addr_offset, split_all_small_groups): New functions.
30758         (group_address_uses, rewrite_use_address): New functions.
30759         (strip_offset): New declaration.
30760         (find_interesting_uses_address): Call record_group_use.
30761         (add_candidate): New assertion.
30762         (infinite_cost_p): Move definition forward.
30763         (add_costs): Check INFTY cost and return immediately.
30764         (get_computation_cost_at): Clear setup cost and dependent bitmap
30765         for sub uses.
30766         (determine_use_iv_cost_address): Compute cost for sub uses.
30767         (rewrite_use_address_1): Rename from old rewrite_use_address.
30768         (free_loop_data): Free sub uses.
30769         (tree_ssa_iv_optimize_loop): Call group_address_uses.
30771 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30772             Jim Wilson  <jim.wilson@linaro.org>
30774         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30775         new  fields loadv and storev.
30776         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30777         Initialize loadv and storev.
30778         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30779         (cortexa53_extra_costs): Likewise.
30780         (cortexa57_extra_costs): Likewise.
30781         (xgene1_extra_costs): Likewise.
30782         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30783         rtx_costs.
30785 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30787         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30788          storev.
30789         (cortexa8_extra_costs): Likewise.
30790         (cortexa5_extra_costs): Likewise.
30791         (cortexa7_extra_costs): Likewise.
30792         (cortexa12_extra_costs): Likewise.
30793         (cortexa15_extra_costs): Likewise.
30794         (v7m_extra_costs): Likewise.
30796 2015-05-20  Jeff Law  <law@redhat.com>
30798         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30799         instead of open-coded version.  Also delete the jump thread created
30800         within this function.
30802 2015-05-20  Alan Modra  <amodra@gmail.com>
30804         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30805         stack adjusting insn.  Formatting.
30806         (rs6000_emit_prologue): Track stack adjusting insn, and use of
30807         r12.  If possible, emit first -fsplit-stack arg pointer insn
30808         before stack adjust.  Don't use r12 to save cr if split-stack.
30810 2015-05-20  Alan Modra  <amodra@gmail.com>
30812         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30813         Define.
30814         (rs6000_supports_split_stack): New function.
30815         * config/rs6000/rs6000.c (machine_function): Add
30816         split_stack_arg_pointer.
30817         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30818         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30819         rather than virtual_incoming_args_rtx.
30820         (rs6000_va_start): Likewise.
30821         (split_stack_arg_pointer_used_p): New function.
30822         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30823         (morestack_ref): New var.
30824         (gen_add3_const, rs6000_expand_split_stack_prologue,
30825         rs6000_internal_arg_pointer, rs6000_live_on_entry,
30826         rs6000_split_stack_space_check): New functions.
30827         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30828         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30829         (UNSPECV_SPLIT_STACK_RETURN): Define.
30830         (split_stack_prologue, load_split_stack_limit,
30831         load_split_stack_limit_di, load_split_stack_limit_si,
30832         split_stack_return, split_stack_space_check): New expands and insns.
30833         * config/rs6000/rs6000-protos.h
30834         (rs6000_expand_split_stack_prologue): Declare.
30835         (rs6000_split_stack_space_check): Declare.
30837 2015-05-20  Alan Modra  <amodra@gmail.com>
30839         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30840         (direct_return): Test vrsave_size rather than vrsave_mask.
30841         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
30842         (rs6000_emit_epilogue): Likewise.
30844 2015-05-20  Alan Modra  <amodra@gmail.com>
30846         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30847         when not saving registers.
30848         (debug_stack_info): Adjust to omit printing unused offsets,
30849         as before.
30850         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30851         expression.
30853 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30855         PR c++/65835
30856         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30857         value_type to const char *.
30859 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
30861         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30862         to build a biarch toolchain again.
30864 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30866         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30867         or implicit declarations.
30868         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30869         into it.
30870         (get_odr_type): Check type has linkage before adding bases.
30871         (register_odr_type): Check that type has linkage before adding it.
30872         (type_known_to_have_no_deriavations_p): Rename to ..
30873         (type_known_to_have_no_derivations_p): This one.
30874         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30875         (type_known_to_have_no_derivations_p): This one.
30876         * ipa-polymorphic-call.c
30877         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30878         type has linkage.
30880 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30882         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30883         (layout_type): Use RECORD_OR_UNION_TYPE_P.
30885 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30887         * config/s390/s390.c (s390_vector_bool_type_p): New function.
30888         (s390_invalid_binary_op): New function.
30889         (TARGET_INVALID_BINARY_OP): Define macro.
30891 2015-05-19  David Sherwood  <david.sherwood@arm.com>
30893         * loop-invariant.c (create_new_invariant): Don't calculate address cost
30894         if mode is not a scalar integer.
30895         (get_inv_cost): Increase computational cost for unused invariants.
30897 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30899         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
30900         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
30901         * config/s390/s390-builtin-types.def: New file.
30902         * config/s390/s390-builtins.def: New file.
30903         * config/s390/s390-builtins.h: New file.
30904         * config/s390/s390-c.c: New file.
30905         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30906         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30907         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30908         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30909         prototypes.
30910         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30911         Include.
30912         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30913         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30914         variable definitions.
30915         (s390_const_operand_ok): New function.
30916         (s390_expand_builtin): Rewrite.
30917         (s390_init_builtins): New function.
30918         (s390_handle_vectorbool_attribute): New function.
30919         (s390_attribute_table): Add s390_vector_bool attribute.
30920         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30921         (s390_branch_condition_mask): Generate masks for new modes.
30922         (s390_expand_vec_compare_cc): New function.
30923         (s390_mangle_type): Add mangling for vector bool types.
30924         (enum s390_builtin): Remove.
30925         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30926         efpc builtins.
30927         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30928         s390_cpu_cpp_builtins.
30929         (REGISTER_TARGET_PRAGMAS): New macro.
30930         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30931         (insn_cmp mode attribute): Add new CC modes.
30932         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30933         (lcbb): New pattern definition.
30934         * config/s390/s390intrin.h: Include vecintrin.h.
30935         * config/s390/t-s390: New file.
30936         * config/s390/vecintrin.h: New file.
30937         * config/s390/vector.md: Include vx-builtins.md.
30938         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30939         support.
30941 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30943         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30944         CCVFHE.
30945         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30946         (s390_select_ccmode): Likewise.
30947         (s390_canonicalize_comparison): Swap operands if necessary.
30948         (s390_expand_vec_compare_scalar): Expand DFmode compare using
30949         single element vector instructions.
30950         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30951         (s390_branch_condition_mask): Generate CC masks for the new modes.
30952         * config/s390/s390.md (v0, vf, vd): New mode attributes.
30953         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30954         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30955         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30956         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30957         (*extend<DSF:mode><BFP:mode>2): New insn definition.
30958         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30959         (extend<DSF:mode><BFP:mode>2): Turn into expander.
30960         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30961         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30962         (sqrt<mode>2): Add vector instruction.
30964 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30966         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30967         constraints.
30968         * config/s390/predicates.md (const0_operand, constm1_operand)
30969         (constable_operand): Accept vector operands.
30970         * config/s390/s390-modes.def: Add supported vector modes.
30971         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30972         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30973         (s390_bytemask_vector_p, s390_expand_vec_strlen)
30974         (s390_expand_vec_compare, s390_expand_vcond)
30975         (s390_expand_vec_init): Add prototypes.
30976         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30977         (s390_vector_mode_supported_p): New function.
30978         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30979         (s390_contiguous_bitmask_vector_p): New function.
30980         (s390_bytemask_vector_p): New function.
30981         (s390_split_ok_p): Vector regs don't work either.
30982         (regclass_map): Add VEC_REGS.
30983         (s390_legitimate_constant_p): Handle vector constants.
30984         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30985         (legitimate_reload_vector_constant_p): New function.
30986         (s390_preferred_reload_class): Handle CONST_VECTOR.
30987         (s390_reload_symref_address):  Likewise.
30988         (s390_secondary_reload): Vector memory instructions only support
30989         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
30990         (s390_emit_ccraw_jump): New function.
30991         (s390_expand_vec_strlen): New function.
30992         (s390_expand_vec_compare): New function.
30993         (s390_expand_vcond): New function.
30994         (s390_expand_vec_init): New function.
30995         (s390_dwarf_frame_reg_mode): New function.
30996         (print_operand): Handle addresses with 'O' and 'R' constraints.
30997         (NR_C_MODES, constant_modes): Add vector modes.
30998         (s390_output_pool_entry): Handle vector constants.
30999         (s390_hard_regno_mode_ok): Handle vector registers.
31000         (s390_class_max_nregs): Likewise.
31001         (s390_cannot_change_mode_class): New function.
31002         (s390_invalid_arg_for_unprototyped_fn): New function.
31003         (s390_function_arg_vector): New function.
31004         (s390_function_arg_float): Remove size variable.
31005         (s390_pass_by_reference): Handle vector arguments.
31006         (s390_function_arg_advance): Likewise.
31007         (s390_function_arg): Likewise.
31008         (s390_return_in_memory): Vector values are returned in a VR if
31009         possible.
31010         (s390_function_and_libcall_value): Handle vector arguments.
31011         (s390_gimplify_va_arg): Likewise.
31012         (s390_call_saved_register_used): Consider the arguments named.
31013         (s390_conditional_register_usage): Disable v16-v31 for non-vec
31014         targets.
31015         (s390_preferred_simd_mode): New function.
31016         (s390_support_vector_misalignment): New function.
31017         (s390_vector_alignment): New function.
31018         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
31019         (TARGET_VECTOR_MODE_SUPPORTED_P)
31020         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
31021         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
31022         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
31023         (TARGET_VECTOR_ALIGNMENT): Define target macro.
31024         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
31025         (FIRST_PSEUDO_REGISTER): Increase value.
31026         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
31027         (VECTOR_REG_P): Define macros.
31028         (FIXED_REGISTERS, CALL_USED_REGISTERS)
31029         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
31030         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
31031         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
31032         Add vector registers.
31033         (CANNOT_CHANGE_MODE_CLASS): Call C function.
31034         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
31035         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
31036         memory.
31037         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
31038         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
31039         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
31040         (VR*_REGNUM): New constants.
31041         (ALL): New mode iterator.
31042         (INTALL): Remove mode iterator.
31043         Include vector.md.
31044         (movti): Implement TImode moves for VRs.
31045         Disable TImode splitter for VR targets.
31046         Implement splitting TImode GPR<->VR moves.
31047         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
31048         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
31049         reload<mode>_la_in, reload<mode>_la_out.
31050         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
31051         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
31052         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
31053         (mov<mode> SF SD): Prefer lder, lde for loading.
31054         Add lrl and strl instructions.
31055         Add vector instructions.
31056         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
31057         Call s390_expand_vec_strlen on z13.
31058         (*cc_to_int): Change predicate to nonimmediate_operand.
31059         (addti3): Rename to *addti3.  New expander.
31060         (subti3): Rename to *subti3.  New expander.
31061         * config/s390/vector.md: New file.
31063 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31065         * common/config/s390/s390-common.c (processor_flags_table): Add
31066         z13.
31067         * config.gcc: Add z13.
31068         * config/s390/s390-opts.h (enum processor_type): Add
31069         PROCESSOR_2964_Z13.
31070         * config/s390/s390.c (s390_adjust_priority): Check for
31071         PROCESSOR_2964_Z13.
31072         (s390_reorg): Likewise.
31073         (s390_sched_reorder): Likewise.
31074         (s390_sched_variable_issue): Likewise.
31075         (s390_loop_unroll_adjust): Likewise.
31076         (s390_option_override): Likewise. Default to -mvx when available.
31077         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
31078         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
31079         (TARGET_VX_ABI): Define macros.
31080         macros.
31081         (TARGET_DEFAULT): Add MASK_OPT_VX.
31082         * config/s390/s390.md ("cpu" attribute): Add z13.
31083         ("cpu_facility" attribute): Add vec.
31084         * config/s390/s390.opt (processor_type): Add z13.
31085         (mvx): New options.
31086         * doc/invoke.texi: Add z13 option for -march.
31088 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31090         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
31091         mode check to make sure that only scalar integer values are
31092         accepted.
31094 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
31096         * tree.c (verify_type_variant): Fix #undef.
31097         (gimple_canonical_types_compatible_p): Move here from lto.c
31098         (verify_type): Verify TYPE_CANONICAL compatibility.
31099         * tree.h (gimple_canonical_types_compatible_p): Declare.
31101 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
31103         PR middle-end/66199
31104         * tree.h (OMP_TEAMS_COMBINED): Define.
31105         * gimplify.c (enum gimplify_omp_var_data): Add
31106         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
31107         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
31108         (omp_notice_variable): Accept both ORT_TEAMS
31109         and ORT_COMBINED_TEAMS.  Don't recurse if
31110         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
31111         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
31112         GOVD_FIRSTPRIVATE.
31113         (omp_no_lastprivate): New function.
31114         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
31115         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
31116         notice_outer and set appropriate bits, otherwise make
31117         sure default(none) combined constructs won't complain.
31118         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
31119         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
31120         omp_no_lastprivate either remove the clause or turn it
31121         into OMP_CLAUSE_PRIVATE.
31122         (gimplify_omp_for): Fix up handling of implicit
31123         lastprivate or linear iterators.
31124         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
31125         ORT_COMBINED_TEAMS.
31126         * omp-low.c (lower_omp_for_lastprivate): For combined
31127         for simd use fd.loop.n2 from the for rather than simd.
31129 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31131         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31132         instead of gen_rtx_raw_REG.
31133         (cris_expand_epilogue): Likewise.
31134         * config/microblaze/microblaze.c (microblaze_classify_address):
31135         Likewise.
31136         * config/sparc/sparc.md: Likewise.
31138 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
31140         * config/alpha/alpha.c (alpha_legitimize_reload_address)
31141         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31142         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31143         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31144         Use CASE_CONST_SCALAR_INT.
31145         (print_operand) <case 'M'>: Use mode_width_operand to check the
31146         value of the constant.
31147         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31148         * config/alpha/predicates.md (input_operand): Use general_operand
31149         instead of match_code as operand check.
31150         (symbolic_operand): Use match_code with subexpression digits.
31151         * config/alpha/constraints.md (Q): Ditto.
31153 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31155         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31157 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31159         * config/s390/s390.c (s390_secondary_reload): Fix check for
31160         load/store relative.
31162 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31164         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
31165         alternative_mask to uint64_t.
31167 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
31169         PR tree-optimization/66187
31170         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31171         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
31172         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31174 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
31176         * diagnostic.c (diagnostic_report_current_module): Strengthen
31177         local "new_map" from const line_map * to
31178         const line_map_ordinary *.
31179         * genmatch.c (error_cb): Likewise for local "map".
31180         (output_line_directive): Likewise for local "map".
31181         * input.c (expand_location_1): Likewise for local "map".
31182         Pass NULL rather than &map to
31183         linemap_unwind_to_first_non_reserved_loc, since the value is never
31184         read from there, and the value written back not read from here.
31185         (is_location_from_builtin_token): Strengthen local "map" from
31186         const line_map * to const line_map_ordinary *.
31187         (dump_location_info): Strengthen locals "map" from
31188         line_map *, one to const line_map_ordinary *, the other
31189         to const line_map_macro *.
31190         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31191         const line_map * to const line_map_macro *.
31192         (maybe_unwind_expanded_macro_loc): Add a call to
31193         linemap_check_macro when writing to the "map" field of the
31194         loc_map_pair.
31195         Introduce local const line_map_ordinary * "ord_map", using it in
31196         place of "map" in the part of the function where we know we have
31197         an ordinary map.  Strengthen local "m" from const line_map * to
31198         const line_map_ordinary *.
31200 2015-05-19  Nick Clifton  <nickc@redhat.com>
31202         PR target/66156
31203         * config/msp430/msp430.md (zero_extendhisi2): Add support for
31204         separate source and destination registers.
31206 2015-05-19  Richard Biener  <rguenther@suse.de>
31208         PR tree-optimization/66165
31209         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31210         for no load permutation.
31212         PR tree-optimization/66185
31213         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31214         when building the SLP node from scalars.
31216 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
31217             Tristan Gingold  <gingold@adacore.com>
31219         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31220         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31221         (expand_stack_restore): Call record_new_stack_level.
31222         (expand_stack_save): Do not call do_pending_stack_adjust.
31223         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31224         * calls.c (expand_call): Call record_new_stack_level for alloca.
31225         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31226         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31227         (update_sjlj_context): New global function.
31228         * except.h (update_sjlj_context): Declare.
31229         * explow.c (record_new_stack_level): New global function.
31230         (allocate_dynamic_stack_space): Call record_new_stack_level.
31231         * explow.h (record_new_stack_level): Declare.
31232         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31233         * cfgrtl.c (duplicate_insn_chain): Likewise.
31235 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31237         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31238         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31239         STACK_GROWS_DOWNWARD as normal if.
31240         (expand_call): Likewise.
31242 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
31244         PR target/54236
31245         * config/sh/sh.md (*round_int_even): New insn_and_split and
31246         accompanying new unnamed split.
31248 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31250         * bitmap.c (bitmap_set_range): Handle count==1 specially.
31251         (bitmap_clear_range): Likewise.
31252         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31253         bitmap_set_range unconditionally.
31254         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31255         * df-scan.c (df_mark_reg): Likewise.
31256         * haifa-sched.c (setup_ref_regs): Likewise.
31257         * sched-rgn.c (update_live_1): Likewise.
31259 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31261         * regs.h (END_HARD_REGNO): Delete.
31262         (END_REGNO): Move to...
31263         * rtl.h: ...here.
31264         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31265         * caller-save.c (mark_set_regs): Likewise.
31266         * combine.c (move_deaths, distribute_notes): Likewise.
31267         * cse.c (invalidate, invalidate_for_call): Likewise.
31268         * df-scan.c (df_ref_record): Likewise.
31269         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31270         (record_last_reg_set_info): Likewise.
31271         * reg-stack.c (convert_regs_exit): Likewise.
31272         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31273         * resource.c (update_live_status): Likewise.
31274         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31276 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31278         * rtl.h (reg_info): Add an nregs field.
31279         (REG_NREGS): Use it.
31280         (SET_REGNO_RAW): Delete.
31281         (set_regno_raw): New function.
31282         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31283         (END_REGNO): Redefine in terms of REG_NREGS.
31284         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31285         SET_REGNO_RAW.
31286         * emit-rtl.c (set_mode_and_regno): Likewise.
31287         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31288         instead of SET_REGNO_RAW.
31290 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31292         * rtl.h (PUT_MODE_RAW): New macro.
31293         (PUT_REG_NOTE_KIND): Use it.
31294         (set_mode_and_regno): Declare.
31295         (gen_raw_REG): Change regno to "unsigned int".
31296         (gen_rtx_REG): Change "unsigned" to "unsigned int".
31297         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31298         use set_mode_and_regno to change the mode of registers.
31299         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31300         * emit-rtl.c (set_mode_and_regno): New function.
31301         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
31302         * caller-save.c (reg_save_code): Use set_mode_and_regno.
31303         * expr.c (init_expr_target): Likewise.
31304         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31305         * postreload.c (reload_cse_simplify_operands): Likewise.
31307 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31309         * caller-save.c (init_caller_save): Use word_mode and
31310         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31311         * expr.c (init_expr_target): Likewise.
31312         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31313         * postreload.c (reload_cse_regs_1): Likewise.
31315 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31317         * rtl.def (REG): Change format to "r".
31318         * rtl.h (rtunion): Remove rt_reg.
31319         (reg_info): New structure.
31320         (rtx_def): Add reg field to main union.
31321         (X0REGATTR): Delete.
31322         (REG_CHECK): New macro.
31323         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31324         * rtl.c (rtx_format): Document "r".
31325         (rtx_code_size): Handle REG specially.
31326         * gengenrtl.c (special_format): Return true for formats
31327         that include 'r'.
31328         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31329         Deal with REG_ATTRS after the field loop.
31330         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31331         * expmed.c (init_expmed): Call gen_raw_REG instead of
31332         gen_rtx_raw_REG.
31333         * expr.c (init_expr_target): Likewise.
31334         * regcprop.c (maybe_mode_change): Likewise.
31335         * varasm.c (make_decl_rtl): Likewise.
31336         * final.c (leaf_renumber_regs_insn): Return early after
31337         handling REGs.
31338         * genemit.c (gen_exp): Handle 'r' fields.
31339         * genpeep.c (match_rtx): Likewise.
31340         * gensupport.c (subst_pattern_match): Likewise.
31341         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31342         (alter_constraints, subst_dup): Likewise.
31343         * read-rtl.c (read_rtx_code): Likewise.
31344         * print-rtl.c (print_rtx): Likewise.
31345         * genrecog.c (find_operand, find_matching_operand): Likewise.
31346         (validate_pattern, match_pattern_2): Likewise.
31347         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31348         (rtx_test::regno_field): New function.
31349         (operator ==, safe_to_hoist_p, transition_parameter_type)
31350         (parameter_type_string, print_parameter_value)
31351         (print_nonbool_test, print_test): Handle new enum values.
31352         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31353         * lra-constraints.c (operands_match_p): Likewise.
31355 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31357         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31358         Change type of new_regno to unsigned int.
31359         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31360         new_regno to unsigned int.
31361         (df_ref_change_reg_with_loc): Remove old_regno parameter.
31362         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
31363         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31364         (SET_REGNO_RAW): Add space after ",".
31366 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31368         * rtl.h (REG_NREGS): New macro
31369         * alias.c (record_set): Use it.
31370         * cfgcleanup.c (mark_effect): Likewise.
31371         * combine.c (likely_spilled_retval_1): Likewise.
31372         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31373         (move_deaths, distribute_notes): Likewise.
31374         * cselib.c (cselib_record_set): Likewise.
31375         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31376         * df-scan.c (df_mark_reg): Likewise.
31377         * dse.c (look_for_hardregs): Likewise.
31378         * dwarf2out.c (reg_loc_descriptor): Likewise.
31379         (multiple_reg_loc_descriptor): Likewise.
31380         * expr.c (write_complex_part, read_complex_part): Likewise.
31381         (emit_move_complex): Likewise.
31382         * haifa-sched.c (setup_ref_regs): Likewise.
31383         * ira-lives.c (mark_hard_reg_live): Likewise.
31384         * lra.c (lra_set_insn_recog_data): Likewise.
31385         * mode-switching.c (create_pre_exit): Likewise.
31386         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31387         (reload_combine_recognize_pattern): Likewise.
31388         (reload_combine_note_use, move2add_record_mode): Likewise.
31389         (reload_cse_move2add): Likewise.
31390         * reg-stack.c (subst_stack_regs_pat): Likewise.
31391         * regcprop.c (kill_value, copy_value): Likewise.
31392         (copyprop_hardreg_forward_1): Likewise.
31393         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31394         (build_def_use): Likewise.
31395         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31396         (deps_analyze_insn): Likewise.
31397         * sched-rgn.c (check_live_1, update_live_1): Likewise.
31398         * sel-sched.c (count_occurrences_equiv): Likewise.
31399         * valtrack.c (dead_debug_insert_temp): Likewise.
31401 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31403         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31404         * dse.c (note_add_store): Likewise.
31405         * ira-lives.c (mark_hard_reg_dead): Likewise.
31406         * loop-invariant.c (mark_reg_store): Likewise.
31407         (mark_reg_death): Likewise.
31408         * postreload.c (reload_combine): Likewise.
31409         (reload_combine_note_store): Likewise.
31410         (reload_combine_note_use): Likewise.
31411         * recog.c (peep2_reg_dead_p): Likewise.
31413 2015-05-19  Alan Modra  <amodra@gmail.com>
31415         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31416         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31417         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31418         unused predicates.
31419         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31420         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
31421         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31422         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31424 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
31426         * config/mips/mips.md (JOIN_MODE): New mode iterator.
31427         (join2_load_Store<JOIN_MODE:mode>): New pattern.
31428         (join2_loadhi): Likewise.
31429         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
31430         load-load and store-stores.
31431         * config/mips/mips.opt (mload-store-pairs): New option.
31432         (TARGET_LOAD_STORE_PAIRS): New macro.
31433         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
31434         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
31435         * config/mips/mips.c (mips_load_store_bonding_p): New function.
31437 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
31439         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
31440         explicit swaps.
31441         * dojump.c (do_compare_rtx_and_jump): Likewise.
31442         * expmed.c (emit_store_flag_1): Likewise.
31443         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
31444         * final.c (sprint_ul): Use std::reverse for reversing a string.
31445         * fold-const.c (extract_muldiv_1): Use std::swap.
31446         * genmodes.c (emit_mode_int_n): Likewise.
31447         * ifcvt.c (dead_or_predicable): Likewise.
31448         * ira-build.c (ira_merge_live_ranges): Likewise.
31449         (swap_allocno_copy_ends_if_necessary): Likewise.
31450         * ira.c (ira_setup_alts): Likewise.
31451         * loop-iv.c (iv_analyze_expr): Likewise.
31452         (implies_p): Likewise.
31453         (canon_condition): Likewise.
31454         * lra-constraints.c (swap_operands): Likewise.
31455         * lra-lives.c (lra_merge_live_ranges): Likewise.
31456         * omega.c (swap): Remove.
31457         (bswap): Remove.
31458         (omega_unprotect_1): Use std::swap.
31459         (omega_solve_geq): Likewise.
31460         * optabs.c (expand_binop_directly): Likewise.
31461         (expand_binop): Likewise.
31462         (emit_conditional_move): Likewise.
31463         (emit_conditional_add): Likewise.
31464         * postreload.c (reload_cse_simplify_operands): Likewise.
31465         * reg-stack.c (emit_swap_insn): Likewise.
31466         (swap_to_top): Likewise.
31467         (compare_for_stack_reg): Likewise.
31468         (subst_asm_stack_regs): Likewise.
31469         * reload.c (find_reloads): Likewise.
31470         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
31471         * sel-sched.c (invoke_reorder_hooks): Likewise.
31472         (create_block_for_bookkeeping): Likewise.
31473         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
31474         (lambda_matrix_right_hermite): Use std::swap.
31475         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
31476         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
31477         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
31478         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
31479         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
31480         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
31481         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
31482         * tree-vrp.c (compare_ranges): Likewise.
31483         * var-tracking.c (add_with_sets): Likewise.
31484         (vt_find_locations): Likewise.
31486 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
31488         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
31489         pie executables.
31490         (FBSD_ENDFILE_SPEC): Likewise.
31491         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
31492         config/freebsd-spec.h.
31493         (ENDFILE_SPEC): Likewise.
31495 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
31496             Richard Henderson  <rth@redhat.com>
31498         PR target/57032
31499         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
31500         Check for a memory location that is not a reference (using an AND)
31501         to an unaligned location here.
31502         * config/alpha/predicates.md (normal_memory_operand): Remove.
31504 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
31506         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
31507         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
31509 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
31511         * config/mips/mips.c (micromips_globals): New variable.
31512         (mips_set_compression_mode): Save and reinitialize target-dependent
31513         state for microMIPS.
31515 2015-05-18  Martin Liska  <mliska@suse.cz>
31517         * dbgcnt.def: Add new counter.
31518         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
31520 2015-05-18  Martin Liska  <mliska@suse.cz>
31522         * dbgcnt.def: Sort counters.
31523         * opts.c (common_handle_option): Do not compile if
31524         -fdbg-cnt-list is enabled.
31526 2015-05-18  Tom de Vries  <tom@codesourcery.com>
31528         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
31529         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
31530         address operator to va_list operand.
31531         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
31532         unconditionally.
31533         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
31534         operand.
31535         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
31536         * config/s390/s390.c (s390_gimplify_va_arg): Same.
31537         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
31539 2015-05-18  Tom de Vries  <tom@codesourcery.com>
31541         * tree-ssa-tail-merge.c: Fix whitespace.
31543 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
31545         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
31546         cortex-a17, and cortex-a17.cortex-a7.
31548 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
31550         PR target/54236
31551         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
31553 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
31555         PR target/66174
31556         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
31557         QImode inner modes for TARGET_AVX512BW.  Force mask operand
31558         to a register for AVX512F modes.
31560 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31562         * toplev.c (emit_debug_global_declarations): Do not output debug info
31563         when doing slim LTO objects.
31565 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31567         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
31568         odr_types_equivalent_p): Declare.
31569         (odr_type_p): Use gcc_checking_assert.
31570         (type_in_anonymous_namespace_p) Declare.
31571         (type_with_linkage_p): Declare.
31572         * common.opt (Wlto-type-mismatch): New warning.
31573         * ipa-devirt.c (compound_type_base): New function.
31574         (odr_or_derived_type_p): New function.
31575         (odr_types_equivalent_p): New function.
31576         (add_type_duplicate): Simplify.
31577         (type_with_linkage_p): Add hack to prevent false positives on C types
31578         (type_in_anonymous_namespace_p): Likewise.
31579         * tree.c (need_assembler_name_p): Use type_with_linkage.
31580         * tree.h (type_in_anonymous_namespace_p): Remove.
31581         * doc/invoke.texi (-Wlto-type-mismatch): Document
31583 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31585         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
31586         (verify_type): Verify STRING_FLAG.
31588 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31590         PR fortran/44054
31591         * tree-pretty-print.c (percent_K_format): Replace locus pointer
31592         with accessor function.
31593         * tree-diagnostic.c (diagnostic_report_current_function): Use
31594         diagnostic_location function.
31595         (maybe_unwind_expanded_macro_loc): Likewise.
31596         (virt_loc_aware_diagnostic_finalizer): Likewise.
31597         (default_tree_printer): Replace locus pointer with accessor function.
31598         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
31599         (diagnostic_set_info_translated): Initialize second location.
31600         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
31601         (diagnostic_show_locus): Handle two locations. Call
31602         diagnostic_print_caret_line.
31603         (diagnostic_print_caret_line): New.
31604         (default_diagnostic_starter): Use diagnostic_location function.
31605         (diagnostic_report_diagnostic): Use diagnostic_location function.
31606         (verbatim): Do not set text.locus.
31607         * diagnostic.h (struct diagnostic_info): Remove location field.
31608         (struct diagnostic_context): Make caret_chars an array of two.
31609         (diagnostic_location): New inline.
31610         (diagnostic_expand_location): Handle two locations.
31611         (diagnostic_same_line): New inline.
31612         (diagnostic_print_caret_line): Declare.
31613         (CARET_LINE_MARGIN): New constant.
31614         * pretty-print.c (pp_printf): Do not set text.locus.
31615         (pp_verbatim): Do not set text.locus.
31616         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
31617         (struct text_info): Replace locus pointer with locations
31618         array. Add accessor functions.
31620 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
31621             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31623         PR target/65768
31624         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
31625         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
31626          large constants in register instead of splitting them.
31628 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
31630         PR target/66140
31631         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
31632         replacements in memory addresses.
31633         (get_unaligned_address): Ditto.
31635 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
31637         * config/ft32/*: New files for FT32 port.
31638         * doc/install.texi: Add FT32 information.
31639         * doc/invoke.texi: Add FT32 information.
31640         * doc/md.texi: Add FT32 information.
31641         * doc/contrib.texi: Self added.
31643 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
31645         PR tree-optimization/64454
31646         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
31647         (-1 - A -> ~A): Remove unnecessary condition.
31649 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
31651         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
31652         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
31653         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
31655 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
31657         * ipa-chkp.h (chkp_wrap_function): New.
31658         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
31659         (chkp_wrap_function_name): New.
31660         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
31661         to get wrapper name.
31662         * lto-cgraph.c: Include ipa-chkp.h.
31663         (input_cgraph_1): Avoid alias chain for wrappers.
31665 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
31667         PR middle-end/66134
31668         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
31669         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
31671 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31673         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
31674         (AARCH64_FL_SLOWMUL): Delete.
31675         (AARCH64_FL_CRC): Redefine to 1<<3.
31676         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
31678 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31680         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
31681         casting.
31683 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
31685         * config/alpha/alpha.md (extendqidi2): Use general_operand
31686         instead of some_operand for operand[1] predicate.
31687         (extendhidi2): Ditto.
31688         (cbranchdi4): Use general_operand instead of some_operand
31689         for operand[1] and operands[2] predicates.
31690         (cstoredi4): Ditto.
31691         * config/alpha/predicates.md (some_operand): Remove unused predicate.
31692         (some_ni_operand): Ditto.
31694 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
31696         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
31697         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
31698         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
31699         low part of the constant using alpha_emit_set_const_1.
31700         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
31702 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
31704         * varasm.c (output_constant_pool_1): Pass down alignment from
31705         constant pool entry's descriptor to output_constant_pool_2.
31706         (output_object_block): Add comment prior to call to
31707         output_constant_pool_1.
31709 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
31711         PR rtl-optimization/65862
31712         * target.def (ira_change_pseudo_allocno_class): New hook.
31713         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
31714         value of the hook.
31715         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
31716         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
31717         hook.
31718         * ira-costs.c (find_costs_and_classes): Call the hook and change
31719         classes when it is necessary.
31720         * doc/tm.texi: Update.
31722 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
31724         * config/i386/i386.md (sibcall_memory): Check that register with
31725         callee address is not also used as one of the arguments, instead
31726         of checking that it is not live after the sibcall.
31727         (sibcall_pop_memory): Ditto.
31728         (sibcall_value_memory): Ditto.
31729         (sibcall_value_pop_memory): Ditto.
31731 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
31733         * generic-match-head.c (types_match): Handle non-types.
31734         * gimple-match-head.c (types_match): Likewise.
31735         * match.pd: Remove unnecessary TREE_TYPE for types_match.
31737 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
31739         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31740         (csneg3<mode>_insn): Enable expansion of pattern.
31742 2015-05-14  Nick Clifton  <nickc@redhat.com>
31744         * config/rl78/rl78.c (rl78_select_section): Select the correct
31745         default section based upon the category of the decl.
31747 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31749         PR rtl-optimization/30967
31750         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31751         destination mode for the cost of scc patterns.
31753 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31755         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31756         using SWIM248 mode iterator.
31757         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31758         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
31759         for operand[2] constraint.
31760         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31762 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31764         PR middle-end/66133
31765         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31766         make sure it is never noreturn, even when the task body does not
31767         return.
31768         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31769         right before GIMPLE_OMP_RETURN.
31770         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31771         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
31772         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31774 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31776         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31777         * tree-ssa-math-opts.c: Include params.h
31778         (pow_synth_sqrt_info): New struct.
31779         (representable_as_half_series_p): New function.
31780         (get_fn_chain): Likewise.
31781         (print_nested_fn): Likewise.
31782         (dump_fractional_sqrt_sequence): Likewise.
31783         (dump_integer_part): Likewise.
31784         (expand_pow_as_sqrts): Likewise.
31785         (gimple_expand_builtin_pow): Use above to attempt to expand
31786         pow as series of square roots.  Removed now unused variables.
31788 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31790         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31791         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31792         Remove *p0 and *p1 arguments.  Rewrite function.
31793         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31794         (alpha_split_const_mov): Update calls to alpha_extract_integer and
31795         alpha_emit_set_long_const.
31796         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31797         (alpha_output_mi_thunk_osf): Ditto.
31798         * config/alpha/alpha.md (movti): Do not check operands[1]
31799         for CONST_DOUBLE.
31801 2015-05-13  Richard Biener  <rguenther@suse.de>
31803         PR tree-optimization/66129
31804         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31805         commutative.
31806         (vect_schedule_slp_instance): Fix typo.
31808 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
31810         * common.opt (fdump-internal-locations): New option.
31811         * input.c: Include diagnostic-core.h.
31812         (get_end_location): New function.
31813         (write_digit): New function.
31814         (write_digit_row): New function.
31815         (dump_location_range): New function.
31816         (dump_labelled_location_range): New function.
31817         (dump_location_info): New function.
31818         * input.h (dump_location_info): New prototype.
31819         * toplev.c (compile_file): Handle flag_dump_locations.
31821 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
31823         * gimple-expr.h (is_gimple_constant): Reorder.
31824         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31826 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31828         * combine.c (simplify_set): When generating a CC set, if the
31829         source already is in the correct mode, do not wrap it in a
31830         compare.  Simplify the rest of that code.
31832 2015-05-13  Richard Biener  <rguenther@suse.de>
31834         PR tree-optimization/66123
31835         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31836         a taken edge.
31838 2015-05-13  Richard Biener  <rguenther@suse.de>
31840         PR middle-end/66110
31841         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31842         specially.
31843         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31845 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
31847         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31848         * aclocal.m4: Regenerated with automake-1.11.6.
31850 2015-05-13  Tom de Vries  <tom@codesourcery.com>
31852         PR tree-optimization/66010
31853         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31854         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31855         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
31856         and rval based on do_deref.
31858 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31860         PR target/65103
31861         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31862         link time constants into adress expressions and therefore set
31863         their cost to 0.
31865 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31867         PR target/66112
31868         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31869         Use SWI248 iterator instead of SWI.
31870         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
31871         Use eq_attr "alternative" "0" instead of match_test in
31872         length_immediate attribute computation.
31873         (*mulvhi4, *mulvhi4_1): New define_insns.
31875         PR target/66112
31876         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31877         SIGNED to get precision of non-negative value.
31879 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31881         PR target/66048
31882         * function.c (diddle_return_value_1): Process bounds first.
31883         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31884         register.
31886 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31888         PR rtl-optimization/64616
31889         * loop-invariant.c (can_move_invariant_reg): New.
31890         (move_invariant_reg): Call above new function to decide whether
31891         instruction can just be moved, skipping creation of temporary
31892         register.
31894 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31896         PR target/pr66047.c
31897         * i386.c (ix86_function_sseregparm): Only return -1 if local function
31898         with implied regparm is called from -mno-sse function.
31899         (init_cumulative_args): Output error if ix86_function_sseregparm
31900         return -1 and SSE register would be needed.
31901         (function_arg_advance_32): Likewise.
31902         (function_arg_32): Likewise.
31903         * i386.h (ix86_args): Add decl field.
31905 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31907         PR ipa/65873
31908         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31909         inlines across optimization boundary.
31911 2015-05-12  Jason Merrill  <jason@redhat.com>
31913         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31914         string literal and macro name.
31916 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
31918         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31919         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31920         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31922 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31924         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31925         (-Wmisleading-indentation): New option.
31926         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31928 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
31930         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31931         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31932         (alpha_extract_integer): Ditto.
31933         (alpha_legitimate_constant_p): Ditto.
31934         (alpha_split_tmode_pair): Ditto.
31935         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31936         (alpha_expand_mov): Ditto.
31937         (print_operand): Remove handling of 'H' modifier.
31938         <case 'm'>: Remove CONST_DOUBLE handling.
31939         (summarize_insn): Handle CONST_WIDE_INT.
31940         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31941         (anddi3): Ditto.
31942         (movti): Handle CONST_WIDE_INT.
31943         * config/alpha/constraints.md ('H'): Remove constraint definition.
31944         ('G'): Do not match MODE_FLOAT class.
31945         * config/alpha/predicates.md (const0_operand): Also match
31946         const_wide_int.
31947         (non_add_const_operand): Ditto.
31948         (non_zero_const_operand): Ditto.
31949         (some_operand): Ditto.
31950         (input_operand): Ditto.  Handle CONST_WIDE_INT.
31951         (and_operand): Do not match const_double.
31952         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31954 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
31956         PR target/65697
31957         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31958         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31959         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31960         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31961         is_mm_seq_cst, is_mm_sync): New accessor functions.
31962         * builtins.c (expand_builtin_sync_operation,
31963         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31964         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31965         (get_memmodel,  expand_builtin_atomic_compare_exchange,
31966         expand_builtin_atomic_load, expand_builtin_atomic_store,
31967         expand_builtin_atomic_clear): Use new accessor routines.
31968         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31969         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31970         (maybe_emit_sync_lock_test_and_set): Use new accessors and
31971         MEMMODEL_SYNC_ACQUIRE.
31972         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31973         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31974         expand_atomic_store): Use new accessors.
31975         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31976         * tsan.c (instrument_builtin_call): Update check for memory model beyond
31977         final enum to use MEMMODEL_LAST.
31978         * c-family/c-common.c: Use new accessor for memmodel_base.
31979         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31980         accessors.
31981         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31982         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31983         mem_thread_fence, *dmb): Likewise.
31984         * config/alpha/alpha.c (alpha_split_compare_and_swap,
31985         alpha_split_compare_and_swap_12): Likewise.
31986         * config/arm/arm.c (arm_expand_compare_and_swap,
31987         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31988         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31989         atomic_loaddi): Likewise.
31990         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31991         Likewise.
31992         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31993         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31994         use new accessors.
31995         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31996         atomic_store<mode>, atomic_compare_and_swap<mode>,
31997         atomic_exchange<mode>): Use new accessors.
31998         * config/mips/mips.c (mips_process_sync_loop): Likewise.
31999         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
32000         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
32001         rs6000_post_atomic_barrier): Add new cases.
32002         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
32003         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
32004         (atomic_load<mode>): Add new cases and use new accessors.
32005         (store_quadpti): Add new cases.
32006         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
32007         accessors.
32008         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
32009         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
32010         model, not 8.
32012 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
32014         * ipa-devirt.c (type_with_linkage_p): New function.
32015         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
32016         type has linkage.
32017         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
32018         (can_be_name_hashed_p): Simplify.
32019         (hash_odr_name): Check that type has linkage before checking if it is
32020         anonymous.
32021         (types_same_for_odr): Likewise.
32022         (odr_name_hasher::equal): Likewise.
32023         (odr_subtypes_equivalent_p): Likewise.
32024         (warn_types_mismatch): Likewise.
32025         (get_odr_type): Likewise.
32026         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
32027         * ipa-utils.h (odr_type_p): Move offline.
32028         * tree.c (need_assembler_name_p): Fix handling of types
32029         without linkages.
32030         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
32032 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
32034         * timevar.c (timevar_enable): Delete in favor of...
32035         (g_timer): New global.
32036         (struct timevar_def): Move to timevar.h inside class timer.
32037         (struct timevar_stack_def): Likewise.
32038         (timevars): Delete global in favor of field "m_timevars" within
32039         class timer in timevar.h
32040         (stack): Likewise, in favor of field "m_stack".
32041         (unused_stack_instances): Likewise, in favor of field
32042         "m_unused_stack_instances".
32043         (start_time): Likewise, in favor of field "m_start_time".
32044         (get_time): Eliminate check for timevar_enable.
32045         (timer::timer): New function, built from part of timevar_init.
32046         (timevar_init): Rewrite idempotency test from using
32047         "timevar_enable" bool to using dynamic allocation of "g_timer".
32048         Move rest of implementation into timer's constructor.
32049         (timevar_push_1): Rename to...
32050         (timer::push): ...this, adding "m_" prefixes to variables that
32051         are now fields of timer.
32052         (timevar_pop_1): Likewise, rename to...
32053         (timer::pop): ...this, and add "m_" prefixes.
32054         (timevar_start): Replace test for "timevar_enable" with one for
32055         "g_timer", and move bulk of implementation to...
32056         (timer::start): ...here, adding "m_" prefixes.
32057         (timevar_stop): Likewise, from here...
32058         (timer::stop): ...to here.
32059         (timevar_cond_start): Likewise, from here...
32060         (timer::cond_start): ...to here.
32061         (timevar_cond_stop): Likewise, from here...
32062         (timer::cond_stop): ...to here.
32063         (validate_phases): Rename to...
32064         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
32065         locals "total" and "tv" const.
32066         (timevar_print): Rename to...
32067         (timer::print): ...this, and add "m_" prefixes.  Make locals
32068         "total" and "tv" const.  Eliminate test for timevar_enable.
32069         * timevar.h (timevar_enable): Eliminate.
32070         (g_timer): New declaration.
32071         (timevar_push_1): Eliminate.
32072         (timevar_pop_1): Eliminate.
32073         (timevar_print): Eliminate.
32074         (class timer): New class.
32075         (timevar_push): Rewrite to use g_timer.
32076         (timevar_pop): Likewise.
32077         * toplev.c (toplev::~toplev): Likewise.
32079 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
32081         * arm-protos.h (arm_sched_autopref): Delete.
32082         (tune_params): Re-organize, use enums for flag values.
32083         (FUSE_OPS): New macro.
32084         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
32085         (ARM_PREFETCH_BENEFICIAL): Likewise.
32086         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
32087         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32088         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
32089         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
32090         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
32091         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
32092         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
32093         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
32094         format.
32095         (arm_option_override, thumb2_reorg, arm_print_tune_info)
32096         (aarch_macro_fusion_pair_p): Update uses of current_tune.
32097         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
32099 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
32101         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
32102         "break".
32104 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
32105             Sandra Loosemore <sandra@codesourcery.com>
32107         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
32108         value.
32109         (REG_CLASS_NAMES): Add "IJMP_REGS".
32110         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
32111         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
32112         use new "c" register constraint.
32113         * config/nios2/constraint.md (c): New register constraint
32114         corresponding to IJMP_REGS.
32116 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32118         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
32119         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
32120         define_splits): Delete, revamp, transmogrify into ...
32121         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
32122         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
32123         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
32124         New.
32126 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32128         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32129         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32131 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32133         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32134         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32135         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32136         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32137         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32138         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32139         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32140         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32141         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32142         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32143         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32144         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32145         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32146         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32147         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32148         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32149         and 30 corresponding splitters): Delete.
32151 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32153         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32154         zero_extract.
32156 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32158         * combine.c (recog_for_combine_1): New function, factored out
32159         from recog_for_combine.
32160         (change_zero_ext): New function.
32161         (recog_for_combine): If recog fails, try again with the pattern
32162         modified by change_zero_ext; if that still fails, restore the
32163         pattern.
32165 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32167         * combine.c (get_undo_marker): New function.
32168         (undo_to_marker): New function, largely factored out from ...
32169         (undo_all): ... this.  Adjust.
32171 2015-05-12  Richard Biener  <rguenther@suse.de>
32173         PR tree-optimization/66101
32174         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32175         fixup if we turn a loop exit edge to a fallthru edge.
32177 2015-05-12  Richard Biener  <rguenther@suse.de>
32179         PR tree-optimization/37021
32180         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32181         (SLP_TREE_TWO_OPERATORS): New define.
32182         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32183         SLP_TREE_TWO_OPERATORS.
32184         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32185         SLP node.
32186         (vect_build_slp_tree): Adjust.
32187         (vect_analyze_slp_cost_1): Likewise.
32188         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32189         emitting two vector stmts and mixing the results.
32191 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32193         * call.c (print_z_candidates): Remove dead code.
32195 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32197         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32198         and zEC12_simple_fp.
32199         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32200         to 1.
32202 2015-05-12  Tom de Vries  <tom@codesourcery.com>
32204         PR tree-optimization/66010
32205         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32206         ifn_va_arg.
32207         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32208         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
32209         va_lists are passed, and remove corresponding handling.
32210         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
32211         do_deref argument to ifn_va_arg.
32212         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32213         ifn_va_arg.
32215 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32217         PR target/65955
32218         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32219         REG before taking its REGNO.
32221 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32223         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32224         rsp->sign_bit_copies and rsp->nonzero_bits into ...
32225         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
32226         present to get more accurate information about the number of sign bit
32227         copies and non zero bits.
32229 2015-05-12  Richard Biener  <rguenther@suse.de>
32231         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32232         do not allow unrolling.
32234 2015-05-11  Richard Henderson  <rth@redhat.com>
32236         * config/i386/i386-modes.def (CCP): New.
32237         * config/i386/i386.c (put_condition_code): Handle it.
32238         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32240 2015-05-11  Richard Henderson  <rth@redhat.com>
32242         * target.def (md_asm_clobbers): Replace with...
32243         (md_asm_adjust): this.
32244         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32245         (TARGET_MD_ASM_ADJUST): New.
32246         * tm.texi: Rebuild.
32247         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32248         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32249         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32251         * cfgexpand.c (check_operand_nalternatives): Accept vector of
32252         constraints instead of lists of outputs and inputs.
32253         (expand_asm_stmt): Save and restore input_location around the
32254         body of the function.  Move asm data into vectors instead of
32255         building tree lists.  Generate cleanup sequences as needed,
32256         rather than waiting til the end.  Use new md_asm_adjust hook.
32258         * config/vxworks.c: Include vec.h before target.h.
32259         * gimple.c: Likewise.
32260         * incpath.c: Likewise.
32261         * mode-switching.c: Likewise.
32263         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32264         (cris_md_asm_adjust): this.
32265         (TARGET_MD_ASM_CLOBBERS): Remove.
32266         (TARGET_MD_ASM_ADJUST): New.
32267         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32268         (ix86_md_asm_adjust): this.
32269         (TARGET_MD_ASM_CLOBBERS): Remove.
32270         (TARGET_MD_ASM_ADJUST): New.
32271         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32272         (mn10300_md_asm_adjust): this.
32273         (TARGET_MD_ASM_CLOBBERS): Remove.
32274         (TARGET_MD_ASM_ADJUST): New.
32275         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32276         (rs6000_md_asm_adjust): this.
32277         (TARGET_MD_ASM_CLOBBERS): Remove.
32278         (TARGET_MD_ASM_ADJUST): New.
32279         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32280         (visium_md_asm_adjust): this.
32281         (TARGET_MD_ASM_CLOBBERS): Remove.
32282         (TARGET_MD_ASM_ADJUST): New.
32284 2015-05-11  Richard Henderson  <rth@redhat.com>
32286         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32287         if noutputs is zero.
32288         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32290         * cfgexpand.c (expand_asm_operands): Merge into...
32291         (expand_asm_stmt): ... here.
32293         * cfgexpand.c (expand_asm_operands): Don't call
32294         resolve_asm_operand_names.
32295         * stmt.c (resolve_asm_operand_names): Clarify block comment.
32297 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
32299         * dwarf2out.c (gen_member_die): Sanity check that we access
32300         TYPE_MAIN_VARIANT for TYPE_METHODS.
32301         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32302         checking TYPE_METHODS.
32303         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32304         if non-null.
32305         (build_distinct_type_copy): Clear TYPE_METHODS.
32306         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32307         (verify_type): Allow TYPE_METHODS to be error_mark_node.
32308         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32310 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
32312         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32313         (emit_pattern_before_setloc): Likewise.
32315 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32317         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32318         for define_peephole2s.
32319         (get_peephole2_pattern): New function.
32320         (main): Use it.  Call validate_pattern.
32322 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
32324         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32325         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32326         (Last callee saved reg is different for AVR_TINY architecture)
32328 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32330         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32331         when looking for memory references.
32333 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32335         PR target/65753
32336         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32337         via function pointers.
32339 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32341         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32342         indirect call by forcing address into a pseudo with -fno-plt.
32343         * common.opt (flag_plt): New option.
32344         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32345         ([-fno-plt]): Document.
32347 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
32349         PR bootstrap/66105
32350         * config/rs6000/option-defaults.h: Add space between string literal
32351         and macro name.
32353 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32355         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32356         accross ARM targets.
32358 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32360         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32361         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32363 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32365         PR rtl-optimization/66076
32366         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32367         Don't grow the heap array if it is already big enough from a
32368         previous iteration.
32370 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32372         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32373         (is_called_in_ARM_mode): Remove.
32374         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32375         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32376         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32377          arm_declare_function_name.
32379 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32381         * config/arm/arm.c (arm_option_override): Reoganized and split into :
32382         (arm_option_params_internal); New function.
32383         (arm_option_check_internal): New function.
32384         (arm_option_override_internal): New function.
32385         (thumb_code, thumb1_code): Remove.
32386         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32387         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32388         (thumb_code, thumb1_code): Remove.
32389         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32391 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32393         * config/alpha/alpha.c (alpha_emit_set_const_1)
32394         (alpha_emit_set_long_const, alpha_extract_integer)
32395         (alpha_legitimate_constant_p, alpha_split_const_mov)
32396         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32397         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32398         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32399         HOST_WIDE_INT_1U.
32400         * config/alpha/predicates.md (mode_mask_operand): Do not match
32401         const_double RTX.
32402         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32403         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32404         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32405         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32406         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32408 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
32410         PR target/65780
32411         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32412         default_binds_local_p_2.
32413         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32414         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32416 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32418         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32420 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32422         Patch by Richard Biener
32423         * coverage.c (coverage_obj_init): Delay building of type variant
32424         until the type is finished.
32426 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32428         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
32429         mismatch between C and C++ type; compoare correctly ARG_TYPES
32430         for non-prototypes and output correctly parameter index for METHOD_TYPE.
32431         (odr_types_equivalent_p): Fix wording of warning about attributes;
32432         it is OK to match prototype and non-prototype.
32434 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32436         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
32437         TYPE_ARG_TYPES list.
32438         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
32439         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
32441 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32443         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
32444         * tree.h (is_lang_specific): Constify.
32446 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
32448         PR tree-optimization/64454
32449         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
32450         Rewrite.
32452 2015-05-08  Jason Merrill  <jason@redhat.com>
32454         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
32455         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
32456         config/darwin.h, config/darwin9.h, config/elfos.h,
32457         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
32458         config/microblaze/microblaze.h, config/mips/mips.h,
32459         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
32460         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
32461         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
32462         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
32463         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
32464         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
32465         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
32466         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
32467         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
32468         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
32469         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
32470         between string literal and macro name.
32472 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32474         * jump.c: Change argument types to rtx_insn *.
32475         * rtl.h: Adjust.
32477 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32479         * lra-constraints.c: Change argument type to rtx_insn *.
32481 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32483         * df-problems.c: Change argument type to rtx_insn *.
32485 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32487         * combine.c: Change argument type to rtx_insn *.
32489 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32491         * rtl.h: Adjust.
32492         * rtlanal.c: Change argument type to rtx_insn *.
32494 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32496         * sched-deps.c: Change argument types to rtx_insn *.
32497         * sched-int.h: Adjust.
32499 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32501         * dwarf2cfi.c: Change argument type to rtx_insn *.
32503 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32505         * ira.c (decrease_live_ranges_number): Changetype of local
32506         variable to rtx_insn *.
32507         * recog.c: Change argument types to rtx_insn *.
32508         * recog.h: Adjust.
32510 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32512         * reorg.c: Change argument types to rtx_insn *.
32514 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32516         * ira-color.c: Change argument types to rtx_insn *.
32517         * lra-eliminations.c: Likewise.
32518         * ira.h: Adjust.
32520 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32522         * gcse.c: Change argument types to rtx_insn *.
32524 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32526         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
32528 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32530         * emit-rtl.c (emit_debug_insn_before): Change argument type to
32531         rtx_insn *.
32532         * rtl.h: Adjust.
32534 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32536         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
32537         * rtl.h: Adjust.
32539 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32541         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
32542         * rtl.h: Adjust.
32544 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32546         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
32547         * rtl.h: Adjust.
32549 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32551         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
32552         * rtl.h: Adjust.
32554 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32556         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
32557         to rtx_insn *.
32558         * rtl.h: Adjust.
32560 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32562         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
32563         to rtx_insn *.
32564         * rtl.h: Likewise.
32566 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32568         * except.c (can_nonlocal_goto): Change type of argument to
32569         rtx_insn *.
32570         * rtl.h: Adjust.
32572 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32574         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
32575         * rtl.h: Adjust.
32577 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32579         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
32580         * cfgrtl.c (can_delete_label_p): Adjust.
32581         * rtl.h: likewise.
32583 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32585         * reorg.c (stop_search_p): Change argument to rtx_insn *.
32587 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32589         * except.c (make_reg_eh_region_note): Change argument to
32590         rtx_insn *.
32591         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
32592         * except.h: Adjust.
32594 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32596         * mode-switching.c (commit_mode_sets): Change type of local
32597         variable from rtx to rtx_insn *.
32599 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
32601         * doc/install.texi (--enable-languages): Add missing jit and lto info.
32602         Add ^ to grep command.
32603         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
32604         arg to last gimple_simplify declaration.  Add missing gimple_build
32605         declaration for built-in function case with four tree args.
32607 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
32608             Szabolcs Nagy  <szabolcs.nagy@arm.com>
32610         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
32611         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
32612         (GNU_USER_DYNAMIC_LINKERN32): Update.
32614 2015-05-08  Richard Biener  <rguenther@suse.de>
32616         PR tree-optimization/66036
32617         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32618         Handle strided group loads.
32619         (vect_verify_datarefs_alignment): Likewise.
32620         (vect_enhance_data_refs_alignment): Likewise.
32621         (vect_analyze_group_access): Likewise.
32622         (vect_analyze_data_ref_access): Likewise.
32623         (vect_analyze_data_ref_accesses): Likewise.
32624         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
32625         (vectorizable_load): Likewise.
32627 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
32629         * config/rs6000/rs6000.md: Require operand inequality in one
32630         of the peepholes.
32632 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
32633             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
32635         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
32636         from (set ...).
32637         * config/rx/rx.md (movdi, movdf): Likewise.
32638         Likewise for define_peephole2s.
32640 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32642         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
32643         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
32644         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
32645         vtst_u64): Rewrite using gcc vector extensions.
32647 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32649         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
32650         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
32652 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32654         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
32656 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32658         * config/glibc-stdint.h (OPTION_MUSL): Define.
32659         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
32660         Change the definition based on OPTION_MUSL for 64 bit targets.
32661         * config/linux.h (OPTION_MUSL): Redefine.
32662         * config/alpha/linux.h (OPTION_MUSL): Redefine.
32663         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
32664         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
32666 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
32667             Szabolcs Nagy  <szabolcs.nagy@arm.com>
32669         * config.gcc (LIBC_MUSL): New tm_defines macro.
32670         * config/linux.h (OPTION_MUSL): Define.
32671         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
32672         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
32673         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32674         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32675         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32676         * config/linux.opt (mmusl): New option.
32677         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
32678         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32679         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32680         * configure: Regenerate.
32682 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
32683             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32685         PR target/48904
32686         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
32687         * config/i386/knetbsd-gnu64.h: New file.
32689 2015-05-08  Marek Polacek  <polacek@redhat.com>
32691         PR c/64918
32692         * doc/invoke.texi: Document -Woverride-init-side-effects.
32694 2015-05-07  Marek Polacek  <polacek@redhat.com>
32696         PR c/65179
32697         * doc/invoke.texi: Document -Wshift-negative-value.
32699 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
32701         * gcov-tool.c (do_merge): Refactore to remove int ret.
32702         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
32703         !type == FUNC to type != FUNC.
32704         * reload.h (struct target_reload): Changee to type of
32705         x_spill_indirect_levels from bool to unsigned char.
32707 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
32709         * rtl.h (always_void_p): New function.
32710         * gengenrtl.c (always_void_p): Likewise.
32711         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
32712         with code foo are always VOIDmode.
32713         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
32714         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
32715         compare-elim.c, config/aarch64/aarch64.c,
32716         config/aarch64/aarch64.md, config/alpha/alpha.c,
32717         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
32718         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
32719         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
32720         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32721         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
32722         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
32723         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32724         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32725         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32726         config/ia64/vect.md, config/iq2000/iq2000.c,
32727         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32728         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32729         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32730         config/mep/mep.c, config/microblaze/microblaze.c,
32731         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32732         config/mn10300/mn10300.c, config/msp430/msp430.c,
32733         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32734         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32735         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32736         config/rs6000/altivec.md, config/rs6000/rs6000.c,
32737         config/rs6000/rs6000.md, config/rs6000/vector.md,
32738         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32739         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32740         config/sh/sh.md, config/sh/sh_treg_combine.cc,
32741         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32742         config/spu/spu.md, config/stormy16/stormy16.c,
32743         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32744         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32745         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32746         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32747         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32748         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32749         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32750         var-tracking.c: Update calls accordingly.
32752 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
32754         PR middle-end/192
32755         PR middle-end/54303
32756         * varasm.c (function_mergeable_rodata_prefix): New function.
32757         (mergeable_string_section): Use it.
32758         (mergeable_constant_section): Use it.
32760 2015-05-07  Jeff Law  <law@redhat.com>
32762         PR target/39726
32763         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32764         simplifier to narrow arithmetic.
32765         * generic-match-head.c: (types_match, single_use): New functions.
32766         * gimple-match-head.c: (types_match, single_use): New functions.
32768 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
32770         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32771         rtx type.
32773 2015-05-07  Richard Biener  <rguenther@suse.de>
32775         PR tree-optimization/66002
32776         * passes.def: Schedule another pass_merge_phi after ifcombine, right
32777         before phiopt.
32779 2015-05-07  Marek Polacek  <polacek@redhat.com>
32780             Martin Uecker  <uecker@eecs.berkeley.edu>
32782         * doc/invoke.texi: Document -fsanitize=bounds-strict.
32783         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32784         into SANITIZE_NONDEFAULT.
32785         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32787 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
32789         PR target/66015
32790         * config/alpha/alpha.c (alpha_override_options_after_change): New.
32791         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32792         (alpha_override_options): Move align_loops, align_jumps and
32793         align_functions handling into alpha_override_options_after_change.
32795 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
32796             Chris Jones  <chrisj@nvidia.com>
32797             Joshua Conner  <jconner@nvidia.com>
32799         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32800         linking of crtfastmath.o.
32801         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32803 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
32805         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32806         (cstore<mode>4_unsigned_imm): New expander.
32807         (cstore<mode>4): Remove empty constraint strings.  Use the new
32808         expanders.
32810 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
32812         PR target/64208
32813         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32814         alternatives.
32816 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32818         * config/aarch64/geniterators.sh: Use standard BRE in sed.
32820 2015-05-06  Alan Modra  <amodra@gmail.com>
32822         PR target/66033
32823         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32824         (UNSPEC_NOP): Define.
32825         (reload_vsx_from_gpr<mode>): Add missing DONE.
32826         (reload_gpr_from_vsx<mode>): Likewise.
32827         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32828         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32830 2015-05-06  Christian Bruel  <christian.bruel@st.com>
32832         PR target/66015
32833         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32834         align_jumps, align_functions into aarch64_override_options_after_change.
32836 2015-05-06  Richard Biener  <rguenther@suse.de>
32838         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32839         vect_transform_slp_perm_load to check if we support a permutation
32840         for basic-block vectorization.
32842 2015-05-06  Nick Clifton  <nickc@redhat.com>
32844         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32845         used, even if it is not being used as a frame pointer.
32847 2015-05-05  Jason Merrill  <jason@redhat.com>
32849         * dwarf2out.c (gen_member_die): Don't emit anything for an
32850         anonymous class constructor.
32852 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
32854         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32855         that it reflects the block structure.
32856         (afdo_propagate_edge): Likewise.
32857         (afdo_calculate_branch_prob): Likewise.
32858         (afdo_annotate_cfg): Likewise.
32859         * cfgcleanup.c (equal_different_set_p): Likewise.
32860         (try_crossjump_to_edge): Likewise.
32861         * cgraph.c (cgraph_node::verify_node): Likewise.
32862         * cgraphunit.c (expand_all_functions): Likewise.
32863         * config/i386/i386.c (ix86_expand_copysign): Likewise.
32864         (exact_dependency_1): Likewise.
32865         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32866         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32867         * gensupport.c (process_define_subst): Likewise.
32868         * lto-wrapper.c (merge_and_complain): Likewise.
32869         * tree-if-conv.c (if_convertible_bb_p): Likewise.
32870         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32871         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32872         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32873         * tree-vect-loop.c (vectorizable_reduction): Likewise.
32874         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32875         * tree-vect-stmts.c (vectorizable_shift): Likewise.
32876         * tree-vrp.c (vrp_finalize): Likewise.
32877         * tree.c (variably_modified_type_p): Likewise.
32879 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
32881         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32882         on darwin12 and later.
32883         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32884         file to pass -rdynamic on darwin12 and later.
32885         * config/darwin.opt (rdynamic): Add.
32887 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32889         * doc/extend.texi (C Extensions): Update menu for moved Variable
32890         Attributes and Type Attributes sections.
32892 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32894         PR target/65990
32895         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32896         if rep_8byte stringop strategy was specified for 32-bit target.
32898 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
32900         PR target/65915
32901         * config/i386/i386.md (vector convert to float spltiter): Check for
32902         xmm16+, when splitting scalar float conversion.
32903         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32905 2015-05-05  Nick Clifton  <nickc@redhat.com>
32907         * config/msp430/msp430-opts.h (enum msp430_regions): New.
32908         * config/msp430/msp430.c (msp430_override_options): Complain if
32909         -mcode-region or -mdata-region is used on a non MSP430X.
32910         (msp430_section_attr): New function.  Checks lower, upper and
32911         either attributes.
32912         (msp430_attribute_table): Add lower, upper and either.
32913         (gen_prefix): New function.  Generates a prefix for a section
32914         name.
32915         (msp430_select_section): New function - handles the choice of
32916         section for an object.  Takes into account memory region
32917         attributes and options.
32918         (msp430_function_section): Use gen_prefix.
32919         (TARGET_SECTION_TYPE_FLAGS): Define.
32920         (msp430_section_type_flags): New function.
32921         (TARGET_ASM_UNIQUE_SECTION): Define.
32922         (msp430_unique_section): New function.
32923         (msp430_output_aligned_decl_common): New function.
32924         (msp430_do_not_relax_short_jumps): New function.
32925         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32926         Define.
32927         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32928         * config/msp430/msp430-protos.h
32929         (msp430_do_not_relax_short_jumps): New prototype.
32930         (msp430_output_aligned_decl_common): New prototype.
32931         * config/msp430/msp430.md (length): New attribute.
32932         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32933         then use a long code sequence for short jumps.
32934         * config/msp430/msp430.opt (mcode-region): New.
32935         (mdata-region): New.
32936         * doc/invoke.texi: Document new options.
32937         * doc/extend.texi: Document new attributes.
32939 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32941         * config/aarch64-protos.h (struct cpu_branch_cost): New.
32942         (tune_params): Add field branch_costs.
32943         (aarch64_branch_cost): Declare.
32944         * config/aarch64.c (generic_branch_cost): New.
32945         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32946         (cortexa53_tunings): Likewise.
32947         (cortexa57_tunings): Likewise.
32948         (thunderx_tunings): Likewise.
32949         (xgene1_tunings): Likewise.
32950         (aarch64_branch_cost): Define.
32951         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32953 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32955         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32956         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32957         * config/i386/i386.md: Ditto.
32958         * config/i386/winnt.c: Ditto.
32960 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32962         * doc/extend.texi (__atomic Builtins): Move implementation details
32963         to the end of the description, rewrite opening paragraphs, state
32964         difference with __sync builtins, state C11/C++11 assumptions,
32965         weaken itemized descriptions, add explanation of memory model
32966         behaviour, expand description of compare-exchange, simplify text.
32968 2015-05-05  Renlin Li  <renlin.li@arm.com>
32970         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32972 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
32974         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32975         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32976         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32977         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32978         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32979         * configure: Regenerate.
32980         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32981         * doc/install.texi (aarch64*-*-*): Document new
32982         --enable-fix-cortex-a53-843419 option.
32983         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32984         and -mno-fix-cortex-a53-843419 options.
32986 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32988         PR target/65871
32989         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32991 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
32993         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32994         fix overactive TYPE_MIN_VALUE check and add FIXME for type
32995         compatibility problems.
32997 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32999         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
33000         constraints.
33001         (cbranchsi4_reg): New.
33002         * config/microblaze/microblaze.c
33003         (microblaze_expand_conditional_branch_reg): New.
33004         * config/microblaze/microblaze-protos.h
33005         (microblaze_expand_conditional_branch_reg): New prototype.
33007 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
33009         * config/microblaze/microblaze.md (peephole2): New.
33011 2015-05-04  Jeff Law  <law@redhat.com>
33013         Revert:
33014         2015-05-04  Jeff Law  <law@redhat.com>
33016         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33017         simplifier to narrow arithmetic.
33018         * generic-match-head.c: (types_match, single_use): New functions.
33019         * gimple-match-head.c: (types_match, single_use): New functions.
33021 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
33023         PR target/65987
33024         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
33025         (split_branches): Likewise.
33027 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
33029         * common.opt (fdelete-null-pointer-checks): Init to -1.
33030         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
33031         override flag_delete_null_pointer_checks default.
33032         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
33033         behavior re address zero.  Better document target-specific behavior.
33034         (-fisolate-errneous-paths-dereference): Mention relationship to
33035         -fdelete-null-pointer-checks.
33037 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
33039         PR tree-optimization/65984
33040         * ubsan.c: Include tree-cfg.h.
33041         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
33042         stmt_could_throw_p test, rename can_throw variable to ends_bb.
33044 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
33046         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
33047         to CONST_DOUBLE_P predicate.
33048         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
33049         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
33050         allow only operands that satisfy standard_sse_constant_p predicate.
33051         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
33052         to CONST_DOUBLE_P predicate.
33054 2015-05-04  Jeff Law  <law@redhat.com>
33056         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33057         simplifier to narrow arithmetic.
33058         * generic-match-head.c: (types_match, single_use): New functions.
33059         * gimple-match-head.c: (types_match, single_use): New functions.
33061 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
33063         * config/arm/arm.c: Restore bootstrap.
33065 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
33067         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
33068         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
33069         as CONST_WIDE_INT, not CONST_DOUBLE.
33070         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
33071         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
33072         (ix86_find_base_term): Do not check for CONST_DOUBLE.
33073         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
33074         (ix86_build_signbit_mask): Rewrite using wide ints.
33075         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
33076         (ix86_rtx_costs): Handle CONST_WIDE_INT.
33077         (find_constant): Ditto.
33078         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
33079         using gen_int_mode.
33080         * config/i386/predicates.md (x86_64_immediate_operand)
33081         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33082         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
33083         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33084         (const0_operand): Also match const_wide_int.
33085         (constm1_operand): Ditto.
33086         (const1_operand): Ditto.
33088 2015-05-04  Richard Biener  <rguenther@suse.de>
33090         PR tree-optimization/65965
33091         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
33092         store groups at gaps.
33094 2015-05-04  Richard Biener  <rguenther@suse.de>
33096         PR tree-optimization/65935
33097         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
33098         then make sure to apply that swapping to the IL.
33100 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
33102         * Makefile.in (PATCHLEVEL_c): New variable.
33103         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
33104         expand the same way as if DEVPHASE_c was non-empty.
33106 2015-05-04  Kai Tietz  <ktietz@redhat.com>
33108         PR target/65559
33109         * lto-wrapper.c (run_gcc): Open filename
33110         in binary-mode.
33112 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
33114         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
33115         sections up in file, to immediately after the Function Attributes
33116         section.
33118 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
33120         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
33122 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33124         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
33125         (insert_partition_copy_on_edge): Adjust.
33126         (insert_rtx_to_part_on_edge): Likewise.
33127         (insert_part_to_rtx_on_edge): Likewise.
33129 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33131         * function.c (set_return_jump_label): Change type of argument to
33132         rtx_insn *.
33133         * function.h (set_return_jump_label): Adjust.
33135 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33137         * reload.h (struct reg_equivs_t): Change type of init to
33138         rtx_insn *.
33139         * ira.c (fix_reg_equiv_init): Adjust.
33140         * reload1.c (eliminate_regs_1): Likewise.
33141         (init_eliminable_invariants): Likewise.
33143 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33145         * cselib.c (fp_setter_insn): Take a rtx_insn *.
33146         * cselib.h (fp_setter_insn): Adjust.
33148 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33150         * recog.c (struct validate_replace_src_data): Change type of
33151         insn field to rtx_insn *.
33152         (validate_replace_src_group): Change type of argument to rtx_insn *.
33153         * recog.h (validate_replace_src_group): Adjust.
33155 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33157         * haifa-sched.c: Change the type of some variables to rtx_insn *.
33158         * sched-deps.c: Likewise.
33159         * sched-int.h: Likewise.
33160         * sched-rgn.c: Likewise.
33161         * sel-sched.c: Likewise.
33163 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33165         to rtx_insn *.
33166         * config/i386/i386.c: Change the type of some arguments to
33167         rtx_insn *.
33168         * config/arm/arm.c: Likewise.
33170 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33172         * lra-constraints.c: Change type of some arguments to rtx_insn *.
33174 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33176         * regcprop.c (kill_autoinc_value): Change type of argument to
33177         rtx_insn *.
33179 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33181         * genrecog.c (print_subroutine): Adjust.
33182         * recog.c (get_bool_attr_mask_uncached): Likewise.
33183         * recog.h (struct recog_data_d): Change the type of insn to
33184         rtx_insn *.
33186 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33188         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33190 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33192         * df-problems.c (df_set_note): Change type of argument to
33193         rtx_insn *.
33195 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33197         * builtins.c (expand_builtin_trap): Change type of local
33198         variable to rtx_insn *.
33199         (add_sched_insns_for_speculation): Likewise.
33200         (ix86_emit_save_regs): Likewise.
33201         (get_scratch_register_on_entry): Likewise.
33202         (ix86_emit_restore_reg_using_pop): Likewise.
33203         (ix86_emit_leave): Likewise.
33204         (ix86_emit_restore_regs_using_mov): Likewise.
33205         (ix86_expand_epilogue): Likewise.
33206         Likewise.
33207         (rl78_alloc_physical_registers_umul): Likewise.
33208         * cselib.c (discard_useless_locs): Likewise.
33209         (cselib_invalidate_regno): Likewise.
33210         (cselib_invalidate_mem): Likewise.
33211         * function.c (expand_function_start): Likewise.
33212         (emit_use_return_register_into_block): Likewise.
33213         * gcse.c: Likewise.
33214         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33215         * ifcvt.c (noce_get_alt_condition): Likewise.
33216         * loop-doloop.c (doloop_condition_get): Likewise.
33217         * lra-constraints.c (inherit_in_ebb): Likewise.
33218         * modulo-sched.c (sms_schedule_by_order): Likewise.
33219         * recog.c (next_insn_tests_no_inequality): Likewise.
33220         * reorg.c (emit_delay_sequence): Likewise.
33221         (update_reg_dead_notes): Likewise.
33222         (fix_reg_dead_note): Likewise.
33223         (fill_slots_from_thread): Likewise.
33224         (delete_computation): Likewise.
33226 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
33228         * doc/extend.texi (Variable Attributes): Add menu and proper
33229         @nodes to subsections.  Move Microsoft Windows attributes to
33230         their own subsection.
33231         (Type Attributes): Reorganize introduction to remove duplicate
33232         list of attributes.  Add menu and proper @nodes to subsections.
33233         Alphabetize the main table of common attributes.
33235 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33237         * match.pd: New simplification patterns.
33238         (x + (x & 1))  -> ((x + 1) & ~1)
33239         (x & ~(x & y)) -> ((x & ~y))
33240         (x | ~(x | y)) -> ((x | ~y))
33242 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33244         * target.def (attribute_table): Mention that struct attribute_spec
33245         is defined in tree-core.h rather than tree.h
33246         * doc/tm.texi: Regenerate.
33248 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
33250         * genrecog.c (test): Rename to rtx_test.  Update rest of file
33251         accordingly.
33253 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33255         PR translation/65959
33256         * params.h (DEFPARAM): Rename msgid to nocmsgid.
33258 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33260         * config/aarch64/aarch64-protos.h (tune_params):
33261         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33262         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33263         Return value depending on target.
33264         (generic_tunings): Initialize new target settings.
33265         (cortexa53_tunings): Likewise.
33266         (cortexa57_tunings): Likewise.
33267         (thunderx_tunings): Likewise.
33268         (xgene1_tunings): Likewise.
33270 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33272         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33273         Make Cortex-A53 shift costs more accurate.
33275 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33277         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33278         UNSIGNED_FLOAT.
33280 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33282         * config/aarch64/aarch64.c (aarch64_rtx_costs):
33283         Calculate cost of op0 and op1 in PLUS and MINUS cases.
33285 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33287         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33288         Add cost of op0 in the compare-with-fpzero case.
33290 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
33292         * builtins.c (fold_builtin_1): Remove spurious second
33293         semicolon.
33294         * cgraph.h (symtab_node::get_availability): Likewise.
33295         * opts.c (common_handle_option): Remove spurious second semicolon.
33296         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33297         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33299 2015-04-30  Caroline Tice  <cmtice@google.com>
33301         PR gcov-profile/65929
33302         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33303         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33304         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33305         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33306         * doc/tm.texi: Regenerate.
33307         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
33308         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33309         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
33310         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33312 2015-04-30  Marek Polacek  <polacek@redhat.com>
33314         * varasm.c (handle_cache_entry): Fix logic.
33316 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33318         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33319         (*extrsi5_insn_uxtw_alt): Likewise.
33320         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33321         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33322         operations.
33324 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33326         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33327         fabd in ABS case.
33329 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33331         * config/aarch64/aarch64.md
33332         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33333         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33334         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33335         appropriately.  Handle alternative EON form.
33337 2015-04-30  Renlin Li  <renlin.li@arm.com>
33339         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33340         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33342 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33344         PR ipa/65873
33345         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33346         -fstrict-aliasing boundaries.
33348 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33350         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33351         and [SU]MNEGL patterns.
33353 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33355         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33356         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33357         combined arithmetic-shift ops.  Properly handle all shift and extend
33358         operations that can occur in combination with PLUS/MINUS.
33359         Rename maybe_fma to compound_p.
33360         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33361         arithmetic and shift operations.
33363 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33365         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33366         rather than arith_shift cost when costing ADD/MINUS of an
33367         extended value.
33369 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33371         PR lto/65948
33372         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33373         to itself.
33375 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
33377         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33378         are for the same position.
33380 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
33382         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
33383         vectorize_loops.
33384         (vectorize_loops): Use it.
33386 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33388         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33389         for aggregate types.
33390         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33391         type to be non_ODR.
33392         * tree.c (need_assembler_name_p): Compute mangled name for
33393         non-fundamental types and integer types.
33395 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
33397         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33398         manual swaps.
33399         * expr.c (expand_expr_real_2): Likewise.
33401 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33403         * tree.c (build_common_builtin_nodes): Do not build
33404         __builtin_alloca_with_align as equivalent of library alloca.
33406 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33408         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33409         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33410         bugus variants.
33411         * tree.c: Include print-tree.h and ipa-utils.h
33412         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33413         (free_lang_data_in_cgraph): Call verify_type.
33414         (verify_type_variant): New function.
33415         (verify_type): New function.
33416         * tree.h (verify_type): Declare.
33418 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
33420         * config/mips/mips-cpus.def: (mips4): Change default processor
33421         from PROCESSOR_R8000 to PROCESSOR_R10000.
33423 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
33425         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
33426         la/jalr instead of jal.
33428 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
33430         PR target/65871
33431         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
33432         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
33433         (setcc+movzbl peephole2): Check also clobbered reg.
33434         (setcc+andl peephole2): Ditto.
33436 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
33438         PR libgomp/65099
33439         * config/nvptx/mkoffload.c (target_ilp32): New variable.
33440         (main): Set it depending on "-foffload-abi=[...]".
33441         (compile_native, main): Use it to pass "-m32" or "-m64" to the
33442         compiler.
33444 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
33446         PR target/65770
33447         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
33448         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
33449         Flip lane index back at assembly time for bigendian.
33451 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
33453         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
33454         * gimplify.c (gimplify_omp_workshare): Use it.
33456 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33458         * Makefile.in (build/genrecog.o): Depend on inchash.h.
33459         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
33460         build/inchash.o
33461         * genrecog.c: Rewrite most of the code except for the third page.
33463 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33465         * inchash.h, inchash.c: Include bconfig.h for build objects.
33466         * Makefile.in (build/inchash.o): New rule.
33468 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
33470         PR target/65924
33471         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
33472         number in type attribute expression.
33474 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33476         * loop-iv.c (canon_condition): Generalize to all types of integer
33477         constant.
33479 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
33481         * gimple-walk.c: Prune duplicate or unneeded includes.
33482         (walk_gimple_asm): Only call parse_input_constraint or
33483         parse_output_constraint if their findings are used.
33484         Honour parse_input_constraint and parse_output_constraint
33485         result.
33487 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
33489         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
33491 2015-04-29  Tom de Vries  <tom@codesourcery.com>
33493         PR tree-optimization/65893
33494         * passes.def (pass_all_optimizations): Move pass_stdarg to after
33495         pass_dce.
33497 2015-04-29  Richard Biener  <rguenther@suse.de>
33499         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33500         compute GROUP_SIZE for basic-block SLP.
33501         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
33502         take into account gaps.
33503         (vect_get_mask_element): Properly reject references to previous
33504         vectors.
33505         (vect_transform_slp_perm_load): Likewise.
33507 2015-04-29  Christian Bruel  <christian.bruel@st.com>
33509         PR target/64835
33510         * config/i386/i386.c (ix86_default_align): New function.
33511         (ix86_override_options_after_change): Call ix86_default_align.
33512         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
33513         (ix86_override_options_after_change): New function.
33515 2015-04-28  Jeff Law  <law@redhat.com>
33517         * tree-ssa-dom.c (record_equality); Fix comment typos.
33519 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33521         PR tree-optimization/65887
33522         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
33524 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
33526         * doc/extend.texi (Declaring Attributes of Functions): Split into
33527         subsections by target.  Alphabetize the table of common attributes.
33528         Rewrite some of the introductory text to reflect the new structure.
33529         Update some cross-references to point to the new subsections.
33530         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
33531         duplicate copies in the discussion of function, label, and type
33532         attributes.
33534 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
33536         PR bootstrap/65910
33537         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
33539 2015-04-28  Jason Merrill  <jason@redhat.com>
33541         PR c++/65734
33542         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
33543         (finalize_type_size): Respect TYPE_USER_ALIGN.
33544         (layout_type) [ARRAY_TYPE]: Likewise.
33546 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
33548         * config/arm/arm.md (*arm_movt): Fix type attribute.
33549         (*cmpsi_shiftsi): Likewise.
33550         (*cmpsi_shiftsi_swp): Likewise.
33551         (*movsicc_insn): Likewise.
33552         (*cond_move): Likewise.
33553         (*if_plus_move): Likewise.
33554         (*if_move_plus): Likewise.
33555         (*if_arith_move): Likewise.
33556         (*if_move_arith): Likewise.
33557         (*if_shift_move): Likewise.
33558         (*if_move_shift): Likewise.
33559         (*arm_movtas_ze): Likewise.
33560         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
33561         redundancy and type attribute.
33562         (*thumb2_movsi_insn): Fix type attribute.
33563         (*thumb2_addsi_short): Likewise.
33564         (thumb2_addsi3_compare0): Likewise.
33565         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33566         attributes accordingly.
33568 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
33570         PR other/65911
33571         * function.c (pad_to_arg_alignment): Add parentheses.
33573 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
33575         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
33576         libgcc/config/frv/elf-lib.h.
33578 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33580         * tree-call-cdce.c: Fix example in header comment.
33582 2015-04-28  Richard Biener  <rguenther@suse.de>
33584         PR tree-optimization/62283
33585         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
33586         fails fatally and we are vectorizing a basic-block simply
33587         cause the child to be constructed piecewise.
33588         (vect_analyze_slp_cost_1): Adjust.
33589         (vect_detect_hybrid_slp_stmts): Likewise.
33590         (vect_bb_slp_scalar_cost): Likewise.
33591         (vect_get_constant_vectors): For piecewise constructed
33592         constants place them after the last def.
33593         (vect_get_slp_defs): Adjust.
33594         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
33595         externals for basic-block vectorization.
33597 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33599         PR target/63503
33600         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
33601         aarch64-*-*.
33602         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
33603         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
33604         (AARCH64_TUNE_FMA_STEERING): Likewise.
33605         * config/aarch64/aarch64-cores.def: Set
33606         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
33607         FMUL/FMADD instructions.
33608         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
33609         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
33610         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
33611         * config/aarch64/cortex-a57-fma-steering.h: New file.
33612         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
33614 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
33616         * gensupport.c (std_preds): Add missing codes to address_operand entry.
33618 2015-04-28  Richard Biener  <rguenther@suse.de>
33620         PR tree-optimization/65851
33621         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
33622         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
33623         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
33624         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
33625         (ccp_visit_phi_node): Adjust.
33626         (evaluate_stmt): For simplifications to SSA names return its
33627         lattice value if that isn't VARYING.  Return immediately when
33628         simplified to a constant.
33629         (visit_assignment): Adjust.
33630         (ccp_visit_stmt): Likewise.
33632 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33634         PR tree-optimization/65818
33635         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
33636         evaluated.
33638 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33640         * calls.c (save_fixed_argument_area): Don't check
33641         ARGS_GROW_DOWNWARD with the preprocessor.
33642         (restore_fixed_argument_area): Likewise.
33643         (mem_overlaps_already_clobbered_arg_p): Likewise.
33644         (check_sibcall_argument_overlap): Likewise.
33645         (expand_call): Likewise.
33646         (emit_library_call_value_1): Likewise.
33647         (store_one_arg): Likewise.
33648         * function.c (assign_parms): Likewise.
33649         (locate_and_pad_parm): Likewise.
33650         (pad_to_arg_alignment): Likewise.
33651         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33653 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33655         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
33656         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
33657         * calls.c (save_fixed_argument_area): Don't chekc if
33658         ARGS_GROW_DOWNWARD is defined.
33659         (restore_fixed_argument_area): Likewise.
33660         (mem_overlaps_already_clobbered_arg_p): Likewise.
33661         (check_sibcall_argument_overlap): Likewise.
33662         (expand_call): Likewise.
33663         (emit_library_call_value_1): Likewise.
33664         (store_one_arg): Likewise.
33665         * function.c (assign_parms): Likewise.
33666         (locate_and_pad_parm): Likewise.
33667         (pad_to_arg_alignment): Likewise.
33668         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33670 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33672         * defaults.h (gen_epilogue): New function.
33673         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
33674         defined.
33675         * cfgrtl.c (cfg_layout_finalize): Likewise.
33676         * df-scan.c: Likewise.
33677         * function.c (thread_prologue_and_epilogue_insns): Likewise.
33678         (reposition_prologue_and_epilogue_notes): Likewise.
33679         * reorg.c (find_end_label): Likewise.
33680         * toplev.c: Likewise.
33682 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33684         * bb-reorder.c (HAVE_return): Don't check if its undefined.
33685         * defaults.h (gen_simple_return): New function.
33686         (gen_simple_return): Likewise.
33687         (HAVE_return): Add default definition to false.
33688         (HAVE_simple_return): Likewise.
33689         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
33690         HAVE_return and HAVE_simple_return are defined.
33691         * function.c (gen_return_pattern): Likewise.
33692         (convert_jumps_to_returns): Likewise.
33693         (thread_prologue_and_epilogue_insns): Likewise.
33694         * reorg.c (find_end_label): Likewise.
33695         (dbr_schedule): Likewise.
33696         * shrink-wrap.c: Likewise.
33697         * shrink-wrap.h: Likewise.
33699 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33701         * defaults.h (EPILOGUE_USES): Add default definition of false.
33702         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
33703         * resource.c (init_resource_info): Likewise.
33705 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33707         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
33708         to false.
33709         * dwarf2out.c (field_byte_offset): REmove check if
33710         PCC_BITFIELD_TYPE_MATTERS is defined.
33711         * stor-layout.c (layout_decl): Likewise.
33712         (update_alignment_for_field): Likewise.
33713         (place_field): Likewise.
33715 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33717         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
33718         true.
33719         * regrename.c (check_new_reg_p): Remove check if
33720         HARD_REGNO_RENAME_OK is defined.
33721         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
33723 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33725         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33726         * cse.c (fold_rtx): Likewise.
33727         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33728         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33729         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33730         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33731         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33732         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33733         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33734         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33735         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33736         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33737         * Likewise.
33738         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33739         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33740         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33741         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33742         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33743         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33744         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33745         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33746         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33747         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33748         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33749         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33750         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33751         * doc/tm.texi: Regenerate.
33752         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33753         either true or false.
33755 2015-04-27  Jeff Law  <law@redhat.com>
33757         PR tree-optimization/65217
33758         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33759         of them has a single use, make sure it is the LHS of the implied
33760         copy.
33762 2015-04-28  Alan Modra  <amodra@gmail.com>
33764         PR target/65810
33765         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33766         (offsettable_ok_by_alignment): Use minimum of decl and toc
33767         pointer alignment.  Replace dead code with assertion.
33768         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
33769         case if size exceeds toc pointer alignment.
33770         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33771         (rs6000_emit_move): Likewise.
33772         * configure.ac: Add linker toc pointer alignment check.
33773         * configure: Regenerate.
33774         * config.in: Regenerate.
33776 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
33778         * config.gcc: Add h8300-*-linux.
33779         * config/h8300/linux.h: New.
33780         * config/h8300/t-linux: New.
33781         * config/h8300/h8300.c (h8300_option_override): Normal mode
33782         is not supported for h8300-*-linux.
33783         (h8300_file_start): Target priority change.
33784         (get_shift_alg): Likewise.
33785         (h8300_shift_need_scratch_p): Likewise.
33786         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33787         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33789 2015-04-27  Caroline Tice  <cmtice@google.com>
33791         * final.c (final_scan_insn):  Output cold_function_name as function
33792         type.
33793         * varasm.c (cold_function_name):  Make global.
33794         (assemble_start_function):  Re-set cold_function_name.
33795         (assemble_end_function): Output cold partition size.
33796         * varasm.h (cold_function_name):  Declare global.
33798 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
33800         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33801         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33802         constraint.
33803         (*movxi_internal_avx512f): Ditto.
33804         (define_split): Check for xmm16+, when splitting scalar float_extend.
33805         (*extendsfdf2_mixed): Use "v" constraint.
33806         (define_split): Check for xmm16+, when splitting scalar float_truncate.
33807         (*truncdfsf_fast_sse): Use "v" constraint.
33808         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33809         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33810         (define_peephole2): Check for xmm16+, when converting scalar
33811         float_truncate.
33812         (define_peephole2): Check for xmm16+, when converting scalar
33813         float_extend.
33814         (*fop_<mode>_comm_mixed): Use "v" constraint.
33815         (*fop_<mode>_comm_sse): Ditto.
33816         (*fop_<mode>_1_mixed): Ditto.
33817         (*sqrt<mode>2_sse): Ditto.
33818         (*ieee_s<ieee_maxmin><mode>3): Ditto.
33820 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33822         * combine.c (simplify_if_then_else): Use std::swap instead
33823         of manually swapping.
33824         (known_cond): Likewise.
33825         (simplify_comparison): Likewise.
33827 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
33829         PR target/64579
33830         * config/rs6000/htm.md: Remove all define_expands.
33831         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33832         UNSPECV_HTM_TABORTWCI): Remove.
33833         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33834         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33835         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33836         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33837         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33838         tabortwci_internal): Remove define_insns.
33839         (tabort<wd>c, tabort<wd>ci): New define_insns.
33840         (tabort): Use gpc_reg_operand.
33841         (tcheck): Remove operand.
33842         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33843         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33844         expected value.
33845         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33846         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
33847         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33848         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33849         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33850         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33851         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33852         (tcheck): Remove builtin argument.
33853         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33854         not TARGET_64BIT.
33855         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
33856         tabortdc and tabortdci builtins when not in 64-bit mode.
33857         Modify code to handle the loss of the HTM define_expands.
33858         Emit code to copy the CR register to TARGET.
33859         (htm_init_builtins): Modify code to handle the loss of the HTM
33860         define_expands.
33861         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33862         (RS6000_BTC_64BIT): Likewise.
33863         (RS6000_BTC_CR): New macro.
33864         * doc/extend.texi: Update documentation for htm builtins.
33866 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33868         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33869         of manually swapping.
33870         (simplify_associative_operation): Likewise.
33871         (simplify_binary_operation): Likewise.
33872         (simplify_plus_minus): Likewise.
33873         (simplify_relational_operation): Likewise.
33874         (simplify_ternary_operation): Likewise.
33876 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33878         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33879         (xs_hi_nonmemory_operand): Remove error.
33880         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33881         general_operand rather than xs_hi_general_operand.
33883 2015-04-27  Richard Biener  <rguenther@suse.de>
33885         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33886         (record_equivalences_from_stmt): Valueize rhs.
33887         (record_equality): Canonicalize x and y order via
33888         tree_swap_operands_p.  Do not swap operands for same loop depth.
33890 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
33892         PR target/65296
33893         PR target/65895
33894         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33895         Add hint how to use own spec file.
33897 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
33899         PR tree-optimization/65875
33900         * tree-vrp.c (update_value_range): If in is_new case setting
33901         old_vr to VR_VARYING, also set new_vr to it.  Remove
33902         old_vr->type == VR_VARYING test.
33903         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33904         SSA_PROP_INTERESTING if update_value_range returned true,
33905         but new range is VR_VARYING.
33907 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33909         * combine.c (sign_extend_short_imm): New.
33910         (set_nonzero_bits_and_sign_copies): Use above new function for sign
33911         extension of src short immediate.
33912         (reg_nonzero_bits_for_combine): Likewise for tem.
33914 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33916         * stor-layout.c (self_referential_component_ref_p): New predicate.
33917         (copy_self_referential_tree_r): Use it.
33918         (self_referential_size): Punt for simple operations directly involving
33919         self-referential component references.
33920         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33922 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33924         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33926 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33928         * vec.h (vec): Make splice arguments const.  Update definitions
33929         accordingly.
33931 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
33933         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33934         alternatives.
33936 2015-04-26  Tom de Vries  <tom@codesourcery.com>
33938         PR tree-optimization/65826
33939         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33941 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
33943         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33944         (*madd3<mode>): Ditto.
33945         (*msub4<mode>): Ditto.
33946         (*msub3<mode>): Ditto.
33947         (*nmadd4<mode>): Ditto.
33948         (*nmadd3<mode>): Ditto.
33949         (*nmadd4<mode>_fastmath): Ditto.
33950         (*nmadd3<mode>_fastmath): Ditto.
33951         (*nmsub4<mode>): Ditto.
33952         (*nmsub3<mode>): Ditto.
33953         (*nmsub4<mode>_fastmath): Ditto.
33954         (*nmsub3<mode>_fastmath): Ditto.
33956 2015-04-24  Jason Merrill  <jason@redhat.com>
33958         PR c++/50800
33959         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33960         down when building TYPE_CANONICAL.
33961         (build_pointer_type_for_mode): Likewise.
33963 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
33965         * genrecog.c (validate_pattern): Check matching constraint refers
33966         to a lower numbered operand.
33968 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33970         PR target/65849
33971         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33972         save to independent variables use the Save attribute.  This will
33973         allow these options to be modified with the #pragma/attribute
33974         target support.
33975         (-mallow-movmisalign): Likewise.
33976         (-mallow-df-permute): Likewise.
33977         (-msched-groups): Likewise.
33978         (-malways-hint): Likewise.
33979         (-malign-branch-targets): Likewise.
33980         (-mvectorize-builtins): Likewise.
33981         (-msave-toc-indirect): Likewise.
33983         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33984         can be set via the #pragma/attribute target support.
33985         (rs6000_opt_vars): Likewise.
33986         (rs6000_inner_target_options): If VSX was set, also set
33987         -mno-avoid-indexed-addresses.
33989 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33991         * config/arm/iterators.md (shiftable_ops): Rename to...
33992         (SHIFTABLE_OPS): ... This.  Update use in comments.
33993         (ior_xor): Rename to...
33994         (IOR_XOR): ... This.
33995         (vqh_ops): Rename to...
33996         (VQH_OPS): ... This.
33997         (vqhs_ops): Rename to...
33998         (VQHS_OPS): ... This.
33999         (rshifts): Rename to...
34000         (RSHIFTS): ... This.
34001         (returns): Rename to...
34002         (RETURNS): ... This.
34003         * config/arm/arm.md: Update uses of the above.
34004         * config/arm/neon.md: Likewise.
34006 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34008         * config.host (case ${host}): Add aarch64*-*-linux case.
34009         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
34010         fields to all the cores.
34011         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
34012         Add MCPU_MTUNE_NATIVE_SPECS.
34013         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
34014         field to all extensions.
34015         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
34016         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
34017         Adjust definition of AARCH64_OPT_EXTENSION.
34018         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
34019         (MCPU_MTUNE_NATIVE_SPECS): Define.
34020         * config/aarch64/driver-aarch64.c: New file.
34021         * config/aarch64/x-arch64: New file.
34022         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
34023         -mtune and -march.
34025 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
34026             Wei Mi  <wmi@google.com>
34028         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
34029         * config/i386/i386.c (extract_base_offset_in_addr): New function.
34030         (ix86_operands_ok_for_move_multiple): Ditto.
34031         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
34032         (movlpd/movhpd to movupd peephole2): Ditto.
34034 2015-04-24  Marek Polacek  <polacek@redhat.com>
34036         PR c/61534
34037         * input.h (from_macro_expansion_at): Define.
34039         PR c/63357
34040         * doc/invoke.texi: Update description of -Wlogical-op.
34042 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34044         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
34045         ternary operator in fprintf and harmonize spacing.
34047 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
34049         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
34050         Mark operand1 commutative.
34052 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
34054         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
34055         input operands in memory.
34056         (*vec_concatv2si_sse4_1): Ditto.
34057         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
34058         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
34059         register_operand.
34060         (vec_extract_hi_v32hi): Ditto.
34061         (vec_extract_hi_v64hi): Ditto.
34062         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
34064 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34065             Steven Bosscher <steven@gcc.gnu.org>
34067         PR rtl-optimization/34503
34068         * cprop.c (cprop_reg_p): New.
34069         (hash_scan_set): Use above function to check if register can be
34070         propagated.
34071         (find_avail_set): Return up to two sets, one whose source is a
34072         register and one whose source is a constant.  Sets are returned in an
34073         array passed as parameter rather than as a return value.
34074         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
34075         sets returned by find_avail_set, starting with the one whose source is
34076         a constant. Use cprop_reg_p to check if register can be propagated.
34077         (do_local_cprop): Use cprop_reg_p to check if register can be
34078         propagated.
34079         (implicit_set_cond_p): Likewise.
34081 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34083         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
34084         (sem_function::equals): IGNORED_NODES parameter is now unused;
34085         update call of equals_private.
34086         (sem_function::equals_private): Do not call equals_wpa; skip
34087         gimple body matching if there is no body.
34088         (sem_function::init): Add logic to hash tthunk info.
34089         (sem_function::parse): Also parse thunks.
34090         * ipa-icf.h (equals_private): Update declaration.
34092 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34094         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
34095         asterisk from name so this can be generated directly.
34096         (*altivec_stvx_<mode>_internal): Likewise.
34097         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
34098         that this is never called during or after reload/lra.
34099         (rs6000_frame_related): Remove split_reg
34100         argument and logic that references it.
34101         (emit_frame_save): Remove last parameter from call to
34102         rs6000_frame_related.
34103         (rs6000_emit_prologue): Remove last parameter from eight calls to
34104         rs6000_frame_related.  Force generation of stvx instruction for
34105         Altivec register saves.  Remove split_reg handling, which is no
34106         longer needed.
34107         (rs6000_emit_epilogue):  Force generation of lvx instruction for
34108         Altivec register restores.
34110 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34112         * config/rs6000/rs6000.opt (mcrypto): Change option description to
34113         match category changes in ISA 2.07B.
34115 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34117         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
34118         iterators.
34119         (cmp_op, cmp_type): New code attributes.
34120         (NEON_VCMP, NEON_VACMP): New int iterators.
34121         (cmp_op_unsp): New int attribute.
34122         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
34123         (neon_vceq<mode>): Delete.
34124         (neon_vc<cmp_op><mode>_insn): New pattern.
34125         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
34126         (neon_vcgeu<mode>): Delete.
34127         (neon_vcle<mode>): Likewise.
34128         (neon_vclt<mode>: Likewise.
34129         (neon_vcage<mode>): Likewise.
34130         (neon_vcagt<mode>): Likewise.
34131         (neon_vca<cmp_op><mode>): New define_expand.
34132         (neon_vca<cmp_op><mode>_insn): New pattern.
34133         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34135 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34137         * tree.h (attribute_value_equal): Declare.
34138         * tree.c (attribute_value_equal): Export.
34140 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34142         * ipa-icf.c (sem_item::compare_attributes): New function.
34143         (sem_item::compare_referenced_symbol_properties): Compare variable
34144         attributes.
34145         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34146         (sem_function::param_used_p): New function.
34147         (sem_function::equals_wpa): Fix attribute comparsion; match
34148         parameter type codes; do not compare paremter flags when
34149         they are not used; compare edge flags; compare indirect calls.
34150         (sem_item::update_hash_by_addr_refs): Hash reference type.
34151         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34152         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34153         reference use type.
34154         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34155         * ipa-icf.h (compare_attributes, param_used_p): Declare.
34157 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34159         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34160         cleanup.
34161         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34162         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34163         (sem_item::compare_referenced_symbol_properties): New.
34164         (sem_item::hash_referenced_symbol_properties): New.
34165         (sem_item::compare_cgraph_references): Rename to ...
34166         (sem_item::compare_symbol_references): ... this one; use
34167         compare_referenced_symbol_properties.
34168         (sem_function::equals_wpa): Do not compare
34169         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34170         DECL_IS_OPERATOR_NEW; compare pointer sizes.
34171         (sem_item::update_hash_by_addr_refs): Call
34172         hash_referenced_symbol_properties.
34173         (sem_item::update_hash_by_local_refs): Cleanup.
34174         (sem_function::merge): Do not mix up symbol properties.
34175         (sem_variable::equals_wpa): Use compare_symbol_references.
34176         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34177         (sem_item::hash_referenced_symbol_properties): New.
34178         (sem_item::compare_symbol_references): New.
34179         (sem_item::compare_cgraph_references): Remove.
34181 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
34183         PR target/26702
34184         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34185         Emit size of local.
34187 2015-04-23  Nick Clifton  <nickc@redhat.com>
34189         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34190         ATTRIBUTE_UNUSED to x parameter.
34191         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34193 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34195         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34196         TARGET_CRYPTO to TARGET_P8_VECTOR>
34197         (crypto_vpermxor_<mode>): Likewise.
34198         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34199         (BU_CRYPTO_3A): Likewise.
34200         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34201         (BU_CRYPTO_OVERLOAD_3A): New #define.
34202         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34203         (VPMSUMH): Likewise.
34204         (VPMSUMW): Likewise.
34205         (VPMSUMD): Likewise.
34206         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34207         (VPERMXOR_V4SI): Likewise.
34208         (VPERMXOR_V8HI): Likewise.
34209         (VPERMXOR_V16QI): Likewise.
34210         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34211         BU_CRYPTO_OVERLOAD_2A.
34212         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34213         BU_CRYPTO_OVERLOAD_3A.
34214         * config/rs6000/rs6000.opt (mcrypto): Change description of
34215         option.
34217 2015-04-23  Richard Biener  <rguenther@suse.de>
34219         * passes.def: Remove copy propagation passes run directly after CCP.
34220         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34221         SSA names.
34222         (ccp_visit_phi_node): Rework to handle first executable edge
34223         specially.
34225 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
34227         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34228         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34229         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34230         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34231         (thumb_legimitimize_reload_address): Remove.
34232         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34233         Remove.
34234         (thumb_legimitimize_reload_address): Remove.
34236 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34238         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34240 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34242         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34243         MAX_LDM_STM_OPS.
34244         (store_multiple): Likewise.
34246 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34248         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34249         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34250         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34251         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34252         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34253         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34254         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34255         Specify issue_rate value.
34256         (arm_issue_rate): Look up issue rate from tuning structs. Remove
34257         large switch statement.
34258         (arm_marvell_pj4_tune): New struct.
34259         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34260         struct.
34262 2015-04-23  Richard Biener  <rguenther@suse.de>
34264         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34265         (vect_find_last_store_in_slp_instance): Rename to ...
34266         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34267         (vect_analyze_slp_cost_1): Use vector_load for constant defs
34268         and vec_construct for external defs when estimating prologue cost.
34269         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34270         Compute costs here only when vectorizing loops.
34271         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34272         have been determined.
34273         (vect_schedule_slp_instance): Simplify vectorized code placement
34274         and prepare for in-BB external defs.
34275         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34276         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34277         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34278         guard.
34279         (vect_model_load_cost): Likewise.
34280         (vectorizable_store): Instead add it here.
34281         (vectorizable_load): Likewise.
34282         (vect_is_simple_use): Dump def type textually.
34284 2015-04-23  Richard Biener  <rguenther@suse.de>
34286         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34287         * cfgloop.c (verify_loop_structure): Verify the root loop node.
34288         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34289         instead of get_eh_region_from_lp_number.
34290         * loop-init.c (fix_loop_structure): If we removed a loop, reset
34291         the SCEV cache.
34293 2015-04-23  Anton Blanchard  <anton@samba.org>
34295         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34296         need for -mprofile-kernel to save LR to stack.
34298 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34300         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34301         adjustments.
34302         (insn_is_swappable_p): Return 1 for a convert from double to
34303         single precision when all of its uses are splats of BE element
34304         zero.
34306 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
34308         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34310 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34312         PR target/65456
34313         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
34314         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34315         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34316         option.
34317         (rs6000_builtin_mask_for_load): Return 0 for targets with
34318         efficient unaligned VSX accesses so that the vectorizer will use
34319         direct unaligned loads.
34320         (rs6000_builtin_support_vector_misalignment): Always return true
34321         for targets with efficient unaligned VSX accesses.
34322         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34323         stores on targets with efficient unaligned VSX accesses is almost
34324         always the same as the cost of an aligned load or store, so model
34325         it that way.
34326         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34327         unaligned vectors if we have efficient unaligned VSX accesses.
34328         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34329         undocumented option.
34331 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34333         Revert:
34334         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34336         * config.gcc (LIBC_MUSL): New tm_defines macro.
34337         * config/linux.h (OPTION_MUSL): Define.
34338         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34339         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34340         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34342         * config/linux.opt (mmusl): New option.
34343         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34344         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34346         * configure: Regenerate.
34348 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34350         * config.gcc (LIBC_MUSL): New tm_defines macro.
34351         * config/linux.h (OPTION_MUSL): Define.
34352         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34353         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34354         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34356         * config/linux.opt (mmusl): New option.
34357         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34358         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34360         * configure: Regenerate.
34362 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
34364         * doc/invoke.texi (-fsanitize-sections): Update description.
34365         * asan.c (set_sanitized_sections): Parse incoming arg.
34366         (section_sanitized_p): Support wildcards.
34368 2015-04-22  Tom de Vries  <tom@codesourcery.com>
34370         PR tree-optimization/65823
34371         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34372         equality between ap_copy and ap.
34374 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34376         PR target/47098
34377         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34379 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34381         PR target/47122
34382         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34384 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34386         PR target/55144
34387         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34388         remove already contained t-files.
34390 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34392         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34393         Remove unneeded forward declarations.
34394         (suitable_for_tail_call_opt_p): Commentary typo fix.
34396 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34398         * varasm.c (emit_bss): Remove redundant guard.
34400 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34402         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34404 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34406         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34408 2015-04-22  Hale Wang  <hale.wang@arm.com>
34409             Terry Guo  <terry.guo@arm.com>
34411         PR rtl-optimization/64818
34412         * combine.c (can_combine_p): Don't combine user-specified
34413         register if it is in an asm input.
34415 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
34417         PR ipa/65076
34418         * passes.def (early_optimizations): Add pass_dse.
34420 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34422         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34423         * reorg.c (redundant_insn): Remove ifdef
34424         INSN_REFERENCES_ARE_DELAYED.
34425         * resource.c (mark_referenced_resources): Likewise.
34427 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34429         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
34430         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
34431         * resource.c (mark_set_resources): Likewise.
34433 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34435         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
34436         * cfgcleanup.c (flow_find_cross_jump): Likewise.
34437         (flow_find_head_matching_sequence): Likewise.
34438         (try_head_merge_bb): Likewise.
34439         * combine.c (can_combine_p): Likewise.
34440         (try_combine): Likewise.
34441         (distribute_notes): Likewise.
34442         * df-problems.c (can_move_insns_across): Likewise.
34443         * final.c (final): Likewise.
34444         * gcse.c (insert_insn_end_basic_block): Likewise.
34445         * ira.c (find_moveable_pseudos): Likewise.
34446         * reorg.c (try_merge_delay_insns): Likewise.
34447         (fill_simple_delay_slots): Likewise.
34448         (fill_slots_from_thread): Likewise.
34449         * sched-deps.c (sched_analyze_2): Likewise.
34451 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34453         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
34454         PIC_OFFSET_TABLE_REGNUM.
34456 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34458         * alias.c (init_alias_target): Remove ifdef
34459         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
34460         * df-scan.c (df_insn_refs_collect): Likewise.
34461         (df_get_regular_block_artificial_uses): Likewise.
34462         (df_get_eh_block_artificial_uses): Likewise.
34463         (df_get_entry_block_def_set): Likewise.
34464         (df_get_exit_block_use_set): Likewise.
34465         * emit-rtl.c (gen_rtx_REG): Likewise.
34466         * ira.c (ira_setup_eliminable_regset): Likewise.
34467         * reginfo.c (init_reg_sets_1): Likewise.
34468         * regrename.c (rename_chains): Likewise.
34469         * reload1.c (reload): Likewise.
34470         (eliminate_regs_in_insn): Likewise.
34471         * resource.c (mark_referenced_resources): Likewise.
34472         (init_resource_info): Likewise.
34474 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34476         * defaults.h (MASK_RETURN_ADDR): New definition.
34477         * except.c (expand_builtin_extract_return_addr): Remove ifdef
34478         MASK_RETURN_ADDR.
34480 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34482         * defaults.h (RETURN_ADDR_OFFSET): New definition.
34483         * except.c (expand_builtin_extract_return_addr): Remove ifdef
34484         RETURN_ADDR_OFFSET.
34485         (expand_builtin_frob_return_addr): Likewise.
34487 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34489         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
34490         (try_redirect_by_replacing_jump): Likewise.
34491         (rtl_tidy_fallthru_edge): Likewise.
34492         * combine.c (insn_a_feeds_b): Likewise.
34493         (find_split_point): Likewise.
34494         (simplify_set): Likewise.
34495         * cprop.c (cprop_jump): Likewise.
34496         * cse.c (cse_extended_basic_block): Likewise.
34497         * df-problems.c (can_move_insns_across): Likewise.
34498         * function.c (emit_use_return_register_into_block): Likewise.
34499         * haifa-sched.c (sched_init): Likewise.
34500         * ira.c (find_moveable_pseudos): Likewise.
34501         * loop-invariant.c (find_invariant_insn): Likewise.
34502         * lra-constraints.c (curr_insn_transform): Likewise.
34503         * postreload.c (reload_combine_recognize_const_pattern):
34504         * Likewise.
34505         * reload.c (find_reloads): Likewise.
34506         * reorg.c (delete_scheduled_jump): Likewise.
34507         (steal_delay_list_from_target): Likewise.
34508         (steal_delay_list_from_fallthrough): Likewise.
34509         (redundant_insn): Likewise.
34510         (fill_simple_delay_slots): Likewise.
34511         (fill_slots_from_thread): Likewise.
34512         (delete_computation): Likewise.
34513         * sched-rgn.c (add_branch_dependences): Likewise.
34515 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34517         * genconfig.c (main): Always define HAVE_cc0.
34518         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
34519         HAVE_cc0.
34520         * cfgcleanup.c (flow_find_cross_jump): Likewise.
34521         (flow_find_head_matching_sequence): Likewise.
34522         (try_head_merge_bb): Likewise.
34523         * cfgrtl.c (rtl_merge_blocks): Likewise.
34524         (try_redirect_by_replacing_jump): Likewise.
34525         (rtl_tidy_fallthru_edge): Likewise.
34526         * combine.c (do_SUBST_MODE): Likewise.
34527         (insn_a_feeds_b): Likewise.
34528         (combine_instructions): Likewise.
34529         (can_combine_p): Likewise.
34530         (try_combine): Likewise.
34531         (find_split_point): Likewise.
34532         (subst): Likewise.
34533         (simplify_set): Likewise.
34534         (distribute_notes): Likewise.
34535         * cprop.c (cprop_jump): Likewise.
34536         * cse.c (cse_extended_basic_block): Likewise.
34537         * df-problems.c (can_move_insns_across): Likewise.
34538         * final.c (final): Likewise.
34539         (final_scan_insn): Likewise.
34540         * function.c (emit_use_return_register_into_block): Likewise.
34541         * gcse.c (insert_insn_end_basic_block): Likewise.
34542         * haifa-sched.c (sched_init): Likewise.
34543         * ira.c (find_moveable_pseudos): Likewise.
34544         * loop-invariant.c (find_invariant_insn): Likewise.
34545         * lra-constraints.c (curr_insn_transform): Likewise.
34546         * optabs.c (prepare_cmp_insn): Likewise.
34547         * postreload.c (reload_combine_recognize_const_pattern):
34548         * Likewise.
34549         * reload.c (find_reloads): Likewise.
34550         (find_reloads_address_1): Likewise.
34551         * reorg.c (delete_scheduled_jump): Likewise.
34552         (steal_delay_list_from_target): Likewise.
34553         (steal_delay_list_from_fallthrough): Likewise.
34554         (try_merge_delay_insns): Likewise.
34555         (redundant_insn): Likewise.
34556         (fill_simple_delay_slots): Likewise.
34557         (fill_slots_from_thread): Likewise.
34558         (delete_computation): Likewise.
34559         (relax_delay_slots): Likewise.
34560         * sched-deps.c (sched_analyze_2): Likewise.
34561         * sched-rgn.c (add_branch_dependences): Likewise.
34563 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34565         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
34566         that is trivially ded on non cc0 targets.
34567         (simplify_set): Likewise.
34568         (mark_used_regs_combine): Likewise.
34569         * cse.c (new_basic_block): Likewise.
34570         (fold_rtx): Likewise.
34571         (cse_insn): Likewise.
34572         (cse_extended_basic_block): Likewise.
34573         (set_live_p): Likewise.
34574         * rtlanal.c (canonicalize_condition): Likewise.
34575         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
34577 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34579         * conditions.h: Define macros even if HAVE_cc0 is undefined.
34580         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
34581         * final.c: Likewise.
34582         * jump.c: Likewise.
34583         * recog.c: Likewise.
34584         * recog.h: Declare functions even when HAVE_cc0 is undefined.
34585         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
34587 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34589         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
34590         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
34591         * builtins.c (expand_builtin): Remove check if
34592         EH_RETURN_DATA_REGNO is defined.
34593         * df-scan.c (df_bb_refs_collect): Likewise.
34594         (df_get_exit_block_use_set): Likewise.
34595         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
34596         * ira-lives.c (process_bb_node_lives): Likewise.
34597         * lra-lives.c (process_bb_lives): Likewise.
34599 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
34601         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
34602         FIRST_PSEUDO_REG): New.
34603         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
34604         (ARG_POINTER_REGNUM): Define to ARGP_REG.
34605         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
34606         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
34607         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
34608         (FIRST_INT_REG): New.
34609         (LAST_INT_REG): New.
34610         (FIRST_*_REG): Define using *_REG.
34611         (LAST_*_REG): Ditto.
34612         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
34613         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
34614         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
34616 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34618         * expmed.c: (synth_mult): Only assume overlapping
34619         shift with previous steps in alg_sub_t_m2 case.
34621 2015-04-21  Richard Biener  <rguenther@suse.de>
34623         PR tree-optimization/65650
34624         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
34625         transitions involving copies.
34626         (set_lattice_value): Adjust for copy lattice state.
34627         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
34628         if that doesn't dominate the merge point.
34629         (bit_value_unop): Adjust what we treat as varying mask.
34630         (bit_value_binop): Likewise.
34631         (bit_value_assume_aligned): Likewise.
34632         (evaluate_stmt): When we simplified to a SSA name record a copy
34633         instead of dropping to varying.
34634         (visit_assignment): Simplify.
34636         * gimple-match.h (gimple_simplify): Add another callback.
34637         * gimple-fold.c (fold_stmt_1): Adjust caller.
34638         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
34639         for the 2nd callback.
34640         * gimple-match-head.c (gimple_simplify): Add a callback that is
34641         used to valueize the stmt operands and use it that way.
34643 2015-04-21  Richard Biener  <rguenther@suse.de>
34645         PR tree-optimization/65788
34646         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
34648 2015-04-21  Richard Biener  <rguenther@suse.de>
34650         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
34651         vec_construct cost by vec_stmt_cost.
34653 2015-04-21  Richard Biener  <rguenther@suse.de>
34655         * cfghooks.h (create_basic_block): Replace with two overloads
34656         for RTL and GIMPLE.
34657         (split_block): Likewise.
34658         * cfghooks.c (split_block): Rename to ...
34659         (split_block_1): ... this.
34660         (split_block): Add two type-safe overloads for RTL and GIMPLE.
34661         (split_block_after_labels): Call split_block_1.
34662         (create_basic_block): Rename to ...
34663         (create_basic_block_1): ... this.
34664         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
34665         (create_empty_bb): Call create_basic_block_1.
34666         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
34667         split_block_after_labels.
34668         * omp-low.c (expand_parallel_call): Likewise.
34669         (expand_omp_target): Likewise.
34670         (simd_clone_adjust): Likewise.
34671         * tree-chkp.c (chkp_get_entry_block): Likewise.
34672         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
34673         create_basic_block overload.
34674         (cgraph_node::expand_thunk): Likewise.
34675         * tree-cfg.c (make_blocks): Likewise.
34676         (handle_abnormal_edges): Likewise.
34677         * tree-inline.c (copy_bb): Likewise.
34679 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34681         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
34682         New pattern.
34683         (*xor_one_cmplsidi3_ze): Likewise.
34685 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34687         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
34688         use df_remove_problem rather than manually removing problems, leaving
34689         holes in df->problems_in_order[].
34691 2015-04-21  Tom de Vries  <tom@codesourcery.com>
34693         PR tree-optimization/65802
34694         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
34696 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34698         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
34699         Increase to 128.
34700         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
34701         at '.'.  Assert that there's enough space for everything.
34703 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
34705         PR tree-optimization/64950
34706         Revert:
34707         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
34709         PR target/41089
34710         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
34711         as volatile.
34713 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
34715         PR rtl-optimization/64916
34716         * cfgcleanup.c (values_equal_p): New function.
34717         (can_replace_by): Use it.
34719 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
34721         PR c++/65801
34722         * doc/invoke.texi ([-Wnarrowing]): Update.
34724 2015-04-20  Jeff Law  <law@redhat.com>
34726         PR tree-optimization/65658
34727         * tree-ssa-threadupdate.c (redirection_block_p): Remove
34728         redundant test for GIMPLE_ASSIGN in last change.
34730 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
34732         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34733         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34734         (legitimize_tls_address): Ditto.
34735         (ix86_expand_move): Ditto.
34736         (ix86_expand_binary_operator): Remove reload_in_progress checks.
34737         (ix86_expand_unary_operator): Ditto.
34738         * config/i386/predicates.md (index_register_operand): Ditto.
34740 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
34742         * reorg.c (try_merge_delay_insns): Improve correctness checking
34743         for targets with multiple delay slots.
34745 2015-04-20  Jeff Law  <law@redhat.com>
34747         PR tree-optimization/65658
34748         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34749         statements too.
34751 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34753         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34754         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34755         Delete.
34757 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
34759         PR debug/65807
34760         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34762 2015-04-20  Richard Biener  <rguenther@suse.de>
34764         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34765         * gimple-fold.c (gimple_build_valueize): New function.
34766         (gimple_build): Always use gimple_build_valueize as valueize hook.
34768 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34770         PR target/64134
34771         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34772         and overwrite variable parts if <= 1/2 the elements are variable.
34774 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
34776         PR rtl-optimization/65805
34777         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34778         Don't use difference of offset and previous offset if
34779         update_sp_offset is non-zero.
34780         (eliminate_regs_in_insn): Ditto.
34781         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34782         lra_eliminate_regs_1 call.
34783         * lra-constraints.c (get_equiv_with_elimination): Ditto.
34785 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
34787         * hash-table.h: Remove version of hash_table that stored value_type *.
34788         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34789         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34790         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34791         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34792         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34793         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34794         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34795         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34796         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34797         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34798         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34799         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34800         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34801         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34802         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34803         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34805 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34806             Jakub Jelinek  <jakub@redhat.com>
34808         PR target/65787
34809         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34810         subsequent SH_NONE operand does not overwrite an existing *special
34811         value.
34812         (adjust_extract): Handle case where a vec_extract operation is
34813         wrapped in a PARALLEL.
34815 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34817         PR target/65780
34818         * config/i386/i386.c (ix86_binds_local_p): Define only if
34819         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34821 2015-04-17  Jeff Law  <law@redhat.com>
34823         PR tree-optimization/47679
34824         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34825         * tree-ssa-scopedtables.c: New file.
34826         * tree-ssa-scopedtables.h: New file.
34827         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34828         (const_and_copies): Change name/type.
34829         (record_const_or_copy): Move into tree-ssa-scopedtables.c
34830         (record_const_or_copy_1): Similarly.
34831         (restore_vars_to_original_value): Similarly.
34832         (pass_dominator::execute): Create and destroy const_and_copies table.
34833         (thread_across_edge): Update passing of const_and_copies.
34834         (record_temporary_equivalence): Use method calls rather than
34835         manipulating const_and_copies directly.
34836         (record_equality, cprop_into_successor_phis): Similarly.
34837         (dom_opt_dom_walker::before_dom_children): Similarly.
34838         (dom_opt_dom_walker::after_dom_children): Similarly.
34839         (eliminate_redundant_computations): Similarly.
34840         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34841         (record_temporary_equivalence): Likewise.
34842         (invalidate_equivalences): Likewise.
34843         (record_temporary_equivalences_from_phis): Update due to type
34844         change of const_and_copies.  Use method calls rather than
34845         manipulating the stack directly.
34846         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34847         (thread_through_normal_block, thread_across_edge): Likewise.
34848         (thread_across_edge): Likewise.
34849         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34850         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
34851         of equiv_stack.
34852         (identify_jump_threads): Update due to type change of equiv_stack.
34853         (finalize_jump_threads): Delete the equiv_stack when complete.
34855 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
34857         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34858         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34859         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34861 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
34863         PR target/65535
34864         * config.gcc: Exit with a comment when we do not have a major version
34865         number for the FreeBSD target.
34867 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34869         PR target/65689
34870         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34871         maybe_allows_mem bitfields.
34872         (maybe_allows_none_start, maybe_allows_none_end,
34873         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34874         maybe_allows_mem_end): New variables.
34875         (compute_maybe_allows): New function.
34876         (add_constraint): Use it to initialize maybe_allows_reg and
34877         maybe_allows_mem fields.
34878         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34879         is_address constraints such that those that allow neither mem nor
34880         reg come first, then those that only allow reg but not mem, then
34881         those that only allow mem but not reg, then the rest.
34882         (write_allows_reg_mem_function): New function.
34883         (write_tm_preds_h): Call it.
34884         * stmt.c (parse_output_constraint, parse_input_constraint): Use
34885         the generated insn_extra_constraint_allows_reg_mem function
34886         instead of always setting *allows_reg = true; *allows_mem = true;
34887         for unknown extra constraints.
34889 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34891         PR target/65780
34892         * output.h (default_binds_local_p_3): New.
34893         * varasm.c (default_binds_local_p_3): Make it public.  Take an
34894         argument to indicate if common symbol may be local.  If common
34895         symbol may be local, treat non-external variable as defined
34896         locally.
34897         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34898         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34899         * config/i386/i386.c (ix86_binds_local_p): New.
34900         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34901         ix86_binds_local_p.
34903 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34905         PR debug/65771
34906         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34907         trying mem_loc_descriptor on XEXP (rtl, 0).
34909 2015-04-17  Martin Liska  <mliska@suse.cz>
34911         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34912         Release symbol_compare_collection.
34913         * ipa-reference.c: Add TODO that a vector should be released.
34915 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34917         PR target/65296
34918         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34919         to new AVR-LibC file layout (bug #44574).
34920         (*avrlibc_devicelib): Same.
34921         * config/avr/avr-mcus.def: Adjust comments.
34922         * config/avr/avr.opt (nodevicelib): Adjust help.
34924 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
34926         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34928 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
34930         PR c++/64527
34931         * gimplify.c (gimplify_init_constructor): Always emit a
34932         side-effecting constructor.
34934 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34936         PR tree-optimization/64950
34937         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34938         in cfun->curr_properties.
34939         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34940         if we generate an IFN_VA_ARG.
34941         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34942         function if PROP_gimple_lva is not set in src function.
34944 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34945             Michael Matz  <matz@suse.de>
34947         PR tree-optimization/64950
34948         * gimple-iterator.c (update_modified_stmts): Remove static.
34949         * gimple-iterator.h (update_modified_stmts): Declare.
34950         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34951         (gimplify_va_arg_internal): New function.
34952         (gimplify_va_arg_expr): Use IFN_VA_ARG.
34953         * gimplify.h (gimplify_va_arg_internal): Declare.
34954         * internal-fn.c (expand_VA_ARG): New unreachable function.
34955         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34956         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34957         (expand_ifn_va_arg): New function.
34958         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34959         (pass_stdarg::execute): Call expand_ifn_va_arg.
34960         (pass_data_lower_vaarg): New pass_data.
34961         (pass_lower_vaarg): New gimple_opt_pass.
34962         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34963         (make_pass_lower_vaarg): New function.
34964         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34965         properties_required field.
34966         * passes.def (all_passes): Add pass_lower_vaarg.
34967         * tree-pass.h (PROP_gimple_lva): Add define.
34968         (make_pass_lower_vaarg): Declare.
34970 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34972         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34973         * calls.c (call_expr_flags): Same.
34975 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34977         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34978         (pass_stdarg::execute): ... here.
34980 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34981             Michael Matz  <matz@suse.de>
34983         * tree-cfg.c (make_blocks_1): Factor out of ...
34984         (make_blocks): ... here.
34985         (make_edges_bb): Factor out of ...
34986         (make_edges): ... here.
34987         (gimple_find_sub_bbs): New function.
34988         * tree-cfg.h (gimple_find_sub_bbs): Declare.
34990 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34992         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34994 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
34996         * asan.c (set_sanitized_sections): New function.
34997         (section_sanitized_p): Ditto.
34998         (asan_protect_global): Optionally sanitize user-defined
34999         sections.
35000         * asan.h (set_sanitized_sections): Declare new function.
35001         * common.opt (fsanitize-sections): New option.
35002         * doc/invoke.texi (-fsanitize-sections): Document new option.
35003         * opts-global.c (handle_common_deferred_options): Handle new
35004         option.
35006 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
35008         PR debug/65771
35009         * dwarf2out.c (loc_list_from_tree): Return NULL
35010         for DEBUG_EXPR_DECL.
35012 2015-04-17  Christian Bruel  <christian.bruel@st.com>
35014         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
35015         same attributes.
35017 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
35019         * ira-color.c (setup_left_conflict_sizes_p): Do not process
35020         node itself when computing left conflict subnode size.
35022 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
35024         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
35025         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
35026         *fop_<mode>_1_sse using enabled attribute.  Use
35027         register_mixssei387nonimm_operand operand 1 predicate. Change
35028         alternative 3 constraints from "x" to "v".
35030 2015-04-16  Richard Biener  <rguenther@suse.de>
35032         PR tree-optimization/65774
35033         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
35034         bit-value tracking on.
35036 2015-04-16  Richard Biener  <rguenther@suse.de>
35038         PR tree-optimization/64277
35039         * tree-vrp.c (check_array_ref): Fix anti-range handling,
35040         simplify upper bound handling.
35041         (search_for_addr_array): Simplify.
35042         (check_array_bounds): Handle ADDR_EXPRs here.
35043         (check_all_array_refs): Simplify.
35045 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
35047         * config/i386/i386.c (print_reg): Rewrite function.
35049 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35051         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
35052         Invert the condition.
35054 2015-04-16  Renlin Li  <renlin.li@arm.com>
35056         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
35057         simplifications for UNSIGNED_FLOAT.
35059 2015-04-16  Nick Clifton  <nickc@redhat.com>
35061         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
35062         MUL_UNINIT.
35063         (enum rl78_cpu_type): New.
35064         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
35065         (umulhi3_shift_virt): Remove m constraint from operand 1.
35066         (umulqihi3_virt): Likewise.
35067         * config/rl78/rl78.c (rl78_option_override): Add code to process
35068         -mcpu and -mmul options.
35069         (rl78_alloc_physical_registers): Add code to handle divhi and
35070         divsi valloc attributes.
35071         (set_origin): Likewise.
35072         * config/rl78/rl78.h (RL78_MUL_G14): Define.
35073         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
35074         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
35075         __RL78_Gxx__.
35076         (ASM_SPEC): Pass -mcpu on to assembler.
35077         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
35078         (mulqi3_rl78): Likewise.
35079         (mulhi3_g13): Likewise.
35080         (mulhi3): Generate the G13 or G14 versions of the insn directly.
35081         (mulsi3): Likewise.
35082         (mulhi3_g14): Add clobbers of AX and BC.
35083         (mulsi3_g14): Likewise.
35084         (mulsi3_g13): Likewise.
35085         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
35086         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
35087         * config/rl78/rl78.opt (mmul): Initialise value to
35088         RL78_MUL_UNINIT.
35089         (mcpu): New option.
35090         (m13, m14, mrl78): New option aliases.
35091         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
35092         (MULTILIB_DIRNAMES): Add g13 and g14.
35093         * doc/invoke.texi: Document -mcpu and -mmul options.
35095 2015-04-16  Richard Biener  <rguenther@suse.de>
35097         * tree-ssa-ccp.c (likely_value): See if we have operands that
35098         are marked as never simulate again and return CONSTANT in this
35099         case.
35100         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
35101         not have any operands that will be simulated again as
35102         not being simulated again.
35104 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
35106         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
35107         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
35108         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
35109         attribute.
35110         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
35111         enabled attribute.
35112         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
35113         *float<SWI48:mode><MODEF:mode>2_sse.
35114         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
35115         enabled attribute.
35116         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
35117         enabled attribute.
35119 2015-04-15  Tom de Vries  <tom@codesourcery.com>
35121         PR other/65487
35122         * function.c (push_dummy_function): New function.
35123         (init_dummy_function_start): Use push_dummy_function.
35124         (pop_dummy_function): New function.  Factored out of ...
35125         (expand_dummy_function_end): ... here.
35126         * function.h (push_dummy_function, pop_dummy_function): Declare.
35127         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
35128         pop_dummy_function.
35129         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35131 2015-04-15  Jeff Law  <law@redhat.com>
35133         PR tree-optimization/47679
35134         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35135         need for forward declaration in upcoming changes.
35136         (record_conditions, record_edge_info): Likewise.
35138         PR rtl-optimization/42522
35139         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35140         SIGN_EXTRACT as a whole object rather than simplifying
35141         its operand.
35143 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
35145         PR ipa/65765
35146         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35147         and GIMPLE_PREDICT use break instead of return true. For
35148         GIMPLE_EH_DISPATCH, compare dispatch region.
35150 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
35152         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
35153         details about the implementation.  Make clear preference for
35154         __atomic builtins.  Reduce possibility of future change.
35156 2015-04-15  Nick Clifton  <nickc@redhat.com>
35158         * config/rx/rx.opt (mallow-string-insns): New option.
35159         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35160         builtin if string instructions are denied.
35161         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35162         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35163         appropriate.
35164         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35165         * config/rx/rx.md (movstr): Enable pattern only if string
35166         instructions are allowed.
35167         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35168         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35169         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35170         (MULTILIB_DIRNAMES): Add no-strings.
35171         * doc/invoke.texi: Document -mno-allow-string-insns.
35173 2015-04-15  Alan Modra  <amodra@gmail.com>
35175         PR target/65408
35176         PR target/58744
35177         PR middle-end/36043
35178         * calls.c (load_register_parameters): Don't load past end of
35179         mem unless suitably aligned.
35181 2015-04-15  Nick Clifton  <nickc@redhat.com>
35183         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35184         decrement instruction as being frame related.
35185         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35186         based addresses.
35187         If zero extending a function address enclose the operation in
35188         %code(...).
35189         (rl78_preferred_reload_class): New function.
35190         (TARGET_PREFERRED_RELOAD_CLASS): Define.
35191         * config/rl78/rl78.md: Remove useless constraints in expanders.
35192         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35193         (mulhi3_rl78): Likewise.
35194         (mulhi3_g13): Likewise.
35195         (mulsi3_rl78): Likewise.
35196         (es_addr): Move to before the multiply patterns.
35198 2015-04-15  Alan Modra  <amodra@gmail.com>
35200         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35201         and sequence_stack.  Add seq.
35202         (seq_stack): Delete.
35203         * function.c (prepare_function_start): Don't access x_last_insn.
35204         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35205         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35206         * emit_rtl.c (start_sequence, push_topmost_sequence,
35207         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35208         sequence accessors.
35209         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35210         remove_insn): Likewise.  Simplify.
35211         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35212         and pop_topmost_sequence.
35213         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
35214         debug insns.
35215         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35217 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
35219         PR target/65729
35220         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35221         the assertiion.
35223 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35225         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35226         (LEGACY_INT_REGNO_P): Ditto.
35227         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35228         (ANY_MASK_REG_P): Remove.
35229         (BND_REG_P): Rename from ANY_BND_REG_P.
35230         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35231         legacy integer registers.  Do not handle MMX_REG_P in a special way.
35232         Merge 64byte and 32byte SSE handling.
35234 2015-04-14  Nick Clifton  <nickc@redhat.com>
35236         * expr.c (expand_assignment): Force an address offset computation
35237         into a register before changing its mode.
35238         (expand_expr_real_1): Likewise.
35240 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
35242         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35243         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35244         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35245         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35246         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35247         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35248         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35249         and __aarch64_vget_lane_any.
35251 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
35253         PR rtl-optimization/65761
35254         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35255         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35257 2015-04-14  Richard Biener  <rguenther@suse.de>
35259         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35260         (graphite_can_represent_scev): Use POINTER_TYPE_P.
35262 2015-04-14  Richard Biener  <rguenther@suse.de>
35264         PR tree-optimization/65758
35265         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35266         against -1.
35267         (ccp_lattice_meet): Likewise.
35268         (bit_value_unop): Likewise.
35269         (bit_value_binop): Likewise.
35270         (bit_value_assume_aligned): Likewise.
35272 2015-04-14  Christian Bruel  <christian.bruel@st.com>
35274         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35275         function.
35277 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
35279         PR tree-optimization/63387
35280         * match.pd ((x unord x) | (y unord y) -> (x unord y),
35281         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35283 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35285         * config/i386/predicates.md (any_QIreg_operand): Rename from
35286         q_regs_operand.  Do not process subregs.
35287         (QIreg_operand): Use QI_REGNO_P predicate.
35288         (ext_QIreg_operand): Ditto.
35289         (ext_register_operand): Ditto.
35290         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35291         (AND splitters): Ditto.
35292         (AND with -65536 splitter): Add SWI48 mode for operand 0.
35293         (AND with -256 splitter): Use any_QIreg_operand predicate and
35294         SWI248 mode for operand 0.
35295         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35296         mode for operand 0.
35297         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35299 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
35301         * doc/plugins.texi: Rewrite first introductory paragraph.
35303 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35305         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35306         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35308 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35310         * ipa-profie.c (ipa_profile): Check number of parameters
35311         and possible polymorphic call targets before
35312         devirtualizing.
35314 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
35316         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35317         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35319 2015-04-13  Richard Biener  <rguenther@suse.de>
35321         PR tree-optimization/65204
35322         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35323         takens for bit-CCP.
35325 2015-04-13  Richard Biener  <rguenther@suse.de>
35327         PR target/65660
35328         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35329         and cond_not_taken_branch_cost to 4 and 2.
35330         (bdver2_cost): Likewise.
35331         (bdver3_cost): Likewise.
35332         (bdver4_cost): Likewise.
35334 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35336         * hash-table.h (hash_table constructor): Add mem stats.
35337         (alloc_entries): Likewise.
35339 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35341         * ipa-cp.c (ipcp_driver): Relase prev_edge.
35342         * passes.c (execute_one_pass): Only add transform if pass has one.
35344 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
35346         * config/i386/i386.c (ix86_option_override_internal): Don't set
35347         -fprefetch-loop-arrays if optimizing for size.
35349 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35350             Gerald Pfeifer  <gerald@pfeifer.com>
35352         * doc/contrib.texi (Contributors): Add Martin Jambor and
35353         Michael Matz.
35355 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
35357         * BASE-VER: Set to 6.0.0.
35359         PR tree-optimization/65747
35360         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35361         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35363 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35365         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35366         sentence.  Improve grammar.
35368 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35370         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35372 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35374         PR ipa/65743
35375         * ipa-inline-transform.c (speculation_removed): Remove static var.
35376         (check_speculations): New function.
35377         (clone_inlined_nodes): Do not check spculations.
35378         (inline_call): Call check_speculations.
35379         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35380         consider non-invariants.
35382 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35383             Martin Liska  <mliska@suse.cz>
35385         PR ipa/65722
35386         * ipa-icf.c (sem_item::compare_cgraph_references): function and
35387         variable can not match.
35388         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35389         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35391 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
35393         PR tree-optimization/65735
35394         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35395         Remove visited_phis argument, add visited_bbs, avoid recursing into the
35396         same bb rather than just into the same phi node.
35397         (thread_through_normal_block): Adjust caller.
35399 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35401         * doc/contrib.texi (Contributors): Add Ira Rosen.
35403 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
35405         * gcov.c (find_source): Fix miswording in error message.
35406         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35407         (ix86_expand_sse_comi_round): Fix typo in error message.
35409 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35411         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35413 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
35415         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35417 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35419         PR target/65710
35420         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35421         Print bad_spills_num and insn_pseudos_num.
35423 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35425         PR target/65694
35426         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
35427         when creating +1 values for SImode.
35429 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35431         PR target/65729
35432         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
35433         assert.
35435 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
35436             Iain Sandoe  <iain@codesourcery.com>
35438         PR target/65351
35439         * configure: Regenerate.
35441 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
35443         PR target/65671
35444         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
35446 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
35448         * doc/contrib.texi (Contributors): Add John Marino.
35450 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
35452         PR tree-optimization/65709
35453         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
35454         TREE_TYPE (TREE_TYPE (t)).
35456 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
35458         PR target/65710
35459         * lra-int.h (lra_bad_spill_regno_start): New.
35460         * lra.c (lra_bad_spill_regno_start): New.
35461         (lra): Set up lra_bad_spill_regno_start.  Set up
35462         lra_constraint_new_regno_start unconditionally.
35463         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
35464         spill preferences.
35466 2015-04-09  Marek Polacek  <polacek@redhat.com>
35467             Jakub Jelinek  <jakub@redhat.com>
35469         PR middle-end/65554
35470         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
35471         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
35472         of STRIP_NOPS.
35474 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
35476         PR rtl-optimization/65693
35477         * combine.c (is_parallel_of_n_reg_sets): Move outside of
35478         #ifndef HAVE_cc0.
35480 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
35482         PR target/65296
35483         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
35484         device specs file if "device-specs%s" didn't resolve to a path.
35486 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
35488         PR target/65676
35489         * config/i386/i386.c (fixup_modeless_constant): New.
35490         (ix86_expand_args_builtin): Fixup modeless constant operand.
35491         (ix86_expand_round_builtin): Ditto.
35492         (ix86_expand_special_args_builtin): Ditto.
35493         (ix86_expand_builtin): Ditto.
35495 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
35497         PR target/65693
35498         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
35499         any pow2 integer in between 2 and 0x80000000U inclusive.
35501 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
35503         PR rtl-optimization/65693
35504         * combine.c (is_parallel_of_n_reg_sets): Change first argument
35505         from an rtx_insn * to an rtx.
35506         (try_combine): Adjust both callers.  Use it once more.
35508 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35510         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
35511         (chkp_make_static_const_bounds): Search existing
35512         symbol by assembler name.  Use make_decl_one_only.
35513         (chkp_get_zero_bounds_var): Remove node search which
35514         is now performed in chkp_make_static_const_bounds.
35515         (chkp_get_none_bounds_var): Likewise.
35517 2015-04-08  Michael Witten  <mfwitten@gmail.com>
35519         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
35520         to an example.
35522 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35524         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
35526 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
35528         * doc/extend.texi (__sync Builtins): Fix grammar.
35530 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35532         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
35534 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35536         * varasm.c (emit_local): Move definition of align.
35538 2015-04-08  Julian Brown  <julian@codesourcery.com>
35540         * config/nvptx/mkoffload.c (process): Support variable mapping.
35542 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
35544         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
35545         alpha_links **.
35546         (alpha_write_one_linkage): Correct typo.
35548 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35550         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
35552 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
35554         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
35556 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35558         * tree-chkp.h (chkp_insert_retbnd_call): New.
35559         * tree-chkp.c (chkp_insert_retbnd_call): New.
35560         * ipa-split.c (insert_bndret_call_after): Remove.
35561         (split_function): Use chkp_insert_retbnd_call.
35562         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
35563         bounds for instrumented functions.
35565 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
35567         PR ipa/65540
35568         * calls.c (initialize_argument_information): When producing tail
35569         call also turn SSA_NAMES passed by references to original PARM_DECLs
35571 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
35573         PR target/65648
35574         * lra-remat.c (do_remat): Process input and non-input insn
35575         registers separately.
35577 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
35579         PR debug/65678
35580         * valtrack.c (debug_lowpart_subreg): New function.
35581         (dead_debug_insert_temp): Use it.
35583         PR middle-end/65680
35584         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
35585         into signed HOST_WIDE_INT the same as negative bit_offset.
35587 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
35589         * ipa-comdats.c (ipa_comdats): Visit all thunks
35590         to set proper comdat group.
35592 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35594         PR target/65489
35595         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
35596         on constants for NEON VSTRUCT modes.
35598 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
35599             Iain Sandoe  <iain@codesourcery.com>
35601         PR target/65351
35602         * configure: Regenerate.
35604 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35606         PR target/65614
35607         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
35608         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
35609         that LFD is used to load double constants instead of LFS.  Add
35610         defaults for all costs structures.  Add comments for missing
35611         initialization fields.
35612         (size32_cost): Likewise.
35613         (size64_cost): Likewise.
35614         (rs64a_cost): Likewise.
35615         (mpccore_cost): Likewise.
35616         (ppc403_cost): Likewise.
35617         (ppc405_cost): Likewise.
35618         (ppc440_cost): Likewise.
35619         (ppc476_cost): Likewise.
35620         (ppc601_cost): Likewise.
35621         (ppc603_cost): Likewise.
35622         (ppc604_cost): Likewise.
35623         (ppc604e_cost): Likewise.
35624         (ppc620_cost): Likewise.
35625         (ppc630_cost): Likewise.
35626         (ppccell_cost): Likewise.
35627         (ppc750_cost): Likewise.
35628         (ppc7450_cost): Likewise.
35629         (ppc8540_cost): Likewise.
35630         (ppce300c2c3_cost): Likewise.
35631         (ppce500mc_cost): Likewise.
35632         (ppce500mc64_cost): Likewise.
35633         (ppce5500_cost): Likewise.
35634         (ppce6500_cost): Likewise.
35635         (titan_cost): Likewise.
35636         (power4_cost): Likewise.
35637         (power6_cost): Likewise.
35638         (power7_cost): Likewise.
35639         (power8_cost): Likewise.
35640         (ppca2_cost): Likewise.
35641         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
35643         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
35644         instead of XXLOR to copy SFmode to clear out dirty bits created
35645         when SFmode denormals are generated.
35646         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
35647         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
35649 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
35651         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
35652         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
35653         * config/aarch64/aarch64-tune.md: Regenerate.
35655 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
35657         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
35658         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
35659         * config/arm/arm-cores.def (exynos-m1): New core.
35660         * config/arm/arm-tune.md: Regenerate.
35661         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
35662         * config/arm/bpabi.h: Likewise.
35664 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
35666         * ipa-cp (set_single_call_flag): Remove too
35667         restrictive assert.
35669 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
35671         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
35672         GOMP_offload_unregister from the destructor.
35674 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
35676         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
35677         flags for instrumentation thunk.
35678         (chkp_produce_thunks): Likewise.
35680 2015-04-05  Martin Liska  <mliska@suse.cz>
35682         PR ipa/65665
35683         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
35684         has computed data structure.
35685         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35687 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
35689         * invoke.texi (inline-unit-growth): Increase growth to 20%
35690         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
35692 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
35694         PR target/65647
35695         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
35696         value checking.
35697         (lra_rematerialization_iter): New.
35698         * lra.c (lra): Initialize lra_rematerialization_iter.
35699         Stop updating lra_constraint_new_regno_start after switching of
35700         inheritance and rematerialization.
35701         * lra-remat.c (lra_rematerialization_iter): New.
35702         (lra_remat): Add printing pass iteration.  Do rematerialization
35703         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
35705 2015-04-04  Richard Biener  <rguenther@suse.de>
35707         PR tree-optimization/64909
35708         PR tree-optimization/65660
35709         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
35710         to take a cost vector for scalar iteration cost.
35711         (vect_get_single_scalar_iteration_cost): Likewise.
35712         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
35713         Compute the scalar iteration cost into a cost vector.
35714         (vect_get_known_peeling_cost): Use the scalar cost vector to
35715         account for the cost of the peeled iterations.
35716         (vect_estimate_min_profitable_iters): Likewise.
35717         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
35718         Likewise.
35720 2015-04-04  Alan Modra  <amodra@gmail.com>
35722         PR target/65576
35723         PR target/65240
35724         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35725         0.0 constant unless TARGET_VSX.
35726         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35727         alternative.
35729 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35731         PR ipa/65654
35732         * ipa-inline-transform.c (inline_call): Skip sanity check to work
35733         around the ICE
35735 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35737         PR ipa/65655
35738         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35739         speculative indirect edges to avoid ordering issue.
35741 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35743         PR ipa/65076
35744         * ipa-inline.c (edge_badness): Add combined size to the denominator.
35746 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
35748         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35749         TYPE_ARTIFICIAL on the .omp_data* types.
35751 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35753         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35754         instrumentation thunks.
35756 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35758         * config/i386/i386.c (ix86_expand_call): Avoid nested
35759         PARALLEL in returned call value.
35761 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35763         * lto-cgraph.c (input_cgraph_1): Always link instrumented
35764         assembler name with original one.
35766 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35768         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35770 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35772         Revert parts of r216820.
35773         * config/i386/i386.md (movqi_internal): Correct type calculation
35774         for alternatives 3 and 5.
35776 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
35778         PR preprocessor/61977
35779         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35780         predefine __vector/__bool/__pixel macros nor context sensitive
35781         macros for CLK_ASM.
35782         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35784 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
35786         * config/pa/pa.c (pa_output_move_double): Directly handle register
35787         indexed memory operand.  Simplify handling of scaled register indexed
35788         memory operands.
35790 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35792         PR driver/65444
35793         * config/i386/linux-common.h (MPX_SPEC): New.
35794         (CHKP_SPEC): Add MPX_SPEC.
35795         * doc/invoke.texi (-fcheck-pointer-boudns): Document
35796         possible issues with '-z bndplt' support in linker.
35798 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35800         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35801         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35802         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35803         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35804         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35806 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
35808         * config/i386/sync.md (UNSPEC_MOVA): Remove.
35809         (atomic_load<mode>): Change operand 0 predicate to
35810         nonimmediate_operand and fix up the destination when needed.
35811         Use UNSPEC_LDA.
35812         (atomic_loaddi_fpu): Use UNSPEC_LDA.
35813         (atomic_store<mode>): Change operand 1 predicate to
35814         nonimmendate_operand and move the source to register when needed.
35815         Use UNSPEC_STA.
35816         (atomic_store<mode>_1): Use UNSPEC_STA.
35817         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35818         Fix moves from memory operand.  Use UNSPEC_STA.
35820 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35822         * expmed.c (strict_volatile_bitfield_p): Check that the access will
35823         not cross a MODESIZE boundary.
35824         (store_bit_field, extract_bit_field): Added assertions in the
35825         strict volatile bitfields code path.
35827 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35829         PR target/65624
35830         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35831         Increase args array size by one to avoid buffer overflow.
35833 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35835         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35836         split_part.
35837         * ipa-inline.c (edge_badness): Add wrapper penalty.
35838         (sum_callers): Move up.
35839         (inline_small_functions): Set single_caller.
35840         * ipa-inline.h (inline_summary): Add single_caller.
35841         * ipa-split.c (split_function): Set split_part.
35842         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35843         * cgraph.h (cgraph_node): Add split_part.
35845 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
35847         PR target/58945
35848         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35849         Do not split operands 0 and operands 2 to halfmode.
35850         (atomic_compare_and_swap<mode>): Update for
35851         atomic_compare_and_swap<dwi>_doubleword changes.
35853 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35855         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35856         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35857         no caching is done.
35859 2015-03-31  Martin Liska  <mliska@suse.cz>
35861         PR ipa/65557
35862         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35863         has already filled up function summary.
35864         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35866 2015-03-31  Richard Biener  <rguenther@suse.de>
35868         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35869         of types.
35871 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35873         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35874         nested functions.
35875         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35876         (s390_asm_output_function_label): Adapt to new signature of
35877         s390_function_num_hotpatch_hw
35878         Optimise the code generating assembler output.
35879         Add comments to assembler file.
35881 2015-03-31  Richard Biener  <rguenther@suse.de>
35883         PR middle-end/65626
35884         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35885         of the noreturn call so it is last and cleanup_control_flow_bb
35886         can do the CFG part.
35888 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
35890         PR target/65531
35891         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35892         same_comdat_group for external symbols.
35893         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35894         infinite same_comdat_group traversal loop.
35896 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
35898         PR plugins/61176
35899         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35900         automatically to $headers.
35902 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
35904         PR ipa/65610
35905         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35906         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35907         function.
35908         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35909         Use it.
35910         * ipa-prop.c (param_type_may_change_p): Likewise.
35911         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35912         (remove_unused_scope_block_p): Add in_ctor_dtor_block
35913         argument.  Before inlining, preserve
35914         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35915         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
35916         recursive calls.
35917         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35919 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35921         PR ipa/65076
35922         * ipa-inline.c (edge_badness): Base denominator on callee's
35923         grwoth squared.
35925 2015-03-27  Martin Jambor  <mjambor@suse.cz>
35927         PR ipa/65478
35928         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35929         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35930         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35931         node_calling_single_call.
35932         * ipa-cp.c (count_callers): New function.
35933         (set_single_call_flag): Likewise.
35934         (initialize_node_lattices): Count callers and set single_flag_call if
35935         necessary.
35936         (incorporate_penalties): New function.
35937         (good_cloning_opportunity_p): Use it, dump new flags.
35938         (propagate_constants_topo): Set node_within_scc flag if appropriate.
35939         * doc/invoke.texi (ipa-cp-recursion-penalty,
35940         ipa-cp-single-call-pentalty): Document.
35942 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35944         PR ipa/65588
35945         * symtab.c (symtab_node::get_partitioning_class): Register vars
35946         are duplicated.
35947         * varpool.c (symbol_table::output_variables) Do not assemble unefined
35948         decls for non-symbols.
35950 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
35952         PR target/65248
35953         * output.h (default_binds_local_p_2): New.
35954         * varasm.c (default_binds_local_p_2): Renamed to ...
35955         (default_binds_local_p_3): This.  Don't return true on protected
35956         data symbol if protected data may be external.
35957         (default_binds_local_p): Use default_binds_local_p_3.
35958         (default_binds_local_p_1): Likewise.
35959         (default_binds_local_p_2): New.
35960         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35961         default_binds_local_p_2 if TARGET_MACHO is undefined.
35963 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
35965         PR target/65593
35966         * config/i386/i386.c (legitimize_pic_address): If base
35967         is SYMBOL_REF or LABEL_REF using %rip addressing, force
35968         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35970 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35972         PR target/65531
35973         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35974         comdat groups.
35976 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35978         PR ipa/65600
35979         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35980         of optimized out indirect call.
35981         (redirect_to_unreachable): Always build symbol table node for
35982         BUILT_IN_UNREACHABLE
35984 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
35986         PR target/65407
35987         * ira-costs.c (record_reg_classes): Process all constraint string
35988         containing 0-9.
35990 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
35992         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35993         memory_operand.
35995         PR target/65052
35996         * config/c6x/constraints.md (S3): New constraint.
35997         * config/c6x/c6x.md (real_jump): Use it.
35999 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36001         PR middle-end/65595
36002         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
36003         do redirection if the call is not optimized out.
36005 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
36007         PR target/65495
36008         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
36009         (fchkp-check-incomplete-type): Add LTO.
36010         (fchkp-zero-input-bounds-for-main): Likewise.
36011         (fchkp-first-field-has-own-bounds): Likewise.
36012         (fchkp-narrow-bounds): Likewise.
36013         (fchkp-narrow-to-innermost-array): Likewise.
36014         (fchkp-use-static-bounds): Likewise.
36015         (fchkp-use-static-const-bounds): Likewise.
36016         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36018 2015-03-27  Marek Polacek  <polacek@redhat.com>
36020         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
36022 2015-03-27  Marek Polacek  <polacek@redhat.com>
36024         PR sanitizer/65583
36025         * ubsan.c (ubsan_create_edge): New function.
36026         (instrument_bool_enum_load): Call it.
36027         (instrument_nonnull_arg): Likewise.
36028         (instrument_nonnull_return): Likewise.
36029         (instrument_object_size): Likewise.
36031 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36033         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
36034         auto_vec.
36036 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36038         PR lto/65536
36039         * lto-streamer.h (class lto_location_cache): New.
36040         (struct data_in): Add location_cache.
36041         (lto_input_location): Update prototype.
36042         (stream_input_location_now): New.
36043         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
36044         pointer to location.
36045         (stream_input_location): Update.
36046         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
36047         (warn_odr): Apply location cache before warning.
36048         (lto_input_location): Update prototype.
36049         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
36050         Use stream_input_location_now.
36051         * lto-streamer-in.c (lto_location_cache::current_cache): New static
36052         variable.
36053         (lto_location_cache::cmp_loc): New function.
36054         (lto_location_cache::apply_location_cache): New function.
36055         (lto_location_cache::accept_location_cache): New function.
36056         (lto_location_cache::revert_location_cache): New function.
36057         (lto_location_cache::input_location): New function.
36058         (lto_input_location): Do location caching.
36059         (stream_input_location_now): New function.
36060         (input_eh_region, input_struct_function_base): Use
36061         stream_input_location_now.
36062         (lto_data_in_create): use new.
36063         (lto_data_in_delete): Use delete.
36064         * tree-streamer-in.c (unpack_ts_block_value_fields,
36065         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
36066         lto_input_ts_exp_tree_pointers): Update for cached location api.
36068 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36070         PR ipa/65076
36071         * passes.def: Add pass_nothrow.
36072         * ipa-pure-const.c: (pass_data_nothrow): New.
36073         (pass_nothrow): New.
36074         (pass_nothrow::execute): New.
36075         (make_pass_nothrow): New.
36076         * tree-pass.h (make_pass_nothrow): Declare.
36078 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36080         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
36081         edge to change by speculation resolution or redirection.
36082         (edge_set_predicate): Likewise.
36083         (inline_summary_t::duplicate): Likewise.
36084         (remap_edge_summaries): Likewise.
36086 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36088         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
36089         New macros.
36090         (can_inline_edge_p): Relax option matching for always inline functions.
36092 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
36094         PR target/65561
36095         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
36096         Check operand 4 and operand 0 for equality.
36097         (avx512f_vextract<shuffletype>32x4_1_maskm):
36098         Check operand 6 and operand 0 for equality.
36099         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
36100         for equality.
36101         (vec_extract_hi_<mode>_maskm): Ditto.
36103 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36105         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
36106         dead calls back to live.
36107         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
36108         cross check to ...
36109         (cgraph_node::verify_node): ... here; verify only callee edges,
36110         not caller.
36111         * cif-code.def (CILK_SPAWN): New code.
36113 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
36115         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
36116         (edge_set_predicate): Use it to mark unreachable edges.
36117         (inline_summary_t::duplicate): Remove unnecesary code.
36118         (remap_edge_summaries): Likewise.
36119         (dump_inline_summary): Report contains_cilk_spawn.
36120         (compute_inline_parameters): Compute contains_cilk_spawn.
36121         (inline_read_section, inline_write_summary): Stream
36122         contains_cilk_spawn.
36123         * ipa-inline.c (can_inline_edge_p): Do not touch
36124         DECL_STRUCT_FUNCTION that may not be available;
36125         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
36126         remove check for callee_fun->can_throw_non_call_exceptions and
36127         replace it by optimization attribute check; check for flag_exceptions.
36128         * ipa-inline-transform.c (inline_call): Maintain
36129         DECL_FUNCTION_PERSONALITY
36130         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36132 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
36134         PR tree-optimization/65551
36135         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36136         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36138 2015-03-26  Richard Biener  <rguenther@suse.de>
36140         PR middle-end/65555
36141         * tree-cfg.c (verify_gimple_call): Do not require a call to
36142         have no LHS if it wasn't recognized as control altering yet.
36144 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
36146         PR tree-optimization/64715
36147         * passes.def: Add another instance of pass_object_sizes before ccp1.
36148         * tree-object-size.c (pass_object_sizes::execute): In
36149         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36150         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36151         __bos result and the computed constant.  Remove redundant
36152         checks, obsoleted by gimple_call_builtin_p test.
36154         * var-tracking.c (variable_tracking_main_1): Don't track
36155         variables for targetm.no_register_allocation targets.
36157 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
36159         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36160         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36162 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
36164         PR target/65569
36165         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36166         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
36167         0.0 is correctly setup.
36168         (extenddftf2_internal): Likewise.
36170 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
36172         PR tree-optimization/65177
36173         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36174         (bb_in_bbs): New.
36175         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
36176         edges not adjacent on the path to the original code.
36178 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
36180         PR bootstrap/65537
36181         * doc/install.texi (Building a native compiler): Document new
36182         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
36183         configuration assumes that the host supports the linker plugin.
36185 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36187         PR target/65508
36188         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36189         chain for generated call.
36191 2015-03-25  Richard Biener  <rguenther@suse.de>
36193         * passes.c (pass_manager::execute_early_local_passes): Guard
36194         execution of pass_chkp_instrumentation_passes with
36195         flag_check_pointer_bounds.
36196         (pass_chkp_instrumentation_passes::gate): Likewise.
36198 2015-03-25  Martin Liska  <mliska@suse.cz>
36200         PR tree-optimization/65538
36201         * symbol-summary.h (function_summary::~function_summary):
36202         Relese memory for allocated summaries.
36203         (function_summary::release): New function.
36205 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
36207         PR lto/65515
36208         * lto-streamer-out.c (DFS::worklist): New struct.
36209         (DFS::worklist_vec): New data member.
36210         (DFS::next_dfs_num): Remove.
36211         (DFS::DFS): Rewritten using worklist instead of recursion,
36212         using most of code from DFS::DFS_write_tree.
36213         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36214         pass it to DFS_write_tree calls.
36215         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36216         quick initial checks push it into worklist_vec and return.
36218 2015-03-25  Richard Biener  <rguenther@suse.de>
36220         PR middle-end/65519
36221         * genmatch.c (expr::gen_transform): Re-write to avoid
36222         using gimple_build.
36224 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
36226         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36228 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
36230         * config/arm/arm.opt (print_tune_info): New option.
36231         * config/arm/arm.c (arm_print_tune_info): New function.
36232         (arm_file_start): Call arm_print_tune_info.
36233         * config/arm/arm-protos.h (struct tune_params): Add comment.
36234         * doc/invoke.texi (@item -mprint-tune-info): New item.
36235         (-mtune): mention it in ARM Option Summary.
36237 2015-03-25  DJ Delorie  <dj@redhat.com>
36239         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36240         correct clause.
36242 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
36243             Martin Liska  <mliska@suse.cz>
36245         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36246         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36247         (sem_item::add_type): New function.
36248         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36249         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36250         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36251         (sem_function::equals_wpa): Fix typo.
36252         * ipa-icf.h (sem_item::add_type): New function.
36253         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36254         order.
36256 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
36258         PR tree-optimization/65533
36259         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36260         with swapped operands, call vect_free_slp_tree on
36261         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36262         vector.
36264 2015-03-24  Richard Biener  <rguenther@suse.de>
36266         PR middle-end/65517
36267         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36268         for fixup if necessary.
36270 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
36272         * doc/extend.texi (Function Attributes): Add @cindex entries
36273         for all attributes and regularize their format.  Delete text
36274         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
36275         information about "eightbit_data", "tiny_data", and "model"
36276         variable attributes to the Variable Attributes section.  Fix
36277         some obvious typos and copy-editing issues.
36278         (Variable Attributes, Type Attributes): Likewise add/fix
36279         @cindex entries for all attributes.
36281 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36283         PR target/65523
36284         * tree-chkp.c (chkp_build_returned_bound): Ignore
36285         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36287 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
36289         PR target/65505
36290         * config/sh/predicates.md (simple_mem_operand,
36291         displacement_mem_operand): Add test for reg.
36292         (short_displacement_mem_operand): Test for displacement_mem_operand
36293         before invoking sh_disp_addr_displacement.
36294         * config/sh/constraints.md (Sdd, Sra): Simplify.
36295         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36296         Remove redundant displacement_mem_operand tests.
36298 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
36300         PR target/65296
36301         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36302         the same -mmcu=MCU more than once.
36304 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36306         PR bootstrap/65522
36307         * ipa-devirt.c: Remove duplicate demangle.h include.
36309         PR target/65504
36310         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36311         on the pseudo.
36312         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36313         REG_POINTER on *destptr after adjusting it for prologue size.
36315         PR ipa/65521
36316         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36317         ultimate_alias_target ()->order ints instead of
36318         ultimate_alias_target () pointers.
36320 2015-03-23  Richard Biener  <rguenther@suse.de>
36322         PR tree-optimization/65518
36323         * tree-vect-stmts.c (vectorizable_load): Reject single-element
36324         interleaving cases we generate absymal code for.
36326 2015-03-23  Richard Biener  <rguenther@suse.de>
36328         PR tree-optimization/65494
36329         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36330         matches here.
36331         (vect_analyze_slp_instance): But do that here, always and once.
36333 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36335         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36336         adding T or multiplying by T+1 and subracting T.
36338 2015-03-22  Jeff Law  <law@redhat.com>
36340         PR rtl-optimization/64317
36341         * Makefile.in (OBJS): Add gcse-common.c
36342         * gcse.c: Include gcse-common.h
36343         (struct modify_pair_s): Move structure definition to gcse-common.h
36344         (compute_transp): Move function to gcse-common.c.
36345         (canon_list_insert): Similarly.
36346         (record_last_mem_set_info): Break out some code and put it into
36347         gcse-common.c.  Call into the new common code.
36348         (compute_local_properties): Pass additional arguments to compute_transp.
36349         * postreload-gcse.c: Include gcse-common.h and df.h
36350         (modify_mem_list_set, blocks_with_calls): New variables.
36351         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36352         (get_bb_avail_insn): Pass in the expression index too.
36353         (alloc_mem): Allocate memory for the new bitmaps and lists.
36354         (free_mem): Free memory for the new bitmaps and lists.
36355         (insert_expr_in_table): Record a bitmap index for each entry we
36356         add to the table.
36357         (record_last_mem_set_info): Call into common code in gcse-common.c.
36358         (get_bb_avail_insn): If no available insn was found in the requested
36359         BB.  If BB has a single predecessor, see if the expression is
36360         transparent in BB and available in that single predecessor.
36361         (compute_expr_transp): New wrapper for compute_transp.
36362         (eliminate_partially_redundant_load): Pass expression's bitmap_index
36363         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
36364         (gcse_after_reload_main): If there are elements in the hash table,
36365         then compute transparency for all the elements in the hash table.
36366         * gcse-common.h: New file.
36367         * gcse-common.c: New file.
36369 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
36371         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36372         as an adjective.
36373         (System Headers): Likewise.
36374         (Ifdef): Likewise.
36375         (Traditional macros): Likewise.
36376         (Invocation): Likewise.
36377         (Option Index): Likewise.
36378         * doc/cppopts.texi (-M): Likewise.
36379         (-finput-charset): Likewise.
36380         (--help): Likewise.
36381         * doc.invoke.texi (AVR Options): Likewise.
36382         (V850 Options): Likewise.
36384 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
36386         PR ipa/65475
36387         * ipa-devirt.c: Include demangle.h
36388         (odr_type_d): Add field rtti_broken.
36389         (odr_subtypes_equivalent_p): Do not require name to match.
36390         (compare_virtual_tables): Fix typo; if type already has ODR violation,
36391         bypass the tests; be ready for function referneces in vtables that are
36392         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36393         (warn_odr): Give up for nameless types.
36394         (warn_types_mismatch): Report mismatch in mangled names;
36395         report mismatch in anonymous namespaces; look into component types to
36396         give useful error; report when mismatch is dragged in from other ODR
36397         type.
36398         (odr_types_equivalent_p): Match types for being polymorphic; avoid
36399         duplicated diagnostics.
36400         (add_type_duplicate): Reorder checks so more informative ones come
36401         first; fix typo; do not output "the extra base is defined here" when
36402         we did not warn.
36403         (BINFO_N_BASE_BINFOS): Relax sanity check.
36405 2015-03-22  Martin Liska  <mliska@suse.cz>
36406             Jakub Jelinek  <jakub@redhat.com>
36408         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36409         masks that can potentially include a builtin.
36410         (ix86_add_new_builtins): Introduce fast filter for isa values
36411         that cannot trigger builtin inclusion.
36413 2015-03-22  Martin Liska  <mliska@suse.cz>
36415         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36416         (sem_item::update_hash_by_local_refs): Likewise.
36417         (sem_variable::get_hash): Empty line is fixed.
36418         (sem_item_optimizer::execute): Include adding of hash references.
36419         (sem_item_optimizer::update_hash_by_addr_refs): New function.
36420         (sem_item_optimizer::build_hash_based_classes): Use local hash.
36421         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36422         (sem_item::update_hash_by_local_refs): Likewise.
36424 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36426         PR ipa/65502
36427         * ipa-comdats.c (enqueue_references): Walk through thunks.
36428         (ipa_comdats): Likewise.
36429         (set_comdat_group_1): New function.
36431 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36433         PR ipa/65475
36434         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
36435         non-polymorphic
36437 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
36438             Gerald Pfeifer  <gerald@pfeifer.com>
36440         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
36442 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
36443             Sandra Loosemore  <sandra@codesourcery.com>
36445         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
36446         function parameter declaration.
36447         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
36448         Update arguments to nios2_adjust_call_address().
36449         (sibcall_internal): Rename from *sibcall.
36450         (sibcall_value_internal): Rename from *sibcall_value.
36451         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
36452         (nios2_large_got_address): Add target temp reg parameter.
36453         (nios2_got_address): Adjust call to nios2_large_got_address, add
36454         force_reg around it.
36455         (nios2_load_pic_address): Add target temp reg parameter, replace call
36456         to nios2_got_address with corresponding code.
36457         (nios2_legitimize_constant_address): Update call to
36458         nios2_load_pic_address.
36459         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
36460         to use temp reg for PIC loading purposes.
36461         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
36462         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36463         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
36465 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36467         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
36468         usage of "the @option{...}".
36469         (-Wopenmp-simd): Likewise.
36470         (-fsanitize-recover): Likewise.
36471         (-fsanitize-undefined-trap-on-error): Likewise.
36472         (-flto): Likewise.
36473         (tracer-dynamic-coverage-feedback): Likewise.
36474         (reorder-block-duplicate-feedback): Likewise.
36475         (loop-unroll-jam-size): Likewise.
36476         (-B): Likewise.
36477         (-I-): Likewise.
36478         (-mabs=legacy): Likewise.
36479         (-mupper-regs-df): Likewise.
36480         (-mupper-regs-sf): Likewise.
36481         (-mpointers-to-nested-functions): Likewise.
36483 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36485         * doc/extend.texi (Cilk Plus Builtins): Add markup.
36487 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36489         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
36490         additional index entries and cross-references.
36491         (-fchkp-check-incomplete-type): Likewise.
36492         (-fchkp-first-field-has-own-bounds): Likewise.
36493         (-fchkp-narrow-to-innermost-array): Likewise.
36494         (-fchkp-use-fast-string-functions): Likewise.
36495         (-fchkp-use-nochk-string-functions): Likewise.
36496         (-fchkp-use-static-const-bounds): Likewise.
36497         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36498         (-fchkp-instrument-marked-only): Likewise.
36499         (-fchkp-use-wrappers): Likewise.
36500         (-static-libmpx): Likewise.
36501         (-static-libmpxwrappers): Likewise.
36502         * doc/extend.texi (bnd_legacy): Likewise.
36503         (bnd_instrument): Likewise.
36504         (bnd_variable_size): Likewise.
36505         (Pointer Bounds Checker builtins): Likewise.
36507 2015-03-21  Tom de Vries  <tom@codesourcery.com>
36509         PR tree-optimization/65458
36510         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
36511         * cgraph.h (cgraph_node): Add parallelized_function field.
36512         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
36513         (input_overwrite_node): Read parallelized_function field.
36514         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
36515         parallelized_function on cgraph_node for child_fn.
36516         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
36517         Remove include of gt-tree-parloops.h.
36518         (parallelized_functions): Remove static variable.
36519         (parallelized_function_p): Rewrite using parallelized_function field of
36520         cgraph_node.
36521         (create_loop_fn): Remove adding to parallelized_functions.
36522         * Makefile.in (GTFILES): Remove tree-parloops.c
36524 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
36526         PR rtl-optimization/64366
36527         * lra.c (lra_update_insn_regno_info): Consider regs in
36528         CALL_INSN_FUNCTION_USAGE memory.
36530 2015-03-20  Richard Biener  <rguenther@suse.de>
36532         PR middle-end/64715
36533         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
36534         for type comparison and gcc_checking_assert.
36535         (chrec_fold_plus_poly_poly): Likewise.
36536         (chrec_fold_multiply_poly_poly): Likewise.
36537         (chrec_convert_1): Likewise.
36538         * gimplify.c (gimplify_expr): Remove premature folding of
36539         &X + CST to &MEM[&X, CST].
36541 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36543         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
36544         already is final.
36545         (ipa_inline): Recompute inline_failed codes.
36546         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
36547         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
36548         CIF_FINAL_ERROR.
36550 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
36552         PR rtl-optimization/60851
36553         * recog.c (constrain_operands): Accept a pseudo register before reload
36554         for LRA enabled targets.
36556 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
36558         PR target/65240
36559         * config/rs6000/predicates.md (easy_fp_constant): Remove special
36560         -ffast-math handling that kept non-0 constants live in the RTL
36561         until reload.  Remove logic testing the number of instructions it
36562         took to create a constant in a GPR that was never used, due to a
36563         test for soft-float earlier.
36564         (memory_fp_constant): Delete, no longer used.
36566         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
36567         alternatives for loading non-0 constants into GPRs for hard
36568         floating point that is no longer needed due to changes in
36569         easy_fp_constant.  Add support for loading 0.0 into GPRs.
36570         (mov<mode>_hardfloat32): Likewise.
36571         (mov<mode>_hardfloat64): Likewise.
36572         (mov<mode>_64bit_dm): Likewise.
36573         (movtd_64bit_nodm): Likewise.
36574         (pre-reload move FP constant define_split): Delete define_split,
36575         since it is no longer used.
36576         (extenddftf2_internal): Remove GHF constraints that are not valid
36577         for extenddftf2.
36579 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
36581         PR rtl-optimization/63491
36582         * lra-constraints.c (check_and_process_move): Use src instead of
36583         sreg.  Remove some dead code.
36585 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
36587         PR ipa/65380
36588         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
36589         (sem_variable::merge): Likewise.
36591 2015-03-19  Martin Liska  <mliska@suse.cz>
36593         PR ipa/65465
36594         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
36595         all fields of cgraph_thunk_info.
36597 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36599         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
36600         clone instrumented thunks.
36602 2015-03-19  Richard Biener  <rguenther@suse.de>
36604         Revert
36605         2015-03-10  Richard Biener  <rguenther@suse.de>
36607         PR middle-end/63155
36608         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36609         * tree-ssa-coalesce.c: Include timevar.h.
36610         (attempt_coalesce): Handle graph being NULL.
36611         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36612         Split out abnormal coalescing to ...
36613         (perform_abnormal_coalescing): ... this function.
36614         (coalesce_ssa_name): Perform abnormal coalescing without computing
36615         live/conflict.
36616         (verify_ssa_coalescing_worker): New function.
36617         (verify_ssa_coalescing): Likewise.
36619 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36620             Jakub Jelinek  <jakub@redhat.com>
36622         PR sanitizer/65400
36623         * tsan.c (instrument_gimple): Clear tail call flag on
36624         calls.
36626 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
36628         PR sanitizer/65400
36629         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
36630         call in the return bb.
36631         (find_split_points): Add RETURN_BB argument, don't call
36632         find_return_bb.
36633         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
36634         if true append TSAN_FUNC_EXIT internal call after the call to
36635         the split off function.
36636         (execute_split_functions): Call find_return_bb here.
36637         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
36638         Adjust find_split_points and split_function calls.
36640 2015-03-18  DJ Delorie  <dj@redhat.com>
36642         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
36643         (iorqi3_virt): Likewise.
36645 2015-03-18  Tom de Vries  <tom@codesourcery.com>
36647         * tree-parloops.c (parallelize_loops): Make static.
36648         * tree-parloops.h (parallelize_loops): Remove extern declaration.
36650 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
36652         PR middle-end/64491
36653         Revert:
36654         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
36656         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
36657         condition would be removed due to undefined behaviour.
36659 2015-03-18  Martin Liska  <mliska@suse.cz>
36661         PR ipa/65432
36662         * cgraph.c (cgraph_node::get_create): Remove unnecessary
36663         xstrdup_for_dump wrapper.
36664         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
36665         sem_item::name.
36666         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
36667         with xstrdup_for_dump.
36668         (sem_variable::equals): Likewise.
36669         (sem_item_optimizer::read_section): Use symtab_node::name instead of
36670         sem_item::name.
36671         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
36672         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
36673         symtab_node::asm_name with xstrdup_for_dump.
36674         (congruence_class::dump): Use symtab_node::name instead of
36675         sem_item::name.
36676         * ipa-icf.h (symtab_node::name): Remove.
36677         (symtab_node::asm_name): Likewise.
36679 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
36681         PR tree-optimization/65450
36682         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
36683         function.
36684         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
36685         it instead of duplicate_ssa_name_ptr_info.
36687         PR target/65222
36688         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
36690 2015-03-18  Richard Biener  <rguenther@suse.de>
36692         * tree-data-ref.h (struct access_matrix): Remove.
36693         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
36694         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
36695         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
36696         (am_vector_index_for_loop): Likewise.
36697         (struct data_reference): Remove access_matrix member.
36698         (DR_ACCESS_MATRIX): Remove.
36699         (lambda_vector_new): Add comment.
36700         (lambda_matrix_new): Use XOBNEWVEC.
36702 2015-03-18  Richard Biener  <rguenther@suse.de>
36704         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
36705         (pass_ch::execute): Cleanup the CFG only if we did sth.
36706         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
36708 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36710         * expmed.c (synth_mult): Use std::swap instead of manually
36711         swapping algorithms.
36713 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
36715         PR target/65078
36716         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
36718 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
36720         PR target/65296
36721         * config/avr/avr.opt (-nodevicelib): New option.
36722         * doc/invoke.texi (AVR Options): Document it.
36723         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36724         libgcc.a, libc.a, libm.a.
36725         * config/avr/specs.h: Same.
36726         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36727         which don't (directly) depend on the device.  Print more help.
36728         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36729         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36730         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36731         case of an error.
36732         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36733         for specs file name.
36734         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36735         * config/avr/avr-mcus.def: Adjust initializers and comments.
36737 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
36739         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36740         DECL_ONE_ONLY to check if decl is one only.
36741         * ipa-split.c (consider_split): Limit splitt of one only functions.
36743 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36745         PR tree-optimization/65427
36746         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36747         functions.
36748         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36750 2015-03-16  Marek Polacek  <polacek@redhat.com>
36752         * cgraph.h (add_new_static_var): Remove declaration.
36753         * varpool.c (add_new_static_var): Remove function.
36755 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36757         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36758         instead of vec<tree> * with vec_alloc and release for args.
36759         Adjust all users.
36761         PR middle-end/65431
36762         * omp-low.c (delete_omp_context): Only splay_tree_delete
36763         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36764         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
36766 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36768         PR sanitizer/64820
36769         * cfgexpand.c (align_base): New function.
36770         (alloc_stack_frame_space): Call it.
36771         (expand_stack_vars): Align prev_frame to be sure
36772         data->asan_vec elements aligned properly.
36774 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
36776         PR middle-end/65409
36777         * expr.c (store_field): Do not do a direct block copy if the source is
36778         a PARALLEL with BLKmode.
36780 2015-03-16  Tom de Vries  <tom@codesourcery.com>
36782         PR middle-end/65414
36783         Revert:
36784         2015-03-12  Tom de Vries  <tom@codesourcery.com>
36786         PR rtl-optimization/64895
36787         * lra-lives.c (check_pseudos_live_through_calls): Use
36788         actual_call_used_reg_set instead of call_used_reg_set, if available.
36790 2015-03-16  Alan Modra  <amodra@gmail.com>
36792         PR target/63150
36793         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36794         Modify Z->r bswapdi splitter to use dest in place of scratch.
36795         In r->Z and Z->r bswapdi splitter rename word_high, word_low
36796         to word1, word2 and rearrange logic to suit.
36797         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36798         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
36799         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36800         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
36801         early clobber.
36803 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
36805         PR tree-optimization/65369
36806         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36807         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36808         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36810         PR tree-optimization/65418
36811         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36812         are casts in the first PLUS_EXPR operand, ensure tbias and
36813         *totallowp are in the inner type.
36815         PR rtl-optimization/65401
36816         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36817         argument.  If true, adjust_address_nv of x with big-endian
36818         correction for the mode widening to GET_MODE (y).
36819         (make_field_assignment): Don't do MEM mode widening here.
36820         Use MEM_P instead of GET_CODE == MEM.
36822 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
36824         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36825         the external decls.
36827 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36829         PR target/64600
36830         * config/arm/arm.c (arm_gen_constant, AND case): Use
36831         ARM_SIGN_EXTEND when constructing AND mask.
36833 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36835         * graph.c (print_graph_cfg): Make function names visible and append
36836         parenthesis to it.  Also make groups of basic blocks belonging to the
36837         same function visible.
36839 2015-03-12  Richard Biener  <rguenther@suse.de>
36841         PR middle-end/44563
36842         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36843         to avoid quadratic behavior with inline expansion splitting blocks.
36844         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36845         with the successor if the predecessor will be merged with it.
36846         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36847         entry block with its successor.
36849 2015-03-13  Richard Biener  <rguenther@suse.de>
36851         PR middle-end/44563
36852         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36853         (cleanup_tree_cfg_1): Do not call it.
36854         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36855         (fixup_noreturn_call): Mark the stmt as control altering.
36856         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36857         here.
36858         (pass_data_fixup_cfg): Produce a dump file.
36859         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36860         (need_noreturn_fixup): New global.
36861         (pass_dominator::execute): Fixup queued noreturn calls.
36862         (optimize_stmt): Queue calls that became noreturn for fixup.
36863         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36864         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36865         (el_to_fixup): New global.
36866         (eliminate_dom_walker::before_dom_childre): Queue calls that
36867         became noreturn for fixup.
36868         (eliminate): Fixup queued noreturn calls.
36869         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36870         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36871         (substitute_and_fold_dom_walker::before_dom_children): Queue
36872         alls that became noreturn for fixup.
36873         (substitute_and_fold): Fixup queued noreturn calls.
36875 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
36877         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36878         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36879         are building; for methods check ODR type of class they belong to if
36880         they may lead to a polymorphic call.
36881         (sem_function::compare_polymorphic_p): Be bit smarter about testing
36882         when function may lead to a polymorphic call.
36883         (sem_function::compare_type_list): Remove.
36884         (sem_variable::equals): Update use of compatible_types_p.
36885         (sem_variable::parse_tree_refs): Remove.
36886         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36887         cdtor.
36888         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36889         matching here.
36890         (func_checker::compatible_polymorphic_types_p): Break out from ...
36891         (unc_checker::compatible_types_p): ... here.
36892         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36893         Declare.
36894         (unc_checker::compatible_types_p): Update.
36895         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36896         Remove.
36898 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36900         PR rtl-optimization/65235
36901         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36902         When first element of vec_concat is const_int, calculate its size
36903         using second element.
36905 2015-03-12  Richard Biener  <rguenther@suse.de>
36907         PR middle-end/65270
36908         * fold-const.c (operand_equal_p): Fix ordering of resetting
36909         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36911 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36913         * config/s390/s390.c (s390_reorg): Move code to output nops after label
36914         to s390_reorg ().
36915         (s390_asm_output_function_label): Likewise.
36916         * config/s390/s390.c (s390_asm_output_function_label):
36917         Fix function label alignment with -mhtopatch.
36918         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36919         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36920         ("nop_2_byte"): New define_insn.
36921         ("nop_4_byte"): Likewise.
36922         ("nop_6_byte"): Likewise.
36923         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36924         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36926 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36928         PR target/65103
36929         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36930         register.
36932 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36934         PR target/65044
36935         * toplev.c (process_options): Restrict Pointer Bounds Checker
36936         usage with Address Sanitizer.
36938 2015-03-12  Richard Biener  <rguenther@suse.de>
36940         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36941         to split on.
36942         * omp-low.c (expand_omp_taskreg): Split block before removing
36943         the stmt.
36944         (expand_omp_target): Likewise.
36945         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36946         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36947         stmt to split_block.
36949 2015-03-12  Tom de Vries  <tom@codesourcery.com>
36951         PR rtl-optimization/64895
36952         * lra-lives.c (check_pseudos_live_through_calls): Use
36953         actual_call_used_reg_set instead of call_used_reg_set, if available.
36955 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36957         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36958         (cgraph_node::remove): Likewise.
36959         (cgraph_node::get_untransformed_body): Likewise.
36960         * varpool.c (varpool_node::remove): Likewise.
36961         (varpool_node::get_constructor): Add sanity check.
36963 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
36965         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36966         old GCC versions.
36967         (-fabi-compat-version): Likewise.
36968         (-ffriend-injection): Likewise.
36969         (-Wdeclaration-after-statement): Likewise.
36970         (-fomit-frame-pointer): Likewise.
36971         (-ftree-coalesce-inlined-vars): Likewise.
36972         (-fvisibility=): Likewise.
36973         * doc/extend.texi (Typeof): Likewise.
36974         (Zero Length): Likewise.
36975         (Escaped Newlines): Likewise.
36976         (Compound Literals): Likewise.
36977         (Function Attributes): Likewise.
36978         (Label Attributes): Likewise.
36979         (Type Attributes): Likewise.
36980         (Function Names): Likewise.
36981         (Other Builtins): Likewise.
36982         (Function Specific Option Pragmas): Likewise.
36983         (C++ Interface): Likewise.
36985 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
36987         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36989 2015-03-11  Marek Polacek  <polacek@redhat.com>
36991         PR tree-optimization/65388
36992         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36994 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36996         PR target/65296
36997         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36998         * configure: Regenerate.
36999         * config.in: Regenerate.
37000         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
37001         [-mn-flash]: Document it.
37002         [__AVR_ARCH__]: Document avrtiny.
37004         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
37005         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
37006         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
37008 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
37010         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
37012 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
37014         PR target/65242
37015         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
37016         allow reloads of PLUS in floating point/VSX registers.
37018 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
37020         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
37021         crypto_sha256_fast.
37022         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
37024 2015-03-11  Richard Biener  <rguenther@suse.de>
37026         PR tree-optimization/65310
37027         * tree-sra.c (build_ref_for_offset): Also preserve larger
37028         alignment.
37030 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
37032         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
37034 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37036         PR target/65368
37037         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
37038         new define_expand.
37039         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
37041 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
37043         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
37044         (sem_function::equals_wpa): ... here.
37046 2015-03-10  Marek Polacek  <polacek@redhat.com>
37047             Jakub Jelinek  <jakub@redhat.com>
37049         PR sanitizer/65367
37050         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
37051         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
37052         separately.
37054 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37056         PR target/65286
37057         * config/rs6000/t-linux: For powerpc64* target set
37058         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
37060 2015-03-10  Richard Biener  <rguenther@suse.de>
37062         PR middle-end/44563
37063         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
37064         for redirect_all_calls.
37066 2015-03-10  Marek Polacek  <polacek@redhat.com>
37068         * gdbinit.in (pcfun): Define and document.
37070 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
37072         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
37073         of libgomp-plugin.h.
37074         (find_target_compiler): Support a case when the path to gcc is
37075         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
37076         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
37077         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
37078         libgomp-plugin.h.
37079         (main): Use GCC_INSTALL_NAME as target_driver_name.
37080         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
37081         define.
37082         (mkoffload.o): Remove obsolete include path and defines.
37083         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
37085 2015-03-10  Richard Biener  <rguenther@suse.de>
37087         PR middle-end/63155
37088         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37089         * tree-ssa-coalesce.c: Include timevar.h.
37090         (attempt_coalesce): Handle graph being NULL.
37091         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37092         Split out abnormal coalescing to ...
37093         (perform_abnormal_coalescing): ... this function.
37094         (coalesce_ssa_name): Perform abnormal coalescing without computing
37095         live/conflict.
37096         (verify_ssa_coalescing_worker): New function.
37097         (verify_ssa_coalescing): Likewise.
37099 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
37101         PR target/65296
37102         * config.gcc (extra_options) [avr]: Remove.
37103         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
37104         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
37105         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
37107         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
37108         (-mmcu=): Add Var and MissingArgError properties.
37109         (-march=): Remove.
37110         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
37111         * config/avr/t-multilib: Regenerate.
37112         * config/avr/specs.h: New file.
37113         * config/avr/driver-avr.c: New file.
37114         * config/avr/genopt.sh: Remove file.
37115         * config/avr/avr-tables.opt: Remove file.
37116         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
37117         * config/avr/avr-c.c: Same.
37118         * avr-arch.h: Same.
37119         (avr_current_device): Remove proto.
37120         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
37121         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
37122         (EXTRA_SPEC_FUNCTIONS): Define.
37123         (avr_devicespecs_file): New specs function proto.
37124         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
37125         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
37126         (avr_current_device): Remove definition and usage.
37127         (avr_set_core_architecture): New static function.
37128         (avr_option_override): Use it.
37129         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37130         (mcu_name): New static array.
37131         (comparator, avr_archs_str, avr_mcus_str): New static functions.
37132         (avr_inform_devices, avr_inform_core_architectures): New functions.
37133         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37134         (avrlibc.h) [WITH_AVRLIBC]: Include.
37135         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37136         (print_mcu): Rewrite from scratch.
37137         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37138         Forward to avr-specific specs defined in device-specs file.
37139         * config/avr/t-avr (driver-avr.o): New rule.
37140         (avr-devices.o): Depend on avr-arch.h.
37141         (avr-mcus): No more depend on avr-tables.opt.
37142         (avr-tables.opt): Remove rule.
37143         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37145 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37147         * c-family/c.opt (fchkp-use-wrappers): New.
37148         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37149         (chkp_wrap_function): New.
37150         (chkp_build_instrumented_fndecl): Support wrapped
37151         functions.
37152         * doc/invoke.texi (-fcheck-pointer-bounds): New.
37153         (-fchkp-check-incomplete-type): New.
37154         (-fchkp-first-field-has-own-bounds): New.
37155         (-fchkp-narrow-bounds): New.
37156         (-fchkp-narrow-to-innermost-array): New.
37157         (-fchkp-optimize): New.
37158         (-fchkp-use-fast-string-functions): New.
37159         (-fchkp-use-nochk-string-functions): New.
37160         (-fchkp-use-static-bounds): New.
37161         (-fchkp-use-static-const-bounds): New.
37162         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37163         (-fchkp-check-read): New.
37164         (-fchkp-check-write): New.
37165         (-fchkp-store-bounds): New.
37166         (-fchkp-instrument-calls): New.
37167         (-fchkp-instrument-marked-only): New.
37168         (-fchkp-use-wrappers): New.
37169         (-static-libmpx): New.
37170         (-static-libmpxwrappers): New.
37172 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37174         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37175         (CHKP_SPEC): Add wrappers library.
37176         * c-family/c.opt (static-libmpxwrappers): New.
37178 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37180         * config/i386/linux-common.h (LIBMPX_LIBS): New.
37181         (LIBMPX_SPEC): New.
37182         (CHKP_SPEC): New.
37183         * gcc.c (CHKP_SPEC): New.
37184         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37185         * c-family/c.opt (static-libmpx): New.
37187 2015-03-10  Richard Biener  <rguenther@suse.de>
37189         PR middle-end/44563
37190         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37191         for compare_type.
37192         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37193         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37194         (cgraph_add_edge_to_call_site_hash): Likewise.
37195         (cgraph_node::get_edge): Likewise.
37196         (cgraph_edge::set_call_stmt): Likewise.
37197         (cgraph_edge::remove_caller): Likewise.
37199 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
37201         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37202         (callee_saved_gpr_regs_size): ... this.
37203         (callee_saved_regs_first_regno): Rename to ...
37204         (callee_saved_first_gpr_regno): ... this.
37205         (callee_saved_regs_last_regno) Rename to ...
37206         (callee_saved_last_gpr_regno): ... this.
37207         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37208         variables.
37209         (nds32_initial_elimination_offset): Likewise.
37210         (nds32_expand_prologue): Likewise.
37211         (nds32_expand_epilogue): Likewise.
37212         (nds32_expand_prologue_v3push): Likewise.
37213         (nds32_expand_epilogue_v3pop): Likewise.
37214         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37215         Adjust renamed variables.
37216         (nds32_output_stack_pop): Likewise.
37218 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37220         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37221         code in comment.
37223 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37225         PR rtl-optimization/65321
37226         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37227         than shift mode.
37228         * var-tracking.c (use_narrower_mode): Likewise.
37230 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
37232         PR tree-optimization/65355
37233         * varasm.c (notice_global_symbol): Do not produce RTL.
37234         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37235         anchor.
37236         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37237         check for section anchors.
37239 2015-03-10  Alan Modra  <amodra@gmail.com>
37241         PR target/65286
37242         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37243         to be single-arch by default.  Set cpu_is_64bit for powerpc64
37244         given --with-cpu=native.
37245         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37246         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37247         and powerpc64le.
37248         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37249         rs6000_isa_flags rather than TARGET_64BIT.
37251 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
37252             Kaz Kojima  <kkojima@gcc.gnu.org>
37254         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37256 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
37258         PR lto/65361
37259         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37260         on a TREE_BINFO, instead use BINFO_TYPE.
37262 2015-03-09  Richard Biener  <rguenther@suse.de>
37264         PR middle-end/65270
37265         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37266         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37267         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
37268         of that.  When comparing dereferences compare alignment.
37269         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37271 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37273         * ipa-inline-analysis.c (check_callers): Check
37274         node->can_remove_if_no_direct_calls_and_refs_p.
37275         (growth_likely_positive): Reorganize to call
37276         can_remove_if_no_direct_calls_p later.
37277         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37278         will_be_removed_from_program_if_no_direct_calls_p): Add
37279         will_inline parameter.
37280         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37281         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37282         Handle inliner case correctly.
37284 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37286         PR tree-optimization/63743
37287         * cfgexpand.c (reorder_operands): Also reorder if only second operand
37288         had its definition forwarded by TER.
37290 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37292         PR lto/65316
37293         * ipa-utils.h (types_odr_comparable): Add strict argument.
37294         * ipa-devirt.c: Fix whitespace;
37295         (odr_hasher): Remove.
37296         (odr_name_hasher, odr_vtable_hasher): New hashers.
37297         (can_be_name_hashed_p): New predicate.
37298         (hash_type_name): remove.
37299         (hash_odr_name): New.
37300         (odr_name_hasher::hash): new.
37301         (can_be_vtable_hashed_p): New.
37302         (hash_odr_vtable): New.
37303         (odr_vtable_hasher::hash): New.
37304         (types_same_for_odr): Add strict parameter.
37305         (types_odr_comparable): Likewise.
37306         (odr_name_hasher::equal): New.
37307         (odr_vtable_hasher::equal): New.
37308         (odr_name_hasher::remove): New.
37309         (odr_hash_type): Change to hash_table<odr_name_hasher>.
37310         (odr_vtable_hash_type): New.
37311         (odr_vtable_hash): New.
37312         (odr_subtypes_equivalent_p): Do strict comparsion.
37313         (add_type_duplicate): Merge type names; cleanup; avoid type
37314         duplicates.
37315         (register_odr_type): Initialize vtable hash.
37316         (build_type_inheritance_graph): Likewise
37317         (get_odr_type): Reorg to use two hashes.
37318         (dump_possible_polymorphic_call_targets): Move sanity check after debug
37319         output.
37320         (ipa_devirt): Dump type_inheritance_graph.
37321         (types_same_for_odr): Add strict mode.
37323 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37325         PR ipa/65334
37326         * cgraph.h (symtab_node): Add definition_alignment,
37327         can_increase_alignment_p and increase_alignment.
37328         * symtab.c (symtab_node::can_increase_alignment_p,
37329         increase_alignment_1, symtab_node::increase_alignment,
37330         symtab_node::definition_alignment): New.
37331         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37332         can_increase_alignment_p.
37333         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37334         * tree-vect-stmts.c (ensure_base_align): Likewise.
37335         * varasm.c (function_section_1): Use definition_alignment.
37336         (assemble_start_function): Likewise.
37337         (emit_local): likewise.
37338         (build_constant_desc): Likewsie.
37339         (output_constant_def_contents): Likewise.
37340         (place_block_symbol): Likewise.
37341         (output_object_block): Likewise.
37343 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37345         PR ipa/65316
37346         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37347         when outputting debug.
37349 2015-03-07  Marek Polacek  <polacek@redhat.com>
37350             Martin Uecker  <uecker@eecs.berkeley.edu>
37352         PR sanitizer/65280
37353         * doc/invoke.texi: Update description of -fsanitize=bounds.
37355 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
37357         * tree-ssa-phiopt.c (neg_replacement): Remove.
37358         (tree_ssa_phiopt_worker): Remove negate optimization.
37360 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37362         PR ipa/65302
37363         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37365 2015-03-06  Richard Biener  <rguenther@suse.de>
37367         PR middle-end/64928
37368         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37369         and liveout_obstack members.
37370         (calculate_live_on_exit): Remove.
37371         (calculate_live_ranges): Change declaration.
37372         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37373         (new_tree_live_info): Adjust.
37374         (calculate_live_ranges): Delete livein when not wanted.
37375         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37376         Deal with partly deleted live info.
37377         (loe_visit_block): Remove temporary bitmap by using
37378         bitmap_ior_and_compl_into.
37379         (live_worklist): Adjust accordingly.
37380         (calculate_live_on_exit): Make static.
37381         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37382         we do not need livein.
37384 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
37386         * real.c (real_from_string): Fix typo in assertion.
37388 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
37390         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37391         the patch.
37393 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37395         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37397 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
37399         PR target/64342
37400         * lra-assigns.c (find_hard_regno_for): Rename to
37401         find_hard_regno_for_1.  Add a new parameter.
37402         (find_hard_regno_for): New function using find_hard_regno_for_1.
37404 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37406         PR rtl-optimization/65067
37407         * expmed.c (store_bit_field, extract_bit_field): Reworked the
37408         strict volatile bitfield handling.
37410 2015-03-05  Martin Liska  <mliska@suse.cz>
37412         PR ipa/65318
37413         * ipa-icf.c (sem_variable::equals): Compare variables types.
37415 2015-03-05  Richard Henderson  <rth@redhat.com>
37417         PR target/65121
37418         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37419         correctly check weak symbol binding.
37421 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
37423         PR middle-end/65315
37424         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
37425         needed alignment.
37427 2015-03-05  Martin Liska  <mliska@suse.cz>
37429         * ipa-inline.c (inline_small_functions): Set default value to
37430         prevent warning during bootstrap.
37431         * tree.h: Add pragma guard that ignores false positives during
37432         bootstrap.
37434 2015-03-05  Richard Biener  <rguenther@suse.de>
37436         PR tree-optimization/65310
37437         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
37438         Properly preserve alignment of the base of the access.
37440 2015-03-05  Richard Biener  <rguenther@suse.de>
37442         PR ipa/65270
37443         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
37444         Compare dependence info.
37446 2015-03-05  Richard Biener  <rguenther@suse.de>
37448         PR middle-end/65233
37449         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
37450         tree-into-ssa.h.
37451         (walk_ssa_copies): Revert last chage.  Instead do not walk
37452         SSA names registered for SSA update.
37454 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37456         PR ipa/65270
37457         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
37458         vtable references for their containing type.
37459         (sem_function::equals_wpa): Compare TYPE_RESTRICT
37460         and type attributes.
37462 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
37464         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
37465         before negating it.
37466         * stor-layout.c (finalize_record_size): Revert latest change.
37468 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
37470         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
37472 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37474         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
37475         for correct comdat handling.
37476         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37477         Likewise.
37478         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
37479         (used_from_object_file_p_worker): Remove.
37480         (cgraph_node::only_called_directly_or_alised): Add
37481         used_from_object_file_p.
37482         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
37483         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
37484         can_remove_if_no_direct_calls_and_refs_p.
37486 2015-03-04  Nick Clifton  <nickc@redhat.com>
37488         * config/rl78/rl78.h (enum reg_class): Remove real registers from
37489         General register class.
37490         * config/rl78/rl78-real.md: Replace general register constraints
37491         with real+virtual register constraints.
37493 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
37495         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
37496         from checking for -mhtm option.
37498 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37500         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
37501         (struct ipa_sra_check_caller_data): Add has_thunk field.
37502         (ipa_sra_check_caller): Check for thunk.
37503         (ipa_sra_preliminary_function_checks): Give up on function with
37504         thunks.
37505         (ipa_early_sra): Use call_for_symbol_and_aliases.
37507 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
37509         PR target/65249
37510         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
37511         called for __stack_chk_guard symbol.
37513 2015-03-03  DJ Delorie  <dj@redhat.com>
37515         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
37516         inc/dec.
37517         (*addhi3_real): Likewise.
37518         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
37519         pattern to match incrementing memory.
37520         * config/rl78/predicates.md (rl78_1_2_operand): New.
37521         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37522         it's the same and only mem.
37523         (rl78_alloc_physical_registers_op2): If there's effectively only
37524         one MEM, transcode it into HL.
37525         (rl78_far_p): Reject addresses that aren't legitimate.
37527 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37529         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
37530         negating it.
37532         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
37534 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
37536         Implement call0 ABI for xtensa
37537         * config/xtensa/constraints.md ("a" constraint): Include stack
37538         pointer in case of call0 ABI.
37539         ("q" constraint): Make empty in case of call0 ABI.
37540         ("D" constraint): Include stack pointer in case of call0 ABI.
37541         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
37542         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
37543         prototypes.
37544         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
37545         variable.
37546         (xtensa_regno_to_class): Make it a local variable in the
37547         function xtensa_regno_to_class.
37548         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
37549         macro, function prototype and implementation.
37550         (reg_nonleaf_alloc_order): Make it a local variable in the
37551         function order_regs_for_local_alloc.
37552         (xtensa_conditional_register_usage): New function.
37553         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
37554         (xtensa_valid_move): Allow direct moves to stack pointer
37555         register in call0 ABI.
37556         (xtensa_setup_frame_addresses): Only spill register windows in
37557         windowed ABI.
37558         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
37559         call0 ABI respectively.
37560         (xtensa_function_arg_1): Only mark a7 register for copying in
37561         windowed ABI.
37562         (xtensa_call_save_reg): New function.
37563         (compute_frame_size): Add space for callee saved register
37564         storage to the frame size in call0 ABI.
37565         (xtensa_expand_prologue): Generate code to set up stack frame
37566         and save callee-saved registers in call0 ABI.
37567         (xtensa_expand_epilogue): New function.
37568         (xtensa_set_return_address): New function.
37569         (xtensa_return_addr): Calculate return address in call0 ABI.
37570         (xtensa_builtin_saveregs): Only mark a7 register for copying and
37571         emit copying code in windowed ABI.
37572         (order_regs_for_local_alloc): Add preferred register allocation
37573         order for non-leaf function in call0 ABI.
37574         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
37575         (xtensa_asm_trampoline_template): Add trampoline generation for
37576         call0 ABI.
37577         (xtensa_trampoline_init): Add trampoline initialization for
37578         call0 ABI.
37579         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
37580         functions.
37581         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
37582         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
37583         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
37584         ABI call-used registers.
37585         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
37586         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
37587         call0 ABI.
37588         (REG_CLASS_CONTENTS): Include all registers into the preferred
37589         reload registers set, adjust the set in the
37590         xtensa_conditional_register_usage.
37591         (xtensa_regno_to_class): Drop variable declaration.
37592         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
37593         function.
37594         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
37595         respectively.
37596         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
37597         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
37598         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
37599         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
37600         location in call0 ABI.
37601         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
37602         stack adjustment size when handling exception.
37603         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
37604         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
37605         definitions.
37606         ("return" pattern): Generate ret.n/ret in call0 ABI.
37607         ("epilogue" pattern): Expand epilogue.
37608         ("nonlocal_goto" pattern): Use default in call0 ABI.
37609         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
37610         emit eh_set_a0_* depending on ABI.
37611         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
37612         ("eh_set_a0_call0", "blockage"): New patterns.
37614 2015-03-03  Martin Liska  <mliska@suse.cz>
37616         PR ipa/65287
37617         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
37619 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
37621         PR 65138/target
37622         * config/rs6000/rs6000-tables.opt: Regenerate table.
37624 2015-03-03  Renlin Li  <renlin.li@arm.com>
37626         * doc/md.texi (@item ^): Change ? into ^.
37628 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
37630         * doc/tm.texi: Regenerated.
37632 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
37634         * builtins.c (expand_builtin_return_addr): Add
37635         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
37636         surrounding #ifdef.
37637         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
37638         definition to 1.
37639         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
37640         Likewise.
37641         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
37642         undefined.
37643         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
37644         paragraph.
37646 2015-03-03  Martin Jambor  <mjambor@suse.cz>
37647             Eric Botcazou  <ebotcazou@adacore.com>
37649         * tree-sra.c (ipa_sra_check_caller_data): New type.
37650         (has_caller_p): Removed.
37651         (ipa_sra_check_caller): New function.
37652         (ipa_sra_preliminary_function_checks): Use it.
37654 2015-03-03  Martin Liska  <mliska@suse.cz>
37656         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
37657         instead of if branch.
37659 2015-03-03  Martin Liska  <mliska@suse.cz>
37661         PR ipa/65282
37662         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
37664 2015-03-23  Jeff Law  <law@redhat.com>
37666         PR tree-optimization/65241
37667         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
37668         hash table if INSERT is true.
37670 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37672         PR target/65296
37673         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
37675 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37677         PR target/64331
37678         * config/avr/avr.c (context.h, tree-pass.h): Include them.
37679         (avr_pass_data_recompute_notes): New static variable.
37680         (avr_pass_recompute_notes): New class.
37681         (avr_register_passes): New static function.
37682         (avr_option_override): Call it.
37684 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37686         Fix various problems with specs file generation.
37688         PR target/65296
37689         * config.gcc (extra_gcc_objs) [avr]: Remove.
37690         * config/avr/driver-avr.c: Remove file.
37691         * config/avr/t-avr (driver-avr.o): Remove rule.
37692         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
37693         INCLUDES to build.  Depend on TM_H.
37694         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
37695         build warnings.  Fix non-matching types and non-existing %-codes.
37696         (tm.h): Include.
37697         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
37698         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
37699         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
37700         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
37701         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
37702         (LIBGCC_SPEC): Remove definitions.
37704 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37706         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
37707         to create a register in testing mode.
37709 2015-03-03  Martin Liska  <mliska@suse.cz>
37710             Jan Hubicka  <hubicka@ucw.cz>
37712         PR ipa/65263
37713         * cgraph.c (cgraph_node::has_thunk_p): New function.
37714         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
37715         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
37716         (sem_function::merge): Assert is changed.
37718 2015-03-03  Martin Liska  <mliska@suse.cz>
37719             Martin Jambor  <mjambor@suse.cz>
37721         PR ipa/65087
37722         * ipa-icf.c (sem_item_optimizer::execute): Change function
37723         return value to boolean.
37724         (sem_item_optimizer::merge_classes): Likewise.
37725         (ipa_icf_driver): Return TODO_remove_functions in case there's
37726         a merge operation processed.
37727         * ipa-icf.h: Change function return value to boolean.
37729 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
37731         PR 65138/target
37732         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37733         processor type for 64-bit little endian PowerPC.
37735         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37736         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
37737         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
37738         printing built-in mask so it does not pass NULL pointers.
37740         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37741         -mcpu=powerpc64le.
37743 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
37745         PR target/58158
37746         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37747         !ISA_HAS_FP_CONDMOVE.
37749 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
37751         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37752         reload_completed.
37754 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
37756         * doc/invoke.texi (Options for Code Generation Conventions):
37757         Fix URL of DSO paper.
37759 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37761         PR ipa/65130
37762         * ipa-inline.c (check_callers): Looks for recursion.
37763         (inline_to_all_callers): Give up on uninlinable or recursive edges.
37764         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37765         summary of inline clones.
37766         (do_estimate_growth_1): Fix recursion check.
37768 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37770         PR ipa/64988
37771         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37772         comdat groups.
37774 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37775             Aldy Hernandez  <aldyh@redhat.com>
37777         PR lto/65276
37778         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37779         when checking TYPE_BINFO.
37781 2015-03-02  Richard Biener  <rguenther@suse.de>
37783         PR ipa/65270
37784         * ipa-icf-gimple.c: Include builtins.h.
37785         (func_checker::compare_memory_operand): Compare base alignment.
37787 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37789         PR target/65184
37790         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37791         passed by reference.
37793 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37795         PR target/65183
37796         * tree-chkp.c (chkp_check_lower): Don't check against
37797         zero bounds for already instrumented functions.
37798         (chkp_check_upper): Likewise.
37799         (chkp_fini): Clean pass local data to avoid wrong reusage.
37801 2015-02-28  Martin Liska  <mliska@suse.cz>
37802             Jan Hubicka  <hubicka@ucw.cz>
37804         * ipa-icf.c (sem_variable::equals): Improve debug output;
37805         get variable constructor.
37806         (sem_variable::parse): Do not filter out too early; give up on
37807         volatile and register vars.
37808         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37809         variables.
37810         * ipa-icf.h (sem_variable::init): Do not set ctor.
37811         (sem_variable::ctor): Remove.
37813 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
37815         PR middle-end/65233
37816         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37818 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37820         * ipa-icf.c: Include stor-layout.h
37821         (sem_function::compare_cgraph_references): Rename to ...
37822         (sem_item::compare_cgraph_references): ... this one.
37823         (sem_variable::equals_wpa): New function
37824         (sem_variable::equals): Do not check stuff already verified by
37825         equals_wpa.
37826         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37827         * ipa-icf.h (sem_item): Add compare_cgraph_references.
37828         (sem_function): Remove compare_cgraph_references.
37829         (sem_variable): Turns equals_wpa into non-inline.
37831 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37833         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37834         (sem_item::add_expr): New function.
37835         (sem_function::hash_stmt): Handle operands of most statements.
37836         (sem_variable::get_hash): Hash the actual constructor.
37837         * ipa-icf.h (sem_item): Add add_expr.
37838         (sem_function): Update prototype of hash_stmt
37840 2015-02-28  Martin Liska  <mliska@suse.cz>
37841             Jan Hubicka  <hubicka@ucw.cz>
37843         PR ipa/65245
37844         * ipa-icf-gimple.c (func_checker::compare_function_decl):
37845         Remove.
37846         (func_checker::compare_variable_decl): Skip symtab vars.
37847         (func_checker::compare_cst_or_decl): Update.
37848         * ipa-icf.c (sem_function::parse): Do not consider aliases.
37849         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37850         use correct symtab predicates.
37851         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37852         (sem_variable::parse):  Update comment.
37853         (sem_item_optimizer::build_graph): Consider ultimate aliases
37854         for references.
37856 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37858         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37859         of OBJ_TYPE_REF.
37861 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37863         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37864         (sem_variable::merge) Likewise.
37866 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37868         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37869         target; also match flag_ipa_devirt.
37871 2015-03-01  Martin Liska  <mliska@suse.cz>
37872             Jan Hubicka  <hubicka@ucw.cz>
37874         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37875         Validate variable alignment.
37876         * ipa-icf.c (sem_function::equals_private): Be more precise
37877         about non-common function attributes.
37878         (sem_variable::equals): Likewise.
37880 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37882         PR ipa/65237
37883         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37884         across COMDAT group boundary.
37886 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37888         PR ipa/65232
37889         * ipa-icf.c (clear_decl_rtl): New function.
37890         (sem_function::merge): Clear RTL before forming alias.
37891         (sem_variable::merge): Clear RTL before forming alias.
37893 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37895         PR ipa/65236
37896         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37898 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
37900         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37901         to neon_to_gp<q>.
37903 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37905         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37906         a typo in the description.
37908 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37910         PR target/64317
37911         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37912         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37913         * lra-constraints.c: Include "params.h".
37914         (EBB_PROBABILITY_CUTOFF): Use
37915         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37916         (lra_inheritance): Use '<' instead of '<=' for
37917         EBB_PROBABILITY_CUTOFF.
37918         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37919         Document change.
37921 2015-02-27  Martin Liska  <mliska@suse.cz>
37923         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37924         vector length condition.
37926 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
37928         * doc/extend.texi (x86 transactional memory intrinsics):
37929         Reorganize discussion of _xbegin.  Clarify that the return
37930         value is a bit mask.  Expand example and move to end of section.
37932 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37933             Aldy Hernandez  <aldyh@redhat.com>
37935         PR rtl-optimization/65220
37936         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37938 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37940         PR target/65032
37941         * lra-remat.c (update_scratch_ops): New.
37942         (do_remat): Call it.
37943         * lra.c (lra_register_new_scratch_op): New. Take code from ...
37944         (remove_scratches): ... here.
37945         * lra-int.h (lra_register_new_scratch_op): New prototype.
37947 2015-02-27  Marek Polacek  <polacek@redhat.com>
37949         PR c/65040
37950         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37951         -Wformat-signedness anymore.
37953 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37955         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37956         function.
37957         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37959 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37961         * config/s390/s390.c (enum s390_builtin):
37962         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37963         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37964         (s390_init_builtins): Generate new builtin functions.
37965         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37966         (s390_sfpc, s390_efpc): New pattern definitions.
37968 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37970         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37971         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37972         (s390_builtin_decls): New array.
37973         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37974         (s390_builtin_decl): New function.
37975         (TARGET_BUILTIN_DECL): Define macro.
37977 2015-02-27  Richard Biener  <rguenther@suse.de>
37979         PR middle-end/63175
37980         * builtins.c (get_object_alignment_2): Make sure to re-apply
37981         the ANDed mask after recursing to its operand gets us a new
37982         misalignment bit position.
37984 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
37985             Martin Liska  <mliska@suse.cz>
37987         PR bootstrap/65150
37988         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37989         Use address_matters_p.
37990         (redirect_all_callers, set_addressable): New functions.
37991         (sem_function::merge): Reorganize and fix merging issues.
37992         (sem_variable::merge): Likewise.
37993         (sem_variable::compare_sections): Remove.
37994         * common.opt (fmerge-all-constants, fmerge-constants): Remove
37995         Optimization flag.
37996         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37997         redirect them.
37998         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37999         decl is used.
38000         (address_matters_1): New function.
38001         (symtab_node::address_matters_p): New function.
38002         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
38003         check for merged flag.
38004         * cgraph.h (address_matters_p): Declare.
38005         (symtab_node::address_taken_from_non_vtable_p): Remove.
38006         (symtab_node::address_can_be_compared_p): New method.
38007         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
38008         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
38009         Remove.
38010         (comdat_can_be_unshared_p_1) Use address_matters_p.
38011         (update_vtable_references): Fix formating.
38012         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
38013         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
38014         * cgraphclones.c: Preserve merged and icf_merged flags.
38016 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
38018         * doc/extend.texi (Function Attributes): Fix spelling and typos.
38019         (Label Attributes): Likewise.
38020         (Cilk Plus Builtins): Likewise.
38021         (ARC SIMD Built-in Functions): Likewise.
38022         (ARM C Language Extensions (ACLE)): Likewise.
38023         (PowerPC Built-in Functions): Likewise.
38024         (PowerPC Hardware Transactional Memory Built-in Functions):
38025         Likewise.
38027 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
38029         PR tree-optimization/65216
38030         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
38031         new stmt and new SSA_NAME for lhs whenever the arguments have
38032         changed and weren't just swapped.  Fix comment typo.
38034         PR tree-optimization/65215
38035         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
38036         for PDP endian targets.
38037         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
38038         Fix up formatting issues.
38039         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
38040         size is smaller than the original, adjust MEM_REF offset by the
38041         difference of sizes.  Use is_gimple_mem_ref_addr instead of
38042         is_gimple_min_invariant test to avoid adding address temporaries.
38044 2015-02-26  Martin Liska  <mliska@suse.cz>
38045             Jan Hubicka  <hubicka@ucw.cz>
38047         PR ipa/64693
38048         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
38049         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
38050         (sem_item_optimizer::process_cong_reduction): Include division by
38051         sensitive references.
38052         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
38053         * ipa-ref.c (ipa_ref::address_matters_p): New function.
38054         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
38056 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
38058         PR target/65192
38059         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
38060         Remove.
38061         * config/avr/avr.c: Same.
38062         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
38063         Refuse any constant address not in 0..0xbf.
38064         * config/avr/avr.md (*mov<mode>, *movsf): Remove
38065         tiny_valid_direct_memory_access_range from insn conditions.
38066         (mov<mode>): Don't special-case expansion of avrtiny addresses.
38068 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
38070         PR target/61142
38071         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
38072         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
38073         * config/sh/predicates.md (const_logical_operand): New predicate.
38074         * config/sh/sh.md: Add new peephole2 patterns.
38076 2015-02-26  Marek Polacek  <polacek@redhat.com>
38078         PR ipa/65008
38079         * ipa-inline.c (early_inliner): Recompute inline parameters.
38081 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38083         PR target/65171
38084         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
38085         instructions with TImode operands are included in the analysis.
38087 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
38089         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
38090         of an EDGE_FSM_THREAD.
38092 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38094         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
38096 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
38098         PR debug/46102
38099         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
38101 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
38103         PR tree-optimization/65048
38104         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
38105         (thread_through_all_blocks): Call valid_jump_thread_path.
38106         Remove invalid FSM jump-thread paths.
38108 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
38110         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
38111         (ipa_write_optimization_summaries): Likewise.
38112         * tree-streamer.h: Include data-streamer.h.
38113         (streamer_mode_table): Declare extern variable.
38114         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
38115         * lto-streamer-out.c (lto_output_init_mode_table,
38116         lto_write_mode_table): New functions.
38117         (produce_asm_for_decls): Call lto_write_mode_table when streaming
38118         offloading LTO.
38119         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
38120         (lto_create_simple_input_block): Add mode_table argument to the
38121         lto_input_block constructors.
38122         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
38123         Likewise.
38124         * data-streamer-in.c (string_for_index): Likewise.
38125         * ipa-inline-analysis.c (inline_read_section): Likewise.
38126         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
38127         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
38128         * lto-streamer-in.c (lto_read_body_or_constructor,
38129         lto_input_toplevel_asms): Likewise.
38130         (lto_input_mode_table): New function.
38131         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38132         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38133         Use bp_pack_machine_mode.
38134         * real.h (struct real_format): Add name field.
38135         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38136         (class lto_input_block): Add mode_table member.
38137         (lto_input_block::lto_input_block): Add mode_table_ argument,
38138         initialize mode_table.
38139         (struct lto_file_decl_data): Add mode_table field.
38140         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38141         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38142         unpack_ts_decl_common_value_fields,
38143         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38144         * tree-streamer.c (streamer_mode_table): New variable.
38145         * real.c (ieee_single_format, mips_single_format,
38146         motorola_single_format, spu_single_format, ieee_double_format,
38147         mips_double_format, motorola_double_format,
38148         ieee_extended_motorola_format, ieee_extended_intel_96_format,
38149         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38150         ibm_extended_format, mips_extended_format, ieee_quad_format,
38151         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38152         decimal_single_format, decimal_double_format, decimal_quad_format,
38153         ieee_half_format, arm_half_format, real_internal_format): Add name
38154         field.
38155         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38157 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
38159         PR target/65161
38160         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38161         reordering for selective scheduling.
38163 2015-02-26  Terry Guo  <terry.guo@arm.com>
38165         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38166         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38167         (arm_arch_no_volatile_ce): Declare new global variable.
38168         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38169         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38170         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38171         (TARGET_NO_VOLATILE_CE): New macro.
38172         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38173         volatile memory access in IT block
38175 2015-02-25  Kai Tietz  <ktietz@redhat.com>
38177         PR tree-optimization/61917
38178         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38179         that reduc_def_stmt is null.
38181 2015-02-25  Martin Liska  <mliska@suse.cz>
38183         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38184         hard register variables.
38186 2015-02-25  Kai Tietz  <ktietz@redhat.com>
38188         PR target/64212
38189         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38190         (symtab::noninterposable_alias): Likewise.
38192 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
38194         PR target/65167
38195         * config/i386/i386.c (ix86_function_arg_regno_p): Support
38196         bounds registers.
38197         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38199 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
38201         PR target/64997
38202         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38203         as split condition; force split via '#' in output pattern.
38205 2015-02-25  Richard Biener  <rguenther@suse.de>
38206             Kai Tietz  <ktietz@redhat.com>
38208         PR tree-optimization/61917
38209         * tree-vect-loop.c (vectorizable_reduction): Allow
38210         vect_internal_def without reduction to exit graceful.
38212 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
38214         PR target/65196
38215         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38216         only with NONDEBUG_INSN_P.
38218 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
38220         Use variadic macros with avr-log.c.
38222         * config/avr/avr-protos.h (avr_vdump): New prototype.
38223         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38224         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38225         * config/avr/avr-log.c: Adjust comments.
38226         (avr_vdump): New function.
38227         (avr_vadump): Pass caller as 2nd argument instead of format string.
38228         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38229         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38231 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
38233         PR lto/64374
38234         * target.def (target_option_stream_in): New target hook.
38235         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38236         targetm.target_option.post_stream_in if non-NULL.
38237         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38238         * doc/tm.texi: Updated.
38239         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38240         function.
38241         (TARGET_OPTION_POST_STREAM_IN): Redefine.
38243 2015-02-24  Jeff Law  <law@redhat.com>
38245         PR target/65117
38246         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38247         of operand 0 and operand 2.
38248         (zero_cost_loop_end, loop_end): Similarly.
38250 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
38252         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38253         CXX_MEM_STAT_INFO.
38255 2015-02-24  DJ Delorie  <dj@redhat.com>
38257         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38258         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38259         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38260         instead of hardcoding SImode.
38262 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
38264         * omp-low.c (create_omp_child_function): Tag entrypoint
38265         functions with a special attribute.
38267 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38269         PR target/65058
38270         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38272 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
38274         PR rtl-optimization/65123
38275         * lra-remat.c (operand_to_remat): Check hard regs in insn
38276         definition too.
38278 2015-02-24  Nick Clifton  <nickc@redhat.com>
38280         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38281         to the assembler.
38283 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
38285         PR libgomp/64625
38286         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38287         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38288         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38289         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38290         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38291         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38292         (BUILT_IN_GOACC_PARALLEL): Specify as
38293         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38294         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38295         * builtin-types.def
38296         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38297         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38298         Remove function types.
38299         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38300         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38301         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38302         New function types.
38304 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
38306         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38308 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
38310         PR tree-optimization/65170
38311         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38312         if val[1] < 0, clear also val[2] and return 3.
38314 2015-02-24  Alan Modra  <amodra@gmail.com>
38316         PR target/65172
38317         * config/rs6000/rs6000.c (get_memref_parts): Only return true
38318         when *base is a reg.  Handle nested plus addresses.  Simplify
38319         pre_modify test.
38321 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
38323         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38324         use natural alignment when optimizing for size.
38326 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
38328         PR target/65153
38329         * config/sh/sh.md (movsicc_true+3): Remove peephole.
38330         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38331         * config/sh/sh.c (replace_n_hard_rtx): Remove.
38333 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
38335         PR fortran/63427
38336         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38337         too big for a wide_int.  Implement missing wrapping operation.
38339 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
38341         PR target/65163
38342         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38343         instead of const_int 4294901760.
38345 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
38347         * config/avr/t-avr: Fix typo in comment.
38349 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
38351         * doc/rtl.texi (fma): Clarify documentation.
38353 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
38355         PR debug/58123
38356         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38357         over input_location.
38359 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38361         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38362         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38363         restrict alignments to absolute_biggest_alignment.
38364         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38365         Define.
38366         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38367         * doc/tm.texi: Regenerate.
38368         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38370 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
38372         PR target/64172
38373         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38375 2015-02-20  Richard Biener  <rguenther@suse.de>
38377         PR tree-optimization/65136
38378         * tree-ssa-propagate.c: Include cfgloop.h.
38379         (replace_phi_args_in): Avoid replacing loop latch edge PHI
38380         arguments with constants.
38382 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
38383             Martin Liska  <mliska@suse.cz>
38385         PR target/63892
38386         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38387         don't try to create_thunk if stdarg_p.  If
38388         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38389         redirect_callers if possible.
38390         (sem_item_optimizer::execute): Call unregister_hooks here...
38391         (ipa_icf_driver): ... instead of here.
38393 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38395         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38396         Mark operand 0 as earlyclobber in 2nd alternative.
38397         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38398         Write negated shift amount into QI lowpart operand 0 and use it
38399         in the shift step.
38400         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38402 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38404         * cgraph.h (clone_function_name_1): Declare.
38405         * cgraphclones.c (clone_function_name_1): New function.
38406         (clone_function_name): Use it.
38407         * lto-partition.c: Include "stringpool.h".
38408         (must_not_rename, maybe_rewrite_identifier)
38409         (validize_symbol_for_target): New static functions.
38410         (privatize_symbol_name): Use must_not_rename.
38411         (promote_symbol): Call validize_symbol_for_target.
38412         (lto_promote_cross_file_statics): Likewise.
38413         (lto_promote_statics_nonwpa): Likewise.
38415 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
38417         PR target/64452
38418         * config/avr/avr.md (pushhi_insn): New insn.
38419         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38421 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38422             Jakub Jelinek  <jakub@redhat.com>
38424         * tree-streamer.c (preload_common_nodes): Don't preload
38425         TI_VA_LIST* for offloading.
38426         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
38427         in_lto_p.
38429 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
38431         * config/pa/pa.c (pa_emit_move_sequence): Always force
38432         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
38433         note on insn.
38435         * config/pa/pa.c (pa_reloc_rw_mask): New function.
38436         (TARGET_ASM_RELOC_RW_MASK): Define.
38437         (pa_cannot_force_const_mem): Revert previous change.
38439 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
38440             Jan Hubicka  <hubicka@ucw.cz>
38442         PR ipa/65028
38443         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
38444         across jump functions.
38446 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
38448         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
38450 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
38452         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
38454 2015-02-19  Richard Henderson  <rth@redhat.com>
38456         PR middle-end/65074
38457         * varasm.c (default_binds_local_p_2): Don't test node->definition;
38458         test DECL_EXTERNAL independent of symtab_node.
38460 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
38462         PR lto/65012
38463         * varpool.c (varpool_node::get_constructor): Return early
38464         if this->lto_file_data is NULL.
38466 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38468         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
38469         (rank_for_schedule_debug): Update.
38470         (ready_sort): Make static.  Move sorting logic to ...
38471         (ready_sort_debug, ready_sort_real): New static functions.
38472         (schedule_block): Sort both debug insns and real insns in preparation
38473         for ready list trimming.  Improve debug output.
38474         * sched-int.h (ready_sort): Remove global declaration.
38476 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
38478         * ipa-icf.c (sem_function::equals_private): Adjust.
38479         (sem_function::bb_dict_test): Take a vec<int> * instead of
38480         auto_vec<int>.
38481         * ipa-icf.h (bb_dict_test): Likewise.
38483 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38485         PR gcov-profile/64634
38486         * tree-eh.c (frob_into_branch_around): Fix up typos
38487         in function comment.
38488         (lower_catch): Put eh_seq resulting from EH lowering of
38489         the cleanup sequence after the cleanup rather than before it.
38491 2015-02-18  Tom de Vries  <tom@codesourcery.com>
38493         * common.opt (fstdarg-opt): New option.
38494         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
38495         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
38496         (@item -fstdarg-opt): New item.
38498 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
38500         PR target/65064
38501         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
38502         for common symbols.
38504 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38506         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
38507         insn-modes.h.
38508         (ALL_HOST_OBJS): Add mkoffload.o.
38509         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
38511 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
38513         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
38514         (compare_virtual_tables): Be smarter about skipping typeinfos;
38515         do sane output on virtual table table mismatch.
38516         (warn_odr): Be ready for forward declarations of enums;
38517         output sane info on base mismatch and virtual table mismatch.
38518         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
38519         when only one type is polymorphic.
38520         (get_odr_type): Fix hashtable corruption.
38521         (dump_odr_type): Dump mangled names.
38523 2015-02-18  Richard Biener  <rguenther@suse.de>
38525         PR tree-optimization/65063
38526         * tree-predcom.c (determine_unroll_factor): Return 1 if we
38527         have replaced looparound PHIs.
38529 2015-02-18  Martin Liska  <mliska@suse.cz>
38531         * lto-streamer.c (lto_streamer_init): Encapsulate
38532         streamer_check_handled_ts_structures with checking macro.
38534 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38536         PR ipa/65087
38537         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
38538         section if !implicit_section.
38539         (cgraph_node::create_version_clone_with_body): Likewise.
38540         * trans-mem.c (ipa_tm_create_version): Likewise.
38542 2015-02-18  Richard Biener  <rguenther@suse.de>
38544         PR tree-optimization/62217
38545         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
38546         into BIVs.
38548 2015-02-18  Marek Polacek  <polacek@redhat.com>
38550         PR sanitizer/65081
38551         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
38552         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
38553         is in range [-16K, -1].  Don't issue run-time error if
38554         (ptr > ptr + offset).
38556 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
38558         * doc/install.texi (nvptx-*-none): New section.
38559         * doc/invoke.texi (Nvidia PTX Options): Likewise.
38560         * config/nvptx/nvptx.opt: Update.
38562         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
38563         (access_check): New functions, copied from
38564         config/i386/intelmic-mkoffload.c.
38565         (main): For non-installed testing, look in all COMPILER_PATHs for
38566         GCC_INSTALL_NAME.
38568         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
38570 2015-02-18  Andrew Pinski  <apinski@cavium.com>
38571             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38573         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
38574         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
38576 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
38578         * ipa-visibility.c (function_and_variable_visibility): Only
38579         check locality if node is not already local.
38580         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38581         call_for_symbol_and_aliases instead of
38582         call_for_symbol_thunks_and_aliases.
38583         (ipa_inline): Likewise.
38584         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38585         first walk aliases.
38586         * ipa.c (symbol_table::remove_unreachable_nodes): Use
38587         call_for_symbol_and_aliases.
38588         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38589         (ipa_propagate_frequency_1): Use it; use opt_for_fn
38590         (ipa_propagate_frequency): Update.
38591         (ipa_profile): Add opt_for_fn gueards.
38593 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
38595         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
38596         * doc/invoke.texi (SH options): Document it.
38597         * config/sh/sh.c (sh_insn_length_adjustment): Check
38598         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
38600 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
38602         * common.opt (fipa-cp-alignment): New.
38603         * ipa-cp.c (ipcp_store_alignment_results): Check
38604         flag_ipa_cp_alignment.
38605         * opts.c (default_options_table): Enable -fipa-cp-alignment for
38606         -O2.
38607         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
38608         * doc/invoke.texi: Document -fipa-cp-alignment.
38610 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
38612         PR target/64793
38613         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
38614         to nil.  Adjust comments.
38616 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
38618         * ipa-visibility.c (function_and_variable_visibility): Only
38619         check locality if node is not already local.
38620         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38621         call_for_symbol_and_aliases instead of
38622         call_for_symbol_thunks_and_aliases.
38623         (ipa_inline): Likewise.
38624         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38625         first walk aliases.
38626         * ipa.c (symbol_table::remove_unreachable_nodes): Use
38627         call_for_symbol_and_aliases.
38628         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38629         (ipa_propagate_frequency_1): Use it; use opt_for_fn
38630         (ipa_propagate_frequency): Update.
38631         (ipa_profile): Add opt_for_fn guards.
38633 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
38635         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
38636         skipping of "strange" tokens.
38638 2015-02-17  Jeff Law  <law@redhat.com>
38640         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
38641         obsolete comment.
38643 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
38645         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
38646         as forcing a HARD_DEP between instructions, thereby
38647         disallowing rewriting to break dependencies.
38649 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
38651         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
38652         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
38653         variables in boundary that have no inlitalizer encoded and are
38654         not aliases.
38655         * varasm.c (default_binds_local_p_2): External definitions do not
38656         count as definitions here.
38658 2015-02-16  Jeff Law  <law@redhat.com>
38660         PR tree-optimization/64823
38661         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
38662         statements.
38663         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38664         threading through blocks with PHIs, but no statements.
38665         (thread_through_normal_block): Distinguish between blocks where
38666         we did not process all the statements and blocks with no statements.
38668 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
38669             James Greenhalgh  <james.greenhalgh@arm.com>
38671         PR ipa/64963
38672         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
38673         section if not linkonce.  Fix up formatting.
38674         (cgraph_node::create_version_clone_with_body): Copy section.
38675         * trans-mem.c (ipa_tm_create_version): Likewise.
38677 2015-02-16  Richard Biener  <rguenther@suse.de>
38679         PR tree-optimization/65077
38680         * tree-ssa-structalias.c (get_constraint_for_1): Handle
38681         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
38682         (find_func_aliases): Allow float values to carry pointers again.
38684 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
38686         * doc/install.texi (Specific): Reorder targets list to put
38687         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
38688         from the top menu.
38690 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
38691             David Edelsohn  <dje.gcc@gmail.com>
38693         PR target/65058
38694         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
38695         mapping class to external variable or function reference.
38696         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
38697         mapping class.
38699 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
38701         PR target/53348
38702         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
38703         ASM_WEAKEN_DECL if defined.
38705 2015-02-16  Richard Biener  <rguenther@suse.de>
38707         PR lto/65015
38708         * varasm.c (default_file_start): For LTO produced units
38709         emit <artificial> as file directive.
38711 2015-02-16  Richard Biener  <rguenther@suse.de>
38713         PR tree-optimization/63593
38714         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
38715         stmts and releasing SSA names until...
38716         (execute_pred_commoning): ... after processing all chains.
38718 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
38720         PR ipa/65059
38721         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
38722         external functions.
38724 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
38726         * doc/bugreport.texi: Adjust section titles throughout the file
38727         to use "Title Case".
38728         * doc/extend.texi: Likewise.
38729         * doc/gcov.texi: Likewise.
38730         * doc/implement-c.texi: Likewise.
38731         * doc/implement-cxx.texi: Likewise.
38732         * doc/invoke.texi: Likewise.
38733         * doc/objc.texi: Likewise.
38734         * doc/standards.texi: Likewise.
38735         * doc/trouble.texi: Likewise.
38737 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
38739         * cgraph.h (symtab_node::has_aliases_p): Simplify.
38740         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38741         * tree.c (lookup_binfo_at_offset): Make static.
38742         (get_binfo_at_offset): Do not shadow offset; add explanatory
38743         comment.
38745 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
38747         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38748         for all floading point loads and stores except those using a register
38749         index address.
38750         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38751         to a register.
38753 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38755         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38756         (do_estimate_growth_1): Record if any uninlinable edge was seen.
38757         (estimate_growth): Handle uninlinable edges correctly.
38758         (check_callers): New.
38759         (growth_likely_positive): Handle aliases correctly.
38761 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38763         * ipa-chkp.c: Use iterate_direct_aliases.
38764         * symtab.c (resolution_used_from_other_file_p): Move inline.
38765         (symtab_node::create_reference): Fix formating.
38766         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38767         (symtab_node::iterate_reference): Move inline.
38768         (symtab_node::iterate_referring): Move inline.
38769         (symtab_node::iterate_direct_aliases): Move inline.
38770         (symtab_node::used_from_object_file_p_worker): Inline into ...
38771         (symtab_node::used_from_object_file_p): ... this one; move inline.
38772         (symtab_node::call_for_symbol_and_aliases): Move inline;
38773         use iterate_direct_aliases.
38774         (symtab_node::call_for_symbol_and_aliases_1): New method.
38775         (cgraph_node::call_for_symbol_and_aliases): Move inline;
38776         use iterate_direct_aliases.
38777         (cgraph_node::call_for_symbol_and_aliases_1): New method.
38778         (varpool_node::call_for_node_and_aliases): Rename to ...
38779         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38780         use iterate_direct_aliases.
38781         (varpool_node::call_for_symbol_and_aliases_1): New method.
38782         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38783         (ipa_discover_readonly_nonaddressable_var): Update.
38784         * ipa-devirt.c: Fix formating.
38785         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38786         Move inline.
38787         (cgraph_node::call_for_symbol_and_aliases): Move inline.
38788         (cgraph_node::call_for_symbol_and_aliases_1): New function..
38789         * cgraph.h (used_from_object_file_p_worker): Remove.
38790         (resolution_used_from_other_file_p): Move inline.
38791         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38792         (symtab_node::iterate_reference): Move inline.
38793         (symtab_node::iterate_referring): Move inline.
38794         (symtab_node::iterate_direct_aliases): Move inline.
38795         (symtab_node::used_from_object_file_p_worker): Inline into ...
38796         (symtab_node::used_from_object_file_p): Move inline.
38797         * tree-emutls.c (ipa_lower_emutls): Update.
38798         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38799         (varpool_node::call_for_node_and_aliases): Remove.
38801 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
38803         PR tree-optimization/62209
38804         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38805         op == range->exp, insert seq and gimplified code after labels
38806         instead of after the phi.
38808 2015-02-13  Jeff Law  <law@redhat.com>
38810         PR bootstrap/65060
38811         Revert my change for tree-optimization/64823.
38813 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38815         PR tree-optimization/65053
38816         * tree-ssa-phiopt.c (value_replacement): When moving assign before
38817         cond, either reset VR on lhs or set it to phi result VR.
38819 2015-02-13  Jeff Law  <law@redhat.com>
38821         PR tree-optimization/64823
38822         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38823         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38824         threading through blocks with PHIs, but no statements.
38825         (thread_through_normal_block): Distinguish between blocks where
38826         we did not process all the statements and blocks with no statements.
38828         PR rtl-optimization/47477
38829         * match.pd (convert (plus/minus (convert @0) (convert @1): New
38830         simplifier to narrow arithmetic.
38832 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
38834         PR ipa/65028
38835         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38836         polymorphic call info when type is not known to be preserved.
38838 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
38840         PR ipa/65028
38841         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38842         (inline_call): Use it.
38844 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
38846         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38847         GOMP_DEVICE_NVIDIA_PTX.
38849 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38851         PR ipa/65034
38852         * stmt.c (emit_case_nodes): Use void_type_node instead of
38853         NULL_TREE as LABEL_DECL type.
38855 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
38857         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38858         constraints.
38859         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38860         symbolic references to data to be forced to constant memory on the
38861         SOM target.
38863 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
38865         PR tree-optimization/65002
38866         * tree-cfg.c (pass_data_fixup_cfg): Don't update
38867         SSA on start.
38868         * tree-sra.c (some_callers_have_no_vuse_p): New.
38869         (ipa_early_sra): Reject functions whose callers
38870         assume function is read only.
38872 2015-02-13  Richard Biener  <rguenther@suse.de>
38874         PR lto/65015
38875         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38876         for LTO produced CUs.
38878 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
38880         PR tree-optimization/64705
38881         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38882         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38883         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38884         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38885         expand_simple_operations.
38887 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
38888             Richard Henderson  <rth@redhat.com>
38890         PR rtl/32219
38891         * cgraphunit.c (cgraph_node::finalize_function): Set definition
38892         before notice_global_symbol.
38893         (varpool_node::finalize_decl): Likewise.
38894         * varasm.c (default_binds_local_p_2): Rename from
38895         default_binds_local_p_1, add weak_dominate argument.  Use direct
38896         returns instead of assigning to local variable.  Unify varpool and
38897         cgraph paths via symtab_node.  Reject undef weak variables before
38898         testing visibility.  Reorder tests for simplicity.
38899         (default_binds_local_p): Use default_binds_local_p_2.
38900         (default_binds_local_p_1): Likewise.
38901         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38902         via symtab_node.
38903         (default_elf_asm_output_external): Emit visibility when specified.
38905 2015-02-13  Alan Modra  <amodra@gmail.com>
38907         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38908         code setting up r11 for out-of-line fp restore.
38910 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
38912         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38913         (muser-mode): Likewise.
38915 2015-02-13  Alan Modra  <amodra@gmail.com>
38917         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38918         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38920 2015-02-12  David Howells  <dhowells@redhat.com>
38922         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38923         warning.
38924         * tree-ssa-uninit.c (dump_predicates): Likewise.
38925         * opts.c (print_filtered_help): Likewise.
38927 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38929         * dwarf2out.c (output_die): Use "%s", name instead of name to
38930         avoid -Wformat-security warning.
38932         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38933         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38934         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38935         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38937 2015-02-12  Jason Merrill  <jason@redhat.com>
38939         * common.opt (-flifetime-dse): New.
38941 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38943         PR sanitizer/65019
38944         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38946         PR tree-optimization/65014
38947         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38948         use original second operand of arg0 or arg1 instead of
38949         that adjusted by STRIP_NOPS.
38951 2015-02-11  Jeff Law  <law@redhat.com>
38953         PR target/63347
38954         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38955         that needs to be queued, just queue it for a single cycle.
38957 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
38959         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38960         bodies of thunks; comment on why.
38961         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38962         symbols are extern.
38964 2015-02-11  Richard Henderson  <rth@redhat.com>
38966         PR sanitize/65000
38967         * tree-eh.c (mark_reachable_handlers): Mark source and destination
38968         regions of __builtin_eh_copy_values.
38970 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38972         PR middle-end/65003
38973         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38974         ultimate alias is MEM with SYMBOL_REF satisfying
38975         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
38976         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38978 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
38980         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38981         "diagnostic-core.h".
38982         (main): Initialize progname, and call diagnostic_initialize.
38984         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38985         instead of __OPENMP_TARGET__.
38987         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38988         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38989         hard-coding PTX_ID.
38991 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
38993         * doc/sourcebuild.texi (pie_enabled): Document.
38995 2015-02-11  Martin Liska  <mliska@suse.cz>
38997         PR ipa/64813
38998         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38999         a return value for call to a function that is noreturn.
39001 2015-02-11  Richard Biener  <rguenther@suse.de>
39003         PR lto/65015
39004         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
39005         and -fresolution.
39007 2015-02-11  Andrew Pinski  <apinski@cavium.com>
39009         PR target/64893
39010         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
39011         Change the first argument type to size_type_node and add another
39012         size_type_node.
39013         (aarch64_simd_expand_builtin): Handle the new argument to
39014         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
39015         print an out when the first two arguments are not
39016         nonzero integer constants.
39017         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
39018         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
39020 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
39022         PR target/61925
39023         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
39024         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
39025         (ix86_set_current_function): Rewritten.
39026         (ix86_add_new_builtins): Temporarily clear current_target_pragma
39027         when creating builtin fndecls.
39029 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39031         PR ipa/65005
39032         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
39033         function.
39034         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
39035         have no comdat group.
39036         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
39037         (lto_output_varpool_node): Always output alias info.
39038         (output_refs): Output refs of boundary aliases, too.
39039         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
39040         (output_symtab): Output call eges in thunks in boundary.
39041         (get_alias_symbol): Remove.
39042         (input_node, input_varpool_node): Do not special case weakrefs.
39043         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
39044         alias and thunks targets in the boundary; do not take removed symbols
39045         from their comdat groups.
39046         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
39047         (cgraph_node::global_info): Remove.
39048         (cgraph_node::rtl_info): Look through aliases and thunks.
39049         * cgrpah.h (global_info): Remove.
39050         (non_local_p): Remove.
39052 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
39053             Sandra Loosemore  <sandra@codesourcery.com>
39055         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
39056         to inline asm.  List dialects in proper order.
39058 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
39059             Sandra Loosemore  <sandra@codesourcery.com>
39061         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
39063 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
39065         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
39066         modified) reference to Solaris.
39068 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
39070         * doc/extend.texi (Extended Asm): Fix typos.
39072 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
39074         PR sanitizer/65004
39075         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
39077 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
39079         PR target/64661
39080         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
39081         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
39082         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
39083         * config/sh/constraints.md (Ara, Add): New constraints.
39084         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
39085         predicates.
39086         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
39087         atomic_mem_operand_0.  Don't use force_reg on the memory address.
39088         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
39089         Sra constraint.  Convert to insn_and_split.  Add workaround for
39090         PR 64974.
39091         (atomic_compare_and_swap<mode>_hard): Copy to
39092         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
39093         Use atomic_mem_operand_0 predicate.
39094         (atomic_compare_and_swap<mode>_soft_gusa,
39095         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
39096         AraAdd constraints.
39097         (atomic_compare_and_swap<mode>_soft_tcb,
39098         atomic_compare_and_swap<mode>_soft_imask,
39099         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
39100         atomic_mem_operand_0 predicate and SraSdd constraints.
39101         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
39102         constraint.
39103         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
39104         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
39105         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
39106         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
39107         force_reg on the memory address.
39108         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
39109         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
39110         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
39111         atomic_mem_operand_1 predicate and Sra constraint.
39112         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
39113         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
39114         Use atomic_mem_operand_1 predicate.
39115         (atomic_<fetchop_name><mode>_hard): Copy to
39116         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
39117         Use atomic_mem_operand_1 predicate.
39118         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
39119         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
39120         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
39121         insn_and_split.  Use atomic_mem_operand_1 predicate.
39122         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
39123         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
39124         Use atomic_mem_operand_1 predicate.
39125         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
39126         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
39127         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
39128         in generated insn with original mem operand before emitting the insn.
39129         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39130         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39131         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39132         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39133         Use atomic_mem_operand_1 predicate and AraAdd constraints.
39134         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39135         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39136         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39137         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39138         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39139         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39140         atomic_not_fetch<mode>_soft_tcb,
39141         atomic_<fetchop_name>_fetch<mode>_soft_imask,
39142         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39143         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39144         Use atomic_mem_operand_1 predicate and SraSdd constraints.
39146 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
39148         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39149         and 3 earlyclobber operands.
39151 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39153         * common.opt (fstack-reuse): Mark as optimization.
39155 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39157         PR ipa/64982
39158         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39160 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
39162         PR tree-optimization/64326
39163         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39165 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
39167         PR gcov-profile/61889
39168         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39170 2015-02-10  Richard Biener  <rguenther@suse.de>
39172         PR tree-optimization/64995
39173         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39174         value we use is final.
39175         (visit_reference_op_store): Always valueize op.
39176         (visit_use): Properly valueize vuses.
39178 2015-02-10  Richard Biener  <rguenther@suse.de>
39180         PR tree-optimization/64909
39181         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39182         pass a scalar-stmt count estimate to the cost model.
39183         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39185 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
39187         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39188         enabled by default together with var-tracking.
39190 2015-02-10  Nick Clifton  <nickc@redhat.com>
39192         * config/rl78/rl78.c: Remove DIV attribute code accidentally
39193         included in previous rl78 commit.
39195 2015-02-10  Richard Biener  <rguenther@suse.de>
39197         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39198         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39199         return the bitpack.
39201 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
39203         PR gcov-profile/61889
39204         * config.in: regenerate.
39205         * configure.in: Likewise.
39206         * configure.ac: Check for ftw.h.
39207         * gcov-tool.c: Check for ftw.h before using nftw.
39209 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
39211         PR lto/64076
39212         * ipa-visibility.c (update_visibility_by_resolution_info): Only
39213         assert when not in lto mode.
39215 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
39217         * ira-color.c (setup_left_conflict_sizes_p): Simplify
39218         initialization/assignment of conflict_size.
39220 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
39222         PR ipa/64978
39223         * ipa-cp.c (gather_caller_stats): Skip thunks.
39224         (propagate_constants_topo): Skip aliases.
39226 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
39228         PR target/64761
39229         * config/sh/sh.c (sh_option_override): Don't change
39230         -freorder-blocks-and-partition to -freorder-blocks even when
39231         unwinding is enabled.
39232         (sh_can_follow_jump): Return false if the followee jump is
39233         a crossing jump when -freorder-blocks-and-partition is specified.
39234         * config/sh/sh.md (*jump_compact_crossing): New insn.
39236 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
39237             Kaz Kojima  <kkojima@gcc.gnu.org>
39239         PR target/64761
39240         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39241         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39242         (sh_can_redirect_branch): Rename to ...
39243         (sh_can_follow_jump): ... this.  Constify argument types.
39244         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39245         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39246         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39247         * doc/tm.texi: Regenerate.
39249 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39251         PR sanitizer/64981
39252         * builtins.c (expand_builtin): Call targetm.expand_builtin
39253         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39255 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39257         PR ipa/61548
39258         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39260 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39262         PR ipa/63566
39263         * ipa-icf.c (set_local): New function.
39264         (sem_function::merge): Use it.
39266 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39268         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39269         (add_type_duplicate): Fix comparison of BINFOs.
39271 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39273         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39274         on getting VOID pointer.
39276 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39278         PR target/64979
39279         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39280         va_list escapes.
39282 2015-02-09  Richard Biener  <rguenther@suse.de>
39284         * genmatch.c (replace_id): Copy expr_type.
39286 2015-02-09  Richard Biener  <rguenther@suse.de>
39288         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39289         (streamer_write_tree_bitfields): Declare.
39290         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39291         properly unpack padding.
39292         (unpack_value_fields): Inline ...
39293         (streamer_read_tree_bitfields): ... here.
39294         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39295         and properly add padding bits.
39296         (streamer_pack_tree_bitfields): Fold into ...
39297         (streamer_write_tree_bitfields): ... this new function,
39298         exposing the bitpack object.
39299         * lto-streamer-out.c (lto_write_tree_1): Call
39300         streamer_write_tree_bitfields.
39302 2015-02-09  Richard Biener  <rguenther@suse.de>
39304         PR tree-optimization/54000
39305         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39306         (struct ivopts_data): Add loop_loc member.
39307         (tree_ssa_iv_optimize_loop): Dump loop location.
39308         (create_new_ivs): Likewise, also dump number of IVs generated.
39310 2015-02-09  Martin Liska  <mliska@suse.cz>
39312         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39313         just if not yet registered.
39314         (ipa_icf_generate_summary): Register callgraph hooks.
39316 2015-02-08  Andrew Pinski  <apinski@cavium.com>
39318         * config/aarch64/aarch64.c (gty_dummy): Delete.
39320 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39322         PR ipa/63566
39323         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39324         (cgraph_node::local_p): Remove thunk related FIXME.
39326 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39328         PR ipa/63566
39329         * i386.c (ix86_function_regparm): Look through aliases to see if callee
39330         is local and optimized.
39331         (ix86_function_sseregparm): Likewise; also use target's SSE math
39332         settings; error out instead of silently generating wrong code
39333         on mismatches.
39334         (init_cumulative_args): Look through aliases.
39336 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39338         PR ipa/63566
39339         * ipa-split.c (execute_split_functions): Split if function has aliases.
39341 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39343         PR ipa/63566
39344         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39345         aliases before trying to expand it.
39346         (cgraph_node::expand_thunk): Fix formating.
39348 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
39350         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39351         (Using Assembly Language with C): Expand introduction.
39352         (Basic Asm): Copy-edit.  Add more information about uses of
39353         basic asm.
39354         (Extended Asm): Copy-edit.  Document new escape syntax and
39355         %l[label] syntax.
39356         (Global Reg Vars): Copy-edit.
39357         (Local Reg Vars): Likewise.
39359 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
39361         PR debug/2714
39362         PR bootstrap/64256
39363         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39364         (DBX_CONTIN_CHAR): Define.
39366 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
39367             Brian Rzycki  <b.rzycki@samsung.com>
39369         PR tree-optimization/64878
39370         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39371         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39372         Stop recursion at loop phi nodes after having visited a loop phi node.
39374 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39376         * toplev.c (process_options): Change flag_ipa_ra before creating
39377         optimization_{default,current}_node.
39379         PR ipa/64896
39380         * cgraphunit.c (cgraph_node::expand_thunk): If
39381         restype is not is_gimple_reg_type nor the thunk_fndecl
39382         returns aggregate_value_p, set restmp to a temporary variable
39383         instead of resdecl.
39385 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
39387         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39389 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
39391         PR target/64205
39392         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39393         add a general secondary reload handler for SDmode, unless we have
39394         both read/write support for SDmode.
39396 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39398         PR middle-end/64937
39399         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39400         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39401         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39402         1 before, push it to abstract_vec.
39403         (dwarf2out_abstract_function): Adjust caller.  Don't call
39404         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39405         DECL_ABSTRACT_P flags for all abstract_vec elts.
39407 2015-02-06  Renlin Li  <renlin.li@arm.com>
39409         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39410         complex gimple.
39411         * tree-ssa.c (execute_update_addresses_taken): Likewise.
39413 2015-02-06  Jeff Law  <law@redhat.com>
39415         PR target/64889
39416         * config/h8300/h8300.c (push): New argument "in_prologue".
39417         Pass "in_prologue" along to "F".
39418         (h8300_push_pop): Corresponding changes.
39419         (h8300_expand_prologue): Likewise.
39420         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
39422 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39424         PR rtl-optimization/64957
39425         PR debug/64817
39426         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
39427         IOR rather than for AND.
39429 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
39431         PR target/62631
39432         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
39433         of shift-add and (add + shift) operations.  Rename local variable.
39435 2015-02-05  Jeff Law  <law@redhat.com>
39437         PR target/17306
39438         * config/h8300/constraints.md (U): Correctly dectect
39439         "eightbit_data" memory addresses.
39440         * config/h8300/h8300.c (eightbit_constant_address_p): Also
39441         handle (const (plus (symbol_ref (x)))) where x is declared
39442         as an 8-bit data memory address.
39443         * config/h8300/h8300.md (call, call_value): Correctly detect
39444         "funcvec" functions.
39446         PR target/43264
39447         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
39448         24 to 28 bits for the H8/300.
39450 2015-02-06  Alan Modra  <amodra@gmail.com>
39452         PR target/64876
39453         * config/rs6000/rs6000.c (chain_already_loaded): New function.
39454         (rs6000_call_aix): Use it.
39456 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
39458         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
39459         check.
39461 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
39463         * config/h8300/constraints.md ("U" constraint): Use strict
39464         variant of REG_OK_FOR_BASE_P after reload has started.
39466 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
39468         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
39469         define to zero if !TARGET_NEON.
39470         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
39472 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39473             Trevor Saunders  <tsaunders@mozilla.com>
39475         PR ipa/61548
39476         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
39478 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39480         PR ipa/61548
39481         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
39482         when removing varpool nodes.
39484 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39486         PR ipa/61548
39487         * varpool.c (varpool_node::remove): Fix order of variables.
39489 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39491         PR ipa/64686
39492         * ipa-inline.c (inline_small_functions): Fix ordering issue between
39493         speculation resolution and key updates.
39495 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39497         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
39498         about not letting any speculative edges unupdated.
39500 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39502         PR gcov/64123
39503         * gcov-io.c (gcov_var): Export.
39505 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39507         PR middle-end/64922
39508         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
39509         edges that become speculative.
39511 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
39513         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
39514         or DW_LANG_Fortran08.
39515         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
39516         DW_LANG_Fortran08.
39517         (gen_compile_unit_die): Handle "GNU Fortran2003" and
39518         "GNU Fortran2008" language strings.
39519         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
39520         * langhooks.h (lang_GNU_Fortran): New prototype.
39521         * langhooks.c (lang_GNU_Fortran): New function.
39522         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
39523         lang_GNU_Fortran.
39525 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
39527         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
39528         (RTX_OK_FOR_OLO10_P): Likewise.
39530 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
39532         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
39534 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39536         PR middle-end/64922
39537         * gimple.c: Include gimple-ssa.h.
39538         (maybe_remove_unused_call_args): New function.
39539         * gimple.h (maybe_remove_unused_call_args): Declare.
39540         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
39541         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
39542         * gimple-fold.c (gimple_fold_call): Likewise.
39544 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
39546         PR rtl-optimization/64905
39547         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
39548         pointer alignment if it isn't needed.
39550 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
39552         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
39553         cortex-a72.cortex-a53.
39554         * config/aarch64/aarch64-tune.md: Regenerate.
39555         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
39557 2015-02-04  Nick Clifton  <nickc@redhat.com>
39559         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
39560         inside a MEM.
39562 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
39564         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
39565         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
39566         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
39567         of DEF_BUILTIN.
39568         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
39569         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
39570         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
39571         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
39572         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
39573         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
39574         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
39575         * tree-core.h (enum built_in_function): In between
39576         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
39577         for builtins that use DEF_BUILTIN_CHKP macro.
39579 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
39581         PR debug/64817
39582         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
39583         operands for tcc_comparison exprs.  Fix typos.
39585         PR debug/64817
39586         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
39587         of two XORs that have an intervening AND or IOR.
39589         PR debug/64817
39590         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
39591         simplification of XOR of AND to not allocate new rtx before
39592         committing to a simplification.
39594 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39596         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
39597         manual swaps in all peepholes.
39599 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39601         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
39602         of manual swapping implementation.
39603         (aarch64_expand_vec_perm_const_1): Likewise.
39605 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
39607         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
39608         (generic_addrcost_table): Remove NAMED_PARAM.
39609         (cortexa57_addrcost_table): Likewise.
39610         (xgene1_addrcost_table): Likewise.
39611         (generic_regmove_table): Likewise.
39612         (cortexa53_regmove_table): Likewise.
39613         (xgene1_regmove_table): Likewise.
39614         (generic_vector_table): Likewise.
39615         (cortexa57_vector_table): Likewise.
39616         (xgene1_vector_table): Likewise.
39617         (generic_tunings): Likewise.
39618         (cortexa53_tunings): Likewise.
39619         (cortexa57_tunings): Likewise.
39620         (xgene1_tunings): Likewise.
39622 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
39624         * config/arm/arm-cores.def: Add cortex-a72 and
39625         cortex-a72.cortex-a53.
39626         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
39627         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
39628         * config/arm/arm-tune.md: Regenerate.
39629         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
39630         "cortex-a72.cortex-a53".
39631         * doc/invoke.texi (ARM Options/-mtune): Likewise.
39633 2015-02-04  Nick Clifton  <nickc@redhat.com>
39635         PR target/64408
39636         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
39637         of accepted codes.
39638         (nonimmediate_di_operand): Likewise.
39640         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
39641         prefixes of known F5 using MSP430 MCUs.
39643 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39645         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
39646         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
39647         instead of __builtin_sqrt.
39649 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
39651         * varasm.c (do_assemble_alias): Follow transparent alias
39652         chain for target.
39653         (default_assemble_visibility): Follow transparent alias
39654         chain for decl name.
39656 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39658         PR middle-end/62103
39659         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39660         to compute size of referenced value in the constant case.
39662 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39664         PR rtl-optimization/64756
39665         * cse.c (invalidate_dest): New function.
39666         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
39667         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
39668         invalidate and do not record it.
39670 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
39672         PR target/64660
39673         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
39674         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
39675         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
39676         atomic_nand<mode>_soft_tcb): New insns.
39677         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
39678         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
39679         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
39680         Split into atomic_not_fetchsi_hard if operands[0] is unused.
39681         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
39682         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39683         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
39684         atomic_not<mode>_hard if operands[0] is unused.
39685         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
39686         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
39687         if operands[0] is unused.
39688         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
39689         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
39690         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
39691         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39692         unused.
39693         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
39694         into atomic_not<mode>_soft_tcb if operands[0] is unused.
39695         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
39696         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
39697         if operands[0] is unused.
39698         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
39699         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
39700         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
39701         atomic_nand_fetchsi_hard if operands[0] is unused.
39702         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
39703         atomic_nand<mode>_hard if operands[0] is unused.
39704         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
39705         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
39706         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
39707         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39708         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
39709         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
39710         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
39711         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39712         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
39713         atomic_not<mode>_hard if operands[0] is unused.
39714         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
39715         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39716         unused.
39717         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
39718         into atomic_not<mode>_soft_tcb if operands[0] is unused.
39719         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
39720         atomic_nand<mode>_hard if operands[0] is unused.
39721         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
39722         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39724 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
39726         PR jit/64810
39727         * Makefile.in (GCC_OBJS): Add gcc-main.o.
39728         * gcc-main.c: New file, containing "main" taken from gcc.c.
39729         * gcc.c (do_self_spec): Free decoded_options.
39730         (class driver): Move declaration to gcc.h.
39731         (main): Move declaration and implementation to new file
39732         gcc-main.c.
39733         (driver_get_configure_time_options): New function.
39734         * gcc.h (class driver): Move this declaration here, from
39735         gcc.c.
39736         (driver_get_configure_time_options): New declaration.
39738 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
39740         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39741         cross-module inlining.
39742         * cgraph.h (cgraph_node): Add flag merged.
39743         * ipa-icf.c (sem_function::merge): Maintain it.
39745 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
39747         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39748         instead of OBJECT_P.
39750 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
39752         PR target/62631
39753         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39754         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39755         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39756         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39758 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39760         PR other/63504
39761         * combine.c (reg_n_sets_max): New variable.
39762         (can_change_dest_mode, reg_nonzero_bits_for_combine,
39763         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39764         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39765         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39766         (rest_of_handle_combine): Initialize reg_n_sets_max.
39768 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
39770         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39771         if some always_inline was inlined, apply changes before inlining
39772         heuristically.
39774 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
39776         PR jit/64810
39777         * config/arm/arm.c (arm_option_override): Set
39778         arm_selected_arch/cpu/tune to NULL on entry.
39780 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
39781             Andrew Pinski  <pinskia@gcc.gnu.org>
39782             Jakub Jelinek  <jakub@gcc.gnu.org>
39784         PR target/64231
39785         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39786         integer typing for small model. Use IN_RANGE.
39788 2015-02-02  Richard Biener  <rguenther@suse.de>
39790         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39791         * tree-vrp.c (vrp_valueize_1): Likewise.
39793 2015-02-02  Alan Modra  <amodra@gmail.com>
39795         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39796         than mem for toc_restore.
39797         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39798         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39799         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39801 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
39803         PR target/64047
39804         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39805         explicit default options.
39807 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
39809         PR ipa/64872
39810         * ipa-utils.c (ipa_merge_profiles): Add release argument.
39811         * ipa-icf.c (sem_function::merge): Do not release body when merging.
39812         * ipa-utils.h (ipa_merge_profiles): Update prototype.
39814 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
39816         PR debug/64817
39817         * cfgexpand.c (deep_ter_debug_map): New variable.
39818         (avoid_deep_ter_for_debug): New function.
39819         (expand_debug_expr): If TERed SSA_NAME is in
39820         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39821         instead of trying to expand SSA_NAME's def stmt.
39822         (expand_debug_locations): When expanding debug bind
39823         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39824         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39825         value.
39826         (pass_expand::execute): Call avoid_deep_ter_for_debug on
39827         all debug bind stmts.  Delete deep_ter_debug_map after
39828         expand_debug_location if non-NULL and clear it.
39830 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
39832         PR target/64851
39833         * config/sh/sync.md (atomic_fetch_notsi_hard,
39834         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39835         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39836         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39837         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39838         atomic_not_fetch<mode>_soft_imask): New insns.
39840 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39842         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39843         (rank_for_schedule_debug): Split from ...
39844         (rank_for_schedule): ... this.
39845         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39846         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39848 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39850         * doc/md.texi (Machine Constraints): Alphabetize table by target.
39851         * doc/extend.texi (x86 Variable Attributes): Move section to
39852         correct alphabetization after renaming.
39853         (x86 Type Attributes): Likewise.
39854         (Target Builtins): Re-alphabetize menu.
39855         (x86 Built-in Functions): Move section to correct alphabetization
39856         after renaming.
39857         (x86 transactional memory intrinsics): Likewise.
39858         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39859         and x86 Windows Options in table and menu.
39860         (x86 Options): Move section to correct alphabetization after
39861         renaming.
39862         (x86 Windows Options): Likewise.
39864 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39866         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39867         preferred names of the architecture and its 32- and 64-bit
39868         variants.
39869         * doc/invoke.texi: Likewise.
39870         * doc/md.texi: Likewise.
39872 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39874         PR target/64882
39875         * config/i386/predicates.md (address_no_seg_operand): Reject
39876         non-CONST_INT_P operands in invalid mode.
39878 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39880         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39881         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
39882         * config/i386/predicates.md (address_no_seg_operand): Call
39883         address_operand with VOIDmode.
39884         (vsib_address_operand): Ditto.
39885         (address_mpx_no_base_operand): Ditto.
39886         (address_mpx_no_index_operand): Ditto.
39888 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39890         PR target/64688
39891         * lra-constraints.c (original_subreg_reg_mode): New.
39892         (simplify_operand_subreg): Try to simplify subreg of const.  Use
39893         original_subreg_reg_mode for it.
39894         (swap_operands): Update original_subreg_reg_mode.
39895         (curr_insn_transform): Set up original_subreg_reg_mode.
39897 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39899         PR target/64617
39900         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39901         function.
39902         (process_alt_operands): Use it.
39903         (curr_insn_transform): Check the optional reload pseudo class is
39904         ok for the mode.
39906 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
39908         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39909         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39910         prototype.
39911         * toplev.h (init_asm_output): Update comment on use of
39912         UNKNOWN_LOCATION with fatal_error.
39913         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39914         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39915         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39916         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39917         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39918         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39919         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39920         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39921         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39922         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39923         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39924         fatal_error changed to pass input_location as first argument.
39926 2015-01-30  Martin Liska  <mliska@suse.cz>
39928         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39929         in #pragma GCC diagnostic guards.
39931 2015-01-30  Richard Biener  <rguenther@suse.de>
39933         PR tree-optimization/64829
39934         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39935         not add a widening conversion pattern but hand off extra
39936         widenings to callers.
39937         (vect_recog_widen_mult_pattern): Handle extra widening produced
39938         by vect_handle_widen_op_by_const.
39939         (vect_recog_widen_shift_pattern): Likewise.
39940         (vect_pattern_recog_1): Remove excess vertical space in dumping.
39941         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39942         (vect_init_vector_1): Likewise.
39943         (vect_get_vec_def_for_operand): Likewise.
39944         (vect_finish_stmt_generation): Likewise.
39945         (vectorizable_load): Likewise.
39946         (vect_analyze_stmt): Likewise.
39947         (vect_is_simple_use): Likewise.
39949 2015-01-29  Jeff Law  <law@redhat.com>
39951         * combine.c (try_combine): Fix typo in comment.
39953 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
39955         PR target/64580
39956         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39957         (rs6000_stack_info): Add assert.
39958         (rs6000_output_savres_externs): New function, split off from...
39959         (rs6000_output_function_prologue): ... here.  Do not call it for
39960         thunks.
39962 2015-01-29  Jeff Law  <law@redhat.com>
39964         PR target/15184
39965         * combine.c (try_combine): If I0 is a memory load and I3 a store
39966         to a related address, increase the "goodness" of doing a 4-insn
39967         combination with I0-I3.
39968         (make_field_assignment): Handle SUBREGs in the ior+and case.
39970 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
39972         PR tree-optimization/64746
39973         * tree-if-conv.c (mask_exists): New function.
39974         (predicate_mem_writes): Save created mask with given size for further
39975         use.
39976         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39977         (ifcvt_repair_bool_pattern): Collect all statements that are root
39978         of bool pattern and use iterative algorithm to remove multiple uses
39979         of predicates, display number of required iterations.
39981 2015-01-29  Richard Biener  <rguenther@suse.de>
39983         PR tree-optimization/64853
39984         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39985         stmt will get simulated again.
39986         * tree-ssa-ccp.c (valueize_op_1): Likewise.
39988 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39990         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39991         return_in_pc.  Remove redundant assignments.
39992         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39993         (arm_expand_epilogue): Don't compare boolean with true in if condition.
39995 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
39997         * config/i386/i386.c (ix86_mode_after): Make static.
39999 2015-01-29  Richard Biener  <rguenther@suse.de>
40001         PR tree-optimization/64844
40002         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
40003         dump cost model analysis.
40004         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
40005         Do not register adjusted load/store costs here.
40007 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
40008             Uros Bizjak  <ubizjak@gmail.com>
40010         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
40011         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
40012         using x86_use_pseudo_pic_reg.
40013         * config/i386/i386.c (ix86_conditional_register_usage): Remove
40014         support for fixed PIC register.
40015         (ix86_use_pseudo_pic_reg): Not static any more.
40017 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
40019         PR middle-end/64805
40020         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
40021         to avoid error in cgraph node verification.
40023 2015-01-29  Marek Polacek  <polacek@redhat.com>
40025         * doc/standards.texi: Reflect that the default for C is gnu11.
40027 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
40029         PR target/64761
40030         * reorg.c (switch_text_sections_between_p): New function.
40031         (relax_delay_slots): Call it when testing if the jump insn
40032         is removable.  Use targetm.can_follow_jump when testing if
40033         the conditional branch can follow an unconditional jump.
40035 2015-01-27  Caroline Tice  <cmtice@google.com>
40037         Committing VTV Cywin/Ming patch for Patrick Wollgast
40038         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
40039         if -fvtable-verify=preinit/std is used.
40040         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
40041         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
40042         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
40043         if -fvtable-verify=preinit/std is used.
40044         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40045         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
40046         if -fvtable-verify=preinit/std is used.
40047         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
40048         * config/i386/mingw32.h (LIB_SPEC): Likewise.
40049         * varasm.c (assemble_variable): Add code to properly set the comdat
40050         section and name for the .vtable_map_vars section in case the
40051         target is PE or COFF.
40053 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
40055         PR ipa/64801
40056         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
40057         make sane BB profile.
40058         (cgraph_node::expand_thunk): Make sane BB profile.
40059         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
40060         * cgraph.h (init_lowered_empty_function): Update prototype.
40061         * config/i386/i386.c (make_resolver_func): Update call.
40062         * predict.c (gate): Disable branch prediction pass if
40063         profile is already there.
40065 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
40067         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
40068         * opth-gen.awk: Likewise.
40069         * common.opt: Mark flag_fp_contract_mode as Optimization.
40071 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40073         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
40074         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
40076 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
40078         PR target/64659
40079         * config/sh/predicates.md (atomic_arith_operand,
40080         atomic_logical_operand): Remove.
40081         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
40082         (atomic_arith_operand_0): New predicate.
40083         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
40084         Use atomic_arith_operand_0 for input values.
40085         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
40086         atomic_compare_and_swap<mode>_soft_gusa,
40087         atomic_compare_and_swap<mode>_soft_tcb,
40088         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
40089         arith_reg_operand instead of register_operand.
40090         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
40091         atomic_arith_operand_0 for newval input.
40092         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
40093         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
40094         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
40095         arith_reg_operand instead of register_operand.
40096         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
40097         fetchop_predicate_1, fetchop_constraint_1_llcs,
40098         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
40099         fetchop_constraint_1_imask): New code iterator attributes.
40100         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
40101         register_operand.  Use fetchop_predicate_1.
40102         (atomic_fetch_<fetchop_name>si_hard,
40103         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
40104         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
40105         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
40106         and arith_reg_operand instead of register_operand.  Use
40107         fetchop_predicate_1, fetchop_constraint_1_gusa.
40108         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
40109         and arith_reg_operand instead of register_operand.  Use
40110         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
40111         to allow R0 usage.
40112         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
40113         and arith_reg_operand instead of register_operand.  Use
40114         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
40115         to allow R0 usage.
40116         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
40117         register_operand.  Use atomic_logical_operand_1.
40118         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
40119         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
40120         arith_reg_operand instead of register_operand.
40121         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
40122         Use arith_reg_dest and arith_reg_operand instead of register_operand.
40123         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
40124         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
40125         register_operand.  Use fetchop_predicate_1.
40126         (atomic_<fetchop_name>_fetchsi_hard,
40127         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
40128         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40129         fetchop_constraint_1_llcs.
40130         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40131         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40132         fetchop_constraint_1_gusa.
40133         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40134         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40135         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
40136         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40137         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40138         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
40139         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40140         register_operand.  Use atomic_logical_operand_1.
40141         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40142         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40143         arith_reg_operand instead of register_operand.
40144         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40145         arith_reg_operand instead of register_operand.  Use logical_operand
40146         and K08.  Adjust asm sequence to allow R0 usage.
40147         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40148         arith_reg_operand instead of register_operand.  Use logical_operand
40149         and K08.
40151 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
40153         PR other/63504
40154         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40155         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40156         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40157         only get_full_len HOST_WIDE_INTs from get_val () array rather than
40158         all bits in *val_wide.
40160 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
40162         * varpool.c (tls_model_names): Fix names.
40163         (varpool_node::dump): Dump tls- prefix for tls models.
40165 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
40166             Bernd Schmidt  <bernds@codesourcery.com>
40167             Nathan Sidwell  <nathan@codesourcery.com>
40169         * config/nvptx/mkoffload.c: New file.
40170         * config/nvptx/t-nvptx: Add build rules for it.
40171         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40172         (extra_programs): Add mkoffload.
40173         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40174         function.
40175         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40177 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
40179         PR middle-end/64809
40180         * cfgexpand.c (reorder_operands): Skip debug gimples.
40182 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
40184         PR tree-optimization/64277
40185         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40186         range info when possible to refine estimation.
40188 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40190         PR tree-optimization/64718
40191         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40192         be a 16bit unsigned integer when n->range is 16.
40193         (bswap_replace): Convert src to that type if necessary for all bswap
40194         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
40195         set in pass_optimize_bswap::execute ().
40197 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
40199         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40200         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40201         integer and floating point variants.
40202         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40204 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
40206         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40207         for all vector modes.
40209 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
40211         PR bootstrap/64612
40212         * doc/sourcebuild.texi (comdat_group): Document.
40214 2015-01-28  Terry Guo  <terry.guo@arm.com>
40216         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40218 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
40220         * toplev.c (print_version): Add param "show_global_state", and
40221         only print GGC and plugin information if it is true.
40222         (init_asm_output): Pass in "true" for the new param when calling
40223         print_version.
40224         (process_options): Likewise.
40225         (toplev::main): Likewise.
40226         * toplev.h (print_version): Add new param to decl.
40228 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
40230         PR ipa/60871
40231         PR ipa/64139
40232         * tree.c (lookup_binfo_at_offset): New function.
40233         (get_binfo_at_offset): Use it.
40235 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
40237         PR ipa/64282
40238         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40239         on vtable being vtable.
40241 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
40243         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40244         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40245         -mhotpatch= option.
40246         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40247         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
40248         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40249         Renamed.
40250         (s390_hotpatch_trampoline_halfwords_max): Renamed.
40251         (s390_hotpatch_hw_max): New name.
40252         (s390_hotpatch_trampoline_halfwords): Renamed.
40253         (s390_hotpatch_hw_before_label): New name.
40254         (get_hotpatch_attribute): Removed.
40255         (s390_hotpatch_hw_after_label): New name.
40256         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40257         attribute.
40258         (s390_attribute_table): Ditto.
40259         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40260         (s390_function_num_hotpatch_hw): New name.
40261         Remove special handling of inline functions and hotpatching.
40262         Return number of nops before and after the function label.
40263         (s390_can_inline_p): Removed.
40264         (s390_asm_output_function_label): Emit a configurable number of nops
40265         after the function label.
40266         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40267         (TARGET_CAN_INLINE_P) Removed.
40268         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40270 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40271             Jiong Wang  <jiong.wang@arm.com>
40273         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40274         of scratch reg.
40275         (cb<optab><mode>1): Likewise.
40276         * config/aarch64/iterators.md (bcond): New define_code_attr.
40278 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40280         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40281         memory accesses.
40283 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40285         * config/s390/s390.c (s390_register_move_cost): Increase costs for
40286         FPR->GPR moves.
40288 2015-01-27  Richard Biener  <rguenther@suse.de>
40290         * tree-vrp.c (update_value_range): Intersect the range with
40291         old recorded SSA name range information.
40293 2015-01-27  Nick Clifton  <nickc@redhat.com>
40295         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40296         BC, DE and HL registers directly, not via AX.
40297         When decrementing the stack pointer by a large amount, transfer SP
40298         into AX and perform the subtraction there.
40299         (rl78_expand_epilogue): Perform the inverse of the above
40300         enhancements.
40302 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40304         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40306 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40307             Yury Gribov  <y.gribov@samsung.com>
40309         PR ubsan/64741
40310         * ubsan.c (ubsan_source_location): Refactor code.
40311         (ubsan_type_descriptor): Update type size. Refactor code.
40313 2015-01-27  Richard Biener  <rguenther@suse.de>
40315         PR tree-optimization/56273
40316         PR tree-optimization/59124
40317         PR tree-optimization/64277
40318         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40319         from the first VRP pass.
40321 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40323         PR ipa/64776
40324         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40325         handle the first argument in the same loop as all the other arguments.
40327         PR rtl-optimization/61058
40328         * jump.c (cleanup_barriers): Update basic block boundaries
40329         if BLOCK_FOR_INSN is non-NULL on PREV.
40331 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
40333         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40334         bounds narrowing, already instrumented calls and calls to
40335         not instrumentable functions.
40337 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40339         PR tree-optimization/64807
40340         * wide-int.cc (wi::divmod_internal): Clear
40341         b_dividend[dividend_blocks_needed].
40343 2015-01-26  DJ Delorie  <dj@redhat.com>
40345         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40346         volatile memory references.
40348 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
40350         PR target/49263
40351         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40352         remove_insn.
40353         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40354         shifts if it already fits into K08.
40356 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40358         PR ipa/64730
40359         * ipa-inline.c (inline_small_functions): Print "unknown" even
40360         if edge->call_stmt is non-NULL, but has builtins or unknown
40361         location.
40363         PR middle-end/64421
40364         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40365         with asterisk, skip the first character.
40367 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40369         PR target/64806
40370         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40371         order change.
40373 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
40375         PR target/64795
40376         * config/i386/i386.md (*movdi_internal): Also check operand 0
40377         to determine TYPE_LEA operand.
40378         (*movsi_internal): Ditto.
40380 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40382         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40383         OPTION_MASK_QUAD_MEMORY_ATOMIC.
40385 2015-01-26  Renlin Li  <renlin.li@arm.com>
40387         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40388         the comment.
40389         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40390         for higher part.
40392 2015-01-26  Richard Biener  <rguenther@suse.de>
40394         PR middle-end/64764
40395         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40396         combining two BIT_AND_EXPR predicates.
40398 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40400         PR bootstrap/64754
40401         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40403 2015-01-26  Terry Guo  <terry.guo@arm.com>
40405         * config/arm/arm.c (arm_file_start): Update the assignment of
40406         Tag_ABI_HardFP_use.
40408 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
40410         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40411         pipeline model.
40412         config/arm/arm.md: Include the new Cortex-A57 model.
40413         (generic_sched): Don't use generic_sched when tuning for
40414         Cortex-A57.
40416 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
40417             Uros Bizjak  <ubizjak@gmail.com>
40419         * config/i386/i386.c (get_builtin_code_for_version): Add
40420         support for BMI and BMI2 multiversion functions.
40422 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40424         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
40425         (extract_bit_field): Likewise.
40426         (extract_low_bits): Likewise.
40427         (expand_mult): Likewise.
40428         (expand_mult_highpart_adjust): Likewise.
40430 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
40432         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
40433         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
40434         * config/i386/i386.c (processor_model): Add
40435         M_INTEL_COREI7_BROADWELL.
40436         (arch_names_table): Add "broadwell".
40438 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
40440         PR target/49263
40441         PR target/53987
40442         PR target/64345
40443         PR target/59533
40444         PR target/52933
40445         PR target/54236
40446         PR target/51244
40447         * config/sh/sh-protos.h
40448         (sh_extending_set_of_reg::can_use_as_unextended_reg,
40449         sh_extending_set_of_reg::use_as_unextended_reg,
40450         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
40451         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
40452         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
40453         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
40454         (sh_treg_insns): New class.
40455         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
40456         (scope_counter): New class.
40457         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
40458         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
40459         sh_extending_set_of_reg::can_use_as_unextended_reg,
40460         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
40461         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
40462         sh_split_treg_set_expr): New functions.
40463         (addsubcosts): Handle treg_set_expr.
40464         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
40465         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
40466         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
40467         (sh_insn_operands_modified_between_p): Make non-static.
40468         * config/sh/predicates.md (zero_extend_movu_operand): Allow
40469         simple_mem_operand in addition to displacement_mem_operand.
40470         (zero_extend_operand): Don't allow zero_extend_movu_operand.
40471         (treg_set_expr, treg_set_expr_not_const01,
40472         arith_reg_or_treg_set_expr): New predicates.
40473         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
40474         arith_or_int_operand instead of logical_operand.  Convert to
40475         insn_and_split.  Try to optimize constant operand in splitter.
40476         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
40477         (*tstqi_t_zero): Delete.
40478         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
40479         (tstsi_t_and_not): Delete.
40480         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
40481         Convert to insn_and_split.
40482         (unnamed split, tstsi_t_zero_extract_xor,
40483         tstsi_t_zero_extract_subreg_xor_little,
40484         tstsi_t_zero_extract_subreg_xor_big): Delete.
40485         (*tstsi_t_shift_mask): New insn_and_split.
40486         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
40487         to recombine with surrounding insns when splitting.
40488         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
40489         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
40490         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
40491         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
40492         (*cbranch_div0s: Delete.
40493         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
40494         Try to recombine with surrounding insns when splitting.  Add operand
40495         order variants.
40496         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
40497         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
40498         *addc_r_r_msb, *addc_2r_msb): Delete.
40499         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
40500         order variant.
40501         (*addc_negreg_t): New insn_and_split.
40502         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
40503         Try to recombine with surrounding insns when splitting.
40504         Add operand order variants.
40505         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
40506         insn_and_split patterns.
40507         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
40508         surrounding insns when splitting.
40509         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
40510         (*rotcl): Likewise.  Add zero_extract variant.
40511         (*ashrsi2_31): New insn_and_split.
40512         (*negc): Convert to insn_and_split.  Use treg_set_expr.
40513         (*zero_extend<mode>si2_disp_mem): Update comment.
40514         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
40515         condition.
40516         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
40517         with surrounding insns when splitting.
40518         (any_treg_expr_to_reg): New insn_and_split.
40519         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
40520         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
40521         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
40522         *zero_extract_2): New single bit zero extract patterns.
40523         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
40524         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
40525         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
40526         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
40527         set destination.
40528         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
40529         register_operand for set source.
40531 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
40533         * i386.opt (prefetch_sse): New targetsave.
40534         * i386.c (ix86_function_specific_save): Save prefetch_sse.
40535         (ix86_function_specific_restore): Restore prefetch_sse and initialize
40536         ix86_cost/ix86_tune_cost.
40538 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40540         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
40541         Support the JIT by using 0 as the language type.
40543 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
40545         PR target/64317
40546         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
40547         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
40548         (mark_regno_live, process_bb_lives): Pass new parameter value to
40549         make_hard_regno_born.
40551 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40553         PR rtl-optimization/63637
40554         PR rtl-optimization/60663
40555         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
40556         if elt->cost is MAX_COST for ASM_OPERANDS.
40557         (find_sets_in_insn): Fix up comment typo.
40558         (cse_insn): Don't set src_volatile for all non-volatile
40559         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
40560         or with "memory" clobber.  Set elt->cost to MAX_COST
40561         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
40562         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
40564 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
40566         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
40567         alternative 1.
40569 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
40571         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
40572         libgcc/config/i386/elf-lib.h.
40574 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40576         PR driver/64737
40577         * gcc.c (print_configuration): Don't print a blank line at the end
40578         here...
40579         (run_attempt): ... but here unstead.
40581         PR middle-end/64734
40582         * omp-low.c (scan_sharing_clauses): Don't ignore
40583         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
40584         on target data/update constructs.
40586 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40588         PR target/50928
40589         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
40590         (DEBUG_RELOAD): Removed define.
40591         (m32c_limit_reload_class): Enable traces with if DEBUG0.
40592         (m32c_function_arg): Added a type cast.
40593         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
40594         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
40595         * config/m32c/bitops.md (andqi3_16): Likewise.
40596         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
40597         (push_a01_l): Likewise.
40599 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40601         PR jit/64721
40602         * main.c (main): Construct toplev instances with init_signals=true.
40603         * toplev.c (general_init): Add param "init_signals", and use it to
40604         conditionalize the calls to signal and host_hooks.extra_signals.
40605         (toplev::toplev): Add param "init_signals".
40606         (toplev::main): When invoking general_init, pass m_init_signals
40607         to control whether signal-handlers are installed.
40608         * toplev.h (toplev::toplev): Add param "init_signals".
40609         (toplev::m_init_signals): New field.
40611 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40613         PR jit/64722
40614         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
40615         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
40616         latter may be affected by the former (e.g. on i686).
40618 2015-01-23  Martin Liska  <mliska@suse.cz>
40620         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
40621         false positive during profiledbootstrap.
40623 2015-01-23  Tom de Vries  <tom@codesourcery.com>
40625         PR libgomp/64672
40626         * lto-opts.c (lto_write_options): Output non-explicit conservative
40627         -fno-openacc.
40628         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
40629         (append_compiler_options): Pass -fopenacc through.
40631 2015-01-23  Tom de Vries  <tom@codesourcery.com>
40633         PR libgomp/64707
40634         * lto-opts.c (lto_write_options): Output non-explicit conservative
40635         -fno-openmp.
40636         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
40637         (append_compiler_options): Pass -fopenmp through.
40639 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40641         PR debug/64511
40642         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
40643         GTY markup.
40645         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
40646         * diagnostic.def (DK_ICE_NOBT): New kind.
40647         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
40648         like DK_ICE, but never print backtrace.
40649         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
40650         (internal_error_no_backtrace): New function.
40651         * gcc.c (execute): Use internal_error_no_backtrace instead of
40652         internal_error.
40654 2015-01-22  Jeff Law  <law@redhat.com>
40656         PR target/52076
40657         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
40658         improve code density for small immediate to memory case.
40659         (insv): Better handle bitfield assignments when the field is
40660         being set to all ones.
40661         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
40662         operand predicate.
40664 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40665             Jakub Jelinek  <jakub@redhat.com>
40667         PR middle-end/64729
40668         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
40669         for !TARGET_LIBC_PROVIDES_SSP version and
40670         -fstack-protector-{all,strong,explicit} otherwise.
40671         * config/freebsd.h (LINK_SSP_SPEC): Handle
40672         -fstack-protector-{strong,explicit}.
40674 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
40675             H.J. Lu  <hongjiu.lu@intel.com>
40677         PR ipa/64694
40678         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
40679         heap.
40681 2015-01-22  Wei Mi  <wmi@google.com>
40683         PR rtl-optimization/64557
40684         * dse.c (record_store): Call get_addr for mem_addr.
40685         (check_mem_read_rtx): Likewise.
40687 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
40689         * fold-const.c (const_binop): Add early return for non-tcc_binary.
40691 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
40693         * toplev.c (init_local_tick): Process the failure when read
40694         fails for random_seed.
40696         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
40697         'pretty_name' to avoid memory overflow.
40699 2015-01-22  Richard Biener  <rguenther@suse.de>
40701         PR middle-end/64728
40702         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
40703         abnormal coalescing on undefined SSA names.
40705 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
40707         PR target/64688
40708         PR target/64477
40709         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
40710         for alternative 3.
40711         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
40713 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
40715         PR middle-end/63325
40716         * fold-const.c (fold_checksum_tree): Don't include value of
40717         expr->decl_with_vis.symtab_node in the checksum.
40719 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40721         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
40723 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
40725         PR driver/64690
40726         * gcc.c (insert_comments): New function.
40727         (try_generate_repro): Call it.
40728         (append_text): Removed.
40730 2015-01-22  Richard Biener  <rguenther@suse.de>
40732         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40733         with IL incompatible options.  Properly honor user optimize
40734         attributes.
40736 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
40738         PR rtl-optimization/64682
40739         * combine.c (distribute_notes): When moving a death note for
40740         a register that is set in the new I2, make sure to put it
40741         before that new I2.
40743 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
40745         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40746         not TARGET_DEFAULT.
40748 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
40750         PR debug/64511
40751         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40752         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40753         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40755         PR sanitizer/64706
40756         * doc/invoke.texi (-fsanitize=vptr): Document.
40758         PR rtl-optimization/62078
40759         * dse.c: Include cfgcleanup.h.
40760         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40761         anything call purge_all_dead_edges and cleanup_cfg at the end
40762         of the pass.
40764 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
40766         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40767         edges.
40769 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40771         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40772         decl attribute.
40774 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40775             Tejas Belagod <Tejas.Belagod@arm.com>
40777         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40778         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40779         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40780         Removed.
40782 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40783             Tejas Belagod <Tejas.Belagod@arm.com>
40785         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40786         (aarch64_reverse_mask): New decls.
40787         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40788         (insn_count): New mode_attr.
40789         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40790         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40791         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40792         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40793         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40794         (aarch64_simd_st4): New patterns.
40795         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40796         (aarch64_reverse_mask): New functions.
40798 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40800         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40801         Declare.
40802         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40803         addressing modes for BE.
40804         (aarch64_print_operand): Add 'R' specifier.
40805         (aarch64_simd_disambiguate_copy): Delete.
40806         (aarch64_simd_emit_reg_reg_move): New function.
40807         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40808         in define_splits for structural moves.
40809         (mov<mode>): Use less restrictive predicates.
40810         (*aarch64_mov<mode>): Simplify and only allow for LE.
40811         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40813 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40815         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40817 2015-01-21  Richard Henderson  <rth@redhat.com>
40819         PR target/64669
40820         * ccmp.c (used_in_cond_stmt_p): Remove.
40821         (expand_ccmp_expr): Don't use it.
40823 2015-01-21  Nick Clifton  <nickc@redhat.com>
40825         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40826         PARALLELs.
40828 2015-01-21  Richard Biener  <rguenther@suse.de>
40830         PR middle-end/64313
40831         * tree-core.h (builtin_info, builtin_info_type): Turn from
40832         an object with two arrays into an array of an object with
40833         decl and two flags, implicit_p and declared_p.
40834         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40835         set_builtin_decl, set_builtin_decl_implicit_p,
40836         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40837         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40838         * builtins.c (builtin_info): Adjust.
40839         * gimplify.c (gimplify_addr_expr): References to builtins
40840         that have been declared by the user makes them eligible for
40841         use by the compiler.  Call set_builtin_decl_implicit_p on them.
40843 2015-01-20  Jeff Law  <law@redhat.com>
40845         PR target/59946
40846         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40847         allow pc-relative addresses in operand predicates or constraints.
40849 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
40851         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40852         neon on aarch32 processors for stringops.
40854 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40856         PR ipa/63576
40857         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40859 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40861         PR lto/45375
40862         * ipa-inline.c: Include lto-streamer.h
40863         (report_inline_failed_reason): Output source file differences and
40864         flags on optimization/target node mismatch.
40865         (can_inline_edge_p): Consider caller to be the outer inline function;
40866         be less restrictive about matching opimize and optimize_size attributes.
40867         (inline_account_function_p): Break out from ...
40868         (inline_small_functions): ... here.
40869         * ipa-inline-transform.c (clone_inlined_nodes): Use
40870         inline_account_function_p.
40871         (inline_call): Use optimize attribution; use inline_account_function_p.
40872         (inline_transform): Use opt_for_fn.
40873         * ipa-inline.h (inline_account_function_p): Declare.
40875 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
40877         PR debug/64663
40878         * dwarf2out.c (decl_piece_node): Don't put bitsize into
40879         mode if bitsize <= 0.
40880         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40881         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40882         sizes and positions.
40884 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
40886         * config/nios2/nios2.c (nios2_asm_file_end): Implement
40887         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40888         needed.
40889         (TARGET_ASM_FILE_END): Define.
40891 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40893         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40894         (struct tune_params): Use the enum.
40895         * arm.c (arm_*_tune): Update.
40896         (arm_option_override): Update.
40898 2015-01-20  Richard Biener  <rguenther@suse.de>
40900         PR ipa/64684
40901         * ipa-reference.c (add_static_var): Inline ...
40902         (analyze_function): ... here after splitting out from ...
40903         (is_proper_for_analysis): ... this.
40905 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
40907         PR target/64149
40908         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40909         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40910         replace the conditional with it's true branch.
40911         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40912         (arm_lra_p): Remove.
40914 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
40916         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40918 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40920         * config/tilegx/mul-tables.c: Move symtab.h include after
40921         coretypes.h include.
40922         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40923         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40924         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40925         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40926         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40928 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
40930         PR bootstrap/64676
40931         Revert:
40932         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40934         PR rtl-optimization/64081
40935         * loop-iv.c (def_pred_latch_p): New function.
40936         (latch_dominating_def): Allow specific cases with non-single
40937         definitions.
40938         (iv_get_reaching_def): Likewise.
40939         (check_complex_exit_p): New function.
40940         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40941         with exits not executing on any iteration.
40943 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40945         PR lto/45375
40946         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40947         to set branch cost.
40949 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40951         PR lto/45375
40952         * i386.c (gate): Check flag_expensive_optimizations and
40953         optimize_size.
40954         (ix86_option_override_internal): Drop optimize_size condition
40955         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40956         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40957         MASK_PREFER_AVX128.
40958         (ix86_avx256_split_vector_move_misalign,
40959         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40960         * sse.md (all uses of TARGET_PREFER_AVX128): Add
40961         optimize_insn_for_speed_p check.
40963 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
40965         * config/mips/mips.h (FP_ASM_SPEC): New define.
40966         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40967         instead.
40969 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
40971         PR target/53988
40972         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40973         nullptr for insn when reaching the first insn.
40974         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40975         (sh_insn_operands_modified_between_p): Add nullptr check.
40976         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
40977         sign extending mem load if the insn contains any UNSPEC or
40978         UNSPEC_VOLATILE.
40980 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40982         * params.def (inline-unit-growth): Drop to 15%.
40983         * invoke.texi (inline-unit-growth): Document change.
40985 2015-01-19  Martin Liska  <mliska@suse.cz>
40987         PR ipa/64668
40988         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40989         function for second argument of OBJ_TYPE_REF.
40991 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40993         PR ipa/64218
40994         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40995         whether function is an alias.
40997 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40999         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
41000         cases.
41002 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
41004         PR rtl-optimization/64671
41005         * lra-remat.c (operand_to_remat): Don't consider jump and call
41006         insns.
41008 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
41010         PR target/59828
41011         * config/rs6000/default64.h: Include rs6000-cpus.def.
41012         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
41013         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
41014         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
41015         and POWER8.
41016         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
41017         POWER8.
41018         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
41019         pseudo-op to specify assembler dialect.
41021 2015-01-19  Martin Liska  <mliska@suse.cz>
41023         PR ipa/64664
41024         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
41025         Handle safe potentially removed nodes during filtering.
41027 2015-01-19  Martin Liska  <mliska@suse.cz>
41029         * doc/extend.texi (no_icf): Add new attribute description.
41030         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
41031         where the pass attempts to merge a function with no_icf attribute.
41033 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
41035         PR target/64532
41036         * doc/md.texi (ARM Options): Document register constraints.
41038 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
41039             Andrew Pinski  <apinski@cavium.com>
41041         PR target/64304
41042         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
41043         (ashl<mode>3): Don't expand if operands[2] is not constant.
41045 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41047         PR target/64448
41048         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
41049         Match xor-and-xor RTL pattern.
41051 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
41053         PR rtl-optimization/64081
41054         * loop-iv.c (def_pred_latch_p): New function.
41055         (latch_dominating_def): Allow specific cases with non-single
41056         definitions.
41057         (iv_get_reaching_def): Likewise.
41058         (check_complex_exit_p): New function.
41059         (check_simple_exit): Use check_complex_exit_p to allow certain cases
41060         with exits not executing on any iteration.
41062 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
41064         * common.opt (fgraphite): Fix a typo.
41066 2015-01-19  Felix Yang  <felix.yang@huawei.com>
41068         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
41069         pattern.
41070         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
41071         uminp, smax_nanp, smin_nanp): New builtins.
41072         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
41073         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
41074         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
41075         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
41076         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
41077         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41078         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
41079         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
41080         vpminnms_f32): Rewrite using builtin functions.
41082 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
41084         PR libgomp/64625
41085         * omp-low.c (offload_symbol_decl): Remove variable.
41086         (get_offload_symbol_decl): Remove function.
41087         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
41088         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
41089         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
41090         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
41091         BUILT_IN_GOACC_UPDATE don't pass it at all.
41093 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
41095         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
41096         callers.
41098 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
41100         * ipa-chkp.c (chkp_produce_thunks): Add early param
41101         to split thunks production into two passes.  Keep
41102         'always_inline' function bodies after the first pass.
41103         (pass_data_ipa_chkp_early_produce_thunks): New.
41104         (pass_ipa_chkp_early_produce_thunks): New.
41105         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
41106         chkp_produce_thunks signature.
41107         (make_pass_ipa_chkp_early_produce_thunks): New.
41108         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
41109         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
41110         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
41112 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41114         * cgraph.c (cgraph_node::dump): Dump profile flags.
41116 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
41118         PR target/64652
41119         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
41120         reg appear first in the parallel.
41122 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41124         * ipa-reference.c (set_reference_optimization_summary,
41125         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
41126         disabled.
41127         (ignore_module_statics): New static var.
41128         (propagate_bits): If ipa-reference is disabled, do not look into local
41129         properties.
41130         (analyze_function): Disable analysis when ipa_reference is disabled.
41131         (generate_summary): Do not dump when reference is disabled;
41132         collect vars accessed from functions with ipa-reference disabled.
41133         (get_read_write_all_from_node): When ipa-reference is disabled, use the
41134         node flags.
41135         (gate): Enable for LTO.
41136         (ignore_edge_p): New function.
41137         (propagate): Skip functions w/o ipa-reference analysis.
41138         * optc-save-gen.awk: Handle optimize_debug correctly.
41139         * opth-gen.awk: Likewise.
41140         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41141         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41142         fira-share-save-slots, fira-share-spill-slots,
41143         fmodulo-sched-allow-regmoves, fpartial-inlining,
41144         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41145         ftracer, ftree-parallelize-loops, fassociative-math,
41146         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41147         Optimization
41148         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41149         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41150         Optimization.
41151         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41152         Fix for IPA.
41154 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41156         PR ipa/64378
41157         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41158         flag correctly.
41159         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41161 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
41163         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41164         Remove duplicate option listings.
41166 2015-01-18  Felix Yang  <felix.yang@huawei.com>
41168         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41169         (autofdo_source_profile::get_callsite_total_count,
41170         function_instance::get_function_instance_by_decl,
41171         string_table::get_index, string_table::get_index_by_decl,
41172         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41173         Fix comment typos. Reformatting and minor code rearrangement.
41175 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41177         * config/rs6000/rs6000.md (probe_stack): Delete.
41178         (probe_stack_address): New.
41180 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41182         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41183         to test for 32-bit ABIs, not !TARGET_POWERPC64.
41185 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41187         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41188         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
41189         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
41190         snafu.
41191         (rs6000_libcall_value): Use the new function.
41193 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
41195         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41197 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
41199         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41200         implement a more precise life analysis for it during backward scan.
41202 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
41204         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41206 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
41208         PR rtl-optimization/52773
41209         * calls.c (emit_library_call_value): When pushing arguments use
41210         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41211         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
41212         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41214 2015-01-17  Jeff Law  <law@redhat.com>
41216         PR rtl-optimization/32790
41217         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41218         not ZERO_EXTEND in SET_DESTs.
41220 2015-01-17  Alan Modra  <amodra@gmail.com>
41222         * cprop.c (do_local_cprop): Revert last change.
41224 2015-01-16  DJ Delorie  <dj@redhat.com>
41225             Nick Clifton  <nickc@redhat.com>
41227         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41228         (addhi3_real): Likewise.  Fix [HL+0] syntax.
41229         (subqi3_real): Likewise.
41230         (subhi3_real): Likewise.
41231         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
41232         (cbranchhi4_real): Likewise.
41233         (cbranchhi4_real_inverted): Likewise.
41234         (cbranchsi4_real_lt): Likewise.
41235         (cbranchsi4_real_ge): Likewise.
41236         (cbranchsi4_real_ge): Likewise.
41237         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41238         (sub<mode>3_virt): Likewise.
41239         (cbranchqi4_virt): Likewise.
41240         (cbranchhi4_virt): Likewise.
41241         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41242         always use '[reg+imm]' even when imm is zero.
41243         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41244         (rl78_general_operand): New.
41245         (rl78_nonimmediate_operand): New.
41246         (rl78_nonfar_operand): Use them.
41247         (rl78_nonfar_nonimm_operand): Likewise.
41248         (rl78_stack_based_mem): Fix.
41249         * config/rl78/constraints.md (Ibqi): New.
41250         (IBqi): New.
41251         (Wsa): New.
41252         (Wsf): New.
41253         (Cs1): Fix.
41254         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41255         (iorqi3): Likewise.
41256         (xorqi3): Likewise.
41257         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41259         * config/rl78/constrains (Qs8): New constraint.
41260         * config/rl78/rl78.c (rl78_flags_already_set): New function.
41261         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41262         * config/rl78/rl78-real.md (update_Z): New attribute.
41263         Update patterns to set it.
41264         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41265         shorter compare and branch sequence can be used.
41266         (cbranchhi4_real): Likewise.
41267         (cbranchhi4_real_inverted): Likewise.
41269         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41270         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41271         address space.
41272         * config/rl78/rl78.c (rl78_get_name_encoding): New.
41273         (rl78_option_override): Allow -mes0 only if C.
41274         (characterize_address): Support subregs of symbol_refs.
41275         (rl78_addr_space_address_mode): Move.  Add __near.
41276         (rl78_far_p): Likewise.
41277         (rl78_addr_space_pointer_mode): Likewise.
41278         (rl78_as_legitimate_address): Likewise.
41279         (rl78_addr_space_subset_p): Likewise.
41280         (rl78_addr_space_convert): Likewise.
41281         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41282         symbols with -mes0.
41283         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
41284         addressing.
41285         (rl78_alloc_physical_registers_op1): Change logic to prefer
41286         symbol[BC] addressing.
41287         (frodata_section): New.
41288         (rl78_asm_init_sections): Initialize it.
41289         (rl78_select_section): Put __far readonly symbols in .frodata.
41290         (rl78_make_type_far): New.
41291         (rl78_insert_attributes): Force all readonly symbols to be
41292         __far when -mes0.
41293         (rl78_asm_out_integer): New.
41294         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41295         * config/rl78/rl78.opt (-mes0): New.
41297         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41298         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41299         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41300         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41301         (rl78_saddr_p): New.
41302         (rl78_output_aligned_common): New.
41303         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41304         (rl78_handle_saddr_attribute): New.
41305         (rl78_handle_naked_attribute): New.
41306         (rl78_attribute_table): Add saddr.
41307         (rl78_print_operand_1): Don't print '!' on saddr operands.
41308         (rl78_print_operand_1): Strip encodings.
41309         (rl78_sfr_p): New.
41310         (rl78_strip_name_encoding): New.
41311         (rl78_attrlist_to_encoding): New.
41312         (rl78_encode_section_info): New.
41313         (rl78_asm_init_sections): New.
41314         (rl78_select_section): New.
41315         (rl78_output_labelref): New.
41316         (rl78_output_aligned_common): New.
41317         (rl78_asm_out_integer): New.
41318         (rl78_asm_ctor_dtor): New.
41319         (rl78_asm_constructor): New.
41320         (rl78_asm_destructor): New.
41322         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41323         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41324         (transcode_memory_rtx): Update.
41325         (rl78_expand_epilogue): Use A_REG instead of 0.
41327 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41329         * config/arm/arm-protos.h (struct tune_params): New field
41330         sched_autopref_queue_depth.
41331         * config/arm/arm.c (sched-int.h): Include header.
41332         (arm_first_cycle_multipass_dfa_lookahead_guard,)
41333         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41334         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41335         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41336         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41337         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41338         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41339         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41340         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
41341         * config/arm/t-arm (arm.o): Update.
41342         * haifa-sched.c (update_insn_after_change): Update.
41343         (rank_for_schedule): Use auto-prefetcher model, if requested.
41344         (autopref_multipass_init): New static function.
41345         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41346         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41347         variable for debug dumps.
41348         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41349         (autopref_multipass_dfa_lookahead_guard): New global function that
41350         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41351         (init_h_i_d): Update.
41352         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41353         * sched-int.h (enum autopref_multipass_data_status): New const enum.
41354         (autopref_multipass_data_): Structure for auto-prefetcher data.
41355         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41356         (struct _haifa_insn_data:autopref_multipass_data): New field.
41357         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41358         (autopref_multipass_dfa_lookahead_guard): Declare.
41360 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41362         * rtlanal.c (get_base_term): Handle SCRATCH.
41364 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41366         * config/aarch64/aarch64.c
41367         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41368         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41369         * config/arm/arm.c
41370         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41371         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41373 2015-01-17  Alan Modra  <amodra@gmail.com>
41375         * cprop.c (do_local_cprop): Disallow replacement of fixed
41376         hard registers.
41378 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41380         PR target/62066
41381         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41382         early return 0.
41384 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41386         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41387         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41389 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41391         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41392         * config/arm/thumb1.md: ... Here.
41394 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41396         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41397         TImode for TARGET_32BIT.
41399 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41401         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41402         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41403         as ...
41404         (rs6000_abi_word_mode): New function.
41406 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41408         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41409         instead of UNITS_PER_WORD to describe the size of stack slots.
41411 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41413         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41414         as rs6000_promote_function_mode.  Move comment to there.
41415         (rs6000_promote_function_mode): New function.
41417 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41419         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41420         -mpowerpc64 is active.
41422 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41424         PR middle-end/64353
41425         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
41426         virtuals on start.
41428 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
41430         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
41431         introduced in revision 219724.
41433 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41434             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41436         PR target/64263
41437         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
41438         destination is not a GP reg.
41439         (*movdi_aarch64): Likewise.
41441 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
41443         PR target/64623
41444         * config/rs6000/default64.h: Revert ISA change.
41446 2015-01-16  Richard Biener  <rguenther@suse.de>
41448         PR middle-end/64614
41449         * tree-ssa-uninit.c: Include tree-cfg.h.
41450         (MAX_SWITCH_CASES): New define.
41451         (convert_control_dep_chain_into_preds): Handle switch statements.
41452         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
41453         (normalize_one_pred_1): Do not split bit-manipulations.
41454         Record (x & CST).
41456 2015-01-16  Richard Biener  <rguenther@suse.de>
41458         PR tree-optimization/64568
41459         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
41460         complex load rewriting for TARGET_MEM_REFs.
41462 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
41464         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
41466 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
41468         PR target/64149
41469         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
41470         variable.
41471         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
41472         (aarch64_lra_p): Remove.
41474 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41476         PR target/64363
41477         * ipa-chkp.h (chkp_instrumentable_p): New.
41478         * ipa-chkp.c: Include tree-inline.h.
41479         (chkp_instrumentable_p): New.
41480         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
41481         Fix processing of not instrumentable functions.
41482         (chkp_versioning): Use chkp_instrumentable_p. Warn about
41483         not instrumentable functions.
41484         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
41485         chkp_instrumentable_p.
41486         * tree-inline.h (copy_forbidden): New.
41487         * tree-inline.c (copy_forbidden): Not static anymore.
41489 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41491         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
41492         ptr1, ptr2 unused.
41494 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
41496         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
41497         type OP_OUT to OP_INOUT.
41499 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
41501         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
41502         (high x) y) to y if x and y have the same base.
41504 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
41506         * config/arm/cortex-a57.md: New.
41507         * config/aarch64/aarch64.md: Include it.
41508         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
41509         * config/aarch64/aarch64-tune.md: Regenerate.
41511 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
41513         PR target/64015
41514         * ccmp.c (expand_ccmp_next): New function.
41515         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
41516         and compare insn sequence.
41517         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
41518         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
41519         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
41520         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
41521         (*ccmp_ior): Changed to ccmp_ior<mode>.
41522         (cmp<mode>): New pattern.
41523         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
41524         parameters.
41525         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
41527 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
41529         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
41530         _mm256_bsrli_epi128): New.
41531         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
41533 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
41535         * expmed.c (store_bit_field_using_insv): Improve warning message.
41536         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
41538 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
41540         PR rtl-optimization/64011
41541         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
41542         there is partial overflow.
41544 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41546         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
41547         prototype.
41548         (nds32_expand_epilogue_v3pop): Likewise.
41549         * config/nds32/nds32.md (sibcall): Define this for sibling call
41550         optimization.
41551         (sibcall_register): Likewise.
41552         (sibcall_immediate): Likewise.
41553         (sibcall_value): Likewise.
41554         (sibcall_value_register): Likewise.
41555         (sibcall_value_immediate): Likewise.
41556         (sibcall_epilogue): Likewise.
41557         (epilogue): Pass false to indicate this is not a sibcall epilogue.
41558         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
41559         (nds32_expand_epilogue_v3pop): Likewise.
41561 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41563         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
41564         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
41565         (return_internal): New.
41566         (return): Define this named pattern.
41567         (simple_return): Define this named pattern.
41568         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
41569         pattern instead of unspec_volatile_func_return.
41570         (nds32_expand_epilogue_v3pop): Likewise.
41571         (nds32_can_use_return_insn): New function.
41573 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41575         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
41576         * config/nds32/nds32.md (pop25return): New.
41577         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
41578         pop25return pattern.
41580 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41582         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
41583         -mforbid-fp-as-gp, and -mex9 options.
41585 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41587         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
41588         remove -mgp-direct option.
41590 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41592         * doc/invoke.texi (--param early-inlining-insns): Update default value.
41593         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
41595 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41597         * ipa-inline.c (inline_small_functions): Work around hints
41598         cache issue.
41600 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
41602         PR target/59710
41603         * doc/invoke.texi (Option Summary): Document new Nios II
41604         -mgpopt= syntax.
41605         (Nios II Options): Likewise.
41606         * config/nios2/nios2.opt: Add -mgpopt= option support.
41607         Modify existing -mgpopt and -mno-gpopt options to be aliases.
41608         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
41609         * config/nios2/nios2.c (nios2_option_override): Adjust
41610         -mgpopt defaulting.
41611         (nios2_in_small_data_p): Return true for explicit small data
41612         sections even with -G0.
41613         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
41614         option choices.
41616 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41618         PR ipa/64612
41619         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
41620         of comdat locals.
41621         (inline_call): Fix removal of aliases.
41623 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
41625         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
41626         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
41627         * opts.c (common_handle_option): Add -fsanitize=vptr.
41628         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
41629         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
41630         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
41631         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
41632         (ubsan_expand_vptr_ifn): New prototype.
41633         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
41634         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
41635         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
41636         expand_LOOP_VECTORIZED): Make argument nameless, remove
41637         ATTRIBUTE_UNUSED.
41638         (expand_UBSAN_VPTR): New function.
41639         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
41640         in fn spec.
41641         (UBSAN_VPTR): New internal function.
41642         * sanopt.c (tree_map_traits): Renamed to ...
41643         (sanopt_tree_map_traits): ... this.
41644         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
41645         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
41646         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
41647         (maybe_optimize_ubsan_vptr_ifn): New function.
41648         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
41649         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
41650         -fsanitize=vptr.
41651         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
41652         internal calls like pure functions for aliasing, even when they
41653         have other side-effects that prevent making them ECF_PURE.
41654         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
41655         (ubsan_expand_vptr_ifn): New function.
41657 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
41659         PR rtl-optimization/64110
41660         * stmt.c (parse_output_constraint): Process '^' and '$'.
41661         (parse_input_constraint): Ditto.
41662         * lra-constraints.c (process_alt_operands): Process the new
41663         constraints.
41664         * ira-costs.c (record_reg_classes): Process the new constraint
41665         '^'.
41666         * genoutput.c (indep_constraints): Add '^' and '$'.
41667         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
41668         * doc/md.texi: Add description of the new constraints.
41670 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
41671             Bernd Schmidt  <bernds@codesourcery.com>
41672             Cesar Philippidis  <cesar@codesourcery.com>
41673             James Norris  <jnorris@codesourcery.com>
41674             Tom de Vries  <tom@codesourcery.com>
41675             Ilmir Usmanov  <i.usmanov@samsung.com>
41676             Dmitry Bocharnikov  <dmitry.b@samsung.com>
41677             Evgeny Gavrin  <e.gavrin@samsung.com>
41678             Jakub Jelinek  <jakub@redhat.com>
41680         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
41681         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
41682         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
41683         New function types.
41684         * builtins.c: Include "gomp-constants.h".
41685         (expand_builtin_acc_on_device): New function.
41686         (expand_builtin, is_inexpensive_builtin): Handle
41687         BUILT_IN_ACC_ON_DEVICE.
41688         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
41689         New macros.
41690         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
41691         flag_openmp.
41692         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
41693         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
41694         i386/intelmic-offload.h.
41695         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
41696         to libgomp and its dependencies.
41697         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
41698         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
41699         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
41700         * config/ia64/hpux.h (LIB_SPEC): Likewise.
41701         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
41702         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
41703         * doc/generic.texi: Update for OpenACC changes.
41704         * doc/gimple.texi: Likewise.
41705         * doc/invoke.texi: Likewise.
41706         * doc/sourcebuild.texi: Likewise.
41707         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
41708         GF_OMP_FOR_KIND_OACC_LOOP.
41709         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
41710         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
41711         GF_OMP_TARGET_KIND_OACC_UPDATE,
41712         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41713         Dump more data.
41714         * gimple.c: Update comments for OpenACC changes.
41715         * gimple.def: Likewise.
41716         * gimple.h: Likewise.
41717         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
41718         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41719         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
41720         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41721         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
41722         appropriate place.
41723         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41724         * gimplify.c: Include "gomp-constants.h".
41725         Update comments for OpenACC changes.
41726         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41727         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41728         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41729         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41730         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41731         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41732         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41733         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41734         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41735         OMP_CLAUSE_SEQ.
41736         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41737         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41738         OMP_CLAUSE_SET_MAP_KIND.
41739         (gimplify_oacc_cache): New function.
41740         (gimplify_omp_for): Handle OACC_LOOP.
41741         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41742         OACC_DATA.
41743         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41744         OACC_EXIT_DATA, OACC_UPDATE.
41745         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41746         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41747         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41748         (gimplify_body): Consider flag_openacc next to flag_openmp.
41749         * lto-streamer-out.c: Include "gomp-constants.h".
41750         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41751         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41752         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41753         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41754         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41755         (BUILT_IN_ACC_ON_DEVICE): New builtins.
41756         * omp-low.c: Include "gomp-constants.h".
41757         Update comments for OpenACC changes.
41758         (struct omp_context): Add reduction_map, gwv_below, gwv_this
41759         members.
41760         (extract_omp_for_data, use_pointer_for_field, install_var_field)
41761         (new_omp_context, delete_omp_context, scan_sharing_clauses)
41762         (create_omp_child_function, scan_omp_for, scan_omp_target)
41763         (check_omp_nesting_restrictions, lower_reduction_clauses)
41764         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41765         Update for OpenACC changes.
41766         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41767         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41768         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41769         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41770         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41771         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
41772         OMP_CLAUSE_MAP_*.
41773         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41774         Handle GF_OMP_FOR_KIND_OACC_LOOP.
41775         (expand_omp_target, lower_omp_target): Handle
41776         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41777         GF_OMP_TARGET_KIND_OACC_UPDATE,
41778         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41779         GF_OMP_TARGET_KIND_OACC_DATA.
41780         (pass_expand_omp::execute, execute_lower_omp)
41781         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41782         flag_openmp.
41783         (offload_symbol_decl): New variable.
41784         (oacc_get_reduction_array_id, oacc_max_threads)
41785         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41786         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41787         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41788         (oacc_gimple_assign, oacc_initialize_reduction_data)
41789         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41790         functions.
41791         (is_targetreg_ctx): Remove function.
41792         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41793         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41794         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41795         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41796         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41797         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41798         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41799         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41800         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41801         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41802         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41803         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41804         * tree-core.h: Update comments for OpenACC changes.
41805         (enum omp_clause_map_kind): Remove.
41806         (struct tree_omp_clause): Change type of map_kind member from enum
41807         omp_clause_map_kind to unsigned char.
41808         * tree-inline.c: Update comments for OpenACC changes.
41809         * tree-nested.c: Likewise.  Include "gomp-constants.h".
41810         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41811         (convert_tramp_reference_stmt, convert_gimple_call): Update for
41812         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41813         OMP_CLAUSE_SET_MAP_KIND.
41814         * tree-pretty-print.c: Include "gomp-constants.h".
41815         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41816         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41817         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41818         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41819         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41820         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
41821         instead of OMP_CLAUSE_MAP_*.
41822         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41823         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41824         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41825         * tree-streamer-in.c: Include "gomp-constants.h".
41826         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41827         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
41828         * tree-streamer-out.c: Include "gomp-constants.h".
41829         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41830         OMP_CLAUSE_MAP_*.
41831         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41832         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41833         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41834         * tree.c (omp_clause_num_ops): Update accordingly.
41835         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41836         Likewise.
41837         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41838         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41839         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41840         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41841         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41842         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41843         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41844         (OMP_CLAUSE_SET_MAP_KIND): New macro.
41845         * varpool.c (varpool_node::get_create): Consider flag_openacc next
41846         to flag_openmp.
41847         * config/i386/intelmic-offload.h: New file.
41848         * config/nvptx/offload.h: Likewise.
41850 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41852         * explow.h: Remove duplicate contents.
41853         * dojump.h: Likewise.
41855 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
41857         * arm.c (arm_xgene_tune): Add default initializer for instruction
41858         fusion.
41860 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41862         PR ipa/64068
41863         PR ipa/64559
41864         * ipa.c (symbol_table::remove_unreachable_nodes):
41865         Do not put abstract origins into boundary.
41867 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
41869         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41870         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41872 2015-01-15  Steve Ellcey  <sellcey@mips.com>
41874         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41875         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41876         builtins.def, and chkp-builtins.def.
41878 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
41880         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41881         ISA 2.7 (POWER8).
41883 2015-01-15  Richard Biener  <rguenther@suse.de>
41885         PR tree-optimization/61743
41886         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41887         information on PHIs for some simple cases.
41889 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41891         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41892         Include xgene1.md.
41893         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41894         * config/arm/arm-cores.def (xgene1): New entry.
41895         * config/arm/arm-tables.opt: Regenerate.
41896         * config/arm/arm-tune.md: Regenerate.
41897         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41899 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41901         * tree-if-conv.c: Include hash-map.h.
41902         (aggressive_if_conv): New variable.
41903         (fold_build_cond_expr): Add simplification of non-zero condition.
41904         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41905         destination block is not always executed.
41906         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41907         than two predecessors if AGGRESSIVE_IF_CONV is true.
41908         (if_convertible_stmt_p): Fix commentary.
41909         (all_preds_critical_p): New function.
41910         (has_pred_critical_p): New function.
41911         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41912         BB can have more than two predecessors and all incoming edges can be
41913         critical.
41914         (predicate_bbs): Skip predication for loop exit block, use build2_loc
41915         to compute predicate for true edge.
41916         (find_phi_replacement_condition): Delete this function.
41917         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41918         Allow interchange PHI arguments if EXTENDED is false.
41919         Change check that block containing reduction statement candidate
41920         is predecessor of phi-block since phi may have more than two arguments.
41921         (phi_args_hash_traits): New helper structure.
41922         (struct phi_args_hash_traits): New type.
41923         (phi_args_hash_traits::hash): New function.
41924         (phi_args_hash_traits::equal_keys): New function.
41925         (gen_phi_arg_condition): New function.
41926         (predicate_scalar_phi): Add handling of phi nodes with more than two
41927         arguments, delete COND and TRUE_BB arguments, insert body of
41928         find_phi_replacement_condition to predicate ordinary phi nodes.
41929         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41930         delete call of find_phi_replacement_condition and invoke
41931         predicate_scalar_phi with two arguments.
41932         (insert_gimplified_predicates): Add assert that non-predicated block
41933         don't have statements to insert.
41934         (ifcvt_split_critical_edges): New function.
41935         (ifcvt_split_def_stmt): Likewise.
41936         (ifcvt_walk_pattern_tree): Likewise.
41937         (stmt_is_root_of_bool_pattern): Likewise.
41938         (ifcvt_repair_bool_pattern): Likewise.
41939         (ifcvt_local_dce): Likewise.
41940         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41941         is copy of inner or outer loop force_vectorize field, invoke
41942         ifcvt_split_critical_edges, ifcvt_local_dce and
41943         ifcvt_repair_bool_pattern for aggressive if-conversion.
41945 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
41947         * config/aarch64/aarch64.md: Include xgene1.md.
41948         * config/aarch64/xgene1.md: New file.
41950 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41952         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41953         xgene1 (APM XGene-1) core definition.
41954         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41955         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41956         * doc/invoke.texi: Document -mcpu=xgene1.
41958 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41960         * dojump.h: New header file.
41961         * explow.h: Likewise.
41962         * expr.h: Remove includes.
41963         Move expmed.c prototypes to expmed.h.
41964         Move dojump.c prototypes to dojump.h.
41965         Move alias.c prototypes to alias.h.
41966         Move explow.c prototypes to explow.h.
41967         Move calls.c prototypes to calls.h.
41968         Move emit-rtl.c prototypes to emit-rtl.h.
41969         Move varasm.c prototypes to varasm.h.
41970         Move stmt.c prototypes to stmt.h.
41971         (saved_pending_stack_adjust): Move to dojump.h.
41972         (adjust_address): Move to explow.h.
41973         (adjust_address_nv): Move to emit-rtl.h.
41974         (adjust_bitfield_address): Likewise.
41975         (adjust_bitfield_address_size): Likewise.
41976         (adjust_bitfield_address_nv): Likewise.
41977         (adjust_automodify_address_nv): Likewise.
41978         * explow.c (expr_size): Move to expr.c.
41979         (int_expr_size): Likewise.
41980         (tree_expr_size): Likewise.
41981         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41982         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41983         * genemit.c (main): Generate includes statistics.h, real.h,
41984         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41985         stmt.h.
41986         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41987         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41988         explow.h, emit-rtl.h, stmt.h.
41989         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41990         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41991         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41992         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41993         emit-rtl.h, varasm.h, stmt.h.
41994         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41995         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41996         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41997         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41998         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41999         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
42000         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
42001         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
42002         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
42003         tm.h tree.h varasm.h vec.h wide-int.h.
42004         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42005         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42006         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
42007         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
42008         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
42009         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
42010         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
42011         * loop-iv.c: Likewise.
42012         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
42013         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
42014         statistics.h stmt.h tree.h varasm.h wide-int.h.
42015         * lra-constraints.c: Likewise.
42016         * lra-eliminations.c: Likewise.
42017         * lra-lives.c: Likewise.
42018         * lra-remat.c: Likewise.
42019         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42020         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
42021         statistics.h stmt.h tree.h varasm.h wide-int.h.
42022         * hw-doloop.c: Likewise.
42023         * ira-color.c: Likewise.
42024         * ira-emit.c: Likewise.
42025         * loop-doloop.c: Likewise.
42026         * loop-invariant.c: Likewise.
42027         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42028         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
42029         statistics.h stmt.h tree.h varasm.h wide-int.h.
42030         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
42031         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
42032         statistics.h stmt.h tree.h varasm.h wide-int.h.
42033         * combine-stack-adj.c: Likewise.
42034         * cse.c: Likewise.
42035         * ddg.c: Likewise.
42036         * ifcvt.c: Likewise.
42037         * ira-costs.c: Likewise.
42038         * jump.c: Likewise.
42039         * lra-coalesce.c: Likewise.
42040         * lra-spills.c: Likewise.
42041         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42042         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
42043         stmt.h varasm.h wide-int.h.
42044         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42045         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42046         varasm.h.
42047         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
42048         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
42049         statistics.h stmt.h varasm.h wide-int.h.
42050         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
42051         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
42052         varasm.h wide-int.h.
42053         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
42054         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42055         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
42056         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
42057         statistics.h stmt.h.
42058         * config/tilepro/tilepro.c: Likewise.
42059         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
42060         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
42061         * config/pdp11/pdp11.c: Likewise.
42062         * config/xtensa/xtensa.c: Likewise.
42063         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
42064         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42065         varasm.h.
42066         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42067         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42068         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
42069         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42070         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42071         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
42072         * rtl-chkp.c: Likewise.
42073         * tree-chkp-opt.c: Likewise.
42074         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
42075         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42076         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
42077         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42078         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42079         statistics.h stmt.h.
42080         * tree-vect-data-refs.c: Likewise.
42081         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
42082         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42083         rtl.h statistics.h stmt.h varasm.h.
42084         * internal-fn.c: Likewise.
42085         * ipa-icf-gimple.c: Likewise.
42086         * lto-section-out.c: Likewise.
42087         * tree-data-ref.c: Likewise.
42088         * tree-nested.c: Likewise.
42089         * tree-outof-ssa.c: Likewise.
42090         * tree-predcom.c: Likewise.
42091         * tree-pretty-print.c: Likewise.
42092         * tree-scalar-evolution.c: Likewise.
42093         * tree-ssa-strlen.c: Likewise.
42094         * tree-vect-loop.c: Likewise.
42095         * tree-vect-patterns.c: Likewise.
42096         * tree-vect-slp.c: Likewise.
42097         * tree-vect-stmts.c: Likewise.
42098         * tsan.c: Likewise.
42099         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42100         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
42101         stmt.h.
42102         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
42103         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42104         statistics.h stmt.h varasm.h.
42105         * loop-unroll.c: Likewise.
42106         * ubsan.c: Likewise.
42107         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
42108         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
42109         stmt.h varasm.h.
42110         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42111         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
42112         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
42113         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42114         statistics.h stmt.h.
42115         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
42116         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42117         statistics.h stmt.h varasm.h.
42118         * gimple-match-head.c: Likewise.
42119         * lto-cgraph.c: Likewise.
42120         * lto-section-in.c: Likewise.
42121         * lto-streamer-in.c: Likewise.
42122         * lto-streamer-out.c: Likewise.
42123         * tree-affine.c: Likewise.
42124         * tree-cfg.c: Likewise.
42125         * tree-cfgcleanup.c: Likewise.
42126         * tree-if-conv.c: Likewise.
42127         * tree-into-ssa.c: Likewise.
42128         * tree-ssa-alias.c: Likewise.
42129         * tree-ssa-copyrename.c: Likewise.
42130         * tree-ssa-dse.c: Likewise.
42131         * tree-ssa-forwprop.c: Likewise.
42132         * tree-ssa-live.c: Likewise.
42133         * tree-ssa-math-opts.c: Likewise.
42134         * tree-ssa-pre.c: Likewise.
42135         * tree-ssa-sccvn.c: Likewise.
42136         * tree-tailcall.c: Likewise.
42137         * tree-vect-generic.c: Likewise.
42138         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42139         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42140         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42141         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42142         * varasm.c: Likewise.
42143         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42144         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42145         varasm.h.
42146         * init-regs.c: Likewise.
42147         * ira.c: Likewise.
42148         * omp-low.c: Likewise.
42149         * stack-ptr-mod.c: Likewise.
42150         * tree-ssa-reassoc.c: Likewise.
42151         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42152         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42153         varasm.h.
42154         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42155         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42156         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42157         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42158         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42159         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42160         * tree-ssa-phiopt.c: Likewise.
42161         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42162         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42163         * config/fr30/fr30.c: Likewise.
42164         * config/frv/frv.c: Likewise.
42165         * expr.c: Likewise.
42166         * final.c: Likewise.
42167         * optabs.c: Likewise.
42168         * passes.c: Likewise.
42169         * simplify-rtx.c: Likewise.
42170         * stmt.c: Likewise.
42171         * toplev.c: Likewise.
42172         * var-tracking.c: Likewise.
42173         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42174         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42175         * lower-subreg.c: Likewise.
42176         * postreload-gcse.c: Likewise.
42177         * ree.c: Likewise.
42178         * reginfo.c: Likewise.
42179         * store-motion.c: Likewise.
42180         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42181         fixed-value.h hashtab.h real.h stmt.h varasm.h.
42182         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42183         fixed-value.h hashtab.h statistics.h stmt.h.
42184         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42185         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42186         * except.c: Likewise.
42187         * explow.c: Likewise.
42188         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42189         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42190         varasm.h.
42191         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42192         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42193         * tree-ssa-structalias.c: Likewise.
42194         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42195         fixed-value.h insn-config.h real.h statistics.h.
42196         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42197         fixed-value.h insn-config.h real.h statistics.h stmt.h.
42198         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42199         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42200         * cfgbuild.c: Likewise.
42201         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42202         fixed-value.h real.h rtl.h statistics.h stmt.h.
42203         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42204         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42205         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42206         fixed-value.h real.h statistics.h stmt.h.
42207         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42208         fixed-value.h real.h statistics.h stmt.h varasm.h.
42209         * cprop.c: Likewise.
42210         * modulo-sched.c: Likewise.
42211         * postreload.c: Likewise.
42212         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42213         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42214         statistics.h stmt.h varasm.h.
42215         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42216         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42217         rtl.h statistics.h stmt.h varasm.h.
42218         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42219         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42220         varasm.h.
42221         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42222         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42223         varasm.h.
42224         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42225         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42226         varasm.h.
42227         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42228         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42229         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42230         function.h real.h statistics.h stmt.h varasm.h.
42231         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42232         insn-config.h real.h statistics.h stmt.h.
42233         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42234         statistics.h stmt.h.
42235         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42236         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42237         statistics.h stmt.h varasm.h.
42238         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42239         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42240         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42241         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42242         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42243         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42244         statistics.h stmt.h varasm.h.
42245         * ipa-polymorphic-call.c: Likewise.
42246         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42247         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42248         statistics.h stmt.h.
42249         * config/c6x/c6x.c: Likewise.
42250         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42251         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42252         statistics.h stmt.h varasm.h.
42253         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42254         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42255         stmt.h varasm.h.
42256         * ipa-split.c: Likewise.
42257         * tree-eh.c: Likewise.
42258         * tree-ssa-dce.c: Likewise.
42259         * tree-ssa-loop-niter.c: Likewise.
42260         * tree-vrp.c: Likewise.
42261         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42262         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42263         stmt.h.
42264         * config/nds32/nds32-fp-as-gp.c: Likewise.
42265         * config/nds32/nds32-intrinsic.c: Likewise.
42266         * config/nds32/nds32-isr.c: Likewise.
42267         * config/nds32/nds32-md-auxiliary.c: Likewise.
42268         * config/nds32/nds32-memory-manipulation.c: Likewise.
42269         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42270         * config/nds32/nds32-predicates.c: Likewise.
42271         * config/nds32/nds32.c: Likewise.
42272         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42273         fixed-value.h hashtab.h real.h statistics.h.
42274         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42275         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42276         * config/arm/arm.c: Likewise.
42277         * config/avr/avr.c: Likewise.
42278         * config/bfin/bfin.c: Likewise.
42279         * config/h8300/h8300.c: Likewise.
42280         * config/i386/i386.c: Likewise.
42281         * config/ia64/ia64.c: Likewise.
42282         * config/iq2000/iq2000.c: Likewise.
42283         * config/m32c/m32c.c: Likewise.
42284         * config/m32r/m32r.c: Likewise.
42285         * config/m68k/m68k.c: Likewise.
42286         * config/mcore/mcore.c: Likewise.
42287         * config/mep/mep.c: Likewise.
42288         * config/mips/mips.c: Likewise.
42289         * config/mn10300/mn10300.c: Likewise.
42290         * config/moxie/moxie.c: Likewise.
42291         * config/pa/pa.c: Likewise.
42292         * config/rl78/rl78.c: Likewise.
42293         * config/rx/rx.c: Likewise.
42294         * config/s390/s390.c: Likewise.
42295         * config/sh/sh.c: Likewise.
42296         * config/sparc/sparc.c: Likewise.
42297         * config/spu/spu.c: Likewise.
42298         * config/stormy16/stormy16.c: Likewise.
42299         * config/v850/v850.c: Likewise.
42300         * config/vax/vax.c: Likewise.
42301         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42302         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42303         * config/msp430/msp430.c: Likewise.
42304         * predict.c: Likewise.
42305         * value-prof.c: Likewise.
42306         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42307         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42308         * config/microblaze/microblaze.c: Likewise.
42309         * config/nios2/nios2.c: Likewise.
42310         * config/rs6000/rs6000.c: Likewise.
42311         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42312         insn-config.h real.h rtl.h statistics.h stmt.h.
42313         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42314         insn-config.h real.h statistics.h stmt.h.
42315         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42316         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42317         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42318         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42319         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42320         fixed-value.h real.h statistics.h stmt.h.
42321         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42322         fixed-value.h statistics.h stmt.h.
42323         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42324         stmt.h.
42326 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
42328         * gengtype.c (create_user_defined_type): Workaround
42329         -Wmaybe-uninitialized false positives.
42330         * cse.c (fold_rtx): Likewise.
42331         * loop-invariant.c (gain_for_invariant): Likewise.
42333 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
42335         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42336         set the memory attributes in all cases but clear MEM_EXPR if need be.
42338 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
42340         PR tree-optimization/64434
42341         * cfgexpand.c (reorder_operands): New function.
42342         (expand_gimple_basic_block): Insert call of reorder_operands if
42343         optimized is true.
42345 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
42347         * config/mips/micromips.md (*swp): Remove explicit parallel.
42348         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42349         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42350         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42351         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42352         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42353         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42354         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42355         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42356         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42357         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42358         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42359         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42360         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42361         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42362         (mips_wrdsp): Likewise.
42363         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42364         parallel.
42365         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42366         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42367         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42368         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42369         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42370         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42371         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42372         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42373         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42375 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42377         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42378         (mips_print_operand): Support 'y' to print exact log2 in decimal
42379         of a const_int.
42380         * config/mips/mips.h (ISA_HAS_LSA): New define.
42381         (ISA_HAS_DLSA): Likewise.
42382         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42383         * config/mips/predicates.md (const_immlsa_operand): New predicate.
42385 2015-01-15  Martin Liska  <mliska@suse.cz>
42387         PR target/64377
42388         * optc-save-gen.awk: Add support for array types.
42390 2015-01-15  Richard Biener  <rguenther@suse.de>
42392         PR middle-end/64365
42393         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42394         for MEM_REF access functions with the same base can never partially
42395         overlap.
42397 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
42399         * common.opt: New option -fstack-protector-explicit.
42400         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42401         (stack_protect_decl_phase): Handle stack_protect attribute for
42402         explicit stack protection requests.
42403         (expand_used_vars): Similarly.
42404         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42405         * doc/extend.texi: Add documentation for "stack_protect" attribute.
42406         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42408 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
42410         PR target/53988
42411         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42412         reg-reg copies.
42413         (sh_extending_set_of_reg): New struct.
42414         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42415         sh_remove_reg_dead_or_unused_notes): New Declarations.
42416         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42417         sh_find_extending_set_of_reg, sh_split_tst_subregs,
42418         sh_extending_set_of_reg::use_as_extended_reg): New functions.
42419         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42420         convert to insn_and_split and use new function sh_split_tst_subregs.
42422 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
42424         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
42425         option.
42426         (Optimization Options): Move -fuse-ld documentation to...
42427         (Link Options): ...here.
42429 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42431         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
42432         offsets.
42433         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
42434         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
42435         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
42436         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
42437         instead of ZR for the memory operand of LL/SC.
42438         (compare_and_swap_12, sync_add<mode>): Likewise.
42439         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
42440         (sync_new_<optab>_12, sync_nand_12): Likewise.
42441         (sync_old_nand_12, sync_new_nand_12): Likewise.
42442         (sync_sub<mode>, sync_old_add<mode>): Likewise.
42443         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
42444         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
42445         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
42446         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
42447         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
42448         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
42449         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
42450         * doc/md.texi (ZC): Update description.
42452 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
42454         * builtins.c (expand_builtin_atomic_exchange): Remove error when
42455         memory model is CONSUME.
42456         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
42457         expand_builtin_atomic_store): Change invalid memory model errors to
42458         warnings.
42459         (expand_builtin_atomic_clear): Change invalid model errors to warnings
42460         and issue warning for CONSUME.
42462 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
42464         * lto-cgraph: Update function comments for
42465         lto_symtab_encoder_encode_*.
42467 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
42469         * Makefile.in (site.exp): Do not set ENABLE_LTO.
42471 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
42473         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
42474         * lto-cgraph.c (select_what_to_stream): Remove argument, use
42475         lto_stream_offload_p instead.
42476         * lto-streamer.h (select_what_to_stream): Remove argument.
42477         * passes.c (ipa_write_summaries): Likewise.
42478         * tree-pass.h (ipa_write_summaries): Likewise.
42480 2015-01-14  Richard Biener  <rguenther@suse.de>
42482         PR tree-optimization/59354
42483         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
42484         groups larger than the slp group size as having gaps.
42486 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
42488         PR middle-end/59448
42489         * builtins.c (get_memmodel): Promote consume to acquire always.
42491 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42493         PR target/64386
42494         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
42495         V32HImode.
42497 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42499         PR target/64393
42500         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
42501         Enable AVX512BW.
42502         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
42503         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
42504         AVX512VBMI, as it implies AVX512BW.
42506 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42508         PR target/64387
42509         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
42510         (vec_unpacks_hi_v16sf): Ditto.
42512 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42514         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
42515         is not available.
42517 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42519         * doc/invoke.texi (mapcs): Mention deprecation.
42520         (mapcs-frame): Likewise.
42522 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42524         PR target/64453
42525         * config/arm/arm.c (callee_saved_reg_p): Define.
42526         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
42527         register is callee saved instead of !call_used_regs[reg].
42528         (thumb1_compute_save_reg_mask): Likewise.
42530 2015-01-14  Hale Wang  <hale.wang@arm.com>
42532         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
42533         Cortex-M7.
42535 2015-01-14  Richard Biener  <rguenther@suse.de>
42537         PR lto/64415
42538         * tree-inline.c (insert_debug_decl_map): Check destination
42539         function MAY_HAVE_DEBUG_STMTS.
42540         (insert_init_debug_bind): Likewise.
42541         (insert_init_stmt): Remove redundant check.
42542         (remap_gimple_stmt): Drop debug stmts if the destination
42543         function has var-tracking assignments disabled.
42545 2015-01-14  Martin Liska  <mliska@suse.cz>
42547         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
42548         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
42550 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42552         PR target/64460
42553         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
42554         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
42556 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42558         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
42559         level from an ARCH; do not inject the default.
42560         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
42561         MIPS_ISA_LEVEL_SPEC.
42562         (MIPS_ISA_NAN2008_SPEC): Update comment.
42563         (BASE_DRIVER_SELF_SPECS): Likewise.
42564         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
42565         MIPS_DEFAULT_ISA_LEVEL_SPEC.
42566         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
42567         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
42568         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
42570 2015-01-14  Richard Biener  <rguenther@suse.de>
42572         PR tree-optimization/64493
42573         PR tree-optimization/64495
42574         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
42575         assign the proper vectorized PHI to the inner loop exit PHIs.
42577 2015-01-14  Joey Ye  <joey.ye@arm.com>
42579         * config/arm/arm.c (arm_compute_save_reg_mask):
42580         Do not save lr in case of tail call.
42581         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
42583 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
42585         * tree-vrp.c (check_array_ref): Emit more warnings
42586         for warn_array_bounds >= 2.
42587         * common.opt: New option -Warray-bounds=.
42588         * doc/invoke.texi: Document -Warray-bounds=.
42590 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
42592         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
42593         (mforbid-fp-as-gp): Remove.
42594         (mex9): Remove.
42595         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
42596         (nds32_symbol_load_store_p): Remove.
42597         (nds32_fp_as_gp_check_available): Clean up implementation.
42598         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
42599         cases.
42600         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
42601         fp-as-gp and ex9 cases.
42603 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42605         * tree-profile.c (init_ic_make_global_vars): Drop workaround
42606         for bintuils bug 14342.
42607         (init_ic_make_global_vars): Likewise.
42608         (gimple_init_edge_profiler): Likewise.
42609         (gimple_gen_ic_func_profiler): Likewise.
42611 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
42613         * ipa-inline.c (inline_small_functions): Swap the operands in
42614         enum.
42616 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42618         PR ipa/64481
42619         * ipa-inline-analysis.c (node_growth_cache): Remove.
42620         (initialize_growth_caches): Do not initialize it.
42621         (free_growth_caches): Do not free it.
42622         (do_estimate_growth): Rename to ...
42623         (estimate_growth): ... this one; drop growth cache code.
42624         (growth_likely_positive): Always go the heuristics way.
42625         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
42626         (reset_edge_caches): Do not reset node growth.
42627         (heap_edge_removal_hook): Do not maintain cache.
42628         (inline_small_functions): Likewise; strenghten sanity check.
42629         (ipa_inline): Do not maintain caches.
42630         * ipa-inline.h (node_growth_cache): Remove.
42631         (do_estimate_growth): Remove to ...
42632         (estimate_growth): this one; remove inline version.
42633         (reset_node_growth_cache): Remove.
42635 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42637         PR ipa/64565
42638         * ipa-inline.c (inline_small_functions): Update callee keys after
42639         resolving speculation
42640         (inline_small_functions): Always check monotonicity of the queue.
42642 2015-01-13  Marek Polacek  <polacek@redhat.com>
42644         PR middle-end/64391
42645         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
42647 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
42649         PR rtl-optimization/64286
42650         * ree.c (combine_reaching_defs): Move part of comment earlier,
42651         remove !SCALAR_INT_MODE_P check.
42652         (add_removable_extension): Don't add vector mode
42653         extensions if all uses of the source register aren't the same
42654         vector extensions.
42656 2015-01-13  Renlin Li  <renlin.li@arm.com>
42658         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
42659         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
42661 2015-01-13  Martin Liska  <mliska@suse.cz>
42663         * ipa-icf.c (sem_function::equals_private): Call new functions
42664         cl_target_option_print_diff and cl_optimization_print_diff.
42665         * optc-save-gen.awk (cl_target_option_print_diff): New function.
42666         (cl_optimization_print_diff): Likewise.
42667         * opth-gen.awk: Likewise.
42669 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
42671         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
42672         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
42673         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
42674         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
42675         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
42676         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
42678 2015-01-13  Andrew Pinski  <apinski@cavium.com>
42680         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
42681         instead of src mode.
42683 2015-01-13  Richard Biener  <rguenther@suse.de>
42685         PR lto/64373
42686         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
42687         DECL_CONTEXT.
42689 2015-01-13  Andrew Pinski  <apinski@cavium.com>
42691         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
42692         volatile mems.
42693         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
42695 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
42697         PR middle-end/63974
42698         * cfgexpand.c (expand_computed_goto): Don't call
42699         convert_memory_address here.
42701 2015-01-13  Richard Biener  <rguenther@suse.de>
42703         PR tree-optimization/64406
42704         * tree-loop-distibution.c (pass_loop_distribution::execute):
42705         Reset the SCEV hashtable if we distributed anything.
42707 2015-01-13  Richard Biener  <rguenther@suse.de>
42709         PR tree-optimization/64404
42710         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
42711         SLP types for CSEd loads.
42713 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42715         PR tree-optimization/64436
42716         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
42717         merge of two symbolic numbers for a bitwise OR to ...
42718         (perform_symbolic_merge): This. Also fix computation of the range and
42719         end of the symbolic number corresponding to the result of a bitwise OR.
42721 2015-01-13  Richard Biener  <rguenther@suse.de>
42723         PR tree-optimization/64568
42724         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42725         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42727 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42729         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42730         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42732 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42734         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42735         target-specific symbol_ref flag.
42736         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42737         resides in rodata section.
42738         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42739         (nds32_encode_section_info): New function.
42741 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42743         * config/nds32/nds32.md (call): Use pseudo instruction bal which
42744         clobbers TA_REGNUM if large code model is specified.
42745         (call_register): Likewise.
42746         (call_immediate): Likewise.
42747         (call_value): Likewise.
42748         (call_value_register): Likewise.
42749         (call_value_immediate): Likewise.
42751 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42753         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42754         (TARGET_CMODEL_MEDIUM): New macro.
42755         (TARGET_CMODEL_LARGE): New macro.
42756         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42757         code model setting in assembly code.
42759 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42761         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42762         Remove MASK_GP_DIRECT flag.
42763         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42764         one of the multilib default options.
42765         * config/nds32/nds32.opt (mgp-direct): Remove.
42766         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42767         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
42769 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42771         * config/nds32/nds32.opt (mcmodel): Add new option.
42772         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42773         to describe code model.
42775 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
42777         PR target/64479
42778         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42780 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
42782         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42783         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42784         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42785         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42786         __builtin_sh_set_fpscr.
42788 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42790         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42791         after a funtion name just to indicate it is a function.
42792         ([-fsanitize-undefined-trap-on-error]): Likewise.
42793         ([-fdbg-cnt=]): Likewise.
42794         ([-mmemcpy]): Likewise.
42795         ([-mflush-func]): Likewise.
42796         ([-msynci]): Likewise.
42798 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42800         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42801         example.
42803 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
42805         PR tree-optimization/64563
42806         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42807         instead of != VR_VARYING.
42809         PR target/64513
42810         * config/i386/i386.c (ix86_expand_prologue): Add
42811         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42813         PR tree-optimization/64454
42814         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42815         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42816         for signed or [0, op1 - 1] for unsigned modulo.
42817         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42818         even if op1 does not satisfy integer_pow2p.
42820         PR other/64370
42821         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42823 2015-01-12  Jeff Law  <law@redhat.com>
42825         PR target/64461
42826         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42827         (trunchiqi2, truncsihi2): Similarly.
42829         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42830         rather than calling F.
42832 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42834         * tsan.c (instrument_expr): Use force_gimple_operand.
42835         Use may_be_nonaddressable_p instead of is_gimple_addressable.
42837 2015-01-12  Richard Biener  <rguenther@suse.de>
42839         PR tree-optimization/64530
42840         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42841         back dr1.
42843 2015-01-12  Richard Biener  <rguenther@suse.de>
42845         PR middle-end/64357
42846         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42847         latches properly.
42849 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42851         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42852         Cortex-A17 tuning parameters.
42853         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42855 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42857         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42858         * config/arm/arm.c (arm_macro_fusion_p): New function.
42859         (arm_macro_fusion_pair_p): Likewise.
42860         (TARGET_SCHED_MACRO_FUSION_P): Define.
42861         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42862         (ARM_FUSE_NOTHING): Likewise.
42863         (ARM_FUSE_MOVW_MOVT): Likewise.
42864         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42865         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42866         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42867         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42868         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42869         arm_cortex_a5_tune): Specify fuseable_ops value.
42871 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
42873         PR bootstrap/64561
42874         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42875         test for PIE with copy reloc.
42876         * configure: Regenerated.
42878 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42880         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42881         in gen_rtx_REG.
42882         (arm_tls_descseq_addr): Likewise.
42883         (arm_gen_movmemqi): Likewise.
42884         (arm_expand_epilogue_apcs_frame): Likewise.
42885         (arm_expand_epilogue): Likewise.
42886         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
42887         in gen_rtx_REG.
42889 2015-01-12  Martin Liska  <mliska@suse.cz>
42891         PR ipa/64550
42892         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42893         volatility for correct operands.
42895 2015-01-12  Martin Liska  <mliska@suse.cz>
42897         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42898         indication that a function is not leaf.
42899         (sem_function::compare_polymorphic_p): Likewise.
42901 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42903         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42904         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42905         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42906         fold-const.h, tree-check.h.
42908 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42910         PR ipa/63967
42911         PR ipa/64425
42912         * ipa-inline.c (compute_uninlined_call_time,
42913         compute_inlined_call_time): Use counts for extra precision when
42914         needed possible.
42915         (big_speedup_p): Fix formating.
42916         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42917         (relative_time_benefit): Remove.
42918         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42919         merge guessed and read profile paths.
42920         (inline_small_functions): Count only !optimize_size functions into
42921         initial size; be more lax about sanity check when profile is used;
42922         be sure to update inlined function profile when profile is read.
42924 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42926         PR ipa/63470
42927         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42928         cost when edge becomes direct.
42929         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42930         is resolved or when introducing new speculation.
42932 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
42934         PR ipa/64551
42935         PR ipa/64552
42936         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42937         '||' to fix typo issue.
42939         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42940         accept and return NULL.
42942 2015-01-12  Martin Liska  <mliska@suse.cz>
42944         * cgraph.c (cgraph_edge::remove_callee): Move function to header
42945         file for being inlined.
42946         (cgraph_set_edge_callee): Delete.
42947         (cgraph_edge::redirect_callee): Move function to header file
42948         for being inlined.
42949         (cgraph_edge::make_direct): Use new function.
42950         (cgraph_edge::dump_edge_flags): New function created from
42951         static dump_edge_flags function.
42952         (cgraph_node::dump): Use new function.
42953         (cgraph_edge::verify_count_and_frequency): New function created
42954         from verify_edge_count_and_frequency.
42955         (cgraph_edge::verify_corresponds_to_fndecl): New function created
42956         from verify_edge_corresponds_to_fndecl.
42957         (verify_edge_corresponds_to_fndecl): Delete.
42958         (cgraph_node::verify_node): Use new function.
42959         * cgraph.h (cgraph_edge::set_callee): New function.
42960         (cgraph_edge::dump_edge_flags): Likewise.
42961         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42963 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
42965         * ipa-utils.c (estimate_function_body_sizes): Do not
42966         free node params when called late with early=true.
42968 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
42970         * doc/md.texi (Instruction Patterns): Rewrite text for
42971         clarity.
42972         (Example): Likewise.
42974 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
42976         * doc/invoke.texi (Option Summary): Break long lines.
42977         [(-fdiagnostics-color)]: Put long literal in @smallexample
42978         instead of inline.
42979         [(-fsanitize-recover)]: Likewise.
42980         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42981         [(-ffast-math)]: Likewise.
42982         [(--param max-inline-insns-recursive)]: Likewise.
42983         [(--param max-inline-recursive-depth)]: Likewise.
42984         [(-mno-text-section-literals)]: Likewise.
42986 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
42988         * doc/install.texi: Update for libgomp being renamed from "GNU
42989         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42990         Runtime Library".
42991         * doc/sourcebuild.texi: Likewise.
42993 2015-01-10  Anthony Green  <green@moxielogic.com>
42995         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42996         mul.x availability for moxiebox configuration.
42998 2015-01-09  Anthony Green  <green@moxielogic.com>
43000         * config/moxie/moxie.md: Tabify assembly output.
43002 2015-01-09  Anthony Green  <green@moxielogic.com>
43004         * config/moxie/moxie.md (CC_REG): Correct register definition.
43006 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
43008         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
43009         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
43010         of log files.
43012 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
43014         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
43016 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
43017             Jakub Jelinek  <jakub@redhat.com>
43019         PR middle-end/64412
43020         * lto-streamer.h (lto_stream_offload_p): New declaration.
43021         * lto-streamer.c (lto_stream_offload_p): New variable.
43022         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
43023         at the same time as section_name_prefix.
43024         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
43025         if lto_stream_offload_p.
43026         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
43027         stream TREE_TARGET_OPTION if lto_stream_offload_p.
43028         (write_ts_function_decl_tree_pointers): Don't
43029         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
43030         * tree-streamer-in.c (unpack_value_fields): Don't stream
43031         TREE_TARGET_OPTION in if ACCEL_COMPILER.
43032         (lto_input_ts_function_decl_tree_pointers): Don't stream
43033         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
43034         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
43035         instead of section_name_prefix string comparisons.
43037 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
43039         PR rtl-optimization/64536
43040         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
43041         tablejumps.
43043 2015-01-09  Michael Collison  <michael.collison@linaro.org>
43045         PR tree-optimization/64322
43046         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
43047         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
43049 2015-01-09  Tom de Vries  <tom@codesourcery.com>
43051         PR rtl-optimization/64539
43052         * regcprop.c (kill_clobbered_values): Factor out of ...
43053         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
43054         instead of note_stores with kill_clobbered_value.
43056 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
43058          * ginclude/unwind-arm-common.h: Revert previous commit.
43060 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
43062         * config.gcc (arm*-*-freebsd*): New configuration.
43063         * config/arm/freebsd.h: New file.
43064         * config.host: Add extra components for arm*-*-freebsd*.
43065         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
43066         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
43068 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43070         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
43071         for -mcpu=e6500.
43072         * config/rs6000/t-rtems: Add e6500 multilibs.
43074 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43076         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
43077         MPC8540.
43079 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43081         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
43082         MULTILIB_EXCEPTIONS.
43084 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43086         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
43087         MULTILIB_EXCEPTIONS.
43089 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
43091         * config/arm/t-rtems-eabi: Rename to...
43092         * config/arm/t-rtems: ...this.
43093         * config/arm/rtems-eabi.h: Rename to...
43094         * config/arm/rtems.h: ...this.
43095         * config.gcc (arm*-*-rtems*): Reflect changes above.
43097 2015-01-09  Richard Biener  <rguenther@suse.de>
43099         PR tree-optimization/64410
43100         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
43101         on the LHS.
43102         (execute_update_addresses_taken): Deal with that.
43103         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
43104         loads/stores for complex variables.
43106 2015-01-09  Martin Liska  <mliska@suse.cz>
43108         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
43109         name comparison.
43110         (func_checker::compare_memory_operand): New function.
43111         (func_checker::compare_operand): Split case to newly
43112         added functions.
43113         (func_checker::compare_cst_or_decl): New function.
43114         (func_checker::compare_gimple_call): Identify
43115         memory operands.
43116         (func_checker::compare_gimple_assign): Likewise.
43117         * ipa-icf-gimple.h: New function.
43119 2015-01-09  Martin Liska  <mliska@suse.cz>
43121         PR ipa/64503
43122         * sreal.c (sreal::dump): Change unsigned format to signed for
43123         m_exp value.
43124         (sreal::to_double): Replace exp2 with scalbln.
43126 2015-01-09  Martin Liska  <mliska@suse.cz>
43128         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43129         * ipa-icf.c (sem_function::equals_private): Add support for target and
43130         (sem_item_optimizer::merge_classes): Remove redundant function
43131         optimization flags comparison.
43132         * tree.h (target_opts_for_fn): New function.
43134 2015-01-09  Tom de Vries  <tom@codesourcery.com>
43136         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43138 2015-01-09  Kito Cheng  <kito@0xlab.org>
43140         PR rtl-optimization/64348
43141         * lra-constraints.c (split_reg): Fix caller-save store/restore
43142         instruction generation.
43144 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
43146         PR gcov-profile/61790
43147         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43148         long long.  Fallback to int64_t if host doesn't have long long and
43149         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
43151 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43153         PR tree-optimization/63989
43154         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43155         from 1000 to 10000.
43156         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43157         (get_stridx): If we don't have a record for certain SSA_NAME,
43158         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43159         constant offset, call get_stridx_plus_constant.
43160         (get_stridx_plus_constant): New function.
43161         (zero_length_string): Don't use get_stridx here.
43163         PR target/55023
43164         PR middle-end/64388
43165         * dse.c (struct insn_info): Mention frame_read set also
43166         before reload for tail calls on some targets.
43167         (scan_insn): Revert 2014-12-22 change.  Set frame_read
43168         also before reload for tail calls if
43169         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
43170         instead of add_non_frame_wild_read for non-const/memset
43171         tail calls after reload.
43173 2015-01-08  Jason Merrill  <jason@redhat.com>
43175         * ubsan.c (do_ubsan_in_current_function): New.
43176         (pass_ubsan::gate): Use it.
43177         * ubsan.h: Declare it.
43178         * convert.c (convert_to_integer): Use it.
43180 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43182         PR target/64338
43183         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43184         compare_code when it is unconditionally overwritten afterwards.
43185         Use ix86_reverse_condition instead of reverse_condition.  Don't
43186         change code if *reverse_condition* returned UNKNOWN and don't
43187         swap ct/cf and negate diff in that case.
43189 2015-01-08  Mike Stump  <mikestump@comcast.net>
43191         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43192         (pass_tsan_O0::gate): Likewise.
43193         * extend.texi (Function Attributes): Add no_sanitize_thread
43194         documentation.
43196 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
43198         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43199         for registering builtins.
43200         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43201         add -fopenmp to the argv_obstack used when invoking
43202         compile_for_target.
43204         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43205         add "-m32" or "-m64" to argv_obstack.
43206         (generate_host_descr_file): Likewise, when invoking host_compiler.
43207         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43208         ld.
43210 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
43212         * config/sh/sh-mem.cc: Use constant as second operand when emitting
43213         tstsi_t insns.
43215 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
43217         PR target/55212
43218         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43219         constant load if constant operand fits into I08.
43221 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43223         PR sanitizer/64336
43224         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43225         and TREE_THIS_VOLATILE for MEM_REFs.
43226         (build5_stat): Fix up initialization of TREE_READONLY and
43227         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43229 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
43231         PR target/64533
43232         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43233         of r for the second alternative of the destination operand.
43235 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
43237         PR target/36557
43238         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43240 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
43242         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43243         keywords.
43244         ([-fivar-visibility], [-fvisibility]): Likewise.
43246 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
43248         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43249         the file where @code, @command, etc is more appropriate.
43251 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
43253         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43254         of -mrecip= documentation.
43256 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
43258         PR target/64505
43259         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43260         correct reload handler if -m32 -mpowerpc64 is used.
43262 2015-01-06  Tom de Vries  <tom@codesourcery.com>
43264         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43266 2015-01-08  Christian Bruel  <christian.bruel@st.com>
43268         PR target/64507
43269         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43271 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43273         PR tree-optimization/63259
43274         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43275         if optab exists for 16bit byteswap.
43277 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
43279         * opts.c (common_handle_option): Add support for
43280         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43281         * doc/invoke.texi: Document -fno-sanitize=all,
43282         -f{,no-}sanitize-recover=all.  Document that
43283         -fsanitize=float-cast-overflow is not enabled
43284         by -fsanitize=undefined.  Fix up documentation
43285         of -f{,no-}sanitize-recover.
43287 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
43289         * config.gcc: Add Visium support.
43290         * configure.ac: Likewise.
43291         * configure: Regenerate.
43292         * doc/extend.texi (interrupt attribute): Add Visium.
43293         * doc/invoke.texi: Document Visium options.
43294         * doc/install.texi: Document Visium target.
43295         * doc/md.texi: Document Visium constraints.
43296         * common/config/visium: New directory.
43297         * config/visium: Likewise.
43299 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43301         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43302         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43304 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43306         * combine.c (combine_validate_cost): Do not count the cost of a
43307         split I2 twice.  Do not display it twice in the dump, either.
43309 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43311         Revert parts of r219199.
43312         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43313         <inttypes.h>.
43314         ([-Wtraditional]): Restore markup on <limits.h>.
43316 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
43318         PR c++/31397
43319         * doc/invoke.texi: Document -Wsuggest-override.
43321 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
43323         PR rtl-optimization/64287
43324         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43325         (process_options): Disable flag_ipa_ra if profiling.
43327 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
43329         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43331 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
43333         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43334         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43335         put under #if TARGET_LOOPS guard.
43337 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
43339         * config/i386/i386.c (output_387_binary_op): Use std::swap.
43341 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
43343         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43344         * rtl.h (refers_to_regno_p): Add overload.
43345         * cse.c: Use it.
43346         * bt-load.c: Likewise.
43347         * combine.c: Likewise.
43348         * df-scan.c: Likewise.
43349         * sched-deps.c: Likewise.
43350         * config/s390/s390.c: Likewise.
43351         * config/m32r/m32r.c: Likewise.
43352         * config/rs6000/spe.md: Likewise.
43353         * config/rs6000/rs6000.c: Likewise.
43354         * config/pa/pa.c: Likewise.
43355         * config/stormy16/stormy16.c: Likewise.
43356         * config/cris/cris.c: Likewise.
43357         * config/arc/arc.md: Likewise.
43358         * config/arc/arc.c: Likewise.
43359         * config/sh/sh.md: Likewise.
43360         * config/sh/sh.c: Likewise.
43361         * config/frv/frv.c: Likewise.
43363 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43365         PR sanitizer/64265
43366         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43367         call as cleanup of the whole body.
43368         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43369         * tsan.c (replace_func_exit): New function.
43370         (instrument_func_exit): Moved earlier.
43371         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43372         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43373         been found.
43374         (tsan_pass): Don't call instrument_func_exit.
43375         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43376         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43377         inlining.
43379         PR sanitizer/64344
43380         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43381         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43382         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
43383         if the result is integer_zerop, return NULL_TREE.
43384         * convert.c (convert_to_integer): Pass expr as ARG.
43386         PR tree-optimization/64465
43387         * tree-inline.c (redirect_all_calls): During inlining
43388         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43389         changed the stmt to a non-throwing call.
43391 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43393         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43394         etc markup throughout the file.
43396 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43398         Enable experimental TSAN support for Ada.
43399         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43401 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43403         PR tree-optimization/64494
43404         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43405         clear SSA_NAME_ANTI_RANGE_P flag.
43407 2015-01-05  Marek Polacek  <polacek@redhat.com>
43409         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43411 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43413         Update copyright years.
43415         * gcc.c (process_command): Update copyright notice dates.
43416         * gcov-dump.c: Ditto.
43417         * gcov.c: Ditto.
43418         * doc/cpp.texi: Bump @copying's copyright year.
43419         * doc/cppinternals.texi: Ditto.
43420         * doc/gcc.texi: Ditto.
43421         * doc/gccint.texi: Ditto.
43422         * doc/gcov.texi: Ditto.
43423         * doc/install.texi: Ditto.
43424         * doc/invoke.texi: Ditto.
43426         * auto-profile.c, auto-profile.h: Fix up Copyright line.
43428 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
43430         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
43431         verb tense, etc.
43432         ([-fvtable-verify], [-fvtv-debug]): Likewise.
43433         ([-Wabi]): Likewise.
43434         ([-fmessage-length]): Likewise.
43435         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
43436         ([-Wno-discarded-qualifiers]): Likewise.
43437         ([-Wnodiscarded-array-qualifiers]): Likewise.
43438         ([-Wno-virtual-move-assign]): Likewise.
43439         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
43440         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
43441         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
43442         ([-fsanitize-undefined-trap-on-error]): Likewise.
43443         ([-floop-interchange]): Likewise.
43444         ([-ftree-coalesce-inlined-vars]): Likewise.
43445         ([-fvect-cost-model]): Likewise.
43446         ([-flto]): Likewise.
43447         ([--param]): Likewise.
43448         (Spec Files): Likewise.
43449         ([-mstrict-align]): Likewise.
43450         ([-mfix-cortex-a53-835769]): Likewise.
43451         ([-march], [-mtune]): Likewise.
43452         ([-mpic-register]): Likewise.
43453         ([-munaligned-access]): Likewise.
43454         ([-msp8]): Likewise.
43455         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
43456         (AVR Built-in Macros): Likewise.
43457         ([-mpreferred-stack-boundary]): Likewise.
43458         ([-mtune-crtl]): Likewise.
43459         ([-mashf]): Likewise.
43460         ([-mmcu=]): Likewise.
43461         ([-minrt]): Likewise.
43462         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
43463         ([-mupper-regs]): Likewise.
43464         ([-matomic-model]): Likewise.
43465         ([-mdiv]): Likewise.
43466         ([-mzdcbranch]): Likewise.
43467         ([-mdisable-callt]): Likewise.
43468         ([-msoft-float]): Likewise.
43469         ([-m8byte-align]): Likewise.
43470         ([-fstack-reuse]): Likewise.
43472 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43474         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
43475         Fix markup, light copy-editing.
43476         ([-fauto-profile]): Rewrite to fix formatting and content
43477         problems.
43479 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43481         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
43482         Copy-edit description.
43483         ([-fisolate-erroneous-paths-attribute]): Likewise.
43484         * common.opt (fisolate-erroneous-paths-dereference):
43485         Copy-edit description.
43486         (fisolate-erroneous-paths-attribute): Likewise.
43488 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43490         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
43491         tidy grammar.
43493 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43495         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
43496         ([-fvtv-debug]): Likewise.
43497         ([-Wc++-compat]): Likewise.
43498         ([-Wc++11-compat]): Likewise.
43499         ([-Wc++14-compat]): Likewise.
43500         ([-Wno-sized-deallocation]): Likewise.
43501         ([-femit-class-debug-always]): Likewise.
43502         ([-femit-struct-debug-detailed]): Likewise.
43503         ([-fno-keep-inline-dllexport]): Likewise.
43504         ([-fira-algorithm]): Likewise.
43505         ([-fira-region]): Likewise.
43506         ([-flra-remat]): Likewise.
43507         ([-fipa-ra]): Likewise.
43508         ([-fhoist-adjacent-loads]): Likewise.
43509         ([-fisolate-erroneous-paths-dereference]): Likewise.
43510         ([-fisolate-erroneous-paths-attribute]): Likewise.
43511         ([-ftree-switch-conversion]): Likewise.
43512         ([-ftree-tail-merge]): Likewise.
43513         ([-ftree-loop-if-convert]): Likewise.
43514         ([-ftree-loop-if-convert-stores]): Likewise.
43515         ([-ftree-loop-distribution]): Likewise.
43516         ([-ftree-loop-distribute-patterns]): Likewise.
43517         ([-flto-compression-level]): Likewise.
43518         ([-flto-report]): Likewise.
43519         ([-flto-report-wpa]): Likewise.
43520         ([-fuse-linker-plugin]): Likewise.
43521         ([-mfix-cortex-a53-835769]): Likewise.
43522         ([-mno-fix-cortex-a53-835769]): Likewise.
43523         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
43524         explicit listing; add a note to the discussion indicating they
43525         exist.  Reorder table to group similar options.  Add missing
43526         @opindex entries.  Add @need commands throughout the table to
43527         allow it to be split across multiple pages.
43528         ([-m8bit-idiv]): Fix @opindex.
43529         ([-mavx256-split-unaligned-load]): Likewise.
43530         ([-mavx256-split-unaligned-store]): Likewise.
43531         ([-mstack-protector-guard]): Likewise.
43532         ([-mcpu=]): Likewise.
43533         ([-mcpu]): Likewise.
43534         ([-mpointer-size=]): Likewise.
43536 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
43538         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
43539         instead of `m' constraint.  Likewise for unnamed movb comparison
43540         patterns using reg_before_reload_operand predicate.
43541         * config/pa/predicates.md (reg_before_reload_operand): Tighten
43542         predicate to reject register index and LO_SUM DLT memory forms
43543         after reload.
43545 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
43547         * doc/invoke.texi (Option Summary): Fix spelling of
43548         -fdevirtualize-at-ltrans.
43549         ([-fdevirtualize]): Fix markup.
43550         ([-fdevirtualize-speculatively]): Fix typo.
43551         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
43552         implementor-speaky.
43553         * common.opt (fdevirtualize-at-ltrans): Likewise.
43554         * ipa-devirt.c: Fix typos in comments throughout the file.
43555         (ipa_devirt): Fix typos in format strings for dump output.
43557 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
43559         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
43560         discussion of defaults, light copy-editing.
43562 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43564         * tsan.c (instrument_expr): corrected previous checkin.
43566 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43568         Instrument bit field and unaligned accesses for TSAN.
43569         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
43570         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
43571         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
43572         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
43573         unaligned memory regions.
43575 2015-01-01  Anthony Green  <green@moxielogic.com>
43577         * config/moxie/predicates.md (moxie_general_movsrc_operand):
43578         Restrict move source register offsets to 16 bits.
43580 Copyright (C) 2015 Free Software Foundation, Inc.
43582 Copying and distribution of this file, with or without modification,
43583 are permitted in any medium without royalty provided the copyright
43584 notice and this notice are preserved.