loop splitting
[gcc.git] / gcc / ChangeLog
1 2016-10-20 Michael Matz <matz@suse.de>
2
3 Loop splitting.
4 * common.opt (-fsplit-loops): New flag.
5 * passes.def (pass_loop_split): Add.
6 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
7 (enable_fdo_optimizations): Add loop splitting.
8 * timevar.def (TV_LOOP_SPLIT): Add.
9 * tree-pass.h (make_pass_loop_split): Declare.
10 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
11 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
12 * tree-ssa-loop-split.c: New file.
13 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
14 * doc/invoke.texi (fsplit-loops): Document.
15 * doc/passes.texi (Loop optimization): Add paragraph about loop
16 splitting.
17
18 2016-10-20 Richard Biener <rguenther@suse.de>
19
20 * cgraphunit.c (analyze_functions): Set node->definition to
21 false to signal symbol removal to debug_hooks->late_global_decl.
22 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
23 WPA signal symbol removal to the debuginfo machinery.
24 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
25 using early_finised to guard the we're called for symbol
26 removal case look at the symtabs definition flag.
27 (gen_variable_die): Remove redundant check.
28
29 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30
31 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
32
33 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34
35 PR tree-optimization/53979
36 * match.pd ((a ^ b) | a -> a | b): New pattern.
37
38 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
39
40 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
41 config/pa/pa64-hpux-lib.h.
42 (PA_CRTBEGIN_HACK): Likewise.
43 (DTOR_LIST_BEGIN): Likewise.
44
45 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
46
47 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
48 register only if "in" and "out" are different registers.
49
50 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
51
52 * omp-low.c (pass_oacc_device_lower::gate): New method.
53 (execute): Always call execute_oacc_device_lower.
54
55 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
56
57 PR tree-optimization/77916
58 PR tree-optimization/77937
59 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
60 stopgap fix.
61 (insert_initializers): Requirement of initializer for -1 should be
62 based on pointer-typedness of the candidate basis.
63
64 2016-10-19 Bin Cheng <bin.cheng@arm.com>
65
66 PR tree-optimization/78005
67 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
68 upper (included) bound for niters of prolog loop.
69 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
70 Compute niters of scalar loop above which vectorized loop is
71 preferred, as well as the upper (included) bound for the niters.
72 (vect_do_peeling): Record niter bound for loops accordingly.
73
74 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
75
76 PR lto/77458
77 * tree-core.h (enum tree_index): Put the complex types after their
78 component types.
79 * tree-streamer.c (verify_common_node_recorded): New function.
80 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
81
82 2016-10-19 Martin Liska <mliska@suse.cz>
83
84 * cgraph.h (cgraph_edge::binds_to_current_def_p):
85 Replace NULL with false as a return value.
86
87 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
88
89 PR tree-optimization/78024
90 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
91 don't clear BB_VISITED after processing.
92
93 2016-10-19 Richard Biener <rguenther@suse.de>
94
95 * domwalk.c (dom_walker::walk): Use RPO order.
96
97 2016-10-19 Richard Biener <rguenther@suse.de>
98
99 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
100 stmts_to_remove.
101 (evrp_dom_walker::~evrp_dom_walker): Free it.
102 (evrp_dom_walker::stmts_to_remove): Add.
103 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
104 whose output we fully propagate for removal. Propagate
105 into BB destination PHI arguments.
106 (execute_early_vrp): Remove queued stmts. Dump value ranges
107 before stmt removal.
108
109 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
110
111 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
112 * passes.def: Add two instances of pass_walloca.
113 * tree-pass.h (make_pass_walloca): New.
114 * gimple-ssa-warn-alloca.c: New file.
115 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
116 -Wvla-larger-than= options.
117
118 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
119
120 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
121 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
122
123 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
124
125 * config/rs6000/altivec.h (vec_xl_len): New macro.
126 (vec_xst_len): New macro.
127 (vec_cmpnez): New macro.
128 (vec_cntlz_lsbb): New macro.
129 (vec_cnttz_lsbb): New macro.
130 (vec_xlx): New macro.
131 (vec_xrx): New macro.
132 (vec_all_nez): New C++ predicate template.
133 (vec_any_eqz): New C++ predicate template.
134 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
135 conditional compilation.
136 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
137 conditional compilation.
138 (vec_all_nez): New macro.
139 (vec_any_eqz): New macro.
140 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
141 compilation.
142 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
143 compilation.
144 * config/rs6000/vector.md (VI): Moved this mode iterator
145 definition from altivec.md to vector.md.
146 (UNSPEC_NEZ_P): New value.
147 (vector_ne_<mode>_p): New expansion for implementation of
148 vec_all_ne and vec_any_eq built-in functions.
149 (vector_nez_<mode>_p): New expansion for implementation of
150 vec_all_nez and vec_any_eqz built-in functions.
151 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
152 and vec_any_eq built-in function.
153 (cr6_test_for_zero): New commentary to explain this expansion.
154 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
155 (cr6_test_for_lt): New commentary to explain this expansion.
156 (cr6_test_for_lt_reverse): New commentary to explain this
157 expansion.
158 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
159 overloaded function prototypes for vec_all_ne, vec_all_nez,
160 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
161 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
162 built-in functions.
163 (altivec_resolve_overloaded_builtin): Modify the handling of
164 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
165 the compiler is configured to support TARGET_P9_VECTOR.
166 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
167 to explain the special processing that is given to predicate
168 built-ins introduced using this macro.
169 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
170 the special processing given to predicate built-ins introduced
171 using this macro.
172 (BU_VSX_P): Likewise.
173 (BU_P8V_AV_P): Likewise.
174 (BU_P9V_AV_P): Likewise.
175 (BU_P9V_AV_X): New macro.
176 (BU_P9V_64BIT_AV_X): New macro.
177 (BU_P9V_VSX_3): New macro.
178 (BU_P9V_OVERLOAD_P): New macro.
179 (LXVL): New BU_P9V_64BIT_VSX_2.
180 (VEXTUBLX): New BU_P9V_AV_2.
181 (VEXTUBRX): Likewise.
182 (VEXTUHLX): Likewise.
183 (VEXTUHRX): Likewise.
184 (VEXTUWLX): Likewise.
185 (VEXTUWRX): Likewise.
186 (STXVL): New BU_P9V_64BIT_AV_X.
187 (VCLZLSBB): New BU_P9V_AV_1.
188 (VCTZLSBB): Likewise.
189 (CMPNEB): New BU_P9V_AV_2.
190 (CMPNEH): Likewise.
191 (CMPNEW): Likewise.
192 (CMPNEF): Likewise.
193 (CMPNED): Likewise.
194 (VCMPNEB_P): New BU_P9V_AV_P.
195 (VCMPNEH_P): Likewise.
196 (VCMPNEW_P): Likewise.
197 (VCMPNED_P): Likewise.
198 (VCMPNEFP_P): Likewise.
199 (VCMPNEDP_P): Likewise.
200 (CMPNEZB): New BU_P9V_AV_2.
201 (CMPNEZH): Likewise.
202 (CMPNEZW): Likewise.
203 (VCMPNEZB_P): New BU_P9V_AV_P.
204 (VCMPNEZH_P): Likewise.
205 (VCMPNEZW_P): Likewise.
206 (LXVL): New BU_P9V_OVERLOAD_2.
207 (STXVL): New BU_P9V_OVERLOAD_3.
208 (VEXTULX): New BU_P9V_OVERLOAD_2.
209 (VEXTURX): Likewise.
210 (CMPNEZ): Likewise.
211 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
212 (VCMPNE_P): Likewise.
213 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
214 (VCTZLSBB): Likewise.
215 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
216 comment to explain mode used for scratch register.
217 (altivec_expand_stxvl_builtin): New function.
218 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
219 (altivec_init_builtins): Add initialized variable
220 void_ftype_v16qi_pvoid_long and use this type to define the
221 built-in function __builtin_altivec_stxvl.
222 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
223 (UNSPEC_STXVL): New value.
224 (UNSPEC_VCLZLSBB): New value.
225 (UNSPEC_VCTZLSBB): New value.
226 (UNSPEC_VEXTUBLX): New value.
227 (UNSPEC_VEXTUHLX): New value.
228 (UNSPEC_VEXTUWLX): New value.
229 (UNSPEC_VEXTUBRX): New value.
230 (UNSPEC_VEXTUHRX): New value.
231 (UNSPEC_VEXTUWRX): New value.
232 (UNSPEC_VCMPNEB): New value.
233 (UNSPEC_VCMPNEZB): New value.
234 (UNSPEC_VCMPNEH): New value.
235 (UNSPEC_VCMPNEZH): New value.
236 (UNSPEC_VCMPNEW): New value.
237 (UNSPEC_VCMPNEZW): New value.
238 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
239 vector of integer modes.
240 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
241 vector of float or double modes.
242 (*vector_nez_<mode>_p): New insn for vector test all not equal or
243 zero.
244 (lxvl): New expand for load VSX vector with length.
245 (*lxvl): New insn for load VSX vector with length.
246 (stxvl): New expand for store VSX vector with length.
247 (*stxvl): New insn for store VSX vector with length.
248 (vcmpneb): New insn for vector of byte compare not equal.
249 (vcmpnezb): New insn for vector of byte compare not equal or zero.
250 (vcmpneh): New insn for vector of half word compare not equal.
251 (vcmpnezh): New insn for vector of half word compare not equal or
252 zero.
253 (vcmpnew): New insn for vector of word compare not equal.
254 (vcmpne<VSs>): New insn for vector of float or double compare not
255 equal.
256 (vcmpnezw): New insn for vector of word compare not equal or zero.
257 (vclzlsbb): New insn for vector count leading zero
258 least-significant bits byte.
259 (vctzlsbb): New insn for vector count trailing zero least
260 signficant bits byte.
261 (vextublx): New insn for vector extract unsigned byte left
262 indexed.
263 (vextubrx): New insn for vector extract unsigned byte right
264 indexed.
265 (vextuhlx): New insn for vector extract unsigned half word left
266 indexed.
267 (vextuhrx): New insn for vector extract unsigned half word right
268 indexed.
269 (vextuwlx): New insn for vector extract unsigned word left
270 indexed.
271 (vextuwrx): New insn for vector extract unsigned word right
272 indexed.
273 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
274 clarify intent of this constant.
275 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
276 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
277 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
278 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
279 and vec_xrx functions.
280
281 2016-10-18 Andrew Pinski <apinski@cavium.com>
282
283 PR tree-opt/65950
284 * predict.c (is_exit_with_zero_arg): New function.
285 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
286 as nottaken.
287
288 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
289
290 PR target/77991
291 * config/i386/i386.c (legitimize_tls_address)
292 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
293 convert dest to Pmode if different than Pmode.
294
295 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
296
297 PR tree-optimization/77916
298 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
299 stopgap fix, as pointers with -1 increment are still broken.
300
301 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
302
303 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
304 mapping class decoration from here...
305 (rs6000_xcoff_encode_section): ...to here.
306
307 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
308 if shrink-wrapping and optimizing for speed.
309
310 2016-10-18 Richard Biener <rguenther@suse.de>
311
312 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
313 not visited but non-executable predecessors. Return taken edge.
314 Simplify conditions and refactor propagation vs. folding step.
315
316 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
317
318 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
319 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
320 (rs6000_get_separate_components): Assert we do not have those
321 strategies selected.
322
323 2016-10-18 Richard Biener <rguenther@suse.de>
324
325 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
326 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
327 clearing.
328 (substitute_and_fold_dom_walker): Adjust constructor.
329 (substitute_and_fold_dom_walker::before_dom_children): Remove
330 do_dce flag and handling (always true).
331 (substitute_and_fold): Likewise.
332 * tree-vrp.c (vrp_finalize): Adjust.
333 (execute_early_vrp): Remove final BB_VISITED clearing.
334 * tree-ssa-ccp.c (ccp_finalize): Adjust.
335 * tree-ssa-copy.c (fini_copy_prop): Likewise.
336 * ira.c (ira): Call clear_bb_flags.
337
338 2016-10-18 Richard Biener <rguenther@suse.de>
339
340 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
341 get at the operand to look at with TREE_OPERAND for generic
342 sub-nodes.
343
344 2016-10-18 David Malcolm <dmalcolm@redhat.com>
345
346 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
347 copy_md_ptr_loc.
348 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
349 (write_test_expr): Use rtx_reader_ptr for calls to
350 fprint_c_condition.
351 (write_attr_value): Likewise.
352 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
353 call to print_md_ptr_loc.
354 (write_one_condition): Likewise for calls to print_c_condition.
355 * genconstants.c: Include "statistics.h" and "vec.h".
356 (main): Update for conversion to member functions.
357 * genemit.c (emit_c_code): Use rtx_reader_ptr for
358 call to print_md_ptr_loc.
359 * genenums.c: Include "statistics.h" and "vec.h".
360 (main): Update for conversion of traverse_enum_types to a method.
361 * genmddeps.c: Include "statistics.h" and "vec.h".
362 * genoutput.c (process_template): Use rtx_reader_ptr for call to
363 print_md_ptr_loc.
364 * genpreds.c (write_predicate_subfunction): Likewise.
365 (write_predicate_expr): Likewise for calls to print_c_condition.
366 * genrecog.c (print_test): Likewise.
367 * gensupport.c (process_rtx): Likewise for calls to
368 copy_md_ptr_loc and join_c_conditions.
369 (alter_test_for_insn): Likewise for call to join_c_conditions.
370 (process_substs_on_one_elem): Likewise.
371 (gen_mnemonic_setattr): Update for move of string_obstack to a
372 field of rtx_reader.
373 (mnemonic_htab_callback): Likewise. Fix formatting.
374 (gen_mnemonic_attr): Likewise.
375 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
376 to print_c_condition.
377 * read-md.c: Include "statistics.h" and "vec.h".
378 (string_obstack): Convert this global to field "m_string_obstack"
379 of class rtx_reader.
380 (ptr_locs): Likewise, as "m_ptr_locs".
381 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
382 (joined_conditions): Likewise, as "m_joined_conditions".
383 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
384 (md_constants): Likewise, as "m_md_constants".
385 (enum_types): Likewise, as "m_enum_types".
386 (set_md_ptr_loc): Convert to...
387 (rtx_reader::set_md_ptr_loc): ...member function.
388 (get_md_ptr_loc): Convert to...
389 (rtx_reader::get_md_ptr_loc): ...member function.
390 (copy_md_ptr_loc): Convert to...
391 (rtx_reader::copy_md_ptr_loc): ...member function.
392 (fprint_md_ptr_loc): Convert to...
393 (rtx_reader::fprint_md_ptr_loc): ...member function.
394 (print_md_ptr_loc): Convert to...
395 (rtx_reader::print_md_ptr_loc): ...member function.
396 (join_c_conditions): Convert to...
397 (rtx_reader::join_c_conditions): ...member function.
398 (fprint_c_condition): Convert to...
399 (rtx_reader::fprint_c_condition): ...member function.
400 (print_c_condition): Convert to...
401 (rtx_reader::print_c_condition): ...member function.
402 (read_name): Convert to...
403 (rtx_reader::read_name): ...member function.
404 (read_escape): Convert to...
405 (rtx_reader::read_escape): ...member function.
406 (read_quoted_string): Convert to...
407 (rtx_reader::read_quoted_string): ...member function.
408 (read_braced_string): Convert to...
409 (rtx_reader::read_braced_string): ...member function.
410 (read_string): Convert to...
411 (rtx_reader::read_string): ...member function.
412 (read_skip_construct): Convert to...
413 (rtx_reader::read_skip_construct): ...member function.
414 (handle_constants): Convert to...
415 (rtx_reader::handle_constants): ...member function.
416 (traverse_md_constants): Convert to...
417 (rtx_reader::traverse_md_constants): ...member function.
418 (handle_enum): Convert to...
419 (rtx_reader::handle_enum): ...member function.
420 (lookup_enum_type): Convert to...
421 (rtx_reader::lookup_enum_type): ...member function.
422 (traverse_enum_types): Convert to...
423 (rtx_reader::traverse_enum_types): ...member function.
424 (rtx_reader::rtx_reader): Move initializations
425 of various former global data from rtx_reader::read_md_files to
426 here, as fields, along with the call to unlock_std_streams.
427 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
428 the new fields.
429 (rtx_reader::read_md_files): Move initializations of various
430 global data from here to the ctor.
431 * read-md.h (read_name): Convert to...
432 (rtx_reader::read_name): ...member function.
433 (rtx_reader::read_escape): New method decl.
434 (read_quoted_string): Convert to...
435 (rtx_reader::read_quoted_string): ...member function.
436 (rtx_reader::read_braced_string): New method decl.
437 (read_string): Convert to...
438 (rtx_reader::read_string): ...member function.
439 (rtx_reader::read_skip_construct): New method decl.
440 (rtx_reader::set_md_ptr_loc): New method decl.
441 (rtx_reader::get_md_ptr_loc): New method decl.
442 (copy_md_ptr_loc): Convert to...
443 (rtx_reader::copy_md_ptr_loc): ...member function.
444 (fprint_md_ptr_loc): Convert to...
445 (rtx_reader::fprint_md_ptr_loc): ...member function.
446 (print_md_ptr_loc): Convert to...
447 (rtx_reader::print_md_ptr_loc): ...member function.
448 (rtx_reader::lookup_enum_type): New method decl.
449 (rtx_reader::traverse_enum_types): New method decl.
450 (rtx_reader::handle_constants): New method decl.
451 (traverse_md_constants): Convert to...
452 (rtx_reader::traverse_md_constants): ...member function.
453 (rtx_reader::handle_enum): New method decl.
454 (rtx_reader::join_c_conditions): New method decl.
455 (fprint_c_condition): Convert to...
456 (rtx_reader::fprint_c_condition): ...member function.
457 (print_c_condition): Convert to...
458 (rtx_reader::print_c_condition): ...member function.
459 (rtx_reader::apply_iterator_to_string): New method decl.
460 (rtx_reader::copy_rtx_for_iterators): New method decl.
461 (rtx_reader::read_conditions): New method decl.
462 (rtx_reader::record_potential_iterator_use): New method decl.
463 (rtx_reader::read_mapping): New method decl.
464 (rtx_reader::read_rtx): New method decl.
465 (rtx_reader::read_rtx_code): New method decl.
466 (rtx_reader::read_rtx_operand): New method decl.
467 (rtx_reader::read_nested_rtx): New method decl.
468 (rtx_reader::read_rtx_variadic): New method decl.
469 (rtx_reader::get_string_obstack): New method.
470 (rtx_reader::get_md_constants): New method.
471 (string_obstack): Convert global variable decl to...
472 (rtx_reader::m_string_obstack): ...this new field.
473 (rtx_reader::m_ptr_locs): New field.
474 (rtx_reader::m_ptr_loc_obstack): New field.
475 (rtx_reader::m_joined_conditions): New field.
476 (rtx_reader::m_joined_conditions_obstack): New field.
477 (rtx_reader::m_md_constants): New field.
478 (rtx_reader::m_enum_types): New field.
479 * read-rtl.c (apply_iterator_to_string): Convert to...
480 (rtx_reader::apply_iterator_to_string): ...member function.
481 (copy_rtx_for_iterators): Convert to...
482 (rtx_reader::copy_rtx_for_iterators): ...member function.
483 (add_condition_to_string): Use rtx_reader_ptr for
484 calls join_c_conditions.
485 (apply_iterators): Use rtx_reader_ptr for calls to
486 join_c_conditions and copy_rtx_for_iterators.
487 (read_conditions): Convert to...
488 (rtx_reader::read_conditions): ...member function.
489 (record_potential_iterator_use): Convert to...
490 (rtx_reader::record_potential_iterator_use): ...member function.
491 (read_mapping): Convert to...
492 (rtx_reader::read_mapping): ...member function.
493 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
494 (read_rtx): Convert to...
495 (rtx_reader::read_rtx): ...member function.
496 (read_rtx_code): Convert to...
497 (rtx_reader::read_rtx_code): ...member function.
498 (read_rtx_operand): Convert to...
499 (rtx_reader::read_rtx_operand): ...member function. Update for move
500 of string_obstack to a field.
501 (read_nested_rtx): Convert to..
502 (rtx_reader::read_nested_rtx): ...member function.
503 (read_rtx_variadic): Convert to..
504 (rtx_reader::read_rtx_variadic): ...member function.
505
506 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
507
508 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
509
510 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
511
512 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
513 for pointer type too.
514 (ipcp_update_vr): set_ptr_nonnull for pointer.
515
516 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
517
518 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
519 pt_solution_singleton_p.
520 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
521 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
522 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
523 pointer nonnull computed by VRP.
524 Also Conservatively set pt.null to 1.
525 (pt_solution_reset): Conservatively set pt.null to 1.
526 (pt_solution_singleton_or_null_p): Renamed from
527 pt_solution_singleton_p.
528 * tree-ssanames.h (set_ptr_nonnull): Declare.
529 (get_ptr_nonnull): Likewise.
530 * tree-ssanames.c (set_ptr_nonnull): New.
531 (get_ptr_nonnull): Likewise.
532 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
533 (evrp_dom_walker::before_dom_children): Likewise.
534
535 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
536
537 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
538 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
539 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
540 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
541 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
542 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
543 (rs6000_option_override_internal): Clear it if ABI_AIX.
544 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
545 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
546
547 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
548
549 * gimple-ssa-strength-reduction.c (record_increment): Remove
550 garbage comment.
551
552 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
553
554 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
555 that the result is non-zero if it is true.
556 (maybe_expand_shift): New wrapper around expand_shift_1.
557 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
558
559 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
560
561 PR tree-optimization/77916
562 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
563 Don't allow a MINUS_EXPR for pointer arithmetic for either known
564 or unknown strides.
565 (record_increment): Increments of -1 for unknown strides just use
566 a multiply initializer like other negative values.
567 (analyze_increments): Remove stopgap solution for -1 increment
568 applied to pointer arithmetic.
569
570 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
571
572 * dominance.c (dom_info::dom_info): Add new constructor for region
573 which is vector of basic blocks.
574 (dom_init): New method to initialize members common for both
575 constructors.
576 (dom_info::dom_info): Invoke dom_init for partial initialization.
577 (dom_info::get_idom): Add check to corner cases on basic blocks which
578 are not in region.
579 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
580 to detect unreachable bbs.
581 (dom_info::calc_idoms): Likewise.
582 (compute_dom_fast_query_in_region): New function.
583 (calculate_dominance_info_for_region): Likewise.
584 (free_dominance_info_for_region): Likewise.
585 * dominance.h: Add prototypes for introduced region-based functions
586 tree-if-conv.c: (build_region): New function.
587 (if_convertible_loop_p_1): Invoke local version of post-dominators
588 calculation before basic block predication with subsequent freeing
589 post-dominator info.
590 (tree_if_conversion): Remove free of post-dominator info
591 (pass_if_conversion::execute): Delete detection of infinite loops
592 and fake edges to exit block since post-dominator calculation is
593 performed per if-converted loop only.
594
595 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
596
597 PR target/77308
598 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
599 register explicitly.
600 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
601 optimizing for size.
602
603 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
604
605 * config/aarch64/aarch64.c: Delete inclusion of
606 cortex-a57-fma-steering.h.
607 (aarch64_override_options): Delete call
608 to aarch64_register_fma_steering.
609 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
610 * config/aarch64/cortex-a57-fma-steering.h: Delete.
611 * config/aarch64/aarch64-passes.def: New file.
612 * config/aarch64/cortex-a57-fma-steering.c
613 (aarch64_register_fma_steering): Delete definition.
614 (make_pass_fma_steering): Remove static qualifier.
615 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
616 (cortex-a57-fma-steering.o): Remove dependency on
617 cortex-a57-fma-steering.h.
618
619 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
620
621 * explow.c (validize_mem): Do not modify the argument in-place.
622
623 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
624
625 * tree-streamer.c (record_common_node): Explicitly list expected
626 tree codes.
627
628 2016-10-17 Richard Biener <rguenther@suse.de>
629
630 PR tree-optimization/77988
631 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
632
633 2016-10-17 Marek Polacek <polacek@redhat.com>
634
635 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
636
637 2016-10-17 Richard Biener <rguenther@suse.de>
638
639 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
640 before using it.
641
642 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
643
644 PR tree-optimization/71636
645 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
646
647 2016-10-17 Richard Biener <rguenther@suse.de>
648
649 * gimplify.c (gimplify_function_tree): Do not move the outer
650 binds block.
651
652 2016-10-17 Jakub Jelinek <jakub@redhat.com>
653
654 * langhooks.h (struct lang_hooks_for_decls): Remove
655 function_decl_explicit_p, function_decl_deleted_p and
656 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
657 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
658 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
659 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
660 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
661 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
662 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
663 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
664 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
665 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
666 * langhooks.c (lhd_decl_dwarf_attribute): New function.
667 * dwarf2out.c (gen_subprogram_die): Use
668 lang_hooks.decls.decl_dwarf_attribute instead of
669 lang_hooks.decls.function_decl_*.
670
671 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
672
673 PR ada/37139
674 PR ada/67205
675 * common.opt (-ftrampolines): New option.
676 * doc/invoke.texi (Code Gen Options): Document it.
677 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
678 * doc/tm.texi: Regenerate.
679 * builtins.def: Add init_descriptor and adjust_descriptor.
680 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
681 on platforms with descriptors.
682 (expand_builtin_init_descriptor): New function.
683 (expand_builtin_adjust_descriptor): Likewise.
684 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
685 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
686 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
687 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
688 Set STATIC_CHAIN_REG_P on the static chain register, if any.
689 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
690 (expand_call): Likewise. Move around call to prepare_call_address
691 and pass all flags to it.
692 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
693 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
694 (gimple_call_set_by_descriptor): New setter.
695 (gimple_call_by_descriptor_p): New getter.
696 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
697 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
698 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
699 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
700 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
701 * rtl.h (STATIC_CHAIN_REG_P): New macro.
702 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
703 * target.def (custom_function_descriptors): New POD hook.
704 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
705 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
706 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
707 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
708 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
709 (build_common_builtin_nodes): Initialize init_descriptor and
710 adjust_descriptor.
711 * tree-nested.c: Include target.h.
712 (struct nesting_info): Add 'any_descr_created' field.
713 (get_descriptor_type): New function.
714 (lookup_element_for_decl): New function extracted from...
715 (create_field_for_decl): Likewise.
716 (lookup_tramp_for_decl): ...here. Adjust.
717 (lookup_descr_for_decl): New function.
718 (convert_tramp_reference_op): Deal with descriptors.
719 (build_init_call_stmt): New function extracted from...
720 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
721 * defaults.h (FUNCTION_ALIGNMENT): Define.
722 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
723 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
724 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
725 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
726 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
727
728 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
729
730 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
731 constants in CONST_VECTORs.
732
733 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
734
735 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
736 register as destination of bmask.
737 (vector_init_bshuffle): Likewise.
738 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
739 (bmaskdi_vis): Enable only in 64-bit mode.
740
741 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
742
743 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
744 make LR a separately shrink-wrapped component unless savres_strategy
745 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
746 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
747 wrapping when not both {SAVE,REST}_INLINE_GPRS.
748
749 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
750
751 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
752 and keep looping on failure.
753
754 2016-10-14 David Malcolm <dmalcolm@redhat.com>
755
756 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
757 set.
758 (print_rtx_function): Update example in comment for...
759 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
760 non-virtual pseudos with a '%' sigil followed by the regno, offset
761 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
762 pseudo is dumped as "%0".
763
764 2016-10-14 Jakub Jelinek <jakub@redhat.com>
765
766 PR middle-end/77959
767 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
768 return a MEM.
769
770 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
771
772 * config/sparc/sparc-passes.def: New file.
773 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
774 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
775 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
776
777 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
778
779 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
780 loop peel to loops with exit test at the beginning.
781
782 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
783
784 PR rtl-optimization/68212
785 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
786 frequency when computing scale factor for peeled copies.
787 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
788 values for switch/peel blocks/edges.
789
790 2016-10-14 Pedro Alves <palves@redhat.com>
791
792 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
793
794 2016-10-14 Catherine Moore <clm@codesourcery.com>
795
796 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
797 micromips_globals to zero.
798
799 2016-10-14 Richard Biener <rguenther@suse.de>
800
801 PR tree-optimization/77979
802 * tree-vrp.c (compare_name_with_value): Handle released SSA names
803 in the equivalency sets.
804 (compare_names): Likewise.
805
806 2016-10-14 Martin Liska <mliska@suse.cz>
807
808 * builtins.h(target_char_cst_p): Declare the function.
809 * builtins.c (fold_builtin_memchr): Remove.
810 (target_char_cst_p): Move the function from gimple-fold.c.
811 (fold_builtin_3): Do not call the function.
812 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
813 (gimple_fold_builtin): Call the function.
814 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
815
816 2016-10-14 Martin Liska <mliska@suse.cz>
817
818 * builtins.c (fold_builtin_strcmp): Remove function.
819 (fold_builtin_strncmp): Likewise.
820 (fold_builtin_2): Remove call of the function.
821 (fold_builtin_3): Likewise.
822 * fold-const-call.c (fold_const_call): Add constant folding
823 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
824 * fold-const-call.h (build_cmp_result): Declare the function.
825 * gimple-fold.c (gimple_load_first_char): New function.
826 (gimple_fold_builtin_string_compare): Likewise.
827 (gimple_fold_builtin): Call the function.
828
829 2016-10-14 Nathan Sidwell <nathan@acm.org>
830
831 * gcov-io.c (gcov_open): Deconstify 'mode'.
832
833 2016-10-14 Martin Liska <mliska@suse.cz>
834
835 * fold-const.c (c_getstr): Support of properly \0-terminated
836 string constants. New argument is added.
837 * fold-const.h: New argument is added.
838
839 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
840
841 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
842 New function.
843 (aarch64_print_hint_for_core): Likewise.
844 (aarch64_print_hint_for_arch): Likewise.
845 (aarch64_validate_march): Use it. Fix indentation in type signature.
846 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
847 (aarch64_validate_mtune): Likewise.
848 (aarch64_handle_attr_arch): Likewise.
849 (aarch64_handle_attr_cpu): Likewise.
850 (aarch64_handle_attr_tune): Likewise.
851
852 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
853
854 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
855 and udivmod_optab.
856
857 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
858
859 * config/m68k/m68k.c (m68k_option_override): Check
860 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
861 instead of stack_limit_rtx.
862
863 2016-10-13 Jakub Jelinek <jakub@redhat.com>
864
865 * dwarf2out.c (gen_member_die): Handle inline static data member
866 definitions.
867
868 2016-10-13 Nathan Sidwell <nathan@acm.org>
869
870 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
871 gcov_var.mode. Remove unnecessary fstat.
872
873 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
874
875 PR bootstrap/77962
876 * function.c (thread_prologue_and_epilogue_insns): Call all
877 make_*logue_seq in the same order as traditional. Call them
878 all a second time if shrink_wrapped_separate.
879
880 2016-10-13 Marek Polacek <polacek@redhat.com>
881
882 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
883 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
884 use -Wno-error.
885
886 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
887
888 PR tree-optimization/77937
889 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
890 to infinite when we have a pointer with an increment of -1.
891
892 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
893
894 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
895 into ...
896 * memmodel.h: This file.
897 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
898 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
899 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
900 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
901 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
902 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
903 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
904 compare-elim.c, config/aarch64/aarch64-builtins.c,
905 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
906 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
907 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
908 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
909 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
910 config/darwin.c, config/epiphany/epiphany.c,
911 config/epiphany/mode-switch-use.c,
912 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
913 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
914 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
915 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
916 config/m68k/m68k.c, config/mcore/mcore.c,
917 config/microblaze/microblaze.c, config/mmix/mmix.c,
918 config/mn10300/mn10300.c, config/moxie/moxie.c,
919 config/msp430/msp430.c, config/nds32/nds32-cost.c,
920 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
921 config/nds32/nds32-memory-manipulation.c,
922 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
923 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
924 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
925 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
926 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
927 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
928 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
929 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
930 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
931 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
932 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
933 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
934 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
935 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
936 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
937 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
938 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
939 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
940 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
941 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
942 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
943 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
944 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
945 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
946 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
947 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
948 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
949 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
950 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
951 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
952 var-tracking.c, varasm.c: Include memmodel.h.
953 * genattrtab.c (write_header): Include memmodel.h in generated file.
954 * genautomata.c (main): Likewise.
955 * gengtype.c (open_base_files): Likewise.
956 * genopinit.c (main): Likewise.
957 * genconditions.c (write_header): Include memmodel.h earlier in
958 generated file.
959 * genemit.c (main): Likewise.
960 * genoutput.c (output_prologue): Likewise.
961 * genpeep.c (main): Likewise.
962 * genpreds.c (write_insn_preds_c): Likewise.
963 * genrecog.c (write_header): Likewise.
964 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
965
966 2016-10-13 David Malcolm <dmalcolm@redhat.com>
967
968 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
969 for new "compact" param of print_rtx_function. Check for "cinsn"
970 rather than "insn".
971 * print-rtl-function.c (flag_compact): New decl.
972 (print_rtx_function): Add param "compact" and use it to set
973 flag_compact, adding a description of the effect to the leading
974 comment, and updating the example output.
975 * print-rtl.c (flag_compact): New variable.
976 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
977 mode.
978 (print_rtx_operand_code_i): When printing source locations, wrap
979 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
980 (print_rtx_operand_code_r): Don't print regnos for hard regs and
981 virtuals in compact mode.
982 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
983 apart from in LABEL_REFs.
984 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
985 Don't print basic block ids in compact mode.
986 (print_rtx): In compact mode, prefix the code of insns with "c",
987 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
988 * print-rtl.h (print_rtx_function): Add "compact" param.
989
990 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
991
992 * arm.h (TARGET_VFP): Delete.
993 (TARGET_VFPD32): Remove references to TARGET_VFP.
994 (TARGET_VFP3, TARGET_VFP5): Likewise.
995 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
996 (TARGET_NEON_FP16): Likewise.
997 (TARGET_FMA): Likewise.
998 (TARGET_CRYPTO): Likewise.
999 (TARGET_NEON): Likewise.
1000 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1001 (FUNCTION_ARG_REGNO_P): Likewise.
1002 * arm.c (arm_option_check_internal): Likewise.
1003 (arm_option_override): Likewise.
1004 (use_return_insn): Likewise.
1005 (arm_function_value_regno_p): Likewise.
1006 (arm_apply_result_size): Likewise.
1007 (use_vfp_abi): Likewise.
1008 (arm_legitimate_address_outer_p): Likewise.
1009 (thumb2_legitimate_address_p): Likewise.
1010 (arm_legitimate_index_p): Likewise.
1011 (thumb2_legitimate_index_p): Likewise.
1012 (arm_legitimate_address): Likewise.
1013 (arm_get_vfp_saved_size): Likewise.
1014 (arm_emit_vfp_multi_reg_pop): Likewise.
1015 (arm_get_frame_offsets): Likewise.
1016 (arm_save_coproc_regs): Likewise.
1017 (arm_hard_regno_mode_ok): Likewise.
1018 (arm_expand_epilogue_apcs_frame): Likewise.
1019 (arm_expand_epilogue): Likewise.
1020 (arm_file_start): Likewise.
1021 (arm_conditional_register_usage): Likewise.
1022 (arm_validize_comparison): Use vfp_compare_operand directly.
1023 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
1024 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
1025 unsupported usage.
1026 (arm_atomic_assign_expand_fenv): Likewise.
1027 * arm.md (divsf3): Likewise.
1028 (arm_negsi2): Likewise.
1029 (absdf2): Likewise.
1030 (arm_movdi): Likewise.
1031 (arm_movt): Likewise.
1032 (cbranchsf4): Change predicate to vfp_compare_operand.
1033 (cbranchdf4): Change predicate to vfp_compare_operand.
1034 (cstorehf4): Change predicate to vfp_compare_operand.
1035 (cstoresf4): Change predicate to vfp_compare_operand.
1036 (cstoredf4): Change predicate to vfp_compare_operand.
1037 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
1038 (movhi_insn_arch4, movhi_bytes): Likewise.
1039 * constraints.md (Dt): Likewise.
1040 (Dp): Likewise.
1041 * iterators.md (SDF): Likewise.
1042 * predicates.md (arm_float_compare_operand): Delete.
1043 (const_double_vcvt_power_of_two_reciprocal): Remove references to
1044 TARGET_VFP.
1045 (const_double_vcvt_power_of_two): Likewise.
1046 * thumb2.md thumb2_movsi_insn): Likewise.
1047 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
1048 (movhf_vfp): Likewise.
1049 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
1050 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
1051 (movsf_vfp, thumb2_movsf_vfp): Likewise.
1052 (movdf_vfp, thumb2_movdf_vfp): Likewise.
1053 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
1054 (subsf3_vfp, divsf3_vfp): Likewise.
1055 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
1056 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
1057 (mulsf3negsfsubsf_vfp): Likewise.
1058 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
1059 (floatunssisf2, sqrtsf2_vfp): Likewise.
1060 (movcc_vfp): Likewise.
1061 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
1062 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
1063 (push_multi_vfp): Likewise.
1064 (set_fpscr, get_fpscr): Likewise.
1065 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
1066
1067 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
1068
1069 * arm.h (TARGET_VFP): Unconditionally define to 1.
1070 (arm_fpu_desc): Remove 'model' field.
1071 (TARGET_FPU_MODEL): Delete.
1072 * arm.c (all_fpus): Don't initialize the model field.
1073 (arm_can_inline_p): Don't check the FPU model.
1074 * arm-fpus.def: Remove redundant model field from all FPU
1075 descriptions.
1076
1077 2016-10-13 Richard Biener <rguenther@suse.de>
1078
1079 PR middle-end/77826
1080 * genmatch.c (struct capture): Add value_match member.
1081 (commutate): Preserve value_match.
1082 (lower_opt_convert): Likewise.
1083 (lower_cond): Likewise.
1084 (replace_id): Likewise.
1085 (struct dt_operand): Add value_match member.
1086 (decision_tree::cmp_node): Compare it.
1087 (decision_tree::insert_operand): Honor it when finding and
1088 when appending a DT_MATCH.
1089 (dt_operand::gen_match_op): Generate a type check after
1090 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
1091 (parser::get_internal_capture_id): New helper.
1092 (parser::finish_match_operand): New function lowering @@<id>.
1093 (parser::parse_capture): Parse @@<id> as value-match.
1094 (parser::parse_expr): Use get_internal_capture_id.
1095 (parser::parse_simplify): Call finish_match_operand.
1096 (walk_captures): New helper.
1097 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
1098 of operand_equal_p.
1099 ((X /[ex] A) * A -> X): Likewise.
1100 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
1101 convert[12] and value-matching.
1102 ((A | B) & (A | C) -> A | (B & C)): Likewise.
1103 ((X | Y) | Y -> X | Y): Likewise.
1104 ((X ^ Y) ^ Y -> X): Likewise.
1105 (A - (A & B) -> ~B & A): Likewise.
1106 ((T)(P + A) - (T)P -> (T) A): Likewise.
1107 ((T)P - (T)(P + A) -> -(T) A): Likewise.
1108 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
1109 * doc/match-and-simplify.texi: Amend capture section.
1110
1111 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1112
1113 * config/arc/arc.md (umul_600): Remove predicated variant.
1114 (umul64_600): Likewise.
1115
1116 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1117
1118 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
1119
1120 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1121
1122 * tree-vect-loop.c (loop_niters_no_overflow): New func.
1123 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
1124 no-overflow information to vect_do_peeling_for_loop_bound and
1125 vect_gen_vector_loop_niters.
1126
1127 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1128
1129 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
1130 iterates 1 time.
1131
1132 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1133
1134 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
1135 adjust_vec automatically.
1136 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
1137 param exit_bb to guard_to.
1138 (slpeel_checking_verify_cfg_after_peeling):
1139 (set_prologue_iterations):
1140 (create_lcssa_for_virtual_phi): New func which is factored out from
1141 slpeel_tree_peel_loop_to_edge.
1142 (slpeel_tree_peel_loop_to_edge):
1143 (iv_phi_p): New func.
1144 (vect_can_advance_ivs_p): Call iv_phi_p.
1145 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
1146 new gimple stmts in basic block.
1147 (vect_gen_niters_for_prolog_loop): Rename to...
1148 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
1149 adjust implementation.
1150 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
1151 sizetype if necessary.
1152 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
1153 it to external function.
1154 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
1155 (vect_gen_vector_loop_niters_mult_vf): New.
1156 (slpeel_update_phi_nodes_for_loops): New.
1157 (slpeel_update_phi_nodes_for_guard1): Reimplement.
1158 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
1159 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
1160 * tree-vect-loop.c (vect_build_loop_niters): Move to file
1161 tree-vect-loop-manip.c
1162 (vect_generate_tmps_on_preheader): Delete.
1163 (vect_transform_loop): Rename vectorization_factor to vf. Call
1164 vect_do_peeling instead of vect_do_peeling-* functions.
1165 * tree-vectorizer.h (vect_do_peeling): New decl.
1166 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
1167 (vect_do_peeling_for_loop_bound): Delete.
1168 (vect_do_peeling_for_alignment): Delete.
1169
1170 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1171
1172 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
1173 duplicated loop after its preheader and after the original loop.
1174
1175 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1176
1177 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
1178 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
1179
1180 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1181
1182 * tree-vect-loop.c (vectorizable_live_operation): Support handling
1183 for live variable outside loop but not in lcssa form.
1184
1185 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1186
1187 * cfg.c (reset_original_copy_tables): New func.
1188 * cfg.h (reset_original_copy_tables): New decl.
1189
1190 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1191
1192 PR c/77946
1193 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
1194 public_flag.
1195 * varasm.c (default_binds_local_p_3): Formatting fix.
1196
1197 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1198
1199 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
1200 style issue.
1201 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1202 Remove useless code.
1203
1204 2016-10-13 Martin Liska <mliska@suse.cz>
1205
1206 PR tree-optimization/77943
1207 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1208 a different EH landing pads.
1209
1210 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1211
1212 PR target/77957
1213 * hooks.h (hook_tree_void_null): Declare.
1214 * hooks.c (hook_tree_void_null): New function.
1215 * langhooks.c (lhd_return_null_tree_v): Remove.
1216 * langhooks-def.h (lhd_return_null_tree_v): Remove.
1217 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
1218 set y to const0_rtx.
1219 * function.c (stack_protect_epilogue): Likewise.
1220 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
1221 if TARGET_THREAD_SSP_OFFSET is defined.
1222 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1223 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1224 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1225 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1226 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1227 (ix86_stack_protect_guard): New function.
1228
1229 2016-10-13 Richard Biener <rguenther@suse.de>
1230
1231 * dwarf2out.c (tree_add_const_value_attribute): Do not try
1232 rtl_for_decl_init during early phase.
1233 (gen_variable_die): Do not create locations during early phase.
1234 (gen_label_die): Likewise.
1235 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
1236 twice.
1237
1238 2016-10-12 Richard Biener <rguenther@suse.de>
1239
1240 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
1241 try_add_new_range and made to eturn new range.
1242 (evrp_dom_walker::before_dom_children): Push op1 value range before
1243 pushing op0 value range.
1244
1245 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1246
1247 PR tree-optimization/77937
1248 * gimple-ssa-strength-reduction.c (analyze_increments): Use
1249 POINTER_TYPE_P on the candidate type to determine whether
1250 candidates in this chain require pointer arithmetic.
1251
1252 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
1253
1254 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
1255 correction if the type is smaller than a word.
1256 (visium_select_cc_mode): Add ... fall through ... comment.
1257
1258 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1259
1260 * config/rs6000/rs6000.c (machine_function): Add new fields
1261 gpr_is_wrapped_separately and lr_is_wrapped_separately.
1262 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1263 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1264 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1265 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1266 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1267 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1268 (rs6000_get_separate_components): New function.
1269 (rs6000_components_for_bb): New function.
1270 (rs6000_disqualify_components): New function.
1271 (rs6000_emit_prologue_components): New function.
1272 (rs6000_emit_epilogue_components): New function.
1273 (rs6000_set_handled_components): New function.
1274 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
1275 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
1276 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
1277 (rs6000_emit_epilogue): Don't emit GPR restores if
1278 gpr_is_wrapped_separately for that register. Don't make a
1279 REG_CFA_RESTORE note for registers we did not restore, either.
1280
1281 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1282
1283 * function.c (thread_prologue_and_epilogue_insns): Call
1284 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
1285 if it has possibly changed. Compute the split_prologue_seq and
1286 epilogue_seq later, too.
1287 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
1288 (dump_components): New function.
1289 (struct sw): New struct.
1290 (SW): New function.
1291 (init_separate_shrink_wrap): New function.
1292 (fini_separate_shrink_wrap): New function.
1293 (place_prologue_for_one_component): New function.
1294 (spread_components): New function.
1295 (disqualify_problematic_components): New function.
1296 (emit_common_heads_for_components): New function.
1297 (emit_common_tails_for_components): New function.
1298 (insert_prologue_epilogue_for_components): New function.
1299 (try_shrink_wrapping_separate): New function.
1300 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
1301
1302 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1303
1304 * regrename.c (build_def_use): Invalidate chains that have a
1305 REG_CFA_RESTORE on some instruction.
1306
1307 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1308
1309 * dce.c (delete_unmarked_insns): Don't delete instructions with
1310 a REG_CFA_RESTORE note.
1311
1312 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1313
1314 * common.opt (-fshrink-wrap-separate): New flag.
1315 * doc/invoke.texi: Document it.
1316 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
1317 * doc/tm.texi: Regenerate.
1318 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
1319 * target.def (shrink_wrap): New hook vector.
1320 (get_separate_components, components_for_bb, disqualify_components,
1321 emit_prologue_components, emit_epilogue_components,
1322 set_handled_components): New hooks.
1323
1324 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1325
1326 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
1327 vector return by reference only if -Wpsabi.
1328 (rs6000_pass_by_reference): Similarly, for argument passing.
1329
1330 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1331
1332 * function-tests.c: Include "print-rtl.h".
1333 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
1334 function, and verify what is dumped.
1335 * print-rtl-function.c (print_edge): New function.
1336 (begin_any_block): New function.
1337 (end_any_block): New function.
1338 (can_have_basic_block_p): New function.
1339 (print_rtx_function): Track the basic blocks of insns in the
1340 chain, wrapping those that are within blocks within "(block)"
1341 directives. Remove the "(cfg)" directive.
1342
1343 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1344
1345 * selftest.c (selftest::read_file): New function.
1346 (selftest::test_read_file): New function.
1347 (selftest::selftest_c_tests): Call test_read_file.
1348 * selftest.h (selftest::read_file): New decl.
1349
1350 2016-10-12 Richard Biener <rguenther@suse.de>
1351
1352 PR debug/77947
1353 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
1354 function context.
1355
1356 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
1357
1358 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
1359
1360 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
1361 dwarf2out_assembly_start.
1362
1363 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
1364
1365 * Makefile.in (SELFTEST_FLAGS): New variable.
1366 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
1367
1368 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
1369 early_finish hook.
1370
1371 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
1372
1373 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
1374 dumped in RTL dumps.
1375
1376 2016-10-12 Martin Liska <mliska@suse.cz>
1377
1378 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
1379 (gimple_fold_builtin_memory_op): Use the function.
1380 (gimple_fold_builtin_strchr): Likewise.
1381 (gimple_fold_builtin_strcat): Likewise.
1382 (gimple_build): Likewise.
1383
1384 2016-10-12 Nathan Sidwell <nathan@acm.org>
1385
1386 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
1387
1388 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1389
1390 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
1391 equivalent 32-bit constant (modulo 2**32) when that yields
1392 smaller instructions.
1393 (size_of_int_loc_descriptor): Update accordingly.
1394
1395 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1396
1397 * dwarf2out.c (dwarf2out_early_global_decl): For nested
1398 functions, call dwarf2out_decl on the parent function first.
1399
1400 2016-10-12 Richard Biener <rguenther@suse.de>
1401
1402 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
1403 on the conversion.
1404
1405 2016-10-12 Richard Biener <rguenther@suse.de>
1406
1407 * tree-ssa-propagate.c
1408 (substitute_and_fold_dom_walker::before_dom_children): Do not
1409 ignore ASSERT_EXPRs but only preserve them.
1410 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
1411 that have been propagated into.
1412 (vrp_finalize): Enable DCE for substitute_and_fold.
1413
1414 2016-10-12 Richard Biener <rguenther@suse.de>
1415
1416 PR tree-optimization/77920
1417 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
1418 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
1419 (simplify_abs_using_ranges): Likewise.
1420 (simplify_conversion_using_ranges): Likewise.
1421 (simplify_stmt_using_ranges): Adjust.
1422
1423 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1424
1425 PR tree-optimization/77929
1426 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
1427 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
1428
1429 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1430
1431 PR target/77934
1432 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
1433 needs a base register for arg 1.
1434
1435 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1436
1437 * common.opt (Wimplicit-fallthrough) Turn into alias to
1438 -Wimplicit-fallthrough=3. Remove EnabledBy.
1439 (Wimplicit-fallthrough=): New option.
1440 * gimplify.c (warn_implicit_fallthrough_r): Use
1441 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
1442 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
1443 to -Wimplicit-fallthrough=3.
1444 (-Wimplicit-fallthrough=): Document.
1445
1446 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1447
1448 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
1449 and GEU in DImode if TARGET_SUBXC.
1450 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
1451 (seqdi<W:mode>_zero_subxc): Delete.
1452 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
1453 (neg_seqdi<W:mode>_zero_vis3): Delete.
1454 (plus_seqdi<W:mode>_zero): Likewise.
1455 (minus_seqdi<W:mode>_zero): Likewise.
1456 (plus_plus_sltu<W:mode>): Accept only register.
1457 (addx<W:mode>): Likewise.
1458 (plus_sltu<W:mode>_vis3): Likewise.
1459 (plus_plus_sltu<W:mode>_vis3): Likewise.
1460 (neg_sgeu<W:mode>_vis3): Delete.
1461 (minus_sgeu<W:mode>_vis3): Likewise.
1462 (addxc<W:mode>): Accept only registers.
1463 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1464 (minus_neg_sltu<W:mode>_subxc): Accept only register.
1465 (neg_plus_sltu<W:mode>_subxc): Likewise.
1466 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1467 (minus_minus_sltu<W:mode>_subxc): Accept only register.
1468 (sgeu<W:mode>_insn_subxc): Delete.
1469 (plus_sgeu<W:mode>_subxc): Likewise.
1470 (subxc<W:mode>): Accept only register.
1471 (scc splitter): Split always GEU again.
1472
1473 2016-10-11 Jeff Law <law@redhat.com>
1474
1475 PR tree-optimization/77424
1476 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
1477 dead conditionals. Assert that all e->aux fields are NULL.
1478
1479 2016-10-11 David Malcolm <dmalcolm@redhat.com>
1480
1481 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
1482 operand-printing "switch" statement into...
1483 (print_rtx_operand_code_0): ...this new function, ...
1484 (print_rtx_operand_code_e): ...this new function, ...
1485 (print_rtx_operand_codes_E_and_V): ...this new function, ...
1486 (print_rtx_operand_code_i): ...this new function, ...
1487 (print_rtx_operand_code_r): ...this new function, ...
1488 (print_rtx_operand_code_u): ...this new function, ...
1489 (print_rtx_operand): ...and this new function.
1490
1491 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
1492
1493 * config/alpha/alpha-passes.def: New file.
1494 * config/alpha/t-alpha: New file.
1495 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
1496 (make_pass_handle_trap_shadows): New prototype.
1497 (make_pass_align_insns): Ditto.
1498 * config/alpha/alpha.c (alpha_option_override): Don't register
1499 passes here.
1500 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
1501
1502 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1503
1504 PR target/77924
1505 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
1506 distinct __ibm128 IBM extended double type if long doubles are
1507 128-bits and the default format for long double is IEEE 128-bit.
1508
1509 2016-10-11 Richard Biener <rguenther@suse.de>
1510
1511 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
1512 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
1513 (verify_die): New function.
1514 (dwarf2out_finish): Call it.
1515 (output_line_info): Handle case of -gsplit-dwarf without
1516 DWARF2_ASM_LINE_DEBUG_INFO.
1517
1518 2016-10-11 Richard Biener <rguenther@suse.de>
1519
1520 PR debug/77931
1521 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
1522 sub-chains of BLOCK_VARS and gimple_bind_vars.
1523
1524 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1525
1526 * config/i386/znver1.md : Fix imov/imovx load type reservations.
1527
1528 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1529
1530 * config/sparc/sparc.opt (msubxc): New option.
1531 * doc/invoke.texi (SPARC options): Document it and tidy up.
1532 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
1533 * doc/tm.texi: Regenerate.
1534 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
1535 (CCNZ): ...this.
1536 (CCX_NOOV): Rename into...
1537 (CCXNZ): ...this.
1538 (CCC): New.
1539 (CCXC): Likewise.
1540 * config/sparc/predicates.m (fcc_register_operand): Simplify.
1541 (fcc0_register_operand): Likewise.
1542 (icc_register_operand): New.
1543 (icc_or_fcc_register_operand): Simplify.
1544 (nz_comparison_operator): New.
1545 (c_comparison_operator): Likewise.
1546 (noov_compare_operator): Rename into...
1547 (icc_comparison_operator): ...this. Use above predicates.
1548 (noov_compare64_operator): Rename into...
1549 (v9_comparison_operator): ...this and tidy up.
1550 (fcc_comparison_operator): New.
1551 (icc_or_fcc_comparison_operator): Likewise.
1552 (v9_register_compare_operator): Rename info...
1553 (v9_register_comparison_operator): ...this.
1554 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1555 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
1556 for Niagara-7.
1557 (sparc_fixed_condition_code_regs): New function.
1558 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
1559 renaming and add support for CCC/CCXC.
1560 (output_cbranch): Likewise.
1561 (sparc_print_operand): Likewise.
1562 (gen_v9_scc): Remove obsolete assertion.
1563 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
1564 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
1565 (output_cbcond): Remove bogus handling of CC modes.
1566 (sparc_register_move_cost): Return 100 for NO_REGS.
1567 * config/sparc/sparc.md (W): New mode iterator.
1568 (length): Adjust for noov_compare64_operator renaming.
1569 (cmpsi_sne): New instruction.
1570 (cmpdi_sne): Likewise.
1571 (seqdi_special): Delete.
1572 (seqdi_special): Likewise.
1573 (snesi<P:mode>_special): Likewise.
1574 (snedi_special): Likewise.
1575 (snedi_special_vis3): Likewise.
1576 (snesi patterns): Use W iterator.
1577 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
1578 (sltu patterns): Likewise.
1579 (sgeu patterns): Likewise.
1580 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
1581 (normal_branch): Use icc_comparison_operator predicate.
1582 (inverted_branch): Likewise.
1583 (cbcond_sp32): Use comparison_operator predicate.
1584 (cbcond_sp64): Likewise.
1585 (normal_int_branch_sp64): Adjust for renaming
1586 (inverted_int_branch_sp64): Likewise.
1587 (mov<I:mode>_cc_reg_sp64): Likewise.
1588 (movsf_cc_reg_sp6): Likewise.
1589 (movdf_cc_reg_sp64): Likewise.
1590 (movtf_cc_reg_hq_sp64): Likewise.
1591 (movtf_cc_reg_sp64): Likewise.
1592 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
1593 (movsf_cc_v9): Likewise.
1594 (movdf_cc_v9): Likewise.
1595 (movtf_cc_hq_v9): Likewise.
1596 (movtf_cc_v9): Likewise.
1597 (adddi3): Call gen_adddi3_sp32.
1598 (adddi3_insn_sp32): Rename to...
1599 (adddi3_sp32): ...this. Accept only register_operand as operand #1
1600 and use CCCmode for the carry.
1601 (addx_extend_sp32): Use CCCmode for the carry.
1602 (addx_extend_sp64): Delete.
1603 (adddi3_extend_sp32): Use CCCmode for the carry.
1604 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
1605 (subdi3): Call gen_subdi3_sp32.
1606 (subdi3_insn_sp32): Rename to...
1607 (subdi3_sp32): ...this and use CCmode for the carry.
1608 (subx_extend_sp32): Use CCCmode for the carry.
1609 (subx_extend_sp64): Delete.
1610 (subdi3_extend_sp32): Use CCmode for the carry.
1611 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
1612 (negdi3): Call gen_negdi3_sp32.
1613 (negdi3_sp32): Use CCCmode for the carry.
1614 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
1615 (cmp_nz_ashift_1): Use CCNZ mode.
1616 (cmp_nz_set_ashift_1): Likewise.
1617 (ctrapsi4): Use comparison_operator predicate.
1618 (ctrapdi4): Likewise.
1619 (trapsi_insn): Use icc_comparison_operator predicate.
1620 (trapdi_insn): Likewise.
1621 (edge8 patterns): Use CCNZmode.
1622 (edge16 patterns): Likewise.
1623 (edge32 patterns): Likewise.
1624
1625 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1626
1627 * config/visium/visium-modes.def (CC_NOOV): Rename into...
1628 (CCNZ): ...this.
1629 (CC_BTST): Rename into...
1630 (CCC): ...this.
1631 * config/visium/predicates.md (real_add_operand): New.
1632 (visium_btst_operator): Rename into...
1633 (visium_equality_comparison_operator): ...this.
1634 (visium_noov_operator): Rename into...
1635 (visium_nz_comparison_operator): ...this.
1636 (visium_c_comparison_operator): New.
1637 (visium_branch_operator): Adjust and deal with all CC modes.
1638 * config/visium/visium.c (visium_adjust_cost): Adjust.
1639 (visium_split_double_add): Use the *_set_carry patterns.
1640 (visium_select_cc_mode): Add support for CCC mode and adjust.
1641 (output_cbranch): Adjust and use the carry-based operators for
1642 floating-point comparisons.
1643 * config/visium/visium.md (flags_subst_arith): Adjust.
1644 (addsi3_insn_set_carry): New instruction.
1645 (subsi3_insn_set_carry): Likewise.
1646 (negsi2_insn_set_carry): Likewise.
1647 (btst): Adjust.
1648 (cmp<mode>_sne): Likewise.
1649 (cbranch<mode>4): Use ordered_comparison_operator.
1650 (cbranch<mode>4_insn): Likewise.
1651 (cbranchsi4_btst_insn): Adjust.
1652
1653 2016-10-11 Tom de Vries <tom@codesourcery.com>
1654
1655 PR middle-end/77558
1656 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1657 special-casing.
1658
1659 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1660
1661 * tree.h (build_complex_type): Add second parameter with default.
1662 * tree.c (build_complex_type): Add NAMED second parameter and adjust
1663 recursive call. Create a TYPE_DECL only if NAMED is true.
1664 (build_common_tree_nodes): Pass true in calls to build_complex_type.
1665
1666 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
1667
1668 New avr-passes.def to register AVR specific passes.
1669
1670 * config/avr/avr-passes.def: New file.
1671 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1672 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1673 (make_avr_pass_recompute_note): New proto.
1674 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1675 (avr_pass_recompute_notes): Use anonymous namespace.
1676 (avr_register_passes): Remove function...
1677 (avr_option_override): ...and its call.
1678
1679 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
1680
1681 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1682 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1683 PTF_AVOID_BRANCHLIKELY_SPEED for others.
1684 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1685 flags.
1686 * config/mips/mips.c (mips_option_override): Enable the branch
1687 likely depending on the tune flags and optimization level.
1688 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1689 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1690 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1691 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1692
1693 2016-10-11 Richard Biener <rguenther@suse.de>
1694
1695 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1696 (output_function): Properly stream the whole block tree.
1697 * lto-streamer-in.c (input_function): Likewise.
1698
1699 2016-10-11 Marek Polacek <polacek@redhat.com>
1700
1701 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1702
1703 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1704
1705 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1706 (evrp_dom_walker::before_dom_children): Infer and push new value
1707 ranges for x in y < x.
1708
1709 2016-10-10 Joseph Myers <joseph@codesourcery.com>
1710
1711 PR target/77586
1712 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1713 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1714 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1715 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1716 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1717 (IA64_NO_LIBGCC_TFMODE): Likewise.
1718
1719 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1720
1721 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1722 copying.
1723
1724 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
1725
1726 * config.gcc: Add aarch64-*-freebsd* support.
1727 * config.host: Likewise.
1728 * config/aarch64/aarch64-freebsd.h: New file.
1729 * config/aarch64/t-aarch64-freebsd: Ditto.
1730
1731 2016-10-10 Jeff Law <law@redhat.com>
1732
1733 PR tree-optimization/71947
1734 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1735 B with A within a single statement.
1736
1737 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1738
1739 PR tree-optimization/77824
1740 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1741 zero cost for copies.
1742 (find_candidates_dom_walker::before_dom_children): Replace
1743 MODIFY_EXPR with SSA_NAME.
1744 (replace_mult_candidate): Likewise.
1745 (replace_profitable_candidates): Likewise.
1746
1747 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1748
1749 * config/s390/s390.h: Wrap more macros args in brackets and fix
1750
1751 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
1752
1753 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1754
1755 2016-10-10 Andreas Schwab <schwab@suse.de>
1756
1757 PR target/77738
1758 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1759 pseudo is not DImode.
1760
1761 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
1762
1763 * common/config/arc/arc-common.c (arc_option_optimization_table):
1764 Remove compact casesi option.
1765 * config/arc/arc.c (arc_override_options): Use compact casesi
1766 option only for pre-ARCv2 cores.
1767 * doc/invoke.texi (mcompact-casesi): Update text.
1768
1769 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1770
1771 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1772 Add macro to say we can efficiently handle overlapping unaligned
1773 loads.
1774 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1775 poor code for processors older than p8.
1776
1777 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
1778
1779 * gen-pass-instances.awk: Remove GNUism.
1780
1781 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1782
1783 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1784 NULL of (*ipcp_transformations)][node->uid].
1785
1786 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
1787
1788 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1789 (MALLOC_ABI_ALIGNMENT): Define.
1790
1791 2016-10-09 Jakub Jelinek <jakub@redhat.com>
1792
1793 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1794 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1795 VAR_OR_FUNCTION_DECL_P macros.
1796 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1797 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1798 chkp_find_bounds_1): Likewise.
1799 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1800 * hsa-gen.c (get_symbol_for_decl): Likewise.
1801 * cgraphunit.c (check_global_declaration, analyze_functions,
1802 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1803 Likewise.
1804 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1805 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1806 Likewise.
1807 * tree.c (set_decl_section_name, copy_node_stat,
1808 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1809 merge_dllimport_decl_attributes, handle_dll_attribute,
1810 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1811 verify_type): Likewise.
1812 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1813 find_explicit_erroneous_behavior): Likewise.
1814 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1815 * ipa.c (process_references): Likewise.
1816 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1817 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1818 notice_global_symbol, assemble_variable, mark_decl_referenced,
1819 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1820 make_decl_one_only, default_section_type_flags,
1821 categorize_decl_for_section, default_encode_section_info): Likewise.
1822 * trans-mem.c (requires_barrier): Likewise.
1823 * gimple-expr.c (mark_addressable): Likewise.
1824 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1825 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1826 expand_debug_expr): Likewise.
1827 * tree-dump.c (dequeue_and_dump): Likewise.
1828 * ubsan.c (instrument_bool_enum_load): Likewise.
1829 * tree-pretty-print.c (print_declaration): Likewise.
1830 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1831 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1832 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1833 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1834 pass_build_ssa::execute): Likewise.
1835 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1836 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1837 Likewise.
1838 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1839 Likewise.
1840 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1841 can_be_nonlocal, remap_decls, copy_debug_stmt,
1842 initialize_inlined_parameters, add_local_variables,
1843 reset_debug_binding, replace_locals_op): Likewise.
1844 * dse.c (can_escape): Likewise.
1845 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1846 Likewise.
1847 * tree-diagnostic.c (default_tree_printer): Likewise.
1848 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1849 unpack_ts_decl_with_vis_value_fields,
1850 lto_input_ts_decl_common_tree_pointers): Likewise.
1851 * builtins.c (builtin_save_expr, fold_builtin_expect,
1852 readonly_data_expr): Likewise.
1853 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1854 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1855 Likewise.
1856 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1857 * gimplify.c (force_constant_size, gimplify_bind_expr,
1858 gimplify_decl_expr, gimplify_var_or_parm_decl,
1859 gimplify_compound_lval, gimplify_init_constructor,
1860 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1861 gimplify_type_sizes): Likewise.
1862 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1863 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1864 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1865 remove_unused_locals): Likewise.
1866 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1867 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1868 * function.c (instantiate_expr, instantiate_decls_1,
1869 setjmp_vars_warning, add_local_decl): Likewise.
1870 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1871 Likewise.
1872 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1873 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1874 optimize_va_list_gpr_fpr_size): Likewise.
1875 * tree-nrv.c (pass_nrv::execute): Likewise.
1876 * tsan.c (instrument_expr): Likewise.
1877 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1878 * vtable-verify.c (verify_bb_vtables): Likewise.
1879 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1880 get_ref_base_and_extent): Likewise.
1881 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1882 Likewise.
1883 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1884 analyze_all_variable_accesses): Likewise.
1885 * tree-nested.c (get_nonlocal_debug_decl,
1886 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1887 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1888 get_local_debug_decl, convert_local_omp_clauses,
1889 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1890 Likewise.
1891 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1892 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1893 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1894 dbxout_symbol, dbxout_common_check): Likewise.
1895 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1896 string_constant): Likewise.
1897 * hsa.c (hsa_get_declaration_name): Likewise.
1898 * passes.c (rest_of_decl_compilation): Likewise.
1899 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1900 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1901 pack_ts_decl_with_vis_value_fields,
1902 write_ts_decl_common_tree_pointers): Likewise.
1903 * stor-layout.c (place_field): Likewise.
1904 * symtab.c (symtab_node::maybe_create_reference,
1905 symtab_node::verify_base, symtab_node::make_decl_local,
1906 symtab_node::copy_visibility_from,
1907 symtab_node::can_increase_alignment_p): Likewise.
1908 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1909 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1910 fortran_common, add_location_or_const_value_attribute,
1911 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1912 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1913 optimize_one_addr_into_implicit_ptr,
1914 optimize_location_into_implicit_ptr): Likewise.
1915 * gimple-low.c (record_vars_into): Likewise.
1916 * ipa-visibility.c (update_vtable_references): Likewise.
1917 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1918 Likewise.
1919 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1920 DFS::DFS_write_tree_body, write_symbol): Likewise.
1921 * langhooks.c (lhd_warn_unused_global_decl,
1922 lhd_set_decl_assembler_name): Likewise.
1923 * attribs.c (decl_attributes): Likewise.
1924 * except.c (output_ttype): Likewise.
1925 * varpool.c (varpool_node::get_create, ctor_for_folding,
1926 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1927 * fold-const.c (fold_unary_loc): Likewise.
1928 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1929 ipa_find_agg_cst_from_init): Likewise.
1930 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1931 expand_omp_target, lower_omp_regimplify_p,
1932 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1933 find_link_var_op): Likewise.
1934 * tree-chrec.c (chrec_contains_symbols): Likewise.
1935 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1936 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1937 execute_fixup_cfg): Likewise.
1938
1939 PR tree-optimization/77901
1940 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1941 if ranges[i].exp is SSA_NAME when looking for >= and only when
1942 ranges[i].exp is NULL or SSA_NAME when looking for the other
1943 comparison.
1944
1945 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1946
1947 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1948 (ipcp_param_lattices): Remove field alignment.
1949 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1950 (set_all_contains_variable): Remove call to
1951 ipcp_alignment_lattice::set_to_bottom.
1952 (initialize_node_lattices): Likewise.
1953 (propagate_alignment_accross_jump_function): Remove.
1954 (propagate_constants_accross_call): Remove call to
1955 propagate_alignment_accross_jump_function.
1956 (ipcp_store_alignment_results): Remove.
1957 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1958 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1959 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1960 pretty-printing of alignment jump function.
1961 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1962 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1963 alignments and remove computing ipa_alignment jump function.
1964 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1965 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1966 (ipa_read_jump_function): Remove reading of ipa_alignment.
1967 (write_ipcp_transformation_info): Remove streaming for alignment
1968 propagation summary.
1969 (read_ipcp_transformation_info): Remove reading of alignment
1970 propagation summary.
1971 (ipcp_update_alignments): Remove.
1972 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1973 type.
1974 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1975 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1976 * ipa-prop.h (ipa_alignment): Remove.
1977 (ipa_jump_func): Remove field alignment.
1978 (ipcp_transformation_summary): Remove field alignments.
1979 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1980 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1981 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1982
1983 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1984
1985 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1986
1987 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1988 change.
1989 (visium_expand_fp_cstore): Likewise.
1990
1991 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1992
1993 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1994 * diagnostic.c (warning_at_rich_loc_n): New function.
1995 (diagnostic_n_impl_richloc): Likewise.
1996 (diagnostic_n_impl): Move most of the function to
1997 diagnostic_n_impl_richloc and call it.
1998
1999 2016-10-08 Jakub Jelinek <jakub@redhat.com>
2000
2001 * gen-pass-instances.awk: Rewritten.
2002 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
2003 $(PASSES_EXTRA) after passes.def to the script.
2004 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
2005 * config/i386/i386-passes.def: New file.
2006 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
2007 make_pass_stv): Declare.
2008 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
2009 false.
2010 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
2011 or !TARGET_64BIT.
2012 (pass_stv::clone, pass_stv::set_pass_param): New methods.
2013 (pass_stv::timode_p): New non-static data member.
2014 (ix86_option_override): Don't register passes here.
2015
2016 * doc/invoke.texi: Document accepting Else, fallthrough.
2017
2018 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
2019 style changes.
2020
2021 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
2022 FALLTHRU comment styles.
2023
2024 2016-10-07 Andrew Pinski <apinski@cavium.com>
2025
2026 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
2027 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
2028 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
2029 Likewise.
2030 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
2031 Likewise.
2032 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
2033 Likewise.
2034 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
2035 (AARCH64_ARCH): Likewise.
2036 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
2037 Likewise.
2038 (AARCH64_CORE): Likewise.
2039 (AARCH64_ARCH): Likewise.
2040 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
2041 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
2042 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
2043 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
2044 (AARCH64_ARCH): Likewise.
2045 (AARCH64_CORE): Likewise.
2046 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
2047 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
2048 (AARCH64_CORE): Likewise.
2049 (AARCH64_ARCH): Likewise.
2050
2051 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2052
2053 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
2054 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
2055 floating point type infrastructre, and -mfloat128 that enables the
2056 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
2057 if -mfloat128-type. Define __ibm128 to be long double by default.
2058 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
2059 the IEEE 128-bit floating point type infrastructure should
2060 automatically be enabled.
2061 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
2062 instead of -mfloat128 to enable KFmode.
2063 (rs6000_option_override_internal): Split the option -mfloat128
2064 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
2065 systems, automatically set -mfloat128-type, but don't enable it on
2066 other operating systems. Move setting the long double size and
2067 IEEE quad support before the IEEE 128-bit floating point changes.
2068 (rs6000_init_builtins): Do not create a unique type for __ibm128
2069 if long double is IBM extended double, instead rely on __ibm128
2070 being defined as 'long double'. If -mfloat128-type and not
2071 -mfloat128, create the KFmode type with an undocumented __ieee128
2072 keyword.
2073 (rs6000_init_libfuncs): Use -mfloat128-type instead of
2074 -mfloat128 for tests about the types, but keep tests for
2075 -mfloat128 to enable the keyword support.
2076 (rs6000_complex_function_value): Likewise.
2077 (rs6000_scalar_mode_supported_p): Likewise.
2078 (rs6000_floatn_mode): Likewise.
2079 (rs6000_c_mode_for_suffix): Likewise.
2080 (rs6000_opt_masks): Add -mfloat128-type.
2081 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
2082 -mfloat128-type being split from -mfloat128. Add
2083 -mfloat128-hardware, which was missing.
2084 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
2085 -mfloat128 and -mfloat128-type:
2086 (-mfloat128-type): Likewise.
2087 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
2088 that 64-bit Linux systems with enable -mfloat128-type by default
2089 on VSX systems.
2090 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
2091 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
2092 -mfloat128-type instead of -mfloat128.
2093 (FLOAT128_2REG_P): Likewise.
2094 (MASK_FLOAT128_TYPE): Likewise.
2095 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2096 (RS6000_BTM_FLOAT128): Likewise.
2097 (TARGET_FLOAT128): Poison old identifiers.
2098 (OPTION_MASK_FLOAT128): Likewise.
2099 (MASK_FLOAT128): Likewise.
2100 * config/rs6000/rs6000.md (FP): Likewise.
2101 (FLOAT128): Likewise.
2102 (fix_trunc<mode>di2): Likewise.
2103 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2104 (floatdi<mode>2): Likewise.
2105 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
2106 (neg<mode>2, FLOAT128 iterator): Likewise.
2107 (abs<mode>2, FLOAT128 iterator): Likewise.
2108 (ieee_128bit_negative_zero): Likewise.
2109 (ieee_128bit_vsx_neg<mode>2): Likewise.
2110 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2111 (ieee_128bit_vsx_abs<mode>2): Likewise.
2112 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2113 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2114 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2115 (extendiftf2): Likewise.
2116 (extendifkf2): Likewise.
2117 (extendtfkf2): Likewise.
2118 (trunciftf2): Likewise.
2119 (truncifkf2): Likewise.
2120 (trunckftf2): Likewise.
2121 (trunctfif2): Likewise.
2122 (extendkftf2): Likewise.
2123 (trunctfkf2): Likewise.
2124
2125 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2126
2127 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
2128 before merging in bytes to pass down to real_from_target.
2129
2130 2016-10-07 Richard Biener <rguenther@suse.de>
2131
2132 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
2133 required hack.
2134 (substitute_and_fold_dom_walker::before_dom_children):
2135 Substitute and fold before pass specific folding to avoid
2136 feeding that with SSA names that will be later released.
2137 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
2138 introduced by folding and visited by evaluate_stmt called during
2139 ccp_fold_stmt.
2140 (likely_value): Likewise.
2141 (evaluate_stmt): Likewise.
2142 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
2143 (simplify_div_or_mod_using_ranges): Likewise.
2144 (simplify_min_or_max_using_ranges): Likewise.
2145 (simplify_abs_using_ranges): Likewise.
2146 (simplify_conversion_using_ranges): Likewise.
2147 (simplify_float_conversion_using_ranges): Likewise.
2148 (simplify_stmt_using_ranges): Likewise.
2149
2150 2016-10-07 Marek Polacek <polacek@redhat.com>
2151
2152 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
2153 FALLTHROUGH_LABEL_P here...
2154 (warn_implicit_fallthrough_r): ...not here.
2155
2156 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
2157
2158 PR tree-optimization/77880
2159 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
2160 necessary.
2161
2162 2016-10-07 Marek Polacek <polacek@redhat.com>
2163
2164 PR c++/77803
2165 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
2166
2167 2016-10-07 Richard Biener <rguenther@suse.de>
2168
2169 * bitmap.h: Document constraints on bitmap modification while
2170 iterating over it.
2171
2172 2016-10-07 Richard Biener <rguenther@suse.de>
2173
2174 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
2175 * bitmap.h (bmp_iter_set): When advancing to the next element
2176 check that we didn't remove the current one.
2177 (bmp_iter_and): Likewise.
2178 (bmp_iter_and_compl): Likewise.
2179 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
2180 we currently iterate on but keep a one-level queue.
2181 * sched-deps.c (remove_from_deps): Do not clear current bit
2182 but keep a one-level queue.
2183
2184 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2185
2186 PR tree-optimization/77664
2187 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
2188 for the other ranges.
2189 (optimize_range_tests_diff): Fix up formatting.
2190 (optimize_range_tests_var_bound): New function.
2191 (optimize_range_tests): Use it.
2192
2193 2016-10-07 Martin Liska <mliska@suse.cz>
2194
2195 * coverage.c (build_gcov_exit_decl): Fix priority what
2196 should be really 99.
2197
2198 2016-10-07 Richard Biener <rguenther@suse.de>
2199
2200 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
2201 vars in gimple_bind_vars but not in BLOCK_VARS.
2202
2203 2016-10-07 Richard Biener <rguenther@suse.de>
2204
2205 PR tree-optimization/77879
2206 * tree-ssa-structalias.c (handle_const_call): Properly handle
2207 NRV return slots.
2208 (handle_pure_call): Likewise.
2209
2210 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2211
2212 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
2213 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
2214 possible overflow.
2215
2216 2016-10-06 Andrew Pinski <apinski@cavium.com>
2217
2218 * config/aarch64/aarch64-cores.def: Add a comment before each
2219 set of cores.
2220
2221 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2222
2223 PR tree-optimization/77862
2224 * tree-vrp.c (add_equivalence): Use get_value_range so that
2225 num_vr_values is checked before accessing vr_values.
2226
2227 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2228
2229 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2230 POINTER_TYPE_P.
2231
2232 2016-10-05 Jeff Law <law@redhat.com>
2233
2234 PR tree-optimization/71661
2235 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
2236 removal of a forwarder exposes a new natural loop.
2237
2238 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
2239
2240 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
2241 Introduce ssesuffix variable.
2242 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2243 (*<code><mode>3): Ditto.
2244
2245 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
2246
2247 * postreload.c (reload_cse_simplify): Skip also USE when detecting
2248 noop move.
2249
2250 2016-10-06 Richard Biener <rguenther@suse.de>
2251
2252 PR tree-optimization/77855
2253 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2254 instead of removing the current item while iterating over the set
2255 which is not safe.
2256
2257 2016-10-06 James Clarke <jrtc27@jrtc27.com>
2258 Eric Botcazou <ebotcazou@adacore.com>
2259
2260 PR target/77759
2261 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
2262 (classify_registers): Don't set it
2263 (function_arg_slotno): Don't initialize and test it. Tidy up.
2264
2265 2016-10-06 Richard Biener <rguenther@suse.de>
2266
2267 PR tree-optimization/77839
2268 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
2269 lattice transition.
2270
2271 2016-10-06 Martin Liska <mliska@suse.cz>
2272
2273 * gcc.c: Set -fprofile-update=atomic when profiling is
2274 enabled and -pthread is set. Warn when one combines
2275 -pthread and -fprofile-update=single for an app using
2276 profiling code.
2277
2278 2016-10-06 Martin Liska <mliska@suse.cz>
2279
2280 PR bootstrap/77788
2281 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
2282 * gimple-ssa-strength-reduction.c (slsr_process_cast):
2283 Initialize a pointer to NULL.
2284 (slsr_process_copy): Likewise.
2285 * input.c (location_get_source_line): Likewise.
2286 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2287
2288 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
2289
2290 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2291 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
2292 (ix86_handle_option): Deleted handle of OPT_mpcommit.
2293 * config.gcc: Deleted pcommitintrin.h
2294 * config/i386/pcommitintrin.h: Deleted file.
2295 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
2296 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
2297 detection.
2298 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
2299 __PCOMMIT__.
2300 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
2301 (PTA_PCOMMIT): Deleted define.
2302 (ix86_option_override_internal): Deleted handle of option.
2303 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
2304 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
2305 __builtin_ia32_pcommit): Deleted.
2306 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
2307 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
2308 (pcommit): Deleted instruction.
2309 * config/i386/i386.opt: Mention -mpcommit deprecation.
2310 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
2311
2312 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
2313
2314 PR target/77874
2315 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
2316 Remove wrong assert.
2317 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
2318 Use <round_constraint> as operand 1 constraint.
2319
2320 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2321
2322 PR sanitizer/66343
2323 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
2324 (ubsan_instrument_float_cast): And not here.
2325
2326 PR sanitizer/66343
2327 * ubsan.c (ubsan_ids): New GTY(()) array.
2328 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
2329 instead of static local counters.
2330
2331 2016-10-05 Martin Sebor <msebor@redhat.com>
2332
2333 PR bootstrap/77819
2334 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
2335 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
2336 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
2337 (default_printf_pointer_format): Define function.
2338 * targhooks.c (linux_printf_pointer_format): Define new function.
2339 * targhooks.h (linux_printf_pointer_format): Declare.
2340 (gnu_libc_printf_pointer_format): Remove declaration.
2341
2342 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2343
2344 * fold-const.c (native_encode_real): Fix logic for selecting offset
2345 to write to when BYTES_BIG_ENDIAN.
2346
2347 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
2348
2349 * builtins.c (fold_builtin_strchr): Remove function.
2350 (fold_builtin_strrchr): Likewise.
2351 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
2352 * gimple-fold.c (target_char_cst_p): New function.
2353 (gimple_fold_builtin_strchr) Add more foldings.
2354 (gimple_fold_builtin): Add index, strrchr, rindex cases.
2355
2356 2016-10-05 Richard Biener <rguenther@suse.de>
2357
2358 PR middle-end/77863
2359 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
2360 capture ids in c-exprs.
2361
2362 2016-10-05 Richard Biener <rguenther@suse.de>
2363
2364 PR middle-end/77826
2365 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
2366 with types_match for GIMPLE code gen to handle type mismatched
2367 constants properly.
2368 (dt_operand::gen): Adjust.
2369 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
2370 and constant A.
2371
2372 2016-10-05 Richard Biener <rguenther@suse.de>
2373
2374 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
2375
2376 2016-10-05 Richard Biener <rguenther@suse.de>
2377
2378 PR middle-end/77842
2379 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
2380
2381 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
2382
2383 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
2384 version check to protect only DW_TAG_imported_module generation.
2385
2386 2016-10-05 Richard Biener <rguenther@suse.de>
2387
2388 PR middle-end/55152
2389 * match.pd (min(a,-a) -> -abs(a)): New pattern.
2390
2391 2016-10-04 Ian Lance Taylor <iant@golang.org>
2392
2393 * explow.c (allocate_dynamic_stack_space): Call
2394 do_pending_stack_adjust before handling flag_split_stack.
2395
2396 2016-10-04 David Malcolm <dmalcolm@redhat.com>
2397
2398 * genattrtab.c (make_internal_attr): Supply dummy column number to
2399 file_location ctor.
2400 (main): Likewise.
2401 * genoutput.c (init_insn_for_nothing): Likewise.
2402 * gensupport.c (add_define_attr): Likewise.
2403 * read-md.c (message_at_1): Print column number.
2404 (fatal_with_file_and_line): Likewise.
2405 (rtx_reader::read_char): Track column numbers.
2406 (rtx_reader::unread_char): Likewise.
2407 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
2408 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
2409 (rtx_reader::handle_file): Initialize m_read_md_colno.
2410 (rtx_reader::get_current_location): Supply column number to
2411 file_location ctor.
2412 * read-md.h (struct file_location): Add field "colno".
2413 (file_location::file_location): Likewise.
2414 (rtx_reader::get_colno): New accessor.
2415 (rtx_reader::m_read_md_colno): New field.
2416 (rtx_reader::m_last_line_colno): New field.
2417
2418 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2419
2420 * doc/extend.texi (Java Exceptions): Remove.
2421 (java_interface): Remove.
2422
2423 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
2424
2425 PR tree-optimization/77808
2426 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
2427 and addr are different before copying points-to information.
2428
2429 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
2430
2431 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
2432 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
2433 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
2434 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
2435
2436 2016-10-04 Richard Biener <rguenther@suse.de>
2437
2438 PR tree-optimization/77399
2439 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
2440 verify the target can convert.
2441
2442 2016-10-04 Richard Biener <rguenther@suse.de>
2443
2444 PR middle-end/77833
2445 * explow.c (plus_constant): Verify the mode of the constant
2446 pool offset before calling plus_constant.
2447
2448 2016-10-04 Richard Biener <rguenther@suse.de>
2449
2450 PR middle-end/77407
2451 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
2452 type support, mark with :C.
2453 (X / -X -> -1): Mark with :C.
2454
2455 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2456
2457 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
2458 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
2459 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
2460 * doc/tm.texi: Regenerated.
2461 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
2462 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
2463 * config/darwin.h (JCR_SECTION_NAME): Remove.
2464 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
2465 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
2466 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
2467 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
2468 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
2469 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
2470
2471 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2472
2473 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
2474 between "because" and "param" in dump message in call to fprintf.
2475
2476 2016-10-03 Jeff Law <law@redhat.com>
2477
2478 PR tree-optimization/71550
2479 PR tree-optimization/71403
2480 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
2481 (profitable_jump_thread_path): Also return boolean indicating if
2482 the realized path will create an irreducible loop.
2483 Remove loop depth tests from 71403.
2484 (fsm_find_control_statement_thread_paths): Remove loop depth tests
2485 from 71403. If threading will create an irreducible loop, then
2486 throw away loop iteration and related information.
2487
2488 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
2489
2490 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
2491 -Woverloaded-virtual checks for warning options.
2492 * configure: Regenerate.
2493
2494 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2495
2496 PR preprocessor/77699
2497 * input.c (maybe_grow): Don't allocate one byte extra headroom.
2498 (get_next_line): Return false on error.
2499 (read_next_line): Removed, use get_next_line instead.
2500 (read_line_num): Don't copy the line.
2501 (location_get_source_line): Don't use static data.
2502 (selftest::test_reading_source_line): Add more test cases.
2503
2504 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2505
2506 Revert
2507 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2508
2509 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2510 (noce_process_if_block): Use it.
2511
2512 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2513
2514 * doc/invoke.texi: Update -Wint-in-bool-context.
2515
2516 2016-10-02 Jakub Jelinek <jakub@redhat.com>
2517
2518 * dwarf2out.c (output_fde, output_call_frame_info,
2519 dwarf2out_do_cfi_startproc, set_indirect_string,
2520 gen_internal_sym, output_die, output_line_info): Use
2521 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
2522 ASM_GENERATE_INTERNAL_LABEL output.
2523
2524 2016-10-01 Richard Biener <rguenther@suse.de>
2525
2526 PR middle-end/77798
2527 * genmatch.c (get_operand_type): Add operand position arg
2528 and handle COND_EXPR comparison operand with fixed boolean_type_node.
2529 (expr::gen_transform): Adjust.
2530 (dt_simplify::gen_1): Likewise.
2531
2532 2016-10-01 Jakub Jelinek <jakub@redhat.com>
2533
2534 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
2535 comments. Simplify asserts, remove unnecessary conditions.
2536 Formatting fixes.
2537 (*<code><mode>3): Likewise.
2538
2539 2016-09-30 Jakub Jelinek <jakub@redhat.com>
2540
2541 * doc/invoke.texi (-Wregister): Document.
2542
2543 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2544
2545 * configure.ac: Split CHECKING_P into CHECKING_P and
2546 ENABLE_EXTRA_CHECKING.
2547 * configure: Regenerated.
2548 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
2549 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
2550
2551 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
2552
2553 PR other/31566
2554 * gcc.c (process_command): For @filename handling, output
2555 the correct name if the file does not exist.
2556
2557 2016-09-30 Marek Polacek <polacek@redhat.com>
2558
2559 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
2560 * config/alpha/predicates.md: Likewise.
2561
2562 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2563
2564 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2565 (noce_process_if_block): Use it.
2566
2567 2016-09-30 Martin Liska <mliska@suse.cz>
2568
2569 * doc/invoke.texi: Document asan-use-after-return that
2570 it's disabled by default in runtime.
2571
2572 2016-09-30 Richard Biener <rguenther@suse.de>
2573
2574 * tree-vrp.c (intersect_ranges): If we failed to handle
2575 the intersection choose a constant singleton range if available.
2576
2577 2016-09-30 Richard Biener <rguenther@suse.de>
2578
2579 PR tree-optimization/77399
2580 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2581 float <-> int conversions.
2582
2583 2016-09-30 Alan Modra <amodra@gmail.com>
2584
2585 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
2586
2587 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2588
2589 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
2590 ext_level before calling CPUID with 0x80000008.
2591 Simplify xgetbv checks.
2592
2593 2016-09-29 David Malcolm <dmalcolm@redhat.com>
2594
2595 * Makefile.in (OBJS): Add print-rtl-function.o.
2596 * print-rtl-function.c: New file.
2597 * print-rtl.h (print_rtx_function): New decl.
2598
2599 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2600
2601 PR target/77756
2602 * config/i386/cpuid.h (__get_cpuid_count): New.
2603 (__get_cpuid): Rename __level to __leaf.
2604
2605 2016-09-29 Marek Polacek <polacek@redhat.com>
2606
2607 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
2608
2609 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
2610
2611 * builtins.c (expand_builtin_memcmp): don't swap args unless
2612 result is only being compared with zero.
2613
2614 2016-09-29 Marek Polacek <polacek@redhat.com>
2615
2616 * dwarf2out.c (loc_descriptor): Add fall through comment.
2617 (add_const_value_attribute): Likewise.
2618
2619 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
2620
2621 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
2622 with "v6t2". Move "arch" attribute above "pool_range".
2623 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
2624 with "v6t2".
2625 (*thumb2_movhi_vfp): Likewise.
2626 (*arm_movhi_fp16): Likewise.
2627 (*thumb2_movhi_fp16): Likewise.
2628 (*arm_movsi_vfp): Remove "arch" attribute.
2629 (*thumb2_movsi_vfp): Likewise.
2630
2631 2016-09-29 Martin Liska <mliska@suse.cz>
2632
2633 * doc/extend.texi: Remove limitation of Objective C for
2634 __attribute__((constructor)) and __attribute__((destructor)).
2635
2636 2016-09-29 Richard Biener <rguenther@suse.de>
2637
2638 PR tree-optimization/77768
2639 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2640 Handle stores to readonly memory when removing redundant stores.
2641
2642 2016-09-29 Richard Biener <rguenther@suse.de>
2643
2644 PR middle-end/77407
2645 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
2646 X / -X -> -1 simplifications.
2647
2648 2016-09-29 Richard Biener <rguenther@suse.de>
2649
2650 PR middle-end/55152
2651 * match.pd: Add max(a,-a) -> abs(a) pattern.
2652 * tree-ssa-phiopt.c (minmax_replacement): Disable for
2653 HONOR_SIGNED_ZEROS types.
2654
2655 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2656
2657 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
2658 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
2659
2660 2016-09-29 Richard Biener <rguenther@suse.de>
2661
2662 * tree-vrp.c (set_defs_to_varying): New helper avoiding
2663 writing to vr_const_varying.
2664 (vrp_initialize): Call it.
2665 (vrp_visit_stmt): Likewise.
2666 (evrp_dom_walker::before_dom_children): Likewise.
2667
2668 2016-09-29 Richard Biener <rguenther@suse.de>
2669
2670 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2671 constructors with vector elements.
2672
2673 2016-09-29 Richard Biener <rguenther@suse.de>
2674
2675 PR tree-optimization/77768
2676 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2677 with stores to a place we know has a constant value.
2678
2679 2016-09-29 Alan Modra <amodra@gmail.com>
2680
2681 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2682 * doc/invoke.texi: Document it.
2683 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2684 (rs6000_passes_float): Comment.
2685 (rs6000_passes_long_double): New static var.
2686 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2687 (init_cumulative_args): Set up to emit fp .gnu_attribute for
2688 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
2689 to include fp values returned in vectors.
2690 Set rs6000_passes_long_double.
2691 (rs6000_function_arg_advance_1): Likewise for function args.
2692 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2693 and SPE. Emit long double tag value too.
2694 (rs6000_opt_vars): Add gnu-attr.
2695 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2696 * configure: Regenerate.
2697 * config.in: Regenerate.
2698
2699 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2700
2701 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2702 of 0 < x.
2703 (format_floating, format_string, format_directive,
2704 get_destination_size, pass_sprintf_length::handle_gimple_call):
2705 Likewise.
2706
2707 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2708
2709 * gimple-ssa-sprintf.c: Fix comment formatting.
2710 (format_integer): Use is_gimple_assign.
2711 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2712 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
2713 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
2714 (pass_sprintf_length::execute): Use is_gimple_call.
2715
2716 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2717
2718 * gimple-fold.c (gimple_fold_builtin): After failing to fold
2719 strchr, also try the generic folding.
2720
2721 2016-09-28 Martin Sebor <msebor@redhat.com>
2722
2723 PR c/77762
2724 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2725 Fix typos.
2726
2727 2016-09-28 Martin Sebor <msebor@redhat.com>
2728
2729 PR middle-end/77683
2730 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2731 length modifier is not expected.
2732 (format_floating): Ignore l length modifier and fail gracefuly
2733 when it isn't one of the other expected ones.
2734
2735 2016-09-28 Martin Sebor <msebor@redhat.com>
2736
2737 PR bootstrap/77753
2738 * varasm.c (assemble_addr_to_section): Increase local buffer size.
2739
2740 2016-09-27 Richard Biener <rguenther@suse.de>
2741
2742 * dwarf2out.c (cu_die_list): New global.
2743 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
2744 main_comp_unit_die to cu_die_list if we created it.
2745 Move break_out_includes ...
2746 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
2747 the cu_die_list.
2748
2749 2016-09-28 Richard Biener <rguenther@suse.de>
2750
2751 * dwarf2out.c (struct die_struct): Add removed flag.
2752 (lookup_type_die): If the DIE is marked as removed, clear
2753 TYPE_SYMTAB_DIE and return NULL.
2754 (lookup_decl_die): If the DIE is marked as removed, remove it
2755 from the hash and return NULL.
2756 (mark_removed): New helper.
2757 (prune_unused_types_prune): Call it for removed DIEs.
2758 (gen_subprogram_die): Move the premark_used_types call to after
2759 DIEs for the functions scopes are generated.
2760 (process_scope_var): Do not re-create pruned types or type decls.
2761 Make sure to also re-parent type decls.
2762 (dwarf2out_finish): Move unused type pruning and debug_types
2763 handling ...
2764 (dwarf2out_early_finish): ... here.
2765
2766 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2767
2768 * config/arc/arc-c.c: New file.
2769 * config/arc/arc-c.def: Likewise.
2770 * config/arc/t-arc: Likewise.
2771 * config.gcc: Include arc-c.o as c and cpp object.
2772 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2773 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2774 arc_cpu_cpp_builtins.
2775
2776 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2777
2778 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2779 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2780
2781 2016-09-28 Nathan Sidwell <nathan@acm.org>
2782
2783 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2784 printing.
2785
2786 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2787
2788 PR tree-optimization/61056
2789 * gimple-fold.c (gimple_fold_builtin_strchr):
2790 New function to optimize strchr (s, 0) to strlen.
2791 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2792
2793 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
2794
2795 PR tree-optimization/77724
2796 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2797 Add tree_fits_shwi_p check.
2798
2799 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2800
2801 * auto-inc-dec.c (try_merge): Remove break after return.
2802 * cselib.c (autoinc_split): Likewise.
2803 * explow.c (promote_mode): Likewise.
2804 * fixed-value.c (fixed_arithmetic): Likewise.
2805 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2806 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2807 * trans-mem.c (get_attrs_for): Likewise.
2808 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2809 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2810 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2811 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2812 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2813 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2814 * config/cris/cris.c (cris_op_str): Likewise.
2815 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2816 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2817
2818 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2819
2820 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2821 IFN_GOACC_REDUCTION_CODES): New.
2822 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2823 ifn_goacc_reduction_kind): Use them.
2824 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2825 of internal functions, when applicable.
2826
2827 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2828
2829 * config/mips/constraints.md (d): Fix documentation.
2830 * doc/md.texi (Machine Constraints): Update accordingly.
2831
2832 2016-09-27 Richard Biener <rguenther@suse.de>
2833
2834 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2835 cur_line_info_table initialization ...
2836 (dwarf2out_assembly_start): ... here.
2837
2838 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2839
2840 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2841 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2842 (*thumb2_movhi_vfp): Likewise.
2843 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2844 template. Expand predicable attribute to mark VMOV.F16 as not
2845 predicable. Add "arch" attribute.
2846 (*thumb2_movhi_fp16): Likewise.
2847 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2848 (*thumb2_movsi_vfp): Add "arch" attribute.
2849
2850 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2851
2852 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2853 VAR_DECL string.
2854
2855 2016-09-27 Marek Polacek <polacek@redhat.com>
2856
2857 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2858 comment.
2859
2860 * config/c6x/c6x.h: Adjust fall through comment.
2861 * config/sh/sh.c (final_prescan_insn): Likewise.
2862 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2863 (visium_expand_fp_cstore): Likewise.
2864
2865 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2866
2867 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2868 expected by -Wimplicit-fallthrough.
2869 (thumb1_size_rtx_costs): Likewise.
2870 (thumb2_reorg): Likewise.
2871 (tls_mentioned_p): Add "Fall through" comment.
2872 (thumb2_reorg): Likewise.
2873 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2874 comment form expected by -Wimplicit-fallthrough.
2875
2876 2016-09-27 Martin Liska <mliska@suse.cz>
2877
2878 PR gcov-profile/46266
2879 * input.h (RESERVED_LOCATION_P): New macro.
2880 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2881 instread of comparison with UNKNOWN_LOCATION.
2882
2883 2016-09-27 Richard Biener <rguenther@suse.de>
2884
2885 PR tree-optimization/77745
2886 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2887 When removing redundant stores make sure to check compatibility
2888 of the TBAA state for downstream accesses.
2889 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2890 value-numbering virtual operands for store matches.
2891
2892 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2893
2894 PR target/51244
2895 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2896 movrt patterns. Match them before anything else in the SET case.
2897
2898 2016-09-27 Martin Liska <mliska@suse.cz>
2899
2900 PR gcov-profile/7970
2901 PR gcov-profile/16855
2902 PR gcov-profile/44779
2903 * coverage.c (build_gcov_exit_decl): New function.
2904 (coverage_obj_init): Call the function and generate __gcov_exit
2905 destructor.
2906 * doc/gcov.texi: Document when __gcov_exit function is called.
2907
2908 2016-09-27 Marek Polacek <polacek@redhat.com>
2909
2910 PR bootstrap/77751
2911 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2912 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2913 -Wno-error instead of -Wno-implicit-fallthrough.
2914
2915 2016-09-27 Martin Liska <mliska@suse.cz>
2916
2917 PR bootstrap/77749
2918 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2919
2920 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2921
2922 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2923 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2924 comments. Remove break after return.
2925 (ix86_fp_compare_code_to_integer, has_dispatch,
2926 ix86_simd_clone_usable): Remove break after return.
2927
2928 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2929
2930 PR rlt-optimization/77714
2931 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2932 REG_EQUAL note.
2933
2934 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2935
2936 PR ipa/77677
2937 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2938 extract_range_from_unary_expr to convert value_range.
2939 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2940 (extract_range_from_unary_expr): This.
2941 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2942
2943 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2944
2945 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2946
2947 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2948
2949 * config/i386/i386.c (ix86_print_operand)
2950 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2951 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2952 (epilogue_renumber): Likewise.
2953
2954 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2955
2956 PR middle-end/77719
2957 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2958 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2959
2960 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2961
2962 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2963 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2964 is_mm_seq_cst, is_mm_sync): Move to ...
2965 * memmodel.h: This. New file.
2966 * builtins.c: Include memmodel.h.
2967 * optabs.c: Likewise.
2968 * tsan.c: Likewise.
2969 * config/aarch64/aarch64.c: Likewise.
2970 * config/alpha/alpha.c: Likewise.
2971 * config/arm/arm.c: Likewise.
2972 * config/i386/i386.c: Likewise.
2973 * config/ia64/ia64.c: Likewise.
2974 * config/mips/mips.c: Likewise.
2975 * config/rs6000/rs6000.c: Likewise.
2976 * config/sparc/sparc.c: Likewise.
2977 * genconditions.c: Include memmodel.h in generated file.
2978 * genemit.c: Likewise.
2979 * genoutput.c: Likewise.
2980 * genpeep.c: Likewise.
2981 * genpreds.c: Likewise.
2982 * genrecog.c: Likewise.
2983
2984 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2985
2986 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2987 "c" instead when parsing characters. Move operand parsing into...
2988 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2989 and tightening the scope of various locals.
2990
2991 2016-09-26 Liu Hao <lh_mouse@126.com>
2992
2993 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2994
2995 2016-09-26 Marek Polacek <polacek@redhat.com>
2996
2997 * system.h: Use __has_attribute to check whether the fallthrough
2998 attribute is supported.
2999
3000 2016-09-26 Marek Polacek <polacek@redhat.com>
3001
3002 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
3003 gimple_call_internal_p.
3004 * ipa-split.c (find_return_bb): Likewise.
3005 (execute_split_functions): Likewise.
3006 * omp-low.c (dump_oacc_loop_part): Likewise.
3007 (oacc_loop_xform_head_tail): Likewise.
3008 * predict.c (predict_loops): Likewise.
3009 * sanopt.c (pass_sanopt::execute): Likewise.
3010 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
3011 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
3012 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
3013 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
3014 (expand_ifn_va_arg): Likewise.
3015 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
3016 (optimize_mask_stores): Likewise.
3017 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
3018 (vect_transform_stmt): Likewise.
3019 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
3020 * tsan.c (instrument_memory_accesses): Likewise.
3021
3022 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3023 Alexander Monakov <amonakov@ispras.ru>
3024
3025 * regrename.c (rename_chains): Check
3026 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
3027 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
3028 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3029
3030 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3031
3032 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
3033 (s390_sched_score): Likewise.
3034
3035 2016-09-26 Martin Liska <mliska@suse.cz>
3036
3037 * doc/gcov.texi: Update program output of gcov tool.
3038
3039 2016-09-26 Martin Liska <mliska@suse.cz>
3040
3041 PR gcov-profile/23332
3042 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
3043 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
3044 * value-prof.c (dump_histogram_value): Do not handle
3045 HIST_TYPE_CONST_DELTA.
3046 (stream_in_histogram_value): Likewise.
3047 (gimple_find_values_to_profile): Likewise.
3048 * value-prof.h (enum hist_type): Likewise.
3049
3050 2016-09-26 Martin Liska <mliska@suse.cz>
3051
3052 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
3053 from default sanitize recover values.
3054 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
3055 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
3056 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
3057 consistent.
3058 * opts.c (finish_options): Do a generic loop over options
3059 that can be recovered.
3060 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
3061 SANITIZE_RETURN.
3062 (common_handle_option): Likewise.
3063 * opts.h: Declare can_recover to sanitizer_opts_s.
3064
3065 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
3066
3067 * target.def(elf_flags_numeric): Change documentation to present tense.
3068 * doc/tm.texi: Regenerate.
3069
3070 2016-09-26 Marek Polacek <polacek@redhat.com>
3071
3072 PR c/7652
3073 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
3074 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
3075 -Wno-switch-fallthrough.
3076 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
3077 (expand_builtin): Likewise.
3078 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
3079 * convert.c (convert_to_real_1): Likewise.
3080 (convert_to_integer_1): Likewise.
3081 * final.c (output_alternate_entry_point): Likewise.
3082 * genattrtab.c (make_canonical): Likewise.
3083 (write_test_expr): Likewise.
3084 * genpreds.c (validate_exp): Likewise.
3085 * gimple-ssa-strength-reduction.c
3086 (find_candidates_dom_walker::before_dom_children): Likewise.
3087 * godump.c (go_format_type): Likewise.
3088 * reload1.c (elimination_effects): Likewise.
3089 * resource.c (mark_referenced_resources): Likewise.
3090 (mark_set_resources): Likewise.
3091 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
3092 * varasm.c (output_addressed_constants): Likewise.
3093
3094 2016-09-26 Marek Polacek <polacek@redhat.com>
3095
3096 PR c/7652
3097 * common.opt (Wimplicit-fallthrough): New option.
3098 * doc/extend.texi: Document statement attributes and the fallthrough
3099 attribute.
3100 * doc/invoke.texi: Document -Wimplicit-fallthrough.
3101 * gimple.h (gimple_call_internal_p): New function.
3102 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
3103 (struct label_entry): New struct.
3104 (find_label_entry): New function.
3105 (case_label_p): New function.
3106 (collect_fallthrough_labels): New function.
3107 (last_stmt_in_scope): New function.
3108 (should_warn_for_implicit_fallthrough): New function.
3109 (warn_implicit_fallthrough_r): New function.
3110 (maybe_warn_implicit_fallthrough): New function.
3111 (expand_FALLTHROUGH_r): New function.
3112 (expand_FALLTHROUGH): New function.
3113 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
3114 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
3115 (gimplify_label_expr): New function.
3116 (gimplify_case_label_expr): Set location.
3117 (gimplify_expr): Call gimplify_label_expr.
3118 * internal-fn.c (expand_FALLTHROUGH): New function.
3119 * internal-fn.def (FALLTHROUGH): New internal function.
3120 * langhooks.c (lang_GNU_OBJC): New function.
3121 * langhooks.h (lang_GNU_OBJC): Declare.
3122 * system.h (gcc_fallthrough): Define.
3123 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
3124 * tree.h (FALLTHROUGH_LABEL_P): Define.
3125
3126 2016-09-26 Richard Biener <rguenther@suse.de>
3127
3128 * dwarf2out.c (stripattributes): Remove unused function.
3129 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
3130 Push dwarf_split_debug_info handling into init_sections_and_labels.
3131 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
3132 (DEBUG_MACRO_SECTION_FLAGS): Remove.
3133 (debug_macinfo_section_name): New global.
3134 (output_macinfo): Use debug_macinfo_section_name.
3135 (init_sections_and_labels): Split out section and label generation
3136 from dwarf2out_init. Set debug_macinfo_section_name.
3137 (dwarf2out_init): Move text section label generation and emission
3138 to ...
3139 (dwarf2out_assembly_start): ... here.
3140 (dwarf2out_finish): Call init_sections_and_labels before DWARF
3141 output starts.
3142
3143 2016-09-26 Richard Biener <rguenther@suse.de>
3144
3145 PR debug/77692
3146 * cgraphunit.c (analyze_functions): Before early removing
3147 global vars calls the late_global_decl debug handler mark
3148 the variable as readonly.
3149
3150 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3151
3152 PR target/51244
3153 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
3154 (sh_rtx_costs): Handle SET of movt and movrt patterns.
3155 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
3156 declare new overloads.
3157 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
3158 operand.
3159
3160 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3161
3162 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
3163 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
3164
3165 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3166
3167 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3168 * configure: Regenerate.
3169
3170 2016-09-24 Marek Polacek <polacek@redhat.com>
3171
3172 PR c/77490
3173 * doc/invoke.texi: Document -Wbool-operation.
3174
3175 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3176
3177 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
3178 * config/rs6000/rs6000.c (expand_block_compare): New function used by
3179 cmpmemsi pattern to do builtin expansion of memcmp ().
3180 (compute_current_alignment): Add helper function for
3181 expand_block_compare used to compute alignment as the compare proceeds.
3182 (select_block_compare_mode): Used by expand_block_compare to select
3183 the mode used for reading the next chunk of bytes in the compare.
3184 (do_load_for_compare): Used by expand_block_compare to emit the load
3185 insns for the compare.
3186 (rs6000_emit_dot_insn): Moved this function to avoid a forward
3187 reference from expand_block_compare ().
3188 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
3189 prototype for this function.
3190 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
3191 target option for controlling how much code inline expansion of
3192 memcmp() will be allowed to generate.
3193
3194 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3195
3196 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
3197 hook_bool_mode_false, hook_bool_mode_true,
3198 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3199 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3200 hook_bool_const_rtx_insn_const_rtx_insn_true,
3201 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
3202 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
3203 hook_bool_const_tree_hwi_hwi_const_tree_false,
3204 hook_bool_const_tree_hwi_hwi_const_tree_true,
3205 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
3206 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3207 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
3208 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
3209 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
3210 hook_bool_const_tree_true, hook_bool_tree_tree_false,
3211 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
3212 hook_bool_rtx_insn_true, hook_bool_rtx_false,
3213 hook_bool_uintp_uintp_false,
3214 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
3215 hook_rtx_tree_int_null, hook_uint_mode_0,
3216 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
3217 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
3218 hook_constcharptr_const_rtx_insn_null,
3219 hook_constcharptr_const_tree_const_tree_null,
3220 hook_constcharptr_int_const_tree_null,
3221 hook_constcharptr_int_const_tree_const_tree_null,
3222 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
3223 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
3224 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
3225
3226 * vec.h (vNULL): Extend comment to say = vNULL initialization
3227 isn't needed for static vars.
3228
3229 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
3230 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
3231 = vNULL initialization of file scope vec.
3232 * passes.c (pass_tab, enabled_pass_uid_range_tab,
3233 disabled_pass_uid_range_tab): Likewise.
3234 * haifa-sched.c (sched_luids, h_i_d): Likewise.
3235 * tree-chkp-opt.c (check_infos): Likewise.
3236 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
3237
3238 * vec.h (vnull::operator vec): Add constexpr keyword for
3239 C++11 and later.
3240
3241 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
3242
3243 PR tree-optimization/77654
3244 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
3245 to duplicate_ssa_name_ptr_info.
3246
3247 2016-09-23 David Malcolm <dmalcolm@redhat.com>
3248
3249 PR preprocessor/77672
3250 * input.c (selftest::test_lexer_string_locations_simple): Update
3251 test to expect location information of the terminator character
3252 at the location of the final closing quote.
3253 (selftest::test_lexer_string_locations_hex): Likewise.
3254 (selftest::test_lexer_string_locations_oct): Likewise.
3255 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
3256 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
3257 (selftest::test_lexer_string_locations_ucn4): Likewise.
3258 (selftest::test_lexer_string_locations_ucn8): Likewise.
3259 (selftest::test_lexer_string_locations_u8): Likewise.
3260 (selftest::test_lexer_string_locations_utf8_source): Likewise.
3261 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
3262 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
3263 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
3264 (selftest::test_lexer_string_locations_macro): Likewise.
3265 (selftest::test_lexer_string_locations_long_line): Likewise.
3266
3267 2016-09-23 Richard Biener <rguenther@suse.de>
3268
3269 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
3270 virtual definition to virtual use if the call devirtualizes
3271 to a const or pure function.
3272 (visit_use): Also visit calls we can devirtualize to a
3273 const or pure function.
3274
3275 2016-09-23 Richard Biener <rguenther@suse.de>
3276
3277 PR tree-optimization/77697
3278 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
3279 signal error if we have sth ternary or unhandled.
3280
3281 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3282
3283 * config/arm/arm_neon.h (vabd_f16): New.
3284 (vabdq_f16): New.
3285 (vabs_f16): New.
3286 (vabsq_f16): New.
3287 (vadd_f16): New.
3288 (vaddq_f16): New.
3289 (vcage_f16): New.
3290 (vcageq_f16): New.
3291 (vcagt_f16): New.
3292 (vcagtq_f16): New.
3293 (vcale_f16): New.
3294 (vcaleq_f16): New.
3295 (vcalt_f16): New.
3296 (vcaltq_f16): New.
3297 (vceq_f16): New.
3298 (vceqq_f16): New.
3299 (vceqz_f16): New.
3300 (vceqzq_f16): New.
3301 (vcge_f16): New.
3302 (vcgeq_f16): New.
3303 (vcgez_f16): New.
3304 (vcgezq_f16): New.
3305 (vcgt_f16): New.
3306 (vcgtq_f16): New.
3307 (vcgtz_f16): New.
3308 (vcgtzq_f16): New.
3309 (vcle_f16): New.
3310 (vcleq_f16): New.
3311 (vclez_f16): New.
3312 (vclezq_f16): New.
3313 (vclt_f16): New.
3314 (vcltq_f16): New.
3315 (vcltz_f16): New.
3316 (vcltzq_f16): New.
3317 (vcvt_f16_s16): New.
3318 (vcvt_f16_u16): New.
3319 (vcvt_s16_f16): New.
3320 (vcvt_u16_f16): New.
3321 (vcvtq_f16_s16): New.
3322 (vcvtq_f16_u16): New.
3323 (vcvtq_s16_f16): New.
3324 (vcvtq_u16_f16): New.
3325 (vcvta_s16_f16): New.
3326 (vcvta_u16_f16): New.
3327 (vcvtaq_s16_f16): New.
3328 (vcvtaq_u16_f16): New.
3329 (vcvtm_s16_f16): New.
3330 (vcvtm_u16_f16): New.
3331 (vcvtmq_s16_f16): New.
3332 (vcvtmq_u16_f16): New.
3333 (vcvtn_s16_f16): New.
3334 (vcvtn_u16_f16): New.
3335 (vcvtnq_s16_f16): New.
3336 (vcvtnq_u16_f16): New.
3337 (vcvtp_s16_f16): New.
3338 (vcvtp_u16_f16): New.
3339 (vcvtpq_s16_f16): New.
3340 (vcvtpq_u16_f16): New.
3341 (vcvt_n_f16_s16): New.
3342 (vcvt_n_f16_u16): New.
3343 (vcvtq_n_f16_s16): New.
3344 (vcvtq_n_f16_u16): New.
3345 (vcvt_n_s16_f16): New.
3346 (vcvt_n_u16_f16): New.
3347 (vcvtq_n_s16_f16): New.
3348 (vcvtq_n_u16_f16): New.
3349 (vfma_f16): New.
3350 (vfmaq_f16): New.
3351 (vfms_f16): New.
3352 (vfmsq_f16): New.
3353 (vmax_f16): New.
3354 (vmaxq_f16): New.
3355 (vmaxnm_f16): New.
3356 (vmaxnmq_f16): New.
3357 (vmin_f16): New.
3358 (vminq_f16): New.
3359 (vminnm_f16): New.
3360 (vminnmq_f16): New.
3361 (vmul_f16): New.
3362 (vmul_lane_f16): New.
3363 (vmul_n_f16): New.
3364 (vmulq_f16): New.
3365 (vmulq_lane_f16): New.
3366 (vmulq_n_f16): New.
3367 (vneg_f16): New.
3368 (vnegq_f16): New.
3369 (vpadd_f16): New.
3370 (vpmax_f16): New.
3371 (vpmin_f16): New.
3372 (vrecpe_f16): New.
3373 (vrecpeq_f16): New.
3374 (vrnd_f16): New.
3375 (vrndq_f16): New.
3376 (vrnda_f16): New.
3377 (vrndaq_f16): New.
3378 (vrndm_f16): New.
3379 (vrndmq_f16): New.
3380 (vrndn_f16): New.
3381 (vrndnq_f16): New.
3382 (vrndp_f16): New.
3383 (vrndpq_f16): New.
3384 (vrndx_f16): New.
3385 (vrndxq_f16): New.
3386 (vrsqrte_f16): New.
3387 (vrsqrteq_f16): New.
3388 (vrecps_f16): New.
3389 (vrecpsq_f16): New.
3390 (vrsqrts_f16): New.
3391 (vrsqrtsq_f16): New.
3392 (vsub_f16): New.
3393 (vsubq_f16): New.
3394
3395 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3396
3397 * config.gcc (extra_headers): Add arm_fp16.h
3398 * config/arm/arm_fp16.h: New.
3399 * config/arm/arm_neon.h: Include "arm_fp16.h".
3400
3401 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3402
3403 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
3404 variants).
3405 (vmulf): New (v8hf, v4hf variants).
3406 (vfma): New (v8hf, v4hf variants).
3407 (vfms): New (v8hf, v4hf variants).
3408 (vsub): New (v8hf, v4hf variants).
3409 (vcage): New (v8hf, v4hf variants).
3410 (vcagt): New (v8hf, v4hf variants).
3411 (vcale): New (v8hf, v4hf variants).
3412 (vcalt): New (v8hf, v4hf variants).
3413 (vceq): New (v8hf, v4hf variants).
3414 (vcgt): New (v8hf, v4hf variants).
3415 (vcge): New (v8hf, v4hf variants).
3416 (vcle): New (v8hf, v4hf variants).
3417 (vclt): New (v8hf, v4hf variants).
3418 (vceqz): New (v8hf, v4hf variants).
3419 (vcgez): New (v8hf, v4hf variants).
3420 (vcgtz): New (v8hf, v4hf variants).
3421 (vcltz): New (v8hf, v4hf variants).
3422 (vclez): New (v8hf, v4hf variants).
3423 (vabd): New (v8hf, v4hf variants).
3424 (vmaxf): New (v8hf, v4hf variants).
3425 (vmaxnm): New (v8hf, v4hf variants).
3426 (vminf): New (v8hf, v4hf variants).
3427 (vminnm): New (v8hf, v4hf variants).
3428 (vpmaxf): New (v4hf variant).
3429 (vpminf): New (v4hf variant).
3430 (vpadd): New (v4hf variant).
3431 (vrecps): New (v8hf, v4hf variants).
3432 (vrsqrts): New (v8hf, v4hf variants).
3433 (vabs): New (v8hf, v4hf variants).
3434 (vneg): New (v8hf, v4hf variants).
3435 (vrecpe): New (v8hf, v4hf variants).
3436 (vrnd): New (v8hf, v4hf variants).
3437 (vrnda): New (v8hf, v4hf variants).
3438 (vrndm): New (v8hf, v4hf variants).
3439 (vrndn): New (v8hf, v4hf variants).
3440 (vrndp): New (v8hf, v4hf variants).
3441 (vrndx): New (v8hf, v4hf variants).
3442 (vrsqrte): New (v8hf, v4hf variants).
3443 (vmul_lane): Add v4hf and v8hf variants.
3444 (vmul_n): Add v4hf and v8hf variants.
3445 (vext): New (v8hf, v4hf variants).
3446 (vcvts): New (v8hi, v4hi variants).
3447 (vcvts): New (v8hf, v4hf variants).
3448 (vcvtu): New (v8hi, v4hi variants).
3449 (vcvtu): New (v8hf, v4hf variants).
3450 (vcvts_n): New (v8hf, v4hf variants).
3451 (vcvtu_n): New (v8hi, v4hi variants).
3452 (vcvts_n): New (v8hi, v4hi variants).
3453 (vcvtu_n): New (v8hf, v4hf variants).
3454 (vbsl): New (v8hf, v4hf variants).
3455 (vcvtas): New (v8hf, v4hf variants).
3456 (vcvtau): New (v8hf, v4hf variants).
3457 (vcvtms): New (v8hf, v4hf variants).
3458 (vcvtmu): New (v8hf, v4hf variants).
3459 (vcvtns): New (v8hf, v4hf variants).
3460 (vcvtnu): New (v8hf, v4hf variants).
3461 (vcvtps): New (v8hf, v4hf variants).
3462 (vcvtpu): New (v8hf, v4hf variants).
3463
3464 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3465
3466 * config/arm/arm-builtins.c (hf_UP): New.
3467 (si_UP): New.
3468 (vfp_builtin_data): New. Update comment.
3469 (enum arm_builtins): Include "arm_vfp_builtins.def".
3470 (ARM_BUILTIN_VFP_PATTERN_START): New.
3471 (arm_init_vfp_builtins): New.
3472 (arm_init_builtins): Add arm_init_vfp_builtins.
3473 (arm_expand_vfp_builtin): New.
3474 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
3475 long line.
3476 * config/arm/arm_vfp_builtins.def: New file.
3477 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
3478 (arm-builtins.o): Likewise.
3479
3480 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3481
3482 PR ipa/77677
3483 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
3484 from constant while creating value range.
3485
3486 2016-09-23 Renlin Li <renlin.li@arm.com>
3487
3488 * ira.c (ira): Move ira_use_lra_p initialization code to ...
3489 (ira_init_once): Here.
3490
3491 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
3492 Jakub Jelinek <jakub@redhat.com>
3493
3494 * hooks.h (hook_uint_uintp_false): Rename to...
3495 (hook_bool_uint_uintp_false): ... this.
3496 * hooks.c (hook_uint_uintp_false): Rename to...
3497 (hook_bool_uint_uintp_false): ... this.
3498 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
3499 instead of hook_uint_uintp_false.
3500
3501 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3502
3503 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
3504 (arm_init_builtins): Move body of a loop to the standalone
3505 function arm_init_neon_builtin.
3506 (arm_expand_neon_builtin_1): New. Update comment. Function body
3507 moved from arm_neon_builtin with some white-space fixes.
3508 (arm_expand_neon_builtin): Move code into the standalone function
3509 arm_expand_neon_builtin_1.
3510
3511 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3512
3513 * config/arm/iterators.md (VCVTHI): New.
3514 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
3515 (NEON_VAGLTE): New.
3516 (VFM_LANE_AS): New.
3517 (VH_CVTTO): New.
3518 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
3519 (V_HALF): Add V4HF. Fix white-space.
3520 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
3521 (V_s_elem): Likewise.
3522 (V_sz_elem): Fix white-space.
3523 (V_elem_ch): Likewise.
3524 (VH_elem_ch): New.
3525 (scalar_mul_constraint): Add V8HF and V4HF.
3526 (Is_float_mode): Fix white-space.
3527 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
3528 (q): Add HF. Fix white-space.
3529 (float_sup): New.
3530 (float_SUP): New.
3531 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
3532 (neon_vfm_lane_as): New.
3533 * config/arm/neon.md (add<mode>3_fp16): New.
3534 (sub<mode>3_fp16): New.
3535 (mul<mode>3add<mode>_neon): New.
3536 (fma<VH:mode>4_intrinsic): New.
3537 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
3538 (fmsub<VH:mode>4_intrinsic): New.
3539 (<absneg_str><mode>2): New.
3540 (neon_v<absneg_str><mode>): New.
3541 (neon_v<fp16_rnd_str><mode>): New.
3542 (neon_vrsqrte<mode>): New.
3543 (neon_vpaddv4hf): New.
3544 (neon_vadd<mode>): New.
3545 (neon_vsub<mode>): New.
3546 (neon_vmulf<mode>): New.
3547 (neon_vfma<VH:mode>): New.
3548 (neon_vfms<VH:mode>): New.
3549 (neon_vc<cmp_op><mode>): New.
3550 (neon_vc<cmp_op><mode>_fp16insn): New
3551 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
3552 (neon_vca<cmp_op><mode>): New.
3553 (neon_vca<cmp_op><mode>_fp16insn): New.
3554 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
3555 (neon_vc<cmp_op>z<mode>): New.
3556 (neon_vabd<mode>): New.
3557 (neon_v<maxmin>f<mode>): New.
3558 (neon_vp<maxmin>fv4hf: New.
3559 (neon_<fmaxmin_op><mode>): New.
3560 (neon_vrecps<mode>): New.
3561 (neon_vrsqrts<mode>): New.
3562 (neon_vrecpe<mode>): New (VH variant).
3563 (neon_vdup_lane<mode>_internal): New.
3564 (neon_vdup_lane<mode>): New.
3565 (neon_vcvt<sup><mode>): New (VCVTHI variant).
3566 (neon_vcvt<sup><mode>): New (VH variant).
3567 (neon_vcvt<sup>_n<mode>): New (VH variant).
3568 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
3569 (neon_vcvt<vcvth_op><sup><mode>): New.
3570 (neon_vmul_lane<mode>): New.
3571 (neon_vmul_n<mode>): New.
3572 * config/arm/unspecs.md (UNSPEC_VCALE): New
3573 (UNSPEC_VCALT): New.
3574 (UNSPEC_VFMA_LANE): New.
3575 (UNSPECS_VFMS_LANE): New.
3576
3577 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3578
3579 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
3580 ("*extzv<mode><clobbercc_or_nocc>"):
3581 Correct a typo in a comment.
3582 Merged patterns.
3583 ("*insv<mode>_zEC12", "*insv<mode>_z10")
3584 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
3585 ("*insv<mode>_zEC12_appendbitsleft")
3586 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
3587 ("*insv<mode>_z10_appendbitsleft"): Ditto.
3588 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
3589 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
3590 Provide pattern with operands switched.
3591 ("*pre_z10_extv<mode>"):
3592 Use new subst patterns.
3593 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
3594 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
3595 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
3596 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
3597 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
3598 ("*<risbg_n>_sidi_ior_and_lshiftrt")
3599 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
3600 New patterns.
3601 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
3602 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3603 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
3604 on zEC12.
3605 ("SINT"): New mode_iterator with SI, HI, QI.
3606 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
3607 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
3608 duplication.
3609
3610 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3611
3612 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
3613 new interface of s390_contiguous_bitmask_p.
3614 ("contiguous_bitmask_nowrap_operand"): New predicate.
3615 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
3616 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
3617 of s390_contiguous_bitmask_p.
3618 ("NxxDw"): Rename NxxDq constraint to NxxDw.
3619 ("NxxSw"): New constraint.
3620 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
3621 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
3622 interface.
3623 (s390_contiguous_bitmask_nowrap_p): Export.
3624 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
3625 former s390_contiguous_bitmask_p.
3626 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
3627 detect contiguous bit ranges with wraparound. Change signature to
3628 return START and END position instead of POS and LENGTH.
3629 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
3630 ranges with wraparound.
3631 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
3632 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
3633 Adapt to new signature of s390_contiguous_bitmask_p.
3634
3635 2016-09-23 Bin Cheng <bin.cheng@arm.com>
3636
3637 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
3638 (create_intersect_range_checks): New.
3639 (vect_create_cond_for_alias_checks): Call above function.
3640
3641 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3642
3643 * config/arm/iterators.md (Code iterators): Fix some white-space
3644 in the comments.
3645 (GLTE): New.
3646 (ABSNEG): New
3647 (FCVT): Moved from vfp.md.
3648 (VCVT_HF_US_N): New.
3649 (VCVT_SI_US_N): New.
3650 (VCVT_HF_US): New.
3651 (VCVTH_US): New.
3652 (FP16_RND): New.
3653 (absneg_str): New.
3654 (FCVTI32typename): Moved from vfp.md.
3655 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
3656 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
3657 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
3658 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
3659 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
3660 (vcvth_op): New.
3661 (fp16_rnd_str): New.
3662 (fp16_rnd_insn): New.
3663 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
3664 (UNSPEC_VCVT_HF_U_N): New.
3665 (UNSPEC_VCVT_SI_S_N): New.
3666 (UNSPEC_VCVT_SI_U_N): New.
3667 (UNSPEC_VCVTH_S): New.
3668 (UNSPEC_VCVTH_U): New.
3669 (UNSPEC_VCVTA_S): New.
3670 (UNSPEC_VCVTA_U): New.
3671 (UNSPEC_VCVTM_S): New.
3672 (UNSPEC_VCVTM_U): New.
3673 (UNSPEC_VCVTN_S): New.
3674 (UNSPEC_VCVTN_U): New.
3675 (UNSPEC_VCVTP_S): New.
3676 (UNSPEC_VCVTP_U): New.
3677 (UNSPEC_VCVTP_S): New.
3678 (UNSPEC_VCVTP_U): New.
3679 (UNSPEC_VRND): New.
3680 (UNSPEC_VRNDA): New.
3681 (UNSPEC_VRNDI): New.
3682 (UNSPEC_VRNDM): New.
3683 (UNSPEC_VRNDN): New.
3684 (UNSPEC_VRNDP): New.
3685 (UNSPEC_VRNDX): New.
3686 * config/arm/vfp.md (<absneg_str>hf2): New.
3687 (neon_vabshf): New.
3688 (neon_v<fp16_rnd_str>hf): New.
3689 (neon_vrndihf): New.
3690 (addhf3): New.
3691 (subhf3): New.
3692 (divhf3): New.
3693 (mulhf3): New.
3694 (*mulsf3neghf_vfp): New.
3695 (*negmulhf3_vfp): New.
3696 (*mulsf3addhf_vfp): New.
3697 (*mulhf3subhf_vfp): New.
3698 (*mulhf3neghfaddhf_vfp): New.
3699 (*mulhf3neghfsubhf_vfp): New.
3700 (fmahf4): New.
3701 (neon_vfmahf): New.
3702 (fmsubhf4_fp16): New.
3703 (neon_vfmshf): New.
3704 (*fnmsubhf4): New.
3705 (*fnmaddhf4): New.
3706 (neon_vsqrthf): New.
3707 (neon_vrsqrtshf): New.
3708 (FCVT): Move to iterators.md.
3709 (FCVTI32typename): Likewise.
3710 (neon_vcvth<sup>hf): New.
3711 (neon_vcvth<sup>si): New.
3712 (neon_vcvth<sup>_nhf_unspec): New.
3713 (neon_vcvth<sup>_nhf): New.
3714 (neon_vcvth<sup>_nsi_unspec): New.
3715 (neon_vcvth<sup>_nsi): New.
3716 (neon_vcvt<vcvth_op>h<sup>si): New.
3717 (neon_<fmaxmin_op>hf): New.
3718
3719 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3720
3721 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3722 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3723 ("*insv<mode>_zEC12_appendbitsleft")
3724 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3725 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3726
3727 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3728
3729 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3730 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3731 construct values without normalization.
3732 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3733 static local lhs_ops to vNULL.
3734
3735 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3736 Jiong Wang <jiong.wang@arm.com>
3737
3738 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3739 available when FP16 instructions are available.
3740 (output_move_vfp): Add support for 16-bit data moves.
3741 (arm_validize_comparison): Fix some white-space. Support HFmode
3742 by conversion to SFmode.
3743 * config/arm/arm.md (truncdfhf2): Fix a comment.
3744 (extendhfdf2): Likewise.
3745 (cstorehf4): New.
3746 (movsicc): Fix some white-space.
3747 (movhfcc): New.
3748 (movsfcc): Fix some white-space.
3749 (*cmovhf): New.
3750 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3751 instructions are available.
3752 (*thumb2_movhi_vfp): Likewise.
3753 (*arm_movhi_fp16): New.
3754 (*thumb2_movhi_fp16): New.
3755 (*movhf_vfp_fp16): New.
3756 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3757 (*movhf_vfp): Likewise.
3758 (extendhfsf2): Enable when VFP FP16 instructions are available.
3759 (truncsfhf2): Enable when VFP FP16 instructions are available.
3760
3761 2016-09-23 Martin Liska <mliska@suse.cz>
3762
3763 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3764
3765 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3766
3767 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3768 V4HF modes.
3769 (arm_evpc_neon_vtrn): Likewise.
3770 (arm_evpc_neon_vrev): Likewise.
3771 (arm_evpc_neon_vext): Likewise.
3772 * config/arm/arm_neon.h (vbsl_f16): New.
3773 (vbslq_f16): New.
3774 (vdup_n_f16): New.
3775 (vdupq_n_f16): New.
3776 (vdup_lane_f16): New.
3777 (vdupq_lane_f16): New.
3778 (vext_f16): New.
3779 (vextq_f16): New.
3780 (vmov_n_f16): New.
3781 (vmovq_n_f16): New.
3782 (vrev64_f16): New.
3783 (vrev64q_f16): New.
3784 (vtrn_f16): New.
3785 (vtrnq_f16): New.
3786 (vuzp_f16): New.
3787 (vuzpq_f16): New.
3788 (vzip_f16): New.
3789 (vzipq_f16): New.
3790 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3791 (vdup_lane): New (v8hf, v4hf variants).
3792 (vext): New (v8hf, v4hf variants).
3793 (vbsl): New (v8hf, v4hf variants).
3794 * config/arm/iterators.md (VDQWH): New.
3795 (VH): New.
3796 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
3797 (Scalar_mul_8_16): Fix white-space.
3798 (Is_d_reg): Add V4HF and V8HF.
3799 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3800 (neon_vdup_lane<mode>): New.
3801 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3802 (*neon_vtrn<mode>_insn): Likewise.
3803 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3804 (*neon_vzip<mode>_insn): Likewise
3805 (neon_vuzp<mode>_internal): Likewise.
3806 (*neon_vuzp<mode>_insn): Likewise
3807 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3808
3809 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3810 Matthew Wahab <matthew.wahab@arm.com>
3811
3812 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3813 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3814 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3815 available. Also fix some white-space.
3816 * config/arm/vfp.md (*arm_movhi_vfp): New.
3817 (*thumb2_movhi_vfp): New.
3818
3819 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3820
3821 * config/arm/arm-c.c (arm_cpu_builtins): Define
3822 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3823 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3824
3825 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3826
3827 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3828 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3829 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3830 arm_v8_2a_fp16_neon_hw.
3831 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3832 arm_v8_2a_neon.
3833
3834 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3835
3836 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3837 arm_fp16_alternative_ok and arm_fp16_none_ok.
3838
3839 2016-09-23 Martin Liska <mliska@suse.cz>
3840
3841 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3842
3843 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3844
3845 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3846 ("armv8.2-a"): New.
3847 ("armv8.2-a+fp16"): New.
3848 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3849 (FL2_FP16INST): New.
3850 (FL2_FOR_ARCH8_2A): New.
3851 * config/arm/arm-tables.opt: Regenerate.
3852 * config/arm/arm.c (arm_arch8_2): New.
3853 (arm_fp16_inst): New.
3854 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3855 for incompatible fp16-format settings.
3856 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3857 (TARGET_NEON_FP16INST): New.
3858 (arm_arch8_2): Declare.
3859 (arm_fp16_inst): Declare.
3860 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3861 march=armv8.2-a and march=armv8.2-a+fp16.
3862 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3863 and armv8.2-a+fp16.
3864 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3865 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3866
3867 2016-09-23 Martin Liska <mliska@suse.cz>
3868
3869 * doc/extend.texi: Remove fused-madd from i386 target options.
3870
3871 2016-09-23 Martin Liska <mliska@suse.cz>
3872
3873 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3874 Handle movbe.
3875
3876 2016-09-23 Martin Liska <mliska@suse.cz>
3877
3878 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3879 Handle crc32.
3880
3881 2016-09-23 Martin Liska <mliska@suse.cz>
3882
3883 PR target/71652
3884 * config/i386/i386.c (ix86_option_override_internal): Change
3885 signature and return false when there's an error related to
3886 arch string.
3887 (release_options_strings): New function.
3888 (ix86_valid_target_attribute_tree): Call the function.
3889
3890 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3891
3892 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3893 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3894 (gen_hsa_ctor_assignment): Likewise.
3895 * print-tree.c (print_node): Likewise.
3896 * tree-dump.c (dequeue_and_dump): Likewise.
3897 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3898 * expr.c (store_constructor): Likewise.
3899 * fold-const.c (operand_equal_p): Likewise.
3900 * tree-pretty-print.c (dump_generic_node): Likewise.
3901 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3902 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3903
3904 2016-09-23 Richard Biener <rguenther@suse.de>
3905
3906 * hooks.h (hook_uint_uintp_false): Declare.
3907
3908 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3909
3910 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3911 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3912
3913 2016-09-22 Martin Sebor <msebor@redhat.com>
3914
3915 PR target/77676
3916 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3917 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3918 (target_int_min): Correct computation.
3919 (format_integer): Use long long as the argument for the ll length
3920 modifier.
3921 (format_floating): Use target_int_max().
3922 (get_string_length): Same.
3923 (format_string): Avoid setting the bounded flag for strings
3924 of unknown length.
3925 (try_substitute_return_value): Avoid setting range info when
3926 the result isn't bounded.
3927 * varasm.c (assemble_name): Increase buffer size.
3928
3929 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3930 Terry Guo <terry.guo@arm.com>
3931
3932 * target.def (elf_flags_numeric): New target hook.
3933 * targhooks.h (default_asm_elf_flags_numeric): New.
3934 * varasm.c (default_asm_elf_flags_numeric): New.
3935 (default_elf_asm_named_section): Use new target hook.
3936 * config/arm/arm.opt (mpure-code): New.
3937 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3938 * config/arm/arm.c (arm_asm_init_sections): Add section
3939 attribute to default text section if -mpure-code.
3940 (arm_option_check_internal): Diagnose use of option with
3941 non supported targets and/or options.
3942 (arm_asm_elf_flags_numeric): New.
3943 (arm_function_section): New.
3944 (arm_elf_section_type_flags): New.
3945 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3946 for -mpure-code.
3947 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3948 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3949
3950 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3951
3952 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3953
3954 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3955
3956 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3957 * rtl.h: Adjust prototype.
3958
3959 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3960
3961 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3962 (prev_active_insn): Likewise.
3963 (active_insn_p): Likewise.
3964 * rtl.h: Adjust prototypes.
3965 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3966 * config/arc/arc.md: Likewise.
3967 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3968 (branch_needs_nop_p): Likewise.
3969 (use_skip_p): Likewise.
3970 * config/sh/sh.c (gen_block_redirect): Likewise.
3971 (split_branches): Likewise.
3972 * reorg.c (optimize_skip): Likewise.
3973 (fill_simple_delay_slots): Likewise.
3974 (fill_slots_from_thread): Likewise.
3975 (relax_delay_slots): Likewise.
3976 * resource.c (mark_target_live_regs): Likewise.
3977
3978 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3979
3980 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3981 type to rtx_insn *.
3982 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3983 (prev_nonnote_nondebug_insn): Likewise.
3984 * config/cris/cris-protos.h: Adjust prototype.
3985 * rtl.h: Likewise.
3986 * jump.c (rtx_renumbered_equal_p): Adjust.
3987
3988 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3989
3990 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3991 * rtl.h: Adjust prototype.
3992 * config/sh/sh.md: Adjust.
3993 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3994
3995 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3996
3997 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3998 (prev_nondebug_insn): Likewise.
3999 * loop-doloop.c (doloop_condition_get): Likewise.
4000 * rtl.h: Adjust prototype.
4001 * cfgloop.h: Likewise.
4002
4003 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4004
4005 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
4006 (prev_nonnote_insn): Likewise.
4007 * jump.c (reversed_comparison_code_parts): Likewise.
4008 (reversed_comparison): Likewise.
4009 * rtl.h: Adjust prototypes.
4010 * config/arc/arc.md: Adjust.
4011 * cse.c (find_comparison_args): Likewise.
4012 * reorg.c (redundant_insn): Change return type to rtx_insn *.
4013 (fix_reg_dead_note): Change argument type to rtx_insn *.
4014 (delete_prior_computation): Likewise.
4015 (delete_computation): Likewise.
4016 (fill_slots_from_thread): Adjust.
4017 (relax_delay_slots): Likewise.
4018 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4019 (simplify_relational_operation_1): Likewise.
4020 (simplify_ternary_operation): Likewise.
4021
4022 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4023
4024 * config/arc/arc-protos.h (arc_label_align): Change type of
4025 variables from rtx to rtx_insn *.
4026 * config/arc/arc.c (arc_label_align): Likewise.
4027 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
4028 * config/bfin/bfin.c (workaround_speculation): Likewise.
4029 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
4030 (find_last_same_clock): Likewise.
4031 (reorg_split_calls): Likewise.
4032 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
4033 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
4034 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
4035 (same_cmp_following_p): Likewise.
4036 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
4037 (same_cmp_following_p): Likwise.
4038 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
4039 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
4040 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
4041 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
4042 (rl78_alloc_physical_registers_cmp): Likewise.
4043 (rl78_alloc_physical_registers_umul): Likewise.
4044 (rl78_calculate_death_notes): Likewise.
4045 * config/s390/s390-protos.h (s390_label_align): Likewise.
4046 * config/s390/s390.c (s390_label_align): Likewise.
4047 * config/sh/sh.c (barrier_align): Likewise.
4048 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
4049 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
4050 (emit_cbcond_nop): Likewise.
4051
4052 2016-09-22 Martin Liska <mliska@suse.cz>
4053
4054 PR ipa/77653
4055 * ipa-icf.c (sem_variable::merge): Yield merge operation if
4056 alias address matters, not necessarily address of original.
4057
4058 2016-09-22 Richard Biener <rguenther@suse.de>
4059
4060 PR middle-end/77697
4061 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
4062 fold fails.
4063
4064 2016-09-22 Richard Biener <rguenther@suse.de>
4065
4066 PR middle-end/77677
4067 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
4068 from constant folding results.
4069 (gimple_resimplify2): Likewise.
4070 (gimple_resimplify3): Likewise.
4071
4072 2016-09-22 Richard Biener <rguenther@suse.de>
4073
4074 PR middle-end/77678
4075 * expr.c (expand_expr_real_1): Guard array access against negative
4076 offset.
4077
4078 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4079
4080 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
4081 of MPFR_RNDN.
4082 (format_floating): Likewise.
4083
4084 2016-09-22 Jakub Jelinek <jakub@redhat.com>
4085
4086 PR fortran/77665
4087 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
4088 for all IFN_GOMP_SIMD_* internal fns, not just for
4089 IFN_GOMP_SIMD_ORDERED_*.
4090
4091 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4092
4093 PR target/77670
4094 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
4095 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
4096 instructions when you want to invert the test.
4097 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
4098 correct order for XXSEL.
4099 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
4100 for using XSCMP{EQ,GT,GE}DP.
4101
4102 2016-09-21 David Malcolm <dmalcolm@redhat.com>
4103
4104 * genconstants.c (main): Introduce noop_reader and convert call
4105 to read_md_files to a method call.
4106 * genenums.c (main): Likewise.
4107 * genmddeps.c (main): Likewise.
4108 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
4109 rtx_reader_ptr->get_top_level_filename ().
4110 (write_tm_preds_h): Likewise.
4111 (write_insn_preds_c): Likewise.
4112 * gensupport.c (class gen_reader): New subclass of rtx_reader.
4113 (rtx_handle_directive): Convert to...
4114 (gen_reader::handle_unknown_directive): ...this.
4115 (init_rtx_reader_args_cb): Convert return type from bool to
4116 rtx_reader *. Create a gen_reader instance, using it for the
4117 call to read_md_files. Return it if no errors occur.
4118 (init_rtx_reader_args): Convert return type from bool to
4119 rtx_reader *.
4120 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4121 (init_rtx_reader_args_cb): Likewise.
4122 * read-md.c (struct file_name_list): Move to class rtx_reader.
4123 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
4124 (read_md_filename): Delete in favor of
4125 rtx_reader::m_read_md_filename.
4126 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
4127 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
4128 (base_dir): Delete in favor of rtx_reader::m_base_dir.
4129 (first_dir_md_include): Delete in favor of
4130 rtx_reader::m_first_dir_md_include.
4131 (last_dir_md_include_ptr): Delete in favor of
4132 rtx_reader::m_last_dir_md_include_ptr.
4133 (max_include_len): Delete.
4134 (rtx_reader_ptr): New.
4135 (fatal_with_file_and_line): Use get_filename and get_lineno
4136 accessors of rtx_reader_ptr.
4137 (require_char_ws): Likewise.
4138 (rtx_reader::read_char): New method, based on ::read_char.
4139 (rtx_reader::unread_char): New method, based on ::unread_char.
4140 (read_escape): Use get_filename and get_lineno accessors of
4141 rtx_reader_ptr.
4142 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
4143 (read_string): Use get_filename and get_lineno accessors of
4144 rtx_reader_ptr.
4145 (rtx_reader::rtx_reader): New ctor.
4146 (rtx_reader::~rtx_reader): New dtor.
4147 (handle_include): Convert from a function to...
4148 (rtx_reader::handle_include): ...this method, converting
4149 handle_directive from a callback to a virtual function.
4150 (handle_file): Likewise, converting to...
4151 (rtx_reader::handle_file): ...this method.
4152 (handle_toplevel_file): Likewise, converting to...
4153 (rtx_reader::handle_toplevel_file): ...this method.
4154 (rtx_reader::get_current_location): New method.
4155 (parse_include): Convert from a function to...
4156 (rtx_reader::add_include_path): ...this method, dropping redundant
4157 update to unused max_include_len.
4158 (read_md_files): Convert from a function to...
4159 (rtx_reader::read_md_files): ...this method, converting
4160 handle_directive from a callback to a virtual function.
4161 (noop_reader::handle_unknown_directive): New method.
4162 * read-md.h (directive_handler_t): Delete this typedef.
4163 (in_fname): Delete.
4164 (read_md_file): Delete.
4165 (read_md_lineno): Delete.
4166 (read_md_filename): Delete.
4167 (class rtx_reader): New class.
4168 (rtx_reader_ptr): New decl.
4169 (class noop_reader): New subclass of rtx_reader.
4170 (read_char): Reimplement in terms of rtx_reader::read_char.
4171 (unread_char): Reimplement in terms of rtx_reader::unread_char.
4172 (read_md_files): Delete.
4173 * read-rtl.c (read_rtx_code): Update for deletion of globals
4174 read_md_filename and read_md_lineno.
4175
4176 2016-09-21 Jason Merrill <jason@redhat.com>
4177
4178 * input.h (from_macro_definition_at): New.
4179
4180 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4181
4182 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
4183
4184 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4185
4186 PR tree-optimization/77550
4187 * tree-vect-stmts.c (create_array_ref): Change parameters.
4188 (get_group_alias_ptr_type): New function.
4189 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
4190
4191 2016-09-21 Marek Polacek <polacek@redhat.com>
4192
4193 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4194 Add falls through comment.
4195
4196 2016-09-21 Richard Biener <rguenther@suse.de>
4197
4198 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
4199 (replace_child): Likewise.
4200 (remove_child_TAG): Adjust.
4201 (move_marked_base_types): Likewise.
4202 (prune_unused_types_prune): Clear die_sib of removed children.
4203
4204 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
4205
4206 PR target/77326
4207 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
4208 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
4209
4210 2016-09-21 Richard Biener <rguenther@suse.de>
4211
4212 PR tree-optimization/77648
4213 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
4214 with complex RHS.
4215 (make_transitive_closure_constraints): Adjust comment.
4216 (make_any_offset_constraints): New function.
4217 (handle_rhs_call): Make sure to first expand a pointer to all
4218 subfields before transitively closing it.
4219 (handle_const_call): Likewise. Properly expand returned
4220 pointers as well.
4221 (handle_pure_call): Likewise.
4222
4223 2016-09-21 Richard Biener <rguenther@suse.de>
4224 Jakub Jelinek <jakub@redhat.com>
4225
4226 PR tree-optimization/77621
4227 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
4228 group at non-vectorizable stmts.
4229
4230 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4231
4232 PR tree-optimization/72835
4233 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
4234 (make_new_ssa_for_all_defs): Likewise.
4235 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
4236
4237 2016-09-20 Martin Sebor <msebor@redhat.com>
4238
4239 PR middle-end/49905
4240 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
4241 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
4242 * config/linux.c (gnu_libc_printf_pointer_format): New function.
4243 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
4244 * config/sol2.c (solaris_printf_pointer_format): New function.
4245 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
4246 options.
4247 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
4248 * doc/tm.texi: Regenerate.
4249 * gimple-fold.h (get_range_strlen): New function.
4250 (get_maxval_strlen): Declare existing function.
4251 * gimple-fold.c (get_range_strlen): Add arguments and compute both
4252 maximum and minimum.
4253 (get_range_strlen): Define overload.
4254 (get_maxval_strlen): Adjust.
4255 * gimple-ssa-sprintf.c: New file and pass.
4256 * passes.def (pass_sprintf_length): Add new pass.
4257 * targhooks.h (default_printf_pointer_format): Declare new function.
4258 (gnu_libc_printf_pointer_format): Same.
4259 (solaris_libc_printf_pointer_format): Same.
4260 * targhooks.c (default_printf_pointer_format): Define new function.
4261 * tree-pass.h (make_pass_sprintf_length): Declare new function.
4262 * print-tree.c: Increase buffer size.
4263
4264 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4265
4266 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
4267
4268 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4269
4270 * common.opt: New option -fipa-vrp.
4271 * ipa-cp.c (ipa_get_vr_lat): New.
4272 (ipcp_vr_lattice::print): Likewise.
4273 (print_all_lattices): Call ipcp_vr_lattice::print.
4274 (ipcp_vr_lattice::meet_with): New.
4275 (ipcp_vr_lattice::meet_with_1): Likewise.
4276 (ipcp_vr_lattice::top_p): Likewise.
4277 (ipcp_vr_lattice::bottom_p): Likewsie.
4278 (ipcp_vr_lattice::set_to_bottom): Likewise.
4279 (set_all_contains_variable): Call VR set_to_bottom.
4280 (initialize_node_lattices): Init VR lattices.
4281 (propagate_vr_accross_jump_function): New.
4282 (propagate_constants_accross_call): Call
4283 propagate_vr_accross_jump_function.
4284 (ipcp_store_vr_results): New.
4285 (ipcp_driver): Handle VR.
4286 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
4287 (ipa_set_jf_unknown): Likewise.
4288 (ipa_compute_jump_functions_for_edge): Likewise.
4289 (ipa_node_params_t::duplicate): Likewise.
4290 (ipa_write_jump_function): Likewise.
4291 (ipa_read_jump_function): Likewise.
4292 (write_ipcp_transformation_info): Likewise.
4293 (read_ipcp_transformation_info): Likewise.
4294 (ipcp_update_vr): New.
4295 (ipcp_transform_function): Handle VR.
4296 * ipa-prop.h (struct ipa_vr): New.
4297 * cgraph.c: Include tree-vrp.h.
4298 * cgraphunit.c: Likewise.
4299 * ipa-utils.c: Likewise.
4300 * ipa.c: Likewise.
4301 * opts.c: Likewise.
4302 * toplev.c: Likewise.
4303 * ipa-devirt.c: Likewise.
4304 * ipa-inline-transform.c: Likewise.
4305 * ipa-inline.c: Likewise.
4306 * ipa-profile.c: Likewise.
4307
4308 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4309
4310 * doc/invoke.texi: Document -fdump-tree-evrp.
4311 * passes.def: Define new pass_early_vrp.
4312 * timevar.def: Define new TV_TREE_EARLY_VRP.
4313 * tree-pass.h (make_pass_early_vrp): New.
4314 * tree-ssa-propagate.c: Make replace_uses_in non static.
4315 * tree-ssa-propagate.h: Export replace_uses_in.
4316 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
4317 (extract_range_from_assert): Factor out
4318 extract_range_for_var_from_comparison_expr.
4319 (vrp_initialize_lattice): New.
4320 (vrp_initialize): Factor out vrp_initialize_lattice.
4321 (vrp_valueize): Fix it to reject complex value ranges.
4322 (vrp_free_lattice): New.
4323 (evrp_dom_walker::before_dom_children): Likewise.
4324 (evrp_dom_walker::after_dom_children): Likewise.
4325 (evrp_dom_walker::push_value_range): Likewise.
4326 (evrp_dom_walker::pop_value_range): Likewise.
4327 (execute_early_vrp): Likewise.
4328 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
4329 (make_pass_early_vrp): New.
4330
4331 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4332
4333 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
4334 instead of exact_log2.
4335
4336 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4337
4338 PR target/77621
4339 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
4340 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
4341 (ix86_add_stmt_cost): Penalize DFmode vector operations
4342 for !TARGET_VECTORIZE_DOUBLE.
4343
4344 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
4345
4346 * doc/invoke.texi (Warning Options): Simplify language.
4347 (Optimize Options): Complete sentence.
4348
4349 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
4350
4351 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
4352 early_finish hook.
4353
4354 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4355
4356 PR target/71395
4357 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
4358 inits on power8 and above, use the VMRGEW instruction instead of a
4359 permute.
4360
4361 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
4362 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
4363 initialization.
4364
4365 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4366
4367 * config/aarch64/arm_neon.h
4368 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
4369 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
4370 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
4371
4372 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4373
4374 * config/var/vax.h (ELIMINABLE_REGS): Define.
4375 (INITIAL_ELIMINATION_OFFSET): Define.
4376
4377 2016-09-20 Jakub Jelinek <jakub@redhat.com>
4378
4379 PR middle-end/77624
4380 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
4381 cast to void * if the cast is from some other pointer type.
4382
4383 2016-09-20 Richard Biener <rguenther@suse.de>
4384
4385 PR tree-optimization/77646
4386 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
4387 a VDEF.
4388
4389 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4390
4391 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
4392 attributes to all inlined functions and make them extern.
4393
4394 2016-09-20 Richard Biener <rguenther@suse.de>
4395
4396 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
4397 hook.
4398 * debug.c (do_nothing_debug_hooks): Adjust.
4399 * dbxout.c (dbx_debug_hooks): Likewise.
4400 * sdbout.c (sdb_debug_hooks): Likewise.
4401 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
4402 (dwarf2out_finish): Move producer, filename and
4403 path annotation ...
4404 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
4405 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
4406
4407 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4408
4409 PR c++/77434
4410 * doc/invoke.texi: Document -Wint-in-bool-context.
4411
4412 PR middle-end/77421
4413 * dwarf2out.c (output_loc_operands): Fix an assertion.
4414
4415 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4416
4417 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
4418 (CR_DECIMAL_DIG): New macro.
4419
4420 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4421
4422 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
4423 element.
4424
4425 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
4426
4427 PR rtl-optimization/77416
4428 * lra-remat.c (operand_to_remat): Process hard coded insn
4429 registers.
4430
4431 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4432
4433 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
4434 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
4435
4436 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4437
4438 * target.def (lra_p): Wordsmithing.
4439 * doc/tm.texi: Regenerate.
4440
4441 2016-09-19 Jakub Jelinek <jakub@redhat.com>
4442 Jan Hubicka <jh@suse.cz>
4443
4444 PR target/77587
4445 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
4446 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
4447 Call ultimate_alias_target just once, not up to 4 times.
4448
4449 2016-09-19 Richard Biener <rguenther@suse.de>
4450
4451 * dwarf2out.c (early_dwarf_finished): New global.
4452 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
4453 is false.
4454 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
4455 if called from LTO exit early.
4456 (dwarf2out_late_global_decl): When being during the early
4457 debug phase do not add locations but only const value attributes.
4458 Adjust the way we generate early DIEs for LTO.
4459
4460 2016-09-19 Richard Biener <rguenther@suse.de>
4461
4462 PR middle-end/77605
4463 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
4464 proper niter to bound the loops.
4465
4466 2016-09-19 Richard Biener <rguenther@suse.de>
4467
4468 PR tree-optimization/77514
4469 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
4470 search for folded stmt.
4471
4472 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
4473
4474 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
4475 * tree-pass.h (make_pass_early_thread_jumps): Declare.
4476 * tree-ssa-threadbackward.c (fsm_find_thread_path,
4477 fsm_find_thread_path, profitable_jump_thread_path,
4478 fsm_find_control_statement_thread_paths,
4479 find_jump_threads_backwards): Add speed_p parameter.
4480 (pass_data_early_thread_jumps): New pass.
4481 (make_pass_early_thread_jumps): New function.
4482
4483 2016-09-17 Andreas Schwab <schwab@suse.de>
4484
4485 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
4486 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4487
4488 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
4489
4490 * recog.c (rest_of_handle_split_after_reload): Delete.
4491 (pass_split_after_reload::gate): New method.
4492 (pass_split_after_reload::execute): Call split_all_insns directly.
4493
4494 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
4495
4496 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
4497 parameters for functions taking long long arguments.
4498
4499 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4500
4501 PR target/77613
4502 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
4503 splat with truncate.
4504
4505 2016-09-16 Jason Merrill <jason@redhat.com>
4506
4507 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
4508 New.
4509 * hwint.c (exact_log2): Use pow2p_hwi.
4510 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
4511 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
4512 * builtins.c (get_object_alignment_2, get_object_alignment)
4513 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
4514 least_bit_hwi.
4515 * calls.c (compute_argument_addresses, store_one_arg): Use
4516 least_bit_hwi.
4517 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
4518 * combine.c (force_to_mode): Use least_bit_hwi.
4519 (contains_muldiv, find_split_point, combine_simplify_rtx)
4520 (simplify_if_then_else, simplify_set, force_to_mode)
4521 (if_then_else_cond, simplify_and_const_int_1)
4522 (simplify_compare_const): Use pow2p_hwi.
4523 * cse.c (fold_rtx): Use pow2p_hwi.
4524 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
4525 Use least_bit_hwi.
4526 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
4527 (init_expmed_one_conv): Use pow2p_hwi.
4528 * expr.c (is_aligning_offset): Use pow2p_hwi.
4529 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
4530 (fold_binary_loc): Use pow2p_hwi.
4531 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
4532 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
4533 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
4534 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
4535 Use least_bit_hwi.
4536 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
4537 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
4538 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
4539 * omp-low.c (oacc_loop_fixed_partitions)
4540 (oacc_loop_auto_partitions): Use least_bit_hwi.
4541 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
4542 * stor-layout.c (place_field): Use least_bit_hwi.
4543 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
4544 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
4545 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
4546 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
4547 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
4548 * tree-vect-data-refs.c (vect_analyze_group_access_1)
4549 (vect_grouped_store_supported, vect_grouped_load_supported)
4550 (vect_permute_load_chain, vect_shift_permute_load_chain)
4551 (vect_transform_grouped_load): Use pow2p_hwi.
4552 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
4553 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
4554 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
4555 least_bit_hwi.
4556 * tsan.c (instrument_expr): Use least_bit_hwi.
4557 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
4558
4559 2016-09-16 Andreas Schwab <schwab@suse.de>
4560
4561 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
4562 OFFSET, not offset.
4563 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4564
4565 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4566
4567 PR target/77526
4568 * combine.c (rest_of_handle_combine): If any edges have been purged,
4569 free dominators if available.
4570
4571 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4572 Eric Botcazou <ebotcazou@adacore.com>
4573
4574 PR middle-end/77594
4575 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
4576 through into expand_addsub_overflow after expand_neg_overflow.
4577
4578 2016-09-15 David Malcolm <dmalcolm@redhat.com>
4579
4580 * diagnostic-show-locus.c
4581 (selftest::test_fixit_insert_containing_newline): New function.
4582 (selftest::test_fixit_replace_containing_newline): New function.
4583 (selftest::diagnostic_show_locus_c_tests): Call the above.
4584
4585 2016-09-15 Bin Cheng <bin.cheng@arm.com>
4586
4587 PR tree-optimization/77503
4588 * tree-vect-loop.c (vectorizable_reduction): Record reduction
4589 code for CONST_COND_REDUCTION at analysis stage and use it at
4590 transform stage.
4591 * tree-vectorizer.h (struct _stmt_vec_info): New field.
4592 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
4593 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
4594 field.
4595
4596 2016-09-15 Richard Biener <rguenther@suse.de>
4597
4598 PR middle-end/77544
4599 * fold-const.c (split_tree): Do not split constant ~X.
4600
4601 2016-09-15 Jakub Jelinek <jakub@redhat.com>
4602
4603 PR rtl-optimization/77425
4604 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
4605 is NULL.
4606
4607 PR middle-end/77475
4608 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
4609 use %qs instead of %s where desirable, use argument instead of arg in
4610 the diagnostic wording, add list of supported strategies and
4611 spellcheck hint.
4612 (ix86_option_override_internal): Emit target("m...") instead of
4613 option("m...") in the diagnostic. Use %qs instead of %s in invalid
4614 -march/-mtune option diagnostic. Add list of supported arches/tunings
4615 and spellcheck hint. Remove prefix, suffix and sw variables, use
4616 main_args_p ? "..." : "..." in diagnostics to make translation
4617 possible.
4618
4619 2016-09-15 Richard Biener <rguenther@suse.de>
4620
4621 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
4622 extra offset argument.
4623 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
4624 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
4625 to reflect new offset parameter.
4626 * doc/tm.texi: Regenerate.
4627 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4628 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
4629 offset argument.
4630 (darwin_asm_output_dwarf_offset): Likewise.
4631 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
4632 argument.
4633 (darwin_asm_output_dwarf_offset): Pass offset argument through.
4634 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4635 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4636
4637 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
4638
4639 PR fortran/72743
4640 * ipa-icf.c (set_alias_uids): New function.
4641 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
4642 all the merged variable's referring aliases.
4643
4644 2016-09-15 Richard Biener <rguenther@suse.de>
4645
4646 PR tree-optimization/77514
4647 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
4648 only forced_stmts sequence.
4649
4650 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
4651
4652 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
4653 * cfgexpand.c (update_alias_info_with_stack_vars): Use
4654 FOR_EACH_SSA_NAME to iterate over SSA variables.
4655 (pass_expand::execute): Likewise.
4656 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
4657 * tree-cfg.c (dump_function_to_file): Likewise.
4658 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
4659 (update_ssa): Likewise.
4660 * tree-ssa-alias.c (dump_alias_info): Likewise.
4661 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4662 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
4663 (create_outofssa_var_map): Likewise.
4664 (coalesce_ssa_name): Likewise.
4665 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
4666 * tree-ssa-pre.c (compute_avail): Likewise.
4667 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4668 (scc_vn_restore_ssa_info): Likewise.
4669 (free_scc_vn): Likwise.
4670 (run_scc_vn): Likewise.
4671 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4672 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4673 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4674 * tree-ssa.c (verify_ssa): Likewise.
4675
4676 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
4677
4678 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4679 and mips64r2 as default 32-bit and 64-bit architectures.
4680 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4681 as default 32-bit and 64-bit architectures.
4682
4683 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
4684
4685 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4686 of succ edge.
4687
4688 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4689
4690 * target.def (lra_p): Change commentary (for the manual) for the
4691 new default.
4692 * doc/tm.texi: Regenerate.
4693
4694 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4695
4696 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4697 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4698 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4699 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4700
4701 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4702
4703 * targhooks.c (default_lra_p): Return true instead of false.
4704
4705 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4706
4707 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4708 hook_bool_void_false.
4709 * config/avr/avr.c: Ditto.
4710 * config/bfin/bfin.c: Ditto.
4711 * config/c6x/c6x.c: Ditto.
4712 * config/cr16/cr16.c: Ditto.
4713 * config/cris/cris.c: Ditto.
4714 * config/epiphany/epiphany.c: Ditto.
4715 * config/fr30/fr30.c: Ditto.
4716 * config/frv/frv.c: Ditto.
4717 * config/h8300/h8300.c: Ditto.
4718 * config/ia64/ia64.c: Ditto.
4719 * config/iq2000/iq2000.c: Ditto.
4720 * config/lm32/lm32.c: Ditto.
4721 * config/m32c/m32c.c: Ditto.
4722 * config/m32r/m32r.c: Ditto.
4723 * config/m68k/m68k.c: Ditto.
4724 * config/mcore/mcore.c: Ditto.
4725 * config/microblaze/microblaze.c: Ditto.
4726 * config/mmix/mmix.c: Ditto.
4727 * config/mn10300/mn10300.c: Ditto.
4728 * config/moxie/moxie.c: Ditto.
4729 * config/msp430/msp430.c: Ditto.
4730 * config/nios2/nios2.c: Ditto.
4731 * config/nvptx/nvptx.c: Ditto.
4732 * config/pa/pa.c: Ditto.
4733 * config/pdp11/pdp11.c: Ditto.
4734 * config/rl78/rl78.c: Ditto.
4735 * config/sparc/sparc.c: Ditto.
4736 * config/spu/spu.c: Ditto.
4737 * config/stormy16/stormy16.c: Ditto.
4738 * config/tilegx/tilegx.c: Ditto.
4739 * config/tilepro/tilepro.c: Ditto.
4740 * config/v850/v850.c: Ditto.
4741 * config/vax/vax.c: Ditto.
4742 * config/visium/visium.c: Ditto.
4743 * config/xtensa/xtensa.c: Ditto.
4744
4745 2016-09-14 Jakub Jelinek <jakub@redhat.com>
4746
4747 PR sanitizer/68260
4748 * tsan.c: Include target.h.
4749 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4750 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4751 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4752 BUILT_IN_ATOMIC_TEST_AND_SET entries.
4753 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4754
4755 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4756 Martin Liska <mliska@suse.cz>
4757
4758 PR middle-end/77574
4759 * predict.c (force_edge_cold): Add braces to a condition.
4760
4761 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4762
4763 PR rtl-optimization/77289
4764 * lra-constraints.c (get_final_hard_regno): Removed.
4765 (get_hard_regno): Add new parameter final_p.
4766 (get_reg_class): Directly call lra_get_elimination_hard_regno.
4767 (operands_match_p): Adjust call to get_hard_regno.
4768 (uses_hard_regs_p): Likewise.
4769 (process_alt_operands): Likewise.
4770
4771 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
4772
4773 PR target/70713
4774 * config/msp430/msp430.c (msp430_start_function): Emit an error
4775 if a function is both weak and specifies an interrupt number.
4776
4777 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4778
4779 PR tree-optimization/77454
4780 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4781 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
4782 Formatting fix.
4783
4784 2016-09-13 Tamar Christina <tamar.christina@arm.com>
4785
4786 * config/aarch64/aarch64-builtins.c
4787 (aarch64_init_simd_builtins): Fix builtin type signature printing.
4788
4789 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
4790
4791 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4792 SFmode and SCmode arguments by reference.
4793
4794 2016-09-13 David Malcolm <dmalcolm@redhat.com>
4795
4796 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4797 Rename to...
4798 (selftest::test_one_liner_fixit_insert_before): ...this, and update
4799 for renaming of add_fixit_insert to add_fixit_insert_before.
4800 (selftest::test_one_liner_fixit_insert_after): New function.
4801 (selftest::test_one_liner_fixit_validation_adhoc_locations):
4802 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4803 (selftest::test_one_liner_many_fixits): Likewise.
4804 (selftest::test_diagnostic_show_locus_one_liner): Update for
4805 renaming, call new test function.
4806 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4807 renaming of add_fixit_insert to add_fixit_insert_before.
4808 (selftest::test_fixit_consolidation): Likewise.
4809 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4810 Likewise.
4811 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4812 (selftest::test_applying_fixits_insert_before): ...this.
4813 (selftest::test_applying_fixits_insert): Update for renaming of
4814 add_fixit_insert to add_fixit_insert_before.
4815 (selftest::test_applying_fixits_insert_after): New function.
4816 (selftest::test_applying_fixits_insert_after_at_line_end): New
4817 function.
4818 (selftest::test_applying_fixits_insert_after_failure): New function.
4819 (selftest::test_applying_fixits_multiple): Update for renaming of
4820 add_fixit_insert to add_fixit_insert_before.
4821 (selftest::change_line): Likewise.
4822 (selftest::test_applying_fixits_unreadable_file): Likewise.
4823 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4824 (selftest::test_applying_fixits_column_validation): Likewise.
4825 (selftest::test_applying_fixits_column_validation): Likewise.
4826 (selftest::edit_context_c_tests): Update for renamed test function;
4827 call new test functions.
4828
4829 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4830
4831 PR tree-optimization/77536
4832 PR rtl-optimization/68212
4833 * config/rs6000/rs6000.md (div->recip splitter): Remove
4834 optimize_insn_for_speed_p condition.
4835
4836 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4837
4838 * optabs.c (prepare_cmp_insn): Update documentation comment.
4839
4840 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4841 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4842
4843 PR middle-end/77475
4844 * opts.h (candidates_list_and_hint): Declare.
4845 * opts-common.c (candidates_list_and_hint): New function.
4846 (cmdline_handle_error): Use it.
4847
4848 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4849
4850 * edit-context.c (edited_line::get_len): New accessor.
4851 (edited_file::print_diff): Split out hunk-printing into...
4852 (edited_file::print_diff_hunk): New method.
4853 (edited_file::print_diff_line): New method.
4854
4855 2016-09-12 Andrew Pinski <apinski@cavium.com>
4856
4857 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4858 New tuning option.
4859 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4860 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4861 (aarch64_operands_ok_for_ldpstp): Return false if
4862 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4863 was SImode and the alignment is less than 8 byte.
4864 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4865
4866 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4867
4868 PR target/77570
4869 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4870
4871 2016-09-12 Marek Polacek <polacek@redhat.com>
4872
4873 * doc/extend.texi: Use lowercase "boolean".
4874 * doc/invoke.texi: Likewise.
4875 * doc/md.texi: Likewise.
4876 * target.def: Likewise.
4877 * doc/tm.texi: Regenerated.
4878
4879 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4880
4881 PR middle-end/77426
4882 * expmed.c (synth_mult): Delete duplicate mode check.
4883
4884 2016-09-10 Tom de Vries <tom@codesourcery.com>
4885
4886 PR C/71602
4887 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4888 va_list type only.
4889 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4890 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4891
4892 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4893
4894 PR rtl-optimization/77289
4895 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4896 register numbers. Remove support for subregs.
4897 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4898 (get_reg_class): Delete removed get_final_hard_regno() argument.
4899 (uses_hard_regs_p): Call get_final_hard_regno().
4900
4901 2016-09-09 Martin Sebor <msebor@redhat.com>
4902
4903 PR c/77520
4904 PR c/77521
4905 * pretty-print.c (pp_quoted_string): New function.
4906 (pp_format): Call it for %c and %s directives.
4907
4908 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4909
4910 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4911 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4912 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4913 * target.def (frame_pointer_required, can_eliminate): Likewise.
4914 * doc/tm.texi: Regenerated.
4915 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4916 ELIMINABLE_REGS.
4917 * df-scan.c (df_hard_reg_init): Likewise.
4918 * ira.c (ira_setup_eliminable_regset): Likewise.
4919 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4920 init_elim_table): Likewise.
4921 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4922 set_initial_elim_offsets, update_eliminables,
4923 init_elim_table): Likewise.
4924 * rtlanal.c (get_initial_register_offset): Likewise.
4925 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4926 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4927 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4928 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4929 * config/fr30/fr30.h: Fix comment.
4930 * config/frv/frv.c: Likewise.
4931 * config/frv/frv.h: Likewise.
4932 * config/ft32/ft32.h: Likewise.
4933 * config/visium/visium.h: Likewise.
4934 * config/pa/pa64-linux.h: Likewise.
4935 * config/v850/v850.h: Likewise.
4936 * config/cris/cris.c: Likewise.
4937 * config/ia64/ia64.h: Likewise.
4938 * config/moxie/moxie.h: Likewise.
4939 * config/m32r/m32r.h: Likewise.
4940
4941 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4942
4943 PR target/77267
4944 * config.in: Regenerate.
4945 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4946 New macro.
4947 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4948 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4949 static-libmpxwrappers case.
4950 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4951 MPX_LD_AS_NEEDED_GUARD_POP.
4952 * configure: Regenerate.
4953 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4954 defined if linker support "--push-state"/"--pop-state".
4955
4956 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4957
4958 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4959
4960 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4961
4962 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4963 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4964 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4965 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4966 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4967 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4968 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4969 Document.
4970 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4971 width macros from TS 18661-1.
4972 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4973
4974 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR fortran/77516
4977 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4978 OMP_CLAUSE_SAFELEN_EXPR.
4979
4980 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4981
4982 * Makefile.in (OBJS): Add substring-locations.o.
4983 * langhooks-def.h (class substring_loc): New forward decl.
4984 (lhd_get_substring_location): New decl.
4985 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4986 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4987 * langhooks.c (lhd_get_substring_location): New function.
4988 * langhooks.h (class substring_loc): New forward decl.
4989 (struct lang_hooks): Add field get_substring_location.
4990 * substring-locations.c: New file, taking definition of
4991 format_warning_va and format_warning_at_substring from
4992 c-family/c-format.c, making them non-static.
4993 * substring-locations.h (class substring_loc): Move class here
4994 from c-family/c-common.h. Add and rewrite comments.
4995 (format_warning_va): New decl.
4996 (format_warning_at_substring): New decl.
4997 (get_source_location_for_substring): Add comment.
4998
4999 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
5000
5001 * config/i386/i386.c: Add 'U' suffix to processor feature bits
5002 to avoid -Wnarrowing warning.
5003 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
5004 * opts.c: Likewise for SANITIZER_OPT bitmasks.
5005
5006 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
5007
5008 * config/aarch64/aarch64.c (aarch64_legitimize_address):
5009 Avoid use of base_offset if offset already in range.
5010
5011 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
5012
5013 * config/sh/sh-protos.h (struct sh_atomic_model,
5014 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5015 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5016 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
5017 * config/sh/sh.h (struct sh_atomic_model,
5018 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5019 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5020 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
5021 Guard with __cplusplus.
5022
5023 2016-09-06 Jakub Jelinek <jakub@redhat.com>
5024
5025 PR target/69255
5026 * config/i386/i386.c (ix86_expand_builtin): For builtin with
5027 unsupported or unknown ISA, use expand_call.
5028
5029 2016-09-06 Martin Liska <mliska@suse.cz>
5030
5031 PR gcov-profile/77378
5032 PR gcov-profile/77466
5033 * tree-profile.c (tree_profiling): Detect whether target can use
5034 -fprofile-update=atomic.
5035
5036 2016-09-06 Richard Biener <rguenther@suse.de>
5037
5038 PR tree-optimization/77479
5039 * tree-vrp.c (update_value_range): Extend overflow handling to
5040 VARYING.
5041
5042 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5043
5044 PR target/77476
5045 * config/i386/i386.md (isa): Add x64_avx512bw.
5046 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
5047 (kmov_isa): New mode attr.
5048 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
5049 (*zero_extend<mode>si2): Likewise.
5050 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
5051
5052 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
5053
5054 * doc/invoke.texi (SPU Options): nops -> NOPs.
5055 (x86 Options): Ditto.
5056
5057 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5058
5059 PR middle-end/77475
5060 * toplev.c (process_options): Temporarily set input_location
5061 to UNKNOWN_LOCATION around targetm.target_option.override () call.
5062
5063 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
5064
5065 PR rtl-optimization/77452
5066 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
5067 inner-mode reference to a CONST_VECTOR constant in the constant pool.
5068
5069 2016-09-05 Marek Polacek <polacek@redhat.com>
5070
5071 PR c/77423
5072 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
5073
5074 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5075
5076 PR other/77421
5077 * gensupport.c (alter_output_for_subst_insn): Remove redundant
5078 *insn_out == '*' test. Don't copy unnecessary to yet another
5079 memory buffer, and don't leak it.
5080
5081 PR rtl-optimization/77425
5082 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
5083
5084 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
5085
5086 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
5087
5088 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5089
5090 * common.opt (fdiagnostics-generate-patch): New option.
5091 * diagnostic.c: Include "edit-context.h".
5092 (diagnostic_initialize): Initialize context->edit_context_ptr.
5093 (diagnostic_finish): Delete context->edit_context_ptr.
5094 (diagnostic_report_diagnostic): Add fix-it hints from the
5095 diagnostic to context->edit_context_ptr, if any.
5096 * diagnostic.h (class edit_context): Add forward decl.
5097 (struct diagnostic_context): Add field "edit_context_ptr".
5098 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5099 -fdiagnostics-generate-patch.
5100 (-fdiagnostics-generate-patch): New item.
5101 * toplev.c: Include "edit-context.h".
5102 (process_options): Set global_dc->edit_context_ptr to a new
5103 edit_context if the options need one.
5104 (toplev::main): Handle -fdiagnostics-generate-patch by using
5105 global_dc->edit_context_ptr.
5106
5107 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5108
5109 PR c/65467
5110 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
5111 map and firstprivate clauses on target construct for _Atomic
5112 qualified decls.
5113 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
5114 on target construct for _Atomic qualified decls.
5115 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
5116 decls.
5117 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
5118 _Atomic qualified arguments not mentioned in uniform clause.
5119
5120 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5121
5122 * Makefile.in (OBJS-libcommon): Add edit-context.o.
5123 * diagnostic-color.c (color_dict): Add "diff-filename",
5124 "diff-hunk", "diff-delete", and "diff-insert".
5125 (parse_gcc_colors): Update default value of GCC_COLORS in comment
5126 to reflect above changes.
5127 * doc/invoke.texi (-fdiagnostics-color): Update description of
5128 default GCC_COLORS, and of the supported capabilities.
5129 * edit-context.c: New file.
5130 * edit-context.h: New file.
5131 * input.c (struct fcache): Add field "missing_trailing_newline".
5132 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
5133 true.
5134 (add_file_to_cache_tab): Likewise.
5135 (fcache::fcache): Likewise.
5136 (get_next_line): Update c->missing_trailing_newline.
5137 (location_missing_trailing_newline): New function.
5138 * input.h (location_missing_trailing_newline): New decl.
5139 * selftest-run-tests.c (selftest::run_tests): Call
5140 edit_context_c_tests.
5141 * selftest.h (edit_context_c_tests): New decl.
5142
5143 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5144 Richard Biener <rguenth@suse.de>
5145
5146 PR tree-optimization/77444
5147 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
5148 as steptype, remove redundant initialization.
5149
5150 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5151
5152 PR sanitizer/77396
5153 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
5154 (sanopt_optimize_walker): Optimize away
5155 __asan_before_dynamic_init (...) followed by
5156 __asan_after_dynamic_init () without intervening memory loads/stores.
5157 * ipa-pure-const.c (special_builtin_state): Handle
5158 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
5159 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
5160
5161 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5162
5163 * cfg.c (free_original_copy_tables): Replace second assignment of
5164 bb_copy = NULL by bb_original = NULL.
5165
5166 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5167
5168 PR other/77421
5169 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
5170 assignment added in r216794.
5171
5172 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5173
5174 * Makefile.in (OBJS): Add typed-splay-tree.o.
5175 * selftest-run-tests.c (selftest::run_tests): Call
5176 typed_splay_tree_c_tests.
5177 * selftest.h (typed_splay_tree_c_tests): New decl.
5178 * typed-splay-tree.c: New file.
5179 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
5180 (typed_splay_tree::max): New method.
5181 (typed_splay_tree::min): New method.
5182 (typed_splay_tree::foreach): New method.
5183 (typed_splay_tree::closure): New struct.
5184 (typed_splay_tree::inner_foreach_fn): New function.
5185
5186 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5187
5188 * ipa-cp.c (ipcp_store_bits_results): Change option name from
5189 -fipa-cp-bit to -fipa-bit-cp.
5190
5191 2016-09-01 Martin Sebor <msebor@redhat.com>
5192
5193 PR tree-optimization/71831
5194 * tree-object-size.h: Return bool instead of the size and add
5195 argument for the size.
5196 * tree-object-size.c (compute_object_offset): Update signature.
5197 (addr_object_size): Same.
5198 (compute_builtin_object_size): Return bool instead of the size
5199 and add argument for the size. Handle POINTER_PLUS_EXPR when
5200 optimization is disabled.
5201 (expr_object_size): Adjust.
5202 (plus_stmt_object_size): Adjust.
5203 (pass_object_sizes::execute): Adjust.
5204 * builtins.c (fold_builtin_object_size): Adjust.
5205 * doc/extend.texi (Object Size Checking): Update.
5206 * ubsan.c (instrument_object_size): Adjust.
5207
5208 2016-09-01 Martin Sebor <msebor@redhat.com>
5209
5210 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
5211 it fits the output of the formatted function regardless of its
5212 arguments.
5213 * gcc/genmodes.c (parser::parse_expr): Same.
5214 * gimplify.c (gimplify_asm_expr): Same.
5215 * passes.c (pass_manager::register_one_dump_file): Same.
5216 * print-tree.c (print_node): Same.
5217
5218 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5219
5220 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
5221
5222 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5223
5224 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
5225
5226 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5227
5228 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
5229 * config/rs6000/vector.md: Ditto.
5230 * config/rs6000/vsx.md: Ditto.
5231
5232 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5233
5234 * ipa-inline-analysis.c (param_change_prob): Get to the base object
5235 first in all cases.
5236
5237 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5238
5239 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
5240 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
5241 *return_and_restore_gpregs_<mode>_r11,
5242 *return_and_restore_gpregs_<mode>_r12,
5243 *return_and_restore_gpregs_<mode>_r1,
5244 *return_and_restore_fpregs_<mode>_r11,
5245 *return_and_restore_fpregs_<mode>_r12,
5246 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
5247 directly instead of via the "l" constraint. Renumber operands.
5248 Fix whitespace.
5249
5250 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5251
5252 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
5253 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
5254 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
5255 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
5256 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
5257 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
5258 *call_value_nonlocal_darwin64, reload_macho_picbase,
5259 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
5260 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
5261 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
5262 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
5263 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
5264 *save_fpregs_<mode>_r1): Ditto.
5265 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
5266 *return_and_restore_gpregs_spe): Ditto.
5267
5268 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5269
5270 * config/rs6000/rs6000.md
5271 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
5272 the use of the link register.
5273 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
5274
5275 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5276 Michael Meissner <meissner@linux.vnet.ibm.com>
5277
5278 PR target/72827
5279 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
5280 reg+reg addressing for TImode.
5281 (rs6000_legitimate_address_p): Only allow register indirect
5282 addressing for TImode, even without TARGET_QUAD_MEMORY.
5283
5284 2016-09-01 Richard Biener <rguenther@suse.de>
5285
5286 PR middle-end/77436
5287 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
5288 check whether the result fits the desired result type.
5289
5290 2016-09-01 Nathan Sidwell <nathan@acm.org>
5291
5292 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
5293
5294 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
5295
5296 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
5297 New function.
5298 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
5299
5300 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5301
5302 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
5303 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
5304 for comparisons of integer ZERO_EXTEND against zero.
5305
5306 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5307
5308 * config/i386/i386.c (ix86_option_override_internal): Also disable the
5309 STV pass if -mstackrealign is enabled.
5310
5311 2016-08-31 Ilya Verbin <iverbin@gmail.com>
5312
5313 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
5314 AVX512IFMA.
5315
5316 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5317
5318 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
5319 (layout_range::intersects_line_p): New method.
5320 (test_range_contains_point_for_single_point): Rename to...
5321 (test_layout_range_for_single_point): ...this, and add testing
5322 for layout_range::intersects_line_p.
5323 (test_range_contains_point_for_single_line): Rename to...
5324 (test_layout_range_for_single_line): ...this, and add testing
5325 for layout_range::intersects_line_p.
5326 (test_range_contains_point_for_multiple_lines): Rename to...
5327 (test_layout_range_for_multiple_lines): ...this, and add testing
5328 for layout_range::intersects_line_p.
5329 (layout::layout): Populate m_fixit_hints.
5330 (layout::get_expanded_location): Handle the case of a line-span
5331 for a fix-it hint.
5332 (layout::validate_fixit_hint_p): New method.
5333 (get_line_span_for_fixit_hint): New function.
5334 (layout::calculate_line_spans): Add spans for fixit-hints.
5335 (layout::should_print_annotation_line_p): New method.
5336 (layout::print_any_fixits): Drop param "richloc", instead using
5337 validated fixits in m_fixit_hints. Add "const" to hint pointers.
5338 (diagnostic_show_locus): Avoid printing blank annotation lines.
5339 (selftest::test_diagnostic_context::test_diagnostic_context):
5340 Initialize show_column and start_span.
5341 (selftest::test_diagnostic_context::start_span_cb): New static
5342 function.
5343 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
5344 (selftest::diagnostic_show_locus_c_tests): Update for function
5345 renamings. Call test_diagnostic_show_locus_fixit_lines.
5346
5347 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5348
5349 PR tree-optimization/73714
5350 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
5351
5352 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5353
5354 * selftest.c: Move "namespace selftest {" to top of file,
5355 removing explicit "selftest::" qualifiers throughout.
5356
5357 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5358
5359 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
5360 New types.
5361 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
5362 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
5363 Replace builtin with vector extension.
5364 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
5365 New types.
5366 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
5367 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
5368 Replace builtin with vector extension.
5369 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
5370 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
5371 Replace builtin with vector extension.
5372 * config/i386/xmmintrin.h (__m128_u): New type.
5373 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
5374 (_mm_load_ps, _mm_store_ps): Simplify.
5375
5376 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
5377
5378 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
5379
5380 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5381
5382 * diagnostic-show-locus.c (colorizer::begin_state): Support more
5383 than 3 ranges per diagnostic by alternating between color 1 and
5384 color 2.
5385 (layout::layout): Replace use of rich_location::MAX_RANGES
5386 with richloc->get_num_locations ().
5387 (layout::calculate_line_spans): Replace use of
5388 rich_location::MAX_RANGES with m_layout_ranges.length ().
5389 (layout::print_annotation_line): Handle arbitrary numbers of
5390 ranges in caret-printing by defaulting to '^'.
5391 (selftest::test_one_liner_many_fixits): New function.
5392 (test_diagnostic_show_locus_one_liner): Call it.
5393 * diagnostic.c (diagnostic_initialize): Update for renaming
5394 of rich_location::MAX_RANGES to
5395 rich_location::STATICALLY_ALLOCATED_RANGES.
5396 * diagnostic.h (struct diagnostic_context): Likewise.
5397
5398 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5399
5400 * selftest.c (selftest::named_temp_file::named_temp_file): New
5401 ctor.
5402 (selftest::temp_source_file::~temp_source_file): Move to...
5403 (selftest::named_temp_file::~named_temp_file): ...here.
5404 (selftest::test_named_temp_file): New function.
5405 (selftest::selftest_c_tests): Call test_named_temp_file.
5406 * selftest.h (class named_temp_file): New class.
5407 (class temp_source_file): Convert to a subclass of named_temp_file.
5408
5409 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
5410
5411 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
5412 USEs of LR_REGNO in returns and sibcalls.
5413 (rs6000_output_mi_thunk): Similar.
5414 (rs6000_sibcall_aix): Similar.
5415 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
5416 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
5417 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
5418 Remove the USE of LR_REGNO from the patterns as well. Delete an
5419 obsolete comment.
5420 (return_internal_<mode>): Delete.
5421
5422 2016-08-30 Tamar Christina <tamar.christina@arm.com>
5423
5424 * gcc/config/aarch64/aarch64-simd.md
5425 (aarch64_ld2<mode>_dreg_le): New.
5426 (aarch64_ld2<mode>_dreg_be): New.
5427 (aarch64_ld2<mode>_dreg): Removed.
5428 (aarch64_ld3<mode>_dreg_le): New.
5429 (aarch64_ld3<mode>_dreg_be): New.
5430 (aarch64_ld3<mode>_dreg): Removed.
5431 (aarch64_ld4<mode>_dreg_le): New.
5432 (aarch64_ld4<mode>_dreg_be): New.
5433 (aarch64_ld4<mode>_dreg): Removed.
5434 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
5435
5436 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5437
5438 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
5439 redundant location param.
5440 (test_one_liner_fixit_remove): Likewise.
5441 (test_one_liner_fixit_replace): Likewise.
5442 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
5443 * gcc-rich-location.c
5444 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
5445 get_range_from_loc. Drop overload taking a const char *.
5446 * gcc-rich-location.h
5447 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
5448 a const char *.
5449
5450 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5451
5452 * config/linux.c (linux_libc_has_function): Return true on musl.
5453
5454 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5455
5456 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
5457
5458 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
5459
5460 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
5461 used for abnormal egdes.
5462
5463 2016-08-30 Jakub Jelinek <jakub@redhat.com>
5464
5465 PR tree-optimization/72866
5466 * tree-vect-patterns.c (search_type_for_mask): Turn into
5467 a small wrapper, move all code to ...
5468 (search_type_for_mask_1): ... this new function. Add caching
5469 and adjust recursive calls.
5470
5471 PR debug/77363
5472 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
5473 instead of lookup_type_die (type_main_variant (type)) even for array
5474 types.
5475
5476 PR middle-end/77377
5477 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
5478 constant pool reference return x instead of c.
5479
5480 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
5481
5482 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
5483 include MQ.
5484
5485 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5486
5487 * input.c
5488 (selftest::test_make_location_nonpure_range_endpoints): Fix
5489 header comment.
5490
5491 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5492
5493 * diagnostic-show-locus.c
5494 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
5495 function.
5496 (selftest::test_diagnostic_show_locus_one_liner): Call it.
5497 * input.c (get_pure_location): Move to libcpp/line-map.c.
5498 * input.h (get_pure_location): Convert decl to an inline function
5499 calling implementation in libcpp.
5500
5501 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
5502
5503 PR target/77403
5504 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
5505 template for intel asm dialect.
5506 (vec_set_hi_<mode><mask_name>): Ditto.
5507
5508 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5509
5510 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
5511 (selftest::fail_formatted): Likewise.
5512
5513 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5514
5515 * input.c (make_location): Call get_start and get_finish
5516 on the endpoints to avoid storing packed ranges or ad-hoc
5517 ranges in them.
5518 (selftest::test_make_location_nonpure_range_endpoints): New function.
5519 (selftest::input_c_tests): Call it.
5520 * input.h (get_start): New inline function.
5521
5522 2016-08-29 Tom de Vries <tom@codesourcery.com>
5523
5524 PR c/77398
5525 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
5526 with assert.
5527
5528 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
5529
5530 * Makefile.in (gcov-iov.h): Add dummy recipe.
5531
5532 2016-08-29 Nathan Sidwell <nathan@acm.org>
5533
5534 * config/nvptx/nvptx.c: #include tree-vrp.h.
5535
5536 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
5537
5538 PR target/77324
5539 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
5540 HIGH+LO construct during reload.
5541
5542 2016-08-28 Tom de Vries <tom@codesourcery.com>
5543
5544 PR lto/70955
5545 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
5546 'sysv_abi va_list' attribute.
5547 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
5548 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
5549 attributes.
5550
5551 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5552
5553 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
5554 * emit-rtl.c (unshare_all_rtl_1): Adjust.
5555 (unshare_all_rtl_again): Likewise.
5556 * function.c (assign_stack_local_1): Likewise.
5557 (assign_stack_temp_for_type): Likewise.
5558
5559 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5560
5561 * cfgbuild.c (make_edges): Adjust.
5562 * cfgrtl.c (can_delete_label_p): Likewise.
5563 * dwarf2cfi.c (create_trace_edges): Likewise.
5564 * except.c (sjlj_emit_dispatch_table): Likewise.
5565 * function.h (struct expr_status): make x_forced_labels a vector.
5566 * jump.c (rebuild_jump_labels_1): Adjust.
5567 * reload1.c (set_initial_label_offsets): Likewise.
5568 * stmt.c (force_label_rtx): Likewise.
5569 (expand_label): Likewise.
5570
5571 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5572
5573 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
5574
5575 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
5576
5577 PR tree-optimization/71077
5578 PR tree-optimization/68542
5579 * fold-const.c (fold_relational_const): Fix folding of
5580 VECTOR_CST comparisons that have a scalar boolean result type.
5581 (selftest::test_vector_folding): New static function.
5582 (selftest::fold_const_c_tests): Call it.
5583
5584 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
5585
5586 * doc/extend.texi (SPU Built-in Functions): Remove stale
5587 references to material formerly at IBM and Sony.
5588
5589 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
5590
5591 PR target/77349
5592 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
5593
5594 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5595
5596 * diagnostic-show-locus.c
5597 (selftest::test_fixit_consolidation): New function.
5598 (selftest::diagnostic_show_locus_c_tests): Call it.
5599 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
5600 constructor based on source_range.
5601
5602 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5603
5604 * diagnostic-color.c (color_dict): Add "fixit-insert" and
5605 "fixit-delete".
5606 (parse_gcc_colors): Update description of default GCC_COLORS.
5607 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
5608 (colorizer::set_fixit_insert): New method.
5609 (colorizer::set_fixit_delete): New method.
5610 (colorizer::get_color_by_name): New method.
5611 (colorizer::STATE_FIXIT_INSERT): New constant.
5612 (colorizer::STATE_FIXIT_DELETE): New constant.
5613 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
5614 fields in favor of new field "m_stop_color". Add fields
5615 "m_fixit_insert" and "m_fixit_delete".
5616 (colorizer::colorizer): Update for above changes. Replace
5617 colorize_start calls with calls to get_color_by_name.
5618 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
5619 STATE_FIXIT_DELETE. Update for field renamings.
5620 (colorizer::finish_state): Simplify by using m_stop_color,
5621 rather than multiple identical "*_ce" fields.
5622 (colorizer::get_color_by_name): New method.
5623 (layout::print_any_fixits): Print insertions and replacements
5624 using the "fixit-insert" color, and deletions using the
5625 "fixit-delete" color.
5626 * doc/invoke.texi (-fdiagnostics-color): Update description of
5627 default GCC_COLORS, and of the supported capabilities.
5628
5629 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
5630
5631 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
5632 current_function_static_stack_size variable with the static
5633 stack frame size of the current function when
5634 flag_stack_usage_info is enabled.
5635
5636 2016-08-26 Nathan Sidwell <nathan@acm.org>
5637
5638 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
5639 assignment inside if condition.
5640
5641 2016-08-26 Richard Biener <rguenther@suse.de>
5642
5643 PR tree-optimization/69047
5644 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
5645 extracts similar to what FRE does.
5646 (non_rewritable_mem_ref_base): Likewise.
5647
5648 2016-08-26 Joseph Myers <joseph@codesourcery.com>
5649
5650 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
5651 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5652 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5653 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5654 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
5655 Likewise.
5656 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5657 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5658 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5659 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
5660 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5661
5662 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5663
5664 PR target/70473
5665 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
5666 reservation duration to 15 cycles.
5667 (cortex_a8_vfp_macs): Likewise.
5668 (cortex_a8_vfp_macd): Likewise.
5669 (cortex_a8_vfp_divs): Likewise.
5670 (cortex_a8_vfp_divd): Likewise.
5671
5672 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5673
5674 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5675 (aarch_macro_fusion_pair_p): Use above to avoid early return.
5676
5677 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5678 Martin Jambhor <mjambor@suse.cz>
5679
5680 * common.opt: New option -fipa-bit-cp.
5681 * doc/invoke.texi: Document -fipa-bit-cp.
5682 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5683 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5684 * tree-ssa-ccp.h: New header file.
5685 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5686 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5687 Replace all occurences of tree parameter by two new params: signop, int.
5688 (bit_value_unop_1): Change to bit_value_unop and export it.
5689 Replace all occurences of tree parameter by two new params: signop,
5690 int.
5691 (bit_value_binop): Change call from bit_value_binop_1 to
5692 bit_value_binop.
5693 (bit_value_assume_aligned): Likewise.
5694 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5695 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5696 to ccp_finalize.
5697 (ccp_finalize): Skip processing if val->mask == 0.
5698 * ipa-cp.c: Include tree-ssa-ccp.h
5699 (ipcp_bits_lattice): New class.
5700 (ipcp_param_lattice (bits_lattice): New member.
5701 (print_all_lattices): Call ipcp_bits_lattice::print.
5702 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5703 (initialize_node_lattices): Likewise.
5704 (propagate_bits_accross_jump_function): New function.
5705 (propagate_constants_accross_call): Call
5706 propagate_bits_accross_jump_function.
5707 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5708 (ipcp_store_bits_results): New function.
5709 (ipcp_driver): Call ipcp_store_bits_results.
5710 * ipa-prop.h (ipa_bits): New struct.
5711 (ipa_jump_func): Add new member bits of type ipa_bits.
5712 (ipa_param_descriptor): Change decl to decl_or_type.
5713 (ipa_get_param): Change decl to decl_or_type and assert on
5714 PARM_DECL.
5715 (ipa_get_type): New function.
5716 (ipcp_transformation_summary): New member bits.
5717 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5718 (ipa_populate_param_decls): Likewise.
5719 (ipa_dump_param): Likewise.
5720 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5721 function.
5722 (ipa_set_jf_unknown): Set ipa_bits::known to false.
5723 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5724 propagation.
5725 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5726 (ipa_write_jump_function): Add streaming for ipa_bits.
5727 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5728 (write_ipcp_transformation_info): Add streaming for ipa_bits
5729 summary for ltrans.
5730 (read_ipcp_transfomration_info): Add support for reading streamed
5731 ipa_bits.
5732 (ipcp_update_bits): New function.
5733 (ipcp_transform_function): Call ipcp_update_bits.
5734
5735 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5736
5737 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5738 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5739
5740 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
5741
5742 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5743
5744 2016-08-25 Richard Biener <rguenther@suse.de>
5745
5746 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5747 Only add locations in late dwarf.
5748 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5749 (dwarf2out_early_finish): But do it here.
5750
5751 2016-08-24 Michael Collison <michael.collison@linaro.org>
5752 Michael Collison <michael.collison@arm.com>
5753
5754 * config/arm/arm-modes.def: Add new condition code mode CC_V
5755 to represent the overflow bit.
5756 * config/arm/arm.c (maybe_get_arm_condition_code):
5757 Add support for CC_Vmode.
5758 (arm_gen_unlikely_cbranch): New function to generate common
5759 rtl conditional branches for overflow patterns.
5760 * config/arm/arm-protos.h: Add prototype for
5761 arm_gen_unlikely_cbranch.
5762 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5763 addsi3_compareV_upper): New patterns to support signed
5764 builtin overflow add operations.
5765 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5766 New patterns to support unsigned builtin add overflow operations.
5767 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5768 builtin overflow subtract operations,
5769 (usubv<mode>4): New patterns to support unsigned builtin subtract
5770 overflow operations.
5771 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5772 to support builtin overflow negate operations.
5773
5774 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5775
5776 Revert
5777 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5778
5779 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5780 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5781 needed.
5782
5783 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5784
5785 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5786 MULTILIB_OPTIONS should be used. Small wording fixes.
5787 * genmultilib: Memorize set of all option combinations in
5788 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
5789 found in MULTILIB_OPTIONS by checking if option set is listed in
5790 combination_space. Output new and existing error message to stderr.
5791
5792 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5793
5794 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5795 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5796 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5797 (MULTILIB_REUSE): Remove reuse rules for option set including
5798 -mfpu=fp-armv8 and -mfpu=vfpv4
5799
5800 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
5801
5802 * config/arm/t-rtems: Add vfp multilib.
5803
5804 2016-08-23 Ian Lance Taylor <iant@golang.org>
5805
5806 * config/s390/s390.c (s390_asm_file_start): Call
5807 default_file_start.
5808
5809 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5810
5811 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5812 initialization of all 0's to the 0 constant, instead of directly
5813 generating XOR. Add support for V4SImode vector initialization on
5814 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5815 initialization. Change variables used in V4SFmode vector
5816 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5817 any memory addresses are in index form. Add support for using
5818 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5819 with all of the same element.
5820 (regno_or_subregno): New helper function to return a register
5821 number for either REG or SUBREG.
5822 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5823 Use regno_or_subregno where possible.
5824 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5825 DImode value from two SImode values in order to generate V4SImode
5826 vector initialization on 64-bit systems with direct move.
5827 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5828 initialization.
5829 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5830 swappable.
5831 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5832 declaration.
5833 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5834 attributes to initialize V8HImode and V16QImode vectors with the
5835 same element.
5836 (VSX_SPLAT_COUNT): Likewise.
5837 (VSX_SPLAT_SUFFIX): Likewise.
5838 (UNSPEC_VSX_VEC_INIT): New unspec.
5839 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5840 Allow SFmode values to come from Altivec registers.
5841 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5842 on 64-bit systems with direct move.
5843 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5844 vector initializations, to allow V4SImode vector initializations
5845 on 64-bit systems with direct move.
5846 (vsx_splat_v4si): Likewise.
5847 (vsx_splat_v4si_di): Likewise.
5848 (vsx_splat_v4sf): Likewise.
5849 (vsx_splat_v4sf_internal): Likewise.
5850 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5851 register classes.
5852 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5853 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5854 initializing V8HImode and V16QImode vectors with the same
5855 element.
5856 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5857 optimization if -maltivec=be.
5858
5859 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5860
5861 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5862 attribute for alternatives 3 and 4.
5863
5864 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5865
5866 * selftest.c (selftest::assert_str_contains): New function.
5867 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5868 * selftest.h (selftest::assert_str_contains): New decl.
5869 (ASSERT_STR_CONTAINS): New macro.
5870
5871 2016-08-23 Richard Biener <rguenther@suse.de>
5872
5873 PR tree-optimization/77286
5874 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5875 the CFG here.
5876 (vect_transform_loop): Split exit edges of loop and scalar
5877 loop if required and at the appropriate time.
5878
5879 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5880
5881 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5882 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5883 needed.
5884 Correct a typo in a comment.
5885
5886 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5887
5888 * config/s390/s390.md ("*andc_split"): New splitter for and with
5889 complement.
5890
5891 2016-08-23 Richard Biener <rguenther@suse.de>
5892
5893 PR tree-optimization/27336
5894 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5895 by looking for a non-EH edge.
5896 (process_assert_insertions_for): Likewise.
5897
5898 2016-08-23 Richard Biener <rguenther@suse.de>
5899
5900 PR middle-end/77305
5901 * statistics.c (statistics_counter_event): Robustify against
5902 NULL current_pass.
5903
5904 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5905
5906 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5907 for targets amdfam10 and barcelona.
5908
5909 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5910
5911 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5912 (zero_extend<mode>di2): Ditto.
5913 (*zero_extend<mode>si2): Ditto.
5914 (*zero_extendqihi2): Ditto.
5915
5916 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5917
5918 PR middle-end/77269
5919 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5920 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5921
5922 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5923
5924 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5925 identical consecutive elements.
5926 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5927 the node's def stmt, avoid printing an unwanted trailing newline by
5928 replacing the call to print_gimple_stmt() with its inlined body and
5929 adjusting it to not set pp_needs_newline and to call pp_flush()
5930 instead of pp_newline_and_flush().
5931
5932 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5933
5934 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5935 (float32_type_node, float64_type_node, float32x_type_node)
5936 (float128x_type_node): New macros.
5937 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5938 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5939 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5940 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5941 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5942 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5943 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5944 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5945 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5946 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5947 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5948 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5949 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5950 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5951 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5952 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5953 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5954 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5955 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5956 and copysign.
5957 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5958 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5959 * doc/extend.texi (Other Builtins): Document these built-in
5960 functions.
5961 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5962 for nan and nans.
5963
5964 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5965
5966 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5967
5968 2016-08-22 Richard Biener <rguenther@suse.de>
5969
5970 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5971
5972 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5973
5974 PR target/77270
5975 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5976 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5977 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5978
5979 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5980
5981 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5982 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5983 (vrp_visit_switch_stmt): Likewise.
5984 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5985 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5986 (vrp_visit_stmt): Use extract_range_from_stmt.
5987 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5988
5989 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5990
5991 * Makefile.in: Add tree-vrp.h to GTFILES.
5992 * gengtype.c (open_base_files): Add tree-vrp.h.
5993 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5994 * builtins.c: Likewise.
5995 * fold-const.c: Likewise.
5996 * gimple-builder.c: Likewise.
5997 * gimple-laddress.c: Likewise.
5998 * hsa-gen.c: Likewise.
5999 * internal-fn.c: Likewise.
6000 * ssa.h: Likewise.
6001 * targhooks.c: Liewise,
6002 * tree-ssa-address.c: Likewise.
6003 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
6004 * tree-vrp.c (struct value_range): Move to tree-vrp.h
6005 * tree-vrp.h: New file.
6006
6007 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
6008
6009 PR tree-optimization/61839
6010 * tree-vrp.c (two_valued_val_range_p): New.
6011 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
6012 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
6013 Also Convert VAR BINOP CST where VAR is two-valued to
6014 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
6015
6016 2016-08-19 David Malcolm <dmalcolm@redhat.com>
6017
6018 * diagnostic-show-locus.c
6019 (layout::annotation_line_showed_range_p): New method.
6020 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
6021 Reimplement case fixit_hint::REPLACE to cover removals, and
6022 replacements where the range of the replacement isn't one
6023 of the ranges in the rich_location.
6024 (test_one_liner_fixit_replace): Likewise.
6025 (selftest::test_one_liner_fixit_replace_non_equal_range): New
6026 function.
6027 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
6028 New function.
6029 (selftest::test_diagnostic_show_locus_one_liner): Call the new
6030 functions.
6031 * diagnostic.c (print_parseable_fixits): Remove case
6032 fixit_hint::REMOVE.
6033
6034 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
6035
6036 PR target/77270
6037 * config/i386/i386.c (ix86_option_override_internal): Remove
6038 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
6039 Enable SSE prefetch also for TARGET_PREFETCHWT1.
6040 Do not try to enable TARGET_PRFCHW ISA flag here.
6041 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
6042 Rewrite expander function body.
6043 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
6044
6045 2016-08-19 Joseph Myers <joseph@codesourcery.com>
6046
6047 PR c/32187
6048 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
6049 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
6050 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
6051 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
6052 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
6053 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
6054 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
6055 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
6056 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
6057 tree_index values.
6058 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
6059 macros.
6060 (struct floatn_type_info): New structure type.
6061 (floatn_nx_types): New variable declaration.
6062 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
6063 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
6064 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
6065 * tree.c (floatn_nx_types): New variable.
6066 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
6067 corresponding complex types.
6068 * target.def (floatn_mode): New hook.
6069 * targhooks.c: Include "real.h".
6070 (default_floatn_mode): New function.
6071 * targhooks.h (default_floatn_mode): New prototype.
6072 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
6073 types.
6074 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
6075 effective-target and dg-add-options keywords.
6076 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
6077 Document new effective-target keywords.
6078 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
6079 * doc/tm.texi: Regenerate.
6080 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
6081 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
6082 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
6083 18661-3.
6084 * real.h (struct real_format): Add field ieee_bits.
6085 * real.c (ieee_single_format, mips_single_format)
6086 (motorola_single_format, spu_single_format, ieee_double_format)
6087 (mips_double_format, motorola_double_format)
6088 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
6089 (ieee_extended_intel_128_format)
6090 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
6091 (mips_extended_format, ieee_quad_format, mips_quad_format)
6092 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
6093 (decimal_double_format, decimal_quad_format, ieee_half_format)
6094 (arm_half_format, real_internal_format: Initialize ieee_bits
6095 field.
6096 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
6097 float128_type_node. Set float80_type_node to float64x_type_node
6098 if appropriate and long_double_type_node not appropriate.
6099 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
6100 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
6101 Initialize ieee_bits field.
6102 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
6103 (rs6000_init_builtins): Set ieee128_float_type_node to
6104 float128_type_node.
6105 (rs6000_floatn_mode): New function.
6106
6107 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6108
6109 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6110 _rdseed64_step): Uglify argument names and/or local variable names
6111 in inline functions.
6112 * config/i386/rtmintrin.h (_xabort): Likewise.
6113 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
6114 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
6115 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
6116 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
6117 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
6118 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
6119 _mm_maskz_ternarylogic_epi32): Likewise.
6120 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
6121 __lwpins32, __lwpins64): Likewise.
6122 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
6123 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
6124 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
6125 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
6126 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
6127 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
6128 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
6129 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
6130 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
6131 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
6132 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
6133 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
6134 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
6135 _mm256_mask_i64gather_epi32): Likewise.
6136 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6137 * config/i386/ia32intrin.h (__writeeflags): Likewise.
6138 * config/i386/pkuintrin.h (_wrpkru): Likewise.
6139 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
6140 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
6141 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
6142 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
6143 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
6144 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
6145 _mm512_mask_prefetch_i64scatter_ps): Likewise.
6146 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6147 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
6148 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
6149 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
6150 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
6151 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
6152 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
6153 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
6154
6155 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
6156 returning void.
6157 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
6158 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
6159 Likewise.
6160 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
6161 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
6162 function name.
6163 (_rdpkru_u32): Add space after function name.
6164
6165 * config/i386/t-i386 (i386-c.o): Don't depend on
6166 i386-builtin-types.inc.
6167 (i386.o): Depend on i386-builtin-types.inc.
6168
6169 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
6170
6171 PR target/77281
6172 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
6173 Use const_vec_duplicate to check for duplicated elements.
6174
6175 2016-08-19 Richard Biener <rguenther@suse.de>
6176
6177 PR tree-optimization/77290
6178 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6179 Fix flag_tree_parallelize_loops check.
6180
6181 2016-08-19 Richard Biener <rguenther@suse.de>
6182
6183 * match.pd (x | 0 -> x): Add.
6184
6185 2016-08-19 Richard Biener <rguenther@suse.de>
6186
6187 PR tree-optimization/77286
6188 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6189 Deal with virtual PHIs being out-of-order.
6190
6191 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6192
6193 * doc/invoke.texi (fverbose-asm): Note that source code lines
6194 are emitted, and provide an example.
6195 * final.c (asm_show_source): New function.
6196 (final_scan_insn): Call asm_show_source.
6197
6198 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6199
6200 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
6201 param with diagnostic_kind.
6202 (class colorizer): Similarly replace field m_diagnostic with
6203 m_diagnostic_kind.
6204 (colorizer::colorizer): Replace diagnostic
6205 param with diagnostic_kind.
6206 (colorizer::begin_state): Update for above field change.
6207 (layout::layout): Replace diagnostic param with rich_location *
6208 and diagnostic_kind.
6209 (diagnostic_show_locus): Replace diagnostic param with richloc
6210 and diagnostic_kind.
6211 (class selftest::test_diagnostic_context): New class.
6212 (selftest::test_diagnostic_show_locus_unknown_location): New
6213 function.
6214 (selftest::test_one_liner_simple_caret): New function.
6215 (selftest::test_one_liner_caret_and_range): New function.
6216 (selftest::test_one_liner_multiple_carets_and_ranges): New
6217 function.
6218 (selftest::test_one_liner_fixit_remove): New function.
6219 (selftest::test_one_liner_fixit_replace): New function.
6220 (selftest::test_diagnostic_show_locus_one_liner): New function.
6221 (selftest::diagnostic_show_locus_c_tests): Call the new test
6222 functions.
6223 * diagnostic.c (diagnostic_initialize): Initialize
6224 colorize_source_p, show_ruler_p and parseable_fixits_p.
6225 (default_diagnostic_finalizer): Update for change to
6226 diagnostic_show_locus.
6227 (diagnostic_append_note): Likewise.
6228 * diagnostic.h (diagnostic_show_locus): Replace
6229 const diagnostic_info * param with location * and diagnostic_t.
6230
6231 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6232
6233 * input.c (saved_line_table): New global.
6234 (class selftest::temp_line_table): Rename to line_table_test and
6235 move declaration to selftest.h, and drop field m_old_line_table.
6236 (selftest::temp_line_table::temp_line_table): Rename ctor to...
6237 (selftest::line_table_test::line_table_test): ...this. Add a
6238 default ctor. Store current value of line_table within
6239 saved_line_table.
6240 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
6241 (selftest::line_table_test::~line_table_test): ...this, and
6242 restore line_table from the saved_line_table, rather than
6243 m_old_line_table.
6244 (selftest::test_accessing_ordinary_linemaps): Update for above
6245 renaming.
6246 (selftest::test_lexer): Likewise.
6247 (struct selftest::lexer_test): Likewise.
6248 (selftest::lexer_test::lexer_test): Likewise.
6249 (selftest::input_c_tests): Move the looping over test cases from
6250 here into...
6251 (selftest::for_each_line_table_case): New function.
6252 * input.h (saved_line_table): New decl.
6253 * selftest.h (struct selftest::line_table_case): New forward decl.
6254 (class selftest::line_table_test): New class, moved here from
6255 selftest::temp_line_table in input.c, and renamed.
6256 (selftest::for_each_line_table_case): New decl.
6257
6258 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
6259
6260 PR target/72839
6261 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6262
6263 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6264
6265 PR middle-end/70895
6266 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
6267 enclosing parallel construct for reduction variables on OpenACC loop
6268 directives.
6269
6270 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
6271
6272 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
6273 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
6274 -gdwarf-3.
6275 (function_to_dwarf_procedure): Update comment.
6276
6277 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6278
6279 * input.c (diagnostics_file_cache_forcibly_evict_file): New
6280 function.
6281 * input.h (diagnostics_file_cache_forcibly_evict_file): New
6282 declaration.
6283 * selftest.c (selftest::temp_source_file::~temp_source_file):
6284 Evict m_filename from the diagnostic file cache.
6285
6286 2016-08-18 Richard Biener <rguenther@suse.de>
6287
6288 * tree-pass.h (make_pass_materialize_all_clones): Declare.
6289 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
6290 make_pass_materialize_all_clones): New simple IPA pass encapsulating
6291 clone materialization.
6292 * passes.def (all_late_ipa_passes): Start with
6293 pass_materialize_all_clones.
6294 * cgraphunit.c (symbol_table::compile): Remove call to
6295 materialize_all_clones.
6296 * tree-into-ssa.c: Include statistics.h.
6297 (update_ssa): Count number of times we do incremental/rewrite
6298 SSA update.
6299
6300 2016-08-18 Richard Biener <rguenther@suse.de>
6301
6302 PR tree-optimization/77282
6303 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6304 When doing auto-parallelizing also prevent use of PHIs that
6305 carry dependences across loop backedges.
6306
6307 2016-08-18 Tamar Christina <tamar.christina@arm.com>
6308 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6309
6310 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
6311
6312 2016-08-18 Richard Biener <rguenther@suse.de>
6313
6314 * ssa-iterators.h (ssa_vuse_operand): New inline.
6315 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
6316 (predicate_all_scalar_phis): Use remove_phi_node to remove
6317 phi nodes predicated. Delay removing virtual PHIs.
6318 (predicate_mem_writes): Update virtual operands.
6319 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
6320 (tree_if_conversion): Do not rewrite virtual SSA form.
6321 * tree-phinodes.c (release_phi_node): Make static.
6322 * tree-phinodes.h (release_phi_node): Remove.
6323
6324 2016-08-18 Jakub Jelinek <jakub@redhat.com>
6325
6326 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
6327 codes that appear in bdesc_* arrays, instead include i386-builtin.def
6328 twice to define those.
6329 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
6330 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
6331 bdesc_multi_arg): Define by including i386-builtin.def the third time.
6332 * config/i386/i386-builtin.def: New file.
6333
6334 2016-08-17 David Malcolm <dmalcolm@redhat.com>
6335
6336 * input.c (get_source_range_for_char): Rename to...
6337 (selftest::get_source_range_for_char): ...this, and move within
6338 the #if CHECKING_P guard.
6339 (get_num_source_ranges_for_substring): Rename to...
6340 (selftest::get_num_source_ranges_for_substring): ...this, move
6341 within the #if CHECKING_P guard, and make static.
6342 (selftest::assert_num_substring_ranges): Initialize
6343 actual_num_ranges.
6344
6345 2016-08-18 Alan Modra <amodra@gmail.com>
6346
6347 PR rtl-optimization/72771
6348 * reload.c (find_reloads): Don't assume that a subreg mem is OK
6349 when find_reloads_toplev returns address_reloaded==-1.
6350 (alternative_allows_const_pool_ref): Update comment.
6351
6352 2015-08-17 Alan Hayward <alan.hayward@arm.com>
6353
6354 PR tree-optimization/71752
6355 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
6356 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
6357
6358 2016-08-17 Jakub Jelinek <jakub@redhat.com>
6359
6360 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
6361 instead of testing ECF_NORETURN bit in gimple_call_flags.
6362 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
6363 * predict.c (tree_bb_level_predictions): Likewise.
6364 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
6365
6366 PR middle-end/77259
6367 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
6368 turning a call into __builtin_unreachable-like noreturn call, adjust
6369 gimple_call_set_fntype.
6370 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
6371 gimple_call_fntype has void return type.
6372
6373 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
6374
6375 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
6376 maybe_lookup_decl, to handle nested acc loop directives.
6377
6378 2016-08-17 Richard Biener <rguenther@suse.de>
6379
6380 PR tree-optimization/76490
6381 * tree-vrp.c (update_value_range): Preserve overflow infinities
6382 when intersecting with ranges from get_range_info.
6383 (operand_less_p): Handle overflow infinities correctly.
6384 (value_range_constant_singleton): Use vrp_operand_equal_p
6385 to handle overflow max/min correctly.
6386 (vrp_valueize): Likewise.
6387 (union_ranges): Likewise.
6388 (intersect_ranges): Likewise.
6389 (vrp_visit_phi_node): Improve iteration limitation to only
6390 apply when we'll possibly re-visit the PHI via a changed argument
6391 on the backedge.
6392
6393 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6394
6395 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
6396 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
6397 rather than those that should not be built.
6398
6399 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
6400
6401 PR target/66488
6402 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
6403
6404 2016-08-17 Richard Biener <rguenther@suse.de>
6405
6406 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
6407 (verify_vssa): New function verifying virtual SSA form.
6408 (verify_ssa): Call it.
6409 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
6410 Do not apply loop-closed SSA handling to virtuals.
6411 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
6412 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
6413 when rewriting their symbol.
6414 (prepare_def_site_for): Likewise.
6415 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
6416 operands of moved stmts.
6417
6418 2016-08-17 Richard Biener <rguenther@suse.de>
6419
6420 PR tree-optimization/23855
6421 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
6422 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
6423 find guards to hoist. Do not update SSA form but rewrite virtuals
6424 into loop closed SSA.
6425 (find_loop_guard): Adjust to skip already hoisted guards. Do
6426 not mark virtuals for renaming or update SSA form.
6427
6428 2016-08-17 Martin Liska <mliska@suse.cz>
6429
6430 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
6431 a LONG_LONG_TYPE_SIZE comparison.
6432 * gcov-io.h: Remove macro definitions.
6433 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
6434 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
6435 comparison.
6436
6437 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6438
6439 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
6440 that builtins not mentioned in bdesc_* arrays come first, then
6441 the ones mentioned in bdesc_* arrays in the order they appear in
6442 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
6443 IX86_BUILTIN__BDESC_*_LAST enumerator.
6444 (bdesc_mpx): Fix up a comment typo.
6445 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
6446 __builtin_ia32_vpcomneu[bwdq] builtins.
6447 (BDESC_VERIFY, BDESC_VERIFYS): Define.
6448 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
6449 enum ix86_builtins ordering.
6450 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
6451 for direct bdesc_* array member access instead of searching all the
6452 arrays until an fcode match is found.
6453
6454 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
6455
6456 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
6457 pattern as define_insn_and_split. Split insn before reload to
6458 ashl<mode>3_1.
6459 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
6460 <shift_insn><mode>3_1.
6461 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
6462 <rotate_insn><mode>3_1.
6463
6464 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6465
6466 PR c/72857
6467 * input.c (get_source_range_for_substring): Rename to...
6468 (get_source_location_for_substring): ...this, adding param
6469 "caret_idx", and converting output param from source_range * to
6470 location_t *.
6471 (get_source_range_for_char): New function.
6472 (get_num_source_ranges_for_substring): Update comment to reflect
6473 above renaming.
6474 (assert_char_at_range): Update to use get_source_range_for_char
6475 rather than get_source_range_for_substring.
6476 (test_lexer_string_locations_concatenation_2): Likewise.
6477 * substring-locations.h (get_source_range_for_substring): Rename
6478 to...
6479 (get_source_location_for_substring): ...this, and adding param
6480 "caret_idx", and converting output param from source_range * to
6481 location_t *.
6482
6483 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6484
6485 * input.c (class selftest::temp_source_file): Move to
6486 selftest.h.
6487 (selftest::temp_source_file::temp_source_file): Move to
6488 selftest.c.
6489 (selftest::temp_source_file::~temp_source_file): Likewise.
6490 * selftest.c (selftest::temp_source_file::temp_source_file): Move
6491 here from input.c.
6492 (selftest::temp_source_file::~temp_source_file): Likewise.
6493 * selftest.h (class selftest::temp_source_file): Move here from
6494 input.c
6495
6496 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6497
6498 PR target/71910
6499 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
6500 inlining, add cgraph edge for the added __builtin_unreachable call.
6501
6502 PR middle-end/67485
6503 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
6504 only cast it to SHWI for the final comparison.
6505
6506 2016-08-16 Martin Liska <mliska@suse.cz>
6507
6508 PR gcov-profile/36412
6509 * doc/gcov.texi: Document --hash-filenames(-x).
6510 * gcov.c (print_usage): Add the option.
6511 (process_args): Process the option, sort options alphabetically.
6512 (md5sum_to_hex): New function.
6513 (make_gcov_file_name): Do the md5sum and append it to a
6514 filename.
6515
6516 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6517
6518 PR tree-optimization/69848
6519 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
6520 and swtich operands to avoid additional NOT instruction.
6521 (vcond<v_cmp_mixed><mode>): Ditto.
6522 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6523
6524 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
6525
6526 * doc/install.texi (*-*-solaris2*): Adjust latest change.
6527
6528 2016-08-16 Richard Biener <rguenther@suse.de>
6529
6530 PR tree-optimization/76783
6531 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
6532 BB visited flags at start.
6533
6534 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6535
6536 PR tree-optimization/72817
6537 PR tree-optimization/73450
6538 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
6539 multiple_of_p for adjusted IV.base.
6540
6541 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
6542
6543 PR target/72867
6544 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
6545 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
6546 for !flag_finite_math_only or flag_signed_zeros.
6547 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
6548 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
6549 depend on flag_finite_math_only.
6550 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6551 New insn pattern.
6552 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
6553 (*ieee_smin<mode>3): Ditto.
6554 (*ieee_smax<mode>3): Ditto.
6555 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
6556 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
6557 flag_signed_zeros.
6558 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
6559 depend on flag_finite_math_only.
6560 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
6561 (*mmx_<code>v2sf3): Remove.
6562 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
6563 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
6564 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
6565
6566 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
6567
6568 PR rtl-optimization/73650
6569 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
6570 it is not a simple move.
6571
6572 2016-08-15 Martin Liska <mliska@suse.cz>
6573
6574 PR driver/72765
6575 * gcc.c (do_spec_1): Call save_string with the right size.
6576 (save_string): Do an assert about string we copy.
6577
6578 2016-08-15 Richard Biener <rguenther@suse.de>
6579
6580 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
6581 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
6582 TV_MACH_DEP.
6583 (pass_data_stv): Likewise.
6584
6585 2016-08-15 Richard Biener <rguenther@suse.de>
6586
6587 PR tree-optimization/73434
6588 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
6589 TBAA info on the base when forwarding a non-invariant address.
6590
6591 2016-08-15 Jakub Jelinek <jakub@redhat.com>
6592
6593 * dwarf2out.c (struct checksum_attributes): Add
6594 at_string_length_bit_size and at_string_length_byte_size fields.
6595 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
6596 and DW_AT_string_length_byte_size.
6597 (die_checksum_ordered): Handle at_string_length_bit_size and
6598 at_string_length_byte_size.
6599 (gen_array_type_die): For dwarf_version >= 5 emit
6600 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6601 (adjust_string_types): For dwarf_version >= 5 remove
6602 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6603 (resolve_addr): Likewise.
6604
6605 PR debug/71906
6606 * dwarf2out.c (string_types): New variable.
6607 (gen_array_type_die): Change early_dwarf handling of
6608 DW_AT_string_length, create DW_OP_call4 referencing the
6609 length var temporarily. Handle parameters that are pointers
6610 to string length.
6611 (adjust_string_types): New function.
6612 (gen_subprogram_die): Temporarily set string_types to local var,
6613 call adjust_string_types if needed.
6614 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
6615 New functions.
6616 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
6617
6618 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
6619
6620 * doc/install.texi (*-*-solaris2*): Fix version number and document
6621 requirement on GNU make for building libjava with the Solaris linker.
6622
6623 2016-08-15 Martin Liska <mliska@suse.cz>
6624 Jakub Jelinek <jakub@redhat.com>
6625
6626 PR tree-optimization/72824
6627 * tree-loop-distribution.c (const_with_all_bytes_same)
6628 <case VECTOR_CST>: Fix a typo.
6629
6630 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
6631
6632 PR target/76342
6633 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
6634 Renamed from _mm512_undefined_si512.
6635 (_mm_undefined_si512): New definition.
6636
6637 2016-08-13 Richard Biener <rguenther@suse.de>
6638
6639 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
6640 into PHIs and update the lattice for its def.
6641
6642 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6643
6644 PR c/71512
6645 * ubsan.c (instrument_si_overflow): Pass true instead of false
6646 to gsi_replace.
6647 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
6648 of bbs. Return TODO_cleanup_cfg if any returned true.
6649
6650 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6651
6652 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
6653 ISA 3.0 MTVSRDD instruction.
6654 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
6655 vecperm.
6656
6657 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
6658
6659 PR tree-optimization/71083
6660 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
6661 bitfield access when possible.
6662
6663 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
6664
6665 PR middle-end/71654
6666 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
6667 sign-changing cast from a shorter unsigned type to a wider
6668 signed type.
6669
6670 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6671
6672 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6673 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6674 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6675
6676 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6677
6678 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6679 Correct costs for vec_construct.
6680
6681 2016-08-12 Bin Cheng <bin.cheng@arm.com>
6682
6683 PR tree-optimization/69848
6684 * tree-vectorizer.h (enum vect_def_type): New condition reduction
6685 type CONST_COND_REDUCTION.
6686 * tree-vect-loop.c (vectorizable_reduction): Support new condition
6687 reudction type CONST_COND_REDUCTION.
6688
6689 2016-08-12 Richard Biener <rguenther@suse.de>
6690
6691 PR tree-optimization/57326
6692 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6693 returning an SSA name.
6694 (phi_translate_1): When fully_constant_expression returns a NAME
6695 make sure we have a leader for it.
6696
6697 2016-08-12 Martin Liska <mliska@suse.cz>
6698 Adam Fineman <afineman@afineman.com>
6699
6700 * gcov.c (process_file): Create .gcov file when .gcda
6701 file is missing.
6702
6703 2016-08-12 Marek Polacek <polacek@redhat.com>
6704
6705 PR c/7652
6706 * alias.c (find_base_value): Adjust fall through comment.
6707 * cfgexpand.c (expand_debug_expr): Likewise.
6708 * combine.c (find_split_point): Likewise.
6709 (expand_compound_operation): Likewise. Add FALLTHRU.
6710 (make_compound_operation): Adjust fall through comment.
6711 (canon_reg_for_combine): Add FALLTHRU.
6712 (force_to_mode): Adjust fall through comment.
6713 (simplify_shift_const_1): Likewise.
6714 (simplify_comparison): Likewise.
6715 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6716 FALLTHRU.
6717 * config/aarch64/predicates.md: Likewise.
6718 * config/i386/i386.c (function_arg_advance_32): Likewise.
6719 (ix86_gimplify_va_arg): Likewise.
6720 (print_reg): Likewise.
6721 (ix86_print_operand): Likewise.
6722 (ix86_build_const_vector): Likewise.
6723 (ix86_expand_branch): Likewise.
6724 (ix86_sched_init_global): Adjust fall through comment.
6725 (ix86_expand_args_builtin): Add FALLTHRU.
6726 (ix86_expand_builtin): Likewise.
6727 (ix86_expand_vector_init_one_var): Likewise.
6728 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6729 (rs6000_adjust_cost): Likewise.
6730 (insn_must_be_first_in_group): Likewise.
6731 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
6732 * dbxout.c (dbxout_symbol): Adjust fall through comment.
6733 * df-scan.c (df_uses_record): Likewise.
6734 * dojump.c (do_jump): Add FALLTHRU.
6735 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
6736 comment.
6737 (resolve_args_picking_1): Adjust fall through comment.
6738 (loc_list_from_tree_1): Likewise.
6739 * expmed.c (make_tree): Likewise.
6740 * expr.c (expand_expr_real_2): Add FALLTHRU.
6741 (expand_expr_real_1): Likewise. Adjust fall through comment.
6742 * fold-const.c (const_binop): Adjust fall through comment.
6743 (fold_truth_not_expr): Likewise.
6744 (fold_cond_expr_with_comparison): Add FALLTHRU.
6745 (fold_binary_loc): Likewise.
6746 (contains_label_1): Adjust fall through comment.
6747 (multiple_of_p): Likewise.
6748 * gcov-tool.c (process_args): Add FALLTHRU.
6749 * genattrtab.c (check_attr_test): Likewise.
6750 (write_test_expr): Likewise.
6751 * genconfig.c (walk_insn_part): Likewise.
6752 * genpreds.c (validate_exp): Adjust fall through comment.
6753 (needs_variable): Likewise.
6754 * gensupport.c (get_alternatives_number): Add FALLTHRU.
6755 (subst_dup): Likewise.
6756 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6757 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6758 (gimplify_scan_omp_clauses): Add FALLTHRU.
6759 (goa_stabilize_expr): Likewise.
6760 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6761 through comment.
6762 * hsa-gen.c (get_address_from_value): Likewise.
6763 * ipa-icf.c (sem_function::hash_stmt): Likewise.
6764 * ira.c (ira_setup_alts): Add FALLTHRU.
6765 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6766 comment.
6767 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6768 * opts.c (common_handle_option): Likewise.
6769 * read-rtl.c (read_rtx_code): Likewise.
6770 * real.c (round_for_format): Likewise.
6771 * recog.c (asm_operand_ok): Likewise.
6772 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6773 * reload1.c (set_label_offsets): Likewise.
6774 (eliminate_regs_1): Likewise.
6775 (reload_reg_reaches_end_p): Likewise.
6776 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6777 (rtx_cost): Likewise.
6778 * sched-rgn.c (is_exception_free): Likewise.
6779 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6780 * stor-layout.c (int_mode_for_mode): Likewise.
6781 * toplev.c (print_to_asm_out_file): Likewise.
6782 (print_to_stderr): Likewise.
6783 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6784 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6785 (chrec_fold_multiply): Likewise.
6786 (evolution_function_is_invariant_rec_p): Likewise.
6787 (for_each_scev_op): Likewise.
6788 * tree-data-ref.c (siv_subscript_p): Likewise.
6789 (get_references_in_stmt): Likewise.
6790 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6791 (substitute_in_expr): Likewise.
6792 (type_cache_hasher::equal): Likewise.
6793 (walk_type_fields): Likewise.
6794 * var-tracking.c (adjust_mems): Add FALLTHRU.
6795 (set_dv_changed): Adjust fall through comment.
6796 * varasm.c (default_function_section): Add FALLTHRU.
6797
6798 2016-08-12 Marek Polacek <polacek@redhat.com>
6799
6800 PR c/7652
6801 * tree-complex.c (expand_complex_division): Add missing break.
6802
6803 2016-08-12 Richard Biener <rguenther@suse.de>
6804
6805 * passes.c (execute_todo): Do not push/pop TV_TODO.
6806 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6807 (execute_one_pass): Likewise.
6808 * common.opt (ftime-report-details): New switch.
6809 * doc/invoke.texi (ftime-report-details): Document.
6810 * timevar.h (timer::print_row): Adjust signature.
6811 (timer::all_zero): New static helper.
6812 (timer::child_map_t): New typedef.
6813 (timer::time_var_def): Add children field.
6814 * timevar.c (timer::named_items::print): Adjust.
6815 (timer::~timer): Free timevar recorded children.
6816 (timer::pop_internal): When -ftime-report-details record
6817 time spent in sub-timevars.
6818 (timer::print_row): Adjust.
6819 (timer::print): Print sub-timevar stats, use all_zero.
6820 * timevar.def (TV_TODO): Remove.
6821
6822 2016-08-12 Richard Biener <rguenther@suse.de>
6823
6824 PR tree-optimization/72851
6825 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6826 worklists to use bitmaps indexed in execution order.
6827 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6828 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6829 (cfg_blocks): Make a bitmap.
6830 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6831 New globals.
6832 (cfg_blocks_empty_p): Adjust.
6833 (cfg_blocks_add): Likewise.
6834 (cfg_blocks_get): Likewise.
6835 (add_ssa_edge): Likewise.
6836 (add_control_edge): Likewise.
6837 (simulate_stmt): Likewise.
6838 (process_ssa_edge_worklist): Likewise.
6839 (simulate_block): Likewise.
6840 (ssa_prop_init): Compute PRE order and stmt UIDs.
6841 (ssa_prop_fini): Adjust.
6842 (ssa_propagate): Adjust.
6843
6844 2016-08-12 Richard Biener <rguenther@suse.de>
6845
6846 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6847 the currently executable edges have fixed ranges. Always
6848 go through update_value_range.
6849
6850 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6851
6852 PR debug/63240
6853 * langhooks-def.h
6854 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6855 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6856 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6857 (LANG_HOOKS_DECLS): Add it.
6858 * langhooks.h (struct lang_hooks_for_decls): Add
6859 function_decl_defaulted. Const_tree-ify
6860 function_decl_explicit_p and function_decl_deleted_p.
6861 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6862 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6863 also at strict DWARF v5.
6864
6865 PR debug/55641
6866 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6867 TYPE_QUAL_CONST in reference-typed decls.
6868
6869 PR debug/49366
6870 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6871 in DW_OP_pieces, just enough to handle pointers to member
6872 functions.
6873 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6874 expression on DWARFv5 if a constant value doesn't work.
6875
6876 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6877
6878 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6879 * selftest.c (selftest::test_assertions): New function.
6880 (selftest::selftest_c_tests): New function.
6881 * selftest.h (selftest::selftest_c_tests): New declaration.
6882
6883 2016-08-11 Richard Biener <rguenther@suse.de>
6884 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6885
6886 PR rtl-optimization/72855
6887 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6888
6889 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6890
6891 PR target/72863
6892 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6893 (vsx_store_<mode>): Likewise.
6894
6895 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6896
6897 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6898 TImode CONST_WIDE_INT store.
6899 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6900
6901 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6902
6903 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6904 mode if unaligned SSE load and store are optimal.
6905
6906 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6907
6908 PR tree-optimization/71083
6909 * tree-predcom.c (ref_at_iteration): Correctly align the
6910 reference type.
6911
6912 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6913
6914 * config/s390/s390-builtin-types.def: Add INT128 types.
6915 * config/s390/s390-builtins.def: Add INT128 variants for the add
6916 sub low-level builtins dealing with TImode.
6917 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6918 via subreg when expanding a builtin.
6919 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6920 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6921 Fix comment.
6922 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6923 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6924 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6925 "vacc<bhfgq>_<mode>".
6926 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6927 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6928 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6929 "vscbi<bhfgq>_<mode>".
6930 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6931 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6932
6933 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6934
6935 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6936
6937 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6938
6939 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6940 unused declaration.
6941 (vcond<v_cmp_mixed><mode>): Ditto.
6942 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6943
6944 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6945
6946 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6947 variable explicitly, also assert on it before use.
6948
6949 2016-08-11 Richard Biener <rguenther@suse.de>
6950
6951 PR tree-optimization/72772
6952 * cfgloopmanip.c (create_preheader): Use split_edge if there
6953 is a single loop entry, avoiding degenerate PHIs.
6954
6955 2016-08-11 Richard Biener <rguenther@suse.de>
6956
6957 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6958 unconditional TODO_cleanup_cfg.
6959 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6960 cleanup only if we threaded a jump.
6961
6962 2016-08-11 Alan Modra <amodra@gmail.com>
6963
6964 PR target/71680
6965 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6966 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6967 slow. Emit two reloads for slow mem case, first loading in
6968 fast innermode, then converting to required mode.
6969
6970 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6971
6972 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6973 (vec_extract_sig): New macro.
6974 (vec_insert_exp): New macro.
6975 (vec_test_data_class): New macro.
6976 (scalar_extract_exp): New macro.
6977 (scalar_extract_sig): New macro.
6978 (scalar_insert_exp): New macro.
6979 (scalar_test_data_class): New macro.
6980 (scalar_test_neg): New macro.
6981 (scalar_cmp_exp_gt): New macro.
6982 (scalar_cmp_exp_lt): New macro.
6983 (scalar_cmp_exp_eq): New macro.
6984 (scalar_cmp_exp_unordered): New macro.
6985 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6986 to enforce constraint that operand is a 7-bit unsigned literal.
6987 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6988 for power9 built-ins.
6989 (BU_P9V_VSX_2): Likewise.
6990 (BU_P9V_64BIT_VSX_2): Likewise.
6991 (VSEEDP): Add scalar extract exponent support.
6992 (VSEESP): Add scalar extract signature support.
6993 (VSTDCNDP): Add scalar test negative support.
6994 (VSTDCNSP): Likewise.
6995 (VSIEDP): Add scalar insert exponent support.
6996 (VSCEDPGT): Add scalar compare exponent greater than support.
6997 (VSCEDPLT): Add scalar compare exponent less than support.
6998 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6999 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
7000 (VSTDCDP): Add scalar test data class support.
7001 (VSTDCSP): Likewise.
7002 (VSEEDP): Add overload support for scalar extract exponent
7003 operation.
7004 (VSESDP): Add overload support for scalar extract signature
7005 operation.
7006 (VSTDCN): Add overload support for scalar test negative
7007 operation.
7008 (VSTDCNDP): Add overload support for scalar test negative
7009 operation.
7010 (VSTDCNSP): Add overload support for scalar test negative
7011 operation.
7012 (VSIEDP): Add overload support for scalar insert exponent
7013 operation.
7014 (VSTDC): Add overload support for scalar test data class
7015 operation.
7016 (VSTDCDP): Add overload support for scalar test data class
7017 operation.
7018 (VSTDCSP): Add overload support for scalar test data class
7019 opreation.
7020 (VSCEDPGT): Add overload support for scalar compare exponent
7021 greater than operation.
7022 (VSCEDPLT): Add overload support for scalar compare exponent
7023 less than operation.
7024 (VSCEDPEQ): Add overload support for scalar compare exponent
7025 test-for-equality operation.
7026 (VSCEDPUO): Add overload support for scalar compare exponent
7027 test-for-unordered operation.
7028 (VEEDP): Add vector extract exponent support.
7029 (VEESP): Likewise.
7030 (VESDP): Add vector extract significand support.
7031 (VESSP): Likewise.
7032 (VIEDP): Add vector insert exponent support.
7033 (VIESP): Likewise.
7034 (VTDCDP): Add vector test data class support.
7035 (VTDCSP): Likewise.
7036 (VES): Add overload support for vector extract significand operation.
7037 (VESDP): Likewise.
7038 (VESSP): Likewise
7039 (VEE): Add overload support for vector extract exponent operation.
7040 (VEEDP): Likewise.
7041 (VEESP): Likewise.
7042 (VTDC): Add overload support for vector test data class operation.
7043 (VTDCDP): Likewise.
7044 (VTDCSP): Likewise.
7045 (VIE): Add overload support for vector insert exponent operation.
7046 (VIEDP): Likewise.
7047 (VIESP): Likewise.
7048 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7049 overloaded binary floating point functions.
7050 (altivec_resolve_overloaded_builtin): Improve error messages to
7051 distinguish between functions not supported in the current
7052 compiler configuration and functions that were invoked with an
7053 invalid parameter combination, and include the built-in function
7054 name in both error messages.
7055 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
7056 New prototype.
7057 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
7058 function.
7059 (rs6000_expand_binop_builtin): Add check to enforce that argument
7060 2 of the test data class operations is a 7-bit unsigned literal.
7061 (rs6000_invalid_builtin): Add code to issue an error message if a
7062 built-in function that requires the power9_vector and -m32
7063 command-line options is compiled without these options.
7064 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
7065 (UNSPEC_VSX_SXSIGDP): New value.
7066 (UNSPEC_VSX_SXSIGPDP): New value.
7067 (UNSPEC_VSX_SIEXPDP): New value.
7068 (UNSPEC_VSX_SCMPEXPDP): New value.
7069 (UNSPEC_VSX_STSTDC): New value.
7070 (UNSPEC_VSX_VXEXP): New value.
7071 (UNSPEC_VSX_VXSIG): New value.
7072 (UNSPEC_VSX_VIEXP): New value.
7073 (UNSPEC_VSX_VTSTDC): New value.
7074 (xsxexpdp): New insn for scalar extract exponent.
7075 (xsxsigdp): New insn for scalar extract significand.
7076 (xsiexpdp): New insn for scalar insert exponent.
7077 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
7078 (*xscmpexpdp): New insn for scalar compare exponents.
7079 (xststdc<Fvsx): New expansion for both single- and
7080 double-precision scalar test data class operations.
7081 (xststdcneg<Fvsx>): New expansion for both single- and
7082 double-precision scalar test for negative value operations.
7083 (*xststdc<Fvsx>): New insn for scalar test data class
7084 operation.
7085 (xvxexp<VSs>): New insn for single- and double-precision
7086 vector extract exponent operation.
7087 (xvxsig<VSs>): New insn for single- and double-precision
7088 vector extract significand operation.
7089 (xviexp<VSs>): New insn for single- and double-precision
7090 vector insert exponent operation.
7091 (xvtstdc<VSs>): New insn for single- and double-precision
7092 vector test data class operation.
7093 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7094 built-in functions to represent the Power9 binary floating-point
7095 support instructions.
7096
7097 2016-08-10 bin cheng <bin.cheng@arm.com>
7098
7099 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
7100
7101 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7102 Renlin Li <renlin.li@arm.com>
7103 Bin Cheng <bin.cheng@arm.com>
7104
7105 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
7106 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
7107 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
7108 (aarch64_vcond_internal<mode><mode>): Delete pattern.
7109 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
7110 (vcond<v_cmp_result><mode>): Ditto.
7111 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
7112 (vcondu<mode><mode>): Ditto.
7113 (vcond<v_cmp_mixed><mode>): New pattern.
7114 (vcondu<mode><v_cmp_mixed>): New pattern.
7115 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
7116 of aarch64_vcond_internal.
7117
7118 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7119 Renlin Li <renlin.li@arm.com>
7120 Bin Cheng <bin.cheng@arm.com>
7121
7122 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
7123 (vec_cmp<mode><v_cmp_result>): New pattern.
7124 (vec_cmpu<mode><mode>): New pattern.
7125 (vcond_mask_<mode><v_cmp_result>): New pattern.
7126
7127 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7128
7129 PR tree-optimization/71734
7130 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
7131 REF_LOOP, invoke ref_indep_loop_p_1.
7132 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
7133 to ref_indep_loop_p.
7134 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
7135 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
7136 is inside LOOP, do not cache dpendence value for loops with
7137 non-zero SAFELEN.
7138 (ref_indep_loop_p_2): Delete function.
7139 (can_sm_ref_p): Pass LOOP as additional argument to
7140 ref_indep_loop_p.
7141
7142 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7143
7144 PR target/72853
7145 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
7146 being an offsettable address.
7147
7148 2016-08-10 Martin Liska <mliska@suse.cz>
7149
7150 PR gcov-profile/58306
7151 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
7152 atomic variants of profile update functions.
7153
7154 2016-08-10 Martin Liska <mliska@suse.cz>
7155
7156 Cherry picked (and modified) from google-4_7 branch
7157 2012-12-26 Rong Xu <xur@google.com>
7158 * common.opt (fprofile-update): Add new flag.
7159 * coretypes.h: Define enum profile_update.
7160 * doc/invoke.texi: Document -fprofile-update.
7161 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
7162 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
7163 * tree-profile.c (gimple_init_edge_profiler): Generate
7164 also atomic profiler update.
7165 (gimple_gen_edge_profiler): Likewise.
7166
7167 2016-08-10 David Malcolm <dmalcolm@redhat.com>
7168
7169 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
7170 stack_usage_file to NULL after fclose calls.
7171
7172 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7173
7174 PR target/71873
7175 * reload.c (push_reload): Compute subreg_in_class for
7176 subregs of constants and plus expressions. Remove special
7177 handling of SYMBOL_REFs.
7178
7179 2016-08-10 Alan Modra <amodra@gmail.com>
7180
7181 PR target/71680
7182 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
7183 SImode for TARGET_E500_DOUBLE when given SImode.
7184
7185 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
7186
7187 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
7188 unused variable __O.
7189
7190 2016-08-09 Martin Liska <mliska@suse.cz>
7191
7192 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
7193 _gcov_reset to __gcov_reset.
7194 * doc/gcov-tool.texi: Fix typo.
7195
7196 2016-08-09 Martin Liska <mliska@suse.cz>
7197
7198 * value-prof.c (gimple_divmod_values_to_profile): Do not
7199 instrument MOD histogram if a value is not a SSA name.
7200
7201 2016-08-09 Martin Liska <mliska@suse.cz>
7202
7203 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
7204 values.
7205
7206 2016-08-09 Renlin Li <renlin.li@arm.com>
7207
7208 PR middle-end/64971
7209 * calls.c (prepare_call_address): Convert funexp to Pmode when
7210 necessary.
7211 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
7212 (sibcall_value): Likewise.
7213
7214 2016-08-09 Marek Polacek <polacek@redhat.com>
7215
7216 PR c/7652
7217 * cselib.c (cselib_expand_value_rtx_1): Add return.
7218 * gengtype.c (dbgprint_count_type_at): Likewise.
7219 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
7220 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
7221
7222 2016-08-09 Martin Jambor <mjambor@suse.cz>
7223
7224 PR ipa/71981
7225 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
7226 if instance is a MEM_REF.
7227
7228 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
7229
7230 PR target/72843
7231 * config/i386/i386.md (*movtf_internal): Use
7232 lra_in_progress || reload_completed instead of !can_create_pseudo_p
7233 in the insn constraint.
7234 (*movxf_internal): Ditto.
7235 (*movdf_internal): Ditto.
7236 (*movsf_internal): Ditto.
7237
7238 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7239
7240 PR tree-optimization/72772
7241 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7242 for expanded base.
7243
7244 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7245
7246 PR tree-optimization/72772
7247 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
7248 parameter STOP.
7249 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
7250 parameter STOP and update calls. Move expand_simple_operations
7251 function call from here...
7252 (simplify_using_initial_conditions): ...to here. Delete parameter
7253 STOP.
7254 (tree_simplify_using_condition): Delete parameter STOP.
7255 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
7256 simplify_using_initial_conditions.
7257
7258 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
7259
7260 PR c/65345
7261 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
7262 Use create_tmp_var_raw instead of create_tmp_var.
7263
7264 2016-08-09 Richard Biener <rguenther@suse.de>
7265
7266 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
7267 Treat same SSA names related.
7268
7269 2016-08-09 Jakub Jelinek <jakub@redhat.com>
7270
7271 PR tree-optimization/72824
7272 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
7273 real_zerop is not negative.
7274
7275 2016-08-09 Richard Biener <rguenther@suse.de>
7276
7277 PR tree-optimization/71802
7278 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
7279 all merge opportunities with the predecessor.
7280
7281 2016-08-09 Richard Biener <rguenther@suse.de>
7282
7283 PR ipa/68273
7284 * ipa-prop.c (ipa_modify_formal_parameters): Build
7285 parameter types with natural alignment also for the
7286 over-aligned case.
7287
7288 2016-08-08 Andi Kleen <ak@linux.intel.com>
7289
7290 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
7291
7292 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7293
7294 PR c/64955
7295 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
7296 do-nothing langhook.
7297 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
7298 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
7299 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
7300 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
7301
7302 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7303
7304 PR bootstrap/72844
7305 * input.c: Ensure that HAVE_ICONV is defined.
7306
7307 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7308
7309 PR middle-end/72781
7310 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
7311 private vars for lastprivate and for linear iterator.
7312
7313 PR middle-end/68762
7314 * omp-simd-clone.c: Include varasm.h.
7315 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
7316 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
7317 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
7318 update function name.
7319
7320 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7321
7322 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
7323 (avr_diagnose_devicespecs_error): Remove.
7324 (avr_devicespecs_file): Remove composing absolute path for specfile
7325 and its verbose info. Remove conditions to check specs-file,
7326
7327 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7328
7329 PR rtl-optimization/72821
7330 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
7331 just return false for them.
7332
7333 2016-08-08 Alan Modra <amodra@gmail.com>
7334
7335 PR target/72771
7336 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
7337 toc refs created during reload. Update function comment.
7338
7339 2016-08-08 Alan Modra <amodra@gmail.com>
7340
7341 PR target/72802
7342 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
7343 alternatives. Put loads first, then stores, and reg/reg moves
7344 within same class later. Delete attr length.
7345
7346 2016-08-08 Alan Modra <amodra@gmail.com>
7347
7348 PR target/72802
7349 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
7350 (mem_operand_ds_form): New predicate.
7351 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
7352 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
7353 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
7354 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
7355 (extendsfdf2_fpr): Replace o constraint with wY.
7356
7357 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
7358
7359 * tree-ssa-threadbackward.c: Include tree-inline.h
7360 (profitable_jump_thread_path): Use estimate_num_insns to estimate
7361 size of copied block; for cold paths reduce duplication.
7362 (find_jump_threads_backwards): Remove redundant tests.
7363 (pass_thread_jumps::gate): Enable for -Os.
7364
7365 2016-08-07 Jakub Jelinek <jakub@redhat.com>
7366
7367 PR c/72816
7368 * stor-layout.c (layout_decl): Fix up formatting.
7369 (relayout_decl): Allow DECL to be FIELD_DECL.
7370
7371 2016-08-07 Alan Modra <amodra@gmail.com>
7372
7373 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
7374
7375 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7376
7377 * data-streamer-in.c (streamer_read_wide_int): New.
7378 (streamer_read_widest_int): Renamed function.
7379 * data-streamer-out.c (streamer_write_wide_int): New
7380 (streamer_write_widest_int): Renamed function.
7381 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
7382 data-stream-in.c.
7383 (input_cfg): Call renamed function.
7384 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
7385 data-stream-out.c.
7386 (output_cfg): Call renamed function.
7387 * data-streamer.h: Add declarations.
7388
7389 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7390
7391 * tree-ssa-ccp.c (extend_mask): New param sgn.
7392 Remove ORing with wi::mask.
7393 (get_default_value): Adjust call to extend_mask to pass sign.
7394 (evaluate_stmt): Likewise.
7395
7396 2016-08-06 Jakub Jelinek <jakub@redhat.com>
7397
7398 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
7399 INT64_MAX.
7400
7401 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7402
7403 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
7404 transform if operand's type is pointer to function or method.
7405
7406 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7407
7408 PR tree-optimization/18046
7409 * tree-ssa-threadedge.c: Include cfganal.h.
7410 (simplify_control_statement_condition): If simplifying a
7411 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
7412 with the dominating ASSERT_EXPR before handing it off to VRP.
7413 Mention that a CASE_LABEL_EXPR may be returned.
7414 (thread_around_empty_blocks): Adjust to handle
7415 simplify_control_statement_condition() returning a
7416 CASE_LABEL_EXPR.
7417 (thread_through_normal_block): Likewise.
7418 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
7419 a switch statement by trying to determine which case label
7420 will be taken.
7421
7422 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
7423
7424 PR rtl-optimization/69847
7425 * lra-constraints.c (process_invariant_for_inheritance): Save
7426 pattern instead of src.
7427 (remove_inheritance_pseudos): Use the pattern. Add assert.
7428
7429 2016-08-05 David Malcolm <dmalcolm@redhat.com>
7430
7431 * input.c (string_concat::string_concat): New constructor.
7432 (string_concat_db::string_concat_db): New constructor.
7433 (string_concat_db::record_string_concatenation): New method.
7434 (string_concat_db::get_string_concatenation): New method.
7435 (string_concat_db::get_key_loc): New method.
7436 (class auto_cpp_string_vec): New class.
7437 (get_substring_ranges_for_loc): New function.
7438 (get_source_range_for_substring): New function.
7439 (get_num_source_ranges_for_substring): New function.
7440 (class selftest::lexer_test_options): New class.
7441 (struct selftest::lexer_test): New struct.
7442 (class selftest::ebcdic_execution_charset): New class.
7443 (selftest::ebcdic_execution_charset::s_singleton): New variable.
7444 (selftest::lexer_test::lexer_test): New constructor.
7445 (selftest::lexer_test::~lexer_test): New destructor.
7446 (selftest::lexer_test::get_token): New method.
7447 (selftest::assert_char_at_range): New function.
7448 (ASSERT_CHAR_AT_RANGE): New macro.
7449 (selftest::assert_num_substring_ranges): New function.
7450 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
7451 (selftest::assert_has_no_substring_ranges): New function.
7452 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
7453 (selftest::test_lexer_string_locations_simple): New function.
7454 (selftest::test_lexer_string_locations_ebcdic): New function.
7455 (selftest::test_lexer_string_locations_hex): New function.
7456 (selftest::test_lexer_string_locations_oct): New function.
7457 (selftest::test_lexer_string_locations_letter_escape_1): New function.
7458 (selftest::test_lexer_string_locations_letter_escape_2): New function.
7459 (selftest::test_lexer_string_locations_ucn4): New function.
7460 (selftest::test_lexer_string_locations_ucn8): New function.
7461 (selftest::uint32_from_big_endian): New function.
7462 (selftest::test_lexer_string_locations_wide_string): New function.
7463 (selftest::uint16_from_big_endian): New function.
7464 (selftest::test_lexer_string_locations_string16): New function.
7465 (selftest::test_lexer_string_locations_string32): New function.
7466 (selftest::test_lexer_string_locations_u8): New function.
7467 (selftest::test_lexer_string_locations_utf8_source): New function.
7468 (selftest::test_lexer_string_locations_concatenation_1): New
7469 function.
7470 (selftest::test_lexer_string_locations_concatenation_2): New
7471 function.
7472 (selftest::test_lexer_string_locations_concatenation_3): New
7473 function.
7474 (selftest::test_lexer_string_locations_macro): New function.
7475 (selftest::test_lexer_string_locations_stringified_macro_argument):
7476 New function.
7477 (selftest::test_lexer_string_locations_non_string): New function.
7478 (selftest::test_lexer_string_locations_long_line): New function.
7479 (selftest::test_lexer_char_constants): New function.
7480 (selftest::input_c_tests): Call the new test functions once per
7481 case within the line_table test matrix.
7482 * input.h (struct string_concat): New struct.
7483 (struct location_hash): New struct.
7484 (class string_concat_db): New class.
7485 * substring-locations.h: New header.
7486
7487 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7488
7489 PR tree-optimization/72810
7490 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
7491 the type of the case labels when truncating.
7492
7493 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7494
7495 PR Target/72819
7496 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
7497 (aarch64_fp16_ptr_type_node): Likewise.
7498 * config/aarch64/aarch64-simd-builtins.c
7499 (aarch64_fp16_ptr_type_node): Define.
7500 (aarch64_init_fp16_types): New, refactored out of...
7501 (aarch64_init_builtins): ...here, update to call
7502 aarch64_init_fp16_types.
7503 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
7504 HFmode.
7505 (aapcs_vfp_sub_candidate): Likewise.
7506
7507 2016-08-05 Martin Liska <mliska@suse.cz>
7508 Joshua Cranmer <Pidgeot18@gmail.com>
7509
7510 * gcov.c (line_t::has_block): New function.
7511 (enum loop_type): New enum.
7512 (handle_cycle): New function.
7513 (unblock): Likewise.
7514 (circuit): Likewise.
7515 (get_cycles_count): Likewise.
7516 (accumulate_line_counts): Use new loop detection algorithm.
7517
7518 2016-08-05 Martin Liska <mliska@suse.cz>
7519
7520 * gcov.c (output_intermediate_file): Rename
7521 function_info::line_next to next_file_fn.
7522 (process_file): Likewise.
7523 (read_graph_file): Likewise.
7524 (accumulate_line_counts): Likewise.
7525 (output_lines): Likewise.
7526
7527 2016-08-05 Richard Biener <rguenther@suse.de>
7528
7529 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
7530 restriction on threading to a loop header.
7531
7532 2016-08-05 Richard Biener <rguenther@suse.de>
7533
7534 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
7535 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
7536 adjust loop info accordingly.
7537
7538 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7539
7540 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
7541 before folding call to __builtin_constant_p with parameters to false.
7542
7543 2016-08-05 Alan Modra <amodra@gmail.com>
7544
7545 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
7546 code accidentally committed 2016-05-02 providing class when given
7547 NO_REGS.
7548
7549 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7550
7551 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
7552 the case label ranges that partially overlap with OP's value
7553 range.
7554
7555 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
7556
7557 PR target/72805
7558 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
7559 Cast builtin function result to __mmask16 instead of __mmask8.
7560 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7561 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
7562 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7563
7564 2016-08-04 David Malcolm <dmalcolm@redhat.com>
7565
7566 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
7567 (ASSERT_TRUE_AT): New macro.
7568 (ASSERT_FALSE): Reimplement in terms of...
7569 (ASSERT_FALSE_AT): New macro.
7570 (ASSERT_STREQ_AT): Fix typo in comment.
7571
7572 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7573
7574 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
7575 labels are exhaustive, designate the label with the widest
7576 range to be the default label.
7577
7578 2016-08-04 Andrew Pinski <apinski@cavium.com>
7579
7580 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
7581 (thunderx_tunings): Use thunderx_vector_cost instead of
7582 generic_vector_cost.
7583
7584 2016-08-04 Martin Liska <mliska@suse.cz>
7585
7586 * gcov.c (main): Fix GNU coding style.
7587 (output_intermediate_file): Likewise.
7588 (process_file): Likewise.
7589 (generate_results): Likewise.
7590 (release_structures): Likewise.
7591 (create_file_names): Likewise.
7592 (find_source): Likewise.
7593 (read_graph_file): Likewise.
7594 (find_exception_blocks): Likewise.
7595 (canonicalize_name): Likewise.
7596 (make_gcov_file_name): Likewise.
7597 (mangle_name): Likewise.
7598 (accumulate_line_counts): Likewise.
7599 (output_branch_count): Likewise.
7600 (read_line): Likewise.
7601
7602 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7603
7604 PR rtl-optimization/71779
7605 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
7606 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
7607 or if it was truncated.
7608
7609 PR rtl-optimization/70903
7610 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
7611
7612 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7613
7614 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
7615 accessing SSA_NAME_PTR_INFO.
7616
7617 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7618
7619 PR 70677
7620 * common/config/avr/avr-common.c (avr_option_optimization_table)
7621 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
7622
7623 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7624
7625 PR 55181
7626 * config/avr/avr.md: New pattern to work around do_store_flag
7627 generating shift instructions for bit extractions.
7628
7629 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7630
7631 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
7632 BITMAP_ALLOC.
7633 (add_equivalence): Likewise.
7634 (get_value_range): Allocate value range with vrp_value_range_pool.
7635 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
7636 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
7637
7638 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
7639
7640 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
7641 the default for the rs6000 port.
7642
7643 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7644
7645 PR middle-end/71876
7646 * calls.c (special_function_p): Remove special handling of
7647 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
7648 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
7649 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
7650
7651 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
7652
7653 PR middle-end/72778
7654 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
7655 Don't stop on regular insns.
7656
7657 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
7658
7659 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
7660 size to DImode boundary.
7661 (nvptx_propagate): Likewise.
7662
7663 2016-08-03 Alan Modra <amodra@gmail.com>
7664
7665 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
7666 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
7667 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7668 from -mefficient-unaligned-vector. Note that this affects fp too.
7669
7670 2016-08-03 Alan Modra <amodra@gmail.com>
7671
7672 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7673 cost more.
7674
7675 2016-08-03 Alan Modra <amodra@gmail.com>
7676
7677 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7678 to a reg. Localize vars.
7679
7680 2016-08-03 Alan Modra <amodra@gmail.com>
7681
7682 * config/rs6000/rs6000.opt: Remove negatives from help strings
7683 and comments.
7684
7685 2016-08-03 Alan Modra <amodra@gmail.com>
7686
7687 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7688 Delete duplicated code.
7689
7690 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7691
7692 PR middle-end/72778
7693 * lra-spills.c (regno_in_use_p): New.
7694 (lra_final_code_change): Use it.
7695
7696 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7697
7698 PR rtl-optimization/69847
7699 * lra-int.h (struct lra-reg): Use restore_rtx instead of
7700 restore_regno.
7701 (lra_rtx_hash): New.
7702 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7703 of restore_regno.
7704 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7705 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7706 * lra-spills.c (lra_final_code_change): Don't delete insn when the
7707 next insn is USE with the same reg as the current insn source.
7708 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7709 of restore_regno.
7710 (lra_constraints_init): Call initiate_invariants.
7711 (lra_constraints_finish): Call finish_invariants.
7712 (struct invariant, invariant_t, invariant_ptr_t): New.
7713 (const_invariant_ptr_t, invariants, invariants_pool): New.
7714 (invariant_table, invariant_hash, invariant_eq_p): New.
7715 (insert_invariant, initiate_invariants, finish_invariants): New.
7716 (clear_invariants, invalid_invariant_regs): New.
7717 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7718 instead of restore_regno.
7719 (invariant_p, process_invariant_for_inheritance): New.
7720 (inherit_in_ebb): Implement invariant inheritance.
7721 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7722 (remove_inheritance_pseudos): Implement undoing invariant
7723 inheritance.
7724 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7725 instead of restore_regno.
7726 * lra-assigns.c (regno_live_length): New.
7727 (reload_pseudo_compare_func): Use regno_live_length.
7728 (assign_by_spills): Use restore_rtx instead of restore_regno.
7729 (lra_assign): Ditto. Initiate regno_live_length.
7730
7731 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
7732
7733 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7734 __builtin_aarch64_fmindf.
7735
7736 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7737
7738 PR tree-optimization/34114
7739 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7740 information for more control IVs.
7741
7742 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7743
7744 PR tree-optimization/34114
7745 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7746 PLUS_EXPR case. Handle SSA_NAME case.
7747
7748 2016-08-02 Tamar Christina <tamar.christina@arm.com>
7749
7750 * config/aarch64/aarch64-simd-builtins.def
7751 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7752 (__builtin_aarch64_fmaxdf): Likewise.
7753 (__builtin_aarch64_smin_nandf): Likewise.
7754 (__builtin_aarch64_smax_nandf): Likewise.
7755 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7756 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7757 (<fmaxmin><mode>3): ...this.
7758 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7759 (vminnm_f64): Likewise.
7760 (vmin_f64): Likewise.
7761 (vmax_f64): Likewise.
7762 * config/aarch64/iterators.md (FMAXMIN): Merge with...
7763 (FMAXMIN_UNS): ...this.
7764 (fmaxmin): Merged with
7765 (fmaxmin_op): ...this...
7766 (maxmin_uns_op): ...in to this.
7767
7768 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7769
7770 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7771 Add support for vec_extract on vector float, vector int, vector
7772 short, and vector char vector types.
7773 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7774 vector float, vector int, vector short, and vector char
7775 optimizations on 64-bit ISA 2.07 systems for both constant and
7776 variable element numbers.
7777 (rs6000_split_vec_extract_var): Likewise.
7778 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7779 Altivec registers on ISA 2.07 and above.
7780 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7781 which never was matched due to the split occuring before register
7782 allocation (and the code would not have worked on little endian
7783 systems if it did match). Allow extracts to go to the Altivec
7784 registers if ISA 2.07 (power8). Change from using "" around the
7785 C++ code to using {}'s.
7786 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7787 vec_extracts when the vector is in memory.
7788 (vsx_extract_v4sf_var): New insn to optimize vector float
7789 vec_extracts when the element number is variable on 64-bit ISA
7790 2.07 systems.
7791 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7792 for 64-bit ISA 2.07 as well as ISA 3.0.
7793 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7794 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7795 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7796 optimize vector int, vector short, and vector char vec_extracts
7797 when the vector is in memory.
7798 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7799 optimize vector int, vector short, and vector char vec_extracts
7800 when the element number is variable.
7801
7802 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7803
7804 PR target/71948
7805 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7806 does not overlap with other symbol flags.
7807
7808 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7809
7810 * config/aarch64/aarch64.h (aarch64_frame):
7811 Remove padding0 and hardfp_offset. Add locals_offset,
7812 initial_adjust, callee_adjust, callee_offset and final_adjust.
7813 * config/aarch64/aarch64.c (aarch64_layout_frame):
7814 Remove unused padding0 and hardfp_offset initializations.
7815 Choose frame layout and set frame variables accordingly.
7816 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7817 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7818 (aarch64_pop_regs): Likewise.
7819 (aarch64_expand_prologue): Remove all decision code, just emit
7820 prolog according to frame variables.
7821 (aarch64_expand_epilogue): Remove all decision code, just emit
7822 epilog according to frame variables.
7823 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7824
7825 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7826
7827 PR target/72748
7828 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7829 fix_debug_reg_uses after changing source register mode to
7830 V1TImode if source register is undefined.
7831
7832 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7833
7834 PR tree-optimization/71818
7835 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7836 with non invariant evolutions
7837
7838 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7839
7840 PR target/72767
7841 * config/avr/avr.md (length) [branch]: Correct insn length
7842 attribute for forward branches.
7843
7844 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7845
7846 * doc/extend.texi (AVR Built-in Functions): Document
7847 __builtin_avr_nops.
7848 * config/avr/builtins.def (NOPS): New.
7849 * config/avr/avr.c (avr_expand_nops): New static function.
7850 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7851
7852 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7853
7854 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7855 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7856 addresses.
7857
7858 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7859
7860 * config/aarch64/aarch64.c (vulcan_tunings): Update
7861 vulcan L1 cache_line_size.
7862
7863 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7864
7865 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7866 function that takes a vector memory address, a hard register, an
7867 element number and a temporary base register, and recreates an
7868 address that points to the appropriate element within the vector.
7869 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7870 (rs6000_split_vec_extract_var): Add support for the target of a
7871 vec_extract with variable element number being a scalar memory
7872 location.
7873 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7874 swappable.
7875 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7876 vsx_extract_<mode>_load insn with a new insn that optimizes
7877 storing either element to a memory location, using scratch
7878 registers to pick apart the vector and reconstruct the address.
7879 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7880 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7881 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7882 store instruction.
7883 (vsx_extract_<mode>_var): Add support for extracting a variable
7884 element number from memory.
7885
7886 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7887
7888 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7889 when testing for compares against constants of the form 0xabab.
7890
7891 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7892
7893 PR tree-optimization/57558
7894 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7895 function.
7896 (vect_loop_versioning): Support versioning with niter assumptions.
7897 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7898 (vect_get_loop_niters): New parameter. Reimplement to support
7899 assumptions in loop niter info.
7900 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7901 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7902 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7903 Support loop versioning for niters.
7904 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7905 (vect_free_loop_info_assumptions): New function.
7906 (vectorize_loops): Free loop niter info for loops with flag
7907 LOOP_F_ASSUMPTIONS set if vectorization failed.
7908 * tree-vectorizer.h (struct _loop_vec_info): New field
7909 num_iters_assumptions.
7910 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7911 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7912 (LOOP_REQUIRES_VERSIONING): New macro.
7913 (vect_free_loop_info_assumptions): New decl.
7914
7915 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7916
7917 * cfgloop.h (struct loop): New field constraints.
7918 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7919 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7920 functions.
7921 * cfgloop.c (alloc_loop): Initialize new field.
7922 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7923 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7924 Adjust niter analysis wrto loop constraints.
7925 * doc/loop.texi (@node Number of iterations): Add description for loop
7926 constraints.
7927
7928 2016-07-29 Marek Polacek <polacek@redhat.com>
7929
7930 PR c/7652
7931 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7932 (ix86_expand_round_builtin): Likewise.
7933
7934 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7935 Georg-Johann Lay <avr@gjlay.de>
7936
7937 PR rtl-optimization/71976
7938 * combine.c (get_last_value): Return 0 if the argument for which
7939 the function is called has a wider mode than the recorded value.
7940
7941 2016-07-29 Marek Polacek <polacek@redhat.com>
7942
7943 PR c/7652
7944 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7945 (altivec_expand_st_builtin): Likewise.
7946
7947 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7948
7949 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7950 introduced in r238381.
7951
7952 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7953
7954 PR middle-end/68217
7955 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7956 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7957
7958 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7959
7960 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7961 New declaration.
7962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7963 Add support for vec_extract of vector double or vector long having
7964 a variable element number on 64-bit ISA 2.07 systems or newer.
7965 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7966 Likewise.
7967 (rs6000_split_vec_extract_var): New function to split a
7968 vec_extract built-in function with variable element number.
7969 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7970 swappable.
7971 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7972 (UNSPEC_VSX_EXTRACT): Likewise.
7973 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7974 direct move instructions to be generated on 64-bit ISA 2.07
7975 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7976 instruction.
7977 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7978 arguments for vec_extract variable element.
7979 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7980 vec_extract with variable element on V2DFmode and V2DImode
7981 vectors.
7982 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7983 -mupper-regs-df requirement, since it isn't needed.
7984 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7985 do direct moves on 64-bit systems, which allows optimization of
7986 vec_extract on 64-bit ISA 2.07 systems and newer.
7987
7988 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7989 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7990
7991 * config/aarch64/aarch64.md
7992 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7993 statement and type.
7994 (<optab>qihi2_aarch64): Likewise, and split into two.
7995 (extendqihi2_aarch64): New.
7996 (zero_extendqihi2_aarch64): New.
7997 * config/aarch64/iterators.md (ldrxt): Remove.
7998 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7999 uxtb/uxth.
8000
8001 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
8002
8003 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
8004
8005 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
8006
8007 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
8008 (aarch64_push_reg): New function to push 1 or 2 registers.
8009 (aarch64_pop_reg): New function to pop 1 or 2 registers.
8010 (aarch64_expand_prologue): Use aarch64_push_regs.
8011 (aarch64_expand_epilogue): Use aarch64_pop_regs.
8012
8013 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
8014
8015 PR tree-optimization/71734
8016 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
8017 attribute instead of REF_LOOP and use it.
8018 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
8019 set it for Loops having non-zero safelen attribute.
8020 (ref_indep_loop_p): Pass zero as initial value for safelen.
8021
8022 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
8023
8024 PR middle-end/72657
8025 PR target/72683
8026 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
8027 call using chkp_gimple_call_builtin_p.
8028 (chkp_copy_bounds_for_assign): Likewise.
8029
8030 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8031
8032 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
8033 * config/arm/arm-protos.h (struct tune_params): Likewise.
8034 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8035 (cortex_a9_sched_adjust_cost): Likewise.
8036 (fa726te_sched_adjust_cost): Likewise.
8037 (arm_adjust_cost): Likewise.
8038 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
8039 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
8040 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
8041 * config/i386/i386.c (ix86_adjust_cost): Likewise.
8042 * config/ia64/ia64.c: Likewise.
8043 * config/m68k/m68k.c: Likewise.
8044 * config/mep/mep.c (mep_adjust_cost): Likewise.
8045 * config/microblaze/microblaze.c (microblaze_adjust_cost):
8046 * Likewise.
8047 * config/mips/mips.c (mips_adjust_cost): Likewise.
8048 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
8049 * Likewise.
8050 * config/pa/pa.c (pa_adjust_cost): Likewise.
8051 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
8052 (rs6000_debug_adjust_cost): Likewise.
8053 * config/sh/sh.c (sh_adjust_cost): Likewise.
8054 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
8055 (hypersparc_adjust_cost): Likewise.
8056 (sparc_adjust_cost): Likewise.
8057 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
8058 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
8059 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
8060 * Likewise.
8061 * config/visium/visium.c (visium_adjust_cost): Likewise.
8062 * doc/tm.texi: Regenerate.
8063 * haifa-sched.c (dep_cost_1): Adjust.
8064 * target.def: Merge adjust_cost and adjust_cost_2.
8065
8066 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8067
8068 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
8069
8070 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8071
8072 * store-motion.c (struct st_expr): Make pattern_regs a vector.
8073 (extract_mentioned_regs): Append to a vector instead of
8074 returning a rtx_expr_list.
8075 (st_expr_entry): Adjust.
8076 (free_st_expr_entry): Likewise.
8077 (store_ops_ok): Likewise.
8078 (store_killed_in_insn): Likewise.
8079 (find_moveable_store): Likewise.
8080
8081 2016-07-28 Martin Liska <mliska@suse.cz>
8082
8083 PR gcov-profile/68025
8084 * tree-profile.c (tree_profiling): Respect
8085 no_profile_instrument_function attribute.
8086 * doc/extend.texi: Document no_profile_instrument_function
8087 attribute.
8088
8089 2016-07-28 Martin Liska <mliska@suse.cz>
8090
8091 PR rtl-optimization/70944
8092 * combine.c (make_compound_operation):
8093 Do not allow make_compound_operation for vector mode
8094
8095 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
8096
8097 PR middle-end/71994
8098 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
8099 before calling get_ops.
8100
8101 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8102
8103 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
8104 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
8105 (BITS_PER_UNIT_LOG): Remove.
8106 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
8107 * expr.c (expand_assignment): Likewise.
8108 * stor-layout.c (initialize_sizetypes): Likewise.
8109
8110 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8111
8112 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
8113 signature of rs6000_expand_vector_extract so that the element
8114 number is a RTX instead of a constant integer.
8115 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
8116 Likewise.
8117 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
8118 (altivec_expand_vec_ext_builtin): Likewise.
8119 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
8120 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
8121 MFVSRLD instruction.
8122
8123 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8124
8125 * input.c (get_pure_location): Move here from tree.c.
8126 (make_location): Likewise. Add header comment.
8127 (selftest::test_accessing_ordinary_linemaps): Verify
8128 pure_location_p, make_location, get_location_from_adhoc_loc and
8129 get_range_from_loc.
8130 * input.h (get_pure_location): Move declaration here from tree.h.
8131 (get_finish): Likewise for inline function.
8132 (make_location): Likewise for declaration.
8133 * tree.c (get_pure_location): Move to input.c.
8134 (make_location): Likewise.
8135 * tree.h (get_pure_location): Move declaration to tree.h.
8136 (get_finish): Likewise for inline function.
8137 (make_location): Likewise for declaration.
8138
8139 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8140
8141 PR middle-end/71078
8142 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
8143
8144 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8145
8146 * system.h (STATIC_ASSERT): Use static_assert if building
8147 with C++11 onwards.
8148
8149 2016-07-27 Richard Biener <rguenther@suse.de>
8150
8151 PR tree-optimization/72517
8152 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8153 Revert change to not compute read-read dependences.
8154
8155 2016-07-27 Richard Biener <rguenther@suse.de>
8156
8157 * predict.c (set_even_probabilities): Make nedges unsigned.
8158
8159 2016-07-27 Martin Liska <mliska@suse.cz>
8160
8161 * predict.c (set_even_probabilities): Handle unlikely edges.
8162 (combine_predictions_for_bb): Likewise.
8163
8164 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8165
8166 PR target/71869
8167 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
8168 __float128 support when we don't have hardware support, so that
8169 the IEEE built-in functions like isgreater, first call __unordkf3
8170 to make sure neither operand is a NaN, and if both operands are
8171 ordered, do the normal comparison.
8172
8173 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8174
8175 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
8176 name.
8177 (extract_code_and_val_from_cond_with_ops): Verify that name is
8178 either cond_op0 or cond_op1.
8179
8180 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8181
8182 PR tree-optimization/18046
8183 * genmodes.c (emit_mode_size_inline): Emit an assert that
8184 verifies that mode is a valid array index.
8185 (emit_mode_nuinits_inline): Likewise.
8186 (emit_mode_inner_inline): Likewise.
8187 (emit_mode_unit_size_inline): Likewise.
8188 (emit_mode_unit_precision_inline): Likewise.
8189 * tree-vrp.c: Include params.h.
8190 (find_switch_asserts): Register edge assertions for the default
8191 label which correspond to the anti-ranges of each case label.
8192 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
8193 * doc/invoke.texi: Document it.
8194
8195 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8196
8197 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
8198 and unnecessary call to gimple_bb.
8199
8200 2016-07-26 Richard Biener <rguenther@suse.de>
8201
8202 PR rtl-optimization/71984
8203 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
8204 for VOIDmode.
8205
8206 2016-07-26 Richard Biener <rguenther@suse.de>
8207
8208 PR middle-end/72517
8209 * expmed.c (extract_bit_field_1): Constrain the vector mode
8210 with element size matching the extraction mode size when
8211 choosing a better vector mode to do the extraction from.
8212
8213 2016-07-26 Richard Biener <rguenther@suse.de>
8214 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8215
8216 PR middle-end/70920
8217 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
8218 pattern.
8219
8220 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8221
8222 * tree-ssa-structalias.c (struct scc_info): Change types of
8223 members to auto_sbitmap and auto_vec.
8224 (scc_info::scc_info): New constructor.
8225 (scc_info::~scc_info): New destructor.
8226 (init_scc_info): Remove.
8227 (free_scc_info): Remove.
8228 (find_indirect_cycles): Adjust.
8229 (perform_var_substitution): Likewise.
8230 (free_var_substitution_info): Likewise.
8231
8232 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8233
8234 * tree-outof-ssa.c (struct elim_graph): Change type of members
8235 to auto_vec and auto_sbitmap.
8236 (elim_graph::elim_graph): New constructor.
8237 (delete_elim_graph): Remove.
8238 (expand_phi_nodes): Adjust.
8239
8240 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8241
8242 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
8243 (new_elim_graph): Adjust.
8244 (clear_elim_graph): Likewise.
8245 (delete_elim_graph): Likewise.
8246 (elim_graph_size): Likewise.
8247 (elim_graph_add_node): Likewise.
8248 (elim_graph_add_edge): Likewise.
8249 (elim_graph_remove_succ_edge): Likewise.
8250 (eliminate_name): Likewise.
8251 (eliminate_build): Likewise.
8252 (elim_forward): Likewise.
8253 (elim_unvisited_predecessor): Likewise.
8254 (elim_backward): Likewise.
8255 (elim_create): Likewise.
8256 (eliminate_phi): Likewise.
8257 (expand_phi_nodes): Likewise.
8258
8259 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8260
8261 * bt-load.c (compute_out): Use auto_sbitmap class.
8262 (link_btr_uses): Likewise.
8263 * cfganal.c (mark_dfs_back_edges): Likewise.
8264 (post_order_compute): Likewise.
8265 (inverted_post_order_compute): Likewise.
8266 (pre_and_rev_post_order_compute_fn): Likewise.
8267 (single_pred_before_succ_order): Likewise.
8268 * cfgexpand.c (pass_expand::execute): Likewise.
8269 * cfgloop.c (verify_loop_structure): Likewise.
8270 * cfgloopmanip.c (fix_bb_placements): Likewise.
8271 (remove_path): Likewise.
8272 (update_dominators_in_loop): Likewise.
8273 * cfgrtl.c (break_superblocks): Likewise.
8274 * ddg.c (check_sccs): Likewise.
8275 (create_ddg_all_sccs): Likewise.
8276 * df-core.c (df_worklist_dataflow): Likewise.
8277 * dse.c (dse_step3): Likewise.
8278 * except.c (eh_region_outermost): Likewise.
8279 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8280 * gcse.c (prune_expressions): Likewise.
8281 (prune_insertions_deletions): Likewise.
8282 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
8283 * graph.c (draw_cfg_nodes_no_loops): Likewise.
8284 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
8285 * lcm.c (compute_earliest): Likewise.
8286 (compute_farthest): Likewise.
8287 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
8288 (unroll_loop_runtime_iterations): Likewise.
8289 (unroll_loop_stupid): Likewise.
8290 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8291 * lra-lives.c: Likewise.
8292 * lra.c (lra): Likewise.
8293 * modulo-sched.c (schedule_reg_moves): Likewise.
8294 (optimize_sc): Likewise.
8295 (get_sched_window): Likewise.
8296 (sms_schedule_by_order): Likewise.
8297 (check_nodes_order): Likewise.
8298 (order_nodes_of_sccs): Likewise.
8299 (order_nodes_in_scc): Likewise.
8300 * recog.c (split_all_insns): Likewise.
8301 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8302 * reload1.c (reload): Likewise.
8303 * sched-rgn.c (haifa_find_rgns): Likewise.
8304 (split_edges): Likewise.
8305 (compute_trg_info): Likewise.
8306 * sel-sched.c (init_seqno): Likewise.
8307 * store-motion.c (remove_reachable_equiv_notes): Likewise.
8308 * tree-into-ssa.c (update_ssa): Likewise.
8309 * tree-ssa-live.c (live_worklist): Likewise.
8310 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
8311 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8312 * Likewise.
8313 (try_peel_loop): Likewise.
8314 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
8315 * Likewise.
8316 * tree-ssa-pre.c (compute_antic): Likewise.
8317 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8318 * tree-stdarg.c (reachable_at_most_once): Likewise.
8319 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
8320 * var-tracking.c (vt_find_locations): Likewise.
8321
8322 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8323
8324 * sbitmap.h (auto_sbitmap): New class.
8325
8326 2016-07-26 Alan Modra <amodra@gmail.com>
8327
8328 PR target/72103
8329 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
8330 sri->t_icode.
8331
8332 2016-07-25 David Malcolm <dmalcolm@redhat.com>
8333
8334 * input.c (selftest::temp_source_file::temp_source_file): Fix
8335 missing "%s" in fprintf.
8336
8337 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
8338
8339 PR middle-end/71732
8340 * cselib.c (cselib_process_insn): Invalidate argument slots for
8341 const/pure calls.
8342
8343 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8344
8345 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
8346 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
8347 vmulxh_lane_f16, vmulxh_laneq_f16): New.
8348
8349 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8350
8351 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8352 * config/aarch64/aarch64.md (fma, fnma): Support HF.
8353 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
8354
8355 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8356
8357 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8358 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
8359 New.
8360 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
8361 (add<mode>3): Likewise.
8362 (sub<mode>3): Likewise.
8363 (mul<mode>3): Likewise.
8364 (div<mode>3): Likewise.
8365 (*div<mode>3): Likewise.
8366 (<fmaxmin><mode>3): Extend to HF.
8367 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
8368 (fabd<mode>3): Likewise.
8369 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
8370 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
8371 (aarch64_fmulx<mode>): Likewise.
8372 (aarch64_fac<optab><mode>): Likewise.
8373 (aarch64_frecps<mode>): Likewise.
8374 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
8375 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
8376 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
8377 (VSDQ_HSDI): Support HI.
8378 (fcvt_target, FCVT_TARGET): Likewise.
8379 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
8380 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
8381 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
8382 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
8383 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
8384 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
8385 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
8386 vrsqrtsh_f16): New.
8387
8388 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8389
8390 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
8391 * config/aarch64/aarch64-builtins.c (hi_UP): New.
8392 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8393 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
8394 mode.
8395 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8396 (aarch64_cm<optab><mode>): Likewise.
8397 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
8398 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
8399 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
8400 (sqrt<mode>2): Likewise.
8401 (*sqrt<mode>2): Likewise.
8402 (abs<mode>2): Likewise.
8403 (<optab><mode>hf2): New pattern for HF mode.
8404 (<optab>hihf2): Likewise.
8405 * config/aarch64/arm_neon.h: Include arm_fp16.h.
8406 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
8407 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
8408 Support HF mode.
8409 * config/aarch64/arm_fp16.h: New file.
8410 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
8411 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
8412 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
8413 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
8414 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
8415 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
8416 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
8417 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
8418 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
8419 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
8420 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
8421 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
8422 vsqrth_f16): New.
8423
8424 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8425
8426 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
8427 reduc_smin_scal_): Use VDQIF_F16.
8428 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
8429 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
8430 Use VHSDF.
8431 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
8432 * config/aarch64/iterators.md (VDQIF_F16): New.
8433 (vp): Support HF modes.
8434 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
8435 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
8436
8437 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8438
8439 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
8440 "*aarch64_mulx_elt_from_dup<mode>".
8441 (*aarch64_mul3_elt<mode>): Update schedule type.
8442 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
8443 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
8444 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8445 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
8446 (f, fp): Support HF modes.
8447 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
8448 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
8449 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
8450 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
8451 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
8452 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
8453
8454 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8455
8456 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8457 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
8458 modes.
8459 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
8460 vfmsq_f16): New.
8461
8462 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8463
8464 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8465 * config/aarch64/aarch64-simd.md
8466 (aarch64_rsqrts<mode>): Extend to HF modes.
8467 (fabd<mode>3): Likewise.
8468 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
8469 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
8470 (aarch64_<maxmin_uns>p<mode>): Likewise.
8471 (<su><maxmin><mode>3): Likewise.
8472 (<maxmin_uns><mode>3): Likewise.
8473 (<fmaxmin><mode>3): Likewise.
8474 (aarch64_faddp<mode>): Likewise.
8475 (aarch64_fmulx<mode>): Likewise.
8476 (aarch64_frecps<mode>): Likewise.
8477 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
8478 (add<mode>3): Extend to HF modes.
8479 (sub<mode>3): Likewise.
8480 (mul<mode>3): Likewise.
8481 (div<mode>3): Likewise.
8482 (*div<mode>3): Likewise.
8483 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
8484 HF, V4HF and V8HF.
8485 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
8486 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
8487 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
8488 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
8489 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
8490 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
8491 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
8492 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
8493 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
8494 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
8495 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
8496 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
8497 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
8498 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
8499
8500 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8501
8502 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
8503 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8504 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
8505 (neg<mode>2): Likewise.
8506 (abs<mode>2): Likewise.
8507 (<frint_pattern><mode>2): Likewise.
8508 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8509 (<optab><VDQF:mode><fcvt_target>2): Likewise.
8510 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
8511 (ftrunc<VDQF:mode>2): Likewise.
8512 (<optab><fcvt_target><VDQF:mode>2): Likewise.
8513 (sqrt<mode>2): Likewise.
8514 (*sqrt<mode>2): Likewise.
8515 (aarch64_frecpe<mode>): Likewise.
8516 (aarch64_cm<optab><mode>): Likewise.
8517 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
8518 HF, V4HF and V8HF.
8519 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
8520 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
8521 (stype): New.
8522 * config/aarch64/arm_neon.h (vdup_n_f16): New.
8523 (vdupq_n_f16): Likewise.
8524 (vld1_dup_f16): Use vdup_n_f16.
8525 (vld1q_dup_f16): Use vdupq_n_f16.
8526 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
8527 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
8528 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
8529 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
8530 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
8531 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
8532 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
8533 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
8534 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
8535 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
8536 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
8537 vsqrt_f16, vsqrtq_f16): New.
8538
8539 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8540
8541 * config/aarch64/aarch64-simd.md
8542 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
8543 (aarch64_ext<mode>): Likewise.
8544 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
8545 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
8546 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
8547 and V8HFmode.
8548 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
8549 float16x8_t.
8550 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
8551 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
8552 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
8553 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
8554 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
8555 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
8556 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
8557 New.
8558 (vmov_n_f16): Reimplement using vdup_n_f16.
8559 (vmovq_n_f16): Reimplement using vdupq_n_f16..
8560
8561 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8562
8563 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
8564 "frame_related_p". Generate CFA annotation when it's necessary.
8565 (aarch64_expand_prologue): Use aarch64_add_constant.
8566 (aarch64_expand_epilogue): Likewise.
8567 (aarch64_output_mi_thunk): Pass "false" when calling
8568 aarch64_add_constant.
8569
8570 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8571
8572 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
8573 sequences.
8574
8575 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8576
8577 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
8578 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
8579 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
8580 (aarch64_build_constant): Delete.
8581
8582 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
8583
8584 Revert
8585 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8586
8587 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8588 flag_toplevel_reorder.
8589
8590 2016-07-25 Richard Biener <rguenther@suse.de>
8591
8592 * cgraph.c (cgraph_node::verify_node): Compare against builtin
8593 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
8594 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
8595 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
8596 (streamer_get_builtin_tree): Likewise.
8597 (streamer_write_builtin): Likewise.
8598 * lto-streamer.h (LTO_builtin_decl): Remove.
8599 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
8600 (lto_input_scc): Remove LTO_builtin_decl handling.
8601 (lto_input_tree_1): Liekwise.
8602 * lto-streamer-out.c (lto_output_tree_1): Remove special
8603 handling of builtins.
8604 (DFS::DFS): Likewise.
8605 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
8606 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
8607 assert.
8608 (streamer_write_builtin): Remove.
8609
8610 2016-07-25 Martin Liska <mliska@suse.cz>
8611
8612 * lto-cgraph.c (input_symtab): Don't call get_working_sets
8613 if flag_auto_profile is set to true.
8614
8615 2016-07-25 Martin Liska <mliska@suse.cz>
8616
8617 PR gcov-profile/71868
8618 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
8619 have a function with multiple latches, count them all.
8620
8621 2016-07-25 Martin Liska <mliska@suse.cz>
8622
8623 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
8624
8625 2016-07-25 Martin Liska <mliska@suse.cz>
8626
8627 PR tree-optimization/71987
8628 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
8629 just for SSA_NAMEs. Fix GNU coding style.
8630
8631 2016-07-25 Martin Liska <mliska@suse.cz>
8632
8633 PR gcov-profile/64874
8634 * gcov-io.h: Update command about file format.
8635 * gcov-iov.c (main): Adapt the numbering scheme.
8636
8637 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8638
8639 PR middle-end/66726
8640 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
8641 whose result is used in PHI.
8642 (final_range_test_p): Likewise.
8643 (maybe_optimize_range_tests): Likewise.
8644
8645 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8646
8647 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8648 Reformat two multi-line strings.
8649
8650 2016-07-22 Martin Sebor <msebor@redhat.com>
8651
8652 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
8653
8654 2016-07-22 Martin Sebor <msebor@redhat.com>
8655
8656 PR c/71560
8657 * doc/extend.texi (Compound Literals): Correct and clarify.
8658 (Cast to Union): Same.
8659
8660 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
8661
8662 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8663 comments to explain why certain error messages make mention of
8664 undocumented options.
8665 (rs6000_invalid_builtin): Change error messages to replace mention
8666 of undocumented options with mention of the -mcpu=power9 option
8667 that enables those undocumented options.
8668 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8669 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8670 definition of this macro to correct an existing error.
8671 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8672 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8673 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8674 descriptions of built-in functions so that they depend on
8675 -mcpu=power9 instead of on the corresponding undocumented flags.
8676 * doc/invoke.texi (Option Summary): Remove all mention of newly
8677 undocumented flags.
8678 (IBM RS/6000 and PowerPC Options): Likewise.
8679 * doc/md.texi (Constraints for Particuliar Machines): Remove all
8680 mention of newly undocumented flags.
8681
8682 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
8683
8684 * ipa-cp.c (determine_versionability): Do not create constprop clones,
8685 when target_clones attribute is set.
8686
8687 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8688
8689 * common.opt (funsafe-loop-optimizations): Mark ignore.
8690 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8691 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8692 related code.
8693 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8694 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8695
8696 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8697
8698 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8699 Parameter.
8700 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8701 Parameter.
8702 (number_of_iterations_exit): Warn missed loop optimization for
8703 possible infinite loops.
8704
8705 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
8706
8707 PR target/71216
8708 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8709 when to emit a ".machine" pseudo-op.
8710
8711 2016-07-22 Martin Liska <mliska@suse.cz>
8712
8713 PR gcov-profile/69028
8714 PR gcov-profile/62047
8715 * coverage.c (coverage_compute_lineno_checksum): Do not
8716 calculate checksum for fns w/o xloc.file.
8717 (coverage_compute_profile_id): Likewise.
8718
8719 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
8720
8721 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8722 (avr_secondary_reload): ...and implementation.
8723 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8724 * config/avr/avr.md (reload_in<mode>): Remove insns.
8725 (adjust_len) [lpm]: Remove insn attribute value.
8726 * config/avr/predicates.md (flash_operand): Remove insn predicate.
8727
8728 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8729
8730 PR middle-end/71876
8731 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8732 attribute.
8733 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8734 * calls.c (special_function_p): Remove the special handling of the
8735 "__builtin_" prefix.
8736
8737 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8738
8739 PR middle-end/71876
8740 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
8741 if STMT may be an alloca call.
8742 (gimple_alloca_call_p, alloca_call_p): Return only true for the
8743 builtin alloca call.
8744 * calls.h (gimple_maybe_alloca_call_p): New function.
8745 * tree-inline.c (inline_forbidden_p_stmt): Use
8746 gimple_maybe_alloca_call_p here.
8747
8748 2016-07-21 David Malcolm <dmalcolm@redhat.com>
8749
8750 * spellcheck-tree.c (best_macro_match::best_macro_match):
8751 Explictly specify the template arguments when invoking the base
8752 class constructor, to help older C++ compilers.
8753
8754 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8755
8756 PR sanitizer/71953
8757 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8758 before builtin_decl_implicit.
8759
8760 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8761
8762 * optabs.c (emit_condiitonal_move): Short circuit for identical
8763 sources.
8764
8765 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8766
8767 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8768 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
8769 (noce_conversion_profitable_p): New.
8770 (noce_try_store_flag_constants): Use it.
8771 (noce_try_addcc): Likewise.
8772 (noce_try_store_flag_mask): Likewise.
8773 (noce_try_cmove): Likewise.
8774 (noce_try_cmove_arith): Likewise.
8775 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8776 overwriting it.
8777 (noce_convert_multiple_sets): Move cost model to here, from...
8778 (bb_ok_for_noce_convert_multiple_sets) ...here.
8779 (noce_process_if_block): Update calls for above changes.
8780 (noce_find_if_block): Record new noce_if_info parameters.
8781
8782 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8783
8784 * target.def (max_noce_ifcvt_seq_cost): New.
8785 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8786 * doc/tm.texi: Regenerate.
8787 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8788 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8789 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8790 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8791 * doc/invoke.texi: Document new params.
8792
8793 2016-07-21 Richard Biener <rguenther@suse.de>
8794
8795 PR tree-optimization/71947
8796 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8797 ranges have useful limit_vr information.
8798
8799 2016-07-21 Richard Biener <rguenther@suse.de>
8800
8801 * function-tests.c (build_trivial_generic_function): Set
8802 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8803 * omp-low.c (create_omp_child_function): Likewise.
8804 (grid_expand_target_grid_body): Likewise.
8805 * cgraphunit.c (init_lowered_empty_function): Likewise.
8806 (cgraph_node::expand_thunk): Likewise.
8807 * tree-parloops.c (create_loop_fn): Likewise.
8808 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8809
8810 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8811
8812 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8813 in comment.
8814
8815 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8816
8817 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8818 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8819 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8820 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8821 values for insn attribute.
8822 * config/avr/avr.c (avr_out_insert_notbit): New function.
8823 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8824 ADJUST_LEN_INSV_NOTBIT_0/_7.
8825 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8826
8827 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8828
8829 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8830 (chrec_convert_1, chrec_convert): Ditto.
8831 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8832 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8833 * tree-vrp.c (adjust_range_with_scev): Ditto.
8834 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8835 (scev_var_range_cant_overflow): New function.
8836 (scev_probably_wraps_p): New parameter. Call above function.
8837 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8838
8839 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8840
8841 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8842 by removing computation of may_be_zero.
8843
8844 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8845
8846 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8847
8848 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8849
8850 Improving concepts performance and diagnostics.
8851 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8852 for constraint satisfaction and subsumption.
8853 * timevar.h (auto_timevar): New constructor that matches the push/pop
8854 pattern of usage in pt.c.
8855
8856 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8857
8858 * hwint.h (HOST_WIDE_INT_0): New define.
8859 (HOST_WIDE_INT_0U): Ditto.
8860 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8861 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8862 * simplify-rtx.c: Ditto.
8863 * tree-object-size.c: Ditto.
8864
8865 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8866
8867 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8868 check.
8869
8870 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8871
8872 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8873 * combine.c: Use HOST_WIDE_INT_M1U instead of
8874 ~(unsigned HOST_WIDE_INT) 0.
8875 * double-int.h: Ditto.
8876 * dse.c: Ditto.
8877 * dwarf2asm.c:Ditto.
8878 * expmed.c: Ditto.
8879 * genmodes.c: Ditto.
8880 * match.pd: Ditto.
8881 * read-rtl.c: Ditto.
8882 * tree-ssa-loop-ivopts.c: Ditto.
8883 * tree-ssa-loop-prefetch.c: Ditto.
8884 * tree-vect-generic.c: Ditto.
8885 * tree-vect-patterns.c: Ditto.
8886 * tree.c: Ditto.
8887
8888 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8889
8890 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8891 constant addresses outside [0,0xc0] into a register.
8892 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8893 cases where the base address register is unused after.
8894 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8895 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8896 (avr_out_store_psi_reg_disp_tiny): Same.
8897
8898 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8899
8900 Implement attribute progmem on reduced Tiny cores by adding
8901 flash offset 0x4000 to respective symbols.
8902
8903 PR target/71948
8904 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8905 documentation how it works on reduced Tiny cores.
8906 (AVR Named Address Spaces): No support for reduced Tiny.
8907 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8908 (avr_address_tiny_pm_p): New static function.
8909 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8910 if the address is in progmem.
8911 (avr_assemble_integer): Same.
8912 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8913 for symbol_ref in progmem.
8914 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8915 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8916 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8917
8918 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8919
8920 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8921 * configure: Regenerate.
8922 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8923 (USE_THIN_ARCHIVES): New variable.
8924 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8925 this archive as a thin archive.
8926
8927 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8928
8929 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8930 same location as last time, don't skip if we have fix-it hints.
8931 Clarify the skipping logic by converting it from one "if" clause
8932 to repeated "if" clauses.
8933 * spellcheck-tree.c: Include "cpplib.h".
8934 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8935 (best_macro_match::best_macro_match): New constructor.
8936 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8937 Move here from c/c-decl.c.
8938 (class best_macro_match): Move here from c/c-decl.c, converting
8939 from a typedef to a subclass, gaining a ctor.
8940
8941 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8942
8943 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8944 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8945 define...
8946 (avr_addr_space_diagnose_usage): ...and implementation.
8947 (avr_addr_space_supported_p): New function.
8948 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8949 report bad address space usage if that space is supported.
8950 (avr_insert_attributes): Same. No more complain about unsupported
8951 address spaces.
8952 * config/avr/avr-c.c (tm_p.h): Include it.
8953 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8954 macro if avr_addr_space_supported_p.
8955
8956 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8957
8958 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8959 flag_toplevel_reorder.
8960
8961 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8962
8963 * gcc-rich-location.c
8964 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8965 a const char *.
8966 * gcc-rich-location.h
8967 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8968
8969 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8970
8971 * target.def (addr_space): Add new diagnose_usage to hook vector.
8972 * targhooks.c (default_addr_space_diagnose_usage): Add default
8973 implementation and...
8974 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8975 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8976 is some address space, call targetm.addr_space.diagnose_usage.
8977 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8978 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8979 * doc/tm.texi: Regenerate.
8980
8981 2016-07-20 Martin Liska <mliska@suse.cz>
8982
8983 PR middle-end/71898
8984 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8985 Properly handly PHI stmts.
8986
8987 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8988
8989 PR tree-optimization/71503
8990 PR tree-optimization/71683
8991 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8992 and break.
8993
8994 2016-07-20 Martin Liska <mliska@suse.cz>
8995
8996 * doc/invoke.texi (-fipa-ra): Document when the option is
8997 disabled. Fix a typo.
8998
8999 2016-07-20 Martin Liska <mliska@suse.cz>
9000
9001 * Makefile.in: Include fibonacci_heap.c
9002 * fibonacci_heap.c: New file.
9003 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
9004 (fibonacci_heap::union_with): Fix deletion of the second heap.
9005 * selftest-run-tests.c (selftest::run_tests): Incorporate
9006 fibonacci heap tests.
9007 * selftest.h: Declare fibonacci_heap_c_tests.
9008
9009 2016-07-20 Martin Liska <mliska@suse.cz>
9010
9011 * selftest-run-tests.c (selftest::run_tests): New function.
9012 * selftest.h (sreal_c_tests): Declare.
9013 * sreal.c (sreal_verify_basics): New function.
9014 (verify_aritmetics): Likewise.
9015 (sreal_verify_arithmetics): Likewise.
9016 (verify_shifting): Likewise.
9017 (sreal_verify_shifting): Likewise.
9018 (void sreal_c_tests): Likewise.
9019
9020 2016-07-19 Jakub Jelinek <jakub@redhat.com>
9021
9022 PR rtl-optimization/71916
9023 * cfgrtl.c (contains_no_active_insn_p): Return false also for
9024 bb which have a single succ fake edge.
9025
9026 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
9027
9028 PR debug/71855
9029 * dwarf2out.c (gen_subprogram_die): Only call
9030 gen_unspecified_parameters_die while dumping early dwarf.
9031
9032 2016-07-19 Jakub Jelinek <jakub@redhat.com>
9033
9034 PR middle-end/71874
9035 * gimple-fold.c (fold_builtin_memory_op): Use
9036 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9037
9038 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
9039
9040 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
9041 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
9042 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
9043 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
9044 * combine.c: Ditto.
9045 * cse.c: Ditto.
9046 * dojump.c: Ditto.
9047 * double-int.c: Ditto.
9048 * dse.c: Ditto.
9049 * dwarf2out.c: Ditto.
9050 * expmed.c: Ditto.
9051 * expr.c: Ditto.
9052 * fold-const.c: Ditto.
9053 * function.c: Ditto.
9054 * fwprop.c: Ditto.
9055 * genmodes.c: Ditto.
9056 * hwint.c: Ditto.
9057 * hwint.h: Ditto.
9058 * ifcvt.c: Ditto.
9059 * loop-doloop.c: Ditto.
9060 * loop-invariant.c: Ditto.
9061 * loop-iv.c: Ditto.
9062 * match.pd: Ditto.
9063 * optabs.c: Ditto.
9064 * real.c: Ditto.
9065 * reload.c: Ditto.
9066 * rtlanal.c: Ditto.
9067 * simplify-rtx.c: Ditto.
9068 * stor-layout.c: Ditto.
9069 * toplev.c: Ditto.
9070 * tree-ssa-loop-ivopts.c: Ditto.
9071 * tree-vect-generic.c: Ditto.
9072 * tree-vect-patterns.c: Ditto.
9073 * tree.c: Ditto.
9074 * tree.h: Ditto.
9075 * ubsan.c: Ditto.
9076 * varasm.c: Ditto.
9077 * wide-int-print.cc: Ditto.
9078 * wide-int.cc: Ditto.
9079 * wide-int.h: Ditto.
9080
9081 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9082
9083 * selftest.c (selftest::assert_streq): Handle NULL values of
9084 val_actual and val_expected.
9085
9086 2016-07-19 Martin Jambor <mjambor@suse.cz>
9087
9088 PR fortran/71688
9089 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
9090 rather than cgraph_create_node to get a call graph node.
9091
9092 2016-07-19 Richard Biener <rguenther@suse.de>
9093
9094 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
9095 handle all tcc_constant bases and valueize SSA names.
9096 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
9097 tcc_constant bases.
9098
9099 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9100
9101 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
9102 the flags of the exit block and bb2, not just the entry block.
9103
9104 2016-07-19 Richard Biener <rguenther@suse.de>
9105
9106 PR tree-optimization/71901
9107 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9108 align member, group stuff with the bitfield.
9109 (vn_ref_op_align_unit): New inline.
9110 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
9111 record element alignment and operand 3 unchanged.
9112 (ao_ref_init_from_vn_reference): Adjust.
9113 (valueize_refs_1): Likewise.
9114 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9115
9116 2016-07-19 Richard Biener <rguenther@suse.de>
9117
9118 PR tree-optimization/71908
9119 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
9120 symbolic constants in a more reliable way.
9121
9122 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
9123
9124 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
9125 comment.
9126 (vect_update_inits_of_drs): Likewise.
9127 (vect_create_cond_for_alias_checks): Likewise.
9128 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
9129
9130 2016-07-19 Richard Biener <rguenther@suse.de>
9131
9132 PR lto/71907
9133 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
9134 with an abstract origin that is not an inlined function outer
9135 scope add a self-reference as abstract origin.
9136 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
9137
9138 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9139
9140 PR target/71493
9141 * config/rs6000/rs6000.c (rs6000_function_value): Fix
9142 unintentional System V.4 structure return breakage for structures
9143 with a single floating point element.
9144
9145 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9146
9147 PR tree-optimization/71734
9148 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
9149 contains REF, use it to check safelen, assume that safelen value
9150 must be greater 1, fix style.
9151 (ref_indep_loop_p_2): Add REF_LOOP argument.
9152 (ref_indep_loop_p): Pass LOOP as additional argument to
9153 ref_indep_loop_p_2.
9154
9155 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
9156
9157 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
9158 allocation in the prologue.
9159 * explow.c (get_dynamic_stack_base): New function to return an address
9160 expression for the dynamic stack base.
9161 (get_dynamic_stack_size): New function to do the required dynamic stack
9162 space size calculations.
9163 (allocate_dynamic_stack_space): Use new functions.
9164 (align_dynamic_address): Move some code from
9165 allocate_dynamic_stack_space to new function.
9166 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
9167
9168 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9169
9170 * config/s390/s390.c (s390_encode_section_info): Always set
9171 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
9172 found.
9173
9174 2016-07-18 Richard Biener <rguenther@suse.de>
9175
9176 PR tree-optimization/71893
9177 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
9178 for sizetype cast added by array_ref_element_size.
9179 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9180
9181 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
9182
9183 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
9184 register parameters. Remove code to initialize argument pointer
9185 on TARGET_64BIT. Optimize call to _mcount when it can be reached
9186 using a pc-relative branch. Cleanup conditional code.
9187 * config/pa/pa.md (call_mcount): New expander.
9188 (call_mcount_nonpic): New insn.
9189 (call_mcount_pic): New insn and split.
9190 (call_mcount_pic_post_reload): New insn.
9191 (call_mcount_64bit): New insn and split.
9192 (call_mcount_64bit_post_reload): New insn.
9193
9194 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
9195
9196 * config/avr/predicates.md (const_m255_to_m1_operand): New.
9197 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
9198 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
9199 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
9200 (*usum_widenqihi3, *udiff_widenqihi3)
9201 (*addhi3_zero_extend.const): New combiner insns.
9202 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
9203 just 1 bit is affected.
9204 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
9205 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
9206
9207 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9208
9209 * omp-low.c (lower_omp_target): Mark data clauses with
9210 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
9211 zero-length subarrays.
9212
9213 2016-07-15 Richard Biener <rguenther@suse.de>
9214
9215 PR tree-optimization/71881
9216 * tree-loop-distribution.c (destroy_loop): Remove blocks in
9217 reverse DOM order to make debug temp generation happy.
9218
9219 2016-07-15 Richard Biener <rguenther@suse.de>
9220
9221 PR tree-optimization/71887
9222 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
9223 verify it is not zero for division / modulo handling.
9224 (value_replacement): Adjust.
9225
9226 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
9227 Julian Brown <julian@codesourcery.com>
9228
9229 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
9230 * config/aarch64/aarch64-cost-tables.h
9231 (vulcan_extra_costs): New variable.
9232 * config/aarch64/aarch64.c
9233 (vulcan_addrcost_table): Likewise.
9234 (vulcan_regmove_cost): Likewise.
9235 (vulcan_vector_cost): Likewise.
9236 (vulcan_branch_cost): Likewise.
9237 (vulcan_tunings): Likewise.
9238
9239 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
9240
9241 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
9242 (output_in_order): Loop over undefined variables too. Output them
9243 via assemble_undefined_decl. Skip variables that correspond to hard
9244 registers or have value-exprs.
9245 * varpool.c (symbol_table::output_variables): Handle undefined
9246 variables together with defined ones.
9247
9248 2016-07-15 Richard Biener <rguenther@suse.de>
9249
9250 * tree-ssa-pre.c (get_representative_for): Make sure to return
9251 the value number of SSA names.
9252 (phi_translate_1): get_representative_for cannot return NULL.
9253 (do_pre_regular_insertion): Remove redundant call to
9254 fully_constant_expression.
9255 (do_pre_partial_partial_insertion): Likewise.
9256
9257 2016-07-15 Bin Cheng <bin.cheng@arm.com>
9258
9259 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
9260 (derive_simple_iv_with_niters): New function.
9261 (simple_iv): Rewrite using simple_iv_with_niters.
9262 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
9263 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9264 function.
9265 (number_of_iterations_exit): Rewrite using above function.
9266 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9267 Decl.
9268
9269 2016-07-15 Richard Biener <rguenther@suse.de>
9270
9271 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
9272 vec_construct cost.
9273
9274 2016-07-14 Jakub Jelinek <jakub@redhat.com>
9275
9276 PR tree-optimization/71872
9277 * tree-data-ref.c (get_references_in_stmt): Ignore references
9278 with is_gimple_constant get_base_address.
9279
9280 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9281
9282 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
9283 (TARGET_HAVE_LDACQD): New macro.
9284 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
9285 than TARGET_HAVE_LDACQ.
9286 (arm_load_acquire_exclusivedi): Likewise.
9287 (arm_store_release_exclusivedi): Likewise.
9288
9289 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9290
9291 PR rtl-optimization/71878
9292 * lra-constraints.c (match_reload): Pass information about other
9293 output operands. Create new unique register value if matching input
9294 operand shares same register value as output operand being considered.
9295 (curr_insn_transform): Record output operands already processed.
9296
9297 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9298
9299 PR target/65951
9300 PR tree-optimization/70923
9301 * tree-vect-patterns.c: Include mult-synthesis.h.
9302 (target_supports_mult_synth_alg): New function.
9303 (synth_lshift_by_additions): Likewise.
9304 (apply_binop_and_append_stmt): Likewise.
9305 (vect_synth_mult_by_constant): Likewise.
9306 (target_has_vecop_for_code): Likewise.
9307 (vect_recog_mult_pattern): Use above functions to synthesize vector
9308 multiplication by integer constants.
9309
9310 2016-07-14 Alan Modra <amodra@gmail.com>
9311
9312 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
9313 gpr alternatives. Correct '*' placement on Y,r alternative.
9314 Add '*' on operand 1 of r,r alternative.
9315
9316 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9317
9318 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
9319 * expmed.h: ... Here.
9320
9321 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
9322
9323 * gimple.h (stmt_can_terminate_bb_p): New function.
9324 * tree-cfg.c (need_fake_edge_p): Rename to ...
9325 (stmt_can_terminate_bb_p): ... this; return true if stmt can
9326 throw external; handle const and pure calls.
9327 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
9328
9329 2016-07-14 Richard Biener <rguenther@suse.de>
9330
9331 PR tree-optimization/71866
9332 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
9333 (do_hoist_insertion): Avoid endless recursion when we
9334 didn't insert anything because we managed to simplify
9335 things down to a constant or SSA name.
9336 (fully_constant_expression): Re-write in terms of ...
9337 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
9338 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
9339 vn_nary_build_or_lookup_1.
9340 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
9341 (vn_nary_build_or_lookup): ... this which now wraps it.
9342
9343 2016-07-14 Alan Modra <amodra@gmail.com>
9344
9345 PR target/71733
9346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
9347 with p9_vector override before power9-dform override.
9348
9349 2016-07-13 Andi Kleen <ak@linux.intel.com>
9350
9351 * value-prof.c (gimple_value_profile_transformations): Don't run
9352 when auto_profile is on.
9353
9354 2016-07-13 Andi Kleen <ak@linux.intel.com>
9355
9356 * auto-profile.c (update_inlined_ind_target,
9357 afdo_indirect_call): Print information to dump file.
9358
9359 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
9360
9361 * genrecog.c (special_predicate_operand_p): New function.
9362 (predicate_name): Move function.
9363 (validate_pattern): Don't warn about missing mode for all
9364 define_special_predicate predicates.
9365
9366 2016-07-13 Bin Cheng <bin.cheng@arm.com>
9367
9368 * tree-vect-data-refs.c (vect_no_alias_p): New function.
9369 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
9370 resolve alias checks which are known at compilation time.
9371 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
9372 alias checks are resolved. Move dump info for too many runtime
9373 alias checks to here...
9374 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
9375
9376 2016-07-13 Richard Biener <rguenther@suse.de>
9377
9378 PR tree-optimization/24574
9379 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
9380 position and add shift, rotate, divison and modulo support
9381 for left zero.
9382 (value_replacement): Pass in argument position to absorbing_element_p.
9383
9384 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
9385
9386 PR ipa/71633
9387 * ipa-inline-transform.c (inline_call): Support
9388 instrumented thunks.
9389
9390 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9391
9392 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
9393 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
9394 divide feature.
9395 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
9396 Baseline. Make initial alternative TARGET_32BIT only.
9397 (udivsi3): Likewise.
9398 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
9399 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
9400 target.
9401
9402 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9403
9404 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
9405 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
9406 availability with TARGET_HAVE_MOVT.
9407 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
9408 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
9409 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
9410 UINTVAL.
9411 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
9412 extra instruction if MOVW is available. Use a cost variable
9413 incremented by COSTS_N_INSNS (1) when the condition match rather than
9414 returning an arithmetic expression based on COSTS_N_INSNS. Make
9415 constant with bottom half word zero cost 2 instruction if MOVW is
9416 available.
9417 * config/arm/arm.md (define_attr "arch"): Add v8mb.
9418 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
9419 target is ARMv8-M Baseline.
9420 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
9421 (arm_movtas_ze): Likewise.
9422 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
9423 alternative for constants satisfying j constraint.
9424 (thumb1_movsi_insn): Likewise.
9425 (movsi splitter for K alternative): Tighten condition to not trigger
9426 if movt is available and j constraint is satisfied.
9427 (Pe immediate splitter): Likewise.
9428 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
9429 constant fitting in an halfword to use MOVW.
9430 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
9431 effective target.
9432
9433 2016-07-13 Richard Biener <rguenther@suse.de>
9434
9435 PR middle-end/71104
9436 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
9437 gimplifying the LHS. Make sure to gimplify a returning twice
9438 call LHS without using SSA names.
9439
9440 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9441
9442 * tree-data-ref.c (find_data_references_in_stmt): Remove
9443 unnecessary call to vec::release.
9444 (graphite_find_data_references_in_stmt): Likewise.
9445 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
9446 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9447
9448 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9449
9450 * cfgexpand.c (expand_used_vars): Make the type of a local
9451 variable auto_vec.
9452 * genmatch.c (lower_for): Likewise.
9453 * haifa-sched.c (haifa_sched_init): Likewise.
9454 (add_to_speculative_block): Likewise.
9455 (create_check_block_twin): Likewise.
9456 * predict.c (handle_missing_profiles): Likewise.
9457 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
9458 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
9459 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
9460 Likewise.
9461 (maybe_lower_iteration_bound): Likewise.
9462 * tree-ssa-sccvn.c (DFS): Likewise.
9463 * tree-stdarg.c (reachable_at_most_once): Likewise.
9464 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9465 (vectorizable_store): Likewise.
9466
9467 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9468
9469 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
9470 (sccvn_dom_walker): make cond_stack an auto_vec.
9471
9472 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9473
9474 * ree.c (struct ext_state): Make type of members auto_vec.
9475 (find_and_remove_re): Adjust.
9476
9477 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9478
9479 * cfgexpand.c (struct stack_vars_data): Make type of fields
9480 auto_vec.
9481 (expand_used_vars): Adjust.
9482
9483 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9484
9485 * ipa.c (record_cdtor_fn): Adjust.
9486 (build_cdtor_fns): Likewise.
9487 (ipa_cdtor_merge): Make static_ctors and static_dtors local
9488 variables.
9489
9490 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9491
9492 * genextract.c (struct accum_extract): Add constructor and make
9493 members auto_vec.
9494 (gen_insn): Adjust.
9495
9496 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9497
9498 * tree.c (struct free_lang_data_d): Add constructor and change
9499 types of members to ones that automatically manage resources.
9500 (fld_worklist_push): Adjust.
9501 (find_decls_types): Likewise.
9502 (find_decls_types_in_eh_region): Likewise.
9503 (free_lang_data_in_cgraph): Stop manually creating and
9504 destroying members of free_lang_data_d.
9505
9506 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
9507
9508 PR rtl-optimization/68961
9509 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
9510 peephole variant. Use sse_reg_operand predicates.
9511
9512 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
9513
9514 * config/i386/predicates.md (x86_64_immediate_operand)
9515 <case CONST_INT>: Remove unneeded truncation to DImode.
9516 <case CONST>: Ditto.
9517 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9518
9519 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9520
9521 PR target/71805
9522 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
9523 The xxperm and xxpermr instructions require that the 2nd input
9524 operand overlap with the output operand, and not the 1st.
9525 (altivec_vperm_v8hiv16qi): Likewise.
9526 (altivec_vperm_<mode>_uns_internal): Likewise.
9527 (altivec_vpermr_<mode>_internal): Likewise.
9528 (vperm_v8hiv4si): Likewise.
9529 (vperm_v16qiv8hi): Likewise.
9530
9531 2016-07-12 Nathan Sidwell <nathan@acm.org>
9532
9533 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
9534 when -mno-pic-data-is-text-relative is in effect, by default.
9535 * doc/invoke.texi (mpic-data-is-text-relative): Document new
9536 behavior and clarify.
9537
9538 2016-07-12 Martin Liska <mliska@suse.cz>
9539
9540 * params.def: Add avg-loop niter.
9541 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
9542 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
9543 * doc/invoke.texi: Document the new parameter.
9544
9545 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9546
9547 PR middle-end/71700
9548 * expr.c (store_constructor): Mask sign-extended bits when widening
9549 sub-word constructor element at the start of a word.
9550
9551 2016-07-12 Martin Liska <mliska@suse.cz>
9552
9553 * Makefile.in: Append rule for params-options.h.
9554 * params-options.h: New file.
9555
9556 2016-07-12 Martin Liska <mliska@suse.cz>
9557
9558 * ira-build.c (mark_loops_for_removal): Properly iterate
9559 loops.
9560
9561 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
9562 Richard Biener <rguenther@suse.de>
9563
9564 PR tree-optimization/23286
9565 PR tree-optimization/70159
9566 * doc/invoke.texi: Document -fcode-hoisting.
9567 * common.opt (fcode-hoisting): New flag.
9568 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
9569 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
9570 (do_regular_insertion): Rename to ...
9571 (do_pre_regular_insertion): ... this and amend general comments
9572 on insertion strathegy.
9573 (do_partial_partial_insertion): Rename to ...
9574 (do_pre_partial_partial_insertion): ... this.
9575 (do_hoist_insertion): New function.
9576 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
9577 and call do_hoist_insertion properly.
9578 (insert): Adjust.
9579 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
9580 (pass_pre::execute): Register hoist_insert stats.
9581
9582 2016-07-12 Jakub Jelinek <jakub@redhat.com>
9583
9584 PR middle-end/71716
9585 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
9586 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
9587 is different from mode's bitsize. Small cleanup.
9588
9589 2016-07-12 Richard Biener <rguenther@suse.de>
9590
9591 PR rtl-optimization/68961
9592 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
9593 to simplify to a non-constant.
9594
9595 2016-07-11 Jakub Jelinek <jakub@redhat.com>
9596
9597 PR middle-end/71758
9598 * omp-low.c (expand_omp_target): Gimplify device.
9599
9600 PR tree-optimization/71823
9601 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
9602 to get vec_oprnds2 from op2.
9603
9604 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
9605
9606 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
9607 Hoist common subexpressions.
9608 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9609
9610 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
9611
9612 PR target/71800
9613 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
9614 prevent generation of 'stxsiwx' on pre Power8 hardware.
9615
9616 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9617
9618 * input.c: Include cpplib.h.
9619 (selftest::temp_source_file): New class.
9620 (selftest::temp_source_file::temp_source_file): New ctor.
9621 (selftest::temp_source_file::~temp_source_file): New dtor.
9622 (selftest::should_have_column_data_p): New function.
9623 (selftest::test_should_have_column_data_p): New function.
9624 (selftest::temp_line_table): New class.
9625 (selftest::temp_line_table::temp_line_table): New ctor.
9626 (selftest::temp_line_table::~temp_line_table): New dtor.
9627 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
9628 it to create a temp_line_table.
9629 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
9630 locations that are known to have column data.
9631 (selftest::line_table_case): New struct.
9632 (selftest::test_reading_source_line): Move tempfile handling
9633 to class temp_source_file.
9634 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
9635 (selftest::assert_token_loc_eq): New function.
9636 (ASSERT_TOKEN_LOC_EQ): New macro.
9637 (selftest::test_lexer): New function.
9638 (selftest::boundary_locations): New array.
9639 (selftest::input_c_tests): Call test_should_have_column_data_p.
9640 Loop over a test matrix of interesting values of location and
9641 default_range_bits, calling test_lexer on each case in the matrix.
9642 Move call to test_accessing_ordinary_linemaps into the matrix.
9643 * selftest.h (ASSERT_EQ): Reimplement in terms of...
9644 (ASSERT_EQ_AT): New macro.
9645
9646 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
9647
9648 PR target/71801
9649 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9650 Don't convert TImode in debug insn.
9651
9652 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9653
9654 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
9655 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
9656 (tree_type_common::lang_flag_7): New.
9657 (tree_type_common::spare): Reduce size.
9658 * tree.h (TYPE_ALIGN_OK): Remove.
9659 (TYPE_LANG_FLAG_7): New.
9660 (get_inner_reference): Adjust header.
9661 * print-tree.c (print_node): Adjust.
9662 * expr.c (get_inner_reference): Remove parameter keep_aligning.
9663 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
9664 calls to get_inner_reference.
9665 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
9666 handling of TYPE_ALIGN_OK.
9667 * builtins.c (get_object_alignment_2): Adjust call to
9668 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
9669 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9670 TYPE_ALIGN_OK.
9671 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9672 * cfgexpand.c (expand_debug_expr): Likewise.
9673 * dbxout.c (dbxout_expand_expr): Likewise.
9674 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9675 loc_list_from_tree, fortran_common): Likewise.
9676 * fold-const.c (optimize_bit_field_compare,
9677 decode_field_reference, fold_unary_loc, fold_comparison,
9678 split_address_to_core_and_offset): Likewise.
9679 * gimple-laddress.c (execute): Likewise.
9680 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9681 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9682 * hsa-gen.c (gen_hsa_addr): Likewise.
9683 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9684 * tsan.c (instrument_expr): Likewise.
9685 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9686 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9687 * tree-affine.c (tree_to_aff_combination,
9688 get_inner_reference_aff): Adjust calls to get_inner_reference.
9689 * tree-data-ref.c (split_constant_offset_1,
9690 dr_analyze_innermost): Likewise.
9691 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9692 * tree-sra.c (ipa_sra_check_caller): Likewise.
9693 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9694 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9695 bswap_replace): Likewise.
9696 * tree-vect-data-refs.c (vect_check_gather,
9697 vect_analyze_data_refs): Likewise.
9698 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9699 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9700 TYPE_ALIGN_OK.
9701
9702 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9703
9704 * Makefile.in (selftest-valgrind): New phony target.
9705 * function-tests.c (selftest::build_cfg): Delete pass instances
9706 created by the test.
9707 (selftest::convert_to_ssa): Likewise.
9708 (selftest::test_expansion_to_rtl): Likewise.
9709 * tree-cfg.c (selftest::test_linear_chain): Release dominator
9710 vectors.
9711 (selftest::test_diamond): Likewise.
9712
9713 2016-07-11 Richard Biener <rguenther@suse.de>
9714
9715 PR tree-optimization/71816
9716 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9717 than replacing all of its operands.
9718
9719 2016-07-11 Alan Modra <amodra@gmail.com>
9720
9721 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9722 (ctr<mode>): Add unspec.
9723 (ctr<mode>_internal*): Likewise.
9724
9725 2016-07-08 James Bowman <james.bowman@ftdichip.com>
9726
9727 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9728 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9729
9730 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
9731
9732 PR rtl-optimization/71621
9733 * lra-constraints.c (process_alt_operands): Check combination of
9734 reg class and mode.
9735
9736 2016-07-08 Jason Merrill <jason@redhat.com>
9737 Richard Biener <rguenther@suse.de>
9738
9739 P0145: Refining Expression Order for C++.
9740 * gimplify.c (initial_rhs_predicate_for): New.
9741 (gimplfy_modify_expr): Gimplify RHS before LHS.
9742
9743 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9744
9745 PR target/71297
9746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9747 Allow standard error handling to take over when a wrong number
9748 of arguments is presented to __builtin_vec_ld () or
9749 __builtin_vec_st ().
9750
9751 2016-07-08 Jiong Wang <jiong.wang@arm.com>
9752
9753 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9754 variants.
9755 (smin): Likewise.
9756 (fmax): New entry.
9757 (fmin): Likewise.
9758 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9759 __builtin_aarch64_fmaxv2sf.
9760 (vmaxnmq_f32): Likewise.
9761 (vmaxnmq_f64): Likewise.
9762 (vminnm_f32): Likewise.
9763 (vminnmq_f32): Likewise.
9764 (vminnmq_f64): Likewise.
9765
9766 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9767
9768 PR target/71806
9769 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9770 enable -mfloat128-hardware by default.
9771 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9772 that IEEE 128-bit hardware support needs.
9773 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9774 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9775 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9776 floating point requires.
9777 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9778 -mfloat128 and -mfloat128-hardware changes.
9779
9780 2016-07-08 Alan Hayward <alan.hayward@arm.com>
9781
9782 PR tree-optimization/71667
9783 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9784
9785 2016-07-08 Martin Liska <mliska@suse.cz>
9786
9787 PR middle-end/71606
9788 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9789 folding produces SAVE_EXPRs, thus return false for the type.
9790
9791 2016-07-07 Martin Liska <mliska@suse.cz>
9792
9793 * file-find.c (remove_prefix): New function.
9794 * file-find.h (remove_prefix): Declare the function.
9795 * gcc-ar.c (main): Skip a folder of the wrapper if
9796 a wrapped binary would point to the same file.
9797
9798 2016-07-07 Jan Hubicka <jh@suse.cz>
9799
9800 * tree-scalar-evolution.c (iv_can_overflow_p): export.
9801 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9802 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9803
9804 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9805
9806 PR ipa/71624
9807 * ipa-inline-analysis.c (compute_inline_parameters): Set
9808 local.can_change_signature to false for intrumentation
9809 thunk callees.
9810
9811 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9812
9813 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9814 with TARGET_HAVE_MOVT.
9815 (TARGET_HAVE_MOVT): Define.
9816 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9817 availability with TARGET_HAVE_MOVT.
9818 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9819 availability.
9820 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9821 TARGET_THUMB2.
9822 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9823 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9824 * config/arm/constraints.md (define_constraint "j"): Use
9825 TARGET_HAVE_MOVT to check MOVT availability.
9826
9827 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9828
9829 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9830
9831 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9832
9833 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9834 (armv8-m.main): Likewise.
9835 (armv8-m.main+dsp): Likewise.
9836 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9837 (FL_FOR_ARCH8M_MAIN): Likewise.
9838 * config/arm/arm-tables.opt: Regenerate.
9839 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9840 armv8-m.main+dsp to BE8_LINK_SPEC.
9841 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9842 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9843 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9844 Baseline and Mainline.
9845 (arm_option_override_internal): Also disable arm_restrict_it when
9846 !arm_arch_notm. Update comment for -munaligned-access to also cover
9847 ARMv8-M Baseline.
9848 (arm_file_start): Increase buffer size for printing architecture name.
9849 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9850 and armv8-m.main+dsp.
9851 (mno-unaligned-access): Clarify that this is disabled by default for
9852 ARMv8-M Baseline architectures as well.
9853
9854 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9855
9856 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9857 decide whether to prevent some libgcc routines being included for some
9858 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9859 link between this condition and the one in
9860 libgcc/config/arm/lib1func.S.
9861
9862 2016-07-07 Richard Biener <rguenther@suse.de>
9863
9864 * tree-ssa-pre.c: Include alias.h.
9865 (compute_avail): If we have multiple VN_REFERENCEs with the
9866 same hashtable entry adjust that to make it a valid replacement
9867 for all of them with respect to alignment and aliasing
9868 when doing insertion.
9869 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9870 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9871
9872 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9873
9874 PR target/70098
9875 PR target/71763
9876 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9877 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9878 constraint.
9879
9880 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9881
9882 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9883 (adjust_mems): Adjust.
9884 (adjust_insn): Likewise.
9885 (prepare_call_arguments): Likewise.
9886
9887 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9888
9889 * gcse.c (struct ls_expr): Make stores field a vector.
9890 (ldst_entry): Adjust.
9891 (free_ldst_entry): Likewise.
9892 (print_ldst_list): Likewise.
9893 (compute_ld_motion_mems): Likewise.
9894 (update_ld_motion_stores): Likewise.
9895
9896 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9897
9898 * gcse.c (struct ls_expr): Remove loads field.
9899 (ldst_entry): Adjust.
9900 (free_ldst_entry): Likewise.
9901 (print_ldst_list): Likewise.
9902 (compute_ld_motion_mems): Likewise.
9903
9904 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9905
9906 * store-motion.c (struct st_expr): Make antic_stores a vector.
9907 (st_expr_entry): Adjust.
9908 (free_st_expr_entry): Likewise.
9909 (print_store_motion_mems): Likewise.
9910 (find_moveable_store): Likewise.
9911 (compute_store_table): Likewise.
9912 (remove_reachable_equiv_notes): Likewise.
9913 (replace_store_insn): Likewise.
9914 (build_store_vectors): Likewise.
9915
9916 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9917
9918 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9919 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9920
9921 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9922
9923 PR tree-optimization/71518
9924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9925 misalign also for outer loops with negative step.
9926
9927 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9928
9929 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9930 (cortex_a53_shift): Add mov_shift.
9931 (cortex_a53_shift_reg): Add new reservation for register shifts.
9932 (cortex_a53_alu): Remove bfm.
9933 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9934 (cortex_a53_alu_extr): Add new reservation for EXTR.
9935 (bypasses): Improve bypass modelling.
9936
9937 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9938
9939 PR target/50739
9940 * config/avr/avr.c (avr_asm_select_section): Strip off
9941 SECTION_DECLARED from flags when calling get_section.
9942
9943 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9944
9945 * tree-vectorizer.h (vect_memory_access_type): Add
9946 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9947 * tree-vect-stmts.c (compare_step_with_zero): New function.
9948 (perm_mask_for_reverse): Move further up file.
9949 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9950 step is negative.
9951 (get_negative_load_store_type): New function.
9952 (get_load_store_type): Call it. Add an ncopies argument.
9953 (vectorizable_mask_load_store): Update call accordingly and
9954 remove tests for negative steps.
9955 (vectorizable_store, vectorizable_load): Likewise. Handle new
9956 memory_access_types.
9957
9958 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9959
9960 * tree-vectorizer.h (vect_memory_access_type): New enum.
9961 (_stmt_vec_info): Add a memory_access_type field.
9962 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9963 (vect_model_store_cost): Take an access type instead of a boolean.
9964 (vect_model_load_cost): Likewise.
9965 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9966 vect_model_store_cost and vect_model_load_cost.
9967 * tree-vect-stmts.c (vec_load_store_type): New enum.
9968 (vect_model_store_cost): Take an access type instead of a
9969 store_lanes_p boolean. Simplify tests.
9970 (vect_model_load_cost): Likewise, but for load_lanes_p.
9971 (get_group_load_store_type, get_load_store_type): New functions.
9972 (vectorizable_store): Use get_load_store_type. Record the access
9973 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9974 (vectorizable_load): Likewise.
9975 (vectorizable_mask_load_store): Likewise. Replace is_store
9976 variable with vls_type.
9977
9978 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9979
9980 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9981 single_element_p parameter.
9982 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9983 Check the PR65518 case here rather than in vectorizable_load.
9984 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9985 * tree-vect-stmts.c (vectorizable_load): Likewise.
9986
9987 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9988
9989 * tree-vectorizer.h (gather_scatter_info): New structure.
9990 (vect_check_gather_scatter): Return a bool rather than a decl.
9991 Replace return-by-pointer arguments with a single
9992 gather_scatter_info *.
9993 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9994 (vect_analyze_data_refs): Update call accordingly.
9995 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9996 (vectorizable_mask_load_store): Likewise. Also record the
9997 offset dt and vectype in the gather_scatter_info.
9998 (vectorizable_store): Likewise.
9999 (vectorizable_load): Likewise.
10000
10001 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10002
10003 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
10004 strided groups, use the cost of N scalar accesses instead
10005 of ncopies vector accesses.
10006 (vect_model_load_cost): Likewise.
10007
10008 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10009
10010 * tree-vect-stmts.c (vect_cost_group_size): Delete.
10011 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
10012 variable to indicate when once-per-group costs are being used.
10013 (vect_model_load_cost): Likewise. Fix comment and misindented code.
10014
10015 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
10016
10017 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
10018 peeling-for-gaps condition.
10019
10020 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10021
10022 * config/s390/s390.c (s390_expand_vec_init): Force initializer
10023 element to register if it doesn't match general_operand.
10024
10025 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10026 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10027
10028 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
10029 prototype.
10030 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
10031 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
10032 (SIGNBIT): New mode iterator.
10033 (Fsignbit): New mode attribute.
10034 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
10035 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
10036 when direct moves are available.
10037 (signbit<mode>2_dm): New define_insn_and_split).
10038 (signbit<mode>2_dm2): New define_insn.
10039
10040 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10041
10042 PR rtl-optimization/71594
10043 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
10044 into subregs of appropriate mode before trying to emit a conditional
10045 move.
10046
10047 2016-07-05 Jan Hubicka <jh@suse.cz>
10048
10049 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
10050 (simple_iv): Use it.
10051
10052 2016-07-05 Jan Hubicka <jh@suse.cz>
10053
10054 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
10055
10056 2016-07-05 Jiong Wang <jiong.wang@arm.com>
10057
10058 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
10059 "offmemok".
10060
10061 2016-07-05 Jan Hubicka <jh@suse.cz>
10062
10063 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
10064 IV can overflow.
10065
10066 2016-07-05 Richard Biener <rguenther@suse.de>
10067
10068 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
10069 Handle empty else block.
10070 (is_feasible_trace): Likewise.
10071 (split_paths): Likewise.
10072
10073 2016-07-05 Richard Biener <rguenther@suse.de>
10074
10075 * tree-loop-distribution.c (distribute_loop): Fix issue with
10076 the cost model loop.
10077
10078 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
10079
10080 * config/arm/neon-testgen.ml: Delete.
10081 * config/arm/neon.ml: Delete.
10082
10083 2016-07-04 Jakub Jelinek <jakub@redhat.com>
10084
10085 PR c++/71739
10086 * tree.c (attribute_value_equal): Use get_attribute_name instead of
10087 directly using TREE_PURPOSE.
10088
10089 2016-07-04 Jiong Wang <jiong.wang@arm.com>
10090
10091 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
10092 * config/aarch64/aarch64_neon.h: Likewise.
10093 * config/aarch64/arm_neon.h: Likewise.
10094 * config/aarch64/atomics.md: Likewise.
10095 * config/aarch64/aarch64-simd-builtins.def: Likewise.
10096 * doc/invoke.texi: Likewise.
10097
10098 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10099
10100 * config/s390/s390.md: Add "z13" cpu_facility.
10101 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
10102 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
10103 condition" type instructions.
10104
10105 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10106 Jeff Law <law@redhat.com>
10107
10108 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
10109 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
10110
10111 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
10112
10113 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
10114 permutation for TARGET_AVX512F.
10115 (ix86_expand_vec_one_operand_perm_avx512): New function.
10116 (expand_vec_perm_1): Invoke introduced function.
10117 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10118 it may be not valid after vectorization.
10119
10120 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10121
10122 PR target/63874
10123 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
10124 typo in comment. Only force to memory if it is a weak
10125 external reference.
10126
10127 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
10128 Jiong Wang <jiong.wang@arm.com>
10129
10130 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
10131 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
10132 (AARCH64_FL_F16): New.
10133 (AARCH64_FL_FOR_ARCH8_2): New.
10134 (AARCH64_ISA_8_2): New.
10135 (AARCH64_ISA_F16): New.
10136 (TARGET_FP_F16INST): New.
10137 (TARGET_SIMD_F16INST): New.
10138 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
10139 ("fp"): Disabling "fp" also disables "fp16".
10140 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
10141 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
10142 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
10143 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
10144
10145 2016-07-04 Jan Beulich <jbeulich@suse.com>
10146
10147 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
10148
10149 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10150
10151 PR target/71720
10152 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
10153 the insns, use an insn form that does not adjust the offset on
10154 little endian systems.
10155
10156 2016-07-01 Jan Beulich <jbeulich@suse.com>
10157
10158 * varasm.c (get_variable_section): Validate initializer in
10159 named .bss-like sections.
10160
10161 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10162
10163 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
10164 Exchange the order of the second and third operands in the vpermr
10165 instruction tmeplate.
10166
10167 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
10168
10169 PR target/71698
10170 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
10171 Disallow TDmode values.
10172
10173 2016-07-01 Alan Modra <amodra@gmail.com>
10174
10175 PR rtl-optimization/71709
10176 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
10177 being set, not referenced.
10178
10179 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10180
10181 PR tree-optimization/70729
10182 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
10183 of loop since it can be not valid after transformation.
10184
10185 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10186
10187 * config/arm/arm.c (thumb_reload_in_hi): Delete.
10188 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
10189
10190 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
10191
10192 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
10193 for NULL decl.
10194
10195 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10196
10197 PR target/71677
10198 * config/rs6000/constraints.md (wY constraint): New constraint to
10199 match the requirements for the LXSD and STXSD instructions.
10200 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
10201 predicate to match the requirements for the LXSD and STXSD
10202 instructions.
10203 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
10204 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
10205 to make sure that the bottom 2 bits of offset are 0, the address
10206 form is offsettable, and no updating is done in the address mode.
10207 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
10208 (movdi_internal32): Likewise
10209 (movdi_internal64): Likewise.
10210
10211 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10212
10213 PR tree-optimization/71707
10214 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
10215 strinfo even for ADDR_EXPR ptr.
10216
10217 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10218
10219 * config/rs6000/altivec.md (darn_32): Change the condition to
10220 TARGET_P9_MISC instead of TARGET_MODULO.
10221 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
10222 condition expression.
10223 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
10224 condition expression.
10225 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
10226 (DFP_TEST): New code iterator.
10227 (dfptstsfi_<code>_mode>): New define_expand.
10228 (*dfp_sgnfcnc_<mode>): New define_insn.
10229 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
10230 definition next to BU_P9_MISC_1 definition and change the MASK
10231 value to RS6000_BTM_P9_MISC.
10232 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
10233 (BU_P9_64BIT_MISC_0): Likewise.
10234 (BU_P9_DFP_MISC_0): New macro definition.
10235 (BU_P9_DFP_MISC_1): New macro definition.
10236 (BU_P9_DFP_MISC_2): New macro definition.
10237 (BU_P9_DFP_OVERLOAD_1): New macro definition.
10238 (BU_P9_DFP_OVERLOAD_2): New macro definition.
10239 (BU_P9_DFP_OVERLOAD_3): New macro definition.
10240 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
10241 (TSTSFI_LT_TD): Likewise.
10242 (TSTSFI_EQ_DD): Likewise.
10243 (TSTSFI_EQ_TD): Likewise.
10244 (TSTSFI_GT_DD): Likewise.
10245 (TSTSFI_GT_TD): Likewise.
10246 (TSTSFI_OV_DD): Likewise.
10247 (TSTSFI_OV_TD): Likewise.
10248 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
10249 (TSTSFI_LT_DD): Likewise.
10250 (TSTSFI_LT_TD): Likewise.
10251 (TSTSFI_EQ): Likewise.
10252 (TSTSFI_EQ_DD): Likewise.
10253 (TSTSFI_EQ_TD): Likewise.
10254 (TSTSFI_GT): Likewise.
10255 (TSTSFI_GT_DD): Likewise.
10256 (TSTSFI_GT_TD): Likewise.
10257 (TSTSFI_OV): Likewise.
10258 (TSTSFI_OV_DD): Likewise.
10259 (TSTSFI_OV_TD): Likewise.
10260 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10261 overloaded test significance functions.
10262 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10263 OPTION_MASK_P9_MISC into the representation of this mask.
10264 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
10265 of this mask.
10266 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
10267 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
10268 non-zero.
10269 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
10270 argument is a 6-bit unsigned literal value if the icode argument
10271 represents a DFP test significance built-in call.
10272 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
10273 flag used independently and in combination with the
10274 RS6000_BTM_64BIT flag.
10275 (rs6000_opt_masks): Add entry for power9-misc command-line option.
10276 (rs6000_builtin_mask_names): Add entry for power9-misc
10277 command-line option.
10278 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
10279 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
10280 RS6000_BTM_P9_MISC macros.
10281 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
10282 option and change the description of the -mpower9-vector option to
10283 enable only vector instructions, removing its erroneously claimed
10284 support for scalar instructions.
10285 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10286 the ISA 3.0 digital floating point test significance built-in
10287 functions.
10288
10289 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
10290
10291 * config/aarch64/aarch64.c (cortexa35_tunings):
10292 Enable AES fusion. Use cortexa57_branch_cost.
10293 (cortexa53_tunings): Use cortexa57_branch_cost.
10294 (cortexa72_tunings): Use cortexa57_branch_cost.
10295 Use AUTOPREFETCHER_WEAK.
10296 (cortexa73_tunings): Use cortexa57_branch_cost.
10297
10298 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10299 James Greenhalgh <james.greenhalgh@arm.com>
10300
10301 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
10302 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
10303 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
10304 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
10305 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
10306 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
10307 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
10308 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
10309 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
10310 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
10311 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
10312 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
10313 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
10314 New intrinsics.
10315
10316 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
10317 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10318
10319 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10320 New define_insn.
10321 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
10322
10323 2016-06-30 David Malcolm <dmalcolm@redhat.com>
10324
10325 PR driver/71651
10326 * gcc.c (driver::build_option_suggestions): Pass "option" to
10327 add_misspelling_candidates.
10328 * opts-common.c (add_misspelling_candidates): Add "option" param;
10329 use it to avoid adding negated forms for options marked with
10330 RejectNegative.
10331 * opts.h (add_misspelling_candidates): Add "option" param.
10332
10333 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10334
10335 PR middle-end/71693
10336 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
10337 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
10338 first when permuting bitwise operation with rotate. Cast
10339 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
10340
10341 2016-06-29 David Malcolm <dmalcolm@redhat.com>
10342
10343 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
10344 for misspelled param names.
10345 * params.c: Include spellcheck.h.
10346 (find_param_fuzzy): New function.
10347 * params.h (find_param_fuzzy): New prototype.
10348 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
10349 * spellcheck.h (struct edit_distance_traits<const char *>):
10350 ...here.
10351
10352 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
10353
10354 * config/rs6000/predicates.md (const_0_to_7_operand): New
10355 predicate, recognize 0..7.
10356 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10357 support for doing extracts from V16QImode, V8HImode, V4SImode
10358 under ISA 3.0.
10359 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
10360 vector extract support.
10361 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
10362 for ISA 3.0 vector extract.
10363 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
10364 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
10365 extracts of a constant element number from small integer vectors
10366 on 64-bit ISA 3.0 systems.
10367 (vsx_extract_<mode>_di): Likewise.
10368 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
10369 say when we can do ISA 3.0 vector extracts.
10370 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
10371 registers, using the stxsiwx instruction.
10372
10373 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
10374
10375 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
10376 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
10377 qdf24xx_regmove_cost, qdf24xx_tunings): New.
10378 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
10379 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
10380 * config/arm/arm.c (arm_qdf24xx_tune): New.
10381
10382 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
10383
10384 * config/aarch64/aarch64.c (cortexa53_tunings):
10385 Increase loop alignment to 8. Set function alignment to 16.
10386 (cortexa35_tunings): Likewise.
10387 (cortexa57_tunings): Increase loop alignment to 8.
10388 (cortexa72_tunings): Likewise.
10389 (cortexa73_tunings): Likewise.
10390
10391 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
10392
10393 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
10394 for arm_fp16_ok and arm_fp16_hw.
10395 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
10396 arm_fp16_alternative.
10397
10398 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
10399
10400 PR tree-optimization/71655
10401 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
10402 types when swapping operands.
10403
10404 2016-06-29 Martin Liska <mliska@suse.cz>
10405
10406 PR middle-end/71585
10407 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
10408 * ipa-inline-transform.c (inline_call): Remove unnecessary call
10409 of build_optimization_node.
10410
10411 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10412
10413 PR tree-optimization/70729
10414 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
10415 independent in loops having positive safelen value.
10416 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10417 it may be not valid after vectorization.
10418
10419 2016-06-29 Jakub Jelinek <jakub@redhat.com>
10420
10421 PR tree-optimization/71625
10422 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
10423 is sorted by ascending list->offset. If PTR is non-NULL and there is
10424 previous strinfo, call get_stridx_plus_constant.
10425 (get_stridx): Pass exp as second argument to get_addr_stridx.
10426 (addr_stridxptr): Add missing list = list->next, so that there can be
10427 more than one entries in the list. Bump limit from 16 to 32. Ensure
10428 the list is sorted by ascending list->offset.
10429 (get_stridx_plus_constant): Adjust so that it can be also called with
10430 ADDR_EXPR instead of SSA_NAME as PTR.
10431 (handle_char_store): Pass NULL_TREE as second argument to
10432 get_addr_stridx.
10433
10434 2016-06-29 Richard Biener <rguenther@suse.de>
10435
10436 PR rtl-optimization/68961
10437 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
10438
10439 2016-06-29 Richard Biener <rguenther@suse.de>
10440
10441 PR middle-end/71002
10442 * alias.c (component_uses_parent_alias_set_from): Handle
10443 type punning through union accesses by using the union alias set.
10444 * gimple.c (gimple_get_alias_set): Remove union type punning case.
10445
10446 2016-07-29 Richard Biener <rguenther@suse.de>
10447
10448 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
10449 precision not matching mode precision.
10450
10451 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
10452
10453 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
10454 pa_output_arg_descriptor.
10455 (call_val_symref_64bit_post_reload): Likewise.
10456 (call_val_powf_64bit_post_reload): Likewise.
10457 (sibcall_internal_symref_64bit): Likewise.
10458 (sibcall_value_internal_symref_64bit): Likewise.
10459
10460 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10461
10462 PR middle-end/71626
10463 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
10464 a constant, force its SUBREG_REG into memory or register instead
10465 of whole op1.
10466
10467 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10468
10469 PR target/58655
10470 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
10471 * doc/invoke.texi (AVR Options): Document it.
10472
10473 2016-06-28 Walter Lee <walt@tilera.com>
10474
10475 * config/tilegx/linux.h: Do not include arch/icache.h
10476 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10477 * config/tilepro/linux.h: Do not include arch/icache.h
10478 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10479
10480 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
10481
10482 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
10483 for big-endian BIT_FIELD_REF.
10484
10485 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
10486
10487 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
10488 ('size' attribute): Add '128'.
10489 Include power9.md.
10490 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
10491 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
10492 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
10493 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
10494 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
10495 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
10496 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
10497 *trunc<mode>df2_odd): Set size attribute to '128'.
10498 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
10499 * config/rs6000/power6.md (power6-fp): Include dfp type.
10500 * config/rs6000/power7.md (power7-fp): Likewise.
10501 * config/rs6000/power8.md (power8-fp): Likewise.
10502 * config/rs6000/power9.md: New file.
10503 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
10504 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
10505 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
10506 htmsimple.
10507 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
10508 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
10509 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
10510 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
10511 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
10512 dfp_dscri_<mode>): Change type attribute to dfp.
10513 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
10514 attribute to vecsimple.
10515 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
10516 and prefetch streams.
10517 (rs6000_option_override_internal): Remove temporary code setting
10518 tuning to power8. Don't set rs6000_sched_groups for power9.
10519 (last_scheduled_insn): Change to rtx_insn *.
10520 (divide_cnt, vec_load_pendulum): New variables.
10521 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
10522 (rs6000_issue_rate): Set issue rate for Power9.
10523 (is_power9_pairable_vec_type): New.
10524 (power9_sched_reorder2): New.
10525 (rs6000_sched_reorder2): Call new function for Power9 specific
10526 reordering.
10527 (insn_must_be_first_in_group): Remove Power9.
10528 (insn_must_be_last_in_group): Likewise.
10529 (force_new_group): Likewise.
10530 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
10531 Initialize divide_cnt/vec_load_pendulum.
10532 (_rs6000_sched_context, rs6000_init_sched_context,
10533 rs6000_set_sched_context): Handle context save/restore of new
10534 variables.
10535
10536 2016-06-28 Richard Biener <rguenther@suse.de>
10537
10538 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10539 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
10540 COMPONENT_REF operand.
10541 (nonoverlapping_component_refs_p): Likewise.
10542 * stor-layout.c (start_bitfield_representative): Mark
10543 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
10544
10545 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10546
10547 * Makefile.in: Don't cat ../stage_current if it does not exist.
10548
10549 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
10550 last argument is a bit-field.
10551
10552 PR rtl-optimization/71673
10553 * internal-fn.c (expand_arith_overflow_result_store): Use
10554 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
10555 expand_simple_binop.
10556
10557 PR middle-end/66867
10558 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
10559 expand_ifn_atomic_compare_exchange): New functions.
10560 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
10561 * tree.h (build_call_expr_internal_loc): Rename to ...
10562 (build_call_expr_internal_loc_array): ... this. Fix up type of
10563 last argument.
10564 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
10565 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
10566 ATOMIC_COMPARE_EXCHANGE result.
10567 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
10568 * gimple-fold.h (optimize_atomic_compare_exchange_p,
10569 fold_builtin_atomic_compare_exchange): New prototypes.
10570 * gimple-fold.c (optimize_atomic_compare_exchange_p,
10571 fold_builtin_atomic_compare_exchange): New functions..
10572 * tree-ssa.c (execute_update_addresses_taken): If
10573 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
10574 of call when finding addressable vars, and if such var becomes
10575 non-addressable, call fold_builtin_atomic_compare_exchange.
10576
10577 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
10578
10579 PR target/71670
10580 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
10581 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
10582
10583 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
10584
10585 * config/rs6000/rs6000.md ('type' attribute): Add
10586 veclogical,veccmpfx,vecexts,vecmove insn types.
10587 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
10588 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
10589 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
10590 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
10591 *nabs<mode>2_hw): Change type to vecmove.
10592 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
10593 *boolcc<mode>3_internal, *eqv<mode>3_internal,
10594 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
10595 *ieee_128bit_vsx_abs<mode>2_internal,
10596 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
10597 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
10598 *ieee128_mtvsrd_32bit): Change type to veclogical.
10599 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10600 *movdi_internal32, *movdi_internal64): Update insn types.
10601 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10602 vsx_extract_<mode>): Change type to veclogical.
10603 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
10604 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
10605 *vsx_sign_extend_si_v2di): Change type to vecexts.
10606 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
10607 type to veclogical.
10608 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
10609 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
10610 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
10611 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
10612 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10613 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
10614 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
10615 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
10616 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
10617 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
10618 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
10619 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
10620 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
10621 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
10622 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
10623 (ppc7450-vecsimple): Add veclogical, vecmove.
10624 (ppc7450-veccmp): Add veccmpfx.
10625 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
10626 vecmove.
10627 (ppc8540_vector_compare): Add veccmpfx.
10628 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
10629 * config/rs6000/cell.md (cell-fp): Add fpsimple.
10630 (cell-vecsimple): Add veclogical, vecmove.
10631 (cell-veccmp): Add veccmpfx.
10632 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
10633 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
10634 veccmpfx.
10635 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
10636 * config/rs6000/power4.md (power4-fp): Add fpsimple.
10637 (power4-vecsimple): Add veclogical, vecmove.
10638 (power4-veccmp): Add veccmpfx.
10639 * config/rs6000/power5.md (power5-fp): Add fpsimple.
10640 * config/rs6000/power6.md (power6-fp): Add fpsimple.
10641 (power6-vecsimple): Add veclogical, vecmove.
10642 (power6-veccmp): Add veccmpfx.
10643 * config/rs6000/power7.md (power7-fp): Add fpsimple.
10644 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
10645 * config/rs6000/power8.md (power8-fp): Add fpsimple.
10646 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
10647 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
10648 * config/rs6000/titan.md (titan_fp): Add fpsimple.
10649 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
10650 fpsimple.
10651 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
10652
10653 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
10654
10655 PR target/71656
10656 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10657 OPTION_MASK_P9_DFORM_VECTOR.
10658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10659 disable -mpower9-dform-vector when using reload.
10660 (quad_address_p): Remove 'gpr_p' argument and all associated code.
10661 New 'strict' argument. Update all callers. Add strict addressing
10662 support.
10663 (rs6000_legitimate_offset_address_p): Remove call to
10664 virtual_stack_registers_memory_p.
10665 (rs6000_legitimize_reload_address): Add quad address support.
10666 (rs6000_legitimate_address_p): Move call to quad_address_p above
10667 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
10668 to account for new strict usage.
10669 (rs6000_output_move_128bit): Adjust quad_address_p args to account
10670 for new strict usage.
10671 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10672
10673 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
10674
10675 PR target/70902
10676 PR target/71453
10677 PR target/71555
10678 PR target/71596
10679 PR target/71657
10680 * config/i386/i386.c (ix86_spill_class): Disable condition to
10681 always return NO_REGS.
10682
10683 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
10684
10685 * predict.c: Include gimple-pretty-print.h
10686 (predicted_by_loop_heuristics_p): Check also
10687 PRED_LOOP_EXIT_WITH_RECURSION
10688 (predict_loops): Find self recursive calls and use special purpose
10689 predictors for them; dump log about decisions.
10690 (pass_profile::execute): Dump info about #of iterations.
10691 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10692 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10693
10694 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
10695
10696 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10697 output_asm_insn calls and shorten long lines. Output .CALL
10698 argument descriptor using pa_output_arg_descriptor. Add various
10699 inline $$dyncall and other optimizations.
10700 (pa_attr_length_indirect_call): Adjust ordering and lengths.
10701
10702 2016-06-25 Jakub Jelinek <jakub@redhat.com>
10703
10704 PR tree-optimization/71643
10705 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10706 EH preds.
10707
10708 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10709 leak a bitmap if dep_bb is NULL.
10710
10711 PR tree-optimization/71631
10712 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10713 to rewrite_expr_tree even if negate_result, move new_lhs var
10714 declaration and initialization earlier, for powi_result set afterwards
10715 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
10716 if new_lhs != lhs, and don't shadow gsi var.
10717
10718 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10719
10720 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10721 Add in_loop parameter.
10722 (predict_loops): Add loop guard heuristics.
10723 * predict.def (PRED_LOOP_GUARD): New heuristics.
10724
10725 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10726
10727 * predict.c: Include ipa-utils.h
10728 (tree_bb_level_prediction): Predict recursive calls.
10729 (tree_estimate_probability_bb): Skip inexpensive calls for call
10730 predictor.
10731 * predict.def (PRED_RECURSIVE_CALL): New.
10732
10733 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10734
10735 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10736 (BU_FLOAT128_1): Likewise.
10737 (FABSQ): Likewise.
10738 (COPYSIGNQ): Likewise.
10739 (RS6000_BUILTIN_NANQ): Likewise.
10740 (RS6000_BUILTIN_NANSQ): Likewise.
10741 (RS6000_BUILTIN_INFQ): Likewise.
10742 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10743 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10744 (TARGET_FOLD_BUILTIN): New #define.
10745 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10746 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10747 (rs6000_fold_builtin): New target hook implementation, handling
10748 folding of 128-bit NaNs and infinities.
10749 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10750 entries are filled in to avoid problems during bootstrap
10751 self-test; define builtins for 128-bit NaNs and infinities.
10752 (rs6000_opt_mask): Add entry for float128.
10753 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10754 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10755 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10756 (const_str_type_node): New #define.
10757 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10758 to a define_expand that dispatches to either copysign<mode>3_soft
10759 or copysign<mode>3_hard.
10760 (copysign<mode>3_hard): Rename from copysign<mode>3.
10761 (copysign<mode>3_soft): New define_insn.
10762 * doc/extend.texi: Document new builtins.
10763
10764 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10765
10766 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10767 PRIu64 instead of lu.
10768
10769 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
10770
10771 PR debug/71642
10772 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10773 copy the type name.
10774
10775 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10776
10777 PR tree-optimization/71647
10778 * omp-low.c (lower_rec_input_clauses): Convert
10779 omp_clause_aligned_alignment (c) to size_type_node for the
10780 last argument of __builtin_assume_aligned.
10781
10782 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
10783
10784 * configure.ac (calling ___tls_get_addr via GOT): New
10785 assembler/linker check.
10786 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
10787 assembler and linker supports calling ___tls_get_addr via GOT.
10788 Otherise, defined to 0.
10789 * config.in: Regenerated.
10790 * configure: Likewise.
10791 * config/i386/constraints.md (Yb): New constraint.
10792 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10793 (REG_CLASS_NAMES): Likewise.
10794 (REG_CLASS_CONTENTS): Likewise.
10795 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10796 the b constraint with the Yb constraint. Call ___tls_get_addr
10797 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10798 is 1.
10799 (*tls_local_dynamic_base_32_gnu): Likewise.
10800 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10801 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10802 (*tls_local_dynamic_base_64_<mode>): Likewise.
10803
10804 2016-06-24 Martin Liska <mliska@suse.cz>
10805
10806 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10807 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10808 few functions.
10809 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10810 argument to true if the expected number of iterations is
10811 loop-based.
10812
10813 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10814
10815 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10816 assemble for 32bit target.
10817 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10818 and $ld_ix86_gld_32_opt to link for 32bit target.
10819 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10820 * configure: Regenerate.
10821
10822 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10823
10824 * config/arm/arm.c (int_log2): Delete definition and prototype.
10825 (shift_op): Use exact_log2 instead of int_log2.
10826 (vfp3_const_double_for_fract_bits): Likewise.
10827
10828 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10829
10830 * internal-fn.c (expand_arith_set_overflow): New function.
10831 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10832 Use it.
10833 (expand_arith_overflow_result_store): Likewise. Handle precision
10834 smaller than mode precision.
10835 * tree-vrp.c (extract_range_basic): For imag part, handle
10836 properly signed 1-bit precision result.
10837 * doc/extend.texi (__builtin_add_overflow): Document that last
10838 argument can't be pointer to enumerated or boolean type.
10839 (__builtin_add_overflow_p): Document that last argument can't
10840 have enumerated or boolean type.
10841
10842 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10843 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10844
10845 * config/rs6000/predicates.md (splat_input_operand): Rework.
10846 Don't allow constants, since the insns that use this predicate
10847 don't support constants. Constants are handled by other insns
10848 that are created via combine. During and after register
10849 allocation, only allow indexed or indirect addresses, and not
10850 general addresses. Only allow modes supported by the hardware.
10851 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10852 comment. Move check for using VSPLTIS<x> to a common location,
10853 instead of doing it in two different places.
10854
10855 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10856
10857 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10858 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10859 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10860 signature_CENTAUR_ebx.
10861
10862 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10863
10864 PR target/66232
10865 PR target/67400
10866 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10867 (as_ix86_gas_32_opt): This.
10868 (ld_ix86_tls_ldm_opt): Renamed to ...
10869 (ld_ix86_gld_32_opt): This.
10870 (R_386_TLS_LDM reloc): Updated.
10871 (R_386_GOT32X reloc): New assembler/linker check.
10872 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10873 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10874 defined to 0.
10875 * config.in: Regenerated.
10876 * configure: Likewise.
10877 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10878 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10879 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10880 if ix86_force_load_from_GOT_p returns true.
10881 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10882 ix86_force_load_from_GOT_p returns true.
10883 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10884 the external function address via the GOT slot.
10885 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10886 HAVE_AS_IX86_GOT32X before returning false.
10887 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10888 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10889
10890 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10891
10892 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10893
10894 2016-06-23 Andi Kleen <ak@linux.intel.com>
10895
10896 * Makefile.in: Regenerate.
10897 * doc/install.texi: Document autoprofiledbootstrap.
10898
10899 2016-06-23 Andi Kleen <ak@linux.intel.com>
10900
10901 * config/i386/gcc-auto-profile: New file.
10902
10903 2016-06-23 Martin Liska <mliska@suse.cz>
10904
10905 PR middle-end/71619
10906 * predict.c (predict_loops): Revert the hunk that was removed
10907 in r237103.
10908
10909 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10910
10911 * config.gcc: Add support for arm*-*-phoenix* targets.
10912 * config/arm/t-phoenix: New.
10913 * config/phoenix.h: New.
10914
10915 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10916 H.J. Lu <hongjiu.lu@intel.com>
10917
10918 PR target/67400
10919 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10920 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10921 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10922 ix86_force_load_from_GOT_p returns true.
10923 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10924 ix86_force_load_from_GOT_p returns true.
10925 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10926 ix86_force_load_from_GOT_p returns true.
10927 (ix86_expand_move): Load the external function address via the
10928 GOT slot if ix86_force_load_from_GOT_p returns true.
10929 * config/i386/predicates.md (x86_64_immediate_operand): Return
10930 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10931 (x86_64_zext_immediate_operand): Ditto.
10932
10933 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10934
10935 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10936
10937 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10938
10939 PR c/70339
10940 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10941 * diagnostic.c (pedwarn_at_rich_loc): New function.
10942 * spellcheck.h (best_match::best_match): Add a
10943 "best_distance_so_far" optional parameter.
10944 (best_match::set_best_so_far): New method.
10945 (best_match::get_best_distance): New accessor.
10946 (best_match::get_best_candidate_length): New accessor.
10947
10948 2016-06-22 Nick Clifton <nickc@redhat.com>
10949
10950 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10951 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10952 modes are accepted as well.
10953 (ucompare_loc_descriptor): Likewise.
10954 (minmax_loc_descriptor): Likewise.
10955 (clz_loc_descriptor): Likewise.
10956 (popcount_loc_descriptor): Likewise.
10957 (bswap_loc_descriptor): Likewise.
10958 (rotate_loc_descriptor): Likewise.
10959 (mem_loc_descriptor): Likewise.
10960 (loc_descriptor): Likewise.
10961
10962 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10963
10964 * common.opt (fdiagnostics-parseable-fixits): New option.
10965 * diagnostic.c: Include "selftest.h".
10966 (print_escaped_string): New function.
10967 (print_parseable_fixits): New function.
10968 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10969 (selftest::assert_print_escaped_string): New function.
10970 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10971 (selftest::test_print_escaped_string): New function.
10972 (selftest::test_print_parseable_fixits_none): New function.
10973 (selftest::test_print_parseable_fixits_insert): New function.
10974 (selftest::test_print_parseable_fixits_remove): New function.
10975 (selftest::test_print_parseable_fixits_replace): New function.
10976 (selftest::diagnostic_c_tests): New function.
10977 * diagnostic.h (struct diagnostic_context): Add field
10978 "parseable_fixits_p".
10979 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10980 -fdiagnostics-parseable-fixits.
10981 (-fdiagnostics-parseable-fixits): New option.
10982 * opts.c (common_handle_option): Handle
10983 -fdiagnostics-parseable-fixits.
10984 * selftest-run-tests.c (selftest::run_tests): Call
10985 selftest::diagnostic_c_tests.
10986 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10987
10988 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10989
10990 PR tree-optimization/71488
10991 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10992 comparison of boolean vectors.
10993 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10994 of boolean vectors using bitwise operations.
10995
10996 2016-06-22 Andreas Schwab <schwab@suse.de>
10997
10998 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10999 Remove declaration.
11000
11001 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
11002
11003 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
11004
11005 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
11006
11007 * config/i386/i386.c (print_reg): Emit an error message on attempt to
11008 print FLAGS_REG.
11009
11010 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11011
11012 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
11013 * config/arm/arm-cores.def (cortex-a73): New entry.
11014 (cortex-a73.cortex-a35): Likewise.
11015 (cortex-a73.cortex-a53): Likewise.
11016 * config/arm/arm-tables.opt: Regenerate.
11017 * config/arm/arm-tune.md: Likewise.
11018 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
11019 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
11020 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
11021 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
11022 * doc/invoke.texi (ARM Options): Document cortex-a73,
11023 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
11024
11025 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11026
11027 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
11028 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
11029 (cortex-a73.cortex-a35): Likewise.
11030 (cortex-a73.cortex-a53): Likewise.
11031 * config/aarch64/aarch64-tune.md: Regenerate.
11032 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
11033 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
11034 -mcpu and -mtune.
11035
11036 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11037
11038 * configure.ac (gcc_cv_as_compress_debug): Remove
11039 --compress-debug-sections as extra as switch.
11040 Handle gas --compress-debug-sections=type.
11041 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
11042 Handle gld --compress-debug-sections=type.
11043 * configure: Regenerate.
11044
11045 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
11048
11049 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
11050
11051 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
11052 (do_rewrite): likewise.
11053
11054 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11055
11056 * common/config/mep/mep-common.c: Remove.
11057 * config.gcc: Remove mep-* support.
11058 * config/mep/constraints.md: Remove.
11059 * config/mep/default.h: Remove.
11060 * config/mep/intrinsics.h: Remove.
11061 * config/mep/intrinsics.md: Remove.
11062 * config/mep/ivc2-template.h: Remove.
11063 * config/mep/mep-c5.cpu: Remove.
11064 * config/mep/mep-core.cpu: Remove.
11065 * config/mep/mep-default.cpu: Remove.
11066 * config/mep/mep-ext-cop.cpu: Remove.
11067 * config/mep/mep-intrin.h: Remove.
11068 * config/mep/mep-ivc2.cpu: Remove.
11069 * config/mep/mep-pragma.c: Remove.
11070 * config/mep/mep-protos.h: Remove.
11071 * config/mep/mep.c: Remove.
11072 * config/mep/mep.cpu: Remove.
11073 * config/mep/mep.h: Remove.
11074 * config/mep/mep.md: Remove.
11075 * config/mep/mep.opt: Remove.
11076 * config/mep/predicates.md: Remove.
11077 * config/mep/t-mep: Remove.
11078 * doc/install.texi: Remove mep-* documentation.
11079 * doc/md.texi: Likewise.
11080
11081 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11082
11083 * config.gcc: Remove support for avr-rtems.
11084 * config/avr/gen-avr-mmcu-specs.c: Likewise.
11085 * config/avr/rtems.h: Remove.
11086 * config/avr/t-rtems: Remove.
11087
11088 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11089
11090 * config.gcc: Remove m32r-rtems support.
11091 * config/m32r/rtems.h: Remove.
11092
11093 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11094
11095 * config.gcc: Remove h8300-rtems support.
11096 * config/h8300/rtems.h: Remove.
11097 * config/h8300/t-rtems: Remove.
11098
11099 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11100
11101 * config.gcc: Remove support for knetbsd.
11102 * configure.ac: Likewise.
11103 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
11104 * config/knetbsd-gnu.h: Remove.
11105 * configure: Regenerate.
11106
11107 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11108
11109 * config.gcc: Remove support for openbsd 2 and 3.
11110 * config/openbsd-oldgas.h: Remove.
11111
11112 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11113
11114 * config.gcc: Remove interix support.
11115 * config/i386/i386-interix.h: Remove.
11116 * config/i386/interix.opt: Remove.
11117 * config/i386/t-interix: Remove.
11118 * configure: Regenerate.
11119 * configure.ac: Remove interix support.
11120 * doc/install.texi: Remove interix documentation.
11121
11122 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11123
11124 * config/rs6000/rs6000.h: Add conditional preprocessing directives
11125 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
11126 not defined.
11127
11128 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11129
11130 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
11131 they are both PLACEHOLDER_EXPRs.
11132
11133 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11134
11135 * stor-layout.c (layout_type): Move setting complex MODE to
11136 layout_type, instead of setting it ahead of time by the caller.
11137 * tree.c (build_complex_type): Likewise.
11138
11139 2016-06-21 Martin Liska <mliska@suse.cz>
11140
11141 * predict.c (force_edge_cold): Replace imposisble with
11142 impossible.
11143
11144 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11145
11146 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
11147 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
11148
11149 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11150
11151 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
11152
11153 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
11154 Ilya Enkovich <ilya.enkovich@intel.com>
11155
11156 PR target/71549
11157 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11158 New member function to convert V1TImode register to SUBREG
11159 TImode in debug insn.
11160 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
11161 after changing register mode to V1TImode.
11162
11163 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
11164
11165 * config/aarch64/aarch64-cores.def (vulcan): New core.
11166 * config/aarch64/aarch64-tune.md: Regenerate.
11167 * doc/invoke.texi: Document vulcan as an available option.
11168
11169 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11170
11171 * cse.c (canon_asm_operands): New function extracted from...
11172 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
11173 either standalone or member of a PARALLEL.
11174
11175 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11176
11177 PR target/30417
11178 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
11179 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
11180 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
11181
11182 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11183
11184 PR target/71103
11185 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
11186 constant addresses if can_create_pseudo_p.
11187
11188 2016-06-21 Jakub Jelinek <jakub@redhat.com>
11189
11190 PR tree-optimization/71588
11191 * tree-ssa-strlen.c (valid_builtin_call): New function.
11192 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
11193 it.
11194
11195 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11196
11197 PR middle-end/71581
11198 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
11199 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
11200 for conversion of scalar user var to complex type and use the
11201 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
11202 punt.
11203
11204 PR rtl-optimization/71591
11205 * toplev.c (toplev::run_self_tests): If no_backend, complain and
11206 don't run any tests.
11207
11208 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
11209
11210 PR target/71571
11211 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
11212 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
11213 space for PIC with non-v32 and the common non-PIC "jump".
11214
11215 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11216
11217 PR target/71559
11218 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
11219 returned values and add UN*/LTGT/*ORDERED cases with values matching
11220 D operand modifier on vcmp for AVX.
11221
11222 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11223
11224 * config/aarch64/aarch64.opt
11225 (mpc-relative-literal-loads): Rename internal option name.
11226 * config/aarch64/aarch64.c
11227 (aarch64_nopcrelative_literal_loads): Rename to
11228 aarch64_pcrelative_literal_loads.
11229 (aarch64_expand_mov_immediate): Likewise.
11230 (aarch64_secondary_reload): Likewise.
11231 (aarch64_can_use_per_function_literal_pools_p): Likewise.
11232 (aarch64_override_options_after_change_1): Rename and simplify logic.
11233 (aarch64_classify_symbol): Merge large model checks into switch,
11234 remove pc-relative load check.
11235
11236 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11237
11238 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
11239 costs relative to the cost of a register move.
11240
11241 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11242
11243 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
11244 (vcvt_n_f64_u64): Likewise.
11245 (vcvt_n_s64_f64): Likewise.
11246 (vcvt_n_u64_f64): Likewise.
11247 (vcvt_f64_s64): Likewise.
11248 (vrecpe_f64): Likewise.
11249 (vcvt_f64_u64): Likewise.
11250 (vrecps_f64): Likewise.
11251
11252 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11253
11254 * config/aarch64/aarch64.md
11255 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
11256 iterators.
11257 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
11258 attributes.
11259 * config/aarch64/aarch64-builtins.c
11260 (aarch64_types_binop_uss_qualifiers): Delete.
11261 (TYPES_BINOP_USS): Likewise.
11262 (aarch64_types_binop_sus_qualifiers): Likewise.
11263 (TYPES_BINOP_SUS): Likewise.
11264 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
11265 (TYPES_FCVTIMM_SUS): Likewise.
11266 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
11267 rather than BINOP.
11268 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
11269 (fcvtzs): Use SHIFTIMM rather than BINOP.
11270 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
11271
11272 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11273
11274 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
11275 costs relative to the cost of a register move.
11276
11277 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11278
11279 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
11280 Allow scalar/single vector modes to be tieable.
11281
11282 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11283
11284 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
11285
11286 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11287
11288 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
11289 "alignement".
11290 * tree.h (TYPE_ALIGN): Likewise.
11291
11292 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11293
11294 PR target/71103
11295 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
11296
11297 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11298
11299 * config/avr/avr.c (avr_print_operand): Fix "format not a string
11300 literal" build warnings.
11301 (avr_print_operand_address): Dito.
11302
11303 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
11304
11305 PR target/71375
11306 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
11307 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
11308
11309 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
11310
11311 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
11312
11313 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
11314
11315 PR bootstrap/71435
11316 * reload1.c (reload): Pass 0 to finish_spills when called because
11317 update_eliminables_and_spill returns true and remove did_spill.
11318 (finish_spills): Adjust comment and document GLOBAL parameter.
11319
11320 2016-06-17 DJ Delorie <dj@redhat.com>
11321
11322 PR target/71338
11323 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
11324 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
11325 (umulqihi3_virt): Likewise.
11326 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
11327 (umulqihi3_real): Likewise.
11328
11329 2016-06-17 Martin Liska <mliska@suse.cz>
11330
11331 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
11332
11333 2016-06-17 Martin Liska <mliska@suse.cz>
11334
11335 * predict.def: PRED_LOOP_EXIT from 92 to 85.
11336
11337 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
11338
11339 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
11340 __FAST_MATH__.
11341 (vaddq_f32): Likewise.
11342 (vmul_f32): Likewise.
11343 (vmulq_f32): Likewise.
11344 (vsub_f32): Likewise.
11345 (vsubq_f32): Likewise.
11346
11347 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11348
11349 PR tree-optimization/71347
11350 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
11351 cost for all uses in group.
11352
11353 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11354
11355 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
11356 insert gimple seq if it's not empty.
11357
11358 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11359
11360 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
11361 member OFFSET.
11362 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
11363 rather than OFFSET.
11364 (comp_dr_with_seg_len_pair): Ditto.
11365 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
11366 struct dr_with_seg_len_pair against DR_OFFSET.
11367 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
11368 DR_OFFSET directly.
11369
11370 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
11371
11372 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
11373
11374 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
11375
11376 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
11377 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
11378 (pa_output_millicode_call): Likewise.
11379 (pa_output_call): Likewise.
11380 (pa_output_indirect_call): Likewise.
11381 (pa_asm_output_mi_thunk): Likewise.
11382
11383 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11384
11385 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
11386
11387 2016-06-16 Martin Liska <mliska@suse.cz>
11388
11389 * predict.c (combine_predictions_for_insn): When we find a first
11390 match predictor, we should consider just predictors with
11391 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
11392 DS theory predictor.
11393 (combine_predictions_for_bb): Likewise.
11394
11395 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11396
11397 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
11398 with base of reference to struct.
11399
11400 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11401
11402 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
11403
11404 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11405
11406 PR target/71151
11407 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
11408 progmem_swtable_section.
11409 (progmem_swtable_section): Remove.
11410 (avr_asm_function_rodata_section): Remove.
11411 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
11412 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
11413
11414 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
11415
11416 * config/i386/driver-i386.c (host_detect_local_cpu): Set
11417 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
11418 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
11419 signature_CENTAUR_ebx.
11420 * config/i386/i386.c (ix86_option_override_internal): Add
11421 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
11422 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
11423 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
11424
11425 2016-06-16 Martin Liska <mliska@suse.cz>
11426
11427 * predict.def: Add fortran loop preheader predictor.
11428 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
11429 fold IFN_BUILTIN_EXPECT with a known constant argument.
11430
11431 2016-06-16 Martin Liska <mliska@suse.cz>
11432
11433 * predict.def: Add 'Fortran' to display text of all
11434 PRED_FORTRAN_* predictors.
11435
11436 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11437
11438 PR target/71242
11439 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
11440 [IA64_BUILTIN_NANSQ]: Ditto.
11441 (ia64_fold_builtin): New function.
11442 (TARGET_FOLD_BUILTIN): New define.
11443 (ia64_init_builtins) Declare const_string_type node.
11444 Add __builtin_nanq and __builtin_nansq builtin functions.
11445 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
11446
11447 2016-06-16 Nick Clifton <nickc@redhat.com>
11448
11449 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
11450 MSP430_HWMULT_ prefix to enum values.
11451 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
11452 * config/msp430/msp430.c: Update use of enum values.
11453 * config/msp430/msp430.md: Likewise.
11454 * config/msp430/msp430.opt: Likewise.
11455
11456 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
11457
11458 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
11459 of comparsions in the last iteration.
11460
11461 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11462 Joern Rennecke <joern.rennecke@embecosm.com>
11463
11464 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
11465 addresses.
11466 (arc_needs_pcl_p): Add GOTOFFPC.
11467 (arc_legitimate_pic_addr_p): Likewise.
11468 (arc_output_pic_addr_const): Likewise.
11469 (arc_legitimize_pic_address): Generate a pc-relative address using
11470 GOTOFFPC.
11471 (arc_output_libcall): Use @pcl syntax.
11472 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
11473 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
11474 (*movsi_insn): Use @pcl syntax.
11475 (doloop_begin_i): Likewise.
11476
11477 2016-06-16 Martin Liska <mliska@suse.cz>
11478
11479 * predict.def: Define a new predictor.
11480
11481 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11482
11483 * config/arc/arc.opt (mtp-regno): Update text.
11484
11485 2016-06-16 Renlin Li <renlin.li@arm.com>
11486
11487 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
11488
11489 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11490
11491 PR target/71554
11492 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
11493 (setcc + and peephole2): Likewise.
11494
11495 PR rtl-optimization/71532
11496 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
11497 memory slots.
11498
11499 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11500
11501 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
11502 DImode constants with XXSPLTIB in vector registers.
11503 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
11504 vsx_extract_<mode>_internal{1,2} into a single insn that handles
11505 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
11506 extraction of the element at the top of the register as a scalar
11507 value.
11508 (vsx_extract_<mode>_internal1): Likewise.
11509 (vsx_extract_<mode>_internal2): Likewise.
11510 * config/rs6000/constraints.md (wi constraint): Remove a comment
11511 about DImode not being allowed in Altivec registers.
11512 (wB constraint): New constraint for constants that can be
11513 generated in Altivec registers with VSPLTISW/VUPKHSW.
11514 * config/rs6000/predicates.md (xxspltib_constant_split): Update
11515 comments.
11516 (xxspltib_constant_nosplit): Likewise.
11517 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
11518 support for -mupper-regs-di to enable DImode to go into Altivec
11519 registers.
11520 (POWERPC_MASKS): Likewise.
11521 (power7 cpu): Likewise.
11522 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
11523 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11524 for DImode being allowed in Altivec registers. Update wi/wj
11525 constraints. Set scalar_in_vmx_p flag.
11526 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
11527 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
11528 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
11529 (rs6000_opt_masks): Add -mupper-regs-di.
11530 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
11531 direct move to use wi and not wj.
11532 (lfiwzx): Likewise.
11533 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
11534 alternative.
11535 (floatunssi<mode>2_lfiwzx_mem): Likewise.
11536 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
11537 any VSX register, instead of just Altivec registers, to allow
11538 either operand to be an Altivec register or both.
11539 (fixuns_trunc<mode>di2_fctiduz): Likewise.
11540 (movdi_internal32): Add support for -mupper-regs-di. Add support
11541 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
11542 the alternatives and attributes to be lined up to be easier to
11543 read.
11544 (movdi_internal64): Likewise.
11545 (64-bit DImode splitters): Change predicates to only split loading
11546 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
11547 load constants in ISA 3.0 or ISA 2.07 respectively.
11548 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11549 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
11550 mention -mcpu=power9 sets these options.
11551 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
11552 wB constraint.
11553
11554 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11555
11556 PR target/67353
11557 * config/avr/avr.c (avr_set_current_function): Warn misspelled
11558 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
11559 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
11560 by default to warn misspelled interrupt/ signal handler.
11561 * doc/invoke.texi (AVR Options): Document it. Update description
11562 for -nodevicelib option.
11563
11564 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11565
11566 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
11567 up parentheses. Use GET_MODE_UNIT_BITSIZE.
11568 (aarch64_<sur>shll2_n<mode>): Likewise.
11569
11570 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
11571
11572 PR middle-end/71529
11573 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
11574 DECL_CONTEXT for copied arguments.
11575
11576 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11577
11578 PR tree-optimization/71483
11579 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
11580 for slp
11581
11582 2016-06-15 Martin Liska <mliska@suse.cz>
11583
11584 * predict.c (tree_predict_by_opcode): Call predict_edge_def
11585 instead of predict_edge w/o a probability.
11586
11587 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11588
11589 PR tree-optimization/71439
11590 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
11591 live PHIs.
11592
11593 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11594
11595 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
11596 register subregs in SET_SRC.
11597
11598 2016-06-15 Richard Biener <rguenther@suse.de>
11599
11600 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
11601 store restrictions.
11602
11603 2016-06-15 Richard Biener <rguenther@suse.de>
11604
11605 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
11606 not consider dependences between accesses that belong to the
11607 same group.
11608 (vect_analyze_data_ref_dependences): Do not analyze read-read
11609 or self-dependences.
11610
11611 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11612
11613 * spellcheck-tree.c: Include spellcheck-tree.h rather than
11614 spellcheck.h.
11615 (find_closest_identifier): Reimplement in terms of
11616 best_match<tree,tree>.
11617 * spellcheck-tree.h: New file.
11618 * spellcheck.c (struct edit_distance_traits<const char *>): New
11619 struct.
11620 (find_closest_string): Reimplement in terms of
11621 best_match<const char *, const char *>.
11622 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
11623 overload to spellcheck-tree.h.
11624 (find_closest_identifier): Likewise.
11625 (struct edit_distance_traits<T>): New template.
11626 (class best_match): New class.
11627
11628 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11629
11630 * selftest-run-tests.c (selftest::run_tests): Call
11631 selftest::spellcheck_tree_c_tests.
11632 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
11633 * spellcheck-tree.c: Include selftest.h and stringpool.h.
11634 (selftest::test_find_closest_identifier): New function.
11635 (selftest::spellcheck_tree_c_tests): New function.
11636 * spellcheck.c (selftest::test_find_closest_string): Verify that
11637 the order of the vec does not affect the results for this case.
11638 (selftest::test_data): New array.
11639 (selftest::test_metric_conditions): New function.
11640 (selftest::spellcheck_c_tests): Add a test of case-comparison.
11641 Call selftest::test_metric_conditions.
11642
11643 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11644
11645 * config/rs6000/rs6000-builtin.def (commentary): Typo.
11646 (BU_P9_MISC_1): Likewise.
11647 (BU_P9_64BIT_MISC_0): Likewise.
11648 (BU_P9_MISC_0): Likewise.
11649
11650 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11651
11652 * gcc-rich-location.c
11653 (gcc_rich_location::add_fixit_misspelled_id): New method.
11654 * gcc-rich-location.h
11655 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
11656
11657 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
11658
11659 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
11660 FreeBSD 11 and above.
11661
11662 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
11663
11664 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
11665
11666 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11667
11668 * expmed.h: Close parenthesis in "at your option" in copyright
11669 boilerplate.
11670 * lower-subreg.h: Likewise.
11671
11672 2016-06-14 Richard Biener <rguenther@suse.de>
11673
11674 PR middle-end/71526
11675 * genmatch.c (expr::gen_transform): Use in_type for comparisons
11676 if available.
11677
11678 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11679
11680 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11681 New function.
11682 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
11683 mask+shift version.
11684 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11685 New prototype.
11686 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11687 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11688
11689 2016-06-14 Richard Biener <rguenther@suse.de>
11690
11691 PR tree-optimization/71522
11692 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11693 copying into float copying.
11694
11695 2016-06-14 Jakub Jelinek <jakub@redhat.com>
11696
11697 PR tree-optimization/71520
11698 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11699 (replace_block_by): Move user labels from bb1 to bb2.
11700
11701 2016-06-14 Richard Biener <rguenther@suse.de>
11702
11703 PR middle-end/71310
11704 PR bootstrap/71510
11705 * expr.h (get_bit_range): Declare.
11706 * expr.c (get_bit_range): Export.
11707 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11708 word_mode again to constrain the bitfield access.
11709
11710 2016-06-14 Richard Biener <rguenther@suse.de>
11711
11712 PR tree-optimization/71521
11713 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11714 division int_const_binop against zero divisor.
11715
11716 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11717
11718 * config/i386/i386.md (signbittf2): New expander.
11719 * config/i386/sse.md (ptesttf2): New insn pattern.
11720
11721 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11722
11723 PR bootstrap/71481
11724 * input.c (selftest::test_reading_source_line): Avoid reading from
11725 __FILE__ by creating a tempfile with known content and reading
11726 from that instead.
11727
11728 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11729
11730 * pretty-print.c (assert_pp_format_colored): Skip the test if
11731 GCC_COLORS is set.
11732 (test_pp_format): Remove comment about GCC_COLORS.
11733
11734 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11735
11736 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11737 * pretty-print.c (assert_pp_format_va): Add location param and use
11738 it with ASSERT_STREQ_AT.
11739 (assert_pp_format): Add location param and pass it to
11740 assert_pp_format_va.
11741 (assert_pp_format_colored): Likewise.
11742 (ASSERT_PP_FORMAT_1): New.
11743 (ASSERT_PP_FORMAT_2): New.
11744 (ASSERT_PP_FORMAT_3): New.
11745 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11746 explicitly, or implicitly via the above macros.
11747 * selftest.c (selftest::pass): Use a selftest::location rather
11748 than file and line.
11749 (selftest::fail): Likewise. Print the function name.
11750 (selftest::fail_formatted): Likewise.
11751 (selftest::assert_streq): Use a selftest::location rather than
11752 file and line.
11753 * selftest.h (selftest::location): New struct.
11754 (SELFTEST_LOCATION): New macro.
11755 (selftest::pass): Accept a const location & rather than file
11756 and line.
11757 (selftest::fail): Likewise.
11758 (selftest::fail_formatted): Likewise.
11759 (selftest::assert_streq): Likewise.
11760 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11761 (ASSERT_FALSE): Likewise.
11762 (ASSERT_EQ): Likewise.
11763 (ASSERT_NE): Likewise.
11764 (ASSERT_STREQ): Likewise.
11765 (ASSERT_PRED1): Likewise.
11766 (ASSERT_STREQ_AT): New macro.
11767
11768 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11769
11770 * selftest.c (selftest::fail_formatted): New function.
11771 (selftest::assert_streq): New function.
11772 * selftest.h (selftests::fail_formatted): New decl.
11773 (selftest::assert_streq): New decl.
11774 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11775
11776 2016-06-13 Jeff Law <law@redhat.com>
11777
11778 PR tree-optimization/71403
11779 * tree-ssa-threadbackward.c
11780 (convert_and_register_jump_thread_path): No longer accept reference
11781 to path. Do not pop items off the path anymore.
11782 (fsm_find_control_statement_thread_paths): Do not allow threading
11783 to a deeper loop nest. Pop the last item off the path here rather
11784 than in convert_and_register_jump_thread_path.
11785
11786 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11787 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
11788
11789 [AArch64] Emit division using the Newton series
11790
11791 * config/aarch64/aarch64-protos.h
11792 (cpu_approx_modes): Add new member "division".
11793 (aarch64_emit_approx_div): Declare new function.
11794 * config/aarch64/aarch64.c
11795 (generic_approx_modes): New member "division".
11796 (exynosm1_approx_modes): Likewise.
11797 (xgene1_approx_modes): Likewise.
11798 (aarch64_emit_approx_div): Define new function.
11799 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11800 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11801 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11802 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11803
11804 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11805 Wilco Dijkstra <wilco.dijkstra@arm.com>
11806
11807 [AArch64] Emit square root using the Newton series
11808
11809 * config/aarch64/aarch64-protos.h
11810 (aarch64_emit_approx_rsqrt): Replace with new function
11811 "aarch64_emit_approx_sqrt".
11812 (cpu_approx_modes): New member "sqrt".
11813 * config/aarch64/aarch64.c
11814 (generic_approx_modes): New member "sqrt".
11815 (exynosm1_approx_modes): Likewise.
11816 (xgene1_approx_modes): Likewise.
11817 (aarch64_emit_approx_rsqrt): Replace with new function
11818 "aarch64_emit_approx_sqrt".
11819 (aarch64_override_options_after_change_1): Handle new option.
11820 * config/aarch64/aarch64-simd.md
11821 (rsqrt<mode>2): Use new function instead.
11822 (sqrt<mode>2): New expansion and insn definitions.
11823 * config/aarch64/aarch64.md: Likewise.
11824 * config/aarch64/aarch64.opt
11825 (mlow-precision-sqrt): Add new option description.
11826 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11827
11828 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11829
11830 [AArch64] Add more choices for the reciprocal square root approximation
11831
11832 Allow a target to prefer such operation depending on the operation mode.
11833
11834 * config/aarch64/aarch64-protos.h
11835 (AARCH64_APPROX_MODE): New macro.
11836 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11837 (cpu_approx_modes): New structure.
11838 (tune_params): New member "approx_modes".
11839 * config/aarch64/aarch64-tuning-flags.def
11840 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11841 * config/aarch64/aarch64.c
11842 (generic_approx_modes): New core "cpu_approx_modes" structure.
11843 (exynosm1_approx_modes): Likewise.
11844 (xgene1_approx_modes): Likewise.
11845 (generic_tunings): New member "approx_modes".
11846 (cortexa35_tunings): Likewise.
11847 (cortexa53_tunings): Likewise.
11848 (cortexa57_tunings): Likewise.
11849 (cortexa72_tunings): Likewise.
11850 (exynosm1_tunings): Likewise.
11851 (thunderx_tunings): Likewise.
11852 (xgene1_tunings): Likewise.
11853 (use_rsqrt_p): New argument for the mode and use new member from
11854 "tune_params".
11855 (aarch64_builtin_reciprocal): Devise mode from builtin.
11856 (aarch64_optab_supported_p): New argument for the mode.
11857 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11858
11859 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11860
11861 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11862 RS6000_BTM_MODULO flag into the set of flags that are considered
11863 to be part of the common configuration.
11864
11865 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11866
11867 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11868 difference unsigned.
11869 (vec_absdb): New macro for vector absolute difference unsigned
11870 byte.
11871 (vec_absdh): New macro for vector absolute difference unsigned
11872 half-word.
11873 (vec_absdw): New macro for vector absolute difference unsigned word.
11874 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11875 (vadu<mode>3): New insn.
11876 (*p9_vadu<mode>3): New insn.
11877 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11878 definition.
11879 (vaduh): New built-in definition.
11880 (vaduw): New built-in definition.
11881 (vadu): New overloaded built-in definition.
11882 (vadub): New overloaded built-in definition.
11883 (vaduh): New overloaded built-in definition.
11884 (vaduw): New overloaded built-in definition.
11885 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11886 overloaded vector absolute difference unsigned functions.
11887 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11888 the ISA 3.0 vector absolute difference unsigned built-in functions.
11889
11890 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11891
11892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11893 update shared_lookup_references only once after changing operands.
11894
11895 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11896
11897 PR middle-end/71373
11898 * tree-nested.c (convert_nonlocal_omp_clauses)
11899 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11900
11901 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11902 * tree.def (CASE_LABEL_EXPR): Likewise.
11903
11904 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11905
11906 PR bootstrap/71481
11907 * input.c (test_builtins): Fix an assertion.
11908
11909 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11910
11911 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11912 (paritysi2): Ditto.
11913 (isinfxf2): Ditto.
11914 (isinf<mode>2): Ditto.
11915
11916 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11917
11918 * ggc-tests.c (test_finalization): Only test need_finalization_p
11919 for GCC_VERSION >= 4003.
11920
11921 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11922
11923 * config/s390/vecintrin.h: Fix file description in comment.
11924
11925 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11926
11927 * config/s390/s390-builtin-types.def: Change builtin type naming
11928 scheme to match builtin-types.def.
11929
11930 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11931
11932 * fold-const.c (optimize_minmax_comparison): Remove.
11933 (fold_comparison): Remove call to the above.
11934 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11935 New transformations.
11936
11937 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11938
11939 PR tree-optimization/71416
11940 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11941 multiple entries
11942
11943 2016-06-13 Martin Liska <mliska@suse.cz>
11944
11945 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11946 (combine_predictions_for_insn): Likewise.
11947 (prune_predictions_for_bb): Likewise.
11948 (combine_predictions_for_bb): Likewise.
11949
11950 2016-06-13 Richard Biener <rguenther@suse.de>
11951
11952 PR tree-optimization/71505
11953 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11954 assert match comment.
11955
11956 2016-06-13 Marek Polacek <polacek@redhat.com>
11957
11958 PR middle-end/71476
11959 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11960 gimplify_switch_expr.
11961 (warn_switch_unreachable_r): New function.
11962
11963 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11964
11965 PR target/71379
11966 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11967 one.
11968
11969 2016-06-13 Richard Biener <rguenther@suse.de>
11970
11971 PR middle-end/64516
11972 * fold-const.c (fold_unary_loc): Preserve alignment when
11973 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11974
11975 2016-06-13 Martin Liska <mliska@suse.cz>
11976
11977 PR sanitizer/71458
11978 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11979 w/ -fsanitize=bounds.
11980
11981 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11982
11983 * config/i386/i386.c (ix86_init_builtins): Calculate
11984 FLOAT128_FTYPE_CONST_STRING function type only once.
11985 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11986 built-in functions are available for x86-32 and x86-64 targets.
11987
11988 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11989
11990 PR target/71241
11991 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11992 New primitive type.
11993 (FLOAT128_FTYPE_CONST_STRING): New function type.
11994 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11995 [IX86_BUILTIN_NANSQ]: Ditto.
11996 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11997 (ix86_init_builtin_types): Declare const_string_type_node.
11998 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11999 builtin functions.
12000 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
12001 * doc/extend.texi (x86 Built-in Functions): Document
12002 __builtin_nanq and __builtin_nansq.
12003
12004 2016-06-11 Jiong Wang <jiong.wang@arm.com>
12005
12006 PR target/71061
12007 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
12008 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
12009 length for pop patterns.
12010 (arm_attr_length_push_multi): Update comments.
12011 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
12012 attribute.
12013 (*pop_multiple_with_writeback_and_return): Likewise.
12014 (*pop_multiple_with_return): Likewise.
12015
12016 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
12017
12018 PR middle-end/71310
12019 * fold-const.c (optimize_bit_field_compare): Don't try to use
12020 word_mode unconditionally for reading the bit field, look at
12021 DECL_BIT_FIELD_REPRESENTATIVE instead.
12022
12023 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
12024
12025 PR middle-end/71478
12026 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
12027 vector integer type.
12028
12029 2016-06-10 Jakub Jelinek <jakub@redhat.com>
12030
12031 PR middle-end/71494
12032 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
12033 without LABEL_DECL, set *handled_ops_p to false instead of true.
12034
12035 2016-06-10 Martin Sebor <msebor@redhat.com>
12036
12037 PR c/71392
12038 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
12039 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
12040 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
12041 them.
12042 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
12043 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
12044 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
12045 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
12046 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
12047 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
12048 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
12049 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
12050
12051 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12052
12053 * config/arm/arm.h (pool_vector_label,
12054 return_used_this_function): Remove.
12055
12056 2016-06-10 Jeff Law <law@redhat.com>
12057
12058 PR tree-optimization/71335
12059 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
12060 zero length paths here.
12061 (convert_and_register_jump_thread_path): Remove hacks related to
12062 duplicated blocks in the jump thread path.
12063 (fsm_find_control_statement_thread_paths): Avoid putting the same
12064 block on the thread path twice, but ensure the thread path is
12065 unchanged from the caller's point of view.
12066
12067 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12068
12069 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
12070 * predict.def (PRED_LOOP_BRANCH): Remove.
12071
12072 2016-06-10 David Malcolm <dmalcolm@redhat.com>
12073
12074 * Makefile.in (OBJS): Add ggc-tests.o.
12075 (GTFILES): Add ggc-tests.c.
12076 * ggc-tests.c: New file.
12077 * selftest-run-tests.c (selftest::run_tests): Call
12078 selftest::ggc_tests_c_tests.
12079 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
12080
12081 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
12082
12083 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
12084
12085 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
12086
12087 PR sanitizer/71480
12088 * varasm.c (place_block_symbol): Adjust alignment for asan protected
12089 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
12090
12091 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12092
12093 * profile.c: Include cfgloop.h.
12094 (branch_prob): Compute estimated number of iterations.
12095 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
12096 recompute estimate number of iterations from profile.
12097
12098 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12099
12100 PR inline-asm/68843
12101 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
12102 must be grouped on top of stack. Don't force early clobber
12103 on ordinary reg outputs.
12104
12105 2016-06-10 Richard Biener <rguenther@suse.de>
12106
12107 * targhooks.c (default_builtin_vectorization_cost): Adjust
12108 vec_construct cost.
12109
12110 2016-06-10 Richard Biener <rguenther@suse.de>
12111
12112 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
12113 to fold the RHS to a constant if possible.
12114
12115 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12116
12117 PR middle-end/71373
12118 * tree-nested.c (convert_nonlocal_omp_clauses)
12119 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
12120 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12121 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
12122
12123 * gimplify.c (gimplify_adjust_omp_clauses): Discard
12124 OMP_CLAUSE_TILE.
12125 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
12126
12127 * omp-low.c (scan_sharing_clauses): Don't expect
12128 OMP_CLAUSE__CACHE_.
12129
12130 2016-06-10 Alan Hayward <alan.hayward@arm.com>
12131
12132 PR tree-optimization/71407
12133 PR tree-optimization/71416
12134 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
12135 BIT_FIELD_REF type.
12136
12137 2016-06-10 Richard Biener <rguenther@suse.de>
12138
12139 PR middle-end/71477
12140 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
12141
12142 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
12143
12144 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
12145
12146 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
12147 Jiong Wang <jiong.wang@arm.com>
12148
12149 PR rtl-optimization/70751
12150 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
12151 spilled into memory.
12152
12153 2016-06-09 Jonathan Yong <10walls@gmail.com>
12154
12155 Revert:
12156 2015-09-21 Jonathan Yong <10walls@gmail.com>
12157
12158 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12159 sysroot/usr/lib/32api for additional win32 libraries,
12160 fixes failing Cygwin bootstrapping.
12161
12162 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
12163
12164 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
12165 Delete.
12166
12167 2016-06-09 David Malcolm <dmalcolm@redhat.com>
12168
12169 PR bootstrap/71471
12170 * pretty-print.c (pp_indent): Specify that %p is printed in a
12171 host-dependent manner.
12172 (test_pp_format): Remove the test for %p.
12173
12174 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
12175
12176 * config/mips/mips.c (mips_output_jump): Fix formatting.
12177
12178 2016-06-09 Richard Biener <rguenther@suse.de>
12179
12180 PR tree-optimization/71462
12181 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
12182 removed blocks.
12183
12184 2016-06-09 Martin Liska <mliska@suse.cz>
12185
12186 * predict.c (dump_prediction): Add new argument.
12187 (enum predictor_reason): New enum.
12188 (struct predictor_hash): New struct.
12189 (predictor_hash::hash): New function.
12190 (predictor_hash::equal): Likewise.
12191 (not_removed_prediction_p): New function.
12192 (prune_predictions_for_bb): Likewise.
12193 (combine_predictions_for_bb): Prune predictions.
12194
12195 2016-06-09 Martin Liska <mliska@suse.cz>
12196
12197 * predict.c (filter_predictions): New function.
12198 (remove_predictions_associated_with_edge): Use the filter
12199 function.
12200 (equal_edge_p): New function.
12201
12202 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
12203
12204 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
12205 Correct usage of @samp vs @option, add @samp where appropriate.
12206 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
12207 Add armv6s-m and document it, as it is no official ARM name.
12208
12209 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12210
12211 * ifcvt.c (struct noce_if_info): Add transform_name field.
12212 (noce_try_move): Set if_info->transform_name to the function name.
12213 (noce_try_ifelse_collapse): Likewise.
12214 (noce_try_store_flag): Likewise.
12215 (noce_try_inverse_constants): Likewise.
12216 (noce_try_store_flag_constants): Likewise.
12217 (noce_try_addcc): Likewise.
12218 (noce_try_store_flag_mask): Likewise.
12219 (noce_try_cmove): Likewise.
12220 (noce_try_cmove_arith): Likewise.
12221 (noce_try_minmax): Likewise.
12222 (noce_try_abs): Likewise.
12223 (noce_try_sign_mask): Likewise.
12224 (noce_try_bitop): Likewise.
12225 (noce_convert_multiple_sets): Likewise.
12226 (noce_process_if_block): Print if_info->transform_name to
12227 dump_file if transformation succeeded.
12228
12229 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12230
12231 * config/arm/cortex-a57.md (cortex_a57_alu):
12232 Handle csel type.
12233
12234 2016-06-08 Martin Sebor <msebor@redhat.com>
12235 Jakub Jelinek <jakub@redhat.com>
12236
12237 PR c++/70507
12238 PR c/68120
12239 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
12240 BUILT_IN_MUL_OVERFLOW_P): New builtins.
12241 * builtins.c: Include gimple-fold.h.
12242 (fold_builtin_arith_overflow): Handle
12243 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
12244 (fold_builtin_3): Likewise.
12245 * doc/extend.texi (Integer Overflow Builtins): Document
12246 __builtin_{add,sub,mul}_overflow_p.
12247
12248 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
12249
12250 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
12251 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
12252
12253 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
12254
12255 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
12256 Rewrite, looking one level down for records and arrays.
12257
12258 2016-06-08 David Malcolm <dmalcolm@redhat.com>
12259
12260 * pretty-print.c: Include "selftest.h".
12261 (pp_format): Fix comment.
12262 (identifier_to_locale): Likewise.
12263 (selftest::test_basic_printing): New function.
12264 (selftest::assert_pp_format): New function.
12265 (selftest::test_pp_format): New function.
12266 (selftest::pretty_print_c_tests): New function.
12267 * selftest-run-tests.c (selftest::run_tests): Call
12268 selftest::pretty_print_c_tests.
12269 * selftest.h (pretty_print_c_tests): New declaration.
12270
12271 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12272
12273 * invoke.texi (max-loop-headers-insns): Document.
12274 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
12275 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
12276 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
12277
12278 2016-06-08 Richard Biener <rguenther@suse.de>
12279
12280 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
12281 on strided SLP loads and fall back to scalar loads in case
12282 we can't chunk them.
12283
12284 2016-06-08 Richard Biener <rguenther@suse.de>
12285
12286 PR tree-optimization/71452
12287 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
12288 type used for the SSA rewrite has enough precision to cover
12289 the dynamic type of the location.
12290
12291 2016-06-08 Jakub Jelinek <jakub@redhat.com>
12292 Richard Biener <rguenther@suse.de>
12293
12294 PR c++/71448
12295 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
12296 the same as DECL_P (base0) for indirect_base0. Use equality_code
12297 in one further place.
12298
12299 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
12300
12301 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
12302 to one word if the field is known to overlap other words.
12303 (extract_bit_field_1): Likewise.
12304 (store_split_bit_field): Remove compensating code.
12305 (extract_split_bit_field): Likewise.
12306
12307 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
12308
12309 PR debug/71432
12310 PR ada/71413
12311 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
12312
12313 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12314
12315 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
12316 VDQF.
12317 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
12318 (arch64_addpv4sf): Delete.
12319 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
12320 "gen_aarch64_addpv4sf".
12321 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
12322 builtin.
12323 (vpadds_f32): Likewise.
12324 (vpaddq_f32): Likewise.
12325 (vpaddq_f64): Likewise.
12326
12327 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12328
12329 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
12330 VALLF.
12331 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
12332 to VALLF. Rename to "fabd<mode>3".
12333 "*fabd_scalar<mode>3): Delete.
12334 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
12335 Use builtin.
12336 (vabdd_f64): Likewise.
12337 (vabd_f32): Likewise.
12338 (vabd_f64): Likewise.
12339 (vabdq_f32): Likewise.
12340 (vabdq_f64): Likewise.
12341
12342 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12343
12344 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
12345 VALLF.
12346 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
12347 "aarch64_rsqrts<mode>".
12348 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
12349 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
12350 builtin.
12351 (vrsqrtsd_f64): Likewise.
12352 (vrsqrts_f32): Likewise.
12353 (vrsqrts_f64): Likewise.
12354 (vrsqrtsq_f32): Likewise.
12355 (vrsqrtsq_f64): Likewise.
12356
12357 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12358
12359 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
12360 VALLF.
12361 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
12362 "aarch64_rsqrte<mode>".
12363 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
12364 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
12365 builtin.
12366 (vrsqrted_f64): Likewise.
12367 (vrsqrte_f32): Likewise.
12368 (vrsqrte_f64): Likewise.
12369 (vrsqrteq_f32): Likewise.
12370 (vrsqrteq_f64): Likewise.
12371
12372 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12373
12374 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
12375 (ucvtf): Likewise.
12376 (fcvtzs): Likewise.
12377 (fcvtzu): Likewise.
12378 * config/aarch64/aarch64-simd.md
12379 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
12380 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
12381 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
12382 Use builtin.
12383 (vcvt_n_f32_u32): Likewise.
12384 (vcvt_n_s32_f32): Likewise.
12385 (vcvt_n_u32_f32): Likewise.
12386 (vcvtq_n_f32_s32): Likewise.
12387 (vcvtq_n_f32_u32): Likewise.
12388 (vcvtq_n_f64_s64): Likewise.
12389 (vcvtq_n_f64_u64): Likewise.
12390 (vcvtq_n_s32_f32): Likewise.
12391 (vcvtq_n_s64_f64): Likewise.
12392 (vcvtq_n_u32_f32): Likewise.
12393 (vcvtq_n_u64_f64): Likewise.
12394 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
12395 (VSDQ_SDI): Likewise.
12396 (fcvt_target): Support V4DI, V4SI and V2SI.
12397 (FCVT_TARGET): Likewise.
12398
12399 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12400
12401 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
12402 (TYPES_BINOP_SUS): Likewise.
12403 (aarch64_simd_builtin_data): Update include file name.
12404 (aarch64_builtins): Likewise.
12405 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
12406 for conversion between scalar float-point and fixed-point.
12407 (ucvtf): Likewise.
12408 (fcvtzs): Likewise.
12409 (fcvtzu): Likewise.
12410 * config/aarch64/aarch64.md
12411 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
12412 pattern for conversion between scalar float to fixed-pointer.
12413 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
12414 (UNSPEC_FCVTZS): New UNSPEC enumeration.
12415 (UNSPEC_FCVTZU): Likewise.
12416 (UNSPEC_SCVTF): Likewise.
12417 (UNSPEC_UCVTF): Likewise.
12418 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
12419 Use builtin.
12420 (vcvtd_n_f64_u64): Likewise.
12421 (vcvtd_n_s64_f64): Likewise.
12422 (vcvtd_n_u64_f64): Likewise.
12423 (vcvtd_n_f32_s32): Likewise.
12424 (vcvts_n_f32_u32): Likewise.
12425 (vcvtd_n_s32_f32): Likewise.
12426 (vcvts_n_u32_f32): Likewise.
12427 * config/aarch64/iterators.md (fcvt_target): Support integer to float
12428 mapping.
12429 (FCVT_TARGET): Likewise.
12430 (FCVT_FIXED2F): New iterator.
12431 (FCVT_F2FIXED): Likewise.
12432 (fcvt_fixed_insn): New define_int_attr.
12433
12434 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12435
12436 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
12437 some statements was removed.
12438
12439 2016-06-08 Alan Hayward <alan.hayward@arm.com>
12440
12441 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
12442 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
12443 (vect_can_advance_ivs_p): likewise.
12444 (vect_update_ivs_after_vectorizer): likewise.
12445 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
12446 (vect_analyze_scalar_cycles_1): likewise.
12447 (vect_analyze_loop_operations): likewise.
12448 (report_vect_op): likewise.
12449 (vect_is_slp_reduction): likewise.
12450 (vect_is_simple_reduction): likewise.
12451 (get_initial_def_for_induction): likewise.
12452 (vect_transform_loop): likewise.
12453 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
12454 (vect_recog_sad_pattern): likewise.
12455 (vect_recog_widen_sum_pattern): likewise.
12456 (vect_recog_widening_pattern): likewise.
12457 (vect_recog_divmod_pattern): likewise.
12458 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
12459 (vect_analyze_slp_instance): likewise.
12460 (vect_transform_slp_perm_load): likewise.
12461 (vect_schedule_slp_instance): likewise.
12462
12463 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12464
12465 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
12466 (return_prediction): PRED_CONST_RETURN predict return as not taken.
12467 * predict.def (PRED_CONTINUE): Change hitrate 50->67
12468 (PRED_LOOP_BRANCH): Document predictor as broken.
12469 (PRED_LOOP_EXIT): Change hitrate 91->92.
12470 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
12471 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
12472 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
12473 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
12474 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
12475 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
12476 (PRED_CALL): Chane hitrate 71->67.
12477 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
12478 (PRED_GOTO): Document as unused right now.
12479 (PRED_CONST_RETURN): Change hitrate 67->69
12480 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
12481 (PRED_NULL_RETURN): Change hitrate 91->90.
12482 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
12483 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
12484 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
12485
12486 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
12487
12488 * config/rs6000/altivec.h: Add __builtin_vec_mul.
12489 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
12490 special case Altivec builtin.
12491 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12492 VSX_BUILTIN_VEC_MUL (replaced with special case code).
12493 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12494 code for ALTIVEC_BUILTIN_VEC_MUL.
12495 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12496 for __builtin_vec_mul.
12497
12498 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
12499
12500 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
12501 -mno-htm.
12502
12503 2016-06-07 David Malcolm <dmalcolm@redhat.com>
12504
12505 * spellcheck.c (selftest::test_find_closest_string): New function.
12506 (spellcheck_c_tests): Call the above.
12507
12508 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12509
12510 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
12511
12512 2016-06-07 Jakub Jelinek <jakub@redhat.com>
12513
12514 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
12515 Yv=Yv,C alternatives.
12516
12517 2016-06-07 Richard Biener <rguenther@suse.de>
12518
12519 PR c/61564
12520 * common.opt (ffast-math): Make Optimization.
12521
12522 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
12523 Prachi Godbole <prachi.godbole@imgtec.com>
12524
12525 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
12526 `fabs' and `fneg' type attributes.
12527 (p5600_fpu_fabs): Add `fmove' to the comment.
12528
12529 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12530
12531 * gimple.c: Include builtins.h
12532 (gimple_inexpensive_call_p): New function.
12533 * gimple.h (gimple_inexpensive_call_p): Declare.
12534 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
12535 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
12536 fix formatting.
12537
12538 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
12539
12540 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
12541 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
12542 warning_at_rich_loc, warning_n, pedwarn, permerror,
12543 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
12544 sorry, fatal_error, internal_error, internal_error_no_backtrace):
12545 Use the above.
12546
12547 2016-06-07 Richard Biener <rguenther@suse.de>
12548
12549 PR tree-optimization/71428
12550 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
12551 BIT_FIELD_REF op vs. load.
12552
12553 2016-06-07 Richard Biener <rguenther@suse.de>
12554
12555 PR middle-end/71423
12556 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
12557 for signed ops.
12558
12559 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12560
12561 * config/pa/pa.md (call): Generate indirect long calls to non-local
12562 functions on TARGET_64BIT.
12563 (call_value): Likewise.
12564
12565 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12566
12567 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
12568 pattern and subsequent splitters.
12569 (call_val_reg_64bit_post_reload): Likewise.
12570
12571 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12572
12573 PR middle-end/71408
12574 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
12575 propagate_op_to_single_use.
12576
12577 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12578
12579 PR middle-end/71281
12580 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
12581
12582 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
12583
12584 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
12585 (enum x86_dirflag_state): New enum.
12586 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
12587 (machine_function): Remove needs_cld.
12588 (ix86_current_function_needs_cld): Remove.
12589 * config/i386/i386.c (ix86_set_func_type): Set
12590 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
12591 (ix86_expand_prologue): Do not emit CLD here.
12592 (ix86_dirflag_mode_needed): New function.
12593 (ix86_dirflag_mode_entry): Ditto.
12594 (ix86_mode_needed): Handle X86_DIRFLAG entity.
12595 (ix86_mode_after): Ditto.
12596 (ix86_mode_entry): Ditto.
12597 (ix86_mode_exit): Ditto.
12598 (ix86_emit_mode_set): Ditto.
12599 * config/i386/i386.md (strmov_singleop): Set
12600 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
12601 Do not set ix86_current_function_needs_cld.
12602 (rep_mov): Ditto.
12603 (strset_singleop): Ditto.
12604 (rep_stos): Ditto.
12605 (cmpstrnqi_nz_1): Ditto.
12606 (cmpstrnqi_1): Ditto.
12607 (strlenqi_1): Ditto.
12608
12609 2016-06-06 Jakub Jelinek <jakub@redhat.com>
12610
12611 PR tree-optimization/71259
12612 * tree-vect-slp.c (vect_get_constant_vectors): For
12613 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
12614 one for constant op, and use COND_EXPR for non-constant.
12615
12616 2016-06-06 David Malcolm <dmalcolm@redhat.com>
12617
12618 * Makefile.in (OBJS): Add function-tests.o,
12619 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
12620 selftest-run-tests.o.
12621 (OBJS-libcommon): Add selftest.o.
12622 (OBJS-libcommon-target): Add selftest.o.
12623 (all.internal): Add "selftest".
12624 (all.cross): Likewise.
12625 (selftest): New phony target.
12626 (s-selftest): New target.
12627 (selftest-gdb): New phony target.
12628 (COLLECT2_OBJS): Add selftest.o.
12629 * bitmap.c: Include "selftest.h".
12630 (selftest::test_gc_alloc): New function.
12631 (selftest::test_set_range): New function.
12632 (selftest::test_clear_bit_in_middle): New function.
12633 (selftest::test_copying): New function.
12634 (selftest::test_bitmap_single_bit_set_p): New function.
12635 (selftest::bitmap_c_tests): New function.
12636 * common.opt (fself-test): New.
12637 * diagnostic-show-locus.c: Include "selftest.h".
12638 (make_range): New function.
12639 (test_range_contains_point_for_single_point): New function.
12640 (test_range_contains_point_for_single_line): New function.
12641 (test_range_contains_point_for_multiple_lines): New function.
12642 (assert_eq): New function.
12643 (test_get_line_width_without_trailing_whitespace): New function.
12644 (selftest::diagnostic_show_locus_c_tests): New function.
12645 * et-forest.c: Include "selftest.h".
12646 (selftest::test_single_node): New function.
12647 (selftest::test_simple_tree): New function.
12648 (selftest::test_disconnected_nodes): New function.
12649 (selftest::et_forest_c_tests): New function.
12650 * fold-const.c: Include "selftest.h".
12651 (selftest::assert_binop_folds_to_const): New function.
12652 (selftest::assert_binop_folds_to_nonlvalue): New function.
12653 (selftest::test_arithmetic_folding): New function.
12654 (selftest::fold_const_c_tests): New function.
12655 * function-tests.c: New file.
12656 * gimple.c: Include "selftest.h".
12657 Include "gimple-pretty-print.h".
12658 (selftest::verify_gimple_pp): New function.
12659 (selftest::test_assign_single): New function.
12660 (selftest::test_assign_binop): New function.
12661 (selftest::test_nop_stmt): New function.
12662 (selftest::test_return_stmt): New function.
12663 (selftest::test_return_without_value): New function.
12664 (selftest::gimple_c_tests): New function.
12665 * hash-map-tests.c: New file.
12666 * hash-set-tests.c: New file.
12667 * input.c: Include "selftest.h".
12668 (selftest::assert_loceq): New function.
12669 (selftest::test_accessing_ordinary_linemaps): New function.
12670 (selftest::test_unknown_location): New function.
12671 (selftest::test_builtins): New function.
12672 (selftest::test_reading_source_line): New function.
12673 (selftest::input_c_tests): New function.
12674 * rtl-tests.c: New file.
12675 * selftest-run-tests.c: New file.
12676 * selftest.c: New file.
12677 * selftest.h: New file.
12678 * spellcheck.c: Include "selftest.h".
12679 (selftest::levenshtein_distance_unit_test_oneway): New function,
12680 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12681 (selftest::levenshtein_distance_unit_test): Likewise.
12682 (selftest::spellcheck_c_tests): Likewise.
12683 * toplev.c: Include selftest.h.
12684 (toplev::run_self_tests): New.
12685 (toplev::main): Handle -fself-test.
12686 * toplev.h (toplev::run_self_tests): New.
12687 * tree.c: Include "selftest.h".
12688 (selftest::test_integer_constants): New function.
12689 (selftest::test_identifiers): New function.
12690 (selftest::test_labels): New function.
12691 (selftest::tree_c_tests): New function.
12692 * tree-cfg.c: Include "selftest.h".
12693 (selftest::push_fndecl): New function.
12694 (selftest::test_linear_chain): New function.
12695 (selftest::test_diamond): New function.
12696 (selftest::test_fully_connected): New function.
12697 (selftest::tree_cfg_c_tests): New function.
12698 * vec.c: Include "selftest.h".
12699 (selftest::safe_push_range): New function.
12700 (selftest::test_quick_push): New function.
12701 (selftest::test_safe_push): New function.
12702 (selftest::test_truncate): New function.
12703 (selftest::test_safe_grow_cleared): New function.
12704 (selftest::test_pop): New function.
12705 (selftest::test_safe_insert): New function.
12706 (selftest::test_ordered_remove): New function.
12707 (selftest::test_unordered_remove): New function.
12708 (selftest::test_block_remove): New function.
12709 (selftest::reverse_cmp): New function.
12710 (selftest::test_qsort): New function.
12711 (selftest::vec_c_tests): New function.c.
12712 * wide-int.cc: Include selftest.h and wide-int-print.h.
12713 (selftest::from_int <wide_int>): New function.
12714 (selftest::from_int <offset_int>): New function.
12715 (selftest::from_int <widest_int>): New function.
12716 (selftest::assert_deceq): New function.
12717 (selftest::assert_hexeq): New function.
12718 (selftest::test_printing <VALUE_TYPE>): New function template.
12719 (selftest::test_ops <VALUE_TYPE>): New function template.
12720 (selftest::test_comparisons <VALUE_TYPE>): New function template.
12721 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12722 template.
12723 (selftest::wide_int_cc_tests): New function.
12724
12725 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12726
12727 PR middle-end/37780
12728 * ifcvt.c (noce_try_ifelse_collapse): New function.
12729 Declare prototype.
12730 (noce_process_if_block): Call noce_try_ifelse_collapse.
12731 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12732 (simplify_ternary_operation): Use the above to simplify
12733 conditional CLZ/CTZ expressions.
12734
12735 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12736
12737 PR middle-end/37780
12738 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12739 define_insn_and_split.
12740
12741 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12742
12743 PR middle-end/37780
12744 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12745
12746 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12747
12748 PR c/24414
12749 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12750 Implicitly clobber memory for basic asm with non-empty assembler
12751 string. Use targetm.md_asm_adjust also here.
12752 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12753 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12754 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12755 non-empty assembler string.
12756 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12757 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12758 (decode_asm_operands): Handle basic asm in PARALLEL block.
12759 (extract_insn): Handle basic asm in PARALLEL block.
12760 * doc/extend.texi: Mention new behavior of basic asm.
12761 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12762 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12763 branch_needs_nop_p): Use asm_noperands.
12764
12765 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12766
12767 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12768 Include the M7 SPARC DFA scheduler.
12769 New attribute v3pipe.
12770 Annotate insns with v3pipe where appropriate.
12771 Define cpu_feature vis4.
12772 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12773 Add (V8QI "8") to vbits.
12774 Add insns {add,sub}v8qi3
12775 Add insns ss{add,sub}v8qi3
12776 Add insns us{add,sub}{v8qi,v4hi}3
12777 Add insns {min,max}{v8qi,v4hi,v2si}3
12778 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12779 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12780 * config/sparc/niagara4.md: Add a comment explaining the
12781 discrepancy between the documented latenty numbers and the
12782 implemented ones.
12783 * config/sparc/niagara7.md: New file.
12784 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12785 supports SPARC5 and VIS 4.0 instructions.
12786 * configure: Regenerate.
12787 * config.in: Likewise.
12788 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12789 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12790 TARGET_CPU_niagara7.
12791 (ASM_CPU64_DEFAULT_SPEC): Likewise.
12792 (CPP_CPU_SPEC): Handle niagara7.
12793 (ASM_CPU_SPEC): Likewise.
12794 * config/sparc/sparc-opts.h (processor_type): Add
12795 PROCESSOR_NIAGARA7.
12796 (mvis4): New option.
12797 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12798 (AS_NIAGARA7_FLAG): Define.
12799 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12800 (CPP_CPU64_DEFAULT_SPEC): Likewise.
12801 (CPP_CPU_SPEC): Handle niagara7.
12802 (ASM_CPU_SPEC): Likewise.
12803 * config/sparc/sparc.c (niagara7_costs): Define.
12804 (sparc_option_override): Handle niagara7 and adjust cache-related
12805 parameters with better values for niagara cpus. Also support VIS4.
12806 (sparc32_initialize_trampoline): Likewise.
12807 (sparc_use_sched_lookahead): Likewise.
12808 (sparc_issue_rate): Likewise.
12809 (sparc_register_move_cost): Likewise.
12810 (dump_target_flag_bits): Support VIS4.
12811 (sparc_vis_init_builtins): Likewise.
12812 (sparc_builtins): Likewise.
12813 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12814 VIS4 4.0.
12815 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12816 UltraSparc M7.
12817 * config/sparc/sparc.opt (sparc_processor_type): New value
12818 niagara7.
12819 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12820 VIS4 builtins.
12821 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12822 -mvis4.
12823 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12824 VIS4 builtins.
12825
12826 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12827
12828 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12829
12830 2016-06-06 Richard Biener <rguenther@suse.de>
12831
12832 PR tree-optimization/71398
12833 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12834 remove edges.
12835
12836 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12837
12838 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12839 ft32_expand_prolog, ft32_expand_epilogue):
12840 Handle pretend_args.
12841 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12842 * config/ft32/ft32.md: Add pretend_returner.
12843
12844 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12845
12846 PR target/71389
12847 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12848 Copy op1 RTX to avoid invalid sharing.
12849 (ix86_expand_vector_move_misalign): Ditto.
12850
12851 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12852
12853 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12854 ATTRIBUTE_UNUSED.
12855
12856 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12857
12858 * predict.c (predicted_by_loop_heuristics_p): New function.
12859 (predict_iv_comparison): Use it.
12860 (predict_loops): Walk from innermost loops; do not predict edges
12861 leaving multiple loops multiple times; implement
12862 PRED_LOOP_ITERATIONS_MAX heuristics.
12863 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12864
12865 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12866
12867 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12868 only edges out of BB are EH edges.
12869
12870 2016-06-04 Martin Sebor <msebor@redhat.com>
12871 Marcin Baczyński <marbacz@gmail.com>
12872
12873 PR c/48116
12874 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12875 a void expression in a void function.
12876
12877 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12878
12879 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12880 aux; dump reasons of decisions.
12881 (should_duplicate_loop_header_p): Likewise.
12882 (do_while_loop_p): Likewise.
12883 (ch_base::copy_headers): Dump asi num insns duplicated.
12884
12885 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12886
12887 PR tree-optimization/71405
12888 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12889 incompatible type, build a new clobber with the right type instead
12890 of building a VIEW_CONVERT_EXPR around it.
12891
12892 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12893
12894 PR tree-optimization/52171
12895 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12896 by_pieces_ninsns instead of move_by_pieces_ninsns.
12897
12898 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12899
12900 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12901 for reg+reg addressing mode.
12902
12903 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12904
12905 * rs6000-c.c (c/c-tree.h): Add #include.
12906 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12907 in C++ when found in the base position of vec_ld or vec_st.
12908
12909 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12910
12911 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12912 use of profile unless profile status is PROFILE_READ.
12913 * profile.c (compute_branch_probabilities): Set profile status
12914 only after reporting predictor hitrates.
12915
12916 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12917
12918 PR target/71276
12919 PR target/71277
12920 * common.opt (ffp-int-builtin-inexact): New option.
12921 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12922 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12923 (ceil@var{m}2): Document dependence on this option.
12924 * ipa-inline-transform.c (inline_call): Handle
12925 flag_fp_int_builtin_inexact.
12926 * ipa-inline.c (can_inline_edge_p): Likewise.
12927 * config/i386/i386.md (rintxf2): Do not test
12928 flag_unsafe_math_optimizations.
12929 (rint<mode>2_frndint): New define_insn.
12930 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12931 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12932 for 387 instead of extending and truncating.
12933 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12934 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12935 Change to frndint<mode>2_<rounding>.
12936 (frndintxf2_<rounding>_i387): Likewise. Change to
12937 frndint<mode>2_<rounding>_i387.
12938 (<rounding_insn>xf2): Likewise.
12939 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12940 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12941 x87. Test TARGET_ROUND || !flag_trapping_math ||
12942 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12943 SSE. Use ROUND_NO_EXC in constant operand of
12944 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12945 for 387 instead of extending and truncating.
12946
12947 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12948 Julia Koval <julia.koval@intel.com>
12949
12950 PR target/66960
12951 PR target/67630
12952 PR target/67634
12953 PR target/67841
12954 PR target/68037
12955 PR target/68618
12956 PR target/68661
12957 PR target/69575
12958 PR target/69596
12959 PR target/69734
12960 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12961 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12962 all registers, except for function return registers if there are
12963 no caller-saved registers.
12964 (ix86_set_func_type): New function.
12965 (ix86_set_current_function): Call ix86_set_func_type to set
12966 no_caller_saved_registers and func_type. Call reinit_regs if
12967 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12968 nor x87 instructions in interrupt handler nor function with
12969 no_caller_saved_registers attribute.
12970 (ix86_function_ok_for_sibcall): Return false if there are no
12971 caller-saved registers.
12972 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12973 handler.
12974 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12975 (ix86_function_arg): Return special arguments in interrupt handler.
12976 (ix86_promote_function_mode): Promote pointer to word_mode only
12977 for normal functions.
12978 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12979 interrupt handler.
12980 (ix86_epilogue_uses): New function.
12981 (ix86_hard_regno_scratch_ok): Likewise.
12982 (ix86_save_reg): Preserve all registers in interrupt handler
12983 after reload. Preserve all registers, except for function return
12984 registers, if there are no caller-saved registers after reload.
12985 (find_drap_reg): Always use callee-saved register if there are
12986 no caller-saved registers.
12987 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12988 for interrupt handler.
12989 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12990 Emit cld instruction if stringops are used in interrupt handler
12991 or interrupt handler isn't a leaf function.
12992 (ix86_expand_epilogue): Generate interrupt return for interrupt
12993 handler and pop the 'ERROR_CODE' off the stack before interrupt
12994 return in exception handler.
12995 (ix86_expand_call): Disallow calling interrupt handler directly.
12996 If there are no caller-saved registers, mark all registers that
12997 are clobbered by the call which returns as clobbered.
12998 (ix86_handle_no_caller_saved_registers_attribute): New function.
12999 (ix86_handle_interrupt_attribute): Likewise.
13000 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
13001 attributes.
13002 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
13003 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
13004 accumulation in interrupt function if stack may be realigned to
13005 avoid DRAP.
13006 (EPILOGUE_USES): New.
13007 (function_type): New enum.
13008 (machine_function): Add func_type and no_caller_saved_registers.
13009 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
13010 (interrupt_return): New pattern.
13011 * doc/extend.texi: Document x86 interrupt and
13012 no_caller_saved_registers attributes.
13013
13014 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
13015
13016 PR tree-optimization/52171
13017 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
13018 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
13019 Look for constant strings. Move some code to emit_block_cmp_hints
13020 and use it.
13021 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
13022 * defaults.h (COMPARE_MAX_PIECES): New macro.
13023 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
13024 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
13025 (clear_by_pieces_1): Don't declare. Move definition before use.
13026 (can_do_by_pieces): New static function.
13027 (can_move_by_pieces): Use it. Return bool.
13028 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
13029 OP. All callers changed. Handle COMPARE_BY_PIECES.
13030 (class pieces_addr); New.
13031 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
13032 pieces_addr::adjust, pieces_addr::increment_address,
13033 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
13034 functions for it.
13035 (class op_by_pieces_d): New.
13036 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
13037 functions for it.
13038 (class move_by_pieces_d, class compare_by_pieces_d,
13039 class store_by_pieces_d): New subclasses of op_by_pieces_d.
13040 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
13041 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
13042 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
13043 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
13044 compare_by_pieces_d::finish_mode): New member functions.
13045 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
13046 functions.
13047 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
13048 (emit_block_cmp_hints): New function.
13049 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
13050 use the newly defined classes.
13051 * expr.h (by_pieces_constfn): New typedef.
13052 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
13053 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
13054 (move_by_pieces_ninsns): Don't declare.
13055 (can_move_by_pieces): Change return value to bool.
13056 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
13057 (compare_by_pieces_branch_ratio): New hook.
13058 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
13059 (by_pieces_ninsns): Declare.
13060 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
13061 COMPARE_BY_PIECES.
13062 (default_compare_by_pieces_branch_ratio): New function.
13063 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
13064 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
13065 * doc/tm.texi: Regenerate.
13066 * tree-ssa-strlen.c: Include "builtins.h".
13067 (handle_builtin_memcmp): New static function.
13068 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
13069 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
13070
13071 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13072
13073 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
13074 relevant stmts which are simple and invariant.
13075 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
13076 instead of simple and invariant
13077
13078 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13079
13080 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
13081 (vectorizable_reduction): Check for new relevant state.
13082 (vectorizable_live_operation): vectorize live stmts using
13083 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
13084 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
13085 (vect_stmt_relevant_p): Check for stmts which are only used live.
13086 (process_use): Use of a stmt does not inherit it's live value.
13087 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
13088 (vect_analyze_stmt): Check for new relevant state.
13089 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
13090 outside the loop, but not inside it.
13091
13092 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13093
13094 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
13095 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
13096 (vect_get_vec_def_for_operand): Split out code.
13097
13098 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
13099
13100 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
13101
13102 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13103
13104 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
13105
13106 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13107
13108 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
13109
13110 2016-06-03 Jakub Jelinek <jakub@redhat.com>
13111
13112 PR middle-end/71387
13113 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
13114 to noreturn e->callee->decl that has void return type and void
13115 arguments, adjust gimple_call_fntype and remove lhs even if it had
13116 previously addressable type.
13117
13118 2016-06-02 Jeff Law <law@redhat.com>
13119
13120 PR tree-optimization/71328
13121 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
13122 error when checking for a jump back onto the copied path.
13123
13124 2016-06-02 David Malcolm <dmalcolm@redhat.com>
13125
13126 * config/microblaze/microblaze.c (get_branch_target): Add return
13127 NULL_RTX for the non-CALL_P case.
13128 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
13129 (insert_wic): Remove unused local "j".
13130
13131 2016-06-02 Martin Liska <mliska@suse.cz>
13132
13133 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
13134
13135 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
13136 Julia Koval <julia.koval@intel.com>
13137
13138 * function.c (assign_parm_setup_stack): Force source into a
13139 register if needed.
13140 * target.def (function_incoming_arg): Update documentation to
13141 allow arbitrary address computation based on hard register.
13142 * doc/tm.texi: Regenerated.
13143
13144 2016-06-02 Martin Liska <mliska@suse.cz>
13145
13146 * predict.c (combine_predictions_for_bb): Fix first match in
13147 cases where a first predictor contains more than one occurence
13148 in list of predictors. Take the best value in such case.
13149
13150 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13151
13152 PR rtl-optimization/71295
13153 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
13154 offset would go over the size of the inner mode reject it.
13155
13156 2016-06-02 Jakub Jelinek <jakub@redhat.com>
13157
13158 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
13159 x=x,x and v=v,m instead of x=x,m.
13160
13161 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
13162 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
13163 alternative to v=rm,C.
13164
13165 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
13166 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
13167 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
13168 instead of vex for the last two above mentioned alternatives.
13169
13170 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13171
13172 PR target/70830
13173 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
13174
13175 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
13176
13177 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
13178
13179 2016-06-01 David Malcolm <dmalcolm@redhat.com>
13180
13181 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
13182 from int to unsigned.
13183
13184 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13185
13186 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
13187 alternatives, eliminating preferred register class. Add support
13188 for the MTVSRDD instruction in ISA 3.0.
13189 (vsx_splat_v4si_internal): Use splat_input_operand instead of
13190 reg_or_indexed_operand.
13191 (vsx_splat_v4sf_internal): Likewise.
13192
13193 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13194
13195 PR target/71186
13196 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
13197 for loading up all 0's or all 1's.
13198
13199 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13200
13201 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
13202
13203 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
13204
13205 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
13206 extension.
13207 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
13208 * gcc.c (set_source_date_epoch_envvar): New function, sets
13209 the SOURCE_DATE_EPOCH environment variable to the current time.
13210
13211 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13212
13213 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
13214 the factor for live Phi nodes.
13215
13216 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13217
13218 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
13219 * tree-parloops.c (parallelize_loops): likewise.
13220 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
13221 tree_unswitch_outer_loop): likewise.
13222
13223 2016-06-01 Jakub Jelinek <jakub@redhat.com>
13224
13225 PR middle-end/71371
13226 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
13227 around creation of the temporary.
13228
13229 2016-06-01 Richard Biener <rguenther@suse.de>
13230
13231 PR tree-optimization/71366
13232 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
13233 (unloop_loops): Move removing edges here ...
13234 (try_unroll_loop_completely): ... from here.
13235 (try_peel_loop): ... and here.
13236 (tree_unroll_loops_completely_1): Track parent loops via
13237 bitmap of header BBs.
13238 (tree_unroll_loops_completely): Adjust for that.
13239
13240 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13241
13242 * config/rs6000/altivec.h (vec_slv): New macro.
13243 (vec_srv): New macro.
13244 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
13245 (UNSPEC_VSRV): New value.
13246 (vslv): New insn.
13247 (vsrv): New insn.
13248 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
13249 (vsrv): New builtin definition.
13250 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
13251 define argument types for new builtin.
13252 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
13253 new builtin.
13254 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
13255 functions.
13256
13257 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
13258 Jocelyn Mayer <l_indien@magic.fr>
13259
13260 PR target/67310
13261 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
13262 detect processor family for signature_CENTAUR_ebx.
13263 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
13264 signature_CENTAUR_ebx.
13265 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
13266 <default>: Pass x86-64 for has_longmode.
13267
13268 2016-06-01 Nathan Sidwell <nathan@acm.org>
13269
13270 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
13271 undefined weak.
13272
13273 2016-06-01 Richard Biener <rguenther@suse.de>
13274
13275 PR tree-optimization/71261
13276 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
13277 of stmts successfully put in the bool pattern. Remove
13278 single-use restriction.
13279 (adjust_bool_pattern_cast): Add cast at the use site via the
13280 pattern def sequence.
13281 (adjust_bool_pattern): Remove recursion, maintain a hash-map
13282 of patterned defs. Use the pattern def seqence instead of
13283 multiple independent patterns.
13284 (sort_after_uid): New qsort compare function.
13285 (adjust_bool_stmts): New function to process stmts in the bool
13286 pattern in IL order.
13287 (vect_recog_bool_pattern): Adjust.
13288 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
13289 (ifcvt_walk_pattern_tree): Likewise.
13290 (stmt_is_root_of_bool_pattern): Likewise.
13291 (ifcvt_repair_bool_pattern): Likewise.
13292 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
13293
13294 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13295
13296 * loop-unroll.c (decide_unroll_constant_iterations,
13297 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
13298 likely upper bounds.
13299 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
13300
13301 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
13302
13303 * tree-core.h (enum omp_clause_code): Remove
13304 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
13305
13306 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13307
13308 * config/arm/sync.md (arm_store_exclusive<mode>):
13309 Use 'H' output modifier on operands[2] rather than creating a new
13310 entry in out-of-bounds memory of the operands array.
13311 (arm_store_release_exclusivedi): Likewise.
13312
13313 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13314
13315 * config/arm/arm.c (arm_fusion_enabled_p): New function.
13316 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
13317 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
13318 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13319
13320 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13321
13322 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
13323 into account live statements for mask producers.
13324
13325 2016-06-01 Richard Biener <rguenther@suse.de>
13326
13327 PR tree-optimization/71311
13328 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
13329 restrict to non-INTEGER_CST @0.
13330
13331 2016-06-01 Richard Biener <rguenther@suse.de>
13332
13333 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
13334 (relational patterns): Use :c to avoid pattern duplications.
13335
13336 2016-06-01 Richard Biener <rguenther@suse.de>
13337
13338 * genmatch.c (comparison_code_p): New predicate.
13339 (swap_tree_comparison): New function.
13340 (commutate): Add for_vec parameter to append new for entries.
13341 Support commutating relational operators by swapping it alongside
13342 operands.
13343 (lower_commutative): Adjust.
13344 (dt_simplify::gen): Do not pass artificial operators to gen
13345 functions.
13346 (decision_tree::gen): Do not add artificial operators as parameters.
13347 (parser::parse_expr): Verify operator commutativity when :c is
13348 applied. Allow :C to override this.
13349 * match.pd: Adjust patterns to use :C instead of :c where required.
13350
13351 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
13352
13353 PR tree-optimization/71077
13354 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
13355 the combining step, use boolean_false_node and boolean_true_node
13356 as the designated false/true return values.
13357
13358 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13359
13360 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
13361 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
13362 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
13363 PRED_LOOP_EXIT.
13364
13365 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13366
13367 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
13368 of flags impliying the register renaming.
13369 * toplev.c (process_options): Do not imply flag_rename_registers with
13370 loop peeling.
13371
13372 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13373
13374 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
13375 default implementation.
13376
13377 2016-05-31 Nathan Sidwell <nathan@acm.org>
13378
13379 * dwarf2out.c (cur_line_info_table): Add GTY marker.
13380
13381 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13382
13383 * config/sh/constraints.md (b): Remove constraint.
13384 * config/sh/predicates.md (arith_reg_operand): Remove
13385 TARGET_REGISTER_P.
13386 * config/sh/sh-modes.def (PDI): Remove.
13387 * config/sh/sh.c (sh_target_reg_class,
13388 sh_optimize_target_register_callee_saved): Remove functions.
13389 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
13390 (sh_expand_epilogue): Update comment.
13391 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
13392 sh_secondary_reload): Remove TARGET_REGS related code.
13393 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
13394 TARGET_REGISTER_P): Remove macros.
13395 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
13396 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
13397 TR1_REG, TR2_REG): Remove constants.
13398 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
13399
13400 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13401
13402 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
13403 define_expand patterns.
13404 (adddi3_compact): Rename to adddi3.
13405 (subdi3_compact): Rename to subdi3.
13406 (*negdi2): Rename to negdi2.
13407 (*abs<mode>2): Rename to abs<mode>2.
13408
13409 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13410
13411 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
13412 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
13413 (atomic_sub_fetchsi): ... this new pattern.
13414 (mvtc): Add CC_REG clobber.
13415
13416 2016-05-31 Marek Polacek <polacek@redhat.com>
13417
13418 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
13419
13420 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13421
13422 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
13423 aarch64_fusion_enabled_p to check for fusion capabilities.
13424
13425 2016-05-31 Richard Biener <rguenther@suse.de>
13426
13427 PR tree-optimization/71352
13428 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
13429 minus one and a negate.
13430
13431 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13432
13433 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
13434 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
13435 Delete prototype.
13436 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
13437 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
13438 Remove use of aarch64_simd_attr_length_move, set length attribute
13439 directly.
13440 (*aarch64_be_movoi): Likewise.
13441 (*aarch64_be_movci): Likewise.
13442 (*aarch64_be_movxi): Likewise.
13443
13444 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13445
13446 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
13447 It no longer does that.
13448 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
13449
13450 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
13451
13452 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
13453 attribute __unused__.
13454
13455 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
13456
13457 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
13458 * config/arm/arm.c (arm_arch_thumb1): Define.
13459 (arm_option_override): Initialize arm_arch_thumb1.
13460 * config/arm/arm.h (arm_arch_thumb1): Declare.
13461 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
13462 support Thumb-1 ISA.
13463
13464 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
13465
13466 PR target/71346
13467 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
13468 `Yv' for scalar operand.
13469
13470 2016-05-31 Tom de Vries <tom@codesourcery.com>
13471
13472 PR tree-optimization/69068
13473 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
13474 phis with more than two args.
13475
13476 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
13477
13478 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
13479 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
13480 target.
13481
13482 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
13483
13484 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
13485 tune_64.
13486 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
13487 support on SPARC.
13488 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
13489 cpu_32, cpu_64, tune_32 and tune_64.
13490 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
13491
13492 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13493
13494 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13495
13496 2016-05-30 Andi Kleen <ak@linux.intel.com>
13497
13498 * auto-profile.c (read_profile): Replace asserts with errors
13499 when file does not exist.
13500 * gcov-io.c (gcov_read_words): Dito.
13501
13502 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13503
13504 * tree-cfg.c (print_loop): Print likely upper bounds.
13505
13506 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13507
13508 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
13509 * opts.c (default_options): Enable peel loops at -O3.
13510 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
13511 (try_peel_loop): Do not re-peel already peeled loops;
13512 use likely upper bounds; fix profile updating.
13513 (pass_complete_unroll::execute): Initialize peeled_loops.
13514
13515 2016-05-30 Martin Liska <mliska@suse.cz>
13516
13517 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
13518 computed costs by frequency of BB they belong to.
13519 (get_scaled_computation_cost_at): New function.
13520
13521 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
13522 Marc Glisse <marc.glisse@inria.fr>
13523
13524 PR tree-optimization/71289
13525 * match.pd (-1 / B < A, A > -1 / B): New transformations.
13526
13527 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13528
13529 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
13530
13531 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13532
13533 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
13534 for peeled copies; avoid underflow when updating estimates; correctly
13535 scale loop profile.
13536
13537 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13538
13539 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
13540 r236875. Corrected oe3 to oe2 as obvious.
13541
13542 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13543
13544 PR middle-end/71269
13545 PR middle-end/71252
13546 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
13547 that inserted stmt will not dominate stmts that defines its operand.
13548 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
13549 (rewrite_expr_tree_parallel): Likewise.
13550
13551 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13552
13553 PR middle-end/71252
13554 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
13555 all fields including stmt_to_insert are swapped.
13556
13557 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13558
13559 * predict.h (force_edge_cold): Declare.
13560 * predict.c (force_edge_cold): New function.
13561 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
13562 updating.
13563 (canonicalize_loop_induction_variables): Fix formating.
13564
13565 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
13566
13567 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
13568 (visium_expand_copysign): Use gen_int_mode directly.
13569 (visium_compute_frame_size): Minor tweaks.
13570
13571 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13572
13573 * tree-vect-loop.c (vect_analyze_loop_2): Use
13574 likely_max_stmt_executions_int.
13575
13576 2016-05-30 Tom de Vries <tom@codesourcery.com>
13577
13578 PR tree-optimization/69067
13579 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
13580
13581 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
13582
13583 PR target/71245
13584 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
13585 New peepholes to remove unneeded fild/fistp pairs.
13586 (define_peephole2 atomic_loaddi_fpu): Ditto.
13587
13588 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13589
13590 * predict.c (maybe_hot_frequency_p): Avoid division.
13591
13592 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
13593
13594 * doc/install.texi: Use https for shop.fsf.org.
13595
13596 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13597
13598 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
13599 likely_max_stmt_executions_int.
13600
13601 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13602
13603 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
13604 likely_max_stmt_executions_int.
13605
13606 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13607
13608 * profile.c (compute_branch_probabilities): Do not report hitrates
13609 here.
13610 (branch_prob): Report hitrates here.
13611 * predict.c (gimple_predict_edge): Do not assert profile status;
13612 fix formatting issues.
13613
13614 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13615
13616 * predict.c (edge_predicted_by_p): New function.
13617 (predict_paths_for_bb): Do not put multiple predictions of the same type
13618 on one edge.
13619
13620 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13621
13622 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
13623 commit.
13624
13625 2016-05-28 Alan Modra <amodra@gmail.com>
13626
13627 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
13628
13629 2016-05-28 Alan Modra <amodra@gmail.com>
13630
13631 PR rtl-optimization/71275
13632 * ira.c (ira): Free dominance info.
13633
13634 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
13635
13636 * doc/sourcebuild.texi: New address for upstream Go repository.
13637
13638 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13639
13640 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
13641 (TARGET_ARM_V7M): Likewise.
13642
13643 2016-05-26 Jeff Law <law@redhat.com>
13644
13645 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
13646 (thread_across_edge): Remove calls to find_jump_threads_backwards.
13647 * passes.def: Add jump threading passes before DOM/VRP.
13648 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
13649 argument to a basic block from an edge. Remove tests which are
13650 handled elsewhere.
13651 (pass_data_thread_jumps, class pass_thread_jumps): New.
13652 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
13653 (make_pass_thread_jumps): Likewise.
13654 * tree-pass.h (make_pass_thread_jumps): Declare.
13655
13656 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
13657
13658 * config/visium/visium-protos.h (split_double_move): Rename into...
13659 (visium_split_double_move): ...this.
13660 (visium_split_double_add): Declare.
13661 * config/visium/visium.c (split_double_move): Rename into...
13662 (visium_split_double_move): ...this.
13663 (visium_split_double_add): New function.
13664 (visium_expand_copysign): Renumber operands for consistency.
13665 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
13666 (DFmode move splitter): Likewise.
13667 (*addi3_insn): Split by means of visium_split_double_add.
13668 (*adddi3_insn_flags): Delete.
13669 (*plus_plus_sltu<subst_arith>): New insn.
13670 (*subdi3_insn): Split by means of visium_split_double_add.
13671 (subdi3_insn_flags): Delete.
13672 (*minus_minus_sltu<subst_arith>): New insn.
13673 (*negdi2_insn): Split by means of visium_split_double_add.
13674 (*negdi2_insn_flags): Delete.
13675
13676 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
13677
13678 * configure.ac: Treat a --with-headers option without argument
13679 the same as the default (i.e. consult sys-include directory).
13680 * configure: Regenerate.
13681
13682 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13683
13684 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13685 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13686 prototype.
13687 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13688 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13689
13690 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13691
13692 PR target/63596
13693 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13694 tree-stdarg analysis results.
13695 (aarch64_setup_incoming_varargs): Likewise.
13696
13697 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13698
13699 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13700 va_list_gpr_counter_field and va_list_fpr_counter_field.
13701
13702 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
13703
13704 PR67609
13705 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13706 * config/aarch64/aarch64.c
13707 (aarch64_cannot_change_mode_class): Remove function.
13708 * config/aarch64/aarch64-protos.h
13709 (aarch64_cannot_change_mode_class): Remove.
13710
13711 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13712
13713 * cfgloop.c (record_niter_bound): Record likely upper bounds.
13714 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13715 get_likely_max_loop_iterations_int): New.
13716 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13717 any_likely_upper_bound.
13718 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13719 Declare.
13720 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13721 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13722 upper bound.
13723 (unroll_loop_constant_iterations): Likewise.
13724 (unroll_loop_runtime_iterations): Likewise.
13725 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13726 * lto-streamer-out.c (output_cfg): Likewise.
13727 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13728 bounds.
13729 (canonicalize_loop_induction_variables): Dump likely upper bounds.
13730 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13731 (likely_max_loop_iterations): New.
13732 (likely_max_loop_iterations_int): New.
13733 (likely_max_stmt_executions): New.
13734 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13735 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13736 likely_max_stmt_executions): Declare.
13737
13738 2016-05-27 Marek Polacek <polacek@redhat.com>
13739
13740 PR middle-end/71308
13741 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13742
13743 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13744
13745 * config/s390/s390.md (2x risbg splitters): Use
13746 reg_overlap_mentioned_p instead of rtx_equal_p.
13747
13748 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13749
13750 * combine.c (make_compound_operation): Take known zero bits into
13751 account when checking for possible zero_extend.
13752
13753 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13754
13755 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13756 Use const_int_operand for operand 2 predicate. Simplify expand code
13757 as a result.
13758
13759 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
13760
13761 PR middle-end/71279
13762 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13763 into comparison.
13764
13765 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13766
13767 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13768 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13769 that returns CC_SESWPmode and CC_ZESWPmode.
13770 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13771 and CC_SESWPmode.
13772 (aarch64_rtx_costs): Likewise.
13773
13774 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13775
13776 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13777 for ISA 3.0 min/max support.
13778 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13779 conditional move support.
13780 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13781 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13782 available.
13783 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13784 conditional moves where the comparison type is different from move
13785 type.
13786 (fp_minmax): New code iterator for smin/smax.
13787 (minmax): New code attributes for min/max.
13788 (SMINMAX): Likewise.
13789 (smax<mode>3): Combine min, max insns into one insn using the
13790 fp_minmax code iterator. Add support for ISA 3.0 min/max
13791 instructions that don't need -ffast-math.
13792 (s<minmax><mode>3): Likewise.
13793 (smax<mode>3_vsx): Likewise.
13794 (smin<mode>3): Likewise.
13795 (s<minmax><mode>3_vsx): Likewise.
13796 (smin<mode>3_vsx): Likewise.
13797 (pre-VSX min/max splitters): Likewise.
13798 (s<minmax><mode>3_fpr): Likewise.
13799 (movsfcc): Rewrite floating point conditional moves to combine
13800 SFmode/DFmode into a single insn.
13801 (mov<mode>cc): Likewise.
13802 (movdfcc): Likewise.
13803 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13804 SFDF2 iterators to handle all combinations.
13805 (fseldfsf4): Likewise.
13806 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13807 (fseldfdf4): Likewise.
13808 (fselsfdf4): Likewise.
13809 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13810 comparison instructions that set a 0/-1 mask, and use it for
13811 floating point conditional move via XXSEL.
13812 (fpmask<mode>): Likewise.
13813 (xxsel<mode>): Likewise.
13814 * config/rs6000/predicates.md (min_max_operator): Delete, no
13815 longer used.
13816 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13817 instructions that generate a 0/-1 mask for use with XXSEL.
13818 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13819 say whether floating point min/max is available, either through
13820 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13821 (TARGET_MINMAX_DF): Likewise.
13822
13823 2016-05-27 Alan Modra <amodra@gmail.com>
13824
13825 PR rtl-optimization/71275
13826 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13827 for update_equiv_regs and combine_and_move_insns.
13828
13829 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13830
13831 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13832 if_then_else or cond RTXes to calculate attribute value.
13833 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13834 <attr "length_immediate>: Ditto.
13835 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13836 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13837 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13838 <attr "type">: Ditto.
13839 <attr "prefix_data16">: Ditto.
13840 <attr "prefix_extra">: Ditto.
13841 <attr "length_immediate">: Ditto.
13842 <attr "prefix">: Ditto.
13843 (vec_set<mode>_0) <attr "isa">: Ditto.
13844 <attr "prefix_extra">: Ditto.
13845 <attr "length_immediate">: Ditto.
13846 <attr "prefix">: Ditto.
13847 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13848 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13849 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13850 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13851 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13852 <attr "length_immediate">: Ditto.
13853 <attr "prefix">: Ditto.
13854 (sse2_movsd) <attr "length_immediate">: Ditto.
13855 <attr "prefix">: Ditto.
13856 (vec_concatv2df) <attr "isa">: Ditto.
13857 <attr "prefix">: Ditto.
13858 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13859 (*vec_extractv2di_1) <attr "isa">: Ditto.
13860 <attr "type">: Ditto.
13861 <attr "length_immediate">: Ditto.
13862 <attr "prefix_rex">: Ditto.
13863 <attr "prefix_extra">: Ditto.
13864 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13865 <attr "prefix_extra">: Ditto.
13866 <attr "length_immediate">: Ditto.
13867 (vec_concatv2di) <attr "isa">: Ditto.
13868 <attr "prefix_extra">: Ditto.
13869 <attr "length_immediate">: Ditto.
13870 <attr "prefix">: Ditto.
13871
13872 2016-05-26 Martin Liska <mliska@suse.cz>
13873
13874 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13875 function.
13876 (operator+): Likewise.
13877 (operator-): Likewise.
13878 (comp_cost::operator+=): Likewise.
13879 (comp_cost::operator-=): Likewise.
13880 (comp_cost::operator/=): Likewise.
13881 (comp_cost::operator*=): Likewise.
13882 (operator<): Likewise.
13883 (operator==): Likewise.
13884 (operator<=): Likewise.
13885 (new_cost): Remove.
13886 (infinite_cost_p): Likewise.
13887 (add_costs): Likewise.
13888 (sub_costs): Likewise.
13889 (compare_costs): Likewise.
13890 (set_group_iv_cost): Use the newly introduced functions.
13891 (get_address_cost): Likewise.
13892 (get_shiftadd_cost): Likewise.
13893 (force_expr_to_var_cost): Likewise.
13894 (split_address_cost): Likewise.
13895 (ptr_difference_cost): Likewise.
13896 (difference_cost): Likewise.
13897 (get_computation_cost_at): Likewise.
13898 (determine_group_iv_cost_generic): Likewise.
13899 (determine_group_iv_cost_address): Likewise.
13900 (determine_group_iv_cost_cond): Likewise.
13901 (autoinc_possible_for_pair): Likewise.
13902 (determine_group_iv_costs): Likewise.
13903 (cheaper_cost_pair): Likewise.
13904 (iv_ca_recount_cost): Likewise.
13905 (iv_ca_set_no_cp): Likewise.
13906 (iv_ca_set_cp): Likewise.
13907 (iv_ca_cost): Likewise.
13908 (iv_ca_new): Likewise.
13909 (iv_ca_dump): Likewise.
13910 (iv_ca_narrow): Likewise.
13911 (iv_ca_prune): Likewise.
13912 (iv_ca_replace): Likewise.
13913 (try_add_cand_for): Likewise.
13914 (try_improve_iv_set): Likewise.
13915 (find_optimal_iv_set): Likewise.
13916
13917 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13918
13919 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13920 that internal functions will clobber all caller-saved registers.
13921
13922 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13923
13924 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13925 Return a better case_values_threshold when optimizing.
13926
13927 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13928
13929 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13930 Add ? to integer variant.
13931 (aarch64_combinez_be): Likewise.
13932
13933 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13934
13935 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13936 instead of x constraint.
13937 (vcvtps2ph256<mask_name>): Likewise.
13938
13939 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13940 alternative. Formatting fix.
13941
13942 * config/i386/sse.md
13943 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13944 to ...
13945 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13946 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13947 maybe_evex prefix instead of vex.
13948 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13949 EXT_REX_SSE_REG_P (op0) case in the splitter.
13950
13951 2016-05-25 Jeff Law <law@redhat.com>
13952
13953 PR tree-optimization/71272
13954 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13955 Update comments. Add test for empty path.
13956
13957 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13958
13959 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13960 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13961 special case builtin.
13962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13963 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13964 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13965 for __builtin_vec_cmpne.
13966
13967 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13968
13969 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13970 redundant test and bail out if the type of the new operand is not
13971 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13972
13973 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13974
13975 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13976 (x_ix86_target_flags_explicit): Remove.
13977 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13978 x_ix86_target_flags_explicit.
13979 (ix86_function_specific_restore): Ditto.
13980
13981 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13982 H.J. Lu <hongjiu.lu@intel.com>
13983
13984 PR target/70738
13985 * common/config/i386/i386-common.c
13986 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13987 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13988 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13989 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13990 (-mgeneral-regs-only): Add new option.
13991 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13992 x87 instructions if only general registers are allowed.
13993 (ix86_target_string): Add ix86_flags argument. Handle additional
13994 flags options through ix86_flags argument. Update all callers.
13995 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13996
13997 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13998
13999 PR rtl-optimization/66940
14000 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
14001 decrementing desired_val will not overflow before performing these
14002 operations.
14003
14004 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
14005
14006 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
14007 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
14008 * config/i386/i386.c (enum ix86_builtins): Add
14009 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
14010 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
14011 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
14012 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
14013 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
14014 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
14015 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
14016 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
14017 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
14018 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
14019 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
14020 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
14021 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
14022 __builtin_ia32_cvtps2dq512_mask.
14023 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
14024 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
14025 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
14026 * config/i386/sse.md
14027 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
14028 Rename to ...
14029 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
14030 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
14031 to ...
14032 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
14033 (avx512f_vec_pack_sfix_v8df): New define_expand.
14034 (avx512f_roundpd512): Rename to ...
14035 (avx512f_round<castmode>512): ... this. Change iterator.
14036 (avx512f_roundps512_sfix): New define_expand.
14037 (round<mode>2_sfix): Change iterator.
14038
14039 2016-05-25 Nick Clifton <nickc@redhat.com>
14040
14041 * config/msp430/msp430.c (msp430_attr): Produce an error if a
14042 static interrupt handler is detected.
14043 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
14044 default linker script.
14045 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
14046 the low part of a symbolic pointer.
14047
14048 2016-05-25 Richard Biener <rguenther@suse.de>
14049
14050 PR tree-optimization/71261
14051 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
14052 interesting stmt instead of immediate uses when looking
14053 for the use operand to replace.
14054
14055 2016-05-25 Martin Liska <mliska@suse.cz>
14056
14057 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
14058
14059 2016-05-25 Richard Biener <rguenther@suse.de>
14060
14061 PR tree-optimization/71264
14062 * tree-vect-stmts.c (vect_init_vector): Properly deal with
14063 vector type val.
14064
14065 2016-05-25 Martin Liska <mliska@suse.cz>
14066
14067 PR tree-optimization/71239
14068 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
14069 if DECL_SIZE is NULL.
14070
14071 2016-05-25 Richard Biener <rguenther@suse.de>
14072
14073 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
14074 * tree-if-conv.c (pass_data_if_conversion): Use it.
14075
14076 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14077
14078 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
14079 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
14080 * varpool.c (varpool_node::get_availability): Likewise.
14081
14082 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14083
14084 * config/rs6000/altivec.md (VNEG iterator): New iterator for
14085 VNEGW/VNEGD instructions.
14086 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
14087 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
14088 support for ISA 3.0 VNEGW/VNEGD instructions.
14089
14090 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
14091
14092 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
14093 pointers inside OACC_DATA regions.
14094 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
14095 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
14096 (gimplify_adjust_omp_clauses): Fix typo in comment.
14097
14098 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14099
14100 * config/rs6000/altivec.md (VParity): New mode iterator for vector
14101 parity built-in functions.
14102 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
14103 zeros.
14104 (p9v_parity<mode>2): Likewise.
14105 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
14106 parity.
14107 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
14108 (parity<mode>2): ISA 3.0 expander for vector parity.
14109 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
14110 power9 built-ins.
14111 (BU_P9_64BIT_MISC_0): Likewise.
14112 (BU_P9_MISC_0): Likewise.
14113 (BU_P9V_AV_1): Likewise.
14114 (BU_P9V_AV_2): Likewise.
14115 (BU_P9V_AV_3): Likewise.
14116 (BU_P9V_AV_P): Likewise.
14117 (BU_P9V_VSX_1): Likewise.
14118 (BU_P9V_OVERLOAD_1): Likewise.
14119 (BU_P9V_OVERLOAD_2): Likewise.
14120 (BU_P9V_OVERLOAD_3): Likewise.
14121 (VCTZB): Add vector count trailing zeros support.
14122 (VCTZH): Likewise.
14123 (VCTZW): Likewise.
14124 (VCTZD): Likewise.
14125 (VPRTYBD): Add vector parity support.
14126 (VPRTYBQ): Likewise.
14127 (VPRTYBW): Likewise.
14128 (VCTZ): Add overloaded vector count trailing zeros support.
14129 (VPRTYB): Add overloaded vector parity support.
14130 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14131 overloaded vector count trailing zeros and parity instructions.
14132 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
14133 vector parity support.
14134 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
14135 trailing zeros support.
14136 (vec_cntlz): Likewise.
14137 (vec_vctzb): Likewise.
14138 (vec_vctzd): Likewise.
14139 (vec_vctzh): Likewise.
14140 (vec_vctzw): Likewise.
14141 (vec_vprtyb): Add ISA 3.0 vector parity support.
14142 (vec_vprtybd): Likewise.
14143 (vec_vprtybw): Likewise.
14144 (vec_vprtybq): Likewise.
14145 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14146 the ISA 3.0 vector count trailing zeros and vector parity built-in
14147 functions.
14148
14149 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14150
14151 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
14152 when there is stmt_to_insert.
14153
14154 2016-05-24 Martin Sebor <msebor@redhat.com>
14155
14156 PR c++/71147
14157 * tree.h (complete_or_array_type_p): New inline function.
14158
14159 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14160
14161 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
14162 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
14163 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
14164
14165 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
14166 Limit 1st alternative to noavx isa, split 2nd alternative into one
14167 noavx and one avx alternative, use *x and Bm in the former and
14168 x and m in the latter.
14169
14170 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
14171 of sse4 for the first alternative, drop %v from the template
14172 and d operand modifier. Split second alternative into one sse4_noavx
14173 and one avx alternative, use *x instead of *v in the former and v
14174 instead of *v in the latter.
14175 (*sse4_1_extractps): Use noavx isa instead of * for the first
14176 alternative, drop %v from the template. Split second alternative into
14177 one noavx and one avx alternative, use *x instead of *v in the
14178 former and v instead of *v in the latter.
14179 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
14180 with noavx and the last one with avx.
14181 (sse4_1_phminposuw): Guard first alternative with noavx isa,
14182 split the second one into one noavx and one avx alternative,
14183 use *x and Bm in the former and x and m in the latter one.
14184 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
14185 alternatives.
14186
14187 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
14188 first two alternatives to noavx, use *x instead of *v in the second
14189 one, add avx alternative without *.
14190 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
14191 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
14192 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
14193
14194 2016-05-24 Jeff Law <law@redhat.com>
14195
14196 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
14197 New function, extracted from...
14198 (fsm_find_control_statement_thread_paths): Here. Use the new function.
14199 Allow simple copies and constant initializations in the SSA chain.
14200
14201 2016-05-24 Marek Polacek <polacek@redhat.com>
14202
14203 PR c/71249
14204 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
14205 scope.
14206
14207 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14208
14209 PR c++/71257
14210 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
14211 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
14212 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
14213 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
14214 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
14215
14216 2016-05-24 Richard Biener <rguenther@suse.de>
14217
14218 PR tree-optimization/71240
14219 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
14220 has integral type.
14221
14222 2016-05-24 Richard Biener <rguenther@suse.de>
14223
14224 PR tree-optimization/71230
14225 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
14226
14227 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14228
14229 * tree-vectorizer.h (vectorizable_comparison): Delete.
14230 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
14231 PURE_SLP_STMT check.
14232 * tree-vect-stmts.c (vectorizable_call): Likewise.
14233 (vectorizable_simd_clone_call): Likewise.
14234 (vectorizable_conversion): Likewise.
14235 (vectorizable_assignment): Likewise.
14236 (vectorizable_shift): Likewise.
14237 (vectorizable_operation): Likewise.
14238 (vectorizable_load): Likewise.
14239 (vectorizable_condition): Likewise.
14240 (vectorizable_store): Likewise. Assert that we don't have
14241 hybrid SLP.
14242 (vectorizable_comparison): Make static. Remove redundant
14243 PURE_SLP_STMT check.
14244 (vect_transform_stmt): Assert that we always have an slp_node
14245 if PURE_SLP_STMT.
14246
14247 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14248
14249 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
14250 operands[2] against 1 with comparison against CONST1_RTX.
14251 (<shift>di3_neon): Likewise.
14252 * config/arm/predicates.md (const0_operand): Replace with comparison
14253 against CONST0_RTX.
14254
14255 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14256
14257 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
14258 operands[2] against 1 with comparison against CONST1_RTX.
14259 (ashrdi3): Likewise.
14260 (lshrdi3): Likewise.
14261 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
14262 UINTVAL.
14263 (ashrsi3): Likewise.
14264 (lshrsi3): Likewise.
14265 (rotrsi3): Likewise.
14266 (define_split above *compareqi_eq0): Likewise.
14267 (define_split above "prologue"): Likewise.
14268 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
14269 * config/arm/predicates.md (shift_operator): Likewise.
14270 (shift_nomul_operator): Likewise.
14271 (sat_shift_operator): Likewise.
14272 (thumb1_cmp_operand): Likewise.
14273 (const_neon_scalar_shift_amount_operand): Replace manual range
14274 check with IN_RANGE.
14275 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
14276 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
14277
14278 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14279
14280 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
14281 with HOST_WIDE_INT_1.
14282 (insv): Likewise.
14283 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
14284 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
14285 (arm_canonicalize_comparison): Likewise.
14286 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
14287 HOST_WIDE_INT_1.
14288 (thumb1_size_rtx_costs): Likewise.
14289 (vfp_const_double_index): Replace cast of 1 to unsigned
14290 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14291 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
14292 HOST_WIDE_INT_1.
14293 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
14294 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14295 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
14296 HOST_WIDE_INT with HOST_WIDE_INT_1.
14297
14298 2016-05-24 Marek Polacek <polacek@redhat.com>
14299
14300 * tree-cfg.h (should_remove_lhs_p): New predicate.
14301 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14302 * gimplify.c (gimplify_modify_expr): Likewise.
14303 * tree-cfg.c (verify_gimple_call): Likewise.
14304 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14305 * gimple-fold.c: Include "tree-cfg.h".
14306 (gimple_fold_call): Use should_remove_lhs_p.
14307
14308 2016-05-24 Richard Biener <rguenther@suse.de>
14309
14310 PR tree-optimization/71253
14311 * cfganal.h (control_dependences): Make robust against edge
14312 and BB removal.
14313 (control_dependences::control_dependences): Remove edge_list argument.
14314 (control_dependences::get_edge): Remove.
14315 (control_dependences::get_edge_src): Add.
14316 (control_dependences::get_edge_dest): Likewise.
14317 (control_dependences::m_el): Make a vector of edge src/dest index.
14318 * cfganal.c (control_dependences::find_control_dependence): Adjust.
14319 (control_dependences::control_dependences): Likewise.
14320 (control_dependences::~control_dependence): Likewise.
14321 (control_dependences::get_edge): Remove.
14322 (control_dependences::get_edge_src): Add.
14323 (control_dependences::get_edge_dest): Likewise.
14324 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
14325 get_edge_src.
14326 (perform_tree_ssa_dce): Adjust.
14327 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
14328 get_edge_src.
14329 (pass_loop_distribution::execute): Adjust. Do loop destroying
14330 conditional on changed.
14331
14332 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14333
14334 PR target/69857
14335 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
14336 return. Reindent transformation comment and mention the ARM state
14337 behavior.
14338
14339 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14340
14341 PR middle-end/71252
14342 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
14343 after build_and_add_sum creates new use stmt.
14344
14345 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14346
14347 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
14348 load_lanes/grouped_load classification comes first. Don't check
14349 whether the vectorization factor is a multiple of the group size
14350 for load_lanes.
14351
14352 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14353
14354 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
14355 GROUP_GAP for single-element interleaving.
14356 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
14357 variable.
14358
14359 2016-05-24 Richard Biener <rguenther@suse.de>
14360
14361 PR middle-end/70434
14362 PR c/69504
14363 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
14364 bases which are accessed with non-invariant indices.
14365 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
14366 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
14367
14368 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14369
14370 PR middle-end/71170
14371 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
14372 (add_to_ops_vec): Add stmt_to_insert.
14373 (add_repeat_to_ops_vec): Init stmt_to_insert.
14374 (insert_stmt_before_use): New.
14375 (transform_add_to_multiply): Remove mult_stmt insertion and add it
14376 to ops vector.
14377 (get_ops): Init stmt_to_insert.
14378 (maybe_optimize_range_tests): Likewise.
14379 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
14380 (rewrite_expr_tree_parallel): Likewise.
14381 (reassociate_bb): Likewise.
14382
14383 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14384
14385 PR target/71201
14386 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
14387 ISA 3.0 xxperm fusion alternative.
14388 (altivec_vperm_v8hiv16qi): Likewise.
14389 (altivec_vperm_<mode>_uns_internal): Likewise.
14390 (vperm_v8hiv4si): Likewise.
14391 (vperm_v16qiv8hi): Likewise.
14392
14393 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14394 Kelvin Nilsen <kelvin@gcc.gnu.org>
14395
14396 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
14397 vpermr/xxpermr on ISA 3.0.
14398 (altivec_expand_vec_perm_le): Likewise.
14399 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
14400 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
14401 ISA 3.0.
14402
14403 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
14404
14405 * config/i386/i386.h (IS_STACK_MODE): Enable for
14406 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
14407 SSE_FLOAT_MODE_P macros.
14408 * config/i386/i386.c (ix86_preferred_reload_class): Use
14409 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
14410 Cleanup regclass processing for CONST_DOUBLE_P.
14411 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
14412 (ix86_rtx_costs): Remove redundant TARGET_80387 check
14413 with IS_STACK_MODE macro.
14414 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
14415 with TARGET_SSE2.
14416 (*movdf_internal): Use IS_STACK_MODE macro.
14417 (*movsf_internal): Ditto.
14418
14419 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
14420
14421 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
14422 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
14423
14424 2016-05-23 Jeff Law <law@redhat.com>
14425
14426 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
14427 extracted from ...
14428 (fsm_find_control_statement_thread_paths): Call it.
14429
14430 2016-05-23 Martin Jambor <mjambor@suse.cz>
14431
14432 PR ipa/71234
14433 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
14434 from_global_constant if t is not NULL.
14435
14436 2016-05-23 Marek Polacek <polacek@redhat.com>
14437
14438 PR c/49859
14439 * common.opt (Wswitch-unreachable): New option.
14440 * doc/invoke.texi: Document -Wswitch-unreachable.
14441 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
14442 warning.
14443
14444 2016-05-23 Bin Cheng <bin.cheng@arm.com>
14445
14446 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
14447 TMR_INDEX is non-NULL.
14448
14449 2016-05-23 Richard Biener <rguenther@suse.de>
14450
14451 PR tree-optimization/71230
14452 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
14453 (try_special_add_to_ops): ... here. Always test for single-use.
14454
14455 2016-05-23 Martin Jambor <mjambor@suse.cz>
14456
14457 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
14458 default block if a PHI node in the original one would be resized.
14459
14460 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14461
14462 PR tree-optimization/58135
14463 * tree-vect-slp.c: When group size is not multiple
14464 of vector size, allow splitting of store group at
14465 vector boundary.
14466
14467 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
14468
14469 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
14470
14471 2016-05-22 Jakub Jelinek <jakub@redhat.com>
14472
14473 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14474 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
14475 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
14476 of 64x2.
14477
14478 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
14479 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
14480 v constraint instead of x and vinserti32x4 insn.
14481
14482 * config/i386/sse.md (i128vldq): New mode iterator.
14483 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
14484 avx512dq and avx512vl alternatives.
14485
14486 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
14487 constraint, use maybe_evex prefix instead of vex.
14488 (vec_dupv4sf): Use v constraint instead of x for output
14489 operand except for noavx alternative, use Yv constraint
14490 instead of x for input. Use maybe_evex prefix instead of vex.
14491 (*vec_dupv4si): Likewise.
14492 (*vec_dupv2di): Likewise.
14493
14494 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14495
14496 PR middle-end/40921
14497 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
14498 (linearize_expr_tree): Call try_special_add_to_ops.
14499 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
14500
14501 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14502
14503 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
14504 to computed stack_usage.
14505
14506 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14507
14508 PR target/71103
14509 * config/avr/avr.md (define_expand "mov<mode>"): If the source
14510 operand is subreg (symbol_ref) then move the symbol ref to register.
14511
14512 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
14513
14514 * tree.c (array_at_struct_end_p): Look through MEM_REF.
14515
14516 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
14517
14518 PR middle-end/71179
14519 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
14520 VECTOR type.
14521
14522 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14523
14524 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
14525 ranges by calling get_single_symbol and tidy up. Look more closely
14526 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
14527
14528 2016-05-20 Jeff Law <law@redhat.com>
14529
14530 * bitmap.c (bitmap_find_bit): Remove useless test.
14531
14532 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
14533
14534 * function.c (thread_prologue_and_epilogue_insns): Commit the
14535 insertion of the epilogue.
14536
14537 2016-05-20 Martin Jambor <mjambor@suse.cz>
14538
14539 PR tree-optimization/70884
14540 * tree-sra.c (initialize_constant_pool_replacements): Do not check
14541 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
14542 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
14543 of constant pool data as a reason for scalarization.
14544
14545 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14546
14547 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
14548 for naked functions.
14549 (thumb1_expand_prologue): Likewise.
14550
14551 2016-05-20 Nathan Sidwell <nathan@acm.org>
14552
14553 * config/nvptx/nptx.c (nvptx_option_override): Only set
14554 flag_toplevel_reorder, if not explicitly specified. Set
14555 flag_no_common, unless explicitly specified.
14556
14557 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14558
14559 * calls.c (can_implement_as_sibling_call_p): Mark param
14560 reg_parm_stack_space with ATTRIBUTE_UNUSED.
14561
14562 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
14563
14564 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
14565 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
14566 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
14567 constants.
14568 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
14569 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
14570 and CASE_CONST_ANY.
14571
14572 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
14573
14574 * config/nvptx/nvptx.md (sincossf3): New pattern.
14575
14576 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14577
14578 * calls.c (maybe_complain_about_tail_call): New function.
14579 (initialize_argument_information): Call
14580 maybe_complain_about_tail_call when clearing *may_tailcall.
14581 (can_implement_as_sibling_call_p): Call
14582 maybe_complain_about_tail_call when returning false.
14583 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
14584 ensure try_tail_call is set. Call maybe_complain_about_tail_call
14585 if tail-call optimization fails.
14586 * cfgexpand.c (expand_call_stmt): Initialize
14587 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
14588 * gimple-pretty-print.c (dump_gimple_call): Dump
14589 gimple_call_must_tail_p.
14590 * gimple.c (gimple_build_call_from_tree): Call
14591 gimple_call_set_must_tail with the value of
14592 CALL_EXPR_MUST_TAIL_CALL.
14593 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
14594 (gimple_call_set_must_tail): New function.
14595 (gimple_call_must_tail_p): New function.
14596 * print-tree.c (print_node): Update printing of TREE_STATIC
14597 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
14598 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
14599 trailing comment listing applicable flags.
14600 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
14601
14602 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14603
14604 * calls.c (expand_call): Move "Rest of purposes for tail call
14605 optimizations to fail" to...
14606 (can_implement_as_sibling_call_p): ...this new function, and
14607 split into multiple "if" statements.
14608
14609 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14610
14611 * cfgloop.h (expected_loop_iterations_unbounded,
14612 expected_loop_iterations): Unconstify.
14613 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
14614 profile with known upper bound; return 3 when profile is absent.
14615 (expected_loop_iterations): Update.
14616
14617 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14618
14619 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
14620 and get_max_loop_iterations_int.
14621
14622 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14623
14624 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
14625 realistic upper bounds here.
14626
14627 2016-05-20 Jakub Jelinek <jakub@redhat.com>
14628
14629 PR c++/71210
14630 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
14631 calls if the LHS is variable length or has addressable type.
14632 If targets[0]->decl is a noreturn call with void return type and
14633 zero arguments, adjust fntype and remove lhs in that case.
14634
14635 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
14636
14637 PR tree-optimization/71079
14638 PR tree-optimization/71206
14639 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
14640
14641 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14642
14643 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
14644 (get_vec_alignment_for_array_decl): Likewise.
14645 (get_vec_alignment_for_record_decl): Likewise.
14646 (increase_alignment::execute): Move code to find alignment to
14647 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
14648 (type_align_map): New hash_map.
14649
14650 2016-05-20 Richard Guenther <rguenther@suse.de>
14651
14652 PR tree-optimization/29756
14653 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
14654 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
14655 * fold-const.c (operand_equal_p): Likewise.
14656 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
14657 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
14658 * tree-inline.c (estimate_operator_cost): Likewise.
14659 * tree-pretty-print.c (dump_generic_node): Likewise.
14660 * tree-ssa-operands.c (get_expr_operands): Likewise.
14661 * cfgexpand.c (expand_debug_expr): Likewise.
14662 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14663 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
14664 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
14665 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
14666 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
14667 (execute_update_addresses_taken): Do it.
14668
14669 2016-05-20 Richard Biener <rguenther@suse.de>
14670
14671 PR tree-optimization/71185
14672 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14673 register operations.
14674
14675 2016-05-20 Richard Biener <rguenther@suse.de>
14676
14677 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14678 gimple_seq_add_seq_without_update.
14679 (release_bb_predicate): Assert we have no operands to free.
14680 (if_convertible_loop_p_1): Calculate post dominators later.
14681 Do not free BB predicates here.
14682 (combine_blocks): Do not recompute BB predicates.
14683 (version_loop_for_if_conversion): Save BB predicates around
14684 loop versioning.
14685
14686 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14687
14688 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14689 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
14690 code. Ignore sibcalls on EDGE_IGNORE edges.
14691 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
14692 on edges for sibcalls that run without prologue. The rest of the
14693 function is combined from...
14694 (fix_fake_fallthrough_edge): ... this, and ...
14695 (try_shrink_wrapping): ... a part of this. Remove the bb_with
14696 function argument, make it a local variable.
14697
14698 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
14699
14700 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14701 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14702 for 32-bit mode and SEH for 64-bit.
14703 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14704 TARGET_64BIT_DEFAULT.
14705
14706 2016-05-19 Ryan Burn <contact@rnburn.com>
14707
14708 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14709 * gengtype.c (open_base_files): Add cilk.h to ifiles.
14710
14711 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
14712
14713 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14714 force pending loads from memory.
14715
14716 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
14717
14718 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14719 (UNSPEC_DARN_32): New unspec constant.
14720 (UNSPEC_DARN_RAW): New unspec constant.
14721 (darn_32): New instruction.
14722 (darn_raw): New instruction.
14723 (darn): New instruction.
14724 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14725 support and documentation for this macro.
14726 (BU_P9_MISC_1): New macro definition.
14727 (BU_P9_64BIT_MISC_0): New macro definition.
14728 (BU_P9_MISC_0): New macro definition.
14729 (darn_32): New builtin definition.
14730 (darn_raw): New builtin definition.
14731 (darn): New builtin definition.
14732 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14733 RS6000_BUILTIN_0 directives to surround each occurrence of
14734 #include "rs6000-builtin.def".
14735 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14736 RS6000_BTM_64BIT flags to the returned mask, depending on
14737 configuration.
14738 (def_builtin): Correct an error in the assignments made to the
14739 debugging variable attr_string.
14740 (rs6000_expand_builtin): Add support for no-operand built-in
14741 functions.
14742 (builtin_function_type): Remove fatal_error assertion that is no
14743 longer valid.
14744 (rs6000_common_init_builtins): Add support for no-operand built-in
14745 functions.
14746 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14747 definition.
14748 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14749 definition.
14750 (RS6000_BTM_64BIT): New macro definition.
14751 * doc/extend.texi: Document __builtin_darn (void),
14752 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14753 functions.
14754
14755 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
14756
14757 * tree-vect-loop.c (vect_analyze_loop_2): Use also
14758 max_loop_iterations_int.
14759
14760 2016-05-19 Marek Polacek <polacek@redhat.com>
14761
14762 PR tree-optimization/71031
14763 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14764 condition and adjust the code a bit.
14765
14766 2016-05-19 Martin Liska <mliska@suse.cz>
14767
14768 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14769 auto_vec instead of vec.
14770
14771 2016-05-19 Martin Liska <mliska@suse.cz>
14772
14773 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14774
14775 2016-05-19 Martin Liska <mliska@suse.cz>
14776
14777 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14778
14779 2016-05-19 Martin Liska <mliska@suse.cz>
14780
14781 * ipa-pure-const.c (set_function_state): Remove an existing
14782 funct_state.
14783 (remove_node_data): Do not free it as it's released
14784 in set_function_state.
14785
14786 2016-05-19 Martin Liska <mliska@suse.cz>
14787
14788 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14789 bitmap.
14790
14791 2016-05-19 Martin Liska <mliska@suse.cz>
14792
14793 * omp-simd-clone.c (simd_clone_adjust): Release vector.
14794
14795 2016-05-19 Martin Liska <mliska@suse.cz>
14796
14797 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14798 an auto_vec instead of re-creating it.
14799
14800 2016-05-19 Martin Liska <mliska@suse.cz>
14801
14802 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14803 auto_vec instead of vec.
14804
14805 2016-05-19 Martin Liska <mliska@suse.cz>
14806
14807 * lto-section-in.c (lto_get_section_data): Call
14808 lto_check_version with additional argument.
14809 * lto-streamer.c (lto_check_version): Add new argument.
14810 * lto-streamer.h (lto_check_version): Likewise.
14811
14812 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14813
14814 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14815 Don't add cost of inner memory when handling sign-extended loads.
14816
14817 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14818
14819 PR rtl-optimization/71148
14820 * cse.c (cse_main): Free dominance info.
14821 (rest_of_handle_cse): Don't free dominance info.
14822 (rest_of_handle_cse2): Likewise.
14823 (rest_of_handle_cse_after_global_opts): Likewise.
14824
14825 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14826
14827 PR target/71056
14828 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14829 NULL_TREE early if NEON is not available. Remove now redundant check
14830 in ARM_CHECK_BUILTIN_MODE.
14831
14832 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14833
14834 PR sanitizer/64354
14835 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14836 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14837 * doc/cpp.texi: Document new macros.
14838
14839 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14840
14841 PR tree-optimization/69848
14842 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14843 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14844
14845 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14846
14847 * function.c (thread_prologue_and_epilogue_insn): Move the
14848 "goto epilogue_done" one block later.
14849
14850 2016-05-19 Richard Biener <rguenther@suse.de>
14851
14852 PR tree-optimization/70729
14853 * passes.def: Move LIM pass before PRE. Remove no longer
14854 required copyprop and move first DCE out of the loop pipeline.
14855
14856 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14857
14858 PR driver/69265
14859 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14860 (OBJS-libcommon-target): ...here.
14861 * opts-common.c: Include spellcheck.h.
14862 (cmdline_handle_error): Build a vec of valid options and use it
14863 to suggest provide hints for misspelled arguments.
14864
14865 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14866
14867 PR c++/71100
14868 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14869 lhs if it has TREE_ADDRESSABLE type.
14870
14871 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14872
14873 PR target/71145
14874 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14875 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14876
14877 2016-05-18 Martin Jambor <mjambor@suse.cz>
14878
14879 PR ipa/69708
14880 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14881 input for NOP_EXPR pass-through functions.
14882 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14883 aggregate global constant VAR_DECLs in constant jump functions.
14884
14885 2016-05-18 Martin Jambor <mjambor@suse.cz>
14886
14887 PR ipa/69708
14888 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14889 from TREE_READONLY parameters.
14890
14891 2016-05-18 Martin Jambor <mjambor@suse.cz>
14892
14893 PR ipa/69708
14894 * cgraph.h (cgraph_indirect_call_info): New field
14895 guaranteed_unmodified.
14896 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14897 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14898 appropriate.
14899 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14900 pass the parameter value to ipa_find_agg_cst_for_param.
14901 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14902 guaranteed_unmodified, store AA results there instead of bailing out
14903 if present.
14904 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14905 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14906 (find_constructor_constant_at_offset): New function.
14907 (ipa_find_agg_cst_from_init): Likewise.
14908 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14909 static initializers of contants, report back through a new paameter
14910 from_global_constant if that was the case.
14911 (try_make_edge_direct_simple_call): Also pass parameter value to
14912 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14913 appropriate.
14914 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14915 (ipa_read_indirect_edge_info): Likewise.
14916 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14917 (ipa_load_from_parm_agg): Likewise.
14918
14919 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14920
14921 PR rtl-optimization/71150
14922 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14923 check.
14924
14925 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14926
14927 PR target/70915
14928 * config/rs6000/constraints.md (wE constraint): New constraint
14929 for a vector constant that can be loaded with XXSPLTIB.
14930 (wM constraint): New constraint for a vector constant of a 1's.
14931 (wS constraint): New constraint for a vector constant that can be
14932 loaded with XXSPLTIB and a vector sign extend instruction.
14933 * config/rs6000/predicates.md (xxspltib_constant_split): New
14934 predicates for wE/wS constraints.
14935 (xxspltib_constant_nosplit): Likewise.
14936 (easy_vector_constant): Add support for constants that can be
14937 loaded via XXSPLTIB.
14938 (all_ones_constant): New predicate for vector constant with all
14939 1's set.
14940 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14941 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14942 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14943 instruction and possibly with a sign extension.
14944 (output_vec_const_move): Add support for XXSPLTIB. If we are
14945 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14946 instead of XXLXOR/XXLORC.
14947 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14948 operations.
14949 (rs6000_legitimize_reload_address): Likewise.
14950 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14951 constants.
14952 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14953 combine VSX_M and VSX_M2 into one iterator.
14954 (VSX_M2): Likewise.
14955 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14956 (VSINT_842): Likewise.
14957 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14958 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14959 XXSPLTIB instruction.
14960 (xxspltib_<mode>_nosplit): Likewise.
14961 (xxspltib_<mode>_split): New insn to load up constants with
14962 XXSPLTIB and a sign extend instruction.
14963 (vsx_mov<mode>): Replace single move that handled all vector types
14964 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14965 moves (when -mvsx-timode is in effect) into the main vector
14966 moves. Eliminate separate moves for <VSr> <VSa>, where the
14967 preferred register class (<VSr>) is listed first, and the
14968 secondary register class (<VSa>) is listed second with a '?' to
14969 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14970 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14971 that if the register was involved in a slow operation, the
14972 clear/set operation does not wait for the slow operation to
14973 finish. Adjust the length attributes for 32-bit mode. Use
14974 rs6000_output_move_128bit and drop the use of the string
14975 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14976 spacing so that the alternatives and attributes don't generate
14977 long lines, and put things in columns, so that it is easier to
14978 match up the operands and attributes with the insn alternatives.
14979 (vsx_mov<mode>_64bit): Likewise.
14980 (vsx_mov<mode>_32bit): Likewise.
14981 (vsx_movti_64bit): Fold movti into normal vector moves.
14982 (vsx_movti_32bit): Likewise.
14983 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14984 splat instructions.
14985 (vsx_splat_v4si_internal): Likewise.
14986 (vsx_splat_v4sf_internal): Likewise.
14987 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14988 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14989 extend vector elements.
14990 (vsx_sign_extend_hi_<mode>): Likewise.
14991 (vsx_sign_extend_si_v2di): Likewise.
14992 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14993 declaration.
14994 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14995 constraints. Add trailing period to wL documentation.
14996
14997 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14998
14999 PR middle-end/71020
15000 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
15001 * tree-dfa.c (replace_abnormal_ssa_names): New function.
15002 * tree-call-cdce.c: Include tree-dfa.h.
15003 (can_guard_call_p): New function, extracted from...
15004 (can_use_internal_fn): ...here.
15005 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
15006 and return void.
15007 (shrink_wrap_one_built_in_call): Likewise.
15008 (use_internal_fn): Likewise.
15009 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
15010 and return void. Call replace_abnormal_ssa_names.
15011 (pass_call_cdce::execute): Check can_guard_call_p during the
15012 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
15013 will always change something.
15014
15015 2016-05-18 Martin Jambor <mjambor@suse.cz>
15016
15017 PR ipa/70646
15018 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
15019 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
15020
15021 2016-05-18 Martin Jambor <mjambor@suse.cz>
15022
15023 PR ipa/70646
15024 * ipa-inline.h (condition): New field size.
15025 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
15026 for comaprison and store it into the new condition.
15027 (evaluate_conditions_for_known_args): Use condition size to check
15028 access sizes for all but CHANGED conditions.
15029 (unmodified_parm_1): New parameter size_p, store access size into it.
15030 (unmodified_parm): Likewise.
15031 (unmodified_parm_or_parm_agg_item): Likewise.
15032 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
15033 (set_cond_stmt_execution_predicate): Extract access sizes and store
15034 them to conditions.
15035 (set_switch_stmt_execution_predicate): Likewise.
15036 (will_be_nonconstant_expr_predicate): Likewise.
15037 (will_be_nonconstant_predicate): Likewise.
15038 (inline_read_section): Stream condition size.
15039 (inline_write_summary): Likewise.
15040
15041 2016-05-18 Richard Biener <rguenther@suse.de>
15042
15043 * tree-ssa-loop-im.c (determine_max_movement): Properly add
15044 condition cost to PHI cost instead of total_cost.
15045
15046 2016-05-18 Martin Liska <mliska@suse.cz>
15047
15048 PR fortran/70856
15049 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
15050 merged variables.
15051
15052 2016-05-18 Richard Biener <rguenther@suse.de>
15053
15054 * lto-streamer.h (LTO_major_version): Bump to 6.
15055
15056 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15057
15058 * function.c (make_split_prologue_seq, make_prologue_seq,
15059 make_epilogue_seq): New functions, factored out from...
15060 (thread_prologue_and_epilogue_insns): Here.
15061
15062 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15063
15064 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15065 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
15066 of before. Add a comment.
15067
15068 2016-05-18 Bin Cheng <bin.cheng@arm.com>
15069
15070 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
15071 expression pointer, not pointer to the pointer.
15072
15073 2016-05-18 Jakub Jelinek <jakub@redhat.com>
15074
15075 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
15076 (avx2_pbroadcast<mode>): Add another alternative with v instead
15077 of x constraints in it, using <pbroadcast_evex_isa> isa.
15078 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
15079
15080 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
15081 constraint x instead of v in second alternative, add avx512bw
15082 alternative.
15083
15084 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
15085 constraint x instead of v in second alternative, add avx512bw
15086 alternative.
15087
15088 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
15089 constraint x instead of v in second alternative, add avx512bw
15090 alternative.
15091
15092 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
15093 avx512bw alternative.
15094
15095 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15096
15097 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
15098 array to 128 chars.
15099 (define_insn "*andnottf3"): Ditto.
15100 (define_insn "*<code><mode>3"/any_logic): Ditto.
15101 (define_insn "*<code>tf3"/any_logic): Ditto.
15102 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
15103 operand to block AVX-512VL insn variant emit when it is not enabled.
15104
15105 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15106
15107 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
15108 constraint fot SF mode.
15109
15110 2016-05-18 Petr Murzin <petr.murzin@intel.com>
15111 Kirill Yukhin <kirill.yukhin@intel.com>
15112
15113 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
15114 modifiers.
15115 (define_insn "rsqrt14<mode>"): Ditto.
15116 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
15117 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15118 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
15119 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15120 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
15121 Ditto.
15122 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
15123 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
15124 * config/i386/i386.c (ix86_print_operand): Expand check for size
15125 override codes for Intel syntax.
15126
15127 2016-05-18 Richard Biener <rguenther@suse.de>
15128
15129 PR tree-optimization/71168
15130 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
15131 initialization earlier.
15132
15133 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
15134
15135 * config/aarch64/aarch64-simd.md
15136 (aarch64_reduc_plus_internal<mode>): Rename to...
15137 (reduc_plus_scal): ...This, and remove previous implementation.
15138
15139 2016-05-18 Richard Biener <rguenther@suse.de>
15140
15141 * passes.def: Put late dse and cd_dce in canonical order.
15142
15143 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
15144
15145 * ipa-inline-transform.c (preserve_function_body_p): Look for
15146 first non-thunk clone.
15147 (save_function_body): Save into first non-thunk.
15148 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
15149 up call stmt id.
15150 (lto_output_node): Inline thunks don't need body in every
15151 partition.
15152 * lto-streamer-in.c: Do not fixup thunk clones.
15153 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
15154 thunks.
15155 * tree-inline.c (copy_bb): Be prepared for target node to be new after
15156 folding suceeds.
15157
15158 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15159
15160 PR middle-end/63586
15161 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
15162 (reassociate_bb): Call transform_add_to_multiply.
15163
15164 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15165
15166 * config/aarch64/aarch64.c (all_extensions): Removed unused
15167 static variable.
15168
15169 2016-05-17 Nathan Sidwell <nathan@acm.org>
15170
15171 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
15172 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
15173
15174 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
15175
15176 PR tree-optimization/54579
15177 PR middle-end/55299
15178 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
15179
15180 2016-05-17 Marek Polacek <polacek@redhat.com>
15181
15182 PR ipa/71146
15183 * tree-inline.c (expand_call_inline): Call
15184 maybe_remove_unused_call_args.
15185
15186 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
15187
15188 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
15189 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
15190 * doc/md.texi (fmin@var{m}3): Likewise.
15191
15192 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15193
15194 * match.pd (X & C): New transformation.
15195
15196 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15197
15198 * match.pd (~X & Y): New transformation.
15199
15200 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15201
15202 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
15203 information for new SSA_NAME.
15204 (simplify_conversion_using_ranges): Get range through get_range_info
15205 instead of get_value_range.
15206
15207 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15208
15209 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
15210 Remove inline assembly.
15211 (vmvn_s16): Likewise.
15212 (vmvn_s32): Likewise.
15213 (vmvn_u8): Likewise.
15214 (vmvn_u16): Likewise.
15215 (vmvn_u32): Likewise.
15216 (vmvnq_s8): Likewise.
15217 (vmvnq_s16): Likewise.
15218 (vmvnq_s32): Likewise.
15219 (vmvnq_u8): Likewise.
15220 (vmvnq_u16): Likewise.
15221 (vmvnq_u32): Likewise.
15222 (vmvn_p8): Likewise.
15223 (vmvnq_p16): Likewise.
15224
15225 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15226
15227 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
15228 Use builtin.
15229 (vmul_n_s16): Likewise.
15230 (vmul_n_s32): Likewise.
15231 (vmul_n_u16): Likewise.
15232 (vmul_n_u32): Likewise.
15233 (vmulq_n_f32): Likewise.
15234 (vmulq_n_f64): Likewise.
15235 (vmulq_n_s16): Likewise.
15236 (vmulq_n_s32): Likewise.
15237 (vmulq_n_u16): Likewise.
15238 (vmulq_n_u32): Likewise.
15239
15240 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15241
15242 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
15243 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
15244
15245 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15246
15247 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
15248 to *aarch64_fma4_elt_from_dup<mode>.
15249 (*aarch64_fnma4_elt_to_128df): Rename to
15250 *aarch64_fnma4_elt_from_dup<mode>.
15251 * config/aarch64/arm_neon.h (vfma_n_f64): New.
15252 (vfms_n_f32): Likewise.
15253 (vfms_n_f64): Likewise.
15254 (vfmsq_n_f32): Likewise.
15255 (vfmsq_n_f64): Likewise.
15256
15257 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
15258
15259 * wide-int.h: Change fixed_wide_int_storage from class to struct.
15260
15261 2016-05-17 Richard Biener <rguenther@suse.de>
15262
15263 PR tree-optimization/71132
15264 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
15265 Only add control dependences for blocks in the loop.
15266 (build_rdg): Adjust.
15267 (generate_code_for_partition): Return whether loop should
15268 be destroyed and delay that.
15269 (distribute_loop): Likewise.
15270 (pass_loop_distribution::execute): Record loops to be destroyed
15271 and perform delayed destroying of loops.
15272
15273 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15274
15275 PR target/70809
15276 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
15277
15278 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15279
15280 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
15281
15282 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
15283
15284 PR target/71114
15285 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
15286 insertion point for instructions generated by validize_mem.
15287
15288 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15289
15290 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
15291 in brackets.
15292
15293 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15294
15295 * config/aarch64/aarch64.c
15296 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
15297 rather than a macro.
15298
15299 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15300
15301 * doc/invoke.texi (AArch64 Options): Various updates.
15302
15303 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15304
15305 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
15306 into instrumentation thunks.
15307 * cif-code.def (CIF_CHKP): New.
15308
15309 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
15310
15311 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
15312
15313 2016-05-16 Martin Jambor <mjambor@suse.cz>
15314
15315 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
15316 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
15317
15318 2016-05-16 Marek Polacek <polacek@redhat.com>
15319
15320 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
15321 commentary.
15322
15323 2016-05-16 Martin Jambor <mjambor@suse.cz>
15324
15325 PR hsa/70857
15326 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
15327 the outlined kernel function.
15328
15329 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
15330
15331 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
15332 (ISA_HAS_DLSA): Ditto.
15333
15334 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15335
15336 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
15337
15338 2016-05-16 Nathan Sidwell <nathan@acm.org>
15339
15340 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
15341 (nvptx_name_replacement): Restore. Add comment.
15342 (write_fn_proto, write_fn_proto_from_insn,
15343 nvptx_output_call_insn): Restore
15344 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
15345
15346 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15347
15348 * config/aarch64/aarch64.md
15349 (add<mode>3_compareC_cconly_imm): Remove use of %w.
15350 (add<mode>3_compareC_imm): Likewise.
15351 (<optab>si3_uxtw): Split into register and immediate variants.
15352 (andsi3_compare0_uxtw): Likewise.
15353 (and<mode>3_compare0): Likewise.
15354 (and<mode>3nr_compare0): Likewise.
15355 (stack_protect_test_<mode>): Don't use %x for memory operands.
15356
15357 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15358
15359 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
15360
15361 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15362
15363 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15364 Split integer shifts into shift_reg and bfm.
15365 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15366 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15367 (ror<mode>3_insn): Likewise.
15368 (<optab>si3_insn_uxtw): Likewise.
15369 (<optab><mode>3_insn): Change to rotate_imm.
15370 (extr<mode>5_insn_alt): Likewise.
15371 (extrsi5_insn_uxtw): Likewise.
15372 (extrsi5_insn_uxtw_alt): Likewise.
15373
15374 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15375
15376 * doc/tm.texi: Regenerate.
15377 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
15378 (TARGET_INVALID_RETURN_TYPE): Remove.
15379 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
15380 TARGET_INVALID_RETURN_TYPE.
15381 * target.def (invalid_parameter_type): Remove.
15382 (invalid_return_type): Remove.
15383
15384 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15385
15386 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
15387 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
15388 calls from thunk.
15389 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
15390 gimple body.
15391 (preserve_function_body_p): No need to preserve function body
15392 * cif-codes.def (CIF_THUNK): Remove.
15393 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
15394
15395 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15396
15397 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
15398
15399 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15400
15401 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
15402 for thunks.
15403
15404 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15405
15406 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
15407 (inline_small_functions): Do not look for function symbol when
15408 resetting caches.
15409
15410 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15411
15412 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
15413 of inline thunks
15414
15415 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15416 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15417 Jiong Wang <jiong.wang@arm.com>
15418
15419 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
15420 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
15421 Define __ARM_FP16_ARGS when appropriate.
15422 * config/arm/arm.c (arm_invalid_parameter_type): Remove
15423 declaration.
15424 (arm_invalid_return_type): Likewise.
15425 (TARGET_INVALID_PARAMETER_TYPE): Remove.
15426 (TARGET_INVALID_RETURN_TYPE): Remove.
15427 (aapcs_vfp_sub_candidate): Allow HFmode.
15428 (aapcs_vfp_allocate): Add comment. Support HFmode.
15429 (aapcs_vfp_allocate_return_reg): Likewise.
15430 (struct aapcs_cp_arg_layout): Slightly reword comments for
15431 is_return_candidate and allocate_return_reg.
15432 (output_mov_vfp): Update assert.
15433 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
15434 condition.
15435 (arm_invalid_parameter_type): Remove.
15436 (amr_invalid_return_type): Remove.
15437 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
15438 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
15439 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
15440
15441 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15442
15443 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15444 * config/aarch64/arch64-protos.h
15445 (aarch64_legitimize_reload_address): Remove.
15446 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
15447 Remove.
15448
15449 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
15450
15451 * configure.ac: Add ACX_NONCANONICAL_HOST.
15452 * configure: Regenerate.
15453 * Makefile.in: Set host_noncanonical.
15454
15455 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
15456
15457 PR target/71097
15458 * config/i386/i386.md (*movtf_internal): Before register allocation,
15459 do not allow FP constants for CM_MEDIUM memory model, allow only
15460 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
15461 (*movxf_internal): Ditto.
15462 (*movdf_internal): Ditto.
15463 (*movsf_internal): Ditto.
15464
15465 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15466
15467 PR rtl-optimization/67483
15468 * combine.c (make_compound_operation): Don't call extract_left_shift
15469 with negative shift amounts.
15470
15471 2016-05-13 Jakub Jelinek <jakub@redhat.com>
15472
15473 PR bootstrap/71071
15474 * fold-const.c (fold_checksum_tree): Allow modification
15475 of TYPE_ALIAS_SET during folding.
15476
15477 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
15478 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
15479 (ix86_split_to_parts): Likewise. Fix up formatting.
15480
15481 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
15482
15483 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
15484 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
15485 printf format.
15486
15487 2016-05-13 Nathan Sidwell <nathan@acm.org>
15488
15489 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
15490 (nvptx_name_replacement): Delete.
15491 (write_fn_proto, write_fn_proto_from_insn,
15492 nvptx_output_call_insn): Remove nvptx_name_replacement call.
15493 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
15494 * langhooks.c (add_builtin_funcction_common): Call
15495 targetm.mangle_decl_assembler_name.
15496
15497 * config/nvptx/nvptx.c (write_fn_proto): Handle
15498 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
15499
15500 2016-05-13 Martin Liska <mliska@suse.cz>
15501
15502 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
15503 and PRIu64 in printf format.
15504
15505 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15506
15507 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
15508 comment.
15509
15510 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15511
15512 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15513 Change --param max-completely-peeled-times to
15514 --param max-completely-peel-times in dump file printing.
15515
15516 2016-05-13 Richard Biener <rguenther@suse.de>
15517
15518 PR tree-optimization/42587
15519 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
15520 (find_bswap_or_nop_1): Likewise.
15521 (bswap_replace): Likewise.
15522
15523 2016-05-13 Martin Liska <mliska@suse.cz>
15524
15525 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
15526 Initialize a variable with default value.
15527
15528 2016-05-13 Martin Liska <mliska@suse.cz>
15529
15530 * doc/invoke.texi: Enhance explanation of error recovery
15531 of sanitizers.
15532
15533 2016-05-13 Martin Liska <mliska@suse.cz>
15534
15535 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
15536 (struct cost_pair): Change inv_expr_id (int) to inv_expr
15537 (iv_inv_expr_ent *).
15538 (struct iv_inv_expr_ent): Comment struct fields.
15539 (sort_iv_inv_expr_ent): New function.
15540 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
15541 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
15542 a hash_map between iv_inv_expr_ent and number of usages.
15543 (niter_for_exit): Fix coding style.
15544 (tree_ssa_iv_optimize_init): Use renamed variable.
15545 (determine_base_object): Fix coding style.
15546 (alloc_iv): Likewise.
15547 (find_interesting_uses_outside): Likewise.
15548 (add_candidate_1): Likewise.
15549 (add_standard_iv_candidates): Likewise.
15550 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
15551 (prepare_decl_rtl): Fix coding style.
15552 (get_address_cost): Likewise.
15553 (get_shiftadd_cost): Likewise.
15554 (force_expr_to_var_cost): Likewise.
15555 (compare_aff_trees): Likewise.
15556 (get_expr_id): Restructure the function.
15557 (get_loop_invariant_expr_id): Renamed to
15558 get_loop_invariant_expr.
15559 (get_computation_cost_at): Replace usage of inv_expr_id with
15560 inv_expr.
15561 (get_computation_cost): Likewise.
15562 (determine_group_iv_cost_generic): Likewise.
15563 (determine_group_iv_cost_address): Likewise.
15564 (iv_period): Fix coding style.
15565 (iv_elimination_compare_lt): Likewise.
15566 (may_eliminate_iv): Likewise.
15567 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
15568 inv_expr.
15569 (determine_group_iv_costs): Dump invariant expressions.
15570 (iv_ca_recount_cost): Use the newly added hash_map.
15571 (iv_ca_set_remove_invariants): Fix coding style.
15572 (iv_ca_set_add_invariants): Fix coding style.
15573 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
15574 invariants.
15575 (iv_ca_set_cp): Likewise.
15576 (iv_ca_new): Initialize the newly added hash_map and remove
15577 initialization of fields.
15578 (iv_ca_free): Delete the hash_map.
15579 (iv_ca_dump): Dump invariant expressions.
15580 (iv_ca_extend): Fix coding style.
15581 (try_add_cand_for): Likewise.
15582 (create_new_ivs): Dump information about # of avg iterations and
15583 # of used invariant expressions.
15584 (rewrite_use_compare): Fix coding style.
15585 (free_loop_data): Set default value for max_inv_expr_id.
15586
15587 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15588
15589 * cse.c (rest_of_handle_cse): Use cleanup_cfg
15590 returned value cse_cfg_altered computation.
15591 (rest_of_handle_cse2): Likewise.
15592 (rest_of_handle_cse_after_global_opts): Likewise.
15593
15594 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15595
15596 PR target/53440
15597 * config/arm/arm.c (arm32_output_mi_thunk): New.
15598 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
15599 to split Thumb1 vs TARGET_32BIT functionality.
15600 (arm_thumb1_mi_thunk): New.
15601
15602 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15603
15604 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
15605 to true.
15606
15607 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15608
15609 PR target/71080
15610 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
15611
15612 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
15613
15614 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
15615 (expand_builtin_trap): Emit a regular call.
15616 (set_builtin_user_assembler_name): Remove obsolete cases.
15617 * dse.c (scan_insn): Adjust.
15618 * except.c: Include calls.h.
15619 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
15620 emit a regular call to setjmp.
15621 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
15622 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
15623 (emit_block_move_via_libcall): Delete.
15624 (block_move_fn): Delete.
15625 (init_block_move_fn): Likewise.
15626 (emit_block_move_libcall_fn): Likewise.
15627 (emit_block_op_via_libcall): New function.
15628 (set_storage_via_libcall): Tidy up and use memset builtin.
15629 (block_clear_fn): Delete.
15630 (init_block_clear_fn): Likewise.
15631 (clear_storage_libcall_fn): Likewise.
15632 (expand_assignment): Call emit_block_move_via_libcall.
15633 Do not include gt-expr.h.
15634 * expr.h (emit_block_op_via_libcall): Declare.
15635 (emit_block_copy_via_libcall): New inline function.
15636 (emit_block_move_via_libcall): Likewise.
15637 (emit_block_comp_via_libcall): Likewise.
15638 (block_clear_fn): Delete.
15639 (init_block_move_fn): Likewise.
15640 (init_block_clear_fn): Likewise.
15641 (emit_block_move_via_libcall): Likewise.
15642 (set_storage_via_libcall): Add default parameter value.
15643 * libfuncs.h (enum libfunc_index): Remove obsolete values.
15644 (abort_libfunc): Delete.
15645 (memcpy_libfunc): Likewise.
15646 (memmove_libfunc): Likewise.
15647 (memcmp_libfunc): Likewise.
15648 (memset_libfunc): Likewise.
15649 (setbits_libfunc): Likewise.
15650 (setjmp_libfunc): Likewise.
15651 (longjmp_libfunc): Likewise.
15652 (profile_function_entry_libfunc): Likewise.
15653 (profile_function_exit_libfunc): Likewise.
15654 (gcov_flush_libfunc): Likewise.
15655 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
15656 and DECL_VISIBILITY on the declaration.
15657 (init_optabs): Do not initialize obsolete libfuncs.
15658 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
15659 * tree-core.h (ECF_RET1): Define.
15660 (ECF_TM_PURE): Adjust.
15661 (ECF_TM_BUILTIN): Likewise.
15662 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
15663 (build_common_builtin_nodes): Initialize abort builtin.
15664 Add ECF_RET1 on memcpy, memmove and memset builtins.
15665 Pass final flags for alloca and alloca_with_align builtins.
15666 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
15667 obsolete builtins.
15668 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15669 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15670 set_storage_via_libcall and call emit_block_copy_via_libcall.
15671
15672 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
15673
15674 * config/i386/i386.md (*call_got_x32): Change operand 0 to
15675 DImode before it is passed to ix86_output_call_operand.
15676 (*call_value_got_x32): Ditto for operand 1.
15677
15678 2016-05-12 Jiong Wang <jiong.wang@arm.com>
15679
15680 PR rtl-optimization/70904
15681 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15682 reload for wide mode.
15683
15684 2016-05-12 Marek Polacek <polacek@redhat.com>
15685
15686 PR c/70756
15687 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15688 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15689 * langhooks.h (incomplete_type_error): Likewise.
15690 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
15691 parameter, pass it down to incomplete_type_error.
15692 * tree.h (size_in_bytes): New inline overload.
15693 (size_in_bytes_loc): Renamed from size_in_bytes.
15694
15695 2016-05-12 Richard Biener <rguenther@suse.de>
15696
15697 PR tree-optimization/71059
15698 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15699 nary before looking up or entering the expression into the VN
15700 hashes.
15701 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15702 Make sure to re-use NARYs without result as inserted by
15703 phi-translation.
15704
15705 2016-05-12 Richard Biener <rguenther@suse.de>
15706
15707 PR tree-optimization/71062
15708 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15709 field.
15710 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15711 vars_contains_restrict if the var is a restrict tag.
15712 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15713 do not disambiguate pointers against it.
15714 (dump_points_to_solution): Re-structure and adjust for new
15715 vars_contains_restrict flag.
15716 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15717
15718 2016-05-12 Martin Liska <mliska@suse.cz>
15719
15720 * doc/invoke.texi: Explain connection between
15721 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15722
15723 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
15724
15725 PR tree-optimization/71006
15726 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15727 consider COND_EXPR as a mask producer.
15728
15729 2016-05-12 Marek Polacek <polacek@redhat.com>
15730
15731 PR driver/71063
15732 * opts.c (common_handle_option): Detect missing argument for --help^.
15733
15734 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15735
15736 PR target/70830
15737 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15738 when popping the PC and within an interrupt handler routine.
15739 Add missing tab to output of "ldmfd".
15740 (output_return_instruction): Output LDMFD with SP update rather
15741 than POP when returning from interrupt handler.
15742
15743 2016-05-12 Jakub Jelinek <jakub@redhat.com>
15744
15745 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15746 TARGET_64BIT && TARGET_AVX512DQ.
15747 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15748 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15749 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15750 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15751 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15752 (*vec_extractv4si_zext): Add avx512dq alternative.
15753 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15754 use v instead of x constraint in other alternatives where possible.
15755
15756 * config/i386/sse.md (sse2_loadld): Use v instead of x
15757 constraint in alternatives 0,1,4.
15758
15759 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15760 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15761 v constraints instead of x and <pinsr_evex_isa> isa attribute.
15762
15763 PR target/71019
15764 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15765 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15766 is not emitted unless TARGET_AVX512BW.
15767 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15768 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15769 for the result operand.
15770
15771 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15772 constraint instead of x in avx alternatives. Use maybe_evex instead
15773 of vex prefix.
15774
15775 * config/i386/constraints.md (Yv): New constraint.
15776 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15777 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15778 * config/i386/i386.md (avx512fvecmode): New mode attr.
15779 (*pushtf): Use v constraint instead of x.
15780 (*movtf_internal): Likewise. For TARGET_AVX512VL and
15781 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15782 (*absneg<mode>2): Use Yv constraint instead of x constraint.
15783 (*absnegtf2_sse): Likewise.
15784 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15785 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15786 avx512f alternatives.
15787 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15788
15789 2016-05-12 Richard Biener <rguenther@suse.de>
15790
15791 PR tree-optimization/71060
15792 * tree-data-ref.c (initialize_data_dependence_relation): Do not
15793 require exact match of DR_BASE_OBJECT but only matching address and
15794 type.
15795
15796 2016-05-12 Richard Biener <rguenther@suse.de>
15797
15798 PR tree-optimization/70986
15799 * cfganal.c: Include cfgloop.h.
15800 (dfs_find_deadend): Prefer to take edges exiting loops.
15801
15802 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15803
15804 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15805 compile and run time.
15806
15807 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15808
15809 PR c/43651
15810 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15811
15812 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15813
15814 * config/i386/i386.c (legitimize_pic_address): Use
15815 copy_to_suggested_reg instead of gen_movsi.
15816
15817 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15818
15819 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15820 the code into quad_address_p and call it to share code with
15821 vsx_quad_dform_memory_operand.
15822 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15823 d-form support.
15824 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15825 bit instead of being a separate word. Split -mpower9-dform into
15826 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15827 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15828 for the register class supporting 128-bit quad word memory offsets.
15829 (mode_supports_vsx_dform_quad): Helper function to return if the
15830 register class uses quad word memory offsets.
15831 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15832 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15833 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15834 instructions are enabled, set up the appropriate addr_masks for
15835 128-bit types.
15836 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15837 -mpower9-dform-scalar, instead of -mpower9-dform.
15838 (rs6000_option_override_internal): Split -mpower9-dform into two
15839 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15840 -mpower9-dform switch sets or clears both. If we are not using
15841 the LRA register allocator, do not enable -mpower9-dform-vector by
15842 default. If we are using LRA, enable -mpower9-dform-vector and
15843 -mvsx-timode if it is appropriate. Issue a warning if either
15844 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15845 enabling LRA.
15846 (quad_address_offset_p): New helper function to return if the
15847 offset is legal for quad word memory instructions.
15848 (quad_address_p): New function to determin if GPR or vector
15849 register quad word memory addresses are legal.
15850 (mem_operand_gpr): Validate quad word address offsets.
15851 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15852 d-form (register + offset) instructions.
15853 (offsettable_ok_by_alignment): Likewise.
15854 (rs6000_legitimate_offset_address_p): Likewise.
15855 (legitimate_lo_sum_address_p): Likewise.
15856 (rs6000_legitimize_address): Likewise.
15857 (rs6000_legitimize_reload_address): Add more debug statements for
15858 -mdebug=addr.
15859 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15860 d-form instructions.
15861 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15862 d-form instructions. Distinguish different cases in debug
15863 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15864 d-form instructions.
15865 (rs6000_preferred_reload_class): Likewise.
15866 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15867 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15868 of the ISA 2.06 indexed memory instructions.
15869 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15870 use them to save/restore the saved vector registers instead of
15871 using Altivec instructions.
15872 (rs6000_emit_epilogue): Likewise.
15873 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15874 (rs6000_opt_masks): Split -mpower9-dform into
15875 -mpower9-dform-scalar and -mpower9-dform-vector.
15876 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15877 was not selected.
15878 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15879 ISA 3.0 vector indexed memory instructions, and fold the code into
15880 the normal mov<mode> patterns.
15881 (p9_vecstore_<mode>): Likewise.
15882 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15883 instructions.
15884 (vsx_movti_64bit): Likewise.
15885 (vsx_movti_32bit): Likewise.
15886 * config/rs6000/constraints.md (wO constraint): New constraint for
15887 ISA 3.0 vector d-form support.
15888 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15889 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15890 include -mpower9-dform-vector until we switch over to LRA.
15891 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15892 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15893 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15894 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15895 for -mpower9-dform and -mlra.
15896 * doc/md.texi (wO constraint): Document wO constraint.
15897
15898 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15899
15900 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15901 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15902 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15903 Move handling of non-insn arguments inline into the sole user:
15904 (output_trans_func): ...here.
15905 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15906 in emitted function prototype.
15907 (output_internal_insn_latency_func): Ditto. Simplify.
15908 (output_internal_maximal_insn_latency_func): Ditto. Delete
15909 always-unused argument.
15910 (output_insn_latency_func): Ditto.
15911 (output_maximal_insn_latency_func): Ditto.
15912
15913 2016-05-11 Richard Biener <rguenther@suse.de>
15914
15915 PR tree-optimization/71055
15916 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15917 sth with precision not equal to access size verify we don't chop
15918 off bits.
15919
15920 2016-05-11 Richard Biener <rguenther@suse.de>
15921
15922 PR debug/71057
15923 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15924 (dwarf2out_finish): Move retry_incomplete_types call ...
15925 (dwarf2out_early_finish): ... here.
15926
15927 2016-05-11 Richard Biener <rguenther@suse.de>
15928
15929 PR middle-end/71002
15930 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15931 if the langhook insists on it.
15932 * fold-const.c (make_bit_field_ref): Add arg for the original
15933 reference and preserve its alias-set.
15934 (decode_field_reference): Take exp by reference and adjust it
15935 to the original memory reference.
15936 (optimize_bit_field_compare): Adjust callers.
15937 (fold_truth_andor_1): Likewise.
15938 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15939
15940 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15941
15942 PR middle-end/70807
15943 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15944 * cfgrtl.c (delete_insn_and_edges): Likewise.
15945 * config/i386/i386.c (convert_scalars_to_vector): Remove
15946 redundant code.
15947 * cse.c (cse_insn): Compute cse_cfg_altered.
15948 (delete_trivially_dead_insns): Likewise.
15949 (cse_cc_succs): Likewise.
15950 (rest_of_handle_cse): Free dominance info if required.
15951 (rest_of_handle_cse2): Likewise.
15952 (rest_of_handle_cse_after_global_opts): Likewise.
15953
15954 2016-05-11 Alan Modra <amodra@gmail.com>
15955
15956 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15957 abi_v4_pass_in_fpr): New functions.
15958 (rs6000_function_arg_boundary): Exclude complex IBM long double
15959 from 64-bit alignment when ABI_V4.
15960 (rs6000_function_arg, rs6000_function_arg_advance_1,
15961 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15962
15963 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15964
15965 PR rtl-optimization/71028
15966 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15967 jump with just a return in the fallthrough block if the branch
15968 block contains just a return as well.
15969
15970 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15971
15972 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15973 * match.pd ((X & Y) ^ Y): ... this.
15974 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15975 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15976
15977 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15978
15979 * read-md.c (require_char_ws): New function.
15980 (read_string): Simplify using require_char_ws.
15981 (handle_constants): Likewise.
15982 (handle_enum): Likewise.
15983 (handle_file): Likewise.
15984 * read-md.h (require_char_ws): New declaration.
15985 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15986 (read_mapping): Likewise.
15987 (read_rtx_code): Likewise.
15988 (read_nested_rtx): Likewise.
15989
15990 2016-05-10 James Norris <jnorris@codesourcery.com>
15991
15992 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15993 if offloading is enabled and -fopenacc or -fopenmp is specified.
15994 (CRTOFFLOADEND): Likewise.
15995 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15996 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15997
15998 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15999
16000 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
16001 gotoff_operand code paths. Use copy_to_suggested_regs and
16002 expand_simple_binop where appropriate. Cleanup.
16003
16004 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
16005
16006 PR target/70799
16007 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
16008 integer constants.
16009 (dimode_scalar_chain::vector_const_cost): New.
16010 (dimode_scalar_chain::compute_convert_gain): Handle constants.
16011 (dimode_scalar_chain::convert_op): Likewise.
16012 (dimode_scalar_chain::convert_insn): Likewise.
16013
16014 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16015
16016 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
16017 unary operation, not a binary one.
16018
16019 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
16020
16021 PR middle-end/70877
16022 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
16023 calls with type casted fndecl.
16024
16025 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
16026
16027 PR tree-optimization/70786
16028 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
16029 * calls.c (initialize_argument_information): Bind bounds
16030 with corresponding args passed by reference.
16031
16032 2016-05-10 Jakub Jelinek <jakub@redhat.com>
16033
16034 PR target/70927
16035 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
16036 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
16037 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
16038 accordingly.
16039
16040 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16041
16042 PR target/70963
16043 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
16044 code for a zero scale factor.
16045 (vsx_xvcvdpuxds_scale): Likewise.
16046
16047 2016-05-10 David Malcolm <dmalcolm@redhat.com>
16048
16049 * diagnostic-show-locus.c (layout::layout): Call show_ruler
16050 if show_ruler_p was set on the context.
16051 (layout::show_ruler): New method.
16052 * diagnostic.h (struct diagnostic_context): Add field
16053 "show_ruler_p".
16054
16055 2016-05-10 Richard Biener <rguenther@suse.de>
16056
16057 PR tree-optimization/71039
16058 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
16059 (chk_uses): New function.
16060 (propagate_with_phi): Verify we can safely replicate the lhs of an
16061 aggregate assignment on all incoming edges.
16062
16063 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
16064
16065 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
16066 Forward declare.
16067 (rx_atomic_sequence): New class.
16068 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
16069 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
16070 non-inline.
16071 (rx_atomic_sequence::rx_atomic_sequence,
16072 rx_atomic_sequence::~rx_atomic_sequence): New functions.
16073 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
16074 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
16075 CTRLREG_INTB): New constants.
16076 (FETCHOP): New code iterator.
16077 (fethcop_name, fetchop_name2): New iterator code attributes.
16078 (QIHI): New mode iterator.
16079 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
16080 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
16081 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
16082
16083 2016-05-10 Martin Liska <mliska@suse.cz>
16084
16085 * tree-inline.c (remap_dependence_clique): Do not remap
16086 debugging statements.
16087
16088 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16089
16090 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
16091 ("*fixuns_truncdfdi2_z13")
16092 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
16093 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
16094 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
16095
16096 2016-05-10 Richard Biener <rguenther@suse.de>
16097
16098 PR tree-optimization/70497
16099 PR tree-optimization/28367
16100 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
16101 split out from ...
16102 (visit_reference_op_load): ... here.
16103 (vn_reference_lookup_3): Use it to handle subreg-like accesses
16104 with simplified BIT_FIELD_REFs.
16105 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
16106 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
16107 correctly.
16108
16109 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16110
16111 * dwarf2out.c (add_abstract_origin_attribute): Adjust
16112 documentation comment. For BLOCK nodes, add a
16113 DW_AT_abstract_origin attribute that points to the DIE generated
16114 for the origin BLOCK.
16115 (gen_lexical_block_die): Call add_abstract_origin_attribute for
16116 blocks from inlined functions.
16117
16118 2016-05-10 Alan Modra <amodra@gmail.com>
16119
16120 PR target/70947
16121 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
16122 regrename modifying insns saving lr before __morestack call.
16123 * config/rs6000/rs6000.md (split_stack_return): Similarly for
16124 insns restoring lr after __morestack call.
16125
16126 2016-05-09 Jakub Jelinek <jakub@redhat.com>
16127
16128 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
16129 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
16130 expanders.
16131 * config/i386/sse.md (vec_interleave_high<mode>,
16132 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
16133 <avx512>_vpermt2var<mode>3_maskz): Likewise.
16134
16135 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16136
16137 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
16138 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
16139 parallel reassociation for power8 and forward.
16140
16141 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
16142
16143 * config/i386/i386.md (absneg splitters with general regs): Use
16144 general_reg_operand predicate.
16145 (btsq peephole2): Use x86_64_immediate_operand to check if new
16146 value is suitable for immediate operand. Generate emitted insn
16147 using RTL expressions.
16148 (btcq peephole2): Ditto.
16149 (btrq peephole2): Ditto. Generate correct immediate operand
16150 for AND masking.
16151
16152 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16153
16154 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
16155 bitpos.
16156
16157 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16158
16159 * tree-affine.c (wide_int_constant_multiple_p): Add missing
16160 pointer dereference.
16161
16162 2016-05-09 Richard Biener <rguenther@suse.de>
16163
16164 PR tree-optimization/70985
16165 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
16166 op0 isn't a gimple register.
16167
16168 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
16169
16170 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
16171 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
16172 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
16173 (i6400_fpu_mult): New cpu units.
16174 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
16175 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
16176 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
16177 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
16178 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
16179 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
16180 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
16181 (i6400_msa_long_float4, i6400_msa_long_float5)
16182 (i6400_msa_long_float8, i6400_msa_fdiv_df)
16183 (i6400_msa_fdiv_sf): New reservations.
16184 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
16185 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
16186 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
16187 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
16188 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
16189 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
16190 (msa_short_cmp, msa_short_float2, msa_short_logic3)
16191 (msa_short_store4, msa_long_load, msa_short_store)
16192 (msa_long_logic, msa_long_float2, msa_long_float4)
16193 (msa_long_float5, msa_long_float8, msa_long_mult)
16194 (msa_long_fdiv, msa_long_div): New reservations.
16195
16196 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
16197 Sameera Deshpande <sameera.deshpande@imgtec.com>
16198 Matthew Fortune <matthew.fortune@imgtec.com>
16199 Graham Stott <graham.stott@imgtec.com>
16200 Chao-ying Fu <chao-ying.fu@imgtec.com>
16201
16202 * config.gcc: Add MSA header file for mips*-*-* target.
16203 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
16204 (Ubv8i, Urv8): New constraints.
16205 * config/mips/mips-ftypes.def: Add function types for MSA
16206 builtins.
16207 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
16208 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
16209 * config/mips/mips-msa.md: New file.
16210 * config/mips/mips-protos.h
16211 (mips_split_128bit_const_insns): New prototype.
16212 (mips_msa_idiv_insns): Likewise.
16213 (mips_split_128bit_move): Likewise.
16214 (mips_split_128bit_move_p): Likewise.
16215 (mips_split_msa_copy_d): Likewise.
16216 (mips_split_msa_insert_d): Likewise.
16217 (mips_split_msa_fill_d): Likewise.
16218 (mips_expand_msa_branch): Likewise.
16219 (mips_const_vector_same_val_p): Likewise.
16220 (mips_const_vector_same_bytes_p): Likewise.
16221 (mips_const_vector_same_int_p): Likewise.
16222 (mips_const_vector_shuffle_set_p): Likewise.
16223 (mips_const_vector_bitimm_set_p): Likewise.
16224 (mips_const_vector_bitimm_clr_p): Likewise.
16225 (mips_msa_vec_parallel_const_half): Likewise.
16226 (mips_msa_output_division): Likewise.
16227 (mips_ldst_scaled_shift): Likewise.
16228 (mips_expand_vec_cond_expr): Likewise.
16229 * config/mips/mips.c (enum mips_builtin_type): Add
16230 MIPS_BUILTIN_MSA_TEST_BRANCH.
16231 (mips_gen_const_int_vector_shuffle): New prototype.
16232 (mips_const_vector_bitimm_set_p): New function.
16233 (mips_const_vector_bitimm_clr_p): Likewise.
16234 (mips_const_vector_same_val_p): Likewise.
16235 (mips_const_vector_same_bytes_p): Likewise.
16236 (mips_const_vector_same_int_p): Likewise.
16237 (mips_const_vector_shuffle_set_p): Likewise.
16238 (mips_symbol_insns): Forbid loading symbols via immediate for
16239 MSA.
16240 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
16241 stores.
16242 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
16243 MSA.
16244 (mips_lx_address_p): Add support load indexed address for MSA.
16245 (mips_address_insns): Add calculation of instructions needed for
16246 stores and loads for MSA.
16247 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
16248 CONST_VECTOR for MSA and let it fall through.
16249 (mips_ldst_scaled_shift): New function.
16250 (mips_subword_at_byte): Likewise.
16251 (mips_msa_idiv_insns): Likewise.
16252 (mips_legitimize_move): Validate MSA moves.
16253 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
16254 calculation of costs for MSA division.
16255 (mips_split_move_p): Check if MSA moves need splitting.
16256 (mips_split_move): Split MSA moves if necessary.
16257 (mips_split_128bit_move_p): New function.
16258 (mips_split_128bit_move): Likewise.
16259 (mips_split_msa_copy_d): Likewise.
16260 (mips_split_msa_insert_d): Likewise.
16261 (mips_split_msa_fill_d): Likewise.
16262 (mips_output_move): Handle MSA moves.
16263 (mips_expand_msa_branch): New function.
16264 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
16265 Reinstate 'y' modifier.
16266 (mips_file_start): Add MSA .gnu_attribute.
16267 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
16268 FPRs.
16269 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
16270 (mips_class_max_nregs): Add register size for MSA supported mode.
16271 (mips_cannot_change_mode_class): Allow conversion between MSA
16272 vector modes and TImode.
16273 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
16274 instruction.
16275 (mips_secondary_reload_class): Force MSA loads/stores via memory.
16276 (mips_preferred_simd_mode): Add preffered modes for MSA.
16277 (mips_vector_mode_supported_p): Add MSA supported modes.
16278 (mips_autovectorize_vector_sizes): New function.
16279 (mips_msa_output_division): Likewise.
16280 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
16281 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
16282 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
16283 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
16284 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
16285 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
16286 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
16287 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
16288 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
16289 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
16290 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
16291 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
16292 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
16293 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
16294 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
16295 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
16296 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
16297 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
16298 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
16299 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
16300 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
16301 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
16302 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
16303 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
16304 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
16305 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
16306 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
16307 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
16308 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
16309 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
16310 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
16311 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
16312 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
16313 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
16314 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
16315 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
16316 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
16317 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
16318 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
16319 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
16320 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
16321 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
16322 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
16323 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
16324 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16325 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16326 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16327 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16328 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16329 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16330 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16331 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16332 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
16333 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
16334 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
16335 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
16336 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
16337 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
16338 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
16339 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
16340 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
16341 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
16342 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
16343 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
16344 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
16345 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
16346 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
16347 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
16348 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
16349 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
16350 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
16351 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
16352 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
16353 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
16354 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
16355 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
16356 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
16357 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
16358 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
16359 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
16360 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
16361 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
16362 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
16363 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
16364 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
16365 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
16366 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
16367 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
16368 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
16369 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
16370 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
16371 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
16372 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
16373 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
16374 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
16375 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
16376 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
16377 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
16378 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
16379 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
16380 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
16381 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
16382 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
16383 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
16384 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
16385 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
16386 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
16387 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
16388 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
16389 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
16390 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
16391 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
16392 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
16393 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
16394 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
16395 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
16396 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
16397 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
16398 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
16399 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
16400 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
16401 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
16402 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
16403 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
16404 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
16405 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
16406 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
16407 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
16408 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
16409 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
16410 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
16411 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
16412 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
16413 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
16414 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
16415 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
16416 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
16417 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
16418 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
16419 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
16420 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
16421 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
16422 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
16423 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
16424 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
16425 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
16426 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
16427 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
16428 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
16429 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
16430 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
16431 move_v builtins.
16432 (mips_get_builtin_decl_index): New array.
16433 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
16434 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
16435 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
16436 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
16437 (mips_init_builtins): Initialize mips_get_builtin_decl_index
16438 array.
16439 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
16440 hook.
16441 (mips_expand_builtin_insn): Prepare operands for
16442 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
16443 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
16444 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
16445 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
16446 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
16447 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
16448 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
16449 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
16450 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
16451 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
16452 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
16453 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
16454 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
16455 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
16456 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
16457 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
16458 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
16459 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
16460 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
16461 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
16462 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
16463 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
16464 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
16465 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
16466 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
16467 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
16468 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
16469 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
16470 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
16471 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
16472 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
16473 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
16474 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
16475 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
16476 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
16477 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
16478 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
16479 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
16480 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
16481 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
16482 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
16483 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
16484 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
16485 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
16486 These are set implicitly and an error is reported if overridden.
16487 (mips_expand_builtin_msa_test_branch): New function.
16488 (mips_expand_msa_shuffle): Likewise.
16489 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
16490 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
16491 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
16492 (mips_expand_vec_unpack): Add support for MSA.
16493 (mips_expand_vector_init): Likewise.
16494 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
16495 instead of const0_rtx.
16496 (mips_msa_vec_parallel_const_half): New function.
16497 (mips_gen_const_int_vector): Likewise.
16498 (mips_gen_const_int_vector_shuffle): Likewise.
16499 (mips_expand_msa_cmp): Likewise.
16500 (mips_expand_vec_cond_expr): Likewise.
16501 * config/mips/mips.h
16502 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
16503 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
16504 specified.
16505 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
16506 (ISA_HAS_MSA): New macro.
16507 (UNITS_PER_MSA_REG): Likewise.
16508 (BITS_PER_MSA_REG): Likewise.
16509 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
16510 (MSA_REG_FIRST): New macro.
16511 (MSA_REG_LAST): Likewise.
16512 (MSA_REG_NUM): Likewise.
16513 (MSA_REG_P): Likewise.
16514 (MSA_REG_RTX_P): Likewise.
16515 (MSA_SUPPORTED_MODE_P): Likewise.
16516 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
16517 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
16518 * config/mips/mips.md: Include mips-msa.md.
16519 (alu_type): Add simd_add.
16520 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
16521 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
16522 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
16523 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
16524 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
16525 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
16526 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
16527 simd_move, simd_load, simd_store. Choose "multi" for moves
16528 for "qword_mode".
16529 (qword_mode): New attribute.
16530 (insn_count): Add instruction count for quad moves.
16531 Increase the count for MIPS SIMD division.
16532 (UNITMODE): Add UNITMODEs for vector types.
16533 (addsub): New code iterator.
16534 * config/mips/mips.opt (mmsa): New option.
16535 * config/mips/msa.h: New file.
16536 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
16537 specified.
16538 * config/mips/mti-linux.h: Likewise.
16539 * config/mips/predicates.md
16540 (const_msa_branch_operand): New constraint.
16541 (const_uimm3_operand): Likewise.
16542 (const_uimm4_operand): Likewise.
16543 (const_uimm5_operand): Likewise.
16544 (const_uimm8_operand): Likewise.
16545 (const_imm5_operand): Likewise.
16546 (aq10b_operand): Likewise.
16547 (aq10h_operand): Likewise.
16548 (aq10w_operand): Likewise.
16549 (aq10d_operand): Likewise.
16550 (const_m1_operand): Likewise.
16551 (reg_or_m1_operand): Likewise.
16552 (const_exp_2_operand): Likewise.
16553 (const_exp_4_operand): Likewise.
16554 (const_exp_8_operand): Likewise.
16555 (const_exp_16_operand): Likewise.
16556 (const_vector_same_val_operand): Likewise.
16557 (const_vector_same_simm5_operand): Likewise.
16558 (const_vector_same_uimm5_operand): Likewise.
16559 (const_vector_same_uimm6_operand): Likewise.
16560 (const_vector_same_uimm8_operand): Likewise.
16561 (par_const_vector_shf_set_operand): Likewise.
16562 (reg_or_vector_same_val_operand): Likewise.
16563 (reg_or_vector_same_simm5_operand): Likewise.
16564 (reg_or_vector_same_uimm6_operand): Likewise.
16565 * doc/extend.texi (MIPS SIMD Architecture Functions): New
16566 section.
16567 * doc/invoke.texi (-mmsa): Document new option.
16568
16569 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16570
16571 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
16572 * configure: Regenerate.
16573 * config.in: Regenerate.
16574 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
16575 on -fvtable-verify.
16576 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
16577 (ENDFILE_VTV_SPEC): Define.
16578
16579 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
16580
16581 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
16582 registers in all interrupt handlers if necessary.
16583 (rl78_option_override): Add warning.
16584 (MUST_SAVE_MDUC_REGISTERS): New macro.
16585 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
16586 * config/rl78/rl78.c (check_mduc_usage): New function.
16587 (mduc_regs): New structure to hold MDUC register data.
16588 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
16589 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
16590 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
16591 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
16592 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
16593 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
16594
16595 2016-05-09 Bin Cheng <bin.cheng@arm.com>
16596
16597 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
16598 (tree-ssa-loop-niter.h): Ditto.
16599 (idx_within_array_bound, ref_within_array_bound): New functions.
16600 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
16601 Factor out check on writable base object to ...
16602 (base_object_writable): ... here.
16603
16604 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16605
16606 * config/arm/arm.md (probe_stack): Add modes to set source
16607 and destination.
16608
16609 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
16610
16611 * regrename.c (base_reg_class_for_rename): New static function.
16612 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
16613
16614 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
16615
16616 * cgraph.c (thunk_adjust): Export.
16617 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
16618 * cgraphunit.c (thunk_adjust): Export.
16619 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
16620 thunks.
16621 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
16622 inlinable.
16623 * tree-inline.c (expand_call_inline): Expand thunks inline.
16624
16625 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
16626
16627 PR target/70998
16628 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
16629 (*sse2_vd_cvtss2sd): Ditto.
16630 * config/i386/i386.md
16631 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
16632 Generate *sse2_vd_cvtsd2ss pattern.
16633 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
16634 Generate *sse2_vd_cvtss2sd pattern.
16635
16636 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16637
16638 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
16639 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
16640 users.
16641
16642 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16643
16644 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
16645 * config/sh/sh.c: Define and declare variables on first use throughout
16646 the file.
16647 (current_function_interrupt): Change to bool type.
16648 (frame_insn): Rename to emit_frame_insn and update users.
16649 (push_regs): Use bool for 'interrupt_handler' argument.
16650 (save_schedule_s): Remove.
16651 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
16652 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
16653 targetm.asm_out.unaligned_op.di.
16654 (gen_far_branch): Remove redundant forward declaration.
16655 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
16656 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
16657 (sh_set_return_address, sh_function_ok_for_sibcall,
16658 scavenge_reg): Update comments.
16659 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
16660 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
16661 (sh_attr_renesas_p): Remove unnecessary parentheses.
16662 (branch_dest): Simplify.
16663 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
16664 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
16665 (CUMULATIVE_ARGS): Change macro to typedef.
16666 (current_function_interrupt): Change to bool type.
16667 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16668 Surround with __cplusplus ifdef.
16669 (sh_compare_op0, sh_compare_op1): Remove.
16670 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16671
16672 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
16673
16674 * config/arm/arm.md: (arch): Add neon.
16675 (arch_enabled): Return yes for arch neon when TARGET_NEON.
16676 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
16677 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
16678 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
16679 attributes for alt renumbering. Mark alt 3 as non-predicable.
16680 (thumb2_movdf_vfp): Likewise.
16681
16682 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
16683
16684 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16685 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16686 (*andqi_1): Add preferred_for_speed attribute to disparage
16687 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16688 (*<code>qi_1): Ditto.
16689 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16690 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16691 (*ashlqi3_1): Ditto.
16692 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16693 Add preferred_for_size attribute to disparage alternative 0 and
16694 preferred_for_speed attribute to disparage alternative 1 for
16695 TARGET_PARTIAL_REG_STALL targets.
16696
16697 2016-05-07 Tom de Vries <tom@codesourcery.com>
16698
16699 PR tree-optimization/70956
16700 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16701 def.
16702
16703 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16704
16705 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16706 * config/sh/sh.c (sh_cbranch_distance): Implement it.
16707 * config/sh/sh.md (branch_zero): Remove define_attr.
16708 (define_delay): Disable delay slot if branch distance is one insn.
16709
16710 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16711
16712 * config/i386/i386.md (LEAMODE): New mode attribute.
16713 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16714 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16715 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
16716 operand 2 predicate.
16717 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16718 (*lea<mode>_general_3): Ditto.
16719 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16720
16721 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16722
16723 * genmddump.c (main): Convert argv from char ** to const char **.
16724
16725 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16726
16727 * coretypes.h (OVERRIDE): New macro.
16728 (FINAL): New macro.
16729
16730 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
16731
16732 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16733 allow coalescing if the types are compatible.
16734
16735 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16736
16737 * pass_manager.h (pass_manager::register_pass_name): New method.
16738 (pass_manager::get_pass_by_name): New method.
16739 (pass_manager::create_pass_tab): New method.
16740 (pass_manager::m_name_to_pass_map): New field.
16741 * passes.c (name_to_pass_map): Delete global in favor of field
16742 "m_name_to_pass_map" of pass_manager.
16743 (register_pass_name): Rename from a function to...
16744 (pass_manager::register_pass_name): ...this method, updating
16745 for renaming of global "name_to_pass_map" to field
16746 "m_name_to_pass_map".
16747 (create_pass_tab): Rename from a function to...
16748 (pass_manager::create_pass_tab): ...this method, updating
16749 for renaming of global "name_to_pass_map" to field.
16750 (get_pass_by_name): Rename from a function to...
16751 (pass_manager::get_pass_by_name): ...this method.
16752 (enable_disable_pass): Convert use of get_pass_by_name to
16753 a method call, locating the pass_manager singleton.
16754
16755 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16756
16757 * genattr-common.c (main): Convert argv from char ** to const char **.
16758 * genattr.c (main): Likewise.
16759 * genattrtab.c (main): Likewise.
16760 * genautomata.c (initiate_automaton_gen): Likewise.
16761 (main): Likewise.
16762 * gencodes.c (main): Likewise.
16763 * genconditions.c (main): Likewise.
16764 * genconfig.c (main): Likewise.
16765 * genconstants.c (main): Likewise.
16766 * genemit.c (main): Likewise.
16767 * genenums.c (main): Likewise.
16768 * genextract.c (main): Likewise.
16769 * genflags.c (main): Likewise.
16770 * genmddeps.c (main): Likewise.
16771 * genopinit.c (main): Likewise.
16772 * genoutput.c (main): Likewise.
16773 * genpeep.c (main): Likewise.
16774 * genpreds.c (main): Likewise.
16775 * genrecog.c (main): Likewise.
16776 * gensupport.c (init_rtx_reader_args_cb): Likewise.
16777 (init_rtx_reader_args): Likewise.
16778 * gensupport.h (init_rtx_reader_args_cb): Likewise.
16779 (init_rtx_reader_args): Likewise.
16780 * gentarget-def.c (main): Likewise.
16781 * read-md.c (read_md_files): Likewise.
16782 * read-md.h (read_md_files): Likewise.
16783
16784 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16785
16786 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16787 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16788 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16789 Remove unused predicate.
16790 (register_and_not_fp_reg_operand): Ditto.
16791
16792 2016-05-06 Martin Liska <mliska@suse.cz>
16793
16794 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16795 instead of vec as the vector is local to the function.
16796
16797 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16798
16799 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16800 avx512bw alternative.
16801
16802 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16803 before the ashr<mode>3 pattern.
16804
16805 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16806 v instead of x in vex or maybe_vex alternatives, use
16807 maybe_evex instead of vex in prefix.
16808
16809 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16810 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16811 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16812 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16813 in prefix.
16814
16815 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16816 v instead of x in vex or maybe_vex alternatives, use
16817 maybe_evex instead of vex in prefix.
16818
16819 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16820 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16821 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16822 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16823 alternatives, use maybe_evex instead of vex in prefix.
16824
16825 * config/i386/sse.md (vec_interleave_lowv4sf,
16826 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16827 v instead of x in vex or maybe_vex alternatives, use
16828 maybe_evex instead of vex in prefix.
16829
16830 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16831 v instead of x in vex or maybe_vex alternatives, use
16832 maybe_evex instead of vex in prefix.
16833
16834 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16835 v constraint instead of x.
16836
16837 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16838
16839 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16840 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16841 equality first.
16842
16843 2016-05-06 Richard Biener <rguenther@suse.de>
16844
16845 PR tree-optimization/70948
16846 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16847 Properly clobber all fields of va_list for __builtin_va_start.
16848
16849 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16850
16851 PR debug/70935
16852 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16853 loop latch destination.
16854
16855 2016-05-06 Martin Liska <mliska@suse.cz>
16856
16857 * tree-ssa-uninit.c: Apply manual changes
16858 to the GNU coding style.
16859 (prune_uninit_phi_opnds): Rename from
16860 prune_uninit_phi_opnds_in_unrealizable_paths.
16861
16862 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16863
16864 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16865 mspace): Remove deprecated options.
16866 * doc/invoke.texi (SH options): Remove -mspace.
16867
16868 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16869
16870 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16871
16872 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16873
16874 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16875 corresponding combine split pattern.
16876
16877 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16878
16879 PR target/58219
16880 * config/sh/predicates.md (long_displacement_mem_operand): New.
16881 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16882 Add movi20, movi20s alternatives. Adjust length attribute for
16883 alternatives.
16884 (movsi_ie): Allow for any FPU. Adjust length attribute for
16885 alternatives.
16886 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16887 attribute for alternatives.
16888 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16889 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16890 length attribute for alternatives.
16891
16892 2016-05-06 Richard Biener <rguenther@suse.de>
16893
16894 PR tree-optimization/70960
16895 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16896
16897 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16898
16899 PR target/52933
16900 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16901 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16902
16903 2016-05-06 Marek Polacek <polacek@redhat.com>
16904
16905 PR sanitizer/70875
16906 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16907
16908 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16909
16910 PR target/54089
16911 * config/sh/sh.md (*rotcr): Add another variant.
16912
16913 2016-05-06 Richard Biener <rguenther@suse.de>
16914
16915 PR middle-end/70931
16916 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16917
16918 2016-05-06 Richard Biener <rguenther@suse.de>
16919
16920 PR middle-end/70941
16921 * fold-const.c (split_tree): Always convert to the original type
16922 before negating.
16923
16924 2016-05-06 Richard Biener <rguenther@suse.de>
16925
16926 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16927 (fwprop_addr): Likewise.
16928
16929 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16930
16931 PR target/70873
16932 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16933 New prototype.
16934 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16935 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16936 the splitter condition.
16937 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16938 the splitter condition.
16939 (FP float_extend load splitter): Ditto.
16940
16941 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16942
16943 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16944 to REGNO in all peephole2 patterns.
16945 (post-reload splitters): Change true_regnum to REGNO in
16946 post-reload splitters.
16947 (zero_extend splitters): Use general_reg_operand and
16948 nonimmediate_gr_operand predicates.
16949
16950 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16951
16952 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16953 v constraint instead of x.
16954
16955 2016-05-05 Alan Modra <amodra@gmail.com>
16956
16957 PR target/68662
16958 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16959 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16960 TARGET_NO_FP_IN_TOC for -mrelocatable.
16961 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16962 TARGET_RELOCATABLE test.
16963 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16964 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16965 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16966 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16967 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16968 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16969 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16970 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16971 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16972 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16973 Likewise.
16974 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16975 (rs6000_stack_info): Likewise.
16976 (rs6000_elf_asm_out_constructor): Likewise.
16977 (rs6000_elf_asm_out_destructor): Likewise.
16978 (rs6000_elf_declare_function_name): Likewise.
16979 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16980 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16981 Don't define.
16982
16983 2016-05-05 Alan Modra <amodra@gmail.com>
16984
16985 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16986
16987 2016-05-05 Alan Modra <amodra@gmail.com>
16988
16989 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16990 out-of-line gpr restore for one or two regs if that would add
16991 a save of lr.
16992
16993 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16994
16995 PR target/70873
16996 * config/i386/i386.md
16997 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16998 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16999 as operand 0 predicate.
17000 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
17001 Ditto.
17002 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
17003 Ditto. Emit the pattern using RTX.
17004
17005 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
17006 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
17007 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
17008 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
17009 Ditto.
17010 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
17011 sse_reg_operand as operand 0 predicate.
17012
17013 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
17014 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
17015 instead of gen_rtx_REG.
17016 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
17017 Ditto.
17018
17019 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17020
17021 * function.c (emit_use_return_register_into_block): Delete.
17022 (gen_return_pattern): Delete.
17023 (emit_return_into_block): Delete.
17024 (active_insn_between): Delete.
17025 (convert_jumps_to_returns): Delete.
17026 (emit_return_for_exit): Delete.
17027 (thread_prologue_and_epilogue_insns): Delete all code dealing with
17028 simple_return for shrink-wrapped blocks.
17029 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
17030 end of blocks that need one.
17031 (get_unconverted_simple_return): Delete.
17032 (convert_to_simple_return): Delete.
17033 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
17034 (convert_to_simple_return): Ditto.
17035
17036 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17037
17038 * cfgcleanup.c (bb_is_just_return): New function.
17039 (try_optimize_cfg): Simplify jumps to return, branches to return,
17040 and branches around return.
17041
17042 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17043
17044 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
17045 branch to a return.
17046
17047 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17048
17049 PR c++/70906
17050 PR c++/70933
17051 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
17052 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
17053 assert flags & OEP_HASH_CHECK, instead of asserting it
17054 never happens. Handle TARGET_EXPR.
17055 * fold-const.c (operand_equal_p): For hash verification,
17056 or in OEP_HASH_CHECK into flags.
17057
17058 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
17059
17060 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
17061 comment.
17062 (compute_samebase_partition_bases): Fix typo.
17063
17064 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17065
17066 * config/i386/sse.md (vec_interleave_highv8sf,
17067 vec_interleave_lowv8sf, vec_interleave_highv4df,
17068 vec_interleave_lowv4df): Remove constraints from expanders.
17069
17070 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
17071
17072 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17073
17074 * tree-inline.c (expand_call_inline): Fix path dealing with
17075 making lhs of call statement undefined.
17076
17077 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17078
17079 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17080 Check availability on NODE, too.
17081 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
17082 (cgraph_node::call_for_symbol_and_aliases): Likewise.
17083 (varpool_node::call_for_symbol_and_aliase): Likewise.
17084 * ipa-pure-const.c (add_new_function): Analyze all bodies.
17085 (propagate_pure_const): Propagate across interposable functions, too.
17086 (skip_function_for_local_pure_const): Do not skip interposable bodies
17087 with aliases.
17088 (pass_local_pure_const::execute): Update.
17089
17090 2016-05-04 Marek Polacek <polacek@redhat.com>
17091
17092 * doc/invoke.texi: Document -Wdangling-else.
17093
17094 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17095
17096 * config.gcc: Error out when conflicting multilib is detected. Do not
17097 loop over multilibs since no combination is legal.
17098
17099 2016-05-04 Alan Modra <amodra@gmail.com>
17100
17101 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
17102 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
17103 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17104 Align .toc.
17105
17106 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
17107
17108 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
17109 Clean up p5600 comments.
17110
17111 2016-05-04 Richard Biener <rguenther@suse.de>
17112
17113 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
17114 constructor simplifications.
17115 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
17116
17117 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
17118
17119 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
17120 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
17121 result.set_rtx is null instead of aborting.
17122 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
17123 Always enable.
17124 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
17125 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
17126 *mov<mode>_store_postinc): New patterns.
17127
17128 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
17129
17130 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
17131 as commutative. Check both conversions are NOP.
17132 ((A & B) OP (C & B)): Remove.
17133
17134 2016-05-04 Alan Modra <amodra@gmail.com>
17135
17136 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
17137
17138 2016-05-04 Alan Modra <amodra@gmail.com>
17139
17140 PR target/70866
17141 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
17142 when cr2,3,4 are all fixed regs.
17143
17144 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
17145
17146 PR rtl-optimization/57193
17147 * opts.c (default_options_table): Revert OPT_frename_registers change.
17148 * doc/invoke.texi (-frename-registers, -O2): Likewise.
17149
17150 2016-05-03 Martin Sebor <msebor@redhat.com>
17151
17152 PR c++/66561
17153 * builtins.c (fold_builtin_FILE): New function.
17154 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
17155 (fold_builtin_0): Call them.
17156 * gimplify.c (gimplify_call_expr): Remove the handling of
17157 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
17158
17159 PR c++/66561
17160 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
17161 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
17162 constants.
17163
17164 PR c++/66639
17165 * doc/extend.texi (Function Names as Strings): Update __func__,
17166 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
17167 constants.
17168
17169 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17170 Richard Biener <rguenther@suse.de>
17171
17172 PR tree-optimization/70916
17173 * tree-if-conv.c: Include cfganal.h.
17174 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
17175 and remove_fake_exit_edges around the optimization pass.
17176
17177 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
17178
17179 * cgraph.c (symbol_table::create_edge): Set inline_failed.
17180 (cgraph_edge::make_direct): Likewise.
17181 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
17182 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
17183 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
17184 (CIF_THUNK): New code.
17185 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
17186 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
17187 (compute_inline_parameters): Set inline_failed for thunks.
17188 (inline_analyze_function): Cleanup.
17189 * ipa-inline.c (can_inline_edge_p): Do not deal with
17190 call_stmt_cannot_inline_p.
17191 (can_early_inline_edge_p): Likewise.
17192 (early_inliner): Initialize inline_failed.
17193 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
17194
17195 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
17196
17197 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
17198 from nonimm_ssenomem_operand.
17199 (nonimm_ssenomem_operand): New predicate.
17200 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
17201 as operand 0 predicate.
17202 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
17203 Disable unsupported alternatives using "enabled" attribute.
17204 Use register_ssemem_operand as operand 0 predicate.
17205 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
17206
17207 2016-05-03 Marek Polacek <polacek@redhat.com>
17208
17209 PR c/70859
17210 * input.c (expansion_point_location): New function.
17211 * input.h (expansion_point_location): Declare.
17212
17213 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
17214
17215 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
17216 occurence with frame_offset_ ones.
17217
17218 2016-05-03 Alan Modra <amodra@gmail.com>
17219
17220 PR rtl-optimization/70890
17221 * ira.c (combine_and_move_insns): When moving def_insn, remove
17222 equivs on use_insn.
17223
17224 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
17225
17226 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
17227 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
17228 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
17229 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
17230
17231 2016-05-03 Alan Modra <amodra@gmail.com>
17232
17233 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
17234 for SAVE_MULTIPLE/STORE_MULTIPLE.
17235
17236 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17237
17238 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
17239 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
17240
17241 2016-05-03 Richard Biener <rguenther@suse.de>
17242
17243 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
17244 default true.
17245 (gimplify_arg): Likewise.
17246 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
17247 re-writing the result to a decl if required.
17248 (internal_get_tmp_var): Add allow_ssa parameter
17249 and override into_ssa with it.
17250 (get_formal_tmp_var): Adjust.
17251 (get_initialized_tmp_var): Add allow_ssa parameter.
17252 (gimplify_arg): Add allow_ssa parameter and avoid generating
17253 SSA names for the result false.
17254 (gimplify_call_expr): If the call may return twice do not
17255 gimplify parameters into SSA.
17256 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
17257 (gimplify_modify_expr): Adjust assert. For noreturn calls
17258 with a SSA name LHS adjust its def.
17259 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
17260 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
17261 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
17262 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
17263 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
17264 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
17265 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
17266 (optimize_target_teams): Do not allow SSA names for clause operands.
17267 (gimplify_expr): Likewise for where we mark the result addressable.
17268 * passes.def (pass_init_datastructures): Remove.
17269 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
17270 (rewrite_stmt): Likewise.
17271 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
17272 (replace_locals_op): Replace SSA names.
17273 (copy_gimple_seq_and_replace_locals): Init src_cfun.
17274 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
17275 * cgraph.c (release_function_body): Free CFG annotations only
17276 when we have a CFG. Simplify.
17277 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
17278 force_gimple_operand instead of get_initialized_tmp_var.
17279 * tree-pass.h (make_pass_init_datastructures): Remove.
17280 * tree-ssa.c (execute_init_datastructures): Remove.
17281 (pass_data_init_datastructures): Likewise.
17282 (class pass_init_datastructures): Likewise.
17283 (make_pass_init_datastructures): Likewise.
17284 * omp-low.c (create_omp_child_function): Init SSA data structures.
17285 (grid_expand_target_grid_body): Likewise.
17286 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
17287 name before adding it to names_to_release.
17288 (remove_bb): Always release SSA defs.
17289 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
17290 before dereferencing it.
17291 * cgraphunit.c (init_lowered_empty_function): Always
17292 int SSA data structures.
17293 * tree-ssanames.c (release_defs): Remove assert that we are in
17294 SSA form.
17295 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
17296
17297 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17298 Uros Bizjak <ubizjak@gmail.com>
17299
17300 PR rtl-optimization/70467
17301 * config/i386/predicates.md (x86_64_hilo_int_operand,
17302 x86_64_hilo_general_operand): New predicates.
17303 * config/i386/constraints.md (Wd): New constraint.
17304 * config/i386/i386.md (mode attr di): Use Wd instead of e.
17305 (general_hilo_operand): New mode attr.
17306 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
17307 instead of <general_operand>.
17308 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
17309 x86_64_hilo_general_operand instead of <general_operand>.
17310
17311 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17312
17313 PR tree-optimization/70916
17314 * tree-if-conv.c (constant_or_ssa_name): Removed.
17315 (fold_build_cond_expr): Use is_gimple_val instead of
17316 constant_or_ssa_name.
17317
17318 PR tree-optimization/70916
17319 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
17320 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
17321
17322 PR target/49244
17323 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
17324 (optimize_atomic_bit_test_and): New function.
17325 (pass_fold_builtins::execute): Use it.
17326 * optabs.def (atomic_bit_test_and_set_optab,
17327 atomic_bit_test_and_complement_optab,
17328 atomic_bit_test_and_reset_optab): New optabs.
17329 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
17330 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
17331 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
17332 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
17333 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
17334 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
17335 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
17336 * doc/md.texi (atomic_bit_test_and_set@var{mode},
17337 atomic_bit_test_and_complement@var{mode},
17338 atomic_bit_test_and_reset@var{mode}): Document.
17339 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
17340 atomic_bit_test_and_complement<mode>,
17341 atomic_bit_test_and_reset<mode>): New expanders.
17342 (atomic_bit_test_and_set<mode>_1,
17343 atomic_bit_test_and_complement<mode>_1,
17344 atomic_bit_test_and_reset<mode>_1): New insns.
17345
17346 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
17347
17348 PR rtl-optimization/70687
17349 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
17350 instead of unsigned HOST_WIDE_INT.
17351
17352 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
17353
17354 PR rtl-optimization/44281
17355 * hard-reg-set.h (struct target_hard_regs): New field
17356 x_fixed_nonglobal_reg_set.
17357 (fixed_nonglobal_reg_set): New macro.
17358 * reginfo.c (init_reg_sets_1): Initialize it.
17359 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
17360 of fixed_reg_set.
17361 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
17362
17363 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17364
17365 PR tree-optimization/56541
17366 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
17367 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
17368 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
17369 (any_complicated_phi): new static variable.
17370 (aggressive_if_conv): delete.
17371 (if_convertible_phi_p): support phis with more than two arguments.
17372 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
17373 critical pred edges.
17374 (ifcvt_split_critical_edges): support phis with more than two
17375 arguments by checking new parameter. only split critical edges
17376 if needed.
17377 (tree_if_conversion): handle simd pragma marked loop using new
17378 local variable aggressive_if_conv. check any_complicated_phi.
17379
17380 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17381
17382 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
17383 before using it.
17384
17385 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17386
17387 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
17388 cbase.
17389
17390 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17391
17392 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
17393 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
17394 define_insn_and_split.
17395 (mulsi3_i): New define_insn_and_split.
17396 (mulsi3_call): Convert to define_insn.
17397 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
17398 Remove constraints.
17399
17400 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17401
17402 * machmode.h (mode_complex): Add support to give the complex mode
17403 for a given mode.
17404 (GET_MODE_COMPLEX_MODE): Likewise.
17405 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
17406 stored by build_complex_type and gfc_build_complex_type instead of
17407 trying to figure out the appropriate mode based on the size. Raise
17408 an assertion error, if the type was not set.
17409 * genmodes.c (struct mode_data): Add field for the complex type of
17410 the given type.
17411 (blank_mode): Likewise.
17412 (make_complex_modes): Remember the complex mode created in the
17413 base type.
17414 (emit_mode_complex): Write out the mode_complex array to map a
17415 type mode to the complex version.
17416 (emit_insn_modes_c): Likewise.
17417 * tree.c (build_complex_type): Set the complex type to use before
17418 calling layout_type.
17419 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
17420 support for __float128 complex datatypes.
17421 (rs6000_hard_regno_mode_ok): Likewise.
17422 (rs6000_setup_reg_addr_masks): Likewise.
17423 (rs6000_complex_function_value): Likewise.
17424 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
17425 __float128 and __ibm128 complex.
17426 (FLOAT128_IBM_P): Likewise.
17427 (ALTIVEC_ARG_MAX_RETURN): Likewise.
17428 * doc/extend.texi (Additional Floating Types): Document that
17429 -mfloat128 must be used to enable __float128. Document complex
17430 __float128 and __ibm128 support.
17431
17432 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17433
17434 PR target/49244
17435 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
17436 char/short arguments promoted to int because of promote_prototypes.
17437
17438 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17439
17440 * config/i386/predicates.md (register_ssemem_operand): New predicate.
17441 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
17442 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
17443 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
17444 alternatives using "enabled" attribute. Use register_ssemem_operand
17445 as operand 1 predicate.
17446 (*cmpi<unord>xf_i387): Split XFmode pattern from
17447 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
17448 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
17449 *absneg<mode>2_i387. Disable unsupported alternatives using
17450 "enabled" attribute.
17451 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
17452
17453 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17454
17455 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
17456 marker.
17457 (oacc_loop_process): Check mask for loop termination.
17458
17459 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17460
17461 * cif-code.def (CIF_THUNK): Add.
17462 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
17463 accidental change.
17464
17465 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17466
17467 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
17468 (dump_inline_summary): Dump it.
17469 (fp_expression_p): New predicate.
17470 (estimate_function_body_sizes): Use it.
17471 (inline_merge_summary): Merge fp_expressions.
17472 (inline_read_section): Read fp_expressions.
17473 (inline_write_summary): Write fp_expressions.
17474 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
17475 codegen boundary if either caller or callee is !fp_expressions.
17476 * ipa-inline.h (inline_summary): Add fp_expressions.
17477 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
17478 to fp_expressions be sure the fp generation flags are updated.
17479
17480 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17481
17482 PR rtl-optimization/70467
17483 * cse.c (cse_insn): Handle no-op MEM moves after folding.
17484
17485 PR rtl-optimization/70467
17486 * ipa-pure-const.c (check_call): Handle internal calls even in
17487 ipa mode like in local mode.
17488
17489 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17490
17491 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
17492
17493 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17494
17495 * match.pd (X u< X, X u> X): New transformations.
17496
17497 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17498
17499 * flag-types.h (enum warn_strict_overflow_code): Move ...
17500 * coretypes.h: ... here.
17501 * fold-const.h (fold_overflow_warning): Declare.
17502 * fold-const.c (fold_overflow_warning): Make non-static.
17503 (fold_comparison): Move the transformation of X +- C1 CMP C2
17504 into X CMP C2 -+ C1 ...
17505 * match.pd: ... here.
17506 * gimple-fold.c (fold_stmt_1): Protect with
17507 fold_defer_overflow_warnings.
17508
17509 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17510
17511 * omp-low.c (struct oacc_loop): Add 'inner' field.
17512 (new_oacc_loop_raw): Initialize it to zero.
17513 (oacc_loop_fixed_partitions): Initialize it.
17514 (oacc_loop_auto_partitions): Partition outermost loop to outermost
17515 available partitioning.
17516
17517 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17518
17519 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
17520 register_operand.
17521 (umulsidi3): Likewise.
17522 (indirect_jump): Fix jump instruction assembly patterns.
17523
17524 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
17525
17526 PR target/70860
17527 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
17528 (nvptx_function_value): Assert non-NULL cfun.
17529
17530 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
17531
17532 PR rtl-optimization/70886
17533 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
17534
17535 * cselib.h (rtx_equal_for_cselib_1): Declare.
17536 (rtx_equal_for_cselib_p: New inline function.
17537 * cselib.c (rtx_equal_for_cselib_p): Delete.
17538 (rtx_equal_for_cselib_1): Make public.
17539
17540 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17541
17542 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
17543 (register_mixssei387nonimm_operand): Remove predicate.
17544 * config/i386/i386.md (*fop_<mode>_comm): Merge from
17545 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
17546 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
17547 for TARGET_MIX_SSE_I387 alternatives.
17548 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
17549 Disable unsupported alternatives using "enabled" attribute. Use
17550 nonimm_ssenomem_operand as operand 1 predicate. Also check
17551 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
17552
17553 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17554
17555 * tree.c (cst_and_fits_in_hwi): Simplify.
17556
17557 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17558
17559 * tree.h (wi::to_wide): New function.
17560 * expr.c (expand_expr_real_1): Use wi::to_wide.
17561 * fold-const.c (int_const_binop_1): Likewise.
17562 (extract_muldiv_1): Likewise.
17563
17564 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17565
17566 * wide-int.h: Update offset_int and widest_int documentation.
17567 (WI_SIGNED_SHIFT_RESULT): New macro.
17568 (wi::binary_shift): Define signed_shift_result_type for
17569 shifts on offset_int- and widest_int-like types.
17570 (generic_wide_int): Support <<= and >>= if << and >> are supported.
17571 * tree.h (int_bit_position): Use shift operators instead of wi::
17572 shifts.
17573 * alias.c (adjust_offset_for_component_ref): Likewise.
17574 * expr.c (get_inner_reference): Likewise.
17575 * fold-const.c (fold_comparison): Likewise.
17576 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
17577 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
17578 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17579 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17580 (stmt_kills_ref_p): Likewise.
17581 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
17582 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
17583 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17584 (ao_ref_init_from_vn_reference): Likewise.
17585
17586 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17587
17588 * wide-int.h: Update offset_int and widest_int documentation.
17589 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
17590 (wi::binary_traits): Allow ordered comparisons between offset_int and
17591 offset_int, between widest_int and widest_int, and between either
17592 of these types and basic C types.
17593 (operator <, <=, >, >=): Define for the same combinations.
17594 * tree.h (tree_int_cst_lt): Use comparison operators instead
17595 of wi:: comparisons.
17596 (tree_int_cst_le): Likewise.
17597 * gimple-fold.c (fold_array_ctor_reference): Likewise.
17598 (fold_nonarray_ctor_reference): Likewise.
17599 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
17600 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
17601 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
17602 * tree-sra.c (completely_scalarize): Likewise.
17603 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
17604 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
17605 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
17606 (check_for_binary_op_overflow): Likewise.
17607 (search_for_addr_array): Likewise.
17608 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
17609
17610 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17611
17612 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
17613 (arc_save_restore): Likewise.
17614 (arc_dwarf_register_span): Likewise.
17615 (arc_output_pic_addr_const): Initialize suffix variable.
17616
17617 2016-05-02 Martin Liska <mliska@suse.cz>
17618
17619 * symbol-summary.h (function_summary::function_summary):
17620 Remove checking assert for all cgraph nodes.
17621 (function_summary::get): Check summary_uid.
17622 (symtab_insertion): Check summary_uid.
17623
17624 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17625
17626 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
17627 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
17628 bmaskn instruction.
17629 (arc_dwarf_register_span): Remove enum keyword.
17630 (compact_memory_operand_p): New function.
17631 * config/arc/arc.h (reg_class): Add code density register classes.
17632 (REG_CLASS_NAMES): Likewise.
17633 (REG_CLASS_CONTENTS): Likewise.
17634 * config/arc/arc.md (*movqi_insn): Add code density instructions.
17635 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
17636 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
17637 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
17638 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
17639 constraints.
17640 (h, Rcd, Rsd, Rzd): New register constraints.
17641 (T): Use compact_memory_operand_p function.
17642 * config/arc/predicates.md (compact_load_memory_operand): Remove.
17643
17644 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17645
17646 * config/sh/sh.md (*negnegt, *movtt): Remove.
17647
17648 2016-05-02 Marek Polacek <polacek@redhat.com>
17649 Tom de Vries <tom@codesourcery.com>
17650
17651 PR tree-optimization/70700
17652 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
17653 bigger than FIRST_REF_NODE.
17654
17655 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17656
17657 PR target/52898
17658 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
17659 TARGET_CMPEQDI_T.
17660 (prepare_cbranch_operands): Don't use scratch register. Assume that
17661 function is used when pseudos can be created.
17662 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
17663 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
17664 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
17665 define_expand. Allow it only when pseudos can be created.
17666 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
17667
17668 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
17669
17670 * config/i386/constraints.md (BC): Only allow -1 operands.
17671 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17672 Add "enabled" attribute. Update XI mode attribute calculation.
17673 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17674 (*movoi_internal_avx): Update XI mode attribute calculation.
17675 (*movti_internal): Ditto.
17676
17677 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17678
17679 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17680 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17681
17682 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
17683
17684 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17685 statement on instruction code. Remove trailing spaces.
17686 (altivec_expand_stv_builtin): Likewise.
17687
17688 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17689
17690 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17691 (TARGET_FPU_DOUBLE): Simplify.
17692 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17693 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17694 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17695 with 'TARGET_FPU_DOUBLE'.
17696 * config/sh/sh.md: Likewise.
17697
17698 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
17699
17700 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17701 SH_DIV_STR_FOR_SIZE): Remove.
17702 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17703 SH_DIV_STR_FOR_SIZE): Remove.
17704
17705 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17706
17707 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17708 logical_reg_operand): Delete.
17709 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17710 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17711 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17712 match_operand and match_test.
17713 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
17714 variables on their first use. Return bool values.
17715 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17716 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17717 arith_reg_operand for input operand. Remove empty constraints.
17718 (xorsi3): Delete.
17719 (*xorsi3_compact): Rename to xorsi3.
17720 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17721 (*zero_extend<mode>si2_disp_mem): Update comment.
17722 (mov_nop): Delete.
17723
17724 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17725
17726 * config/sh/t-sh: Remove SH5 support.
17727 * config.gcc: Likewise.
17728 * configure: Likewise.
17729
17730 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17731
17732 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17733
17734 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17735
17736 * config/sh/sh.c (register_sh_passes, sh_option_override,
17737 sh_print_operand, prepare_move_operands,
17738 sh_can_follow_jump): Remove TARGET_SH1 checks.
17739 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17740 PROMOTE_MODE): Likewise.
17741 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17742 movdi): Likewise.
17743
17744 2016-04-30 Alan Modra <amodra@gmail.com>
17745
17746 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17747 restoring when fixed_reg_p, but allow out-of-line or stmw save.
17748 Check for user regs later to avoid unnecessary looping over regs.
17749 Merge user reg check with non-saved reg check. Don't force
17750 inline VR restore when static chain used.
17751 (rs6000_frame_related): Omit eh_frame info for user regs when
17752 saving.
17753 (fixed_regs_p): Delete.
17754
17755 2016-04-30 Alan Modra <amodra@gmail.com>
17756
17757 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17758 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
17759 Update all uses.
17760
17761 2016-04-30 Alan Modra <amodra@gmail.com>
17762
17763 PR target/69645
17764 * config/rs6000/rs6000.c (fixed_reg_p): New function.
17765 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
17766 Update all uses.
17767
17768 2016-04-30 Alan Modra <amodra@gmail.com>
17769
17770 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17771 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
17772 flag_pic test for Darwin.
17773
17774 2016-04-30 Alan Modra <amodra@gmail.com>
17775
17776 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17777 throw_calls_crossed.
17778 (REG_FREQ_CALLS_CROSSED): Delete.
17779 (REG_N_THROWING_CALLS_CROSSED): Delete.
17780 * regstat.c (regstat_bb_compute_ri): Don't calculate
17781 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17782 (dump_reg_info): Don't print call cross frequency.
17783 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17784 and REG_N_THROWING_CALLS_CROSSED.
17785
17786 2016-04-30 Alan Modra <amodra@gmail.com>
17787
17788 * regs.h (struct reg_info_t): Delete live_length.
17789 (REG_LIVE_LENGTH): Delete macro.
17790 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17791 local_live, local_processed and local_live_last_luid params.
17792 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
17793 Formatting fixes.
17794 (regstat_compute_ri): Adjust for above. Don't set
17795 REG_LIVE_LENGTH.
17796 (dump_reg_info): Don't print live length.
17797 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17798 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
17799 Localize loop_depth var.
17800
17801 2016-04-30 Alan Modra <amodra@gmail.com>
17802
17803 * ira.c (enum valid_equiv): New.
17804 (validate_equiv_mem): Return enum.
17805 (update_equiv_mem): Create replacement in more cases.
17806 (add_store_equivs): Update validate_equiv_mem call.
17807
17808 2016-04-30 Alan Modra <amodra@gmail.com>
17809
17810 * ira.c (combine_and_move_insns): Rather than scanning insns,
17811 use DF infrastucture to find use and def insns.
17812
17813 2016-04-30 Alan Modra <amodra@gmail.com>
17814
17815 ira.c (combine_and_move_insns): Move invariant conditions..
17816 (ira.c): ..to here. Call combine_and_move_insns before
17817 add_store_equivs. Call grow_reg_equivs later. Allocate
17818 req_equiv later using max_reg_num() rather than global max_regno.
17819 (contains_replace_regs): Delete.
17820 (add_store_equivs): Remove contains_replace_regs test.
17821
17822 2016-04-30 Alan Modra <amodra@gmail.com>
17823
17824 * ira.c (struct equiv_mem_data): New.
17825 (equiv_mem, equiv_mem_modified): Delete static vars.
17826 (validate_equiv_mem_from_store): Use "data" param to communicate..
17827 (validate_equiv_mem): ..from here.
17828
17829 2016-04-30 Alan Modra <amodra@gmail.com>
17830
17831 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17832 split out from..
17833 (update_reg_equivs): ..here. Move allocation and freeing of
17834 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17835 end_alias_analysis to..
17836 (ira): ..here.
17837
17838 2016-04-30 Alan Modra <amodra@gmail.com>
17839
17840 * ira.c (pdx_subregs): Delete.
17841 (struct equivalence): Add pdx_subregs field.
17842 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17843 pdx_subregs access.
17844 (update_equiv_regs): Don't create or free pdx_subregs. Update
17845 pdx_subregs access.
17846
17847 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17848
17849 * config/rs6000/altivec.h: Change definitions of vec_xl and
17850 vec_xst.
17851 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17852 (LD_ELEMREV_V2DI): New.
17853 (LD_ELEMREV_V4SF): New.
17854 (LD_ELEMREV_V4SI): New.
17855 (LD_ELEMREV_V8HI): New.
17856 (LD_ELEMREV_V16QI): New.
17857 (ST_ELEMREV_V2DF): New.
17858 (ST_ELEMREV_V2DI): New.
17859 (ST_ELEMREV_V4SF): New.
17860 (ST_ELEMREV_V4SI): New.
17861 (ST_ELEMREV_V8HI): New.
17862 (ST_ELEMREV_V16QI): New.
17863 (XL): New.
17864 (XST): New.
17865 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17866 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17867 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17868 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17869 (altivec_expand_builtin): Add handling for
17870 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17871 (rs6000_invalid_builtin): Add error-checking for
17872 RS6000_BTM_P9_VECTOR.
17873 (altivec_init_builtins): Define builtins used to implement vec_xl
17874 and vec_xst.
17875 (rs6000_builtin_mask_names): Define power9-vector.
17876 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17877 (RS6000_BTM_P9_VECTOR): Define.
17878 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17879 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17880 (vsx_ld_elemrev_v2df): Likewise.
17881 (vsx_ld_elemrev_v4sf): Likewise.
17882 (vsx_ld_elemrev_v4si): Likewise.
17883 (vsx_ld_elemrev_v8hi): Likewise.
17884 (vsx_ld_elemrev_v16qi): Likewise.
17885 (vsx_st_elemrev_v2df): Likewise.
17886 (vsx_st_elemrev_v2di): Likewise.
17887 (vsx_st_elemrev_v4sf): Likewise.
17888 (vsx_st_elemrev_v4si): Likewise.
17889 (vsx_st_elemrev_v8hi): Likewise.
17890 (vsx_st_elemrev_v16qi): Likewise.
17891 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17892 grammar.
17893
17894 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17895
17896 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17897 out into ...
17898 (simplify_control_stmt_condition_1): ... here. Recurse into
17899 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17900
17901 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17902
17903 PR target/69810
17904 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17905 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17906 define_insn_and_split to define_insn.
17907 (zero_extendqi<mode>2_dot2): Same.
17908 (extendqi<mode>2_dot): Same.
17909 (extendqi<mode>2_dot2): Same.
17910
17911 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17912
17913 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17914 (probe_stack): New expander.
17915 (probe_stack_<mode>): New insn pattern.
17916
17917 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17918
17919 * config/i386/i386.md
17920 (operations with memory inputs setting flags peephole2):
17921 Remove uneeded REG_P checks. Cleanup pattern generation.
17922
17923 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17924
17925 * tree-vect-loop.c (vect_transform_loop): Fix
17926 nb_iterations_upper_bound computation for vectorized loop.
17927
17928 2016-04-29 Marek Polacek <polacek@redhat.com>
17929 Jakub Jelinek <jakub@redhat.com>
17930
17931 PR sanitizer/70342
17932 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17933 TARGET_EXPR_SLOT as a base.
17934
17935 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17936
17937 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17938 with 'rCm2' constraints to limit possible immediate size.
17939 (*load_zeroextendqisi_update): Likewise.
17940 (*load_signextendqisi_update): Likewise.
17941 (*loadhi_update): Likewise.
17942 (*load_zeroextendhisi_update): Likewise.
17943 (*load_signextendhisi_update): Likewise.
17944 (*loadsi_update): Likewise.
17945 (*loadsf_update): Likewise.
17946
17947 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17948
17949 * config/i386/predicates.md (constm1_operand): Fix comparison.
17950
17951 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17952
17953 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17954
17955 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17956
17957 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17958 remaining SH5 related settings.
17959 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17960 shmedia_prepare_call_address): Delete.
17961 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17962 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17963 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17964 UNSUPPORTED_SH2A): Remove m5 checks.
17965 (sh_divide_strategy_e): Remove SH5 division strategies.
17966 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17967 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17968
17969 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17970
17971 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17972
17973 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17974
17975 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17976 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17977 Change lder to ldr.
17978 * config/s390/vector.md ("mov<mode>"): Likewise.
17979
17980 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17981
17982 * config/s390/constraints.md ("U", "W"): Invoke
17983 s390_mem_constraint with "ZR" and "ZT".
17984 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17985 addresses when using LRA. Accept also short displacements for S
17986 and T constraints. Do not check for long displacement target for
17987 S and T constraints.
17988 (s390_mem_constraint): Remove handling of U and W constraints.
17989 * config/s390/s390.md (various patterns): Remove the short
17990 displacement constraints (Q and R) if a long displacement
17991 constraint is present. Add longdisp as required CPU capability.
17992 * config/s390/vector.md: Likewise.
17993 * config/s390/vx-builtins.md: Likewise.
17994
17995 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17996
17997 PR target/60040
17998 * reload1.c (reload): Call finish_spills before
17999 restarting reload loop. Skip select_reload_regs
18000 if update_eliminables_and_spill returns true.
18001
18002 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
18003
18004 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
18005 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
18006 (umulhisi3_imm): Update predicates and constraint letters.
18007 (umulhisi3_reg): Declare instruction as commutative.
18008 * config/arc/constraints.md (J12, J16): New constraints.
18009 * config/arc/predicates.md (short_unsigned_const_operand): New
18010 predicate.
18011 (arc_short_operand): Likewise.
18012 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
18013
18014 2016-04-29 Richard Biener <rguenther@suse.de>
18015
18016 PR tree-optimization/13962
18017 PR tree-optimization/65686
18018 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
18019 * tree-ssa-alias.c (ptrs_compare_unequal): New function
18020 using PTA to compare pointers.
18021 * match.pd: Add pattern for pointer equality compare simplification
18022 using ptrs_compare_unequal.
18023
18024 2016-04-29 Richard Biener <rguenther@suse.de>
18025
18026 * stor-layout.c (layout_type): Do not build a pointer-to-element
18027 type for arrays.
18028
18029 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
18030
18031 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
18032 Use SWI mode iterator. Use general_reg_operand predicate.
18033 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
18034 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
18035 predicates.
18036
18037 2016-04-29 Jakub Jelinek <jakub@redhat.com>
18038
18039 PR middle-end/70843
18040 * fold-const.c (operand_equal_p): Don't verify hash value equality
18041 if arg0 == arg1.
18042 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
18043 and OMP_CLAUSE.
18044
18045 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18046
18047 PR target/70858
18048 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
18049 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
18050 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
18051 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
18052 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
18053
18054 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18055
18056 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
18057 to info. Don't initialize separate fields to 0. Clean up
18058 formatting a bit.
18059
18060 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18061
18062 * config/i386/i386.md (peephole2s for operations with memory inputs):
18063 Use SWI mode iterator.
18064 (peephole2s for operations with memory outputs): Ditto.
18065 Do not check for stack checking probe.
18066
18067 (probe_stack): Remove expander.
18068
18069 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18070 Andrew Burgess <andrew.burgess@embecosm.com>
18071
18072 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
18073 operands as 32-bits.
18074
18075 2016-04-28 Jason Merrill <jason@redhat.com>
18076
18077 * gdbinit.in: Skip line-map.h.
18078
18079 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18080 Andrew Burgess <andrew.burgess@embecosm.com>
18081
18082 * config/arc/arc.c (arc_conditional_register_usage): Take
18083 TARGET_RRQ_CLASS into account.
18084 (arc_print_operand): Support printing 'p' and 's' operands.
18085 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
18086 as 0.
18087 (TARGET_RRQ_CLASS): Define.
18088 (IS_POWEROF2_OR_0_P): Define.
18089 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
18090 alternatives.
18091 (*tst_movb): New define_insn.
18092 (*tst): Avoid recognition if it could prevent '*tst_movb'
18093 combination; replace c/CnL with c/Chs alternative.
18094 (*tst_bitfield_tst): New define_insn.
18095 (*tst_bitfield_asr): New define_insn.
18096 (*tst_bitfield): New define_insn.
18097 (andsi3_i): Add Rrq variant.
18098 (extzv): New define_expand.
18099 (insv): New define_expand.
18100 (*insv_i): New define_insn.
18101 (*movb): New define_insn.
18102 (*movb_signed): New define_insn.
18103 (*movb_high): New define_insn.
18104 (*movb_high_signed): New define_insn.
18105 (*movb_high_signed + 1): New define_split pattern.
18106 (*mrgb): New define_insn.
18107 (*mrgb + 1): New define_peephole2 pattern.
18108 (*mrgb + 2): New define_peephole2 pattern.
18109 * config/arc/arc.opt (mbitops): New option for nps400, uses
18110 TARGET_NPS_BITOPS_DEFAULT.
18111 * config/arc/constraints.md (q): Make register class conditional.
18112 (Rrq): New register constraint.
18113 (Chs): New constraint.
18114 (Clo): New constraint.
18115 (Chi): New constraint.
18116 (Cbf): New constraint.
18117 (Cbn): New constraint.
18118 (C18): New constraint.
18119 (Cbi): New constraint.
18120
18121 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18122
18123 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
18124 dst->popcount.
18125 (bitmap_intersection_of_preds): Ditto.
18126 (bitmap_union_of_succs): Ditto.
18127 (bitmap_union_of_preds): Ditto.
18128 * sbitmap.c (do_popcount): Delete.
18129 (BITMAP_DEBUGGING): Delete.
18130 (sbitmap_verify_popcount): Delete.
18131 (sbitmap_alloc): Don't initialize the popcount field.
18132 (sbitmap_alloc_with_popcount): Delete.
18133 (sbitmap_resize): Don't resize the popcount array.
18134 (sbitmap_vector_alloc): Don't initialize the popcount field.
18135 (bitmap_copy): Don't copy the popcount array.
18136 (bitmap_clear): Don't clear the popcount array.
18137 (bitmap_clear): Delete the popcount array handling.
18138 (bitmap_ior_and_compl): Delete the popcount assert.
18139 (bitmap_not): Ditto.
18140 (bitmap_and_compl): Ditto.
18141 (bitmap_and): Delete the popcount array handling.
18142 (bitmap_xor): Ditto.
18143 (bitmap_ior): Ditto.
18144 (bitmap_or_and): Delete the popcount assert.
18145 (bitmap_and_or): Ditto.
18146 (popcount_table): Delete.
18147 (sbitmap_elt_popcount): Delete.
18148 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
18149 (bitmap_set_bit): Delete the popcount assert.
18150 (bitmap_clear_bit): Ditto.
18151 (sbitmap_free): Don't free the popcount array.
18152 (sbitmap_alloc_with_popcount): Delete declaration.
18153 (sbitmap_popcount): Ditto.
18154
18155 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18156 Andrew Burgess <andrew.burgess@embecosm.com>
18157
18158 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
18159 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
18160 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
18161 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
18162 * config/arc/arc.opt (mcmem): New option.
18163 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
18164 supply length for r/m alternative.
18165 (*extendqisi2_ac): Likewise.
18166 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
18167 r/Uex alternative.
18168 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
18169 (movhi_insn): Likewise.
18170 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
18171 (*zero_extendqihi2_i): Add r/Ucm alternative.
18172 (*zero_extendqisi2_ac): Likewise.
18173 (*zero_extendhisi2_i): Likewise.
18174 * config/arc/constraints.md (Uex): New memory constraint.
18175 (Ucm): New define_constraint.
18176 * config/arc/predicates.md (long_immediate_loadstore_operand):
18177 Return 0 for MEM with cmem_address address.
18178 (cmem_address_0): New predicates.
18179 (cmem_address_1): Likewise.
18180 (cmem_address_2): Likewise.
18181 (cmem_address): Likewise.
18182
18183 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18184
18185 * config/rs6000/rs6000.c (machine_function): Rename
18186 insn_chain_scanned_p to spe_insn_chain_scanned_p.
18187 (rs6000_stack_info): Adjust.
18188
18189 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18190 Andrew Burgess <andrew.burgess@embecosm.com>
18191
18192 * config/arc/constraints.md (Usd): Convert to define_constraint.
18193 (Us<): Likewise.
18194 (Us>): Likewise.
18195
18196 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18197
18198 PR target/70821
18199 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
18200 Add new peephole2 where the first insn is *mov<mode>_or instead of
18201 *mov<mode>_internal.
18202
18203 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
18204
18205 * tracer.c (bb_seen): Make static.
18206
18207 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
18208
18209 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
18210 support, setup defaults.
18211 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
18212 * config/arc/arc.c (arc_init): Add NPS400 support.
18213 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
18214 (TARGET_ARC700): NPS400 is also an ARC700.
18215 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
18216
18217 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18218
18219 PR target/70668
18220 * config/nds32/nds32.md (casesi): Don't access the operands array
18221 out of bounds.
18222
18223 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18224
18225 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
18226 (or $-1,reg peephole2): Ditto.
18227 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
18228
18229 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18230
18231 * doc/extend.texi (Common Function Attributes) [optimize]:
18232 Discourage use of the optimize attribute.
18233
18234 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
18235
18236 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
18237 special case builtin.
18238 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18239 ALTIVEC_BUILTIN_VEC_ADDE.
18240 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18241 support for ALTIVEC_BUILTIN_VEC_ADDE.
18242 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18243 for __builtin_vec_adde.
18244
18245 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18246
18247 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
18248 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
18249
18250 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18251
18252 PR testsuite/70595
18253 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18254 attributes): Document cilkplus_runtime.
18255
18256 2016-04-28 Martin Jambor <mjambor@suse.cz>
18257
18258 * tree-cfg.c (verify_expr): Verify that local declarations belong to
18259 this function. Call verify_expr on MEM_REFs and bases of other
18260 handled_components.
18261
18262 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18263
18264 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
18265 for WORD_REGISTER_OPERATIONS to runtime check.
18266
18267 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18268
18269 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
18270
18271 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18272
18273 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
18274 big-endian compilation.
18275 * config/arc/arc.md (addf3): Likewise.
18276 (subdf3): Likewise.
18277 (muldf3): Likewise.
18278
18279 2016-04-28 Richard Biener <rguenther@suse.de>
18280
18281 PR tree-optimization/70840
18282 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
18283 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
18284 Mark x * pow(x,c) -> pow(x,c+1) commutative.
18285 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
18286
18287 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18288
18289 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
18290 and explain why in a comment.
18291
18292 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18293
18294 * config/arc/arc.md (cpu_facility): Add fpx variant.
18295 (subdf3): Prohibit use reverse sub when assist operations option
18296 is enabled.
18297 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
18298 instructions only when FPX is enabled.
18299 * testsuite/gcc.target/arc/trsub.c: New test.
18300
18301 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18302
18303 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18304 mult_operator when calculating "type" attribute.
18305 (*fop_<mode>_1_i387): Ditto.
18306 (*fop_xf_1_i387): Ditto.
18307 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
18308 Use std::swap to swap operands. Use RTL expressions to generate
18309 converted pattern.
18310
18311 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18312 Joern Rennecke <joern.rennecke@embecosm.com>
18313
18314 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
18315 declaration.
18316 (emit_pic_move): Remove.
18317 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
18318 * config/arc/arc.c (emit_pic_move): Removed.
18319 (TARGET_HAVE_TLS): Define.
18320 (arc_conditional_register_usage): Test for arc_tp_regno.
18321 (arc_print_operand, arc_print_operand_address): Handle TLS
18322 unspecs.
18323 (arc_needs_pcl_p): New function.
18324 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
18325 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
18326 (arc_raw_symbolic_reference_mentioned_p): Likewise.
18327 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
18328 (arc_legitimize_tls_address): Likewise.
18329 (DTPOFF_ZERO_SYM): Define.
18330 (arc_legitimize_pic_address): Make it static, handle TLS cases.
18331 (arc_output_pic_addr_const): Print TLS unspecs.
18332 (prepare_pic_move): New function, replaces emit_pic_move.
18333 (arc_legitimate_constant_p): Handle TLS unspecs.
18334 (arc_legitimate_address_p): Likewise.
18335 (arc_rewrite_small_data_p): Use assert for TLS constants.
18336 (prepare_move_operands): Use prepare_pic_move.
18337 (arc_legitimize_address): Legitimize tls addresses.
18338 (arc_epilogue_uses): Check for arc_tp_regno.
18339 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
18340 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
18341 Define.
18342 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
18343 Likewise.
18344 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
18345 %(arc_tls_extra_start_spec).
18346 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
18347 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
18348 (EH_USES): Define.
18349 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
18350 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
18351 (UNSPEC_TLS_OFF): Add.
18352 (R10_REG): Define.
18353 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
18354 (get_thread_pointersi): New patterns.
18355 * config/arc/arc.opt (mtp-regno): New option.
18356 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
18357 (move_dest_operand): Likewise.
18358 * configure: Regenerate.
18359 * configure.ac: Add arc*-*-* case to test for tls.
18360 * doc/invoke.texi (ARC options): Document mtp-regno.
18361
18362 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18363
18364 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
18365 the new ARC HS SIMD instructions.
18366 (arc_preferred_simd_mode): New function.
18367 (arc_autovectorize_vector_sizes): Likewise.
18368 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
18369 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18370 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
18371 (arc_init_builtins): Add new SIMD builtin types.
18372 (arc_split_move): Handle 64 bit vector moves.
18373 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
18374 (TARGET_PLUS_QMACW): Define.
18375 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
18376 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
18377 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
18378 (VSUBADD4H): New builtins.
18379 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
18380 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
18381
18382 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
18383 Matthias Klose <doko@debian.org>
18384
18385 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
18386
18387 2016-04-28 Richard Biener <rguenther@suse.de>
18388
18389 PR middle-end/70777
18390 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
18391 canonicalization.
18392
18393 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
18394
18395 * common/config/sh/sh-common.c: Remove SH5 support.
18396 * config/sh/constraints.md: Likewise.
18397 * config/sh/config/sh/elf.h: Likewise.
18398 * config/sh/linux.h: Likewise.
18399 * config/sh/netbsd-elf.h: Likewise.
18400 * config/sh/predicates.md: Likewise.
18401 * config/sh/sh-c.c: Likewise.
18402 * config/sh/sh-protos.h: Likewise.
18403 * config/sh/sh.c: Likewise.
18404 * config/sh/sh.h: Likewise.
18405 * config/sh/sh.md: Likewise.
18406 * config/sh/sh.opt: Likewise.
18407 * config/sh/sync.md: Likewise.
18408 * config/sh/sh64.h: Delete.
18409 * config/sh/shmedia.h: Likewise.
18410 * config/sh/shmedia.md: Likewise.
18411 * config/sh/sshmedia.h: Likewise.
18412 * config/sh/t-netbsd-sh5-64: Likewise.
18413 * config/sh/t-sh64: Likewise.
18414 * config/sh/ushmedia.h: Likewise.
18415
18416 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18417
18418 * config/i386/i386.md (sign_extend to memory peephole2s): Use
18419 general_reg_operand instead of register_operand predicate.
18420
18421 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18422
18423 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
18424
18425 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
18426
18427 * match.pd (A - B > A, A + B < A): New transformations.
18428
18429 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
18430
18431 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
18432 which defaults to true. Emit an outer pair of parentheses only if
18433 EMIT_PARENS. When continuing a chain of && or || (or & or |),
18434 don't emit parentheses for the right-hand operand.
18435
18436 2016-04-27 Jeff Law <law@redhat.com>
18437
18438 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
18439
18440 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18441
18442 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
18443 (altivec_lvx_<mode>_internal): Document.
18444 (altivec_lvx_<mode>_2op): New define_insn.
18445 (altivec_lvx_<mode>_1op): Likewise.
18446 (altivec_lvx_<mode>_2op_si): Likewise.
18447 (altivec_lvx_<mode>_1op_si): Likewise.
18448 (altivec_stvx_<mode>): Remove.
18449 (altivec_stvx_<mode>_internal): Document.
18450 (altivec_stvx_<mode>_2op): New define_insn.
18451 (altivec_stvx_<mode>_1op): Likewise.
18452 (altivec_stvx_<mode>_2op_si): Likewise.
18453 (altivec_stvx_<mode>_1op_si): Likewise.
18454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18455 Expand vec_ld and vec_st during parsing.
18456 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
18457 changes.
18458 (altivec_expand_stvx_be): Likewise.
18459 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
18460 address-masking behavior in RTL.
18461 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
18462 address-masking behavior in RTL.
18463 (altivec_expand_builtin): Change builtin code arguments for calls
18464 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
18465 (insn_is_swappable_p): Avoid incorrect swap optimization in the
18466 presence of lvx/stvx patterns.
18467 (alignment_with_canonical_addr): New function.
18468 (alignment_mask): Likewise.
18469 (find_alignment_op): Likewise.
18470 (recombine_lvx_pattern): Likewise.
18471 (recombine_stvx_pattern): Likewise.
18472 (recombine_lvx_stvx_patterns): Likewise.
18473 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
18474 stvx patterns from expand.
18475 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
18476 expansions.
18477 (vector_altivec_store_<mode>): Likewise.
18478
18479 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
18480
18481 * config/aarch64/aarch64.md
18482 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
18483 remove the "fp" attributes.
18484 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
18485 add the "simd" attributes.
18486 (*movdf_aarch64): Likewise.
18487 (*movtf_aarch64): Remove the "fp" attributes.
18488 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
18489 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
18490
18491 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18492
18493 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
18494 rtx to rtx_code_label *.
18495 * rtl.h (maybe_set_first_label_num): Likewise.
18496
18497 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18498
18499 * df-core.c (df_add_problem): Make the problem param be const.
18500 (df_remove_problem): Make local "problem" be const.
18501 * df-problems.c (problem_RD): Make const.
18502 (problem_LR): Likewise.
18503 (problem_LIVE): Likewise.
18504 (problem_MIR): Likewise.
18505 (problem_CHAIN): Likewise.
18506 (problem_WORD_LR): Likewise.
18507 (problem_NOTE): Likewise.
18508 (problem_MD): Likewise.
18509 * df-scan.c (problem_SCAN): Likewise.
18510 * df.h (struct df_problem): Make field "dependent_problem" be
18511 const.
18512 (struct dataflow): Likewise for field "problem".
18513 (df_add_problem): Make param const.
18514
18515 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18516
18517 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
18518 inter-unit moves to/from vector registers are enabled. Do not disable
18519 for TARGET_MMX.
18520
18521 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18522
18523 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
18524 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
18525 #define to...
18526 (enum df_problem_id): ...this new enum.
18527 (struct df_problem): Convert field "id" from "int" to
18528 enum df_problem_id.
18529
18530 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18531
18532 * rtl.def: Update comment for "things in the instruction chain" to
18533 reflect the removal of the leading "i" field for INSN_UID in
18534 r210360. Fix bogus apostrophe.
18535
18536 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18537
18538 * config/i386/i386.md
18539 (lea arith with mem operand + setcc peephole2): Set operator mode.
18540
18541 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
18542
18543 PR target/70155
18544 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
18545 (dimode_scalar_to_vector_candidate_p): This.
18546 (timode_scalar_to_vector_candidate_p): New function.
18547 (scalar_to_vector_candidate_p): Likewise.
18548 (timode_check_non_convertible_regs): Likewise.
18549 (timode_remove_non_convertible_regs): Likewise.
18550 (remove_non_convertible_regs): Likewise.
18551 (remove_non_convertible_regs): Renamed to ...
18552 (dimode_remove_non_convertible_regs): This.
18553 (scalar_chain::~scalar_chain): Make it virtual.
18554 (scalar_chain::compute_convert_gain): Make it pure virtual.
18555 (scalar_chain::mark_dual_mode_def): Likewise.
18556 (scalar_chain::convert_insn): Likewise.
18557 (scalar_chain::convert_registers): Likewise.
18558 (scalar_chain::add_to_queue): Make it protected.
18559 (scalar_chain::emit_conversion_insns): Likewise.
18560 (scalar_chain::replace_with_subreg): Likewise.
18561 (scalar_chain::replace_with_subreg_in_insn): Likewise.
18562 (scalar_chain::convert_op): Likewise.
18563 (scalar_chain::convert_reg): Likewise.
18564 (scalar_chain::make_vector_copies): Likewise.
18565 (scalar_chain::convert_registers): New pure virtual function.
18566 (class dimode_scalar_chain): New class.
18567 (class timode_scalar_chain): Likewise.
18568 (scalar_chain::mark_dual_mode_def): Renamed to ...
18569 (dimode_scalar_chain::mark_dual_mode_def): This.
18570 (timode_scalar_chain::mark_dual_mode_def): New function.
18571 (timode_scalar_chain::convert_insn): Likewise.
18572 (dimode_scalar_chain::convert_registers): Likewise.
18573 (scalar_chain::compute_convert_gain): Renamed to ...
18574 (dimode_scalar_chain::compute_convert_gain): This.
18575 (scalar_chain::replace_with_subreg): Renamed to ...
18576 (dimode_scalar_chain::replace_with_subreg): This.
18577 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
18578 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
18579 (scalar_chain::make_vector_copies): Renamed to ...
18580 (dimode_scalar_chain::make_vector_copies): This.
18581 (scalar_chain::convert_reg): Renamed to ...
18582 (dimode_scalar_chain::convert_reg ): This.
18583 (scalar_chain::convert_op): Renamed to ...
18584 (dimode_scalar_chain::convert_op): This.
18585 (scalar_chain::convert_insn): Renamed to ...
18586 (dimode_scalar_chain::convert_insn): This.
18587 (scalar_chain::convert): Call convert_registers.
18588 (convert_scalars_to_vector): Change to scalar_chain pointer to
18589 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
18590 in 32-bit mode. Delete scalar_chain pointer. Call
18591 free_dominance_info in 64-bit mode.
18592 (pass_stv::gate): Remove TARGET_64BIT check.
18593 (ix86_option_override): Put the 64-bit STV pass before the CSE
18594 pass.
18595
18596 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
18597
18598 * dwarf2out.h (struct dw_loc_descr_node): Remove the
18599 dw_loc_frame_offset field.
18600 * dwarf2out.c (new_loc_descr): Likewise.
18601 (resolve_args_picking_1): Turn the VISITED hash set into a
18602 FRAME_OFFSET hash map. Use it to associate a frame offset to
18603 visited nodes. Remove uses of the CHECKING_P macro.
18604 (resolve_args_picking): Update call to resolve_args_picking_1.
18605
18606 2016-04-27 Martin Liska <mliska@suse.cz>
18607
18608 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
18609 (free_loop_data): Release vuses of groups.
18610
18611 2016-04-27 Bin Cheng <bin.cheng@arm.com>
18612
18613 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
18614 instead of redundant use_id and boolean have_use_for.
18615 (struct iv_use): Change sub_id into group_id. Remove field next.
18616 Move fields: related_cands, n_map_members, cost_map and selected
18617 to ...
18618 (struct iv_group): ... here. New structure.
18619 (struct iv_common_cand): Use structure declaration directly.
18620 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
18621 (MAX_CONSIDERED_USES): Rename macro to ...
18622 (MAX_CONSIDERED_GROUPS): ... here.
18623 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
18624 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
18625 (dump_uses): Rename to ...
18626 (dump_groups): ... here. Update all uses.
18627 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
18628 (find_induction_variables): Refactor format of dump information.
18629 (record_sub_use): Delete.
18630 (record_use): Update all uses.
18631 (record_group): New function.
18632 (record_group_use, find_interesting_uses_op): Call above functions.
18633 Update all uses.
18634 (find_interesting_uses_cond): Ditto.
18635 (group_compare_offset): New function.
18636 (split_all_small_groups): Rename to ...
18637 (split_small_address_groups_p): ... here. Update all uses.
18638 (split_address_groups): Update all uses.
18639 (find_interesting_uses): Refactor format of dump information.
18640 (add_candidate_1): Update all uses. Remove redundant check on iv,
18641 base and step.
18642 (add_candidate, record_common_cand): Remove redundant assert.
18643 (add_iv_candidate_for_biv): Update use.
18644 (add_iv_candidate_derived_from_uses): Update all uses.
18645 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
18646 (alloc_use_cost_map): Ditto.
18647 (set_use_iv_cost, get_use_iv_cost): Rename to ...
18648 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
18649 (determine_use_iv_cost_generic): Ditto.
18650 (determine_group_iv_cost_generic): Ditto.
18651 (determine_use_iv_cost_address): Ditto.
18652 (determine_group_iv_cost_address): Ditto.
18653 (determine_use_iv_cost_condition): Ditto.
18654 (determine_group_iv_cost_cond): Ditto.
18655 (determine_use_iv_cost): Ditto.
18656 (determine_group_iv_cost): Ditto.
18657 (set_autoinc_for_original_candidates): Update all uses.
18658 (find_iv_candidates): Update all uses. Refactor dump information.
18659 (determine_use_iv_costs): Ditto.
18660 (determine_iv_costs): Ditto.
18661 (iv_ca_cand_for_use): Rename to ...
18662 (iv_ca_cand_for_group): ... here. Update all uses.
18663 (iv_ca_add_use, iv_ca_add_group): Ditto.
18664 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
18665 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
18666 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
18667 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18668 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18669 (create_new_iv, adjust_iv_update_pos): Ditto.
18670 (rewrite_use_address): Delete.
18671 (rewrite_use_address_1): Rename to ...
18672 (rewrite_use_address): ... here.
18673 (rewrite_use_compare): Update all uses.
18674 (rewrite_use): Delete.
18675 (rewrite_uses): Rename to ...
18676 (rewrite_groups): ... here. Update all uses.
18677 (remove_unused_ivs, free_loop_data): Update all uses.
18678 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18679
18680 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18681
18682 * rtlanal.c (nonzero_bits1): Convert preprocessor check
18683 for WORD_REGISTER_OPERATIONS to runtime check.
18684
18685 2016-04-27 Richard Biener <rguenther@suse.de>
18686
18687 PR ipa/70760
18688 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18689 aggregate_value_p to determine if a function result is
18690 returned by reference.
18691 (ipa_pta_execute): Functions having their address taken are
18692 not automatically nonlocal.
18693
18694 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18695
18696 PR sanitizer/70683
18697 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18698 * fold-const.c (operand_equal_p): If flag_checking and
18699 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18700 and if it returns non-zero, assert iterative_hash_expr on both
18701 args is the same.
18702
18703 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18704
18705 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18706
18707 2016-04-27 Nick Clifton <nickc@redhat.com>
18708
18709 PR middle-end/49889
18710 * varasm.c (merge_weak): Generate an error if an attempt is made
18711 to convert a non-weak static function into a weak, public function.
18712
18713 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18714
18715 * params.def (MAX_PARTITION_SIZE): New param.
18716 * doc/invoke.texi: Document lto-max-partition.
18717
18718 2016-04-27 Richard Biener <rguenther@suse.de>
18719
18720 PR ipa/70785
18721 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18722 function cummulating used_from_other_partition, externally_visible
18723 and force_output from aliases.
18724 (refered_from_nonlocal_var): Likewise.
18725 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18726 node flags properly.
18727
18728 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18729
18730 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18731 (-Wmemset-elt-size): New item.
18732
18733 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
18734
18735 PR ada/70759
18736 * stor-layout.h (internal_reference_types): Delete.
18737 * stor-layout.c (reference_types_internal): Likewise.
18738 (internal_reference_types): Likewise.
18739 (layout_type) <REFERENCE_TYPE>: Adjust.
18740
18741 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18742
18743 PR sanitizer/70683
18744 * tree.h (inchash::add_expr): Add FLAGS argument.
18745 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
18746 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
18747 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18748 Formatting fix. Adjust recursive calls. For tcc_comparison,
18749 if swap_tree_comparison (code) is smaller than code, hash that
18750 and arguments in the other order. Hash CONVERT_EXPR the same
18751 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18752 of ADDR_EXPR of decl as the decl itself. Add or remove
18753 OEP_ADDRESS_OF from recursive flags as needed. For
18754 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18755 operands commutatively and only the third one normally.
18756 For internal CALL_EXPR hash in CALL_EXPR_IFN.
18757
18758 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
18759
18760 * config/rtems.h (LIB_SPEC): Add -latomic.
18761
18762 2016-04-27 Joel Sherrill <joel@rtems.org>
18763
18764 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18765 xilink.ld and flags not relevant to RTEMS.
18766
18767 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18768
18769 * toplev.c (backend_init_target): Avoid calling init_reload when using
18770 LRA.
18771
18772 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18773
18774 * reorg.c (try_merge_delay_insns): Declare i and j inside the
18775 for loops rather than one for the whole function.
18776
18777 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18778
18779 * match.pd (X + CST CMP X): New transformation.
18780
18781 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18782
18783 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18784 * fold-const.c (fold_binary_loc): Remove 2 transformations
18785 superseded by match.pd.
18786 * match.pd (x+x -> x*2): Generalize to integers.
18787
18788 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
18789
18790 * config/i386/i386.md (operation on memory peephole): Duplicate an
18791 existing peephole and adapt it to match lea rather than an operation
18792 that clobbers CC.
18793
18794 PR rtl-optimization/57193
18795 * opts.c (default_options_table): Add OPT_frename_registers at -O2
18796 and above.
18797 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18798
18799 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18800
18801 * tree-if-conv.c (any_pred_load_store): New static variable.
18802 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18803 any_pred_load_store instead of and_mask_load_store.
18804 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18805 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18806 (combine_blocks, tree_if_conversion): Ditto.
18807
18808 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18809
18810 PR tree-optimization/70771
18811 PR tree-optimization/70775
18812 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18813 virtual PHI nodes. Delete parameter.
18814 (if_convertible_loop_p_1): Delete argument to above function.
18815 (predicate_all_scalar_phis): Delete code handling single-argument
18816 PHIs.
18817 (tree_if_conversion): Mark and update virtual SSA.
18818
18819 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18820
18821 PR target/61821
18822 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18823 (x86_elf_aligned_common): Rename to ...
18824 (x86_elf_aligned_decl_common): ... this.
18825 Add decl arg. Switch to .lbss for largecomm object. Use
18826 LARGECOMM_SECTION_ASM_OP.
18827 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18828 renaming.
18829 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18830 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18831 Pass new decl arg.
18832 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18833 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18834
18835 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18836
18837 PR target/59407
18838 * config/i386/i386.c (SECTION_LARGE): Define.
18839 (x86_64_elf_select_section): Set it for large data/bss sections.
18840 Only clear SECTION_WRITE for .lrodata.
18841 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18842 data/bss sections.
18843 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18844 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18845 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18846 SECTION_MACH_DEP.
18847 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18848 * doc/tm.texi: Regenerate.
18849
18850 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18851
18852 PR bootstrap/70704
18853 * configure.ac (--enable-checking): Document extra flag, for
18854 non-release builds default to --enable-checking=yes,extra.
18855 If misc checking and extra checking, define CHECKING_P to 2 instead
18856 of 1.
18857 * common.opt (fchecking=): Add.
18858 * doc/invoke.texi (-fchecking=): Document.
18859 * doc/install.texi: Document --enable-checking changes.
18860 * configure: Regenerated.
18861 * config.in: Regenerated.
18862
18863 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18864
18865 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18866 attribute instead of which_alternative.
18867 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18868 Use EXT_REX_SSE_REG_P where appropriate.
18869
18870 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18871
18872 * config/i386/predicates.md (const0_operand): Do not match
18873 const_wide_int code.
18874 (const1_operand): Ditto.
18875
18876 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18877
18878 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18879 for SSE constm1 operands and TARGET_AVX512VL.
18880 (*movti_internal): Ditto.
18881 (*mov<mode>_or): Use constm1_operand predicate.
18882 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18883 for SSE vector_all_ones operands and TARGET_AVX512VL.
18884 * config/i386/predicates.md (constm1_operand): New predicate.
18885 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18886 emission of constant -1 load.
18887
18888 2016-04-25 Jason Merrill <jason@redhat.com>
18889
18890 * gdbinit.in: Skip is-a.h.
18891
18892 * attribs.c (register_scoped_attributes): Fix logic.
18893 * attribs.h: Declare register_scoped_attributes.
18894
18895 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18896
18897 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18898 stxvd2x and stxvw4x built-in functions.
18899
18900 2016-04-25 DJ Delorie <dj@redhat.com>
18901
18902 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18903 (ashrhi3): Likewise.
18904 (lshrhi3): Likewise.
18905
18906 2016-04-25 Richard Biener <rguenther@suse.de>
18907
18908 PR tree-optimization/70780
18909 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18910 wasn't visited yet.
18911 (compute_antic): Mark blocks with abnormal preds as visited as
18912 they have a final empty antic-in solution already.
18913
18914 2016-04-25 Michael Collison <michael.collison@linaro.org>
18915
18916 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18917
18918 2016-04-25 Michael Collison <michael.collison@linaro.org>
18919
18920 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18921 mode is VQI to improve mixed mode vectorization.
18922 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18923 define_insn to match low half of signed vaddw.
18924 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18925 define_insn to match high half of signed vaddw.
18926 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18927 define_insn to match low half of unsigned vaddw.
18928 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18929 define_insn to match high half of unsigned vaddw.
18930 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18931 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18932 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18933 for new function.
18934 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18935 * config/arm/predicates.md (vect_par_constant_high): Support
18936 big endian and simplify by calling
18937 arm_simd_check_vect_par_cnst_half
18938 (vect_par_constant_low): Likewise.
18939
18940 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18941
18942 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18943 predicate for operand 2.
18944
18945 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18946 H.J. Lu <hongjiu.lu@intel.com>
18947
18948 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18949 machine_mode argument.
18950 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18951 constm1_rtx operands. For VOIDmode constants, get mode from
18952 pred_mode. Check mode size if the mode is supported by ABI.
18953 (standard_sse_constant_opcode): Do not use standard_constant_p.
18954 Strictly check ABI support for all-ones operands.
18955 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18956 immediates. Update calls to standard_sse_constant_p.
18957 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18958 (ix86_rtx_costs): Ditto.
18959 * config/i386/i386.md (*movxi_internal_avx512f): Use
18960 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18961 Use (v,BC) alternative instead of (v,C). Use register_operand
18962 checks instead of MEM_P.
18963 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18964 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18965 isa attribute. Use register_operand checks instead of MEM_P.
18966 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18967 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18968 alternative and corresponding sse2 isa attribute.
18969 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18970 to standard_sse_constant_p.
18971 (FP constant splitters): Ditto.
18972 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18973 (C): Ditto.
18974 * config/i386/predicates.md (constm1_operand): Remove.
18975 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18976 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18977 vector_all_ones_operand instead of constm1_operand.
18978
18979 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18980
18981 * print-rtl.c (print_rtx_insn_vec): New function.
18982 * print-rtl.h: New prototype.
18983 * store-motion.c (struct st_expr): Make avail_stores a vector.
18984 (st_expr_entry): Adjust.
18985 (free_st_expr_entry): Likewise.
18986 (print_store_motion_mems): Likewise.
18987 (find_moveable_store): Likewise.
18988 (compute_store_table): Likewise.
18989 (delete_store): Likewise.
18990 (build_store_vectors): Likewise.
18991
18992 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18993
18994 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18995
18996 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18997
18998 * vec.h (vec_safe_contains): New function.
18999 (vec::contains): Likewise.
19000 (vec::begin): Likewise.
19001 (vec::end): Likewise.
19002
19003 2016-04-23 Jakub Jelinek <jakub@redhat.com>
19004
19005 PR sanitizer/70712
19006 * cfgexpand.c (expand_stack_vars): Fix typo.
19007
19008 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
19009
19010 * system.h (list, map, set, vector): Include conditionally.
19011 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
19012 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
19013 * ipa-icf.c (INCLUDE_LIST): Define.
19014 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
19015 * config/sh/sh.c (INCLUDE_VECTOR): Define.
19016 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
19017 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
19018 * cp/logic.cc (INCLUDE_LIST): Define.
19019 * fortran/trans-common.c (INCLUDE_MAP): Define.
19020
19021 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
19022
19023 * auto-profile.c: Remove <string.h> include.
19024 * ipa-icf-gimple.c: Remove <list> include.
19025 * diagnostic.c: Remove <new> include.
19026 * genmatch.c: Likewise.
19027 * pretty-print.c: Likewise.
19028 * toplev.c: Likewise
19029 * c/c-objc-common.c: Likewise.
19030 * cp/error.c: Likewise.
19031 * fortran/error.c: Likewise.
19032
19033 2016-04-22 Richard Biener <rguenther@suse.de>
19034
19035 * lto-streamer-in.c (input_ssa_names): Do not allocate
19036 GIMPLE_NOP for all SSA names.
19037 * lto-streamer-out.c (output_ssa_names): Do not output
19038 SSA names that should have been released.
19039
19040 2016-04-22 Richard Biener <rguenther@suse.de>
19041
19042 PR tree-optimization/70740
19043 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
19044 VDEF.
19045
19046 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
19047
19048 PR target/70750
19049 * config/i386/predicates.md (call_insn_operand): Replace
19050 sibcall_memory_operand with memory_operand.
19051
19052 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
19053
19054 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
19055 has_single_use() tests.
19056 (register_edge_assert_for_1): Likewise.
19057 (find_assert_locations_1): Check the liveness bitmap instead of
19058 checking has_single_use().
19059
19060 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
19061
19062 PR target/70728
19063 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
19064 Extract AVX-512BW constraint from AVX.
19065
19066 2016-04-21 Richard Biener <rguenther@suse.de>
19067
19068 PR tree-optimization/70725
19069 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
19070 for phi_convertible_by_degenerating_args.
19071 (predicate_all_scalar_phis): Handle single-argument PHIs.
19072
19073 2016-04-21 Richard Biener <rguenther@suse.de>
19074
19075 PR middle-end/70747
19076 * fold-const.c (fold_comparison): Return properly typed
19077 constant boolean.
19078
19079 2016-04-21 Bin Cheng <bin.cheng@arm.com>
19080
19081 PR tree-optimization/70715
19082 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
19083 after expanding BASE using expand_simple_operations.
19084
19085 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19086
19087 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
19088 New transformations.
19089
19090 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19091
19092 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
19093
19094 2016-04-20 Jan Hubicka <jh@suse.cz>
19095
19096 * ipa-inline.c (can_inline_edge_p): Pass caller info to
19097 ultiimate_alias_target.
19098 (update_callee_keys): Likewise.
19099 (lookup_recursive_calls): Likewise.
19100 (speculation_useful_p): Likewise.
19101
19102 2016-04-20 Jan Hubicka <jh@suse.cz>
19103
19104 PR ipa/70018
19105 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
19106 (set_nothrow_flag_1): ... this; handle interposition correctly;
19107 recurse on aliases and thunks.
19108 (cgraph_node::set_nothrow_flag): New.
19109 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
19110 functions compiled with non-call exceptions that binds to current
19111 def.
19112 (propagate_nothrow): Be safe WRT interposition.
19113 * cgraph.h (set_nothrow_flag): Update prototype.
19114
19115 2016-04-18 Jan Hubicka <jh@suse.cz>
19116
19117 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19118 max_loop_iterations_int.
19119 (tree_unswitch_outer_loop): Likewise.
19120
19121 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19122
19123 PR tree-optimization/69489
19124 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
19125 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
19126 Revise dump message.
19127 (if_convertible_bb_p): Remove check on edge count of basic block's
19128 predecessors.
19129
19130 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19131
19132 PR tree-optimization/56625
19133 PR tree-optimization/69489
19134 * tree-data-ref.h (DR_INNERMOST): New macro.
19135 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
19136 hashing struct innermost_loop_behavior.
19137 (ref_DR_map): Remove.
19138 (innermost_DR_map): New map.
19139 (baseref_DR_map): Revise comment.
19140 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
19141 to innermost_DR_map accroding to its innermost loop behavior.
19142 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
19143 to its innermost loop behavior.
19144 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
19145 Add initialization for innermost_DR_map. Record memory reference
19146 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
19147 have innermost loop behavior.
19148 (if_convertible_loop_p): Remove release for ref_DR_map. Release
19149 innermost_DR_map.
19150
19151 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
19152
19153 * config/i386/i386.md (*lea<mode>_general_1): Rename from
19154 *lea_general_1. Use explicit SWI12 mode interator.
19155 (*lea<mode>_general_2): Rename from *lea_general_2.
19156 Use explicit SWI12 mode interator.
19157 (*lea<mode>_general_3): Rename from *lea_general_3.
19158 Use explicit SWI12 mode interator.
19159 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
19160 Use explicit SWI12 mode interator.
19161 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
19162 Use explicit SWI48 mode interator.
19163
19164 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19165
19166 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19167 Short-cut unaligned load and store cases. Handle all integer
19168 vector modes.
19169 (ix86_expand_vector_move_misalign): Short-cut unaligned load
19170 and store cases. Call ix86_avx256_split_vector_move_misalign
19171 directly without checking mode class.
19172
19173 2016-04-20 Andrew Pinski <apinski@cavium.com>
19174 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19175
19176 PR target/64971
19177 * config/aarch64/aarch64.md (sibcall): Force call
19178 address to be DImode for ILP32.
19179 (sibcall_value): Likewise.
19180
19181 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19182
19183 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
19184
19185 2016-04-20 Richard Biener <rguenther@suse.de>
19186
19187 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
19188 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
19189 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
19190 (maybe_push_res_to_seq): Adjust.
19191 * gimple-fold.c (maybe_build_generic_op): Likewise.
19192
19193 2016-04-20 Marek Polacek <polacek@redhat.com>
19194
19195 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
19196 rather than true.
19197
19198 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
19199
19200 * config/i386/sse.md (vec_unpacks_lo_hi): Always
19201 use kmovw to support AVX512F target.
19202
19203 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19204
19205 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
19206
19207 2016-04-20 Marek Polacek <polacek@redhat.com>
19208
19209 PR tree-optimization/70725
19210 * tree-if-conv.c (is_false_predicate): New function.
19211 (predicate_mem_writes): Use it.
19212
19213 2016-04-20 Richard Biener <rguenther@suse.de>
19214
19215 PR tree-optimization/70726
19216 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
19217 shift amounts from a pattern stmt operand.
19218
19219 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19220
19221 PR target/70674
19222 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
19223 stack_restore_from_fpr pattern when restoring r15.
19224 (s390_optimize_prologue): Strip away the memory barrier in the
19225 parallel when trying to get rid of restore insns.
19226 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
19227 definition for loading the stack pointer from an FPR. Compared to
19228 the normal move insn this pattern includes a full memory barrier.
19229
19230 2016-04-19 Jakub Jelinek <jakub@redhat.com>
19231
19232 PR middle-end/70680
19233 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
19234 implicitly linear or lastprivate iterator on the outer context.
19235
19236 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19237
19238 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
19239 alignment check.
19240 * config/i386/i386.md (ssememalign): Removed.
19241 * config/i386/sse.md: Remove ssememalign attribute from patterns.
19242
19243 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19244
19245 PR target/69201
19246 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
19247 const short * to __builtin_ia32_loaddquhi512_mask.
19248 (_mm512_maskz_loadu_epi16): Likewise.
19249 (_mm512_mask_storeu_epi16): Pass short * to
19250 __builtin_ia32_storedquhi512_mask.
19251 (_mm512_mask_loadu_epi8): Pass const char * to
19252 __builtin_ia32_loaddquqi512_mask.
19253 (_mm512_maskz_loadu_epi8): Likewise.
19254 (_mm512_mask_storeu_epi8): Pass char * to
19255 __builtin_ia32_storedquqi512_mask.
19256 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
19257 const double * to __builtin_ia32_loadupd512_mask.
19258 (_mm512_mask_loadu_pd): Likewise.
19259 (_mm512_maskz_loadu_pd): Likewise.
19260 (_mm512_storeu_pd): Pass double * to
19261 __builtin_ia32_storeupd512_mask.
19262 (_mm512_mask_storeu_pd): Likewise.
19263 (_mm512_loadu_ps): Pass const float * to
19264 __builtin_ia32_loadups512_mask.
19265 (_mm512_mask_loadu_ps): Likewise.
19266 (_mm512_maskz_loadu_ps): Likewise.
19267 (_mm512_storeu_ps): Pass float * to
19268 __builtin_ia32_storeups512_mask.
19269 (_mm512_mask_storeu_ps): Likewise.
19270 (_mm512_mask_loadu_epi64): Pass const long long * to
19271 __builtin_ia32_loaddqudi512_mask.
19272 (_mm512_maskz_loadu_epi64): Likewise.
19273 (_mm512_mask_storeu_epi64): Pass long long *
19274 to __builtin_ia32_storedqudi512_mask.
19275 (_mm512_loadu_si512): Pass const int * to
19276 __builtin_ia32_loaddqusi512_mask.
19277 (_mm512_mask_loadu_epi32): Likewise.
19278 (_mm512_maskz_loadu_epi32): Likewise.
19279 (_mm512_storeu_si512): Pass int * to
19280 __builtin_ia32_storedqusi512_mask.
19281 (_mm512_mask_storeu_epi32): Likewise.
19282 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
19283 char * to __builtin_ia32_storedquqi256_mask.
19284 (_mm_mask_storeu_epi8): Likewise.
19285 (_mm256_mask_loadu_epi16): Pass const short * to
19286 __builtin_ia32_loaddquhi256_mask.
19287 (_mm256_maskz_loadu_epi16): Likewise.
19288 (_mm_mask_loadu_epi16): Pass const short * to
19289 __builtin_ia32_loaddquhi128_mask.
19290 (_mm_maskz_loadu_epi16): Likewise.
19291 (_mm256_mask_loadu_epi8): Pass const char * to
19292 __builtin_ia32_loaddquqi256_mask.
19293 (_mm256_maskz_loadu_epi8): Likewise.
19294 (_mm_mask_loadu_epi8): Pass const char * to
19295 __builtin_ia32_loaddquqi128_mask.
19296 (_mm_maskz_loadu_epi8): Likewise.
19297 (_mm256_mask_storeu_epi16): Pass short * to.
19298 __builtin_ia32_storedquhi256_mask.
19299 (_mm_mask_storeu_epi16): Pass short * to.
19300 __builtin_ia32_storedquhi128_mask.
19301 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
19302 const double * to __builtin_ia32_loadupd256_mask.
19303 (_mm256_maskz_loadu_pd): Likewise.
19304 (_mm_mask_loadu_pd): Pass onst double * to
19305 __builtin_ia32_loadupd128_mask.
19306 (_mm_maskz_loadu_pd): Likewise.
19307 (_mm256_mask_storeu_pd): Pass double * to
19308 __builtin_ia32_storeupd256_mask.
19309 (_mm_mask_storeu_pd): Pass double * to
19310 __builtin_ia32_storeupd128_mask.
19311 (_mm256_mask_loadu_ps): Pass const float * to
19312 __builtin_ia32_loadups256_mask.
19313 (_mm256_maskz_loadu_ps): Likewise.
19314 (_mm_mask_loadu_ps): Pass const float * to
19315 __builtin_ia32_loadups128_mask.
19316 (_mm_maskz_loadu_ps): Likewise.
19317 (_mm256_mask_storeu_ps): Pass float * to
19318 __builtin_ia32_storeups256_mask.
19319 (_mm_mask_storeu_ps): ass float * to
19320 __builtin_ia32_storeups128_mask.
19321 (_mm256_mask_loadu_epi64): Pass const long long * to
19322 __builtin_ia32_loaddqudi256_mask.
19323 (_mm256_maskz_loadu_epi64): Likewise.
19324 (_mm_mask_loadu_epi64): Pass const long long * to
19325 __builtin_ia32_loaddqudi128_mask.
19326 (_mm_maskz_loadu_epi64): Likewise.
19327 (_mm256_mask_storeu_epi64): Pass long long * to
19328 __builtin_ia32_storedqudi256_mask.
19329 (_mm_mask_storeu_epi64): Pass long long * to
19330 __builtin_ia32_storedqudi128_mask.
19331 (_mm256_mask_loadu_epi32): Pass const int * to
19332 __builtin_ia32_loaddqusi256_mask.
19333 (_mm256_maskz_loadu_epi32): Likewise.
19334 (_mm_mask_loadu_epi32): Pass const int * to
19335 __builtin_ia32_loaddqusi128_mask.
19336 (_mm_maskz_loadu_epi32): Likewise.
19337 (_mm256_mask_storeu_epi32): Pass int * to
19338 __builtin_ia32_storedqusi256_mask.
19339 (_mm_mask_storeu_epi32): Pass int * to
19340 __builtin_ia32_storedqusi128_mask.
19341 * config/i386/i386-builtin-types.def (PCSHORT): New.
19342 (PINT64): Likewise.
19343 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
19344 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
19345 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
19346 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
19347 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
19348 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
19349 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
19350 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
19351 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
19352 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
19353 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
19354 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
19355 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
19356 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
19357 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
19358 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
19359 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
19360 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
19361 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
19362 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
19363 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
19364 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
19365 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
19366 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
19367 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
19368 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
19369 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
19370 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
19371 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
19372 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
19373 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
19374 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
19375 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
19376 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
19377 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
19378 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
19379 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
19380 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
19381 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
19382 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
19383 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
19384 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
19385 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
19386 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
19387 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
19388 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
19389 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
19390 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
19391 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
19392 use UNSPEC_STOREU.
19393 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
19394 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
19395 load nor store.
19396 (ix86_expand_vector_move_misalign): Likewise.
19397 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
19398 to scalar function prototype for unaligned load/store builtins.
19399 (ix86_expand_special_args_builtin): Updated.
19400 * config/i386/sse.md (UNSPEC_LOADU): Removed.
19401 (UNSPEC_STOREU): Likewise.
19402 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
19403 (VI_ULOADSTORE_F_AVX512VL): Likewise.
19404 (ssescalarsize): Handle V4TI, V2TI and V1TI.
19405 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19406 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19407 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
19408 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
19409 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
19410 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
19411 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
19412 (<avx512>_storedqu<mode>_mask): Likewise.
19413 (*sse4_2_pcmpestr_unaligned): Likewise.
19414 (*sse4_2_pcmpistr_unaligned): Likewise.
19415 (*mov<mode>_internal): Renamed to ...
19416 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
19417 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
19418 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
19419 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
19420
19421 2016-04-19 Richard Biener <rguenther@suse.de>
19422
19423 PR tree-optimization/70171
19424 * tree-ssa-phiprop.c: Include stor-layout.h.
19425 (phiprop_insert_phi): Handle the aggregate copy case.
19426 (propagate_with_phi): Likewise.
19427
19428 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
19429
19430 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
19431 instead of simplify_gen_subreg (... , 0).
19432 (ix86_delegitimize_address): Ditto.
19433 (ix86_split_divmod): Ditto.
19434 (ix86_split_copysign_const): Ditto.
19435 (ix86_split_copysign_var): Ditto.
19436 (ix86_expand_args_builtin): Ditto.
19437 (ix86_expand_round_builtin): Ditto.
19438 (ix86_expand_special_args_builtin): Ditto.
19439 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
19440 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
19441 (udivmodqi4): Ditto.
19442 (absneg splitters): Ditto.
19443 (*jcc_bt<mode>_1): Ditto.
19444
19445 2016-04-19 Richard Biener <rguenther@suse.de>
19446
19447 PR tree-optimization/70724
19448 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
19449 restoring out from ...
19450 (free_scc_vn): ... here.
19451 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
19452 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
19453 tail merging.
19454 (pass_fre::execute): Restore SSA info.
19455
19456 2016-04-19 Richard Biener <rguenther@suse.de>
19457
19458 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
19459 * gimple-walk.c (walk_gimple_op): Initialize it.
19460 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
19461 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
19462 remapping SSA names of defs.
19463 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
19464 adjustment.
19465
19466 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
19467
19468 PR middle-end/70689
19469 * lra-constraints.c (equiv_substition_p): New.
19470 (process_alt_operands): Use it.
19471 (swap_operands): Swap it.
19472 (curr_insn_transform): Update it.
19473
19474 2016-04-18 Michael Matz <matz@suse.de>
19475
19476 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
19477 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
19478 * tree-core.h (tree_type_common.align): Use bit-field.
19479 (tree_type_common.spare): New.
19480 (tree_decl_common.off_align): Make smaller.
19481 (tree_decl_common.align): Use bit-field.
19482
19483 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
19484 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
19485 (scan_sharing_clauses): Ditto.
19486 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19487 (omp_finish_file): Ditto.
19488 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
19489 (layout_decl): Ditto.
19490 (relayout_decl): Ditto.
19491 (finalize_record_size): Use SET_TYPE_ALIGN.
19492 (finalize_type_size): Ditto.
19493 (finish_builtin_struct): Ditto.
19494 (layout_type): Ditto.
19495 (initialize_sizetypes): Ditto.
19496 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
19497 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
19498 (lookup_field_for_decl): Use SET_DECL_ALIGN.
19499 (get_chain_field): Ditto.
19500 (get_trampoline_type): Ditto.
19501 (get_nl_goto_field): Ditto.
19502 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19503 SET_DECL_ALIGN.
19504 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
19505 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
19506 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19507 (build_qualified_type): Use SET_TYPE_ALIGN.
19508 (build_aligned_type, build_range_type_1): Ditto.
19509 (build_atomic_base): Ditto.
19510 (build_common_tree_nodes): Ditto.
19511 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
19512 (expand_one_stack_var_at): Ditto.
19513 * coverage.c (build_var): Use SET_DECL_ALIGN.
19514 * except.c (init_eh): Ditto.
19515 * function.c (assign_parm_setup_block): Ditto.
19516 * symtab.c (increase_alignment_1): Ditto.
19517 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
19518 * tree-vect-stmts.c (ensure_base_align): Ditto.
19519 * varasm.c (align_variable): Ditto.
19520 (assemble_variable): Ditto.
19521 (build_constant_desc): Ditto.
19522 (output_constant_def_contents): Ditto.
19523
19524 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
19525 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
19526 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
19527 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
19528 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
19529
19530 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
19531
19532 PR target/70708
19533 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
19534 replace %vmovsd with "%vmovq".
19535 (vec_concatv2df): Likewise.
19536
19537 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
19538
19539 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
19540 (*vec_extractv2si_0): Ditto.
19541 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
19542 (zero_extended_scalar_load_operand splitters): Ditto.
19543 (vec_extract splitters): Ditto.
19544 (*vec_extractv4si_0_zext): Ditto.
19545 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
19546 and lowpart_subreg.
19547 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
19548 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
19549 (*sse4_1_extractps): Use lowpart_subreg.
19550 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
19551
19552 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19553
19554 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
19555 gld requirements.
19556 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
19557 Mention Solaris 11 packaging changes.
19558 Update gas and gld requirements.
19559 Remove reference to pre-Solaris 10 bug.
19560 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
19561 systems and bugs.
19562 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
19563 with cc.
19564
19565 2016-04-17 Jan Hubicka <jh@suse.cz>
19566
19567 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
19568 max_loop_iterations_int.
19569
19570 2016-04-18 Richard Biener <rguenther@suse.de>
19571
19572 PR tree-optimization/43434
19573 * tree-ssa-structalias.c (struct vls_data): New.
19574 (visit_loadstore): Handle all pointer-based accesses.
19575 (compute_dependence_clique): Compute a bitmap of restrict tags
19576 assigned bases and pass it to visit_loadstore.
19577
19578 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
19579
19580 PR target/70711
19581 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
19582 armv8.1-a and armv8.1-a+crc.
19583
19584 2016-04-18 Richard Biener <rguenther@suse.de>
19585
19586 PR tree-optimization/70701
19587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
19588 references after translating through a memcpy.
19589
19590 2016-04-18 Richard Biener <rguenther@suse.de>
19591
19592 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
19593 (compute_antic): ... here. For partial antic use regular
19594 postorder and scrap iteration.
19595 (compute_partial_antic_aux): Remove unused return value.
19596 (init_pre): Do not allocate postorder.
19597 (fini_pre): Do not free postorder.
19598
19599 2016-04-18 Richard Biener <rguenther@suse.de>
19600
19601 PR middle-end/37870
19602 * expmed.c (extract_bit_field_1): Remove broken case
19603 using a wider MODE_INT mode.
19604
19605 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
19606
19607 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
19608 unless compiling with at least GCC-4.8.
19609
19610 2016-04-17 Jan Hubicka <jh@suse.cz>
19611
19612 PR bootstrap/70706
19613 * graphite.c (graphite_finalize): Update call to
19614 tree_estimate_probability.
19615 * predict.h (tree_estimate_probability): Update prototype.
19616
19617 2016-04-17 Jan Hubicka <jh@suse.cz>
19618
19619 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
19620 (tree_estimate_probability): Likewise.
19621 (pass_profile::execute): Update.
19622 (report_predictor_hitrates): New function.
19623 * profile.c (compute_branch_probabilities): Use it.
19624 * predict.h (report_predictor_hitrates): Declare.
19625
19626 2016-04-17 Jan Hubicka <jh@suse.cz>
19627
19628 PR ipa/70018
19629 * cgraph.h (cgraph_node::set_const_flag,
19630 cgraph_node::set_pure_flag): Update prototype to return bool;
19631 update comment.
19632 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
19633 of interposable symbol are interposable, too.
19634 (cgraph_set_const_flag_1): Rename to ...
19635 (set_const_flag_1): ... this one; change to self recursive function
19636 instead of call_for_symbol_thunks_and_aliases. Handle correctly
19637 clearnig the flag in all variants and also virtual thunks of const
19638 functions are pure; track if any change was done.
19639 (cgraph_node::set_const_flag): Update.
19640 (struct set_pure_flag_info): New struct.
19641 (cgraph_set_pure_flag_1): Rename to ...
19642 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
19643 rather than pointer encoded flags; track if any changes was done;
19644 handle correctly clearning flag and setting flag of aliases already
19645 declared const.
19646 (cgraph_node::set_pure_flag): Update.
19647 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
19648
19649 2016-04-17 Tom de Vries <tom@codesourcery.com>
19650
19651 PR other/70433
19652 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
19653 backslash in label.
19654
19655 2016-04-17 Tom de Vries <tom@codesourcery.com>
19656
19657 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
19658 '{}<> ' as escape-for-record.
19659
19660 2016-04-17 Tom de Vries <tom@codesourcery.com>
19661
19662 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
19663 structure.
19664
19665 2016-04-17 Tom de Vries <tom@codesourcery.com>
19666
19667 PR other/70185
19668 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19669 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19670 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19671 * passes.c (finish_optimization_passes): Only call
19672 finish_graph_dump_file if dfi->graph_dump_initialized.
19673 (execute_function_dump, pass_init_dump_file): Use
19674 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19675
19676 2016-04-17 Tom de Vries <tom@codesourcery.com>
19677
19678 PR tree-optimization/70256
19679 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19680 (debug_varmap): New function.
19681
19682 2016-04-17 Tom de Vries <tom@codesourcery.com>
19683
19684 PR other/70183
19685 * passes.c (pass_manager::register_pass): Propagate pflags.
19686
19687 2016-04-17 Tom de Vries <tom@codesourcery.com>
19688
19689 PR other/68875
19690 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19691 * passes.c (pass_manager::pass_manager): Declare and init p_start in
19692 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
19693 check if it's equal to p_start.
19694 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19695
19696 2016-04-15 Jan Hubicka <jh@suse.cz>
19697
19698 PR ipa/70018
19699 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19700 function does not bind to current def.
19701 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19702 handle conservatively calls to functions that does not need to bind
19703 to current def.
19704 (check_call): Update call of worse_state.
19705 (ignore_edge_for_nothrow): Update.
19706 (ignore_edge_for_pure_const): Likewise.
19707 (propagate_pure_const): Update calls to worse_state.
19708 (skip_function_for_local_pure_const): Reformat comments.
19709
19710 2016-04-15 Jan Hubicka <jh@suse.cz>
19711
19712 PR ipa/70018
19713 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19714 (cgraph_node::function_symbol): Likewise.
19715 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19716 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19717 (symtab_node::ultimate_alias_target): Add REF parameter.
19718 (symtab_node::binds_to_current_def_p): Declare.
19719 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19720 (cgraph_node::function_symbol): Likewise.
19721 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19722 (cgraph_node::get_availability): Likewise.
19723 (cgraph_edge::binds_to_current_def_p): New inline function.
19724 (varpool_node::get_availability): Add REF parameter.
19725 (varpool_node::ultimate_alias_target): Likewise.
19726 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19727 (symtab_node::binds_to_current_def_p): Likewise.
19728 * varpool.c (varpool_node::get_availability): Likewise.
19729
19730 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19731
19732 PR target/70662
19733 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19734 Fix mode size check.
19735
19736 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19737
19738 * BASE-VER: Set to 7.0.0.
19739
19740 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
19741
19742 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19743
19744 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19745
19746 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19747 architecture revisions.
19748
19749 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
19750
19751 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19752 * config/i386/i386.c (ix86_using_red_zone): No longer static.
19753 * config/i386/i386.md (stack decrement to push peepholes): Guard
19754 with !x86_using_red_zone ().
19755
19756 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19757
19758 PR c++/70675
19759 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19760 to dump_generic_node.
19761 (NIY): Pass also flags to do_niy.
19762
19763 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
19764
19765 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19766 (simd_clone_vector_of_formal_parm_types)
19767 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19768 (simd_clone_mangle, simd_clone_create)
19769 (simd_clone_adjust_return_type, create_tmp_simd_array)
19770 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19771 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19772 (ipa_simd_modify_function_body, simd_clone_linear_addend)
19773 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19774 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19775 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19776 * omp-simd-clone.c: ... this new file.
19777 (simd_clone_vector_of_formal_parm_types): Make it static.
19778 * Makefile.in (OBJS): Add omp-simd-clone.o.
19779
19780 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19781
19782 PR target/70662
19783 * config/i386/sse.md: Use proper memory operand modifiers.
19784
19785
19786 2016-04-15 Richard Biener <rguenther@suse.de>
19787 Alan Modra <amodra@gmail.com>
19788
19789 PR tree-optimization/70130
19790 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19791 when alignment stays not the same and no not use the realign
19792 scheme then.
19793
19794 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19795
19796 PR target/70669
19797 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19798 direct move handlers for KFmode. Change TFmode handlers test from
19799 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19800
19801 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19802
19803 PR c++/70594
19804 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19805 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19806 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19807 * tree-ssa-live.c (remove_unused_scope_block_p): When
19808 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19809 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19810 block_ultimate_origin is FUNCTION_DECL.
19811 (remove_unused_locals): If current_function_decl is
19812 polymorphic_ctor_dtor_p, pass initial true to
19813 remove_unused_scope_block_p' is_ctor_dtor_block.
19814
19815 2016-04-14 Martin Sebor <msebor@redhat.com>
19816
19817 PR c++/69517
19818 PR c++/70019
19819 PR c++/70588
19820 * doc/extend.texi (Variable Length): Revert.
19821
19822 2016-04-14 Marek Polacek <polacek@redhat.com>
19823 Jan Hubicka <hubicka@ucw.cz>
19824
19825 PR c++/70029
19826 * tree.c (verify_type): Disable the canonical type of main variant
19827 check.
19828
19829 2016-04-14 Jason Merrill <jason@redhat.com>
19830
19831 * cfgexpand.c, expr.c: Revert previous change.
19832
19833 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19834
19835 PR middle-end/70643
19836 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19837 when building a mem ref for the incoming reduction variable.
19838
19839 2016-04-14 Richard Biener <rguenther@suse.de>
19840
19841 PR tree-optimization/70614
19842 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19843 loop if the evolution dropped to chrec_dont_know.
19844 (interpret_condition_phi): Likewise.
19845
19846 2016-04-14 Richard Biener <rguenther@suse.de>
19847
19848 PR tree-optimization/70623
19849 * tree-ssa-pre.c (changed_blocks): Make global ...
19850 (compute_antic): ... local here. Move and fix worklist
19851 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19852 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19853 worklist handling, dump when ANTIC_IN changed.
19854 (compute_partial_antic_aux): Remove worklist handling.
19855 (init_pre): Do not compute post dominators. Add a comment about
19856 the CFG order chosen.
19857 (fini_pre): Do not free post dominators.
19858
19859 2016-04-13 Martin Sebor <msebor@redhat.com>
19860
19861 PR c++/69517
19862 PR c++/70019
19863 PR c++/70588
19864 * doc/extend.texi (Variable Length): Document C++ specifics.
19865
19866 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19867
19868 PR c++/70641
19869 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19870 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19871 eh edges have been purged.
19872
19873 PR c++/70594
19874 * tree-sra.c (create_access_replacement,
19875 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19876 gets fancy name.
19877 * tree-pretty-print.c (dump_fancy_name): New function.
19878 (dump_decl_name, dump_generic_node): Use it.
19879
19880 2016-04-13 Jason Merrill <jason@redhat.com>
19881
19882 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19883 * expr.c (expand_expr_real_1): Likewise.
19884
19885 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19886
19887 * config/i386/i386.md (kunpckhi): Swap operands.
19888 (kunpcksi): Likewise.
19889 (kunpckdi): Likewise.
19890 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19891 (vec_pack_trunc_<mode>): Likewise.
19892
19893 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19894
19895 PR debug/70628
19896 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19897
19898 PR middle-end/70633
19899 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19900 gimplification turns some element into non-constant.
19901
19902 PR debug/70628
19903 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19904 * explow.c (convert_memory_address_addr_space_1): No longer static,
19905 add NO_EMIT argument and don't call convert_modes if true, pass
19906 it down recursively, remove break after return.
19907 (convert_memory_address_addr_space): Adjust caller.
19908 * simplify-rtx.c (simplify_unary_operation_1): Call
19909 convert_memory_address_addr_space_1 instead of convert_memory_address,
19910 if it returns NULL, don't simplify.
19911
19912 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19913
19914 PR target/70630
19915 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19916
19917 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19918
19919 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19920 Bump the upper SIMDLEN limits, so that if the return type or
19921 characteristic type if the return type is void can be passed in
19922 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19923 allowed.
19924
19925 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19926
19927 PR target/70640
19928 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19929 Do not use "=" constraint on an input constraint.
19930 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19931 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19932 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19933 generates (neg (abs ...)) instead of (abs ...).
19934
19935 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19936
19937 PR rtl-optimization/70596
19938 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19939 just invalidate LRA data and reset them. Adjust dump wording.
19940
19941 2016-04-12 Martin Liska <mliska@suse.cz>
19942
19943 Revert
19944 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19945
19946 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19947 estimates here.
19948 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19949 max_loop_iterations_int.
19950 (tree_unswitch_outer_loop): Likewise.
19951 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19952 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19953
19954 2016-04-12 Tom de Vries <tom@codesourcery.com>
19955
19956 PR tree-optimization/68756
19957 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19958 instead of new_name.
19959
19960 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19961
19962 PR tree-optimization/70602
19963 * tree-sra.c (generate_subtree_copies): Don't write anything into
19964 constant pool decls.
19965
19966 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19967 regardless whether there are depend clauses or not.
19968
19969 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19970
19971 PR target/70381
19972 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19973 target attribute and pragma from changing the -mfloat128
19974 and -mfloat128-hardware options.
19975
19976 * doc/extend.texi (Additional Floating Types): Document PowerPC
19977 __float128 restrictions.
19978
19979 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19980
19981 PR target/70133
19982 * config/aarch64/driver-aarch64.c
19983 (aarch64_get_extension_string_for_isa_flags): New.
19984 (arch_extension): Rename to...
19985 (aarch64_arch_extension): ...This.
19986 (ext_to_feat_string): Rename to...
19987 (aarch64_extensions): ...This.
19988 (aarch64_core_data): Keep track of architecture extension flags.
19989 (cpu_data): Rename to...
19990 (aarch64_cpu_data): ...This.
19991 (aarch64_arch_driver_info): Keep track of architecture extension
19992 flags.
19993 (get_arch_name_from_id): Rename to...
19994 (get_arch_from_id): ...This, change return type.
19995 (host_detect_local_cpu): Update and reformat for renames, handle
19996 extensions through common infrastructure.
19997
19998 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19999
20000 PR target/70133
20001 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
20002 track of a canonical flag name.
20003 (all_extensions): Likewise.
20004 (arch_to_arch_name): Also track extension flags enabled by the arch.
20005 (all_architectures): Likewise.
20006 (aarch64_parse_extension): Move to here.
20007 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
20008 rework.
20009 (aarch64_rewrite_selected_cpu): Update for above change.
20010 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
20011 are handled, such that the single explicit value enabled by an
20012 extension is kept seperate from the implicit values it also enables.
20013 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
20014 to here.
20015 (aarch64_parse_extension): New.
20016 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
20017 here to config/aarch64/aarch64-protos.h.
20018 (aarch64_parse_extension): Move from here to
20019 common/config/aarch64/aarch64-common.c.
20020 (aarch64_option_print): Update.
20021 (aarch64_declare_function_name): Likewise.
20022 (aarch64_start_file): Likewise.
20023 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
20024 the canonical flag for extensions.
20025 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
20026 flags.
20027
20028 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20029
20030 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
20031 AARCH64_FL_CRC.
20032
20033 2016-04-09 Tom de Vries <tom@codesourcery.com>
20034
20035 PR tree-optimization/68953
20036 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
20037 first to last subscript.
20038
20039 2016-04-09 Jakub Jelinek <jakub@redhat.com>
20040
20041 PR tree-optimization/70586
20042 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
20043 for any calls.
20044
20045 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
20046
20047 PR lto/70289
20048 PR ipa/70348
20049 PR tree-optimization/70373
20050 PR middle-end/70533
20051 PR middle-end/70534
20052 PR middle-end/70535
20053 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
20054 clauses for acc parallel reductions as necessary. Error on those
20055 that are private.
20056 * omp-low.c (scan_sharing_clauses): Don't install variables which
20057 are used in acc parallel reductions.
20058 (lower_rec_input_clauses): Remove dead code.
20059 (lower_oacc_reductions): Add support for reference reductions.
20060 (lower_reduction_clauses): Remove dead code.
20061 (lower_omp_target): Don't remap variables appearing in acc parallel
20062 reductions.
20063 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
20064
20065 2016-04-08 Jakub Jelinek <jakub@redhat.com>
20066
20067 PR middle-end/70593
20068 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
20069 with multiple SSA_NAME defs, force the outputs other than first
20070 to be live before calling live_track_process_def on each output.
20071
20072 PR rtl-optimization/70574
20073 * fwprop.c (forward_propagate_and_simplify): Don't add
20074 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
20075 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
20076 paradoxical subregs within *loc.
20077
20078 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
20079
20080 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
20081 -ftree-parallelize-loops={0,1}.
20082 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20083 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20084 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20085 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20086 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20087
20088 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
20089
20090 PR sanitizer/70541
20091 * asan.c (instrument_derefs): If we get unknown location, extract it
20092 with EXPR_LOCATION.
20093 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
20094
20095 2016-04-08 Tom de Vries <tom@codesourcery.com>
20096
20097 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
20098 implicit firstprivate clause.
20099
20100 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20101
20102 PR target/70566
20103 * config/arm/thumb2.md (tst + branch-> lsls + branch
20104 peephole below *orsi_not_shiftsi_si): Require that condition
20105 register is dead after the peephole.
20106 (second peephole after the above): Likewise.
20107
20108 2016-04-08 Alan Modra <amodra@gmail.com>
20109
20110 PR target/70117
20111 * builtins.c (fold_builtin_classify): For IBM extended precision,
20112 look at just the high-order double to test for NaN.
20113 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
20114 test just the high double for Inf but both doubles for subnormal
20115 limit.
20116
20117 2016-04-07 Jakub Jelinek <jakub@redhat.com>
20118
20119 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
20120 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
20121 node->simdclone->mask_mode != VOIDmode masks.
20122 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
20123 earlier, use it instead of node->simdclone.
20124 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20125 Set clonei->mask_mode.
20126
20127 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20128
20129 PR c/70436
20130 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
20131 Pass it through to cp_parser_already_scoped_statement.
20132 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
20133 it through to cp_parser_statement.
20134 (cp_parser_statement): Pass IF_P through to
20135 cp_parser_iteration_statement.
20136 (cp_parser_pragma): Adjust call to
20137 cp_parser_iteration_statement.
20138
20139 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20140
20141 PR c/70436
20142 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
20143 resolve a future -Wparentheses warning.
20144 * omp-low.c (scan_sharing_clauses): Likewise.
20145 * tree-parloops.c (eliminate_local_variables): Likewise.
20146
20147 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
20148
20149 PR rtl-optimization/70398
20150 * lra-constraints.c (process_address_1): Check zero scale and code
20151 for reloading with zero scale.
20152
20153 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
20154
20155 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
20156 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
20157
20158 2016-04-06 Jakub Jelinek <jakub@redhat.com>
20159
20160 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20161 Add support for AVX512F clones, include them by default for
20162 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
20163 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
20164 up to 128.
20165
20166 PR middle-end/70550
20167 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
20168 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
20169 firstprivate clauses.
20170 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
20171 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
20172 (lower_omp_target): Set TREE_NO_WARNING for
20173 non-addressable possibly uninitialized vars which are copied into
20174 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
20175
20176 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
20177
20178 * config/pa/predicates.md (integer_store_memory_operand): Accept
20179 REG+D operands with a large offset when reload_in_progress is true.
20180 (floating_point_store_memory_operand): Likewise.
20181
20182 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20183
20184 PR c++/70336
20185 * match.pd (nested int casts): Limit to GIMPLE.
20186
20187 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
20188
20189 PR ipa/66223
20190 * ipa-devirt.c (maybe_record_node): Fix comment; use
20191 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
20192
20193 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20194
20195 PR rtl-optimization/70542
20196 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
20197 if there are any uses other than insn or debug insns.
20198
20199 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
20200 Jakub Jelinek <jakub@redhat.com>
20201
20202 PR tree-optimization/70509
20203 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
20204 Shift HOST_WIDE_INT_1U instead of 1.
20205
20206 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
20207
20208 PR tree-optimization/70509
20209 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
20210 of the vector base type for index.
20211
20212 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
20213
20214 PR target/70510
20215 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
20216
20217 2016-04-05 Richard Biener <rguenther@suse.de>
20218
20219 PR tree-optimization/70526
20220 * tree-sra.c (build_ref_for_offset): Use prev_base to
20221 extract the alias pointer type.
20222
20223 2016-04-05 Richard Biener <rguenther@suse.de>
20224
20225 * dse.c (struct store_info): Remove alias_set member.
20226 (struct read_info_type): Likewise.
20227 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
20228 spill_deleted, clear_alias_set_lookup): Remove.
20229 (get_group_info): Remove dead base == NULL_RTX case.
20230 (dse_step0): Remove initialization of removed variables.
20231 (delete_dead_store_insn): Reomve alias set dumping.
20232 (free_read_records): Remove alias_set handling.
20233 (canon_address): Remove alias_set_out parameter.
20234 (record_store): Remove spill_alias_set, it's always zero.
20235 (check_mem_read_rtx): Likewise.
20236 (dse_step2): Rename from ...
20237 (dse_step2_nospill): ... this. Adjust.
20238 (scan_stores): Rename from ...
20239 (scan_stores_nospill): ... this.
20240 (scan_reads): Rename from ...
20241 (scan_reads_nospill): ... this.
20242 (scan_stores_spill, scan_reads_spill): Remove.
20243 (dse_step3_scan): Remove for_spills argument which is always false.
20244 (dse_step3): Likewise.
20245 (dse_step5): Rename from ...
20246 (dse_step5_nospill): ... this. Remove alias_set handling.
20247 (rest_of_handle_dse): Adjust.
20248
20249 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20250
20251 PR target/70525
20252 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
20253 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
20254 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
20255 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
20256
20257 2016-04-05 Richard Biener <rguenther@suse.de>
20258
20259 PR middle-end/70499
20260 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
20261 non-register type temporaries into SSA.
20262
20263 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
20264
20265 PR ipa/66223
20266 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
20267 calls when sanitizing.
20268 (possible_polymorphic_call_target_p): Fix formatting.
20269
20270 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20271 Jakub Jelinek <jakub@redhat.com>
20272
20273 PR middle-end/70457
20274 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
20275 to ensure a call statement is compatible with a built-in's
20276 prototype.
20277 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
20278 Likewise.
20279
20280 2016-04-04 Richard Biener <rguenther@suse.de>
20281
20282 PR rtl-optimization/70484
20283 * rtl.h (canon_output_dependence): Declare.
20284 * alias.c (canon_output_dependence): New function.
20285 * dse.c (record_store): Use canon_output_dependence rather
20286 than canon_true_dependence.
20287
20288 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20289
20290 PR ipa/68881
20291 * cgraph.h (symtab_node::copy_visibility_from): New function.
20292 * symtab.c (symtab_node::copy_visibility_from): New function.
20293 * ipa-visibility.c (optimize_weakref): New function.
20294 (function_and_variable_visibility): Use it.
20295
20296 2016-04-04 Martin Liska <mliska@suse.cz>
20297
20298 PR hsa/70402
20299 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
20300 value that is really in range handled by SBR instruction.
20301 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
20302 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
20303 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
20304
20305 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
20306
20307 PR target/70416
20308 PR target/67391
20309 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
20310 set, but not for SP_REG operands.
20311
20312 2016-04-02 Martin Sebor <msebor@redhat.com>
20313
20314 PR c++/67376
20315 * fold-const.c (maybe_nonzero_address): New function.
20316 (fold_comparison): Call it. Fold equality and relational
20317 expressions involving null pointers.
20318 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
20319
20320 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
20321
20322 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
20323 the "Y" constraint (scalar FP 0.0 immediate).
20324
20325 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
20326 Add the "const_double" to the list of operand constraints.
20327
20328 2016-04-01 Jakub Jelinek <jakub@redhat.com>
20329
20330 PR rtl-optimization/70467
20331 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
20332 If low word of the last operand is 0, just emit addition/subtraction
20333 for the high word.
20334
20335 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20336
20337 PR target/70404
20338 * config/s390/s390.c (s390_expand_insv): Check for everything
20339 constant instead of just VOIDmode stuff.
20340
20341 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20342
20343 PR target/70496
20344 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
20345
20346 2016-04-01 Nathan Sidwell <nathan@acm.org>
20347
20348 * tree.def (TRY_CATCH_EXPR): Correct documentation.
20349
20350 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
20351
20352 PR rtl-optimization/70461
20353 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
20354 is necessary.
20355
20356 2016-03-31 Martin Liska <mliska@suse.cz>
20357
20358 PR hsa/70399
20359 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
20360 a tree value or an immediate integer value to a buffer
20361 that is eventually copied to a BRIG section.
20362 (emit_immediate_operand): Call the function here.
20363 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
20364 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
20365 of class' fields that are removed.
20366 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
20367 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
20368 m_brig_repr_size fields.
20369
20370 2016-03-31 Martin Liska <mliska@suse.cz>
20371
20372 PR hsa/70391
20373 * hsa-gen.c (hsa_function_representation::update_dominance): New
20374 function.
20375 (convert_addr_to_flat_segment): Likewise.
20376 (gen_hsa_memory_set): New alignment argument.
20377 (gen_hsa_ctor_assignment): Likewise.
20378 (gen_hsa_insns_for_single_assignment): Provide alignment
20379 to gen_hsa_ctor_assignment.
20380 (gen_hsa_insns_for_direct_call): Add new argument.
20381 (expand_lhs_of_string_op): New function.
20382 (expand_string_operation_builtin): Likewise.
20383 (expand_memory_copy): New function.
20384 (expand_memory_set): New function.
20385 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
20386 (convert_switch_statements): Change signature.
20387 (generate_hsa): Use a return value of the function.
20388 (pass_gen_hsail::execute): Do not call
20389 convert_switch_statements here.
20390 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
20391 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
20392 (hsa_function_representation::update_dominance): New function.
20393
20394 2016-03-31 Martin Liska <mliska@suse.cz>
20395
20396 PR hsa/70391
20397 * hsa-brig.c (emit_directive_variable): Emit alignment
20398 according to hsa_symbol::m_align.
20399 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
20400 (dump_hsa_symbol): Dump alignment of HSA symbols.
20401 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
20402 (gen_hsa_addr_with_align): New function.
20403 (hsa_bitmemref_alignment): Use newly added function.
20404 (gen_hsa_insns_for_load): Likewise.
20405 (gen_hsa_insns_for_store): Likewise.
20406 (gen_hsa_memory_copy): New argument added.
20407 (gen_hsa_insns_for_single_assignment): Respect
20408 alignment for assignments processed via gen_hsa_memory_copy.
20409 (gen_hsa_insns_for_direct_call): Likewise.
20410 (gen_hsa_insns_for_return): Likewise.
20411 (gen_function_def_parameters): Set default alignment.
20412 * hsa.c (hsa_object_alignment): New function.
20413 (hsa_byte_alignment): Pasted function.
20414 * hsa.h (hsa_symbol::m_align): New field.
20415
20416 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20417
20418 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
20419 scratch field for goto case.
20420
20421 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
20422
20423 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
20424
20425 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
20426
20427 PR target/70442
20428 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
20429 (scalar_chain::convert_insn): Call convert_op for reg
20430 moves to handle undefined registers.
20431
20432 2016-03-31 Nathan Sidwell <nathan@acm.org>
20433
20434 PR c++/70393
20435 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
20436 Assert we don't want to move backwards.
20437
20438 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
20439
20440 PR target/70453
20441 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
20442
20443 2016-03-31 Jakub Jelinek <jakub@redhat.com>
20444
20445 PR rtl-optimization/70460
20446 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
20447 with operand from REG_LABEL_OPERAND, instead substitute
20448 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
20449 Don't do anything for REG_NON_LOCAL_GOTO jumps.
20450
20451 2016-03-31 Martin Liska <mliska@suse.cz>
20452
20453 * passes.c (execute_one_pass): Do not call
20454 todo_after for a discarded function.
20455
20456 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20457
20458 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
20459 (no_cost, infinite_cost): Initialize the new field.
20460 (get_computation_cost_at): Record setup cost.
20461 (determine_use_iv_cost_address): Skip cost computation for sub
20462 uses if we can estimate it without losing accuracy.
20463
20464 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20465
20466 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
20467 estimates here.
20468 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20469 max_loop_iterations_int.
20470 (tree_unswitch_outer_loop): Likewise.
20471 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
20472 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20473
20474 2016-03-30 Richard Biener <rguenther@suse.de>
20475
20476 PR middle-end/70450
20477 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
20478
20479 2016-03-30 Jakub Jelinek <jakub@redhat.com>
20480
20481 PR target/70421
20482 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
20483 in gen_blendm expander.
20484
20485 2016-03-30 Nick Clifton <nickc@redhat.com>
20486
20487 PR target/62254
20488 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
20489 case where we are already provided with an SImode SUBREG.
20490
20491 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
20492
20493 PR target/70439
20494 * config/i386/i386.c (ix86_expand_epilogue): Properly check
20495 conflict between DRAP register and __builtin_eh_return.
20496
20497 2016-03-30 Michael Matz <matz@suse.de>
20498 Richard Biener <rguenther@suse.de>
20499
20500 PR ipa/12392
20501 * ipa-polymorphic-call.c (struct type_change_info): Change
20502 speculative to an unsigned allowing to limit the work we do.
20503 (csftc_abort_walking_p): New inline function..
20504 (check_stmt_for_type_change): Limit the number of may-defs
20505 skipped for speculative devirtualization to
20506 max-speculative-devirt-maydefs.
20507 * params.def (max-speculative-devirt-maydefs): New param.
20508 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
20509
20510 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
20511
20512 PR target/63890
20513 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
20514 and TARGET_MACHO.
20515
20516 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
20517
20518 PR tree-optimization/59124
20519 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
20520 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
20521
20522 2016-03-29 Jeff Law <law@redhat.com>
20523
20524 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
20525
20526 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20527
20528 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
20529 to HOST_WIDE_INT.
20530
20531 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
20532
20533 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
20534 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
20535 gcrt0.o if linking dynamically.
20536
20537 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20538
20539 PR ipa/70283
20540 * ipa-devirt.c (methods_equal_p): New function.
20541 (compare_virtual_tables): Use it.
20542 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
20543 * cgraphclones.c (clone_function_name_1): Use
20544 symbol_table::symbol_suffix_separator.
20545 * coverage.c (build_var): Likewise.
20546 * symtab.c (symbol_table::symbol_suffix_separator): New.
20547
20548 2016-03-29 Jakub Jelinek <jakub@redhat.com>
20549
20550 PR rtl-optimization/70429
20551 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
20552 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
20553 mode != result_mode.
20554
20555 PR c++/70353
20556 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
20557
20558 PR tree-optimization/70405
20559 * ssa-iterators.h (num_imm_uses): Add missing braces.
20560
20561 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
20562
20563 PR rtl-optimization/68695
20564 * ira-color.c (allocno_copy_cost_saving): New.
20565 (improve_allocation): Use it.
20566
20567 2016-03-29 Richard Henderson <rth@redhat.com>
20568
20569 PR middle-end/70355
20570 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
20571
20572 2016-03-29 Richard Biener <rguenther@suse.de>
20573
20574 PR middle-end/70424
20575 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
20576 use alignment returned by get_pointer_alignment_1 if it is
20577 bigger than BITS_PER_UNIT.
20578 * builtins.c (get_pointer_alignment_1): Do not return true
20579 for alignment extracted from SSA info.
20580
20581 2016-03-28 James Bowman <james.bowman@ftdichip.com>
20582
20583 * config/ft32/ft32.opt (mnodiv): New.
20584 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
20585 * doc/invoke.texi (FT32 Options -mnodiv): New.
20586
20587 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
20588
20589 PR target/70406
20590 * config/i386/i386.md (define_split, andn): Fix modes.
20591
20592 2016-03-26 Richard Biener <rguenther@suse.de>
20593 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20594
20595 PR ipa/70366
20596 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
20597 instead of
20598 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
20599 as 2nd argument to cl_optimization_restore().
20600
20601 2016-03-25 Richard Henderson <rth@redhat.com>
20602
20603 PR target/70120
20604 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
20605 * config/aarch64/aarch64-protos.h: Declare it.
20606 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
20607
20608 2016-03-25 Alan Modra <amodra@gmail.com>
20609
20610 PR target/70052
20611 * config/rs6000/constraints.md (j): Simplify.
20612 * config/rs6000/predicates.md (easy_fp_constant): Exclude
20613 decimal float 0.D.
20614 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
20615 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
20616 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
20617 in all constraint alternatives.
20618 (movtd_64bit_nodm): Delete "j" constraint alternative.
20619
20620 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20621
20622 * tree-ssa-propagate.c: Enhance docs for
20623 SSA_PROP_NOT_INTERESTING.
20624
20625 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20626
20627 * doc/extend.texi: Fix typo in documentation to pure attribute.
20628
20629 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
20630
20631 PR target/70319
20632 * config/pa/pa.md (bswapdi2): Use a scratch register.
20633
20634 2016-03-24 Richard Henderson <rth@redhat.com>
20635
20636 PR middle-end/69845
20637 * fold-const.c (extract_muldiv_1): Correct test for multiplication
20638 overflow.
20639
20640 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
20641
20642 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
20643 using ix86_expand_binary_operator instead of gen_andsi3.
20644
20645 2016-03-24 Richard Biener <rguenther@suse.de>
20646
20647 PR tree-optimization/70396
20648 * tree-vect-stmts.c (vectorizable_comparison): Use
20649 get_vectype_for_scalar_type.
20650
20651 2016-03-24 Richard Biener <rguenther@suse.de>
20652
20653 PR middle-end/70370
20654 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
20655 with register bases.
20656
20657 2016-03-24 Richard Biener <rguenther@suse.de>
20658
20659 PR tree-optimization/70372
20660 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
20661 build_all_ones_cst to also handle vector types correctly.
20662
20663 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20664
20665 PR target/70381
20666 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
20667 -mfloat128 here.
20668
20669 2016-03-23 Marek Polacek <polacek@redhat.com>
20670
20671 PR c++/69884
20672 * doc/invoke.texi: Document -Wignored-attributes.
20673
20674 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20675
20676 PR tree-optimization/69042
20677 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20678 parameter from 30 to 40.
20679
20680 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20681
20682 PR tree-optimization/69042
20683 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20684 for use with constant offset stripped in base.
20685
20686 2016-03-23 Richard Biener <rguenther@suse.de>
20687
20688 PR middle-end/70251
20689 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20690 mode compatibility check.
20691 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20692
20693 2016-03-23 Jeff Law <law@redhat.com>
20694
20695 PR tree-optimization/64058
20696 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20697 CONFLICT_COUNT.
20698 (struct ssa_conflicts): Move up earlier in the file.
20699 (conflicts_, var_map_): New static variables.
20700 (initialize_conflict_count): New function to initialize the
20701 CONFLICT_COUNT field for each conflict pair.
20702 (compare_pairs): Lazily initialize the conflict count and use it
20703 as the first tie-breaker.
20704 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
20705 and wipe conflicts_ and map_ around the call to qsort. Remove
20706 special case for 2 coalesce pairs.
20707 * bitmap.c (bitmap_count_unique_bits): New function.
20708 (bitmap_count_bits_in_word): New function, extracted from
20709 bitmap_count_bits.
20710 (bitmap_count_bits): Use bitmap_count_bits_in_word.
20711 * bitmap.h (bitmap_count_unique_bits): Declare it.
20712
20713 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
20714
20715 PR target/69917
20716 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20717 transparent alias chain for decl assembler name.
20718 * config/sol2.c (solaris_assemble_visibility): Likewise.
20719
20720 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20721
20722 * config/arm/arm1020e.md (1020call_op): Reduce reservation
20723 duration.
20724 (v10_fdivs): Likewise.
20725 (v10_fdivd): Likewise.
20726
20727 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20728
20729 PR driver/70132
20730 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20731 to not call fclose twice on file.
20732
20733 2016-03-23 Jakub Jelinek <jakub@redhat.com>
20734
20735 PR tree-optimization/70354
20736 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20737 oprnd0 is wider than oprnd1 and there is a cast from the wider
20738 type to oprnd1, mask it with the mask of the narrower type.
20739
20740 PR target/70321
20741 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20742 Optimize TARGET_STV splitters, if high or low word of last argument
20743 is 0 or -1.
20744
20745 2016-03-22 Jeff Law <law@redhat.com>
20746
20747 PR target/70232
20748 tree-ssa-threadbackward.c
20749 (fsm_find_control_statement_thread_paths): Correctly distinguish
20750 between old style jump threads vs FSM jump threads.
20751
20752 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20753
20754 PR target/70302
20755 * config/i386/i386.c (scalar_chain::convert_op): Support
20756 uninitialized register usage case.
20757
20758 2016-03-22 Richard Biener <rguenther@suse.de>
20759
20760 PR middle-end/70251
20761 * genmatch.c (gen_transform): Adjust last parameter to a three-state
20762 int...
20763 (capture::gen_transform): ... to change behavior when substituting
20764 a condition into cond or not-cond expr context.
20765 (dt_simplify::gen_1): Adjust.
20766 * gimple-match-head.c: Include gimplify.h for unshare_expr.
20767 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20768 last change and instead change to
20769 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20770 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20771
20772 2016-03-22 Anthony Green <green@moxielogic.com>
20773
20774 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
20775 issue for moxiebox targets.
20776 (CC1PLUS_SPEC): Ditto.
20777
20778 2016-03-22 Richard Biener <rguenther@suse.de>
20779
20780 PR middle-end/70333
20781 * fold-const.c (extract_muldiv_1): Properly perform multiplication
20782 in the wide type.
20783
20784 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20785
20786 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20787
20788 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20789
20790 PR target/70325
20791 * config/i386/i386.c (def_builtin): Handle
20792 OPTION_MASK_ISA_AVX512VL to be and-ed with other
20793 bits.
20794 (const struct builtin_description bdesc_special_args[]):
20795 Remove duplicate ISA bits.
20796
20797 2016-03-22 Jakub Jelinek <jakub@redhat.com>
20798
20799 PR target/70329
20800 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20801 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
20802 in a way that works also for AVX512BW.
20803
20804 PR target/70300
20805 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20806 instead of source if operands[1] is xmm16 and above and
20807 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20808 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20809
20810 PR c++/70295
20811 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20812 on assign if (*from_p) is a comparison, set it to
20813 TREE_NO_WARNING (*from_p).
20814
20815 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20816
20817 PR middle-end/70326
20818 * lra.c (restore_scratches): Ignore deleted insns.
20819
20820 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20821 Jakub Jelinek <jakub@redhat.com>
20822
20823 PR tree-optimization/70317
20824 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20825 to HONOR_NANS.
20826
20827 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20828
20829 PR target/70327
20830 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20831 of ix86_expand_move.
20832 (movoi): Ditto.
20833 (movti): Use general_operand for operand 1 predicate.
20834
20835 2016-03-21 Martin Liska <mliska@suse.cz>
20836
20837 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20838 insns.
20839 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20840
20841 2016-03-21 Martin Liska <mliska@suse.cz>
20842
20843 PR ipa/70306
20844 * ipa-icf.c (sem_function::parse): Skip static
20845 constructors and destructors.
20846
20847 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20848
20849 PR target/70296
20850 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20851 function-like macro, peek following token(s) if it is followed
20852 by CPP_OPEN_PAREN token with optional padding in between, and
20853 if not, don't treat it like a macro.
20854
20855 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20856 Alexander Monakov <amonakov@ispras.ru>
20857
20858 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20859 for the stabs debug format.
20860
20861 2016-03-21 Richard Biener <rguenther@suse.de>
20862
20863 PR tree-optimization/70310
20864 * tree-vect-generic.c (expand_vector_condition): Fold the built
20865 condition.
20866
20867 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20868
20869 PR target/70293
20870 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20871 Block third alternative for AVX-512VL target,
20872
20873 2016-03-21 Martin Liska <mliska@suse.cz>
20874
20875 PR hsa/70234
20876 * hsa-brig.c (emit_function_directives): Mark unemitted
20877 global variables for emission.
20878 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20879 (get_symbol_for_decl): Likewise.
20880 * hsa.h (struct hsa_symbol): New flag.
20881
20882 2016-03-21 Richard Biener <rguenther@suse.de>
20883
20884 PR tree-optimization/70288
20885 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20886 we do not estimate unsimplified all-constant conditionals or
20887 switches as optimized away.
20888
20889 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20890
20891 PR rtl-optimization/69102
20892 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20893 when we have a readonly dependency context.
20894
20895 2016-03-18 Jeff Law <law@redhat.com>
20896
20897 PR rtl-optimization/70263
20898 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20899 (update_equiv_regs): When trying to move a store to after the insn
20900 that sets the source of the store, make sure the store occurs after
20901 the insn that sets the source of the store. When successful note
20902 the REG_EQUIV note created in the dump file.
20903
20904 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20905 Bernd Schmidt <bschmidt@redhat.com>
20906
20907 * doc/extend.texi: Document more potential problems with basic asms.
20908
20909 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20910
20911 PR rtl-optimization/70278
20912 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20913 VOIDmode.
20914
20915 2016-03-18 Jason Merrill <jason@redhat.com>
20916
20917 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20918
20919 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20920
20921 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20922 values to 128b regs.
20923
20924 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20925
20926 PR tree-optimization/70252
20927 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20928 boolean vector has a proper number of elements.
20929 (supportable_narrowing_operation): Likewise.
20930
20931 2016-03-18 Tom de Vries <tom@codesourcery.com>
20932
20933 PR ipa/70269
20934 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20935
20936 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20937
20938 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20939 instead of replace_rtx for DEBUG_INSNs.
20940
20941 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20942
20943 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20944 load type reservations.
20945
20946 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20947
20948 PR target/70188
20949 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20950 define_constraint for "Q" and "T" constraints.
20951
20952 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20953
20954 Tweak the pipeline model for Exynos M1
20955
20956 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20957 model.
20958
20959 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20960
20961 PR c/70264
20962 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20963 where one or both locations aren't within a line_map.
20964
20965 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20966
20967 PR driver/70192
20968 * opts.c (finish_options): Don't set flag_pie to the default if
20969 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20970 if it is -1.
20971
20972 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20973
20974 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20975 true as ALL_REGS argument to replace_rtx.
20976
20977 2016-03-17 Richard Biener <rguenther@suse.de>
20978
20979 PR debug/70271
20980 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20981 last.
20982
20983 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20984
20985 PR target/70245
20986 * rtl.h (replace_rtx): Add ALL_REGS argument.
20987 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20988 equality and assert mode is the same, instead of just rtx pointer
20989 equality.
20990 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20991 true as ALL_REGS argument to replace_rtx.
20992
20993 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20994
20995 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20996 for boolean vector with vector mode only.
20997 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20998
20999 2016-03-17 Nick Clifton <nickc@redhat.com>
21000
21001 PR target/70162
21002 * config/rx/rx.c (rx_print_integer): Print negative constants in
21003 decimal.
21004
21005 2016-03-17 Jakub Jelinek <jakub@redhat.com>
21006
21007 PR target/70261
21008 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
21009
21010 2016-03-16 Richard Henderson <rth@redhat.com>
21011 Richard Biener <rguenth@suse.de>
21012
21013 PR middle-end/70240
21014 PR middle-end/68215
21015 PR tree-opt/68714
21016 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
21017 first operand as is_gimple_condexpr.
21018
21019 PR middle-end/70240
21020 PR middle-end/68215
21021 Revert r231575
21022 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
21023 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
21024 Do not gimplify the result.
21025 (do_unop): Adjust call to tree_vec_extract.
21026 (do_binop): Likewise.
21027 (do_compare): Likewise.
21028 (do_plus_minus): Likewise.
21029 (do_negate): Likewise.
21030 (expand_vector_condition): Likewise.
21031 (do_cond): Likewise.
21032
21033 2016-03-16 Richard Henderson <rth@redhat.com>
21034
21035 PR target/70048
21036 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
21037 (aarch64_classify_address): Use it.
21038 (aarch64_legitimize_address): Force all subexpressions of PLUS
21039 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
21040
21041 2016-03-16 Jakub Jelinek <jakub@redhat.com>
21042 Richard Biener <rguenth@suse.de>
21043
21044 PR target/70245
21045 * rtlanal.c (replace_rtx): For REG, if from is a REG,
21046 return to even if only REGNO is equal, and assert
21047 mode is the same.
21048
21049 2016-03-11 Jeff Law <law@redhat.com>
21050
21051 PR rtl-optimization/70224
21052 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
21053
21054 2016-03-16 Richard Henderson <rth@redhat.com>
21055
21056 PR middle-end/70199
21057 * function.h (struct function): Add has_forced_label_in_static.
21058 * gimplify.c (force_labels_r): Set it.
21059 * lto-streamer-in.c (input_struct_function_base): Read it.
21060 * lto-streamer-out.c (output_struct_function_base): Write it.
21061 * tree-inline.c (has_label_address_in_static_1): Remove.
21062 (copy_forbidden): Remove fndecl parameter; test
21063 has_forced_label_in_static.
21064 (inline_forbidden_p): Update call to copy_forbidden.
21065 (tree_versionable_function_p): Likewise.
21066 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
21067 (chkp_versioning): Likewise.
21068 * tree-inline.h (copy_forbidden): Update decl.
21069
21070 2016-03-16 Marek Polacek <polacek@redhat.com>
21071
21072 PR c/70093
21073 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
21074 function being thunked if the result type doesn't have fixed size.
21075 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
21076 doesn't have fixed size.
21077
21078 2016-03-16 Bin Cheng <bin.cheng@arm.com>
21079
21080 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
21081 reporting malformed loop nest.
21082
21083 2016-03-16 Tom de Vries <tom@codesourcery.com>
21084
21085 PR lto/70187
21086 * ipa-devirt.c (possible_polymorphic_call_targets): Move
21087 nodes.length () == 1 test to before first nodes[0] access.
21088
21089 2016-03-16 Tom de Vries <tom@codesourcery.com>
21090
21091 PR tree-optimization/68715
21092 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
21093 single_pred_p test.
21094
21095 2016-03-16 Tom de Vries <tom@codesourcery.com>
21096
21097 PR tree-optimization/68809
21098 * graphite-scop-detection.c (same_close_phi_node): Test if result types
21099 are the same.
21100
21101 2016-03-16 Carlos O'Donell <carlos@redhat.com>
21102 Sandra Loosemore <sandra@codesourcery.com>
21103
21104 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
21105 on leaf attribute. Mention ELF interposition problems.
21106
21107 2016-03-16 Alan Modra <amodra@gmail.com>
21108
21109 PR rtl-optimization/69195
21110 PR rtl-optimization/47992
21111 * ira.c (indirect_jump_optimize): Ignore artificial defs.
21112 Add comments.
21113
21114 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
21115
21116 PR bootstrap/69513
21117 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
21118
21119 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21120
21121 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
21122
21123 2016-03-15 Jakub Jelinek <jakub@redhat.com>
21124
21125 PR rtl-optimization/70222
21126 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21127 optimization if mode is different from result_mode, queue up masking
21128 of the result in outer_op. Formatting fix.
21129
21130 PR middle-end/70239
21131 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
21132 of safe_grow.
21133
21134 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21135
21136 PR rtl-optimization/69032
21137 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
21138 looping backwards over basic block insns.
21139
21140 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21141
21142 PR target/66660
21143 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
21144 to non-speculative when propagating trap bits.
21145
21146 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21147
21148 PR rtl-optimization/63384
21149 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
21150 DEBUG_INSN_P insns.
21151
21152 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21153
21154 PR target/64411
21155 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
21156 factored out from ...
21157 (sched_analyze_insn): ... here.
21158 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
21159 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
21160 get_implicit_reg_pending_clobbers in it.
21161 (setup_id_reg_sets): Use setup_id_implicit_regs.
21162 (deps_init_id): Ditto.
21163
21164 2016-03-15 Tom de Vries <tom@codesourcery.com>
21165
21166 PR ipa/70161
21167 * cgraph.c (cgraph_node::get_body): Save, reset and restore
21168 dump_file_name.
21169 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
21170 execute_function_dump.
21171 (execute_one_pass): Don't dump function if it will be dumped after ipa
21172 transform.
21173
21174 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21175
21176 * genrecog.c (match_pattern_2): If pred is NULL don't call
21177 safe_predicate_mode on it.
21178
21179 2016-03-14 Jakub Jelinek <jakub@redhat.com>
21180
21181 PR middle-end/70219
21182 * lra-constraints.c (delete_move_and_clobber): Change assertion
21183 to also allow dregno == 0.
21184
21185 2016-03-14 Richard Henderson <rth@redhat.com>
21186
21187 PR tree-opt/68714
21188 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
21189 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
21190 (reassociate_bb): Use optimize_vec_cond_expr; avoid
21191 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
21192 on vectors.
21193
21194 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
21195
21196 PR target/70083
21197 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
21198 regs.
21199 (lra_create_live_ranges_1): initialize hard register biggest_mode to
21200 VOIDmode.
21201 * lra-constraints.c (split_reg): For hard regs, try to find the
21202 biggest single-register mode used in the function.
21203
21204 2016-03-14 Richard Biener <rguenther@suse.de>
21205
21206 PR tree-optimization/56365
21207 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
21208 constants to compare against.
21209
21210 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
21211
21212 PR target/70098
21213 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
21214 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
21215 (define_split for the GPR case): Use int_reg_operand instead of
21216 gpc_reg_operand for the output.
21217
21218 2016-03-14 Tom de Vries <tom@codesourcery.com>
21219
21220 PR tree-optimization/70045
21221 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
21222 create_empty_if_region_on_edge argument.
21223
21224 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
21225
21226 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
21227 (STACK_CHECK_PROTECT): Likewise.
21228 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21229 (STACK_CHECK_PROTECT): Likewise.
21230 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21231 (STACK_CHECK_PROTECT): Likewise.
21232 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
21233 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21234 (STACK_CHECK_PROTECT): Likewise.
21235
21236 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
21237
21238 PR rtl-optimization/69307
21239 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
21240 registers in modes that span more than one register.
21241
21242 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
21243
21244 PR target/69614
21245 * lra-constraints.c (delete_move_and_clobber): New.
21246 (remove_inheritance_pseudos): Use it.
21247
21248 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
21249
21250 PR ada/70017
21251 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
21252 the libcall is LCT_THROW.
21253 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
21254 for the checking routine.
21255
21256 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21257
21258 PR target/70131
21259 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
21260 optimization if we have direct move.
21261 (roundu32<mode>2_fprs): Likewise.
21262
21263 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
21264
21265 PR target/70123
21266 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
21267 be rematerialized.
21268 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
21269 Arguments swapped. All callers changed. Take reg_renumber into
21270 account, and Calculate and compare register ranges for hard regs.
21271
21272 2016-03-11 Jeff Law <law@redhat.com>
21273
21274 PR tree-optimization/70190
21275 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21276 Handle cases where we can not extract the taken edge, even though we
21277 found a constant value.
21278
21279 PR tree-optimization/64058
21280 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
21281 (num_coalesce_pairs): Move up earlier in file.
21282 (find_coalesce_pair): Initialize the INDEX field for each pair
21283 discovered.
21284 (compare_pairs): No longer sort on the elements in each pair.
21285 Instead break ties with the index of the coalesce pair.
21286
21287 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21288
21289 PR target/70002
21290 * config/aarch64/aarch64-protos.h
21291 (aarch64_save_restore_target_globals): New prototype.
21292 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
21293 Call the above when popping pragma.
21294 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
21295 New function.
21296 (aarch64_set_current_function): Rewrite using the above.
21297
21298 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21299
21300 PR tree-optimization/70177
21301 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
21302 (extract_ops_from_tree): ... this. In the 2 argument
21303 overload remove _1 suffix.
21304 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
21305 (extract_ops_from_tree): ... this.
21306 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
21307 Adjust callers.
21308 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
21309 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
21310 extract_ops_from_tree instead of 2 operand one.
21311
21312 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
21313
21314 PR tree-optimization/70013
21315 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
21316 for constant-pool entries.
21317
21318 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21319
21320 PR rtl-optimization/70174
21321 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
21322 followed by gen_lowpart on force_reg instead of just gen_lowpart.
21323
21324 PR tree-optimization/70169
21325 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
21326 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
21327 for unknown codes.
21328
21329 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
21330 Jakub Jelinek <jakub@redhat.com>
21331
21332 PR target/70160
21333 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
21334 of uninitialized values.
21335
21336 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21337
21338 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
21339 define_expand.
21340 ("*trunctddd2"): New pattern definition.
21341 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
21342 TD->DD truncation.
21343
21344 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21345
21346 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
21347 definitions for BFP and DFP rounding modes.
21348 ("fixuns_truncdddi2", "fixuns_trunctddi2")
21349 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
21350 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
21351 ("fix_trunctf<mode>2"): Use the new constants instead of magic
21352 numbers.
21353
21354 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21355
21356 * config/s390/constraints.md: Adjust comment.
21357 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
21358 s390_decompose_addrstyle_without_index.
21359 * config/s390/predicates.md (shift_count_or_setmem_operand):
21360 Rename to setmem_operand.
21361 * config/s390/s390-protos.h
21362 (s390_decompose_shift_count): Rename to
21363 s390_decompose_addrstyle_without_index.
21364 * config/s390/s390.c (s390_decompose_shift_count)
21365 (s390_mem_constraint, print_shift_count_operand)
21366 (print_operand_address, print_operand): Rename
21367 s390_decompose_shift_count to
21368 s390_decompose_addrstyle_without_index and rename
21369 print_shift_count_operand to print_addrstyle_operand troughout the
21370 file.
21371 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
21372 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
21373 Rename shift_count_or_setmem_operand to setmem_operand.
21374 * config/s390/vx-builtins.md ("vec_insert<mode>")
21375 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
21376 nonmemory_operand.
21377
21378 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21379
21380 PR target/70168
21381 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21382 Handle overlapping retval and newval.
21383
21384 2016-03-10 Nick Clifton <nickc@redhat.com>
21385
21386 PR target/7044
21387 * config/aarch64/aarch64.c
21388 (aarch64_override_options_after_change_1): When forcing
21389 flag_omit_frame_pointer to be true, use a special value that can
21390 be detected if this function is called again, thus preventing
21391 flag_omit_leaf_frame_pointer from being forced to be false.
21392
21393 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21394
21395 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
21396 Set x_flag_omit_leaf_frame_pointer when handling
21397 -momit-leaf-frame-pointer.
21398
21399 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21400
21401 PR lto/69589
21402 * cgraph.c (cgraph_node::dump): Dump split_part and
21403 indirect_call_target.
21404 * cgraph.h (cgraph_node): Add indirect_call_target flag.
21405 * ipa.c (has_addr_references_p): Cleanup.
21406 (is_indirect_call_target_p): New.
21407 (walk_polymorphic_call_targets): Do not mark virtuals that may be
21408 called indirectly as local.
21409 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
21410
21411 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21412
21413 PR ipa/69630
21414 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21415 on cxa_pure_virtual.
21416
21417 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21418
21419 PR lto/69589
21420 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
21421
21422 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21423
21424 PR lto/69589
21425 * tree.c (need_assembler_name_p): Only record main variant type names.
21426
21427 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21428
21429 PR target/70113.
21430 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
21431 Always define to 0 or 1.
21432 (TARGET_FIX_ERR_A53_843419): New macro.
21433 * config/aarch64/aarch64-elf-raw.h
21434 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
21435 * config/aarch64/aarch64-linux.h: Likewise.
21436 * config/aarch64/aarch64.c
21437 (aarch64_override_options_after_change_1): Do not default
21438 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
21439 843419 is on.
21440 (aarch64_attributes): Handle fix-cortex-a53-843419.
21441 (aarch64_can_inline_p): Likewise.
21442 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
21443
21444 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
21445 Jakub Jelinek <jakub@redhat.com>
21446
21447 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
21448 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
21449 DECL_COMMONS if flag_unconstrained_commons is set.
21450 * tree-dfa.c (get_ref_base_and_extent): Likewise.
21451 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
21452 (funconstrained-commons): Document.
21453
21454 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21455
21456 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
21457 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
21458
21459 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
21460
21461 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
21462 has a proper number of elements.
21463
21464 2016-03-10 Alan Modra <amodra@gmail.com>
21465
21466 PR rtl-optimization/69195
21467 PR rtl-optimization/47992
21468 * ira.c (recorded_label_ref): Delete.
21469 (update_equiv_regs): Return void.
21470 (indirect_jump_optimize): New function.
21471 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
21472 before regstat_compute_ri. Don't rebuild_jump_labels here.
21473 Delete update_regstat.
21474
21475 2016-03-10 Richard Biener <rguenther@suse.de>
21476
21477 PR tree-optimization/70128
21478 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21479 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
21480
21481 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21482
21483 PR tree-optimization/70152
21484 * tree-sra.c (replace_removed_params_ssa_names): Copy over
21485 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
21486
21487 PR target/70086
21488 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
21489 instead of gen_sse2_loadlpd.
21490 * config/i386/sse.md (*vec_concatv2df): Rename to...
21491 (vec_concatv2df): ... this.
21492
21493 PR tree-optimization/70127
21494 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
21495
21496 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21497
21498 PR c/68473
21499 PR c++/70105
21500 * diagnostic-show-locus.c (compatible_locations_p): New function.
21501 (layout::layout): Sanitize ranges using compatible_locations_p.
21502
21503 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21504
21505 PR c/68473
21506 PR c++/70105
21507 * diagnostic-show-locus.c (layout_range::layout_range): Replace
21508 location_range param with three const expanded_locations * and a
21509 bool.
21510 (layout::layout): Replace call to
21511 rich_location::lazily_expand_location with get_expanded_location.
21512 Extract the range and perform location expansion here, passing
21513 the results to the layout_range ctor.
21514 * diagnostic.c (source_range::debug): Delete.
21515 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
21516 of rich_location::get_expanded_location.
21517 * gcc-rich-location.c (get_range_for_expr): Delete.
21518 (gcc_rich_location::add_expr): Reimplement to avoid the
21519 rich_location::add_range overload that took a location_range,
21520 passing a location_t instead.
21521
21522 2016-03-09 Richard Biener <rguenther@suse.de>
21523 Jakub Jelinek <jakub@redhat.com>
21524
21525 PR tree-optimization/70138
21526 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21527 Also skip vect_double_reduction_def.
21528
21529 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21530
21531 PR target/70049
21532 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
21533 if the operand is "m".
21534
21535 2016-03-09 Nathan Sidwell <nathan@acm.org>
21536
21537 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
21538
21539 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21540
21541 * config/i386/i386.c (processor_target_table): Fix cost table
21542 intialization order for znver1.
21543
21544 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21545
21546 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
21547 - becuase -> because.
21548 * ipa-reference.c (ignore_module_statics): Likewise.
21549 * cgraph.c (cgraph_node::get_body): Likewise.
21550 * ipa-inline.c (early_inliner): Likewise.
21551 * ipa-devirt.c (types_same_for_odr): Likewise.
21552 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
21553 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
21554
21555 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21556
21557 * tree-ssa-math-opts.c: Fix typo in comment.
21558
21559 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21560
21561 PR target/70110
21562 * config/i386/i386.c (scalar_chain::make_vector_copies,
21563 scalar_chain::convert_reg): Call end_sequence in between
21564 get_insns and emit_conversion_insns rather than after both
21565 calls.
21566
21567 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
21568
21569 PR target/70064
21570 * config/i386/i386.h (machine_function): Add
21571 pc_thunk_call_expanded flag.
21572 (ix86_pc_thunk_call_expanded): New define.
21573 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
21574 (*set_got): Rename insn pattern from set_got.
21575 (*set_got_labelled): Rename inst pattern from set_got_labelled.
21576 * config/i386/i386.c (ix86_compute_frame_layout): Use
21577 ix86_pc_thunk_call_expanded to prevent red-zone.
21578
21579 2016-03-07 Martin Jambor <mjambor@suse.cz>
21580
21581 * hsa.h (hsa_get_ctor_statements): Declare.
21582 (hsa_get_dtor_statements): Likewise.
21583 (hsa_get_kernel_dispatch_type): Likewise.
21584 * hsa.c (hsa_get_ctor_statements): New function.
21585 (hsa_get_dtor_statements): Likewise.
21586 (hsa_get_kernel_dispatch_type): Likewise.
21587 * hsa-brig.c (hsa_cdtor_statements): Removed.
21588 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
21589 hsa_get_dtor_statements.
21590 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
21591 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
21592
21593 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
21594
21595 * config/arm/arm-cores.def (cortex-r8): New.
21596 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
21597 * config/arm/arm-tune.md: Likewise.
21598 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
21599
21600 2016-03-07 Martin Sebor <msebor@redhat.com>
21601
21602 PR rtl-optimization/19705
21603 * doc/invoke.texi (Options That Control Optimization): Clarify
21604 -fno-branch-count-reg.
21605
21606 2016-02-26 Richard Biener <rguenther@suse.de>
21607 Jeff Law <law@redhat.com>
21608
21609 PR tree-optimization/69740
21610 * cfghooks.c (remove_edge): Request loop fixups if we delete
21611 an edge that might turn an irreducible loop into a natural
21612 loop.
21613 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
21614 Move after definition of loops_state_clear.
21615
21616 2016-03-07 Bin Cheng <bin.cheng@arm.com>
21617
21618 PR rtl-optimization/69052
21619 * rtlanal.c (commutative_operand_precedence): Set higher precedence
21620 to CONST_WIDE_INT.
21621
21622 2016-03-07 Tom de Vries <tom@codesourcery.com>
21623
21624 PR tree-optimization/70116
21625 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
21626 is_tm_ending stmts and ubsan/asan internal functions.
21627 (find_duplicate): Use it. Don't test is_tm_ending here.
21628
21629 2016-03-07 Richard Biener <rguenther@suse.de>
21630
21631 PR tree-optimization/70115
21632 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
21633 (propagate_constants_for_unrolling): Use replace_uses_by.
21634
21635 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
21636
21637 PR middle-end/69916
21638 * omp-low.c (struct oacc_loop): Add ifns.
21639 (new_oacc_loop_raw): Initialize it.
21640 (finish_oacc_loop): Clear mask & flags if no ifns.
21641 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
21642 (oacc_loop_xform_loop): Add ifns arg & adjust.
21643 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
21644
21645 2016-03-07 Richard Henderson <rth@redhat.com>
21646
21647 PR rtl-opt/70061
21648 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
21649 (insert_value_copy_on_edge): Likewise.
21650
21651 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21652
21653 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
21654
21655 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21656
21657 PR target/62281
21658 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
21659
21660 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21661
21662 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
21663
21664 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21665
21666 Fix sseimul type attribute.
21667 * config/i386/znver1.md
21668 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21669 znver1_sseimul_avx256_load) : Fix the type attribute.
21670 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21671 pipe usage and latency.
21672
21673 2016-03-05 Jakub Jelinek <jakub@redhat.com>
21674
21675 PR c++/70084
21676 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21677 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21678 to the right type.
21679
21680 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21681
21682 PR c/69973
21683 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21684
21685 PR rtl-optimization/69941
21686 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21687 the reg share its mode.
21688
21689 2016-03-04 Jeff Law <law@redhat.com>
21690
21691 PR tree-optimization/69196
21692 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21693 If the both SSA_NAMEs are anonymous, then consider them unassociated
21694 and include the PHI in the statement count.
21695
21696 2016-03-05 Tom de Vries <tom@codesourcery.com>
21697
21698 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21699 construct in oacc routine. Check for oacc region in oacc routine.
21700
21701 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21702
21703 PR target/70062
21704 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
21705 2016-02-22 changes, instead don't recurse if RECUR is already true.
21706 Don't change *dynamic_check if RECUR. Adjust recursive caller
21707 to pass true to the new argument.
21708 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21709
21710 PR target/70059
21711 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21712 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21713 fixes.
21714 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
21715
21716 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21717
21718 PR rtl-optimization/57676
21719 * lra-assigns.c (lra_assign): Guard test for maximum iterations
21720 with flag_checking.
21721
21722 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
21723
21724 * tree-vect-patterns.c (search_type_for_mask): Handle
21725 comparison of booleans.
21726
21727 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21728
21729 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21730 Fix @xref usage.
21731
21732 PR debug/69947
21733 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21734 all other ops that have dw_val_class_die_ref operands,
21735 and DW_OP_GNU_entry_value.
21736
21737 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21738
21739 PR rtl-optimization/69904
21740 * config/arm/arm.c (arm_cannot_copy_insn_p):
21741 Return true for load-exclusive instructions.
21742
21743 2016-03-03 Jakub Jelinek <jakub@redhat.com>
21744
21745 PR target/70021
21746 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21747 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21748 the pattern no matter if it is used just by non-pattern, pattern
21749 or mix thereof.
21750 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21751 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21752 oprnd1 def_stmt is in pattern, don't look through it.
21753
21754 2016-03-03 Marek Polacek <polacek@redhat.com>
21755
21756 PR middle-end/70050
21757 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21758
21759 2016-03-03 Martin Liska <mliska@suse.cz>
21760
21761 PR tree-optimization/70043
21762 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21763 previous statement if we see a debug statement.
21764
21765 2016-03-03 Richard Biener <rguenther@suse.de>
21766
21767 PR tree-optimization/55936
21768 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21769 parameter and guard unsafe equivalence use.
21770 (vrp_evaluate_conditional_warnv_with_ops): Always use
21771 safe equivalences but not via the quadratic compare_names
21772 helper.
21773
21774 2016-03-03 Michael Collison <michael.collison@linaro.org>
21775
21776 PR target/70014
21777 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21778 for operand 1 to s_register_operand. Change predicate for operand
21779 2 to arm_not_immediate_operand.
21780
21781 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
21782
21783 * doc/tm.texi: Regenerated.
21784
21785 2016-03-02 Richard Henderson <rth@redhat.com>
21786
21787 PR rtl-opt/67145
21788 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21789 simplification when all args are positive non-fixed registers.
21790
21791 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21792
21793 * target.def (lra_p): Specify that new ports should use LRA.
21794
21795 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21796
21797 PR libgomp/69555
21798 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21799 gimplify_type_sizes the type they refer to.
21800 (omp_notice_variable): Handle reference vars to VLAs.
21801 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21802 reference to VLA decls in the second pass instead of first pass.
21803
21804 2016-03-02 Tom de Vries <tom@codesourcery.com>
21805
21806 PR tree-optimization/68659
21807 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21808 new_expr == NULL_TREE.
21809 (get_new_name): Handle ADDR_EXPR.
21810
21811 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21812
21813 PR rtl-optimization/69052
21814 * loop-invariant.c (canonicalize_address): New function.
21815 (inv_can_prop_to_addr_use): Check validity of address expression
21816 which is canonicalized by above function.
21817
21818 2016-03-02 Alan Modra <amodra@gmail.com>
21819
21820 PR ipa/69990
21821 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21822 larger alignment.
21823
21824 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21825
21826 PR target/70028
21827 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21828 (*movhi_internal): Put mask moves from and to memory separately
21829 from moves from/to GPRs.
21830
21831 2016-03-02 Richard Biener <rguenther@suse.de>
21832
21833 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21834 GENERIC expressions in GIMPLE.
21835
21836 2016-03-02 Richard Biener <rguenther@suse.de>
21837
21838 * config/i386/i386.c (type_natural_mode): Fix typo.
21839
21840 2016-03-02 Nick Clifton <nickc@redhat.com>
21841
21842 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21843
21844 2016-03-02 Richard Biener <rguenther@suse.de>
21845 Uros Bizjak <ubizjak@gmail.com>
21846
21847 PR target/67278
21848 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21849
21850 2016-03-02 Richard Biener <rguenther@suse.de>
21851
21852 PR middle-end/67278
21853 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21854
21855 2016-03-02 Marek Polacek <polacek@redhat.com>
21856
21857 PR c/67854
21858 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21859 "is promoted to" warning.
21860
21861 2016-03-01 DJ Delorie <dj@redhat.com>
21862
21863 * config.gcc: Deprecate mep-*.
21864
21865 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21866
21867 PR middle-end/70025
21868 * lra-constraints.c (regno_val_use_in): New.
21869 (match_reload): Use it instead of regno_use_in.
21870
21871 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21872
21873 PR rtl-optimization/70007
21874 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21875 references present in REG_EQUAL notes attached to non-SET patterns.
21876
21877 2016-03-01 Jeff Law <law@redhat.com>
21878
21879 PR tree-optimization/69196
21880 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21881 Appropriately clamp the number of statements to copy when the
21882 thread path does not traverse a loop backedge.
21883
21884 PR tree-optimization/69196
21885 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21886 Do count some PHIs in the thread path against the insn count. Decrease
21887 final statement count by one as the control statement in the last
21888 block will get removed. Remove special cased code for handling PHIs
21889 in the last block.
21890
21891 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21892
21893 PR target/70027
21894 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21895 asm dialect alternatives to explicit GOTPCREL calls.
21896
21897 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21898
21899 PR ada/70017
21900 * ira.c (do_reload): Issue warning for generic stack checking here...
21901 * reload1.c (reload): ...instead of here and streamline it.
21902
21903 2016-03-01 Nick Clifton <nickc@redhat.com>
21904
21905 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21906
21907 2016-03-01 Richard Biener <rguenther@suse.de>
21908
21909 PR tree-optimization/69983
21910 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21911 types and fall back to operand_equal_p.
21912
21913 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21914
21915 Revert
21916 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21917
21918 * config/s390/constraints.md ("jm8"): New constraint.
21919 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21920 predicate.
21921 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21922 into ...
21923 ("*setmem_long<setmem_and>"): New pattern.
21924 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21925 into ...
21926 ("*setmem_long_31z<setmem_and>"): New pattern.
21927 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21928 New substitution rules with the required attributes.
21929
21930
21931 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21932
21933 Revert
21934 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21935
21936 * gensupport.c (process_substs_on_one_elem): Split loop to
21937 complete mark_operands_used_in_match_dup on all expressions in the
21938 vector first.
21939 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21940 and remove function.
21941
21942 2016-03-01 Richard Biener <rguenther@suse.de>
21943
21944 PR middle-end/70022
21945 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21946 vector BIT_FIELD_REF extract.
21947
21948 2016-03-01 Richard Biener <rguenther@suse.de>
21949
21950 PR tree-optimization/69994
21951 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21952
21953 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21954
21955 PR tree-optimization/69956
21956 * tree-vect-stmts.c (supportable_widening_operation): Support
21957 multi-step conversion of boolean vectors.
21958 (supportable_narrowing_operation): Likewise.
21959
21960 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21961
21962 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21963 anymore.
21964
21965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21966
21967 * config/s390/subst.md (DSI_VI): New mode iterator.
21968 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21969 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21970 the insn definition.
21971 ("*vec_set<mode>"): Change predicate and add alternative to
21972 support only either register or const_int operands as element
21973 selector.
21974 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21975 operands.
21976 ("vec_extract<mode>"): New expander.
21977 ("*vec_extract<mode>"): New insn definition supporting reg and
21978 const_int element selectors.
21979 ("*vec_extract<mode>_plus"): New insn definition supporting
21980 reg+const_int element selectors.
21981 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21982 following expander+insn definition.
21983 ("<vec_shifts_name><mode>3"): New expander.
21984 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21985
21986 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21987
21988 * config/s390/s390.md ("*tabort_1"): Change predicate to
21989 nonmemory_operand. Add a second alternative to cover
21990 register as well as const int operands.
21991 ("*tabort_1_plus"): New pattern definition.
21992
21993 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21994
21995 * config/s390/s390.md ("*ashrdi3_cc_31")
21996 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21997 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21998 Merge insn definitions into ...
21999 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
22000 New pattern definition.
22001 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
22002 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
22003 ("*ashr<mode>3_and"): Merge insn definitions into ...
22004 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
22005 New pattern definition.
22006 * config/s390/subst.md ("addr_style_op_cc_subst")
22007 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
22008 substitutions patterns plus attributes.
22009 Add ashiftrt to SUBST iterator.
22010
22011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22012
22013 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
22014 op2 to nonmemory_operand.
22015 ("*<shift>di3_31", "*<shift>di3_31_and"):
22016 Merge into single pattern definition ...
22017 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
22018 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
22019 pattern definition ...
22020 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
22021 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
22022 iterator.
22023
22024 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22025
22026 * config/s390/predicates.md (const_int_6bitset_operand): New
22027 predicate.
22028 * config/s390/s390.md: Include subst.md.
22029 ("rotl<mode>3"): New expander.
22030 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
22031 ...
22032 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
22033 * config/s390/subst.md: New file.
22034
22035 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22036
22037 * config/s390/s390.md ("op_type", "atype", "length" attributes):
22038 Remove RRR type. It doesn't really exist.
22039 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
22040 attributes.
22041 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
22042 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
22043 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
22044 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
22045 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
22046 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
22047 `enabled' attribute.
22048
22049 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22050
22051 * gensupport.c (process_substs_on_one_elem): Split loop to
22052 complete mark_operands_used_in_match_dup on all expressions in the
22053 vector first.
22054 (adjust_operands_numbers): Inline into process_substs_on_one_elem
22055 and remove function.
22056
22057 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22058
22059 PR target/69706
22060 * config/sparc/sparc.c (NWORDS_UP): Rename to...
22061 (CEIL_NWORDS): ...this. Use CEIL macro.
22062 (compute_fp_layout): Adjust to above renaming.
22063 (function_arg_union_value): Likewise.
22064 (sparc_arg_partial_bytes): Likewise.
22065 (sparc_function_arg_advance): Likewise.
22066
22067 2016-02-29 Jeff Law <law@redhat.com>
22068
22069 PR tree-optimization/70005
22070 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
22071 where an object with a boolean range is compared against a value
22072 outside [0..1].
22073
22074 PR tree-optimization/69999
22075 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
22076 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
22077 loop cleanups.
22078
22079 2016-02-29 Richard Biener <rguenther@suse.de>
22080
22081 PR tree-optimization/69994
22082 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
22083 (get_unary_op): Look through nop conversions.
22084 (ops_equal_values_p): New function, look for equality diregarding
22085 nop conversions.
22086 (eliminate_plus_minus_pair): Use ops_equal_values_p
22087 (repropagate_negates): Do not use get_unary_op here.
22088
22089 2016-02-29 Martin Liska <mliska@suse.cz>
22090
22091 * system.h: Poison ENABLE_CHECKING macro.
22092
22093 2016-02-29 Martin Liska <mliska@suse.cz>
22094
22095 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
22096 is presented in dump flags.
22097 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22098 (hsa_regalloc): Likewise.
22099
22100 2016-02-19 Richard Biener <rguenther@suse.de>
22101
22102 PR tree-optimization/69980
22103 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
22104 permutation of those we need to keep.
22105
22106 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22107
22108 PR target/69706
22109 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
22110 (NWORDS_UP): ...this
22111 (init_cumulative_args): Minor tweaks.
22112 (sparc_promote_function_mode): Likewise.
22113 (scan_record_type): Delete.
22114 (traverse_record_type): New function template.
22115 (classify_data_t): New structure type.
22116 (classify_registers): New inline function.
22117 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
22118 exhausted. Instantiate traverse_record_type on classify_registers and
22119 deal with the case of a structure passed in slot #15 with no FP field
22120 in the first word.
22121 (assign_data_t): New structure type.
22122 (compute_int_layout): New static function.
22123 (compute_fp_layout): Likewise.
22124 (count_registers): New inline function.
22125 (assign_int_registers): New static function.
22126 (assign_fp_registers): Likewise.
22127 (assign_registers): New inline function.
22128 (function_arg_record_value_1): Delete.
22129 (function_arg_record_value_2): Likewise.
22130 (function_arg_record_value_3): Likewise.
22131 (function_arg_record_value): Adjust to above changes. Instantiate
22132 traverse_record_type on count_registers to first count the number of
22133 registers to be used and then on assign_registers to assign them.
22134 (function_arg_union_value): Adjust to above renaming.
22135 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
22136 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
22137 case of a structure passed in slot #15
22138 (sparc_function_arg_advance): Likewise.
22139 (function_arg_padding): Minor tweak.
22140
22141 2016-02-29 Richard Biener <rguenther@suse.de>
22142
22143 PR tree-optimization/69720
22144 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
22145 the adjustment_def path for possibly vectorized defs.
22146 (vect_create_epilog_for_reduction): Handle vectorized initial
22147 defs properly.
22148
22149 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
22150
22151 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
22152
22153 2016-02-27 Jeff Law <law@redhat.com>
22154
22155 Revert
22156 2016-02-26 Richard Biener <rguenther@suse.de>
22157 Jeff Law <law@redhat.com>
22158
22159 PR tree-optimization/69740
22160 * cfghooks.c (remove_edge): Request loop fixups if we delete
22161 an edge that might turn an irreducible loop into a natural
22162 loop.
22163
22164 2016-02-27 Jakub Jelinek <jakub@redhat.com>
22165
22166 PR rtl-optimization/69896
22167 * tree-vect-generic.c (get_compute_type): Avoid single element
22168 vector types.
22169
22170 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
22171
22172 Rename the AArch64 tuning option and related functions to enable the
22173 Newton series for the reciprocal square root to reflect its
22174 approximative characteristic.
22175
22176 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
22177 function to "aarch64_emit_approx_rsqrt".
22178 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
22179 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
22180 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
22181 (xgene1_tunings): Likewise.
22182 (use_rsqrt_p): Likewise.
22183 (aarch64_emit_swrsqrt): Use new function name.
22184 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
22185 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
22186 text explaining this option.
22187 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
22188
22189 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22190
22191 PR target/69969
22192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22193 complain about -mallow-movmisalign without -mvsx if
22194 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
22195
22196 2016-02-26 Joel Sherrill <joel@rtems.org>
22197
22198 * config.gcc: Add x86_64-*-rtems*.
22199 * config/i386/rtems-64.h: New file.
22200
22201 2016-02-26 Joel Sherrill <joel@rtems.org>
22202
22203 * config.gcc: Add aarch64-*-rtems*.
22204 * config/aarch64/rtems.h: New file.
22205
22206 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
22207
22208 PR target/69946
22209 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
22210 shift amount using %h. Add comment.
22211
22212 2016-02-26 Richard Biener <rguenther@suse.de>
22213 Jeff Law <law@redhat.com>
22214
22215 PR tree-optimization/69740
22216 * cfghooks.c (remove_edge): Request loop fixups if we delete
22217 an edge that might turn an irreducible loop into a natural
22218 loop.
22219
22220 2016-02-26 Martin Jambor <mjambor@suse.cz>
22221
22222 PR middle-end/69920
22223 * tree-sra.c (sra_modify_assign): Do not remove loads of
22224 uninitialized aggregates to SSA_NAMEs.
22225
22226 2016-02-26 Richard Henderson <rth@redhat.com>
22227
22228 PR target/69709
22229 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
22230 pseudo in case the target rtx matches the source of the left
22231 shift.
22232
22233 2016-02-26 Martin Jambor <mjambor@suse.cz>
22234
22235 PR hsa/69568
22236 * hsa.h (hsa_type_packed_p): Declare.
22237 * hsa.c (hsa_type_packed_p): New function.
22238 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
22239 loads.
22240 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
22241 * hsa-brig.c (emit_basic_insn): Likewise.
22242
22243 2016-02-26 Martin Jambor <mjambor@suse.cz>
22244
22245 pr hsa/69674
22246 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
22247 pointers.
22248 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
22249
22250 2016-02-26 Martin Jambor <mjambor@suse.cz>
22251
22252 * hsa.h (is_a_helper): New overload for hsa_op_immed for
22253 hsa_op_with_type operands.
22254 (hsa_unsigned_type_for_type): Declare.
22255 * hsa.c (hsa_unsigned_type_for_type): New function.
22256 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
22257 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
22258 the finalizer. Do not emit extra move.
22259
22260 2016-02-26 Martin Jambor <mjambor@suse.cz>
22261
22262 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
22263 atomic operations in private segment.
22264
22265 2016-02-26 Martin Jambor <mjambor@suse.cz>
22266
22267 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
22268 statements to wi->info. Also disallow omp simd constructs.
22269 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
22270 for not gridifying. Dump special string for omp_for.
22271
22272 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22273
22274 PR target/69245
22275 * config/aarch64/aarch64.c (aarch64_set_current_function):
22276 Save/restore target globals when switching to
22277 target_option_default_node.
22278
22279 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22280
22281 PR target/69613
22282 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
22283 Return 0 if !SHIFT_COUNT_TRUNCATED.
22284
22285 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22286 Eric Botcazou <ebotcazou@adacore.com>
22287
22288 PR rtl-optimization/69891
22289 * dse.c (scan_insn): If we can't figure out memset arguments
22290 or they are non-constant, call clear_rhs_from_active_local_stores.
22291
22292 2016-02-26 Martin Liska <mliska@suse.cz>
22293
22294 * doc/extend.texi: Mention clog10, clog10f an clog10l
22295 in Builtins section.
22296
22297 2016-02-26 Martin Liska <mliska@suse.cz>
22298
22299 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
22300 CHECKING_P.
22301 (resolve_args_picking_1): Likewise.
22302 * dwarf2out.h (struct GTY): Likewise.
22303
22304 2016-02-26 Martin Liska <mliska@suse.cz>
22305
22306 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
22307 with flag_checking.
22308 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22309
22310 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22311 Martin Liska <mliska@suse.cz>
22312
22313 * doc/install.texi: Mention --enable-valgrind-annotations.
22314
22315 2016-02-26 Richard Biener <rguenther@suse.de>
22316
22317 PR tree-optimization/69551
22318 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
22319 looking through aliases adjust DECL_PT_UID to refer to the
22320 ultimate alias target.
22321
22322 2016-02-25 Martin Liska <mliska@suse.cz>
22323
22324 PR middle-end/69919
22325 * alloc-pool.c (after_memory_report): New variable.
22326 * alloc-pool.h (base_pool_allocator ::release): Do not use
22327 the infrastructure if after_memory_report.
22328 * toplev.c (toplev::main): Mark after memory report.
22329
22330 2016-02-25 Richard Biener <rguenther@suse.de>
22331
22332 PR tree-optimization/48795
22333 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
22334
22335 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
22336
22337 PR driver/68463
22338 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
22339 offloading is enabled and -fopenacc or -fopenmp is specified.
22340 (CRTOFFLOADEND): Likewise.
22341 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
22342 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
22343 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
22344 (offload_objects_file_name): New static var.
22345 (tool_cleanup): Remove offload_objects_file_name file.
22346 (find_offloadbeginend): Replace with ...
22347 (find_crtoffloadtable): ... this.
22348 (run_gcc): Remove offload_argc and offload_argv.
22349 Get offload_objects_file_name from -foffload-objects=... option.
22350 Read names of object files with offload from this file, pass them to
22351 compile_images_for_offload_targets. Don't call find_offloadbeginend and
22352 don't pass offloadbegin and offloadend to the linker. Don't pass
22353 offload non-LTO files to the linker, because now they're not claimed.
22354
22355 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
22356
22357 PR ipa/69630
22358 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22359 on builtin_unreachable.
22360
22361 2016-02-25 Jakub Jelinek <jakub@redhat.com>
22362
22363 PR rtl-optimization/69896
22364 * regcprop.c: Include cfgrtl.h.
22365 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
22366 than remembered mode, either delete it (if noop_move_p), or
22367 treat like copy_p but not noop_p instruction.
22368
22369 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22370
22371 PR debug/69705
22372 * dwarf2out.c (gen_variable_die): Work around buggy LTO
22373 - allow NULL decl for Fortran DW_TAG_common_block variables.
22374
22375 2016-02-24 Jason Merrill <jason@redhat.com>
22376
22377 * common.opt (flifetime-dse): Add -flifetime-dse=1.
22378
22379 2016-02-24 Richard Biener <rguenther@suse.de>
22380 Jakub Jelinek <jakub@redhat.com>
22381
22382 PR middle-end/69760
22383 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
22384 conditionally executed ops to well-defined overflow behavior.
22385
22386 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22387
22388 PR middle-end/69915
22389 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
22390 elements.
22391
22392 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22393
22394 PR rtl-optimization/69886
22395 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
22396 argument. Use it when checking validity of set instructions.
22397 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
22398 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
22399 callsite.
22400 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
22401 * store-motion.c (find_moveable_store): Update
22402 can_assign_to_reg_without_clobbers_p callsite.
22403
22404 2016-02-24 Richard Biener <rguenther@suse.de>
22405
22406 PR middle-end/68963
22407 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
22408 bogus check.
22409 (record_nonwrapping_iv): Do not fall back to the low/high bound
22410 for non-constant IV bases if the stmt is not always executed.
22411
22412 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22413
22414 * config/arm/arm-cores.def (cortex-a32): New entry.
22415 * config/arm/arm-tables.opt: Regenerate.
22416 * config/arm/arm-tune.md: Regenerate.
22417 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
22418 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
22419 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
22420 for -mcpu and -mtune.
22421
22422 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22423
22424 PR target/69875
22425 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
22426 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
22427 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
22428 (atomic_loaddi_1): Delete.
22429 (atomic_loaddi): Rewrite expander using the above changes.
22430
22431 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22432
22433 PR c/69918
22434 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
22435 2 to 3.
22436
22437 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22438 Richard Biener <rguenth@suse.de>
22439
22440 PR middle-end/69909
22441 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
22442 set_mem_attributes if tem is SSA_NAME which got expanded
22443 as a MEM.
22444
22445 2016-02-24 Richard Biener <rguenther@suse.de>
22446
22447 PR tree-optimization/69907
22448 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
22449 end of permutations for BB vectorization.
22450
22451 2016-02-24 Christian Bruel <christian.bruel@st.com>
22452
22453 * config/arm/arm-c.c (arm_option_override): Initialize
22454 target_option_current_node.
22455 * config/arm/arm.c (arm_pragma_target_parse): Replace
22456 build_target_option_node call by target_option_current_node.
22457 Set target_option_current_node.
22458 Fix comments.
22459
22460 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
22461
22462 PR target/69810
22463 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
22464 define_insn_and_split to define_insn.
22465 (zero_extendqi<mode>2_dot2): Same.
22466 (extendqi<mode>2_dot): Same.
22467 (extendqi<mode>2_dot2): Same.
22468
22469 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22470
22471 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
22472 and add bypass for AES{D,E} and AESMC pairs.
22473 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
22474 and AESMC pairs.
22475
22476 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22477
22478 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
22479 series for reciprocal square root in Exynos M1.
22480
22481 2016-02-23 Martin Sebor <msebor@redhat.com>
22482
22483 PR c/69759
22484 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
22485 __builtin_alloca_with_align.
22486
22487 2016-02-23 Richard Henderson <rth@redhat.com>
22488
22489 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
22490 (ix86_register_pragmas): Remove __seg_tls.
22491 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
22492 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
22493 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
22494 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
22495 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
22496 * doc/extend.texi (__seg_tls): Remove item.
22497
22498 2016-02-23 Richard Biener <rguenther@suse.de>
22499
22500 * alloc-pool.h (struct allocation_object): Make id member
22501 conditional on CHECKING_P again.
22502 (get_instance): Adjust.
22503 (base_pool_allocator): Likewise.
22504
22505 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
22506
22507 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
22508 (parallelize_loops): In OpenACC kernels mode, set n_threads to
22509 zero.
22510 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
22511 flag_openacc.
22512 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
22513
22514 2016-02-23 Richard Biener <rguenther@suse.de>
22515
22516 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
22517 * bitmap.h (struct bitmap_usage): Likewise.
22518 (bitmap_move): Declare.
22519 * bitmap.c (register_overhead): Take size_t argument.
22520 (bitmap_move): New function.
22521 * df-problems.c (df_rd_transfer_function): Use bitmap_move
22522 to properly account overhead.
22523 * tree.c (free_node): Use tree_size.
22524
22525 2016-02-23 Jakub Jelinek <jakub@redhat.com>
22526
22527 PR c++/69902
22528 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
22529 when inverting comparison.
22530
22531 PR c/69900
22532 * common.opt (Wunreachable-code): Add Warning flag.
22533
22534 2016-02-23 Mark Wielaard <mjw@redhat.com>
22535 Jakub Jelinek <jakub@redhat.com>
22536
22537 PR c/69911
22538 * cgraphunit.c (check_global_declaration): Check main_input_filename
22539 and DECL_SOURCE_FILE are not NULL.
22540
22541 2016-02-23 Martin Jambor <mjambor@suse.cz>
22542
22543 PR tree-optimization/69666
22544 * tree-sra.c (sra_modify_assign): Do not attempt to create
22545 default_def replacements for unscalarizable regions.
22546
22547 2016-02-20 Mark Wielaard <mjw@redhat.com>
22548
22549 PR c/28901
22550 * cgraphunit.c (check_global_declaration): Check level of
22551 warn_unused_const_variable and main_input_filename.
22552 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
22553 (-Wunused-variable): For C implies -Wunused-const-variable=1.
22554 (-Wunused-const-variable): Explain levels 1 and 2.
22555
22556 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22557
22558 PR target/69888
22559 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
22560 identical arguments. Formatting and spelling fixes.
22561
22562 PR target/69885
22563 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
22564 be specified.
22565
22566 PR target/69894
22567 PR target/69895
22568 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
22569 and m68k-devices.def.
22570 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
22571 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
22572
22573 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
22574
22575 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
22576 and HImode registers.
22577
22578 2016-02-22 Richard Biener <rguenther@suse.de>
22579
22580 PR tree-optimization/69882
22581 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
22582 preserve permutations present because of gaps.
22583 (vect_supported_load_permutation_p): Always continue checking
22584 permutations after vect_attempt_slp_rearrange_stmts.
22585
22586 2016-02-22 Bin Cheng <bin.cheng@arm.com>
22587
22588 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
22589 min_profitable_estimate, rather than min_profitable_iters.
22590
22591 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22592
22593 PR target/69885
22594 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
22595 SImode for last match_operand.
22596
22597 2016-02-22 Martin Liska <mliska@suse.cz>
22598
22599 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
22600 return bitsize - 1 as the return value.
22601
22602 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
22603
22604 PR target/69806
22605 PR target/54089
22606 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
22607 Handle negative shift counts.
22608 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
22609 force_reg on the shift constant.
22610 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
22611 (lshrsi3_d): Handle negative shift counts.
22612
22613 2016-02-22 Richard Biener <rguenther@suse.de>
22614 Tom de Vries <tom@codesourcery.com>
22615
22616 * graph.c: Include dumpfile.h.
22617 (print_graph_cfg): Split into three overloads.
22618 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
22619
22620 2016-02-22 Tom de Vries <tom@codesourcery.com>
22621
22622 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
22623 dump-fn.
22624
22625 2016-02-22 Richard Biener <rguenther@suse.de>
22626
22627 PR ipa/37448
22628 * ipa-inline-transform.c (inline_call): When not updating
22629 overall summaries adjust self size by the growth estimate.
22630 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
22631 hash-set, do not update overall summaries here. Renamed from ...
22632 (inline_to_all_callers): ... this which is now wrapping the
22633 above and performing delayed overall summary update.
22634 (early_inline_small_functions): Delay updating of the overall
22635 summary.
22636
22637 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
22638
22639 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
22640 variable.
22641
22642 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22643
22644 PR driver/69805
22645 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
22646 :%* in %:gt() argument.
22647 (greater_than_spec_func): Adjust for expecting only numbers,
22648 if there are more than two numbers, compare the last two.
22649
22650 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
22651
22652 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
22653 -Wnarrowing with -std.
22654
22655 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22656
22657 PR c++/69851
22658 * expr.c (store_field): Don't use bit-field path if exp is
22659 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
22660 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
22661 and the assignment can be performed by bitwise copy. Formatting
22662 fix.
22663
22664 PR middle-end/69838
22665 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
22666 call copy_reg_eh_region_note_forward on before and/or after sequences
22667 and remove note from insn if it no longer can throw.
22668
22669 PR target/69820
22670 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22671 if TARGET_AVX512BW.
22672
22673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22674
22675 * config/s390/vector.md: Add missing commutative operand markers
22676 to the patterns which qualify for one.
22677 * config/s390/vx-builtins.md: Likewise.
22678
22679 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22680
22681 * config/s390/vector.md (VI, VI_QHS): Add single element vector
22682 types to mode iterators.
22683 (vec_double): ... and mode attribute.
22684 * config/s390/vx-builtins.md (non_vec_int): Likewise.
22685
22686 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22687
22688 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22689 Change the predicate of op2 from nonimmediate to general and let
22690 reload fix it if necessary.
22691
22692 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22693
22694 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22695
22696 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22697
22698 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22699 mode.
22700
22701 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22702
22703 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22704 * config/s390/s390.c (s390_expand_vec_movstr): New function.
22705 * config/s390/s390.md ("movstr<P:mode>"): Call
22706 s390_expand_vec_movstr.
22707
22708 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22709
22710 * config/s390/s390.md: Add missing output modifier for operand 1
22711 to print it as address properly.
22712
22713 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22714
22715 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22716 * config/s390/2964.md: New file.
22717 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22718 of insn grouping attributes depending on the CPU level.
22719 (s390_get_unit_mask): New function.
22720 (s390_sched_score): Remove the OOO from the scheduling macros.
22721 Add loop to calculate a score for the instruction mix.
22722 (s390_sched_reorder): Likewise plus improve debug output.
22723 (s390_sched_variable_issue): Rename macros as above. Calculate
22724 the unit distances after actually scheduling an insn. Improve
22725 debug output.
22726 (s390_sched_init): Clear last_scheduled_unit_distance array.
22727 * config/s390/s390.md: Include 2964.md.
22728
22729 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22730
22731 PR target/69671
22732 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22733 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22734 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22735 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22736 *avx512f_<code>v8div16qi2_mask_1): New insns.
22737
22738 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22739
22740 PR target/68404
22741 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22742 2016-02-09 change.
22743
22744 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22745 earlyclobber from target. Use wF constraint for fused memory
22746 address.
22747 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22748
22749 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22750 Martin Liska <mliska@suse.cz>
22751
22752 PR sanitizer/69863
22753 * cfgexpand.c (asan_sanitize_stack_p): New function.
22754 (partition_stack_vars): Use the function.
22755 (expand_stack_vars): Likewise.
22756 (defer_stack_allocation): Likewise.
22757 (expand_used_vars): Likewise.
22758
22759 2016-02-18 Richard Biener <rguenther@suse.de>
22760
22761 PR middle-end/69553
22762 * fold-const.c (operand_equal_p): Properly compare offsets for
22763 IMAGPART_EXPR and ARRAY_REF.
22764
22765 2016-02-18 Nick Clifton <nickc@redhat.com>
22766
22767 PR target/62254
22768 PR target/69610
22769 * config/arm/arm.c (arm_option_override_internal): Disable
22770 interworking if the target does not support thumb instructions.
22771 (arm_reload_in_hi): Handle the case where a register to register
22772 move needs reloading because there is no simple pattern to handle
22773 it.
22774 (arm_reload_out_hi): Likewise.
22775
22776 2016-02-18 Richard Biener <rguenther@suse.de>
22777
22778 PR middle-end/69854
22779 * match.pd: Don't use fold_binary or fold_unary for folding
22780 constants.
22781
22782 2016-02-17 Jakub Jelinek <jakub@redhat.com>
22783
22784 PR c++/69850
22785 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22786 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22787 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22788 warn on gimple_no_warning_p statements.
22789
22790 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
22791
22792 * doc/extend.texi (C++ Attributes): Correct description of
22793 warn_unused type attribute.
22794
22795 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22796
22797 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22798 correct instruction.
22799
22800 2016-02-17 Richard Biener <rguenther@suse.de>
22801
22802 PR rtl-optimization/69609
22803 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22804 (find_traces_1_round): When ending a trace update cached priority
22805 of successors.
22806 (bb_to_key): Use cached priority when available.
22807 (copy_bb): Initialize cached priority.
22808 (reorder_basic_blocks_software_trace_cache): Likewise.
22809
22810 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22811
22812 PR target/69161
22813 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22814 New predicate.
22815 (aarch64_comparison_operator): Break overly long line into two.
22816 (aarch64_comparison_operation): Likewise.
22817 * config/aarch64/aarch64.md (cstorecc4): Use
22818 aarch64_comparison_operator_mode instead of
22819 aarch64_comparison_operator.
22820 (cstore<mode>4): Likewise.
22821 (aarch64_cstore<mode>): Likewise.
22822 (*cstoresi_insn_uxtw): Likewise.
22823 (cstore<mode>_neg): Likewise.
22824 (*cstoresi_neg_uxtw): Likewise.
22825
22826 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22827
22828 PR target/69161
22829 * config/arm/predicates.md (arm_comparison_operator_mode):
22830 New predicate.
22831 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22832 instead of arm_comparison_operator.
22833 (*mov_negscc): Likewise.
22834 (*mov_notscc): Likewise.
22835 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22836 (*thumb2_mov_negscc): Likewise.
22837 (*thumb2_mov_negscc_strict_it): Likewise.
22838 (*thumb2_mov_notscc): Likewise.
22839 (*thumb2_mov_notscc_strict_it): Likewise.
22840
22841 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22842
22843 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22844 Add missing return.
22845
22846 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22847
22848 * config/visium/visium.c (machine_libfunc_index): New enum.
22849 (machine_libfuncs): New structure.
22850 (visium_libfuncs): New static variable.
22851 (TARGET_INIT_LIBFUNCS): Define to...
22852 (visium_init_libfuncs): ...this. New function.
22853 (expand_block_move_4): Use the appropriate libfunc.
22854 (expand_block_move_2): Likewise.
22855 (expand_block_move_1): Likewise.
22856 (expand_block_set_4): Likewise.
22857 (expand_block_set_2): Likewise.
22858 (expand_block_set_1): Likewise.
22859 (visium_trampoline_init): Likewise.
22860
22861 2016-02-17 Nick Clifton <nickc@redhat.com>
22862
22863 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22864 TI's devices.csv file as of March 2016.
22865
22866 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22867
22868 PR Target/48344
22869 * opts-global.c (handle_common_deferred_options): Introduce and
22870 initialize two global variables to remember command-line options
22871 specifying a stack-limiting register.
22872 * opts.h: Add extern declarations of the two new global variables.
22873 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22874 variable based on the values of the two new global variables.
22875
22876 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22877
22878 PR c/69835
22879 * common.opt (Wnonnull-compare): New warning.
22880 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22881 of arguments against NULL.
22882 (-Wnonnull-compare): Document.
22883 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22884 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22885 * passes.def (pass_warn_nonnull_compare): Add.
22886 * gimple-ssa-nonnull-compare.c: New file.
22887
22888 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22889
22890 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22891 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22892
22893 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22894
22895 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22896 reciprocal sqrt for -mlow-precision-recip-sqrt.
22897
22898 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22900
22901 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22902 always use lane loads to construct non-constant vectors.
22903
22904 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22905
22906 * config/aarch64/aarch64.md
22907 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22908 constraints for operand 3.
22909 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22910
22911 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22912 Richard Biener <rguenther@suse.de>
22913
22914 PR tree-optimization/69820
22915 * tree-vect-patterns.c (type_conversion_p): Return false if
22916 *orig_type is unsigned single precision or boolean.
22917 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22918 Formatting fix.
22919
22920 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22921
22922 PR rtl-optimization/69764
22923 PR rtl-optimization/69771
22924 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22925 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22926
22927 2016-02-16 Richard Biener <rguenther@suse.de>
22928
22929 PR tree-optimization/69776
22930 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22931 sets from caller.
22932 (indirect_refs_may_alias_p): Likewise.
22933 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22934 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22935 according to tbaa_p.
22936 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22937 (optimize_stmt): For redundant store discovery do not allow tbaa.
22938
22939 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22940
22941 PR tree-optimization/69714
22942 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22943 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22944
22945 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22946
22947 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22948 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22949 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22950 * config/arc/arc.c (arc_init): Check FPU options.
22951 (get_arc_condition_code): Handle new CC_FPU* modes.
22952 (arc_select_cc_mode): Likewise.
22953 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22954 register pair only. Allow access for ARCv2 accumulator.
22955 (gen_compare_reg): Whenever we have FPU support use FPU compare
22956 instructions.
22957 (arc_reorg): Don't generate brcc insns when FPU compare
22958 instructions are involved.
22959 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22960 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22961 floating point emulation.
22962 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22963 (REVERSE_CONDITION): Add new CC_FPU* modes.
22964 (TARGET_FP_SP_BASE): Define.
22965 (TARGET_FP_DP_BASE): Likewise.
22966 (TARGET_FP_SP_FUSED): Likewise.
22967 (TARGET_FP_DP_FUSED): Likewise.
22968 (TARGET_FP_SP_CONV): Likewise.
22969 (TARGET_FP_DP_CONV): Likewise.
22970 (TARGET_FP_SP_SQRT): Likewise.
22971 (TARGET_FP_DP_SQRT): Likewise.
22972 (TARGET_FP_DP_AX): Likewise.
22973 * config/arc/arc.md (ARCV2_ACC): New constant.
22974 (type): New fpu type attribute.
22975 (SDF): Conditional iterator.
22976 (cstore<mode>, cbranch<mode>): Change expand condition.
22977 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22978 handles FPU/FPX cases as well.
22979 * config/arc/arc.opt (mfpu): New option.
22980 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22981 Renamed.
22982 (adddf3, muldf3, subdf3): Removed.
22983 * config/arc/predicates.md (proper_comparison_operator): Recognize
22984 CC_FPU* modes.
22985 * config/arc/fpu.md: New file.
22986 * doc/invoke.texi (ARC Options): Document mfpu option.
22987
22988 2016-02-16 Richard Biener <rguenther@suse.de>
22989
22990 PR rtl-optimization/69291
22991 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22992 noce_operand_ok check.
22993
22994 2016-02-16 Tom de Vries <tom@codesourcery.com>
22995
22996 PR lto/67709
22997 * omp-low.c (simd_clone_create): Remove call to
22998 symtab->call_cgraph_insertion_hooks.
22999
23000 2016-02-16 Jakub Jelinek <jakub@redhat.com>
23001
23002 PR tree-optimization/69802
23003 * tree-ssa-reassoc.c (update_range_test): If op is
23004 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
23005 op == 1 test of precision 1 integral op, otherwise handle
23006 that case as op itself. Fix up formatting.
23007 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
23008 up formatting.
23009
23010 2016-02-16 Richard Biener <rguenther@suse.de>
23011
23012 PR tree-optimization/69586
23013 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
23014 types for conversion sources.
23015
23016 2016-02-16 Richard Biener <rguenther@suse.de>
23017
23018 PR middle-end/69801
23019 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
23020 mask OEP_ADDRESS_OF.
23021
23022 2016-02-16 Alan Modra <amodra@gmail.com>
23023
23024 PR target/68973
23025 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
23026 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
23027 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
23028 (p8_mtvsrwz): New.
23029 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
23030 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
23031 (p8_fmrgow_<mode>): Likewise.
23032 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
23033 changes.
23034 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
23035 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
23036 to use movdi_internal64. Remove op0_di.
23037 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
23038
23039 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
23040
23041 Add support for the FCCMP insn types
23042
23043 * config/aarch64/aarch64.md (fccmp): Change insn type.
23044 (fccmpe): Likewise.
23045 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
23046 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
23047 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
23048 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
23049 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
23050 * config/arm/types.md (fccmps): Add new insn type.
23051 (fccmpd): Likewise.
23052
23053 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
23054
23055 * alias.c (get_alias_set): Fix a typo in comment.
23056
23057 2016-02-15 Richard Biener <rguenther@suse.de>
23058
23059 PR tree-optimization/69595
23060 * match.pd: Complete range test simplification to true.
23061
23062 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
23063
23064 PR rtl-optimization/69648
23065 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
23066 pic_offset_table_rtx.
23067
23068 PR rtl-optimization/69752
23069 * ira.c (update_equiv_regs): When looking for more than a single SET,
23070 also take other side effects into account.
23071
23072 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23073
23074 * config/s390/s390.c (s390_function_profiler): Add a new sequence
23075 for z900+ CPUs in 31-bit mode.
23076
23077 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23078
23079 * common/config/s390/s390-common.c (s390_supports_split_stack):
23080 New function.
23081 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
23082 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
23083 * config/s390/s390.c (struct machine_function): New field
23084 split_stack_varargs_pointer.
23085 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
23086 in s390_emit_prologue.
23087 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
23088 vararg pointer.
23089 (morestack_ref): New global.
23090 (SPLIT_STACK_AVAILABLE): New macro.
23091 (s390_expand_split_stack_prologue): New function.
23092 (s390_live_on_entry): New function.
23093 (s390_va_start): Use split-stack vararg pointer if appropriate.
23094 (s390_asm_file_end): Emit the split-stack note sections.
23095 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
23096 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
23097 (UNSPECV_SPLIT_STACK_CALL): New unspec.
23098 (UNSPECV_SPLIT_STACK_DATA): New unspec.
23099 (split_stack_prologue): New expand.
23100 (split_stack_space_check): New expand.
23101 (split_stack_data): New insn.
23102 (split_stack_call): New expand.
23103 (split_stack_call_*): New insn.
23104 (split_stack_cond_call): New expand.
23105 (split_stack_cond_call_*): New insn.
23106
23107 2016-02-15 Richard Biener <rguenther@suse.de>
23108
23109 PR tree-optimization/69783
23110 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23111 Add trivially correct cases.
23112
23113 2016-02-15 Tom de Vries <tom@codesourcery.com>
23114
23115 PR lto/69655
23116 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
23117 do_force_output.
23118 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
23119
23120 2016-02-15 Richard Biener <rguenther@suse.de>
23121
23122 PR tree-optimization/69776
23123 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
23124 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
23125 indicate whether we can use TBAA to disambiguate against stores.
23126 Use alias-set zero if not.
23127 (visit_reference_op_store): Do not use TBAA when looking up
23128 redundant stores.
23129 * tree-ssa-pre.c (compute_avail): Use TBAA here.
23130 (eliminate_dom_walker::before_dom_children): But not when looking
23131 up redundant stores.
23132
23133 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
23134
23135 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
23136
23137 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23138
23139 * config/i386/znver1.md
23140 (znver1_pop, znver1_pop_mem,
23141 znver1_load_imov_double_store,
23142 znver1_load_imov_direct_store,
23143 znver1_load_imov_direct_load,
23144 znver1_load_imov_double_load): Add new.
23145 (znver1_insn, znver1_insn_load): Add icmov type.
23146 (znver1_sseavx_fma,
23147 znver1_sseavx_fma_load,
23148 znver1_avx256_fma,
23149 znver1_avx256_fma_load): Fix pipe usage.
23150
23151 2016-02-14 Alan Modra <amodra@gmail.com>
23152
23153 PR target/68973
23154 * reload.c (find_reloads_address_1): For pre/post-inc/dec
23155 with an invalid hard reg, reload just the reg not the entire
23156 pre/post-inc/dec address expression.
23157
23158 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23159
23160 PR target/67260
23161 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
23162 fixed R1_REG scratch reg.
23163 (sibcall_value_pcrel_fdpic): Likewise.
23164
23165 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23166
23167 PR target/67636
23168 PR target/64345
23169 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
23170
23171 2016-02-12 Walter Lee <walt@tilera.com>
23172
23173 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
23174 * config/tilegx/t-tilegx: Likewise.
23175
23176 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23177
23178 PR other/69554
23179 * diagnostic-show-locus.c (struct line_span): New struct.
23180 (layout::get_first_line): Delete.
23181 (layout::get_last_line): Delete.
23182 (layout::get_num_line_spans): New member function.
23183 (layout::get_line_span): Likewise.
23184 (layout::print_heading_for_line_span_index_p): Likewise.
23185 (layout::get_expanded_location): Likewise.
23186 (layout::calculate_line_spans): Likewise.
23187 (layout::m_first_line): Delete.
23188 (layout::m_last_line): Delete.
23189 (layout::m_line_spans): New field.
23190 (layout::layout): Update comment. Replace m_first_line and
23191 m_last_line with m_line_spans, replacing their initialization
23192 with a call to calculate_line_spans.
23193 (diagnostic_show_locus): When printing source lines and
23194 annotations, rather than looping over a single span
23195 of lines, instead loop over each line_span within
23196 the layout, with an inner loop over the lines within them.
23197 Call the context's start_span callback when changing line spans.
23198 * diagnostic.c (diagnostic_initialize): Initialize start_span.
23199 (diagnostic_build_prefix): Break out the building of the location
23200 part of the string into...
23201 (diagnostic_get_location_text): ...this new function, rewriting
23202 it from nested ternary expressions to a sequence of "if"
23203 statements.
23204 (default_diagnostic_start_span_fn): New function.
23205 * diagnostic.h (diagnostic_start_span_fn): New typedef.
23206 (diagnostic_context::start_span): New field.
23207 (default_diagnostic_start_span_fn): New prototype.
23208
23209 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23210
23211 PR driver/69779
23212 * gcc.c (driver::finalize): Fix cleanup of "specs".
23213
23214 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23215
23216 PR driver/69265
23217 PR driver/69453
23218 * gcc.c (driver::driver): Initialize m_option_suggestions.
23219 (driver::~driver): Clean up m_option_suggestions.
23220 (suggest_option): Convert to...
23221 (driver::suggest_option): ...this, and split out into
23222 driver::build_option_suggestions and find_closest_string.
23223 (driver::build_option_suggestions): New function, from
23224 first half of suggest_option. Special-case
23225 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
23226 the sanitizer_opts array. For options of enum types, add the
23227 various enum values to the candidate strings.
23228 (driver::handle_unrecognized_options): Remove "const".
23229 * gcc.h (driver::handle_unrecognized_options): Likewise.
23230 (driver::build_option_suggestions): New decl.
23231 (driver::suggest_option): New decl.
23232 (driver::m_option_suggestions): New field.
23233 * opts-common.c (add_misspelling_candidates): New function.
23234 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
23235 and make non-static.
23236 * opts.h (sanitizer_opts): New array decl.
23237 (add_misspelling_candidates): New function decl.
23238 * spellcheck.c (find_closest_string): New function.
23239 * spellcheck.h (find_closest_string): New function decl.
23240
23241 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23242
23243 PR rtl-optimization/69764
23244 PR rtl-optimization/69771
23245 * optabs.c (expand_binop_directly): For shift_optab_p, force
23246 convert_modes with VOIDmode if xop1 has VOIDmode.
23247
23248 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
23249
23250 PR target/69729
23251 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
23252 to correctly determine instrumentation thunks.
23253
23254 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23255
23256 PR ipa/69241
23257 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
23258 type by reference, force lhs on the call.
23259
23260 PR ipa/68672
23261 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
23262 Compute retval and retbnd early in all cases if split_part_return_p
23263 and return_bb is not EXIT. Remove all clobber stmts and reset
23264 all debug stmts that refer to SSA_NAMEs defined in split part,
23265 except if it is retval, in that case replace the old retval with the
23266 lhs of the call to the split part.
23267
23268 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23269
23270 revert:
23271 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23272
23273 PR middle-end/66726
23274 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23275 whose result is used in PHI.
23276 (maybe_optimize_range_tests): Likewise.
23277 (final_range_test_p): Likweise.
23278
23279 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23280
23281 PR middle-end/66726
23282 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23283 whose result is used in PHI.
23284 (maybe_optimize_range_tests): Likewise.
23285 (final_range_test_p): Likweise.
23286
23287 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23288
23289 * cgraph.c: Spelling fixes - behaviour -> behavior and
23290 neighbour -> neighbor.
23291 * target.def: Likewise.
23292 * sel-sched.c: Likewise.
23293 * config/mips/mips.c: Likewise.
23294 * config/arc/arc.md: Likewise.
23295 * config/arm/cortex-a57.md: Likewise.
23296 * config/arm/arm.c: Likewise.
23297 * config/arm/neon.md: Likewise.
23298 * config/arm/arm-c.c: Likewise.
23299 * config/vms/vms-c.c: Likewise.
23300 * config/s390/s390.c: Likewise.
23301 * config/i386/znver1.md: Likewise.
23302 * config/i386/i386.c: Likewise.
23303 * config/ia64/hpux-unix2003.h: Likewise.
23304 * config/msp430/msp430.md: Likewise.
23305 * config/rx/rx.c: Likewise.
23306 * config/rx/rx.md: Likewise.
23307 * config/aarch64/aarch64-simd.md: Likewise.
23308 * config/aarch64/aarch64.c: Likewise.
23309 * config/nvptx/nvptx.c: Likewise.
23310 * config/bfin/bfin.c: Likewise.
23311 * config/cris/cris.opt: Likewise.
23312 * config/rs6000/rs6000.c: Likewise.
23313 * target.h: Likewise.
23314 * spellcheck.c: Likewise.
23315 * ira-build.c: Likewise.
23316 * tree-inline.c: Likewise.
23317 * builtins.c: Likewise.
23318 * lra-constraints.c: Likewise.
23319 * explow.c: Likewise.
23320 * hwint.h: Likewise.
23321 * targhooks.c: Likewise.
23322 * tree-vect-data-refs.c: Likewise.
23323 * expr.c: Likewise.
23324 * doc/tm.texi: Likewise.
23325 * doc/extend.texi: Likewise.
23326 * doc/install.texi: Likewise.
23327 * doc/md.texi: Likewise.
23328 * tree-ssa-tail-merge.c: Likewise.
23329 * sched-int.h: Likewise.
23330 * match.pd: Likewise.
23331 * sched-ebb.c: Likewise.
23332 * target.def (omit_struct_return_reg): Likewise.
23333 * gimple-ssa-isolate-paths.c: Likewise.
23334 (find_implicit_erroneous_behaviour): Renamed to...
23335 (find_implicit_erroneous_behavior): ... this.
23336 (find_explicit_erroneous_behaviour): Renamed to...
23337 (find_explicit_erroneous_behavior): ... this.
23338 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
23339
23340 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
23341
23342 PR rtl-optimization/64682
23343 PR rtl-optimization/69567
23344 PR rtl-optimization/69737
23345 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
23346 in I2 as well, just lose it.
23347
23348 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23349
23350 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
23351 New variable.
23352 (aarch64_last_printed_tune_string): Likewise.
23353 (aarch64_declare_function_name): Only output .arch assembler
23354 directive if it will be different from the previously output
23355 directive. Same for .tune comment but only if -dA is set.
23356 (aarch64_start_file): New function.
23357 (TARGET_ASM_FILE_START): Define.
23358
23359 2016-02-11 David Malcolm <dmalcolm@redhat.com>
23360
23361 PR plugins/69758
23362 * Makefile.in (PLUGIN_HEADERS): Add params.list.
23363
23364 2016-02-11 Jakub Jelinek <jakub@redhat.com>
23365
23366 PR target/65313
23367 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
23368 -Wmaybe-uninitialized warning.
23369
23370 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
23371
23372 PR target/69713
23373 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
23374
23375 2016-02-11 Richard Biener <rguenther@suse.de>
23376
23377 PR rtl-optimization/69291
23378 * ifcvt.c (noce_try_store_flag_constants): Do not allow
23379 subexpressions affected by changing the result.
23380
23381 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
23382
23383 PR target/69148
23384 * lra-constraints.c (curr_insn_transform): Find in/out operands
23385 for secondary memory moves. Update dups.
23386
23387 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
23388
23389 PR tree-optimization/69652
23390 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
23391 to nested loop, did source re-formatting, skip debug statements,
23392 add check on statement with volatile operand, remove dead scalar
23393 statements.
23394
23395 2016-02-10 Jakub Jelinek <jakub@redhat.com>
23396 Patrick Palka <ppalka@gcc.gnu.org>
23397
23398 PR ipa/69241
23399 PR c++/69649
23400 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
23401 calls if the return type is TREE_ADDRESSABLE.
23402 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
23403 * ipa-split.c (split_function): Fix doubled "we" in comment.
23404 Use void return type for the split part even if
23405 !split_point->split_part_set_retval.
23406
23407 2016-02-10 Bin Cheng <bin.cheng@arm.com>
23408
23409 PR tree-optimization/68021
23410 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
23411 when computing the value of biv cand by itself.
23412
23413 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23414
23415 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
23416 (cortexa57_tunings): Likewise.
23417 (cortexa72_tunings): Likewise.
23418 (arch_macro_fusion_pair_p): Add support for AES fusion.
23419 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
23420 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
23421 Allow virtual registers before reload so early scheduling works.
23422 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
23423 correct latency and pipeline.
23424 (cortex_a57_crypto_complex): Likewise.
23425 (cortex_a57_crypto_xor): Likewise.
23426 (define_bypass): Add AES bypass.
23427
23428 2016-02-10 Richard Biener <rguenther@suse.de>
23429
23430 PR tree-optimization/69726
23431 * passes.def: Add DCE pass before late uninit.
23432 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
23433 really fixup if-conversions job.
23434
23435 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23436
23437 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
23438 (arm_cortex_a57_tune): Likewise.
23439 (aarch_macro_fusion_pair_p): Add support for AES fusion.
23440 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
23441
23442 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
23443
23444 * timevar.def (TV_PHASE_DBGINFO): Delete.
23445 (TV_PHASE_CHECK_DBGINFO): Likewise.
23446 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
23447
23448 2016-02-10 Richard Biener <rguenther@suse.de>
23449
23450 PR tree-optimization/69719
23451 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23452 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
23453
23454 2016-02-09 Andrew Pinski <apinski@cavium.com>
23455
23456 PR tree-opt/69282
23457 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
23458 get_vcond_mask_icode returns false.
23459
23460 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23461
23462 PR target/68404
23463 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
23464 an ADDIS that adds a pointer to a large constant that sets the
23465 upper16 bits with a load operation.
23466
23467 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23468
23469 PR target/68532
23470 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
23471 order.
23472 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
23473 endian.
23474 (vzipq_s16): Likewise.
23475 (vzipq_s32): Likewise.
23476 (vzipq_f32): Likewise.
23477 (vzipq_u8): Likewise.
23478 (vzipq_u16): Likewise.
23479 (vzipq_u32): Likewise.
23480 (vzipq_p8): Likewise.
23481 (vzipq_p16): Likewise.
23482
23483 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23484
23485 PR target/68532
23486 * config/arm/arm.c (neon_endian_lane_map): New function.
23487 (neon_vector_pair_endian_lane_map): New function.
23488 (arm_evpc_neon_vuzp): Allow for big endian lane order.
23489 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
23490 endian.
23491 (vuzpq_s16): Likewise.
23492 (vuzpq_s32): Likewise.
23493 (vuzpq_f32): Likewise.
23494 (vuzpq_u8): Likewise.
23495 (vuzpq_u16): Likewise.
23496 (vuzpq_u32): Likewise.
23497 (vuzpq_p8): Likewise.
23498 (vuzpq_p16): Likewise.
23499
23500 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
23501
23502 PR target/69634
23503 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
23504 debug insns.
23505
23506 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
23507
23508 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
23509 truncate const_int operand 1 to QImode.
23510
23511 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
23512
23513 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
23514 corresponding to an abnormal edge.
23515
23516 2016-02-09 Tom de Vries <tom@codesourcery.com>
23517
23518 PR tree-optimization/69599
23519 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
23520 function.
23521 (find_func_aliases_for_builtin_call, find_func_clobbers)
23522 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
23523 partition.
23524
23525 2016-02-09 Richard Biener <rguenther@suse.de>
23526
23527 PR tree-optimization/69715
23528 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
23529 LHS on calls as non-rewritable.
23530
23531 2016-02-09 Tom de Vries <tom@codesourcery.com>
23532
23533 PR lto/69707
23534 * lto-wrapper.c (append_diag_options): New function.
23535 (compile_offload_image): Call append_diag_options.
23536
23537 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
23538
23539 PR other/69722
23540 * doc/extend.texi (Flag Output Operands): Correct sectioning.
23541 Minor copy-edit to fix verb tenses.
23542
23543 2016-02-08 Jakub Jelinek <jakub@redhat.com>
23544
23545 PR tree-optimization/69209
23546 * ipa-split.c (split_function): If split part is not
23547 returning retval, retval has gimple type but is not
23548 gimple value, force it into a SSA_NAME first.
23549
23550 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
23551
23552 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
23553 outdated section.
23554
23555 2016-02-08 Jason Merrill <jason@redhat.com>
23556
23557 PR c++/69631
23558 * convert.c (convert_to_integer_1): Check dofold on truncation
23559 distribution.
23560 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
23561 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
23562 Rename from *_nofold.
23563 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
23564 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
23565
23566 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
23567
23568 PR target/60410
23569 * tree.c (build_common_tree_nodes): Remove short_double argument.
23570 All callers changed.
23571 * tree.h (build_common_tree_nodes): Adjust declaration.
23572 * doc/invoke.texi (-fshort-double): Remove documentation.
23573 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23574 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
23575 * lto-wrapper.c (merge_and_complain, append_compiler_options)
23576 (append_linker_options): Don't handle OPT_fshort_double.
23577
23578 PR rtl-optimization/68730
23579 * lra-remat.c (insn_to_cand_activation): New static variable.
23580 (lra_remat): Allocate and free it.
23581 (create_cand): New arg activation. Initialize a field in
23582 insn_to_cand_activation if it is nonnull.
23583 (create_cands): Pass the activation insn to create_cand when making
23584 a candidate involving an output reload. Reorganize code a little.
23585 (do_remat): Keep track of active status of candidates in a separate
23586 bitmap.
23587
23588 2016-02-08 Richard Biener <rguenther@suse.de>
23589
23590 PR tree-optimization/69719
23591 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23592 Properly use absolute of the difference of the two offsets to
23593 compare or adjust the segment length.
23594
23595 2016-02-08 Richard Biener <rguenther@suse.de>
23596 Jeff Law <law@redhat.com>
23597
23598 PR target/68273
23599 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
23600 types for anonymous SSA names.
23601
23602 2016-02-08 Richard Biener <rguenther@suse.de>
23603
23604 PR rtl-optimization/69274
23605 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
23606
23607 2016-02-08 Jeff Law <law@redhat.com>
23608
23609 PR tree-optimization/65917
23610 * tree-ssa-dom.c (record_temporary_equivalences): Record both
23611 equivalences from if (x == y) style conditionals.
23612 (loop_depth_of_name): Remove.
23613 (record_equality): Remove loop depth check.
23614 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
23615 (const_and_copies::record_const_or_copy_raw): New member function.
23616 * tree-ssa-scopedtables.c
23617 (const_and_copies::record_const_or_copy_raw): New, factored out of
23618 (const_and_copies::record_const_or_copy): Call new member function.
23619
23620 2016-02-05 Jeff Law <law@redhat.com>
23621
23622 PR tree-optimization/68541
23623 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
23624 (count_stmts_in_block): New function.
23625 (poor_ifcvt_candidate_code): Likewise.
23626 (is_feasible_trace): Add some heuristics to determine when path
23627 splitting is profitable.
23628 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
23629 is a diamond with a single exit.
23630
23631 2016-02-05 Martin Sebor <msebor@redhat.com>
23632
23633 PR c++/69662
23634 * doc/invoke.texi: Update -Wplacement-new to take an optional
23635 argument.
23636
23637 2016-02-06 Richard Henderson <rth@redhat.com>
23638
23639 PR c/69643
23640 * tree.c (tree_nop_conversion_p): Do not strip casts into or
23641 out of non-standard address spaces.
23642
23643 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23644
23645 PR rtl-optimization/69691
23646 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
23647
23648 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
23649
23650 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
23651 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
23652 (*ieee128_mfvsrd_64bit): Likewise.
23653 (*ieee128_mfvsrd_32bit): Likewise.
23654
23655 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
23656
23657 PR target/69369
23658 Revert r232560:
23659 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23660
23661 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23662 instrumented_version.
23663
23664 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
23665
23666 * doc/invoke.texi (Optimize Options): In table of --param options
23667 rename second occurrence of tracer-min-branch-ratio to
23668 tracer-min-branch-probability, rename
23669 tracer-min-branch-ratio-feedback to
23670 tracer-min-branch-probability-feedback and clarify description,
23671 rename sched-spec-state-edge-prob-cutoff to
23672 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23673 to selsched-insns-to-rename, rename lto-minpartition to
23674 lto-min-partition, delete reorder-blocks-duplicate and
23675 reorder-blocks-duplicate-feedback.
23676
23677 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23678
23679 * config/s390/s390.c (s390_register_info_set_ranges): Remove
23680 superfluous loops.
23681
23682 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
23683
23684 * doc/extend.texi: S/390: Correct some typos.
23685
23686 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23687
23688 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23689
23690 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23691
23692 PR target/69625
23693 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23694 (s390_register_info_gprtofpr): Use new macros above.
23695 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23696 its name.
23697 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23698 its name. Adjust restore and save gpr ranges.
23699 (s390_register_info_set_ranges): New function.
23700 (s390_register_info): Use new macros above. Call
23701 s390_register_info_set_ranges.
23702 (s390_optimize_register_info): Likewise.
23703 (s390_hard_regno_rename_ok): Use new macros.
23704 (s390_hard_regno_scratch_ok): Likewise.
23705 (s390_emit_epilogue): Likewise.
23706 (s390_can_use_return_insn): Likewise.
23707 (s390_optimize_prologue): Likewise.
23708 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23709
23710 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23711
23712 PR bootstrap/69677
23713 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23714 alignment fixes.
23715 (ix86_option_override_internal): Disable TARGET_STV even for
23716 -m{incoming,preferred}-stack-boundary=3.
23717
23718 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23719
23720 * config.gcc: Mark deprecated rtems targets as obsolete.
23721
23722 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
23723
23724 PR rtl-optimization/64682
23725 PR rtl-optimization/69567
23726 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23727 before I2 only if the register is both used and set in I2.
23728
23729 2016-02-04 DJ Delorie <dj@redhat.com>
23730
23731 * config/msp430/msp430.c (msp430_start_function): Add function type.
23732
23733 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23734
23735 PR fortran/69368
23736 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23737
23738 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
23739
23740 PR rtl-optimization/69577
23741 Revert:
23742 2015-10-29 Richard Henderson <rth@redhat.com>
23743
23744 PR target/68124
23745 PR rtl-opt/67609
23746 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23747 sse check to the exact conditions of PR 67609.
23748
23749 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
23750
23751 PR target/69667
23752 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23753 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23754 not allowed into the traditional Altivec registers.
23755 (movtd_64bit_nodm): Likewise.
23756 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23757
23758 2016-02-04 David Malcolm <dmalcolm@redhat.com>
23759
23760 * config/aarch64/cortex-a57-fma-steering.c
23761 (aarch64_register_fma_steering): Remove "static" from arguments
23762 to register_pass.
23763
23764 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
23765
23766 PR target/69619
23767 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23768 twice when complex.
23769
23770 2016-02-04 Mike Frysinger <vapier@gentoo.org>
23771
23772 * doc/invoke.texi: Delete -mno-fma4.
23773
23774 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
23775
23776 PR rtl-optimization/69577
23777 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23778 (find_subregs_of_mode): Update accordingly. Iterate over partial
23779 definitions.
23780
23781 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
23782
23783 * config/arm/arm-protos.h (neon_reinterpret): Remove.
23784 * config/arm/arm.c (neon_reinterpret): Remove.
23785 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23786 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23787 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23788 vreinterpretti): Remove.
23789 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23790 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23791 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23792 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23793 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23794 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23795 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23796 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23797 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23798 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23799 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23800 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23801 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23802 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23803 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23804 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23805 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23806 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23807 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23808 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23809 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23810 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23811 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23812 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23813 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23814 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23815 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23816 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23817 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23818 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23819 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23820 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23821 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23822 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23823 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23824 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23825 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23826 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23827 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23828 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23829 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23830 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23831 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23832 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23833 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23834 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23835 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23836 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23837 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23838 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23839 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23840 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23841 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23842 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23843 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23844 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23845 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23846 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23847 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23848 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23849 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23850 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23851 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23852 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23853 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23854 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23855 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23856 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23857 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23858 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23859 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23860 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23861 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23862 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23863 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23864 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23865 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23866 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23867 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23868 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23869 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23870 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23871 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23872 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23873 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23874 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23875 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23876 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23877 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23878 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23879 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23880 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23881 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23882 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23883 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23884 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23885 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23886 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23887 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23888 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23889 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23890 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23891 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23892
23893 2016-02-04 Martin Liska <mliska@suse.cz>
23894
23895 PR sanitizer/69276
23896 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23897 that are gimple_store_p.
23898 (maybe_instrument_call): Likewise.
23899
23900 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23901
23902 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23903 register scaling out of memory reference and comment why.
23904
23905 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23906
23907 PR target/65932
23908 PR target/67714
23909 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23910 folding the source of a SET.
23911
23912 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23913
23914 PR target/65932
23915 PR target/67714
23916 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23917 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23918
23919 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23920
23921 PR target/65932
23922 PR target/67714
23923 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23924 HImode.
23925
23926 2016-02-04 Christian Bruel <christian.bruel@st.com>
23927
23928 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23929 * config/arm/arm.c (arm_set_current_function): Likewise.
23930
23931 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23932 Ilya Enkovich <enkovich.gnu@gmail.com>
23933 H.J. Lu <hongjiu.lu@intel.com>
23934
23935 PR target/69454
23936 * config/i386/i386.c (convert_scalars_to_vector): Remove
23937 stack alignment fixes.
23938 (ix86_option_override_internal): Disable TARGET_STV if stack
23939 might not be aligned enough.
23940 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23941
23942 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23943
23944 * config/i386/x86-tune.def: Disable default prefetching
23945 for -march=znver1.
23946
23947 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23948 Vladimir Makarov <vmakarov@redhat.com>
23949
23950 PR target/69461
23951 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23952 in validating fused toc addresses.
23953
23954 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23955
23956 PR c/69627
23957 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23958 range->m_caret fields if range->m_show_caret_p is false.
23959
23960 PR target/69644
23961 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23962 Force oldval into register if it does not satisfy reg_or_short_operand
23963 predicate. Fix up formatting.
23964
23965 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23966 Alexandre Oliva <aoliva@redhat.com>
23967
23968 PR target/69461
23969 * lra-constraints.c (simplify_operand_subreg): Check additionally
23970 address validity after potential reloading.
23971 (process_address_1): Check insns validity. In case of failure do
23972 nothing.
23973
23974 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23975
23976 PR target/69118
23977 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23978 Fix target.
23979
23980 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23981
23982 * wide-int.cc (canonize_uhwi): New function.
23983 (wi::divmod_internal): Use it.
23984
23985 2016-02-02 James Norris <jnorris@codesourcery.com>
23986
23987 * gimplify.c (omp_notice_variable): Add usage check.
23988
23989 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23990
23991 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23992 like LE, GE, LT, GT when emitting relational operator.
23993
23994 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23995
23996 * ira-costs.c (find_costs_and_classes): Add extra argument.
23997 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23998 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23999 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
24000 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
24001 Add best_class parameter, and return it if not ALL_REGS.
24002 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
24003 Add parameter.
24004 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
24005 Update target hook.
24006
24007 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
24008
24009 * config/aarch64/aarch64.c
24010 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
24011 (aarch64_ira_change_pseudo_allocno_class): New function.
24012
24013 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
24014
24015 PR target/67032
24016 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
24017
24018 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24019
24020 * config/avr/avr.c (avr_option_override): Set
24021 PARAM_ALLOW_STORE_DATA_RACES to 1.
24022
24023 2016-02-02 Richard Biener <rguenther@suse.de>
24024
24025 PR tree-optimization/69595
24026 * match.pd: Add range test simplifications to true/false.
24027
24028 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
24029
24030 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
24031 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
24032 instead.
24033
24034 2016-02-02 Richard Biener <rguenther@suse.de>
24035
24036 PR tree-optimization/69606
24037 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
24038 info on the result before moving a stmt.
24039
24040 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
24041
24042 PR middle-end/68542
24043 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
24044 branch with vector comparison.
24045 * config/i386/sse.md (VI48_AVX): New mode iterator.
24046 (define_expand "cbranch<mode>4): Add support for conditional branch
24047 with vector comparison.
24048 * tree-vect-loop.c (optimize_mask_stores): New function.
24049 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
24050 has_mask_store field of vect_info.
24051 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
24052 vectorized loops having masked stores after vec_info destroy.
24053 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
24054 correspondent macros.
24055 (optimize_mask_stores): Add prototype.
24056
24057 2016-02-02 Alan Modra <amodra@gmail.com>
24058
24059 PR target/69548
24060 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
24061 allow subregs.
24062
24063 2016-02-02 Alan Modra <amodra@gmail.com>
24064
24065 PR target/68662
24066 * config/rs6000/rs6000.c (need_toc_init): New var, set it
24067 whenever toc_label_name used.
24068 (rs6000_file_start): Don't set up toc section here,
24069 (rs6000_output_function_epilogue): do so here instead,
24070 (rs6000_xcoff_file_start): and here.
24071 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
24072 (load_toc_aix_di): Likewise.
24073
24074 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24075
24076 PR rtl-optimization/69592
24077 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
24078 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
24079 (num_sign_bit_copies_binary_arith_p): New inline function.
24080 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
24081
24082 2016-02-01 Jeff Law <law@redhat.com>
24083
24084 PR tree-optimization/69580
24085 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
24086 * tree-ssa-threadbackward.c
24087 (fsm_find_control_statement_thread_paths): Do not try to walk
24088 through large PHI nodes.
24089
24090 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24091
24092 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
24093 when count is incremented above limit, don't analyze further
24094 insns afterwards.
24095
24096 * omp-low.c (oacc_parse_default_dims): Avoid
24097 -Wsign-compare warning, make sure value fits into int
24098 rather than just unsigned int.
24099
24100 2016-02-01 Bin Cheng <bin.cheng@arm.com>
24101
24102 PR tree-optimization/67921
24103 * fold-const.c (split_tree): New parameters. Convert pointer
24104 type variable part to proper type before negating.
24105 (fold_binary_loc): Pass new arguments to split_tree.
24106
24107 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
24108
24109 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
24110 (nvptx_goacc_validate_dims): Extend to handle global defaults.
24111 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
24112 * doc/tm.texti: Rebuilt.
24113 * doc/invoke.texi (fopenacc-dim): Document.
24114 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
24115 (append_compiler_options): Likewise.
24116 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
24117 (oacc_parse_default_dims): New.
24118 (oacc_validate_dims): Add USED arg. Select non-unity default when
24119 possible.
24120 (oacc_loop_fixed_partitions): Return mask of used partitions.
24121 (oacc_loop_auto_partitions): Emit dump info.
24122 (oacc_loop_partition): Return mask of used partitions.
24123 (execute_oacc_device_lower): Parse default dimension arg. Adjust
24124 loop partitioning and validation calls.
24125
24126 2016-02-01 Richard Biener <rguenther@suse.de>
24127
24128 PR middle-end/69556
24129 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
24130
24131 2016-02-01 Richard Biener <rguenther@suse.de>
24132
24133 PR tree-optimization/69574
24134 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
24135 of asserting return chrec_dont_know.
24136
24137 2016-02-01 Martin Liska <mliska@suse.cz>
24138
24139 * mem-stats-traits.h: Add copyright header.
24140 * mem-stats.h: Likewise.
24141
24142 2016-02-01 Richard Biener <rguenther@suse.de>
24143
24144 PR tree-optimization/69579
24145 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
24146 Do not propagate through abnormal PHI results.
24147
24148 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
24149
24150 * postreload.c (reload_cse_simplify): Remove dead code.
24151
24152 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24153
24154 PR rtl-optimization/69570
24155 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
24156 if there is more than one set, not if there is a single set.
24157
24158 2016-02-01 Richard Henderson <rth@redhat.com>
24159
24160 PR rtl-opt/69535
24161 * combine.c (make_compound_operation): When looking through a
24162 subreg, make sure to re-extend to the width of the outer mode.
24163
24164 2016-01-30 Jakub Jelinek <jakub@redhat.com>
24165
24166 PR tree-optimization/69546
24167 * wide-int.cc (wi::divmod_internal): For unsigned division
24168 where both operands fit into uhwi, if o1 is 1 and o0 has
24169 msb set, if divident_prec is larger than bits per hwi,
24170 clear another quotient word and return 2 instead of 1.
24171 Similarly for remainder with msb in HWI set, if dividend_prec
24172 is larger than bits per hwi.
24173
24174 2016-01-29 Martin Jambor <mjambor@suse.cz>
24175
24176 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
24177 Use short lowercase names.
24178 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
24179 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
24180 acq_rel one. Protect warning agains segfaults if
24181 get_memory_order_name returns NULL.
24182 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
24183 with release semantics. Do not warn if get_memory_order already did.
24184 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
24185 semantics. Fix check for relaxed or acquire semantics. Do not warn
24186 if get_memory_order already did.
24187
24188 2016-01-29 Sebastian Pop <s.pop@samsung.com>
24189
24190 * doc/install.texi: Document that isl-0.16 is supported.
24191
24192 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
24193
24194 PR target/69299
24195 * config/i386/constraints.md (Bm): Describe as special memory
24196 constraint.
24197 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
24198 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24199 * genpreds.c (struct constraint_data): Add is_special_memory.
24200 (have_special_memory_constraints, special_memory_start): New
24201 static vars.
24202 (special_memory_end): Ditto.
24203 (add_constraint): Add new arg is_special_memory. Add code to
24204 process its true value. Update have_special_memory_constraints.
24205 (process_define_constraint): Pass the new arg.
24206 (process_define_register_constraint): Ditto.
24207 (choose_enum_order): Process special memory.
24208 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
24209 function insn_extra_special_memory_constraint.
24210 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24211 * gensupport.c (process_rtx): Process
24212 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24213 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
24214 * ira-lives.c (single_reg_class): Use
24215 insn_extra_special_memory_constraint.
24216 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
24217 * lra-constraints.c (process_alt_operands): Ditto.
24218 (curr_insn_transform): Use insn_extra_special_memory_constraint.
24219 * recog.c (asm_operand_ok, preprocess_constraints): Process
24220 CT_SPECIAL_MEMORY.
24221 * reload.c (find_reloads): Ditto.
24222 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
24223 * stmt.c (parse_input_constraint): Use
24224 insn_extra_special_memory_constraint.
24225
24226 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24227
24228 PR target/69530
24229 * lra-splill.c (lra_final_code_change): Revert r229087 by
24230 removing all sub-registers.
24231
24232 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
24233
24234 PR target/65604
24235 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
24236
24237 2016-01-29 Jakub Jelinek <jakub@redhat.com>
24238
24239 PR target/69551
24240 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
24241 SSE1, copy target into the temporary reg first before recursing
24242 on it.
24243
24244 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24245
24246 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
24247 with vm.
24248
24249 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24250
24251 * ginclude/stdarg.h: Test __cplusplus instead of
24252 __GXX_EXPERIMENTAL_CXX0X__.
24253
24254 2016-01-29 Richard Biener <rguenther@suse.de>
24255
24256 PR tree-optimization/69547
24257 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
24258 Do not mark clobbers necessary.
24259 (mark_all_reaching_defs_necessary_1): Likewise.
24260
24261 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24262
24263 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
24264 declaration name with %qs and print it in both error messages.
24265 Also fix indentation.
24266
24267 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24268
24269 PR other/69006
24270 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
24271 trailing blank line from error message.
24272
24273 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24274
24275 PR c++/69462
24276 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
24277 for C++-11.
24278
24279 2016-01-29 Richard Biener <rguenther@suse.de>
24280
24281 PR middle-end/69537
24282 * match.pd: Allow all integral types when simplifying a
24283 widening or sign-changing conversion.
24284
24285 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24286
24287 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
24288 back to setting codegen_error to fail codegen.
24289
24290 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
24291
24292 PR target/69459
24293 * config/i386/constraints.md (C): Only accept constant zero operand.
24294 (BC): New constraint.
24295 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
24296 instead of C constraint.
24297 * doc/md.texi (Machine Constraints): Update description
24298 of C constraint.
24299
24300 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
24301
24302 PR target/68400
24303 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
24304
24305 2016-01-28 Jakub Jelinek <jakub@redhat.com>
24306
24307 PR middle-end/69542
24308 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
24309 non-debug insns.
24310
24311 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
24312
24313 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
24314 branches if using guessed profile.
24315
24316 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
24317
24318 * graphite-optimize-isl.c (optimize_isl): Fix dump.
24319
24320 2016-01-28 Richard Henderson <rth@redhat.com>
24321
24322 PR target/69305
24323 * config/aarch64/aarch64-modes.def (CC_Cmode): New
24324 * config/aarch64/aarch64-protos.h: Update.
24325 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
24326 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
24327 (aarch64_get_condition_code_1): Handle CC_Cmode.
24328 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
24329 (*add<mode>3_compareC_cconly_imm): New.
24330 (*add<mode>3_compareC_cconly): New.
24331 (*add<mode>3_compareC_imm): New.
24332 (add<mode>3_compareC): New.
24333 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
24334 to be first. Use aarch64_carry_operation.
24335 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
24336 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
24337 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
24338 (subti3): Use subdi3_compare1.
24339 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
24340 (sub<mode>3_compare1): New.
24341 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
24342 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
24343 (*subsi3_carryin_uxtw): Likewise.
24344 (*ngc<mode>, *ngcsi_uxtw): Likewise.
24345 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
24346 * config/aarch64/iterators.md (DWI): New.
24347 * config/aarch64/predicates.md (aarch64_carry_operation): New.
24348 (aarch64_borrow_operation): New.
24349
24350 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24351
24352 * graphite-optimize-isl.c (optimize_isl): Print a different debug
24353 message when isl does not return a valid schedule.
24354
24355 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24356
24357 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
24358 Remove comments from class declarations: they are already in the code
24359 close by the defs.
24360
24361 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24362
24363 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
24364 codegen_error_p.
24365 (ternary_op_to_tree): Same.
24366 (unary_op_to_tree): Same.
24367 (nary_op_to_tree): Same.
24368 (gcc_expression_from_isl_expr_op): Same.
24369 (gcc_expression_from_isl_expression): Same.
24370 (graphite_create_new_loop): Same.
24371 (graphite_create_new_loop_guard): Same.
24372 (build_iv_mapping): Same.
24373 (graphite_create_new_guard): Same.
24374 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
24375 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
24376
24377 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24378
24379 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
24380 instead of setting codegen_error to fail codegen.
24381
24382 2016-01-28 Jason Merrill <jason@redhat.com>
24383
24384 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
24385
24386 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24387
24388 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24389 Remove CONST_INT_P check in CCMP cost calculation.
24390
24391 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24392
24393 * config/aarch64/aarch64.c (generic_vector_cost):
24394 Set vec_permute_cost.
24395 (cortexa57_vector_cost): Likewise.
24396 (exynosm1_vector_cost): Likewise.
24397 (xgene1_vector_cost): Likewise.
24398 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
24399 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
24400 Add vec_permute_cost entry.
24401
24402 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24403
24404 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
24405 immediate as %1.
24406 (add<mode>3_compare0): Likewise.
24407 (addsi3_compare0_uxtw): Likewise.
24408 (add<mode>3nr_compare0): Likewise.
24409 (compare_neg<mode>): Likewise.
24410 (<optab><mode>3): Likewise.
24411
24412 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
24413
24414 * tree-vect-stmts.c (vectorizable_comparison): Add
24415 NULL check for vectype.
24416
24417 2016-01-28 Richard Biener <rguenther@suse.de>
24418
24419 PR tree-optimization/69466
24420 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
24421 Account for PHIs we couldn't duplicate.
24422
24423 2016-01-28 Martin Liska <mliska@suse.cz>
24424
24425 PR pch/68758
24426 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
24427 instead of ENABLE_VALGRIND_CHECKING.
24428
24429 2016-01-27 Richard Henderson <rth@redhat.com>
24430
24431 PR rtl-opt/69447
24432 * lra-remat.c (subreg_regs): New.
24433 (dump_candidates_and_remat_bb_data): Dump it.
24434 (operand_to_remat): Reject if operand in subreg_regs.
24435 (set_bb_regs): Collect subreg_regs.
24436 (lra_remat): Init and free subreg_regs. Compute
24437 calculate_local_reg_remat_bb_data before create_cands.
24438
24439 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
24440
24441 PR target/68986
24442 * config/i386/i386.c (ix86_update_stack_boundary): Don't
24443 change stack_alignment_needed for __tls_get_addr call.
24444
24445 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
24446
24447 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
24448
24449 2016-01-27 Jeff Law <law@redhat.com>
24450
24451 PR tree-optimization/68398
24452 PR tree-optimization/69196
24453 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
24454 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
24455 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24456 Only count PHIs in the last block in the path. The others will
24457 const/copy propagate away. Add heuristic to allow more irreducible
24458 subloops to be created when it is likely profitable to do so.
24459
24460 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24461 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
24462 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
24463
24464 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24465
24466 PR lto/69254
24467 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
24468 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
24469 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
24470 * tree-streamer-in.c: Include asan.h.
24471 (streamer_get_builtin_tree): For builtins in sanitizer
24472 range call initialize_sanitizer_builtins and retry.
24473
24474 2016-01-27 Ian Lance Taylor <iant@google.com>
24475
24476 * common.opt (fkeep-gc-roots-live): New undocumented option.
24477 * tree-ssa-loop-ivopts.c (add_candidate_1): If
24478 -fkeep-gc-roots-live, skip pointers.
24479 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
24480 NULL.
24481
24482 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
24483
24484 PR target/69512
24485 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
24486 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
24487
24488 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
24489
24490 PR target/68380
24491 * configure.ac: NetBSD provides SSP in its C library.
24492 * configure: Updated.
24493
24494 2016-01-27 Richard Biener <rguenther@suse.de>
24495
24496 PR tree-optimization/69166
24497 * tree-vect-loop.c (vect_is_simple_reduction): Always check
24498 reduction code for commutativity / associativity.
24499
24500 2016-01-27 Martin Jambor <mjambor@suse.cz>
24501
24502 PR tree-optimization/69355
24503 * tree-sra.c (analyze_access_subtree): Correct hole detection when
24504 total_scalarization fails.
24505
24506 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
24507
24508 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
24509 power9.
24510
24511 2016-01-27 Christian Bruel <christian.bruel@st.com>
24512
24513 PR target/69245
24514 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
24515 Move arm_reset_previous_fndecl and set_target_option_current_node in
24516 the conditional part. Call save_restore_target_globals.
24517 * config/arm/arm.c (arm_set_current_function):
24518 Refactor to better support #pragma target and attribute mix.
24519 Call save_restore_target_globals.
24520 * config/arm/arm-protos.h (save_restore_target_globals): New function.
24521
24522 2016-01-27 Martin Liska <mliska@suse.cz>
24523
24524 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
24525 reference for an HSA kernel and its host function.
24526
24527 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24528
24529 PR tree-optimization/69399
24530 * wide-int.h (wi::lrshift): For larger precisions, only
24531 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
24532
24533 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
24534
24535 * config/arc/predicates.md (proper_comparison_operator): Reject
24536 constant-constant comparison.
24537
24538 2016-01-26 Tom de Vries <tom@codesourcery.com>
24539
24540 PR tree-optimization/69110
24541 * tree-data-ref.c (initialize_data_dependence_relation): Handle
24542 DR_NUM_DIMENSIONS == 0.
24543
24544 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24545 Sebastian Pop <s.pop@samsung.com>
24546
24547 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
24548 isl_ast_op_cond and isl_ast_op_select.
24549 (gcc_expression_from_isl_expr_op): Same.
24550
24551 2016-01-26 Jason Merrill <jason@redhat.com>
24552
24553 PR c++/68782
24554 * tree.c (recompute_constructor_flags): Split out from
24555 build_constructor.
24556 (verify_constructor_flags): New.
24557 * tree.h: Declare them.
24558
24559 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
24560
24561 PR rtl-optimization/69217
24562 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
24563 are no TYPE_FIELDS set for the record type.
24564
24565 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24566
24567 PR target/68662
24568 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
24569 toc_label_name unconditionally.
24570 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
24571 SYMBOL_REF string. Use toc_label_name instead of constructing
24572 LCTOC1.
24573 (rs6000_elf_declare_function_name): Use toc_label_name instead of
24574 constructing LCTOC1.
24575
24576 2016-01-26 Martin Sebor <msebor@redhat.com>
24577
24578 PR other/69477
24579 * doc/extend.texi (Common Type Attributes): Move text that talks about
24580 attribute packed from attribute aligned to the section discussing
24581 the former attribute for clarity.
24582
24583 2016-01-26 Richard Henderson <rth@redhat.com>
24584
24585 PR middle-end/60908
24586 * trans-mem.c (tm_region_init): Mark entry block as visited.
24587
24588 2016-01-26 David Malcolm <dmalcolm@redhat.com>
24589
24590 PR other/69006
24591 * diagnostic-show-locus.c (layout::print_source_line): Replace
24592 call to pp_newline with call to layout::print_newline.
24593 (layout::print_annotation_line): Likewise.
24594 (layout::move_to_column): Likewise.
24595 (layout::print_any_fixits): After printing any fixits, print a
24596 trailing newline, if necessary.
24597 (layout::print_newline): New method, resetting any colorization
24598 before a newline.
24599 (diagnostic_show_locus): Move the pp_newline to before the
24600 early bailout. Remove dummy block enclosing the layout instance.
24601 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
24602 of pp_newline_and_flush with pp_flush.
24603 (diagnostic_append_note): Delete use of pp_newline.
24604 (diagnostic_append_note_at_rich_loc): Delete.
24605 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
24606 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
24607 when newline characters are added to the buffer.
24608
24609 2016-01-26 Michael Matz <matz@suse.de>
24610
24611 * configure.ac (ac_cv_std_swap_in_utility): New test.
24612 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
24613 * configure: Regenerate.
24614 * config.in: Regenerate.
24615
24616 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
24617
24618 * config/arc/arc.md (cstoresi4): Force operand into register.
24619 (arcset<code>): Fix predicate.
24620 (arcsetltu): Likewise.
24621 (arcsetgeu): Likewise.
24622 (arcsethi): Likewise.
24623 (arcsetls): Likewise.
24624
24625 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24626
24627 PR tree-optimization/69483
24628 * gimple-fold.c (canonicalize_constructor_val): Return NULL
24629 if base has error_mark_node type.
24630
24631 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
24632
24633 PR target/68620
24634 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
24635 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
24636 New helper macros.
24637 (vget_lane_f16): Handle big-endian.
24638 (vgetq_lane_f16): Likewise.
24639 (vset_lane_f16): Likewise.
24640 (vsetq_lane_f16): Likewise.
24641 * config/arm/iterators.md (VQXMOV): Add V8HF.
24642 (VDQ): Add V4HF and V8HF.
24643 (V_reg): Handle V4HF and V8HF.
24644 (Is_float_mode): Likewise.
24645 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
24646 neon_vdup_nv8hf): New patterns.
24647 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
24648 Use VD_LANE iterator.
24649 (neon_vld1_dup<mode>): Use VQ2 iterator.
24650
24651 2016-01-26 Nathan Sidwell <nathan@acm.org>
24652
24653 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
24654 (set_oacc_fn_attrib): Add IS_KERNEL arg.
24655 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
24656 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
24657 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
24658 (oacc_validate_dims): Add LEVEL arg, don't return level.
24659 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
24660 oacc_validate_dims.
24661 (execute_oacc_device_lower): Adjust, add more dump output.
24662 * tree-ssa-loop.c (gate_oacc_kernels): Use
24663 oacc_fn_attrib_kernels_p.
24664 * tree-parloops.c (create_parallel_loop): Adjust
24665 set_oacc_fn_attrib call.
24666
24667 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24668
24669 PR lto/69254
24670 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24671 (append_compiler_options): Handle -fcilkplus.
24672 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24673
24674 2016-01-26 Nick Clifton <nickc@redhat.com>
24675
24676 PR target/66655
24677 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24678 been marked as DECL_ONE_ONLY but we do not the means to make it
24679 so, then do not allow it to bind locally.
24680
24681 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24682
24683 PR lto/69254
24684 * opts.h (parse_sanitizer_options): New prototype.
24685 * opts.c (sanitizer_opts): New array.
24686 (parse_sanitizer_options): New function.
24687 (common_handle_option): Use parse_sanitizer_options.
24688
24689 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
24690
24691 PR target/68986
24692 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24693 alignment adjustment to ...
24694 (ix86_update_stack_boundary): Here. Don't over-align stack for
24695 __tls_get_addr.
24696 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24697 if __tls_get_addr is called.
24698
24699 2016-01-26 Christian Bruel <christian.bruel@st.com>
24700
24701 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24702
24703 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
24704
24705 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24706
24707 2016-01-26 Richard Biener <rguenther@suse.de>
24708
24709 PR middle-end/69467
24710 * match.pd: Guard X * CST CMP 0 pattern with single_use.
24711
24712 2016-01-26 Richard Biener <rguenther@suse.de>
24713
24714 PR tree-optimization/69452
24715 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24716 (move_computations_dom_walker::before_dom_children): Rename
24717 to ...
24718 (move_computations_worker): This.
24719 (move_computations): Perform an RPO rather than a DOM walk.
24720
24721 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24722
24723 PR target/69442
24724 * combine.c (combine_instructions): For REG_EQUAL note with
24725 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24726 to the underlying register.
24727 * doc/rtl.texi (REG_EQUAL): Document the behavior of
24728 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24729
24730 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
24731
24732 PR target/67896
24733 * config/aarch64/aarch64-builtins.c
24734 (aarch64_init_simd_builtin_types): Do not set structural
24735 equality to __Poly{8,16,64,128}_t types.
24736
24737 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
24738
24739 PR tree-optimization/69400
24740 * wide-int.cc (wi_pack): Take the precision as argument and
24741 perform canonicalization here rather than in the callers.
24742 Use the main loop to handle all full-width HWIs. Add a
24743 zero HWI if in_len isn't a full result.
24744 (wi::divmod_internal): Update accordingly.
24745 (wi::mul_internal): Likewise. Simplify.
24746
24747 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24748 Sebastian Pop <s.pop@samsung.com>
24749
24750 * graphite-poly.c (apply_poly_transforms): Simplify.
24751 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24752 (print_isl_map): Same.
24753 (print_isl_union_map): Same.
24754 (print_isl_schedule): New.
24755 (debug_isl_schedule): New.
24756 * graphite-dependences.c (scop_get_reads): Do not call
24757 isl_union_map_add_map that is undocumented isl functionality.
24758 (scop_get_must_writes): Same.
24759 (scop_get_may_writes): Same.
24760 (scop_get_original_schedule): Remove.
24761 (scop_get_dependences): Do not call isl_union_map_compute_flow that
24762 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
24763 (compute_deps): Remove.
24764 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24765 (debug_schedule_ast): New.
24766 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24767 set_separate_option.
24768 (graphite_regenerate_ast_isl): Add dump.
24769 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24770 from scop->transformed_schedule.
24771 (graphite_regenerate_ast_isl): Add more dump.
24772 * graphite-optimize-isl.c (optimize_isl): Set
24773 scop->transformed_schedule. Check whether schedules are equal.
24774 (apply_poly_transforms): Move here.
24775 * graphite-poly.c (apply_poly_transforms): ... from here.
24776 (free_poly_bb): Static.
24777 (free_scop): Static.
24778 (pbb_number_of_iterations_at_time): Remove.
24779 (print_isl_ast): New.
24780 (debug_isl_ast): New.
24781 (debug_scop_pbb): New.
24782 * graphite-scop-detection.c (print_edge): Move.
24783 (print_sese): Move.
24784 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24785 (build_scop_scattering): Remove.
24786 (create_pw_aff_from_tree): Assert instead of bailing out.
24787 (add_condition_to_pbb): Remove unused code, do not fail.
24788 (add_conditions_to_domain): Same.
24789 (add_conditions_to_constraints): Remove.
24790 (build_scop_context): New.
24791 (add_iter_domain_dimension): New.
24792 (build_iteration_domains): Initialize pbb->iterators.
24793 Call add_conditions_to_domain.
24794 (nested_in): New.
24795 (loop_at): New.
24796 (index_outermost_in_loop): New.
24797 (index_pbb_in_loop): New.
24798 (outermost_pbb_in): New.
24799 (add_in_sequence): New.
24800 (add_outer_projection): New.
24801 (outer_projection_mupa): New.
24802 (add_loop_schedule): New.
24803 (build_schedule_pbb): New.
24804 (build_schedule_loop): New.
24805 (embed_in_surrounding_loops): New.
24806 (build_schedule_loop_nest): New.
24807 (build_original_schedule): New.
24808 (build_poly_scop): Call build_original_schedule.
24809 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24810 (free_poly_dr): Remove.
24811 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24812 (free_poly_bb): Remove.
24813 (debug_loop_vec): Remove.
24814 (print_isl_ast): Declare.
24815 (debug_isl_ast): Declare.
24816 (scop_do_interchange): Remove.
24817 (scop_do_strip_mine): Remove.
24818 (scop_do_block): Remove.
24819 (flatten_all_loops): Remove.
24820 (optimize_isl): Remove.
24821 (pbb_number_of_iterations_at_time): Remove.
24822 (debug_scop_pbb): Declare.
24823 (print_schedule_ast): Declare.
24824 (debug_schedule_ast): Declare.
24825 (struct scop): Remove schedule. Add original_schedule,
24826 transformed_schedule.
24827 (free_gimple_poly_bb): Remove.
24828 (print_generated_program): Remove.
24829 (debug_generated_program): Remove.
24830 (unify_scattering_dimensions): Remove.
24831 * sese.c (print_edge): ... here.
24832 (print_sese): ... here.
24833 (debug_edge): ... here.
24834 (debug_sese): ... here.
24835 * sese.h (print_edge): Declare.
24836 (print_sese): Declare.
24837 (dump_edge): Declare.
24838 (dump_sese): Declare.
24839
24840 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24841 Sebastian Pop <s.pop@samsung.com>
24842
24843 * Makefile.in: Set ISLVER in site.exp.
24844
24845 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24846
24847 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24848 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24849 through DECL_VALUE_EXPR for expansion.
24850
24851 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24852
24853 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24854 the frame info after reload completed.
24855
24856 2016-01-25 Jeff Law <law@redhat.com>
24857
24858 PR tree-optimization/69196
24859 PR tree-optimization/68398
24860 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24861 tree-ssa-threadupdate.c.
24862 (determine_bb_domination_status): Prototype
24863 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24864 (determine_bb_domination_status): No longer static.
24865 (valid_jump_thread_path): Remove code to detect characteristics
24866 of the jump thread path not associated with correctness.
24867 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24868 Correct test for thread path length. Count PHIs for real operands as
24869 statements that need to be copied. Do not count ASSERT_EXPRs.
24870 Look at all the blocks in the thread path. Compute and selectively
24871 filter thread paths based on threading through the latch, threading
24872 a multiway branch or crossing a multiway branch.
24873
24874 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24875
24876 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24877 decl with __attribute__ ((unused)) annotation.
24878
24879 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24880
24881 PR target/69421
24882 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24883 of operands is compatible with a statement vectype.
24884
24885 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24886
24887 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24888 improve wording for mixed storage order support.
24889
24890 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24891
24892 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24893 (vcvt_u64_f64): Likewise.
24894 (vcvta_s64_f64): Likewise.
24895 (vcvta_u64_f64): Likewise.
24896 (vcvtm_s64_f64): Likewise.
24897 (vcvtm_u64_f64): Likewise.
24898 (vcvtn_s64_f64): Likewise.
24899 (vcvtn_u64_f64): Likewise.
24900 (vcvtp_s64_f64): Likewise.
24901 (vcvtp_u64_f64): Likewise.
24902
24903 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24904
24905 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24906 (arc_init): Check validity mll64 option.
24907 (arc_save_restore): Use double load/store instruction.
24908 (arc_expand_movmem): Likewise.
24909 (arc_split_move): Don't split if we have double load/store
24910 instructions. Returns a boolean.
24911 (arc_process_double_reg_moves): Change function to return boolean
24912 instead of a sequence of instructions.
24913 (arc_dwarf_register_span): New function.
24914 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24915 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24916 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24917 (*movdf_insn): Likewise.
24918 * config/arc/arc.opt (mll64): New option.
24919 * config/arc/predicates.md (even_register_operand): New predicate.
24920 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24921
24922 2016-01-25 Richard Biener <rguenther@suse.de>
24923
24924 PR lto/69393
24925 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24926 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24927 DECL_NAMELESS.
24928 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24929
24930 2016-01-25 Richard Biener <rguenther@suse.de>
24931
24932 PR tree-optimization/69376
24933 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24934 flag.
24935 (VN_INFO_ANTI_RANGE_P): New inline.
24936 (VN_INFO_RANGE_TYPE): Likewise.
24937 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24938 SSA_NAME_ANTI_RANGE_P.
24939 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24940 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24941 Properly query VN_INFO_RANGE_TYPE.
24942
24943 2016-01-25 Nick Clifton <nickc@redhat.com>
24944
24945 PR target/66655
24946 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24947
24948 2016-01-23 Tom de Vries <tom@codesourcery.com>
24949
24950 PR tree-optimization/69426
24951 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24952 removed clobber.
24953
24954 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24955
24956 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24957 "the the" with "the" in the comments.
24958 * ipa-devirt.c (build_type_inheritance_graph,
24959 update_type_inheritance_graph): Likewise.
24960 * tree.c (build_function_type_list_1): Likewise.
24961 * cfgloopmanip.c (scale_loop_profile): Likewise.
24962 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24963 * gimple-ssa-split-paths.c
24964 (find_block_to_duplicate_for_splitting_paths): Likewise.
24965 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24966 * expr.c (convert_move): Likewise.
24967 * var-tracking.c (vt_stack_adjustments): Likewise.
24968 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24969 * tree-vrp.c (test_for_singularity): Likewise.
24970
24971 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24972 directly instead of building a temporary tree.
24973
24974 PR bootstrap/69434
24975 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24976 remove <algorithm> include.
24977
24978 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24979
24980 PR target/69432
24981 * config/i386/i386.c: Include dojump.h.
24982 (expand_small_movmem_or_setmem,
24983 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24984 fixes.
24985 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24986 if dynamic_check != -1.
24987
24988 2016-01-21 Jeff Law <law@redhat.com>
24989
24990 PR middle-end/69347
24991 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24992 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24993 into dominated_by_p.
24994 (cprop_into_successor_phis): Avoid unnecessary tests.
24995
24996 2016-01-22 Richard Henderson <rth@redhat.com>
24997
24998 PR target/69416
24999 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
25000 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
25001
25002 2016-01-22 Michael Matz <matz@suse.de>
25003
25004 * system.h (string, algorithm): Include only conditionally.
25005 (new): Include always under C++.
25006 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
25007 * final.c (toplevel): Ditto.
25008 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
25009 * genconditions.c (write_header): Make gencondmd.c define
25010 INCLUDE_STRING.
25011 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
25012
25013 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
25014 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
25015
25016 2016-01-22 Christian Bruel <christian.bruel@st.com>
25017
25018 PR target/68674
25019 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
25020
25021 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25022
25023 PR target/69403
25024 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
25025 define_insn_and_split. Ensure operands[1] and operands[0] do not
25026 get assigned the same register.
25027
25028 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
25029
25030 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
25031
25032 2016-01-22 Christian Bruel <christian.bruel@st.com>
25033
25034 * config/arm/arm-c.c (arm_pragma_target_parse):
25035 Remove warn_builtin_macro_redefined overwrite.
25036
25037 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
25038
25039 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
25040 flag_non_call_exceptions compatibility.
25041
25042 2016-01-22 Jakub Jelinek <jakub@redhat.com>
25043
25044 PR debug/66668
25045 * dwarf2out.c (add_child_die_after): New function.
25046 (dwarf_qual_info_t): New type.
25047 (dwarf_qual_info): New variable.
25048 (qualified_die_p): New function.
25049 (modified_type_die): For -fdebug-types-section, ensure
25050 canonical order of qualifiers. Put qualified DIEs adjacent
25051 to the corresponding non-qualified type DIE and search there
25052 for existing qualified DIEs.
25053
25054 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
25055
25056 * doc/extend.texi (scalar_storage_order type attribute): Document
25057 restriction on type punning and aliasing, and remove future tense.
25058
25059 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
25060
25061 PR target/69252
25062 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
25063 first stage.
25064
25065 2016-01-21 Jeff Law <law@redhat.com>
25066
25067 PR middle-end/69347
25068 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
25069 useless call to record_temporary_equivalences.
25070 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
25071 allocate 10 slots in the bb_path vector and let it grow as needed.
25072 (fsm_find_control_statement_thread_paths): Similarly for the next_path
25073 vector.
25074
25075 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25076
25077 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
25078 Detangle.
25079 * configure: Regenerate.
25080
25081 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
25082
25083 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
25084 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
25085
25086 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
25087
25088 PR middle-end/66178
25089 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
25090 drop EXPAND_INITIALIZER.
25091 * rtl.h (contains_symbolic_reference_p): Declare.
25092 * rtlanal.c (contains_symbolic_reference_p): New function.
25093 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
25094 a subtraction into a NOT if symbolic constants are involved.
25095
25096 2016-01-21 Anton Blanchard <anton@samba.org>
25097 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25098
25099 PR target/63354
25100 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
25101 #define.
25102 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
25103 function.
25104
25105 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25106
25107 * config/microblaze/microblaze.c
25108 (get_branch_target): New.
25109 (insert_wic_for_ilb_runout): New.
25110 (insert_wic): New.
25111 (microblaze_machine_dependent_reorg): New.
25112 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
25113 * config/microblaze/microblaze.md
25114 (UNSPEC_IPREFETCH): Define.
25115 (iprefetch): New pattern
25116 * config/microblaze/microblaze.opt
25117 (mxl-prefetch): New flag.
25118
25119 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25120
25121 * config/microblaze/microblaze.h
25122 (FIXED_REGISTERS): Update in macro.
25123 (CALL_USED_REGISTERS): Update in macro.
25124
25125 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
25126
25127 PR rtl-optimization/68920
25128 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
25129 moves.
25130
25131 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
25132
25133 PR rtl-optimization/68990
25134 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
25135 pseudo instead of inheritance ones.
25136
25137 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25138 Nick Clifton <nickc@redhat.com>
25139
25140 PR target/69129
25141 PR target/69012
25142 * config/mips/mips.c (mips_compute_frame_info): Initialise
25143 args_size and hard_frame_pointer_offset fields of the frame
25144 structure before calling mips_global_pointer.
25145
25146 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25147
25148 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
25149 label reference.
25150 * configure: Regenerate.
25151
25152 2016-01-21 Richard Biener <rguenther@suse.de>
25153
25154 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
25155
25156 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25157
25158 * config/s390/s390.c (s390_asm_declare_function_size): Add code
25159 to actually emit the .size directive.
25160
25161 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
25162 Jakub Jelinek <jakub@redhat.com>
25163
25164 PR target/69187
25165 PR target/65624
25166 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
25167 args array size by one to avoid buffer overflow.
25168
25169 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25170
25171 * config/s390/s390.md (pool_section_start): Use switch_to_section
25172 to select proper read-only data section instead of hardcoding
25173 .rodata.
25174 (pool_section_end): Use switch_to_section to match the above.
25175
25176 2016-01-21 Richard Biener <rguenther@suse.de>
25177
25178 PR tree-optimization/69378
25179 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
25180 (set_ssa_val_to): Use it for dominance checks taking into
25181 account not executable edges.
25182
25183 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25184
25185 PR c++/69355
25186 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
25187 for bitsize instead of GET_MODE_PRECISION (mode).
25188
25189 2016-01-20 Martin Sebor <msebor@redhat.com>
25190
25191 PR c/52291
25192 * extend.texi (__sync Builtins): Clarify the semantics of
25193 __sync_fetch_and_OP built-ins on pointers.
25194 (__atomic Builtins): Same.
25195
25196 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25197 Sebastian Pop <s.pop@samsung.com>
25198
25199 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
25200 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
25201 (is_valid_rename): Same.
25202 (translate_isl_ast_to_gimple::get_rename): Same.
25203 (translate_isl_ast_to_gimple::rename_all_uses): Same.
25204 (translate_isl_ast_to_gimple::rename_uses): Same.
25205 (get_new_name): Check for close_phi nodes.
25206 (copy_loop_phi_args): Use phi_node_kind.
25207 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
25208 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
25209
25210 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25211 Sebastian Pop <s.pop@samsung.com>
25212
25213 Revert commit r229783.
25214 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
25215 Remove use of parameter_rename_map.
25216 (copy_def): Remove.
25217 (copy_internal_parameters): Remove.
25218 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
25219 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
25220 (free_sese_info): Do not free parameter_rename_map.
25221 (set_rename): Do not use parameter_rename_map.
25222 (rename_uses): Update call to set_rename.
25223 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
25224 * sese.h (parameter_rename_map_t): Remove.
25225 (struct sese_info_t): Remove field parameter_rename_map.
25226
25227 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25228 Sebastian Pop <s.pop@samsung.com>
25229
25230 * graphite-isl-ast-to-gimple.c: Fix comment.
25231 * graphite-scop-detection.c (defined_in_loop_p): New.
25232 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
25233 names defined in loop.
25234
25235 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25236 Sebastian Pop <s.pop@samsung.com>
25237
25238 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
25239 Discard unstructured if-then-else regions.
25240
25241 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25242 Sebastian Pop <s.pop@samsung.com>
25243
25244 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
25245 (cleanup_loop_iter_dom): Remove.
25246 (build_loop_iteration_domains): Remove.
25247 (build_scop_context): Remove.
25248 (build_scop_iteration_domain): Remove.
25249 (add_loop_constraints): New.
25250 (build_iteration_domains): New.
25251 (build_poly_scop): Call build_iteration_domains.
25252
25253 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25254 Sebastian Pop <s.pop@samsung.com>
25255
25256 * graphite-scop-detection.c
25257 (scop_detection::harmful_loop_in_region): Free dom and loops.
25258 (scop_detection::loop_body_is_valid_scop): Free bbs.
25259
25260 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25261 Sebastian Pop <s.pop@samsung.com>
25262
25263 * graphite-scop-detection.c (record_loop_in_sese): New.
25264 (gather_bbs::before_dom_children): Call record_loop_in_sese.
25265 (build_scops): Remove call to build_sese_loop_nests.
25266 * sese.c (sese_record_loop): Remove.
25267 (build_sese_loop_nests): Remove.
25268 (new_sese_info): Remove region->loops.
25269 (free_sese_info): Same.
25270 * sese.h (sese_contains_loop): Same.
25271 (build_sese_loop_nests): Remove.
25272 (sese_contains_loop): Remove.
25273
25274 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25275 Sebastian Pop <s.pop@samsung.com>
25276
25277 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
25278 loop_is_valid_in_scop.
25279 (scop_detection::harmful_stmt_in_region): Renamed
25280 harmful_loop_in_region.
25281 Call loop_is_valid_in_scop.
25282
25283 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25284 Sebastian Pop <s.pop@samsung.com>
25285
25286 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
25287 isl_ast_node_mark.
25288
25289 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25290 Sebastian Pop <s.pop@samsung.com>
25291
25292 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
25293 * graphite.h (struct poly_bb): Remove field is_reduction.
25294 (PBB_IS_REDUCTION): Remove.
25295
25296 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25297 Sebastian Pop <s.pop@samsung.com>
25298
25299 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
25300 (add_pdr_constraints): Same.
25301 (scop_get_reads): Same.
25302 (scop_get_must_writes): Same.
25303 (scop_get_may_writes): Same.
25304 (scop_get_original_schedule): Same.
25305 (extend_schedule): Same.
25306 (apply_schedule_on_deps): Same.
25307 (carries_deps): Same.
25308 (compute_deps): Same.
25309 (scop_get_dependences): Same.
25310 * graphite-isl-ast-to-gimple.c
25311 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
25312 * graphite-optimize-isl.c (get_schedule_for_band): Same.
25313 (get_schedule_for_band_list): Same.
25314 (get_schedule_map): Same.
25315 (apply_schedule_map_to_scop): Same.
25316 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25317 (build_loop_iteration_domains): Same.
25318 (add_condition_to_pbb): Same.
25319 (add_param_constraints): Same.
25320 (pdr_add_memory_accesses): Same.
25321 (pdr_add_data_dimensions): Same.
25322
25323 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25324
25325 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
25326 requirements.
25327
25328 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25329
25330 * common.opt (feliminate-dwarf2-dups): Replace references to
25331 "DWARF 2" with just "DWARF".
25332 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
25333 * doc/extend.texi: Likewise.
25334 * doc/cpp.texi: Likewise.
25335 * doc/invoke.texi: Likewise.
25336 (Option Summary): Add -gdwarf to list of Debugging Options.
25337 (Debugging Options): Document -gdwarf.
25338 * doc/contrib.texi: Spell "DWARF" like that.
25339
25340 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25341
25342 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
25343 warning. Fix up formatting.
25344
25345 PR middle-end/67653
25346 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
25347 attempt to mark memory input operand addressable and
25348 call prepare_gimple_addressable in that case. Don't adjust
25349 input_location for diagnostics, use error_at instead.
25350
25351 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
25352
25353 * config/rs6000/ppc-auxv.h: New file.
25354 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
25355 (cpu_is): Likewise.
25356 (cpu_supports): Likewise.
25357 * config/rs6000/rs6000.c: include "ppc-auxv.h".
25358 (cpu_is_info): New variable.
25359 (cpu_supports_info): Likewise.
25360 (tcb_verification_symbol): Likewise.
25361 (cpu_builtin_p): Likewise.
25362 (cpu_expand_builtin): New function.
25363 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
25364 (rs6000_init_builtins): Likewise.
25365 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
25366 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
25367 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
25368 * configure: Regenerate.
25369 * config.in: Likewise.
25370 * doc/extend.texi (PowerPC Built-in Functions): Document
25371 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
25372
25373 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
25374
25375 PR target/68609
25376 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
25377 domain check.
25378 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
25379 for V4SFmode.
25380
25381 2016-01-20 Richard Henderson <rth@redhat.com>
25382
25383 PR bootstrap/69343
25384 PR bootstrap/69339
25385 PR tree-opt/68964
25386 Revert:
25387 * tree.c (tm_define_builtin): New.
25388 (find_tm_vector_type): New.
25389 (build_tm_vector_builtins): New.
25390 (build_common_builtin_nodes): Call it.
25391
25392 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
25393
25394 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
25395 (arm_fp_ok): Likewise.
25396 (arm_fp): Likewise.
25397 (arm_crypto): Likewise.
25398
25399 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25400 Richard Biener <rguenther@suse.de>
25401
25402 PR tree-optimization/69328
25403 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
25404 vectors have same number of elements.
25405 (vectorizable_condition): Fix masked version recognition.
25406
25407 2016-01-20 Richard Biener <rguenther@suse.de>
25408
25409 PR tree-optimization/69345
25410 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
25411 (VN_INFO_PTR_INFO): Likewise.
25412 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
25413 info when it is equal between non-dominating SSA names.
25414 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25415 Make sure to look at original SSA infos.
25416
25417 2016-01-20 Jeff Law <law@redhat.com>
25418
25419 PR target/25114
25420 * config/m68k/predicates.md (pow2_m1_operand): New predicate
25421 extracted from ...
25422 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
25423 (pc_or_label_operand): New predicate.
25424 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
25425 tests for small integers that are 2^n - 1.
25426
25427 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
25428
25429 * doc/invoke.texi (Options Summary): Add '.' after @xref.
25430
25431 2016-01-19 Jeff Law <law@redhat.com>
25432
25433 PR middle-end/69347
25434 * tree-ssa-threadbackwards.c
25435 (fsm_find_control_statement_thread_paths): Do not try to lookup
25436 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
25437
25438 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25439
25440 * doc/lto.texi: Remove text that says only Gold has linker plugin
25441 support.
25442
25443 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
25444
25445 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
25446 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
25447 the DIE accordingly.
25448 (modified_type_die): Add REVERSE parameter and pass it recursively,
25449 as well as to base_type_die. Adjust presence check accordingly.
25450 (base_type_for_mode): Adjust call to modified_type_die.
25451 (add_type_attribute): Add REVERSE parameter and pass it to
25452 modified_type_die.
25453 (generic_parameter_die): Adjust call to add_type_attribute.
25454 (add_scalar_info): Likewise.
25455 (add_subscript_info): Likewise.
25456 (gen_array_type_die): Likewise.
25457 (gen_descr_array_type_die): Likewise.
25458 (gen_entry_point_die): Likewise.
25459 (gen_enumeration_type_die): Likewise.
25460 (gen_formal_parameter_die): Likewise.
25461 (gen_subprogram_die): Likewise.
25462 (gen_variable_die ): Likewise.
25463 (gen_const_die): Likewise.
25464 (gen_field_die): Likewise.
25465 (gen_pointer_type_die): Likewise.
25466 (gen_reference_type_die): Likewise.
25467 (gen_ptr_to_mbr_type_die): Likewise.
25468 (gen_inheritance_die): Likewise.
25469 (gen_subroutine_type_die): Likewise.
25470 (gen_typedef_die): Likewise.
25471 (force_type_die): Adjust call to modified_type_die.
25472
25473 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
25474
25475 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
25476 flow throughout the file. Fix broken link to Objective-C 2.0
25477 documentation.
25478 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
25479 errors.
25480
25481 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25482
25483 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
25484
25485 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25486
25487 PR ipa/66223
25488 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
25489 (maybe_record_node): Record cxa_pure_virtual as the only possible
25490 target if there are not ohter candidates.
25491 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
25492
25493 2016-01-19 Richard Biener <rguenther@suse.de>
25494
25495 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
25496 (get_memory_order): Likewise.
25497
25498 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
25499
25500 * tree-vect-stmts.c (vectorizable_store): Check
25501 rhs vectype.
25502
25503 2016-01-19 David Malcolm <dmalcolm@redhat.com>
25504
25505 PR jit/68446
25506 * gcc.c (driver::decode_argv): Add call to
25507 init_opts_obstack before init_options_struct.
25508 * opts.c (init_opts_obstack): Remove idempotency.
25509 (init_options_struct): Replace call to init_opts_obstack
25510 with a gcc_assert to verify that it has already been called.
25511 * toplev.c (toplev::main): Add call to init_opts_obstack before
25512 calls to init_options_struct.
25513 (toplev::finalize): Move cleanup of opts_obstack next to
25514 cleanup of save_decoded_options, clearing the latter, and
25515 save_decoded_options_count.
25516
25517 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25518
25519 PR target/69135
25520 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
25521 attribute to unconditional. Remove %? from output template.
25522
25523 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25524 Jiong Wang <jiong.wang@arm.com>
25525
25526 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
25527 generated from different expand order.
25528
25529 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25530
25531 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25532 Add support for CCMP costing.
25533
25534 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25535
25536 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
25537 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
25538 (fccmpe<mode>): Likewise.
25539 (fcmp): Rename to fcmp and globalize pattern.
25540 (fcmpe): Likewise.
25541 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
25542 (aarch64_gen_ccmp_next): Add FP support.
25543
25544 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25545
25546 * target.def (gen_ccmp_first): Update documentation.
25547 (gen_ccmp_next): Likewise.
25548 * doc/tm.texi (gen_ccmp_first): Update documentation.
25549 (gen_ccmp_next): Likewise.
25550 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
25551 expand_ccmp_expr_1. Improve comments.
25552 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
25553 (ccmp_ior<mode>): Remove pattern.
25554 (cmp<mode>): Remove expand.
25555 (cmp): Globalize pattern.
25556 (cstorecc4): Use cc_register.
25557 (mov<mode>cc): Remove ccmp_cc_register check.
25558 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
25559 Simplify after removal of CC_DNE/* modes.
25560 (aarch64_ccmp_mode_to_code): Remove.
25561 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
25562 In 'k' case use integer as condition.
25563 (aarch64_nzcv_codes): Remove inverted cases.
25564 (aarch64_code_to_ccmode): Remove.
25565 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
25566 comparison with CC register to be used in folowing CCMP/branch/CSEL.
25567 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
25568 pattern. Return the comparison with CC register. Invert conditions
25569 when bitcode is OR.
25570 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
25571 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
25572
25573 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25574
25575 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25576 instrumented_version.
25577
25578 2016-01-19 Richard Biener <rguenther@suse.de>
25579
25580 PR tree-optimization/69336
25581 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
25582 handled components with get_ref_base_and_extent.
25583 (equal_mem_array_ref_p): Adjust.
25584
25585 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25586
25587 PR debug/65779
25588 * shrink-wrap.c: Include valtrack.h.
25589 (move_insn_for_shrink_wrap): Add DEBUG argument. If
25590 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
25591 in between insn and where it will be moved to. Call
25592 dead_debug_insert_temp.
25593 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
25594 first and dead_debug_local_finish at the end.
25595 For uses and defs bitmap, handle all regs in between REGNO and
25596 END_REGNO, not just the first one.
25597
25598 2016-01-19 Richard Biener <rguenther@suse.de>
25599
25600 PR tree-optimization/69352
25601 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
25602 (equal_mem_array_ref_p): Constrain size and max size properly.
25603 Compare the reverse flag.
25604
25605 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
25606
25607 * ira.c (ira): Update regstat data if we deleted insns.
25608
25609 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25610
25611 PR rtl-optimization/68955
25612 PR rtl-optimization/64557
25613 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
25614 here. Fix up formatting.
25615 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
25616
25617 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25618
25619 PR lto/69133
25620 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
25621 assume that the node has body.
25622 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
25623 check.
25624
25625 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25626
25627 * lto-streamer-out.c (lto_output): Do not stream instrumentation
25628 thunks.
25629
25630 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25631
25632 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
25633 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
25634
25635 2016-01-19 Martin Jambor <mjambor@suse.cz>
25636 Martin Liska <mliska@suse.cz>
25637 Michael Matz <matz@suse.de>
25638
25639 * Makefile.in (OBJS): Add new source files.
25640 (GTFILES): Add hsa.c.
25641 * common.opt (disable_hsa): New variable.
25642 (-Whsa): New warning.
25643 * config.in (ENABLE_HSA): New.
25644 * configure.ac: Treat hsa differently from other accelerators.
25645 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
25646 $enable_offloading.
25647 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
25648 * doc/install.texi (Configuration): Document --with-hsa-runtime,
25649 --with-hsa-runtime-include, --with-hsa-runtime-lib and
25650 --with-hsa-kmt-lib.
25651 * doc/invoke.texi (-Whsa): Document.
25652 (hsa-gen-debug-stores): Likewise.
25653 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
25654 to invoke offload compiler for hsa acclerator.
25655 * opts.c (common_handle_option): Determine whether HSA offloading
25656 should be performed.
25657 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
25658 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
25659 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
25660 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
25661 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
25662 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
25663 GF_OMP_FOR_KIND_GRID_LOOP.
25664 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
25665 (pp_gimple_stmt_1): Likewise.
25666 * gimple-walk.c (walk_gimple_stmt): Likewise.
25667 * gimple.c (gimple_build_omp_grid_body): New function.
25668 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25669 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25670 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25671 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25672 GF_OMP_TEAMS_GRID_PHONY.
25673 (gimple_statement_omp_single_layout): Updated comments.
25674 (gimple_build_omp_grid_body): New function.
25675 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25676 (gimple_omp_for_grid_phony): New function.
25677 (gimple_omp_for_set_grid_phony): Likewise.
25678 (gimple_omp_parallel_grid_phony): Likewise.
25679 (gimple_omp_parallel_set_grid_phony): Likewise.
25680 (gimple_omp_teams_grid_phony): Likewise.
25681 (gimple_omp_teams_set_grid_phony): Likewise.
25682 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25683 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25684 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25685 (BUILT_IN_GOMP_TARGET): Updated type.
25686 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25687 (adjust_for_condition): New function.
25688 (get_omp_for_step_from_incr): Likewise.
25689 (extract_omp_for_data): Moved parts to adjust_for_condition and
25690 get_omp_for_step_from_incr.
25691 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25692 (fixup_child_record_type): Bail out if receiver_decl is NULL.
25693 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25694 (scan_omp_parallel): Do not create child functions for phony
25695 constructs.
25696 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25697 (scan_omp_1_op): Checking assert we are not remapping to
25698 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
25699 (parallel_needs_hsa_kernel_p): New function.
25700 (expand_parallel_call): Register apprpriate parallel child
25701 functions as HSA kernels.
25702 (grid_launch_attributes_trees): New type.
25703 (grid_attr_trees): New variable.
25704 (grid_create_kernel_launch_attr_types): New function.
25705 (grid_insert_store_range_dim): Likewise.
25706 (grid_get_kernel_launch_attributes): Likewise.
25707 (get_target_argument_identifier_1): Likewise.
25708 (get_target_argument_identifier): Likewise.
25709 (get_target_argument_value): Likewise.
25710 (push_target_argument_according_to_value): Likewise.
25711 (get_target_arguments): Likewise.
25712 (expand_omp_target): Call get_target_arguments instead of looking
25713 up for teams and thread limit.
25714 (grid_expand_omp_for_loop): New function.
25715 (grid_arg_decl_map): New type.
25716 (grid_remap_kernel_arg_accesses): New function.
25717 (grid_expand_target_kernel_body): New function.
25718 (expand_omp): Call it.
25719 (lower_omp_for): Do not emit phony constructs.
25720 (lower_omp_taskreg): Do not emit phony constructs but create for them
25721 a temporary variable receiver_decl.
25722 (lower_omp_taskreg): Do not emit phony constructs.
25723 (lower_omp_teams): Likewise.
25724 (lower_omp_grid_body): New function.
25725 (lower_omp_1): Call it.
25726 (grid_reg_assignment_to_local_var_p): New function.
25727 (grid_seq_only_contains_local_assignments): Likewise.
25728 (grid_find_single_omp_among_assignments_1): Likewise.
25729 (grid_find_single_omp_among_assignments): Likewise.
25730 (grid_find_ungridifiable_statement): Likewise.
25731 (grid_target_follows_gridifiable_pattern): Likewise.
25732 (grid_remap_prebody_decls): Likewise.
25733 (grid_copy_leading_local_assignments): Likewise.
25734 (grid_process_kernel_body_copy): Likewise.
25735 (grid_attempt_target_gridification): Likewise.
25736 (grid_gridify_all_targets_stmt): Likewise.
25737 (grid_gridify_all_targets): Likewise.
25738 (execute_lower_omp): Call grid_gridify_all_targets.
25739 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25740 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25741 (tree_omp_clause): Added union field dimension.
25742 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25743 * tree.c (omp_clause_num_ops): Added number of arguments of
25744 OMP_CLAUSE__GRIDDIM_.
25745 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25746 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25747 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25748 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25749 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25750 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25751 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25752 * tree-pass.h (make_pass_gen_hsail): Declare.
25753 (make_pass_ipa_hsa): Likewise.
25754 * ipa-hsa.c: New file.
25755 * lto-section-in.c (lto_section_name): Add hsa section name.
25756 * lto-streamer.h (lto_section_type): Add hsa section.
25757 * timevar.def (TV_IPA_HSA): New.
25758 * hsa-brig-format.h: New file.
25759 * hsa-brig.c: New file.
25760 * hsa-dump.c: Likewise.
25761 * hsa-gen.c: Likewise.
25762 * hsa.c: Likewise.
25763 * hsa.h: Likewise.
25764 * toplev.c (compile_file): Call hsa_output_brig.
25765 * hsa-regalloc.c: New file.
25766
25767 2016-01-18 Jeff Law <law@redhat.com>
25768
25769 PR tree-optimization/69320
25770 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25771 ranged object, do nothing if the RHS constant is not [0..1].
25772 (optimize_stmt): Comparing a boolean ranged object against a
25773 constant outside [0..1] results in a compile-time constant.
25774
25775 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25776 test.
25777
25778 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
25779
25780 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25781 (Option Summary): Update to reflect new section and moved options.
25782 (C++ Dialect Options): Move -fstats to new section.
25783 (Debugging Options): Move all dump, statistics, and other GCC
25784 developer options to new section. Rewrite section introduction
25785 and re-order remaining options to put the more basic ones first.
25786 (Optimization Options): Move -fira-verbose and -flto-report* to
25787 new section.
25788 (Developer Options): New section incorporating moved options.
25789 * doc/cppopts.texi (-dM): Update cross-reference.
25790
25791 2016-01-18 Richard Henderson <rth@redhat.com>
25792
25793 PR target/69176
25794 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25795 operands to pseudo only if CSE is expected. Split long immediate
25796 operands only after reload, and for the stack pointer.
25797 (*add<GPI>3_pluslong): Remove.
25798 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25799 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
25800 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25801 (*add<GPI>3 peepholes): New.
25802 (*add<GPI>3 splitters): New.
25803 * config/aarch64/constraints.md (Upl): New.
25804 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25805
25806 2016-01-18 Richard Biener <rguenther@suse.de>
25807
25808 PR tree-optimization/69297
25809 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25810 stmt at most once.
25811 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25812
25813 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25814
25815 PR middle-end/68542
25816 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25817 of mixind vector and scalar types.
25818 (fold_relational_const): Add handling of vector
25819 comparison with boolean result.
25820 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25821 comparison of vector operands with boolean result for EQ/NE only.
25822 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25823 (verify_gimple_cond): Likewise.
25824 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25825 valid type of VAL.
25826
25827 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25828
25829 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25830 !TARGET_OCTEON.
25831
25832 2016-01-18 Richard Biener <rguenther@suse.de>
25833
25834 PR middle-end/69308
25835 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25836
25837 2016-01-18 Tom de Vries <tom@codesourcery.com>
25838
25839 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25840
25841 2016-01-18 Tom de Vries <tom@codesourcery.com>
25842
25843 * omp-low.c (set_oacc_fn_attrib): Make extern.
25844 * omp-low.h (set_oacc_fn_attrib): Declare.
25845 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25846 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25847 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25848 Add and handle function parameter oacc_kernels_p.
25849 (find_reduc_addr, get_omp_data_i_param): New function.
25850 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25851 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25852 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25853 Calculate dominance info. Skip loops that are not in a kernels region
25854 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25855 (pass_parallelize_loops::execute): Call parallelize_loops with
25856 oacc_kernels_p argument.
25857 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25858 New member function.
25859 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25860 * passes.def: Add argument to pass_parallelize_loops instantation.
25861
25862 2016-01-18 Tom de Vries <tom@codesourcery.com>
25863
25864 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25865 pass_parallelize_loops to be run outside the loop pipeline.
25866
25867 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25868
25869 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25870 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25871
25872 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25873
25874 PR target/63679
25875 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25876 using get_ref_base_and_extent.
25877 (equal_mem_array_ref_p): New.
25878 (hashable_expr_equal_p): Add call to previous.
25879
25880 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25881
25882 PR target/63679
25883 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25884 (sra_initialize): Allocate disqualified_constants.
25885 (sra_deinitialize): Free disqualified_constants.
25886 (disqualify_candidate): Update disqualified_constants when appropriate.
25887 (create_access): Scan for constant-pool entries as we go along.
25888 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25889 (maybe_add_sra_candidate): Allow constant-pool entries.
25890 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25891 (initialize_constant_pool_replacements): New.
25892 (sra_modify_assign): Avoid mangling assignments created by previous,
25893 and don't generate writes into constant pool.
25894 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25895
25896 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25897
25898 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25899 andnot instruction.
25900 (scalar_chain::convert_op): Likewise.
25901 * config/i386/i386.md (*andndi3_doubleword): New.
25902
25903 2016-01-18 Richard Biener <rguenther@suse.de>
25904
25905 PR tree-optimization/69170
25906 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25907 building a vector from scalar results of a pattern stmt.
25908
25909 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25910
25911 * haifa-sched.c (autopref_multipass_init): Work around
25912 -Wmaybe-uninitialized warning.
25913
25914 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25915
25916 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25917 against the constant 0.
25918
25919 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25920
25921 PR tree-optimization/68799
25922 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25923 look up phi candidates in the statement-candidate map.
25924 (phi_add_costs): Likewise.
25925 (record_phi_increments): Likewise.
25926 (phi_incr_cost): Likewise.
25927 (ncd_with_phi): Likewise.
25928 (all_phi_incrs_profitable): Likewise.
25929
25930 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25931
25932 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25933 -Wmaybe-uninitialized warning.
25934
25935 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25936
25937 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25938 (Option Summary): Update to reflect new section and moved options.
25939 (C++ Dialect Options): Move -fvtable-verify and related options.
25940 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25941 and profiling-related options.
25942 (Optimization Options): Move profile generation options and
25943 -fstack-protector and related options.
25944 (Instrumentation Options): New section incorporating moved options.
25945 (Code Generation Options): Move -finstrument-functions and
25946 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25947
25948 2016-01-16 Tom de Vries <tom@codesourcery.com>
25949
25950 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25951
25952 2016-01-16 Tom de Vries <tom@codesourcery.com>
25953
25954 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25955
25956 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25957
25958 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25959 that checks whether the table is already empty. Rename the
25960 original implementation to...
25961 (hash_table::empty_slot): ...this new private function.
25962
25963 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25964
25965 PR diagnostic/68899
25966 * diagnostic-show-locus.c (layout::print_source_line): Move x
25967 offset of line until after call to
25968 get_line_width_without_trailing_whitespace.
25969
25970 2016-01-15 Jeff Law <law@redhat.com>
25971
25972 PR tree-optimization/69270
25973 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25974 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25975 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25976 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25977 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25978 ssa_name_has_boolean_range and constant_boolean_node.
25979
25980 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25981
25982 PR rtl-optimization/69030
25983 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25984 returning bool.
25985 (spill_pseudos): Delete debug insn for dead pseudo.
25986 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25987
25988 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25989
25990 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25991 New.
25992 (TYPES_UNOPUS): Likewise.
25993 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25994 builtin type, from UNOP to UNOPUS.
25995 (lbtruncuv4sf): Likewise.
25996 (lbtruncuv2df): Likewise.
25997 (lrounduv2sf): Likewise.
25998 (lrounduv4sf): Likewise.
25999 (lrounduv2df): Likewise.
26000 (lroundusf): Likewise.
26001 (lroundusf): Likewise.
26002 (lceiluv2sf): Likewise.
26003 (lceiluv4sf): Likewise.
26004 (lceiluv2df): Likewise.
26005 (lceilusf): Likewise.
26006 (lceiludf): Likewise.
26007 (lflooruv2sf): Likewise.
26008 (lflooruv4sf): Likewise.
26009 (lflooruv2df): Likewise.
26010 (lfloorusf): Likewise.
26011 (lfloorudf): Likewise.
26012 (lfrintnuv2sf): Likewise.
26013 (lfrintnuv4sf): Likewise.
26014 (lfrintnuv2df): Likewise.
26015 (lfrintnusf): Likewise.
26016 (lfrintnudf): Likewise.
26017 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
26018 conversion.
26019 (vcvtq_u32_f32): Likewise.
26020 (vcvtq_u64_f64): Likewise.
26021 (vcvta_u32_f32): Likewise.
26022 (vcvtaq_u32_f32): Likewise.
26023 (vcvtaq_u64_f64): Likewise.
26024 (vcvtm_u32_f32): Likewise.
26025 (vcvtmq_u32_f32): Likewise.
26026 (vcvtmq_u64_f64): Likewise.
26027 (vcvtn_u32_f32): Likwise.
26028 (vcvtnq_u32_f32): Likewise.
26029 (vcvtnq_u64_f64): Likewise.
26030 (vcvtp_u32_f32): Likewise.
26031 (vcvtpq_u32_f32): Likewise.
26032 (vcvtpq_u64_f64): Likewise.
26033 (vcvtmd_u64_f64): Likewise.
26034 (vcvtms_u32_f32): Likewise.
26035 (vcvtad_u64_f64): Likewise.
26036 (vcvtas_u32_f32): Likewise.
26037 (vcvtnd_u64_f64): Likewise.
26038 (vcvtns_u32_f32): Likewise.
26039 (vcvtpd_u64_f64): Likewise.
26040 (vcvtps_u32_f32): Likewise.
26041
26042 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26043
26044 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
26045 CSEL of zero_extended registers.
26046
26047 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26048
26049 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
26050 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
26051
26052 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26053
26054 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
26055 false when argument string is not found in the attributes table
26056 at all.
26057
26058 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
26059
26060 PR target/68609
26061 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
26062 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
26063 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
26064 precision estimate.
26065
26066 2016-01-15 Richard Biener <rguenther@suse.de>
26067
26068 PR tree-optimization/66856
26069 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
26070 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
26071 (vect_create_new_slp_node): Increment stmt reference count.
26072 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
26073 an SLP tree before swapping operands.
26074 (vect_build_slp_tree): Likewise.
26075 (destroy_bb_vec_info): Free stmt info after SLP instances.
26076 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
26077 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
26078 (STMT_VINFO_NUM_SLP_USES): New macro.
26079
26080 2016-01-15 Richard Biener <rguenther@suse.de>
26081
26082 PR debug/69137
26083 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
26084 (add_linkage_name): ... here.
26085 (gen_typedef_die): Use add_linkage_name_raw instead of
26086 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
26087 if necessary.
26088
26089 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
26090
26091 * gimplify.c (oacc_default_clause): Decode reference and pointer
26092 types for both kernels and parallel regions.
26093
26094 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
26095
26096 PR middle-end/69246
26097 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
26098
26099 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26100
26101 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
26102 (convert_scalars_to_vector): Likewise.
26103
26104 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
26105
26106 * doc/extend.texi (Type Traits): Fix grammar.
26107
26108 2016-01-15 Martin Jambor <mjambor@suse.cz>
26109
26110 * tree-inline.c (remap_decl): Use existing dclarations if
26111 remapping a type and prevent_decl_creation_for_types.
26112 (replace_locals_stmt): Do an initial remapping of non-VLA typed
26113 decls first. Do real remapping with
26114 prevent_decl_creation_for_types set.
26115 * tree-inline.h (copy_body_data): New field
26116 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
26117 padding.
26118
26119 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26120
26121 * config/s390/s390.opt (mmvcle): More verbose help text.
26122
26123 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26124
26125 * config/s390/s390.opt: Add period to -mzvector option text.
26126
26127 2016-01-15 Richard Biener <rguenther@suse.de>
26128
26129 PR tree-optimization/68961
26130 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
26131 of invariants in stores again.
26132
26133 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26134
26135 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
26136
26137 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26138
26139 * config/i386/i386.c (ix86_expand_branch): Don't split
26140 DI mode xor instruction to SI mode.
26141
26142 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26143
26144 PR ipa/68148
26145 * ipa-icf.c (sem_function::merge): Virtual functions may become
26146 reachable even if they address is not taken and there are no
26147 idrect calls.
26148
26149 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26150
26151 * lto-streamer-out.c (subtract_estimated_size): New function.
26152 (get_symbol_initial_value): Use it.
26153
26154 2016-01-15 Christian Bruel <christian.bruel@st.com>
26155
26156 PR target/65837
26157 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
26158 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
26159 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
26160 use add_builtin_function_ext_scope instead of add_builtin_function.
26161 (neon_set_p, neon_crypto_set_p): Remove.
26162 (arm_init_builtins): Always call arm_init_neon_builtins and
26163 arm_init_crypto_builtins.
26164 (arm_expand_builtin): Check that builtins are allowed for the arch.
26165 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
26166 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
26167 arm_init_neon_builtins call.
26168
26169 2016-01-15 Richard Biener <rguenther@suse.de>
26170
26171 PR tree-optimization/69117
26172 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
26173 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
26174 of the leader conservatively.
26175 (free_scc_vn): Restore original SSA name infos.
26176
26177 2016-01-14 Jeff Law <law@redhat.com>
26178
26179 PR tree-optimization/69270
26180 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
26181 single bit of precision, verify it's also unsigned.
26182 (record_edge_info): Use constant_boolean_node rather than fold_convert
26183 to convert boolean_true/boolean_false to the right type.
26184
26185 2016-01-14 Richard Henderson <rth@redhat.com>
26186
26187 PR rtl-opt/69014
26188 * loop-doloop.c (record_reg_sets): New.
26189 (doloop_optimize): Reject the transform if the sequence
26190 clobbers registers live at the end of the loop block.
26191 (doloop_optimize_loops): Enable df_live if needed.
26192
26193 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26194
26195 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
26196 * config/rs6000/rs6000.c: Likewise.
26197 * config/rs6000/rs6000.h: Likewise.
26198 * config/rs6000/rs6000.md: Likewise.
26199 * doc/extend.texi: Likewsie.
26200
26201 2016-01-14 Jeff Law <law@redhat.com>
26202
26203 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
26204 typo.
26205
26206 2016-01-14 Richard Henderson <rth@redhat.com>
26207
26208 PR c/69272
26209 PR tree-opt/68964
26210 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
26211 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
26212 instead of builtin_decl_declared_p to test for declaration.
26213
26214 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
26215
26216 * doc/loop.texi (Loop Analysis and Representation): Document
26217 loop_depth function.
26218
26219 2016-01-14 Tom de Vries <tom@codesourcery.com>
26220
26221 PR tree-optimization/68773
26222 * omp-low.c (expand_omp_target): Don't set force_output.
26223 * varpool.c (varpool_node::get_create): Same.
26224 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
26225 offload_funcs with force_output.
26226
26227 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26228
26229 PR debug/69244
26230 * lra-eliminations.c (move_plus_up): Don't change anything if either
26231 the outer or inner subreg mode is not MODE_INT.
26232 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
26233 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
26234
26235 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26236
26237 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
26238 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
26239 reduc_uplus_@var{m}): Remove.
26240 * expr.c (expand_expr_real_2): Remove expansion path for
26241 reduc_[us](min|max|plus) optabs.
26242 * optabs-tree.c (scalar_reduc_to_vector): Remove.
26243 * optabs-tree.h (scalar_reduc_to_vector): Remove.
26244 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
26245 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
26246 * tree-vect-loop.c (vectorizable_reduction): Remove test for
26247 reduc_[us](min|max|plus) optabs.
26248
26249 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26250
26251 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
26252 (reduc_plus_scal_v2sf): New.
26253 (reduc_smax_v2sf): Rename to...
26254 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
26255 (reduc_smin_v2sf): Rename to...
26256 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
26257
26258 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
26259
26260 * alias.c (compare_base_symbol_refs): New function.
26261 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
26262 it.
26263
26264 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26265
26266 PR middle-end/68146
26267 PR tree-optimization/69155
26268 * tree-complex.c: Include cfganal.h.
26269 (phis_to_revisit): New variable.
26270 (extract_component): Add phiarg_p argument. Assert that returned
26271 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
26272 (update_phi_components): Partly rewrite to use loop over real/imag
26273 components instead of code duplication. If extract_component returns
26274 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
26275 create_tmp_reg into the PHI node instead, and mention the phi triplet
26276 in phis_to_revisit.
26277 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
26278 in phis_to_revisit at the end.
26279
26280 2016-01-14 Richard Biener <rguenther@suse.de>
26281
26282 PR tree-optimization/68060
26283 * tree-vect-loop.c (vect_is_simple_reduction): Check the
26284 outer loop reduction is only used in the inner loop before
26285 detecting a double reduction.
26286
26287 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26288
26289 PR target/68269
26290 * combine.c (expand_field_assignment): Punt if compute_mode is
26291 unsupported scalar mode.
26292
26293 2016-01-14 Richard Biener <rguenther@suse.de>
26294
26295 PR tree-optimization/66856
26296 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
26297 SLP node only if it built successfully.
26298 (vect_analyze_slp_instance): Adjust.
26299
26300 2016-01-14 Jeff Law <law@redhat.com>
26301
26302 PR tree-optimization/69270
26303 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
26304 (record_edge_info): Use it. Convert boolean_{true,false}_node
26305 to the type of op0.
26306
26307 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
26308
26309 PR ipa/66487
26310 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
26311 use block_ultimate_origin
26312 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
26313
26314 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26315
26316 * doc/invoke.texi (Submodel Options): Rename section to
26317 "Machine-Dependent Options" to better reflect its content.
26318 Rewrite introductory text to remove archaic CPU names.
26319 Update references.
26320
26321 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26322
26323 * doc/invoke.texi (Code Gen Options): Move section up in file,
26324 before target-specific options. Update menu and option summary
26325 to reflect the new section ordering.
26326
26327 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26328
26329 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
26330 (C++ Dialect Options): Add cross-reference to -std option.
26331 * doc/standards.texi (C++ Language): Document C++14 support.
26332
26333 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26334
26335 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
26336 for pack/unpack functions for __ibm128.
26337 (PACK_IF): Likewise.
26338 (UNPACK_IF): Likewise.
26339
26340 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26341 support for __ibm128 pack/unpack functions.
26342 (rs6000_invalid_builtin): Likewise.
26343 (rs6000_init_builtins): Likewise.
26344 (rs6000_opt_masks): Likewise.
26345
26346 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
26347 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
26348 functions
26349 (RS6000_BTM_COMMON): Likewise.
26350
26351 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
26352 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
26353 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
26354 128-bit floating point. Add support for the double values to be
26355 in Altivec registers for TF/IF packing and unpacking, but restrict
26356 TD packing sub-fields to be FPR registers. Don't allow overlapped
26357 register support for packing. Allow pack inputs to be memory
26358 locations. Don't build generator functions for unpack<mode>_dm
26359 and unpack<mode>_nodm.
26360 (unpack<mode>_dm): Likewise.
26361 (unpack<mode>_nodm): Likewise.
26362 (pack<mode>): Likewise.
26363
26364 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
26365 built-in functions to pack/unpack explicit __ibm128 values.
26366 (__builtin_unpack_ibm128): Likewise.
26367
26368 * doc/extend.texi (PowerPC Built-in Functions): Document
26369 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
26370
26371 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
26372
26373 PR c/66208
26374 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
26375 Add new arg loc and pass it down as context.
26376 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
26377 to the location to use for the warning.
26378 (check_function_arguments): New arg loc. All callers changed. Pass
26379 it to check_function_nonnull.
26380 * c-common.h (check_function_arguments): Adjust declaration.
26381
26382 2016-01-13 Jakub Jelinek <jakub@redhat.com>
26383
26384 PR tree-optimization/69156
26385 * gimple.c (validate_type): Removed.
26386 (gimple_builtin_call_types_compatible_p): Use
26387 useless_type_conversion_p instead of validate_type.
26388 * value-prof.c (gimple_stringop_fixed_value): Fold
26389 icall_size to correct type.
26390
26391 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26392
26393 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
26394 effects.
26395
26396 2016-01-13 Richard Henderson <rth@redhat.com>
26397
26398 PR tree-opt/68964
26399 * target.def (builtin_tm_load, builtin_tm_store): Remove.
26400 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
26401 (ix86_builtin_tm_store): Remove.
26402 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26403 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26404 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26405 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26406 * doc/tm.texi: Rebuild.
26407
26408 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
26409 (BUILT_IN_TM_MEMCPY_RTWN): New.
26410 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
26411 fallback from vector to integer helpers.
26412 (build_tm_load): Handle vector types directly, instead of
26413 via target hook.
26414 (build_tm_store): Likewise.
26415 (expand_assign_tm): Prepare for register types not handled by
26416 the above. Copy them to memory and use memcpy.
26417 * tree.c (tm_define_builtin): New.
26418 (find_tm_vector_type): New.
26419 (build_tm_vector_builtins): New.
26420 (build_common_builtin_nodes): Call it.
26421
26422 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
26423
26424 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
26425 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
26426
26427 2016-01-13 Tom de Vries <tom@codesourcery.com>
26428
26429 PR tree-optimization/69169
26430 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
26431 handled_struct_type param.
26432 (create_variable_info_for, intra_create_variable_infos): Call
26433 create_variable_info_for_1 with extra arg.
26434
26435 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
26436
26437 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
26438 and "armv8.1-a+crc" entries.
26439
26440 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
26441
26442 PR target/69228
26443 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
26444 Change first operand predicate from register_or_constm1_operand
26445 to register_operand.
26446 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
26447 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
26448 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
26449 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
26450 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
26451 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
26452 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
26453 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
26454 comparison with constm1_rtx from vec_prefetch_gen part.
26455
26456 2016-01-13 Richard Biener <rguenther@suse.de>
26457
26458 PR tree-optimization/69013
26459 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
26460 Exchange assert for a test.
26461
26462 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26463
26464 PR target/69247
26465 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
26466
26467 2016-01-13 Richard Biener <rguenther@suse.de>
26468
26469 PR tree-optimization/69242
26470 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
26471 assert with a check.
26472
26473 2016-01-13 Richard Biener <rguenther@suse.de>
26474
26475 PR tree-optimization/69186
26476 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26477 Properly guard vect_update_misalignment_for_peel call.
26478
26479 2016-01-12 Jeff Law <law@redhat.com>
26480
26481 PR tree-optimization/pr67755
26482 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
26483 "need_profile_correction".
26484 (thread_block_1): Initialize new field to false by default. If we
26485 have multiple thread paths through a common joiner to different
26486 final targets, then set new field to true.
26487 (compute_path_counts): Only do count adjustment when it's really
26488 needed.
26489
26490 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26491
26492 * doc/invoke.texi (Spec Files): Move section down in file, past
26493 all command-line option descriptions.
26494
26495 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26496
26497 PR middle-end/54809
26498 * doc/gty.texi: Remove documentation of mark_hook.
26499 * gengtype.c (struct write_types_data): Remove code to support
26500 mark_hook attribute.
26501 (walk_type): Likewise.
26502 (write_func_for_structure): Likewise.
26503
26504 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26505
26506 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
26507 Directory Options, and -specs= to Overall Options.
26508 (Overall Options): Adjust similarly. Reorder to group related
26509 options together. Make -specs= cross-reference the spec file details.
26510 (Directory Options): Adjust similarly.
26511
26512 2016-01-12 Jeff Law <law@redhat.com>
26513
26514 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
26515
26516 2016-01-12 Olivier Hainque <hainque@adacore.com>
26517
26518 * gcc.c (spec_undefvar_allowed): New global.
26519 (process_command): Set to true when running for --version or --help,
26520 alone or together.
26521 (getenv_spec_function): When the variable is not defined, use the
26522 variable name as the variable value if we're allowed not to issue
26523 a fatal error.
26524
26525 2016-01-12 Bin Cheng <bin.cheng@arm.com>
26526
26527 PR tree-optimization/68911
26528 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
26529 information computed for expression "init + nit * step".
26530
26531 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26532
26533 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
26534 about name of GCC executable. Remove deleted node from menu.
26535 (Directory Options) <-B>: Remove cross-reference to deleted node.
26536 (Target Options): Delete section.
26537
26538 2016-01-12 Christian Bruel <christian.bruel@st.com>
26539
26540 PR target/69180
26541 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
26542 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
26543
26544 2016-01-12 Jakub Jelinek <jakub@redhat.com>
26545
26546 PR target/69198
26547 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
26548 aligned_mem is properly set for AVX512-VL floating point masked
26549 stores.
26550
26551 PR target/69175
26552 * ifcvt.c (cond_exec_process_if_block): When removing the last
26553 insn from then_bb, remove also any possible barriers that follow it.
26554
26555 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
26556
26557 PR target/68456
26558 PR target/69226
26559 * config/i386/iamcu.h (SIZE_TYPE): New macro.
26560 (PTRDIFF_TYPE): Likewise.
26561 (WCHAR_TYPE): Likewise.
26562 (WCHAR_TYPE_SIZE): Likewise.
26563 (STDINT_LONG32): Likewise.
26564
26565 2016-01-12 Richard Biener <rguenther@suse.de>
26566
26567 PR tree-optimization/69053
26568 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
26569 convert initial value for cond reductions.
26570
26571 2016-01-12 Richard Biener <rguenther@suse.de>
26572
26573 PR tree-optimization/69007
26574 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
26575 widen_sum after dot_prod and sad.
26576
26577 2016-01-12 Richard Biener <rguenther@suse.de>
26578
26579 PR tree-optimization/69168
26580 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
26581 pattern stmt SLP type.
26582 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
26583 end up unused so cope with that case.
26584
26585 2016-01-12 Richard Biener <rguenther@suse.de>
26586
26587 PR tree-optimization/69157
26588 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
26589 stmts def type only during analyze phase.
26590 (vectorizable_call): Likewise.
26591 (vectorizable_simd_clone_call): Likewise.
26592 (vectorizable_conversion): Likewise.
26593 (vectorizable_assignment): Likewise.
26594 (vectorizable_shift): Likewise.
26595 (vectorizable_operation): Likewise.
26596 (vectorizable_store): Likewise.
26597 (vectorizable_load): Likewise.
26598
26599 2016-01-12 Richard Biener <rguenther@suse.de>
26600
26601 PR tree-optimization/69174
26602 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
26603 space.
26604 (vectorizable_load): Properly compute the number of loads needed
26605 for permuted strided SLP loads and do not spuriously assign
26606 to SLP_TREE_VEC_STMTS.
26607
26608 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
26609
26610 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
26611 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
26612 (MD_EXEC_PREFIX): Remove.
26613 (MD_STARTFILE_PREFIX) Removee.
26614 (FILE_NAME_ABSOLUTE_P): Remove.
26615 (CPP_SPEC): Do not read macros from sys/version.h.
26616 (LINK_COMMAND_SPEC): Remove.
26617 (LOCAL_INCLUDE_DIR): Remove.
26618 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
26619 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
26620 (POST_LINK_SPEC): Define to invoke stubify after linker
26621 (LIBSTDCXX): Remove define
26622 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
26623 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
26624 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
26625 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
26626 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
26627 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
26628 (i386_djgpp_asm_named_section): Add propotype of new procedure
26629
26630 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
26631 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
26632 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
26633 in config/i386/djgpp.h).
26634 (STANDARD_STARTFILE_PREFIX_2): Define identical to
26635 STANDARD_STARTFILE_PREFIX_1.
26636 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
26637 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
26638 installation errors.
26639 (MAX_OFILE_ALIGNMENT): Define to 128.
26640 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
26641
26642 * config/i386/djgpp.c: New file. Add implementation of
26643 i386_djgpp_asm_named_section.
26644
26645 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
26646
26647 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
26648 Add rule for building djgpp.o.
26649
26650 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26651
26652 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
26653 (rtx_is_swappable_p): Reductions are swappable.
26654 (insn_is_swappable_p): V2DF reductions are swappable.
26655
26656 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
26657
26658 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
26659 reloads for other unsupported memory operands.
26660
26661 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26662 Jim Wilson <jim.wilson@linaro.org>
26663
26664 PR target/69194
26665 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
26666 copy_to_mode_reg instead of force_reg.
26667
26668 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26669
26670 PR target/69225
26671 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26672 TARGET_80387 is true.
26673
26674 2016-01-11 Jakub Jelinek <jakub@redhat.com>
26675
26676 PR target/69071
26677 * lra-eliminations.c (move_plus_up): Only move plus up
26678 if subreg of the constant can be simplified into constant
26679 and use the simplified subreg of the constant instead of
26680 the original constant.
26681
26682 * fold-const.c (fold_convertible_p): Don't return true
26683 for conversion of VECTOR_TYPE to same sized integral type.
26684 (fold_convert_loc): Fix up formatting. Fold conversion of
26685 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26686 instead of NOP_EXPR.
26687
26688 PR tree-optimization/69214
26689 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26690 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26691 Formatting fix.
26692
26693 PR tree-optimization/69207
26694 * tree-vect-slp.c (vect_get_constant_vectors): For
26695 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26696 fold_convertible_p to vector_type's element type, and always
26697 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26698
26699 2016-01-11 Richard Biener <rguenther@suse.de>
26700
26701 PR tree-optimization/69173
26702 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26703 fixup the cycle if all stmts are in a pattern.
26704
26705 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
26706
26707 PR middle-end/68999
26708 * alias.c (base_alias_check): Move check for addresses with
26709 alignment ANDs before the call for compare_base_decls.
26710 (memrefs_conflict_p): Return -1 for different decls
26711 that went through alignment adjustments.
26712
26713 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26714
26715 PR rtl-optimization/68796
26716 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26717 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26718 and QImode comparisons against zero with CC_NZmode.
26719 * config/aarch64/iterators.md (short_mask): New mode_attr.
26720
26721 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26722
26723 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26724 (<avx512>_store<mode>_mask): Likewise.
26725
26726 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
26727 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26728
26729 PR rtl-optimization/68841
26730 * ifcvt.c (struct noce_if_info): Add orig_x field.
26731 (bbs_ok_for_cmove_arith): Add to_rename parameter.
26732 Don't record conflicts on to_rename if it's present.
26733 Allow memory destinations in sets.
26734 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26735 blocks, passing orig_x to the checks.
26736 (noce_process_if_block): Set if_info->orig_x appropriately.
26737
26738 2016-01-11 Tom de Vries <tom@codesourcery.com>
26739
26740 PR tree-optimization/69069
26741 * tree-parloops.c (create_parallel_loop): Add missing phi args.
26742
26743 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
26744
26745 PR rtl-optimization/68920
26746 * config/i386/i386.c (ix86_option_override_internal): Restrict number
26747 of conditional moves for RTL if-conversion to 1 for
26748 TARGET_ONE_IF_CONV_INSN.
26749 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26750 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26751 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26752 parameter to restirct number of conditional moves for
26753 RTL if-conversion.
26754 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26755 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26756 conditionl moves.
26757
26758 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
26759
26760 PR bootstrap/69123
26761 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26762 onepart vars. Fix typo in comment. Fix reversed condition in
26763 unshare test.
26764 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26765
26766 PR bootstrap/69123
26767 * var-tracking.c (dump_onepart_variable_differences): New.
26768 (dataflow_set_different): If a detailed dump is requested,
26769 delay early returns and dump differences between onepart
26770 variables present before and after, and added variables.
26771
26772 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26773
26774 PR target/69010
26775 * expr.c (expand_expr_real_1): For boolean vector constants
26776 with a scalar mode use const_scalar_mask_from_tree.
26777 (const_scalar_mask_from_tree): New.
26778 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26779 assigned to a mask type to handle constants.
26780
26781 2016-01-11 Martin Jambor <mjambor@suse.cz>
26782
26783 PR ipa/69044
26784 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26785 useless parameters if we cannot change function signature.
26786
26787 2016-01-11 Martin Jambor <mjambor@suse.cz>
26788
26789 PR ipa/66616
26790 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26791 flag.
26792
26793 2016-01-11 Tom de Vries <tom@codesourcery.com>
26794
26795 PR tree-optimization/69109
26796 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26797 latch with phi.
26798
26799 2016-01-11 Tom de Vries <tom@codesourcery.com>
26800
26801 PR tree-optimization/69108
26802 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26803 res is not used in a phi.
26804
26805 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26806
26807 PR 67425
26808 * common.opt (frandom-seed): Fix parameter name.
26809 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26810
26811 2016-01-11 Tom de Vries <tom@codesourcery.com>
26812
26813 PR tree-optimization/69058
26814 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26815 not supported.
26816
26817 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26818
26819 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26820 (mcode-density): Likewise.
26821
26822 2016-01-10 Tom de Vries <tom@codesourcery.com>
26823
26824 PR tree-optimization/69062
26825 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26826 (parallelize_loops): Don't paralelize loop that has phi with address
26827 arg.
26828
26829 2016-01-10 Tom de Vries <tom@codesourcery.com>
26830
26831 PR tree-optimization/69039
26832 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26833 phi for reduction.
26834
26835 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26836
26837 PR middle-end/68743
26838 * match.pd: Require target has function_c99_misc before doing
26839 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26840
26841 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26842
26843 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26844 use GMPINC.
26845 * configure: Regenerate.
26846
26847 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26848
26849 PR middle-end/50865
26850 PR tree-optimization/69097
26851 * fold-const.h (expr_not_equal_to): New prototype.
26852 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26853 (expr_not_equal_to): New function.
26854 * match.pd (X % -Y is the same as X % Y): Don't optimize
26855 unless X is known not to be equal to minimum or Y is known
26856 not to be equal to -1.
26857 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26858 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26859 (simplify_stmt_using_ranges): Adjust caller.
26860 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26861 substitute_and_fold.
26862
26863 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26864
26865 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26866 w/o DECL_NAME.
26867
26868 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26869
26870 PR tree-optimization/69167
26871 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26872 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26873 ops[0] comparison.
26874 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26875
26876 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26877 Richard Biener <rguenther@suse.de>
26878
26879 PR tree-optimization/68707
26880 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26881 instances that can be handled via vect_load_lanes.
26882
26883 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26884
26885 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26886 if we can't determine address equivalence.
26887 * alias.c (compare_base_decl): Update for changed return value of
26888 symtab_node::equal_address_to.
26889
26890 2016-01-08 Jason Merrill <jason@redhat.com>
26891
26892 PR c++/68983
26893 PR c++/67557
26894 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26895 * expr.c (store_field): Not here.
26896 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26897 call with TREE_ADDRESSABLE type.
26898 * tree-cfg.c (verify_gimple_call): Adjust.
26899
26900 2016-01-08 Olivier Hainque <hainque@adacore.com>
26901
26902 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26903 libc_internal.
26904
26905 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26906
26907 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26908 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26909 (reduc_smin_v2sf): Rename to...
26910 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26911 (reduc_splus_v2sf): Rename to...
26912 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26913
26914 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26915
26916 PR tree-optimization/69162
26917 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26918 valist argument in another argument.
26919 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26920 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26921 to determine the va_list type, build a MEM_REF instead of
26922 build_fold_indirect_ref.
26923
26924 PR tree-optimization/69172
26925 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26926 gimple_build.
26927
26928 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26929
26930 PR tree-optimization/67781
26931 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26932 and cmpnop in two steps: first the ones not accessed in original
26933 gimple expression in a endian independent way and then the ones not
26934 accessed in the final result in an endian-specific way.
26935
26936 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26937
26938 PR tree-optimization/69083
26939 * tree-vect-slp.c (vect_get_constant_vectors): For
26940 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26941 element type. If op is fold_convertible_p to vector_type's element
26942 type, use NOP_EXPR instead of VCE.
26943
26944 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26945
26946 PR rtl-optimization/67778
26947 PR rtl-optimization/68634
26948 PR rtl-optimization/68909
26949 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26950 block from the stack until done with it. Remove a superfluous
26951 bitmap set. Remove a superfluous bitmap test.
26952
26953 2016-01-07 Martin Sebor <msebor@redhat.com>
26954
26955 PR c/68966
26956 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26957 constraint on the type of arguments.
26958
26959 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26960
26961 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26962 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26963 unaligned_access on the gcc_options set.
26964 * config/arm/arm.c (arm_option_override_internal): Use
26965 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26966
26967 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26968
26969 PR target/69140
26970 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26971 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26972
26973 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26974
26975 Revert
26976 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26977
26978 PR target/69140
26979 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26980 depending on frame_pointer_needed before remaining integer and SSE
26981 registers are saved.
26982
26983 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26984
26985 PR 1078
26986 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26987
26988 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26989
26990 PR target/69171
26991 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26992 Use the "xBm" constraint.
26993 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26994 Likewise.
26995 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26996 (sse_cvtsi2ssq<round_name>): Likewise.
26997 (sse_cvtss2si<round_name>): Likewise.
26998 (sse_cvtss2siq<round_name>): Likewise.
26999 (sse2_cvtsi2sdq<round_name>): Likewise.
27000 (sse2_cvtsd2si<round_name>): Likewise.
27001 (sse2_cvtsd2siq<round_name>): Likewise.
27002 * config/i386/subst.md (round_nimm_scalar_predicate): New
27003 predicate.
27004
27005 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
27006
27007 PR middle-end/67639
27008 * varasm.c (make_decl_rtl): Mark invalid register vars as
27009 DECL_EXTERNAL.
27010
27011 PR rtl-optimization/66206
27012 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
27013 All callers changed.
27014
27015 2016-01-07 Jakub Jelinek <jakub@redhat.com>
27016
27017 PR tree-optimization/69141
27018 * tree-ssa-pre.c: Include langhooks.h.
27019 (eliminate_dom_walker::before_dom_children): Use
27020 lang_hooks.decl_printable_name instead of
27021 cgraph_node::get ()->name ().
27022
27023 PR middle-end/68960
27024 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
27025 it and DECL_ALIGN too.
27026
27027 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
27028
27029 * config/mips/mips-ftypes.def: Sort to lexicographical order.
27030
27031 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
27032
27033 PR target/69140
27034 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
27035 depending on frame_pointer_needed before remaining integer and SSE
27036 registers are saved.
27037
27038 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27039
27040 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
27041 mode iterator with VSX_M2.
27042 (*p9_vecstore_<mode>): Likewise.
27043 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
27044 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
27045 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
27046 (define_split for VSX_LE128 stores): Likewise.
27047 (define_peephole2 for TImode LE swaps): Likewise.
27048 (define_split for VSX_LE128 post-reload stores): Likewise.
27049
27050 2016-01-06 Marek Polacek <polacek@redhat.com>
27051
27052 PR sanitizer/69099
27053 * convert.c (convert_to_integer_1): Adjust call to
27054 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
27055 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
27056 EXPR instead of ARG.
27057 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
27058
27059 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27060
27061 PR 1078
27062 * doc/extend.texi (RL78 Variable Attributes): New section.
27063
27064 2016-01-05 Marek Polacek <polacek@redhat.com>
27065
27066 PR c/69104
27067 * builtins.c (get_memmodel): Use expansion point location rather than
27068 the input location. Call warning_at rather than warning.
27069 (expand_builtin_atomic_compare_exchange): Likewise.
27070 (expand_builtin_atomic_load): Likewise.
27071 (expand_builtin_atomic_store): Likewise.
27072 (expand_builtin_atomic_clear): Likewise.
27073
27074 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27075
27076 PR target/68991
27077 * config/i386/i386.c (ix86_expand_vector_logical_operator):
27078 Replace nonimmediate_operand with vector_operand.
27079 * config/i386/predicates.md (vector_operand): New predicate.
27080 (general_vector_operand): Replace nonimmediate_operand with
27081 vector_operand.
27082 * config/i386/sse.md: Replace nonimmediate_operand with
27083 vector_operand and m constraint with Bm constraint on SSE
27084 patterns with 16-byte memory operand.
27085 * config/i386/subst.md (round_nimm_predicate): Replace
27086 nonimmediate_operand with vector_operand.
27087 (round_saeonly_nimm_predicate): Likewise.
27088 (round_saeonly_nimm_scalar_predicate): New.
27089
27090 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27091
27092 PR target/68991
27093 * config/i386/constraints.md (Bm): New constraint.
27094 * config/i386/predicates.md (vector_memory_operand): New
27095 predicate.
27096 * config/i386/sse.md: Replace xm with xBm in plusminus and
27097 any_logic patterns.
27098
27099 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27100
27101 PR 1078
27102 * doc/extend.texi (V850 Function Attributes): New section.
27103 (V850 Variable Attributes): New section.
27104
27105 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27106
27107 PR 1078
27108 * doc/extend.texi (MicroBlaze Function Attributes): Document
27109 interrupt_handler and fast_interrupt attributes.
27110
27111 2016-01-05 Sergei Trofimovich <siarheit@google.com>
27112
27113 PR other/60465
27114 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
27115 for local symbolic operands.
27116 * config/ia64/predicates.md (local_symbolic_operand64): New
27117 predicate.
27118
27119 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27120
27121 PR rtl-optimization/68651
27122 * combine.c (combine_simplify_rtx): Canonicalize x + x into
27123 x << 1.
27124
27125 2016-01-05 Nathan Sidwell <nathan@acm.org>
27126
27127 * alias.c (compare_base_decls): Use symtab_node::get.
27128
27129 2016-01-05 Nick Clifton <nickc@redhat.com>
27130
27131 PR target/68770
27132 * ira-costs.c (copy_cost): Initialise the t_icode field of the
27133 secondary_reload_info structure.
27134
27135 PR target/66655
27136 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
27137 decls if weak support is available.
27138
27139 2016-01-04 Martin Sebor <msebor@redhat.com>
27140
27141 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
27142
27143 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27144
27145 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
27146 OPTION_MASK_P9_DFORM.
27147
27148 * config/rs6000/constraints.md (wo constraint): New constraint for
27149 ISA 3.0 (power9).
27150
27151 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
27152 for wo constraint.
27153 (rs6000_init_hard_regno_mode_ok): Likewise.
27154
27155 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
27156 wo constraint.
27157
27158 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
27159 expanders not to have constraints. Add support for ISA 3.0 xxperm
27160 instruction. Add support for fusing xxlor with xxperm.
27161 (altivec_vperm_<mode>_internal): Likewise.
27162 (altivec_vperm_v8hiv16qi): Likewise.
27163 (altivec_vperm_<mode>v16q): Likewise.
27164 (altivec_vperm_<mode>_uns): Likewise.
27165 (vperm_v8hiv4si): Likewise.
27166 (vperm_v16qiv8hi): Likewise.
27167
27168 * doc/md.texi (RS/6000 constraints): Document wo constraint.
27169
27170 2016-01-04 Jakub Jelinek <jakub@redhat.com>
27171
27172 Update copyright years.
27173
27174 * gcc.c (process_command): Update copyright notice dates.
27175 * gcov-dump.c (print_version): Ditto.
27176 * gcov.c (print_version): Ditto.
27177 * gcov-tool.c (print_version): Ditto.
27178 * gengtype.c (create_file): Ditto.
27179 * doc/cpp.texi: Bump @copying's copyright year.
27180 * doc/cppinternals.texi: Ditto.
27181 * doc/gcc.texi: Ditto.
27182 * doc/gccint.texi: Ditto.
27183 * doc/gcov.texi: Ditto.
27184 * doc/install.texi: Ditto.
27185 * doc/invoke.texi: Ditto.
27186
27187 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27188
27189 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
27190 modes larger than TImode as TImode if NEON is not enabled.
27191
27192 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27193
27194 PR target/69100
27195 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
27196 mode for %f0-%f31 only if TARGET_FPU.
27197
27198 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27199
27200 PR target/69072
27201 * config/sparc/sparc.c (scan_record_type): Take into account subfields
27202 to compute the PACKED_P predicate.
27203 (function_arg_record_value): Minor tweaks.
27204
27205 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
27206
27207 * doc/install.texi (--with-multilib-list): Describe the meaning of the
27208 option for arm*-*-* targets.
27209
27210 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
27211
27212 * doc/extend.texi (Common Function Attributes): Move docs for
27213 MSP430-specific attributes to....
27214 (MSP430 Function Attributes): ...here. Delete the redundant
27215 entries and copy-edit the remaining text.
27216 (MSP430 Variable Attributes): Use uniform format for index
27217 entries and add a cross-reference to the corresponding function
27218 attribute docs.
27219
27220 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
27221
27222 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
27223 -finite-math typo.
27224 (x86 Options): Likewise.
27225
27226 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27227
27228 PR 1078
27229
27230 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
27231 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
27232 to corresponding attribute.
27233
27234 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27235
27236 * doc/extend.texi (Common Function Attributes) <noplt>: Move
27237 to correct alphabetization of table. Copy-edit and correct
27238 markup.
27239 <stack_protect>: Likewise.
27240 <target_clones>: Likewise.
27241 <simd>: Likewise.
27242 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
27243 Correct punctuation.
27244 (Code Gen Options) <-fno-plt>: Copy-edit.
27245
27246 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27247
27248 PR target/68917
27249 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
27250 SI values. Explicitly convert SI to DI and vice-versa.
27251
27252 2016-01-01 Jakub Jelinek <jakub@redhat.com>
27253
27254 PR tree-optimization/69070
27255 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
27256 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
27257
27258 PR sanitizer/69055
27259 * ubsan.c (ubsan_instrument_float_cast): Call
27260 initialize_sanitizer_builtins.
27261
27262 PR target/69015
27263 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
27264 \f
27265 Copyright (C) 2016 Free Software Foundation, Inc.
27266
27267 Copying and distribution of this file, with or without modification,
27268 are permitted in any medium without royalty provided the copyright
27269 notice and this notice are preserved.