S/390: Add fallthrough comment in md file.
[gcc.git] / gcc / ChangeLog
1 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2
3 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
4
5 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6
7 PR tree-optimization/53979
8 * match.pd ((a ^ b) | a -> a | b): New pattern.
9
10 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
11
12 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
13 config/pa/pa64-hpux-lib.h.
14 (PA_CRTBEGIN_HACK): Likewise.
15 (DTOR_LIST_BEGIN): Likewise.
16
17 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18
19 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
20 register only if "in" and "out" are different registers.
21
22 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
23
24 * omp-low.c (pass_oacc_device_lower::gate): New method.
25 (execute): Always call execute_oacc_device_lower.
26
27 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28
29 PR tree-optimization/77916
30 PR tree-optimization/77937
31 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
32 stopgap fix.
33 (insert_initializers): Requirement of initializer for -1 should be
34 based on pointer-typedness of the candidate basis.
35
36 2016-10-19 Bin Cheng <bin.cheng@arm.com>
37
38 PR tree-optimization/78005
39 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
40 upper (included) bound for niters of prolog loop.
41 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
42 Compute niters of scalar loop above which vectorized loop is
43 preferred, as well as the upper (included) bound for the niters.
44 (vect_do_peeling): Record niter bound for loops accordingly.
45
46 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
47
48 PR lto/77458
49 * tree-core.h (enum tree_index): Put the complex types after their
50 component types.
51 * tree-streamer.c (verify_common_node_recorded): New function.
52 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
53
54 2016-10-19 Martin Liska <mliska@suse.cz>
55
56 * cgraph.h (cgraph_edge::binds_to_current_def_p):
57 Replace NULL with false as a return value.
58
59 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
60
61 PR tree-optimization/78024
62 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
63 don't clear BB_VISITED after processing.
64
65 2016-10-19 Richard Biener <rguenther@suse.de>
66
67 * domwalk.c (dom_walker::walk): Use RPO order.
68
69 2016-10-19 Richard Biener <rguenther@suse.de>
70
71 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
72 stmts_to_remove.
73 (evrp_dom_walker::~evrp_dom_walker): Free it.
74 (evrp_dom_walker::stmts_to_remove): Add.
75 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
76 whose output we fully propagate for removal. Propagate
77 into BB destination PHI arguments.
78 (execute_early_vrp): Remove queued stmts. Dump value ranges
79 before stmt removal.
80
81 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
82
83 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
84 * passes.def: Add two instances of pass_walloca.
85 * tree-pass.h (make_pass_walloca): New.
86 * gimple-ssa-warn-alloca.c: New file.
87 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
88 -Wvla-larger-than= options.
89
90 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
91
92 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
93 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
94
95 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
96
97 * config/rs6000/altivec.h (vec_xl_len): New macro.
98 (vec_xst_len): New macro.
99 (vec_cmpnez): New macro.
100 (vec_cntlz_lsbb): New macro.
101 (vec_cnttz_lsbb): New macro.
102 (vec_xlx): New macro.
103 (vec_xrx): New macro.
104 (vec_all_nez): New C++ predicate template.
105 (vec_any_eqz): New C++ predicate template.
106 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
107 conditional compilation.
108 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
109 conditional compilation.
110 (vec_all_nez): New macro.
111 (vec_any_eqz): New macro.
112 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
113 compilation.
114 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
115 compilation.
116 * config/rs6000/vector.md (VI): Moved this mode iterator
117 definition from altivec.md to vector.md.
118 (UNSPEC_NEZ_P): New value.
119 (vector_ne_<mode>_p): New expansion for implementation of
120 vec_all_ne and vec_any_eq built-in functions.
121 (vector_nez_<mode>_p): New expansion for implementation of
122 vec_all_nez and vec_any_eqz built-in functions.
123 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
124 and vec_any_eq built-in function.
125 (cr6_test_for_zero): New commentary to explain this expansion.
126 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
127 (cr6_test_for_lt): New commentary to explain this expansion.
128 (cr6_test_for_lt_reverse): New commentary to explain this
129 expansion.
130 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
131 overloaded function prototypes for vec_all_ne, vec_all_nez,
132 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
133 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
134 built-in functions.
135 (altivec_resolve_overloaded_builtin): Modify the handling of
136 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
137 the compiler is configured to support TARGET_P9_VECTOR.
138 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
139 to explain the special processing that is given to predicate
140 built-ins introduced using this macro.
141 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
142 the special processing given to predicate built-ins introduced
143 using this macro.
144 (BU_VSX_P): Likewise.
145 (BU_P8V_AV_P): Likewise.
146 (BU_P9V_AV_P): Likewise.
147 (BU_P9V_AV_X): New macro.
148 (BU_P9V_64BIT_AV_X): New macro.
149 (BU_P9V_VSX_3): New macro.
150 (BU_P9V_OVERLOAD_P): New macro.
151 (LXVL): New BU_P9V_64BIT_VSX_2.
152 (VEXTUBLX): New BU_P9V_AV_2.
153 (VEXTUBRX): Likewise.
154 (VEXTUHLX): Likewise.
155 (VEXTUHRX): Likewise.
156 (VEXTUWLX): Likewise.
157 (VEXTUWRX): Likewise.
158 (STXVL): New BU_P9V_64BIT_AV_X.
159 (VCLZLSBB): New BU_P9V_AV_1.
160 (VCTZLSBB): Likewise.
161 (CMPNEB): New BU_P9V_AV_2.
162 (CMPNEH): Likewise.
163 (CMPNEW): Likewise.
164 (CMPNEF): Likewise.
165 (CMPNED): Likewise.
166 (VCMPNEB_P): New BU_P9V_AV_P.
167 (VCMPNEH_P): Likewise.
168 (VCMPNEW_P): Likewise.
169 (VCMPNED_P): Likewise.
170 (VCMPNEFP_P): Likewise.
171 (VCMPNEDP_P): Likewise.
172 (CMPNEZB): New BU_P9V_AV_2.
173 (CMPNEZH): Likewise.
174 (CMPNEZW): Likewise.
175 (VCMPNEZB_P): New BU_P9V_AV_P.
176 (VCMPNEZH_P): Likewise.
177 (VCMPNEZW_P): Likewise.
178 (LXVL): New BU_P9V_OVERLOAD_2.
179 (STXVL): New BU_P9V_OVERLOAD_3.
180 (VEXTULX): New BU_P9V_OVERLOAD_2.
181 (VEXTURX): Likewise.
182 (CMPNEZ): Likewise.
183 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
184 (VCMPNE_P): Likewise.
185 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
186 (VCTZLSBB): Likewise.
187 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
188 comment to explain mode used for scratch register.
189 (altivec_expand_stxvl_builtin): New function.
190 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
191 (altivec_init_builtins): Add initialized variable
192 void_ftype_v16qi_pvoid_long and use this type to define the
193 built-in function __builtin_altivec_stxvl.
194 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
195 (UNSPEC_STXVL): New value.
196 (UNSPEC_VCLZLSBB): New value.
197 (UNSPEC_VCTZLSBB): New value.
198 (UNSPEC_VEXTUBLX): New value.
199 (UNSPEC_VEXTUHLX): New value.
200 (UNSPEC_VEXTUWLX): New value.
201 (UNSPEC_VEXTUBRX): New value.
202 (UNSPEC_VEXTUHRX): New value.
203 (UNSPEC_VEXTUWRX): New value.
204 (UNSPEC_VCMPNEB): New value.
205 (UNSPEC_VCMPNEZB): New value.
206 (UNSPEC_VCMPNEH): New value.
207 (UNSPEC_VCMPNEZH): New value.
208 (UNSPEC_VCMPNEW): New value.
209 (UNSPEC_VCMPNEZW): New value.
210 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
211 vector of integer modes.
212 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
213 vector of float or double modes.
214 (*vector_nez_<mode>_p): New insn for vector test all not equal or
215 zero.
216 (lxvl): New expand for load VSX vector with length.
217 (*lxvl): New insn for load VSX vector with length.
218 (stxvl): New expand for store VSX vector with length.
219 (*stxvl): New insn for store VSX vector with length.
220 (vcmpneb): New insn for vector of byte compare not equal.
221 (vcmpnezb): New insn for vector of byte compare not equal or zero.
222 (vcmpneh): New insn for vector of half word compare not equal.
223 (vcmpnezh): New insn for vector of half word compare not equal or
224 zero.
225 (vcmpnew): New insn for vector of word compare not equal.
226 (vcmpne<VSs>): New insn for vector of float or double compare not
227 equal.
228 (vcmpnezw): New insn for vector of word compare not equal or zero.
229 (vclzlsbb): New insn for vector count leading zero
230 least-significant bits byte.
231 (vctzlsbb): New insn for vector count trailing zero least
232 signficant bits byte.
233 (vextublx): New insn for vector extract unsigned byte left
234 indexed.
235 (vextubrx): New insn for vector extract unsigned byte right
236 indexed.
237 (vextuhlx): New insn for vector extract unsigned half word left
238 indexed.
239 (vextuhrx): New insn for vector extract unsigned half word right
240 indexed.
241 (vextuwlx): New insn for vector extract unsigned word left
242 indexed.
243 (vextuwrx): New insn for vector extract unsigned word right
244 indexed.
245 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
246 clarify intent of this constant.
247 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
248 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
249 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
250 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
251 and vec_xrx functions.
252
253 2016-10-18 Andrew Pinski <apinski@cavium.com>
254
255 PR tree-opt/65950
256 * predict.c (is_exit_with_zero_arg): New function.
257 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
258 as nottaken.
259
260 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
261
262 PR target/77991
263 * config/i386/i386.c (legitimize_tls_address)
264 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
265 convert dest to Pmode if different than Pmode.
266
267 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
268
269 PR tree-optimization/77916
270 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
271 stopgap fix, as pointers with -1 increment are still broken.
272
273 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
274
275 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
276 mapping class decoration from here...
277 (rs6000_xcoff_encode_section): ...to here.
278
279 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
280 if shrink-wrapping and optimizing for speed.
281
282 2016-10-18 Richard Biener <rguenther@suse.de>
283
284 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
285 not visited but non-executable predecessors. Return taken edge.
286 Simplify conditions and refactor propagation vs. folding step.
287
288 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
289
290 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
291 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
292 (rs6000_get_separate_components): Assert we do not have those
293 strategies selected.
294
295 2016-10-18 Richard Biener <rguenther@suse.de>
296
297 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
298 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
299 clearing.
300 (substitute_and_fold_dom_walker): Adjust constructor.
301 (substitute_and_fold_dom_walker::before_dom_children): Remove
302 do_dce flag and handling (always true).
303 (substitute_and_fold): Likewise.
304 * tree-vrp.c (vrp_finalize): Adjust.
305 (execute_early_vrp): Remove final BB_VISITED clearing.
306 * tree-ssa-ccp.c (ccp_finalize): Adjust.
307 * tree-ssa-copy.c (fini_copy_prop): Likewise.
308 * ira.c (ira): Call clear_bb_flags.
309
310 2016-10-18 Richard Biener <rguenther@suse.de>
311
312 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
313 get at the operand to look at with TREE_OPERAND for generic
314 sub-nodes.
315
316 2016-10-18 David Malcolm <dmalcolm@redhat.com>
317
318 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
319 copy_md_ptr_loc.
320 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
321 (write_test_expr): Use rtx_reader_ptr for calls to
322 fprint_c_condition.
323 (write_attr_value): Likewise.
324 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
325 call to print_md_ptr_loc.
326 (write_one_condition): Likewise for calls to print_c_condition.
327 * genconstants.c: Include "statistics.h" and "vec.h".
328 (main): Update for conversion to member functions.
329 * genemit.c (emit_c_code): Use rtx_reader_ptr for
330 call to print_md_ptr_loc.
331 * genenums.c: Include "statistics.h" and "vec.h".
332 (main): Update for conversion of traverse_enum_types to a method.
333 * genmddeps.c: Include "statistics.h" and "vec.h".
334 * genoutput.c (process_template): Use rtx_reader_ptr for call to
335 print_md_ptr_loc.
336 * genpreds.c (write_predicate_subfunction): Likewise.
337 (write_predicate_expr): Likewise for calls to print_c_condition.
338 * genrecog.c (print_test): Likewise.
339 * gensupport.c (process_rtx): Likewise for calls to
340 copy_md_ptr_loc and join_c_conditions.
341 (alter_test_for_insn): Likewise for call to join_c_conditions.
342 (process_substs_on_one_elem): Likewise.
343 (gen_mnemonic_setattr): Update for move of string_obstack to a
344 field of rtx_reader.
345 (mnemonic_htab_callback): Likewise. Fix formatting.
346 (gen_mnemonic_attr): Likewise.
347 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
348 to print_c_condition.
349 * read-md.c: Include "statistics.h" and "vec.h".
350 (string_obstack): Convert this global to field "m_string_obstack"
351 of class rtx_reader.
352 (ptr_locs): Likewise, as "m_ptr_locs".
353 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
354 (joined_conditions): Likewise, as "m_joined_conditions".
355 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
356 (md_constants): Likewise, as "m_md_constants".
357 (enum_types): Likewise, as "m_enum_types".
358 (set_md_ptr_loc): Convert to...
359 (rtx_reader::set_md_ptr_loc): ...member function.
360 (get_md_ptr_loc): Convert to...
361 (rtx_reader::get_md_ptr_loc): ...member function.
362 (copy_md_ptr_loc): Convert to...
363 (rtx_reader::copy_md_ptr_loc): ...member function.
364 (fprint_md_ptr_loc): Convert to...
365 (rtx_reader::fprint_md_ptr_loc): ...member function.
366 (print_md_ptr_loc): Convert to...
367 (rtx_reader::print_md_ptr_loc): ...member function.
368 (join_c_conditions): Convert to...
369 (rtx_reader::join_c_conditions): ...member function.
370 (fprint_c_condition): Convert to...
371 (rtx_reader::fprint_c_condition): ...member function.
372 (print_c_condition): Convert to...
373 (rtx_reader::print_c_condition): ...member function.
374 (read_name): Convert to...
375 (rtx_reader::read_name): ...member function.
376 (read_escape): Convert to...
377 (rtx_reader::read_escape): ...member function.
378 (read_quoted_string): Convert to...
379 (rtx_reader::read_quoted_string): ...member function.
380 (read_braced_string): Convert to...
381 (rtx_reader::read_braced_string): ...member function.
382 (read_string): Convert to...
383 (rtx_reader::read_string): ...member function.
384 (read_skip_construct): Convert to...
385 (rtx_reader::read_skip_construct): ...member function.
386 (handle_constants): Convert to...
387 (rtx_reader::handle_constants): ...member function.
388 (traverse_md_constants): Convert to...
389 (rtx_reader::traverse_md_constants): ...member function.
390 (handle_enum): Convert to...
391 (rtx_reader::handle_enum): ...member function.
392 (lookup_enum_type): Convert to...
393 (rtx_reader::lookup_enum_type): ...member function.
394 (traverse_enum_types): Convert to...
395 (rtx_reader::traverse_enum_types): ...member function.
396 (rtx_reader::rtx_reader): Move initializations
397 of various former global data from rtx_reader::read_md_files to
398 here, as fields, along with the call to unlock_std_streams.
399 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
400 the new fields.
401 (rtx_reader::read_md_files): Move initializations of various
402 global data from here to the ctor.
403 * read-md.h (read_name): Convert to...
404 (rtx_reader::read_name): ...member function.
405 (rtx_reader::read_escape): New method decl.
406 (read_quoted_string): Convert to...
407 (rtx_reader::read_quoted_string): ...member function.
408 (rtx_reader::read_braced_string): New method decl.
409 (read_string): Convert to...
410 (rtx_reader::read_string): ...member function.
411 (rtx_reader::read_skip_construct): New method decl.
412 (rtx_reader::set_md_ptr_loc): New method decl.
413 (rtx_reader::get_md_ptr_loc): New method decl.
414 (copy_md_ptr_loc): Convert to...
415 (rtx_reader::copy_md_ptr_loc): ...member function.
416 (fprint_md_ptr_loc): Convert to...
417 (rtx_reader::fprint_md_ptr_loc): ...member function.
418 (print_md_ptr_loc): Convert to...
419 (rtx_reader::print_md_ptr_loc): ...member function.
420 (rtx_reader::lookup_enum_type): New method decl.
421 (rtx_reader::traverse_enum_types): New method decl.
422 (rtx_reader::handle_constants): New method decl.
423 (traverse_md_constants): Convert to...
424 (rtx_reader::traverse_md_constants): ...member function.
425 (rtx_reader::handle_enum): New method decl.
426 (rtx_reader::join_c_conditions): New method decl.
427 (fprint_c_condition): Convert to...
428 (rtx_reader::fprint_c_condition): ...member function.
429 (print_c_condition): Convert to...
430 (rtx_reader::print_c_condition): ...member function.
431 (rtx_reader::apply_iterator_to_string): New method decl.
432 (rtx_reader::copy_rtx_for_iterators): New method decl.
433 (rtx_reader::read_conditions): New method decl.
434 (rtx_reader::record_potential_iterator_use): New method decl.
435 (rtx_reader::read_mapping): New method decl.
436 (rtx_reader::read_rtx): New method decl.
437 (rtx_reader::read_rtx_code): New method decl.
438 (rtx_reader::read_rtx_operand): New method decl.
439 (rtx_reader::read_nested_rtx): New method decl.
440 (rtx_reader::read_rtx_variadic): New method decl.
441 (rtx_reader::get_string_obstack): New method.
442 (rtx_reader::get_md_constants): New method.
443 (string_obstack): Convert global variable decl to...
444 (rtx_reader::m_string_obstack): ...this new field.
445 (rtx_reader::m_ptr_locs): New field.
446 (rtx_reader::m_ptr_loc_obstack): New field.
447 (rtx_reader::m_joined_conditions): New field.
448 (rtx_reader::m_joined_conditions_obstack): New field.
449 (rtx_reader::m_md_constants): New field.
450 (rtx_reader::m_enum_types): New field.
451 * read-rtl.c (apply_iterator_to_string): Convert to...
452 (rtx_reader::apply_iterator_to_string): ...member function.
453 (copy_rtx_for_iterators): Convert to...
454 (rtx_reader::copy_rtx_for_iterators): ...member function.
455 (add_condition_to_string): Use rtx_reader_ptr for
456 calls join_c_conditions.
457 (apply_iterators): Use rtx_reader_ptr for calls to
458 join_c_conditions and copy_rtx_for_iterators.
459 (read_conditions): Convert to...
460 (rtx_reader::read_conditions): ...member function.
461 (record_potential_iterator_use): Convert to...
462 (rtx_reader::record_potential_iterator_use): ...member function.
463 (read_mapping): Convert to...
464 (rtx_reader::read_mapping): ...member function.
465 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
466 (read_rtx): Convert to...
467 (rtx_reader::read_rtx): ...member function.
468 (read_rtx_code): Convert to...
469 (rtx_reader::read_rtx_code): ...member function.
470 (read_rtx_operand): Convert to...
471 (rtx_reader::read_rtx_operand): ...member function. Update for move
472 of string_obstack to a field.
473 (read_nested_rtx): Convert to..
474 (rtx_reader::read_nested_rtx): ...member function.
475 (read_rtx_variadic): Convert to..
476 (rtx_reader::read_rtx_variadic): ...member function.
477
478 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
479
480 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
481
482 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
483
484 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
485 for pointer type too.
486 (ipcp_update_vr): set_ptr_nonnull for pointer.
487
488 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
489
490 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
491 pt_solution_singleton_p.
492 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
493 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
494 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
495 pointer nonnull computed by VRP.
496 Also Conservatively set pt.null to 1.
497 (pt_solution_reset): Conservatively set pt.null to 1.
498 (pt_solution_singleton_or_null_p): Renamed from
499 pt_solution_singleton_p.
500 * tree-ssanames.h (set_ptr_nonnull): Declare.
501 (get_ptr_nonnull): Likewise.
502 * tree-ssanames.c (set_ptr_nonnull): New.
503 (get_ptr_nonnull): Likewise.
504 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
505 (evrp_dom_walker::before_dom_children): Likewise.
506
507 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
508
509 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
510 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
511 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
512 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
513 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
514 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
515 (rs6000_option_override_internal): Clear it if ABI_AIX.
516 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
517 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
518
519 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
520
521 * gimple-ssa-strength-reduction.c (record_increment): Remove
522 garbage comment.
523
524 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
525
526 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
527 that the result is non-zero if it is true.
528 (maybe_expand_shift): New wrapper around expand_shift_1.
529 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
530
531 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
532
533 PR tree-optimization/77916
534 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
535 Don't allow a MINUS_EXPR for pointer arithmetic for either known
536 or unknown strides.
537 (record_increment): Increments of -1 for unknown strides just use
538 a multiply initializer like other negative values.
539 (analyze_increments): Remove stopgap solution for -1 increment
540 applied to pointer arithmetic.
541
542 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
543
544 * dominance.c (dom_info::dom_info): Add new constructor for region
545 which is vector of basic blocks.
546 (dom_init): New method to initialize members common for both
547 constructors.
548 (dom_info::dom_info): Invoke dom_init for partial initialization.
549 (dom_info::get_idom): Add check to corner cases on basic blocks which
550 are not in region.
551 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
552 to detect unreachable bbs.
553 (dom_info::calc_idoms): Likewise.
554 (compute_dom_fast_query_in_region): New function.
555 (calculate_dominance_info_for_region): Likewise.
556 (free_dominance_info_for_region): Likewise.
557 * dominance.h: Add prototypes for introduced region-based functions
558 tree-if-conv.c: (build_region): New function.
559 (if_convertible_loop_p_1): Invoke local version of post-dominators
560 calculation before basic block predication with subsequent freeing
561 post-dominator info.
562 (tree_if_conversion): Remove free of post-dominator info
563 (pass_if_conversion::execute): Delete detection of infinite loops
564 and fake edges to exit block since post-dominator calculation is
565 performed per if-converted loop only.
566
567 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
568
569 PR target/77308
570 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
571 register explicitly.
572 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
573 optimizing for size.
574
575 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576
577 * config/aarch64/aarch64.c: Delete inclusion of
578 cortex-a57-fma-steering.h.
579 (aarch64_override_options): Delete call
580 to aarch64_register_fma_steering.
581 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
582 * config/aarch64/cortex-a57-fma-steering.h: Delete.
583 * config/aarch64/aarch64-passes.def: New file.
584 * config/aarch64/cortex-a57-fma-steering.c
585 (aarch64_register_fma_steering): Delete definition.
586 (make_pass_fma_steering): Remove static qualifier.
587 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
588 (cortex-a57-fma-steering.o): Remove dependency on
589 cortex-a57-fma-steering.h.
590
591 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
592
593 * explow.c (validize_mem): Do not modify the argument in-place.
594
595 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
596
597 * tree-streamer.c (record_common_node): Explicitly list expected
598 tree codes.
599
600 2016-10-17 Richard Biener <rguenther@suse.de>
601
602 PR tree-optimization/77988
603 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
604
605 2016-10-17 Marek Polacek <polacek@redhat.com>
606
607 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
608
609 2016-10-17 Richard Biener <rguenther@suse.de>
610
611 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
612 before using it.
613
614 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
615
616 PR tree-optimization/71636
617 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
618
619 2016-10-17 Richard Biener <rguenther@suse.de>
620
621 * gimplify.c (gimplify_function_tree): Do not move the outer
622 binds block.
623
624 2016-10-17 Jakub Jelinek <jakub@redhat.com>
625
626 * langhooks.h (struct lang_hooks_for_decls): Remove
627 function_decl_explicit_p, function_decl_deleted_p and
628 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
629 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
630 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
631 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
632 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
633 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
634 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
635 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
636 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
637 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
638 * langhooks.c (lhd_decl_dwarf_attribute): New function.
639 * dwarf2out.c (gen_subprogram_die): Use
640 lang_hooks.decls.decl_dwarf_attribute instead of
641 lang_hooks.decls.function_decl_*.
642
643 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
644
645 PR ada/37139
646 PR ada/67205
647 * common.opt (-ftrampolines): New option.
648 * doc/invoke.texi (Code Gen Options): Document it.
649 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
650 * doc/tm.texi: Regenerate.
651 * builtins.def: Add init_descriptor and adjust_descriptor.
652 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
653 on platforms with descriptors.
654 (expand_builtin_init_descriptor): New function.
655 (expand_builtin_adjust_descriptor): Likewise.
656 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
657 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
658 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
659 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
660 Set STATIC_CHAIN_REG_P on the static chain register, if any.
661 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
662 (expand_call): Likewise. Move around call to prepare_call_address
663 and pass all flags to it.
664 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
665 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
666 (gimple_call_set_by_descriptor): New setter.
667 (gimple_call_by_descriptor_p): New getter.
668 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
669 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
670 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
671 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
672 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
673 * rtl.h (STATIC_CHAIN_REG_P): New macro.
674 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
675 * target.def (custom_function_descriptors): New POD hook.
676 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
677 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
678 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
679 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
680 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
681 (build_common_builtin_nodes): Initialize init_descriptor and
682 adjust_descriptor.
683 * tree-nested.c: Include target.h.
684 (struct nesting_info): Add 'any_descr_created' field.
685 (get_descriptor_type): New function.
686 (lookup_element_for_decl): New function extracted from...
687 (create_field_for_decl): Likewise.
688 (lookup_tramp_for_decl): ...here. Adjust.
689 (lookup_descr_for_decl): New function.
690 (convert_tramp_reference_op): Deal with descriptors.
691 (build_init_call_stmt): New function extracted from...
692 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
693 * defaults.h (FUNCTION_ALIGNMENT): Define.
694 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
695 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
696 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
697 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
698 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
699
700 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
701
702 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
703 constants in CONST_VECTORs.
704
705 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
706
707 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
708 register as destination of bmask.
709 (vector_init_bshuffle): Likewise.
710 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
711 (bmaskdi_vis): Enable only in 64-bit mode.
712
713 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
714
715 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
716 make LR a separately shrink-wrapped component unless savres_strategy
717 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
718 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
719 wrapping when not both {SAVE,REST}_INLINE_GPRS.
720
721 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
722
723 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
724 and keep looping on failure.
725
726 2016-10-14 David Malcolm <dmalcolm@redhat.com>
727
728 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
729 set.
730 (print_rtx_function): Update example in comment for...
731 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
732 non-virtual pseudos with a '%' sigil followed by the regno, offset
733 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
734 pseudo is dumped as "%0".
735
736 2016-10-14 Jakub Jelinek <jakub@redhat.com>
737
738 PR middle-end/77959
739 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
740 return a MEM.
741
742 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
743
744 * config/sparc/sparc-passes.def: New file.
745 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
746 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
747 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
748
749 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
750
751 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
752 loop peel to loops with exit test at the beginning.
753
754 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
755
756 PR rtl-optimization/68212
757 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
758 frequency when computing scale factor for peeled copies.
759 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
760 values for switch/peel blocks/edges.
761
762 2016-10-14 Pedro Alves <palves@redhat.com>
763
764 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
765
766 2016-10-14 Catherine Moore <clm@codesourcery.com>
767
768 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
769 micromips_globals to zero.
770
771 2016-10-14 Richard Biener <rguenther@suse.de>
772
773 PR tree-optimization/77979
774 * tree-vrp.c (compare_name_with_value): Handle released SSA names
775 in the equivalency sets.
776 (compare_names): Likewise.
777
778 2016-10-14 Martin Liska <mliska@suse.cz>
779
780 * builtins.h(target_char_cst_p): Declare the function.
781 * builtins.c (fold_builtin_memchr): Remove.
782 (target_char_cst_p): Move the function from gimple-fold.c.
783 (fold_builtin_3): Do not call the function.
784 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
785 (gimple_fold_builtin): Call the function.
786 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
787
788 2016-10-14 Martin Liska <mliska@suse.cz>
789
790 * builtins.c (fold_builtin_strcmp): Remove function.
791 (fold_builtin_strncmp): Likewise.
792 (fold_builtin_2): Remove call of the function.
793 (fold_builtin_3): Likewise.
794 * fold-const-call.c (fold_const_call): Add constant folding
795 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
796 * fold-const-call.h (build_cmp_result): Declare the function.
797 * gimple-fold.c (gimple_load_first_char): New function.
798 (gimple_fold_builtin_string_compare): Likewise.
799 (gimple_fold_builtin): Call the function.
800
801 2016-10-14 Nathan Sidwell <nathan@acm.org>
802
803 * gcov-io.c (gcov_open): Deconstify 'mode'.
804
805 2016-10-14 Martin Liska <mliska@suse.cz>
806
807 * fold-const.c (c_getstr): Support of properly \0-terminated
808 string constants. New argument is added.
809 * fold-const.h: New argument is added.
810
811 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
812
813 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
814 New function.
815 (aarch64_print_hint_for_core): Likewise.
816 (aarch64_print_hint_for_arch): Likewise.
817 (aarch64_validate_march): Use it. Fix indentation in type signature.
818 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
819 (aarch64_validate_mtune): Likewise.
820 (aarch64_handle_attr_arch): Likewise.
821 (aarch64_handle_attr_cpu): Likewise.
822 (aarch64_handle_attr_tune): Likewise.
823
824 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
825
826 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
827 and udivmod_optab.
828
829 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
830
831 * config/m68k/m68k.c (m68k_option_override): Check
832 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
833 instead of stack_limit_rtx.
834
835 2016-10-13 Jakub Jelinek <jakub@redhat.com>
836
837 * dwarf2out.c (gen_member_die): Handle inline static data member
838 definitions.
839
840 2016-10-13 Nathan Sidwell <nathan@acm.org>
841
842 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
843 gcov_var.mode. Remove unnecessary fstat.
844
845 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
846
847 PR bootstrap/77962
848 * function.c (thread_prologue_and_epilogue_insns): Call all
849 make_*logue_seq in the same order as traditional. Call them
850 all a second time if shrink_wrapped_separate.
851
852 2016-10-13 Marek Polacek <polacek@redhat.com>
853
854 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
855 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
856 use -Wno-error.
857
858 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
859
860 PR tree-optimization/77937
861 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
862 to infinite when we have a pointer with an increment of -1.
863
864 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
865
866 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
867 into ...
868 * memmodel.h: This file.
869 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
870 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
871 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
872 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
873 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
874 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
875 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
876 compare-elim.c, config/aarch64/aarch64-builtins.c,
877 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
878 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
879 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
880 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
881 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
882 config/darwin.c, config/epiphany/epiphany.c,
883 config/epiphany/mode-switch-use.c,
884 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
885 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
886 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
887 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
888 config/m68k/m68k.c, config/mcore/mcore.c,
889 config/microblaze/microblaze.c, config/mmix/mmix.c,
890 config/mn10300/mn10300.c, config/moxie/moxie.c,
891 config/msp430/msp430.c, config/nds32/nds32-cost.c,
892 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
893 config/nds32/nds32-memory-manipulation.c,
894 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
895 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
896 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
897 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
898 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
899 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
900 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
901 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
902 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
903 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
904 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
905 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
906 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
907 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
908 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
909 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
910 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
911 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
912 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
913 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
914 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
915 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
916 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
917 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
918 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
919 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
920 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
921 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
922 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
923 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
924 var-tracking.c, varasm.c: Include memmodel.h.
925 * genattrtab.c (write_header): Include memmodel.h in generated file.
926 * genautomata.c (main): Likewise.
927 * gengtype.c (open_base_files): Likewise.
928 * genopinit.c (main): Likewise.
929 * genconditions.c (write_header): Include memmodel.h earlier in
930 generated file.
931 * genemit.c (main): Likewise.
932 * genoutput.c (output_prologue): Likewise.
933 * genpeep.c (main): Likewise.
934 * genpreds.c (write_insn_preds_c): Likewise.
935 * genrecog.c (write_header): Likewise.
936 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
937
938 2016-10-13 David Malcolm <dmalcolm@redhat.com>
939
940 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
941 for new "compact" param of print_rtx_function. Check for "cinsn"
942 rather than "insn".
943 * print-rtl-function.c (flag_compact): New decl.
944 (print_rtx_function): Add param "compact" and use it to set
945 flag_compact, adding a description of the effect to the leading
946 comment, and updating the example output.
947 * print-rtl.c (flag_compact): New variable.
948 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
949 mode.
950 (print_rtx_operand_code_i): When printing source locations, wrap
951 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
952 (print_rtx_operand_code_r): Don't print regnos for hard regs and
953 virtuals in compact mode.
954 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
955 apart from in LABEL_REFs.
956 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
957 Don't print basic block ids in compact mode.
958 (print_rtx): In compact mode, prefix the code of insns with "c",
959 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
960 * print-rtl.h (print_rtx_function): Add "compact" param.
961
962 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
963
964 * arm.h (TARGET_VFP): Delete.
965 (TARGET_VFPD32): Remove references to TARGET_VFP.
966 (TARGET_VFP3, TARGET_VFP5): Likewise.
967 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
968 (TARGET_NEON_FP16): Likewise.
969 (TARGET_FMA): Likewise.
970 (TARGET_CRYPTO): Likewise.
971 (TARGET_NEON): Likewise.
972 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
973 (FUNCTION_ARG_REGNO_P): Likewise.
974 * arm.c (arm_option_check_internal): Likewise.
975 (arm_option_override): Likewise.
976 (use_return_insn): Likewise.
977 (arm_function_value_regno_p): Likewise.
978 (arm_apply_result_size): Likewise.
979 (use_vfp_abi): Likewise.
980 (arm_legitimate_address_outer_p): Likewise.
981 (thumb2_legitimate_address_p): Likewise.
982 (arm_legitimate_index_p): Likewise.
983 (thumb2_legitimate_index_p): Likewise.
984 (arm_legitimate_address): Likewise.
985 (arm_get_vfp_saved_size): Likewise.
986 (arm_emit_vfp_multi_reg_pop): Likewise.
987 (arm_get_frame_offsets): Likewise.
988 (arm_save_coproc_regs): Likewise.
989 (arm_hard_regno_mode_ok): Likewise.
990 (arm_expand_epilogue_apcs_frame): Likewise.
991 (arm_expand_epilogue): Likewise.
992 (arm_file_start): Likewise.
993 (arm_conditional_register_usage): Likewise.
994 (arm_validize_comparison): Use vfp_compare_operand directly.
995 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
996 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
997 unsupported usage.
998 (arm_atomic_assign_expand_fenv): Likewise.
999 * arm.md (divsf3): Likewise.
1000 (arm_negsi2): Likewise.
1001 (absdf2): Likewise.
1002 (arm_movdi): Likewise.
1003 (arm_movt): Likewise.
1004 (cbranchsf4): Change predicate to vfp_compare_operand.
1005 (cbranchdf4): Change predicate to vfp_compare_operand.
1006 (cstorehf4): Change predicate to vfp_compare_operand.
1007 (cstoresf4): Change predicate to vfp_compare_operand.
1008 (cstoredf4): Change predicate to vfp_compare_operand.
1009 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
1010 (movhi_insn_arch4, movhi_bytes): Likewise.
1011 * constraints.md (Dt): Likewise.
1012 (Dp): Likewise.
1013 * iterators.md (SDF): Likewise.
1014 * predicates.md (arm_float_compare_operand): Delete.
1015 (const_double_vcvt_power_of_two_reciprocal): Remove references to
1016 TARGET_VFP.
1017 (const_double_vcvt_power_of_two): Likewise.
1018 * thumb2.md thumb2_movsi_insn): Likewise.
1019 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
1020 (movhf_vfp): Likewise.
1021 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
1022 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
1023 (movsf_vfp, thumb2_movsf_vfp): Likewise.
1024 (movdf_vfp, thumb2_movdf_vfp): Likewise.
1025 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
1026 (subsf3_vfp, divsf3_vfp): Likewise.
1027 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
1028 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
1029 (mulsf3negsfsubsf_vfp): Likewise.
1030 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
1031 (floatunssisf2, sqrtsf2_vfp): Likewise.
1032 (movcc_vfp): Likewise.
1033 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
1034 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
1035 (push_multi_vfp): Likewise.
1036 (set_fpscr, get_fpscr): Likewise.
1037 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
1038
1039 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
1040
1041 * arm.h (TARGET_VFP): Unconditionally define to 1.
1042 (arm_fpu_desc): Remove 'model' field.
1043 (TARGET_FPU_MODEL): Delete.
1044 * arm.c (all_fpus): Don't initialize the model field.
1045 (arm_can_inline_p): Don't check the FPU model.
1046 * arm-fpus.def: Remove redundant model field from all FPU
1047 descriptions.
1048
1049 2016-10-13 Richard Biener <rguenther@suse.de>
1050
1051 PR middle-end/77826
1052 * genmatch.c (struct capture): Add value_match member.
1053 (commutate): Preserve value_match.
1054 (lower_opt_convert): Likewise.
1055 (lower_cond): Likewise.
1056 (replace_id): Likewise.
1057 (struct dt_operand): Add value_match member.
1058 (decision_tree::cmp_node): Compare it.
1059 (decision_tree::insert_operand): Honor it when finding and
1060 when appending a DT_MATCH.
1061 (dt_operand::gen_match_op): Generate a type check after
1062 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
1063 (parser::get_internal_capture_id): New helper.
1064 (parser::finish_match_operand): New function lowering @@<id>.
1065 (parser::parse_capture): Parse @@<id> as value-match.
1066 (parser::parse_expr): Use get_internal_capture_id.
1067 (parser::parse_simplify): Call finish_match_operand.
1068 (walk_captures): New helper.
1069 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
1070 of operand_equal_p.
1071 ((X /[ex] A) * A -> X): Likewise.
1072 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
1073 convert[12] and value-matching.
1074 ((A | B) & (A | C) -> A | (B & C)): Likewise.
1075 ((X | Y) | Y -> X | Y): Likewise.
1076 ((X ^ Y) ^ Y -> X): Likewise.
1077 (A - (A & B) -> ~B & A): Likewise.
1078 ((T)(P + A) - (T)P -> (T) A): Likewise.
1079 ((T)P - (T)(P + A) -> -(T) A): Likewise.
1080 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
1081 * doc/match-and-simplify.texi: Amend capture section.
1082
1083 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1084
1085 * config/arc/arc.md (umul_600): Remove predicated variant.
1086 (umul64_600): Likewise.
1087
1088 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1089
1090 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
1091
1092 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1093
1094 * tree-vect-loop.c (loop_niters_no_overflow): New func.
1095 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
1096 no-overflow information to vect_do_peeling_for_loop_bound and
1097 vect_gen_vector_loop_niters.
1098
1099 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1100
1101 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
1102 iterates 1 time.
1103
1104 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1105
1106 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
1107 adjust_vec automatically.
1108 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
1109 param exit_bb to guard_to.
1110 (slpeel_checking_verify_cfg_after_peeling):
1111 (set_prologue_iterations):
1112 (create_lcssa_for_virtual_phi): New func which is factored out from
1113 slpeel_tree_peel_loop_to_edge.
1114 (slpeel_tree_peel_loop_to_edge):
1115 (iv_phi_p): New func.
1116 (vect_can_advance_ivs_p): Call iv_phi_p.
1117 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
1118 new gimple stmts in basic block.
1119 (vect_gen_niters_for_prolog_loop): Rename to...
1120 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
1121 adjust implementation.
1122 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
1123 sizetype if necessary.
1124 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
1125 it to external function.
1126 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
1127 (vect_gen_vector_loop_niters_mult_vf): New.
1128 (slpeel_update_phi_nodes_for_loops): New.
1129 (slpeel_update_phi_nodes_for_guard1): Reimplement.
1130 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
1131 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
1132 * tree-vect-loop.c (vect_build_loop_niters): Move to file
1133 tree-vect-loop-manip.c
1134 (vect_generate_tmps_on_preheader): Delete.
1135 (vect_transform_loop): Rename vectorization_factor to vf. Call
1136 vect_do_peeling instead of vect_do_peeling-* functions.
1137 * tree-vectorizer.h (vect_do_peeling): New decl.
1138 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
1139 (vect_do_peeling_for_loop_bound): Delete.
1140 (vect_do_peeling_for_alignment): Delete.
1141
1142 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1143
1144 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
1145 duplicated loop after its preheader and after the original loop.
1146
1147 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1148
1149 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
1150 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
1151
1152 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1153
1154 * tree-vect-loop.c (vectorizable_live_operation): Support handling
1155 for live variable outside loop but not in lcssa form.
1156
1157 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1158
1159 * cfg.c (reset_original_copy_tables): New func.
1160 * cfg.h (reset_original_copy_tables): New decl.
1161
1162 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1163
1164 PR c/77946
1165 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
1166 public_flag.
1167 * varasm.c (default_binds_local_p_3): Formatting fix.
1168
1169 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1170
1171 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
1172 style issue.
1173 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1174 Remove useless code.
1175
1176 2016-10-13 Martin Liska <mliska@suse.cz>
1177
1178 PR tree-optimization/77943
1179 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1180 a different EH landing pads.
1181
1182 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1183
1184 PR target/77957
1185 * hooks.h (hook_tree_void_null): Declare.
1186 * hooks.c (hook_tree_void_null): New function.
1187 * langhooks.c (lhd_return_null_tree_v): Remove.
1188 * langhooks-def.h (lhd_return_null_tree_v): Remove.
1189 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
1190 set y to const0_rtx.
1191 * function.c (stack_protect_epilogue): Likewise.
1192 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
1193 if TARGET_THREAD_SSP_OFFSET is defined.
1194 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1195 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1196 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1197 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1198 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1199 (ix86_stack_protect_guard): New function.
1200
1201 2016-10-13 Richard Biener <rguenther@suse.de>
1202
1203 * dwarf2out.c (tree_add_const_value_attribute): Do not try
1204 rtl_for_decl_init during early phase.
1205 (gen_variable_die): Do not create locations during early phase.
1206 (gen_label_die): Likewise.
1207 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
1208 twice.
1209
1210 2016-10-12 Richard Biener <rguenther@suse.de>
1211
1212 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
1213 try_add_new_range and made to eturn new range.
1214 (evrp_dom_walker::before_dom_children): Push op1 value range before
1215 pushing op0 value range.
1216
1217 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1218
1219 PR tree-optimization/77937
1220 * gimple-ssa-strength-reduction.c (analyze_increments): Use
1221 POINTER_TYPE_P on the candidate type to determine whether
1222 candidates in this chain require pointer arithmetic.
1223
1224 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
1225
1226 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
1227 correction if the type is smaller than a word.
1228 (visium_select_cc_mode): Add ... fall through ... comment.
1229
1230 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1231
1232 * config/rs6000/rs6000.c (machine_function): Add new fields
1233 gpr_is_wrapped_separately and lr_is_wrapped_separately.
1234 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1235 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1236 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1237 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1238 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1239 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1240 (rs6000_get_separate_components): New function.
1241 (rs6000_components_for_bb): New function.
1242 (rs6000_disqualify_components): New function.
1243 (rs6000_emit_prologue_components): New function.
1244 (rs6000_emit_epilogue_components): New function.
1245 (rs6000_set_handled_components): New function.
1246 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
1247 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
1248 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
1249 (rs6000_emit_epilogue): Don't emit GPR restores if
1250 gpr_is_wrapped_separately for that register. Don't make a
1251 REG_CFA_RESTORE note for registers we did not restore, either.
1252
1253 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1254
1255 * function.c (thread_prologue_and_epilogue_insns): Call
1256 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
1257 if it has possibly changed. Compute the split_prologue_seq and
1258 epilogue_seq later, too.
1259 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
1260 (dump_components): New function.
1261 (struct sw): New struct.
1262 (SW): New function.
1263 (init_separate_shrink_wrap): New function.
1264 (fini_separate_shrink_wrap): New function.
1265 (place_prologue_for_one_component): New function.
1266 (spread_components): New function.
1267 (disqualify_problematic_components): New function.
1268 (emit_common_heads_for_components): New function.
1269 (emit_common_tails_for_components): New function.
1270 (insert_prologue_epilogue_for_components): New function.
1271 (try_shrink_wrapping_separate): New function.
1272 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
1273
1274 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1275
1276 * regrename.c (build_def_use): Invalidate chains that have a
1277 REG_CFA_RESTORE on some instruction.
1278
1279 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1280
1281 * dce.c (delete_unmarked_insns): Don't delete instructions with
1282 a REG_CFA_RESTORE note.
1283
1284 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1285
1286 * common.opt (-fshrink-wrap-separate): New flag.
1287 * doc/invoke.texi: Document it.
1288 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
1289 * doc/tm.texi: Regenerate.
1290 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
1291 * target.def (shrink_wrap): New hook vector.
1292 (get_separate_components, components_for_bb, disqualify_components,
1293 emit_prologue_components, emit_epilogue_components,
1294 set_handled_components): New hooks.
1295
1296 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1297
1298 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
1299 vector return by reference only if -Wpsabi.
1300 (rs6000_pass_by_reference): Similarly, for argument passing.
1301
1302 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1303
1304 * function-tests.c: Include "print-rtl.h".
1305 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
1306 function, and verify what is dumped.
1307 * print-rtl-function.c (print_edge): New function.
1308 (begin_any_block): New function.
1309 (end_any_block): New function.
1310 (can_have_basic_block_p): New function.
1311 (print_rtx_function): Track the basic blocks of insns in the
1312 chain, wrapping those that are within blocks within "(block)"
1313 directives. Remove the "(cfg)" directive.
1314
1315 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1316
1317 * selftest.c (selftest::read_file): New function.
1318 (selftest::test_read_file): New function.
1319 (selftest::selftest_c_tests): Call test_read_file.
1320 * selftest.h (selftest::read_file): New decl.
1321
1322 2016-10-12 Richard Biener <rguenther@suse.de>
1323
1324 PR debug/77947
1325 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
1326 function context.
1327
1328 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
1329
1330 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
1331
1332 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
1333 dwarf2out_assembly_start.
1334
1335 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
1336
1337 * Makefile.in (SELFTEST_FLAGS): New variable.
1338 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
1339
1340 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
1341 early_finish hook.
1342
1343 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
1344
1345 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
1346 dumped in RTL dumps.
1347
1348 2016-10-12 Martin Liska <mliska@suse.cz>
1349
1350 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
1351 (gimple_fold_builtin_memory_op): Use the function.
1352 (gimple_fold_builtin_strchr): Likewise.
1353 (gimple_fold_builtin_strcat): Likewise.
1354 (gimple_build): Likewise.
1355
1356 2016-10-12 Nathan Sidwell <nathan@acm.org>
1357
1358 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
1359
1360 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1361
1362 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
1363 equivalent 32-bit constant (modulo 2**32) when that yields
1364 smaller instructions.
1365 (size_of_int_loc_descriptor): Update accordingly.
1366
1367 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1368
1369 * dwarf2out.c (dwarf2out_early_global_decl): For nested
1370 functions, call dwarf2out_decl on the parent function first.
1371
1372 2016-10-12 Richard Biener <rguenther@suse.de>
1373
1374 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
1375 on the conversion.
1376
1377 2016-10-12 Richard Biener <rguenther@suse.de>
1378
1379 * tree-ssa-propagate.c
1380 (substitute_and_fold_dom_walker::before_dom_children): Do not
1381 ignore ASSERT_EXPRs but only preserve them.
1382 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
1383 that have been propagated into.
1384 (vrp_finalize): Enable DCE for substitute_and_fold.
1385
1386 2016-10-12 Richard Biener <rguenther@suse.de>
1387
1388 PR tree-optimization/77920
1389 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
1390 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
1391 (simplify_abs_using_ranges): Likewise.
1392 (simplify_conversion_using_ranges): Likewise.
1393 (simplify_stmt_using_ranges): Adjust.
1394
1395 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1396
1397 PR tree-optimization/77929
1398 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
1399 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
1400
1401 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1402
1403 PR target/77934
1404 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
1405 needs a base register for arg 1.
1406
1407 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1408
1409 * common.opt (Wimplicit-fallthrough) Turn into alias to
1410 -Wimplicit-fallthrough=3. Remove EnabledBy.
1411 (Wimplicit-fallthrough=): New option.
1412 * gimplify.c (warn_implicit_fallthrough_r): Use
1413 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
1414 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
1415 to -Wimplicit-fallthrough=3.
1416 (-Wimplicit-fallthrough=): Document.
1417
1418 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1419
1420 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
1421 and GEU in DImode if TARGET_SUBXC.
1422 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
1423 (seqdi<W:mode>_zero_subxc): Delete.
1424 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
1425 (neg_seqdi<W:mode>_zero_vis3): Delete.
1426 (plus_seqdi<W:mode>_zero): Likewise.
1427 (minus_seqdi<W:mode>_zero): Likewise.
1428 (plus_plus_sltu<W:mode>): Accept only register.
1429 (addx<W:mode>): Likewise.
1430 (plus_sltu<W:mode>_vis3): Likewise.
1431 (plus_plus_sltu<W:mode>_vis3): Likewise.
1432 (neg_sgeu<W:mode>_vis3): Delete.
1433 (minus_sgeu<W:mode>_vis3): Likewise.
1434 (addxc<W:mode>): Accept only registers.
1435 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1436 (minus_neg_sltu<W:mode>_subxc): Accept only register.
1437 (neg_plus_sltu<W:mode>_subxc): Likewise.
1438 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1439 (minus_minus_sltu<W:mode>_subxc): Accept only register.
1440 (sgeu<W:mode>_insn_subxc): Delete.
1441 (plus_sgeu<W:mode>_subxc): Likewise.
1442 (subxc<W:mode>): Accept only register.
1443 (scc splitter): Split always GEU again.
1444
1445 2016-10-11 Jeff Law <law@redhat.com>
1446
1447 PR tree-optimization/77424
1448 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
1449 dead conditionals. Assert that all e->aux fields are NULL.
1450
1451 2016-10-11 David Malcolm <dmalcolm@redhat.com>
1452
1453 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
1454 operand-printing "switch" statement into...
1455 (print_rtx_operand_code_0): ...this new function, ...
1456 (print_rtx_operand_code_e): ...this new function, ...
1457 (print_rtx_operand_codes_E_and_V): ...this new function, ...
1458 (print_rtx_operand_code_i): ...this new function, ...
1459 (print_rtx_operand_code_r): ...this new function, ...
1460 (print_rtx_operand_code_u): ...this new function, ...
1461 (print_rtx_operand): ...and this new function.
1462
1463 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
1464
1465 * config/alpha/alpha-passes.def: New file.
1466 * config/alpha/t-alpha: New file.
1467 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
1468 (make_pass_handle_trap_shadows): New prototype.
1469 (make_pass_align_insns): Ditto.
1470 * config/alpha/alpha.c (alpha_option_override): Don't register
1471 passes here.
1472 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
1473
1474 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1475
1476 PR target/77924
1477 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
1478 distinct __ibm128 IBM extended double type if long doubles are
1479 128-bits and the default format for long double is IEEE 128-bit.
1480
1481 2016-10-11 Richard Biener <rguenther@suse.de>
1482
1483 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
1484 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
1485 (verify_die): New function.
1486 (dwarf2out_finish): Call it.
1487 (output_line_info): Handle case of -gsplit-dwarf without
1488 DWARF2_ASM_LINE_DEBUG_INFO.
1489
1490 2016-10-11 Richard Biener <rguenther@suse.de>
1491
1492 PR debug/77931
1493 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
1494 sub-chains of BLOCK_VARS and gimple_bind_vars.
1495
1496 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1497
1498 * config/i386/znver1.md : Fix imov/imovx load type reservations.
1499
1500 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1501
1502 * config/sparc/sparc.opt (msubxc): New option.
1503 * doc/invoke.texi (SPARC options): Document it and tidy up.
1504 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
1505 * doc/tm.texi: Regenerate.
1506 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
1507 (CCNZ): ...this.
1508 (CCX_NOOV): Rename into...
1509 (CCXNZ): ...this.
1510 (CCC): New.
1511 (CCXC): Likewise.
1512 * config/sparc/predicates.m (fcc_register_operand): Simplify.
1513 (fcc0_register_operand): Likewise.
1514 (icc_register_operand): New.
1515 (icc_or_fcc_register_operand): Simplify.
1516 (nz_comparison_operator): New.
1517 (c_comparison_operator): Likewise.
1518 (noov_compare_operator): Rename into...
1519 (icc_comparison_operator): ...this. Use above predicates.
1520 (noov_compare64_operator): Rename into...
1521 (v9_comparison_operator): ...this and tidy up.
1522 (fcc_comparison_operator): New.
1523 (icc_or_fcc_comparison_operator): Likewise.
1524 (v9_register_compare_operator): Rename info...
1525 (v9_register_comparison_operator): ...this.
1526 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1527 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
1528 for Niagara-7.
1529 (sparc_fixed_condition_code_regs): New function.
1530 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
1531 renaming and add support for CCC/CCXC.
1532 (output_cbranch): Likewise.
1533 (sparc_print_operand): Likewise.
1534 (gen_v9_scc): Remove obsolete assertion.
1535 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
1536 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
1537 (output_cbcond): Remove bogus handling of CC modes.
1538 (sparc_register_move_cost): Return 100 for NO_REGS.
1539 * config/sparc/sparc.md (W): New mode iterator.
1540 (length): Adjust for noov_compare64_operator renaming.
1541 (cmpsi_sne): New instruction.
1542 (cmpdi_sne): Likewise.
1543 (seqdi_special): Delete.
1544 (seqdi_special): Likewise.
1545 (snesi<P:mode>_special): Likewise.
1546 (snedi_special): Likewise.
1547 (snedi_special_vis3): Likewise.
1548 (snesi patterns): Use W iterator.
1549 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
1550 (sltu patterns): Likewise.
1551 (sgeu patterns): Likewise.
1552 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
1553 (normal_branch): Use icc_comparison_operator predicate.
1554 (inverted_branch): Likewise.
1555 (cbcond_sp32): Use comparison_operator predicate.
1556 (cbcond_sp64): Likewise.
1557 (normal_int_branch_sp64): Adjust for renaming
1558 (inverted_int_branch_sp64): Likewise.
1559 (mov<I:mode>_cc_reg_sp64): Likewise.
1560 (movsf_cc_reg_sp6): Likewise.
1561 (movdf_cc_reg_sp64): Likewise.
1562 (movtf_cc_reg_hq_sp64): Likewise.
1563 (movtf_cc_reg_sp64): Likewise.
1564 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
1565 (movsf_cc_v9): Likewise.
1566 (movdf_cc_v9): Likewise.
1567 (movtf_cc_hq_v9): Likewise.
1568 (movtf_cc_v9): Likewise.
1569 (adddi3): Call gen_adddi3_sp32.
1570 (adddi3_insn_sp32): Rename to...
1571 (adddi3_sp32): ...this. Accept only register_operand as operand #1
1572 and use CCCmode for the carry.
1573 (addx_extend_sp32): Use CCCmode for the carry.
1574 (addx_extend_sp64): Delete.
1575 (adddi3_extend_sp32): Use CCCmode for the carry.
1576 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
1577 (subdi3): Call gen_subdi3_sp32.
1578 (subdi3_insn_sp32): Rename to...
1579 (subdi3_sp32): ...this and use CCmode for the carry.
1580 (subx_extend_sp32): Use CCCmode for the carry.
1581 (subx_extend_sp64): Delete.
1582 (subdi3_extend_sp32): Use CCmode for the carry.
1583 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
1584 (negdi3): Call gen_negdi3_sp32.
1585 (negdi3_sp32): Use CCCmode for the carry.
1586 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
1587 (cmp_nz_ashift_1): Use CCNZ mode.
1588 (cmp_nz_set_ashift_1): Likewise.
1589 (ctrapsi4): Use comparison_operator predicate.
1590 (ctrapdi4): Likewise.
1591 (trapsi_insn): Use icc_comparison_operator predicate.
1592 (trapdi_insn): Likewise.
1593 (edge8 patterns): Use CCNZmode.
1594 (edge16 patterns): Likewise.
1595 (edge32 patterns): Likewise.
1596
1597 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1598
1599 * config/visium/visium-modes.def (CC_NOOV): Rename into...
1600 (CCNZ): ...this.
1601 (CC_BTST): Rename into...
1602 (CCC): ...this.
1603 * config/visium/predicates.md (real_add_operand): New.
1604 (visium_btst_operator): Rename into...
1605 (visium_equality_comparison_operator): ...this.
1606 (visium_noov_operator): Rename into...
1607 (visium_nz_comparison_operator): ...this.
1608 (visium_c_comparison_operator): New.
1609 (visium_branch_operator): Adjust and deal with all CC modes.
1610 * config/visium/visium.c (visium_adjust_cost): Adjust.
1611 (visium_split_double_add): Use the *_set_carry patterns.
1612 (visium_select_cc_mode): Add support for CCC mode and adjust.
1613 (output_cbranch): Adjust and use the carry-based operators for
1614 floating-point comparisons.
1615 * config/visium/visium.md (flags_subst_arith): Adjust.
1616 (addsi3_insn_set_carry): New instruction.
1617 (subsi3_insn_set_carry): Likewise.
1618 (negsi2_insn_set_carry): Likewise.
1619 (btst): Adjust.
1620 (cmp<mode>_sne): Likewise.
1621 (cbranch<mode>4): Use ordered_comparison_operator.
1622 (cbranch<mode>4_insn): Likewise.
1623 (cbranchsi4_btst_insn): Adjust.
1624
1625 2016-10-11 Tom de Vries <tom@codesourcery.com>
1626
1627 PR middle-end/77558
1628 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1629 special-casing.
1630
1631 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1632
1633 * tree.h (build_complex_type): Add second parameter with default.
1634 * tree.c (build_complex_type): Add NAMED second parameter and adjust
1635 recursive call. Create a TYPE_DECL only if NAMED is true.
1636 (build_common_tree_nodes): Pass true in calls to build_complex_type.
1637
1638 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
1639
1640 New avr-passes.def to register AVR specific passes.
1641
1642 * config/avr/avr-passes.def: New file.
1643 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1644 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1645 (make_avr_pass_recompute_note): New proto.
1646 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1647 (avr_pass_recompute_notes): Use anonymous namespace.
1648 (avr_register_passes): Remove function...
1649 (avr_option_override): ...and its call.
1650
1651 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
1652
1653 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1654 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1655 PTF_AVOID_BRANCHLIKELY_SPEED for others.
1656 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1657 flags.
1658 * config/mips/mips.c (mips_option_override): Enable the branch
1659 likely depending on the tune flags and optimization level.
1660 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1661 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1662 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1663 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1664
1665 2016-10-11 Richard Biener <rguenther@suse.de>
1666
1667 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1668 (output_function): Properly stream the whole block tree.
1669 * lto-streamer-in.c (input_function): Likewise.
1670
1671 2016-10-11 Marek Polacek <polacek@redhat.com>
1672
1673 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1674
1675 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1676
1677 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1678 (evrp_dom_walker::before_dom_children): Infer and push new value
1679 ranges for x in y < x.
1680
1681 2016-10-10 Joseph Myers <joseph@codesourcery.com>
1682
1683 PR target/77586
1684 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1685 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1686 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1687 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1688 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1689 (IA64_NO_LIBGCC_TFMODE): Likewise.
1690
1691 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1692
1693 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1694 copying.
1695
1696 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
1697
1698 * config.gcc: Add aarch64-*-freebsd* support.
1699 * config.host: Likewise.
1700 * config/aarch64/aarch64-freebsd.h: New file.
1701 * config/aarch64/t-aarch64-freebsd: Ditto.
1702
1703 2016-10-10 Jeff Law <law@redhat.com>
1704
1705 PR tree-optimization/71947
1706 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1707 B with A within a single statement.
1708
1709 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1710
1711 PR tree-optimization/77824
1712 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1713 zero cost for copies.
1714 (find_candidates_dom_walker::before_dom_children): Replace
1715 MODIFY_EXPR with SSA_NAME.
1716 (replace_mult_candidate): Likewise.
1717 (replace_profitable_candidates): Likewise.
1718
1719 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1720
1721 * config/s390/s390.h: Wrap more macros args in brackets and fix
1722
1723 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
1724
1725 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1726
1727 2016-10-10 Andreas Schwab <schwab@suse.de>
1728
1729 PR target/77738
1730 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1731 pseudo is not DImode.
1732
1733 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
1734
1735 * common/config/arc/arc-common.c (arc_option_optimization_table):
1736 Remove compact casesi option.
1737 * config/arc/arc.c (arc_override_options): Use compact casesi
1738 option only for pre-ARCv2 cores.
1739 * doc/invoke.texi (mcompact-casesi): Update text.
1740
1741 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1742
1743 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1744 Add macro to say we can efficiently handle overlapping unaligned
1745 loads.
1746 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1747 poor code for processors older than p8.
1748
1749 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
1750
1751 * gen-pass-instances.awk: Remove GNUism.
1752
1753 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1754
1755 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1756 NULL of (*ipcp_transformations)][node->uid].
1757
1758 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
1759
1760 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1761 (MALLOC_ABI_ALIGNMENT): Define.
1762
1763 2016-10-09 Jakub Jelinek <jakub@redhat.com>
1764
1765 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1766 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1767 VAR_OR_FUNCTION_DECL_P macros.
1768 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1769 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1770 chkp_find_bounds_1): Likewise.
1771 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1772 * hsa-gen.c (get_symbol_for_decl): Likewise.
1773 * cgraphunit.c (check_global_declaration, analyze_functions,
1774 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1775 Likewise.
1776 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1777 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1778 Likewise.
1779 * tree.c (set_decl_section_name, copy_node_stat,
1780 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1781 merge_dllimport_decl_attributes, handle_dll_attribute,
1782 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1783 verify_type): Likewise.
1784 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1785 find_explicit_erroneous_behavior): Likewise.
1786 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1787 * ipa.c (process_references): Likewise.
1788 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1789 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1790 notice_global_symbol, assemble_variable, mark_decl_referenced,
1791 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1792 make_decl_one_only, default_section_type_flags,
1793 categorize_decl_for_section, default_encode_section_info): Likewise.
1794 * trans-mem.c (requires_barrier): Likewise.
1795 * gimple-expr.c (mark_addressable): Likewise.
1796 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1797 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1798 expand_debug_expr): Likewise.
1799 * tree-dump.c (dequeue_and_dump): Likewise.
1800 * ubsan.c (instrument_bool_enum_load): Likewise.
1801 * tree-pretty-print.c (print_declaration): Likewise.
1802 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1803 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1804 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1805 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1806 pass_build_ssa::execute): Likewise.
1807 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1808 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1809 Likewise.
1810 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1811 Likewise.
1812 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1813 can_be_nonlocal, remap_decls, copy_debug_stmt,
1814 initialize_inlined_parameters, add_local_variables,
1815 reset_debug_binding, replace_locals_op): Likewise.
1816 * dse.c (can_escape): Likewise.
1817 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1818 Likewise.
1819 * tree-diagnostic.c (default_tree_printer): Likewise.
1820 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1821 unpack_ts_decl_with_vis_value_fields,
1822 lto_input_ts_decl_common_tree_pointers): Likewise.
1823 * builtins.c (builtin_save_expr, fold_builtin_expect,
1824 readonly_data_expr): Likewise.
1825 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1826 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1827 Likewise.
1828 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1829 * gimplify.c (force_constant_size, gimplify_bind_expr,
1830 gimplify_decl_expr, gimplify_var_or_parm_decl,
1831 gimplify_compound_lval, gimplify_init_constructor,
1832 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1833 gimplify_type_sizes): Likewise.
1834 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1835 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1836 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1837 remove_unused_locals): Likewise.
1838 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1839 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1840 * function.c (instantiate_expr, instantiate_decls_1,
1841 setjmp_vars_warning, add_local_decl): Likewise.
1842 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1843 Likewise.
1844 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1845 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1846 optimize_va_list_gpr_fpr_size): Likewise.
1847 * tree-nrv.c (pass_nrv::execute): Likewise.
1848 * tsan.c (instrument_expr): Likewise.
1849 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1850 * vtable-verify.c (verify_bb_vtables): Likewise.
1851 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1852 get_ref_base_and_extent): Likewise.
1853 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1854 Likewise.
1855 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1856 analyze_all_variable_accesses): Likewise.
1857 * tree-nested.c (get_nonlocal_debug_decl,
1858 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1859 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1860 get_local_debug_decl, convert_local_omp_clauses,
1861 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1862 Likewise.
1863 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1864 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1865 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1866 dbxout_symbol, dbxout_common_check): Likewise.
1867 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1868 string_constant): Likewise.
1869 * hsa.c (hsa_get_declaration_name): Likewise.
1870 * passes.c (rest_of_decl_compilation): Likewise.
1871 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1872 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1873 pack_ts_decl_with_vis_value_fields,
1874 write_ts_decl_common_tree_pointers): Likewise.
1875 * stor-layout.c (place_field): Likewise.
1876 * symtab.c (symtab_node::maybe_create_reference,
1877 symtab_node::verify_base, symtab_node::make_decl_local,
1878 symtab_node::copy_visibility_from,
1879 symtab_node::can_increase_alignment_p): Likewise.
1880 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1881 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1882 fortran_common, add_location_or_const_value_attribute,
1883 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1884 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1885 optimize_one_addr_into_implicit_ptr,
1886 optimize_location_into_implicit_ptr): Likewise.
1887 * gimple-low.c (record_vars_into): Likewise.
1888 * ipa-visibility.c (update_vtable_references): Likewise.
1889 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1890 Likewise.
1891 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1892 DFS::DFS_write_tree_body, write_symbol): Likewise.
1893 * langhooks.c (lhd_warn_unused_global_decl,
1894 lhd_set_decl_assembler_name): Likewise.
1895 * attribs.c (decl_attributes): Likewise.
1896 * except.c (output_ttype): Likewise.
1897 * varpool.c (varpool_node::get_create, ctor_for_folding,
1898 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1899 * fold-const.c (fold_unary_loc): Likewise.
1900 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1901 ipa_find_agg_cst_from_init): Likewise.
1902 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1903 expand_omp_target, lower_omp_regimplify_p,
1904 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1905 find_link_var_op): Likewise.
1906 * tree-chrec.c (chrec_contains_symbols): Likewise.
1907 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1908 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1909 execute_fixup_cfg): Likewise.
1910
1911 PR tree-optimization/77901
1912 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1913 if ranges[i].exp is SSA_NAME when looking for >= and only when
1914 ranges[i].exp is NULL or SSA_NAME when looking for the other
1915 comparison.
1916
1917 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1918
1919 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1920 (ipcp_param_lattices): Remove field alignment.
1921 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1922 (set_all_contains_variable): Remove call to
1923 ipcp_alignment_lattice::set_to_bottom.
1924 (initialize_node_lattices): Likewise.
1925 (propagate_alignment_accross_jump_function): Remove.
1926 (propagate_constants_accross_call): Remove call to
1927 propagate_alignment_accross_jump_function.
1928 (ipcp_store_alignment_results): Remove.
1929 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1930 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1931 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1932 pretty-printing of alignment jump function.
1933 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1934 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1935 alignments and remove computing ipa_alignment jump function.
1936 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1937 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1938 (ipa_read_jump_function): Remove reading of ipa_alignment.
1939 (write_ipcp_transformation_info): Remove streaming for alignment
1940 propagation summary.
1941 (read_ipcp_transformation_info): Remove reading of alignment
1942 propagation summary.
1943 (ipcp_update_alignments): Remove.
1944 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1945 type.
1946 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1947 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1948 * ipa-prop.h (ipa_alignment): Remove.
1949 (ipa_jump_func): Remove field alignment.
1950 (ipcp_transformation_summary): Remove field alignments.
1951 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1952 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1953 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1954
1955 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1956
1957 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1958
1959 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1960 change.
1961 (visium_expand_fp_cstore): Likewise.
1962
1963 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1964
1965 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1966 * diagnostic.c (warning_at_rich_loc_n): New function.
1967 (diagnostic_n_impl_richloc): Likewise.
1968 (diagnostic_n_impl): Move most of the function to
1969 diagnostic_n_impl_richloc and call it.
1970
1971 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1972
1973 * gen-pass-instances.awk: Rewritten.
1974 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1975 $(PASSES_EXTRA) after passes.def to the script.
1976 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1977 * config/i386/i386-passes.def: New file.
1978 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1979 make_pass_stv): Declare.
1980 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1981 false.
1982 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1983 or !TARGET_64BIT.
1984 (pass_stv::clone, pass_stv::set_pass_param): New methods.
1985 (pass_stv::timode_p): New non-static data member.
1986 (ix86_option_override): Don't register passes here.
1987
1988 * doc/invoke.texi: Document accepting Else, fallthrough.
1989
1990 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1991 style changes.
1992
1993 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1994 FALLTHRU comment styles.
1995
1996 2016-10-07 Andrew Pinski <apinski@cavium.com>
1997
1998 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1999 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
2000 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
2001 Likewise.
2002 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
2003 Likewise.
2004 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
2005 Likewise.
2006 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
2007 (AARCH64_ARCH): Likewise.
2008 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
2009 Likewise.
2010 (AARCH64_CORE): Likewise.
2011 (AARCH64_ARCH): Likewise.
2012 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
2013 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
2014 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
2015 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
2016 (AARCH64_ARCH): Likewise.
2017 (AARCH64_CORE): Likewise.
2018 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
2019 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
2020 (AARCH64_CORE): Likewise.
2021 (AARCH64_ARCH): Likewise.
2022
2023 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2024
2025 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
2026 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
2027 floating point type infrastructre, and -mfloat128 that enables the
2028 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
2029 if -mfloat128-type. Define __ibm128 to be long double by default.
2030 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
2031 the IEEE 128-bit floating point type infrastructure should
2032 automatically be enabled.
2033 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
2034 instead of -mfloat128 to enable KFmode.
2035 (rs6000_option_override_internal): Split the option -mfloat128
2036 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
2037 systems, automatically set -mfloat128-type, but don't enable it on
2038 other operating systems. Move setting the long double size and
2039 IEEE quad support before the IEEE 128-bit floating point changes.
2040 (rs6000_init_builtins): Do not create a unique type for __ibm128
2041 if long double is IBM extended double, instead rely on __ibm128
2042 being defined as 'long double'. If -mfloat128-type and not
2043 -mfloat128, create the KFmode type with an undocumented __ieee128
2044 keyword.
2045 (rs6000_init_libfuncs): Use -mfloat128-type instead of
2046 -mfloat128 for tests about the types, but keep tests for
2047 -mfloat128 to enable the keyword support.
2048 (rs6000_complex_function_value): Likewise.
2049 (rs6000_scalar_mode_supported_p): Likewise.
2050 (rs6000_floatn_mode): Likewise.
2051 (rs6000_c_mode_for_suffix): Likewise.
2052 (rs6000_opt_masks): Add -mfloat128-type.
2053 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
2054 -mfloat128-type being split from -mfloat128. Add
2055 -mfloat128-hardware, which was missing.
2056 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
2057 -mfloat128 and -mfloat128-type:
2058 (-mfloat128-type): Likewise.
2059 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
2060 that 64-bit Linux systems with enable -mfloat128-type by default
2061 on VSX systems.
2062 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
2063 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
2064 -mfloat128-type instead of -mfloat128.
2065 (FLOAT128_2REG_P): Likewise.
2066 (MASK_FLOAT128_TYPE): Likewise.
2067 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2068 (RS6000_BTM_FLOAT128): Likewise.
2069 (TARGET_FLOAT128): Poison old identifiers.
2070 (OPTION_MASK_FLOAT128): Likewise.
2071 (MASK_FLOAT128): Likewise.
2072 * config/rs6000/rs6000.md (FP): Likewise.
2073 (FLOAT128): Likewise.
2074 (fix_trunc<mode>di2): Likewise.
2075 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2076 (floatdi<mode>2): Likewise.
2077 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
2078 (neg<mode>2, FLOAT128 iterator): Likewise.
2079 (abs<mode>2, FLOAT128 iterator): Likewise.
2080 (ieee_128bit_negative_zero): Likewise.
2081 (ieee_128bit_vsx_neg<mode>2): Likewise.
2082 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2083 (ieee_128bit_vsx_abs<mode>2): Likewise.
2084 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2085 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2086 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2087 (extendiftf2): Likewise.
2088 (extendifkf2): Likewise.
2089 (extendtfkf2): Likewise.
2090 (trunciftf2): Likewise.
2091 (truncifkf2): Likewise.
2092 (trunckftf2): Likewise.
2093 (trunctfif2): Likewise.
2094 (extendkftf2): Likewise.
2095 (trunctfkf2): Likewise.
2096
2097 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2098
2099 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
2100 before merging in bytes to pass down to real_from_target.
2101
2102 2016-10-07 Richard Biener <rguenther@suse.de>
2103
2104 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
2105 required hack.
2106 (substitute_and_fold_dom_walker::before_dom_children):
2107 Substitute and fold before pass specific folding to avoid
2108 feeding that with SSA names that will be later released.
2109 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
2110 introduced by folding and visited by evaluate_stmt called during
2111 ccp_fold_stmt.
2112 (likely_value): Likewise.
2113 (evaluate_stmt): Likewise.
2114 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
2115 (simplify_div_or_mod_using_ranges): Likewise.
2116 (simplify_min_or_max_using_ranges): Likewise.
2117 (simplify_abs_using_ranges): Likewise.
2118 (simplify_conversion_using_ranges): Likewise.
2119 (simplify_float_conversion_using_ranges): Likewise.
2120 (simplify_stmt_using_ranges): Likewise.
2121
2122 2016-10-07 Marek Polacek <polacek@redhat.com>
2123
2124 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
2125 FALLTHROUGH_LABEL_P here...
2126 (warn_implicit_fallthrough_r): ...not here.
2127
2128 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
2129
2130 PR tree-optimization/77880
2131 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
2132 necessary.
2133
2134 2016-10-07 Marek Polacek <polacek@redhat.com>
2135
2136 PR c++/77803
2137 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
2138
2139 2016-10-07 Richard Biener <rguenther@suse.de>
2140
2141 * bitmap.h: Document constraints on bitmap modification while
2142 iterating over it.
2143
2144 2016-10-07 Richard Biener <rguenther@suse.de>
2145
2146 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
2147 * bitmap.h (bmp_iter_set): When advancing to the next element
2148 check that we didn't remove the current one.
2149 (bmp_iter_and): Likewise.
2150 (bmp_iter_and_compl): Likewise.
2151 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
2152 we currently iterate on but keep a one-level queue.
2153 * sched-deps.c (remove_from_deps): Do not clear current bit
2154 but keep a one-level queue.
2155
2156 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2157
2158 PR tree-optimization/77664
2159 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
2160 for the other ranges.
2161 (optimize_range_tests_diff): Fix up formatting.
2162 (optimize_range_tests_var_bound): New function.
2163 (optimize_range_tests): Use it.
2164
2165 2016-10-07 Martin Liska <mliska@suse.cz>
2166
2167 * coverage.c (build_gcov_exit_decl): Fix priority what
2168 should be really 99.
2169
2170 2016-10-07 Richard Biener <rguenther@suse.de>
2171
2172 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
2173 vars in gimple_bind_vars but not in BLOCK_VARS.
2174
2175 2016-10-07 Richard Biener <rguenther@suse.de>
2176
2177 PR tree-optimization/77879
2178 * tree-ssa-structalias.c (handle_const_call): Properly handle
2179 NRV return slots.
2180 (handle_pure_call): Likewise.
2181
2182 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2183
2184 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
2185 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
2186 possible overflow.
2187
2188 2016-10-06 Andrew Pinski <apinski@cavium.com>
2189
2190 * config/aarch64/aarch64-cores.def: Add a comment before each
2191 set of cores.
2192
2193 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2194
2195 PR tree-optimization/77862
2196 * tree-vrp.c (add_equivalence): Use get_value_range so that
2197 num_vr_values is checked before accessing vr_values.
2198
2199 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2200
2201 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2202 POINTER_TYPE_P.
2203
2204 2016-10-05 Jeff Law <law@redhat.com>
2205
2206 PR tree-optimization/71661
2207 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
2208 removal of a forwarder exposes a new natural loop.
2209
2210 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
2211
2212 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
2213 Introduce ssesuffix variable.
2214 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2215 (*<code><mode>3): Ditto.
2216
2217 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
2218
2219 * postreload.c (reload_cse_simplify): Skip also USE when detecting
2220 noop move.
2221
2222 2016-10-06 Richard Biener <rguenther@suse.de>
2223
2224 PR tree-optimization/77855
2225 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2226 instead of removing the current item while iterating over the set
2227 which is not safe.
2228
2229 2016-10-06 James Clarke <jrtc27@jrtc27.com>
2230 Eric Botcazou <ebotcazou@adacore.com>
2231
2232 PR target/77759
2233 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
2234 (classify_registers): Don't set it
2235 (function_arg_slotno): Don't initialize and test it. Tidy up.
2236
2237 2016-10-06 Richard Biener <rguenther@suse.de>
2238
2239 PR tree-optimization/77839
2240 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
2241 lattice transition.
2242
2243 2016-10-06 Martin Liska <mliska@suse.cz>
2244
2245 * gcc.c: Set -fprofile-update=atomic when profiling is
2246 enabled and -pthread is set. Warn when one combines
2247 -pthread and -fprofile-update=single for an app using
2248 profiling code.
2249
2250 2016-10-06 Martin Liska <mliska@suse.cz>
2251
2252 PR bootstrap/77788
2253 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
2254 * gimple-ssa-strength-reduction.c (slsr_process_cast):
2255 Initialize a pointer to NULL.
2256 (slsr_process_copy): Likewise.
2257 * input.c (location_get_source_line): Likewise.
2258 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2259
2260 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
2261
2262 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2263 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
2264 (ix86_handle_option): Deleted handle of OPT_mpcommit.
2265 * config.gcc: Deleted pcommitintrin.h
2266 * config/i386/pcommitintrin.h: Deleted file.
2267 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
2268 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
2269 detection.
2270 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
2271 __PCOMMIT__.
2272 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
2273 (PTA_PCOMMIT): Deleted define.
2274 (ix86_option_override_internal): Deleted handle of option.
2275 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
2276 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
2277 __builtin_ia32_pcommit): Deleted.
2278 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
2279 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
2280 (pcommit): Deleted instruction.
2281 * config/i386/i386.opt: Mention -mpcommit deprecation.
2282 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
2283
2284 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
2285
2286 PR target/77874
2287 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
2288 Remove wrong assert.
2289 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
2290 Use <round_constraint> as operand 1 constraint.
2291
2292 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2293
2294 PR sanitizer/66343
2295 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
2296 (ubsan_instrument_float_cast): And not here.
2297
2298 PR sanitizer/66343
2299 * ubsan.c (ubsan_ids): New GTY(()) array.
2300 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
2301 instead of static local counters.
2302
2303 2016-10-05 Martin Sebor <msebor@redhat.com>
2304
2305 PR bootstrap/77819
2306 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
2307 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
2308 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
2309 (default_printf_pointer_format): Define function.
2310 * targhooks.c (linux_printf_pointer_format): Define new function.
2311 * targhooks.h (linux_printf_pointer_format): Declare.
2312 (gnu_libc_printf_pointer_format): Remove declaration.
2313
2314 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2315
2316 * fold-const.c (native_encode_real): Fix logic for selecting offset
2317 to write to when BYTES_BIG_ENDIAN.
2318
2319 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
2320
2321 * builtins.c (fold_builtin_strchr): Remove function.
2322 (fold_builtin_strrchr): Likewise.
2323 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
2324 * gimple-fold.c (target_char_cst_p): New function.
2325 (gimple_fold_builtin_strchr) Add more foldings.
2326 (gimple_fold_builtin): Add index, strrchr, rindex cases.
2327
2328 2016-10-05 Richard Biener <rguenther@suse.de>
2329
2330 PR middle-end/77863
2331 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
2332 capture ids in c-exprs.
2333
2334 2016-10-05 Richard Biener <rguenther@suse.de>
2335
2336 PR middle-end/77826
2337 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
2338 with types_match for GIMPLE code gen to handle type mismatched
2339 constants properly.
2340 (dt_operand::gen): Adjust.
2341 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
2342 and constant A.
2343
2344 2016-10-05 Richard Biener <rguenther@suse.de>
2345
2346 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
2347
2348 2016-10-05 Richard Biener <rguenther@suse.de>
2349
2350 PR middle-end/77842
2351 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
2352
2353 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
2354
2355 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
2356 version check to protect only DW_TAG_imported_module generation.
2357
2358 2016-10-05 Richard Biener <rguenther@suse.de>
2359
2360 PR middle-end/55152
2361 * match.pd (min(a,-a) -> -abs(a)): New pattern.
2362
2363 2016-10-04 Ian Lance Taylor <iant@golang.org>
2364
2365 * explow.c (allocate_dynamic_stack_space): Call
2366 do_pending_stack_adjust before handling flag_split_stack.
2367
2368 2016-10-04 David Malcolm <dmalcolm@redhat.com>
2369
2370 * genattrtab.c (make_internal_attr): Supply dummy column number to
2371 file_location ctor.
2372 (main): Likewise.
2373 * genoutput.c (init_insn_for_nothing): Likewise.
2374 * gensupport.c (add_define_attr): Likewise.
2375 * read-md.c (message_at_1): Print column number.
2376 (fatal_with_file_and_line): Likewise.
2377 (rtx_reader::read_char): Track column numbers.
2378 (rtx_reader::unread_char): Likewise.
2379 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
2380 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
2381 (rtx_reader::handle_file): Initialize m_read_md_colno.
2382 (rtx_reader::get_current_location): Supply column number to
2383 file_location ctor.
2384 * read-md.h (struct file_location): Add field "colno".
2385 (file_location::file_location): Likewise.
2386 (rtx_reader::get_colno): New accessor.
2387 (rtx_reader::m_read_md_colno): New field.
2388 (rtx_reader::m_last_line_colno): New field.
2389
2390 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2391
2392 * doc/extend.texi (Java Exceptions): Remove.
2393 (java_interface): Remove.
2394
2395 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
2396
2397 PR tree-optimization/77808
2398 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
2399 and addr are different before copying points-to information.
2400
2401 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
2402
2403 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
2404 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
2405 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
2406 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
2407
2408 2016-10-04 Richard Biener <rguenther@suse.de>
2409
2410 PR tree-optimization/77399
2411 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
2412 verify the target can convert.
2413
2414 2016-10-04 Richard Biener <rguenther@suse.de>
2415
2416 PR middle-end/77833
2417 * explow.c (plus_constant): Verify the mode of the constant
2418 pool offset before calling plus_constant.
2419
2420 2016-10-04 Richard Biener <rguenther@suse.de>
2421
2422 PR middle-end/77407
2423 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
2424 type support, mark with :C.
2425 (X / -X -> -1): Mark with :C.
2426
2427 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2428
2429 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
2430 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
2431 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
2432 * doc/tm.texi: Regenerated.
2433 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
2434 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
2435 * config/darwin.h (JCR_SECTION_NAME): Remove.
2436 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
2437 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
2438 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
2439 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
2440 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
2441 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
2442
2443 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2444
2445 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
2446 between "because" and "param" in dump message in call to fprintf.
2447
2448 2016-10-03 Jeff Law <law@redhat.com>
2449
2450 PR tree-optimization/71550
2451 PR tree-optimization/71403
2452 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
2453 (profitable_jump_thread_path): Also return boolean indicating if
2454 the realized path will create an irreducible loop.
2455 Remove loop depth tests from 71403.
2456 (fsm_find_control_statement_thread_paths): Remove loop depth tests
2457 from 71403. If threading will create an irreducible loop, then
2458 throw away loop iteration and related information.
2459
2460 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
2461
2462 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
2463 -Woverloaded-virtual checks for warning options.
2464 * configure: Regenerate.
2465
2466 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2467
2468 PR preprocessor/77699
2469 * input.c (maybe_grow): Don't allocate one byte extra headroom.
2470 (get_next_line): Return false on error.
2471 (read_next_line): Removed, use get_next_line instead.
2472 (read_line_num): Don't copy the line.
2473 (location_get_source_line): Don't use static data.
2474 (selftest::test_reading_source_line): Add more test cases.
2475
2476 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2477
2478 Revert
2479 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2480
2481 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2482 (noce_process_if_block): Use it.
2483
2484 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2485
2486 * doc/invoke.texi: Update -Wint-in-bool-context.
2487
2488 2016-10-02 Jakub Jelinek <jakub@redhat.com>
2489
2490 * dwarf2out.c (output_fde, output_call_frame_info,
2491 dwarf2out_do_cfi_startproc, set_indirect_string,
2492 gen_internal_sym, output_die, output_line_info): Use
2493 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
2494 ASM_GENERATE_INTERNAL_LABEL output.
2495
2496 2016-10-01 Richard Biener <rguenther@suse.de>
2497
2498 PR middle-end/77798
2499 * genmatch.c (get_operand_type): Add operand position arg
2500 and handle COND_EXPR comparison operand with fixed boolean_type_node.
2501 (expr::gen_transform): Adjust.
2502 (dt_simplify::gen_1): Likewise.
2503
2504 2016-10-01 Jakub Jelinek <jakub@redhat.com>
2505
2506 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
2507 comments. Simplify asserts, remove unnecessary conditions.
2508 Formatting fixes.
2509 (*<code><mode>3): Likewise.
2510
2511 2016-09-30 Jakub Jelinek <jakub@redhat.com>
2512
2513 * doc/invoke.texi (-Wregister): Document.
2514
2515 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2516
2517 * configure.ac: Split CHECKING_P into CHECKING_P and
2518 ENABLE_EXTRA_CHECKING.
2519 * configure: Regenerated.
2520 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
2521 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
2522
2523 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
2524
2525 PR other/31566
2526 * gcc.c (process_command): For @filename handling, output
2527 the correct name if the file does not exist.
2528
2529 2016-09-30 Marek Polacek <polacek@redhat.com>
2530
2531 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
2532 * config/alpha/predicates.md: Likewise.
2533
2534 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2535
2536 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2537 (noce_process_if_block): Use it.
2538
2539 2016-09-30 Martin Liska <mliska@suse.cz>
2540
2541 * doc/invoke.texi: Document asan-use-after-return that
2542 it's disabled by default in runtime.
2543
2544 2016-09-30 Richard Biener <rguenther@suse.de>
2545
2546 * tree-vrp.c (intersect_ranges): If we failed to handle
2547 the intersection choose a constant singleton range if available.
2548
2549 2016-09-30 Richard Biener <rguenther@suse.de>
2550
2551 PR tree-optimization/77399
2552 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2553 float <-> int conversions.
2554
2555 2016-09-30 Alan Modra <amodra@gmail.com>
2556
2557 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
2558
2559 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2560
2561 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
2562 ext_level before calling CPUID with 0x80000008.
2563 Simplify xgetbv checks.
2564
2565 2016-09-29 David Malcolm <dmalcolm@redhat.com>
2566
2567 * Makefile.in (OBJS): Add print-rtl-function.o.
2568 * print-rtl-function.c: New file.
2569 * print-rtl.h (print_rtx_function): New decl.
2570
2571 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2572
2573 PR target/77756
2574 * config/i386/cpuid.h (__get_cpuid_count): New.
2575 (__get_cpuid): Rename __level to __leaf.
2576
2577 2016-09-29 Marek Polacek <polacek@redhat.com>
2578
2579 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
2580
2581 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
2582
2583 * builtins.c (expand_builtin_memcmp): don't swap args unless
2584 result is only being compared with zero.
2585
2586 2016-09-29 Marek Polacek <polacek@redhat.com>
2587
2588 * dwarf2out.c (loc_descriptor): Add fall through comment.
2589 (add_const_value_attribute): Likewise.
2590
2591 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
2592
2593 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
2594 with "v6t2". Move "arch" attribute above "pool_range".
2595 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
2596 with "v6t2".
2597 (*thumb2_movhi_vfp): Likewise.
2598 (*arm_movhi_fp16): Likewise.
2599 (*thumb2_movhi_fp16): Likewise.
2600 (*arm_movsi_vfp): Remove "arch" attribute.
2601 (*thumb2_movsi_vfp): Likewise.
2602
2603 2016-09-29 Martin Liska <mliska@suse.cz>
2604
2605 * doc/extend.texi: Remove limitation of Objective C for
2606 __attribute__((constructor)) and __attribute__((destructor)).
2607
2608 2016-09-29 Richard Biener <rguenther@suse.de>
2609
2610 PR tree-optimization/77768
2611 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2612 Handle stores to readonly memory when removing redundant stores.
2613
2614 2016-09-29 Richard Biener <rguenther@suse.de>
2615
2616 PR middle-end/77407
2617 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
2618 X / -X -> -1 simplifications.
2619
2620 2016-09-29 Richard Biener <rguenther@suse.de>
2621
2622 PR middle-end/55152
2623 * match.pd: Add max(a,-a) -> abs(a) pattern.
2624 * tree-ssa-phiopt.c (minmax_replacement): Disable for
2625 HONOR_SIGNED_ZEROS types.
2626
2627 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2628
2629 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
2630 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
2631
2632 2016-09-29 Richard Biener <rguenther@suse.de>
2633
2634 * tree-vrp.c (set_defs_to_varying): New helper avoiding
2635 writing to vr_const_varying.
2636 (vrp_initialize): Call it.
2637 (vrp_visit_stmt): Likewise.
2638 (evrp_dom_walker::before_dom_children): Likewise.
2639
2640 2016-09-29 Richard Biener <rguenther@suse.de>
2641
2642 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2643 constructors with vector elements.
2644
2645 2016-09-29 Richard Biener <rguenther@suse.de>
2646
2647 PR tree-optimization/77768
2648 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2649 with stores to a place we know has a constant value.
2650
2651 2016-09-29 Alan Modra <amodra@gmail.com>
2652
2653 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2654 * doc/invoke.texi: Document it.
2655 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2656 (rs6000_passes_float): Comment.
2657 (rs6000_passes_long_double): New static var.
2658 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2659 (init_cumulative_args): Set up to emit fp .gnu_attribute for
2660 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
2661 to include fp values returned in vectors.
2662 Set rs6000_passes_long_double.
2663 (rs6000_function_arg_advance_1): Likewise for function args.
2664 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2665 and SPE. Emit long double tag value too.
2666 (rs6000_opt_vars): Add gnu-attr.
2667 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2668 * configure: Regenerate.
2669 * config.in: Regenerate.
2670
2671 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2672
2673 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2674 of 0 < x.
2675 (format_floating, format_string, format_directive,
2676 get_destination_size, pass_sprintf_length::handle_gimple_call):
2677 Likewise.
2678
2679 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2680
2681 * gimple-ssa-sprintf.c: Fix comment formatting.
2682 (format_integer): Use is_gimple_assign.
2683 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2684 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
2685 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
2686 (pass_sprintf_length::execute): Use is_gimple_call.
2687
2688 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2689
2690 * gimple-fold.c (gimple_fold_builtin): After failing to fold
2691 strchr, also try the generic folding.
2692
2693 2016-09-28 Martin Sebor <msebor@redhat.com>
2694
2695 PR c/77762
2696 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2697 Fix typos.
2698
2699 2016-09-28 Martin Sebor <msebor@redhat.com>
2700
2701 PR middle-end/77683
2702 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2703 length modifier is not expected.
2704 (format_floating): Ignore l length modifier and fail gracefuly
2705 when it isn't one of the other expected ones.
2706
2707 2016-09-28 Martin Sebor <msebor@redhat.com>
2708
2709 PR bootstrap/77753
2710 * varasm.c (assemble_addr_to_section): Increase local buffer size.
2711
2712 2016-09-27 Richard Biener <rguenther@suse.de>
2713
2714 * dwarf2out.c (cu_die_list): New global.
2715 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
2716 main_comp_unit_die to cu_die_list if we created it.
2717 Move break_out_includes ...
2718 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
2719 the cu_die_list.
2720
2721 2016-09-28 Richard Biener <rguenther@suse.de>
2722
2723 * dwarf2out.c (struct die_struct): Add removed flag.
2724 (lookup_type_die): If the DIE is marked as removed, clear
2725 TYPE_SYMTAB_DIE and return NULL.
2726 (lookup_decl_die): If the DIE is marked as removed, remove it
2727 from the hash and return NULL.
2728 (mark_removed): New helper.
2729 (prune_unused_types_prune): Call it for removed DIEs.
2730 (gen_subprogram_die): Move the premark_used_types call to after
2731 DIEs for the functions scopes are generated.
2732 (process_scope_var): Do not re-create pruned types or type decls.
2733 Make sure to also re-parent type decls.
2734 (dwarf2out_finish): Move unused type pruning and debug_types
2735 handling ...
2736 (dwarf2out_early_finish): ... here.
2737
2738 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2739
2740 * config/arc/arc-c.c: New file.
2741 * config/arc/arc-c.def: Likewise.
2742 * config/arc/t-arc: Likewise.
2743 * config.gcc: Include arc-c.o as c and cpp object.
2744 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2745 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2746 arc_cpu_cpp_builtins.
2747
2748 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2749
2750 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2751 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2752
2753 2016-09-28 Nathan Sidwell <nathan@acm.org>
2754
2755 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2756 printing.
2757
2758 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2759
2760 PR tree-optimization/61056
2761 * gimple-fold.c (gimple_fold_builtin_strchr):
2762 New function to optimize strchr (s, 0) to strlen.
2763 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2764
2765 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
2766
2767 PR tree-optimization/77724
2768 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2769 Add tree_fits_shwi_p check.
2770
2771 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2772
2773 * auto-inc-dec.c (try_merge): Remove break after return.
2774 * cselib.c (autoinc_split): Likewise.
2775 * explow.c (promote_mode): Likewise.
2776 * fixed-value.c (fixed_arithmetic): Likewise.
2777 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2778 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2779 * trans-mem.c (get_attrs_for): Likewise.
2780 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2781 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2782 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2783 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2784 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2785 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2786 * config/cris/cris.c (cris_op_str): Likewise.
2787 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2788 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2789
2790 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2791
2792 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2793 IFN_GOACC_REDUCTION_CODES): New.
2794 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2795 ifn_goacc_reduction_kind): Use them.
2796 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2797 of internal functions, when applicable.
2798
2799 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2800
2801 * config/mips/constraints.md (d): Fix documentation.
2802 * doc/md.texi (Machine Constraints): Update accordingly.
2803
2804 2016-09-27 Richard Biener <rguenther@suse.de>
2805
2806 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2807 cur_line_info_table initialization ...
2808 (dwarf2out_assembly_start): ... here.
2809
2810 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2811
2812 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2813 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2814 (*thumb2_movhi_vfp): Likewise.
2815 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2816 template. Expand predicable attribute to mark VMOV.F16 as not
2817 predicable. Add "arch" attribute.
2818 (*thumb2_movhi_fp16): Likewise.
2819 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2820 (*thumb2_movsi_vfp): Add "arch" attribute.
2821
2822 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2823
2824 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2825 VAR_DECL string.
2826
2827 2016-09-27 Marek Polacek <polacek@redhat.com>
2828
2829 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2830 comment.
2831
2832 * config/c6x/c6x.h: Adjust fall through comment.
2833 * config/sh/sh.c (final_prescan_insn): Likewise.
2834 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2835 (visium_expand_fp_cstore): Likewise.
2836
2837 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2838
2839 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2840 expected by -Wimplicit-fallthrough.
2841 (thumb1_size_rtx_costs): Likewise.
2842 (thumb2_reorg): Likewise.
2843 (tls_mentioned_p): Add "Fall through" comment.
2844 (thumb2_reorg): Likewise.
2845 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2846 comment form expected by -Wimplicit-fallthrough.
2847
2848 2016-09-27 Martin Liska <mliska@suse.cz>
2849
2850 PR gcov-profile/46266
2851 * input.h (RESERVED_LOCATION_P): New macro.
2852 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2853 instread of comparison with UNKNOWN_LOCATION.
2854
2855 2016-09-27 Richard Biener <rguenther@suse.de>
2856
2857 PR tree-optimization/77745
2858 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2859 When removing redundant stores make sure to check compatibility
2860 of the TBAA state for downstream accesses.
2861 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2862 value-numbering virtual operands for store matches.
2863
2864 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2865
2866 PR target/51244
2867 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2868 movrt patterns. Match them before anything else in the SET case.
2869
2870 2016-09-27 Martin Liska <mliska@suse.cz>
2871
2872 PR gcov-profile/7970
2873 PR gcov-profile/16855
2874 PR gcov-profile/44779
2875 * coverage.c (build_gcov_exit_decl): New function.
2876 (coverage_obj_init): Call the function and generate __gcov_exit
2877 destructor.
2878 * doc/gcov.texi: Document when __gcov_exit function is called.
2879
2880 2016-09-27 Marek Polacek <polacek@redhat.com>
2881
2882 PR bootstrap/77751
2883 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2884 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2885 -Wno-error instead of -Wno-implicit-fallthrough.
2886
2887 2016-09-27 Martin Liska <mliska@suse.cz>
2888
2889 PR bootstrap/77749
2890 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2891
2892 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2893
2894 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2895 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2896 comments. Remove break after return.
2897 (ix86_fp_compare_code_to_integer, has_dispatch,
2898 ix86_simd_clone_usable): Remove break after return.
2899
2900 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2901
2902 PR rlt-optimization/77714
2903 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2904 REG_EQUAL note.
2905
2906 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2907
2908 PR ipa/77677
2909 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2910 extract_range_from_unary_expr to convert value_range.
2911 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2912 (extract_range_from_unary_expr): This.
2913 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2914
2915 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2916
2917 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2918
2919 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2920
2921 * config/i386/i386.c (ix86_print_operand)
2922 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2923 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2924 (epilogue_renumber): Likewise.
2925
2926 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2927
2928 PR middle-end/77719
2929 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2930 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2931
2932 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2933
2934 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2935 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2936 is_mm_seq_cst, is_mm_sync): Move to ...
2937 * memmodel.h: This. New file.
2938 * builtins.c: Include memmodel.h.
2939 * optabs.c: Likewise.
2940 * tsan.c: Likewise.
2941 * config/aarch64/aarch64.c: Likewise.
2942 * config/alpha/alpha.c: Likewise.
2943 * config/arm/arm.c: Likewise.
2944 * config/i386/i386.c: Likewise.
2945 * config/ia64/ia64.c: Likewise.
2946 * config/mips/mips.c: Likewise.
2947 * config/rs6000/rs6000.c: Likewise.
2948 * config/sparc/sparc.c: Likewise.
2949 * genconditions.c: Include memmodel.h in generated file.
2950 * genemit.c: Likewise.
2951 * genoutput.c: Likewise.
2952 * genpeep.c: Likewise.
2953 * genpreds.c: Likewise.
2954 * genrecog.c: Likewise.
2955
2956 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2957
2958 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2959 "c" instead when parsing characters. Move operand parsing into...
2960 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2961 and tightening the scope of various locals.
2962
2963 2016-09-26 Liu Hao <lh_mouse@126.com>
2964
2965 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2966
2967 2016-09-26 Marek Polacek <polacek@redhat.com>
2968
2969 * system.h: Use __has_attribute to check whether the fallthrough
2970 attribute is supported.
2971
2972 2016-09-26 Marek Polacek <polacek@redhat.com>
2973
2974 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2975 gimple_call_internal_p.
2976 * ipa-split.c (find_return_bb): Likewise.
2977 (execute_split_functions): Likewise.
2978 * omp-low.c (dump_oacc_loop_part): Likewise.
2979 (oacc_loop_xform_head_tail): Likewise.
2980 * predict.c (predict_loops): Likewise.
2981 * sanopt.c (pass_sanopt::execute): Likewise.
2982 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2983 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2984 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2985 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2986 (expand_ifn_va_arg): Likewise.
2987 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2988 (optimize_mask_stores): Likewise.
2989 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2990 (vect_transform_stmt): Likewise.
2991 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2992 * tsan.c (instrument_memory_accesses): Likewise.
2993
2994 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2995 Alexander Monakov <amonakov@ispras.ru>
2996
2997 * regrename.c (rename_chains): Check
2998 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2999 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
3000 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3001
3002 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3003
3004 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
3005 (s390_sched_score): Likewise.
3006
3007 2016-09-26 Martin Liska <mliska@suse.cz>
3008
3009 * doc/gcov.texi: Update program output of gcov tool.
3010
3011 2016-09-26 Martin Liska <mliska@suse.cz>
3012
3013 PR gcov-profile/23332
3014 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
3015 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
3016 * value-prof.c (dump_histogram_value): Do not handle
3017 HIST_TYPE_CONST_DELTA.
3018 (stream_in_histogram_value): Likewise.
3019 (gimple_find_values_to_profile): Likewise.
3020 * value-prof.h (enum hist_type): Likewise.
3021
3022 2016-09-26 Martin Liska <mliska@suse.cz>
3023
3024 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
3025 from default sanitize recover values.
3026 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
3027 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
3028 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
3029 consistent.
3030 * opts.c (finish_options): Do a generic loop over options
3031 that can be recovered.
3032 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
3033 SANITIZE_RETURN.
3034 (common_handle_option): Likewise.
3035 * opts.h: Declare can_recover to sanitizer_opts_s.
3036
3037 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
3038
3039 * target.def(elf_flags_numeric): Change documentation to present tense.
3040 * doc/tm.texi: Regenerate.
3041
3042 2016-09-26 Marek Polacek <polacek@redhat.com>
3043
3044 PR c/7652
3045 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
3046 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
3047 -Wno-switch-fallthrough.
3048 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
3049 (expand_builtin): Likewise.
3050 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
3051 * convert.c (convert_to_real_1): Likewise.
3052 (convert_to_integer_1): Likewise.
3053 * final.c (output_alternate_entry_point): Likewise.
3054 * genattrtab.c (make_canonical): Likewise.
3055 (write_test_expr): Likewise.
3056 * genpreds.c (validate_exp): Likewise.
3057 * gimple-ssa-strength-reduction.c
3058 (find_candidates_dom_walker::before_dom_children): Likewise.
3059 * godump.c (go_format_type): Likewise.
3060 * reload1.c (elimination_effects): Likewise.
3061 * resource.c (mark_referenced_resources): Likewise.
3062 (mark_set_resources): Likewise.
3063 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
3064 * varasm.c (output_addressed_constants): Likewise.
3065
3066 2016-09-26 Marek Polacek <polacek@redhat.com>
3067
3068 PR c/7652
3069 * common.opt (Wimplicit-fallthrough): New option.
3070 * doc/extend.texi: Document statement attributes and the fallthrough
3071 attribute.
3072 * doc/invoke.texi: Document -Wimplicit-fallthrough.
3073 * gimple.h (gimple_call_internal_p): New function.
3074 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
3075 (struct label_entry): New struct.
3076 (find_label_entry): New function.
3077 (case_label_p): New function.
3078 (collect_fallthrough_labels): New function.
3079 (last_stmt_in_scope): New function.
3080 (should_warn_for_implicit_fallthrough): New function.
3081 (warn_implicit_fallthrough_r): New function.
3082 (maybe_warn_implicit_fallthrough): New function.
3083 (expand_FALLTHROUGH_r): New function.
3084 (expand_FALLTHROUGH): New function.
3085 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
3086 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
3087 (gimplify_label_expr): New function.
3088 (gimplify_case_label_expr): Set location.
3089 (gimplify_expr): Call gimplify_label_expr.
3090 * internal-fn.c (expand_FALLTHROUGH): New function.
3091 * internal-fn.def (FALLTHROUGH): New internal function.
3092 * langhooks.c (lang_GNU_OBJC): New function.
3093 * langhooks.h (lang_GNU_OBJC): Declare.
3094 * system.h (gcc_fallthrough): Define.
3095 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
3096 * tree.h (FALLTHROUGH_LABEL_P): Define.
3097
3098 2016-09-26 Richard Biener <rguenther@suse.de>
3099
3100 * dwarf2out.c (stripattributes): Remove unused function.
3101 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
3102 Push dwarf_split_debug_info handling into init_sections_and_labels.
3103 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
3104 (DEBUG_MACRO_SECTION_FLAGS): Remove.
3105 (debug_macinfo_section_name): New global.
3106 (output_macinfo): Use debug_macinfo_section_name.
3107 (init_sections_and_labels): Split out section and label generation
3108 from dwarf2out_init. Set debug_macinfo_section_name.
3109 (dwarf2out_init): Move text section label generation and emission
3110 to ...
3111 (dwarf2out_assembly_start): ... here.
3112 (dwarf2out_finish): Call init_sections_and_labels before DWARF
3113 output starts.
3114
3115 2016-09-26 Richard Biener <rguenther@suse.de>
3116
3117 PR debug/77692
3118 * cgraphunit.c (analyze_functions): Before early removing
3119 global vars calls the late_global_decl debug handler mark
3120 the variable as readonly.
3121
3122 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3123
3124 PR target/51244
3125 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
3126 (sh_rtx_costs): Handle SET of movt and movrt patterns.
3127 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
3128 declare new overloads.
3129 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
3130 operand.
3131
3132 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3133
3134 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
3135 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
3136
3137 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3138
3139 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3140 * configure: Regenerate.
3141
3142 2016-09-24 Marek Polacek <polacek@redhat.com>
3143
3144 PR c/77490
3145 * doc/invoke.texi: Document -Wbool-operation.
3146
3147 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3148
3149 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
3150 * config/rs6000/rs6000.c (expand_block_compare): New function used by
3151 cmpmemsi pattern to do builtin expansion of memcmp ().
3152 (compute_current_alignment): Add helper function for
3153 expand_block_compare used to compute alignment as the compare proceeds.
3154 (select_block_compare_mode): Used by expand_block_compare to select
3155 the mode used for reading the next chunk of bytes in the compare.
3156 (do_load_for_compare): Used by expand_block_compare to emit the load
3157 insns for the compare.
3158 (rs6000_emit_dot_insn): Moved this function to avoid a forward
3159 reference from expand_block_compare ().
3160 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
3161 prototype for this function.
3162 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
3163 target option for controlling how much code inline expansion of
3164 memcmp() will be allowed to generate.
3165
3166 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3167
3168 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
3169 hook_bool_mode_false, hook_bool_mode_true,
3170 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3171 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3172 hook_bool_const_rtx_insn_const_rtx_insn_true,
3173 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
3174 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
3175 hook_bool_const_tree_hwi_hwi_const_tree_false,
3176 hook_bool_const_tree_hwi_hwi_const_tree_true,
3177 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
3178 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3179 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
3180 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
3181 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
3182 hook_bool_const_tree_true, hook_bool_tree_tree_false,
3183 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
3184 hook_bool_rtx_insn_true, hook_bool_rtx_false,
3185 hook_bool_uintp_uintp_false,
3186 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
3187 hook_rtx_tree_int_null, hook_uint_mode_0,
3188 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
3189 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
3190 hook_constcharptr_const_rtx_insn_null,
3191 hook_constcharptr_const_tree_const_tree_null,
3192 hook_constcharptr_int_const_tree_null,
3193 hook_constcharptr_int_const_tree_const_tree_null,
3194 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
3195 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
3196 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
3197
3198 * vec.h (vNULL): Extend comment to say = vNULL initialization
3199 isn't needed for static vars.
3200
3201 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
3202 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
3203 = vNULL initialization of file scope vec.
3204 * passes.c (pass_tab, enabled_pass_uid_range_tab,
3205 disabled_pass_uid_range_tab): Likewise.
3206 * haifa-sched.c (sched_luids, h_i_d): Likewise.
3207 * tree-chkp-opt.c (check_infos): Likewise.
3208 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
3209
3210 * vec.h (vnull::operator vec): Add constexpr keyword for
3211 C++11 and later.
3212
3213 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
3214
3215 PR tree-optimization/77654
3216 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
3217 to duplicate_ssa_name_ptr_info.
3218
3219 2016-09-23 David Malcolm <dmalcolm@redhat.com>
3220
3221 PR preprocessor/77672
3222 * input.c (selftest::test_lexer_string_locations_simple): Update
3223 test to expect location information of the terminator character
3224 at the location of the final closing quote.
3225 (selftest::test_lexer_string_locations_hex): Likewise.
3226 (selftest::test_lexer_string_locations_oct): Likewise.
3227 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
3228 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
3229 (selftest::test_lexer_string_locations_ucn4): Likewise.
3230 (selftest::test_lexer_string_locations_ucn8): Likewise.
3231 (selftest::test_lexer_string_locations_u8): Likewise.
3232 (selftest::test_lexer_string_locations_utf8_source): Likewise.
3233 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
3234 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
3235 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
3236 (selftest::test_lexer_string_locations_macro): Likewise.
3237 (selftest::test_lexer_string_locations_long_line): Likewise.
3238
3239 2016-09-23 Richard Biener <rguenther@suse.de>
3240
3241 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
3242 virtual definition to virtual use if the call devirtualizes
3243 to a const or pure function.
3244 (visit_use): Also visit calls we can devirtualize to a
3245 const or pure function.
3246
3247 2016-09-23 Richard Biener <rguenther@suse.de>
3248
3249 PR tree-optimization/77697
3250 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
3251 signal error if we have sth ternary or unhandled.
3252
3253 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3254
3255 * config/arm/arm_neon.h (vabd_f16): New.
3256 (vabdq_f16): New.
3257 (vabs_f16): New.
3258 (vabsq_f16): New.
3259 (vadd_f16): New.
3260 (vaddq_f16): New.
3261 (vcage_f16): New.
3262 (vcageq_f16): New.
3263 (vcagt_f16): New.
3264 (vcagtq_f16): New.
3265 (vcale_f16): New.
3266 (vcaleq_f16): New.
3267 (vcalt_f16): New.
3268 (vcaltq_f16): New.
3269 (vceq_f16): New.
3270 (vceqq_f16): New.
3271 (vceqz_f16): New.
3272 (vceqzq_f16): New.
3273 (vcge_f16): New.
3274 (vcgeq_f16): New.
3275 (vcgez_f16): New.
3276 (vcgezq_f16): New.
3277 (vcgt_f16): New.
3278 (vcgtq_f16): New.
3279 (vcgtz_f16): New.
3280 (vcgtzq_f16): New.
3281 (vcle_f16): New.
3282 (vcleq_f16): New.
3283 (vclez_f16): New.
3284 (vclezq_f16): New.
3285 (vclt_f16): New.
3286 (vcltq_f16): New.
3287 (vcltz_f16): New.
3288 (vcltzq_f16): New.
3289 (vcvt_f16_s16): New.
3290 (vcvt_f16_u16): New.
3291 (vcvt_s16_f16): New.
3292 (vcvt_u16_f16): New.
3293 (vcvtq_f16_s16): New.
3294 (vcvtq_f16_u16): New.
3295 (vcvtq_s16_f16): New.
3296 (vcvtq_u16_f16): New.
3297 (vcvta_s16_f16): New.
3298 (vcvta_u16_f16): New.
3299 (vcvtaq_s16_f16): New.
3300 (vcvtaq_u16_f16): New.
3301 (vcvtm_s16_f16): New.
3302 (vcvtm_u16_f16): New.
3303 (vcvtmq_s16_f16): New.
3304 (vcvtmq_u16_f16): New.
3305 (vcvtn_s16_f16): New.
3306 (vcvtn_u16_f16): New.
3307 (vcvtnq_s16_f16): New.
3308 (vcvtnq_u16_f16): New.
3309 (vcvtp_s16_f16): New.
3310 (vcvtp_u16_f16): New.
3311 (vcvtpq_s16_f16): New.
3312 (vcvtpq_u16_f16): New.
3313 (vcvt_n_f16_s16): New.
3314 (vcvt_n_f16_u16): New.
3315 (vcvtq_n_f16_s16): New.
3316 (vcvtq_n_f16_u16): New.
3317 (vcvt_n_s16_f16): New.
3318 (vcvt_n_u16_f16): New.
3319 (vcvtq_n_s16_f16): New.
3320 (vcvtq_n_u16_f16): New.
3321 (vfma_f16): New.
3322 (vfmaq_f16): New.
3323 (vfms_f16): New.
3324 (vfmsq_f16): New.
3325 (vmax_f16): New.
3326 (vmaxq_f16): New.
3327 (vmaxnm_f16): New.
3328 (vmaxnmq_f16): New.
3329 (vmin_f16): New.
3330 (vminq_f16): New.
3331 (vminnm_f16): New.
3332 (vminnmq_f16): New.
3333 (vmul_f16): New.
3334 (vmul_lane_f16): New.
3335 (vmul_n_f16): New.
3336 (vmulq_f16): New.
3337 (vmulq_lane_f16): New.
3338 (vmulq_n_f16): New.
3339 (vneg_f16): New.
3340 (vnegq_f16): New.
3341 (vpadd_f16): New.
3342 (vpmax_f16): New.
3343 (vpmin_f16): New.
3344 (vrecpe_f16): New.
3345 (vrecpeq_f16): New.
3346 (vrnd_f16): New.
3347 (vrndq_f16): New.
3348 (vrnda_f16): New.
3349 (vrndaq_f16): New.
3350 (vrndm_f16): New.
3351 (vrndmq_f16): New.
3352 (vrndn_f16): New.
3353 (vrndnq_f16): New.
3354 (vrndp_f16): New.
3355 (vrndpq_f16): New.
3356 (vrndx_f16): New.
3357 (vrndxq_f16): New.
3358 (vrsqrte_f16): New.
3359 (vrsqrteq_f16): New.
3360 (vrecps_f16): New.
3361 (vrecpsq_f16): New.
3362 (vrsqrts_f16): New.
3363 (vrsqrtsq_f16): New.
3364 (vsub_f16): New.
3365 (vsubq_f16): New.
3366
3367 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3368
3369 * config.gcc (extra_headers): Add arm_fp16.h
3370 * config/arm/arm_fp16.h: New.
3371 * config/arm/arm_neon.h: Include "arm_fp16.h".
3372
3373 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3374
3375 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
3376 variants).
3377 (vmulf): New (v8hf, v4hf variants).
3378 (vfma): New (v8hf, v4hf variants).
3379 (vfms): New (v8hf, v4hf variants).
3380 (vsub): New (v8hf, v4hf variants).
3381 (vcage): New (v8hf, v4hf variants).
3382 (vcagt): New (v8hf, v4hf variants).
3383 (vcale): New (v8hf, v4hf variants).
3384 (vcalt): New (v8hf, v4hf variants).
3385 (vceq): New (v8hf, v4hf variants).
3386 (vcgt): New (v8hf, v4hf variants).
3387 (vcge): New (v8hf, v4hf variants).
3388 (vcle): New (v8hf, v4hf variants).
3389 (vclt): New (v8hf, v4hf variants).
3390 (vceqz): New (v8hf, v4hf variants).
3391 (vcgez): New (v8hf, v4hf variants).
3392 (vcgtz): New (v8hf, v4hf variants).
3393 (vcltz): New (v8hf, v4hf variants).
3394 (vclez): New (v8hf, v4hf variants).
3395 (vabd): New (v8hf, v4hf variants).
3396 (vmaxf): New (v8hf, v4hf variants).
3397 (vmaxnm): New (v8hf, v4hf variants).
3398 (vminf): New (v8hf, v4hf variants).
3399 (vminnm): New (v8hf, v4hf variants).
3400 (vpmaxf): New (v4hf variant).
3401 (vpminf): New (v4hf variant).
3402 (vpadd): New (v4hf variant).
3403 (vrecps): New (v8hf, v4hf variants).
3404 (vrsqrts): New (v8hf, v4hf variants).
3405 (vabs): New (v8hf, v4hf variants).
3406 (vneg): New (v8hf, v4hf variants).
3407 (vrecpe): New (v8hf, v4hf variants).
3408 (vrnd): New (v8hf, v4hf variants).
3409 (vrnda): New (v8hf, v4hf variants).
3410 (vrndm): New (v8hf, v4hf variants).
3411 (vrndn): New (v8hf, v4hf variants).
3412 (vrndp): New (v8hf, v4hf variants).
3413 (vrndx): New (v8hf, v4hf variants).
3414 (vrsqrte): New (v8hf, v4hf variants).
3415 (vmul_lane): Add v4hf and v8hf variants.
3416 (vmul_n): Add v4hf and v8hf variants.
3417 (vext): New (v8hf, v4hf variants).
3418 (vcvts): New (v8hi, v4hi variants).
3419 (vcvts): New (v8hf, v4hf variants).
3420 (vcvtu): New (v8hi, v4hi variants).
3421 (vcvtu): New (v8hf, v4hf variants).
3422 (vcvts_n): New (v8hf, v4hf variants).
3423 (vcvtu_n): New (v8hi, v4hi variants).
3424 (vcvts_n): New (v8hi, v4hi variants).
3425 (vcvtu_n): New (v8hf, v4hf variants).
3426 (vbsl): New (v8hf, v4hf variants).
3427 (vcvtas): New (v8hf, v4hf variants).
3428 (vcvtau): New (v8hf, v4hf variants).
3429 (vcvtms): New (v8hf, v4hf variants).
3430 (vcvtmu): New (v8hf, v4hf variants).
3431 (vcvtns): New (v8hf, v4hf variants).
3432 (vcvtnu): New (v8hf, v4hf variants).
3433 (vcvtps): New (v8hf, v4hf variants).
3434 (vcvtpu): New (v8hf, v4hf variants).
3435
3436 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3437
3438 * config/arm/arm-builtins.c (hf_UP): New.
3439 (si_UP): New.
3440 (vfp_builtin_data): New. Update comment.
3441 (enum arm_builtins): Include "arm_vfp_builtins.def".
3442 (ARM_BUILTIN_VFP_PATTERN_START): New.
3443 (arm_init_vfp_builtins): New.
3444 (arm_init_builtins): Add arm_init_vfp_builtins.
3445 (arm_expand_vfp_builtin): New.
3446 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
3447 long line.
3448 * config/arm/arm_vfp_builtins.def: New file.
3449 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
3450 (arm-builtins.o): Likewise.
3451
3452 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3453
3454 PR ipa/77677
3455 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
3456 from constant while creating value range.
3457
3458 2016-09-23 Renlin Li <renlin.li@arm.com>
3459
3460 * ira.c (ira): Move ira_use_lra_p initialization code to ...
3461 (ira_init_once): Here.
3462
3463 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
3464 Jakub Jelinek <jakub@redhat.com>
3465
3466 * hooks.h (hook_uint_uintp_false): Rename to...
3467 (hook_bool_uint_uintp_false): ... this.
3468 * hooks.c (hook_uint_uintp_false): Rename to...
3469 (hook_bool_uint_uintp_false): ... this.
3470 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
3471 instead of hook_uint_uintp_false.
3472
3473 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3474
3475 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
3476 (arm_init_builtins): Move body of a loop to the standalone
3477 function arm_init_neon_builtin.
3478 (arm_expand_neon_builtin_1): New. Update comment. Function body
3479 moved from arm_neon_builtin with some white-space fixes.
3480 (arm_expand_neon_builtin): Move code into the standalone function
3481 arm_expand_neon_builtin_1.
3482
3483 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3484
3485 * config/arm/iterators.md (VCVTHI): New.
3486 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
3487 (NEON_VAGLTE): New.
3488 (VFM_LANE_AS): New.
3489 (VH_CVTTO): New.
3490 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
3491 (V_HALF): Add V4HF. Fix white-space.
3492 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
3493 (V_s_elem): Likewise.
3494 (V_sz_elem): Fix white-space.
3495 (V_elem_ch): Likewise.
3496 (VH_elem_ch): New.
3497 (scalar_mul_constraint): Add V8HF and V4HF.
3498 (Is_float_mode): Fix white-space.
3499 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
3500 (q): Add HF. Fix white-space.
3501 (float_sup): New.
3502 (float_SUP): New.
3503 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
3504 (neon_vfm_lane_as): New.
3505 * config/arm/neon.md (add<mode>3_fp16): New.
3506 (sub<mode>3_fp16): New.
3507 (mul<mode>3add<mode>_neon): New.
3508 (fma<VH:mode>4_intrinsic): New.
3509 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
3510 (fmsub<VH:mode>4_intrinsic): New.
3511 (<absneg_str><mode>2): New.
3512 (neon_v<absneg_str><mode>): New.
3513 (neon_v<fp16_rnd_str><mode>): New.
3514 (neon_vrsqrte<mode>): New.
3515 (neon_vpaddv4hf): New.
3516 (neon_vadd<mode>): New.
3517 (neon_vsub<mode>): New.
3518 (neon_vmulf<mode>): New.
3519 (neon_vfma<VH:mode>): New.
3520 (neon_vfms<VH:mode>): New.
3521 (neon_vc<cmp_op><mode>): New.
3522 (neon_vc<cmp_op><mode>_fp16insn): New
3523 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
3524 (neon_vca<cmp_op><mode>): New.
3525 (neon_vca<cmp_op><mode>_fp16insn): New.
3526 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
3527 (neon_vc<cmp_op>z<mode>): New.
3528 (neon_vabd<mode>): New.
3529 (neon_v<maxmin>f<mode>): New.
3530 (neon_vp<maxmin>fv4hf: New.
3531 (neon_<fmaxmin_op><mode>): New.
3532 (neon_vrecps<mode>): New.
3533 (neon_vrsqrts<mode>): New.
3534 (neon_vrecpe<mode>): New (VH variant).
3535 (neon_vdup_lane<mode>_internal): New.
3536 (neon_vdup_lane<mode>): New.
3537 (neon_vcvt<sup><mode>): New (VCVTHI variant).
3538 (neon_vcvt<sup><mode>): New (VH variant).
3539 (neon_vcvt<sup>_n<mode>): New (VH variant).
3540 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
3541 (neon_vcvt<vcvth_op><sup><mode>): New.
3542 (neon_vmul_lane<mode>): New.
3543 (neon_vmul_n<mode>): New.
3544 * config/arm/unspecs.md (UNSPEC_VCALE): New
3545 (UNSPEC_VCALT): New.
3546 (UNSPEC_VFMA_LANE): New.
3547 (UNSPECS_VFMS_LANE): New.
3548
3549 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3550
3551 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
3552 ("*extzv<mode><clobbercc_or_nocc>"):
3553 Correct a typo in a comment.
3554 Merged patterns.
3555 ("*insv<mode>_zEC12", "*insv<mode>_z10")
3556 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
3557 ("*insv<mode>_zEC12_appendbitsleft")
3558 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
3559 ("*insv<mode>_z10_appendbitsleft"): Ditto.
3560 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
3561 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
3562 Provide pattern with operands switched.
3563 ("*pre_z10_extv<mode>"):
3564 Use new subst patterns.
3565 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
3566 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
3567 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
3568 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
3569 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
3570 ("*<risbg_n>_sidi_ior_and_lshiftrt")
3571 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
3572 New patterns.
3573 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
3574 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3575 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
3576 on zEC12.
3577 ("SINT"): New mode_iterator with SI, HI, QI.
3578 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
3579 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
3580 duplication.
3581
3582 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3583
3584 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
3585 new interface of s390_contiguous_bitmask_p.
3586 ("contiguous_bitmask_nowrap_operand"): New predicate.
3587 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
3588 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
3589 of s390_contiguous_bitmask_p.
3590 ("NxxDw"): Rename NxxDq constraint to NxxDw.
3591 ("NxxSw"): New constraint.
3592 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
3593 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
3594 interface.
3595 (s390_contiguous_bitmask_nowrap_p): Export.
3596 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
3597 former s390_contiguous_bitmask_p.
3598 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
3599 detect contiguous bit ranges with wraparound. Change signature to
3600 return START and END position instead of POS and LENGTH.
3601 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
3602 ranges with wraparound.
3603 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
3604 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
3605 Adapt to new signature of s390_contiguous_bitmask_p.
3606
3607 2016-09-23 Bin Cheng <bin.cheng@arm.com>
3608
3609 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
3610 (create_intersect_range_checks): New.
3611 (vect_create_cond_for_alias_checks): Call above function.
3612
3613 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3614
3615 * config/arm/iterators.md (Code iterators): Fix some white-space
3616 in the comments.
3617 (GLTE): New.
3618 (ABSNEG): New
3619 (FCVT): Moved from vfp.md.
3620 (VCVT_HF_US_N): New.
3621 (VCVT_SI_US_N): New.
3622 (VCVT_HF_US): New.
3623 (VCVTH_US): New.
3624 (FP16_RND): New.
3625 (absneg_str): New.
3626 (FCVTI32typename): Moved from vfp.md.
3627 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
3628 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
3629 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
3630 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
3631 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
3632 (vcvth_op): New.
3633 (fp16_rnd_str): New.
3634 (fp16_rnd_insn): New.
3635 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
3636 (UNSPEC_VCVT_HF_U_N): New.
3637 (UNSPEC_VCVT_SI_S_N): New.
3638 (UNSPEC_VCVT_SI_U_N): New.
3639 (UNSPEC_VCVTH_S): New.
3640 (UNSPEC_VCVTH_U): New.
3641 (UNSPEC_VCVTA_S): New.
3642 (UNSPEC_VCVTA_U): New.
3643 (UNSPEC_VCVTM_S): New.
3644 (UNSPEC_VCVTM_U): New.
3645 (UNSPEC_VCVTN_S): New.
3646 (UNSPEC_VCVTN_U): New.
3647 (UNSPEC_VCVTP_S): New.
3648 (UNSPEC_VCVTP_U): New.
3649 (UNSPEC_VCVTP_S): New.
3650 (UNSPEC_VCVTP_U): New.
3651 (UNSPEC_VRND): New.
3652 (UNSPEC_VRNDA): New.
3653 (UNSPEC_VRNDI): New.
3654 (UNSPEC_VRNDM): New.
3655 (UNSPEC_VRNDN): New.
3656 (UNSPEC_VRNDP): New.
3657 (UNSPEC_VRNDX): New.
3658 * config/arm/vfp.md (<absneg_str>hf2): New.
3659 (neon_vabshf): New.
3660 (neon_v<fp16_rnd_str>hf): New.
3661 (neon_vrndihf): New.
3662 (addhf3): New.
3663 (subhf3): New.
3664 (divhf3): New.
3665 (mulhf3): New.
3666 (*mulsf3neghf_vfp): New.
3667 (*negmulhf3_vfp): New.
3668 (*mulsf3addhf_vfp): New.
3669 (*mulhf3subhf_vfp): New.
3670 (*mulhf3neghfaddhf_vfp): New.
3671 (*mulhf3neghfsubhf_vfp): New.
3672 (fmahf4): New.
3673 (neon_vfmahf): New.
3674 (fmsubhf4_fp16): New.
3675 (neon_vfmshf): New.
3676 (*fnmsubhf4): New.
3677 (*fnmaddhf4): New.
3678 (neon_vsqrthf): New.
3679 (neon_vrsqrtshf): New.
3680 (FCVT): Move to iterators.md.
3681 (FCVTI32typename): Likewise.
3682 (neon_vcvth<sup>hf): New.
3683 (neon_vcvth<sup>si): New.
3684 (neon_vcvth<sup>_nhf_unspec): New.
3685 (neon_vcvth<sup>_nhf): New.
3686 (neon_vcvth<sup>_nsi_unspec): New.
3687 (neon_vcvth<sup>_nsi): New.
3688 (neon_vcvt<vcvth_op>h<sup>si): New.
3689 (neon_<fmaxmin_op>hf): New.
3690
3691 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3692
3693 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3694 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3695 ("*insv<mode>_zEC12_appendbitsleft")
3696 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3697 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3698
3699 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3700
3701 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3702 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3703 construct values without normalization.
3704 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3705 static local lhs_ops to vNULL.
3706
3707 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3708 Jiong Wang <jiong.wang@arm.com>
3709
3710 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3711 available when FP16 instructions are available.
3712 (output_move_vfp): Add support for 16-bit data moves.
3713 (arm_validize_comparison): Fix some white-space. Support HFmode
3714 by conversion to SFmode.
3715 * config/arm/arm.md (truncdfhf2): Fix a comment.
3716 (extendhfdf2): Likewise.
3717 (cstorehf4): New.
3718 (movsicc): Fix some white-space.
3719 (movhfcc): New.
3720 (movsfcc): Fix some white-space.
3721 (*cmovhf): New.
3722 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3723 instructions are available.
3724 (*thumb2_movhi_vfp): Likewise.
3725 (*arm_movhi_fp16): New.
3726 (*thumb2_movhi_fp16): New.
3727 (*movhf_vfp_fp16): New.
3728 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3729 (*movhf_vfp): Likewise.
3730 (extendhfsf2): Enable when VFP FP16 instructions are available.
3731 (truncsfhf2): Enable when VFP FP16 instructions are available.
3732
3733 2016-09-23 Martin Liska <mliska@suse.cz>
3734
3735 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3736
3737 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3738
3739 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3740 V4HF modes.
3741 (arm_evpc_neon_vtrn): Likewise.
3742 (arm_evpc_neon_vrev): Likewise.
3743 (arm_evpc_neon_vext): Likewise.
3744 * config/arm/arm_neon.h (vbsl_f16): New.
3745 (vbslq_f16): New.
3746 (vdup_n_f16): New.
3747 (vdupq_n_f16): New.
3748 (vdup_lane_f16): New.
3749 (vdupq_lane_f16): New.
3750 (vext_f16): New.
3751 (vextq_f16): New.
3752 (vmov_n_f16): New.
3753 (vmovq_n_f16): New.
3754 (vrev64_f16): New.
3755 (vrev64q_f16): New.
3756 (vtrn_f16): New.
3757 (vtrnq_f16): New.
3758 (vuzp_f16): New.
3759 (vuzpq_f16): New.
3760 (vzip_f16): New.
3761 (vzipq_f16): New.
3762 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3763 (vdup_lane): New (v8hf, v4hf variants).
3764 (vext): New (v8hf, v4hf variants).
3765 (vbsl): New (v8hf, v4hf variants).
3766 * config/arm/iterators.md (VDQWH): New.
3767 (VH): New.
3768 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
3769 (Scalar_mul_8_16): Fix white-space.
3770 (Is_d_reg): Add V4HF and V8HF.
3771 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3772 (neon_vdup_lane<mode>): New.
3773 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3774 (*neon_vtrn<mode>_insn): Likewise.
3775 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3776 (*neon_vzip<mode>_insn): Likewise
3777 (neon_vuzp<mode>_internal): Likewise.
3778 (*neon_vuzp<mode>_insn): Likewise
3779 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3780
3781 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3782 Matthew Wahab <matthew.wahab@arm.com>
3783
3784 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3785 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3786 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3787 available. Also fix some white-space.
3788 * config/arm/vfp.md (*arm_movhi_vfp): New.
3789 (*thumb2_movhi_vfp): New.
3790
3791 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3792
3793 * config/arm/arm-c.c (arm_cpu_builtins): Define
3794 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3795 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3796
3797 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3798
3799 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3800 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3801 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3802 arm_v8_2a_fp16_neon_hw.
3803 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3804 arm_v8_2a_neon.
3805
3806 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3807
3808 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3809 arm_fp16_alternative_ok and arm_fp16_none_ok.
3810
3811 2016-09-23 Martin Liska <mliska@suse.cz>
3812
3813 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3814
3815 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3816
3817 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3818 ("armv8.2-a"): New.
3819 ("armv8.2-a+fp16"): New.
3820 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3821 (FL2_FP16INST): New.
3822 (FL2_FOR_ARCH8_2A): New.
3823 * config/arm/arm-tables.opt: Regenerate.
3824 * config/arm/arm.c (arm_arch8_2): New.
3825 (arm_fp16_inst): New.
3826 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3827 for incompatible fp16-format settings.
3828 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3829 (TARGET_NEON_FP16INST): New.
3830 (arm_arch8_2): Declare.
3831 (arm_fp16_inst): Declare.
3832 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3833 march=armv8.2-a and march=armv8.2-a+fp16.
3834 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3835 and armv8.2-a+fp16.
3836 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3837 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3838
3839 2016-09-23 Martin Liska <mliska@suse.cz>
3840
3841 * doc/extend.texi: Remove fused-madd from i386 target options.
3842
3843 2016-09-23 Martin Liska <mliska@suse.cz>
3844
3845 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3846 Handle movbe.
3847
3848 2016-09-23 Martin Liska <mliska@suse.cz>
3849
3850 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3851 Handle crc32.
3852
3853 2016-09-23 Martin Liska <mliska@suse.cz>
3854
3855 PR target/71652
3856 * config/i386/i386.c (ix86_option_override_internal): Change
3857 signature and return false when there's an error related to
3858 arch string.
3859 (release_options_strings): New function.
3860 (ix86_valid_target_attribute_tree): Call the function.
3861
3862 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3863
3864 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3865 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3866 (gen_hsa_ctor_assignment): Likewise.
3867 * print-tree.c (print_node): Likewise.
3868 * tree-dump.c (dequeue_and_dump): Likewise.
3869 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3870 * expr.c (store_constructor): Likewise.
3871 * fold-const.c (operand_equal_p): Likewise.
3872 * tree-pretty-print.c (dump_generic_node): Likewise.
3873 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3874 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3875
3876 2016-09-23 Richard Biener <rguenther@suse.de>
3877
3878 * hooks.h (hook_uint_uintp_false): Declare.
3879
3880 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3881
3882 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3883 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3884
3885 2016-09-22 Martin Sebor <msebor@redhat.com>
3886
3887 PR target/77676
3888 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3889 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3890 (target_int_min): Correct computation.
3891 (format_integer): Use long long as the argument for the ll length
3892 modifier.
3893 (format_floating): Use target_int_max().
3894 (get_string_length): Same.
3895 (format_string): Avoid setting the bounded flag for strings
3896 of unknown length.
3897 (try_substitute_return_value): Avoid setting range info when
3898 the result isn't bounded.
3899 * varasm.c (assemble_name): Increase buffer size.
3900
3901 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3902 Terry Guo <terry.guo@arm.com>
3903
3904 * target.def (elf_flags_numeric): New target hook.
3905 * targhooks.h (default_asm_elf_flags_numeric): New.
3906 * varasm.c (default_asm_elf_flags_numeric): New.
3907 (default_elf_asm_named_section): Use new target hook.
3908 * config/arm/arm.opt (mpure-code): New.
3909 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3910 * config/arm/arm.c (arm_asm_init_sections): Add section
3911 attribute to default text section if -mpure-code.
3912 (arm_option_check_internal): Diagnose use of option with
3913 non supported targets and/or options.
3914 (arm_asm_elf_flags_numeric): New.
3915 (arm_function_section): New.
3916 (arm_elf_section_type_flags): New.
3917 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3918 for -mpure-code.
3919 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3920 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3921
3922 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3923
3924 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3925
3926 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3927
3928 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3929 * rtl.h: Adjust prototype.
3930
3931 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3932
3933 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3934 (prev_active_insn): Likewise.
3935 (active_insn_p): Likewise.
3936 * rtl.h: Adjust prototypes.
3937 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3938 * config/arc/arc.md: Likewise.
3939 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3940 (branch_needs_nop_p): Likewise.
3941 (use_skip_p): Likewise.
3942 * config/sh/sh.c (gen_block_redirect): Likewise.
3943 (split_branches): Likewise.
3944 * reorg.c (optimize_skip): Likewise.
3945 (fill_simple_delay_slots): Likewise.
3946 (fill_slots_from_thread): Likewise.
3947 (relax_delay_slots): Likewise.
3948 * resource.c (mark_target_live_regs): Likewise.
3949
3950 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3951
3952 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3953 type to rtx_insn *.
3954 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3955 (prev_nonnote_nondebug_insn): Likewise.
3956 * config/cris/cris-protos.h: Adjust prototype.
3957 * rtl.h: Likewise.
3958 * jump.c (rtx_renumbered_equal_p): Adjust.
3959
3960 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3961
3962 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3963 * rtl.h: Adjust prototype.
3964 * config/sh/sh.md: Adjust.
3965 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3966
3967 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3968
3969 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3970 (prev_nondebug_insn): Likewise.
3971 * loop-doloop.c (doloop_condition_get): Likewise.
3972 * rtl.h: Adjust prototype.
3973 * cfgloop.h: Likewise.
3974
3975 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3976
3977 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3978 (prev_nonnote_insn): Likewise.
3979 * jump.c (reversed_comparison_code_parts): Likewise.
3980 (reversed_comparison): Likewise.
3981 * rtl.h: Adjust prototypes.
3982 * config/arc/arc.md: Adjust.
3983 * cse.c (find_comparison_args): Likewise.
3984 * reorg.c (redundant_insn): Change return type to rtx_insn *.
3985 (fix_reg_dead_note): Change argument type to rtx_insn *.
3986 (delete_prior_computation): Likewise.
3987 (delete_computation): Likewise.
3988 (fill_slots_from_thread): Adjust.
3989 (relax_delay_slots): Likewise.
3990 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3991 (simplify_relational_operation_1): Likewise.
3992 (simplify_ternary_operation): Likewise.
3993
3994 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3995
3996 * config/arc/arc-protos.h (arc_label_align): Change type of
3997 variables from rtx to rtx_insn *.
3998 * config/arc/arc.c (arc_label_align): Likewise.
3999 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
4000 * config/bfin/bfin.c (workaround_speculation): Likewise.
4001 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
4002 (find_last_same_clock): Likewise.
4003 (reorg_split_calls): Likewise.
4004 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
4005 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
4006 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
4007 (same_cmp_following_p): Likewise.
4008 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
4009 (same_cmp_following_p): Likwise.
4010 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
4011 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
4012 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
4013 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
4014 (rl78_alloc_physical_registers_cmp): Likewise.
4015 (rl78_alloc_physical_registers_umul): Likewise.
4016 (rl78_calculate_death_notes): Likewise.
4017 * config/s390/s390-protos.h (s390_label_align): Likewise.
4018 * config/s390/s390.c (s390_label_align): Likewise.
4019 * config/sh/sh.c (barrier_align): Likewise.
4020 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
4021 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
4022 (emit_cbcond_nop): Likewise.
4023
4024 2016-09-22 Martin Liska <mliska@suse.cz>
4025
4026 PR ipa/77653
4027 * ipa-icf.c (sem_variable::merge): Yield merge operation if
4028 alias address matters, not necessarily address of original.
4029
4030 2016-09-22 Richard Biener <rguenther@suse.de>
4031
4032 PR middle-end/77697
4033 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
4034 fold fails.
4035
4036 2016-09-22 Richard Biener <rguenther@suse.de>
4037
4038 PR middle-end/77677
4039 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
4040 from constant folding results.
4041 (gimple_resimplify2): Likewise.
4042 (gimple_resimplify3): Likewise.
4043
4044 2016-09-22 Richard Biener <rguenther@suse.de>
4045
4046 PR middle-end/77678
4047 * expr.c (expand_expr_real_1): Guard array access against negative
4048 offset.
4049
4050 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4051
4052 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
4053 of MPFR_RNDN.
4054 (format_floating): Likewise.
4055
4056 2016-09-22 Jakub Jelinek <jakub@redhat.com>
4057
4058 PR fortran/77665
4059 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
4060 for all IFN_GOMP_SIMD_* internal fns, not just for
4061 IFN_GOMP_SIMD_ORDERED_*.
4062
4063 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4064
4065 PR target/77670
4066 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
4067 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
4068 instructions when you want to invert the test.
4069 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
4070 correct order for XXSEL.
4071 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
4072 for using XSCMP{EQ,GT,GE}DP.
4073
4074 2016-09-21 David Malcolm <dmalcolm@redhat.com>
4075
4076 * genconstants.c (main): Introduce noop_reader and convert call
4077 to read_md_files to a method call.
4078 * genenums.c (main): Likewise.
4079 * genmddeps.c (main): Likewise.
4080 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
4081 rtx_reader_ptr->get_top_level_filename ().
4082 (write_tm_preds_h): Likewise.
4083 (write_insn_preds_c): Likewise.
4084 * gensupport.c (class gen_reader): New subclass of rtx_reader.
4085 (rtx_handle_directive): Convert to...
4086 (gen_reader::handle_unknown_directive): ...this.
4087 (init_rtx_reader_args_cb): Convert return type from bool to
4088 rtx_reader *. Create a gen_reader instance, using it for the
4089 call to read_md_files. Return it if no errors occur.
4090 (init_rtx_reader_args): Convert return type from bool to
4091 rtx_reader *.
4092 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4093 (init_rtx_reader_args_cb): Likewise.
4094 * read-md.c (struct file_name_list): Move to class rtx_reader.
4095 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
4096 (read_md_filename): Delete in favor of
4097 rtx_reader::m_read_md_filename.
4098 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
4099 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
4100 (base_dir): Delete in favor of rtx_reader::m_base_dir.
4101 (first_dir_md_include): Delete in favor of
4102 rtx_reader::m_first_dir_md_include.
4103 (last_dir_md_include_ptr): Delete in favor of
4104 rtx_reader::m_last_dir_md_include_ptr.
4105 (max_include_len): Delete.
4106 (rtx_reader_ptr): New.
4107 (fatal_with_file_and_line): Use get_filename and get_lineno
4108 accessors of rtx_reader_ptr.
4109 (require_char_ws): Likewise.
4110 (rtx_reader::read_char): New method, based on ::read_char.
4111 (rtx_reader::unread_char): New method, based on ::unread_char.
4112 (read_escape): Use get_filename and get_lineno accessors of
4113 rtx_reader_ptr.
4114 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
4115 (read_string): Use get_filename and get_lineno accessors of
4116 rtx_reader_ptr.
4117 (rtx_reader::rtx_reader): New ctor.
4118 (rtx_reader::~rtx_reader): New dtor.
4119 (handle_include): Convert from a function to...
4120 (rtx_reader::handle_include): ...this method, converting
4121 handle_directive from a callback to a virtual function.
4122 (handle_file): Likewise, converting to...
4123 (rtx_reader::handle_file): ...this method.
4124 (handle_toplevel_file): Likewise, converting to...
4125 (rtx_reader::handle_toplevel_file): ...this method.
4126 (rtx_reader::get_current_location): New method.
4127 (parse_include): Convert from a function to...
4128 (rtx_reader::add_include_path): ...this method, dropping redundant
4129 update to unused max_include_len.
4130 (read_md_files): Convert from a function to...
4131 (rtx_reader::read_md_files): ...this method, converting
4132 handle_directive from a callback to a virtual function.
4133 (noop_reader::handle_unknown_directive): New method.
4134 * read-md.h (directive_handler_t): Delete this typedef.
4135 (in_fname): Delete.
4136 (read_md_file): Delete.
4137 (read_md_lineno): Delete.
4138 (read_md_filename): Delete.
4139 (class rtx_reader): New class.
4140 (rtx_reader_ptr): New decl.
4141 (class noop_reader): New subclass of rtx_reader.
4142 (read_char): Reimplement in terms of rtx_reader::read_char.
4143 (unread_char): Reimplement in terms of rtx_reader::unread_char.
4144 (read_md_files): Delete.
4145 * read-rtl.c (read_rtx_code): Update for deletion of globals
4146 read_md_filename and read_md_lineno.
4147
4148 2016-09-21 Jason Merrill <jason@redhat.com>
4149
4150 * input.h (from_macro_definition_at): New.
4151
4152 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4153
4154 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
4155
4156 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4157
4158 PR tree-optimization/77550
4159 * tree-vect-stmts.c (create_array_ref): Change parameters.
4160 (get_group_alias_ptr_type): New function.
4161 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
4162
4163 2016-09-21 Marek Polacek <polacek@redhat.com>
4164
4165 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4166 Add falls through comment.
4167
4168 2016-09-21 Richard Biener <rguenther@suse.de>
4169
4170 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
4171 (replace_child): Likewise.
4172 (remove_child_TAG): Adjust.
4173 (move_marked_base_types): Likewise.
4174 (prune_unused_types_prune): Clear die_sib of removed children.
4175
4176 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
4177
4178 PR target/77326
4179 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
4180 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
4181
4182 2016-09-21 Richard Biener <rguenther@suse.de>
4183
4184 PR tree-optimization/77648
4185 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
4186 with complex RHS.
4187 (make_transitive_closure_constraints): Adjust comment.
4188 (make_any_offset_constraints): New function.
4189 (handle_rhs_call): Make sure to first expand a pointer to all
4190 subfields before transitively closing it.
4191 (handle_const_call): Likewise. Properly expand returned
4192 pointers as well.
4193 (handle_pure_call): Likewise.
4194
4195 2016-09-21 Richard Biener <rguenther@suse.de>
4196 Jakub Jelinek <jakub@redhat.com>
4197
4198 PR tree-optimization/77621
4199 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
4200 group at non-vectorizable stmts.
4201
4202 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4203
4204 PR tree-optimization/72835
4205 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
4206 (make_new_ssa_for_all_defs): Likewise.
4207 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
4208
4209 2016-09-20 Martin Sebor <msebor@redhat.com>
4210
4211 PR middle-end/49905
4212 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
4213 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
4214 * config/linux.c (gnu_libc_printf_pointer_format): New function.
4215 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
4216 * config/sol2.c (solaris_printf_pointer_format): New function.
4217 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
4218 options.
4219 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
4220 * doc/tm.texi: Regenerate.
4221 * gimple-fold.h (get_range_strlen): New function.
4222 (get_maxval_strlen): Declare existing function.
4223 * gimple-fold.c (get_range_strlen): Add arguments and compute both
4224 maximum and minimum.
4225 (get_range_strlen): Define overload.
4226 (get_maxval_strlen): Adjust.
4227 * gimple-ssa-sprintf.c: New file and pass.
4228 * passes.def (pass_sprintf_length): Add new pass.
4229 * targhooks.h (default_printf_pointer_format): Declare new function.
4230 (gnu_libc_printf_pointer_format): Same.
4231 (solaris_libc_printf_pointer_format): Same.
4232 * targhooks.c (default_printf_pointer_format): Define new function.
4233 * tree-pass.h (make_pass_sprintf_length): Declare new function.
4234 * print-tree.c: Increase buffer size.
4235
4236 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4237
4238 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
4239
4240 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4241
4242 * common.opt: New option -fipa-vrp.
4243 * ipa-cp.c (ipa_get_vr_lat): New.
4244 (ipcp_vr_lattice::print): Likewise.
4245 (print_all_lattices): Call ipcp_vr_lattice::print.
4246 (ipcp_vr_lattice::meet_with): New.
4247 (ipcp_vr_lattice::meet_with_1): Likewise.
4248 (ipcp_vr_lattice::top_p): Likewise.
4249 (ipcp_vr_lattice::bottom_p): Likewsie.
4250 (ipcp_vr_lattice::set_to_bottom): Likewise.
4251 (set_all_contains_variable): Call VR set_to_bottom.
4252 (initialize_node_lattices): Init VR lattices.
4253 (propagate_vr_accross_jump_function): New.
4254 (propagate_constants_accross_call): Call
4255 propagate_vr_accross_jump_function.
4256 (ipcp_store_vr_results): New.
4257 (ipcp_driver): Handle VR.
4258 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
4259 (ipa_set_jf_unknown): Likewise.
4260 (ipa_compute_jump_functions_for_edge): Likewise.
4261 (ipa_node_params_t::duplicate): Likewise.
4262 (ipa_write_jump_function): Likewise.
4263 (ipa_read_jump_function): Likewise.
4264 (write_ipcp_transformation_info): Likewise.
4265 (read_ipcp_transformation_info): Likewise.
4266 (ipcp_update_vr): New.
4267 (ipcp_transform_function): Handle VR.
4268 * ipa-prop.h (struct ipa_vr): New.
4269 * cgraph.c: Include tree-vrp.h.
4270 * cgraphunit.c: Likewise.
4271 * ipa-utils.c: Likewise.
4272 * ipa.c: Likewise.
4273 * opts.c: Likewise.
4274 * toplev.c: Likewise.
4275 * ipa-devirt.c: Likewise.
4276 * ipa-inline-transform.c: Likewise.
4277 * ipa-inline.c: Likewise.
4278 * ipa-profile.c: Likewise.
4279
4280 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4281
4282 * doc/invoke.texi: Document -fdump-tree-evrp.
4283 * passes.def: Define new pass_early_vrp.
4284 * timevar.def: Define new TV_TREE_EARLY_VRP.
4285 * tree-pass.h (make_pass_early_vrp): New.
4286 * tree-ssa-propagate.c: Make replace_uses_in non static.
4287 * tree-ssa-propagate.h: Export replace_uses_in.
4288 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
4289 (extract_range_from_assert): Factor out
4290 extract_range_for_var_from_comparison_expr.
4291 (vrp_initialize_lattice): New.
4292 (vrp_initialize): Factor out vrp_initialize_lattice.
4293 (vrp_valueize): Fix it to reject complex value ranges.
4294 (vrp_free_lattice): New.
4295 (evrp_dom_walker::before_dom_children): Likewise.
4296 (evrp_dom_walker::after_dom_children): Likewise.
4297 (evrp_dom_walker::push_value_range): Likewise.
4298 (evrp_dom_walker::pop_value_range): Likewise.
4299 (execute_early_vrp): Likewise.
4300 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
4301 (make_pass_early_vrp): New.
4302
4303 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4304
4305 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
4306 instead of exact_log2.
4307
4308 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4309
4310 PR target/77621
4311 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
4312 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
4313 (ix86_add_stmt_cost): Penalize DFmode vector operations
4314 for !TARGET_VECTORIZE_DOUBLE.
4315
4316 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
4317
4318 * doc/invoke.texi (Warning Options): Simplify language.
4319 (Optimize Options): Complete sentence.
4320
4321 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
4322
4323 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
4324 early_finish hook.
4325
4326 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4327
4328 PR target/71395
4329 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
4330 inits on power8 and above, use the VMRGEW instruction instead of a
4331 permute.
4332
4333 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
4334 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
4335 initialization.
4336
4337 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4338
4339 * config/aarch64/arm_neon.h
4340 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
4341 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
4342 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
4343
4344 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4345
4346 * config/var/vax.h (ELIMINABLE_REGS): Define.
4347 (INITIAL_ELIMINATION_OFFSET): Define.
4348
4349 2016-09-20 Jakub Jelinek <jakub@redhat.com>
4350
4351 PR middle-end/77624
4352 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
4353 cast to void * if the cast is from some other pointer type.
4354
4355 2016-09-20 Richard Biener <rguenther@suse.de>
4356
4357 PR tree-optimization/77646
4358 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
4359 a VDEF.
4360
4361 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4362
4363 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
4364 attributes to all inlined functions and make them extern.
4365
4366 2016-09-20 Richard Biener <rguenther@suse.de>
4367
4368 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
4369 hook.
4370 * debug.c (do_nothing_debug_hooks): Adjust.
4371 * dbxout.c (dbx_debug_hooks): Likewise.
4372 * sdbout.c (sdb_debug_hooks): Likewise.
4373 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
4374 (dwarf2out_finish): Move producer, filename and
4375 path annotation ...
4376 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
4377 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
4378
4379 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4380
4381 PR c++/77434
4382 * doc/invoke.texi: Document -Wint-in-bool-context.
4383
4384 PR middle-end/77421
4385 * dwarf2out.c (output_loc_operands): Fix an assertion.
4386
4387 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4388
4389 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
4390 (CR_DECIMAL_DIG): New macro.
4391
4392 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4393
4394 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
4395 element.
4396
4397 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
4398
4399 PR rtl-optimization/77416
4400 * lra-remat.c (operand_to_remat): Process hard coded insn
4401 registers.
4402
4403 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4404
4405 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
4406 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
4407
4408 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4409
4410 * target.def (lra_p): Wordsmithing.
4411 * doc/tm.texi: Regenerate.
4412
4413 2016-09-19 Jakub Jelinek <jakub@redhat.com>
4414 Jan Hubicka <jh@suse.cz>
4415
4416 PR target/77587
4417 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
4418 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
4419 Call ultimate_alias_target just once, not up to 4 times.
4420
4421 2016-09-19 Richard Biener <rguenther@suse.de>
4422
4423 * dwarf2out.c (early_dwarf_finished): New global.
4424 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
4425 is false.
4426 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
4427 if called from LTO exit early.
4428 (dwarf2out_late_global_decl): When being during the early
4429 debug phase do not add locations but only const value attributes.
4430 Adjust the way we generate early DIEs for LTO.
4431
4432 2016-09-19 Richard Biener <rguenther@suse.de>
4433
4434 PR middle-end/77605
4435 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
4436 proper niter to bound the loops.
4437
4438 2016-09-19 Richard Biener <rguenther@suse.de>
4439
4440 PR tree-optimization/77514
4441 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
4442 search for folded stmt.
4443
4444 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
4445
4446 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
4447 * tree-pass.h (make_pass_early_thread_jumps): Declare.
4448 * tree-ssa-threadbackward.c (fsm_find_thread_path,
4449 fsm_find_thread_path, profitable_jump_thread_path,
4450 fsm_find_control_statement_thread_paths,
4451 find_jump_threads_backwards): Add speed_p parameter.
4452 (pass_data_early_thread_jumps): New pass.
4453 (make_pass_early_thread_jumps): New function.
4454
4455 2016-09-17 Andreas Schwab <schwab@suse.de>
4456
4457 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
4458 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4459
4460 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
4461
4462 * recog.c (rest_of_handle_split_after_reload): Delete.
4463 (pass_split_after_reload::gate): New method.
4464 (pass_split_after_reload::execute): Call split_all_insns directly.
4465
4466 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
4467
4468 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
4469 parameters for functions taking long long arguments.
4470
4471 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4472
4473 PR target/77613
4474 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
4475 splat with truncate.
4476
4477 2016-09-16 Jason Merrill <jason@redhat.com>
4478
4479 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
4480 New.
4481 * hwint.c (exact_log2): Use pow2p_hwi.
4482 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
4483 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
4484 * builtins.c (get_object_alignment_2, get_object_alignment)
4485 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
4486 least_bit_hwi.
4487 * calls.c (compute_argument_addresses, store_one_arg): Use
4488 least_bit_hwi.
4489 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
4490 * combine.c (force_to_mode): Use least_bit_hwi.
4491 (contains_muldiv, find_split_point, combine_simplify_rtx)
4492 (simplify_if_then_else, simplify_set, force_to_mode)
4493 (if_then_else_cond, simplify_and_const_int_1)
4494 (simplify_compare_const): Use pow2p_hwi.
4495 * cse.c (fold_rtx): Use pow2p_hwi.
4496 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
4497 Use least_bit_hwi.
4498 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
4499 (init_expmed_one_conv): Use pow2p_hwi.
4500 * expr.c (is_aligning_offset): Use pow2p_hwi.
4501 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
4502 (fold_binary_loc): Use pow2p_hwi.
4503 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
4504 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
4505 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
4506 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
4507 Use least_bit_hwi.
4508 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
4509 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
4510 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
4511 * omp-low.c (oacc_loop_fixed_partitions)
4512 (oacc_loop_auto_partitions): Use least_bit_hwi.
4513 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
4514 * stor-layout.c (place_field): Use least_bit_hwi.
4515 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
4516 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
4517 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
4518 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
4519 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
4520 * tree-vect-data-refs.c (vect_analyze_group_access_1)
4521 (vect_grouped_store_supported, vect_grouped_load_supported)
4522 (vect_permute_load_chain, vect_shift_permute_load_chain)
4523 (vect_transform_grouped_load): Use pow2p_hwi.
4524 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
4525 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
4526 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
4527 least_bit_hwi.
4528 * tsan.c (instrument_expr): Use least_bit_hwi.
4529 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
4530
4531 2016-09-16 Andreas Schwab <schwab@suse.de>
4532
4533 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
4534 OFFSET, not offset.
4535 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4536
4537 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4538
4539 PR target/77526
4540 * combine.c (rest_of_handle_combine): If any edges have been purged,
4541 free dominators if available.
4542
4543 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4544 Eric Botcazou <ebotcazou@adacore.com>
4545
4546 PR middle-end/77594
4547 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
4548 through into expand_addsub_overflow after expand_neg_overflow.
4549
4550 2016-09-15 David Malcolm <dmalcolm@redhat.com>
4551
4552 * diagnostic-show-locus.c
4553 (selftest::test_fixit_insert_containing_newline): New function.
4554 (selftest::test_fixit_replace_containing_newline): New function.
4555 (selftest::diagnostic_show_locus_c_tests): Call the above.
4556
4557 2016-09-15 Bin Cheng <bin.cheng@arm.com>
4558
4559 PR tree-optimization/77503
4560 * tree-vect-loop.c (vectorizable_reduction): Record reduction
4561 code for CONST_COND_REDUCTION at analysis stage and use it at
4562 transform stage.
4563 * tree-vectorizer.h (struct _stmt_vec_info): New field.
4564 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
4565 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
4566 field.
4567
4568 2016-09-15 Richard Biener <rguenther@suse.de>
4569
4570 PR middle-end/77544
4571 * fold-const.c (split_tree): Do not split constant ~X.
4572
4573 2016-09-15 Jakub Jelinek <jakub@redhat.com>
4574
4575 PR rtl-optimization/77425
4576 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
4577 is NULL.
4578
4579 PR middle-end/77475
4580 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
4581 use %qs instead of %s where desirable, use argument instead of arg in
4582 the diagnostic wording, add list of supported strategies and
4583 spellcheck hint.
4584 (ix86_option_override_internal): Emit target("m...") instead of
4585 option("m...") in the diagnostic. Use %qs instead of %s in invalid
4586 -march/-mtune option diagnostic. Add list of supported arches/tunings
4587 and spellcheck hint. Remove prefix, suffix and sw variables, use
4588 main_args_p ? "..." : "..." in diagnostics to make translation
4589 possible.
4590
4591 2016-09-15 Richard Biener <rguenther@suse.de>
4592
4593 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
4594 extra offset argument.
4595 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
4596 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
4597 to reflect new offset parameter.
4598 * doc/tm.texi: Regenerate.
4599 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4600 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
4601 offset argument.
4602 (darwin_asm_output_dwarf_offset): Likewise.
4603 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
4604 argument.
4605 (darwin_asm_output_dwarf_offset): Pass offset argument through.
4606 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4607 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4608
4609 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
4610
4611 PR fortran/72743
4612 * ipa-icf.c (set_alias_uids): New function.
4613 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
4614 all the merged variable's referring aliases.
4615
4616 2016-09-15 Richard Biener <rguenther@suse.de>
4617
4618 PR tree-optimization/77514
4619 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
4620 only forced_stmts sequence.
4621
4622 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
4623
4624 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
4625 * cfgexpand.c (update_alias_info_with_stack_vars): Use
4626 FOR_EACH_SSA_NAME to iterate over SSA variables.
4627 (pass_expand::execute): Likewise.
4628 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
4629 * tree-cfg.c (dump_function_to_file): Likewise.
4630 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
4631 (update_ssa): Likewise.
4632 * tree-ssa-alias.c (dump_alias_info): Likewise.
4633 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4634 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
4635 (create_outofssa_var_map): Likewise.
4636 (coalesce_ssa_name): Likewise.
4637 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
4638 * tree-ssa-pre.c (compute_avail): Likewise.
4639 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4640 (scc_vn_restore_ssa_info): Likewise.
4641 (free_scc_vn): Likwise.
4642 (run_scc_vn): Likewise.
4643 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4644 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4645 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4646 * tree-ssa.c (verify_ssa): Likewise.
4647
4648 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
4649
4650 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4651 and mips64r2 as default 32-bit and 64-bit architectures.
4652 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4653 as default 32-bit and 64-bit architectures.
4654
4655 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
4656
4657 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4658 of succ edge.
4659
4660 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4661
4662 * target.def (lra_p): Change commentary (for the manual) for the
4663 new default.
4664 * doc/tm.texi: Regenerate.
4665
4666 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4667
4668 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4669 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4670 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4671 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4672
4673 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4674
4675 * targhooks.c (default_lra_p): Return true instead of false.
4676
4677 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4678
4679 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4680 hook_bool_void_false.
4681 * config/avr/avr.c: Ditto.
4682 * config/bfin/bfin.c: Ditto.
4683 * config/c6x/c6x.c: Ditto.
4684 * config/cr16/cr16.c: Ditto.
4685 * config/cris/cris.c: Ditto.
4686 * config/epiphany/epiphany.c: Ditto.
4687 * config/fr30/fr30.c: Ditto.
4688 * config/frv/frv.c: Ditto.
4689 * config/h8300/h8300.c: Ditto.
4690 * config/ia64/ia64.c: Ditto.
4691 * config/iq2000/iq2000.c: Ditto.
4692 * config/lm32/lm32.c: Ditto.
4693 * config/m32c/m32c.c: Ditto.
4694 * config/m32r/m32r.c: Ditto.
4695 * config/m68k/m68k.c: Ditto.
4696 * config/mcore/mcore.c: Ditto.
4697 * config/microblaze/microblaze.c: Ditto.
4698 * config/mmix/mmix.c: Ditto.
4699 * config/mn10300/mn10300.c: Ditto.
4700 * config/moxie/moxie.c: Ditto.
4701 * config/msp430/msp430.c: Ditto.
4702 * config/nios2/nios2.c: Ditto.
4703 * config/nvptx/nvptx.c: Ditto.
4704 * config/pa/pa.c: Ditto.
4705 * config/pdp11/pdp11.c: Ditto.
4706 * config/rl78/rl78.c: Ditto.
4707 * config/sparc/sparc.c: Ditto.
4708 * config/spu/spu.c: Ditto.
4709 * config/stormy16/stormy16.c: Ditto.
4710 * config/tilegx/tilegx.c: Ditto.
4711 * config/tilepro/tilepro.c: Ditto.
4712 * config/v850/v850.c: Ditto.
4713 * config/vax/vax.c: Ditto.
4714 * config/visium/visium.c: Ditto.
4715 * config/xtensa/xtensa.c: Ditto.
4716
4717 2016-09-14 Jakub Jelinek <jakub@redhat.com>
4718
4719 PR sanitizer/68260
4720 * tsan.c: Include target.h.
4721 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4722 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4723 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4724 BUILT_IN_ATOMIC_TEST_AND_SET entries.
4725 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4726
4727 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4728 Martin Liska <mliska@suse.cz>
4729
4730 PR middle-end/77574
4731 * predict.c (force_edge_cold): Add braces to a condition.
4732
4733 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4734
4735 PR rtl-optimization/77289
4736 * lra-constraints.c (get_final_hard_regno): Removed.
4737 (get_hard_regno): Add new parameter final_p.
4738 (get_reg_class): Directly call lra_get_elimination_hard_regno.
4739 (operands_match_p): Adjust call to get_hard_regno.
4740 (uses_hard_regs_p): Likewise.
4741 (process_alt_operands): Likewise.
4742
4743 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
4744
4745 PR target/70713
4746 * config/msp430/msp430.c (msp430_start_function): Emit an error
4747 if a function is both weak and specifies an interrupt number.
4748
4749 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4750
4751 PR tree-optimization/77454
4752 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4753 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
4754 Formatting fix.
4755
4756 2016-09-13 Tamar Christina <tamar.christina@arm.com>
4757
4758 * config/aarch64/aarch64-builtins.c
4759 (aarch64_init_simd_builtins): Fix builtin type signature printing.
4760
4761 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
4762
4763 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4764 SFmode and SCmode arguments by reference.
4765
4766 2016-09-13 David Malcolm <dmalcolm@redhat.com>
4767
4768 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4769 Rename to...
4770 (selftest::test_one_liner_fixit_insert_before): ...this, and update
4771 for renaming of add_fixit_insert to add_fixit_insert_before.
4772 (selftest::test_one_liner_fixit_insert_after): New function.
4773 (selftest::test_one_liner_fixit_validation_adhoc_locations):
4774 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4775 (selftest::test_one_liner_many_fixits): Likewise.
4776 (selftest::test_diagnostic_show_locus_one_liner): Update for
4777 renaming, call new test function.
4778 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4779 renaming of add_fixit_insert to add_fixit_insert_before.
4780 (selftest::test_fixit_consolidation): Likewise.
4781 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4782 Likewise.
4783 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4784 (selftest::test_applying_fixits_insert_before): ...this.
4785 (selftest::test_applying_fixits_insert): Update for renaming of
4786 add_fixit_insert to add_fixit_insert_before.
4787 (selftest::test_applying_fixits_insert_after): New function.
4788 (selftest::test_applying_fixits_insert_after_at_line_end): New
4789 function.
4790 (selftest::test_applying_fixits_insert_after_failure): New function.
4791 (selftest::test_applying_fixits_multiple): Update for renaming of
4792 add_fixit_insert to add_fixit_insert_before.
4793 (selftest::change_line): Likewise.
4794 (selftest::test_applying_fixits_unreadable_file): Likewise.
4795 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4796 (selftest::test_applying_fixits_column_validation): Likewise.
4797 (selftest::test_applying_fixits_column_validation): Likewise.
4798 (selftest::edit_context_c_tests): Update for renamed test function;
4799 call new test functions.
4800
4801 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4802
4803 PR tree-optimization/77536
4804 PR rtl-optimization/68212
4805 * config/rs6000/rs6000.md (div->recip splitter): Remove
4806 optimize_insn_for_speed_p condition.
4807
4808 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4809
4810 * optabs.c (prepare_cmp_insn): Update documentation comment.
4811
4812 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4813 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4814
4815 PR middle-end/77475
4816 * opts.h (candidates_list_and_hint): Declare.
4817 * opts-common.c (candidates_list_and_hint): New function.
4818 (cmdline_handle_error): Use it.
4819
4820 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4821
4822 * edit-context.c (edited_line::get_len): New accessor.
4823 (edited_file::print_diff): Split out hunk-printing into...
4824 (edited_file::print_diff_hunk): New method.
4825 (edited_file::print_diff_line): New method.
4826
4827 2016-09-12 Andrew Pinski <apinski@cavium.com>
4828
4829 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4830 New tuning option.
4831 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4832 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4833 (aarch64_operands_ok_for_ldpstp): Return false if
4834 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4835 was SImode and the alignment is less than 8 byte.
4836 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4837
4838 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4839
4840 PR target/77570
4841 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4842
4843 2016-09-12 Marek Polacek <polacek@redhat.com>
4844
4845 * doc/extend.texi: Use lowercase "boolean".
4846 * doc/invoke.texi: Likewise.
4847 * doc/md.texi: Likewise.
4848 * target.def: Likewise.
4849 * doc/tm.texi: Regenerated.
4850
4851 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4852
4853 PR middle-end/77426
4854 * expmed.c (synth_mult): Delete duplicate mode check.
4855
4856 2016-09-10 Tom de Vries <tom@codesourcery.com>
4857
4858 PR C/71602
4859 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4860 va_list type only.
4861 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4862 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4863
4864 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4865
4866 PR rtl-optimization/77289
4867 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4868 register numbers. Remove support for subregs.
4869 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4870 (get_reg_class): Delete removed get_final_hard_regno() argument.
4871 (uses_hard_regs_p): Call get_final_hard_regno().
4872
4873 2016-09-09 Martin Sebor <msebor@redhat.com>
4874
4875 PR c/77520
4876 PR c/77521
4877 * pretty-print.c (pp_quoted_string): New function.
4878 (pp_format): Call it for %c and %s directives.
4879
4880 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4881
4882 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4883 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4884 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4885 * target.def (frame_pointer_required, can_eliminate): Likewise.
4886 * doc/tm.texi: Regenerated.
4887 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4888 ELIMINABLE_REGS.
4889 * df-scan.c (df_hard_reg_init): Likewise.
4890 * ira.c (ira_setup_eliminable_regset): Likewise.
4891 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4892 init_elim_table): Likewise.
4893 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4894 set_initial_elim_offsets, update_eliminables,
4895 init_elim_table): Likewise.
4896 * rtlanal.c (get_initial_register_offset): Likewise.
4897 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4898 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4899 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4900 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4901 * config/fr30/fr30.h: Fix comment.
4902 * config/frv/frv.c: Likewise.
4903 * config/frv/frv.h: Likewise.
4904 * config/ft32/ft32.h: Likewise.
4905 * config/visium/visium.h: Likewise.
4906 * config/pa/pa64-linux.h: Likewise.
4907 * config/v850/v850.h: Likewise.
4908 * config/cris/cris.c: Likewise.
4909 * config/ia64/ia64.h: Likewise.
4910 * config/moxie/moxie.h: Likewise.
4911 * config/m32r/m32r.h: Likewise.
4912
4913 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4914
4915 PR target/77267
4916 * config.in: Regenerate.
4917 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4918 New macro.
4919 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4920 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4921 static-libmpxwrappers case.
4922 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4923 MPX_LD_AS_NEEDED_GUARD_POP.
4924 * configure: Regenerate.
4925 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4926 defined if linker support "--push-state"/"--pop-state".
4927
4928 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4929
4930 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4931
4932 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4933
4934 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4935 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4936 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4937 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4938 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4939 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4940 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4941 Document.
4942 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4943 width macros from TS 18661-1.
4944 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4945
4946 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4947
4948 PR fortran/77516
4949 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4950 OMP_CLAUSE_SAFELEN_EXPR.
4951
4952 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4953
4954 * Makefile.in (OBJS): Add substring-locations.o.
4955 * langhooks-def.h (class substring_loc): New forward decl.
4956 (lhd_get_substring_location): New decl.
4957 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4958 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4959 * langhooks.c (lhd_get_substring_location): New function.
4960 * langhooks.h (class substring_loc): New forward decl.
4961 (struct lang_hooks): Add field get_substring_location.
4962 * substring-locations.c: New file, taking definition of
4963 format_warning_va and format_warning_at_substring from
4964 c-family/c-format.c, making them non-static.
4965 * substring-locations.h (class substring_loc): Move class here
4966 from c-family/c-common.h. Add and rewrite comments.
4967 (format_warning_va): New decl.
4968 (format_warning_at_substring): New decl.
4969 (get_source_location_for_substring): Add comment.
4970
4971 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
4972
4973 * config/i386/i386.c: Add 'U' suffix to processor feature bits
4974 to avoid -Wnarrowing warning.
4975 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4976 * opts.c: Likewise for SANITIZER_OPT bitmasks.
4977
4978 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
4979
4980 * config/aarch64/aarch64.c (aarch64_legitimize_address):
4981 Avoid use of base_offset if offset already in range.
4982
4983 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
4984
4985 * config/sh/sh-protos.h (struct sh_atomic_model,
4986 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4987 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4988 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4989 * config/sh/sh.h (struct sh_atomic_model,
4990 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4991 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4992 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4993 Guard with __cplusplus.
4994
4995 2016-09-06 Jakub Jelinek <jakub@redhat.com>
4996
4997 PR target/69255
4998 * config/i386/i386.c (ix86_expand_builtin): For builtin with
4999 unsupported or unknown ISA, use expand_call.
5000
5001 2016-09-06 Martin Liska <mliska@suse.cz>
5002
5003 PR gcov-profile/77378
5004 PR gcov-profile/77466
5005 * tree-profile.c (tree_profiling): Detect whether target can use
5006 -fprofile-update=atomic.
5007
5008 2016-09-06 Richard Biener <rguenther@suse.de>
5009
5010 PR tree-optimization/77479
5011 * tree-vrp.c (update_value_range): Extend overflow handling to
5012 VARYING.
5013
5014 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5015
5016 PR target/77476
5017 * config/i386/i386.md (isa): Add x64_avx512bw.
5018 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
5019 (kmov_isa): New mode attr.
5020 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
5021 (*zero_extend<mode>si2): Likewise.
5022 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
5023
5024 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
5025
5026 * doc/invoke.texi (SPU Options): nops -> NOPs.
5027 (x86 Options): Ditto.
5028
5029 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5030
5031 PR middle-end/77475
5032 * toplev.c (process_options): Temporarily set input_location
5033 to UNKNOWN_LOCATION around targetm.target_option.override () call.
5034
5035 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
5036
5037 PR rtl-optimization/77452
5038 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
5039 inner-mode reference to a CONST_VECTOR constant in the constant pool.
5040
5041 2016-09-05 Marek Polacek <polacek@redhat.com>
5042
5043 PR c/77423
5044 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
5045
5046 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5047
5048 PR other/77421
5049 * gensupport.c (alter_output_for_subst_insn): Remove redundant
5050 *insn_out == '*' test. Don't copy unnecessary to yet another
5051 memory buffer, and don't leak it.
5052
5053 PR rtl-optimization/77425
5054 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
5055
5056 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
5057
5058 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
5059
5060 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5061
5062 * common.opt (fdiagnostics-generate-patch): New option.
5063 * diagnostic.c: Include "edit-context.h".
5064 (diagnostic_initialize): Initialize context->edit_context_ptr.
5065 (diagnostic_finish): Delete context->edit_context_ptr.
5066 (diagnostic_report_diagnostic): Add fix-it hints from the
5067 diagnostic to context->edit_context_ptr, if any.
5068 * diagnostic.h (class edit_context): Add forward decl.
5069 (struct diagnostic_context): Add field "edit_context_ptr".
5070 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5071 -fdiagnostics-generate-patch.
5072 (-fdiagnostics-generate-patch): New item.
5073 * toplev.c: Include "edit-context.h".
5074 (process_options): Set global_dc->edit_context_ptr to a new
5075 edit_context if the options need one.
5076 (toplev::main): Handle -fdiagnostics-generate-patch by using
5077 global_dc->edit_context_ptr.
5078
5079 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5080
5081 PR c/65467
5082 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
5083 map and firstprivate clauses on target construct for _Atomic
5084 qualified decls.
5085 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
5086 on target construct for _Atomic qualified decls.
5087 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
5088 decls.
5089 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
5090 _Atomic qualified arguments not mentioned in uniform clause.
5091
5092 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5093
5094 * Makefile.in (OBJS-libcommon): Add edit-context.o.
5095 * diagnostic-color.c (color_dict): Add "diff-filename",
5096 "diff-hunk", "diff-delete", and "diff-insert".
5097 (parse_gcc_colors): Update default value of GCC_COLORS in comment
5098 to reflect above changes.
5099 * doc/invoke.texi (-fdiagnostics-color): Update description of
5100 default GCC_COLORS, and of the supported capabilities.
5101 * edit-context.c: New file.
5102 * edit-context.h: New file.
5103 * input.c (struct fcache): Add field "missing_trailing_newline".
5104 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
5105 true.
5106 (add_file_to_cache_tab): Likewise.
5107 (fcache::fcache): Likewise.
5108 (get_next_line): Update c->missing_trailing_newline.
5109 (location_missing_trailing_newline): New function.
5110 * input.h (location_missing_trailing_newline): New decl.
5111 * selftest-run-tests.c (selftest::run_tests): Call
5112 edit_context_c_tests.
5113 * selftest.h (edit_context_c_tests): New decl.
5114
5115 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5116 Richard Biener <rguenth@suse.de>
5117
5118 PR tree-optimization/77444
5119 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
5120 as steptype, remove redundant initialization.
5121
5122 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5123
5124 PR sanitizer/77396
5125 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
5126 (sanopt_optimize_walker): Optimize away
5127 __asan_before_dynamic_init (...) followed by
5128 __asan_after_dynamic_init () without intervening memory loads/stores.
5129 * ipa-pure-const.c (special_builtin_state): Handle
5130 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
5131 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
5132
5133 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5134
5135 * cfg.c (free_original_copy_tables): Replace second assignment of
5136 bb_copy = NULL by bb_original = NULL.
5137
5138 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5139
5140 PR other/77421
5141 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
5142 assignment added in r216794.
5143
5144 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5145
5146 * Makefile.in (OBJS): Add typed-splay-tree.o.
5147 * selftest-run-tests.c (selftest::run_tests): Call
5148 typed_splay_tree_c_tests.
5149 * selftest.h (typed_splay_tree_c_tests): New decl.
5150 * typed-splay-tree.c: New file.
5151 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
5152 (typed_splay_tree::max): New method.
5153 (typed_splay_tree::min): New method.
5154 (typed_splay_tree::foreach): New method.
5155 (typed_splay_tree::closure): New struct.
5156 (typed_splay_tree::inner_foreach_fn): New function.
5157
5158 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5159
5160 * ipa-cp.c (ipcp_store_bits_results): Change option name from
5161 -fipa-cp-bit to -fipa-bit-cp.
5162
5163 2016-09-01 Martin Sebor <msebor@redhat.com>
5164
5165 PR tree-optimization/71831
5166 * tree-object-size.h: Return bool instead of the size and add
5167 argument for the size.
5168 * tree-object-size.c (compute_object_offset): Update signature.
5169 (addr_object_size): Same.
5170 (compute_builtin_object_size): Return bool instead of the size
5171 and add argument for the size. Handle POINTER_PLUS_EXPR when
5172 optimization is disabled.
5173 (expr_object_size): Adjust.
5174 (plus_stmt_object_size): Adjust.
5175 (pass_object_sizes::execute): Adjust.
5176 * builtins.c (fold_builtin_object_size): Adjust.
5177 * doc/extend.texi (Object Size Checking): Update.
5178 * ubsan.c (instrument_object_size): Adjust.
5179
5180 2016-09-01 Martin Sebor <msebor@redhat.com>
5181
5182 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
5183 it fits the output of the formatted function regardless of its
5184 arguments.
5185 * gcc/genmodes.c (parser::parse_expr): Same.
5186 * gimplify.c (gimplify_asm_expr): Same.
5187 * passes.c (pass_manager::register_one_dump_file): Same.
5188 * print-tree.c (print_node): Same.
5189
5190 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5191
5192 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
5193
5194 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5195
5196 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
5197
5198 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5199
5200 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
5201 * config/rs6000/vector.md: Ditto.
5202 * config/rs6000/vsx.md: Ditto.
5203
5204 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5205
5206 * ipa-inline-analysis.c (param_change_prob): Get to the base object
5207 first in all cases.
5208
5209 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5210
5211 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
5212 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
5213 *return_and_restore_gpregs_<mode>_r11,
5214 *return_and_restore_gpregs_<mode>_r12,
5215 *return_and_restore_gpregs_<mode>_r1,
5216 *return_and_restore_fpregs_<mode>_r11,
5217 *return_and_restore_fpregs_<mode>_r12,
5218 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
5219 directly instead of via the "l" constraint. Renumber operands.
5220 Fix whitespace.
5221
5222 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5223
5224 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
5225 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
5226 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
5227 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
5228 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
5229 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
5230 *call_value_nonlocal_darwin64, reload_macho_picbase,
5231 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
5232 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
5233 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
5234 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
5235 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
5236 *save_fpregs_<mode>_r1): Ditto.
5237 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
5238 *return_and_restore_gpregs_spe): Ditto.
5239
5240 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5241
5242 * config/rs6000/rs6000.md
5243 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
5244 the use of the link register.
5245 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
5246
5247 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5248 Michael Meissner <meissner@linux.vnet.ibm.com>
5249
5250 PR target/72827
5251 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
5252 reg+reg addressing for TImode.
5253 (rs6000_legitimate_address_p): Only allow register indirect
5254 addressing for TImode, even without TARGET_QUAD_MEMORY.
5255
5256 2016-09-01 Richard Biener <rguenther@suse.de>
5257
5258 PR middle-end/77436
5259 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
5260 check whether the result fits the desired result type.
5261
5262 2016-09-01 Nathan Sidwell <nathan@acm.org>
5263
5264 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
5265
5266 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
5267
5268 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
5269 New function.
5270 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
5271
5272 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5273
5274 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
5275 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
5276 for comparisons of integer ZERO_EXTEND against zero.
5277
5278 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5279
5280 * config/i386/i386.c (ix86_option_override_internal): Also disable the
5281 STV pass if -mstackrealign is enabled.
5282
5283 2016-08-31 Ilya Verbin <iverbin@gmail.com>
5284
5285 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
5286 AVX512IFMA.
5287
5288 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5289
5290 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
5291 (layout_range::intersects_line_p): New method.
5292 (test_range_contains_point_for_single_point): Rename to...
5293 (test_layout_range_for_single_point): ...this, and add testing
5294 for layout_range::intersects_line_p.
5295 (test_range_contains_point_for_single_line): Rename to...
5296 (test_layout_range_for_single_line): ...this, and add testing
5297 for layout_range::intersects_line_p.
5298 (test_range_contains_point_for_multiple_lines): Rename to...
5299 (test_layout_range_for_multiple_lines): ...this, and add testing
5300 for layout_range::intersects_line_p.
5301 (layout::layout): Populate m_fixit_hints.
5302 (layout::get_expanded_location): Handle the case of a line-span
5303 for a fix-it hint.
5304 (layout::validate_fixit_hint_p): New method.
5305 (get_line_span_for_fixit_hint): New function.
5306 (layout::calculate_line_spans): Add spans for fixit-hints.
5307 (layout::should_print_annotation_line_p): New method.
5308 (layout::print_any_fixits): Drop param "richloc", instead using
5309 validated fixits in m_fixit_hints. Add "const" to hint pointers.
5310 (diagnostic_show_locus): Avoid printing blank annotation lines.
5311 (selftest::test_diagnostic_context::test_diagnostic_context):
5312 Initialize show_column and start_span.
5313 (selftest::test_diagnostic_context::start_span_cb): New static
5314 function.
5315 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
5316 (selftest::diagnostic_show_locus_c_tests): Update for function
5317 renamings. Call test_diagnostic_show_locus_fixit_lines.
5318
5319 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5320
5321 PR tree-optimization/73714
5322 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
5323
5324 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5325
5326 * selftest.c: Move "namespace selftest {" to top of file,
5327 removing explicit "selftest::" qualifiers throughout.
5328
5329 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5330
5331 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
5332 New types.
5333 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
5334 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
5335 Replace builtin with vector extension.
5336 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
5337 New types.
5338 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
5339 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
5340 Replace builtin with vector extension.
5341 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
5342 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
5343 Replace builtin with vector extension.
5344 * config/i386/xmmintrin.h (__m128_u): New type.
5345 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
5346 (_mm_load_ps, _mm_store_ps): Simplify.
5347
5348 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
5349
5350 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
5351
5352 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5353
5354 * diagnostic-show-locus.c (colorizer::begin_state): Support more
5355 than 3 ranges per diagnostic by alternating between color 1 and
5356 color 2.
5357 (layout::layout): Replace use of rich_location::MAX_RANGES
5358 with richloc->get_num_locations ().
5359 (layout::calculate_line_spans): Replace use of
5360 rich_location::MAX_RANGES with m_layout_ranges.length ().
5361 (layout::print_annotation_line): Handle arbitrary numbers of
5362 ranges in caret-printing by defaulting to '^'.
5363 (selftest::test_one_liner_many_fixits): New function.
5364 (test_diagnostic_show_locus_one_liner): Call it.
5365 * diagnostic.c (diagnostic_initialize): Update for renaming
5366 of rich_location::MAX_RANGES to
5367 rich_location::STATICALLY_ALLOCATED_RANGES.
5368 * diagnostic.h (struct diagnostic_context): Likewise.
5369
5370 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5371
5372 * selftest.c (selftest::named_temp_file::named_temp_file): New
5373 ctor.
5374 (selftest::temp_source_file::~temp_source_file): Move to...
5375 (selftest::named_temp_file::~named_temp_file): ...here.
5376 (selftest::test_named_temp_file): New function.
5377 (selftest::selftest_c_tests): Call test_named_temp_file.
5378 * selftest.h (class named_temp_file): New class.
5379 (class temp_source_file): Convert to a subclass of named_temp_file.
5380
5381 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
5382
5383 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
5384 USEs of LR_REGNO in returns and sibcalls.
5385 (rs6000_output_mi_thunk): Similar.
5386 (rs6000_sibcall_aix): Similar.
5387 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
5388 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
5389 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
5390 Remove the USE of LR_REGNO from the patterns as well. Delete an
5391 obsolete comment.
5392 (return_internal_<mode>): Delete.
5393
5394 2016-08-30 Tamar Christina <tamar.christina@arm.com>
5395
5396 * gcc/config/aarch64/aarch64-simd.md
5397 (aarch64_ld2<mode>_dreg_le): New.
5398 (aarch64_ld2<mode>_dreg_be): New.
5399 (aarch64_ld2<mode>_dreg): Removed.
5400 (aarch64_ld3<mode>_dreg_le): New.
5401 (aarch64_ld3<mode>_dreg_be): New.
5402 (aarch64_ld3<mode>_dreg): Removed.
5403 (aarch64_ld4<mode>_dreg_le): New.
5404 (aarch64_ld4<mode>_dreg_be): New.
5405 (aarch64_ld4<mode>_dreg): Removed.
5406 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
5407
5408 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5409
5410 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
5411 redundant location param.
5412 (test_one_liner_fixit_remove): Likewise.
5413 (test_one_liner_fixit_replace): Likewise.
5414 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
5415 * gcc-rich-location.c
5416 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
5417 get_range_from_loc. Drop overload taking a const char *.
5418 * gcc-rich-location.h
5419 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
5420 a const char *.
5421
5422 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5423
5424 * config/linux.c (linux_libc_has_function): Return true on musl.
5425
5426 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5427
5428 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
5429
5430 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
5431
5432 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
5433 used for abnormal egdes.
5434
5435 2016-08-30 Jakub Jelinek <jakub@redhat.com>
5436
5437 PR tree-optimization/72866
5438 * tree-vect-patterns.c (search_type_for_mask): Turn into
5439 a small wrapper, move all code to ...
5440 (search_type_for_mask_1): ... this new function. Add caching
5441 and adjust recursive calls.
5442
5443 PR debug/77363
5444 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
5445 instead of lookup_type_die (type_main_variant (type)) even for array
5446 types.
5447
5448 PR middle-end/77377
5449 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
5450 constant pool reference return x instead of c.
5451
5452 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
5453
5454 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
5455 include MQ.
5456
5457 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5458
5459 * input.c
5460 (selftest::test_make_location_nonpure_range_endpoints): Fix
5461 header comment.
5462
5463 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5464
5465 * diagnostic-show-locus.c
5466 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
5467 function.
5468 (selftest::test_diagnostic_show_locus_one_liner): Call it.
5469 * input.c (get_pure_location): Move to libcpp/line-map.c.
5470 * input.h (get_pure_location): Convert decl to an inline function
5471 calling implementation in libcpp.
5472
5473 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
5474
5475 PR target/77403
5476 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
5477 template for intel asm dialect.
5478 (vec_set_hi_<mode><mask_name>): Ditto.
5479
5480 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5481
5482 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
5483 (selftest::fail_formatted): Likewise.
5484
5485 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5486
5487 * input.c (make_location): Call get_start and get_finish
5488 on the endpoints to avoid storing packed ranges or ad-hoc
5489 ranges in them.
5490 (selftest::test_make_location_nonpure_range_endpoints): New function.
5491 (selftest::input_c_tests): Call it.
5492 * input.h (get_start): New inline function.
5493
5494 2016-08-29 Tom de Vries <tom@codesourcery.com>
5495
5496 PR c/77398
5497 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
5498 with assert.
5499
5500 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
5501
5502 * Makefile.in (gcov-iov.h): Add dummy recipe.
5503
5504 2016-08-29 Nathan Sidwell <nathan@acm.org>
5505
5506 * config/nvptx/nvptx.c: #include tree-vrp.h.
5507
5508 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
5509
5510 PR target/77324
5511 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
5512 HIGH+LO construct during reload.
5513
5514 2016-08-28 Tom de Vries <tom@codesourcery.com>
5515
5516 PR lto/70955
5517 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
5518 'sysv_abi va_list' attribute.
5519 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
5520 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
5521 attributes.
5522
5523 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5524
5525 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
5526 * emit-rtl.c (unshare_all_rtl_1): Adjust.
5527 (unshare_all_rtl_again): Likewise.
5528 * function.c (assign_stack_local_1): Likewise.
5529 (assign_stack_temp_for_type): Likewise.
5530
5531 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5532
5533 * cfgbuild.c (make_edges): Adjust.
5534 * cfgrtl.c (can_delete_label_p): Likewise.
5535 * dwarf2cfi.c (create_trace_edges): Likewise.
5536 * except.c (sjlj_emit_dispatch_table): Likewise.
5537 * function.h (struct expr_status): make x_forced_labels a vector.
5538 * jump.c (rebuild_jump_labels_1): Adjust.
5539 * reload1.c (set_initial_label_offsets): Likewise.
5540 * stmt.c (force_label_rtx): Likewise.
5541 (expand_label): Likewise.
5542
5543 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5544
5545 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
5546
5547 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
5548
5549 PR tree-optimization/71077
5550 PR tree-optimization/68542
5551 * fold-const.c (fold_relational_const): Fix folding of
5552 VECTOR_CST comparisons that have a scalar boolean result type.
5553 (selftest::test_vector_folding): New static function.
5554 (selftest::fold_const_c_tests): Call it.
5555
5556 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
5557
5558 * doc/extend.texi (SPU Built-in Functions): Remove stale
5559 references to material formerly at IBM and Sony.
5560
5561 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
5562
5563 PR target/77349
5564 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
5565
5566 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5567
5568 * diagnostic-show-locus.c
5569 (selftest::test_fixit_consolidation): New function.
5570 (selftest::diagnostic_show_locus_c_tests): Call it.
5571 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
5572 constructor based on source_range.
5573
5574 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5575
5576 * diagnostic-color.c (color_dict): Add "fixit-insert" and
5577 "fixit-delete".
5578 (parse_gcc_colors): Update description of default GCC_COLORS.
5579 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
5580 (colorizer::set_fixit_insert): New method.
5581 (colorizer::set_fixit_delete): New method.
5582 (colorizer::get_color_by_name): New method.
5583 (colorizer::STATE_FIXIT_INSERT): New constant.
5584 (colorizer::STATE_FIXIT_DELETE): New constant.
5585 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
5586 fields in favor of new field "m_stop_color". Add fields
5587 "m_fixit_insert" and "m_fixit_delete".
5588 (colorizer::colorizer): Update for above changes. Replace
5589 colorize_start calls with calls to get_color_by_name.
5590 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
5591 STATE_FIXIT_DELETE. Update for field renamings.
5592 (colorizer::finish_state): Simplify by using m_stop_color,
5593 rather than multiple identical "*_ce" fields.
5594 (colorizer::get_color_by_name): New method.
5595 (layout::print_any_fixits): Print insertions and replacements
5596 using the "fixit-insert" color, and deletions using the
5597 "fixit-delete" color.
5598 * doc/invoke.texi (-fdiagnostics-color): Update description of
5599 default GCC_COLORS, and of the supported capabilities.
5600
5601 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
5602
5603 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
5604 current_function_static_stack_size variable with the static
5605 stack frame size of the current function when
5606 flag_stack_usage_info is enabled.
5607
5608 2016-08-26 Nathan Sidwell <nathan@acm.org>
5609
5610 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
5611 assignment inside if condition.
5612
5613 2016-08-26 Richard Biener <rguenther@suse.de>
5614
5615 PR tree-optimization/69047
5616 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
5617 extracts similar to what FRE does.
5618 (non_rewritable_mem_ref_base): Likewise.
5619
5620 2016-08-26 Joseph Myers <joseph@codesourcery.com>
5621
5622 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
5623 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5624 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5625 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5626 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
5627 Likewise.
5628 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5629 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5630 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5631 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
5632 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5633
5634 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5635
5636 PR target/70473
5637 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
5638 reservation duration to 15 cycles.
5639 (cortex_a8_vfp_macs): Likewise.
5640 (cortex_a8_vfp_macd): Likewise.
5641 (cortex_a8_vfp_divs): Likewise.
5642 (cortex_a8_vfp_divd): Likewise.
5643
5644 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5645
5646 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5647 (aarch_macro_fusion_pair_p): Use above to avoid early return.
5648
5649 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5650 Martin Jambhor <mjambor@suse.cz>
5651
5652 * common.opt: New option -fipa-bit-cp.
5653 * doc/invoke.texi: Document -fipa-bit-cp.
5654 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5655 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5656 * tree-ssa-ccp.h: New header file.
5657 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5658 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5659 Replace all occurences of tree parameter by two new params: signop, int.
5660 (bit_value_unop_1): Change to bit_value_unop and export it.
5661 Replace all occurences of tree parameter by two new params: signop,
5662 int.
5663 (bit_value_binop): Change call from bit_value_binop_1 to
5664 bit_value_binop.
5665 (bit_value_assume_aligned): Likewise.
5666 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5667 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5668 to ccp_finalize.
5669 (ccp_finalize): Skip processing if val->mask == 0.
5670 * ipa-cp.c: Include tree-ssa-ccp.h
5671 (ipcp_bits_lattice): New class.
5672 (ipcp_param_lattice (bits_lattice): New member.
5673 (print_all_lattices): Call ipcp_bits_lattice::print.
5674 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5675 (initialize_node_lattices): Likewise.
5676 (propagate_bits_accross_jump_function): New function.
5677 (propagate_constants_accross_call): Call
5678 propagate_bits_accross_jump_function.
5679 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5680 (ipcp_store_bits_results): New function.
5681 (ipcp_driver): Call ipcp_store_bits_results.
5682 * ipa-prop.h (ipa_bits): New struct.
5683 (ipa_jump_func): Add new member bits of type ipa_bits.
5684 (ipa_param_descriptor): Change decl to decl_or_type.
5685 (ipa_get_param): Change decl to decl_or_type and assert on
5686 PARM_DECL.
5687 (ipa_get_type): New function.
5688 (ipcp_transformation_summary): New member bits.
5689 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5690 (ipa_populate_param_decls): Likewise.
5691 (ipa_dump_param): Likewise.
5692 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5693 function.
5694 (ipa_set_jf_unknown): Set ipa_bits::known to false.
5695 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5696 propagation.
5697 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5698 (ipa_write_jump_function): Add streaming for ipa_bits.
5699 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5700 (write_ipcp_transformation_info): Add streaming for ipa_bits
5701 summary for ltrans.
5702 (read_ipcp_transfomration_info): Add support for reading streamed
5703 ipa_bits.
5704 (ipcp_update_bits): New function.
5705 (ipcp_transform_function): Call ipcp_update_bits.
5706
5707 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5708
5709 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5710 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5711
5712 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
5713
5714 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5715
5716 2016-08-25 Richard Biener <rguenther@suse.de>
5717
5718 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5719 Only add locations in late dwarf.
5720 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5721 (dwarf2out_early_finish): But do it here.
5722
5723 2016-08-24 Michael Collison <michael.collison@linaro.org>
5724 Michael Collison <michael.collison@arm.com>
5725
5726 * config/arm/arm-modes.def: Add new condition code mode CC_V
5727 to represent the overflow bit.
5728 * config/arm/arm.c (maybe_get_arm_condition_code):
5729 Add support for CC_Vmode.
5730 (arm_gen_unlikely_cbranch): New function to generate common
5731 rtl conditional branches for overflow patterns.
5732 * config/arm/arm-protos.h: Add prototype for
5733 arm_gen_unlikely_cbranch.
5734 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5735 addsi3_compareV_upper): New patterns to support signed
5736 builtin overflow add operations.
5737 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5738 New patterns to support unsigned builtin add overflow operations.
5739 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5740 builtin overflow subtract operations,
5741 (usubv<mode>4): New patterns to support unsigned builtin subtract
5742 overflow operations.
5743 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5744 to support builtin overflow negate operations.
5745
5746 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5747
5748 Revert
5749 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5750
5751 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5752 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5753 needed.
5754
5755 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5756
5757 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5758 MULTILIB_OPTIONS should be used. Small wording fixes.
5759 * genmultilib: Memorize set of all option combinations in
5760 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
5761 found in MULTILIB_OPTIONS by checking if option set is listed in
5762 combination_space. Output new and existing error message to stderr.
5763
5764 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5765
5766 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5767 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5768 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5769 (MULTILIB_REUSE): Remove reuse rules for option set including
5770 -mfpu=fp-armv8 and -mfpu=vfpv4
5771
5772 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
5773
5774 * config/arm/t-rtems: Add vfp multilib.
5775
5776 2016-08-23 Ian Lance Taylor <iant@golang.org>
5777
5778 * config/s390/s390.c (s390_asm_file_start): Call
5779 default_file_start.
5780
5781 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5782
5783 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5784 initialization of all 0's to the 0 constant, instead of directly
5785 generating XOR. Add support for V4SImode vector initialization on
5786 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5787 initialization. Change variables used in V4SFmode vector
5788 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5789 any memory addresses are in index form. Add support for using
5790 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5791 with all of the same element.
5792 (regno_or_subregno): New helper function to return a register
5793 number for either REG or SUBREG.
5794 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5795 Use regno_or_subregno where possible.
5796 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5797 DImode value from two SImode values in order to generate V4SImode
5798 vector initialization on 64-bit systems with direct move.
5799 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5800 initialization.
5801 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5802 swappable.
5803 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5804 declaration.
5805 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5806 attributes to initialize V8HImode and V16QImode vectors with the
5807 same element.
5808 (VSX_SPLAT_COUNT): Likewise.
5809 (VSX_SPLAT_SUFFIX): Likewise.
5810 (UNSPEC_VSX_VEC_INIT): New unspec.
5811 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5812 Allow SFmode values to come from Altivec registers.
5813 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5814 on 64-bit systems with direct move.
5815 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5816 vector initializations, to allow V4SImode vector initializations
5817 on 64-bit systems with direct move.
5818 (vsx_splat_v4si): Likewise.
5819 (vsx_splat_v4si_di): Likewise.
5820 (vsx_splat_v4sf): Likewise.
5821 (vsx_splat_v4sf_internal): Likewise.
5822 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5823 register classes.
5824 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5825 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5826 initializing V8HImode and V16QImode vectors with the same
5827 element.
5828 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5829 optimization if -maltivec=be.
5830
5831 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5832
5833 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5834 attribute for alternatives 3 and 4.
5835
5836 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5837
5838 * selftest.c (selftest::assert_str_contains): New function.
5839 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5840 * selftest.h (selftest::assert_str_contains): New decl.
5841 (ASSERT_STR_CONTAINS): New macro.
5842
5843 2016-08-23 Richard Biener <rguenther@suse.de>
5844
5845 PR tree-optimization/77286
5846 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5847 the CFG here.
5848 (vect_transform_loop): Split exit edges of loop and scalar
5849 loop if required and at the appropriate time.
5850
5851 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5852
5853 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5854 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5855 needed.
5856 Correct a typo in a comment.
5857
5858 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5859
5860 * config/s390/s390.md ("*andc_split"): New splitter for and with
5861 complement.
5862
5863 2016-08-23 Richard Biener <rguenther@suse.de>
5864
5865 PR tree-optimization/27336
5866 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5867 by looking for a non-EH edge.
5868 (process_assert_insertions_for): Likewise.
5869
5870 2016-08-23 Richard Biener <rguenther@suse.de>
5871
5872 PR middle-end/77305
5873 * statistics.c (statistics_counter_event): Robustify against
5874 NULL current_pass.
5875
5876 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5877
5878 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5879 for targets amdfam10 and barcelona.
5880
5881 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5882
5883 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5884 (zero_extend<mode>di2): Ditto.
5885 (*zero_extend<mode>si2): Ditto.
5886 (*zero_extendqihi2): Ditto.
5887
5888 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5889
5890 PR middle-end/77269
5891 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5892 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5893
5894 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5895
5896 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5897 identical consecutive elements.
5898 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5899 the node's def stmt, avoid printing an unwanted trailing newline by
5900 replacing the call to print_gimple_stmt() with its inlined body and
5901 adjusting it to not set pp_needs_newline and to call pp_flush()
5902 instead of pp_newline_and_flush().
5903
5904 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5905
5906 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5907 (float32_type_node, float64_type_node, float32x_type_node)
5908 (float128x_type_node): New macros.
5909 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5910 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5911 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5912 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5913 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5914 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5915 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5916 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5917 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5918 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5919 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5920 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5921 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5922 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5923 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5924 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5925 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5926 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5927 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5928 and copysign.
5929 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5930 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5931 * doc/extend.texi (Other Builtins): Document these built-in
5932 functions.
5933 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5934 for nan and nans.
5935
5936 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5937
5938 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5939
5940 2016-08-22 Richard Biener <rguenther@suse.de>
5941
5942 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5943
5944 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5945
5946 PR target/77270
5947 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5948 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5949 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5950
5951 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5952
5953 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5954 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5955 (vrp_visit_switch_stmt): Likewise.
5956 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5957 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5958 (vrp_visit_stmt): Use extract_range_from_stmt.
5959 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5960
5961 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5962
5963 * Makefile.in: Add tree-vrp.h to GTFILES.
5964 * gengtype.c (open_base_files): Add tree-vrp.h.
5965 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5966 * builtins.c: Likewise.
5967 * fold-const.c: Likewise.
5968 * gimple-builder.c: Likewise.
5969 * gimple-laddress.c: Likewise.
5970 * hsa-gen.c: Likewise.
5971 * internal-fn.c: Likewise.
5972 * ssa.h: Likewise.
5973 * targhooks.c: Liewise,
5974 * tree-ssa-address.c: Likewise.
5975 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5976 * tree-vrp.c (struct value_range): Move to tree-vrp.h
5977 * tree-vrp.h: New file.
5978
5979 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5980
5981 PR tree-optimization/61839
5982 * tree-vrp.c (two_valued_val_range_p): New.
5983 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5984 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5985 Also Convert VAR BINOP CST where VAR is two-valued to
5986 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5987
5988 2016-08-19 David Malcolm <dmalcolm@redhat.com>
5989
5990 * diagnostic-show-locus.c
5991 (layout::annotation_line_showed_range_p): New method.
5992 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5993 Reimplement case fixit_hint::REPLACE to cover removals, and
5994 replacements where the range of the replacement isn't one
5995 of the ranges in the rich_location.
5996 (test_one_liner_fixit_replace): Likewise.
5997 (selftest::test_one_liner_fixit_replace_non_equal_range): New
5998 function.
5999 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
6000 New function.
6001 (selftest::test_diagnostic_show_locus_one_liner): Call the new
6002 functions.
6003 * diagnostic.c (print_parseable_fixits): Remove case
6004 fixit_hint::REMOVE.
6005
6006 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
6007
6008 PR target/77270
6009 * config/i386/i386.c (ix86_option_override_internal): Remove
6010 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
6011 Enable SSE prefetch also for TARGET_PREFETCHWT1.
6012 Do not try to enable TARGET_PRFCHW ISA flag here.
6013 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
6014 Rewrite expander function body.
6015 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
6016
6017 2016-08-19 Joseph Myers <joseph@codesourcery.com>
6018
6019 PR c/32187
6020 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
6021 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
6022 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
6023 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
6024 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
6025 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
6026 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
6027 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
6028 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
6029 tree_index values.
6030 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
6031 macros.
6032 (struct floatn_type_info): New structure type.
6033 (floatn_nx_types): New variable declaration.
6034 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
6035 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
6036 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
6037 * tree.c (floatn_nx_types): New variable.
6038 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
6039 corresponding complex types.
6040 * target.def (floatn_mode): New hook.
6041 * targhooks.c: Include "real.h".
6042 (default_floatn_mode): New function.
6043 * targhooks.h (default_floatn_mode): New prototype.
6044 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
6045 types.
6046 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
6047 effective-target and dg-add-options keywords.
6048 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
6049 Document new effective-target keywords.
6050 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
6051 * doc/tm.texi: Regenerate.
6052 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
6053 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
6054 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
6055 18661-3.
6056 * real.h (struct real_format): Add field ieee_bits.
6057 * real.c (ieee_single_format, mips_single_format)
6058 (motorola_single_format, spu_single_format, ieee_double_format)
6059 (mips_double_format, motorola_double_format)
6060 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
6061 (ieee_extended_intel_128_format)
6062 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
6063 (mips_extended_format, ieee_quad_format, mips_quad_format)
6064 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
6065 (decimal_double_format, decimal_quad_format, ieee_half_format)
6066 (arm_half_format, real_internal_format: Initialize ieee_bits
6067 field.
6068 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
6069 float128_type_node. Set float80_type_node to float64x_type_node
6070 if appropriate and long_double_type_node not appropriate.
6071 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
6072 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
6073 Initialize ieee_bits field.
6074 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
6075 (rs6000_init_builtins): Set ieee128_float_type_node to
6076 float128_type_node.
6077 (rs6000_floatn_mode): New function.
6078
6079 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6080
6081 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6082 _rdseed64_step): Uglify argument names and/or local variable names
6083 in inline functions.
6084 * config/i386/rtmintrin.h (_xabort): Likewise.
6085 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
6086 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
6087 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
6088 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
6089 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
6090 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
6091 _mm_maskz_ternarylogic_epi32): Likewise.
6092 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
6093 __lwpins32, __lwpins64): Likewise.
6094 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
6095 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
6096 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
6097 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
6098 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
6099 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
6100 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
6101 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
6102 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
6103 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
6104 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
6105 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
6106 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
6107 _mm256_mask_i64gather_epi32): Likewise.
6108 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6109 * config/i386/ia32intrin.h (__writeeflags): Likewise.
6110 * config/i386/pkuintrin.h (_wrpkru): Likewise.
6111 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
6112 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
6113 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
6114 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
6115 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
6116 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
6117 _mm512_mask_prefetch_i64scatter_ps): Likewise.
6118 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6119 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
6120 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
6121 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
6122 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
6123 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
6124 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
6125 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
6126
6127 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
6128 returning void.
6129 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
6130 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
6131 Likewise.
6132 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
6133 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
6134 function name.
6135 (_rdpkru_u32): Add space after function name.
6136
6137 * config/i386/t-i386 (i386-c.o): Don't depend on
6138 i386-builtin-types.inc.
6139 (i386.o): Depend on i386-builtin-types.inc.
6140
6141 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
6142
6143 PR target/77281
6144 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
6145 Use const_vec_duplicate to check for duplicated elements.
6146
6147 2016-08-19 Richard Biener <rguenther@suse.de>
6148
6149 PR tree-optimization/77290
6150 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6151 Fix flag_tree_parallelize_loops check.
6152
6153 2016-08-19 Richard Biener <rguenther@suse.de>
6154
6155 * match.pd (x | 0 -> x): Add.
6156
6157 2016-08-19 Richard Biener <rguenther@suse.de>
6158
6159 PR tree-optimization/77286
6160 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6161 Deal with virtual PHIs being out-of-order.
6162
6163 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6164
6165 * doc/invoke.texi (fverbose-asm): Note that source code lines
6166 are emitted, and provide an example.
6167 * final.c (asm_show_source): New function.
6168 (final_scan_insn): Call asm_show_source.
6169
6170 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6171
6172 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
6173 param with diagnostic_kind.
6174 (class colorizer): Similarly replace field m_diagnostic with
6175 m_diagnostic_kind.
6176 (colorizer::colorizer): Replace diagnostic
6177 param with diagnostic_kind.
6178 (colorizer::begin_state): Update for above field change.
6179 (layout::layout): Replace diagnostic param with rich_location *
6180 and diagnostic_kind.
6181 (diagnostic_show_locus): Replace diagnostic param with richloc
6182 and diagnostic_kind.
6183 (class selftest::test_diagnostic_context): New class.
6184 (selftest::test_diagnostic_show_locus_unknown_location): New
6185 function.
6186 (selftest::test_one_liner_simple_caret): New function.
6187 (selftest::test_one_liner_caret_and_range): New function.
6188 (selftest::test_one_liner_multiple_carets_and_ranges): New
6189 function.
6190 (selftest::test_one_liner_fixit_remove): New function.
6191 (selftest::test_one_liner_fixit_replace): New function.
6192 (selftest::test_diagnostic_show_locus_one_liner): New function.
6193 (selftest::diagnostic_show_locus_c_tests): Call the new test
6194 functions.
6195 * diagnostic.c (diagnostic_initialize): Initialize
6196 colorize_source_p, show_ruler_p and parseable_fixits_p.
6197 (default_diagnostic_finalizer): Update for change to
6198 diagnostic_show_locus.
6199 (diagnostic_append_note): Likewise.
6200 * diagnostic.h (diagnostic_show_locus): Replace
6201 const diagnostic_info * param with location * and diagnostic_t.
6202
6203 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6204
6205 * input.c (saved_line_table): New global.
6206 (class selftest::temp_line_table): Rename to line_table_test and
6207 move declaration to selftest.h, and drop field m_old_line_table.
6208 (selftest::temp_line_table::temp_line_table): Rename ctor to...
6209 (selftest::line_table_test::line_table_test): ...this. Add a
6210 default ctor. Store current value of line_table within
6211 saved_line_table.
6212 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
6213 (selftest::line_table_test::~line_table_test): ...this, and
6214 restore line_table from the saved_line_table, rather than
6215 m_old_line_table.
6216 (selftest::test_accessing_ordinary_linemaps): Update for above
6217 renaming.
6218 (selftest::test_lexer): Likewise.
6219 (struct selftest::lexer_test): Likewise.
6220 (selftest::lexer_test::lexer_test): Likewise.
6221 (selftest::input_c_tests): Move the looping over test cases from
6222 here into...
6223 (selftest::for_each_line_table_case): New function.
6224 * input.h (saved_line_table): New decl.
6225 * selftest.h (struct selftest::line_table_case): New forward decl.
6226 (class selftest::line_table_test): New class, moved here from
6227 selftest::temp_line_table in input.c, and renamed.
6228 (selftest::for_each_line_table_case): New decl.
6229
6230 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
6231
6232 PR target/72839
6233 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6234
6235 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6236
6237 PR middle-end/70895
6238 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
6239 enclosing parallel construct for reduction variables on OpenACC loop
6240 directives.
6241
6242 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
6243
6244 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
6245 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
6246 -gdwarf-3.
6247 (function_to_dwarf_procedure): Update comment.
6248
6249 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6250
6251 * input.c (diagnostics_file_cache_forcibly_evict_file): New
6252 function.
6253 * input.h (diagnostics_file_cache_forcibly_evict_file): New
6254 declaration.
6255 * selftest.c (selftest::temp_source_file::~temp_source_file):
6256 Evict m_filename from the diagnostic file cache.
6257
6258 2016-08-18 Richard Biener <rguenther@suse.de>
6259
6260 * tree-pass.h (make_pass_materialize_all_clones): Declare.
6261 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
6262 make_pass_materialize_all_clones): New simple IPA pass encapsulating
6263 clone materialization.
6264 * passes.def (all_late_ipa_passes): Start with
6265 pass_materialize_all_clones.
6266 * cgraphunit.c (symbol_table::compile): Remove call to
6267 materialize_all_clones.
6268 * tree-into-ssa.c: Include statistics.h.
6269 (update_ssa): Count number of times we do incremental/rewrite
6270 SSA update.
6271
6272 2016-08-18 Richard Biener <rguenther@suse.de>
6273
6274 PR tree-optimization/77282
6275 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6276 When doing auto-parallelizing also prevent use of PHIs that
6277 carry dependences across loop backedges.
6278
6279 2016-08-18 Tamar Christina <tamar.christina@arm.com>
6280 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6281
6282 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
6283
6284 2016-08-18 Richard Biener <rguenther@suse.de>
6285
6286 * ssa-iterators.h (ssa_vuse_operand): New inline.
6287 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
6288 (predicate_all_scalar_phis): Use remove_phi_node to remove
6289 phi nodes predicated. Delay removing virtual PHIs.
6290 (predicate_mem_writes): Update virtual operands.
6291 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
6292 (tree_if_conversion): Do not rewrite virtual SSA form.
6293 * tree-phinodes.c (release_phi_node): Make static.
6294 * tree-phinodes.h (release_phi_node): Remove.
6295
6296 2016-08-18 Jakub Jelinek <jakub@redhat.com>
6297
6298 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
6299 codes that appear in bdesc_* arrays, instead include i386-builtin.def
6300 twice to define those.
6301 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
6302 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
6303 bdesc_multi_arg): Define by including i386-builtin.def the third time.
6304 * config/i386/i386-builtin.def: New file.
6305
6306 2016-08-17 David Malcolm <dmalcolm@redhat.com>
6307
6308 * input.c (get_source_range_for_char): Rename to...
6309 (selftest::get_source_range_for_char): ...this, and move within
6310 the #if CHECKING_P guard.
6311 (get_num_source_ranges_for_substring): Rename to...
6312 (selftest::get_num_source_ranges_for_substring): ...this, move
6313 within the #if CHECKING_P guard, and make static.
6314 (selftest::assert_num_substring_ranges): Initialize
6315 actual_num_ranges.
6316
6317 2016-08-18 Alan Modra <amodra@gmail.com>
6318
6319 PR rtl-optimization/72771
6320 * reload.c (find_reloads): Don't assume that a subreg mem is OK
6321 when find_reloads_toplev returns address_reloaded==-1.
6322 (alternative_allows_const_pool_ref): Update comment.
6323
6324 2015-08-17 Alan Hayward <alan.hayward@arm.com>
6325
6326 PR tree-optimization/71752
6327 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
6328 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
6329
6330 2016-08-17 Jakub Jelinek <jakub@redhat.com>
6331
6332 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
6333 instead of testing ECF_NORETURN bit in gimple_call_flags.
6334 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
6335 * predict.c (tree_bb_level_predictions): Likewise.
6336 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
6337
6338 PR middle-end/77259
6339 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
6340 turning a call into __builtin_unreachable-like noreturn call, adjust
6341 gimple_call_set_fntype.
6342 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
6343 gimple_call_fntype has void return type.
6344
6345 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
6346
6347 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
6348 maybe_lookup_decl, to handle nested acc loop directives.
6349
6350 2016-08-17 Richard Biener <rguenther@suse.de>
6351
6352 PR tree-optimization/76490
6353 * tree-vrp.c (update_value_range): Preserve overflow infinities
6354 when intersecting with ranges from get_range_info.
6355 (operand_less_p): Handle overflow infinities correctly.
6356 (value_range_constant_singleton): Use vrp_operand_equal_p
6357 to handle overflow max/min correctly.
6358 (vrp_valueize): Likewise.
6359 (union_ranges): Likewise.
6360 (intersect_ranges): Likewise.
6361 (vrp_visit_phi_node): Improve iteration limitation to only
6362 apply when we'll possibly re-visit the PHI via a changed argument
6363 on the backedge.
6364
6365 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6366
6367 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
6368 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
6369 rather than those that should not be built.
6370
6371 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
6372
6373 PR target/66488
6374 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
6375
6376 2016-08-17 Richard Biener <rguenther@suse.de>
6377
6378 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
6379 (verify_vssa): New function verifying virtual SSA form.
6380 (verify_ssa): Call it.
6381 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
6382 Do not apply loop-closed SSA handling to virtuals.
6383 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
6384 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
6385 when rewriting their symbol.
6386 (prepare_def_site_for): Likewise.
6387 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
6388 operands of moved stmts.
6389
6390 2016-08-17 Richard Biener <rguenther@suse.de>
6391
6392 PR tree-optimization/23855
6393 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
6394 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
6395 find guards to hoist. Do not update SSA form but rewrite virtuals
6396 into loop closed SSA.
6397 (find_loop_guard): Adjust to skip already hoisted guards. Do
6398 not mark virtuals for renaming or update SSA form.
6399
6400 2016-08-17 Martin Liska <mliska@suse.cz>
6401
6402 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
6403 a LONG_LONG_TYPE_SIZE comparison.
6404 * gcov-io.h: Remove macro definitions.
6405 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
6406 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
6407 comparison.
6408
6409 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6410
6411 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
6412 that builtins not mentioned in bdesc_* arrays come first, then
6413 the ones mentioned in bdesc_* arrays in the order they appear in
6414 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
6415 IX86_BUILTIN__BDESC_*_LAST enumerator.
6416 (bdesc_mpx): Fix up a comment typo.
6417 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
6418 __builtin_ia32_vpcomneu[bwdq] builtins.
6419 (BDESC_VERIFY, BDESC_VERIFYS): Define.
6420 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
6421 enum ix86_builtins ordering.
6422 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
6423 for direct bdesc_* array member access instead of searching all the
6424 arrays until an fcode match is found.
6425
6426 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
6427
6428 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
6429 pattern as define_insn_and_split. Split insn before reload to
6430 ashl<mode>3_1.
6431 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
6432 <shift_insn><mode>3_1.
6433 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
6434 <rotate_insn><mode>3_1.
6435
6436 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6437
6438 PR c/72857
6439 * input.c (get_source_range_for_substring): Rename to...
6440 (get_source_location_for_substring): ...this, adding param
6441 "caret_idx", and converting output param from source_range * to
6442 location_t *.
6443 (get_source_range_for_char): New function.
6444 (get_num_source_ranges_for_substring): Update comment to reflect
6445 above renaming.
6446 (assert_char_at_range): Update to use get_source_range_for_char
6447 rather than get_source_range_for_substring.
6448 (test_lexer_string_locations_concatenation_2): Likewise.
6449 * substring-locations.h (get_source_range_for_substring): Rename
6450 to...
6451 (get_source_location_for_substring): ...this, and adding param
6452 "caret_idx", and converting output param from source_range * to
6453 location_t *.
6454
6455 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6456
6457 * input.c (class selftest::temp_source_file): Move to
6458 selftest.h.
6459 (selftest::temp_source_file::temp_source_file): Move to
6460 selftest.c.
6461 (selftest::temp_source_file::~temp_source_file): Likewise.
6462 * selftest.c (selftest::temp_source_file::temp_source_file): Move
6463 here from input.c.
6464 (selftest::temp_source_file::~temp_source_file): Likewise.
6465 * selftest.h (class selftest::temp_source_file): Move here from
6466 input.c
6467
6468 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6469
6470 PR target/71910
6471 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
6472 inlining, add cgraph edge for the added __builtin_unreachable call.
6473
6474 PR middle-end/67485
6475 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
6476 only cast it to SHWI for the final comparison.
6477
6478 2016-08-16 Martin Liska <mliska@suse.cz>
6479
6480 PR gcov-profile/36412
6481 * doc/gcov.texi: Document --hash-filenames(-x).
6482 * gcov.c (print_usage): Add the option.
6483 (process_args): Process the option, sort options alphabetically.
6484 (md5sum_to_hex): New function.
6485 (make_gcov_file_name): Do the md5sum and append it to a
6486 filename.
6487
6488 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6489
6490 PR tree-optimization/69848
6491 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
6492 and swtich operands to avoid additional NOT instruction.
6493 (vcond<v_cmp_mixed><mode>): Ditto.
6494 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6495
6496 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
6497
6498 * doc/install.texi (*-*-solaris2*): Adjust latest change.
6499
6500 2016-08-16 Richard Biener <rguenther@suse.de>
6501
6502 PR tree-optimization/76783
6503 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
6504 BB visited flags at start.
6505
6506 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6507
6508 PR tree-optimization/72817
6509 PR tree-optimization/73450
6510 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
6511 multiple_of_p for adjusted IV.base.
6512
6513 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
6514
6515 PR target/72867
6516 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
6517 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
6518 for !flag_finite_math_only or flag_signed_zeros.
6519 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
6520 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
6521 depend on flag_finite_math_only.
6522 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6523 New insn pattern.
6524 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
6525 (*ieee_smin<mode>3): Ditto.
6526 (*ieee_smax<mode>3): Ditto.
6527 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
6528 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
6529 flag_signed_zeros.
6530 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
6531 depend on flag_finite_math_only.
6532 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
6533 (*mmx_<code>v2sf3): Remove.
6534 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
6535 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
6536 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
6537
6538 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
6539
6540 PR rtl-optimization/73650
6541 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
6542 it is not a simple move.
6543
6544 2016-08-15 Martin Liska <mliska@suse.cz>
6545
6546 PR driver/72765
6547 * gcc.c (do_spec_1): Call save_string with the right size.
6548 (save_string): Do an assert about string we copy.
6549
6550 2016-08-15 Richard Biener <rguenther@suse.de>
6551
6552 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
6553 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
6554 TV_MACH_DEP.
6555 (pass_data_stv): Likewise.
6556
6557 2016-08-15 Richard Biener <rguenther@suse.de>
6558
6559 PR tree-optimization/73434
6560 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
6561 TBAA info on the base when forwarding a non-invariant address.
6562
6563 2016-08-15 Jakub Jelinek <jakub@redhat.com>
6564
6565 * dwarf2out.c (struct checksum_attributes): Add
6566 at_string_length_bit_size and at_string_length_byte_size fields.
6567 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
6568 and DW_AT_string_length_byte_size.
6569 (die_checksum_ordered): Handle at_string_length_bit_size and
6570 at_string_length_byte_size.
6571 (gen_array_type_die): For dwarf_version >= 5 emit
6572 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6573 (adjust_string_types): For dwarf_version >= 5 remove
6574 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6575 (resolve_addr): Likewise.
6576
6577 PR debug/71906
6578 * dwarf2out.c (string_types): New variable.
6579 (gen_array_type_die): Change early_dwarf handling of
6580 DW_AT_string_length, create DW_OP_call4 referencing the
6581 length var temporarily. Handle parameters that are pointers
6582 to string length.
6583 (adjust_string_types): New function.
6584 (gen_subprogram_die): Temporarily set string_types to local var,
6585 call adjust_string_types if needed.
6586 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
6587 New functions.
6588 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
6589
6590 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
6591
6592 * doc/install.texi (*-*-solaris2*): Fix version number and document
6593 requirement on GNU make for building libjava with the Solaris linker.
6594
6595 2016-08-15 Martin Liska <mliska@suse.cz>
6596 Jakub Jelinek <jakub@redhat.com>
6597
6598 PR tree-optimization/72824
6599 * tree-loop-distribution.c (const_with_all_bytes_same)
6600 <case VECTOR_CST>: Fix a typo.
6601
6602 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
6603
6604 PR target/76342
6605 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
6606 Renamed from _mm512_undefined_si512.
6607 (_mm_undefined_si512): New definition.
6608
6609 2016-08-13 Richard Biener <rguenther@suse.de>
6610
6611 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
6612 into PHIs and update the lattice for its def.
6613
6614 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6615
6616 PR c/71512
6617 * ubsan.c (instrument_si_overflow): Pass true instead of false
6618 to gsi_replace.
6619 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
6620 of bbs. Return TODO_cleanup_cfg if any returned true.
6621
6622 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6623
6624 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
6625 ISA 3.0 MTVSRDD instruction.
6626 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
6627 vecperm.
6628
6629 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
6630
6631 PR tree-optimization/71083
6632 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
6633 bitfield access when possible.
6634
6635 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
6636
6637 PR middle-end/71654
6638 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
6639 sign-changing cast from a shorter unsigned type to a wider
6640 signed type.
6641
6642 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6643
6644 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6645 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6646 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6647
6648 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6649
6650 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6651 Correct costs for vec_construct.
6652
6653 2016-08-12 Bin Cheng <bin.cheng@arm.com>
6654
6655 PR tree-optimization/69848
6656 * tree-vectorizer.h (enum vect_def_type): New condition reduction
6657 type CONST_COND_REDUCTION.
6658 * tree-vect-loop.c (vectorizable_reduction): Support new condition
6659 reudction type CONST_COND_REDUCTION.
6660
6661 2016-08-12 Richard Biener <rguenther@suse.de>
6662
6663 PR tree-optimization/57326
6664 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6665 returning an SSA name.
6666 (phi_translate_1): When fully_constant_expression returns a NAME
6667 make sure we have a leader for it.
6668
6669 2016-08-12 Martin Liska <mliska@suse.cz>
6670 Adam Fineman <afineman@afineman.com>
6671
6672 * gcov.c (process_file): Create .gcov file when .gcda
6673 file is missing.
6674
6675 2016-08-12 Marek Polacek <polacek@redhat.com>
6676
6677 PR c/7652
6678 * alias.c (find_base_value): Adjust fall through comment.
6679 * cfgexpand.c (expand_debug_expr): Likewise.
6680 * combine.c (find_split_point): Likewise.
6681 (expand_compound_operation): Likewise. Add FALLTHRU.
6682 (make_compound_operation): Adjust fall through comment.
6683 (canon_reg_for_combine): Add FALLTHRU.
6684 (force_to_mode): Adjust fall through comment.
6685 (simplify_shift_const_1): Likewise.
6686 (simplify_comparison): Likewise.
6687 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6688 FALLTHRU.
6689 * config/aarch64/predicates.md: Likewise.
6690 * config/i386/i386.c (function_arg_advance_32): Likewise.
6691 (ix86_gimplify_va_arg): Likewise.
6692 (print_reg): Likewise.
6693 (ix86_print_operand): Likewise.
6694 (ix86_build_const_vector): Likewise.
6695 (ix86_expand_branch): Likewise.
6696 (ix86_sched_init_global): Adjust fall through comment.
6697 (ix86_expand_args_builtin): Add FALLTHRU.
6698 (ix86_expand_builtin): Likewise.
6699 (ix86_expand_vector_init_one_var): Likewise.
6700 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6701 (rs6000_adjust_cost): Likewise.
6702 (insn_must_be_first_in_group): Likewise.
6703 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
6704 * dbxout.c (dbxout_symbol): Adjust fall through comment.
6705 * df-scan.c (df_uses_record): Likewise.
6706 * dojump.c (do_jump): Add FALLTHRU.
6707 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
6708 comment.
6709 (resolve_args_picking_1): Adjust fall through comment.
6710 (loc_list_from_tree_1): Likewise.
6711 * expmed.c (make_tree): Likewise.
6712 * expr.c (expand_expr_real_2): Add FALLTHRU.
6713 (expand_expr_real_1): Likewise. Adjust fall through comment.
6714 * fold-const.c (const_binop): Adjust fall through comment.
6715 (fold_truth_not_expr): Likewise.
6716 (fold_cond_expr_with_comparison): Add FALLTHRU.
6717 (fold_binary_loc): Likewise.
6718 (contains_label_1): Adjust fall through comment.
6719 (multiple_of_p): Likewise.
6720 * gcov-tool.c (process_args): Add FALLTHRU.
6721 * genattrtab.c (check_attr_test): Likewise.
6722 (write_test_expr): Likewise.
6723 * genconfig.c (walk_insn_part): Likewise.
6724 * genpreds.c (validate_exp): Adjust fall through comment.
6725 (needs_variable): Likewise.
6726 * gensupport.c (get_alternatives_number): Add FALLTHRU.
6727 (subst_dup): Likewise.
6728 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6729 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6730 (gimplify_scan_omp_clauses): Add FALLTHRU.
6731 (goa_stabilize_expr): Likewise.
6732 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6733 through comment.
6734 * hsa-gen.c (get_address_from_value): Likewise.
6735 * ipa-icf.c (sem_function::hash_stmt): Likewise.
6736 * ira.c (ira_setup_alts): Add FALLTHRU.
6737 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6738 comment.
6739 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6740 * opts.c (common_handle_option): Likewise.
6741 * read-rtl.c (read_rtx_code): Likewise.
6742 * real.c (round_for_format): Likewise.
6743 * recog.c (asm_operand_ok): Likewise.
6744 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6745 * reload1.c (set_label_offsets): Likewise.
6746 (eliminate_regs_1): Likewise.
6747 (reload_reg_reaches_end_p): Likewise.
6748 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6749 (rtx_cost): Likewise.
6750 * sched-rgn.c (is_exception_free): Likewise.
6751 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6752 * stor-layout.c (int_mode_for_mode): Likewise.
6753 * toplev.c (print_to_asm_out_file): Likewise.
6754 (print_to_stderr): Likewise.
6755 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6756 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6757 (chrec_fold_multiply): Likewise.
6758 (evolution_function_is_invariant_rec_p): Likewise.
6759 (for_each_scev_op): Likewise.
6760 * tree-data-ref.c (siv_subscript_p): Likewise.
6761 (get_references_in_stmt): Likewise.
6762 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6763 (substitute_in_expr): Likewise.
6764 (type_cache_hasher::equal): Likewise.
6765 (walk_type_fields): Likewise.
6766 * var-tracking.c (adjust_mems): Add FALLTHRU.
6767 (set_dv_changed): Adjust fall through comment.
6768 * varasm.c (default_function_section): Add FALLTHRU.
6769
6770 2016-08-12 Marek Polacek <polacek@redhat.com>
6771
6772 PR c/7652
6773 * tree-complex.c (expand_complex_division): Add missing break.
6774
6775 2016-08-12 Richard Biener <rguenther@suse.de>
6776
6777 * passes.c (execute_todo): Do not push/pop TV_TODO.
6778 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6779 (execute_one_pass): Likewise.
6780 * common.opt (ftime-report-details): New switch.
6781 * doc/invoke.texi (ftime-report-details): Document.
6782 * timevar.h (timer::print_row): Adjust signature.
6783 (timer::all_zero): New static helper.
6784 (timer::child_map_t): New typedef.
6785 (timer::time_var_def): Add children field.
6786 * timevar.c (timer::named_items::print): Adjust.
6787 (timer::~timer): Free timevar recorded children.
6788 (timer::pop_internal): When -ftime-report-details record
6789 time spent in sub-timevars.
6790 (timer::print_row): Adjust.
6791 (timer::print): Print sub-timevar stats, use all_zero.
6792 * timevar.def (TV_TODO): Remove.
6793
6794 2016-08-12 Richard Biener <rguenther@suse.de>
6795
6796 PR tree-optimization/72851
6797 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6798 worklists to use bitmaps indexed in execution order.
6799 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6800 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6801 (cfg_blocks): Make a bitmap.
6802 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6803 New globals.
6804 (cfg_blocks_empty_p): Adjust.
6805 (cfg_blocks_add): Likewise.
6806 (cfg_blocks_get): Likewise.
6807 (add_ssa_edge): Likewise.
6808 (add_control_edge): Likewise.
6809 (simulate_stmt): Likewise.
6810 (process_ssa_edge_worklist): Likewise.
6811 (simulate_block): Likewise.
6812 (ssa_prop_init): Compute PRE order and stmt UIDs.
6813 (ssa_prop_fini): Adjust.
6814 (ssa_propagate): Adjust.
6815
6816 2016-08-12 Richard Biener <rguenther@suse.de>
6817
6818 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6819 the currently executable edges have fixed ranges. Always
6820 go through update_value_range.
6821
6822 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6823
6824 PR debug/63240
6825 * langhooks-def.h
6826 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6827 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6828 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6829 (LANG_HOOKS_DECLS): Add it.
6830 * langhooks.h (struct lang_hooks_for_decls): Add
6831 function_decl_defaulted. Const_tree-ify
6832 function_decl_explicit_p and function_decl_deleted_p.
6833 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6834 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6835 also at strict DWARF v5.
6836
6837 PR debug/55641
6838 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6839 TYPE_QUAL_CONST in reference-typed decls.
6840
6841 PR debug/49366
6842 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6843 in DW_OP_pieces, just enough to handle pointers to member
6844 functions.
6845 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6846 expression on DWARFv5 if a constant value doesn't work.
6847
6848 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6849
6850 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6851 * selftest.c (selftest::test_assertions): New function.
6852 (selftest::selftest_c_tests): New function.
6853 * selftest.h (selftest::selftest_c_tests): New declaration.
6854
6855 2016-08-11 Richard Biener <rguenther@suse.de>
6856 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6857
6858 PR rtl-optimization/72855
6859 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6860
6861 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6862
6863 PR target/72863
6864 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6865 (vsx_store_<mode>): Likewise.
6866
6867 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6870 TImode CONST_WIDE_INT store.
6871 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6872
6873 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6874
6875 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6876 mode if unaligned SSE load and store are optimal.
6877
6878 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6879
6880 PR tree-optimization/71083
6881 * tree-predcom.c (ref_at_iteration): Correctly align the
6882 reference type.
6883
6884 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6885
6886 * config/s390/s390-builtin-types.def: Add INT128 types.
6887 * config/s390/s390-builtins.def: Add INT128 variants for the add
6888 sub low-level builtins dealing with TImode.
6889 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6890 via subreg when expanding a builtin.
6891 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6892 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6893 Fix comment.
6894 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6895 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6896 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6897 "vacc<bhfgq>_<mode>".
6898 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6899 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6900 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6901 "vscbi<bhfgq>_<mode>".
6902 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6903 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6904
6905 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6906
6907 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6908
6909 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6910
6911 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6912 unused declaration.
6913 (vcond<v_cmp_mixed><mode>): Ditto.
6914 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6915
6916 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6917
6918 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6919 variable explicitly, also assert on it before use.
6920
6921 2016-08-11 Richard Biener <rguenther@suse.de>
6922
6923 PR tree-optimization/72772
6924 * cfgloopmanip.c (create_preheader): Use split_edge if there
6925 is a single loop entry, avoiding degenerate PHIs.
6926
6927 2016-08-11 Richard Biener <rguenther@suse.de>
6928
6929 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6930 unconditional TODO_cleanup_cfg.
6931 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6932 cleanup only if we threaded a jump.
6933
6934 2016-08-11 Alan Modra <amodra@gmail.com>
6935
6936 PR target/71680
6937 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6938 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6939 slow. Emit two reloads for slow mem case, first loading in
6940 fast innermode, then converting to required mode.
6941
6942 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6943
6944 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6945 (vec_extract_sig): New macro.
6946 (vec_insert_exp): New macro.
6947 (vec_test_data_class): New macro.
6948 (scalar_extract_exp): New macro.
6949 (scalar_extract_sig): New macro.
6950 (scalar_insert_exp): New macro.
6951 (scalar_test_data_class): New macro.
6952 (scalar_test_neg): New macro.
6953 (scalar_cmp_exp_gt): New macro.
6954 (scalar_cmp_exp_lt): New macro.
6955 (scalar_cmp_exp_eq): New macro.
6956 (scalar_cmp_exp_unordered): New macro.
6957 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6958 to enforce constraint that operand is a 7-bit unsigned literal.
6959 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6960 for power9 built-ins.
6961 (BU_P9V_VSX_2): Likewise.
6962 (BU_P9V_64BIT_VSX_2): Likewise.
6963 (VSEEDP): Add scalar extract exponent support.
6964 (VSEESP): Add scalar extract signature support.
6965 (VSTDCNDP): Add scalar test negative support.
6966 (VSTDCNSP): Likewise.
6967 (VSIEDP): Add scalar insert exponent support.
6968 (VSCEDPGT): Add scalar compare exponent greater than support.
6969 (VSCEDPLT): Add scalar compare exponent less than support.
6970 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6971 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6972 (VSTDCDP): Add scalar test data class support.
6973 (VSTDCSP): Likewise.
6974 (VSEEDP): Add overload support for scalar extract exponent
6975 operation.
6976 (VSESDP): Add overload support for scalar extract signature
6977 operation.
6978 (VSTDCN): Add overload support for scalar test negative
6979 operation.
6980 (VSTDCNDP): Add overload support for scalar test negative
6981 operation.
6982 (VSTDCNSP): Add overload support for scalar test negative
6983 operation.
6984 (VSIEDP): Add overload support for scalar insert exponent
6985 operation.
6986 (VSTDC): Add overload support for scalar test data class
6987 operation.
6988 (VSTDCDP): Add overload support for scalar test data class
6989 operation.
6990 (VSTDCSP): Add overload support for scalar test data class
6991 opreation.
6992 (VSCEDPGT): Add overload support for scalar compare exponent
6993 greater than operation.
6994 (VSCEDPLT): Add overload support for scalar compare exponent
6995 less than operation.
6996 (VSCEDPEQ): Add overload support for scalar compare exponent
6997 test-for-equality operation.
6998 (VSCEDPUO): Add overload support for scalar compare exponent
6999 test-for-unordered operation.
7000 (VEEDP): Add vector extract exponent support.
7001 (VEESP): Likewise.
7002 (VESDP): Add vector extract significand support.
7003 (VESSP): Likewise.
7004 (VIEDP): Add vector insert exponent support.
7005 (VIESP): Likewise.
7006 (VTDCDP): Add vector test data class support.
7007 (VTDCSP): Likewise.
7008 (VES): Add overload support for vector extract significand operation.
7009 (VESDP): Likewise.
7010 (VESSP): Likewise
7011 (VEE): Add overload support for vector extract exponent operation.
7012 (VEEDP): Likewise.
7013 (VEESP): Likewise.
7014 (VTDC): Add overload support for vector test data class operation.
7015 (VTDCDP): Likewise.
7016 (VTDCSP): Likewise.
7017 (VIE): Add overload support for vector insert exponent operation.
7018 (VIEDP): Likewise.
7019 (VIESP): Likewise.
7020 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7021 overloaded binary floating point functions.
7022 (altivec_resolve_overloaded_builtin): Improve error messages to
7023 distinguish between functions not supported in the current
7024 compiler configuration and functions that were invoked with an
7025 invalid parameter combination, and include the built-in function
7026 name in both error messages.
7027 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
7028 New prototype.
7029 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
7030 function.
7031 (rs6000_expand_binop_builtin): Add check to enforce that argument
7032 2 of the test data class operations is a 7-bit unsigned literal.
7033 (rs6000_invalid_builtin): Add code to issue an error message if a
7034 built-in function that requires the power9_vector and -m32
7035 command-line options is compiled without these options.
7036 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
7037 (UNSPEC_VSX_SXSIGDP): New value.
7038 (UNSPEC_VSX_SXSIGPDP): New value.
7039 (UNSPEC_VSX_SIEXPDP): New value.
7040 (UNSPEC_VSX_SCMPEXPDP): New value.
7041 (UNSPEC_VSX_STSTDC): New value.
7042 (UNSPEC_VSX_VXEXP): New value.
7043 (UNSPEC_VSX_VXSIG): New value.
7044 (UNSPEC_VSX_VIEXP): New value.
7045 (UNSPEC_VSX_VTSTDC): New value.
7046 (xsxexpdp): New insn for scalar extract exponent.
7047 (xsxsigdp): New insn for scalar extract significand.
7048 (xsiexpdp): New insn for scalar insert exponent.
7049 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
7050 (*xscmpexpdp): New insn for scalar compare exponents.
7051 (xststdc<Fvsx): New expansion for both single- and
7052 double-precision scalar test data class operations.
7053 (xststdcneg<Fvsx>): New expansion for both single- and
7054 double-precision scalar test for negative value operations.
7055 (*xststdc<Fvsx>): New insn for scalar test data class
7056 operation.
7057 (xvxexp<VSs>): New insn for single- and double-precision
7058 vector extract exponent operation.
7059 (xvxsig<VSs>): New insn for single- and double-precision
7060 vector extract significand operation.
7061 (xviexp<VSs>): New insn for single- and double-precision
7062 vector insert exponent operation.
7063 (xvtstdc<VSs>): New insn for single- and double-precision
7064 vector test data class operation.
7065 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7066 built-in functions to represent the Power9 binary floating-point
7067 support instructions.
7068
7069 2016-08-10 bin cheng <bin.cheng@arm.com>
7070
7071 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
7072
7073 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7074 Renlin Li <renlin.li@arm.com>
7075 Bin Cheng <bin.cheng@arm.com>
7076
7077 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
7078 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
7079 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
7080 (aarch64_vcond_internal<mode><mode>): Delete pattern.
7081 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
7082 (vcond<v_cmp_result><mode>): Ditto.
7083 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
7084 (vcondu<mode><mode>): Ditto.
7085 (vcond<v_cmp_mixed><mode>): New pattern.
7086 (vcondu<mode><v_cmp_mixed>): New pattern.
7087 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
7088 of aarch64_vcond_internal.
7089
7090 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7091 Renlin Li <renlin.li@arm.com>
7092 Bin Cheng <bin.cheng@arm.com>
7093
7094 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
7095 (vec_cmp<mode><v_cmp_result>): New pattern.
7096 (vec_cmpu<mode><mode>): New pattern.
7097 (vcond_mask_<mode><v_cmp_result>): New pattern.
7098
7099 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7100
7101 PR tree-optimization/71734
7102 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
7103 REF_LOOP, invoke ref_indep_loop_p_1.
7104 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
7105 to ref_indep_loop_p.
7106 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
7107 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
7108 is inside LOOP, do not cache dpendence value for loops with
7109 non-zero SAFELEN.
7110 (ref_indep_loop_p_2): Delete function.
7111 (can_sm_ref_p): Pass LOOP as additional argument to
7112 ref_indep_loop_p.
7113
7114 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7115
7116 PR target/72853
7117 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
7118 being an offsettable address.
7119
7120 2016-08-10 Martin Liska <mliska@suse.cz>
7121
7122 PR gcov-profile/58306
7123 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
7124 atomic variants of profile update functions.
7125
7126 2016-08-10 Martin Liska <mliska@suse.cz>
7127
7128 Cherry picked (and modified) from google-4_7 branch
7129 2012-12-26 Rong Xu <xur@google.com>
7130 * common.opt (fprofile-update): Add new flag.
7131 * coretypes.h: Define enum profile_update.
7132 * doc/invoke.texi: Document -fprofile-update.
7133 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
7134 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
7135 * tree-profile.c (gimple_init_edge_profiler): Generate
7136 also atomic profiler update.
7137 (gimple_gen_edge_profiler): Likewise.
7138
7139 2016-08-10 David Malcolm <dmalcolm@redhat.com>
7140
7141 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
7142 stack_usage_file to NULL after fclose calls.
7143
7144 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7145
7146 PR target/71873
7147 * reload.c (push_reload): Compute subreg_in_class for
7148 subregs of constants and plus expressions. Remove special
7149 handling of SYMBOL_REFs.
7150
7151 2016-08-10 Alan Modra <amodra@gmail.com>
7152
7153 PR target/71680
7154 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
7155 SImode for TARGET_E500_DOUBLE when given SImode.
7156
7157 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
7158
7159 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
7160 unused variable __O.
7161
7162 2016-08-09 Martin Liska <mliska@suse.cz>
7163
7164 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
7165 _gcov_reset to __gcov_reset.
7166 * doc/gcov-tool.texi: Fix typo.
7167
7168 2016-08-09 Martin Liska <mliska@suse.cz>
7169
7170 * value-prof.c (gimple_divmod_values_to_profile): Do not
7171 instrument MOD histogram if a value is not a SSA name.
7172
7173 2016-08-09 Martin Liska <mliska@suse.cz>
7174
7175 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
7176 values.
7177
7178 2016-08-09 Renlin Li <renlin.li@arm.com>
7179
7180 PR middle-end/64971
7181 * calls.c (prepare_call_address): Convert funexp to Pmode when
7182 necessary.
7183 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
7184 (sibcall_value): Likewise.
7185
7186 2016-08-09 Marek Polacek <polacek@redhat.com>
7187
7188 PR c/7652
7189 * cselib.c (cselib_expand_value_rtx_1): Add return.
7190 * gengtype.c (dbgprint_count_type_at): Likewise.
7191 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
7192 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
7193
7194 2016-08-09 Martin Jambor <mjambor@suse.cz>
7195
7196 PR ipa/71981
7197 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
7198 if instance is a MEM_REF.
7199
7200 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
7201
7202 PR target/72843
7203 * config/i386/i386.md (*movtf_internal): Use
7204 lra_in_progress || reload_completed instead of !can_create_pseudo_p
7205 in the insn constraint.
7206 (*movxf_internal): Ditto.
7207 (*movdf_internal): Ditto.
7208 (*movsf_internal): Ditto.
7209
7210 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7211
7212 PR tree-optimization/72772
7213 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7214 for expanded base.
7215
7216 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7217
7218 PR tree-optimization/72772
7219 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
7220 parameter STOP.
7221 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
7222 parameter STOP and update calls. Move expand_simple_operations
7223 function call from here...
7224 (simplify_using_initial_conditions): ...to here. Delete parameter
7225 STOP.
7226 (tree_simplify_using_condition): Delete parameter STOP.
7227 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
7228 simplify_using_initial_conditions.
7229
7230 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
7231
7232 PR c/65345
7233 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
7234 Use create_tmp_var_raw instead of create_tmp_var.
7235
7236 2016-08-09 Richard Biener <rguenther@suse.de>
7237
7238 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
7239 Treat same SSA names related.
7240
7241 2016-08-09 Jakub Jelinek <jakub@redhat.com>
7242
7243 PR tree-optimization/72824
7244 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
7245 real_zerop is not negative.
7246
7247 2016-08-09 Richard Biener <rguenther@suse.de>
7248
7249 PR tree-optimization/71802
7250 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
7251 all merge opportunities with the predecessor.
7252
7253 2016-08-09 Richard Biener <rguenther@suse.de>
7254
7255 PR ipa/68273
7256 * ipa-prop.c (ipa_modify_formal_parameters): Build
7257 parameter types with natural alignment also for the
7258 over-aligned case.
7259
7260 2016-08-08 Andi Kleen <ak@linux.intel.com>
7261
7262 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
7263
7264 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7265
7266 PR c/64955
7267 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
7268 do-nothing langhook.
7269 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
7270 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
7271 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
7272 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
7273
7274 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7275
7276 PR bootstrap/72844
7277 * input.c: Ensure that HAVE_ICONV is defined.
7278
7279 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7280
7281 PR middle-end/72781
7282 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
7283 private vars for lastprivate and for linear iterator.
7284
7285 PR middle-end/68762
7286 * omp-simd-clone.c: Include varasm.h.
7287 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
7288 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
7289 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
7290 update function name.
7291
7292 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7293
7294 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
7295 (avr_diagnose_devicespecs_error): Remove.
7296 (avr_devicespecs_file): Remove composing absolute path for specfile
7297 and its verbose info. Remove conditions to check specs-file,
7298
7299 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7300
7301 PR rtl-optimization/72821
7302 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
7303 just return false for them.
7304
7305 2016-08-08 Alan Modra <amodra@gmail.com>
7306
7307 PR target/72771
7308 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
7309 toc refs created during reload. Update function comment.
7310
7311 2016-08-08 Alan Modra <amodra@gmail.com>
7312
7313 PR target/72802
7314 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
7315 alternatives. Put loads first, then stores, and reg/reg moves
7316 within same class later. Delete attr length.
7317
7318 2016-08-08 Alan Modra <amodra@gmail.com>
7319
7320 PR target/72802
7321 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
7322 (mem_operand_ds_form): New predicate.
7323 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
7324 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
7325 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
7326 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
7327 (extendsfdf2_fpr): Replace o constraint with wY.
7328
7329 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
7330
7331 * tree-ssa-threadbackward.c: Include tree-inline.h
7332 (profitable_jump_thread_path): Use estimate_num_insns to estimate
7333 size of copied block; for cold paths reduce duplication.
7334 (find_jump_threads_backwards): Remove redundant tests.
7335 (pass_thread_jumps::gate): Enable for -Os.
7336
7337 2016-08-07 Jakub Jelinek <jakub@redhat.com>
7338
7339 PR c/72816
7340 * stor-layout.c (layout_decl): Fix up formatting.
7341 (relayout_decl): Allow DECL to be FIELD_DECL.
7342
7343 2016-08-07 Alan Modra <amodra@gmail.com>
7344
7345 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
7346
7347 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7348
7349 * data-streamer-in.c (streamer_read_wide_int): New.
7350 (streamer_read_widest_int): Renamed function.
7351 * data-streamer-out.c (streamer_write_wide_int): New
7352 (streamer_write_widest_int): Renamed function.
7353 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
7354 data-stream-in.c.
7355 (input_cfg): Call renamed function.
7356 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
7357 data-stream-out.c.
7358 (output_cfg): Call renamed function.
7359 * data-streamer.h: Add declarations.
7360
7361 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7362
7363 * tree-ssa-ccp.c (extend_mask): New param sgn.
7364 Remove ORing with wi::mask.
7365 (get_default_value): Adjust call to extend_mask to pass sign.
7366 (evaluate_stmt): Likewise.
7367
7368 2016-08-06 Jakub Jelinek <jakub@redhat.com>
7369
7370 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
7371 INT64_MAX.
7372
7373 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7374
7375 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
7376 transform if operand's type is pointer to function or method.
7377
7378 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7379
7380 PR tree-optimization/18046
7381 * tree-ssa-threadedge.c: Include cfganal.h.
7382 (simplify_control_statement_condition): If simplifying a
7383 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
7384 with the dominating ASSERT_EXPR before handing it off to VRP.
7385 Mention that a CASE_LABEL_EXPR may be returned.
7386 (thread_around_empty_blocks): Adjust to handle
7387 simplify_control_statement_condition() returning a
7388 CASE_LABEL_EXPR.
7389 (thread_through_normal_block): Likewise.
7390 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
7391 a switch statement by trying to determine which case label
7392 will be taken.
7393
7394 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
7395
7396 PR rtl-optimization/69847
7397 * lra-constraints.c (process_invariant_for_inheritance): Save
7398 pattern instead of src.
7399 (remove_inheritance_pseudos): Use the pattern. Add assert.
7400
7401 2016-08-05 David Malcolm <dmalcolm@redhat.com>
7402
7403 * input.c (string_concat::string_concat): New constructor.
7404 (string_concat_db::string_concat_db): New constructor.
7405 (string_concat_db::record_string_concatenation): New method.
7406 (string_concat_db::get_string_concatenation): New method.
7407 (string_concat_db::get_key_loc): New method.
7408 (class auto_cpp_string_vec): New class.
7409 (get_substring_ranges_for_loc): New function.
7410 (get_source_range_for_substring): New function.
7411 (get_num_source_ranges_for_substring): New function.
7412 (class selftest::lexer_test_options): New class.
7413 (struct selftest::lexer_test): New struct.
7414 (class selftest::ebcdic_execution_charset): New class.
7415 (selftest::ebcdic_execution_charset::s_singleton): New variable.
7416 (selftest::lexer_test::lexer_test): New constructor.
7417 (selftest::lexer_test::~lexer_test): New destructor.
7418 (selftest::lexer_test::get_token): New method.
7419 (selftest::assert_char_at_range): New function.
7420 (ASSERT_CHAR_AT_RANGE): New macro.
7421 (selftest::assert_num_substring_ranges): New function.
7422 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
7423 (selftest::assert_has_no_substring_ranges): New function.
7424 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
7425 (selftest::test_lexer_string_locations_simple): New function.
7426 (selftest::test_lexer_string_locations_ebcdic): New function.
7427 (selftest::test_lexer_string_locations_hex): New function.
7428 (selftest::test_lexer_string_locations_oct): New function.
7429 (selftest::test_lexer_string_locations_letter_escape_1): New function.
7430 (selftest::test_lexer_string_locations_letter_escape_2): New function.
7431 (selftest::test_lexer_string_locations_ucn4): New function.
7432 (selftest::test_lexer_string_locations_ucn8): New function.
7433 (selftest::uint32_from_big_endian): New function.
7434 (selftest::test_lexer_string_locations_wide_string): New function.
7435 (selftest::uint16_from_big_endian): New function.
7436 (selftest::test_lexer_string_locations_string16): New function.
7437 (selftest::test_lexer_string_locations_string32): New function.
7438 (selftest::test_lexer_string_locations_u8): New function.
7439 (selftest::test_lexer_string_locations_utf8_source): New function.
7440 (selftest::test_lexer_string_locations_concatenation_1): New
7441 function.
7442 (selftest::test_lexer_string_locations_concatenation_2): New
7443 function.
7444 (selftest::test_lexer_string_locations_concatenation_3): New
7445 function.
7446 (selftest::test_lexer_string_locations_macro): New function.
7447 (selftest::test_lexer_string_locations_stringified_macro_argument):
7448 New function.
7449 (selftest::test_lexer_string_locations_non_string): New function.
7450 (selftest::test_lexer_string_locations_long_line): New function.
7451 (selftest::test_lexer_char_constants): New function.
7452 (selftest::input_c_tests): Call the new test functions once per
7453 case within the line_table test matrix.
7454 * input.h (struct string_concat): New struct.
7455 (struct location_hash): New struct.
7456 (class string_concat_db): New class.
7457 * substring-locations.h: New header.
7458
7459 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7460
7461 PR tree-optimization/72810
7462 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
7463 the type of the case labels when truncating.
7464
7465 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7466
7467 PR Target/72819
7468 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
7469 (aarch64_fp16_ptr_type_node): Likewise.
7470 * config/aarch64/aarch64-simd-builtins.c
7471 (aarch64_fp16_ptr_type_node): Define.
7472 (aarch64_init_fp16_types): New, refactored out of...
7473 (aarch64_init_builtins): ...here, update to call
7474 aarch64_init_fp16_types.
7475 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
7476 HFmode.
7477 (aapcs_vfp_sub_candidate): Likewise.
7478
7479 2016-08-05 Martin Liska <mliska@suse.cz>
7480 Joshua Cranmer <Pidgeot18@gmail.com>
7481
7482 * gcov.c (line_t::has_block): New function.
7483 (enum loop_type): New enum.
7484 (handle_cycle): New function.
7485 (unblock): Likewise.
7486 (circuit): Likewise.
7487 (get_cycles_count): Likewise.
7488 (accumulate_line_counts): Use new loop detection algorithm.
7489
7490 2016-08-05 Martin Liska <mliska@suse.cz>
7491
7492 * gcov.c (output_intermediate_file): Rename
7493 function_info::line_next to next_file_fn.
7494 (process_file): Likewise.
7495 (read_graph_file): Likewise.
7496 (accumulate_line_counts): Likewise.
7497 (output_lines): Likewise.
7498
7499 2016-08-05 Richard Biener <rguenther@suse.de>
7500
7501 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
7502 restriction on threading to a loop header.
7503
7504 2016-08-05 Richard Biener <rguenther@suse.de>
7505
7506 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
7507 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
7508 adjust loop info accordingly.
7509
7510 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7511
7512 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
7513 before folding call to __builtin_constant_p with parameters to false.
7514
7515 2016-08-05 Alan Modra <amodra@gmail.com>
7516
7517 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
7518 code accidentally committed 2016-05-02 providing class when given
7519 NO_REGS.
7520
7521 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7522
7523 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
7524 the case label ranges that partially overlap with OP's value
7525 range.
7526
7527 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
7528
7529 PR target/72805
7530 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
7531 Cast builtin function result to __mmask16 instead of __mmask8.
7532 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7533 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
7534 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7535
7536 2016-08-04 David Malcolm <dmalcolm@redhat.com>
7537
7538 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
7539 (ASSERT_TRUE_AT): New macro.
7540 (ASSERT_FALSE): Reimplement in terms of...
7541 (ASSERT_FALSE_AT): New macro.
7542 (ASSERT_STREQ_AT): Fix typo in comment.
7543
7544 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7545
7546 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
7547 labels are exhaustive, designate the label with the widest
7548 range to be the default label.
7549
7550 2016-08-04 Andrew Pinski <apinski@cavium.com>
7551
7552 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
7553 (thunderx_tunings): Use thunderx_vector_cost instead of
7554 generic_vector_cost.
7555
7556 2016-08-04 Martin Liska <mliska@suse.cz>
7557
7558 * gcov.c (main): Fix GNU coding style.
7559 (output_intermediate_file): Likewise.
7560 (process_file): Likewise.
7561 (generate_results): Likewise.
7562 (release_structures): Likewise.
7563 (create_file_names): Likewise.
7564 (find_source): Likewise.
7565 (read_graph_file): Likewise.
7566 (find_exception_blocks): Likewise.
7567 (canonicalize_name): Likewise.
7568 (make_gcov_file_name): Likewise.
7569 (mangle_name): Likewise.
7570 (accumulate_line_counts): Likewise.
7571 (output_branch_count): Likewise.
7572 (read_line): Likewise.
7573
7574 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7575
7576 PR rtl-optimization/71779
7577 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
7578 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
7579 or if it was truncated.
7580
7581 PR rtl-optimization/70903
7582 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
7583
7584 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7585
7586 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
7587 accessing SSA_NAME_PTR_INFO.
7588
7589 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7590
7591 PR 70677
7592 * common/config/avr/avr-common.c (avr_option_optimization_table)
7593 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
7594
7595 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7596
7597 PR 55181
7598 * config/avr/avr.md: New pattern to work around do_store_flag
7599 generating shift instructions for bit extractions.
7600
7601 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7602
7603 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
7604 BITMAP_ALLOC.
7605 (add_equivalence): Likewise.
7606 (get_value_range): Allocate value range with vrp_value_range_pool.
7607 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
7608 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
7609
7610 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
7611
7612 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
7613 the default for the rs6000 port.
7614
7615 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7616
7617 PR middle-end/71876
7618 * calls.c (special_function_p): Remove special handling of
7619 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
7620 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
7621 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
7622
7623 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
7624
7625 PR middle-end/72778
7626 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
7627 Don't stop on regular insns.
7628
7629 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
7630
7631 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
7632 size to DImode boundary.
7633 (nvptx_propagate): Likewise.
7634
7635 2016-08-03 Alan Modra <amodra@gmail.com>
7636
7637 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
7638 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
7639 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7640 from -mefficient-unaligned-vector. Note that this affects fp too.
7641
7642 2016-08-03 Alan Modra <amodra@gmail.com>
7643
7644 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7645 cost more.
7646
7647 2016-08-03 Alan Modra <amodra@gmail.com>
7648
7649 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7650 to a reg. Localize vars.
7651
7652 2016-08-03 Alan Modra <amodra@gmail.com>
7653
7654 * config/rs6000/rs6000.opt: Remove negatives from help strings
7655 and comments.
7656
7657 2016-08-03 Alan Modra <amodra@gmail.com>
7658
7659 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7660 Delete duplicated code.
7661
7662 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7663
7664 PR middle-end/72778
7665 * lra-spills.c (regno_in_use_p): New.
7666 (lra_final_code_change): Use it.
7667
7668 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7669
7670 PR rtl-optimization/69847
7671 * lra-int.h (struct lra-reg): Use restore_rtx instead of
7672 restore_regno.
7673 (lra_rtx_hash): New.
7674 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7675 of restore_regno.
7676 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7677 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7678 * lra-spills.c (lra_final_code_change): Don't delete insn when the
7679 next insn is USE with the same reg as the current insn source.
7680 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7681 of restore_regno.
7682 (lra_constraints_init): Call initiate_invariants.
7683 (lra_constraints_finish): Call finish_invariants.
7684 (struct invariant, invariant_t, invariant_ptr_t): New.
7685 (const_invariant_ptr_t, invariants, invariants_pool): New.
7686 (invariant_table, invariant_hash, invariant_eq_p): New.
7687 (insert_invariant, initiate_invariants, finish_invariants): New.
7688 (clear_invariants, invalid_invariant_regs): New.
7689 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7690 instead of restore_regno.
7691 (invariant_p, process_invariant_for_inheritance): New.
7692 (inherit_in_ebb): Implement invariant inheritance.
7693 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7694 (remove_inheritance_pseudos): Implement undoing invariant
7695 inheritance.
7696 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7697 instead of restore_regno.
7698 * lra-assigns.c (regno_live_length): New.
7699 (reload_pseudo_compare_func): Use regno_live_length.
7700 (assign_by_spills): Use restore_rtx instead of restore_regno.
7701 (lra_assign): Ditto. Initiate regno_live_length.
7702
7703 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
7704
7705 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7706 __builtin_aarch64_fmindf.
7707
7708 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7709
7710 PR tree-optimization/34114
7711 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7712 information for more control IVs.
7713
7714 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7715
7716 PR tree-optimization/34114
7717 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7718 PLUS_EXPR case. Handle SSA_NAME case.
7719
7720 2016-08-02 Tamar Christina <tamar.christina@arm.com>
7721
7722 * config/aarch64/aarch64-simd-builtins.def
7723 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7724 (__builtin_aarch64_fmaxdf): Likewise.
7725 (__builtin_aarch64_smin_nandf): Likewise.
7726 (__builtin_aarch64_smax_nandf): Likewise.
7727 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7728 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7729 (<fmaxmin><mode>3): ...this.
7730 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7731 (vminnm_f64): Likewise.
7732 (vmin_f64): Likewise.
7733 (vmax_f64): Likewise.
7734 * config/aarch64/iterators.md (FMAXMIN): Merge with...
7735 (FMAXMIN_UNS): ...this.
7736 (fmaxmin): Merged with
7737 (fmaxmin_op): ...this...
7738 (maxmin_uns_op): ...in to this.
7739
7740 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7741
7742 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7743 Add support for vec_extract on vector float, vector int, vector
7744 short, and vector char vector types.
7745 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7746 vector float, vector int, vector short, and vector char
7747 optimizations on 64-bit ISA 2.07 systems for both constant and
7748 variable element numbers.
7749 (rs6000_split_vec_extract_var): Likewise.
7750 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7751 Altivec registers on ISA 2.07 and above.
7752 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7753 which never was matched due to the split occuring before register
7754 allocation (and the code would not have worked on little endian
7755 systems if it did match). Allow extracts to go to the Altivec
7756 registers if ISA 2.07 (power8). Change from using "" around the
7757 C++ code to using {}'s.
7758 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7759 vec_extracts when the vector is in memory.
7760 (vsx_extract_v4sf_var): New insn to optimize vector float
7761 vec_extracts when the element number is variable on 64-bit ISA
7762 2.07 systems.
7763 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7764 for 64-bit ISA 2.07 as well as ISA 3.0.
7765 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7766 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7767 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7768 optimize vector int, vector short, and vector char vec_extracts
7769 when the vector is in memory.
7770 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7771 optimize vector int, vector short, and vector char vec_extracts
7772 when the element number is variable.
7773
7774 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7775
7776 PR target/71948
7777 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7778 does not overlap with other symbol flags.
7779
7780 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7781
7782 * config/aarch64/aarch64.h (aarch64_frame):
7783 Remove padding0 and hardfp_offset. Add locals_offset,
7784 initial_adjust, callee_adjust, callee_offset and final_adjust.
7785 * config/aarch64/aarch64.c (aarch64_layout_frame):
7786 Remove unused padding0 and hardfp_offset initializations.
7787 Choose frame layout and set frame variables accordingly.
7788 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7789 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7790 (aarch64_pop_regs): Likewise.
7791 (aarch64_expand_prologue): Remove all decision code, just emit
7792 prolog according to frame variables.
7793 (aarch64_expand_epilogue): Remove all decision code, just emit
7794 epilog according to frame variables.
7795 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7796
7797 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7798
7799 PR target/72748
7800 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7801 fix_debug_reg_uses after changing source register mode to
7802 V1TImode if source register is undefined.
7803
7804 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7805
7806 PR tree-optimization/71818
7807 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7808 with non invariant evolutions
7809
7810 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7811
7812 PR target/72767
7813 * config/avr/avr.md (length) [branch]: Correct insn length
7814 attribute for forward branches.
7815
7816 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7817
7818 * doc/extend.texi (AVR Built-in Functions): Document
7819 __builtin_avr_nops.
7820 * config/avr/builtins.def (NOPS): New.
7821 * config/avr/avr.c (avr_expand_nops): New static function.
7822 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7823
7824 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7825
7826 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7827 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7828 addresses.
7829
7830 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7831
7832 * config/aarch64/aarch64.c (vulcan_tunings): Update
7833 vulcan L1 cache_line_size.
7834
7835 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7836
7837 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7838 function that takes a vector memory address, a hard register, an
7839 element number and a temporary base register, and recreates an
7840 address that points to the appropriate element within the vector.
7841 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7842 (rs6000_split_vec_extract_var): Add support for the target of a
7843 vec_extract with variable element number being a scalar memory
7844 location.
7845 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7846 swappable.
7847 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7848 vsx_extract_<mode>_load insn with a new insn that optimizes
7849 storing either element to a memory location, using scratch
7850 registers to pick apart the vector and reconstruct the address.
7851 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7852 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7853 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7854 store instruction.
7855 (vsx_extract_<mode>_var): Add support for extracting a variable
7856 element number from memory.
7857
7858 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7859
7860 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7861 when testing for compares against constants of the form 0xabab.
7862
7863 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7864
7865 PR tree-optimization/57558
7866 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7867 function.
7868 (vect_loop_versioning): Support versioning with niter assumptions.
7869 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7870 (vect_get_loop_niters): New parameter. Reimplement to support
7871 assumptions in loop niter info.
7872 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7873 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7874 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7875 Support loop versioning for niters.
7876 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7877 (vect_free_loop_info_assumptions): New function.
7878 (vectorize_loops): Free loop niter info for loops with flag
7879 LOOP_F_ASSUMPTIONS set if vectorization failed.
7880 * tree-vectorizer.h (struct _loop_vec_info): New field
7881 num_iters_assumptions.
7882 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7883 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7884 (LOOP_REQUIRES_VERSIONING): New macro.
7885 (vect_free_loop_info_assumptions): New decl.
7886
7887 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7888
7889 * cfgloop.h (struct loop): New field constraints.
7890 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7891 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7892 functions.
7893 * cfgloop.c (alloc_loop): Initialize new field.
7894 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7895 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7896 Adjust niter analysis wrto loop constraints.
7897 * doc/loop.texi (@node Number of iterations): Add description for loop
7898 constraints.
7899
7900 2016-07-29 Marek Polacek <polacek@redhat.com>
7901
7902 PR c/7652
7903 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7904 (ix86_expand_round_builtin): Likewise.
7905
7906 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7907 Georg-Johann Lay <avr@gjlay.de>
7908
7909 PR rtl-optimization/71976
7910 * combine.c (get_last_value): Return 0 if the argument for which
7911 the function is called has a wider mode than the recorded value.
7912
7913 2016-07-29 Marek Polacek <polacek@redhat.com>
7914
7915 PR c/7652
7916 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7917 (altivec_expand_st_builtin): Likewise.
7918
7919 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7920
7921 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7922 introduced in r238381.
7923
7924 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7925
7926 PR middle-end/68217
7927 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7928 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7929
7930 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7931
7932 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7933 New declaration.
7934 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7935 Add support for vec_extract of vector double or vector long having
7936 a variable element number on 64-bit ISA 2.07 systems or newer.
7937 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7938 Likewise.
7939 (rs6000_split_vec_extract_var): New function to split a
7940 vec_extract built-in function with variable element number.
7941 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7942 swappable.
7943 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7944 (UNSPEC_VSX_EXTRACT): Likewise.
7945 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7946 direct move instructions to be generated on 64-bit ISA 2.07
7947 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7948 instruction.
7949 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7950 arguments for vec_extract variable element.
7951 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7952 vec_extract with variable element on V2DFmode and V2DImode
7953 vectors.
7954 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7955 -mupper-regs-df requirement, since it isn't needed.
7956 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7957 do direct moves on 64-bit systems, which allows optimization of
7958 vec_extract on 64-bit ISA 2.07 systems and newer.
7959
7960 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7961 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7962
7963 * config/aarch64/aarch64.md
7964 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7965 statement and type.
7966 (<optab>qihi2_aarch64): Likewise, and split into two.
7967 (extendqihi2_aarch64): New.
7968 (zero_extendqihi2_aarch64): New.
7969 * config/aarch64/iterators.md (ldrxt): Remove.
7970 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7971 uxtb/uxth.
7972
7973 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7974
7975 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7976
7977 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7978
7979 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7980 (aarch64_push_reg): New function to push 1 or 2 registers.
7981 (aarch64_pop_reg): New function to pop 1 or 2 registers.
7982 (aarch64_expand_prologue): Use aarch64_push_regs.
7983 (aarch64_expand_epilogue): Use aarch64_pop_regs.
7984
7985 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
7986
7987 PR tree-optimization/71734
7988 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7989 attribute instead of REF_LOOP and use it.
7990 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7991 set it for Loops having non-zero safelen attribute.
7992 (ref_indep_loop_p): Pass zero as initial value for safelen.
7993
7994 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
7995
7996 PR middle-end/72657
7997 PR target/72683
7998 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7999 call using chkp_gimple_call_builtin_p.
8000 (chkp_copy_bounds_for_assign): Likewise.
8001
8002 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8003
8004 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
8005 * config/arm/arm-protos.h (struct tune_params): Likewise.
8006 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8007 (cortex_a9_sched_adjust_cost): Likewise.
8008 (fa726te_sched_adjust_cost): Likewise.
8009 (arm_adjust_cost): Likewise.
8010 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
8011 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
8012 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
8013 * config/i386/i386.c (ix86_adjust_cost): Likewise.
8014 * config/ia64/ia64.c: Likewise.
8015 * config/m68k/m68k.c: Likewise.
8016 * config/mep/mep.c (mep_adjust_cost): Likewise.
8017 * config/microblaze/microblaze.c (microblaze_adjust_cost):
8018 * Likewise.
8019 * config/mips/mips.c (mips_adjust_cost): Likewise.
8020 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
8021 * Likewise.
8022 * config/pa/pa.c (pa_adjust_cost): Likewise.
8023 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
8024 (rs6000_debug_adjust_cost): Likewise.
8025 * config/sh/sh.c (sh_adjust_cost): Likewise.
8026 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
8027 (hypersparc_adjust_cost): Likewise.
8028 (sparc_adjust_cost): Likewise.
8029 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
8030 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
8031 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
8032 * Likewise.
8033 * config/visium/visium.c (visium_adjust_cost): Likewise.
8034 * doc/tm.texi: Regenerate.
8035 * haifa-sched.c (dep_cost_1): Adjust.
8036 * target.def: Merge adjust_cost and adjust_cost_2.
8037
8038 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8039
8040 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
8041
8042 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8043
8044 * store-motion.c (struct st_expr): Make pattern_regs a vector.
8045 (extract_mentioned_regs): Append to a vector instead of
8046 returning a rtx_expr_list.
8047 (st_expr_entry): Adjust.
8048 (free_st_expr_entry): Likewise.
8049 (store_ops_ok): Likewise.
8050 (store_killed_in_insn): Likewise.
8051 (find_moveable_store): Likewise.
8052
8053 2016-07-28 Martin Liska <mliska@suse.cz>
8054
8055 PR gcov-profile/68025
8056 * tree-profile.c (tree_profiling): Respect
8057 no_profile_instrument_function attribute.
8058 * doc/extend.texi: Document no_profile_instrument_function
8059 attribute.
8060
8061 2016-07-28 Martin Liska <mliska@suse.cz>
8062
8063 PR rtl-optimization/70944
8064 * combine.c (make_compound_operation):
8065 Do not allow make_compound_operation for vector mode
8066
8067 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
8068
8069 PR middle-end/71994
8070 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
8071 before calling get_ops.
8072
8073 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8074
8075 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
8076 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
8077 (BITS_PER_UNIT_LOG): Remove.
8078 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
8079 * expr.c (expand_assignment): Likewise.
8080 * stor-layout.c (initialize_sizetypes): Likewise.
8081
8082 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8083
8084 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
8085 signature of rs6000_expand_vector_extract so that the element
8086 number is a RTX instead of a constant integer.
8087 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
8088 Likewise.
8089 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
8090 (altivec_expand_vec_ext_builtin): Likewise.
8091 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
8092 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
8093 MFVSRLD instruction.
8094
8095 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8096
8097 * input.c (get_pure_location): Move here from tree.c.
8098 (make_location): Likewise. Add header comment.
8099 (selftest::test_accessing_ordinary_linemaps): Verify
8100 pure_location_p, make_location, get_location_from_adhoc_loc and
8101 get_range_from_loc.
8102 * input.h (get_pure_location): Move declaration here from tree.h.
8103 (get_finish): Likewise for inline function.
8104 (make_location): Likewise for declaration.
8105 * tree.c (get_pure_location): Move to input.c.
8106 (make_location): Likewise.
8107 * tree.h (get_pure_location): Move declaration to tree.h.
8108 (get_finish): Likewise for inline function.
8109 (make_location): Likewise for declaration.
8110
8111 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8112
8113 PR middle-end/71078
8114 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
8115
8116 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8117
8118 * system.h (STATIC_ASSERT): Use static_assert if building
8119 with C++11 onwards.
8120
8121 2016-07-27 Richard Biener <rguenther@suse.de>
8122
8123 PR tree-optimization/72517
8124 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8125 Revert change to not compute read-read dependences.
8126
8127 2016-07-27 Richard Biener <rguenther@suse.de>
8128
8129 * predict.c (set_even_probabilities): Make nedges unsigned.
8130
8131 2016-07-27 Martin Liska <mliska@suse.cz>
8132
8133 * predict.c (set_even_probabilities): Handle unlikely edges.
8134 (combine_predictions_for_bb): Likewise.
8135
8136 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8137
8138 PR target/71869
8139 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
8140 __float128 support when we don't have hardware support, so that
8141 the IEEE built-in functions like isgreater, first call __unordkf3
8142 to make sure neither operand is a NaN, and if both operands are
8143 ordered, do the normal comparison.
8144
8145 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8146
8147 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
8148 name.
8149 (extract_code_and_val_from_cond_with_ops): Verify that name is
8150 either cond_op0 or cond_op1.
8151
8152 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8153
8154 PR tree-optimization/18046
8155 * genmodes.c (emit_mode_size_inline): Emit an assert that
8156 verifies that mode is a valid array index.
8157 (emit_mode_nuinits_inline): Likewise.
8158 (emit_mode_inner_inline): Likewise.
8159 (emit_mode_unit_size_inline): Likewise.
8160 (emit_mode_unit_precision_inline): Likewise.
8161 * tree-vrp.c: Include params.h.
8162 (find_switch_asserts): Register edge assertions for the default
8163 label which correspond to the anti-ranges of each case label.
8164 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
8165 * doc/invoke.texi: Document it.
8166
8167 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8168
8169 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
8170 and unnecessary call to gimple_bb.
8171
8172 2016-07-26 Richard Biener <rguenther@suse.de>
8173
8174 PR rtl-optimization/71984
8175 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
8176 for VOIDmode.
8177
8178 2016-07-26 Richard Biener <rguenther@suse.de>
8179
8180 PR middle-end/72517
8181 * expmed.c (extract_bit_field_1): Constrain the vector mode
8182 with element size matching the extraction mode size when
8183 choosing a better vector mode to do the extraction from.
8184
8185 2016-07-26 Richard Biener <rguenther@suse.de>
8186 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8187
8188 PR middle-end/70920
8189 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
8190 pattern.
8191
8192 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8193
8194 * tree-ssa-structalias.c (struct scc_info): Change types of
8195 members to auto_sbitmap and auto_vec.
8196 (scc_info::scc_info): New constructor.
8197 (scc_info::~scc_info): New destructor.
8198 (init_scc_info): Remove.
8199 (free_scc_info): Remove.
8200 (find_indirect_cycles): Adjust.
8201 (perform_var_substitution): Likewise.
8202 (free_var_substitution_info): Likewise.
8203
8204 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8205
8206 * tree-outof-ssa.c (struct elim_graph): Change type of members
8207 to auto_vec and auto_sbitmap.
8208 (elim_graph::elim_graph): New constructor.
8209 (delete_elim_graph): Remove.
8210 (expand_phi_nodes): Adjust.
8211
8212 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8213
8214 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
8215 (new_elim_graph): Adjust.
8216 (clear_elim_graph): Likewise.
8217 (delete_elim_graph): Likewise.
8218 (elim_graph_size): Likewise.
8219 (elim_graph_add_node): Likewise.
8220 (elim_graph_add_edge): Likewise.
8221 (elim_graph_remove_succ_edge): Likewise.
8222 (eliminate_name): Likewise.
8223 (eliminate_build): Likewise.
8224 (elim_forward): Likewise.
8225 (elim_unvisited_predecessor): Likewise.
8226 (elim_backward): Likewise.
8227 (elim_create): Likewise.
8228 (eliminate_phi): Likewise.
8229 (expand_phi_nodes): Likewise.
8230
8231 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8232
8233 * bt-load.c (compute_out): Use auto_sbitmap class.
8234 (link_btr_uses): Likewise.
8235 * cfganal.c (mark_dfs_back_edges): Likewise.
8236 (post_order_compute): Likewise.
8237 (inverted_post_order_compute): Likewise.
8238 (pre_and_rev_post_order_compute_fn): Likewise.
8239 (single_pred_before_succ_order): Likewise.
8240 * cfgexpand.c (pass_expand::execute): Likewise.
8241 * cfgloop.c (verify_loop_structure): Likewise.
8242 * cfgloopmanip.c (fix_bb_placements): Likewise.
8243 (remove_path): Likewise.
8244 (update_dominators_in_loop): Likewise.
8245 * cfgrtl.c (break_superblocks): Likewise.
8246 * ddg.c (check_sccs): Likewise.
8247 (create_ddg_all_sccs): Likewise.
8248 * df-core.c (df_worklist_dataflow): Likewise.
8249 * dse.c (dse_step3): Likewise.
8250 * except.c (eh_region_outermost): Likewise.
8251 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8252 * gcse.c (prune_expressions): Likewise.
8253 (prune_insertions_deletions): Likewise.
8254 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
8255 * graph.c (draw_cfg_nodes_no_loops): Likewise.
8256 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
8257 * lcm.c (compute_earliest): Likewise.
8258 (compute_farthest): Likewise.
8259 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
8260 (unroll_loop_runtime_iterations): Likewise.
8261 (unroll_loop_stupid): Likewise.
8262 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8263 * lra-lives.c: Likewise.
8264 * lra.c (lra): Likewise.
8265 * modulo-sched.c (schedule_reg_moves): Likewise.
8266 (optimize_sc): Likewise.
8267 (get_sched_window): Likewise.
8268 (sms_schedule_by_order): Likewise.
8269 (check_nodes_order): Likewise.
8270 (order_nodes_of_sccs): Likewise.
8271 (order_nodes_in_scc): Likewise.
8272 * recog.c (split_all_insns): Likewise.
8273 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8274 * reload1.c (reload): Likewise.
8275 * sched-rgn.c (haifa_find_rgns): Likewise.
8276 (split_edges): Likewise.
8277 (compute_trg_info): Likewise.
8278 * sel-sched.c (init_seqno): Likewise.
8279 * store-motion.c (remove_reachable_equiv_notes): Likewise.
8280 * tree-into-ssa.c (update_ssa): Likewise.
8281 * tree-ssa-live.c (live_worklist): Likewise.
8282 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
8283 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8284 * Likewise.
8285 (try_peel_loop): Likewise.
8286 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
8287 * Likewise.
8288 * tree-ssa-pre.c (compute_antic): Likewise.
8289 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8290 * tree-stdarg.c (reachable_at_most_once): Likewise.
8291 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
8292 * var-tracking.c (vt_find_locations): Likewise.
8293
8294 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8295
8296 * sbitmap.h (auto_sbitmap): New class.
8297
8298 2016-07-26 Alan Modra <amodra@gmail.com>
8299
8300 PR target/72103
8301 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
8302 sri->t_icode.
8303
8304 2016-07-25 David Malcolm <dmalcolm@redhat.com>
8305
8306 * input.c (selftest::temp_source_file::temp_source_file): Fix
8307 missing "%s" in fprintf.
8308
8309 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
8310
8311 PR middle-end/71732
8312 * cselib.c (cselib_process_insn): Invalidate argument slots for
8313 const/pure calls.
8314
8315 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8316
8317 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
8318 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
8319 vmulxh_lane_f16, vmulxh_laneq_f16): New.
8320
8321 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8322
8323 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8324 * config/aarch64/aarch64.md (fma, fnma): Support HF.
8325 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
8326
8327 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8328
8329 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8330 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
8331 New.
8332 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
8333 (add<mode>3): Likewise.
8334 (sub<mode>3): Likewise.
8335 (mul<mode>3): Likewise.
8336 (div<mode>3): Likewise.
8337 (*div<mode>3): Likewise.
8338 (<fmaxmin><mode>3): Extend to HF.
8339 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
8340 (fabd<mode>3): Likewise.
8341 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
8342 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
8343 (aarch64_fmulx<mode>): Likewise.
8344 (aarch64_fac<optab><mode>): Likewise.
8345 (aarch64_frecps<mode>): Likewise.
8346 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
8347 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
8348 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
8349 (VSDQ_HSDI): Support HI.
8350 (fcvt_target, FCVT_TARGET): Likewise.
8351 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
8352 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
8353 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
8354 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
8355 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
8356 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
8357 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
8358 vrsqrtsh_f16): New.
8359
8360 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8361
8362 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
8363 * config/aarch64/aarch64-builtins.c (hi_UP): New.
8364 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8365 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
8366 mode.
8367 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8368 (aarch64_cm<optab><mode>): Likewise.
8369 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
8370 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
8371 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
8372 (sqrt<mode>2): Likewise.
8373 (*sqrt<mode>2): Likewise.
8374 (abs<mode>2): Likewise.
8375 (<optab><mode>hf2): New pattern for HF mode.
8376 (<optab>hihf2): Likewise.
8377 * config/aarch64/arm_neon.h: Include arm_fp16.h.
8378 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
8379 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
8380 Support HF mode.
8381 * config/aarch64/arm_fp16.h: New file.
8382 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
8383 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
8384 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
8385 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
8386 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
8387 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
8388 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
8389 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
8390 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
8391 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
8392 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
8393 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
8394 vsqrth_f16): New.
8395
8396 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8397
8398 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
8399 reduc_smin_scal_): Use VDQIF_F16.
8400 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
8401 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
8402 Use VHSDF.
8403 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
8404 * config/aarch64/iterators.md (VDQIF_F16): New.
8405 (vp): Support HF modes.
8406 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
8407 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
8408
8409 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8410
8411 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
8412 "*aarch64_mulx_elt_from_dup<mode>".
8413 (*aarch64_mul3_elt<mode>): Update schedule type.
8414 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
8415 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
8416 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8417 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
8418 (f, fp): Support HF modes.
8419 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
8420 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
8421 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
8422 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
8423 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
8424 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
8425
8426 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8427
8428 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8429 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
8430 modes.
8431 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
8432 vfmsq_f16): New.
8433
8434 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8435
8436 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8437 * config/aarch64/aarch64-simd.md
8438 (aarch64_rsqrts<mode>): Extend to HF modes.
8439 (fabd<mode>3): Likewise.
8440 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
8441 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
8442 (aarch64_<maxmin_uns>p<mode>): Likewise.
8443 (<su><maxmin><mode>3): Likewise.
8444 (<maxmin_uns><mode>3): Likewise.
8445 (<fmaxmin><mode>3): Likewise.
8446 (aarch64_faddp<mode>): Likewise.
8447 (aarch64_fmulx<mode>): Likewise.
8448 (aarch64_frecps<mode>): Likewise.
8449 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
8450 (add<mode>3): Extend to HF modes.
8451 (sub<mode>3): Likewise.
8452 (mul<mode>3): Likewise.
8453 (div<mode>3): Likewise.
8454 (*div<mode>3): Likewise.
8455 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
8456 HF, V4HF and V8HF.
8457 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
8458 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
8459 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
8460 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
8461 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
8462 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
8463 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
8464 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
8465 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
8466 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
8467 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
8468 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
8469 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
8470 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
8471
8472 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8473
8474 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
8475 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8476 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
8477 (neg<mode>2): Likewise.
8478 (abs<mode>2): Likewise.
8479 (<frint_pattern><mode>2): Likewise.
8480 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8481 (<optab><VDQF:mode><fcvt_target>2): Likewise.
8482 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
8483 (ftrunc<VDQF:mode>2): Likewise.
8484 (<optab><fcvt_target><VDQF:mode>2): Likewise.
8485 (sqrt<mode>2): Likewise.
8486 (*sqrt<mode>2): Likewise.
8487 (aarch64_frecpe<mode>): Likewise.
8488 (aarch64_cm<optab><mode>): Likewise.
8489 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
8490 HF, V4HF and V8HF.
8491 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
8492 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
8493 (stype): New.
8494 * config/aarch64/arm_neon.h (vdup_n_f16): New.
8495 (vdupq_n_f16): Likewise.
8496 (vld1_dup_f16): Use vdup_n_f16.
8497 (vld1q_dup_f16): Use vdupq_n_f16.
8498 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
8499 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
8500 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
8501 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
8502 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
8503 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
8504 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
8505 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
8506 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
8507 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
8508 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
8509 vsqrt_f16, vsqrtq_f16): New.
8510
8511 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8512
8513 * config/aarch64/aarch64-simd.md
8514 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
8515 (aarch64_ext<mode>): Likewise.
8516 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
8517 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
8518 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
8519 and V8HFmode.
8520 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
8521 float16x8_t.
8522 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
8523 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
8524 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
8525 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
8526 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
8527 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
8528 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
8529 New.
8530 (vmov_n_f16): Reimplement using vdup_n_f16.
8531 (vmovq_n_f16): Reimplement using vdupq_n_f16..
8532
8533 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8534
8535 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
8536 "frame_related_p". Generate CFA annotation when it's necessary.
8537 (aarch64_expand_prologue): Use aarch64_add_constant.
8538 (aarch64_expand_epilogue): Likewise.
8539 (aarch64_output_mi_thunk): Pass "false" when calling
8540 aarch64_add_constant.
8541
8542 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8543
8544 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
8545 sequences.
8546
8547 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8548
8549 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
8550 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
8551 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
8552 (aarch64_build_constant): Delete.
8553
8554 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
8555
8556 Revert
8557 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8558
8559 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8560 flag_toplevel_reorder.
8561
8562 2016-07-25 Richard Biener <rguenther@suse.de>
8563
8564 * cgraph.c (cgraph_node::verify_node): Compare against builtin
8565 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
8566 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
8567 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
8568 (streamer_get_builtin_tree): Likewise.
8569 (streamer_write_builtin): Likewise.
8570 * lto-streamer.h (LTO_builtin_decl): Remove.
8571 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
8572 (lto_input_scc): Remove LTO_builtin_decl handling.
8573 (lto_input_tree_1): Liekwise.
8574 * lto-streamer-out.c (lto_output_tree_1): Remove special
8575 handling of builtins.
8576 (DFS::DFS): Likewise.
8577 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
8578 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
8579 assert.
8580 (streamer_write_builtin): Remove.
8581
8582 2016-07-25 Martin Liska <mliska@suse.cz>
8583
8584 * lto-cgraph.c (input_symtab): Don't call get_working_sets
8585 if flag_auto_profile is set to true.
8586
8587 2016-07-25 Martin Liska <mliska@suse.cz>
8588
8589 PR gcov-profile/71868
8590 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
8591 have a function with multiple latches, count them all.
8592
8593 2016-07-25 Martin Liska <mliska@suse.cz>
8594
8595 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
8596
8597 2016-07-25 Martin Liska <mliska@suse.cz>
8598
8599 PR tree-optimization/71987
8600 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
8601 just for SSA_NAMEs. Fix GNU coding style.
8602
8603 2016-07-25 Martin Liska <mliska@suse.cz>
8604
8605 PR gcov-profile/64874
8606 * gcov-io.h: Update command about file format.
8607 * gcov-iov.c (main): Adapt the numbering scheme.
8608
8609 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8610
8611 PR middle-end/66726
8612 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
8613 whose result is used in PHI.
8614 (final_range_test_p): Likewise.
8615 (maybe_optimize_range_tests): Likewise.
8616
8617 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8618
8619 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8620 Reformat two multi-line strings.
8621
8622 2016-07-22 Martin Sebor <msebor@redhat.com>
8623
8624 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
8625
8626 2016-07-22 Martin Sebor <msebor@redhat.com>
8627
8628 PR c/71560
8629 * doc/extend.texi (Compound Literals): Correct and clarify.
8630 (Cast to Union): Same.
8631
8632 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
8633
8634 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8635 comments to explain why certain error messages make mention of
8636 undocumented options.
8637 (rs6000_invalid_builtin): Change error messages to replace mention
8638 of undocumented options with mention of the -mcpu=power9 option
8639 that enables those undocumented options.
8640 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8641 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8642 definition of this macro to correct an existing error.
8643 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8644 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8645 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8646 descriptions of built-in functions so that they depend on
8647 -mcpu=power9 instead of on the corresponding undocumented flags.
8648 * doc/invoke.texi (Option Summary): Remove all mention of newly
8649 undocumented flags.
8650 (IBM RS/6000 and PowerPC Options): Likewise.
8651 * doc/md.texi (Constraints for Particuliar Machines): Remove all
8652 mention of newly undocumented flags.
8653
8654 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
8655
8656 * ipa-cp.c (determine_versionability): Do not create constprop clones,
8657 when target_clones attribute is set.
8658
8659 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8660
8661 * common.opt (funsafe-loop-optimizations): Mark ignore.
8662 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8663 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8664 related code.
8665 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8666 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8667
8668 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8669
8670 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8671 Parameter.
8672 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8673 Parameter.
8674 (number_of_iterations_exit): Warn missed loop optimization for
8675 possible infinite loops.
8676
8677 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
8678
8679 PR target/71216
8680 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8681 when to emit a ".machine" pseudo-op.
8682
8683 2016-07-22 Martin Liska <mliska@suse.cz>
8684
8685 PR gcov-profile/69028
8686 PR gcov-profile/62047
8687 * coverage.c (coverage_compute_lineno_checksum): Do not
8688 calculate checksum for fns w/o xloc.file.
8689 (coverage_compute_profile_id): Likewise.
8690
8691 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
8692
8693 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8694 (avr_secondary_reload): ...and implementation.
8695 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8696 * config/avr/avr.md (reload_in<mode>): Remove insns.
8697 (adjust_len) [lpm]: Remove insn attribute value.
8698 * config/avr/predicates.md (flash_operand): Remove insn predicate.
8699
8700 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8701
8702 PR middle-end/71876
8703 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8704 attribute.
8705 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8706 * calls.c (special_function_p): Remove the special handling of the
8707 "__builtin_" prefix.
8708
8709 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8710
8711 PR middle-end/71876
8712 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
8713 if STMT may be an alloca call.
8714 (gimple_alloca_call_p, alloca_call_p): Return only true for the
8715 builtin alloca call.
8716 * calls.h (gimple_maybe_alloca_call_p): New function.
8717 * tree-inline.c (inline_forbidden_p_stmt): Use
8718 gimple_maybe_alloca_call_p here.
8719
8720 2016-07-21 David Malcolm <dmalcolm@redhat.com>
8721
8722 * spellcheck-tree.c (best_macro_match::best_macro_match):
8723 Explictly specify the template arguments when invoking the base
8724 class constructor, to help older C++ compilers.
8725
8726 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8727
8728 PR sanitizer/71953
8729 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8730 before builtin_decl_implicit.
8731
8732 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8733
8734 * optabs.c (emit_condiitonal_move): Short circuit for identical
8735 sources.
8736
8737 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8738
8739 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8740 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
8741 (noce_conversion_profitable_p): New.
8742 (noce_try_store_flag_constants): Use it.
8743 (noce_try_addcc): Likewise.
8744 (noce_try_store_flag_mask): Likewise.
8745 (noce_try_cmove): Likewise.
8746 (noce_try_cmove_arith): Likewise.
8747 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8748 overwriting it.
8749 (noce_convert_multiple_sets): Move cost model to here, from...
8750 (bb_ok_for_noce_convert_multiple_sets) ...here.
8751 (noce_process_if_block): Update calls for above changes.
8752 (noce_find_if_block): Record new noce_if_info parameters.
8753
8754 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8755
8756 * target.def (max_noce_ifcvt_seq_cost): New.
8757 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8758 * doc/tm.texi: Regenerate.
8759 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8760 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8761 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8762 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8763 * doc/invoke.texi: Document new params.
8764
8765 2016-07-21 Richard Biener <rguenther@suse.de>
8766
8767 PR tree-optimization/71947
8768 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8769 ranges have useful limit_vr information.
8770
8771 2016-07-21 Richard Biener <rguenther@suse.de>
8772
8773 * function-tests.c (build_trivial_generic_function): Set
8774 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8775 * omp-low.c (create_omp_child_function): Likewise.
8776 (grid_expand_target_grid_body): Likewise.
8777 * cgraphunit.c (init_lowered_empty_function): Likewise.
8778 (cgraph_node::expand_thunk): Likewise.
8779 * tree-parloops.c (create_loop_fn): Likewise.
8780 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8781
8782 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8783
8784 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8785 in comment.
8786
8787 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8788
8789 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8790 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8791 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8792 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8793 values for insn attribute.
8794 * config/avr/avr.c (avr_out_insert_notbit): New function.
8795 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8796 ADJUST_LEN_INSV_NOTBIT_0/_7.
8797 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8798
8799 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8800
8801 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8802 (chrec_convert_1, chrec_convert): Ditto.
8803 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8804 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8805 * tree-vrp.c (adjust_range_with_scev): Ditto.
8806 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8807 (scev_var_range_cant_overflow): New function.
8808 (scev_probably_wraps_p): New parameter. Call above function.
8809 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8810
8811 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8812
8813 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8814 by removing computation of may_be_zero.
8815
8816 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8817
8818 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8819
8820 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8821
8822 Improving concepts performance and diagnostics.
8823 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8824 for constraint satisfaction and subsumption.
8825 * timevar.h (auto_timevar): New constructor that matches the push/pop
8826 pattern of usage in pt.c.
8827
8828 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8829
8830 * hwint.h (HOST_WIDE_INT_0): New define.
8831 (HOST_WIDE_INT_0U): Ditto.
8832 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8833 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8834 * simplify-rtx.c: Ditto.
8835 * tree-object-size.c: Ditto.
8836
8837 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8838
8839 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8840 check.
8841
8842 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8843
8844 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8845 * combine.c: Use HOST_WIDE_INT_M1U instead of
8846 ~(unsigned HOST_WIDE_INT) 0.
8847 * double-int.h: Ditto.
8848 * dse.c: Ditto.
8849 * dwarf2asm.c:Ditto.
8850 * expmed.c: Ditto.
8851 * genmodes.c: Ditto.
8852 * match.pd: Ditto.
8853 * read-rtl.c: Ditto.
8854 * tree-ssa-loop-ivopts.c: Ditto.
8855 * tree-ssa-loop-prefetch.c: Ditto.
8856 * tree-vect-generic.c: Ditto.
8857 * tree-vect-patterns.c: Ditto.
8858 * tree.c: Ditto.
8859
8860 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8861
8862 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8863 constant addresses outside [0,0xc0] into a register.
8864 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8865 cases where the base address register is unused after.
8866 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8867 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8868 (avr_out_store_psi_reg_disp_tiny): Same.
8869
8870 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8871
8872 Implement attribute progmem on reduced Tiny cores by adding
8873 flash offset 0x4000 to respective symbols.
8874
8875 PR target/71948
8876 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8877 documentation how it works on reduced Tiny cores.
8878 (AVR Named Address Spaces): No support for reduced Tiny.
8879 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8880 (avr_address_tiny_pm_p): New static function.
8881 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8882 if the address is in progmem.
8883 (avr_assemble_integer): Same.
8884 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8885 for symbol_ref in progmem.
8886 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8887 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8888 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8889
8890 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8891
8892 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8893 * configure: Regenerate.
8894 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8895 (USE_THIN_ARCHIVES): New variable.
8896 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8897 this archive as a thin archive.
8898
8899 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8900
8901 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8902 same location as last time, don't skip if we have fix-it hints.
8903 Clarify the skipping logic by converting it from one "if" clause
8904 to repeated "if" clauses.
8905 * spellcheck-tree.c: Include "cpplib.h".
8906 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8907 (best_macro_match::best_macro_match): New constructor.
8908 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8909 Move here from c/c-decl.c.
8910 (class best_macro_match): Move here from c/c-decl.c, converting
8911 from a typedef to a subclass, gaining a ctor.
8912
8913 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8914
8915 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8916 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8917 define...
8918 (avr_addr_space_diagnose_usage): ...and implementation.
8919 (avr_addr_space_supported_p): New function.
8920 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8921 report bad address space usage if that space is supported.
8922 (avr_insert_attributes): Same. No more complain about unsupported
8923 address spaces.
8924 * config/avr/avr-c.c (tm_p.h): Include it.
8925 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8926 macro if avr_addr_space_supported_p.
8927
8928 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8929
8930 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8931 flag_toplevel_reorder.
8932
8933 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8934
8935 * gcc-rich-location.c
8936 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8937 a const char *.
8938 * gcc-rich-location.h
8939 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8940
8941 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8942
8943 * target.def (addr_space): Add new diagnose_usage to hook vector.
8944 * targhooks.c (default_addr_space_diagnose_usage): Add default
8945 implementation and...
8946 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8947 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8948 is some address space, call targetm.addr_space.diagnose_usage.
8949 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8950 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8951 * doc/tm.texi: Regenerate.
8952
8953 2016-07-20 Martin Liska <mliska@suse.cz>
8954
8955 PR middle-end/71898
8956 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8957 Properly handly PHI stmts.
8958
8959 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8960
8961 PR tree-optimization/71503
8962 PR tree-optimization/71683
8963 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8964 and break.
8965
8966 2016-07-20 Martin Liska <mliska@suse.cz>
8967
8968 * doc/invoke.texi (-fipa-ra): Document when the option is
8969 disabled. Fix a typo.
8970
8971 2016-07-20 Martin Liska <mliska@suse.cz>
8972
8973 * Makefile.in: Include fibonacci_heap.c
8974 * fibonacci_heap.c: New file.
8975 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8976 (fibonacci_heap::union_with): Fix deletion of the second heap.
8977 * selftest-run-tests.c (selftest::run_tests): Incorporate
8978 fibonacci heap tests.
8979 * selftest.h: Declare fibonacci_heap_c_tests.
8980
8981 2016-07-20 Martin Liska <mliska@suse.cz>
8982
8983 * selftest-run-tests.c (selftest::run_tests): New function.
8984 * selftest.h (sreal_c_tests): Declare.
8985 * sreal.c (sreal_verify_basics): New function.
8986 (verify_aritmetics): Likewise.
8987 (sreal_verify_arithmetics): Likewise.
8988 (verify_shifting): Likewise.
8989 (sreal_verify_shifting): Likewise.
8990 (void sreal_c_tests): Likewise.
8991
8992 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8993
8994 PR rtl-optimization/71916
8995 * cfgrtl.c (contains_no_active_insn_p): Return false also for
8996 bb which have a single succ fake edge.
8997
8998 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
8999
9000 PR debug/71855
9001 * dwarf2out.c (gen_subprogram_die): Only call
9002 gen_unspecified_parameters_die while dumping early dwarf.
9003
9004 2016-07-19 Jakub Jelinek <jakub@redhat.com>
9005
9006 PR middle-end/71874
9007 * gimple-fold.c (fold_builtin_memory_op): Use
9008 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
9009
9010 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
9011
9012 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
9013 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
9014 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
9015 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
9016 * combine.c: Ditto.
9017 * cse.c: Ditto.
9018 * dojump.c: Ditto.
9019 * double-int.c: Ditto.
9020 * dse.c: Ditto.
9021 * dwarf2out.c: Ditto.
9022 * expmed.c: Ditto.
9023 * expr.c: Ditto.
9024 * fold-const.c: Ditto.
9025 * function.c: Ditto.
9026 * fwprop.c: Ditto.
9027 * genmodes.c: Ditto.
9028 * hwint.c: Ditto.
9029 * hwint.h: Ditto.
9030 * ifcvt.c: Ditto.
9031 * loop-doloop.c: Ditto.
9032 * loop-invariant.c: Ditto.
9033 * loop-iv.c: Ditto.
9034 * match.pd: Ditto.
9035 * optabs.c: Ditto.
9036 * real.c: Ditto.
9037 * reload.c: Ditto.
9038 * rtlanal.c: Ditto.
9039 * simplify-rtx.c: Ditto.
9040 * stor-layout.c: Ditto.
9041 * toplev.c: Ditto.
9042 * tree-ssa-loop-ivopts.c: Ditto.
9043 * tree-vect-generic.c: Ditto.
9044 * tree-vect-patterns.c: Ditto.
9045 * tree.c: Ditto.
9046 * tree.h: Ditto.
9047 * ubsan.c: Ditto.
9048 * varasm.c: Ditto.
9049 * wide-int-print.cc: Ditto.
9050 * wide-int.cc: Ditto.
9051 * wide-int.h: Ditto.
9052
9053 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9054
9055 * selftest.c (selftest::assert_streq): Handle NULL values of
9056 val_actual and val_expected.
9057
9058 2016-07-19 Martin Jambor <mjambor@suse.cz>
9059
9060 PR fortran/71688
9061 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
9062 rather than cgraph_create_node to get a call graph node.
9063
9064 2016-07-19 Richard Biener <rguenther@suse.de>
9065
9066 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
9067 handle all tcc_constant bases and valueize SSA names.
9068 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
9069 tcc_constant bases.
9070
9071 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9072
9073 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
9074 the flags of the exit block and bb2, not just the entry block.
9075
9076 2016-07-19 Richard Biener <rguenther@suse.de>
9077
9078 PR tree-optimization/71901
9079 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9080 align member, group stuff with the bitfield.
9081 (vn_ref_op_align_unit): New inline.
9082 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
9083 record element alignment and operand 3 unchanged.
9084 (ao_ref_init_from_vn_reference): Adjust.
9085 (valueize_refs_1): Likewise.
9086 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9087
9088 2016-07-19 Richard Biener <rguenther@suse.de>
9089
9090 PR tree-optimization/71908
9091 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
9092 symbolic constants in a more reliable way.
9093
9094 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
9095
9096 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
9097 comment.
9098 (vect_update_inits_of_drs): Likewise.
9099 (vect_create_cond_for_alias_checks): Likewise.
9100 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
9101
9102 2016-07-19 Richard Biener <rguenther@suse.de>
9103
9104 PR lto/71907
9105 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
9106 with an abstract origin that is not an inlined function outer
9107 scope add a self-reference as abstract origin.
9108 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
9109
9110 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9111
9112 PR target/71493
9113 * config/rs6000/rs6000.c (rs6000_function_value): Fix
9114 unintentional System V.4 structure return breakage for structures
9115 with a single floating point element.
9116
9117 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9118
9119 PR tree-optimization/71734
9120 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
9121 contains REF, use it to check safelen, assume that safelen value
9122 must be greater 1, fix style.
9123 (ref_indep_loop_p_2): Add REF_LOOP argument.
9124 (ref_indep_loop_p): Pass LOOP as additional argument to
9125 ref_indep_loop_p_2.
9126
9127 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
9128
9129 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
9130 allocation in the prologue.
9131 * explow.c (get_dynamic_stack_base): New function to return an address
9132 expression for the dynamic stack base.
9133 (get_dynamic_stack_size): New function to do the required dynamic stack
9134 space size calculations.
9135 (allocate_dynamic_stack_space): Use new functions.
9136 (align_dynamic_address): Move some code from
9137 allocate_dynamic_stack_space to new function.
9138 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
9139
9140 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9141
9142 * config/s390/s390.c (s390_encode_section_info): Always set
9143 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
9144 found.
9145
9146 2016-07-18 Richard Biener <rguenther@suse.de>
9147
9148 PR tree-optimization/71893
9149 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
9150 for sizetype cast added by array_ref_element_size.
9151 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9152
9153 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
9154
9155 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
9156 register parameters. Remove code to initialize argument pointer
9157 on TARGET_64BIT. Optimize call to _mcount when it can be reached
9158 using a pc-relative branch. Cleanup conditional code.
9159 * config/pa/pa.md (call_mcount): New expander.
9160 (call_mcount_nonpic): New insn.
9161 (call_mcount_pic): New insn and split.
9162 (call_mcount_pic_post_reload): New insn.
9163 (call_mcount_64bit): New insn and split.
9164 (call_mcount_64bit_post_reload): New insn.
9165
9166 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
9167
9168 * config/avr/predicates.md (const_m255_to_m1_operand): New.
9169 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
9170 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
9171 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
9172 (*usum_widenqihi3, *udiff_widenqihi3)
9173 (*addhi3_zero_extend.const): New combiner insns.
9174 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
9175 just 1 bit is affected.
9176 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
9177 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
9178
9179 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9180
9181 * omp-low.c (lower_omp_target): Mark data clauses with
9182 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
9183 zero-length subarrays.
9184
9185 2016-07-15 Richard Biener <rguenther@suse.de>
9186
9187 PR tree-optimization/71881
9188 * tree-loop-distribution.c (destroy_loop): Remove blocks in
9189 reverse DOM order to make debug temp generation happy.
9190
9191 2016-07-15 Richard Biener <rguenther@suse.de>
9192
9193 PR tree-optimization/71887
9194 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
9195 verify it is not zero for division / modulo handling.
9196 (value_replacement): Adjust.
9197
9198 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
9199 Julian Brown <julian@codesourcery.com>
9200
9201 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
9202 * config/aarch64/aarch64-cost-tables.h
9203 (vulcan_extra_costs): New variable.
9204 * config/aarch64/aarch64.c
9205 (vulcan_addrcost_table): Likewise.
9206 (vulcan_regmove_cost): Likewise.
9207 (vulcan_vector_cost): Likewise.
9208 (vulcan_branch_cost): Likewise.
9209 (vulcan_tunings): Likewise.
9210
9211 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
9212
9213 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
9214 (output_in_order): Loop over undefined variables too. Output them
9215 via assemble_undefined_decl. Skip variables that correspond to hard
9216 registers or have value-exprs.
9217 * varpool.c (symbol_table::output_variables): Handle undefined
9218 variables together with defined ones.
9219
9220 2016-07-15 Richard Biener <rguenther@suse.de>
9221
9222 * tree-ssa-pre.c (get_representative_for): Make sure to return
9223 the value number of SSA names.
9224 (phi_translate_1): get_representative_for cannot return NULL.
9225 (do_pre_regular_insertion): Remove redundant call to
9226 fully_constant_expression.
9227 (do_pre_partial_partial_insertion): Likewise.
9228
9229 2016-07-15 Bin Cheng <bin.cheng@arm.com>
9230
9231 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
9232 (derive_simple_iv_with_niters): New function.
9233 (simple_iv): Rewrite using simple_iv_with_niters.
9234 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
9235 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9236 function.
9237 (number_of_iterations_exit): Rewrite using above function.
9238 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9239 Decl.
9240
9241 2016-07-15 Richard Biener <rguenther@suse.de>
9242
9243 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
9244 vec_construct cost.
9245
9246 2016-07-14 Jakub Jelinek <jakub@redhat.com>
9247
9248 PR tree-optimization/71872
9249 * tree-data-ref.c (get_references_in_stmt): Ignore references
9250 with is_gimple_constant get_base_address.
9251
9252 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9253
9254 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
9255 (TARGET_HAVE_LDACQD): New macro.
9256 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
9257 than TARGET_HAVE_LDACQ.
9258 (arm_load_acquire_exclusivedi): Likewise.
9259 (arm_store_release_exclusivedi): Likewise.
9260
9261 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9262
9263 PR rtl-optimization/71878
9264 * lra-constraints.c (match_reload): Pass information about other
9265 output operands. Create new unique register value if matching input
9266 operand shares same register value as output operand being considered.
9267 (curr_insn_transform): Record output operands already processed.
9268
9269 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9270
9271 PR target/65951
9272 PR tree-optimization/70923
9273 * tree-vect-patterns.c: Include mult-synthesis.h.
9274 (target_supports_mult_synth_alg): New function.
9275 (synth_lshift_by_additions): Likewise.
9276 (apply_binop_and_append_stmt): Likewise.
9277 (vect_synth_mult_by_constant): Likewise.
9278 (target_has_vecop_for_code): Likewise.
9279 (vect_recog_mult_pattern): Use above functions to synthesize vector
9280 multiplication by integer constants.
9281
9282 2016-07-14 Alan Modra <amodra@gmail.com>
9283
9284 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
9285 gpr alternatives. Correct '*' placement on Y,r alternative.
9286 Add '*' on operand 1 of r,r alternative.
9287
9288 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9289
9290 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
9291 * expmed.h: ... Here.
9292
9293 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
9294
9295 * gimple.h (stmt_can_terminate_bb_p): New function.
9296 * tree-cfg.c (need_fake_edge_p): Rename to ...
9297 (stmt_can_terminate_bb_p): ... this; return true if stmt can
9298 throw external; handle const and pure calls.
9299 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
9300
9301 2016-07-14 Richard Biener <rguenther@suse.de>
9302
9303 PR tree-optimization/71866
9304 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
9305 (do_hoist_insertion): Avoid endless recursion when we
9306 didn't insert anything because we managed to simplify
9307 things down to a constant or SSA name.
9308 (fully_constant_expression): Re-write in terms of ...
9309 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
9310 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
9311 vn_nary_build_or_lookup_1.
9312 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
9313 (vn_nary_build_or_lookup): ... this which now wraps it.
9314
9315 2016-07-14 Alan Modra <amodra@gmail.com>
9316
9317 PR target/71733
9318 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
9319 with p9_vector override before power9-dform override.
9320
9321 2016-07-13 Andi Kleen <ak@linux.intel.com>
9322
9323 * value-prof.c (gimple_value_profile_transformations): Don't run
9324 when auto_profile is on.
9325
9326 2016-07-13 Andi Kleen <ak@linux.intel.com>
9327
9328 * auto-profile.c (update_inlined_ind_target,
9329 afdo_indirect_call): Print information to dump file.
9330
9331 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
9332
9333 * genrecog.c (special_predicate_operand_p): New function.
9334 (predicate_name): Move function.
9335 (validate_pattern): Don't warn about missing mode for all
9336 define_special_predicate predicates.
9337
9338 2016-07-13 Bin Cheng <bin.cheng@arm.com>
9339
9340 * tree-vect-data-refs.c (vect_no_alias_p): New function.
9341 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
9342 resolve alias checks which are known at compilation time.
9343 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
9344 alias checks are resolved. Move dump info for too many runtime
9345 alias checks to here...
9346 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
9347
9348 2016-07-13 Richard Biener <rguenther@suse.de>
9349
9350 PR tree-optimization/24574
9351 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
9352 position and add shift, rotate, divison and modulo support
9353 for left zero.
9354 (value_replacement): Pass in argument position to absorbing_element_p.
9355
9356 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
9357
9358 PR ipa/71633
9359 * ipa-inline-transform.c (inline_call): Support
9360 instrumented thunks.
9361
9362 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9363
9364 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
9365 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
9366 divide feature.
9367 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
9368 Baseline. Make initial alternative TARGET_32BIT only.
9369 (udivsi3): Likewise.
9370 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
9371 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
9372 target.
9373
9374 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9375
9376 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
9377 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
9378 availability with TARGET_HAVE_MOVT.
9379 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
9380 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
9381 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
9382 UINTVAL.
9383 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
9384 extra instruction if MOVW is available. Use a cost variable
9385 incremented by COSTS_N_INSNS (1) when the condition match rather than
9386 returning an arithmetic expression based on COSTS_N_INSNS. Make
9387 constant with bottom half word zero cost 2 instruction if MOVW is
9388 available.
9389 * config/arm/arm.md (define_attr "arch"): Add v8mb.
9390 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
9391 target is ARMv8-M Baseline.
9392 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
9393 (arm_movtas_ze): Likewise.
9394 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
9395 alternative for constants satisfying j constraint.
9396 (thumb1_movsi_insn): Likewise.
9397 (movsi splitter for K alternative): Tighten condition to not trigger
9398 if movt is available and j constraint is satisfied.
9399 (Pe immediate splitter): Likewise.
9400 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
9401 constant fitting in an halfword to use MOVW.
9402 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
9403 effective target.
9404
9405 2016-07-13 Richard Biener <rguenther@suse.de>
9406
9407 PR middle-end/71104
9408 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
9409 gimplifying the LHS. Make sure to gimplify a returning twice
9410 call LHS without using SSA names.
9411
9412 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9413
9414 * tree-data-ref.c (find_data_references_in_stmt): Remove
9415 unnecessary call to vec::release.
9416 (graphite_find_data_references_in_stmt): Likewise.
9417 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
9418 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9419
9420 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9421
9422 * cfgexpand.c (expand_used_vars): Make the type of a local
9423 variable auto_vec.
9424 * genmatch.c (lower_for): Likewise.
9425 * haifa-sched.c (haifa_sched_init): Likewise.
9426 (add_to_speculative_block): Likewise.
9427 (create_check_block_twin): Likewise.
9428 * predict.c (handle_missing_profiles): Likewise.
9429 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
9430 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
9431 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
9432 Likewise.
9433 (maybe_lower_iteration_bound): Likewise.
9434 * tree-ssa-sccvn.c (DFS): Likewise.
9435 * tree-stdarg.c (reachable_at_most_once): Likewise.
9436 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9437 (vectorizable_store): Likewise.
9438
9439 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9440
9441 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
9442 (sccvn_dom_walker): make cond_stack an auto_vec.
9443
9444 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9445
9446 * ree.c (struct ext_state): Make type of members auto_vec.
9447 (find_and_remove_re): Adjust.
9448
9449 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9450
9451 * cfgexpand.c (struct stack_vars_data): Make type of fields
9452 auto_vec.
9453 (expand_used_vars): Adjust.
9454
9455 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9456
9457 * ipa.c (record_cdtor_fn): Adjust.
9458 (build_cdtor_fns): Likewise.
9459 (ipa_cdtor_merge): Make static_ctors and static_dtors local
9460 variables.
9461
9462 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9463
9464 * genextract.c (struct accum_extract): Add constructor and make
9465 members auto_vec.
9466 (gen_insn): Adjust.
9467
9468 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9469
9470 * tree.c (struct free_lang_data_d): Add constructor and change
9471 types of members to ones that automatically manage resources.
9472 (fld_worklist_push): Adjust.
9473 (find_decls_types): Likewise.
9474 (find_decls_types_in_eh_region): Likewise.
9475 (free_lang_data_in_cgraph): Stop manually creating and
9476 destroying members of free_lang_data_d.
9477
9478 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
9479
9480 PR rtl-optimization/68961
9481 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
9482 peephole variant. Use sse_reg_operand predicates.
9483
9484 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
9485
9486 * config/i386/predicates.md (x86_64_immediate_operand)
9487 <case CONST_INT>: Remove unneeded truncation to DImode.
9488 <case CONST>: Ditto.
9489 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9490
9491 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9492
9493 PR target/71805
9494 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
9495 The xxperm and xxpermr instructions require that the 2nd input
9496 operand overlap with the output operand, and not the 1st.
9497 (altivec_vperm_v8hiv16qi): Likewise.
9498 (altivec_vperm_<mode>_uns_internal): Likewise.
9499 (altivec_vpermr_<mode>_internal): Likewise.
9500 (vperm_v8hiv4si): Likewise.
9501 (vperm_v16qiv8hi): Likewise.
9502
9503 2016-07-12 Nathan Sidwell <nathan@acm.org>
9504
9505 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
9506 when -mno-pic-data-is-text-relative is in effect, by default.
9507 * doc/invoke.texi (mpic-data-is-text-relative): Document new
9508 behavior and clarify.
9509
9510 2016-07-12 Martin Liska <mliska@suse.cz>
9511
9512 * params.def: Add avg-loop niter.
9513 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
9514 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
9515 * doc/invoke.texi: Document the new parameter.
9516
9517 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9518
9519 PR middle-end/71700
9520 * expr.c (store_constructor): Mask sign-extended bits when widening
9521 sub-word constructor element at the start of a word.
9522
9523 2016-07-12 Martin Liska <mliska@suse.cz>
9524
9525 * Makefile.in: Append rule for params-options.h.
9526 * params-options.h: New file.
9527
9528 2016-07-12 Martin Liska <mliska@suse.cz>
9529
9530 * ira-build.c (mark_loops_for_removal): Properly iterate
9531 loops.
9532
9533 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
9534 Richard Biener <rguenther@suse.de>
9535
9536 PR tree-optimization/23286
9537 PR tree-optimization/70159
9538 * doc/invoke.texi: Document -fcode-hoisting.
9539 * common.opt (fcode-hoisting): New flag.
9540 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
9541 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
9542 (do_regular_insertion): Rename to ...
9543 (do_pre_regular_insertion): ... this and amend general comments
9544 on insertion strathegy.
9545 (do_partial_partial_insertion): Rename to ...
9546 (do_pre_partial_partial_insertion): ... this.
9547 (do_hoist_insertion): New function.
9548 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
9549 and call do_hoist_insertion properly.
9550 (insert): Adjust.
9551 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
9552 (pass_pre::execute): Register hoist_insert stats.
9553
9554 2016-07-12 Jakub Jelinek <jakub@redhat.com>
9555
9556 PR middle-end/71716
9557 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
9558 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
9559 is different from mode's bitsize. Small cleanup.
9560
9561 2016-07-12 Richard Biener <rguenther@suse.de>
9562
9563 PR rtl-optimization/68961
9564 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
9565 to simplify to a non-constant.
9566
9567 2016-07-11 Jakub Jelinek <jakub@redhat.com>
9568
9569 PR middle-end/71758
9570 * omp-low.c (expand_omp_target): Gimplify device.
9571
9572 PR tree-optimization/71823
9573 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
9574 to get vec_oprnds2 from op2.
9575
9576 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
9577
9578 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
9579 Hoist common subexpressions.
9580 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9581
9582 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
9583
9584 PR target/71800
9585 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
9586 prevent generation of 'stxsiwx' on pre Power8 hardware.
9587
9588 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9589
9590 * input.c: Include cpplib.h.
9591 (selftest::temp_source_file): New class.
9592 (selftest::temp_source_file::temp_source_file): New ctor.
9593 (selftest::temp_source_file::~temp_source_file): New dtor.
9594 (selftest::should_have_column_data_p): New function.
9595 (selftest::test_should_have_column_data_p): New function.
9596 (selftest::temp_line_table): New class.
9597 (selftest::temp_line_table::temp_line_table): New ctor.
9598 (selftest::temp_line_table::~temp_line_table): New dtor.
9599 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
9600 it to create a temp_line_table.
9601 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
9602 locations that are known to have column data.
9603 (selftest::line_table_case): New struct.
9604 (selftest::test_reading_source_line): Move tempfile handling
9605 to class temp_source_file.
9606 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
9607 (selftest::assert_token_loc_eq): New function.
9608 (ASSERT_TOKEN_LOC_EQ): New macro.
9609 (selftest::test_lexer): New function.
9610 (selftest::boundary_locations): New array.
9611 (selftest::input_c_tests): Call test_should_have_column_data_p.
9612 Loop over a test matrix of interesting values of location and
9613 default_range_bits, calling test_lexer on each case in the matrix.
9614 Move call to test_accessing_ordinary_linemaps into the matrix.
9615 * selftest.h (ASSERT_EQ): Reimplement in terms of...
9616 (ASSERT_EQ_AT): New macro.
9617
9618 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
9619
9620 PR target/71801
9621 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9622 Don't convert TImode in debug insn.
9623
9624 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9625
9626 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
9627 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
9628 (tree_type_common::lang_flag_7): New.
9629 (tree_type_common::spare): Reduce size.
9630 * tree.h (TYPE_ALIGN_OK): Remove.
9631 (TYPE_LANG_FLAG_7): New.
9632 (get_inner_reference): Adjust header.
9633 * print-tree.c (print_node): Adjust.
9634 * expr.c (get_inner_reference): Remove parameter keep_aligning.
9635 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
9636 calls to get_inner_reference.
9637 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
9638 handling of TYPE_ALIGN_OK.
9639 * builtins.c (get_object_alignment_2): Adjust call to
9640 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
9641 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9642 TYPE_ALIGN_OK.
9643 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9644 * cfgexpand.c (expand_debug_expr): Likewise.
9645 * dbxout.c (dbxout_expand_expr): Likewise.
9646 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9647 loc_list_from_tree, fortran_common): Likewise.
9648 * fold-const.c (optimize_bit_field_compare,
9649 decode_field_reference, fold_unary_loc, fold_comparison,
9650 split_address_to_core_and_offset): Likewise.
9651 * gimple-laddress.c (execute): Likewise.
9652 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9653 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9654 * hsa-gen.c (gen_hsa_addr): Likewise.
9655 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9656 * tsan.c (instrument_expr): Likewise.
9657 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9658 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9659 * tree-affine.c (tree_to_aff_combination,
9660 get_inner_reference_aff): Adjust calls to get_inner_reference.
9661 * tree-data-ref.c (split_constant_offset_1,
9662 dr_analyze_innermost): Likewise.
9663 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9664 * tree-sra.c (ipa_sra_check_caller): Likewise.
9665 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9666 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9667 bswap_replace): Likewise.
9668 * tree-vect-data-refs.c (vect_check_gather,
9669 vect_analyze_data_refs): Likewise.
9670 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9671 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9672 TYPE_ALIGN_OK.
9673
9674 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9675
9676 * Makefile.in (selftest-valgrind): New phony target.
9677 * function-tests.c (selftest::build_cfg): Delete pass instances
9678 created by the test.
9679 (selftest::convert_to_ssa): Likewise.
9680 (selftest::test_expansion_to_rtl): Likewise.
9681 * tree-cfg.c (selftest::test_linear_chain): Release dominator
9682 vectors.
9683 (selftest::test_diamond): Likewise.
9684
9685 2016-07-11 Richard Biener <rguenther@suse.de>
9686
9687 PR tree-optimization/71816
9688 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9689 than replacing all of its operands.
9690
9691 2016-07-11 Alan Modra <amodra@gmail.com>
9692
9693 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9694 (ctr<mode>): Add unspec.
9695 (ctr<mode>_internal*): Likewise.
9696
9697 2016-07-08 James Bowman <james.bowman@ftdichip.com>
9698
9699 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9700 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9701
9702 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
9703
9704 PR rtl-optimization/71621
9705 * lra-constraints.c (process_alt_operands): Check combination of
9706 reg class and mode.
9707
9708 2016-07-08 Jason Merrill <jason@redhat.com>
9709 Richard Biener <rguenther@suse.de>
9710
9711 P0145: Refining Expression Order for C++.
9712 * gimplify.c (initial_rhs_predicate_for): New.
9713 (gimplfy_modify_expr): Gimplify RHS before LHS.
9714
9715 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9716
9717 PR target/71297
9718 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9719 Allow standard error handling to take over when a wrong number
9720 of arguments is presented to __builtin_vec_ld () or
9721 __builtin_vec_st ().
9722
9723 2016-07-08 Jiong Wang <jiong.wang@arm.com>
9724
9725 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9726 variants.
9727 (smin): Likewise.
9728 (fmax): New entry.
9729 (fmin): Likewise.
9730 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9731 __builtin_aarch64_fmaxv2sf.
9732 (vmaxnmq_f32): Likewise.
9733 (vmaxnmq_f64): Likewise.
9734 (vminnm_f32): Likewise.
9735 (vminnmq_f32): Likewise.
9736 (vminnmq_f64): Likewise.
9737
9738 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9739
9740 PR target/71806
9741 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9742 enable -mfloat128-hardware by default.
9743 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9744 that IEEE 128-bit hardware support needs.
9745 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9746 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9747 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9748 floating point requires.
9749 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9750 -mfloat128 and -mfloat128-hardware changes.
9751
9752 2016-07-08 Alan Hayward <alan.hayward@arm.com>
9753
9754 PR tree-optimization/71667
9755 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9756
9757 2016-07-08 Martin Liska <mliska@suse.cz>
9758
9759 PR middle-end/71606
9760 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9761 folding produces SAVE_EXPRs, thus return false for the type.
9762
9763 2016-07-07 Martin Liska <mliska@suse.cz>
9764
9765 * file-find.c (remove_prefix): New function.
9766 * file-find.h (remove_prefix): Declare the function.
9767 * gcc-ar.c (main): Skip a folder of the wrapper if
9768 a wrapped binary would point to the same file.
9769
9770 2016-07-07 Jan Hubicka <jh@suse.cz>
9771
9772 * tree-scalar-evolution.c (iv_can_overflow_p): export.
9773 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9774 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9775
9776 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9777
9778 PR ipa/71624
9779 * ipa-inline-analysis.c (compute_inline_parameters): Set
9780 local.can_change_signature to false for intrumentation
9781 thunk callees.
9782
9783 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9784
9785 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9786 with TARGET_HAVE_MOVT.
9787 (TARGET_HAVE_MOVT): Define.
9788 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9789 availability with TARGET_HAVE_MOVT.
9790 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9791 availability.
9792 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9793 TARGET_THUMB2.
9794 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9795 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9796 * config/arm/constraints.md (define_constraint "j"): Use
9797 TARGET_HAVE_MOVT to check MOVT availability.
9798
9799 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9800
9801 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9802
9803 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9804
9805 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9806 (armv8-m.main): Likewise.
9807 (armv8-m.main+dsp): Likewise.
9808 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9809 (FL_FOR_ARCH8M_MAIN): Likewise.
9810 * config/arm/arm-tables.opt: Regenerate.
9811 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9812 armv8-m.main+dsp to BE8_LINK_SPEC.
9813 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9814 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9815 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9816 Baseline and Mainline.
9817 (arm_option_override_internal): Also disable arm_restrict_it when
9818 !arm_arch_notm. Update comment for -munaligned-access to also cover
9819 ARMv8-M Baseline.
9820 (arm_file_start): Increase buffer size for printing architecture name.
9821 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9822 and armv8-m.main+dsp.
9823 (mno-unaligned-access): Clarify that this is disabled by default for
9824 ARMv8-M Baseline architectures as well.
9825
9826 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9827
9828 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9829 decide whether to prevent some libgcc routines being included for some
9830 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9831 link between this condition and the one in
9832 libgcc/config/arm/lib1func.S.
9833
9834 2016-07-07 Richard Biener <rguenther@suse.de>
9835
9836 * tree-ssa-pre.c: Include alias.h.
9837 (compute_avail): If we have multiple VN_REFERENCEs with the
9838 same hashtable entry adjust that to make it a valid replacement
9839 for all of them with respect to alignment and aliasing
9840 when doing insertion.
9841 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9842 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9843
9844 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9845
9846 PR target/70098
9847 PR target/71763
9848 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9849 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9850 constraint.
9851
9852 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9853
9854 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9855 (adjust_mems): Adjust.
9856 (adjust_insn): Likewise.
9857 (prepare_call_arguments): Likewise.
9858
9859 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9860
9861 * gcse.c (struct ls_expr): Make stores field a vector.
9862 (ldst_entry): Adjust.
9863 (free_ldst_entry): Likewise.
9864 (print_ldst_list): Likewise.
9865 (compute_ld_motion_mems): Likewise.
9866 (update_ld_motion_stores): Likewise.
9867
9868 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9869
9870 * gcse.c (struct ls_expr): Remove loads field.
9871 (ldst_entry): Adjust.
9872 (free_ldst_entry): Likewise.
9873 (print_ldst_list): Likewise.
9874 (compute_ld_motion_mems): Likewise.
9875
9876 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9877
9878 * store-motion.c (struct st_expr): Make antic_stores a vector.
9879 (st_expr_entry): Adjust.
9880 (free_st_expr_entry): Likewise.
9881 (print_store_motion_mems): Likewise.
9882 (find_moveable_store): Likewise.
9883 (compute_store_table): Likewise.
9884 (remove_reachable_equiv_notes): Likewise.
9885 (replace_store_insn): Likewise.
9886 (build_store_vectors): Likewise.
9887
9888 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9889
9890 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9891 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9892
9893 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9894
9895 PR tree-optimization/71518
9896 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9897 misalign also for outer loops with negative step.
9898
9899 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9900
9901 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9902 (cortex_a53_shift): Add mov_shift.
9903 (cortex_a53_shift_reg): Add new reservation for register shifts.
9904 (cortex_a53_alu): Remove bfm.
9905 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9906 (cortex_a53_alu_extr): Add new reservation for EXTR.
9907 (bypasses): Improve bypass modelling.
9908
9909 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9910
9911 PR target/50739
9912 * config/avr/avr.c (avr_asm_select_section): Strip off
9913 SECTION_DECLARED from flags when calling get_section.
9914
9915 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9916
9917 * tree-vectorizer.h (vect_memory_access_type): Add
9918 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9919 * tree-vect-stmts.c (compare_step_with_zero): New function.
9920 (perm_mask_for_reverse): Move further up file.
9921 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9922 step is negative.
9923 (get_negative_load_store_type): New function.
9924 (get_load_store_type): Call it. Add an ncopies argument.
9925 (vectorizable_mask_load_store): Update call accordingly and
9926 remove tests for negative steps.
9927 (vectorizable_store, vectorizable_load): Likewise. Handle new
9928 memory_access_types.
9929
9930 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9931
9932 * tree-vectorizer.h (vect_memory_access_type): New enum.
9933 (_stmt_vec_info): Add a memory_access_type field.
9934 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9935 (vect_model_store_cost): Take an access type instead of a boolean.
9936 (vect_model_load_cost): Likewise.
9937 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9938 vect_model_store_cost and vect_model_load_cost.
9939 * tree-vect-stmts.c (vec_load_store_type): New enum.
9940 (vect_model_store_cost): Take an access type instead of a
9941 store_lanes_p boolean. Simplify tests.
9942 (vect_model_load_cost): Likewise, but for load_lanes_p.
9943 (get_group_load_store_type, get_load_store_type): New functions.
9944 (vectorizable_store): Use get_load_store_type. Record the access
9945 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9946 (vectorizable_load): Likewise.
9947 (vectorizable_mask_load_store): Likewise. Replace is_store
9948 variable with vls_type.
9949
9950 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9951
9952 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9953 single_element_p parameter.
9954 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9955 Check the PR65518 case here rather than in vectorizable_load.
9956 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9957 * tree-vect-stmts.c (vectorizable_load): Likewise.
9958
9959 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9960
9961 * tree-vectorizer.h (gather_scatter_info): New structure.
9962 (vect_check_gather_scatter): Return a bool rather than a decl.
9963 Replace return-by-pointer arguments with a single
9964 gather_scatter_info *.
9965 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9966 (vect_analyze_data_refs): Update call accordingly.
9967 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9968 (vectorizable_mask_load_store): Likewise. Also record the
9969 offset dt and vectype in the gather_scatter_info.
9970 (vectorizable_store): Likewise.
9971 (vectorizable_load): Likewise.
9972
9973 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9974
9975 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9976 strided groups, use the cost of N scalar accesses instead
9977 of ncopies vector accesses.
9978 (vect_model_load_cost): Likewise.
9979
9980 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9981
9982 * tree-vect-stmts.c (vect_cost_group_size): Delete.
9983 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
9984 variable to indicate when once-per-group costs are being used.
9985 (vect_model_load_cost): Likewise. Fix comment and misindented code.
9986
9987 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9988
9989 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9990 peeling-for-gaps condition.
9991
9992 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9993
9994 * config/s390/s390.c (s390_expand_vec_init): Force initializer
9995 element to register if it doesn't match general_operand.
9996
9997 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9998 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9999
10000 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
10001 prototype.
10002 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
10003 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
10004 (SIGNBIT): New mode iterator.
10005 (Fsignbit): New mode attribute.
10006 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
10007 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
10008 when direct moves are available.
10009 (signbit<mode>2_dm): New define_insn_and_split).
10010 (signbit<mode>2_dm2): New define_insn.
10011
10012 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10013
10014 PR rtl-optimization/71594
10015 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
10016 into subregs of appropriate mode before trying to emit a conditional
10017 move.
10018
10019 2016-07-05 Jan Hubicka <jh@suse.cz>
10020
10021 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
10022 (simple_iv): Use it.
10023
10024 2016-07-05 Jan Hubicka <jh@suse.cz>
10025
10026 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
10027
10028 2016-07-05 Jiong Wang <jiong.wang@arm.com>
10029
10030 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
10031 "offmemok".
10032
10033 2016-07-05 Jan Hubicka <jh@suse.cz>
10034
10035 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
10036 IV can overflow.
10037
10038 2016-07-05 Richard Biener <rguenther@suse.de>
10039
10040 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
10041 Handle empty else block.
10042 (is_feasible_trace): Likewise.
10043 (split_paths): Likewise.
10044
10045 2016-07-05 Richard Biener <rguenther@suse.de>
10046
10047 * tree-loop-distribution.c (distribute_loop): Fix issue with
10048 the cost model loop.
10049
10050 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
10051
10052 * config/arm/neon-testgen.ml: Delete.
10053 * config/arm/neon.ml: Delete.
10054
10055 2016-07-04 Jakub Jelinek <jakub@redhat.com>
10056
10057 PR c++/71739
10058 * tree.c (attribute_value_equal): Use get_attribute_name instead of
10059 directly using TREE_PURPOSE.
10060
10061 2016-07-04 Jiong Wang <jiong.wang@arm.com>
10062
10063 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
10064 * config/aarch64/aarch64_neon.h: Likewise.
10065 * config/aarch64/arm_neon.h: Likewise.
10066 * config/aarch64/atomics.md: Likewise.
10067 * config/aarch64/aarch64-simd-builtins.def: Likewise.
10068 * doc/invoke.texi: Likewise.
10069
10070 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10071
10072 * config/s390/s390.md: Add "z13" cpu_facility.
10073 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
10074 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
10075 condition" type instructions.
10076
10077 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10078 Jeff Law <law@redhat.com>
10079
10080 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
10081 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
10082
10083 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
10084
10085 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
10086 permutation for TARGET_AVX512F.
10087 (ix86_expand_vec_one_operand_perm_avx512): New function.
10088 (expand_vec_perm_1): Invoke introduced function.
10089 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10090 it may be not valid after vectorization.
10091
10092 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10093
10094 PR target/63874
10095 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
10096 typo in comment. Only force to memory if it is a weak
10097 external reference.
10098
10099 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
10100 Jiong Wang <jiong.wang@arm.com>
10101
10102 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
10103 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
10104 (AARCH64_FL_F16): New.
10105 (AARCH64_FL_FOR_ARCH8_2): New.
10106 (AARCH64_ISA_8_2): New.
10107 (AARCH64_ISA_F16): New.
10108 (TARGET_FP_F16INST): New.
10109 (TARGET_SIMD_F16INST): New.
10110 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
10111 ("fp"): Disabling "fp" also disables "fp16".
10112 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
10113 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
10114 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
10115 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
10116
10117 2016-07-04 Jan Beulich <jbeulich@suse.com>
10118
10119 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
10120
10121 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10122
10123 PR target/71720
10124 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
10125 the insns, use an insn form that does not adjust the offset on
10126 little endian systems.
10127
10128 2016-07-01 Jan Beulich <jbeulich@suse.com>
10129
10130 * varasm.c (get_variable_section): Validate initializer in
10131 named .bss-like sections.
10132
10133 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10134
10135 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
10136 Exchange the order of the second and third operands in the vpermr
10137 instruction tmeplate.
10138
10139 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
10140
10141 PR target/71698
10142 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
10143 Disallow TDmode values.
10144
10145 2016-07-01 Alan Modra <amodra@gmail.com>
10146
10147 PR rtl-optimization/71709
10148 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
10149 being set, not referenced.
10150
10151 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10152
10153 PR tree-optimization/70729
10154 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
10155 of loop since it can be not valid after transformation.
10156
10157 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10158
10159 * config/arm/arm.c (thumb_reload_in_hi): Delete.
10160 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
10161
10162 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
10163
10164 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
10165 for NULL decl.
10166
10167 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10168
10169 PR target/71677
10170 * config/rs6000/constraints.md (wY constraint): New constraint to
10171 match the requirements for the LXSD and STXSD instructions.
10172 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
10173 predicate to match the requirements for the LXSD and STXSD
10174 instructions.
10175 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
10176 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
10177 to make sure that the bottom 2 bits of offset are 0, the address
10178 form is offsettable, and no updating is done in the address mode.
10179 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
10180 (movdi_internal32): Likewise
10181 (movdi_internal64): Likewise.
10182
10183 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10184
10185 PR tree-optimization/71707
10186 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
10187 strinfo even for ADDR_EXPR ptr.
10188
10189 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10190
10191 * config/rs6000/altivec.md (darn_32): Change the condition to
10192 TARGET_P9_MISC instead of TARGET_MODULO.
10193 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
10194 condition expression.
10195 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
10196 condition expression.
10197 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
10198 (DFP_TEST): New code iterator.
10199 (dfptstsfi_<code>_mode>): New define_expand.
10200 (*dfp_sgnfcnc_<mode>): New define_insn.
10201 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
10202 definition next to BU_P9_MISC_1 definition and change the MASK
10203 value to RS6000_BTM_P9_MISC.
10204 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
10205 (BU_P9_64BIT_MISC_0): Likewise.
10206 (BU_P9_DFP_MISC_0): New macro definition.
10207 (BU_P9_DFP_MISC_1): New macro definition.
10208 (BU_P9_DFP_MISC_2): New macro definition.
10209 (BU_P9_DFP_OVERLOAD_1): New macro definition.
10210 (BU_P9_DFP_OVERLOAD_2): New macro definition.
10211 (BU_P9_DFP_OVERLOAD_3): New macro definition.
10212 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
10213 (TSTSFI_LT_TD): Likewise.
10214 (TSTSFI_EQ_DD): Likewise.
10215 (TSTSFI_EQ_TD): Likewise.
10216 (TSTSFI_GT_DD): Likewise.
10217 (TSTSFI_GT_TD): Likewise.
10218 (TSTSFI_OV_DD): Likewise.
10219 (TSTSFI_OV_TD): Likewise.
10220 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
10221 (TSTSFI_LT_DD): Likewise.
10222 (TSTSFI_LT_TD): Likewise.
10223 (TSTSFI_EQ): Likewise.
10224 (TSTSFI_EQ_DD): Likewise.
10225 (TSTSFI_EQ_TD): Likewise.
10226 (TSTSFI_GT): Likewise.
10227 (TSTSFI_GT_DD): Likewise.
10228 (TSTSFI_GT_TD): Likewise.
10229 (TSTSFI_OV): Likewise.
10230 (TSTSFI_OV_DD): Likewise.
10231 (TSTSFI_OV_TD): Likewise.
10232 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10233 overloaded test significance functions.
10234 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10235 OPTION_MASK_P9_MISC into the representation of this mask.
10236 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
10237 of this mask.
10238 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
10239 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
10240 non-zero.
10241 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
10242 argument is a 6-bit unsigned literal value if the icode argument
10243 represents a DFP test significance built-in call.
10244 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
10245 flag used independently and in combination with the
10246 RS6000_BTM_64BIT flag.
10247 (rs6000_opt_masks): Add entry for power9-misc command-line option.
10248 (rs6000_builtin_mask_names): Add entry for power9-misc
10249 command-line option.
10250 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
10251 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
10252 RS6000_BTM_P9_MISC macros.
10253 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
10254 option and change the description of the -mpower9-vector option to
10255 enable only vector instructions, removing its erroneously claimed
10256 support for scalar instructions.
10257 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10258 the ISA 3.0 digital floating point test significance built-in
10259 functions.
10260
10261 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
10262
10263 * config/aarch64/aarch64.c (cortexa35_tunings):
10264 Enable AES fusion. Use cortexa57_branch_cost.
10265 (cortexa53_tunings): Use cortexa57_branch_cost.
10266 (cortexa72_tunings): Use cortexa57_branch_cost.
10267 Use AUTOPREFETCHER_WEAK.
10268 (cortexa73_tunings): Use cortexa57_branch_cost.
10269
10270 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10271 James Greenhalgh <james.greenhalgh@arm.com>
10272
10273 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
10274 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
10275 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
10276 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
10277 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
10278 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
10279 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
10280 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
10281 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
10282 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
10283 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
10284 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
10285 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
10286 New intrinsics.
10287
10288 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
10289 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10290
10291 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10292 New define_insn.
10293 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
10294
10295 2016-06-30 David Malcolm <dmalcolm@redhat.com>
10296
10297 PR driver/71651
10298 * gcc.c (driver::build_option_suggestions): Pass "option" to
10299 add_misspelling_candidates.
10300 * opts-common.c (add_misspelling_candidates): Add "option" param;
10301 use it to avoid adding negated forms for options marked with
10302 RejectNegative.
10303 * opts.h (add_misspelling_candidates): Add "option" param.
10304
10305 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10306
10307 PR middle-end/71693
10308 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
10309 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
10310 first when permuting bitwise operation with rotate. Cast
10311 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
10312
10313 2016-06-29 David Malcolm <dmalcolm@redhat.com>
10314
10315 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
10316 for misspelled param names.
10317 * params.c: Include spellcheck.h.
10318 (find_param_fuzzy): New function.
10319 * params.h (find_param_fuzzy): New prototype.
10320 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
10321 * spellcheck.h (struct edit_distance_traits<const char *>):
10322 ...here.
10323
10324 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
10325
10326 * config/rs6000/predicates.md (const_0_to_7_operand): New
10327 predicate, recognize 0..7.
10328 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10329 support for doing extracts from V16QImode, V8HImode, V4SImode
10330 under ISA 3.0.
10331 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
10332 vector extract support.
10333 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
10334 for ISA 3.0 vector extract.
10335 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
10336 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
10337 extracts of a constant element number from small integer vectors
10338 on 64-bit ISA 3.0 systems.
10339 (vsx_extract_<mode>_di): Likewise.
10340 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
10341 say when we can do ISA 3.0 vector extracts.
10342 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
10343 registers, using the stxsiwx instruction.
10344
10345 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
10346
10347 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
10348 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
10349 qdf24xx_regmove_cost, qdf24xx_tunings): New.
10350 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
10351 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
10352 * config/arm/arm.c (arm_qdf24xx_tune): New.
10353
10354 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
10355
10356 * config/aarch64/aarch64.c (cortexa53_tunings):
10357 Increase loop alignment to 8. Set function alignment to 16.
10358 (cortexa35_tunings): Likewise.
10359 (cortexa57_tunings): Increase loop alignment to 8.
10360 (cortexa72_tunings): Likewise.
10361 (cortexa73_tunings): Likewise.
10362
10363 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
10364
10365 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
10366 for arm_fp16_ok and arm_fp16_hw.
10367 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
10368 arm_fp16_alternative.
10369
10370 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
10371
10372 PR tree-optimization/71655
10373 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
10374 types when swapping operands.
10375
10376 2016-06-29 Martin Liska <mliska@suse.cz>
10377
10378 PR middle-end/71585
10379 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
10380 * ipa-inline-transform.c (inline_call): Remove unnecessary call
10381 of build_optimization_node.
10382
10383 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10384
10385 PR tree-optimization/70729
10386 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
10387 independent in loops having positive safelen value.
10388 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10389 it may be not valid after vectorization.
10390
10391 2016-06-29 Jakub Jelinek <jakub@redhat.com>
10392
10393 PR tree-optimization/71625
10394 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
10395 is sorted by ascending list->offset. If PTR is non-NULL and there is
10396 previous strinfo, call get_stridx_plus_constant.
10397 (get_stridx): Pass exp as second argument to get_addr_stridx.
10398 (addr_stridxptr): Add missing list = list->next, so that there can be
10399 more than one entries in the list. Bump limit from 16 to 32. Ensure
10400 the list is sorted by ascending list->offset.
10401 (get_stridx_plus_constant): Adjust so that it can be also called with
10402 ADDR_EXPR instead of SSA_NAME as PTR.
10403 (handle_char_store): Pass NULL_TREE as second argument to
10404 get_addr_stridx.
10405
10406 2016-06-29 Richard Biener <rguenther@suse.de>
10407
10408 PR rtl-optimization/68961
10409 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
10410
10411 2016-06-29 Richard Biener <rguenther@suse.de>
10412
10413 PR middle-end/71002
10414 * alias.c (component_uses_parent_alias_set_from): Handle
10415 type punning through union accesses by using the union alias set.
10416 * gimple.c (gimple_get_alias_set): Remove union type punning case.
10417
10418 2016-07-29 Richard Biener <rguenther@suse.de>
10419
10420 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
10421 precision not matching mode precision.
10422
10423 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
10424
10425 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
10426 pa_output_arg_descriptor.
10427 (call_val_symref_64bit_post_reload): Likewise.
10428 (call_val_powf_64bit_post_reload): Likewise.
10429 (sibcall_internal_symref_64bit): Likewise.
10430 (sibcall_value_internal_symref_64bit): Likewise.
10431
10432 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10433
10434 PR middle-end/71626
10435 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
10436 a constant, force its SUBREG_REG into memory or register instead
10437 of whole op1.
10438
10439 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10440
10441 PR target/58655
10442 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
10443 * doc/invoke.texi (AVR Options): Document it.
10444
10445 2016-06-28 Walter Lee <walt@tilera.com>
10446
10447 * config/tilegx/linux.h: Do not include arch/icache.h
10448 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10449 * config/tilepro/linux.h: Do not include arch/icache.h
10450 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10451
10452 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
10453
10454 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
10455 for big-endian BIT_FIELD_REF.
10456
10457 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
10458
10459 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
10460 ('size' attribute): Add '128'.
10461 Include power9.md.
10462 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
10463 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
10464 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
10465 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
10466 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
10467 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
10468 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
10469 *trunc<mode>df2_odd): Set size attribute to '128'.
10470 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
10471 * config/rs6000/power6.md (power6-fp): Include dfp type.
10472 * config/rs6000/power7.md (power7-fp): Likewise.
10473 * config/rs6000/power8.md (power8-fp): Likewise.
10474 * config/rs6000/power9.md: New file.
10475 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
10476 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
10477 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
10478 htmsimple.
10479 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
10480 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
10481 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
10482 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
10483 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
10484 dfp_dscri_<mode>): Change type attribute to dfp.
10485 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
10486 attribute to vecsimple.
10487 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
10488 and prefetch streams.
10489 (rs6000_option_override_internal): Remove temporary code setting
10490 tuning to power8. Don't set rs6000_sched_groups for power9.
10491 (last_scheduled_insn): Change to rtx_insn *.
10492 (divide_cnt, vec_load_pendulum): New variables.
10493 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
10494 (rs6000_issue_rate): Set issue rate for Power9.
10495 (is_power9_pairable_vec_type): New.
10496 (power9_sched_reorder2): New.
10497 (rs6000_sched_reorder2): Call new function for Power9 specific
10498 reordering.
10499 (insn_must_be_first_in_group): Remove Power9.
10500 (insn_must_be_last_in_group): Likewise.
10501 (force_new_group): Likewise.
10502 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
10503 Initialize divide_cnt/vec_load_pendulum.
10504 (_rs6000_sched_context, rs6000_init_sched_context,
10505 rs6000_set_sched_context): Handle context save/restore of new
10506 variables.
10507
10508 2016-06-28 Richard Biener <rguenther@suse.de>
10509
10510 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10511 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
10512 COMPONENT_REF operand.
10513 (nonoverlapping_component_refs_p): Likewise.
10514 * stor-layout.c (start_bitfield_representative): Mark
10515 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
10516
10517 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10518
10519 * Makefile.in: Don't cat ../stage_current if it does not exist.
10520
10521 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
10522 last argument is a bit-field.
10523
10524 PR rtl-optimization/71673
10525 * internal-fn.c (expand_arith_overflow_result_store): Use
10526 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
10527 expand_simple_binop.
10528
10529 PR middle-end/66867
10530 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
10531 expand_ifn_atomic_compare_exchange): New functions.
10532 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
10533 * tree.h (build_call_expr_internal_loc): Rename to ...
10534 (build_call_expr_internal_loc_array): ... this. Fix up type of
10535 last argument.
10536 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
10537 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
10538 ATOMIC_COMPARE_EXCHANGE result.
10539 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
10540 * gimple-fold.h (optimize_atomic_compare_exchange_p,
10541 fold_builtin_atomic_compare_exchange): New prototypes.
10542 * gimple-fold.c (optimize_atomic_compare_exchange_p,
10543 fold_builtin_atomic_compare_exchange): New functions..
10544 * tree-ssa.c (execute_update_addresses_taken): If
10545 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
10546 of call when finding addressable vars, and if such var becomes
10547 non-addressable, call fold_builtin_atomic_compare_exchange.
10548
10549 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
10550
10551 PR target/71670
10552 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
10553 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
10554
10555 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
10556
10557 * config/rs6000/rs6000.md ('type' attribute): Add
10558 veclogical,veccmpfx,vecexts,vecmove insn types.
10559 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
10560 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
10561 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
10562 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
10563 *nabs<mode>2_hw): Change type to vecmove.
10564 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
10565 *boolcc<mode>3_internal, *eqv<mode>3_internal,
10566 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
10567 *ieee_128bit_vsx_abs<mode>2_internal,
10568 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
10569 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
10570 *ieee128_mtvsrd_32bit): Change type to veclogical.
10571 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10572 *movdi_internal32, *movdi_internal64): Update insn types.
10573 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10574 vsx_extract_<mode>): Change type to veclogical.
10575 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
10576 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
10577 *vsx_sign_extend_si_v2di): Change type to vecexts.
10578 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
10579 type to veclogical.
10580 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
10581 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
10582 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
10583 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
10584 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10585 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
10586 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
10587 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
10588 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
10589 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
10590 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
10591 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
10592 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
10593 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
10594 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
10595 (ppc7450-vecsimple): Add veclogical, vecmove.
10596 (ppc7450-veccmp): Add veccmpfx.
10597 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
10598 vecmove.
10599 (ppc8540_vector_compare): Add veccmpfx.
10600 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
10601 * config/rs6000/cell.md (cell-fp): Add fpsimple.
10602 (cell-vecsimple): Add veclogical, vecmove.
10603 (cell-veccmp): Add veccmpfx.
10604 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
10605 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
10606 veccmpfx.
10607 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
10608 * config/rs6000/power4.md (power4-fp): Add fpsimple.
10609 (power4-vecsimple): Add veclogical, vecmove.
10610 (power4-veccmp): Add veccmpfx.
10611 * config/rs6000/power5.md (power5-fp): Add fpsimple.
10612 * config/rs6000/power6.md (power6-fp): Add fpsimple.
10613 (power6-vecsimple): Add veclogical, vecmove.
10614 (power6-veccmp): Add veccmpfx.
10615 * config/rs6000/power7.md (power7-fp): Add fpsimple.
10616 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
10617 * config/rs6000/power8.md (power8-fp): Add fpsimple.
10618 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
10619 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
10620 * config/rs6000/titan.md (titan_fp): Add fpsimple.
10621 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
10622 fpsimple.
10623 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
10624
10625 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
10626
10627 PR target/71656
10628 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10629 OPTION_MASK_P9_DFORM_VECTOR.
10630 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10631 disable -mpower9-dform-vector when using reload.
10632 (quad_address_p): Remove 'gpr_p' argument and all associated code.
10633 New 'strict' argument. Update all callers. Add strict addressing
10634 support.
10635 (rs6000_legitimate_offset_address_p): Remove call to
10636 virtual_stack_registers_memory_p.
10637 (rs6000_legitimize_reload_address): Add quad address support.
10638 (rs6000_legitimate_address_p): Move call to quad_address_p above
10639 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
10640 to account for new strict usage.
10641 (rs6000_output_move_128bit): Adjust quad_address_p args to account
10642 for new strict usage.
10643 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10644
10645 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
10646
10647 PR target/70902
10648 PR target/71453
10649 PR target/71555
10650 PR target/71596
10651 PR target/71657
10652 * config/i386/i386.c (ix86_spill_class): Disable condition to
10653 always return NO_REGS.
10654
10655 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
10656
10657 * predict.c: Include gimple-pretty-print.h
10658 (predicted_by_loop_heuristics_p): Check also
10659 PRED_LOOP_EXIT_WITH_RECURSION
10660 (predict_loops): Find self recursive calls and use special purpose
10661 predictors for them; dump log about decisions.
10662 (pass_profile::execute): Dump info about #of iterations.
10663 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10664 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10665
10666 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
10667
10668 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10669 output_asm_insn calls and shorten long lines. Output .CALL
10670 argument descriptor using pa_output_arg_descriptor. Add various
10671 inline $$dyncall and other optimizations.
10672 (pa_attr_length_indirect_call): Adjust ordering and lengths.
10673
10674 2016-06-25 Jakub Jelinek <jakub@redhat.com>
10675
10676 PR tree-optimization/71643
10677 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10678 EH preds.
10679
10680 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10681 leak a bitmap if dep_bb is NULL.
10682
10683 PR tree-optimization/71631
10684 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10685 to rewrite_expr_tree even if negate_result, move new_lhs var
10686 declaration and initialization earlier, for powi_result set afterwards
10687 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
10688 if new_lhs != lhs, and don't shadow gsi var.
10689
10690 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10691
10692 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10693 Add in_loop parameter.
10694 (predict_loops): Add loop guard heuristics.
10695 * predict.def (PRED_LOOP_GUARD): New heuristics.
10696
10697 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10698
10699 * predict.c: Include ipa-utils.h
10700 (tree_bb_level_prediction): Predict recursive calls.
10701 (tree_estimate_probability_bb): Skip inexpensive calls for call
10702 predictor.
10703 * predict.def (PRED_RECURSIVE_CALL): New.
10704
10705 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10706
10707 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10708 (BU_FLOAT128_1): Likewise.
10709 (FABSQ): Likewise.
10710 (COPYSIGNQ): Likewise.
10711 (RS6000_BUILTIN_NANQ): Likewise.
10712 (RS6000_BUILTIN_NANSQ): Likewise.
10713 (RS6000_BUILTIN_INFQ): Likewise.
10714 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10715 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10716 (TARGET_FOLD_BUILTIN): New #define.
10717 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10718 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10719 (rs6000_fold_builtin): New target hook implementation, handling
10720 folding of 128-bit NaNs and infinities.
10721 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10722 entries are filled in to avoid problems during bootstrap
10723 self-test; define builtins for 128-bit NaNs and infinities.
10724 (rs6000_opt_mask): Add entry for float128.
10725 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10726 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10727 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10728 (const_str_type_node): New #define.
10729 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10730 to a define_expand that dispatches to either copysign<mode>3_soft
10731 or copysign<mode>3_hard.
10732 (copysign<mode>3_hard): Rename from copysign<mode>3.
10733 (copysign<mode>3_soft): New define_insn.
10734 * doc/extend.texi: Document new builtins.
10735
10736 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10737
10738 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10739 PRIu64 instead of lu.
10740
10741 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
10742
10743 PR debug/71642
10744 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10745 copy the type name.
10746
10747 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10748
10749 PR tree-optimization/71647
10750 * omp-low.c (lower_rec_input_clauses): Convert
10751 omp_clause_aligned_alignment (c) to size_type_node for the
10752 last argument of __builtin_assume_aligned.
10753
10754 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
10755
10756 * configure.ac (calling ___tls_get_addr via GOT): New
10757 assembler/linker check.
10758 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
10759 assembler and linker supports calling ___tls_get_addr via GOT.
10760 Otherise, defined to 0.
10761 * config.in: Regenerated.
10762 * configure: Likewise.
10763 * config/i386/constraints.md (Yb): New constraint.
10764 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10765 (REG_CLASS_NAMES): Likewise.
10766 (REG_CLASS_CONTENTS): Likewise.
10767 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10768 the b constraint with the Yb constraint. Call ___tls_get_addr
10769 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10770 is 1.
10771 (*tls_local_dynamic_base_32_gnu): Likewise.
10772 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10773 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10774 (*tls_local_dynamic_base_64_<mode>): Likewise.
10775
10776 2016-06-24 Martin Liska <mliska@suse.cz>
10777
10778 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10779 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10780 few functions.
10781 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10782 argument to true if the expected number of iterations is
10783 loop-based.
10784
10785 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10786
10787 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10788 assemble for 32bit target.
10789 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10790 and $ld_ix86_gld_32_opt to link for 32bit target.
10791 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10792 * configure: Regenerate.
10793
10794 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10795
10796 * config/arm/arm.c (int_log2): Delete definition and prototype.
10797 (shift_op): Use exact_log2 instead of int_log2.
10798 (vfp3_const_double_for_fract_bits): Likewise.
10799
10800 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10801
10802 * internal-fn.c (expand_arith_set_overflow): New function.
10803 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10804 Use it.
10805 (expand_arith_overflow_result_store): Likewise. Handle precision
10806 smaller than mode precision.
10807 * tree-vrp.c (extract_range_basic): For imag part, handle
10808 properly signed 1-bit precision result.
10809 * doc/extend.texi (__builtin_add_overflow): Document that last
10810 argument can't be pointer to enumerated or boolean type.
10811 (__builtin_add_overflow_p): Document that last argument can't
10812 have enumerated or boolean type.
10813
10814 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10815 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10816
10817 * config/rs6000/predicates.md (splat_input_operand): Rework.
10818 Don't allow constants, since the insns that use this predicate
10819 don't support constants. Constants are handled by other insns
10820 that are created via combine. During and after register
10821 allocation, only allow indexed or indirect addresses, and not
10822 general addresses. Only allow modes supported by the hardware.
10823 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10824 comment. Move check for using VSPLTIS<x> to a common location,
10825 instead of doing it in two different places.
10826
10827 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10828
10829 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10830 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10831 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10832 signature_CENTAUR_ebx.
10833
10834 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10835
10836 PR target/66232
10837 PR target/67400
10838 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10839 (as_ix86_gas_32_opt): This.
10840 (ld_ix86_tls_ldm_opt): Renamed to ...
10841 (ld_ix86_gld_32_opt): This.
10842 (R_386_TLS_LDM reloc): Updated.
10843 (R_386_GOT32X reloc): New assembler/linker check.
10844 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10845 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10846 defined to 0.
10847 * config.in: Regenerated.
10848 * configure: Likewise.
10849 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10850 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10851 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10852 if ix86_force_load_from_GOT_p returns true.
10853 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10854 ix86_force_load_from_GOT_p returns true.
10855 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10856 the external function address via the GOT slot.
10857 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10858 HAVE_AS_IX86_GOT32X before returning false.
10859 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10860 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10861
10862 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10863
10864 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10865
10866 2016-06-23 Andi Kleen <ak@linux.intel.com>
10867
10868 * Makefile.in: Regenerate.
10869 * doc/install.texi: Document autoprofiledbootstrap.
10870
10871 2016-06-23 Andi Kleen <ak@linux.intel.com>
10872
10873 * config/i386/gcc-auto-profile: New file.
10874
10875 2016-06-23 Martin Liska <mliska@suse.cz>
10876
10877 PR middle-end/71619
10878 * predict.c (predict_loops): Revert the hunk that was removed
10879 in r237103.
10880
10881 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10882
10883 * config.gcc: Add support for arm*-*-phoenix* targets.
10884 * config/arm/t-phoenix: New.
10885 * config/phoenix.h: New.
10886
10887 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10888 H.J. Lu <hongjiu.lu@intel.com>
10889
10890 PR target/67400
10891 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10892 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10893 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10894 ix86_force_load_from_GOT_p returns true.
10895 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10896 ix86_force_load_from_GOT_p returns true.
10897 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10898 ix86_force_load_from_GOT_p returns true.
10899 (ix86_expand_move): Load the external function address via the
10900 GOT slot if ix86_force_load_from_GOT_p returns true.
10901 * config/i386/predicates.md (x86_64_immediate_operand): Return
10902 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10903 (x86_64_zext_immediate_operand): Ditto.
10904
10905 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10906
10907 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10908
10909 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10910
10911 PR c/70339
10912 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10913 * diagnostic.c (pedwarn_at_rich_loc): New function.
10914 * spellcheck.h (best_match::best_match): Add a
10915 "best_distance_so_far" optional parameter.
10916 (best_match::set_best_so_far): New method.
10917 (best_match::get_best_distance): New accessor.
10918 (best_match::get_best_candidate_length): New accessor.
10919
10920 2016-06-22 Nick Clifton <nickc@redhat.com>
10921
10922 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10923 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10924 modes are accepted as well.
10925 (ucompare_loc_descriptor): Likewise.
10926 (minmax_loc_descriptor): Likewise.
10927 (clz_loc_descriptor): Likewise.
10928 (popcount_loc_descriptor): Likewise.
10929 (bswap_loc_descriptor): Likewise.
10930 (rotate_loc_descriptor): Likewise.
10931 (mem_loc_descriptor): Likewise.
10932 (loc_descriptor): Likewise.
10933
10934 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10935
10936 * common.opt (fdiagnostics-parseable-fixits): New option.
10937 * diagnostic.c: Include "selftest.h".
10938 (print_escaped_string): New function.
10939 (print_parseable_fixits): New function.
10940 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10941 (selftest::assert_print_escaped_string): New function.
10942 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10943 (selftest::test_print_escaped_string): New function.
10944 (selftest::test_print_parseable_fixits_none): New function.
10945 (selftest::test_print_parseable_fixits_insert): New function.
10946 (selftest::test_print_parseable_fixits_remove): New function.
10947 (selftest::test_print_parseable_fixits_replace): New function.
10948 (selftest::diagnostic_c_tests): New function.
10949 * diagnostic.h (struct diagnostic_context): Add field
10950 "parseable_fixits_p".
10951 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10952 -fdiagnostics-parseable-fixits.
10953 (-fdiagnostics-parseable-fixits): New option.
10954 * opts.c (common_handle_option): Handle
10955 -fdiagnostics-parseable-fixits.
10956 * selftest-run-tests.c (selftest::run_tests): Call
10957 selftest::diagnostic_c_tests.
10958 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10959
10960 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10961
10962 PR tree-optimization/71488
10963 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10964 comparison of boolean vectors.
10965 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10966 of boolean vectors using bitwise operations.
10967
10968 2016-06-22 Andreas Schwab <schwab@suse.de>
10969
10970 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10971 Remove declaration.
10972
10973 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
10974
10975 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10976
10977 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
10978
10979 * config/i386/i386.c (print_reg): Emit an error message on attempt to
10980 print FLAGS_REG.
10981
10982 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10983
10984 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10985 * config/arm/arm-cores.def (cortex-a73): New entry.
10986 (cortex-a73.cortex-a35): Likewise.
10987 (cortex-a73.cortex-a53): Likewise.
10988 * config/arm/arm-tables.opt: Regenerate.
10989 * config/arm/arm-tune.md: Likewise.
10990 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10991 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10992 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10993 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10994 * doc/invoke.texi (ARM Options): Document cortex-a73,
10995 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10996
10997 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10998
10999 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
11000 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
11001 (cortex-a73.cortex-a35): Likewise.
11002 (cortex-a73.cortex-a53): Likewise.
11003 * config/aarch64/aarch64-tune.md: Regenerate.
11004 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
11005 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
11006 -mcpu and -mtune.
11007
11008 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11009
11010 * configure.ac (gcc_cv_as_compress_debug): Remove
11011 --compress-debug-sections as extra as switch.
11012 Handle gas --compress-debug-sections=type.
11013 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
11014 Handle gld --compress-debug-sections=type.
11015 * configure: Regenerate.
11016
11017 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
11018
11019 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
11020
11021 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
11022
11023 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
11024 (do_rewrite): likewise.
11025
11026 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11027
11028 * common/config/mep/mep-common.c: Remove.
11029 * config.gcc: Remove mep-* support.
11030 * config/mep/constraints.md: Remove.
11031 * config/mep/default.h: Remove.
11032 * config/mep/intrinsics.h: Remove.
11033 * config/mep/intrinsics.md: Remove.
11034 * config/mep/ivc2-template.h: Remove.
11035 * config/mep/mep-c5.cpu: Remove.
11036 * config/mep/mep-core.cpu: Remove.
11037 * config/mep/mep-default.cpu: Remove.
11038 * config/mep/mep-ext-cop.cpu: Remove.
11039 * config/mep/mep-intrin.h: Remove.
11040 * config/mep/mep-ivc2.cpu: Remove.
11041 * config/mep/mep-pragma.c: Remove.
11042 * config/mep/mep-protos.h: Remove.
11043 * config/mep/mep.c: Remove.
11044 * config/mep/mep.cpu: Remove.
11045 * config/mep/mep.h: Remove.
11046 * config/mep/mep.md: Remove.
11047 * config/mep/mep.opt: Remove.
11048 * config/mep/predicates.md: Remove.
11049 * config/mep/t-mep: Remove.
11050 * doc/install.texi: Remove mep-* documentation.
11051 * doc/md.texi: Likewise.
11052
11053 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11054
11055 * config.gcc: Remove support for avr-rtems.
11056 * config/avr/gen-avr-mmcu-specs.c: Likewise.
11057 * config/avr/rtems.h: Remove.
11058 * config/avr/t-rtems: Remove.
11059
11060 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11061
11062 * config.gcc: Remove m32r-rtems support.
11063 * config/m32r/rtems.h: Remove.
11064
11065 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11066
11067 * config.gcc: Remove h8300-rtems support.
11068 * config/h8300/rtems.h: Remove.
11069 * config/h8300/t-rtems: Remove.
11070
11071 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11072
11073 * config.gcc: Remove support for knetbsd.
11074 * configure.ac: Likewise.
11075 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
11076 * config/knetbsd-gnu.h: Remove.
11077 * configure: Regenerate.
11078
11079 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11080
11081 * config.gcc: Remove support for openbsd 2 and 3.
11082 * config/openbsd-oldgas.h: Remove.
11083
11084 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11085
11086 * config.gcc: Remove interix support.
11087 * config/i386/i386-interix.h: Remove.
11088 * config/i386/interix.opt: Remove.
11089 * config/i386/t-interix: Remove.
11090 * configure: Regenerate.
11091 * configure.ac: Remove interix support.
11092 * doc/install.texi: Remove interix documentation.
11093
11094 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11095
11096 * config/rs6000/rs6000.h: Add conditional preprocessing directives
11097 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
11098 not defined.
11099
11100 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11101
11102 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
11103 they are both PLACEHOLDER_EXPRs.
11104
11105 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11106
11107 * stor-layout.c (layout_type): Move setting complex MODE to
11108 layout_type, instead of setting it ahead of time by the caller.
11109 * tree.c (build_complex_type): Likewise.
11110
11111 2016-06-21 Martin Liska <mliska@suse.cz>
11112
11113 * predict.c (force_edge_cold): Replace imposisble with
11114 impossible.
11115
11116 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11117
11118 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
11119 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
11120
11121 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11122
11123 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
11124
11125 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
11126 Ilya Enkovich <ilya.enkovich@intel.com>
11127
11128 PR target/71549
11129 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11130 New member function to convert V1TImode register to SUBREG
11131 TImode in debug insn.
11132 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
11133 after changing register mode to V1TImode.
11134
11135 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
11136
11137 * config/aarch64/aarch64-cores.def (vulcan): New core.
11138 * config/aarch64/aarch64-tune.md: Regenerate.
11139 * doc/invoke.texi: Document vulcan as an available option.
11140
11141 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11142
11143 * cse.c (canon_asm_operands): New function extracted from...
11144 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
11145 either standalone or member of a PARALLEL.
11146
11147 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11148
11149 PR target/30417
11150 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
11151 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
11152 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
11153
11154 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11155
11156 PR target/71103
11157 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
11158 constant addresses if can_create_pseudo_p.
11159
11160 2016-06-21 Jakub Jelinek <jakub@redhat.com>
11161
11162 PR tree-optimization/71588
11163 * tree-ssa-strlen.c (valid_builtin_call): New function.
11164 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
11165 it.
11166
11167 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11168
11169 PR middle-end/71581
11170 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
11171 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
11172 for conversion of scalar user var to complex type and use the
11173 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
11174 punt.
11175
11176 PR rtl-optimization/71591
11177 * toplev.c (toplev::run_self_tests): If no_backend, complain and
11178 don't run any tests.
11179
11180 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
11181
11182 PR target/71571
11183 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
11184 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
11185 space for PIC with non-v32 and the common non-PIC "jump".
11186
11187 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11188
11189 PR target/71559
11190 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
11191 returned values and add UN*/LTGT/*ORDERED cases with values matching
11192 D operand modifier on vcmp for AVX.
11193
11194 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11195
11196 * config/aarch64/aarch64.opt
11197 (mpc-relative-literal-loads): Rename internal option name.
11198 * config/aarch64/aarch64.c
11199 (aarch64_nopcrelative_literal_loads): Rename to
11200 aarch64_pcrelative_literal_loads.
11201 (aarch64_expand_mov_immediate): Likewise.
11202 (aarch64_secondary_reload): Likewise.
11203 (aarch64_can_use_per_function_literal_pools_p): Likewise.
11204 (aarch64_override_options_after_change_1): Rename and simplify logic.
11205 (aarch64_classify_symbol): Merge large model checks into switch,
11206 remove pc-relative load check.
11207
11208 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11209
11210 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
11211 costs relative to the cost of a register move.
11212
11213 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11214
11215 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
11216 (vcvt_n_f64_u64): Likewise.
11217 (vcvt_n_s64_f64): Likewise.
11218 (vcvt_n_u64_f64): Likewise.
11219 (vcvt_f64_s64): Likewise.
11220 (vrecpe_f64): Likewise.
11221 (vcvt_f64_u64): Likewise.
11222 (vrecps_f64): Likewise.
11223
11224 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11225
11226 * config/aarch64/aarch64.md
11227 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
11228 iterators.
11229 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
11230 attributes.
11231 * config/aarch64/aarch64-builtins.c
11232 (aarch64_types_binop_uss_qualifiers): Delete.
11233 (TYPES_BINOP_USS): Likewise.
11234 (aarch64_types_binop_sus_qualifiers): Likewise.
11235 (TYPES_BINOP_SUS): Likewise.
11236 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
11237 (TYPES_FCVTIMM_SUS): Likewise.
11238 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
11239 rather than BINOP.
11240 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
11241 (fcvtzs): Use SHIFTIMM rather than BINOP.
11242 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
11243
11244 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11245
11246 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
11247 costs relative to the cost of a register move.
11248
11249 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11250
11251 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
11252 Allow scalar/single vector modes to be tieable.
11253
11254 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11255
11256 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
11257
11258 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11259
11260 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
11261 "alignement".
11262 * tree.h (TYPE_ALIGN): Likewise.
11263
11264 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11265
11266 PR target/71103
11267 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
11268
11269 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11270
11271 * config/avr/avr.c (avr_print_operand): Fix "format not a string
11272 literal" build warnings.
11273 (avr_print_operand_address): Dito.
11274
11275 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
11276
11277 PR target/71375
11278 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
11279 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
11280
11281 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
11282
11283 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
11284
11285 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
11286
11287 PR bootstrap/71435
11288 * reload1.c (reload): Pass 0 to finish_spills when called because
11289 update_eliminables_and_spill returns true and remove did_spill.
11290 (finish_spills): Adjust comment and document GLOBAL parameter.
11291
11292 2016-06-17 DJ Delorie <dj@redhat.com>
11293
11294 PR target/71338
11295 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
11296 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
11297 (umulqihi3_virt): Likewise.
11298 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
11299 (umulqihi3_real): Likewise.
11300
11301 2016-06-17 Martin Liska <mliska@suse.cz>
11302
11303 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
11304
11305 2016-06-17 Martin Liska <mliska@suse.cz>
11306
11307 * predict.def: PRED_LOOP_EXIT from 92 to 85.
11308
11309 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
11310
11311 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
11312 __FAST_MATH__.
11313 (vaddq_f32): Likewise.
11314 (vmul_f32): Likewise.
11315 (vmulq_f32): Likewise.
11316 (vsub_f32): Likewise.
11317 (vsubq_f32): Likewise.
11318
11319 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11320
11321 PR tree-optimization/71347
11322 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
11323 cost for all uses in group.
11324
11325 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11326
11327 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
11328 insert gimple seq if it's not empty.
11329
11330 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11331
11332 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
11333 member OFFSET.
11334 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
11335 rather than OFFSET.
11336 (comp_dr_with_seg_len_pair): Ditto.
11337 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
11338 struct dr_with_seg_len_pair against DR_OFFSET.
11339 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
11340 DR_OFFSET directly.
11341
11342 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
11343
11344 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
11345
11346 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
11347
11348 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
11349 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
11350 (pa_output_millicode_call): Likewise.
11351 (pa_output_call): Likewise.
11352 (pa_output_indirect_call): Likewise.
11353 (pa_asm_output_mi_thunk): Likewise.
11354
11355 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11356
11357 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
11358
11359 2016-06-16 Martin Liska <mliska@suse.cz>
11360
11361 * predict.c (combine_predictions_for_insn): When we find a first
11362 match predictor, we should consider just predictors with
11363 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
11364 DS theory predictor.
11365 (combine_predictions_for_bb): Likewise.
11366
11367 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11368
11369 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
11370 with base of reference to struct.
11371
11372 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11373
11374 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
11375
11376 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11377
11378 PR target/71151
11379 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
11380 progmem_swtable_section.
11381 (progmem_swtable_section): Remove.
11382 (avr_asm_function_rodata_section): Remove.
11383 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
11384 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
11385
11386 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
11387
11388 * config/i386/driver-i386.c (host_detect_local_cpu): Set
11389 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
11390 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
11391 signature_CENTAUR_ebx.
11392 * config/i386/i386.c (ix86_option_override_internal): Add
11393 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
11394 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
11395 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
11396
11397 2016-06-16 Martin Liska <mliska@suse.cz>
11398
11399 * predict.def: Add fortran loop preheader predictor.
11400 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
11401 fold IFN_BUILTIN_EXPECT with a known constant argument.
11402
11403 2016-06-16 Martin Liska <mliska@suse.cz>
11404
11405 * predict.def: Add 'Fortran' to display text of all
11406 PRED_FORTRAN_* predictors.
11407
11408 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11409
11410 PR target/71242
11411 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
11412 [IA64_BUILTIN_NANSQ]: Ditto.
11413 (ia64_fold_builtin): New function.
11414 (TARGET_FOLD_BUILTIN): New define.
11415 (ia64_init_builtins) Declare const_string_type node.
11416 Add __builtin_nanq and __builtin_nansq builtin functions.
11417 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
11418
11419 2016-06-16 Nick Clifton <nickc@redhat.com>
11420
11421 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
11422 MSP430_HWMULT_ prefix to enum values.
11423 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
11424 * config/msp430/msp430.c: Update use of enum values.
11425 * config/msp430/msp430.md: Likewise.
11426 * config/msp430/msp430.opt: Likewise.
11427
11428 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
11429
11430 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
11431 of comparsions in the last iteration.
11432
11433 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11434 Joern Rennecke <joern.rennecke@embecosm.com>
11435
11436 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
11437 addresses.
11438 (arc_needs_pcl_p): Add GOTOFFPC.
11439 (arc_legitimate_pic_addr_p): Likewise.
11440 (arc_output_pic_addr_const): Likewise.
11441 (arc_legitimize_pic_address): Generate a pc-relative address using
11442 GOTOFFPC.
11443 (arc_output_libcall): Use @pcl syntax.
11444 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
11445 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
11446 (*movsi_insn): Use @pcl syntax.
11447 (doloop_begin_i): Likewise.
11448
11449 2016-06-16 Martin Liska <mliska@suse.cz>
11450
11451 * predict.def: Define a new predictor.
11452
11453 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11454
11455 * config/arc/arc.opt (mtp-regno): Update text.
11456
11457 2016-06-16 Renlin Li <renlin.li@arm.com>
11458
11459 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
11460
11461 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11462
11463 PR target/71554
11464 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
11465 (setcc + and peephole2): Likewise.
11466
11467 PR rtl-optimization/71532
11468 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
11469 memory slots.
11470
11471 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11472
11473 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
11474 DImode constants with XXSPLTIB in vector registers.
11475 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
11476 vsx_extract_<mode>_internal{1,2} into a single insn that handles
11477 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
11478 extraction of the element at the top of the register as a scalar
11479 value.
11480 (vsx_extract_<mode>_internal1): Likewise.
11481 (vsx_extract_<mode>_internal2): Likewise.
11482 * config/rs6000/constraints.md (wi constraint): Remove a comment
11483 about DImode not being allowed in Altivec registers.
11484 (wB constraint): New constraint for constants that can be
11485 generated in Altivec registers with VSPLTISW/VUPKHSW.
11486 * config/rs6000/predicates.md (xxspltib_constant_split): Update
11487 comments.
11488 (xxspltib_constant_nosplit): Likewise.
11489 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
11490 support for -mupper-regs-di to enable DImode to go into Altivec
11491 registers.
11492 (POWERPC_MASKS): Likewise.
11493 (power7 cpu): Likewise.
11494 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
11495 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11496 for DImode being allowed in Altivec registers. Update wi/wj
11497 constraints. Set scalar_in_vmx_p flag.
11498 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
11499 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
11500 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
11501 (rs6000_opt_masks): Add -mupper-regs-di.
11502 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
11503 direct move to use wi and not wj.
11504 (lfiwzx): Likewise.
11505 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
11506 alternative.
11507 (floatunssi<mode>2_lfiwzx_mem): Likewise.
11508 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
11509 any VSX register, instead of just Altivec registers, to allow
11510 either operand to be an Altivec register or both.
11511 (fixuns_trunc<mode>di2_fctiduz): Likewise.
11512 (movdi_internal32): Add support for -mupper-regs-di. Add support
11513 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
11514 the alternatives and attributes to be lined up to be easier to
11515 read.
11516 (movdi_internal64): Likewise.
11517 (64-bit DImode splitters): Change predicates to only split loading
11518 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
11519 load constants in ISA 3.0 or ISA 2.07 respectively.
11520 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11521 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
11522 mention -mcpu=power9 sets these options.
11523 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
11524 wB constraint.
11525
11526 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11527
11528 PR target/67353
11529 * config/avr/avr.c (avr_set_current_function): Warn misspelled
11530 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
11531 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
11532 by default to warn misspelled interrupt/ signal handler.
11533 * doc/invoke.texi (AVR Options): Document it. Update description
11534 for -nodevicelib option.
11535
11536 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11537
11538 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
11539 up parentheses. Use GET_MODE_UNIT_BITSIZE.
11540 (aarch64_<sur>shll2_n<mode>): Likewise.
11541
11542 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
11543
11544 PR middle-end/71529
11545 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
11546 DECL_CONTEXT for copied arguments.
11547
11548 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11549
11550 PR tree-optimization/71483
11551 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
11552 for slp
11553
11554 2016-06-15 Martin Liska <mliska@suse.cz>
11555
11556 * predict.c (tree_predict_by_opcode): Call predict_edge_def
11557 instead of predict_edge w/o a probability.
11558
11559 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11560
11561 PR tree-optimization/71439
11562 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
11563 live PHIs.
11564
11565 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11566
11567 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
11568 register subregs in SET_SRC.
11569
11570 2016-06-15 Richard Biener <rguenther@suse.de>
11571
11572 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
11573 store restrictions.
11574
11575 2016-06-15 Richard Biener <rguenther@suse.de>
11576
11577 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
11578 not consider dependences between accesses that belong to the
11579 same group.
11580 (vect_analyze_data_ref_dependences): Do not analyze read-read
11581 or self-dependences.
11582
11583 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11584
11585 * spellcheck-tree.c: Include spellcheck-tree.h rather than
11586 spellcheck.h.
11587 (find_closest_identifier): Reimplement in terms of
11588 best_match<tree,tree>.
11589 * spellcheck-tree.h: New file.
11590 * spellcheck.c (struct edit_distance_traits<const char *>): New
11591 struct.
11592 (find_closest_string): Reimplement in terms of
11593 best_match<const char *, const char *>.
11594 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
11595 overload to spellcheck-tree.h.
11596 (find_closest_identifier): Likewise.
11597 (struct edit_distance_traits<T>): New template.
11598 (class best_match): New class.
11599
11600 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11601
11602 * selftest-run-tests.c (selftest::run_tests): Call
11603 selftest::spellcheck_tree_c_tests.
11604 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
11605 * spellcheck-tree.c: Include selftest.h and stringpool.h.
11606 (selftest::test_find_closest_identifier): New function.
11607 (selftest::spellcheck_tree_c_tests): New function.
11608 * spellcheck.c (selftest::test_find_closest_string): Verify that
11609 the order of the vec does not affect the results for this case.
11610 (selftest::test_data): New array.
11611 (selftest::test_metric_conditions): New function.
11612 (selftest::spellcheck_c_tests): Add a test of case-comparison.
11613 Call selftest::test_metric_conditions.
11614
11615 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11616
11617 * config/rs6000/rs6000-builtin.def (commentary): Typo.
11618 (BU_P9_MISC_1): Likewise.
11619 (BU_P9_64BIT_MISC_0): Likewise.
11620 (BU_P9_MISC_0): Likewise.
11621
11622 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11623
11624 * gcc-rich-location.c
11625 (gcc_rich_location::add_fixit_misspelled_id): New method.
11626 * gcc-rich-location.h
11627 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
11628
11629 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
11630
11631 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
11632 FreeBSD 11 and above.
11633
11634 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
11635
11636 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
11637
11638 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11639
11640 * expmed.h: Close parenthesis in "at your option" in copyright
11641 boilerplate.
11642 * lower-subreg.h: Likewise.
11643
11644 2016-06-14 Richard Biener <rguenther@suse.de>
11645
11646 PR middle-end/71526
11647 * genmatch.c (expr::gen_transform): Use in_type for comparisons
11648 if available.
11649
11650 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11651
11652 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11653 New function.
11654 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
11655 mask+shift version.
11656 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11657 New prototype.
11658 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11659 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11660
11661 2016-06-14 Richard Biener <rguenther@suse.de>
11662
11663 PR tree-optimization/71522
11664 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11665 copying into float copying.
11666
11667 2016-06-14 Jakub Jelinek <jakub@redhat.com>
11668
11669 PR tree-optimization/71520
11670 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11671 (replace_block_by): Move user labels from bb1 to bb2.
11672
11673 2016-06-14 Richard Biener <rguenther@suse.de>
11674
11675 PR middle-end/71310
11676 PR bootstrap/71510
11677 * expr.h (get_bit_range): Declare.
11678 * expr.c (get_bit_range): Export.
11679 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11680 word_mode again to constrain the bitfield access.
11681
11682 2016-06-14 Richard Biener <rguenther@suse.de>
11683
11684 PR tree-optimization/71521
11685 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11686 division int_const_binop against zero divisor.
11687
11688 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11689
11690 * config/i386/i386.md (signbittf2): New expander.
11691 * config/i386/sse.md (ptesttf2): New insn pattern.
11692
11693 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11694
11695 PR bootstrap/71481
11696 * input.c (selftest::test_reading_source_line): Avoid reading from
11697 __FILE__ by creating a tempfile with known content and reading
11698 from that instead.
11699
11700 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11701
11702 * pretty-print.c (assert_pp_format_colored): Skip the test if
11703 GCC_COLORS is set.
11704 (test_pp_format): Remove comment about GCC_COLORS.
11705
11706 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11707
11708 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11709 * pretty-print.c (assert_pp_format_va): Add location param and use
11710 it with ASSERT_STREQ_AT.
11711 (assert_pp_format): Add location param and pass it to
11712 assert_pp_format_va.
11713 (assert_pp_format_colored): Likewise.
11714 (ASSERT_PP_FORMAT_1): New.
11715 (ASSERT_PP_FORMAT_2): New.
11716 (ASSERT_PP_FORMAT_3): New.
11717 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11718 explicitly, or implicitly via the above macros.
11719 * selftest.c (selftest::pass): Use a selftest::location rather
11720 than file and line.
11721 (selftest::fail): Likewise. Print the function name.
11722 (selftest::fail_formatted): Likewise.
11723 (selftest::assert_streq): Use a selftest::location rather than
11724 file and line.
11725 * selftest.h (selftest::location): New struct.
11726 (SELFTEST_LOCATION): New macro.
11727 (selftest::pass): Accept a const location & rather than file
11728 and line.
11729 (selftest::fail): Likewise.
11730 (selftest::fail_formatted): Likewise.
11731 (selftest::assert_streq): Likewise.
11732 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11733 (ASSERT_FALSE): Likewise.
11734 (ASSERT_EQ): Likewise.
11735 (ASSERT_NE): Likewise.
11736 (ASSERT_STREQ): Likewise.
11737 (ASSERT_PRED1): Likewise.
11738 (ASSERT_STREQ_AT): New macro.
11739
11740 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11741
11742 * selftest.c (selftest::fail_formatted): New function.
11743 (selftest::assert_streq): New function.
11744 * selftest.h (selftests::fail_formatted): New decl.
11745 (selftest::assert_streq): New decl.
11746 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11747
11748 2016-06-13 Jeff Law <law@redhat.com>
11749
11750 PR tree-optimization/71403
11751 * tree-ssa-threadbackward.c
11752 (convert_and_register_jump_thread_path): No longer accept reference
11753 to path. Do not pop items off the path anymore.
11754 (fsm_find_control_statement_thread_paths): Do not allow threading
11755 to a deeper loop nest. Pop the last item off the path here rather
11756 than in convert_and_register_jump_thread_path.
11757
11758 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11759 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
11760
11761 [AArch64] Emit division using the Newton series
11762
11763 * config/aarch64/aarch64-protos.h
11764 (cpu_approx_modes): Add new member "division".
11765 (aarch64_emit_approx_div): Declare new function.
11766 * config/aarch64/aarch64.c
11767 (generic_approx_modes): New member "division".
11768 (exynosm1_approx_modes): Likewise.
11769 (xgene1_approx_modes): Likewise.
11770 (aarch64_emit_approx_div): Define new function.
11771 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11772 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11773 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11774 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11775
11776 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11777 Wilco Dijkstra <wilco.dijkstra@arm.com>
11778
11779 [AArch64] Emit square root using the Newton series
11780
11781 * config/aarch64/aarch64-protos.h
11782 (aarch64_emit_approx_rsqrt): Replace with new function
11783 "aarch64_emit_approx_sqrt".
11784 (cpu_approx_modes): New member "sqrt".
11785 * config/aarch64/aarch64.c
11786 (generic_approx_modes): New member "sqrt".
11787 (exynosm1_approx_modes): Likewise.
11788 (xgene1_approx_modes): Likewise.
11789 (aarch64_emit_approx_rsqrt): Replace with new function
11790 "aarch64_emit_approx_sqrt".
11791 (aarch64_override_options_after_change_1): Handle new option.
11792 * config/aarch64/aarch64-simd.md
11793 (rsqrt<mode>2): Use new function instead.
11794 (sqrt<mode>2): New expansion and insn definitions.
11795 * config/aarch64/aarch64.md: Likewise.
11796 * config/aarch64/aarch64.opt
11797 (mlow-precision-sqrt): Add new option description.
11798 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11799
11800 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11801
11802 [AArch64] Add more choices for the reciprocal square root approximation
11803
11804 Allow a target to prefer such operation depending on the operation mode.
11805
11806 * config/aarch64/aarch64-protos.h
11807 (AARCH64_APPROX_MODE): New macro.
11808 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11809 (cpu_approx_modes): New structure.
11810 (tune_params): New member "approx_modes".
11811 * config/aarch64/aarch64-tuning-flags.def
11812 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11813 * config/aarch64/aarch64.c
11814 (generic_approx_modes): New core "cpu_approx_modes" structure.
11815 (exynosm1_approx_modes): Likewise.
11816 (xgene1_approx_modes): Likewise.
11817 (generic_tunings): New member "approx_modes".
11818 (cortexa35_tunings): Likewise.
11819 (cortexa53_tunings): Likewise.
11820 (cortexa57_tunings): Likewise.
11821 (cortexa72_tunings): Likewise.
11822 (exynosm1_tunings): Likewise.
11823 (thunderx_tunings): Likewise.
11824 (xgene1_tunings): Likewise.
11825 (use_rsqrt_p): New argument for the mode and use new member from
11826 "tune_params".
11827 (aarch64_builtin_reciprocal): Devise mode from builtin.
11828 (aarch64_optab_supported_p): New argument for the mode.
11829 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11830
11831 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11832
11833 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11834 RS6000_BTM_MODULO flag into the set of flags that are considered
11835 to be part of the common configuration.
11836
11837 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11838
11839 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11840 difference unsigned.
11841 (vec_absdb): New macro for vector absolute difference unsigned
11842 byte.
11843 (vec_absdh): New macro for vector absolute difference unsigned
11844 half-word.
11845 (vec_absdw): New macro for vector absolute difference unsigned word.
11846 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11847 (vadu<mode>3): New insn.
11848 (*p9_vadu<mode>3): New insn.
11849 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11850 definition.
11851 (vaduh): New built-in definition.
11852 (vaduw): New built-in definition.
11853 (vadu): New overloaded built-in definition.
11854 (vadub): New overloaded built-in definition.
11855 (vaduh): New overloaded built-in definition.
11856 (vaduw): New overloaded built-in definition.
11857 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11858 overloaded vector absolute difference unsigned functions.
11859 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11860 the ISA 3.0 vector absolute difference unsigned built-in functions.
11861
11862 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11863
11864 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11865 update shared_lookup_references only once after changing operands.
11866
11867 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11868
11869 PR middle-end/71373
11870 * tree-nested.c (convert_nonlocal_omp_clauses)
11871 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11872
11873 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11874 * tree.def (CASE_LABEL_EXPR): Likewise.
11875
11876 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11877
11878 PR bootstrap/71481
11879 * input.c (test_builtins): Fix an assertion.
11880
11881 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11882
11883 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11884 (paritysi2): Ditto.
11885 (isinfxf2): Ditto.
11886 (isinf<mode>2): Ditto.
11887
11888 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11889
11890 * ggc-tests.c (test_finalization): Only test need_finalization_p
11891 for GCC_VERSION >= 4003.
11892
11893 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11894
11895 * config/s390/vecintrin.h: Fix file description in comment.
11896
11897 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11898
11899 * config/s390/s390-builtin-types.def: Change builtin type naming
11900 scheme to match builtin-types.def.
11901
11902 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11903
11904 * fold-const.c (optimize_minmax_comparison): Remove.
11905 (fold_comparison): Remove call to the above.
11906 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11907 New transformations.
11908
11909 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11910
11911 PR tree-optimization/71416
11912 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11913 multiple entries
11914
11915 2016-06-13 Martin Liska <mliska@suse.cz>
11916
11917 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11918 (combine_predictions_for_insn): Likewise.
11919 (prune_predictions_for_bb): Likewise.
11920 (combine_predictions_for_bb): Likewise.
11921
11922 2016-06-13 Richard Biener <rguenther@suse.de>
11923
11924 PR tree-optimization/71505
11925 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11926 assert match comment.
11927
11928 2016-06-13 Marek Polacek <polacek@redhat.com>
11929
11930 PR middle-end/71476
11931 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11932 gimplify_switch_expr.
11933 (warn_switch_unreachable_r): New function.
11934
11935 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11936
11937 PR target/71379
11938 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11939 one.
11940
11941 2016-06-13 Richard Biener <rguenther@suse.de>
11942
11943 PR middle-end/64516
11944 * fold-const.c (fold_unary_loc): Preserve alignment when
11945 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11946
11947 2016-06-13 Martin Liska <mliska@suse.cz>
11948
11949 PR sanitizer/71458
11950 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11951 w/ -fsanitize=bounds.
11952
11953 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11954
11955 * config/i386/i386.c (ix86_init_builtins): Calculate
11956 FLOAT128_FTYPE_CONST_STRING function type only once.
11957 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11958 built-in functions are available for x86-32 and x86-64 targets.
11959
11960 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11961
11962 PR target/71241
11963 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11964 New primitive type.
11965 (FLOAT128_FTYPE_CONST_STRING): New function type.
11966 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11967 [IX86_BUILTIN_NANSQ]: Ditto.
11968 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11969 (ix86_init_builtin_types): Declare const_string_type_node.
11970 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11971 builtin functions.
11972 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11973 * doc/extend.texi (x86 Built-in Functions): Document
11974 __builtin_nanq and __builtin_nansq.
11975
11976 2016-06-11 Jiong Wang <jiong.wang@arm.com>
11977
11978 PR target/71061
11979 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11980 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11981 length for pop patterns.
11982 (arm_attr_length_push_multi): Update comments.
11983 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11984 attribute.
11985 (*pop_multiple_with_writeback_and_return): Likewise.
11986 (*pop_multiple_with_return): Likewise.
11987
11988 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
11989
11990 PR middle-end/71310
11991 * fold-const.c (optimize_bit_field_compare): Don't try to use
11992 word_mode unconditionally for reading the bit field, look at
11993 DECL_BIT_FIELD_REPRESENTATIVE instead.
11994
11995 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
11996
11997 PR middle-end/71478
11998 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11999 vector integer type.
12000
12001 2016-06-10 Jakub Jelinek <jakub@redhat.com>
12002
12003 PR middle-end/71494
12004 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
12005 without LABEL_DECL, set *handled_ops_p to false instead of true.
12006
12007 2016-06-10 Martin Sebor <msebor@redhat.com>
12008
12009 PR c/71392
12010 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
12011 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
12012 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
12013 them.
12014 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
12015 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
12016 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
12017 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
12018 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
12019 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
12020 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
12021 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
12022
12023 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12024
12025 * config/arm/arm.h (pool_vector_label,
12026 return_used_this_function): Remove.
12027
12028 2016-06-10 Jeff Law <law@redhat.com>
12029
12030 PR tree-optimization/71335
12031 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
12032 zero length paths here.
12033 (convert_and_register_jump_thread_path): Remove hacks related to
12034 duplicated blocks in the jump thread path.
12035 (fsm_find_control_statement_thread_paths): Avoid putting the same
12036 block on the thread path twice, but ensure the thread path is
12037 unchanged from the caller's point of view.
12038
12039 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12040
12041 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
12042 * predict.def (PRED_LOOP_BRANCH): Remove.
12043
12044 2016-06-10 David Malcolm <dmalcolm@redhat.com>
12045
12046 * Makefile.in (OBJS): Add ggc-tests.o.
12047 (GTFILES): Add ggc-tests.c.
12048 * ggc-tests.c: New file.
12049 * selftest-run-tests.c (selftest::run_tests): Call
12050 selftest::ggc_tests_c_tests.
12051 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
12052
12053 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
12054
12055 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
12056
12057 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
12058
12059 PR sanitizer/71480
12060 * varasm.c (place_block_symbol): Adjust alignment for asan protected
12061 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
12062
12063 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12064
12065 * profile.c: Include cfgloop.h.
12066 (branch_prob): Compute estimated number of iterations.
12067 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
12068 recompute estimate number of iterations from profile.
12069
12070 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12071
12072 PR inline-asm/68843
12073 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
12074 must be grouped on top of stack. Don't force early clobber
12075 on ordinary reg outputs.
12076
12077 2016-06-10 Richard Biener <rguenther@suse.de>
12078
12079 * targhooks.c (default_builtin_vectorization_cost): Adjust
12080 vec_construct cost.
12081
12082 2016-06-10 Richard Biener <rguenther@suse.de>
12083
12084 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
12085 to fold the RHS to a constant if possible.
12086
12087 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12088
12089 PR middle-end/71373
12090 * tree-nested.c (convert_nonlocal_omp_clauses)
12091 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
12092 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12093 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
12094
12095 * gimplify.c (gimplify_adjust_omp_clauses): Discard
12096 OMP_CLAUSE_TILE.
12097 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
12098
12099 * omp-low.c (scan_sharing_clauses): Don't expect
12100 OMP_CLAUSE__CACHE_.
12101
12102 2016-06-10 Alan Hayward <alan.hayward@arm.com>
12103
12104 PR tree-optimization/71407
12105 PR tree-optimization/71416
12106 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
12107 BIT_FIELD_REF type.
12108
12109 2016-06-10 Richard Biener <rguenther@suse.de>
12110
12111 PR middle-end/71477
12112 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
12113
12114 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
12115
12116 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
12117
12118 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
12119 Jiong Wang <jiong.wang@arm.com>
12120
12121 PR rtl-optimization/70751
12122 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
12123 spilled into memory.
12124
12125 2016-06-09 Jonathan Yong <10walls@gmail.com>
12126
12127 Revert:
12128 2015-09-21 Jonathan Yong <10walls@gmail.com>
12129
12130 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12131 sysroot/usr/lib/32api for additional win32 libraries,
12132 fixes failing Cygwin bootstrapping.
12133
12134 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
12135
12136 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
12137 Delete.
12138
12139 2016-06-09 David Malcolm <dmalcolm@redhat.com>
12140
12141 PR bootstrap/71471
12142 * pretty-print.c (pp_indent): Specify that %p is printed in a
12143 host-dependent manner.
12144 (test_pp_format): Remove the test for %p.
12145
12146 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
12147
12148 * config/mips/mips.c (mips_output_jump): Fix formatting.
12149
12150 2016-06-09 Richard Biener <rguenther@suse.de>
12151
12152 PR tree-optimization/71462
12153 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
12154 removed blocks.
12155
12156 2016-06-09 Martin Liska <mliska@suse.cz>
12157
12158 * predict.c (dump_prediction): Add new argument.
12159 (enum predictor_reason): New enum.
12160 (struct predictor_hash): New struct.
12161 (predictor_hash::hash): New function.
12162 (predictor_hash::equal): Likewise.
12163 (not_removed_prediction_p): New function.
12164 (prune_predictions_for_bb): Likewise.
12165 (combine_predictions_for_bb): Prune predictions.
12166
12167 2016-06-09 Martin Liska <mliska@suse.cz>
12168
12169 * predict.c (filter_predictions): New function.
12170 (remove_predictions_associated_with_edge): Use the filter
12171 function.
12172 (equal_edge_p): New function.
12173
12174 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
12175
12176 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
12177 Correct usage of @samp vs @option, add @samp where appropriate.
12178 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
12179 Add armv6s-m and document it, as it is no official ARM name.
12180
12181 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12182
12183 * ifcvt.c (struct noce_if_info): Add transform_name field.
12184 (noce_try_move): Set if_info->transform_name to the function name.
12185 (noce_try_ifelse_collapse): Likewise.
12186 (noce_try_store_flag): Likewise.
12187 (noce_try_inverse_constants): Likewise.
12188 (noce_try_store_flag_constants): Likewise.
12189 (noce_try_addcc): Likewise.
12190 (noce_try_store_flag_mask): Likewise.
12191 (noce_try_cmove): Likewise.
12192 (noce_try_cmove_arith): Likewise.
12193 (noce_try_minmax): Likewise.
12194 (noce_try_abs): Likewise.
12195 (noce_try_sign_mask): Likewise.
12196 (noce_try_bitop): Likewise.
12197 (noce_convert_multiple_sets): Likewise.
12198 (noce_process_if_block): Print if_info->transform_name to
12199 dump_file if transformation succeeded.
12200
12201 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12202
12203 * config/arm/cortex-a57.md (cortex_a57_alu):
12204 Handle csel type.
12205
12206 2016-06-08 Martin Sebor <msebor@redhat.com>
12207 Jakub Jelinek <jakub@redhat.com>
12208
12209 PR c++/70507
12210 PR c/68120
12211 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
12212 BUILT_IN_MUL_OVERFLOW_P): New builtins.
12213 * builtins.c: Include gimple-fold.h.
12214 (fold_builtin_arith_overflow): Handle
12215 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
12216 (fold_builtin_3): Likewise.
12217 * doc/extend.texi (Integer Overflow Builtins): Document
12218 __builtin_{add,sub,mul}_overflow_p.
12219
12220 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
12221
12222 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
12223 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
12224
12225 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
12226
12227 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
12228 Rewrite, looking one level down for records and arrays.
12229
12230 2016-06-08 David Malcolm <dmalcolm@redhat.com>
12231
12232 * pretty-print.c: Include "selftest.h".
12233 (pp_format): Fix comment.
12234 (identifier_to_locale): Likewise.
12235 (selftest::test_basic_printing): New function.
12236 (selftest::assert_pp_format): New function.
12237 (selftest::test_pp_format): New function.
12238 (selftest::pretty_print_c_tests): New function.
12239 * selftest-run-tests.c (selftest::run_tests): Call
12240 selftest::pretty_print_c_tests.
12241 * selftest.h (pretty_print_c_tests): New declaration.
12242
12243 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12244
12245 * invoke.texi (max-loop-headers-insns): Document.
12246 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
12247 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
12248 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
12249
12250 2016-06-08 Richard Biener <rguenther@suse.de>
12251
12252 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
12253 on strided SLP loads and fall back to scalar loads in case
12254 we can't chunk them.
12255
12256 2016-06-08 Richard Biener <rguenther@suse.de>
12257
12258 PR tree-optimization/71452
12259 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
12260 type used for the SSA rewrite has enough precision to cover
12261 the dynamic type of the location.
12262
12263 2016-06-08 Jakub Jelinek <jakub@redhat.com>
12264 Richard Biener <rguenther@suse.de>
12265
12266 PR c++/71448
12267 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
12268 the same as DECL_P (base0) for indirect_base0. Use equality_code
12269 in one further place.
12270
12271 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
12272
12273 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
12274 to one word if the field is known to overlap other words.
12275 (extract_bit_field_1): Likewise.
12276 (store_split_bit_field): Remove compensating code.
12277 (extract_split_bit_field): Likewise.
12278
12279 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
12280
12281 PR debug/71432
12282 PR ada/71413
12283 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
12284
12285 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12286
12287 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
12288 VDQF.
12289 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
12290 (arch64_addpv4sf): Delete.
12291 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
12292 "gen_aarch64_addpv4sf".
12293 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
12294 builtin.
12295 (vpadds_f32): Likewise.
12296 (vpaddq_f32): Likewise.
12297 (vpaddq_f64): Likewise.
12298
12299 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12300
12301 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
12302 VALLF.
12303 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
12304 to VALLF. Rename to "fabd<mode>3".
12305 "*fabd_scalar<mode>3): Delete.
12306 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
12307 Use builtin.
12308 (vabdd_f64): Likewise.
12309 (vabd_f32): Likewise.
12310 (vabd_f64): Likewise.
12311 (vabdq_f32): Likewise.
12312 (vabdq_f64): Likewise.
12313
12314 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12315
12316 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
12317 VALLF.
12318 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
12319 "aarch64_rsqrts<mode>".
12320 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
12321 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
12322 builtin.
12323 (vrsqrtsd_f64): Likewise.
12324 (vrsqrts_f32): Likewise.
12325 (vrsqrts_f64): Likewise.
12326 (vrsqrtsq_f32): Likewise.
12327 (vrsqrtsq_f64): Likewise.
12328
12329 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12330
12331 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
12332 VALLF.
12333 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
12334 "aarch64_rsqrte<mode>".
12335 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
12336 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
12337 builtin.
12338 (vrsqrted_f64): Likewise.
12339 (vrsqrte_f32): Likewise.
12340 (vrsqrte_f64): Likewise.
12341 (vrsqrteq_f32): Likewise.
12342 (vrsqrteq_f64): Likewise.
12343
12344 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12345
12346 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
12347 (ucvtf): Likewise.
12348 (fcvtzs): Likewise.
12349 (fcvtzu): Likewise.
12350 * config/aarch64/aarch64-simd.md
12351 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
12352 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
12353 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
12354 Use builtin.
12355 (vcvt_n_f32_u32): Likewise.
12356 (vcvt_n_s32_f32): Likewise.
12357 (vcvt_n_u32_f32): Likewise.
12358 (vcvtq_n_f32_s32): Likewise.
12359 (vcvtq_n_f32_u32): Likewise.
12360 (vcvtq_n_f64_s64): Likewise.
12361 (vcvtq_n_f64_u64): Likewise.
12362 (vcvtq_n_s32_f32): Likewise.
12363 (vcvtq_n_s64_f64): Likewise.
12364 (vcvtq_n_u32_f32): Likewise.
12365 (vcvtq_n_u64_f64): Likewise.
12366 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
12367 (VSDQ_SDI): Likewise.
12368 (fcvt_target): Support V4DI, V4SI and V2SI.
12369 (FCVT_TARGET): Likewise.
12370
12371 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12372
12373 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
12374 (TYPES_BINOP_SUS): Likewise.
12375 (aarch64_simd_builtin_data): Update include file name.
12376 (aarch64_builtins): Likewise.
12377 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
12378 for conversion between scalar float-point and fixed-point.
12379 (ucvtf): Likewise.
12380 (fcvtzs): Likewise.
12381 (fcvtzu): Likewise.
12382 * config/aarch64/aarch64.md
12383 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
12384 pattern for conversion between scalar float to fixed-pointer.
12385 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
12386 (UNSPEC_FCVTZS): New UNSPEC enumeration.
12387 (UNSPEC_FCVTZU): Likewise.
12388 (UNSPEC_SCVTF): Likewise.
12389 (UNSPEC_UCVTF): Likewise.
12390 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
12391 Use builtin.
12392 (vcvtd_n_f64_u64): Likewise.
12393 (vcvtd_n_s64_f64): Likewise.
12394 (vcvtd_n_u64_f64): Likewise.
12395 (vcvtd_n_f32_s32): Likewise.
12396 (vcvts_n_f32_u32): Likewise.
12397 (vcvtd_n_s32_f32): Likewise.
12398 (vcvts_n_u32_f32): Likewise.
12399 * config/aarch64/iterators.md (fcvt_target): Support integer to float
12400 mapping.
12401 (FCVT_TARGET): Likewise.
12402 (FCVT_FIXED2F): New iterator.
12403 (FCVT_F2FIXED): Likewise.
12404 (fcvt_fixed_insn): New define_int_attr.
12405
12406 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12407
12408 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
12409 some statements was removed.
12410
12411 2016-06-08 Alan Hayward <alan.hayward@arm.com>
12412
12413 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
12414 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
12415 (vect_can_advance_ivs_p): likewise.
12416 (vect_update_ivs_after_vectorizer): likewise.
12417 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
12418 (vect_analyze_scalar_cycles_1): likewise.
12419 (vect_analyze_loop_operations): likewise.
12420 (report_vect_op): likewise.
12421 (vect_is_slp_reduction): likewise.
12422 (vect_is_simple_reduction): likewise.
12423 (get_initial_def_for_induction): likewise.
12424 (vect_transform_loop): likewise.
12425 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
12426 (vect_recog_sad_pattern): likewise.
12427 (vect_recog_widen_sum_pattern): likewise.
12428 (vect_recog_widening_pattern): likewise.
12429 (vect_recog_divmod_pattern): likewise.
12430 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
12431 (vect_analyze_slp_instance): likewise.
12432 (vect_transform_slp_perm_load): likewise.
12433 (vect_schedule_slp_instance): likewise.
12434
12435 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12436
12437 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
12438 (return_prediction): PRED_CONST_RETURN predict return as not taken.
12439 * predict.def (PRED_CONTINUE): Change hitrate 50->67
12440 (PRED_LOOP_BRANCH): Document predictor as broken.
12441 (PRED_LOOP_EXIT): Change hitrate 91->92.
12442 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
12443 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
12444 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
12445 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
12446 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
12447 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
12448 (PRED_CALL): Chane hitrate 71->67.
12449 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
12450 (PRED_GOTO): Document as unused right now.
12451 (PRED_CONST_RETURN): Change hitrate 67->69
12452 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
12453 (PRED_NULL_RETURN): Change hitrate 91->90.
12454 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
12455 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
12456 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
12457
12458 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
12459
12460 * config/rs6000/altivec.h: Add __builtin_vec_mul.
12461 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
12462 special case Altivec builtin.
12463 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12464 VSX_BUILTIN_VEC_MUL (replaced with special case code).
12465 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12466 code for ALTIVEC_BUILTIN_VEC_MUL.
12467 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12468 for __builtin_vec_mul.
12469
12470 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
12471
12472 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
12473 -mno-htm.
12474
12475 2016-06-07 David Malcolm <dmalcolm@redhat.com>
12476
12477 * spellcheck.c (selftest::test_find_closest_string): New function.
12478 (spellcheck_c_tests): Call the above.
12479
12480 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12481
12482 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
12483
12484 2016-06-07 Jakub Jelinek <jakub@redhat.com>
12485
12486 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
12487 Yv=Yv,C alternatives.
12488
12489 2016-06-07 Richard Biener <rguenther@suse.de>
12490
12491 PR c/61564
12492 * common.opt (ffast-math): Make Optimization.
12493
12494 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
12495 Prachi Godbole <prachi.godbole@imgtec.com>
12496
12497 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
12498 `fabs' and `fneg' type attributes.
12499 (p5600_fpu_fabs): Add `fmove' to the comment.
12500
12501 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12502
12503 * gimple.c: Include builtins.h
12504 (gimple_inexpensive_call_p): New function.
12505 * gimple.h (gimple_inexpensive_call_p): Declare.
12506 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
12507 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
12508 fix formatting.
12509
12510 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
12511
12512 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
12513 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
12514 warning_at_rich_loc, warning_n, pedwarn, permerror,
12515 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
12516 sorry, fatal_error, internal_error, internal_error_no_backtrace):
12517 Use the above.
12518
12519 2016-06-07 Richard Biener <rguenther@suse.de>
12520
12521 PR tree-optimization/71428
12522 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
12523 BIT_FIELD_REF op vs. load.
12524
12525 2016-06-07 Richard Biener <rguenther@suse.de>
12526
12527 PR middle-end/71423
12528 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
12529 for signed ops.
12530
12531 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12532
12533 * config/pa/pa.md (call): Generate indirect long calls to non-local
12534 functions on TARGET_64BIT.
12535 (call_value): Likewise.
12536
12537 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12538
12539 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
12540 pattern and subsequent splitters.
12541 (call_val_reg_64bit_post_reload): Likewise.
12542
12543 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12544
12545 PR middle-end/71408
12546 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
12547 propagate_op_to_single_use.
12548
12549 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12550
12551 PR middle-end/71281
12552 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
12553
12554 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
12555
12556 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
12557 (enum x86_dirflag_state): New enum.
12558 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
12559 (machine_function): Remove needs_cld.
12560 (ix86_current_function_needs_cld): Remove.
12561 * config/i386/i386.c (ix86_set_func_type): Set
12562 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
12563 (ix86_expand_prologue): Do not emit CLD here.
12564 (ix86_dirflag_mode_needed): New function.
12565 (ix86_dirflag_mode_entry): Ditto.
12566 (ix86_mode_needed): Handle X86_DIRFLAG entity.
12567 (ix86_mode_after): Ditto.
12568 (ix86_mode_entry): Ditto.
12569 (ix86_mode_exit): Ditto.
12570 (ix86_emit_mode_set): Ditto.
12571 * config/i386/i386.md (strmov_singleop): Set
12572 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
12573 Do not set ix86_current_function_needs_cld.
12574 (rep_mov): Ditto.
12575 (strset_singleop): Ditto.
12576 (rep_stos): Ditto.
12577 (cmpstrnqi_nz_1): Ditto.
12578 (cmpstrnqi_1): Ditto.
12579 (strlenqi_1): Ditto.
12580
12581 2016-06-06 Jakub Jelinek <jakub@redhat.com>
12582
12583 PR tree-optimization/71259
12584 * tree-vect-slp.c (vect_get_constant_vectors): For
12585 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
12586 one for constant op, and use COND_EXPR for non-constant.
12587
12588 2016-06-06 David Malcolm <dmalcolm@redhat.com>
12589
12590 * Makefile.in (OBJS): Add function-tests.o,
12591 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
12592 selftest-run-tests.o.
12593 (OBJS-libcommon): Add selftest.o.
12594 (OBJS-libcommon-target): Add selftest.o.
12595 (all.internal): Add "selftest".
12596 (all.cross): Likewise.
12597 (selftest): New phony target.
12598 (s-selftest): New target.
12599 (selftest-gdb): New phony target.
12600 (COLLECT2_OBJS): Add selftest.o.
12601 * bitmap.c: Include "selftest.h".
12602 (selftest::test_gc_alloc): New function.
12603 (selftest::test_set_range): New function.
12604 (selftest::test_clear_bit_in_middle): New function.
12605 (selftest::test_copying): New function.
12606 (selftest::test_bitmap_single_bit_set_p): New function.
12607 (selftest::bitmap_c_tests): New function.
12608 * common.opt (fself-test): New.
12609 * diagnostic-show-locus.c: Include "selftest.h".
12610 (make_range): New function.
12611 (test_range_contains_point_for_single_point): New function.
12612 (test_range_contains_point_for_single_line): New function.
12613 (test_range_contains_point_for_multiple_lines): New function.
12614 (assert_eq): New function.
12615 (test_get_line_width_without_trailing_whitespace): New function.
12616 (selftest::diagnostic_show_locus_c_tests): New function.
12617 * et-forest.c: Include "selftest.h".
12618 (selftest::test_single_node): New function.
12619 (selftest::test_simple_tree): New function.
12620 (selftest::test_disconnected_nodes): New function.
12621 (selftest::et_forest_c_tests): New function.
12622 * fold-const.c: Include "selftest.h".
12623 (selftest::assert_binop_folds_to_const): New function.
12624 (selftest::assert_binop_folds_to_nonlvalue): New function.
12625 (selftest::test_arithmetic_folding): New function.
12626 (selftest::fold_const_c_tests): New function.
12627 * function-tests.c: New file.
12628 * gimple.c: Include "selftest.h".
12629 Include "gimple-pretty-print.h".
12630 (selftest::verify_gimple_pp): New function.
12631 (selftest::test_assign_single): New function.
12632 (selftest::test_assign_binop): New function.
12633 (selftest::test_nop_stmt): New function.
12634 (selftest::test_return_stmt): New function.
12635 (selftest::test_return_without_value): New function.
12636 (selftest::gimple_c_tests): New function.
12637 * hash-map-tests.c: New file.
12638 * hash-set-tests.c: New file.
12639 * input.c: Include "selftest.h".
12640 (selftest::assert_loceq): New function.
12641 (selftest::test_accessing_ordinary_linemaps): New function.
12642 (selftest::test_unknown_location): New function.
12643 (selftest::test_builtins): New function.
12644 (selftest::test_reading_source_line): New function.
12645 (selftest::input_c_tests): New function.
12646 * rtl-tests.c: New file.
12647 * selftest-run-tests.c: New file.
12648 * selftest.c: New file.
12649 * selftest.h: New file.
12650 * spellcheck.c: Include "selftest.h".
12651 (selftest::levenshtein_distance_unit_test_oneway): New function,
12652 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12653 (selftest::levenshtein_distance_unit_test): Likewise.
12654 (selftest::spellcheck_c_tests): Likewise.
12655 * toplev.c: Include selftest.h.
12656 (toplev::run_self_tests): New.
12657 (toplev::main): Handle -fself-test.
12658 * toplev.h (toplev::run_self_tests): New.
12659 * tree.c: Include "selftest.h".
12660 (selftest::test_integer_constants): New function.
12661 (selftest::test_identifiers): New function.
12662 (selftest::test_labels): New function.
12663 (selftest::tree_c_tests): New function.
12664 * tree-cfg.c: Include "selftest.h".
12665 (selftest::push_fndecl): New function.
12666 (selftest::test_linear_chain): New function.
12667 (selftest::test_diamond): New function.
12668 (selftest::test_fully_connected): New function.
12669 (selftest::tree_cfg_c_tests): New function.
12670 * vec.c: Include "selftest.h".
12671 (selftest::safe_push_range): New function.
12672 (selftest::test_quick_push): New function.
12673 (selftest::test_safe_push): New function.
12674 (selftest::test_truncate): New function.
12675 (selftest::test_safe_grow_cleared): New function.
12676 (selftest::test_pop): New function.
12677 (selftest::test_safe_insert): New function.
12678 (selftest::test_ordered_remove): New function.
12679 (selftest::test_unordered_remove): New function.
12680 (selftest::test_block_remove): New function.
12681 (selftest::reverse_cmp): New function.
12682 (selftest::test_qsort): New function.
12683 (selftest::vec_c_tests): New function.c.
12684 * wide-int.cc: Include selftest.h and wide-int-print.h.
12685 (selftest::from_int <wide_int>): New function.
12686 (selftest::from_int <offset_int>): New function.
12687 (selftest::from_int <widest_int>): New function.
12688 (selftest::assert_deceq): New function.
12689 (selftest::assert_hexeq): New function.
12690 (selftest::test_printing <VALUE_TYPE>): New function template.
12691 (selftest::test_ops <VALUE_TYPE>): New function template.
12692 (selftest::test_comparisons <VALUE_TYPE>): New function template.
12693 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12694 template.
12695 (selftest::wide_int_cc_tests): New function.
12696
12697 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12698
12699 PR middle-end/37780
12700 * ifcvt.c (noce_try_ifelse_collapse): New function.
12701 Declare prototype.
12702 (noce_process_if_block): Call noce_try_ifelse_collapse.
12703 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12704 (simplify_ternary_operation): Use the above to simplify
12705 conditional CLZ/CTZ expressions.
12706
12707 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12708
12709 PR middle-end/37780
12710 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12711 define_insn_and_split.
12712
12713 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12714
12715 PR middle-end/37780
12716 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12717
12718 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12719
12720 PR c/24414
12721 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12722 Implicitly clobber memory for basic asm with non-empty assembler
12723 string. Use targetm.md_asm_adjust also here.
12724 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12725 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12726 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12727 non-empty assembler string.
12728 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12729 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12730 (decode_asm_operands): Handle basic asm in PARALLEL block.
12731 (extract_insn): Handle basic asm in PARALLEL block.
12732 * doc/extend.texi: Mention new behavior of basic asm.
12733 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12734 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12735 branch_needs_nop_p): Use asm_noperands.
12736
12737 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12738
12739 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12740 Include the M7 SPARC DFA scheduler.
12741 New attribute v3pipe.
12742 Annotate insns with v3pipe where appropriate.
12743 Define cpu_feature vis4.
12744 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12745 Add (V8QI "8") to vbits.
12746 Add insns {add,sub}v8qi3
12747 Add insns ss{add,sub}v8qi3
12748 Add insns us{add,sub}{v8qi,v4hi}3
12749 Add insns {min,max}{v8qi,v4hi,v2si}3
12750 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12751 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12752 * config/sparc/niagara4.md: Add a comment explaining the
12753 discrepancy between the documented latenty numbers and the
12754 implemented ones.
12755 * config/sparc/niagara7.md: New file.
12756 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12757 supports SPARC5 and VIS 4.0 instructions.
12758 * configure: Regenerate.
12759 * config.in: Likewise.
12760 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12761 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12762 TARGET_CPU_niagara7.
12763 (ASM_CPU64_DEFAULT_SPEC): Likewise.
12764 (CPP_CPU_SPEC): Handle niagara7.
12765 (ASM_CPU_SPEC): Likewise.
12766 * config/sparc/sparc-opts.h (processor_type): Add
12767 PROCESSOR_NIAGARA7.
12768 (mvis4): New option.
12769 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12770 (AS_NIAGARA7_FLAG): Define.
12771 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12772 (CPP_CPU64_DEFAULT_SPEC): Likewise.
12773 (CPP_CPU_SPEC): Handle niagara7.
12774 (ASM_CPU_SPEC): Likewise.
12775 * config/sparc/sparc.c (niagara7_costs): Define.
12776 (sparc_option_override): Handle niagara7 and adjust cache-related
12777 parameters with better values for niagara cpus. Also support VIS4.
12778 (sparc32_initialize_trampoline): Likewise.
12779 (sparc_use_sched_lookahead): Likewise.
12780 (sparc_issue_rate): Likewise.
12781 (sparc_register_move_cost): Likewise.
12782 (dump_target_flag_bits): Support VIS4.
12783 (sparc_vis_init_builtins): Likewise.
12784 (sparc_builtins): Likewise.
12785 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12786 VIS4 4.0.
12787 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12788 UltraSparc M7.
12789 * config/sparc/sparc.opt (sparc_processor_type): New value
12790 niagara7.
12791 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12792 VIS4 builtins.
12793 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12794 -mvis4.
12795 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12796 VIS4 builtins.
12797
12798 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12799
12800 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12801
12802 2016-06-06 Richard Biener <rguenther@suse.de>
12803
12804 PR tree-optimization/71398
12805 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12806 remove edges.
12807
12808 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12809
12810 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12811 ft32_expand_prolog, ft32_expand_epilogue):
12812 Handle pretend_args.
12813 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12814 * config/ft32/ft32.md: Add pretend_returner.
12815
12816 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12817
12818 PR target/71389
12819 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12820 Copy op1 RTX to avoid invalid sharing.
12821 (ix86_expand_vector_move_misalign): Ditto.
12822
12823 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12824
12825 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12826 ATTRIBUTE_UNUSED.
12827
12828 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12829
12830 * predict.c (predicted_by_loop_heuristics_p): New function.
12831 (predict_iv_comparison): Use it.
12832 (predict_loops): Walk from innermost loops; do not predict edges
12833 leaving multiple loops multiple times; implement
12834 PRED_LOOP_ITERATIONS_MAX heuristics.
12835 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12836
12837 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12838
12839 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12840 only edges out of BB are EH edges.
12841
12842 2016-06-04 Martin Sebor <msebor@redhat.com>
12843 Marcin Baczyński <marbacz@gmail.com>
12844
12845 PR c/48116
12846 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12847 a void expression in a void function.
12848
12849 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12850
12851 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12852 aux; dump reasons of decisions.
12853 (should_duplicate_loop_header_p): Likewise.
12854 (do_while_loop_p): Likewise.
12855 (ch_base::copy_headers): Dump asi num insns duplicated.
12856
12857 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12858
12859 PR tree-optimization/71405
12860 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12861 incompatible type, build a new clobber with the right type instead
12862 of building a VIEW_CONVERT_EXPR around it.
12863
12864 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12865
12866 PR tree-optimization/52171
12867 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12868 by_pieces_ninsns instead of move_by_pieces_ninsns.
12869
12870 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12871
12872 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12873 for reg+reg addressing mode.
12874
12875 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12876
12877 * rs6000-c.c (c/c-tree.h): Add #include.
12878 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12879 in C++ when found in the base position of vec_ld or vec_st.
12880
12881 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12882
12883 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12884 use of profile unless profile status is PROFILE_READ.
12885 * profile.c (compute_branch_probabilities): Set profile status
12886 only after reporting predictor hitrates.
12887
12888 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12889
12890 PR target/71276
12891 PR target/71277
12892 * common.opt (ffp-int-builtin-inexact): New option.
12893 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12894 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12895 (ceil@var{m}2): Document dependence on this option.
12896 * ipa-inline-transform.c (inline_call): Handle
12897 flag_fp_int_builtin_inexact.
12898 * ipa-inline.c (can_inline_edge_p): Likewise.
12899 * config/i386/i386.md (rintxf2): Do not test
12900 flag_unsafe_math_optimizations.
12901 (rint<mode>2_frndint): New define_insn.
12902 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12903 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12904 for 387 instead of extending and truncating.
12905 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12906 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12907 Change to frndint<mode>2_<rounding>.
12908 (frndintxf2_<rounding>_i387): Likewise. Change to
12909 frndint<mode>2_<rounding>_i387.
12910 (<rounding_insn>xf2): Likewise.
12911 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12912 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12913 x87. Test TARGET_ROUND || !flag_trapping_math ||
12914 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12915 SSE. Use ROUND_NO_EXC in constant operand of
12916 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12917 for 387 instead of extending and truncating.
12918
12919 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12920 Julia Koval <julia.koval@intel.com>
12921
12922 PR target/66960
12923 PR target/67630
12924 PR target/67634
12925 PR target/67841
12926 PR target/68037
12927 PR target/68618
12928 PR target/68661
12929 PR target/69575
12930 PR target/69596
12931 PR target/69734
12932 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12933 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12934 all registers, except for function return registers if there are
12935 no caller-saved registers.
12936 (ix86_set_func_type): New function.
12937 (ix86_set_current_function): Call ix86_set_func_type to set
12938 no_caller_saved_registers and func_type. Call reinit_regs if
12939 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12940 nor x87 instructions in interrupt handler nor function with
12941 no_caller_saved_registers attribute.
12942 (ix86_function_ok_for_sibcall): Return false if there are no
12943 caller-saved registers.
12944 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12945 handler.
12946 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12947 (ix86_function_arg): Return special arguments in interrupt handler.
12948 (ix86_promote_function_mode): Promote pointer to word_mode only
12949 for normal functions.
12950 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12951 interrupt handler.
12952 (ix86_epilogue_uses): New function.
12953 (ix86_hard_regno_scratch_ok): Likewise.
12954 (ix86_save_reg): Preserve all registers in interrupt handler
12955 after reload. Preserve all registers, except for function return
12956 registers, if there are no caller-saved registers after reload.
12957 (find_drap_reg): Always use callee-saved register if there are
12958 no caller-saved registers.
12959 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12960 for interrupt handler.
12961 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12962 Emit cld instruction if stringops are used in interrupt handler
12963 or interrupt handler isn't a leaf function.
12964 (ix86_expand_epilogue): Generate interrupt return for interrupt
12965 handler and pop the 'ERROR_CODE' off the stack before interrupt
12966 return in exception handler.
12967 (ix86_expand_call): Disallow calling interrupt handler directly.
12968 If there are no caller-saved registers, mark all registers that
12969 are clobbered by the call which returns as clobbered.
12970 (ix86_handle_no_caller_saved_registers_attribute): New function.
12971 (ix86_handle_interrupt_attribute): Likewise.
12972 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12973 attributes.
12974 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12975 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12976 accumulation in interrupt function if stack may be realigned to
12977 avoid DRAP.
12978 (EPILOGUE_USES): New.
12979 (function_type): New enum.
12980 (machine_function): Add func_type and no_caller_saved_registers.
12981 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12982 (interrupt_return): New pattern.
12983 * doc/extend.texi: Document x86 interrupt and
12984 no_caller_saved_registers attributes.
12985
12986 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
12987
12988 PR tree-optimization/52171
12989 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12990 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
12991 Look for constant strings. Move some code to emit_block_cmp_hints
12992 and use it.
12993 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12994 * defaults.h (COMPARE_MAX_PIECES): New macro.
12995 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12996 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12997 (clear_by_pieces_1): Don't declare. Move definition before use.
12998 (can_do_by_pieces): New static function.
12999 (can_move_by_pieces): Use it. Return bool.
13000 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
13001 OP. All callers changed. Handle COMPARE_BY_PIECES.
13002 (class pieces_addr); New.
13003 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
13004 pieces_addr::adjust, pieces_addr::increment_address,
13005 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
13006 functions for it.
13007 (class op_by_pieces_d): New.
13008 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
13009 functions for it.
13010 (class move_by_pieces_d, class compare_by_pieces_d,
13011 class store_by_pieces_d): New subclasses of op_by_pieces_d.
13012 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
13013 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
13014 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
13015 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
13016 compare_by_pieces_d::finish_mode): New member functions.
13017 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
13018 functions.
13019 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
13020 (emit_block_cmp_hints): New function.
13021 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
13022 use the newly defined classes.
13023 * expr.h (by_pieces_constfn): New typedef.
13024 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
13025 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
13026 (move_by_pieces_ninsns): Don't declare.
13027 (can_move_by_pieces): Change return value to bool.
13028 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
13029 (compare_by_pieces_branch_ratio): New hook.
13030 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
13031 (by_pieces_ninsns): Declare.
13032 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
13033 COMPARE_BY_PIECES.
13034 (default_compare_by_pieces_branch_ratio): New function.
13035 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
13036 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
13037 * doc/tm.texi: Regenerate.
13038 * tree-ssa-strlen.c: Include "builtins.h".
13039 (handle_builtin_memcmp): New static function.
13040 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
13041 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
13042
13043 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13044
13045 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
13046 relevant stmts which are simple and invariant.
13047 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
13048 instead of simple and invariant
13049
13050 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13051
13052 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
13053 (vectorizable_reduction): Check for new relevant state.
13054 (vectorizable_live_operation): vectorize live stmts using
13055 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
13056 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
13057 (vect_stmt_relevant_p): Check for stmts which are only used live.
13058 (process_use): Use of a stmt does not inherit it's live value.
13059 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
13060 (vect_analyze_stmt): Check for new relevant state.
13061 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
13062 outside the loop, but not inside it.
13063
13064 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13065
13066 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
13067 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
13068 (vect_get_vec_def_for_operand): Split out code.
13069
13070 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
13071
13072 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
13073
13074 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13075
13076 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
13077
13078 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13079
13080 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
13081
13082 2016-06-03 Jakub Jelinek <jakub@redhat.com>
13083
13084 PR middle-end/71387
13085 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
13086 to noreturn e->callee->decl that has void return type and void
13087 arguments, adjust gimple_call_fntype and remove lhs even if it had
13088 previously addressable type.
13089
13090 2016-06-02 Jeff Law <law@redhat.com>
13091
13092 PR tree-optimization/71328
13093 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
13094 error when checking for a jump back onto the copied path.
13095
13096 2016-06-02 David Malcolm <dmalcolm@redhat.com>
13097
13098 * config/microblaze/microblaze.c (get_branch_target): Add return
13099 NULL_RTX for the non-CALL_P case.
13100 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
13101 (insert_wic): Remove unused local "j".
13102
13103 2016-06-02 Martin Liska <mliska@suse.cz>
13104
13105 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
13106
13107 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
13108 Julia Koval <julia.koval@intel.com>
13109
13110 * function.c (assign_parm_setup_stack): Force source into a
13111 register if needed.
13112 * target.def (function_incoming_arg): Update documentation to
13113 allow arbitrary address computation based on hard register.
13114 * doc/tm.texi: Regenerated.
13115
13116 2016-06-02 Martin Liska <mliska@suse.cz>
13117
13118 * predict.c (combine_predictions_for_bb): Fix first match in
13119 cases where a first predictor contains more than one occurence
13120 in list of predictors. Take the best value in such case.
13121
13122 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13123
13124 PR rtl-optimization/71295
13125 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
13126 offset would go over the size of the inner mode reject it.
13127
13128 2016-06-02 Jakub Jelinek <jakub@redhat.com>
13129
13130 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
13131 x=x,x and v=v,m instead of x=x,m.
13132
13133 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
13134 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
13135 alternative to v=rm,C.
13136
13137 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
13138 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
13139 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
13140 instead of vex for the last two above mentioned alternatives.
13141
13142 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13143
13144 PR target/70830
13145 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
13146
13147 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
13148
13149 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
13150
13151 2016-06-01 David Malcolm <dmalcolm@redhat.com>
13152
13153 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
13154 from int to unsigned.
13155
13156 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13157
13158 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
13159 alternatives, eliminating preferred register class. Add support
13160 for the MTVSRDD instruction in ISA 3.0.
13161 (vsx_splat_v4si_internal): Use splat_input_operand instead of
13162 reg_or_indexed_operand.
13163 (vsx_splat_v4sf_internal): Likewise.
13164
13165 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13166
13167 PR target/71186
13168 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
13169 for loading up all 0's or all 1's.
13170
13171 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13172
13173 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
13174
13175 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
13176
13177 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
13178 extension.
13179 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
13180 * gcc.c (set_source_date_epoch_envvar): New function, sets
13181 the SOURCE_DATE_EPOCH environment variable to the current time.
13182
13183 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13184
13185 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
13186 the factor for live Phi nodes.
13187
13188 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13189
13190 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
13191 * tree-parloops.c (parallelize_loops): likewise.
13192 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
13193 tree_unswitch_outer_loop): likewise.
13194
13195 2016-06-01 Jakub Jelinek <jakub@redhat.com>
13196
13197 PR middle-end/71371
13198 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
13199 around creation of the temporary.
13200
13201 2016-06-01 Richard Biener <rguenther@suse.de>
13202
13203 PR tree-optimization/71366
13204 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
13205 (unloop_loops): Move removing edges here ...
13206 (try_unroll_loop_completely): ... from here.
13207 (try_peel_loop): ... and here.
13208 (tree_unroll_loops_completely_1): Track parent loops via
13209 bitmap of header BBs.
13210 (tree_unroll_loops_completely): Adjust for that.
13211
13212 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13213
13214 * config/rs6000/altivec.h (vec_slv): New macro.
13215 (vec_srv): New macro.
13216 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
13217 (UNSPEC_VSRV): New value.
13218 (vslv): New insn.
13219 (vsrv): New insn.
13220 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
13221 (vsrv): New builtin definition.
13222 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
13223 define argument types for new builtin.
13224 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
13225 new builtin.
13226 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
13227 functions.
13228
13229 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
13230 Jocelyn Mayer <l_indien@magic.fr>
13231
13232 PR target/67310
13233 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
13234 detect processor family for signature_CENTAUR_ebx.
13235 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
13236 signature_CENTAUR_ebx.
13237 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
13238 <default>: Pass x86-64 for has_longmode.
13239
13240 2016-06-01 Nathan Sidwell <nathan@acm.org>
13241
13242 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
13243 undefined weak.
13244
13245 2016-06-01 Richard Biener <rguenther@suse.de>
13246
13247 PR tree-optimization/71261
13248 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
13249 of stmts successfully put in the bool pattern. Remove
13250 single-use restriction.
13251 (adjust_bool_pattern_cast): Add cast at the use site via the
13252 pattern def sequence.
13253 (adjust_bool_pattern): Remove recursion, maintain a hash-map
13254 of patterned defs. Use the pattern def seqence instead of
13255 multiple independent patterns.
13256 (sort_after_uid): New qsort compare function.
13257 (adjust_bool_stmts): New function to process stmts in the bool
13258 pattern in IL order.
13259 (vect_recog_bool_pattern): Adjust.
13260 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
13261 (ifcvt_walk_pattern_tree): Likewise.
13262 (stmt_is_root_of_bool_pattern): Likewise.
13263 (ifcvt_repair_bool_pattern): Likewise.
13264 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
13265
13266 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13267
13268 * loop-unroll.c (decide_unroll_constant_iterations,
13269 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
13270 likely upper bounds.
13271 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
13272
13273 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
13274
13275 * tree-core.h (enum omp_clause_code): Remove
13276 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
13277
13278 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13279
13280 * config/arm/sync.md (arm_store_exclusive<mode>):
13281 Use 'H' output modifier on operands[2] rather than creating a new
13282 entry in out-of-bounds memory of the operands array.
13283 (arm_store_release_exclusivedi): Likewise.
13284
13285 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13286
13287 * config/arm/arm.c (arm_fusion_enabled_p): New function.
13288 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
13289 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
13290 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13291
13292 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13293
13294 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
13295 into account live statements for mask producers.
13296
13297 2016-06-01 Richard Biener <rguenther@suse.de>
13298
13299 PR tree-optimization/71311
13300 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
13301 restrict to non-INTEGER_CST @0.
13302
13303 2016-06-01 Richard Biener <rguenther@suse.de>
13304
13305 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
13306 (relational patterns): Use :c to avoid pattern duplications.
13307
13308 2016-06-01 Richard Biener <rguenther@suse.de>
13309
13310 * genmatch.c (comparison_code_p): New predicate.
13311 (swap_tree_comparison): New function.
13312 (commutate): Add for_vec parameter to append new for entries.
13313 Support commutating relational operators by swapping it alongside
13314 operands.
13315 (lower_commutative): Adjust.
13316 (dt_simplify::gen): Do not pass artificial operators to gen
13317 functions.
13318 (decision_tree::gen): Do not add artificial operators as parameters.
13319 (parser::parse_expr): Verify operator commutativity when :c is
13320 applied. Allow :C to override this.
13321 * match.pd: Adjust patterns to use :C instead of :c where required.
13322
13323 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
13324
13325 PR tree-optimization/71077
13326 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
13327 the combining step, use boolean_false_node and boolean_true_node
13328 as the designated false/true return values.
13329
13330 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13331
13332 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
13333 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
13334 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
13335 PRED_LOOP_EXIT.
13336
13337 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13338
13339 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
13340 of flags impliying the register renaming.
13341 * toplev.c (process_options): Do not imply flag_rename_registers with
13342 loop peeling.
13343
13344 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13345
13346 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
13347 default implementation.
13348
13349 2016-05-31 Nathan Sidwell <nathan@acm.org>
13350
13351 * dwarf2out.c (cur_line_info_table): Add GTY marker.
13352
13353 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13354
13355 * config/sh/constraints.md (b): Remove constraint.
13356 * config/sh/predicates.md (arith_reg_operand): Remove
13357 TARGET_REGISTER_P.
13358 * config/sh/sh-modes.def (PDI): Remove.
13359 * config/sh/sh.c (sh_target_reg_class,
13360 sh_optimize_target_register_callee_saved): Remove functions.
13361 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
13362 (sh_expand_epilogue): Update comment.
13363 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
13364 sh_secondary_reload): Remove TARGET_REGS related code.
13365 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
13366 TARGET_REGISTER_P): Remove macros.
13367 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
13368 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
13369 TR1_REG, TR2_REG): Remove constants.
13370 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
13371
13372 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13373
13374 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
13375 define_expand patterns.
13376 (adddi3_compact): Rename to adddi3.
13377 (subdi3_compact): Rename to subdi3.
13378 (*negdi2): Rename to negdi2.
13379 (*abs<mode>2): Rename to abs<mode>2.
13380
13381 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13382
13383 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
13384 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
13385 (atomic_sub_fetchsi): ... this new pattern.
13386 (mvtc): Add CC_REG clobber.
13387
13388 2016-05-31 Marek Polacek <polacek@redhat.com>
13389
13390 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
13391
13392 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13393
13394 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
13395 aarch64_fusion_enabled_p to check for fusion capabilities.
13396
13397 2016-05-31 Richard Biener <rguenther@suse.de>
13398
13399 PR tree-optimization/71352
13400 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
13401 minus one and a negate.
13402
13403 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13404
13405 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
13406 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
13407 Delete prototype.
13408 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
13409 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
13410 Remove use of aarch64_simd_attr_length_move, set length attribute
13411 directly.
13412 (*aarch64_be_movoi): Likewise.
13413 (*aarch64_be_movci): Likewise.
13414 (*aarch64_be_movxi): Likewise.
13415
13416 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13417
13418 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
13419 It no longer does that.
13420 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
13421
13422 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
13423
13424 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
13425 attribute __unused__.
13426
13427 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
13428
13429 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
13430 * config/arm/arm.c (arm_arch_thumb1): Define.
13431 (arm_option_override): Initialize arm_arch_thumb1.
13432 * config/arm/arm.h (arm_arch_thumb1): Declare.
13433 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
13434 support Thumb-1 ISA.
13435
13436 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
13437
13438 PR target/71346
13439 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
13440 `Yv' for scalar operand.
13441
13442 2016-05-31 Tom de Vries <tom@codesourcery.com>
13443
13444 PR tree-optimization/69068
13445 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
13446 phis with more than two args.
13447
13448 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
13449
13450 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
13451 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
13452 target.
13453
13454 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
13455
13456 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
13457 tune_64.
13458 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
13459 support on SPARC.
13460 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
13461 cpu_32, cpu_64, tune_32 and tune_64.
13462 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
13463
13464 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13465
13466 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13467
13468 2016-05-30 Andi Kleen <ak@linux.intel.com>
13469
13470 * auto-profile.c (read_profile): Replace asserts with errors
13471 when file does not exist.
13472 * gcov-io.c (gcov_read_words): Dito.
13473
13474 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13475
13476 * tree-cfg.c (print_loop): Print likely upper bounds.
13477
13478 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13479
13480 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
13481 * opts.c (default_options): Enable peel loops at -O3.
13482 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
13483 (try_peel_loop): Do not re-peel already peeled loops;
13484 use likely upper bounds; fix profile updating.
13485 (pass_complete_unroll::execute): Initialize peeled_loops.
13486
13487 2016-05-30 Martin Liska <mliska@suse.cz>
13488
13489 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
13490 computed costs by frequency of BB they belong to.
13491 (get_scaled_computation_cost_at): New function.
13492
13493 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
13494 Marc Glisse <marc.glisse@inria.fr>
13495
13496 PR tree-optimization/71289
13497 * match.pd (-1 / B < A, A > -1 / B): New transformations.
13498
13499 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13500
13501 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
13502
13503 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13504
13505 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
13506 for peeled copies; avoid underflow when updating estimates; correctly
13507 scale loop profile.
13508
13509 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13510
13511 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
13512 r236875. Corrected oe3 to oe2 as obvious.
13513
13514 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13515
13516 PR middle-end/71269
13517 PR middle-end/71252
13518 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
13519 that inserted stmt will not dominate stmts that defines its operand.
13520 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
13521 (rewrite_expr_tree_parallel): Likewise.
13522
13523 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13524
13525 PR middle-end/71252
13526 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
13527 all fields including stmt_to_insert are swapped.
13528
13529 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13530
13531 * predict.h (force_edge_cold): Declare.
13532 * predict.c (force_edge_cold): New function.
13533 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
13534 updating.
13535 (canonicalize_loop_induction_variables): Fix formating.
13536
13537 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
13538
13539 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
13540 (visium_expand_copysign): Use gen_int_mode directly.
13541 (visium_compute_frame_size): Minor tweaks.
13542
13543 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13544
13545 * tree-vect-loop.c (vect_analyze_loop_2): Use
13546 likely_max_stmt_executions_int.
13547
13548 2016-05-30 Tom de Vries <tom@codesourcery.com>
13549
13550 PR tree-optimization/69067
13551 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
13552
13553 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
13554
13555 PR target/71245
13556 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
13557 New peepholes to remove unneeded fild/fistp pairs.
13558 (define_peephole2 atomic_loaddi_fpu): Ditto.
13559
13560 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13561
13562 * predict.c (maybe_hot_frequency_p): Avoid division.
13563
13564 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
13565
13566 * doc/install.texi: Use https for shop.fsf.org.
13567
13568 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13569
13570 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
13571 likely_max_stmt_executions_int.
13572
13573 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13574
13575 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
13576 likely_max_stmt_executions_int.
13577
13578 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13579
13580 * profile.c (compute_branch_probabilities): Do not report hitrates
13581 here.
13582 (branch_prob): Report hitrates here.
13583 * predict.c (gimple_predict_edge): Do not assert profile status;
13584 fix formatting issues.
13585
13586 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13587
13588 * predict.c (edge_predicted_by_p): New function.
13589 (predict_paths_for_bb): Do not put multiple predictions of the same type
13590 on one edge.
13591
13592 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13593
13594 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
13595 commit.
13596
13597 2016-05-28 Alan Modra <amodra@gmail.com>
13598
13599 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
13600
13601 2016-05-28 Alan Modra <amodra@gmail.com>
13602
13603 PR rtl-optimization/71275
13604 * ira.c (ira): Free dominance info.
13605
13606 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
13607
13608 * doc/sourcebuild.texi: New address for upstream Go repository.
13609
13610 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13611
13612 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
13613 (TARGET_ARM_V7M): Likewise.
13614
13615 2016-05-26 Jeff Law <law@redhat.com>
13616
13617 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
13618 (thread_across_edge): Remove calls to find_jump_threads_backwards.
13619 * passes.def: Add jump threading passes before DOM/VRP.
13620 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
13621 argument to a basic block from an edge. Remove tests which are
13622 handled elsewhere.
13623 (pass_data_thread_jumps, class pass_thread_jumps): New.
13624 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
13625 (make_pass_thread_jumps): Likewise.
13626 * tree-pass.h (make_pass_thread_jumps): Declare.
13627
13628 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
13629
13630 * config/visium/visium-protos.h (split_double_move): Rename into...
13631 (visium_split_double_move): ...this.
13632 (visium_split_double_add): Declare.
13633 * config/visium/visium.c (split_double_move): Rename into...
13634 (visium_split_double_move): ...this.
13635 (visium_split_double_add): New function.
13636 (visium_expand_copysign): Renumber operands for consistency.
13637 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
13638 (DFmode move splitter): Likewise.
13639 (*addi3_insn): Split by means of visium_split_double_add.
13640 (*adddi3_insn_flags): Delete.
13641 (*plus_plus_sltu<subst_arith>): New insn.
13642 (*subdi3_insn): Split by means of visium_split_double_add.
13643 (subdi3_insn_flags): Delete.
13644 (*minus_minus_sltu<subst_arith>): New insn.
13645 (*negdi2_insn): Split by means of visium_split_double_add.
13646 (*negdi2_insn_flags): Delete.
13647
13648 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
13649
13650 * configure.ac: Treat a --with-headers option without argument
13651 the same as the default (i.e. consult sys-include directory).
13652 * configure: Regenerate.
13653
13654 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13655
13656 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13657 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13658 prototype.
13659 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13660 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13661
13662 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13663
13664 PR target/63596
13665 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13666 tree-stdarg analysis results.
13667 (aarch64_setup_incoming_varargs): Likewise.
13668
13669 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13670
13671 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13672 va_list_gpr_counter_field and va_list_fpr_counter_field.
13673
13674 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
13675
13676 PR67609
13677 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13678 * config/aarch64/aarch64.c
13679 (aarch64_cannot_change_mode_class): Remove function.
13680 * config/aarch64/aarch64-protos.h
13681 (aarch64_cannot_change_mode_class): Remove.
13682
13683 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13684
13685 * cfgloop.c (record_niter_bound): Record likely upper bounds.
13686 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13687 get_likely_max_loop_iterations_int): New.
13688 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13689 any_likely_upper_bound.
13690 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13691 Declare.
13692 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13693 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13694 upper bound.
13695 (unroll_loop_constant_iterations): Likewise.
13696 (unroll_loop_runtime_iterations): Likewise.
13697 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13698 * lto-streamer-out.c (output_cfg): Likewise.
13699 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13700 bounds.
13701 (canonicalize_loop_induction_variables): Dump likely upper bounds.
13702 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13703 (likely_max_loop_iterations): New.
13704 (likely_max_loop_iterations_int): New.
13705 (likely_max_stmt_executions): New.
13706 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13707 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13708 likely_max_stmt_executions): Declare.
13709
13710 2016-05-27 Marek Polacek <polacek@redhat.com>
13711
13712 PR middle-end/71308
13713 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13714
13715 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13716
13717 * config/s390/s390.md (2x risbg splitters): Use
13718 reg_overlap_mentioned_p instead of rtx_equal_p.
13719
13720 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13721
13722 * combine.c (make_compound_operation): Take known zero bits into
13723 account when checking for possible zero_extend.
13724
13725 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13726
13727 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13728 Use const_int_operand for operand 2 predicate. Simplify expand code
13729 as a result.
13730
13731 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
13732
13733 PR middle-end/71279
13734 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13735 into comparison.
13736
13737 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13738
13739 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13740 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13741 that returns CC_SESWPmode and CC_ZESWPmode.
13742 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13743 and CC_SESWPmode.
13744 (aarch64_rtx_costs): Likewise.
13745
13746 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13747
13748 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13749 for ISA 3.0 min/max support.
13750 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13751 conditional move support.
13752 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13753 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13754 available.
13755 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13756 conditional moves where the comparison type is different from move
13757 type.
13758 (fp_minmax): New code iterator for smin/smax.
13759 (minmax): New code attributes for min/max.
13760 (SMINMAX): Likewise.
13761 (smax<mode>3): Combine min, max insns into one insn using the
13762 fp_minmax code iterator. Add support for ISA 3.0 min/max
13763 instructions that don't need -ffast-math.
13764 (s<minmax><mode>3): Likewise.
13765 (smax<mode>3_vsx): Likewise.
13766 (smin<mode>3): Likewise.
13767 (s<minmax><mode>3_vsx): Likewise.
13768 (smin<mode>3_vsx): Likewise.
13769 (pre-VSX min/max splitters): Likewise.
13770 (s<minmax><mode>3_fpr): Likewise.
13771 (movsfcc): Rewrite floating point conditional moves to combine
13772 SFmode/DFmode into a single insn.
13773 (mov<mode>cc): Likewise.
13774 (movdfcc): Likewise.
13775 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13776 SFDF2 iterators to handle all combinations.
13777 (fseldfsf4): Likewise.
13778 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13779 (fseldfdf4): Likewise.
13780 (fselsfdf4): Likewise.
13781 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13782 comparison instructions that set a 0/-1 mask, and use it for
13783 floating point conditional move via XXSEL.
13784 (fpmask<mode>): Likewise.
13785 (xxsel<mode>): Likewise.
13786 * config/rs6000/predicates.md (min_max_operator): Delete, no
13787 longer used.
13788 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13789 instructions that generate a 0/-1 mask for use with XXSEL.
13790 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13791 say whether floating point min/max is available, either through
13792 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13793 (TARGET_MINMAX_DF): Likewise.
13794
13795 2016-05-27 Alan Modra <amodra@gmail.com>
13796
13797 PR rtl-optimization/71275
13798 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13799 for update_equiv_regs and combine_and_move_insns.
13800
13801 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13802
13803 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13804 if_then_else or cond RTXes to calculate attribute value.
13805 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13806 <attr "length_immediate>: Ditto.
13807 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13808 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13809 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13810 <attr "type">: Ditto.
13811 <attr "prefix_data16">: Ditto.
13812 <attr "prefix_extra">: Ditto.
13813 <attr "length_immediate">: Ditto.
13814 <attr "prefix">: Ditto.
13815 (vec_set<mode>_0) <attr "isa">: Ditto.
13816 <attr "prefix_extra">: Ditto.
13817 <attr "length_immediate">: Ditto.
13818 <attr "prefix">: Ditto.
13819 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13820 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13821 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13822 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13823 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13824 <attr "length_immediate">: Ditto.
13825 <attr "prefix">: Ditto.
13826 (sse2_movsd) <attr "length_immediate">: Ditto.
13827 <attr "prefix">: Ditto.
13828 (vec_concatv2df) <attr "isa">: Ditto.
13829 <attr "prefix">: Ditto.
13830 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13831 (*vec_extractv2di_1) <attr "isa">: Ditto.
13832 <attr "type">: Ditto.
13833 <attr "length_immediate">: Ditto.
13834 <attr "prefix_rex">: Ditto.
13835 <attr "prefix_extra">: Ditto.
13836 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13837 <attr "prefix_extra">: Ditto.
13838 <attr "length_immediate">: Ditto.
13839 (vec_concatv2di) <attr "isa">: Ditto.
13840 <attr "prefix_extra">: Ditto.
13841 <attr "length_immediate">: Ditto.
13842 <attr "prefix">: Ditto.
13843
13844 2016-05-26 Martin Liska <mliska@suse.cz>
13845
13846 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13847 function.
13848 (operator+): Likewise.
13849 (operator-): Likewise.
13850 (comp_cost::operator+=): Likewise.
13851 (comp_cost::operator-=): Likewise.
13852 (comp_cost::operator/=): Likewise.
13853 (comp_cost::operator*=): Likewise.
13854 (operator<): Likewise.
13855 (operator==): Likewise.
13856 (operator<=): Likewise.
13857 (new_cost): Remove.
13858 (infinite_cost_p): Likewise.
13859 (add_costs): Likewise.
13860 (sub_costs): Likewise.
13861 (compare_costs): Likewise.
13862 (set_group_iv_cost): Use the newly introduced functions.
13863 (get_address_cost): Likewise.
13864 (get_shiftadd_cost): Likewise.
13865 (force_expr_to_var_cost): Likewise.
13866 (split_address_cost): Likewise.
13867 (ptr_difference_cost): Likewise.
13868 (difference_cost): Likewise.
13869 (get_computation_cost_at): Likewise.
13870 (determine_group_iv_cost_generic): Likewise.
13871 (determine_group_iv_cost_address): Likewise.
13872 (determine_group_iv_cost_cond): Likewise.
13873 (autoinc_possible_for_pair): Likewise.
13874 (determine_group_iv_costs): Likewise.
13875 (cheaper_cost_pair): Likewise.
13876 (iv_ca_recount_cost): Likewise.
13877 (iv_ca_set_no_cp): Likewise.
13878 (iv_ca_set_cp): Likewise.
13879 (iv_ca_cost): Likewise.
13880 (iv_ca_new): Likewise.
13881 (iv_ca_dump): Likewise.
13882 (iv_ca_narrow): Likewise.
13883 (iv_ca_prune): Likewise.
13884 (iv_ca_replace): Likewise.
13885 (try_add_cand_for): Likewise.
13886 (try_improve_iv_set): Likewise.
13887 (find_optimal_iv_set): Likewise.
13888
13889 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13890
13891 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13892 that internal functions will clobber all caller-saved registers.
13893
13894 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13895
13896 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13897 Return a better case_values_threshold when optimizing.
13898
13899 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13900
13901 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13902 Add ? to integer variant.
13903 (aarch64_combinez_be): Likewise.
13904
13905 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13906
13907 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13908 instead of x constraint.
13909 (vcvtps2ph256<mask_name>): Likewise.
13910
13911 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13912 alternative. Formatting fix.
13913
13914 * config/i386/sse.md
13915 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13916 to ...
13917 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13918 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13919 maybe_evex prefix instead of vex.
13920 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13921 EXT_REX_SSE_REG_P (op0) case in the splitter.
13922
13923 2016-05-25 Jeff Law <law@redhat.com>
13924
13925 PR tree-optimization/71272
13926 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13927 Update comments. Add test for empty path.
13928
13929 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13930
13931 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13932 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13933 special case builtin.
13934 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13935 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13936 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13937 for __builtin_vec_cmpne.
13938
13939 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13940
13941 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13942 redundant test and bail out if the type of the new operand is not
13943 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13944
13945 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13946
13947 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13948 (x_ix86_target_flags_explicit): Remove.
13949 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13950 x_ix86_target_flags_explicit.
13951 (ix86_function_specific_restore): Ditto.
13952
13953 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13954 H.J. Lu <hongjiu.lu@intel.com>
13955
13956 PR target/70738
13957 * common/config/i386/i386-common.c
13958 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13959 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13960 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13961 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13962 (-mgeneral-regs-only): Add new option.
13963 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13964 x87 instructions if only general registers are allowed.
13965 (ix86_target_string): Add ix86_flags argument. Handle additional
13966 flags options through ix86_flags argument. Update all callers.
13967 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13968
13969 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13970
13971 PR rtl-optimization/66940
13972 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13973 decrementing desired_val will not overflow before performing these
13974 operations.
13975
13976 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
13977
13978 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13979 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13980 * config/i386/i386.c (enum ix86_builtins): Add
13981 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13982 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13983 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13984 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13985 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13986 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13987 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13988 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13989 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13990 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13991 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13992 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13993 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13994 __builtin_ia32_cvtps2dq512_mask.
13995 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13996 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13997 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13998 * config/i386/sse.md
13999 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
14000 Rename to ...
14001 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
14002 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
14003 to ...
14004 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
14005 (avx512f_vec_pack_sfix_v8df): New define_expand.
14006 (avx512f_roundpd512): Rename to ...
14007 (avx512f_round<castmode>512): ... this. Change iterator.
14008 (avx512f_roundps512_sfix): New define_expand.
14009 (round<mode>2_sfix): Change iterator.
14010
14011 2016-05-25 Nick Clifton <nickc@redhat.com>
14012
14013 * config/msp430/msp430.c (msp430_attr): Produce an error if a
14014 static interrupt handler is detected.
14015 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
14016 default linker script.
14017 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
14018 the low part of a symbolic pointer.
14019
14020 2016-05-25 Richard Biener <rguenther@suse.de>
14021
14022 PR tree-optimization/71261
14023 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
14024 interesting stmt instead of immediate uses when looking
14025 for the use operand to replace.
14026
14027 2016-05-25 Martin Liska <mliska@suse.cz>
14028
14029 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
14030
14031 2016-05-25 Richard Biener <rguenther@suse.de>
14032
14033 PR tree-optimization/71264
14034 * tree-vect-stmts.c (vect_init_vector): Properly deal with
14035 vector type val.
14036
14037 2016-05-25 Martin Liska <mliska@suse.cz>
14038
14039 PR tree-optimization/71239
14040 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
14041 if DECL_SIZE is NULL.
14042
14043 2016-05-25 Richard Biener <rguenther@suse.de>
14044
14045 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
14046 * tree-if-conv.c (pass_data_if_conversion): Use it.
14047
14048 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14049
14050 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
14051 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
14052 * varpool.c (varpool_node::get_availability): Likewise.
14053
14054 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14055
14056 * config/rs6000/altivec.md (VNEG iterator): New iterator for
14057 VNEGW/VNEGD instructions.
14058 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
14059 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
14060 support for ISA 3.0 VNEGW/VNEGD instructions.
14061
14062 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
14063
14064 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
14065 pointers inside OACC_DATA regions.
14066 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
14067 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
14068 (gimplify_adjust_omp_clauses): Fix typo in comment.
14069
14070 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14071
14072 * config/rs6000/altivec.md (VParity): New mode iterator for vector
14073 parity built-in functions.
14074 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
14075 zeros.
14076 (p9v_parity<mode>2): Likewise.
14077 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
14078 parity.
14079 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
14080 (parity<mode>2): ISA 3.0 expander for vector parity.
14081 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
14082 power9 built-ins.
14083 (BU_P9_64BIT_MISC_0): Likewise.
14084 (BU_P9_MISC_0): Likewise.
14085 (BU_P9V_AV_1): Likewise.
14086 (BU_P9V_AV_2): Likewise.
14087 (BU_P9V_AV_3): Likewise.
14088 (BU_P9V_AV_P): Likewise.
14089 (BU_P9V_VSX_1): Likewise.
14090 (BU_P9V_OVERLOAD_1): Likewise.
14091 (BU_P9V_OVERLOAD_2): Likewise.
14092 (BU_P9V_OVERLOAD_3): Likewise.
14093 (VCTZB): Add vector count trailing zeros support.
14094 (VCTZH): Likewise.
14095 (VCTZW): Likewise.
14096 (VCTZD): Likewise.
14097 (VPRTYBD): Add vector parity support.
14098 (VPRTYBQ): Likewise.
14099 (VPRTYBW): Likewise.
14100 (VCTZ): Add overloaded vector count trailing zeros support.
14101 (VPRTYB): Add overloaded vector parity support.
14102 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14103 overloaded vector count trailing zeros and parity instructions.
14104 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
14105 vector parity support.
14106 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
14107 trailing zeros support.
14108 (vec_cntlz): Likewise.
14109 (vec_vctzb): Likewise.
14110 (vec_vctzd): Likewise.
14111 (vec_vctzh): Likewise.
14112 (vec_vctzw): Likewise.
14113 (vec_vprtyb): Add ISA 3.0 vector parity support.
14114 (vec_vprtybd): Likewise.
14115 (vec_vprtybw): Likewise.
14116 (vec_vprtybq): Likewise.
14117 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14118 the ISA 3.0 vector count trailing zeros and vector parity built-in
14119 functions.
14120
14121 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14122
14123 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
14124 when there is stmt_to_insert.
14125
14126 2016-05-24 Martin Sebor <msebor@redhat.com>
14127
14128 PR c++/71147
14129 * tree.h (complete_or_array_type_p): New inline function.
14130
14131 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14132
14133 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
14134 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
14135 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
14136
14137 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
14138 Limit 1st alternative to noavx isa, split 2nd alternative into one
14139 noavx and one avx alternative, use *x and Bm in the former and
14140 x and m in the latter.
14141
14142 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
14143 of sse4 for the first alternative, drop %v from the template
14144 and d operand modifier. Split second alternative into one sse4_noavx
14145 and one avx alternative, use *x instead of *v in the former and v
14146 instead of *v in the latter.
14147 (*sse4_1_extractps): Use noavx isa instead of * for the first
14148 alternative, drop %v from the template. Split second alternative into
14149 one noavx and one avx alternative, use *x instead of *v in the
14150 former and v instead of *v in the latter.
14151 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
14152 with noavx and the last one with avx.
14153 (sse4_1_phminposuw): Guard first alternative with noavx isa,
14154 split the second one into one noavx and one avx alternative,
14155 use *x and Bm in the former and x and m in the latter one.
14156 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
14157 alternatives.
14158
14159 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
14160 first two alternatives to noavx, use *x instead of *v in the second
14161 one, add avx alternative without *.
14162 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
14163 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
14164 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
14165
14166 2016-05-24 Jeff Law <law@redhat.com>
14167
14168 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
14169 New function, extracted from...
14170 (fsm_find_control_statement_thread_paths): Here. Use the new function.
14171 Allow simple copies and constant initializations in the SSA chain.
14172
14173 2016-05-24 Marek Polacek <polacek@redhat.com>
14174
14175 PR c/71249
14176 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
14177 scope.
14178
14179 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14180
14181 PR c++/71257
14182 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
14183 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
14184 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
14185 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
14186 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
14187
14188 2016-05-24 Richard Biener <rguenther@suse.de>
14189
14190 PR tree-optimization/71240
14191 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
14192 has integral type.
14193
14194 2016-05-24 Richard Biener <rguenther@suse.de>
14195
14196 PR tree-optimization/71230
14197 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
14198
14199 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14200
14201 * tree-vectorizer.h (vectorizable_comparison): Delete.
14202 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
14203 PURE_SLP_STMT check.
14204 * tree-vect-stmts.c (vectorizable_call): Likewise.
14205 (vectorizable_simd_clone_call): Likewise.
14206 (vectorizable_conversion): Likewise.
14207 (vectorizable_assignment): Likewise.
14208 (vectorizable_shift): Likewise.
14209 (vectorizable_operation): Likewise.
14210 (vectorizable_load): Likewise.
14211 (vectorizable_condition): Likewise.
14212 (vectorizable_store): Likewise. Assert that we don't have
14213 hybrid SLP.
14214 (vectorizable_comparison): Make static. Remove redundant
14215 PURE_SLP_STMT check.
14216 (vect_transform_stmt): Assert that we always have an slp_node
14217 if PURE_SLP_STMT.
14218
14219 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14220
14221 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
14222 operands[2] against 1 with comparison against CONST1_RTX.
14223 (<shift>di3_neon): Likewise.
14224 * config/arm/predicates.md (const0_operand): Replace with comparison
14225 against CONST0_RTX.
14226
14227 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14228
14229 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
14230 operands[2] against 1 with comparison against CONST1_RTX.
14231 (ashrdi3): Likewise.
14232 (lshrdi3): Likewise.
14233 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
14234 UINTVAL.
14235 (ashrsi3): Likewise.
14236 (lshrsi3): Likewise.
14237 (rotrsi3): Likewise.
14238 (define_split above *compareqi_eq0): Likewise.
14239 (define_split above "prologue"): Likewise.
14240 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
14241 * config/arm/predicates.md (shift_operator): Likewise.
14242 (shift_nomul_operator): Likewise.
14243 (sat_shift_operator): Likewise.
14244 (thumb1_cmp_operand): Likewise.
14245 (const_neon_scalar_shift_amount_operand): Replace manual range
14246 check with IN_RANGE.
14247 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
14248 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
14249
14250 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14251
14252 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
14253 with HOST_WIDE_INT_1.
14254 (insv): Likewise.
14255 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
14256 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
14257 (arm_canonicalize_comparison): Likewise.
14258 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
14259 HOST_WIDE_INT_1.
14260 (thumb1_size_rtx_costs): Likewise.
14261 (vfp_const_double_index): Replace cast of 1 to unsigned
14262 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14263 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
14264 HOST_WIDE_INT_1.
14265 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
14266 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14267 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
14268 HOST_WIDE_INT with HOST_WIDE_INT_1.
14269
14270 2016-05-24 Marek Polacek <polacek@redhat.com>
14271
14272 * tree-cfg.h (should_remove_lhs_p): New predicate.
14273 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14274 * gimplify.c (gimplify_modify_expr): Likewise.
14275 * tree-cfg.c (verify_gimple_call): Likewise.
14276 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14277 * gimple-fold.c: Include "tree-cfg.h".
14278 (gimple_fold_call): Use should_remove_lhs_p.
14279
14280 2016-05-24 Richard Biener <rguenther@suse.de>
14281
14282 PR tree-optimization/71253
14283 * cfganal.h (control_dependences): Make robust against edge
14284 and BB removal.
14285 (control_dependences::control_dependences): Remove edge_list argument.
14286 (control_dependences::get_edge): Remove.
14287 (control_dependences::get_edge_src): Add.
14288 (control_dependences::get_edge_dest): Likewise.
14289 (control_dependences::m_el): Make a vector of edge src/dest index.
14290 * cfganal.c (control_dependences::find_control_dependence): Adjust.
14291 (control_dependences::control_dependences): Likewise.
14292 (control_dependences::~control_dependence): Likewise.
14293 (control_dependences::get_edge): Remove.
14294 (control_dependences::get_edge_src): Add.
14295 (control_dependences::get_edge_dest): Likewise.
14296 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
14297 get_edge_src.
14298 (perform_tree_ssa_dce): Adjust.
14299 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
14300 get_edge_src.
14301 (pass_loop_distribution::execute): Adjust. Do loop destroying
14302 conditional on changed.
14303
14304 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14305
14306 PR target/69857
14307 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
14308 return. Reindent transformation comment and mention the ARM state
14309 behavior.
14310
14311 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14312
14313 PR middle-end/71252
14314 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
14315 after build_and_add_sum creates new use stmt.
14316
14317 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14318
14319 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
14320 load_lanes/grouped_load classification comes first. Don't check
14321 whether the vectorization factor is a multiple of the group size
14322 for load_lanes.
14323
14324 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14325
14326 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
14327 GROUP_GAP for single-element interleaving.
14328 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
14329 variable.
14330
14331 2016-05-24 Richard Biener <rguenther@suse.de>
14332
14333 PR middle-end/70434
14334 PR c/69504
14335 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
14336 bases which are accessed with non-invariant indices.
14337 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
14338 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
14339
14340 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14341
14342 PR middle-end/71170
14343 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
14344 (add_to_ops_vec): Add stmt_to_insert.
14345 (add_repeat_to_ops_vec): Init stmt_to_insert.
14346 (insert_stmt_before_use): New.
14347 (transform_add_to_multiply): Remove mult_stmt insertion and add it
14348 to ops vector.
14349 (get_ops): Init stmt_to_insert.
14350 (maybe_optimize_range_tests): Likewise.
14351 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
14352 (rewrite_expr_tree_parallel): Likewise.
14353 (reassociate_bb): Likewise.
14354
14355 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14356
14357 PR target/71201
14358 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
14359 ISA 3.0 xxperm fusion alternative.
14360 (altivec_vperm_v8hiv16qi): Likewise.
14361 (altivec_vperm_<mode>_uns_internal): Likewise.
14362 (vperm_v8hiv4si): Likewise.
14363 (vperm_v16qiv8hi): Likewise.
14364
14365 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14366 Kelvin Nilsen <kelvin@gcc.gnu.org>
14367
14368 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
14369 vpermr/xxpermr on ISA 3.0.
14370 (altivec_expand_vec_perm_le): Likewise.
14371 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
14372 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
14373 ISA 3.0.
14374
14375 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
14376
14377 * config/i386/i386.h (IS_STACK_MODE): Enable for
14378 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
14379 SSE_FLOAT_MODE_P macros.
14380 * config/i386/i386.c (ix86_preferred_reload_class): Use
14381 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
14382 Cleanup regclass processing for CONST_DOUBLE_P.
14383 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
14384 (ix86_rtx_costs): Remove redundant TARGET_80387 check
14385 with IS_STACK_MODE macro.
14386 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
14387 with TARGET_SSE2.
14388 (*movdf_internal): Use IS_STACK_MODE macro.
14389 (*movsf_internal): Ditto.
14390
14391 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
14392
14393 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
14394 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
14395
14396 2016-05-23 Jeff Law <law@redhat.com>
14397
14398 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
14399 extracted from ...
14400 (fsm_find_control_statement_thread_paths): Call it.
14401
14402 2016-05-23 Martin Jambor <mjambor@suse.cz>
14403
14404 PR ipa/71234
14405 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
14406 from_global_constant if t is not NULL.
14407
14408 2016-05-23 Marek Polacek <polacek@redhat.com>
14409
14410 PR c/49859
14411 * common.opt (Wswitch-unreachable): New option.
14412 * doc/invoke.texi: Document -Wswitch-unreachable.
14413 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
14414 warning.
14415
14416 2016-05-23 Bin Cheng <bin.cheng@arm.com>
14417
14418 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
14419 TMR_INDEX is non-NULL.
14420
14421 2016-05-23 Richard Biener <rguenther@suse.de>
14422
14423 PR tree-optimization/71230
14424 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
14425 (try_special_add_to_ops): ... here. Always test for single-use.
14426
14427 2016-05-23 Martin Jambor <mjambor@suse.cz>
14428
14429 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
14430 default block if a PHI node in the original one would be resized.
14431
14432 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14433
14434 PR tree-optimization/58135
14435 * tree-vect-slp.c: When group size is not multiple
14436 of vector size, allow splitting of store group at
14437 vector boundary.
14438
14439 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
14440
14441 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
14442
14443 2016-05-22 Jakub Jelinek <jakub@redhat.com>
14444
14445 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14446 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
14447 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
14448 of 64x2.
14449
14450 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
14451 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
14452 v constraint instead of x and vinserti32x4 insn.
14453
14454 * config/i386/sse.md (i128vldq): New mode iterator.
14455 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
14456 avx512dq and avx512vl alternatives.
14457
14458 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
14459 constraint, use maybe_evex prefix instead of vex.
14460 (vec_dupv4sf): Use v constraint instead of x for output
14461 operand except for noavx alternative, use Yv constraint
14462 instead of x for input. Use maybe_evex prefix instead of vex.
14463 (*vec_dupv4si): Likewise.
14464 (*vec_dupv2di): Likewise.
14465
14466 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14467
14468 PR middle-end/40921
14469 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
14470 (linearize_expr_tree): Call try_special_add_to_ops.
14471 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
14472
14473 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14474
14475 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
14476 to computed stack_usage.
14477
14478 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14479
14480 PR target/71103
14481 * config/avr/avr.md (define_expand "mov<mode>"): If the source
14482 operand is subreg (symbol_ref) then move the symbol ref to register.
14483
14484 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
14485
14486 * tree.c (array_at_struct_end_p): Look through MEM_REF.
14487
14488 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
14489
14490 PR middle-end/71179
14491 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
14492 VECTOR type.
14493
14494 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14495
14496 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
14497 ranges by calling get_single_symbol and tidy up. Look more closely
14498 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
14499
14500 2016-05-20 Jeff Law <law@redhat.com>
14501
14502 * bitmap.c (bitmap_find_bit): Remove useless test.
14503
14504 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
14505
14506 * function.c (thread_prologue_and_epilogue_insns): Commit the
14507 insertion of the epilogue.
14508
14509 2016-05-20 Martin Jambor <mjambor@suse.cz>
14510
14511 PR tree-optimization/70884
14512 * tree-sra.c (initialize_constant_pool_replacements): Do not check
14513 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
14514 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
14515 of constant pool data as a reason for scalarization.
14516
14517 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14518
14519 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
14520 for naked functions.
14521 (thumb1_expand_prologue): Likewise.
14522
14523 2016-05-20 Nathan Sidwell <nathan@acm.org>
14524
14525 * config/nvptx/nptx.c (nvptx_option_override): Only set
14526 flag_toplevel_reorder, if not explicitly specified. Set
14527 flag_no_common, unless explicitly specified.
14528
14529 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14530
14531 * calls.c (can_implement_as_sibling_call_p): Mark param
14532 reg_parm_stack_space with ATTRIBUTE_UNUSED.
14533
14534 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
14535
14536 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
14537 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
14538 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
14539 constants.
14540 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
14541 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
14542 and CASE_CONST_ANY.
14543
14544 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
14545
14546 * config/nvptx/nvptx.md (sincossf3): New pattern.
14547
14548 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14549
14550 * calls.c (maybe_complain_about_tail_call): New function.
14551 (initialize_argument_information): Call
14552 maybe_complain_about_tail_call when clearing *may_tailcall.
14553 (can_implement_as_sibling_call_p): Call
14554 maybe_complain_about_tail_call when returning false.
14555 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
14556 ensure try_tail_call is set. Call maybe_complain_about_tail_call
14557 if tail-call optimization fails.
14558 * cfgexpand.c (expand_call_stmt): Initialize
14559 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
14560 * gimple-pretty-print.c (dump_gimple_call): Dump
14561 gimple_call_must_tail_p.
14562 * gimple.c (gimple_build_call_from_tree): Call
14563 gimple_call_set_must_tail with the value of
14564 CALL_EXPR_MUST_TAIL_CALL.
14565 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
14566 (gimple_call_set_must_tail): New function.
14567 (gimple_call_must_tail_p): New function.
14568 * print-tree.c (print_node): Update printing of TREE_STATIC
14569 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
14570 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
14571 trailing comment listing applicable flags.
14572 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
14573
14574 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14575
14576 * calls.c (expand_call): Move "Rest of purposes for tail call
14577 optimizations to fail" to...
14578 (can_implement_as_sibling_call_p): ...this new function, and
14579 split into multiple "if" statements.
14580
14581 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14582
14583 * cfgloop.h (expected_loop_iterations_unbounded,
14584 expected_loop_iterations): Unconstify.
14585 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
14586 profile with known upper bound; return 3 when profile is absent.
14587 (expected_loop_iterations): Update.
14588
14589 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14590
14591 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
14592 and get_max_loop_iterations_int.
14593
14594 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14595
14596 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
14597 realistic upper bounds here.
14598
14599 2016-05-20 Jakub Jelinek <jakub@redhat.com>
14600
14601 PR c++/71210
14602 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
14603 calls if the LHS is variable length or has addressable type.
14604 If targets[0]->decl is a noreturn call with void return type and
14605 zero arguments, adjust fntype and remove lhs in that case.
14606
14607 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
14608
14609 PR tree-optimization/71079
14610 PR tree-optimization/71206
14611 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
14612
14613 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14614
14615 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
14616 (get_vec_alignment_for_array_decl): Likewise.
14617 (get_vec_alignment_for_record_decl): Likewise.
14618 (increase_alignment::execute): Move code to find alignment to
14619 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
14620 (type_align_map): New hash_map.
14621
14622 2016-05-20 Richard Guenther <rguenther@suse.de>
14623
14624 PR tree-optimization/29756
14625 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
14626 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
14627 * fold-const.c (operand_equal_p): Likewise.
14628 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
14629 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
14630 * tree-inline.c (estimate_operator_cost): Likewise.
14631 * tree-pretty-print.c (dump_generic_node): Likewise.
14632 * tree-ssa-operands.c (get_expr_operands): Likewise.
14633 * cfgexpand.c (expand_debug_expr): Likewise.
14634 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14635 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
14636 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
14637 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
14638 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
14639 (execute_update_addresses_taken): Do it.
14640
14641 2016-05-20 Richard Biener <rguenther@suse.de>
14642
14643 PR tree-optimization/71185
14644 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14645 register operations.
14646
14647 2016-05-20 Richard Biener <rguenther@suse.de>
14648
14649 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14650 gimple_seq_add_seq_without_update.
14651 (release_bb_predicate): Assert we have no operands to free.
14652 (if_convertible_loop_p_1): Calculate post dominators later.
14653 Do not free BB predicates here.
14654 (combine_blocks): Do not recompute BB predicates.
14655 (version_loop_for_if_conversion): Save BB predicates around
14656 loop versioning.
14657
14658 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14659
14660 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14661 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
14662 code. Ignore sibcalls on EDGE_IGNORE edges.
14663 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
14664 on edges for sibcalls that run without prologue. The rest of the
14665 function is combined from...
14666 (fix_fake_fallthrough_edge): ... this, and ...
14667 (try_shrink_wrapping): ... a part of this. Remove the bb_with
14668 function argument, make it a local variable.
14669
14670 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
14671
14672 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14673 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14674 for 32-bit mode and SEH for 64-bit.
14675 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14676 TARGET_64BIT_DEFAULT.
14677
14678 2016-05-19 Ryan Burn <contact@rnburn.com>
14679
14680 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14681 * gengtype.c (open_base_files): Add cilk.h to ifiles.
14682
14683 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
14684
14685 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14686 force pending loads from memory.
14687
14688 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
14689
14690 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14691 (UNSPEC_DARN_32): New unspec constant.
14692 (UNSPEC_DARN_RAW): New unspec constant.
14693 (darn_32): New instruction.
14694 (darn_raw): New instruction.
14695 (darn): New instruction.
14696 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14697 support and documentation for this macro.
14698 (BU_P9_MISC_1): New macro definition.
14699 (BU_P9_64BIT_MISC_0): New macro definition.
14700 (BU_P9_MISC_0): New macro definition.
14701 (darn_32): New builtin definition.
14702 (darn_raw): New builtin definition.
14703 (darn): New builtin definition.
14704 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14705 RS6000_BUILTIN_0 directives to surround each occurrence of
14706 #include "rs6000-builtin.def".
14707 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14708 RS6000_BTM_64BIT flags to the returned mask, depending on
14709 configuration.
14710 (def_builtin): Correct an error in the assignments made to the
14711 debugging variable attr_string.
14712 (rs6000_expand_builtin): Add support for no-operand built-in
14713 functions.
14714 (builtin_function_type): Remove fatal_error assertion that is no
14715 longer valid.
14716 (rs6000_common_init_builtins): Add support for no-operand built-in
14717 functions.
14718 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14719 definition.
14720 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14721 definition.
14722 (RS6000_BTM_64BIT): New macro definition.
14723 * doc/extend.texi: Document __builtin_darn (void),
14724 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14725 functions.
14726
14727 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
14728
14729 * tree-vect-loop.c (vect_analyze_loop_2): Use also
14730 max_loop_iterations_int.
14731
14732 2016-05-19 Marek Polacek <polacek@redhat.com>
14733
14734 PR tree-optimization/71031
14735 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14736 condition and adjust the code a bit.
14737
14738 2016-05-19 Martin Liska <mliska@suse.cz>
14739
14740 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14741 auto_vec instead of vec.
14742
14743 2016-05-19 Martin Liska <mliska@suse.cz>
14744
14745 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14746
14747 2016-05-19 Martin Liska <mliska@suse.cz>
14748
14749 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14750
14751 2016-05-19 Martin Liska <mliska@suse.cz>
14752
14753 * ipa-pure-const.c (set_function_state): Remove an existing
14754 funct_state.
14755 (remove_node_data): Do not free it as it's released
14756 in set_function_state.
14757
14758 2016-05-19 Martin Liska <mliska@suse.cz>
14759
14760 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14761 bitmap.
14762
14763 2016-05-19 Martin Liska <mliska@suse.cz>
14764
14765 * omp-simd-clone.c (simd_clone_adjust): Release vector.
14766
14767 2016-05-19 Martin Liska <mliska@suse.cz>
14768
14769 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14770 an auto_vec instead of re-creating it.
14771
14772 2016-05-19 Martin Liska <mliska@suse.cz>
14773
14774 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14775 auto_vec instead of vec.
14776
14777 2016-05-19 Martin Liska <mliska@suse.cz>
14778
14779 * lto-section-in.c (lto_get_section_data): Call
14780 lto_check_version with additional argument.
14781 * lto-streamer.c (lto_check_version): Add new argument.
14782 * lto-streamer.h (lto_check_version): Likewise.
14783
14784 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14785
14786 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14787 Don't add cost of inner memory when handling sign-extended loads.
14788
14789 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14790
14791 PR rtl-optimization/71148
14792 * cse.c (cse_main): Free dominance info.
14793 (rest_of_handle_cse): Don't free dominance info.
14794 (rest_of_handle_cse2): Likewise.
14795 (rest_of_handle_cse_after_global_opts): Likewise.
14796
14797 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14798
14799 PR target/71056
14800 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14801 NULL_TREE early if NEON is not available. Remove now redundant check
14802 in ARM_CHECK_BUILTIN_MODE.
14803
14804 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14805
14806 PR sanitizer/64354
14807 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14808 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14809 * doc/cpp.texi: Document new macros.
14810
14811 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14812
14813 PR tree-optimization/69848
14814 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14815 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14816
14817 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14818
14819 * function.c (thread_prologue_and_epilogue_insn): Move the
14820 "goto epilogue_done" one block later.
14821
14822 2016-05-19 Richard Biener <rguenther@suse.de>
14823
14824 PR tree-optimization/70729
14825 * passes.def: Move LIM pass before PRE. Remove no longer
14826 required copyprop and move first DCE out of the loop pipeline.
14827
14828 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14829
14830 PR driver/69265
14831 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14832 (OBJS-libcommon-target): ...here.
14833 * opts-common.c: Include spellcheck.h.
14834 (cmdline_handle_error): Build a vec of valid options and use it
14835 to suggest provide hints for misspelled arguments.
14836
14837 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14838
14839 PR c++/71100
14840 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14841 lhs if it has TREE_ADDRESSABLE type.
14842
14843 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14844
14845 PR target/71145
14846 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14847 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14848
14849 2016-05-18 Martin Jambor <mjambor@suse.cz>
14850
14851 PR ipa/69708
14852 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14853 input for NOP_EXPR pass-through functions.
14854 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14855 aggregate global constant VAR_DECLs in constant jump functions.
14856
14857 2016-05-18 Martin Jambor <mjambor@suse.cz>
14858
14859 PR ipa/69708
14860 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14861 from TREE_READONLY parameters.
14862
14863 2016-05-18 Martin Jambor <mjambor@suse.cz>
14864
14865 PR ipa/69708
14866 * cgraph.h (cgraph_indirect_call_info): New field
14867 guaranteed_unmodified.
14868 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14869 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14870 appropriate.
14871 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14872 pass the parameter value to ipa_find_agg_cst_for_param.
14873 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14874 guaranteed_unmodified, store AA results there instead of bailing out
14875 if present.
14876 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14877 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14878 (find_constructor_constant_at_offset): New function.
14879 (ipa_find_agg_cst_from_init): Likewise.
14880 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14881 static initializers of contants, report back through a new paameter
14882 from_global_constant if that was the case.
14883 (try_make_edge_direct_simple_call): Also pass parameter value to
14884 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14885 appropriate.
14886 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14887 (ipa_read_indirect_edge_info): Likewise.
14888 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14889 (ipa_load_from_parm_agg): Likewise.
14890
14891 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14892
14893 PR rtl-optimization/71150
14894 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14895 check.
14896
14897 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14898
14899 PR target/70915
14900 * config/rs6000/constraints.md (wE constraint): New constraint
14901 for a vector constant that can be loaded with XXSPLTIB.
14902 (wM constraint): New constraint for a vector constant of a 1's.
14903 (wS constraint): New constraint for a vector constant that can be
14904 loaded with XXSPLTIB and a vector sign extend instruction.
14905 * config/rs6000/predicates.md (xxspltib_constant_split): New
14906 predicates for wE/wS constraints.
14907 (xxspltib_constant_nosplit): Likewise.
14908 (easy_vector_constant): Add support for constants that can be
14909 loaded via XXSPLTIB.
14910 (all_ones_constant): New predicate for vector constant with all
14911 1's set.
14912 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14913 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14914 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14915 instruction and possibly with a sign extension.
14916 (output_vec_const_move): Add support for XXSPLTIB. If we are
14917 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14918 instead of XXLXOR/XXLORC.
14919 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14920 operations.
14921 (rs6000_legitimize_reload_address): Likewise.
14922 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14923 constants.
14924 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14925 combine VSX_M and VSX_M2 into one iterator.
14926 (VSX_M2): Likewise.
14927 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14928 (VSINT_842): Likewise.
14929 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14930 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14931 XXSPLTIB instruction.
14932 (xxspltib_<mode>_nosplit): Likewise.
14933 (xxspltib_<mode>_split): New insn to load up constants with
14934 XXSPLTIB and a sign extend instruction.
14935 (vsx_mov<mode>): Replace single move that handled all vector types
14936 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14937 moves (when -mvsx-timode is in effect) into the main vector
14938 moves. Eliminate separate moves for <VSr> <VSa>, where the
14939 preferred register class (<VSr>) is listed first, and the
14940 secondary register class (<VSa>) is listed second with a '?' to
14941 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14942 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14943 that if the register was involved in a slow operation, the
14944 clear/set operation does not wait for the slow operation to
14945 finish. Adjust the length attributes for 32-bit mode. Use
14946 rs6000_output_move_128bit and drop the use of the string
14947 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14948 spacing so that the alternatives and attributes don't generate
14949 long lines, and put things in columns, so that it is easier to
14950 match up the operands and attributes with the insn alternatives.
14951 (vsx_mov<mode>_64bit): Likewise.
14952 (vsx_mov<mode>_32bit): Likewise.
14953 (vsx_movti_64bit): Fold movti into normal vector moves.
14954 (vsx_movti_32bit): Likewise.
14955 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14956 splat instructions.
14957 (vsx_splat_v4si_internal): Likewise.
14958 (vsx_splat_v4sf_internal): Likewise.
14959 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14960 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14961 extend vector elements.
14962 (vsx_sign_extend_hi_<mode>): Likewise.
14963 (vsx_sign_extend_si_v2di): Likewise.
14964 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14965 declaration.
14966 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14967 constraints. Add trailing period to wL documentation.
14968
14969 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14970
14971 PR middle-end/71020
14972 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14973 * tree-dfa.c (replace_abnormal_ssa_names): New function.
14974 * tree-call-cdce.c: Include tree-dfa.h.
14975 (can_guard_call_p): New function, extracted from...
14976 (can_use_internal_fn): ...here.
14977 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14978 and return void.
14979 (shrink_wrap_one_built_in_call): Likewise.
14980 (use_internal_fn): Likewise.
14981 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14982 and return void. Call replace_abnormal_ssa_names.
14983 (pass_call_cdce::execute): Check can_guard_call_p during the
14984 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
14985 will always change something.
14986
14987 2016-05-18 Martin Jambor <mjambor@suse.cz>
14988
14989 PR ipa/70646
14990 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14991 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14992
14993 2016-05-18 Martin Jambor <mjambor@suse.cz>
14994
14995 PR ipa/70646
14996 * ipa-inline.h (condition): New field size.
14997 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14998 for comaprison and store it into the new condition.
14999 (evaluate_conditions_for_known_args): Use condition size to check
15000 access sizes for all but CHANGED conditions.
15001 (unmodified_parm_1): New parameter size_p, store access size into it.
15002 (unmodified_parm): Likewise.
15003 (unmodified_parm_or_parm_agg_item): Likewise.
15004 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
15005 (set_cond_stmt_execution_predicate): Extract access sizes and store
15006 them to conditions.
15007 (set_switch_stmt_execution_predicate): Likewise.
15008 (will_be_nonconstant_expr_predicate): Likewise.
15009 (will_be_nonconstant_predicate): Likewise.
15010 (inline_read_section): Stream condition size.
15011 (inline_write_summary): Likewise.
15012
15013 2016-05-18 Richard Biener <rguenther@suse.de>
15014
15015 * tree-ssa-loop-im.c (determine_max_movement): Properly add
15016 condition cost to PHI cost instead of total_cost.
15017
15018 2016-05-18 Martin Liska <mliska@suse.cz>
15019
15020 PR fortran/70856
15021 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
15022 merged variables.
15023
15024 2016-05-18 Richard Biener <rguenther@suse.de>
15025
15026 * lto-streamer.h (LTO_major_version): Bump to 6.
15027
15028 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15029
15030 * function.c (make_split_prologue_seq, make_prologue_seq,
15031 make_epilogue_seq): New functions, factored out from...
15032 (thread_prologue_and_epilogue_insns): Here.
15033
15034 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15035
15036 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15037 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
15038 of before. Add a comment.
15039
15040 2016-05-18 Bin Cheng <bin.cheng@arm.com>
15041
15042 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
15043 expression pointer, not pointer to the pointer.
15044
15045 2016-05-18 Jakub Jelinek <jakub@redhat.com>
15046
15047 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
15048 (avx2_pbroadcast<mode>): Add another alternative with v instead
15049 of x constraints in it, using <pbroadcast_evex_isa> isa.
15050 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
15051
15052 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
15053 constraint x instead of v in second alternative, add avx512bw
15054 alternative.
15055
15056 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
15057 constraint x instead of v in second alternative, add avx512bw
15058 alternative.
15059
15060 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
15061 constraint x instead of v in second alternative, add avx512bw
15062 alternative.
15063
15064 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
15065 avx512bw alternative.
15066
15067 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15068
15069 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
15070 array to 128 chars.
15071 (define_insn "*andnottf3"): Ditto.
15072 (define_insn "*<code><mode>3"/any_logic): Ditto.
15073 (define_insn "*<code>tf3"/any_logic): Ditto.
15074 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
15075 operand to block AVX-512VL insn variant emit when it is not enabled.
15076
15077 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15078
15079 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
15080 constraint fot SF mode.
15081
15082 2016-05-18 Petr Murzin <petr.murzin@intel.com>
15083 Kirill Yukhin <kirill.yukhin@intel.com>
15084
15085 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
15086 modifiers.
15087 (define_insn "rsqrt14<mode>"): Ditto.
15088 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
15089 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15090 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
15091 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15092 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
15093 Ditto.
15094 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
15095 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
15096 * config/i386/i386.c (ix86_print_operand): Expand check for size
15097 override codes for Intel syntax.
15098
15099 2016-05-18 Richard Biener <rguenther@suse.de>
15100
15101 PR tree-optimization/71168
15102 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
15103 initialization earlier.
15104
15105 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
15106
15107 * config/aarch64/aarch64-simd.md
15108 (aarch64_reduc_plus_internal<mode>): Rename to...
15109 (reduc_plus_scal): ...This, and remove previous implementation.
15110
15111 2016-05-18 Richard Biener <rguenther@suse.de>
15112
15113 * passes.def: Put late dse and cd_dce in canonical order.
15114
15115 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
15116
15117 * ipa-inline-transform.c (preserve_function_body_p): Look for
15118 first non-thunk clone.
15119 (save_function_body): Save into first non-thunk.
15120 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
15121 up call stmt id.
15122 (lto_output_node): Inline thunks don't need body in every
15123 partition.
15124 * lto-streamer-in.c: Do not fixup thunk clones.
15125 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
15126 thunks.
15127 * tree-inline.c (copy_bb): Be prepared for target node to be new after
15128 folding suceeds.
15129
15130 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15131
15132 PR middle-end/63586
15133 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
15134 (reassociate_bb): Call transform_add_to_multiply.
15135
15136 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15137
15138 * config/aarch64/aarch64.c (all_extensions): Removed unused
15139 static variable.
15140
15141 2016-05-17 Nathan Sidwell <nathan@acm.org>
15142
15143 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
15144 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
15145
15146 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
15147
15148 PR tree-optimization/54579
15149 PR middle-end/55299
15150 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
15151
15152 2016-05-17 Marek Polacek <polacek@redhat.com>
15153
15154 PR ipa/71146
15155 * tree-inline.c (expand_call_inline): Call
15156 maybe_remove_unused_call_args.
15157
15158 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
15159
15160 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
15161 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
15162 * doc/md.texi (fmin@var{m}3): Likewise.
15163
15164 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15165
15166 * match.pd (X & C): New transformation.
15167
15168 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15169
15170 * match.pd (~X & Y): New transformation.
15171
15172 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15173
15174 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
15175 information for new SSA_NAME.
15176 (simplify_conversion_using_ranges): Get range through get_range_info
15177 instead of get_value_range.
15178
15179 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15180
15181 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
15182 Remove inline assembly.
15183 (vmvn_s16): Likewise.
15184 (vmvn_s32): Likewise.
15185 (vmvn_u8): Likewise.
15186 (vmvn_u16): Likewise.
15187 (vmvn_u32): Likewise.
15188 (vmvnq_s8): Likewise.
15189 (vmvnq_s16): Likewise.
15190 (vmvnq_s32): Likewise.
15191 (vmvnq_u8): Likewise.
15192 (vmvnq_u16): Likewise.
15193 (vmvnq_u32): Likewise.
15194 (vmvn_p8): Likewise.
15195 (vmvnq_p16): Likewise.
15196
15197 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15198
15199 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
15200 Use builtin.
15201 (vmul_n_s16): Likewise.
15202 (vmul_n_s32): Likewise.
15203 (vmul_n_u16): Likewise.
15204 (vmul_n_u32): Likewise.
15205 (vmulq_n_f32): Likewise.
15206 (vmulq_n_f64): Likewise.
15207 (vmulq_n_s16): Likewise.
15208 (vmulq_n_s32): Likewise.
15209 (vmulq_n_u16): Likewise.
15210 (vmulq_n_u32): Likewise.
15211
15212 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15213
15214 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
15215 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
15216
15217 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15218
15219 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
15220 to *aarch64_fma4_elt_from_dup<mode>.
15221 (*aarch64_fnma4_elt_to_128df): Rename to
15222 *aarch64_fnma4_elt_from_dup<mode>.
15223 * config/aarch64/arm_neon.h (vfma_n_f64): New.
15224 (vfms_n_f32): Likewise.
15225 (vfms_n_f64): Likewise.
15226 (vfmsq_n_f32): Likewise.
15227 (vfmsq_n_f64): Likewise.
15228
15229 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
15230
15231 * wide-int.h: Change fixed_wide_int_storage from class to struct.
15232
15233 2016-05-17 Richard Biener <rguenther@suse.de>
15234
15235 PR tree-optimization/71132
15236 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
15237 Only add control dependences for blocks in the loop.
15238 (build_rdg): Adjust.
15239 (generate_code_for_partition): Return whether loop should
15240 be destroyed and delay that.
15241 (distribute_loop): Likewise.
15242 (pass_loop_distribution::execute): Record loops to be destroyed
15243 and perform delayed destroying of loops.
15244
15245 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15246
15247 PR target/70809
15248 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
15249
15250 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15251
15252 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
15253
15254 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
15255
15256 PR target/71114
15257 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
15258 insertion point for instructions generated by validize_mem.
15259
15260 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15261
15262 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
15263 in brackets.
15264
15265 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15266
15267 * config/aarch64/aarch64.c
15268 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
15269 rather than a macro.
15270
15271 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15272
15273 * doc/invoke.texi (AArch64 Options): Various updates.
15274
15275 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15276
15277 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
15278 into instrumentation thunks.
15279 * cif-code.def (CIF_CHKP): New.
15280
15281 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
15282
15283 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
15284
15285 2016-05-16 Martin Jambor <mjambor@suse.cz>
15286
15287 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
15288 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
15289
15290 2016-05-16 Marek Polacek <polacek@redhat.com>
15291
15292 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
15293 commentary.
15294
15295 2016-05-16 Martin Jambor <mjambor@suse.cz>
15296
15297 PR hsa/70857
15298 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
15299 the outlined kernel function.
15300
15301 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
15302
15303 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
15304 (ISA_HAS_DLSA): Ditto.
15305
15306 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15307
15308 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
15309
15310 2016-05-16 Nathan Sidwell <nathan@acm.org>
15311
15312 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
15313 (nvptx_name_replacement): Restore. Add comment.
15314 (write_fn_proto, write_fn_proto_from_insn,
15315 nvptx_output_call_insn): Restore
15316 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
15317
15318 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15319
15320 * config/aarch64/aarch64.md
15321 (add<mode>3_compareC_cconly_imm): Remove use of %w.
15322 (add<mode>3_compareC_imm): Likewise.
15323 (<optab>si3_uxtw): Split into register and immediate variants.
15324 (andsi3_compare0_uxtw): Likewise.
15325 (and<mode>3_compare0): Likewise.
15326 (and<mode>3nr_compare0): Likewise.
15327 (stack_protect_test_<mode>): Don't use %x for memory operands.
15328
15329 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15330
15331 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
15332
15333 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15334
15335 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15336 Split integer shifts into shift_reg and bfm.
15337 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15338 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15339 (ror<mode>3_insn): Likewise.
15340 (<optab>si3_insn_uxtw): Likewise.
15341 (<optab><mode>3_insn): Change to rotate_imm.
15342 (extr<mode>5_insn_alt): Likewise.
15343 (extrsi5_insn_uxtw): Likewise.
15344 (extrsi5_insn_uxtw_alt): Likewise.
15345
15346 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15347
15348 * doc/tm.texi: Regenerate.
15349 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
15350 (TARGET_INVALID_RETURN_TYPE): Remove.
15351 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
15352 TARGET_INVALID_RETURN_TYPE.
15353 * target.def (invalid_parameter_type): Remove.
15354 (invalid_return_type): Remove.
15355
15356 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15357
15358 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
15359 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
15360 calls from thunk.
15361 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
15362 gimple body.
15363 (preserve_function_body_p): No need to preserve function body
15364 * cif-codes.def (CIF_THUNK): Remove.
15365 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
15366
15367 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15368
15369 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
15370
15371 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15372
15373 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
15374 for thunks.
15375
15376 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15377
15378 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
15379 (inline_small_functions): Do not look for function symbol when
15380 resetting caches.
15381
15382 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15383
15384 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
15385 of inline thunks
15386
15387 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15388 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15389 Jiong Wang <jiong.wang@arm.com>
15390
15391 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
15392 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
15393 Define __ARM_FP16_ARGS when appropriate.
15394 * config/arm/arm.c (arm_invalid_parameter_type): Remove
15395 declaration.
15396 (arm_invalid_return_type): Likewise.
15397 (TARGET_INVALID_PARAMETER_TYPE): Remove.
15398 (TARGET_INVALID_RETURN_TYPE): Remove.
15399 (aapcs_vfp_sub_candidate): Allow HFmode.
15400 (aapcs_vfp_allocate): Add comment. Support HFmode.
15401 (aapcs_vfp_allocate_return_reg): Likewise.
15402 (struct aapcs_cp_arg_layout): Slightly reword comments for
15403 is_return_candidate and allocate_return_reg.
15404 (output_mov_vfp): Update assert.
15405 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
15406 condition.
15407 (arm_invalid_parameter_type): Remove.
15408 (amr_invalid_return_type): Remove.
15409 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
15410 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
15411 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
15412
15413 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15414
15415 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15416 * config/aarch64/arch64-protos.h
15417 (aarch64_legitimize_reload_address): Remove.
15418 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
15419 Remove.
15420
15421 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
15422
15423 * configure.ac: Add ACX_NONCANONICAL_HOST.
15424 * configure: Regenerate.
15425 * Makefile.in: Set host_noncanonical.
15426
15427 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
15428
15429 PR target/71097
15430 * config/i386/i386.md (*movtf_internal): Before register allocation,
15431 do not allow FP constants for CM_MEDIUM memory model, allow only
15432 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
15433 (*movxf_internal): Ditto.
15434 (*movdf_internal): Ditto.
15435 (*movsf_internal): Ditto.
15436
15437 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15438
15439 PR rtl-optimization/67483
15440 * combine.c (make_compound_operation): Don't call extract_left_shift
15441 with negative shift amounts.
15442
15443 2016-05-13 Jakub Jelinek <jakub@redhat.com>
15444
15445 PR bootstrap/71071
15446 * fold-const.c (fold_checksum_tree): Allow modification
15447 of TYPE_ALIAS_SET during folding.
15448
15449 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
15450 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
15451 (ix86_split_to_parts): Likewise. Fix up formatting.
15452
15453 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
15454
15455 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
15456 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
15457 printf format.
15458
15459 2016-05-13 Nathan Sidwell <nathan@acm.org>
15460
15461 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
15462 (nvptx_name_replacement): Delete.
15463 (write_fn_proto, write_fn_proto_from_insn,
15464 nvptx_output_call_insn): Remove nvptx_name_replacement call.
15465 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
15466 * langhooks.c (add_builtin_funcction_common): Call
15467 targetm.mangle_decl_assembler_name.
15468
15469 * config/nvptx/nvptx.c (write_fn_proto): Handle
15470 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
15471
15472 2016-05-13 Martin Liska <mliska@suse.cz>
15473
15474 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
15475 and PRIu64 in printf format.
15476
15477 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15478
15479 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
15480 comment.
15481
15482 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15483
15484 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15485 Change --param max-completely-peeled-times to
15486 --param max-completely-peel-times in dump file printing.
15487
15488 2016-05-13 Richard Biener <rguenther@suse.de>
15489
15490 PR tree-optimization/42587
15491 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
15492 (find_bswap_or_nop_1): Likewise.
15493 (bswap_replace): Likewise.
15494
15495 2016-05-13 Martin Liska <mliska@suse.cz>
15496
15497 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
15498 Initialize a variable with default value.
15499
15500 2016-05-13 Martin Liska <mliska@suse.cz>
15501
15502 * doc/invoke.texi: Enhance explanation of error recovery
15503 of sanitizers.
15504
15505 2016-05-13 Martin Liska <mliska@suse.cz>
15506
15507 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
15508 (struct cost_pair): Change inv_expr_id (int) to inv_expr
15509 (iv_inv_expr_ent *).
15510 (struct iv_inv_expr_ent): Comment struct fields.
15511 (sort_iv_inv_expr_ent): New function.
15512 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
15513 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
15514 a hash_map between iv_inv_expr_ent and number of usages.
15515 (niter_for_exit): Fix coding style.
15516 (tree_ssa_iv_optimize_init): Use renamed variable.
15517 (determine_base_object): Fix coding style.
15518 (alloc_iv): Likewise.
15519 (find_interesting_uses_outside): Likewise.
15520 (add_candidate_1): Likewise.
15521 (add_standard_iv_candidates): Likewise.
15522 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
15523 (prepare_decl_rtl): Fix coding style.
15524 (get_address_cost): Likewise.
15525 (get_shiftadd_cost): Likewise.
15526 (force_expr_to_var_cost): Likewise.
15527 (compare_aff_trees): Likewise.
15528 (get_expr_id): Restructure the function.
15529 (get_loop_invariant_expr_id): Renamed to
15530 get_loop_invariant_expr.
15531 (get_computation_cost_at): Replace usage of inv_expr_id with
15532 inv_expr.
15533 (get_computation_cost): Likewise.
15534 (determine_group_iv_cost_generic): Likewise.
15535 (determine_group_iv_cost_address): Likewise.
15536 (iv_period): Fix coding style.
15537 (iv_elimination_compare_lt): Likewise.
15538 (may_eliminate_iv): Likewise.
15539 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
15540 inv_expr.
15541 (determine_group_iv_costs): Dump invariant expressions.
15542 (iv_ca_recount_cost): Use the newly added hash_map.
15543 (iv_ca_set_remove_invariants): Fix coding style.
15544 (iv_ca_set_add_invariants): Fix coding style.
15545 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
15546 invariants.
15547 (iv_ca_set_cp): Likewise.
15548 (iv_ca_new): Initialize the newly added hash_map and remove
15549 initialization of fields.
15550 (iv_ca_free): Delete the hash_map.
15551 (iv_ca_dump): Dump invariant expressions.
15552 (iv_ca_extend): Fix coding style.
15553 (try_add_cand_for): Likewise.
15554 (create_new_ivs): Dump information about # of avg iterations and
15555 # of used invariant expressions.
15556 (rewrite_use_compare): Fix coding style.
15557 (free_loop_data): Set default value for max_inv_expr_id.
15558
15559 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15560
15561 * cse.c (rest_of_handle_cse): Use cleanup_cfg
15562 returned value cse_cfg_altered computation.
15563 (rest_of_handle_cse2): Likewise.
15564 (rest_of_handle_cse_after_global_opts): Likewise.
15565
15566 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15567
15568 PR target/53440
15569 * config/arm/arm.c (arm32_output_mi_thunk): New.
15570 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
15571 to split Thumb1 vs TARGET_32BIT functionality.
15572 (arm_thumb1_mi_thunk): New.
15573
15574 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15575
15576 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
15577 to true.
15578
15579 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15580
15581 PR target/71080
15582 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
15583
15584 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
15585
15586 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
15587 (expand_builtin_trap): Emit a regular call.
15588 (set_builtin_user_assembler_name): Remove obsolete cases.
15589 * dse.c (scan_insn): Adjust.
15590 * except.c: Include calls.h.
15591 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
15592 emit a regular call to setjmp.
15593 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
15594 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
15595 (emit_block_move_via_libcall): Delete.
15596 (block_move_fn): Delete.
15597 (init_block_move_fn): Likewise.
15598 (emit_block_move_libcall_fn): Likewise.
15599 (emit_block_op_via_libcall): New function.
15600 (set_storage_via_libcall): Tidy up and use memset builtin.
15601 (block_clear_fn): Delete.
15602 (init_block_clear_fn): Likewise.
15603 (clear_storage_libcall_fn): Likewise.
15604 (expand_assignment): Call emit_block_move_via_libcall.
15605 Do not include gt-expr.h.
15606 * expr.h (emit_block_op_via_libcall): Declare.
15607 (emit_block_copy_via_libcall): New inline function.
15608 (emit_block_move_via_libcall): Likewise.
15609 (emit_block_comp_via_libcall): Likewise.
15610 (block_clear_fn): Delete.
15611 (init_block_move_fn): Likewise.
15612 (init_block_clear_fn): Likewise.
15613 (emit_block_move_via_libcall): Likewise.
15614 (set_storage_via_libcall): Add default parameter value.
15615 * libfuncs.h (enum libfunc_index): Remove obsolete values.
15616 (abort_libfunc): Delete.
15617 (memcpy_libfunc): Likewise.
15618 (memmove_libfunc): Likewise.
15619 (memcmp_libfunc): Likewise.
15620 (memset_libfunc): Likewise.
15621 (setbits_libfunc): Likewise.
15622 (setjmp_libfunc): Likewise.
15623 (longjmp_libfunc): Likewise.
15624 (profile_function_entry_libfunc): Likewise.
15625 (profile_function_exit_libfunc): Likewise.
15626 (gcov_flush_libfunc): Likewise.
15627 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
15628 and DECL_VISIBILITY on the declaration.
15629 (init_optabs): Do not initialize obsolete libfuncs.
15630 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
15631 * tree-core.h (ECF_RET1): Define.
15632 (ECF_TM_PURE): Adjust.
15633 (ECF_TM_BUILTIN): Likewise.
15634 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
15635 (build_common_builtin_nodes): Initialize abort builtin.
15636 Add ECF_RET1 on memcpy, memmove and memset builtins.
15637 Pass final flags for alloca and alloca_with_align builtins.
15638 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
15639 obsolete builtins.
15640 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15641 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15642 set_storage_via_libcall and call emit_block_copy_via_libcall.
15643
15644 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
15645
15646 * config/i386/i386.md (*call_got_x32): Change operand 0 to
15647 DImode before it is passed to ix86_output_call_operand.
15648 (*call_value_got_x32): Ditto for operand 1.
15649
15650 2016-05-12 Jiong Wang <jiong.wang@arm.com>
15651
15652 PR rtl-optimization/70904
15653 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15654 reload for wide mode.
15655
15656 2016-05-12 Marek Polacek <polacek@redhat.com>
15657
15658 PR c/70756
15659 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15660 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15661 * langhooks.h (incomplete_type_error): Likewise.
15662 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
15663 parameter, pass it down to incomplete_type_error.
15664 * tree.h (size_in_bytes): New inline overload.
15665 (size_in_bytes_loc): Renamed from size_in_bytes.
15666
15667 2016-05-12 Richard Biener <rguenther@suse.de>
15668
15669 PR tree-optimization/71059
15670 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15671 nary before looking up or entering the expression into the VN
15672 hashes.
15673 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15674 Make sure to re-use NARYs without result as inserted by
15675 phi-translation.
15676
15677 2016-05-12 Richard Biener <rguenther@suse.de>
15678
15679 PR tree-optimization/71062
15680 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15681 field.
15682 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15683 vars_contains_restrict if the var is a restrict tag.
15684 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15685 do not disambiguate pointers against it.
15686 (dump_points_to_solution): Re-structure and adjust for new
15687 vars_contains_restrict flag.
15688 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15689
15690 2016-05-12 Martin Liska <mliska@suse.cz>
15691
15692 * doc/invoke.texi: Explain connection between
15693 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15694
15695 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
15696
15697 PR tree-optimization/71006
15698 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15699 consider COND_EXPR as a mask producer.
15700
15701 2016-05-12 Marek Polacek <polacek@redhat.com>
15702
15703 PR driver/71063
15704 * opts.c (common_handle_option): Detect missing argument for --help^.
15705
15706 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15707
15708 PR target/70830
15709 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15710 when popping the PC and within an interrupt handler routine.
15711 Add missing tab to output of "ldmfd".
15712 (output_return_instruction): Output LDMFD with SP update rather
15713 than POP when returning from interrupt handler.
15714
15715 2016-05-12 Jakub Jelinek <jakub@redhat.com>
15716
15717 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15718 TARGET_64BIT && TARGET_AVX512DQ.
15719 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15720 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15721 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15722 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15723 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15724 (*vec_extractv4si_zext): Add avx512dq alternative.
15725 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15726 use v instead of x constraint in other alternatives where possible.
15727
15728 * config/i386/sse.md (sse2_loadld): Use v instead of x
15729 constraint in alternatives 0,1,4.
15730
15731 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15732 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15733 v constraints instead of x and <pinsr_evex_isa> isa attribute.
15734
15735 PR target/71019
15736 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15737 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15738 is not emitted unless TARGET_AVX512BW.
15739 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15740 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15741 for the result operand.
15742
15743 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15744 constraint instead of x in avx alternatives. Use maybe_evex instead
15745 of vex prefix.
15746
15747 * config/i386/constraints.md (Yv): New constraint.
15748 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15749 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15750 * config/i386/i386.md (avx512fvecmode): New mode attr.
15751 (*pushtf): Use v constraint instead of x.
15752 (*movtf_internal): Likewise. For TARGET_AVX512VL and
15753 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15754 (*absneg<mode>2): Use Yv constraint instead of x constraint.
15755 (*absnegtf2_sse): Likewise.
15756 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15757 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15758 avx512f alternatives.
15759 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15760
15761 2016-05-12 Richard Biener <rguenther@suse.de>
15762
15763 PR tree-optimization/71060
15764 * tree-data-ref.c (initialize_data_dependence_relation): Do not
15765 require exact match of DR_BASE_OBJECT but only matching address and
15766 type.
15767
15768 2016-05-12 Richard Biener <rguenther@suse.de>
15769
15770 PR tree-optimization/70986
15771 * cfganal.c: Include cfgloop.h.
15772 (dfs_find_deadend): Prefer to take edges exiting loops.
15773
15774 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15775
15776 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15777 compile and run time.
15778
15779 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15780
15781 PR c/43651
15782 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15783
15784 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15785
15786 * config/i386/i386.c (legitimize_pic_address): Use
15787 copy_to_suggested_reg instead of gen_movsi.
15788
15789 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15790
15791 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15792 the code into quad_address_p and call it to share code with
15793 vsx_quad_dform_memory_operand.
15794 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15795 d-form support.
15796 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15797 bit instead of being a separate word. Split -mpower9-dform into
15798 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15799 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15800 for the register class supporting 128-bit quad word memory offsets.
15801 (mode_supports_vsx_dform_quad): Helper function to return if the
15802 register class uses quad word memory offsets.
15803 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15804 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15805 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15806 instructions are enabled, set up the appropriate addr_masks for
15807 128-bit types.
15808 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15809 -mpower9-dform-scalar, instead of -mpower9-dform.
15810 (rs6000_option_override_internal): Split -mpower9-dform into two
15811 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15812 -mpower9-dform switch sets or clears both. If we are not using
15813 the LRA register allocator, do not enable -mpower9-dform-vector by
15814 default. If we are using LRA, enable -mpower9-dform-vector and
15815 -mvsx-timode if it is appropriate. Issue a warning if either
15816 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15817 enabling LRA.
15818 (quad_address_offset_p): New helper function to return if the
15819 offset is legal for quad word memory instructions.
15820 (quad_address_p): New function to determin if GPR or vector
15821 register quad word memory addresses are legal.
15822 (mem_operand_gpr): Validate quad word address offsets.
15823 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15824 d-form (register + offset) instructions.
15825 (offsettable_ok_by_alignment): Likewise.
15826 (rs6000_legitimate_offset_address_p): Likewise.
15827 (legitimate_lo_sum_address_p): Likewise.
15828 (rs6000_legitimize_address): Likewise.
15829 (rs6000_legitimize_reload_address): Add more debug statements for
15830 -mdebug=addr.
15831 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15832 d-form instructions.
15833 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15834 d-form instructions. Distinguish different cases in debug
15835 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15836 d-form instructions.
15837 (rs6000_preferred_reload_class): Likewise.
15838 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15839 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15840 of the ISA 2.06 indexed memory instructions.
15841 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15842 use them to save/restore the saved vector registers instead of
15843 using Altivec instructions.
15844 (rs6000_emit_epilogue): Likewise.
15845 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15846 (rs6000_opt_masks): Split -mpower9-dform into
15847 -mpower9-dform-scalar and -mpower9-dform-vector.
15848 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15849 was not selected.
15850 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15851 ISA 3.0 vector indexed memory instructions, and fold the code into
15852 the normal mov<mode> patterns.
15853 (p9_vecstore_<mode>): Likewise.
15854 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15855 instructions.
15856 (vsx_movti_64bit): Likewise.
15857 (vsx_movti_32bit): Likewise.
15858 * config/rs6000/constraints.md (wO constraint): New constraint for
15859 ISA 3.0 vector d-form support.
15860 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15861 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15862 include -mpower9-dform-vector until we switch over to LRA.
15863 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15864 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15865 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15866 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15867 for -mpower9-dform and -mlra.
15868 * doc/md.texi (wO constraint): Document wO constraint.
15869
15870 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15871
15872 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15873 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15874 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15875 Move handling of non-insn arguments inline into the sole user:
15876 (output_trans_func): ...here.
15877 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15878 in emitted function prototype.
15879 (output_internal_insn_latency_func): Ditto. Simplify.
15880 (output_internal_maximal_insn_latency_func): Ditto. Delete
15881 always-unused argument.
15882 (output_insn_latency_func): Ditto.
15883 (output_maximal_insn_latency_func): Ditto.
15884
15885 2016-05-11 Richard Biener <rguenther@suse.de>
15886
15887 PR tree-optimization/71055
15888 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15889 sth with precision not equal to access size verify we don't chop
15890 off bits.
15891
15892 2016-05-11 Richard Biener <rguenther@suse.de>
15893
15894 PR debug/71057
15895 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15896 (dwarf2out_finish): Move retry_incomplete_types call ...
15897 (dwarf2out_early_finish): ... here.
15898
15899 2016-05-11 Richard Biener <rguenther@suse.de>
15900
15901 PR middle-end/71002
15902 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15903 if the langhook insists on it.
15904 * fold-const.c (make_bit_field_ref): Add arg for the original
15905 reference and preserve its alias-set.
15906 (decode_field_reference): Take exp by reference and adjust it
15907 to the original memory reference.
15908 (optimize_bit_field_compare): Adjust callers.
15909 (fold_truth_andor_1): Likewise.
15910 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15911
15912 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15913
15914 PR middle-end/70807
15915 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15916 * cfgrtl.c (delete_insn_and_edges): Likewise.
15917 * config/i386/i386.c (convert_scalars_to_vector): Remove
15918 redundant code.
15919 * cse.c (cse_insn): Compute cse_cfg_altered.
15920 (delete_trivially_dead_insns): Likewise.
15921 (cse_cc_succs): Likewise.
15922 (rest_of_handle_cse): Free dominance info if required.
15923 (rest_of_handle_cse2): Likewise.
15924 (rest_of_handle_cse_after_global_opts): Likewise.
15925
15926 2016-05-11 Alan Modra <amodra@gmail.com>
15927
15928 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15929 abi_v4_pass_in_fpr): New functions.
15930 (rs6000_function_arg_boundary): Exclude complex IBM long double
15931 from 64-bit alignment when ABI_V4.
15932 (rs6000_function_arg, rs6000_function_arg_advance_1,
15933 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15934
15935 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15936
15937 PR rtl-optimization/71028
15938 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15939 jump with just a return in the fallthrough block if the branch
15940 block contains just a return as well.
15941
15942 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15943
15944 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15945 * match.pd ((X & Y) ^ Y): ... this.
15946 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15947 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15948
15949 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15950
15951 * read-md.c (require_char_ws): New function.
15952 (read_string): Simplify using require_char_ws.
15953 (handle_constants): Likewise.
15954 (handle_enum): Likewise.
15955 (handle_file): Likewise.
15956 * read-md.h (require_char_ws): New declaration.
15957 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15958 (read_mapping): Likewise.
15959 (read_rtx_code): Likewise.
15960 (read_nested_rtx): Likewise.
15961
15962 2016-05-10 James Norris <jnorris@codesourcery.com>
15963
15964 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15965 if offloading is enabled and -fopenacc or -fopenmp is specified.
15966 (CRTOFFLOADEND): Likewise.
15967 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15968 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15969
15970 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15971
15972 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15973 gotoff_operand code paths. Use copy_to_suggested_regs and
15974 expand_simple_binop where appropriate. Cleanup.
15975
15976 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15977
15978 PR target/70799
15979 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15980 integer constants.
15981 (dimode_scalar_chain::vector_const_cost): New.
15982 (dimode_scalar_chain::compute_convert_gain): Handle constants.
15983 (dimode_scalar_chain::convert_op): Likewise.
15984 (dimode_scalar_chain::convert_insn): Likewise.
15985
15986 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15987
15988 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15989 unary operation, not a binary one.
15990
15991 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15992
15993 PR middle-end/70877
15994 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15995 calls with type casted fndecl.
15996
15997 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15998
15999 PR tree-optimization/70786
16000 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
16001 * calls.c (initialize_argument_information): Bind bounds
16002 with corresponding args passed by reference.
16003
16004 2016-05-10 Jakub Jelinek <jakub@redhat.com>
16005
16006 PR target/70927
16007 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
16008 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
16009 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
16010 accordingly.
16011
16012 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16013
16014 PR target/70963
16015 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
16016 code for a zero scale factor.
16017 (vsx_xvcvdpuxds_scale): Likewise.
16018
16019 2016-05-10 David Malcolm <dmalcolm@redhat.com>
16020
16021 * diagnostic-show-locus.c (layout::layout): Call show_ruler
16022 if show_ruler_p was set on the context.
16023 (layout::show_ruler): New method.
16024 * diagnostic.h (struct diagnostic_context): Add field
16025 "show_ruler_p".
16026
16027 2016-05-10 Richard Biener <rguenther@suse.de>
16028
16029 PR tree-optimization/71039
16030 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
16031 (chk_uses): New function.
16032 (propagate_with_phi): Verify we can safely replicate the lhs of an
16033 aggregate assignment on all incoming edges.
16034
16035 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
16036
16037 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
16038 Forward declare.
16039 (rx_atomic_sequence): New class.
16040 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
16041 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
16042 non-inline.
16043 (rx_atomic_sequence::rx_atomic_sequence,
16044 rx_atomic_sequence::~rx_atomic_sequence): New functions.
16045 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
16046 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
16047 CTRLREG_INTB): New constants.
16048 (FETCHOP): New code iterator.
16049 (fethcop_name, fetchop_name2): New iterator code attributes.
16050 (QIHI): New mode iterator.
16051 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
16052 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
16053 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
16054
16055 2016-05-10 Martin Liska <mliska@suse.cz>
16056
16057 * tree-inline.c (remap_dependence_clique): Do not remap
16058 debugging statements.
16059
16060 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16061
16062 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
16063 ("*fixuns_truncdfdi2_z13")
16064 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
16065 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
16066 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
16067
16068 2016-05-10 Richard Biener <rguenther@suse.de>
16069
16070 PR tree-optimization/70497
16071 PR tree-optimization/28367
16072 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
16073 split out from ...
16074 (visit_reference_op_load): ... here.
16075 (vn_reference_lookup_3): Use it to handle subreg-like accesses
16076 with simplified BIT_FIELD_REFs.
16077 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
16078 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
16079 correctly.
16080
16081 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16082
16083 * dwarf2out.c (add_abstract_origin_attribute): Adjust
16084 documentation comment. For BLOCK nodes, add a
16085 DW_AT_abstract_origin attribute that points to the DIE generated
16086 for the origin BLOCK.
16087 (gen_lexical_block_die): Call add_abstract_origin_attribute for
16088 blocks from inlined functions.
16089
16090 2016-05-10 Alan Modra <amodra@gmail.com>
16091
16092 PR target/70947
16093 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
16094 regrename modifying insns saving lr before __morestack call.
16095 * config/rs6000/rs6000.md (split_stack_return): Similarly for
16096 insns restoring lr after __morestack call.
16097
16098 2016-05-09 Jakub Jelinek <jakub@redhat.com>
16099
16100 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
16101 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
16102 expanders.
16103 * config/i386/sse.md (vec_interleave_high<mode>,
16104 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
16105 <avx512>_vpermt2var<mode>3_maskz): Likewise.
16106
16107 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16108
16109 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
16110 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
16111 parallel reassociation for power8 and forward.
16112
16113 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
16114
16115 * config/i386/i386.md (absneg splitters with general regs): Use
16116 general_reg_operand predicate.
16117 (btsq peephole2): Use x86_64_immediate_operand to check if new
16118 value is suitable for immediate operand. Generate emitted insn
16119 using RTL expressions.
16120 (btcq peephole2): Ditto.
16121 (btrq peephole2): Ditto. Generate correct immediate operand
16122 for AND masking.
16123
16124 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16125
16126 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
16127 bitpos.
16128
16129 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16130
16131 * tree-affine.c (wide_int_constant_multiple_p): Add missing
16132 pointer dereference.
16133
16134 2016-05-09 Richard Biener <rguenther@suse.de>
16135
16136 PR tree-optimization/70985
16137 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
16138 op0 isn't a gimple register.
16139
16140 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
16141
16142 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
16143 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
16144 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
16145 (i6400_fpu_mult): New cpu units.
16146 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
16147 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
16148 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
16149 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
16150 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
16151 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
16152 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
16153 (i6400_msa_long_float4, i6400_msa_long_float5)
16154 (i6400_msa_long_float8, i6400_msa_fdiv_df)
16155 (i6400_msa_fdiv_sf): New reservations.
16156 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
16157 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
16158 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
16159 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
16160 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
16161 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
16162 (msa_short_cmp, msa_short_float2, msa_short_logic3)
16163 (msa_short_store4, msa_long_load, msa_short_store)
16164 (msa_long_logic, msa_long_float2, msa_long_float4)
16165 (msa_long_float5, msa_long_float8, msa_long_mult)
16166 (msa_long_fdiv, msa_long_div): New reservations.
16167
16168 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
16169 Sameera Deshpande <sameera.deshpande@imgtec.com>
16170 Matthew Fortune <matthew.fortune@imgtec.com>
16171 Graham Stott <graham.stott@imgtec.com>
16172 Chao-ying Fu <chao-ying.fu@imgtec.com>
16173
16174 * config.gcc: Add MSA header file for mips*-*-* target.
16175 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
16176 (Ubv8i, Urv8): New constraints.
16177 * config/mips/mips-ftypes.def: Add function types for MSA
16178 builtins.
16179 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
16180 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
16181 * config/mips/mips-msa.md: New file.
16182 * config/mips/mips-protos.h
16183 (mips_split_128bit_const_insns): New prototype.
16184 (mips_msa_idiv_insns): Likewise.
16185 (mips_split_128bit_move): Likewise.
16186 (mips_split_128bit_move_p): Likewise.
16187 (mips_split_msa_copy_d): Likewise.
16188 (mips_split_msa_insert_d): Likewise.
16189 (mips_split_msa_fill_d): Likewise.
16190 (mips_expand_msa_branch): Likewise.
16191 (mips_const_vector_same_val_p): Likewise.
16192 (mips_const_vector_same_bytes_p): Likewise.
16193 (mips_const_vector_same_int_p): Likewise.
16194 (mips_const_vector_shuffle_set_p): Likewise.
16195 (mips_const_vector_bitimm_set_p): Likewise.
16196 (mips_const_vector_bitimm_clr_p): Likewise.
16197 (mips_msa_vec_parallel_const_half): Likewise.
16198 (mips_msa_output_division): Likewise.
16199 (mips_ldst_scaled_shift): Likewise.
16200 (mips_expand_vec_cond_expr): Likewise.
16201 * config/mips/mips.c (enum mips_builtin_type): Add
16202 MIPS_BUILTIN_MSA_TEST_BRANCH.
16203 (mips_gen_const_int_vector_shuffle): New prototype.
16204 (mips_const_vector_bitimm_set_p): New function.
16205 (mips_const_vector_bitimm_clr_p): Likewise.
16206 (mips_const_vector_same_val_p): Likewise.
16207 (mips_const_vector_same_bytes_p): Likewise.
16208 (mips_const_vector_same_int_p): Likewise.
16209 (mips_const_vector_shuffle_set_p): Likewise.
16210 (mips_symbol_insns): Forbid loading symbols via immediate for
16211 MSA.
16212 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
16213 stores.
16214 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
16215 MSA.
16216 (mips_lx_address_p): Add support load indexed address for MSA.
16217 (mips_address_insns): Add calculation of instructions needed for
16218 stores and loads for MSA.
16219 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
16220 CONST_VECTOR for MSA and let it fall through.
16221 (mips_ldst_scaled_shift): New function.
16222 (mips_subword_at_byte): Likewise.
16223 (mips_msa_idiv_insns): Likewise.
16224 (mips_legitimize_move): Validate MSA moves.
16225 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
16226 calculation of costs for MSA division.
16227 (mips_split_move_p): Check if MSA moves need splitting.
16228 (mips_split_move): Split MSA moves if necessary.
16229 (mips_split_128bit_move_p): New function.
16230 (mips_split_128bit_move): Likewise.
16231 (mips_split_msa_copy_d): Likewise.
16232 (mips_split_msa_insert_d): Likewise.
16233 (mips_split_msa_fill_d): Likewise.
16234 (mips_output_move): Handle MSA moves.
16235 (mips_expand_msa_branch): New function.
16236 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
16237 Reinstate 'y' modifier.
16238 (mips_file_start): Add MSA .gnu_attribute.
16239 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
16240 FPRs.
16241 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
16242 (mips_class_max_nregs): Add register size for MSA supported mode.
16243 (mips_cannot_change_mode_class): Allow conversion between MSA
16244 vector modes and TImode.
16245 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
16246 instruction.
16247 (mips_secondary_reload_class): Force MSA loads/stores via memory.
16248 (mips_preferred_simd_mode): Add preffered modes for MSA.
16249 (mips_vector_mode_supported_p): Add MSA supported modes.
16250 (mips_autovectorize_vector_sizes): New function.
16251 (mips_msa_output_division): Likewise.
16252 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
16253 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
16254 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
16255 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
16256 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
16257 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
16258 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
16259 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
16260 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
16261 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
16262 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
16263 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
16264 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
16265 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
16266 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
16267 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
16268 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
16269 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
16270 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
16271 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
16272 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
16273 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
16274 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
16275 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
16276 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
16277 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
16278 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
16279 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
16280 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
16281 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
16282 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
16283 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
16284 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
16285 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
16286 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
16287 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
16288 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
16289 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
16290 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
16291 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
16292 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
16293 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
16294 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
16295 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
16296 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16297 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16298 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16299 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16300 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16301 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16302 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16303 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16304 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
16305 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
16306 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
16307 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
16308 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
16309 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
16310 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
16311 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
16312 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
16313 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
16314 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
16315 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
16316 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
16317 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
16318 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
16319 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
16320 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
16321 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
16322 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
16323 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
16324 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
16325 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
16326 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
16327 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
16328 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
16329 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
16330 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
16331 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
16332 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
16333 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
16334 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
16335 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
16336 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
16337 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
16338 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
16339 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
16340 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
16341 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
16342 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
16343 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
16344 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
16345 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
16346 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
16347 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
16348 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
16349 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
16350 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
16351 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
16352 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
16353 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
16354 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
16355 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
16356 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
16357 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
16358 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
16359 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
16360 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
16361 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
16362 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
16363 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
16364 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
16365 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
16366 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
16367 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
16368 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
16369 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
16370 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
16371 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
16372 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
16373 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
16374 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
16375 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
16376 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
16377 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
16378 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
16379 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
16380 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
16381 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
16382 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
16383 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
16384 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
16385 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
16386 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
16387 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
16388 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
16389 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
16390 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
16391 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
16392 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
16393 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
16394 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
16395 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
16396 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
16397 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
16398 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
16399 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
16400 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
16401 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
16402 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
16403 move_v builtins.
16404 (mips_get_builtin_decl_index): New array.
16405 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
16406 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
16407 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
16408 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
16409 (mips_init_builtins): Initialize mips_get_builtin_decl_index
16410 array.
16411 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
16412 hook.
16413 (mips_expand_builtin_insn): Prepare operands for
16414 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
16415 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
16416 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
16417 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
16418 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
16419 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
16420 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
16421 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
16422 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
16423 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
16424 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
16425 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
16426 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
16427 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
16428 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
16429 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
16430 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
16431 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
16432 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
16433 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
16434 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
16435 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
16436 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
16437 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
16438 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
16439 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
16440 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
16441 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
16442 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
16443 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
16444 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
16445 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
16446 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
16447 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
16448 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
16449 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
16450 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
16451 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
16452 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
16453 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
16454 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
16455 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
16456 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
16457 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
16458 These are set implicitly and an error is reported if overridden.
16459 (mips_expand_builtin_msa_test_branch): New function.
16460 (mips_expand_msa_shuffle): Likewise.
16461 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
16462 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
16463 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
16464 (mips_expand_vec_unpack): Add support for MSA.
16465 (mips_expand_vector_init): Likewise.
16466 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
16467 instead of const0_rtx.
16468 (mips_msa_vec_parallel_const_half): New function.
16469 (mips_gen_const_int_vector): Likewise.
16470 (mips_gen_const_int_vector_shuffle): Likewise.
16471 (mips_expand_msa_cmp): Likewise.
16472 (mips_expand_vec_cond_expr): Likewise.
16473 * config/mips/mips.h
16474 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
16475 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
16476 specified.
16477 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
16478 (ISA_HAS_MSA): New macro.
16479 (UNITS_PER_MSA_REG): Likewise.
16480 (BITS_PER_MSA_REG): Likewise.
16481 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
16482 (MSA_REG_FIRST): New macro.
16483 (MSA_REG_LAST): Likewise.
16484 (MSA_REG_NUM): Likewise.
16485 (MSA_REG_P): Likewise.
16486 (MSA_REG_RTX_P): Likewise.
16487 (MSA_SUPPORTED_MODE_P): Likewise.
16488 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
16489 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
16490 * config/mips/mips.md: Include mips-msa.md.
16491 (alu_type): Add simd_add.
16492 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
16493 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
16494 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
16495 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
16496 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
16497 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
16498 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
16499 simd_move, simd_load, simd_store. Choose "multi" for moves
16500 for "qword_mode".
16501 (qword_mode): New attribute.
16502 (insn_count): Add instruction count for quad moves.
16503 Increase the count for MIPS SIMD division.
16504 (UNITMODE): Add UNITMODEs for vector types.
16505 (addsub): New code iterator.
16506 * config/mips/mips.opt (mmsa): New option.
16507 * config/mips/msa.h: New file.
16508 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
16509 specified.
16510 * config/mips/mti-linux.h: Likewise.
16511 * config/mips/predicates.md
16512 (const_msa_branch_operand): New constraint.
16513 (const_uimm3_operand): Likewise.
16514 (const_uimm4_operand): Likewise.
16515 (const_uimm5_operand): Likewise.
16516 (const_uimm8_operand): Likewise.
16517 (const_imm5_operand): Likewise.
16518 (aq10b_operand): Likewise.
16519 (aq10h_operand): Likewise.
16520 (aq10w_operand): Likewise.
16521 (aq10d_operand): Likewise.
16522 (const_m1_operand): Likewise.
16523 (reg_or_m1_operand): Likewise.
16524 (const_exp_2_operand): Likewise.
16525 (const_exp_4_operand): Likewise.
16526 (const_exp_8_operand): Likewise.
16527 (const_exp_16_operand): Likewise.
16528 (const_vector_same_val_operand): Likewise.
16529 (const_vector_same_simm5_operand): Likewise.
16530 (const_vector_same_uimm5_operand): Likewise.
16531 (const_vector_same_uimm6_operand): Likewise.
16532 (const_vector_same_uimm8_operand): Likewise.
16533 (par_const_vector_shf_set_operand): Likewise.
16534 (reg_or_vector_same_val_operand): Likewise.
16535 (reg_or_vector_same_simm5_operand): Likewise.
16536 (reg_or_vector_same_uimm6_operand): Likewise.
16537 * doc/extend.texi (MIPS SIMD Architecture Functions): New
16538 section.
16539 * doc/invoke.texi (-mmsa): Document new option.
16540
16541 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16542
16543 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
16544 * configure: Regenerate.
16545 * config.in: Regenerate.
16546 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
16547 on -fvtable-verify.
16548 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
16549 (ENDFILE_VTV_SPEC): Define.
16550
16551 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
16552
16553 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
16554 registers in all interrupt handlers if necessary.
16555 (rl78_option_override): Add warning.
16556 (MUST_SAVE_MDUC_REGISTERS): New macro.
16557 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
16558 * config/rl78/rl78.c (check_mduc_usage): New function.
16559 (mduc_regs): New structure to hold MDUC register data.
16560 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
16561 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
16562 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
16563 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
16564 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
16565 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
16566
16567 2016-05-09 Bin Cheng <bin.cheng@arm.com>
16568
16569 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
16570 (tree-ssa-loop-niter.h): Ditto.
16571 (idx_within_array_bound, ref_within_array_bound): New functions.
16572 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
16573 Factor out check on writable base object to ...
16574 (base_object_writable): ... here.
16575
16576 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16577
16578 * config/arm/arm.md (probe_stack): Add modes to set source
16579 and destination.
16580
16581 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
16582
16583 * regrename.c (base_reg_class_for_rename): New static function.
16584 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
16585
16586 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
16587
16588 * cgraph.c (thunk_adjust): Export.
16589 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
16590 * cgraphunit.c (thunk_adjust): Export.
16591 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
16592 thunks.
16593 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
16594 inlinable.
16595 * tree-inline.c (expand_call_inline): Expand thunks inline.
16596
16597 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
16598
16599 PR target/70998
16600 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
16601 (*sse2_vd_cvtss2sd): Ditto.
16602 * config/i386/i386.md
16603 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
16604 Generate *sse2_vd_cvtsd2ss pattern.
16605 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
16606 Generate *sse2_vd_cvtss2sd pattern.
16607
16608 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16609
16610 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
16611 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
16612 users.
16613
16614 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16615
16616 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
16617 * config/sh/sh.c: Define and declare variables on first use throughout
16618 the file.
16619 (current_function_interrupt): Change to bool type.
16620 (frame_insn): Rename to emit_frame_insn and update users.
16621 (push_regs): Use bool for 'interrupt_handler' argument.
16622 (save_schedule_s): Remove.
16623 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
16624 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
16625 targetm.asm_out.unaligned_op.di.
16626 (gen_far_branch): Remove redundant forward declaration.
16627 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
16628 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
16629 (sh_set_return_address, sh_function_ok_for_sibcall,
16630 scavenge_reg): Update comments.
16631 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
16632 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
16633 (sh_attr_renesas_p): Remove unnecessary parentheses.
16634 (branch_dest): Simplify.
16635 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
16636 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
16637 (CUMULATIVE_ARGS): Change macro to typedef.
16638 (current_function_interrupt): Change to bool type.
16639 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16640 Surround with __cplusplus ifdef.
16641 (sh_compare_op0, sh_compare_op1): Remove.
16642 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16643
16644 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
16645
16646 * config/arm/arm.md: (arch): Add neon.
16647 (arch_enabled): Return yes for arch neon when TARGET_NEON.
16648 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
16649 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
16650 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
16651 attributes for alt renumbering. Mark alt 3 as non-predicable.
16652 (thumb2_movdf_vfp): Likewise.
16653
16654 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
16655
16656 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16657 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16658 (*andqi_1): Add preferred_for_speed attribute to disparage
16659 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16660 (*<code>qi_1): Ditto.
16661 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16662 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16663 (*ashlqi3_1): Ditto.
16664 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16665 Add preferred_for_size attribute to disparage alternative 0 and
16666 preferred_for_speed attribute to disparage alternative 1 for
16667 TARGET_PARTIAL_REG_STALL targets.
16668
16669 2016-05-07 Tom de Vries <tom@codesourcery.com>
16670
16671 PR tree-optimization/70956
16672 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16673 def.
16674
16675 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16676
16677 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16678 * config/sh/sh.c (sh_cbranch_distance): Implement it.
16679 * config/sh/sh.md (branch_zero): Remove define_attr.
16680 (define_delay): Disable delay slot if branch distance is one insn.
16681
16682 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16683
16684 * config/i386/i386.md (LEAMODE): New mode attribute.
16685 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16686 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16687 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
16688 operand 2 predicate.
16689 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16690 (*lea<mode>_general_3): Ditto.
16691 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16692
16693 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16694
16695 * genmddump.c (main): Convert argv from char ** to const char **.
16696
16697 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16698
16699 * coretypes.h (OVERRIDE): New macro.
16700 (FINAL): New macro.
16701
16702 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
16703
16704 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16705 allow coalescing if the types are compatible.
16706
16707 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16708
16709 * pass_manager.h (pass_manager::register_pass_name): New method.
16710 (pass_manager::get_pass_by_name): New method.
16711 (pass_manager::create_pass_tab): New method.
16712 (pass_manager::m_name_to_pass_map): New field.
16713 * passes.c (name_to_pass_map): Delete global in favor of field
16714 "m_name_to_pass_map" of pass_manager.
16715 (register_pass_name): Rename from a function to...
16716 (pass_manager::register_pass_name): ...this method, updating
16717 for renaming of global "name_to_pass_map" to field
16718 "m_name_to_pass_map".
16719 (create_pass_tab): Rename from a function to...
16720 (pass_manager::create_pass_tab): ...this method, updating
16721 for renaming of global "name_to_pass_map" to field.
16722 (get_pass_by_name): Rename from a function to...
16723 (pass_manager::get_pass_by_name): ...this method.
16724 (enable_disable_pass): Convert use of get_pass_by_name to
16725 a method call, locating the pass_manager singleton.
16726
16727 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16728
16729 * genattr-common.c (main): Convert argv from char ** to const char **.
16730 * genattr.c (main): Likewise.
16731 * genattrtab.c (main): Likewise.
16732 * genautomata.c (initiate_automaton_gen): Likewise.
16733 (main): Likewise.
16734 * gencodes.c (main): Likewise.
16735 * genconditions.c (main): Likewise.
16736 * genconfig.c (main): Likewise.
16737 * genconstants.c (main): Likewise.
16738 * genemit.c (main): Likewise.
16739 * genenums.c (main): Likewise.
16740 * genextract.c (main): Likewise.
16741 * genflags.c (main): Likewise.
16742 * genmddeps.c (main): Likewise.
16743 * genopinit.c (main): Likewise.
16744 * genoutput.c (main): Likewise.
16745 * genpeep.c (main): Likewise.
16746 * genpreds.c (main): Likewise.
16747 * genrecog.c (main): Likewise.
16748 * gensupport.c (init_rtx_reader_args_cb): Likewise.
16749 (init_rtx_reader_args): Likewise.
16750 * gensupport.h (init_rtx_reader_args_cb): Likewise.
16751 (init_rtx_reader_args): Likewise.
16752 * gentarget-def.c (main): Likewise.
16753 * read-md.c (read_md_files): Likewise.
16754 * read-md.h (read_md_files): Likewise.
16755
16756 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16757
16758 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16759 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16760 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16761 Remove unused predicate.
16762 (register_and_not_fp_reg_operand): Ditto.
16763
16764 2016-05-06 Martin Liska <mliska@suse.cz>
16765
16766 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16767 instead of vec as the vector is local to the function.
16768
16769 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16770
16771 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16772 avx512bw alternative.
16773
16774 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16775 before the ashr<mode>3 pattern.
16776
16777 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16778 v instead of x in vex or maybe_vex alternatives, use
16779 maybe_evex instead of vex in prefix.
16780
16781 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16782 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16783 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16784 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16785 in prefix.
16786
16787 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16788 v instead of x in vex or maybe_vex alternatives, use
16789 maybe_evex instead of vex in prefix.
16790
16791 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16792 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16793 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16794 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16795 alternatives, use maybe_evex instead of vex in prefix.
16796
16797 * config/i386/sse.md (vec_interleave_lowv4sf,
16798 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16799 v instead of x in vex or maybe_vex alternatives, use
16800 maybe_evex instead of vex in prefix.
16801
16802 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16803 v instead of x in vex or maybe_vex alternatives, use
16804 maybe_evex instead of vex in prefix.
16805
16806 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16807 v constraint instead of x.
16808
16809 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16810
16811 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16812 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16813 equality first.
16814
16815 2016-05-06 Richard Biener <rguenther@suse.de>
16816
16817 PR tree-optimization/70948
16818 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16819 Properly clobber all fields of va_list for __builtin_va_start.
16820
16821 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16822
16823 PR debug/70935
16824 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16825 loop latch destination.
16826
16827 2016-05-06 Martin Liska <mliska@suse.cz>
16828
16829 * tree-ssa-uninit.c: Apply manual changes
16830 to the GNU coding style.
16831 (prune_uninit_phi_opnds): Rename from
16832 prune_uninit_phi_opnds_in_unrealizable_paths.
16833
16834 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16835
16836 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16837 mspace): Remove deprecated options.
16838 * doc/invoke.texi (SH options): Remove -mspace.
16839
16840 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16841
16842 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16843
16844 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16845
16846 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16847 corresponding combine split pattern.
16848
16849 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16850
16851 PR target/58219
16852 * config/sh/predicates.md (long_displacement_mem_operand): New.
16853 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16854 Add movi20, movi20s alternatives. Adjust length attribute for
16855 alternatives.
16856 (movsi_ie): Allow for any FPU. Adjust length attribute for
16857 alternatives.
16858 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16859 attribute for alternatives.
16860 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16861 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16862 length attribute for alternatives.
16863
16864 2016-05-06 Richard Biener <rguenther@suse.de>
16865
16866 PR tree-optimization/70960
16867 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16868
16869 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16870
16871 PR target/52933
16872 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16873 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16874
16875 2016-05-06 Marek Polacek <polacek@redhat.com>
16876
16877 PR sanitizer/70875
16878 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16879
16880 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16881
16882 PR target/54089
16883 * config/sh/sh.md (*rotcr): Add another variant.
16884
16885 2016-05-06 Richard Biener <rguenther@suse.de>
16886
16887 PR middle-end/70931
16888 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16889
16890 2016-05-06 Richard Biener <rguenther@suse.de>
16891
16892 PR middle-end/70941
16893 * fold-const.c (split_tree): Always convert to the original type
16894 before negating.
16895
16896 2016-05-06 Richard Biener <rguenther@suse.de>
16897
16898 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16899 (fwprop_addr): Likewise.
16900
16901 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16902
16903 PR target/70873
16904 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16905 New prototype.
16906 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16907 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16908 the splitter condition.
16909 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16910 the splitter condition.
16911 (FP float_extend load splitter): Ditto.
16912
16913 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16914
16915 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16916 to REGNO in all peephole2 patterns.
16917 (post-reload splitters): Change true_regnum to REGNO in
16918 post-reload splitters.
16919 (zero_extend splitters): Use general_reg_operand and
16920 nonimmediate_gr_operand predicates.
16921
16922 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16923
16924 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16925 v constraint instead of x.
16926
16927 2016-05-05 Alan Modra <amodra@gmail.com>
16928
16929 PR target/68662
16930 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16931 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16932 TARGET_NO_FP_IN_TOC for -mrelocatable.
16933 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16934 TARGET_RELOCATABLE test.
16935 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16936 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16937 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16938 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16939 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16940 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16941 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16942 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16943 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16944 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16945 Likewise.
16946 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16947 (rs6000_stack_info): Likewise.
16948 (rs6000_elf_asm_out_constructor): Likewise.
16949 (rs6000_elf_asm_out_destructor): Likewise.
16950 (rs6000_elf_declare_function_name): Likewise.
16951 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16952 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16953 Don't define.
16954
16955 2016-05-05 Alan Modra <amodra@gmail.com>
16956
16957 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16958
16959 2016-05-05 Alan Modra <amodra@gmail.com>
16960
16961 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16962 out-of-line gpr restore for one or two regs if that would add
16963 a save of lr.
16964
16965 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16966
16967 PR target/70873
16968 * config/i386/i386.md
16969 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16970 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16971 as operand 0 predicate.
16972 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16973 Ditto.
16974 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16975 Ditto. Emit the pattern using RTX.
16976
16977 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16978 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
16979 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
16980 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16981 Ditto.
16982 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16983 sse_reg_operand as operand 0 predicate.
16984
16985 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16986 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
16987 instead of gen_rtx_REG.
16988 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16989 Ditto.
16990
16991 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16992
16993 * function.c (emit_use_return_register_into_block): Delete.
16994 (gen_return_pattern): Delete.
16995 (emit_return_into_block): Delete.
16996 (active_insn_between): Delete.
16997 (convert_jumps_to_returns): Delete.
16998 (emit_return_for_exit): Delete.
16999 (thread_prologue_and_epilogue_insns): Delete all code dealing with
17000 simple_return for shrink-wrapped blocks.
17001 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
17002 end of blocks that need one.
17003 (get_unconverted_simple_return): Delete.
17004 (convert_to_simple_return): Delete.
17005 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
17006 (convert_to_simple_return): Ditto.
17007
17008 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17009
17010 * cfgcleanup.c (bb_is_just_return): New function.
17011 (try_optimize_cfg): Simplify jumps to return, branches to return,
17012 and branches around return.
17013
17014 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
17015
17016 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
17017 branch to a return.
17018
17019 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17020
17021 PR c++/70906
17022 PR c++/70933
17023 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
17024 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
17025 assert flags & OEP_HASH_CHECK, instead of asserting it
17026 never happens. Handle TARGET_EXPR.
17027 * fold-const.c (operand_equal_p): For hash verification,
17028 or in OEP_HASH_CHECK into flags.
17029
17030 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
17031
17032 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
17033 comment.
17034 (compute_samebase_partition_bases): Fix typo.
17035
17036 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17037
17038 * config/i386/sse.md (vec_interleave_highv8sf,
17039 vec_interleave_lowv8sf, vec_interleave_highv4df,
17040 vec_interleave_lowv4df): Remove constraints from expanders.
17041
17042 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
17043
17044 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17045
17046 * tree-inline.c (expand_call_inline): Fix path dealing with
17047 making lhs of call statement undefined.
17048
17049 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17050
17051 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17052 Check availability on NODE, too.
17053 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
17054 (cgraph_node::call_for_symbol_and_aliases): Likewise.
17055 (varpool_node::call_for_symbol_and_aliase): Likewise.
17056 * ipa-pure-const.c (add_new_function): Analyze all bodies.
17057 (propagate_pure_const): Propagate across interposable functions, too.
17058 (skip_function_for_local_pure_const): Do not skip interposable bodies
17059 with aliases.
17060 (pass_local_pure_const::execute): Update.
17061
17062 2016-05-04 Marek Polacek <polacek@redhat.com>
17063
17064 * doc/invoke.texi: Document -Wdangling-else.
17065
17066 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17067
17068 * config.gcc: Error out when conflicting multilib is detected. Do not
17069 loop over multilibs since no combination is legal.
17070
17071 2016-05-04 Alan Modra <amodra@gmail.com>
17072
17073 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
17074 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
17075 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17076 Align .toc.
17077
17078 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
17079
17080 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
17081 Clean up p5600 comments.
17082
17083 2016-05-04 Richard Biener <rguenther@suse.de>
17084
17085 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
17086 constructor simplifications.
17087 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
17088
17089 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
17090
17091 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
17092 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
17093 result.set_rtx is null instead of aborting.
17094 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
17095 Always enable.
17096 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
17097 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
17098 *mov<mode>_store_postinc): New patterns.
17099
17100 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
17101
17102 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
17103 as commutative. Check both conversions are NOP.
17104 ((A & B) OP (C & B)): Remove.
17105
17106 2016-05-04 Alan Modra <amodra@gmail.com>
17107
17108 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
17109
17110 2016-05-04 Alan Modra <amodra@gmail.com>
17111
17112 PR target/70866
17113 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
17114 when cr2,3,4 are all fixed regs.
17115
17116 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
17117
17118 PR rtl-optimization/57193
17119 * opts.c (default_options_table): Revert OPT_frename_registers change.
17120 * doc/invoke.texi (-frename-registers, -O2): Likewise.
17121
17122 2016-05-03 Martin Sebor <msebor@redhat.com>
17123
17124 PR c++/66561
17125 * builtins.c (fold_builtin_FILE): New function.
17126 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
17127 (fold_builtin_0): Call them.
17128 * gimplify.c (gimplify_call_expr): Remove the handling of
17129 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
17130
17131 PR c++/66561
17132 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
17133 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
17134 constants.
17135
17136 PR c++/66639
17137 * doc/extend.texi (Function Names as Strings): Update __func__,
17138 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
17139 constants.
17140
17141 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17142 Richard Biener <rguenther@suse.de>
17143
17144 PR tree-optimization/70916
17145 * tree-if-conv.c: Include cfganal.h.
17146 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
17147 and remove_fake_exit_edges around the optimization pass.
17148
17149 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
17150
17151 * cgraph.c (symbol_table::create_edge): Set inline_failed.
17152 (cgraph_edge::make_direct): Likewise.
17153 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
17154 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
17155 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
17156 (CIF_THUNK): New code.
17157 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
17158 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
17159 (compute_inline_parameters): Set inline_failed for thunks.
17160 (inline_analyze_function): Cleanup.
17161 * ipa-inline.c (can_inline_edge_p): Do not deal with
17162 call_stmt_cannot_inline_p.
17163 (can_early_inline_edge_p): Likewise.
17164 (early_inliner): Initialize inline_failed.
17165 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
17166
17167 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
17168
17169 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
17170 from nonimm_ssenomem_operand.
17171 (nonimm_ssenomem_operand): New predicate.
17172 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
17173 as operand 0 predicate.
17174 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
17175 Disable unsupported alternatives using "enabled" attribute.
17176 Use register_ssemem_operand as operand 0 predicate.
17177 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
17178
17179 2016-05-03 Marek Polacek <polacek@redhat.com>
17180
17181 PR c/70859
17182 * input.c (expansion_point_location): New function.
17183 * input.h (expansion_point_location): Declare.
17184
17185 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
17186
17187 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
17188 occurence with frame_offset_ ones.
17189
17190 2016-05-03 Alan Modra <amodra@gmail.com>
17191
17192 PR rtl-optimization/70890
17193 * ira.c (combine_and_move_insns): When moving def_insn, remove
17194 equivs on use_insn.
17195
17196 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
17197
17198 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
17199 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
17200 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
17201 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
17202
17203 2016-05-03 Alan Modra <amodra@gmail.com>
17204
17205 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
17206 for SAVE_MULTIPLE/STORE_MULTIPLE.
17207
17208 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17209
17210 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
17211 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
17212
17213 2016-05-03 Richard Biener <rguenther@suse.de>
17214
17215 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
17216 default true.
17217 (gimplify_arg): Likewise.
17218 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
17219 re-writing the result to a decl if required.
17220 (internal_get_tmp_var): Add allow_ssa parameter
17221 and override into_ssa with it.
17222 (get_formal_tmp_var): Adjust.
17223 (get_initialized_tmp_var): Add allow_ssa parameter.
17224 (gimplify_arg): Add allow_ssa parameter and avoid generating
17225 SSA names for the result false.
17226 (gimplify_call_expr): If the call may return twice do not
17227 gimplify parameters into SSA.
17228 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
17229 (gimplify_modify_expr): Adjust assert. For noreturn calls
17230 with a SSA name LHS adjust its def.
17231 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
17232 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
17233 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
17234 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
17235 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
17236 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
17237 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
17238 (optimize_target_teams): Do not allow SSA names for clause operands.
17239 (gimplify_expr): Likewise for where we mark the result addressable.
17240 * passes.def (pass_init_datastructures): Remove.
17241 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
17242 (rewrite_stmt): Likewise.
17243 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
17244 (replace_locals_op): Replace SSA names.
17245 (copy_gimple_seq_and_replace_locals): Init src_cfun.
17246 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
17247 * cgraph.c (release_function_body): Free CFG annotations only
17248 when we have a CFG. Simplify.
17249 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
17250 force_gimple_operand instead of get_initialized_tmp_var.
17251 * tree-pass.h (make_pass_init_datastructures): Remove.
17252 * tree-ssa.c (execute_init_datastructures): Remove.
17253 (pass_data_init_datastructures): Likewise.
17254 (class pass_init_datastructures): Likewise.
17255 (make_pass_init_datastructures): Likewise.
17256 * omp-low.c (create_omp_child_function): Init SSA data structures.
17257 (grid_expand_target_grid_body): Likewise.
17258 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
17259 name before adding it to names_to_release.
17260 (remove_bb): Always release SSA defs.
17261 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
17262 before dereferencing it.
17263 * cgraphunit.c (init_lowered_empty_function): Always
17264 int SSA data structures.
17265 * tree-ssanames.c (release_defs): Remove assert that we are in
17266 SSA form.
17267 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
17268
17269 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17270 Uros Bizjak <ubizjak@gmail.com>
17271
17272 PR rtl-optimization/70467
17273 * config/i386/predicates.md (x86_64_hilo_int_operand,
17274 x86_64_hilo_general_operand): New predicates.
17275 * config/i386/constraints.md (Wd): New constraint.
17276 * config/i386/i386.md (mode attr di): Use Wd instead of e.
17277 (general_hilo_operand): New mode attr.
17278 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
17279 instead of <general_operand>.
17280 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
17281 x86_64_hilo_general_operand instead of <general_operand>.
17282
17283 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17284
17285 PR tree-optimization/70916
17286 * tree-if-conv.c (constant_or_ssa_name): Removed.
17287 (fold_build_cond_expr): Use is_gimple_val instead of
17288 constant_or_ssa_name.
17289
17290 PR tree-optimization/70916
17291 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
17292 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
17293
17294 PR target/49244
17295 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
17296 (optimize_atomic_bit_test_and): New function.
17297 (pass_fold_builtins::execute): Use it.
17298 * optabs.def (atomic_bit_test_and_set_optab,
17299 atomic_bit_test_and_complement_optab,
17300 atomic_bit_test_and_reset_optab): New optabs.
17301 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
17302 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
17303 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
17304 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
17305 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
17306 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
17307 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
17308 * doc/md.texi (atomic_bit_test_and_set@var{mode},
17309 atomic_bit_test_and_complement@var{mode},
17310 atomic_bit_test_and_reset@var{mode}): Document.
17311 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
17312 atomic_bit_test_and_complement<mode>,
17313 atomic_bit_test_and_reset<mode>): New expanders.
17314 (atomic_bit_test_and_set<mode>_1,
17315 atomic_bit_test_and_complement<mode>_1,
17316 atomic_bit_test_and_reset<mode>_1): New insns.
17317
17318 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
17319
17320 PR rtl-optimization/70687
17321 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
17322 instead of unsigned HOST_WIDE_INT.
17323
17324 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
17325
17326 PR rtl-optimization/44281
17327 * hard-reg-set.h (struct target_hard_regs): New field
17328 x_fixed_nonglobal_reg_set.
17329 (fixed_nonglobal_reg_set): New macro.
17330 * reginfo.c (init_reg_sets_1): Initialize it.
17331 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
17332 of fixed_reg_set.
17333 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
17334
17335 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17336
17337 PR tree-optimization/56541
17338 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
17339 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
17340 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
17341 (any_complicated_phi): new static variable.
17342 (aggressive_if_conv): delete.
17343 (if_convertible_phi_p): support phis with more than two arguments.
17344 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
17345 critical pred edges.
17346 (ifcvt_split_critical_edges): support phis with more than two
17347 arguments by checking new parameter. only split critical edges
17348 if needed.
17349 (tree_if_conversion): handle simd pragma marked loop using new
17350 local variable aggressive_if_conv. check any_complicated_phi.
17351
17352 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17353
17354 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
17355 before using it.
17356
17357 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17358
17359 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
17360 cbase.
17361
17362 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17363
17364 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
17365 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
17366 define_insn_and_split.
17367 (mulsi3_i): New define_insn_and_split.
17368 (mulsi3_call): Convert to define_insn.
17369 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
17370 Remove constraints.
17371
17372 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17373
17374 * machmode.h (mode_complex): Add support to give the complex mode
17375 for a given mode.
17376 (GET_MODE_COMPLEX_MODE): Likewise.
17377 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
17378 stored by build_complex_type and gfc_build_complex_type instead of
17379 trying to figure out the appropriate mode based on the size. Raise
17380 an assertion error, if the type was not set.
17381 * genmodes.c (struct mode_data): Add field for the complex type of
17382 the given type.
17383 (blank_mode): Likewise.
17384 (make_complex_modes): Remember the complex mode created in the
17385 base type.
17386 (emit_mode_complex): Write out the mode_complex array to map a
17387 type mode to the complex version.
17388 (emit_insn_modes_c): Likewise.
17389 * tree.c (build_complex_type): Set the complex type to use before
17390 calling layout_type.
17391 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
17392 support for __float128 complex datatypes.
17393 (rs6000_hard_regno_mode_ok): Likewise.
17394 (rs6000_setup_reg_addr_masks): Likewise.
17395 (rs6000_complex_function_value): Likewise.
17396 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
17397 __float128 and __ibm128 complex.
17398 (FLOAT128_IBM_P): Likewise.
17399 (ALTIVEC_ARG_MAX_RETURN): Likewise.
17400 * doc/extend.texi (Additional Floating Types): Document that
17401 -mfloat128 must be used to enable __float128. Document complex
17402 __float128 and __ibm128 support.
17403
17404 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17405
17406 PR target/49244
17407 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
17408 char/short arguments promoted to int because of promote_prototypes.
17409
17410 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17411
17412 * config/i386/predicates.md (register_ssemem_operand): New predicate.
17413 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
17414 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
17415 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
17416 alternatives using "enabled" attribute. Use register_ssemem_operand
17417 as operand 1 predicate.
17418 (*cmpi<unord>xf_i387): Split XFmode pattern from
17419 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
17420 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
17421 *absneg<mode>2_i387. Disable unsupported alternatives using
17422 "enabled" attribute.
17423 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
17424
17425 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17426
17427 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
17428 marker.
17429 (oacc_loop_process): Check mask for loop termination.
17430
17431 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17432
17433 * cif-code.def (CIF_THUNK): Add.
17434 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
17435 accidental change.
17436
17437 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17438
17439 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
17440 (dump_inline_summary): Dump it.
17441 (fp_expression_p): New predicate.
17442 (estimate_function_body_sizes): Use it.
17443 (inline_merge_summary): Merge fp_expressions.
17444 (inline_read_section): Read fp_expressions.
17445 (inline_write_summary): Write fp_expressions.
17446 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
17447 codegen boundary if either caller or callee is !fp_expressions.
17448 * ipa-inline.h (inline_summary): Add fp_expressions.
17449 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
17450 to fp_expressions be sure the fp generation flags are updated.
17451
17452 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17453
17454 PR rtl-optimization/70467
17455 * cse.c (cse_insn): Handle no-op MEM moves after folding.
17456
17457 PR rtl-optimization/70467
17458 * ipa-pure-const.c (check_call): Handle internal calls even in
17459 ipa mode like in local mode.
17460
17461 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17462
17463 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
17464
17465 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17466
17467 * match.pd (X u< X, X u> X): New transformations.
17468
17469 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17470
17471 * flag-types.h (enum warn_strict_overflow_code): Move ...
17472 * coretypes.h: ... here.
17473 * fold-const.h (fold_overflow_warning): Declare.
17474 * fold-const.c (fold_overflow_warning): Make non-static.
17475 (fold_comparison): Move the transformation of X +- C1 CMP C2
17476 into X CMP C2 -+ C1 ...
17477 * match.pd: ... here.
17478 * gimple-fold.c (fold_stmt_1): Protect with
17479 fold_defer_overflow_warnings.
17480
17481 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17482
17483 * omp-low.c (struct oacc_loop): Add 'inner' field.
17484 (new_oacc_loop_raw): Initialize it to zero.
17485 (oacc_loop_fixed_partitions): Initialize it.
17486 (oacc_loop_auto_partitions): Partition outermost loop to outermost
17487 available partitioning.
17488
17489 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17490
17491 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
17492 register_operand.
17493 (umulsidi3): Likewise.
17494 (indirect_jump): Fix jump instruction assembly patterns.
17495
17496 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
17497
17498 PR target/70860
17499 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
17500 (nvptx_function_value): Assert non-NULL cfun.
17501
17502 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
17503
17504 PR rtl-optimization/70886
17505 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
17506
17507 * cselib.h (rtx_equal_for_cselib_1): Declare.
17508 (rtx_equal_for_cselib_p: New inline function.
17509 * cselib.c (rtx_equal_for_cselib_p): Delete.
17510 (rtx_equal_for_cselib_1): Make public.
17511
17512 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17513
17514 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
17515 (register_mixssei387nonimm_operand): Remove predicate.
17516 * config/i386/i386.md (*fop_<mode>_comm): Merge from
17517 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
17518 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
17519 for TARGET_MIX_SSE_I387 alternatives.
17520 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
17521 Disable unsupported alternatives using "enabled" attribute. Use
17522 nonimm_ssenomem_operand as operand 1 predicate. Also check
17523 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
17524
17525 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17526
17527 * tree.c (cst_and_fits_in_hwi): Simplify.
17528
17529 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17530
17531 * tree.h (wi::to_wide): New function.
17532 * expr.c (expand_expr_real_1): Use wi::to_wide.
17533 * fold-const.c (int_const_binop_1): Likewise.
17534 (extract_muldiv_1): Likewise.
17535
17536 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17537
17538 * wide-int.h: Update offset_int and widest_int documentation.
17539 (WI_SIGNED_SHIFT_RESULT): New macro.
17540 (wi::binary_shift): Define signed_shift_result_type for
17541 shifts on offset_int- and widest_int-like types.
17542 (generic_wide_int): Support <<= and >>= if << and >> are supported.
17543 * tree.h (int_bit_position): Use shift operators instead of wi::
17544 shifts.
17545 * alias.c (adjust_offset_for_component_ref): Likewise.
17546 * expr.c (get_inner_reference): Likewise.
17547 * fold-const.c (fold_comparison): Likewise.
17548 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
17549 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
17550 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17551 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17552 (stmt_kills_ref_p): Likewise.
17553 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
17554 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
17555 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17556 (ao_ref_init_from_vn_reference): Likewise.
17557
17558 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17559
17560 * wide-int.h: Update offset_int and widest_int documentation.
17561 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
17562 (wi::binary_traits): Allow ordered comparisons between offset_int and
17563 offset_int, between widest_int and widest_int, and between either
17564 of these types and basic C types.
17565 (operator <, <=, >, >=): Define for the same combinations.
17566 * tree.h (tree_int_cst_lt): Use comparison operators instead
17567 of wi:: comparisons.
17568 (tree_int_cst_le): Likewise.
17569 * gimple-fold.c (fold_array_ctor_reference): Likewise.
17570 (fold_nonarray_ctor_reference): Likewise.
17571 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
17572 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
17573 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
17574 * tree-sra.c (completely_scalarize): Likewise.
17575 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
17576 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
17577 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
17578 (check_for_binary_op_overflow): Likewise.
17579 (search_for_addr_array): Likewise.
17580 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
17581
17582 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17583
17584 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
17585 (arc_save_restore): Likewise.
17586 (arc_dwarf_register_span): Likewise.
17587 (arc_output_pic_addr_const): Initialize suffix variable.
17588
17589 2016-05-02 Martin Liska <mliska@suse.cz>
17590
17591 * symbol-summary.h (function_summary::function_summary):
17592 Remove checking assert for all cgraph nodes.
17593 (function_summary::get): Check summary_uid.
17594 (symtab_insertion): Check summary_uid.
17595
17596 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17597
17598 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
17599 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
17600 bmaskn instruction.
17601 (arc_dwarf_register_span): Remove enum keyword.
17602 (compact_memory_operand_p): New function.
17603 * config/arc/arc.h (reg_class): Add code density register classes.
17604 (REG_CLASS_NAMES): Likewise.
17605 (REG_CLASS_CONTENTS): Likewise.
17606 * config/arc/arc.md (*movqi_insn): Add code density instructions.
17607 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
17608 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
17609 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
17610 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
17611 constraints.
17612 (h, Rcd, Rsd, Rzd): New register constraints.
17613 (T): Use compact_memory_operand_p function.
17614 * config/arc/predicates.md (compact_load_memory_operand): Remove.
17615
17616 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17617
17618 * config/sh/sh.md (*negnegt, *movtt): Remove.
17619
17620 2016-05-02 Marek Polacek <polacek@redhat.com>
17621 Tom de Vries <tom@codesourcery.com>
17622
17623 PR tree-optimization/70700
17624 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
17625 bigger than FIRST_REF_NODE.
17626
17627 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17628
17629 PR target/52898
17630 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
17631 TARGET_CMPEQDI_T.
17632 (prepare_cbranch_operands): Don't use scratch register. Assume that
17633 function is used when pseudos can be created.
17634 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
17635 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
17636 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
17637 define_expand. Allow it only when pseudos can be created.
17638 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
17639
17640 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
17641
17642 * config/i386/constraints.md (BC): Only allow -1 operands.
17643 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17644 Add "enabled" attribute. Update XI mode attribute calculation.
17645 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17646 (*movoi_internal_avx): Update XI mode attribute calculation.
17647 (*movti_internal): Ditto.
17648
17649 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17650
17651 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17652 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17653
17654 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
17655
17656 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17657 statement on instruction code. Remove trailing spaces.
17658 (altivec_expand_stv_builtin): Likewise.
17659
17660 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17661
17662 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17663 (TARGET_FPU_DOUBLE): Simplify.
17664 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17665 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17666 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17667 with 'TARGET_FPU_DOUBLE'.
17668 * config/sh/sh.md: Likewise.
17669
17670 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
17671
17672 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17673 SH_DIV_STR_FOR_SIZE): Remove.
17674 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17675 SH_DIV_STR_FOR_SIZE): Remove.
17676
17677 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17678
17679 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17680 logical_reg_operand): Delete.
17681 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17682 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17683 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17684 match_operand and match_test.
17685 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
17686 variables on their first use. Return bool values.
17687 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17688 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17689 arith_reg_operand for input operand. Remove empty constraints.
17690 (xorsi3): Delete.
17691 (*xorsi3_compact): Rename to xorsi3.
17692 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17693 (*zero_extend<mode>si2_disp_mem): Update comment.
17694 (mov_nop): Delete.
17695
17696 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17697
17698 * config/sh/t-sh: Remove SH5 support.
17699 * config.gcc: Likewise.
17700 * configure: Likewise.
17701
17702 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17703
17704 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17705
17706 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17707
17708 * config/sh/sh.c (register_sh_passes, sh_option_override,
17709 sh_print_operand, prepare_move_operands,
17710 sh_can_follow_jump): Remove TARGET_SH1 checks.
17711 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17712 PROMOTE_MODE): Likewise.
17713 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17714 movdi): Likewise.
17715
17716 2016-04-30 Alan Modra <amodra@gmail.com>
17717
17718 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17719 restoring when fixed_reg_p, but allow out-of-line or stmw save.
17720 Check for user regs later to avoid unnecessary looping over regs.
17721 Merge user reg check with non-saved reg check. Don't force
17722 inline VR restore when static chain used.
17723 (rs6000_frame_related): Omit eh_frame info for user regs when
17724 saving.
17725 (fixed_regs_p): Delete.
17726
17727 2016-04-30 Alan Modra <amodra@gmail.com>
17728
17729 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17730 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
17731 Update all uses.
17732
17733 2016-04-30 Alan Modra <amodra@gmail.com>
17734
17735 PR target/69645
17736 * config/rs6000/rs6000.c (fixed_reg_p): New function.
17737 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
17738 Update all uses.
17739
17740 2016-04-30 Alan Modra <amodra@gmail.com>
17741
17742 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17743 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
17744 flag_pic test for Darwin.
17745
17746 2016-04-30 Alan Modra <amodra@gmail.com>
17747
17748 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17749 throw_calls_crossed.
17750 (REG_FREQ_CALLS_CROSSED): Delete.
17751 (REG_N_THROWING_CALLS_CROSSED): Delete.
17752 * regstat.c (regstat_bb_compute_ri): Don't calculate
17753 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17754 (dump_reg_info): Don't print call cross frequency.
17755 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17756 and REG_N_THROWING_CALLS_CROSSED.
17757
17758 2016-04-30 Alan Modra <amodra@gmail.com>
17759
17760 * regs.h (struct reg_info_t): Delete live_length.
17761 (REG_LIVE_LENGTH): Delete macro.
17762 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17763 local_live, local_processed and local_live_last_luid params.
17764 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
17765 Formatting fixes.
17766 (regstat_compute_ri): Adjust for above. Don't set
17767 REG_LIVE_LENGTH.
17768 (dump_reg_info): Don't print live length.
17769 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17770 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
17771 Localize loop_depth var.
17772
17773 2016-04-30 Alan Modra <amodra@gmail.com>
17774
17775 * ira.c (enum valid_equiv): New.
17776 (validate_equiv_mem): Return enum.
17777 (update_equiv_mem): Create replacement in more cases.
17778 (add_store_equivs): Update validate_equiv_mem call.
17779
17780 2016-04-30 Alan Modra <amodra@gmail.com>
17781
17782 * ira.c (combine_and_move_insns): Rather than scanning insns,
17783 use DF infrastucture to find use and def insns.
17784
17785 2016-04-30 Alan Modra <amodra@gmail.com>
17786
17787 ira.c (combine_and_move_insns): Move invariant conditions..
17788 (ira.c): ..to here. Call combine_and_move_insns before
17789 add_store_equivs. Call grow_reg_equivs later. Allocate
17790 req_equiv later using max_reg_num() rather than global max_regno.
17791 (contains_replace_regs): Delete.
17792 (add_store_equivs): Remove contains_replace_regs test.
17793
17794 2016-04-30 Alan Modra <amodra@gmail.com>
17795
17796 * ira.c (struct equiv_mem_data): New.
17797 (equiv_mem, equiv_mem_modified): Delete static vars.
17798 (validate_equiv_mem_from_store): Use "data" param to communicate..
17799 (validate_equiv_mem): ..from here.
17800
17801 2016-04-30 Alan Modra <amodra@gmail.com>
17802
17803 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17804 split out from..
17805 (update_reg_equivs): ..here. Move allocation and freeing of
17806 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17807 end_alias_analysis to..
17808 (ira): ..here.
17809
17810 2016-04-30 Alan Modra <amodra@gmail.com>
17811
17812 * ira.c (pdx_subregs): Delete.
17813 (struct equivalence): Add pdx_subregs field.
17814 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17815 pdx_subregs access.
17816 (update_equiv_regs): Don't create or free pdx_subregs. Update
17817 pdx_subregs access.
17818
17819 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17820
17821 * config/rs6000/altivec.h: Change definitions of vec_xl and
17822 vec_xst.
17823 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17824 (LD_ELEMREV_V2DI): New.
17825 (LD_ELEMREV_V4SF): New.
17826 (LD_ELEMREV_V4SI): New.
17827 (LD_ELEMREV_V8HI): New.
17828 (LD_ELEMREV_V16QI): New.
17829 (ST_ELEMREV_V2DF): New.
17830 (ST_ELEMREV_V2DI): New.
17831 (ST_ELEMREV_V4SF): New.
17832 (ST_ELEMREV_V4SI): New.
17833 (ST_ELEMREV_V8HI): New.
17834 (ST_ELEMREV_V16QI): New.
17835 (XL): New.
17836 (XST): New.
17837 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17838 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17839 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17840 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17841 (altivec_expand_builtin): Add handling for
17842 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17843 (rs6000_invalid_builtin): Add error-checking for
17844 RS6000_BTM_P9_VECTOR.
17845 (altivec_init_builtins): Define builtins used to implement vec_xl
17846 and vec_xst.
17847 (rs6000_builtin_mask_names): Define power9-vector.
17848 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17849 (RS6000_BTM_P9_VECTOR): Define.
17850 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17851 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17852 (vsx_ld_elemrev_v2df): Likewise.
17853 (vsx_ld_elemrev_v4sf): Likewise.
17854 (vsx_ld_elemrev_v4si): Likewise.
17855 (vsx_ld_elemrev_v8hi): Likewise.
17856 (vsx_ld_elemrev_v16qi): Likewise.
17857 (vsx_st_elemrev_v2df): Likewise.
17858 (vsx_st_elemrev_v2di): Likewise.
17859 (vsx_st_elemrev_v4sf): Likewise.
17860 (vsx_st_elemrev_v4si): Likewise.
17861 (vsx_st_elemrev_v8hi): Likewise.
17862 (vsx_st_elemrev_v16qi): Likewise.
17863 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17864 grammar.
17865
17866 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17867
17868 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17869 out into ...
17870 (simplify_control_stmt_condition_1): ... here. Recurse into
17871 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17872
17873 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17874
17875 PR target/69810
17876 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17877 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17878 define_insn_and_split to define_insn.
17879 (zero_extendqi<mode>2_dot2): Same.
17880 (extendqi<mode>2_dot): Same.
17881 (extendqi<mode>2_dot2): Same.
17882
17883 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17884
17885 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17886 (probe_stack): New expander.
17887 (probe_stack_<mode>): New insn pattern.
17888
17889 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17890
17891 * config/i386/i386.md
17892 (operations with memory inputs setting flags peephole2):
17893 Remove uneeded REG_P checks. Cleanup pattern generation.
17894
17895 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17896
17897 * tree-vect-loop.c (vect_transform_loop): Fix
17898 nb_iterations_upper_bound computation for vectorized loop.
17899
17900 2016-04-29 Marek Polacek <polacek@redhat.com>
17901 Jakub Jelinek <jakub@redhat.com>
17902
17903 PR sanitizer/70342
17904 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17905 TARGET_EXPR_SLOT as a base.
17906
17907 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17908
17909 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17910 with 'rCm2' constraints to limit possible immediate size.
17911 (*load_zeroextendqisi_update): Likewise.
17912 (*load_signextendqisi_update): Likewise.
17913 (*loadhi_update): Likewise.
17914 (*load_zeroextendhisi_update): Likewise.
17915 (*load_signextendhisi_update): Likewise.
17916 (*loadsi_update): Likewise.
17917 (*loadsf_update): Likewise.
17918
17919 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17920
17921 * config/i386/predicates.md (constm1_operand): Fix comparison.
17922
17923 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17924
17925 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17926
17927 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17928
17929 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17930 remaining SH5 related settings.
17931 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17932 shmedia_prepare_call_address): Delete.
17933 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17934 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17935 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17936 UNSUPPORTED_SH2A): Remove m5 checks.
17937 (sh_divide_strategy_e): Remove SH5 division strategies.
17938 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17939 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17940
17941 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17942
17943 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17944
17945 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17946
17947 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17948 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17949 Change lder to ldr.
17950 * config/s390/vector.md ("mov<mode>"): Likewise.
17951
17952 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17953
17954 * config/s390/constraints.md ("U", "W"): Invoke
17955 s390_mem_constraint with "ZR" and "ZT".
17956 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17957 addresses when using LRA. Accept also short displacements for S
17958 and T constraints. Do not check for long displacement target for
17959 S and T constraints.
17960 (s390_mem_constraint): Remove handling of U and W constraints.
17961 * config/s390/s390.md (various patterns): Remove the short
17962 displacement constraints (Q and R) if a long displacement
17963 constraint is present. Add longdisp as required CPU capability.
17964 * config/s390/vector.md: Likewise.
17965 * config/s390/vx-builtins.md: Likewise.
17966
17967 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17968
17969 PR target/60040
17970 * reload1.c (reload): Call finish_spills before
17971 restarting reload loop. Skip select_reload_regs
17972 if update_eliminables_and_spill returns true.
17973
17974 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17975
17976 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17977 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17978 (umulhisi3_imm): Update predicates and constraint letters.
17979 (umulhisi3_reg): Declare instruction as commutative.
17980 * config/arc/constraints.md (J12, J16): New constraints.
17981 * config/arc/predicates.md (short_unsigned_const_operand): New
17982 predicate.
17983 (arc_short_operand): Likewise.
17984 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17985
17986 2016-04-29 Richard Biener <rguenther@suse.de>
17987
17988 PR tree-optimization/13962
17989 PR tree-optimization/65686
17990 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17991 * tree-ssa-alias.c (ptrs_compare_unequal): New function
17992 using PTA to compare pointers.
17993 * match.pd: Add pattern for pointer equality compare simplification
17994 using ptrs_compare_unequal.
17995
17996 2016-04-29 Richard Biener <rguenther@suse.de>
17997
17998 * stor-layout.c (layout_type): Do not build a pointer-to-element
17999 type for arrays.
18000
18001 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
18002
18003 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
18004 Use SWI mode iterator. Use general_reg_operand predicate.
18005 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
18006 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
18007 predicates.
18008
18009 2016-04-29 Jakub Jelinek <jakub@redhat.com>
18010
18011 PR middle-end/70843
18012 * fold-const.c (operand_equal_p): Don't verify hash value equality
18013 if arg0 == arg1.
18014 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
18015 and OMP_CLAUSE.
18016
18017 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18018
18019 PR target/70858
18020 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
18021 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
18022 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
18023 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
18024 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
18025
18026 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18027
18028 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
18029 to info. Don't initialize separate fields to 0. Clean up
18030 formatting a bit.
18031
18032 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18033
18034 * config/i386/i386.md (peephole2s for operations with memory inputs):
18035 Use SWI mode iterator.
18036 (peephole2s for operations with memory outputs): Ditto.
18037 Do not check for stack checking probe.
18038
18039 (probe_stack): Remove expander.
18040
18041 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18042 Andrew Burgess <andrew.burgess@embecosm.com>
18043
18044 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
18045 operands as 32-bits.
18046
18047 2016-04-28 Jason Merrill <jason@redhat.com>
18048
18049 * gdbinit.in: Skip line-map.h.
18050
18051 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18052 Andrew Burgess <andrew.burgess@embecosm.com>
18053
18054 * config/arc/arc.c (arc_conditional_register_usage): Take
18055 TARGET_RRQ_CLASS into account.
18056 (arc_print_operand): Support printing 'p' and 's' operands.
18057 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
18058 as 0.
18059 (TARGET_RRQ_CLASS): Define.
18060 (IS_POWEROF2_OR_0_P): Define.
18061 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
18062 alternatives.
18063 (*tst_movb): New define_insn.
18064 (*tst): Avoid recognition if it could prevent '*tst_movb'
18065 combination; replace c/CnL with c/Chs alternative.
18066 (*tst_bitfield_tst): New define_insn.
18067 (*tst_bitfield_asr): New define_insn.
18068 (*tst_bitfield): New define_insn.
18069 (andsi3_i): Add Rrq variant.
18070 (extzv): New define_expand.
18071 (insv): New define_expand.
18072 (*insv_i): New define_insn.
18073 (*movb): New define_insn.
18074 (*movb_signed): New define_insn.
18075 (*movb_high): New define_insn.
18076 (*movb_high_signed): New define_insn.
18077 (*movb_high_signed + 1): New define_split pattern.
18078 (*mrgb): New define_insn.
18079 (*mrgb + 1): New define_peephole2 pattern.
18080 (*mrgb + 2): New define_peephole2 pattern.
18081 * config/arc/arc.opt (mbitops): New option for nps400, uses
18082 TARGET_NPS_BITOPS_DEFAULT.
18083 * config/arc/constraints.md (q): Make register class conditional.
18084 (Rrq): New register constraint.
18085 (Chs): New constraint.
18086 (Clo): New constraint.
18087 (Chi): New constraint.
18088 (Cbf): New constraint.
18089 (Cbn): New constraint.
18090 (C18): New constraint.
18091 (Cbi): New constraint.
18092
18093 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18094
18095 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
18096 dst->popcount.
18097 (bitmap_intersection_of_preds): Ditto.
18098 (bitmap_union_of_succs): Ditto.
18099 (bitmap_union_of_preds): Ditto.
18100 * sbitmap.c (do_popcount): Delete.
18101 (BITMAP_DEBUGGING): Delete.
18102 (sbitmap_verify_popcount): Delete.
18103 (sbitmap_alloc): Don't initialize the popcount field.
18104 (sbitmap_alloc_with_popcount): Delete.
18105 (sbitmap_resize): Don't resize the popcount array.
18106 (sbitmap_vector_alloc): Don't initialize the popcount field.
18107 (bitmap_copy): Don't copy the popcount array.
18108 (bitmap_clear): Don't clear the popcount array.
18109 (bitmap_clear): Delete the popcount array handling.
18110 (bitmap_ior_and_compl): Delete the popcount assert.
18111 (bitmap_not): Ditto.
18112 (bitmap_and_compl): Ditto.
18113 (bitmap_and): Delete the popcount array handling.
18114 (bitmap_xor): Ditto.
18115 (bitmap_ior): Ditto.
18116 (bitmap_or_and): Delete the popcount assert.
18117 (bitmap_and_or): Ditto.
18118 (popcount_table): Delete.
18119 (sbitmap_elt_popcount): Delete.
18120 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
18121 (bitmap_set_bit): Delete the popcount assert.
18122 (bitmap_clear_bit): Ditto.
18123 (sbitmap_free): Don't free the popcount array.
18124 (sbitmap_alloc_with_popcount): Delete declaration.
18125 (sbitmap_popcount): Ditto.
18126
18127 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18128 Andrew Burgess <andrew.burgess@embecosm.com>
18129
18130 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
18131 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
18132 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
18133 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
18134 * config/arc/arc.opt (mcmem): New option.
18135 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
18136 supply length for r/m alternative.
18137 (*extendqisi2_ac): Likewise.
18138 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
18139 r/Uex alternative.
18140 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
18141 (movhi_insn): Likewise.
18142 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
18143 (*zero_extendqihi2_i): Add r/Ucm alternative.
18144 (*zero_extendqisi2_ac): Likewise.
18145 (*zero_extendhisi2_i): Likewise.
18146 * config/arc/constraints.md (Uex): New memory constraint.
18147 (Ucm): New define_constraint.
18148 * config/arc/predicates.md (long_immediate_loadstore_operand):
18149 Return 0 for MEM with cmem_address address.
18150 (cmem_address_0): New predicates.
18151 (cmem_address_1): Likewise.
18152 (cmem_address_2): Likewise.
18153 (cmem_address): Likewise.
18154
18155 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18156
18157 * config/rs6000/rs6000.c (machine_function): Rename
18158 insn_chain_scanned_p to spe_insn_chain_scanned_p.
18159 (rs6000_stack_info): Adjust.
18160
18161 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18162 Andrew Burgess <andrew.burgess@embecosm.com>
18163
18164 * config/arc/constraints.md (Usd): Convert to define_constraint.
18165 (Us<): Likewise.
18166 (Us>): Likewise.
18167
18168 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18169
18170 PR target/70821
18171 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
18172 Add new peephole2 where the first insn is *mov<mode>_or instead of
18173 *mov<mode>_internal.
18174
18175 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
18176
18177 * tracer.c (bb_seen): Make static.
18178
18179 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
18180
18181 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
18182 support, setup defaults.
18183 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
18184 * config/arc/arc.c (arc_init): Add NPS400 support.
18185 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
18186 (TARGET_ARC700): NPS400 is also an ARC700.
18187 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
18188
18189 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18190
18191 PR target/70668
18192 * config/nds32/nds32.md (casesi): Don't access the operands array
18193 out of bounds.
18194
18195 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18196
18197 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
18198 (or $-1,reg peephole2): Ditto.
18199 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
18200
18201 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18202
18203 * doc/extend.texi (Common Function Attributes) [optimize]:
18204 Discourage use of the optimize attribute.
18205
18206 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
18207
18208 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
18209 special case builtin.
18210 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18211 ALTIVEC_BUILTIN_VEC_ADDE.
18212 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18213 support for ALTIVEC_BUILTIN_VEC_ADDE.
18214 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18215 for __builtin_vec_adde.
18216
18217 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18218
18219 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
18220 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
18221
18222 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18223
18224 PR testsuite/70595
18225 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18226 attributes): Document cilkplus_runtime.
18227
18228 2016-04-28 Martin Jambor <mjambor@suse.cz>
18229
18230 * tree-cfg.c (verify_expr): Verify that local declarations belong to
18231 this function. Call verify_expr on MEM_REFs and bases of other
18232 handled_components.
18233
18234 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18235
18236 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
18237 for WORD_REGISTER_OPERATIONS to runtime check.
18238
18239 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18240
18241 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
18242
18243 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18244
18245 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
18246 big-endian compilation.
18247 * config/arc/arc.md (addf3): Likewise.
18248 (subdf3): Likewise.
18249 (muldf3): Likewise.
18250
18251 2016-04-28 Richard Biener <rguenther@suse.de>
18252
18253 PR tree-optimization/70840
18254 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
18255 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
18256 Mark x * pow(x,c) -> pow(x,c+1) commutative.
18257 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
18258
18259 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18260
18261 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
18262 and explain why in a comment.
18263
18264 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18265
18266 * config/arc/arc.md (cpu_facility): Add fpx variant.
18267 (subdf3): Prohibit use reverse sub when assist operations option
18268 is enabled.
18269 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
18270 instructions only when FPX is enabled.
18271 * testsuite/gcc.target/arc/trsub.c: New test.
18272
18273 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18274
18275 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18276 mult_operator when calculating "type" attribute.
18277 (*fop_<mode>_1_i387): Ditto.
18278 (*fop_xf_1_i387): Ditto.
18279 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
18280 Use std::swap to swap operands. Use RTL expressions to generate
18281 converted pattern.
18282
18283 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18284 Joern Rennecke <joern.rennecke@embecosm.com>
18285
18286 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
18287 declaration.
18288 (emit_pic_move): Remove.
18289 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
18290 * config/arc/arc.c (emit_pic_move): Removed.
18291 (TARGET_HAVE_TLS): Define.
18292 (arc_conditional_register_usage): Test for arc_tp_regno.
18293 (arc_print_operand, arc_print_operand_address): Handle TLS
18294 unspecs.
18295 (arc_needs_pcl_p): New function.
18296 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
18297 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
18298 (arc_raw_symbolic_reference_mentioned_p): Likewise.
18299 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
18300 (arc_legitimize_tls_address): Likewise.
18301 (DTPOFF_ZERO_SYM): Define.
18302 (arc_legitimize_pic_address): Make it static, handle TLS cases.
18303 (arc_output_pic_addr_const): Print TLS unspecs.
18304 (prepare_pic_move): New function, replaces emit_pic_move.
18305 (arc_legitimate_constant_p): Handle TLS unspecs.
18306 (arc_legitimate_address_p): Likewise.
18307 (arc_rewrite_small_data_p): Use assert for TLS constants.
18308 (prepare_move_operands): Use prepare_pic_move.
18309 (arc_legitimize_address): Legitimize tls addresses.
18310 (arc_epilogue_uses): Check for arc_tp_regno.
18311 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
18312 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
18313 Define.
18314 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
18315 Likewise.
18316 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
18317 %(arc_tls_extra_start_spec).
18318 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
18319 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
18320 (EH_USES): Define.
18321 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
18322 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
18323 (UNSPEC_TLS_OFF): Add.
18324 (R10_REG): Define.
18325 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
18326 (get_thread_pointersi): New patterns.
18327 * config/arc/arc.opt (mtp-regno): New option.
18328 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
18329 (move_dest_operand): Likewise.
18330 * configure: Regenerate.
18331 * configure.ac: Add arc*-*-* case to test for tls.
18332 * doc/invoke.texi (ARC options): Document mtp-regno.
18333
18334 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18335
18336 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
18337 the new ARC HS SIMD instructions.
18338 (arc_preferred_simd_mode): New function.
18339 (arc_autovectorize_vector_sizes): Likewise.
18340 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
18341 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18342 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
18343 (arc_init_builtins): Add new SIMD builtin types.
18344 (arc_split_move): Handle 64 bit vector moves.
18345 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
18346 (TARGET_PLUS_QMACW): Define.
18347 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
18348 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
18349 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
18350 (VSUBADD4H): New builtins.
18351 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
18352 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
18353
18354 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
18355 Matthias Klose <doko@debian.org>
18356
18357 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
18358
18359 2016-04-28 Richard Biener <rguenther@suse.de>
18360
18361 PR middle-end/70777
18362 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
18363 canonicalization.
18364
18365 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
18366
18367 * common/config/sh/sh-common.c: Remove SH5 support.
18368 * config/sh/constraints.md: Likewise.
18369 * config/sh/config/sh/elf.h: Likewise.
18370 * config/sh/linux.h: Likewise.
18371 * config/sh/netbsd-elf.h: Likewise.
18372 * config/sh/predicates.md: Likewise.
18373 * config/sh/sh-c.c: Likewise.
18374 * config/sh/sh-protos.h: Likewise.
18375 * config/sh/sh.c: Likewise.
18376 * config/sh/sh.h: Likewise.
18377 * config/sh/sh.md: Likewise.
18378 * config/sh/sh.opt: Likewise.
18379 * config/sh/sync.md: Likewise.
18380 * config/sh/sh64.h: Delete.
18381 * config/sh/shmedia.h: Likewise.
18382 * config/sh/shmedia.md: Likewise.
18383 * config/sh/sshmedia.h: Likewise.
18384 * config/sh/t-netbsd-sh5-64: Likewise.
18385 * config/sh/t-sh64: Likewise.
18386 * config/sh/ushmedia.h: Likewise.
18387
18388 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18389
18390 * config/i386/i386.md (sign_extend to memory peephole2s): Use
18391 general_reg_operand instead of register_operand predicate.
18392
18393 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18394
18395 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
18396
18397 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
18398
18399 * match.pd (A - B > A, A + B < A): New transformations.
18400
18401 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
18402
18403 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
18404 which defaults to true. Emit an outer pair of parentheses only if
18405 EMIT_PARENS. When continuing a chain of && or || (or & or |),
18406 don't emit parentheses for the right-hand operand.
18407
18408 2016-04-27 Jeff Law <law@redhat.com>
18409
18410 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
18411
18412 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18413
18414 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
18415 (altivec_lvx_<mode>_internal): Document.
18416 (altivec_lvx_<mode>_2op): New define_insn.
18417 (altivec_lvx_<mode>_1op): Likewise.
18418 (altivec_lvx_<mode>_2op_si): Likewise.
18419 (altivec_lvx_<mode>_1op_si): Likewise.
18420 (altivec_stvx_<mode>): Remove.
18421 (altivec_stvx_<mode>_internal): Document.
18422 (altivec_stvx_<mode>_2op): New define_insn.
18423 (altivec_stvx_<mode>_1op): Likewise.
18424 (altivec_stvx_<mode>_2op_si): Likewise.
18425 (altivec_stvx_<mode>_1op_si): Likewise.
18426 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18427 Expand vec_ld and vec_st during parsing.
18428 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
18429 changes.
18430 (altivec_expand_stvx_be): Likewise.
18431 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
18432 address-masking behavior in RTL.
18433 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
18434 address-masking behavior in RTL.
18435 (altivec_expand_builtin): Change builtin code arguments for calls
18436 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
18437 (insn_is_swappable_p): Avoid incorrect swap optimization in the
18438 presence of lvx/stvx patterns.
18439 (alignment_with_canonical_addr): New function.
18440 (alignment_mask): Likewise.
18441 (find_alignment_op): Likewise.
18442 (recombine_lvx_pattern): Likewise.
18443 (recombine_stvx_pattern): Likewise.
18444 (recombine_lvx_stvx_patterns): Likewise.
18445 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
18446 stvx patterns from expand.
18447 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
18448 expansions.
18449 (vector_altivec_store_<mode>): Likewise.
18450
18451 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
18452
18453 * config/aarch64/aarch64.md
18454 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
18455 remove the "fp" attributes.
18456 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
18457 add the "simd" attributes.
18458 (*movdf_aarch64): Likewise.
18459 (*movtf_aarch64): Remove the "fp" attributes.
18460 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
18461 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
18462
18463 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18464
18465 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
18466 rtx to rtx_code_label *.
18467 * rtl.h (maybe_set_first_label_num): Likewise.
18468
18469 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18470
18471 * df-core.c (df_add_problem): Make the problem param be const.
18472 (df_remove_problem): Make local "problem" be const.
18473 * df-problems.c (problem_RD): Make const.
18474 (problem_LR): Likewise.
18475 (problem_LIVE): Likewise.
18476 (problem_MIR): Likewise.
18477 (problem_CHAIN): Likewise.
18478 (problem_WORD_LR): Likewise.
18479 (problem_NOTE): Likewise.
18480 (problem_MD): Likewise.
18481 * df-scan.c (problem_SCAN): Likewise.
18482 * df.h (struct df_problem): Make field "dependent_problem" be
18483 const.
18484 (struct dataflow): Likewise for field "problem".
18485 (df_add_problem): Make param const.
18486
18487 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18488
18489 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
18490 inter-unit moves to/from vector registers are enabled. Do not disable
18491 for TARGET_MMX.
18492
18493 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18494
18495 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
18496 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
18497 #define to...
18498 (enum df_problem_id): ...this new enum.
18499 (struct df_problem): Convert field "id" from "int" to
18500 enum df_problem_id.
18501
18502 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18503
18504 * rtl.def: Update comment for "things in the instruction chain" to
18505 reflect the removal of the leading "i" field for INSN_UID in
18506 r210360. Fix bogus apostrophe.
18507
18508 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18509
18510 * config/i386/i386.md
18511 (lea arith with mem operand + setcc peephole2): Set operator mode.
18512
18513 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
18514
18515 PR target/70155
18516 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
18517 (dimode_scalar_to_vector_candidate_p): This.
18518 (timode_scalar_to_vector_candidate_p): New function.
18519 (scalar_to_vector_candidate_p): Likewise.
18520 (timode_check_non_convertible_regs): Likewise.
18521 (timode_remove_non_convertible_regs): Likewise.
18522 (remove_non_convertible_regs): Likewise.
18523 (remove_non_convertible_regs): Renamed to ...
18524 (dimode_remove_non_convertible_regs): This.
18525 (scalar_chain::~scalar_chain): Make it virtual.
18526 (scalar_chain::compute_convert_gain): Make it pure virtual.
18527 (scalar_chain::mark_dual_mode_def): Likewise.
18528 (scalar_chain::convert_insn): Likewise.
18529 (scalar_chain::convert_registers): Likewise.
18530 (scalar_chain::add_to_queue): Make it protected.
18531 (scalar_chain::emit_conversion_insns): Likewise.
18532 (scalar_chain::replace_with_subreg): Likewise.
18533 (scalar_chain::replace_with_subreg_in_insn): Likewise.
18534 (scalar_chain::convert_op): Likewise.
18535 (scalar_chain::convert_reg): Likewise.
18536 (scalar_chain::make_vector_copies): Likewise.
18537 (scalar_chain::convert_registers): New pure virtual function.
18538 (class dimode_scalar_chain): New class.
18539 (class timode_scalar_chain): Likewise.
18540 (scalar_chain::mark_dual_mode_def): Renamed to ...
18541 (dimode_scalar_chain::mark_dual_mode_def): This.
18542 (timode_scalar_chain::mark_dual_mode_def): New function.
18543 (timode_scalar_chain::convert_insn): Likewise.
18544 (dimode_scalar_chain::convert_registers): Likewise.
18545 (scalar_chain::compute_convert_gain): Renamed to ...
18546 (dimode_scalar_chain::compute_convert_gain): This.
18547 (scalar_chain::replace_with_subreg): Renamed to ...
18548 (dimode_scalar_chain::replace_with_subreg): This.
18549 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
18550 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
18551 (scalar_chain::make_vector_copies): Renamed to ...
18552 (dimode_scalar_chain::make_vector_copies): This.
18553 (scalar_chain::convert_reg): Renamed to ...
18554 (dimode_scalar_chain::convert_reg ): This.
18555 (scalar_chain::convert_op): Renamed to ...
18556 (dimode_scalar_chain::convert_op): This.
18557 (scalar_chain::convert_insn): Renamed to ...
18558 (dimode_scalar_chain::convert_insn): This.
18559 (scalar_chain::convert): Call convert_registers.
18560 (convert_scalars_to_vector): Change to scalar_chain pointer to
18561 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
18562 in 32-bit mode. Delete scalar_chain pointer. Call
18563 free_dominance_info in 64-bit mode.
18564 (pass_stv::gate): Remove TARGET_64BIT check.
18565 (ix86_option_override): Put the 64-bit STV pass before the CSE
18566 pass.
18567
18568 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
18569
18570 * dwarf2out.h (struct dw_loc_descr_node): Remove the
18571 dw_loc_frame_offset field.
18572 * dwarf2out.c (new_loc_descr): Likewise.
18573 (resolve_args_picking_1): Turn the VISITED hash set into a
18574 FRAME_OFFSET hash map. Use it to associate a frame offset to
18575 visited nodes. Remove uses of the CHECKING_P macro.
18576 (resolve_args_picking): Update call to resolve_args_picking_1.
18577
18578 2016-04-27 Martin Liska <mliska@suse.cz>
18579
18580 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
18581 (free_loop_data): Release vuses of groups.
18582
18583 2016-04-27 Bin Cheng <bin.cheng@arm.com>
18584
18585 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
18586 instead of redundant use_id and boolean have_use_for.
18587 (struct iv_use): Change sub_id into group_id. Remove field next.
18588 Move fields: related_cands, n_map_members, cost_map and selected
18589 to ...
18590 (struct iv_group): ... here. New structure.
18591 (struct iv_common_cand): Use structure declaration directly.
18592 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
18593 (MAX_CONSIDERED_USES): Rename macro to ...
18594 (MAX_CONSIDERED_GROUPS): ... here.
18595 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
18596 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
18597 (dump_uses): Rename to ...
18598 (dump_groups): ... here. Update all uses.
18599 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
18600 (find_induction_variables): Refactor format of dump information.
18601 (record_sub_use): Delete.
18602 (record_use): Update all uses.
18603 (record_group): New function.
18604 (record_group_use, find_interesting_uses_op): Call above functions.
18605 Update all uses.
18606 (find_interesting_uses_cond): Ditto.
18607 (group_compare_offset): New function.
18608 (split_all_small_groups): Rename to ...
18609 (split_small_address_groups_p): ... here. Update all uses.
18610 (split_address_groups): Update all uses.
18611 (find_interesting_uses): Refactor format of dump information.
18612 (add_candidate_1): Update all uses. Remove redundant check on iv,
18613 base and step.
18614 (add_candidate, record_common_cand): Remove redundant assert.
18615 (add_iv_candidate_for_biv): Update use.
18616 (add_iv_candidate_derived_from_uses): Update all uses.
18617 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
18618 (alloc_use_cost_map): Ditto.
18619 (set_use_iv_cost, get_use_iv_cost): Rename to ...
18620 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
18621 (determine_use_iv_cost_generic): Ditto.
18622 (determine_group_iv_cost_generic): Ditto.
18623 (determine_use_iv_cost_address): Ditto.
18624 (determine_group_iv_cost_address): Ditto.
18625 (determine_use_iv_cost_condition): Ditto.
18626 (determine_group_iv_cost_cond): Ditto.
18627 (determine_use_iv_cost): Ditto.
18628 (determine_group_iv_cost): Ditto.
18629 (set_autoinc_for_original_candidates): Update all uses.
18630 (find_iv_candidates): Update all uses. Refactor dump information.
18631 (determine_use_iv_costs): Ditto.
18632 (determine_iv_costs): Ditto.
18633 (iv_ca_cand_for_use): Rename to ...
18634 (iv_ca_cand_for_group): ... here. Update all uses.
18635 (iv_ca_add_use, iv_ca_add_group): Ditto.
18636 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
18637 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
18638 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
18639 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18640 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18641 (create_new_iv, adjust_iv_update_pos): Ditto.
18642 (rewrite_use_address): Delete.
18643 (rewrite_use_address_1): Rename to ...
18644 (rewrite_use_address): ... here.
18645 (rewrite_use_compare): Update all uses.
18646 (rewrite_use): Delete.
18647 (rewrite_uses): Rename to ...
18648 (rewrite_groups): ... here. Update all uses.
18649 (remove_unused_ivs, free_loop_data): Update all uses.
18650 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18651
18652 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18653
18654 * rtlanal.c (nonzero_bits1): Convert preprocessor check
18655 for WORD_REGISTER_OPERATIONS to runtime check.
18656
18657 2016-04-27 Richard Biener <rguenther@suse.de>
18658
18659 PR ipa/70760
18660 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18661 aggregate_value_p to determine if a function result is
18662 returned by reference.
18663 (ipa_pta_execute): Functions having their address taken are
18664 not automatically nonlocal.
18665
18666 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18667
18668 PR sanitizer/70683
18669 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18670 * fold-const.c (operand_equal_p): If flag_checking and
18671 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18672 and if it returns non-zero, assert iterative_hash_expr on both
18673 args is the same.
18674
18675 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18676
18677 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18678
18679 2016-04-27 Nick Clifton <nickc@redhat.com>
18680
18681 PR middle-end/49889
18682 * varasm.c (merge_weak): Generate an error if an attempt is made
18683 to convert a non-weak static function into a weak, public function.
18684
18685 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18686
18687 * params.def (MAX_PARTITION_SIZE): New param.
18688 * doc/invoke.texi: Document lto-max-partition.
18689
18690 2016-04-27 Richard Biener <rguenther@suse.de>
18691
18692 PR ipa/70785
18693 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18694 function cummulating used_from_other_partition, externally_visible
18695 and force_output from aliases.
18696 (refered_from_nonlocal_var): Likewise.
18697 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18698 node flags properly.
18699
18700 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18701
18702 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18703 (-Wmemset-elt-size): New item.
18704
18705 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
18706
18707 PR ada/70759
18708 * stor-layout.h (internal_reference_types): Delete.
18709 * stor-layout.c (reference_types_internal): Likewise.
18710 (internal_reference_types): Likewise.
18711 (layout_type) <REFERENCE_TYPE>: Adjust.
18712
18713 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18714
18715 PR sanitizer/70683
18716 * tree.h (inchash::add_expr): Add FLAGS argument.
18717 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
18718 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
18719 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18720 Formatting fix. Adjust recursive calls. For tcc_comparison,
18721 if swap_tree_comparison (code) is smaller than code, hash that
18722 and arguments in the other order. Hash CONVERT_EXPR the same
18723 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18724 of ADDR_EXPR of decl as the decl itself. Add or remove
18725 OEP_ADDRESS_OF from recursive flags as needed. For
18726 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18727 operands commutatively and only the third one normally.
18728 For internal CALL_EXPR hash in CALL_EXPR_IFN.
18729
18730 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
18731
18732 * config/rtems.h (LIB_SPEC): Add -latomic.
18733
18734 2016-04-27 Joel Sherrill <joel@rtems.org>
18735
18736 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18737 xilink.ld and flags not relevant to RTEMS.
18738
18739 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18740
18741 * toplev.c (backend_init_target): Avoid calling init_reload when using
18742 LRA.
18743
18744 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18745
18746 * reorg.c (try_merge_delay_insns): Declare i and j inside the
18747 for loops rather than one for the whole function.
18748
18749 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18750
18751 * match.pd (X + CST CMP X): New transformation.
18752
18753 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18754
18755 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18756 * fold-const.c (fold_binary_loc): Remove 2 transformations
18757 superseded by match.pd.
18758 * match.pd (x+x -> x*2): Generalize to integers.
18759
18760 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
18761
18762 * config/i386/i386.md (operation on memory peephole): Duplicate an
18763 existing peephole and adapt it to match lea rather than an operation
18764 that clobbers CC.
18765
18766 PR rtl-optimization/57193
18767 * opts.c (default_options_table): Add OPT_frename_registers at -O2
18768 and above.
18769 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18770
18771 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18772
18773 * tree-if-conv.c (any_pred_load_store): New static variable.
18774 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18775 any_pred_load_store instead of and_mask_load_store.
18776 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18777 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18778 (combine_blocks, tree_if_conversion): Ditto.
18779
18780 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18781
18782 PR tree-optimization/70771
18783 PR tree-optimization/70775
18784 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18785 virtual PHI nodes. Delete parameter.
18786 (if_convertible_loop_p_1): Delete argument to above function.
18787 (predicate_all_scalar_phis): Delete code handling single-argument
18788 PHIs.
18789 (tree_if_conversion): Mark and update virtual SSA.
18790
18791 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18792
18793 PR target/61821
18794 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18795 (x86_elf_aligned_common): Rename to ...
18796 (x86_elf_aligned_decl_common): ... this.
18797 Add decl arg. Switch to .lbss for largecomm object. Use
18798 LARGECOMM_SECTION_ASM_OP.
18799 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18800 renaming.
18801 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18802 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18803 Pass new decl arg.
18804 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18805 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18806
18807 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18808
18809 PR target/59407
18810 * config/i386/i386.c (SECTION_LARGE): Define.
18811 (x86_64_elf_select_section): Set it for large data/bss sections.
18812 Only clear SECTION_WRITE for .lrodata.
18813 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18814 data/bss sections.
18815 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18816 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18817 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18818 SECTION_MACH_DEP.
18819 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18820 * doc/tm.texi: Regenerate.
18821
18822 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18823
18824 PR bootstrap/70704
18825 * configure.ac (--enable-checking): Document extra flag, for
18826 non-release builds default to --enable-checking=yes,extra.
18827 If misc checking and extra checking, define CHECKING_P to 2 instead
18828 of 1.
18829 * common.opt (fchecking=): Add.
18830 * doc/invoke.texi (-fchecking=): Document.
18831 * doc/install.texi: Document --enable-checking changes.
18832 * configure: Regenerated.
18833 * config.in: Regenerated.
18834
18835 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18836
18837 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18838 attribute instead of which_alternative.
18839 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18840 Use EXT_REX_SSE_REG_P where appropriate.
18841
18842 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18843
18844 * config/i386/predicates.md (const0_operand): Do not match
18845 const_wide_int code.
18846 (const1_operand): Ditto.
18847
18848 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18849
18850 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18851 for SSE constm1 operands and TARGET_AVX512VL.
18852 (*movti_internal): Ditto.
18853 (*mov<mode>_or): Use constm1_operand predicate.
18854 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18855 for SSE vector_all_ones operands and TARGET_AVX512VL.
18856 * config/i386/predicates.md (constm1_operand): New predicate.
18857 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18858 emission of constant -1 load.
18859
18860 2016-04-25 Jason Merrill <jason@redhat.com>
18861
18862 * gdbinit.in: Skip is-a.h.
18863
18864 * attribs.c (register_scoped_attributes): Fix logic.
18865 * attribs.h: Declare register_scoped_attributes.
18866
18867 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18868
18869 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18870 stxvd2x and stxvw4x built-in functions.
18871
18872 2016-04-25 DJ Delorie <dj@redhat.com>
18873
18874 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18875 (ashrhi3): Likewise.
18876 (lshrhi3): Likewise.
18877
18878 2016-04-25 Richard Biener <rguenther@suse.de>
18879
18880 PR tree-optimization/70780
18881 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18882 wasn't visited yet.
18883 (compute_antic): Mark blocks with abnormal preds as visited as
18884 they have a final empty antic-in solution already.
18885
18886 2016-04-25 Michael Collison <michael.collison@linaro.org>
18887
18888 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18889
18890 2016-04-25 Michael Collison <michael.collison@linaro.org>
18891
18892 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18893 mode is VQI to improve mixed mode vectorization.
18894 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18895 define_insn to match low half of signed vaddw.
18896 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18897 define_insn to match high half of signed vaddw.
18898 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18899 define_insn to match low half of unsigned vaddw.
18900 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18901 define_insn to match high half of unsigned vaddw.
18902 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18903 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18904 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18905 for new function.
18906 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18907 * config/arm/predicates.md (vect_par_constant_high): Support
18908 big endian and simplify by calling
18909 arm_simd_check_vect_par_cnst_half
18910 (vect_par_constant_low): Likewise.
18911
18912 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18913
18914 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18915 predicate for operand 2.
18916
18917 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18918 H.J. Lu <hongjiu.lu@intel.com>
18919
18920 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18921 machine_mode argument.
18922 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18923 constm1_rtx operands. For VOIDmode constants, get mode from
18924 pred_mode. Check mode size if the mode is supported by ABI.
18925 (standard_sse_constant_opcode): Do not use standard_constant_p.
18926 Strictly check ABI support for all-ones operands.
18927 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18928 immediates. Update calls to standard_sse_constant_p.
18929 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18930 (ix86_rtx_costs): Ditto.
18931 * config/i386/i386.md (*movxi_internal_avx512f): Use
18932 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18933 Use (v,BC) alternative instead of (v,C). Use register_operand
18934 checks instead of MEM_P.
18935 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18936 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18937 isa attribute. Use register_operand checks instead of MEM_P.
18938 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18939 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18940 alternative and corresponding sse2 isa attribute.
18941 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18942 to standard_sse_constant_p.
18943 (FP constant splitters): Ditto.
18944 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18945 (C): Ditto.
18946 * config/i386/predicates.md (constm1_operand): Remove.
18947 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18948 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18949 vector_all_ones_operand instead of constm1_operand.
18950
18951 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18952
18953 * print-rtl.c (print_rtx_insn_vec): New function.
18954 * print-rtl.h: New prototype.
18955 * store-motion.c (struct st_expr): Make avail_stores a vector.
18956 (st_expr_entry): Adjust.
18957 (free_st_expr_entry): Likewise.
18958 (print_store_motion_mems): Likewise.
18959 (find_moveable_store): Likewise.
18960 (compute_store_table): Likewise.
18961 (delete_store): Likewise.
18962 (build_store_vectors): Likewise.
18963
18964 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18965
18966 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18967
18968 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18969
18970 * vec.h (vec_safe_contains): New function.
18971 (vec::contains): Likewise.
18972 (vec::begin): Likewise.
18973 (vec::end): Likewise.
18974
18975 2016-04-23 Jakub Jelinek <jakub@redhat.com>
18976
18977 PR sanitizer/70712
18978 * cfgexpand.c (expand_stack_vars): Fix typo.
18979
18980 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18981
18982 * system.h (list, map, set, vector): Include conditionally.
18983 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18984 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18985 * ipa-icf.c (INCLUDE_LIST): Define.
18986 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18987 * config/sh/sh.c (INCLUDE_VECTOR): Define.
18988 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18989 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18990 * cp/logic.cc (INCLUDE_LIST): Define.
18991 * fortran/trans-common.c (INCLUDE_MAP): Define.
18992
18993 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18994
18995 * auto-profile.c: Remove <string.h> include.
18996 * ipa-icf-gimple.c: Remove <list> include.
18997 * diagnostic.c: Remove <new> include.
18998 * genmatch.c: Likewise.
18999 * pretty-print.c: Likewise.
19000 * toplev.c: Likewise
19001 * c/c-objc-common.c: Likewise.
19002 * cp/error.c: Likewise.
19003 * fortran/error.c: Likewise.
19004
19005 2016-04-22 Richard Biener <rguenther@suse.de>
19006
19007 * lto-streamer-in.c (input_ssa_names): Do not allocate
19008 GIMPLE_NOP for all SSA names.
19009 * lto-streamer-out.c (output_ssa_names): Do not output
19010 SSA names that should have been released.
19011
19012 2016-04-22 Richard Biener <rguenther@suse.de>
19013
19014 PR tree-optimization/70740
19015 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
19016 VDEF.
19017
19018 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
19019
19020 PR target/70750
19021 * config/i386/predicates.md (call_insn_operand): Replace
19022 sibcall_memory_operand with memory_operand.
19023
19024 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
19025
19026 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
19027 has_single_use() tests.
19028 (register_edge_assert_for_1): Likewise.
19029 (find_assert_locations_1): Check the liveness bitmap instead of
19030 checking has_single_use().
19031
19032 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
19033
19034 PR target/70728
19035 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
19036 Extract AVX-512BW constraint from AVX.
19037
19038 2016-04-21 Richard Biener <rguenther@suse.de>
19039
19040 PR tree-optimization/70725
19041 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
19042 for phi_convertible_by_degenerating_args.
19043 (predicate_all_scalar_phis): Handle single-argument PHIs.
19044
19045 2016-04-21 Richard Biener <rguenther@suse.de>
19046
19047 PR middle-end/70747
19048 * fold-const.c (fold_comparison): Return properly typed
19049 constant boolean.
19050
19051 2016-04-21 Bin Cheng <bin.cheng@arm.com>
19052
19053 PR tree-optimization/70715
19054 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
19055 after expanding BASE using expand_simple_operations.
19056
19057 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19058
19059 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
19060 New transformations.
19061
19062 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19063
19064 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
19065
19066 2016-04-20 Jan Hubicka <jh@suse.cz>
19067
19068 * ipa-inline.c (can_inline_edge_p): Pass caller info to
19069 ultiimate_alias_target.
19070 (update_callee_keys): Likewise.
19071 (lookup_recursive_calls): Likewise.
19072 (speculation_useful_p): Likewise.
19073
19074 2016-04-20 Jan Hubicka <jh@suse.cz>
19075
19076 PR ipa/70018
19077 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
19078 (set_nothrow_flag_1): ... this; handle interposition correctly;
19079 recurse on aliases and thunks.
19080 (cgraph_node::set_nothrow_flag): New.
19081 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
19082 functions compiled with non-call exceptions that binds to current
19083 def.
19084 (propagate_nothrow): Be safe WRT interposition.
19085 * cgraph.h (set_nothrow_flag): Update prototype.
19086
19087 2016-04-18 Jan Hubicka <jh@suse.cz>
19088
19089 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19090 max_loop_iterations_int.
19091 (tree_unswitch_outer_loop): Likewise.
19092
19093 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19094
19095 PR tree-optimization/69489
19096 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
19097 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
19098 Revise dump message.
19099 (if_convertible_bb_p): Remove check on edge count of basic block's
19100 predecessors.
19101
19102 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19103
19104 PR tree-optimization/56625
19105 PR tree-optimization/69489
19106 * tree-data-ref.h (DR_INNERMOST): New macro.
19107 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
19108 hashing struct innermost_loop_behavior.
19109 (ref_DR_map): Remove.
19110 (innermost_DR_map): New map.
19111 (baseref_DR_map): Revise comment.
19112 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
19113 to innermost_DR_map accroding to its innermost loop behavior.
19114 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
19115 to its innermost loop behavior.
19116 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
19117 Add initialization for innermost_DR_map. Record memory reference
19118 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
19119 have innermost loop behavior.
19120 (if_convertible_loop_p): Remove release for ref_DR_map. Release
19121 innermost_DR_map.
19122
19123 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
19124
19125 * config/i386/i386.md (*lea<mode>_general_1): Rename from
19126 *lea_general_1. Use explicit SWI12 mode interator.
19127 (*lea<mode>_general_2): Rename from *lea_general_2.
19128 Use explicit SWI12 mode interator.
19129 (*lea<mode>_general_3): Rename from *lea_general_3.
19130 Use explicit SWI12 mode interator.
19131 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
19132 Use explicit SWI12 mode interator.
19133 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
19134 Use explicit SWI48 mode interator.
19135
19136 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19137
19138 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19139 Short-cut unaligned load and store cases. Handle all integer
19140 vector modes.
19141 (ix86_expand_vector_move_misalign): Short-cut unaligned load
19142 and store cases. Call ix86_avx256_split_vector_move_misalign
19143 directly without checking mode class.
19144
19145 2016-04-20 Andrew Pinski <apinski@cavium.com>
19146 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19147
19148 PR target/64971
19149 * config/aarch64/aarch64.md (sibcall): Force call
19150 address to be DImode for ILP32.
19151 (sibcall_value): Likewise.
19152
19153 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19154
19155 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
19156
19157 2016-04-20 Richard Biener <rguenther@suse.de>
19158
19159 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
19160 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
19161 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
19162 (maybe_push_res_to_seq): Adjust.
19163 * gimple-fold.c (maybe_build_generic_op): Likewise.
19164
19165 2016-04-20 Marek Polacek <polacek@redhat.com>
19166
19167 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
19168 rather than true.
19169
19170 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
19171
19172 * config/i386/sse.md (vec_unpacks_lo_hi): Always
19173 use kmovw to support AVX512F target.
19174
19175 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19176
19177 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
19178
19179 2016-04-20 Marek Polacek <polacek@redhat.com>
19180
19181 PR tree-optimization/70725
19182 * tree-if-conv.c (is_false_predicate): New function.
19183 (predicate_mem_writes): Use it.
19184
19185 2016-04-20 Richard Biener <rguenther@suse.de>
19186
19187 PR tree-optimization/70726
19188 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
19189 shift amounts from a pattern stmt operand.
19190
19191 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19192
19193 PR target/70674
19194 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
19195 stack_restore_from_fpr pattern when restoring r15.
19196 (s390_optimize_prologue): Strip away the memory barrier in the
19197 parallel when trying to get rid of restore insns.
19198 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
19199 definition for loading the stack pointer from an FPR. Compared to
19200 the normal move insn this pattern includes a full memory barrier.
19201
19202 2016-04-19 Jakub Jelinek <jakub@redhat.com>
19203
19204 PR middle-end/70680
19205 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
19206 implicitly linear or lastprivate iterator on the outer context.
19207
19208 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19209
19210 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
19211 alignment check.
19212 * config/i386/i386.md (ssememalign): Removed.
19213 * config/i386/sse.md: Remove ssememalign attribute from patterns.
19214
19215 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19216
19217 PR target/69201
19218 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
19219 const short * to __builtin_ia32_loaddquhi512_mask.
19220 (_mm512_maskz_loadu_epi16): Likewise.
19221 (_mm512_mask_storeu_epi16): Pass short * to
19222 __builtin_ia32_storedquhi512_mask.
19223 (_mm512_mask_loadu_epi8): Pass const char * to
19224 __builtin_ia32_loaddquqi512_mask.
19225 (_mm512_maskz_loadu_epi8): Likewise.
19226 (_mm512_mask_storeu_epi8): Pass char * to
19227 __builtin_ia32_storedquqi512_mask.
19228 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
19229 const double * to __builtin_ia32_loadupd512_mask.
19230 (_mm512_mask_loadu_pd): Likewise.
19231 (_mm512_maskz_loadu_pd): Likewise.
19232 (_mm512_storeu_pd): Pass double * to
19233 __builtin_ia32_storeupd512_mask.
19234 (_mm512_mask_storeu_pd): Likewise.
19235 (_mm512_loadu_ps): Pass const float * to
19236 __builtin_ia32_loadups512_mask.
19237 (_mm512_mask_loadu_ps): Likewise.
19238 (_mm512_maskz_loadu_ps): Likewise.
19239 (_mm512_storeu_ps): Pass float * to
19240 __builtin_ia32_storeups512_mask.
19241 (_mm512_mask_storeu_ps): Likewise.
19242 (_mm512_mask_loadu_epi64): Pass const long long * to
19243 __builtin_ia32_loaddqudi512_mask.
19244 (_mm512_maskz_loadu_epi64): Likewise.
19245 (_mm512_mask_storeu_epi64): Pass long long *
19246 to __builtin_ia32_storedqudi512_mask.
19247 (_mm512_loadu_si512): Pass const int * to
19248 __builtin_ia32_loaddqusi512_mask.
19249 (_mm512_mask_loadu_epi32): Likewise.
19250 (_mm512_maskz_loadu_epi32): Likewise.
19251 (_mm512_storeu_si512): Pass int * to
19252 __builtin_ia32_storedqusi512_mask.
19253 (_mm512_mask_storeu_epi32): Likewise.
19254 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
19255 char * to __builtin_ia32_storedquqi256_mask.
19256 (_mm_mask_storeu_epi8): Likewise.
19257 (_mm256_mask_loadu_epi16): Pass const short * to
19258 __builtin_ia32_loaddquhi256_mask.
19259 (_mm256_maskz_loadu_epi16): Likewise.
19260 (_mm_mask_loadu_epi16): Pass const short * to
19261 __builtin_ia32_loaddquhi128_mask.
19262 (_mm_maskz_loadu_epi16): Likewise.
19263 (_mm256_mask_loadu_epi8): Pass const char * to
19264 __builtin_ia32_loaddquqi256_mask.
19265 (_mm256_maskz_loadu_epi8): Likewise.
19266 (_mm_mask_loadu_epi8): Pass const char * to
19267 __builtin_ia32_loaddquqi128_mask.
19268 (_mm_maskz_loadu_epi8): Likewise.
19269 (_mm256_mask_storeu_epi16): Pass short * to.
19270 __builtin_ia32_storedquhi256_mask.
19271 (_mm_mask_storeu_epi16): Pass short * to.
19272 __builtin_ia32_storedquhi128_mask.
19273 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
19274 const double * to __builtin_ia32_loadupd256_mask.
19275 (_mm256_maskz_loadu_pd): Likewise.
19276 (_mm_mask_loadu_pd): Pass onst double * to
19277 __builtin_ia32_loadupd128_mask.
19278 (_mm_maskz_loadu_pd): Likewise.
19279 (_mm256_mask_storeu_pd): Pass double * to
19280 __builtin_ia32_storeupd256_mask.
19281 (_mm_mask_storeu_pd): Pass double * to
19282 __builtin_ia32_storeupd128_mask.
19283 (_mm256_mask_loadu_ps): Pass const float * to
19284 __builtin_ia32_loadups256_mask.
19285 (_mm256_maskz_loadu_ps): Likewise.
19286 (_mm_mask_loadu_ps): Pass const float * to
19287 __builtin_ia32_loadups128_mask.
19288 (_mm_maskz_loadu_ps): Likewise.
19289 (_mm256_mask_storeu_ps): Pass float * to
19290 __builtin_ia32_storeups256_mask.
19291 (_mm_mask_storeu_ps): ass float * to
19292 __builtin_ia32_storeups128_mask.
19293 (_mm256_mask_loadu_epi64): Pass const long long * to
19294 __builtin_ia32_loaddqudi256_mask.
19295 (_mm256_maskz_loadu_epi64): Likewise.
19296 (_mm_mask_loadu_epi64): Pass const long long * to
19297 __builtin_ia32_loaddqudi128_mask.
19298 (_mm_maskz_loadu_epi64): Likewise.
19299 (_mm256_mask_storeu_epi64): Pass long long * to
19300 __builtin_ia32_storedqudi256_mask.
19301 (_mm_mask_storeu_epi64): Pass long long * to
19302 __builtin_ia32_storedqudi128_mask.
19303 (_mm256_mask_loadu_epi32): Pass const int * to
19304 __builtin_ia32_loaddqusi256_mask.
19305 (_mm256_maskz_loadu_epi32): Likewise.
19306 (_mm_mask_loadu_epi32): Pass const int * to
19307 __builtin_ia32_loaddqusi128_mask.
19308 (_mm_maskz_loadu_epi32): Likewise.
19309 (_mm256_mask_storeu_epi32): Pass int * to
19310 __builtin_ia32_storedqusi256_mask.
19311 (_mm_mask_storeu_epi32): Pass int * to
19312 __builtin_ia32_storedqusi128_mask.
19313 * config/i386/i386-builtin-types.def (PCSHORT): New.
19314 (PINT64): Likewise.
19315 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
19316 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
19317 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
19318 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
19319 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
19320 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
19321 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
19322 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
19323 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
19324 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
19325 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
19326 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
19327 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
19328 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
19329 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
19330 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
19331 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
19332 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
19333 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
19334 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
19335 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
19336 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
19337 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
19338 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
19339 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
19340 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
19341 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
19342 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
19343 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
19344 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
19345 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
19346 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
19347 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
19348 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
19349 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
19350 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
19351 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
19352 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
19353 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
19354 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
19355 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
19356 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
19357 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
19358 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
19359 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
19360 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
19361 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
19362 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
19363 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
19364 use UNSPEC_STOREU.
19365 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
19366 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
19367 load nor store.
19368 (ix86_expand_vector_move_misalign): Likewise.
19369 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
19370 to scalar function prototype for unaligned load/store builtins.
19371 (ix86_expand_special_args_builtin): Updated.
19372 * config/i386/sse.md (UNSPEC_LOADU): Removed.
19373 (UNSPEC_STOREU): Likewise.
19374 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
19375 (VI_ULOADSTORE_F_AVX512VL): Likewise.
19376 (ssescalarsize): Handle V4TI, V2TI and V1TI.
19377 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19378 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19379 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
19380 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
19381 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
19382 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
19383 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
19384 (<avx512>_storedqu<mode>_mask): Likewise.
19385 (*sse4_2_pcmpestr_unaligned): Likewise.
19386 (*sse4_2_pcmpistr_unaligned): Likewise.
19387 (*mov<mode>_internal): Renamed to ...
19388 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
19389 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
19390 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
19391 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
19392
19393 2016-04-19 Richard Biener <rguenther@suse.de>
19394
19395 PR tree-optimization/70171
19396 * tree-ssa-phiprop.c: Include stor-layout.h.
19397 (phiprop_insert_phi): Handle the aggregate copy case.
19398 (propagate_with_phi): Likewise.
19399
19400 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
19401
19402 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
19403 instead of simplify_gen_subreg (... , 0).
19404 (ix86_delegitimize_address): Ditto.
19405 (ix86_split_divmod): Ditto.
19406 (ix86_split_copysign_const): Ditto.
19407 (ix86_split_copysign_var): Ditto.
19408 (ix86_expand_args_builtin): Ditto.
19409 (ix86_expand_round_builtin): Ditto.
19410 (ix86_expand_special_args_builtin): Ditto.
19411 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
19412 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
19413 (udivmodqi4): Ditto.
19414 (absneg splitters): Ditto.
19415 (*jcc_bt<mode>_1): Ditto.
19416
19417 2016-04-19 Richard Biener <rguenther@suse.de>
19418
19419 PR tree-optimization/70724
19420 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
19421 restoring out from ...
19422 (free_scc_vn): ... here.
19423 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
19424 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
19425 tail merging.
19426 (pass_fre::execute): Restore SSA info.
19427
19428 2016-04-19 Richard Biener <rguenther@suse.de>
19429
19430 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
19431 * gimple-walk.c (walk_gimple_op): Initialize it.
19432 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
19433 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
19434 remapping SSA names of defs.
19435 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
19436 adjustment.
19437
19438 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
19439
19440 PR middle-end/70689
19441 * lra-constraints.c (equiv_substition_p): New.
19442 (process_alt_operands): Use it.
19443 (swap_operands): Swap it.
19444 (curr_insn_transform): Update it.
19445
19446 2016-04-18 Michael Matz <matz@suse.de>
19447
19448 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
19449 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
19450 * tree-core.h (tree_type_common.align): Use bit-field.
19451 (tree_type_common.spare): New.
19452 (tree_decl_common.off_align): Make smaller.
19453 (tree_decl_common.align): Use bit-field.
19454
19455 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
19456 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
19457 (scan_sharing_clauses): Ditto.
19458 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19459 (omp_finish_file): Ditto.
19460 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
19461 (layout_decl): Ditto.
19462 (relayout_decl): Ditto.
19463 (finalize_record_size): Use SET_TYPE_ALIGN.
19464 (finalize_type_size): Ditto.
19465 (finish_builtin_struct): Ditto.
19466 (layout_type): Ditto.
19467 (initialize_sizetypes): Ditto.
19468 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
19469 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
19470 (lookup_field_for_decl): Use SET_DECL_ALIGN.
19471 (get_chain_field): Ditto.
19472 (get_trampoline_type): Ditto.
19473 (get_nl_goto_field): Ditto.
19474 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19475 SET_DECL_ALIGN.
19476 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
19477 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
19478 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19479 (build_qualified_type): Use SET_TYPE_ALIGN.
19480 (build_aligned_type, build_range_type_1): Ditto.
19481 (build_atomic_base): Ditto.
19482 (build_common_tree_nodes): Ditto.
19483 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
19484 (expand_one_stack_var_at): Ditto.
19485 * coverage.c (build_var): Use SET_DECL_ALIGN.
19486 * except.c (init_eh): Ditto.
19487 * function.c (assign_parm_setup_block): Ditto.
19488 * symtab.c (increase_alignment_1): Ditto.
19489 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
19490 * tree-vect-stmts.c (ensure_base_align): Ditto.
19491 * varasm.c (align_variable): Ditto.
19492 (assemble_variable): Ditto.
19493 (build_constant_desc): Ditto.
19494 (output_constant_def_contents): Ditto.
19495
19496 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
19497 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
19498 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
19499 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
19500 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
19501
19502 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
19503
19504 PR target/70708
19505 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
19506 replace %vmovsd with "%vmovq".
19507 (vec_concatv2df): Likewise.
19508
19509 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
19510
19511 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
19512 (*vec_extractv2si_0): Ditto.
19513 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
19514 (zero_extended_scalar_load_operand splitters): Ditto.
19515 (vec_extract splitters): Ditto.
19516 (*vec_extractv4si_0_zext): Ditto.
19517 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
19518 and lowpart_subreg.
19519 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
19520 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
19521 (*sse4_1_extractps): Use lowpart_subreg.
19522 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
19523
19524 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19525
19526 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
19527 gld requirements.
19528 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
19529 Mention Solaris 11 packaging changes.
19530 Update gas and gld requirements.
19531 Remove reference to pre-Solaris 10 bug.
19532 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
19533 systems and bugs.
19534 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
19535 with cc.
19536
19537 2016-04-17 Jan Hubicka <jh@suse.cz>
19538
19539 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
19540 max_loop_iterations_int.
19541
19542 2016-04-18 Richard Biener <rguenther@suse.de>
19543
19544 PR tree-optimization/43434
19545 * tree-ssa-structalias.c (struct vls_data): New.
19546 (visit_loadstore): Handle all pointer-based accesses.
19547 (compute_dependence_clique): Compute a bitmap of restrict tags
19548 assigned bases and pass it to visit_loadstore.
19549
19550 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
19551
19552 PR target/70711
19553 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
19554 armv8.1-a and armv8.1-a+crc.
19555
19556 2016-04-18 Richard Biener <rguenther@suse.de>
19557
19558 PR tree-optimization/70701
19559 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
19560 references after translating through a memcpy.
19561
19562 2016-04-18 Richard Biener <rguenther@suse.de>
19563
19564 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
19565 (compute_antic): ... here. For partial antic use regular
19566 postorder and scrap iteration.
19567 (compute_partial_antic_aux): Remove unused return value.
19568 (init_pre): Do not allocate postorder.
19569 (fini_pre): Do not free postorder.
19570
19571 2016-04-18 Richard Biener <rguenther@suse.de>
19572
19573 PR middle-end/37870
19574 * expmed.c (extract_bit_field_1): Remove broken case
19575 using a wider MODE_INT mode.
19576
19577 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
19578
19579 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
19580 unless compiling with at least GCC-4.8.
19581
19582 2016-04-17 Jan Hubicka <jh@suse.cz>
19583
19584 PR bootstrap/70706
19585 * graphite.c (graphite_finalize): Update call to
19586 tree_estimate_probability.
19587 * predict.h (tree_estimate_probability): Update prototype.
19588
19589 2016-04-17 Jan Hubicka <jh@suse.cz>
19590
19591 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
19592 (tree_estimate_probability): Likewise.
19593 (pass_profile::execute): Update.
19594 (report_predictor_hitrates): New function.
19595 * profile.c (compute_branch_probabilities): Use it.
19596 * predict.h (report_predictor_hitrates): Declare.
19597
19598 2016-04-17 Jan Hubicka <jh@suse.cz>
19599
19600 PR ipa/70018
19601 * cgraph.h (cgraph_node::set_const_flag,
19602 cgraph_node::set_pure_flag): Update prototype to return bool;
19603 update comment.
19604 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
19605 of interposable symbol are interposable, too.
19606 (cgraph_set_const_flag_1): Rename to ...
19607 (set_const_flag_1): ... this one; change to self recursive function
19608 instead of call_for_symbol_thunks_and_aliases. Handle correctly
19609 clearnig the flag in all variants and also virtual thunks of const
19610 functions are pure; track if any change was done.
19611 (cgraph_node::set_const_flag): Update.
19612 (struct set_pure_flag_info): New struct.
19613 (cgraph_set_pure_flag_1): Rename to ...
19614 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
19615 rather than pointer encoded flags; track if any changes was done;
19616 handle correctly clearning flag and setting flag of aliases already
19617 declared const.
19618 (cgraph_node::set_pure_flag): Update.
19619 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
19620
19621 2016-04-17 Tom de Vries <tom@codesourcery.com>
19622
19623 PR other/70433
19624 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
19625 backslash in label.
19626
19627 2016-04-17 Tom de Vries <tom@codesourcery.com>
19628
19629 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
19630 '{}<> ' as escape-for-record.
19631
19632 2016-04-17 Tom de Vries <tom@codesourcery.com>
19633
19634 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
19635 structure.
19636
19637 2016-04-17 Tom de Vries <tom@codesourcery.com>
19638
19639 PR other/70185
19640 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19641 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19642 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19643 * passes.c (finish_optimization_passes): Only call
19644 finish_graph_dump_file if dfi->graph_dump_initialized.
19645 (execute_function_dump, pass_init_dump_file): Use
19646 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19647
19648 2016-04-17 Tom de Vries <tom@codesourcery.com>
19649
19650 PR tree-optimization/70256
19651 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19652 (debug_varmap): New function.
19653
19654 2016-04-17 Tom de Vries <tom@codesourcery.com>
19655
19656 PR other/70183
19657 * passes.c (pass_manager::register_pass): Propagate pflags.
19658
19659 2016-04-17 Tom de Vries <tom@codesourcery.com>
19660
19661 PR other/68875
19662 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19663 * passes.c (pass_manager::pass_manager): Declare and init p_start in
19664 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
19665 check if it's equal to p_start.
19666 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19667
19668 2016-04-15 Jan Hubicka <jh@suse.cz>
19669
19670 PR ipa/70018
19671 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19672 function does not bind to current def.
19673 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19674 handle conservatively calls to functions that does not need to bind
19675 to current def.
19676 (check_call): Update call of worse_state.
19677 (ignore_edge_for_nothrow): Update.
19678 (ignore_edge_for_pure_const): Likewise.
19679 (propagate_pure_const): Update calls to worse_state.
19680 (skip_function_for_local_pure_const): Reformat comments.
19681
19682 2016-04-15 Jan Hubicka <jh@suse.cz>
19683
19684 PR ipa/70018
19685 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19686 (cgraph_node::function_symbol): Likewise.
19687 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19688 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19689 (symtab_node::ultimate_alias_target): Add REF parameter.
19690 (symtab_node::binds_to_current_def_p): Declare.
19691 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19692 (cgraph_node::function_symbol): Likewise.
19693 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19694 (cgraph_node::get_availability): Likewise.
19695 (cgraph_edge::binds_to_current_def_p): New inline function.
19696 (varpool_node::get_availability): Add REF parameter.
19697 (varpool_node::ultimate_alias_target): Likewise.
19698 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19699 (symtab_node::binds_to_current_def_p): Likewise.
19700 * varpool.c (varpool_node::get_availability): Likewise.
19701
19702 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19703
19704 PR target/70662
19705 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19706 Fix mode size check.
19707
19708 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19709
19710 * BASE-VER: Set to 7.0.0.
19711
19712 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
19713
19714 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19715
19716 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19717
19718 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19719 architecture revisions.
19720
19721 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
19722
19723 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19724 * config/i386/i386.c (ix86_using_red_zone): No longer static.
19725 * config/i386/i386.md (stack decrement to push peepholes): Guard
19726 with !x86_using_red_zone ().
19727
19728 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19729
19730 PR c++/70675
19731 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19732 to dump_generic_node.
19733 (NIY): Pass also flags to do_niy.
19734
19735 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
19736
19737 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19738 (simd_clone_vector_of_formal_parm_types)
19739 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19740 (simd_clone_mangle, simd_clone_create)
19741 (simd_clone_adjust_return_type, create_tmp_simd_array)
19742 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19743 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19744 (ipa_simd_modify_function_body, simd_clone_linear_addend)
19745 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19746 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19747 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19748 * omp-simd-clone.c: ... this new file.
19749 (simd_clone_vector_of_formal_parm_types): Make it static.
19750 * Makefile.in (OBJS): Add omp-simd-clone.o.
19751
19752 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19753
19754 PR target/70662
19755 * config/i386/sse.md: Use proper memory operand modifiers.
19756
19757
19758 2016-04-15 Richard Biener <rguenther@suse.de>
19759 Alan Modra <amodra@gmail.com>
19760
19761 PR tree-optimization/70130
19762 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19763 when alignment stays not the same and no not use the realign
19764 scheme then.
19765
19766 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19767
19768 PR target/70669
19769 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19770 direct move handlers for KFmode. Change TFmode handlers test from
19771 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19772
19773 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19774
19775 PR c++/70594
19776 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19777 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19778 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19779 * tree-ssa-live.c (remove_unused_scope_block_p): When
19780 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19781 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19782 block_ultimate_origin is FUNCTION_DECL.
19783 (remove_unused_locals): If current_function_decl is
19784 polymorphic_ctor_dtor_p, pass initial true to
19785 remove_unused_scope_block_p' is_ctor_dtor_block.
19786
19787 2016-04-14 Martin Sebor <msebor@redhat.com>
19788
19789 PR c++/69517
19790 PR c++/70019
19791 PR c++/70588
19792 * doc/extend.texi (Variable Length): Revert.
19793
19794 2016-04-14 Marek Polacek <polacek@redhat.com>
19795 Jan Hubicka <hubicka@ucw.cz>
19796
19797 PR c++/70029
19798 * tree.c (verify_type): Disable the canonical type of main variant
19799 check.
19800
19801 2016-04-14 Jason Merrill <jason@redhat.com>
19802
19803 * cfgexpand.c, expr.c: Revert previous change.
19804
19805 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19806
19807 PR middle-end/70643
19808 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19809 when building a mem ref for the incoming reduction variable.
19810
19811 2016-04-14 Richard Biener <rguenther@suse.de>
19812
19813 PR tree-optimization/70614
19814 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19815 loop if the evolution dropped to chrec_dont_know.
19816 (interpret_condition_phi): Likewise.
19817
19818 2016-04-14 Richard Biener <rguenther@suse.de>
19819
19820 PR tree-optimization/70623
19821 * tree-ssa-pre.c (changed_blocks): Make global ...
19822 (compute_antic): ... local here. Move and fix worklist
19823 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19824 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19825 worklist handling, dump when ANTIC_IN changed.
19826 (compute_partial_antic_aux): Remove worklist handling.
19827 (init_pre): Do not compute post dominators. Add a comment about
19828 the CFG order chosen.
19829 (fini_pre): Do not free post dominators.
19830
19831 2016-04-13 Martin Sebor <msebor@redhat.com>
19832
19833 PR c++/69517
19834 PR c++/70019
19835 PR c++/70588
19836 * doc/extend.texi (Variable Length): Document C++ specifics.
19837
19838 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19839
19840 PR c++/70641
19841 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19842 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19843 eh edges have been purged.
19844
19845 PR c++/70594
19846 * tree-sra.c (create_access_replacement,
19847 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19848 gets fancy name.
19849 * tree-pretty-print.c (dump_fancy_name): New function.
19850 (dump_decl_name, dump_generic_node): Use it.
19851
19852 2016-04-13 Jason Merrill <jason@redhat.com>
19853
19854 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19855 * expr.c (expand_expr_real_1): Likewise.
19856
19857 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19858
19859 * config/i386/i386.md (kunpckhi): Swap operands.
19860 (kunpcksi): Likewise.
19861 (kunpckdi): Likewise.
19862 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19863 (vec_pack_trunc_<mode>): Likewise.
19864
19865 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19866
19867 PR debug/70628
19868 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19869
19870 PR middle-end/70633
19871 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19872 gimplification turns some element into non-constant.
19873
19874 PR debug/70628
19875 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19876 * explow.c (convert_memory_address_addr_space_1): No longer static,
19877 add NO_EMIT argument and don't call convert_modes if true, pass
19878 it down recursively, remove break after return.
19879 (convert_memory_address_addr_space): Adjust caller.
19880 * simplify-rtx.c (simplify_unary_operation_1): Call
19881 convert_memory_address_addr_space_1 instead of convert_memory_address,
19882 if it returns NULL, don't simplify.
19883
19884 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19885
19886 PR target/70630
19887 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19888
19889 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19890
19891 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19892 Bump the upper SIMDLEN limits, so that if the return type or
19893 characteristic type if the return type is void can be passed in
19894 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19895 allowed.
19896
19897 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19898
19899 PR target/70640
19900 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19901 Do not use "=" constraint on an input constraint.
19902 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19903 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19904 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19905 generates (neg (abs ...)) instead of (abs ...).
19906
19907 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19908
19909 PR rtl-optimization/70596
19910 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19911 just invalidate LRA data and reset them. Adjust dump wording.
19912
19913 2016-04-12 Martin Liska <mliska@suse.cz>
19914
19915 Revert
19916 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19917
19918 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19919 estimates here.
19920 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19921 max_loop_iterations_int.
19922 (tree_unswitch_outer_loop): Likewise.
19923 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19924 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19925
19926 2016-04-12 Tom de Vries <tom@codesourcery.com>
19927
19928 PR tree-optimization/68756
19929 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19930 instead of new_name.
19931
19932 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19933
19934 PR tree-optimization/70602
19935 * tree-sra.c (generate_subtree_copies): Don't write anything into
19936 constant pool decls.
19937
19938 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19939 regardless whether there are depend clauses or not.
19940
19941 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19942
19943 PR target/70381
19944 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19945 target attribute and pragma from changing the -mfloat128
19946 and -mfloat128-hardware options.
19947
19948 * doc/extend.texi (Additional Floating Types): Document PowerPC
19949 __float128 restrictions.
19950
19951 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19952
19953 PR target/70133
19954 * config/aarch64/driver-aarch64.c
19955 (aarch64_get_extension_string_for_isa_flags): New.
19956 (arch_extension): Rename to...
19957 (aarch64_arch_extension): ...This.
19958 (ext_to_feat_string): Rename to...
19959 (aarch64_extensions): ...This.
19960 (aarch64_core_data): Keep track of architecture extension flags.
19961 (cpu_data): Rename to...
19962 (aarch64_cpu_data): ...This.
19963 (aarch64_arch_driver_info): Keep track of architecture extension
19964 flags.
19965 (get_arch_name_from_id): Rename to...
19966 (get_arch_from_id): ...This, change return type.
19967 (host_detect_local_cpu): Update and reformat for renames, handle
19968 extensions through common infrastructure.
19969
19970 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19971
19972 PR target/70133
19973 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19974 track of a canonical flag name.
19975 (all_extensions): Likewise.
19976 (arch_to_arch_name): Also track extension flags enabled by the arch.
19977 (all_architectures): Likewise.
19978 (aarch64_parse_extension): Move to here.
19979 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19980 rework.
19981 (aarch64_rewrite_selected_cpu): Update for above change.
19982 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19983 are handled, such that the single explicit value enabled by an
19984 extension is kept seperate from the implicit values it also enables.
19985 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19986 to here.
19987 (aarch64_parse_extension): New.
19988 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19989 here to config/aarch64/aarch64-protos.h.
19990 (aarch64_parse_extension): Move from here to
19991 common/config/aarch64/aarch64-common.c.
19992 (aarch64_option_print): Update.
19993 (aarch64_declare_function_name): Likewise.
19994 (aarch64_start_file): Likewise.
19995 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19996 the canonical flag for extensions.
19997 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19998 flags.
19999
20000 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20001
20002 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
20003 AARCH64_FL_CRC.
20004
20005 2016-04-09 Tom de Vries <tom@codesourcery.com>
20006
20007 PR tree-optimization/68953
20008 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
20009 first to last subscript.
20010
20011 2016-04-09 Jakub Jelinek <jakub@redhat.com>
20012
20013 PR tree-optimization/70586
20014 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
20015 for any calls.
20016
20017 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
20018
20019 PR lto/70289
20020 PR ipa/70348
20021 PR tree-optimization/70373
20022 PR middle-end/70533
20023 PR middle-end/70534
20024 PR middle-end/70535
20025 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
20026 clauses for acc parallel reductions as necessary. Error on those
20027 that are private.
20028 * omp-low.c (scan_sharing_clauses): Don't install variables which
20029 are used in acc parallel reductions.
20030 (lower_rec_input_clauses): Remove dead code.
20031 (lower_oacc_reductions): Add support for reference reductions.
20032 (lower_reduction_clauses): Remove dead code.
20033 (lower_omp_target): Don't remap variables appearing in acc parallel
20034 reductions.
20035 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
20036
20037 2016-04-08 Jakub Jelinek <jakub@redhat.com>
20038
20039 PR middle-end/70593
20040 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
20041 with multiple SSA_NAME defs, force the outputs other than first
20042 to be live before calling live_track_process_def on each output.
20043
20044 PR rtl-optimization/70574
20045 * fwprop.c (forward_propagate_and_simplify): Don't add
20046 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
20047 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
20048 paradoxical subregs within *loc.
20049
20050 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
20051
20052 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
20053 -ftree-parallelize-loops={0,1}.
20054 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20055 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20056 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20057 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20058 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20059
20060 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
20061
20062 PR sanitizer/70541
20063 * asan.c (instrument_derefs): If we get unknown location, extract it
20064 with EXPR_LOCATION.
20065 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
20066
20067 2016-04-08 Tom de Vries <tom@codesourcery.com>
20068
20069 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
20070 implicit firstprivate clause.
20071
20072 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20073
20074 PR target/70566
20075 * config/arm/thumb2.md (tst + branch-> lsls + branch
20076 peephole below *orsi_not_shiftsi_si): Require that condition
20077 register is dead after the peephole.
20078 (second peephole after the above): Likewise.
20079
20080 2016-04-08 Alan Modra <amodra@gmail.com>
20081
20082 PR target/70117
20083 * builtins.c (fold_builtin_classify): For IBM extended precision,
20084 look at just the high-order double to test for NaN.
20085 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
20086 test just the high double for Inf but both doubles for subnormal
20087 limit.
20088
20089 2016-04-07 Jakub Jelinek <jakub@redhat.com>
20090
20091 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
20092 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
20093 node->simdclone->mask_mode != VOIDmode masks.
20094 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
20095 earlier, use it instead of node->simdclone.
20096 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20097 Set clonei->mask_mode.
20098
20099 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20100
20101 PR c/70436
20102 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
20103 Pass it through to cp_parser_already_scoped_statement.
20104 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
20105 it through to cp_parser_statement.
20106 (cp_parser_statement): Pass IF_P through to
20107 cp_parser_iteration_statement.
20108 (cp_parser_pragma): Adjust call to
20109 cp_parser_iteration_statement.
20110
20111 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20112
20113 PR c/70436
20114 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
20115 resolve a future -Wparentheses warning.
20116 * omp-low.c (scan_sharing_clauses): Likewise.
20117 * tree-parloops.c (eliminate_local_variables): Likewise.
20118
20119 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
20120
20121 PR rtl-optimization/70398
20122 * lra-constraints.c (process_address_1): Check zero scale and code
20123 for reloading with zero scale.
20124
20125 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
20126
20127 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
20128 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
20129
20130 2016-04-06 Jakub Jelinek <jakub@redhat.com>
20131
20132 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20133 Add support for AVX512F clones, include them by default for
20134 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
20135 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
20136 up to 128.
20137
20138 PR middle-end/70550
20139 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
20140 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
20141 firstprivate clauses.
20142 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
20143 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
20144 (lower_omp_target): Set TREE_NO_WARNING for
20145 non-addressable possibly uninitialized vars which are copied into
20146 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
20147
20148 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
20149
20150 * config/pa/predicates.md (integer_store_memory_operand): Accept
20151 REG+D operands with a large offset when reload_in_progress is true.
20152 (floating_point_store_memory_operand): Likewise.
20153
20154 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20155
20156 PR c++/70336
20157 * match.pd (nested int casts): Limit to GIMPLE.
20158
20159 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
20160
20161 PR ipa/66223
20162 * ipa-devirt.c (maybe_record_node): Fix comment; use
20163 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
20164
20165 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20166
20167 PR rtl-optimization/70542
20168 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
20169 if there are any uses other than insn or debug insns.
20170
20171 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
20172 Jakub Jelinek <jakub@redhat.com>
20173
20174 PR tree-optimization/70509
20175 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
20176 Shift HOST_WIDE_INT_1U instead of 1.
20177
20178 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
20179
20180 PR tree-optimization/70509
20181 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
20182 of the vector base type for index.
20183
20184 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
20185
20186 PR target/70510
20187 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
20188
20189 2016-04-05 Richard Biener <rguenther@suse.de>
20190
20191 PR tree-optimization/70526
20192 * tree-sra.c (build_ref_for_offset): Use prev_base to
20193 extract the alias pointer type.
20194
20195 2016-04-05 Richard Biener <rguenther@suse.de>
20196
20197 * dse.c (struct store_info): Remove alias_set member.
20198 (struct read_info_type): Likewise.
20199 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
20200 spill_deleted, clear_alias_set_lookup): Remove.
20201 (get_group_info): Remove dead base == NULL_RTX case.
20202 (dse_step0): Remove initialization of removed variables.
20203 (delete_dead_store_insn): Reomve alias set dumping.
20204 (free_read_records): Remove alias_set handling.
20205 (canon_address): Remove alias_set_out parameter.
20206 (record_store): Remove spill_alias_set, it's always zero.
20207 (check_mem_read_rtx): Likewise.
20208 (dse_step2): Rename from ...
20209 (dse_step2_nospill): ... this. Adjust.
20210 (scan_stores): Rename from ...
20211 (scan_stores_nospill): ... this.
20212 (scan_reads): Rename from ...
20213 (scan_reads_nospill): ... this.
20214 (scan_stores_spill, scan_reads_spill): Remove.
20215 (dse_step3_scan): Remove for_spills argument which is always false.
20216 (dse_step3): Likewise.
20217 (dse_step5): Rename from ...
20218 (dse_step5_nospill): ... this. Remove alias_set handling.
20219 (rest_of_handle_dse): Adjust.
20220
20221 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20222
20223 PR target/70525
20224 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
20225 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
20226 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
20227 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
20228
20229 2016-04-05 Richard Biener <rguenther@suse.de>
20230
20231 PR middle-end/70499
20232 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
20233 non-register type temporaries into SSA.
20234
20235 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
20236
20237 PR ipa/66223
20238 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
20239 calls when sanitizing.
20240 (possible_polymorphic_call_target_p): Fix formatting.
20241
20242 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20243 Jakub Jelinek <jakub@redhat.com>
20244
20245 PR middle-end/70457
20246 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
20247 to ensure a call statement is compatible with a built-in's
20248 prototype.
20249 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
20250 Likewise.
20251
20252 2016-04-04 Richard Biener <rguenther@suse.de>
20253
20254 PR rtl-optimization/70484
20255 * rtl.h (canon_output_dependence): Declare.
20256 * alias.c (canon_output_dependence): New function.
20257 * dse.c (record_store): Use canon_output_dependence rather
20258 than canon_true_dependence.
20259
20260 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20261
20262 PR ipa/68881
20263 * cgraph.h (symtab_node::copy_visibility_from): New function.
20264 * symtab.c (symtab_node::copy_visibility_from): New function.
20265 * ipa-visibility.c (optimize_weakref): New function.
20266 (function_and_variable_visibility): Use it.
20267
20268 2016-04-04 Martin Liska <mliska@suse.cz>
20269
20270 PR hsa/70402
20271 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
20272 value that is really in range handled by SBR instruction.
20273 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
20274 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
20275 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
20276
20277 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
20278
20279 PR target/70416
20280 PR target/67391
20281 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
20282 set, but not for SP_REG operands.
20283
20284 2016-04-02 Martin Sebor <msebor@redhat.com>
20285
20286 PR c++/67376
20287 * fold-const.c (maybe_nonzero_address): New function.
20288 (fold_comparison): Call it. Fold equality and relational
20289 expressions involving null pointers.
20290 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
20291
20292 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
20293
20294 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
20295 the "Y" constraint (scalar FP 0.0 immediate).
20296
20297 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
20298 Add the "const_double" to the list of operand constraints.
20299
20300 2016-04-01 Jakub Jelinek <jakub@redhat.com>
20301
20302 PR rtl-optimization/70467
20303 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
20304 If low word of the last operand is 0, just emit addition/subtraction
20305 for the high word.
20306
20307 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20308
20309 PR target/70404
20310 * config/s390/s390.c (s390_expand_insv): Check for everything
20311 constant instead of just VOIDmode stuff.
20312
20313 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20314
20315 PR target/70496
20316 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
20317
20318 2016-04-01 Nathan Sidwell <nathan@acm.org>
20319
20320 * tree.def (TRY_CATCH_EXPR): Correct documentation.
20321
20322 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
20323
20324 PR rtl-optimization/70461
20325 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
20326 is necessary.
20327
20328 2016-03-31 Martin Liska <mliska@suse.cz>
20329
20330 PR hsa/70399
20331 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
20332 a tree value or an immediate integer value to a buffer
20333 that is eventually copied to a BRIG section.
20334 (emit_immediate_operand): Call the function here.
20335 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
20336 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
20337 of class' fields that are removed.
20338 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
20339 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
20340 m_brig_repr_size fields.
20341
20342 2016-03-31 Martin Liska <mliska@suse.cz>
20343
20344 PR hsa/70391
20345 * hsa-gen.c (hsa_function_representation::update_dominance): New
20346 function.
20347 (convert_addr_to_flat_segment): Likewise.
20348 (gen_hsa_memory_set): New alignment argument.
20349 (gen_hsa_ctor_assignment): Likewise.
20350 (gen_hsa_insns_for_single_assignment): Provide alignment
20351 to gen_hsa_ctor_assignment.
20352 (gen_hsa_insns_for_direct_call): Add new argument.
20353 (expand_lhs_of_string_op): New function.
20354 (expand_string_operation_builtin): Likewise.
20355 (expand_memory_copy): New function.
20356 (expand_memory_set): New function.
20357 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
20358 (convert_switch_statements): Change signature.
20359 (generate_hsa): Use a return value of the function.
20360 (pass_gen_hsail::execute): Do not call
20361 convert_switch_statements here.
20362 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
20363 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
20364 (hsa_function_representation::update_dominance): New function.
20365
20366 2016-03-31 Martin Liska <mliska@suse.cz>
20367
20368 PR hsa/70391
20369 * hsa-brig.c (emit_directive_variable): Emit alignment
20370 according to hsa_symbol::m_align.
20371 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
20372 (dump_hsa_symbol): Dump alignment of HSA symbols.
20373 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
20374 (gen_hsa_addr_with_align): New function.
20375 (hsa_bitmemref_alignment): Use newly added function.
20376 (gen_hsa_insns_for_load): Likewise.
20377 (gen_hsa_insns_for_store): Likewise.
20378 (gen_hsa_memory_copy): New argument added.
20379 (gen_hsa_insns_for_single_assignment): Respect
20380 alignment for assignments processed via gen_hsa_memory_copy.
20381 (gen_hsa_insns_for_direct_call): Likewise.
20382 (gen_hsa_insns_for_return): Likewise.
20383 (gen_function_def_parameters): Set default alignment.
20384 * hsa.c (hsa_object_alignment): New function.
20385 (hsa_byte_alignment): Pasted function.
20386 * hsa.h (hsa_symbol::m_align): New field.
20387
20388 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20389
20390 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
20391 scratch field for goto case.
20392
20393 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
20394
20395 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
20396
20397 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
20398
20399 PR target/70442
20400 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
20401 (scalar_chain::convert_insn): Call convert_op for reg
20402 moves to handle undefined registers.
20403
20404 2016-03-31 Nathan Sidwell <nathan@acm.org>
20405
20406 PR c++/70393
20407 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
20408 Assert we don't want to move backwards.
20409
20410 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
20411
20412 PR target/70453
20413 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
20414
20415 2016-03-31 Jakub Jelinek <jakub@redhat.com>
20416
20417 PR rtl-optimization/70460
20418 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
20419 with operand from REG_LABEL_OPERAND, instead substitute
20420 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
20421 Don't do anything for REG_NON_LOCAL_GOTO jumps.
20422
20423 2016-03-31 Martin Liska <mliska@suse.cz>
20424
20425 * passes.c (execute_one_pass): Do not call
20426 todo_after for a discarded function.
20427
20428 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20429
20430 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
20431 (no_cost, infinite_cost): Initialize the new field.
20432 (get_computation_cost_at): Record setup cost.
20433 (determine_use_iv_cost_address): Skip cost computation for sub
20434 uses if we can estimate it without losing accuracy.
20435
20436 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20437
20438 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
20439 estimates here.
20440 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20441 max_loop_iterations_int.
20442 (tree_unswitch_outer_loop): Likewise.
20443 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
20444 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20445
20446 2016-03-30 Richard Biener <rguenther@suse.de>
20447
20448 PR middle-end/70450
20449 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
20450
20451 2016-03-30 Jakub Jelinek <jakub@redhat.com>
20452
20453 PR target/70421
20454 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
20455 in gen_blendm expander.
20456
20457 2016-03-30 Nick Clifton <nickc@redhat.com>
20458
20459 PR target/62254
20460 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
20461 case where we are already provided with an SImode SUBREG.
20462
20463 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
20464
20465 PR target/70439
20466 * config/i386/i386.c (ix86_expand_epilogue): Properly check
20467 conflict between DRAP register and __builtin_eh_return.
20468
20469 2016-03-30 Michael Matz <matz@suse.de>
20470 Richard Biener <rguenther@suse.de>
20471
20472 PR ipa/12392
20473 * ipa-polymorphic-call.c (struct type_change_info): Change
20474 speculative to an unsigned allowing to limit the work we do.
20475 (csftc_abort_walking_p): New inline function..
20476 (check_stmt_for_type_change): Limit the number of may-defs
20477 skipped for speculative devirtualization to
20478 max-speculative-devirt-maydefs.
20479 * params.def (max-speculative-devirt-maydefs): New param.
20480 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
20481
20482 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
20483
20484 PR target/63890
20485 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
20486 and TARGET_MACHO.
20487
20488 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
20489
20490 PR tree-optimization/59124
20491 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
20492 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
20493
20494 2016-03-29 Jeff Law <law@redhat.com>
20495
20496 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
20497
20498 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20499
20500 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
20501 to HOST_WIDE_INT.
20502
20503 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
20504
20505 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
20506 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
20507 gcrt0.o if linking dynamically.
20508
20509 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20510
20511 PR ipa/70283
20512 * ipa-devirt.c (methods_equal_p): New function.
20513 (compare_virtual_tables): Use it.
20514 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
20515 * cgraphclones.c (clone_function_name_1): Use
20516 symbol_table::symbol_suffix_separator.
20517 * coverage.c (build_var): Likewise.
20518 * symtab.c (symbol_table::symbol_suffix_separator): New.
20519
20520 2016-03-29 Jakub Jelinek <jakub@redhat.com>
20521
20522 PR rtl-optimization/70429
20523 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
20524 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
20525 mode != result_mode.
20526
20527 PR c++/70353
20528 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
20529
20530 PR tree-optimization/70405
20531 * ssa-iterators.h (num_imm_uses): Add missing braces.
20532
20533 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
20534
20535 PR rtl-optimization/68695
20536 * ira-color.c (allocno_copy_cost_saving): New.
20537 (improve_allocation): Use it.
20538
20539 2016-03-29 Richard Henderson <rth@redhat.com>
20540
20541 PR middle-end/70355
20542 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
20543
20544 2016-03-29 Richard Biener <rguenther@suse.de>
20545
20546 PR middle-end/70424
20547 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
20548 use alignment returned by get_pointer_alignment_1 if it is
20549 bigger than BITS_PER_UNIT.
20550 * builtins.c (get_pointer_alignment_1): Do not return true
20551 for alignment extracted from SSA info.
20552
20553 2016-03-28 James Bowman <james.bowman@ftdichip.com>
20554
20555 * config/ft32/ft32.opt (mnodiv): New.
20556 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
20557 * doc/invoke.texi (FT32 Options -mnodiv): New.
20558
20559 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
20560
20561 PR target/70406
20562 * config/i386/i386.md (define_split, andn): Fix modes.
20563
20564 2016-03-26 Richard Biener <rguenther@suse.de>
20565 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20566
20567 PR ipa/70366
20568 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
20569 instead of
20570 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
20571 as 2nd argument to cl_optimization_restore().
20572
20573 2016-03-25 Richard Henderson <rth@redhat.com>
20574
20575 PR target/70120
20576 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
20577 * config/aarch64/aarch64-protos.h: Declare it.
20578 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
20579
20580 2016-03-25 Alan Modra <amodra@gmail.com>
20581
20582 PR target/70052
20583 * config/rs6000/constraints.md (j): Simplify.
20584 * config/rs6000/predicates.md (easy_fp_constant): Exclude
20585 decimal float 0.D.
20586 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
20587 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
20588 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
20589 in all constraint alternatives.
20590 (movtd_64bit_nodm): Delete "j" constraint alternative.
20591
20592 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20593
20594 * tree-ssa-propagate.c: Enhance docs for
20595 SSA_PROP_NOT_INTERESTING.
20596
20597 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20598
20599 * doc/extend.texi: Fix typo in documentation to pure attribute.
20600
20601 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
20602
20603 PR target/70319
20604 * config/pa/pa.md (bswapdi2): Use a scratch register.
20605
20606 2016-03-24 Richard Henderson <rth@redhat.com>
20607
20608 PR middle-end/69845
20609 * fold-const.c (extract_muldiv_1): Correct test for multiplication
20610 overflow.
20611
20612 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
20613
20614 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
20615 using ix86_expand_binary_operator instead of gen_andsi3.
20616
20617 2016-03-24 Richard Biener <rguenther@suse.de>
20618
20619 PR tree-optimization/70396
20620 * tree-vect-stmts.c (vectorizable_comparison): Use
20621 get_vectype_for_scalar_type.
20622
20623 2016-03-24 Richard Biener <rguenther@suse.de>
20624
20625 PR middle-end/70370
20626 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
20627 with register bases.
20628
20629 2016-03-24 Richard Biener <rguenther@suse.de>
20630
20631 PR tree-optimization/70372
20632 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
20633 build_all_ones_cst to also handle vector types correctly.
20634
20635 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20636
20637 PR target/70381
20638 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
20639 -mfloat128 here.
20640
20641 2016-03-23 Marek Polacek <polacek@redhat.com>
20642
20643 PR c++/69884
20644 * doc/invoke.texi: Document -Wignored-attributes.
20645
20646 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20647
20648 PR tree-optimization/69042
20649 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20650 parameter from 30 to 40.
20651
20652 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20653
20654 PR tree-optimization/69042
20655 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20656 for use with constant offset stripped in base.
20657
20658 2016-03-23 Richard Biener <rguenther@suse.de>
20659
20660 PR middle-end/70251
20661 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20662 mode compatibility check.
20663 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20664
20665 2016-03-23 Jeff Law <law@redhat.com>
20666
20667 PR tree-optimization/64058
20668 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20669 CONFLICT_COUNT.
20670 (struct ssa_conflicts): Move up earlier in the file.
20671 (conflicts_, var_map_): New static variables.
20672 (initialize_conflict_count): New function to initialize the
20673 CONFLICT_COUNT field for each conflict pair.
20674 (compare_pairs): Lazily initialize the conflict count and use it
20675 as the first tie-breaker.
20676 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
20677 and wipe conflicts_ and map_ around the call to qsort. Remove
20678 special case for 2 coalesce pairs.
20679 * bitmap.c (bitmap_count_unique_bits): New function.
20680 (bitmap_count_bits_in_word): New function, extracted from
20681 bitmap_count_bits.
20682 (bitmap_count_bits): Use bitmap_count_bits_in_word.
20683 * bitmap.h (bitmap_count_unique_bits): Declare it.
20684
20685 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
20686
20687 PR target/69917
20688 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20689 transparent alias chain for decl assembler name.
20690 * config/sol2.c (solaris_assemble_visibility): Likewise.
20691
20692 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20693
20694 * config/arm/arm1020e.md (1020call_op): Reduce reservation
20695 duration.
20696 (v10_fdivs): Likewise.
20697 (v10_fdivd): Likewise.
20698
20699 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20700
20701 PR driver/70132
20702 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20703 to not call fclose twice on file.
20704
20705 2016-03-23 Jakub Jelinek <jakub@redhat.com>
20706
20707 PR tree-optimization/70354
20708 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20709 oprnd0 is wider than oprnd1 and there is a cast from the wider
20710 type to oprnd1, mask it with the mask of the narrower type.
20711
20712 PR target/70321
20713 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20714 Optimize TARGET_STV splitters, if high or low word of last argument
20715 is 0 or -1.
20716
20717 2016-03-22 Jeff Law <law@redhat.com>
20718
20719 PR target/70232
20720 tree-ssa-threadbackward.c
20721 (fsm_find_control_statement_thread_paths): Correctly distinguish
20722 between old style jump threads vs FSM jump threads.
20723
20724 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20725
20726 PR target/70302
20727 * config/i386/i386.c (scalar_chain::convert_op): Support
20728 uninitialized register usage case.
20729
20730 2016-03-22 Richard Biener <rguenther@suse.de>
20731
20732 PR middle-end/70251
20733 * genmatch.c (gen_transform): Adjust last parameter to a three-state
20734 int...
20735 (capture::gen_transform): ... to change behavior when substituting
20736 a condition into cond or not-cond expr context.
20737 (dt_simplify::gen_1): Adjust.
20738 * gimple-match-head.c: Include gimplify.h for unshare_expr.
20739 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20740 last change and instead change to
20741 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20742 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20743
20744 2016-03-22 Anthony Green <green@moxielogic.com>
20745
20746 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
20747 issue for moxiebox targets.
20748 (CC1PLUS_SPEC): Ditto.
20749
20750 2016-03-22 Richard Biener <rguenther@suse.de>
20751
20752 PR middle-end/70333
20753 * fold-const.c (extract_muldiv_1): Properly perform multiplication
20754 in the wide type.
20755
20756 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20757
20758 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20759
20760 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20761
20762 PR target/70325
20763 * config/i386/i386.c (def_builtin): Handle
20764 OPTION_MASK_ISA_AVX512VL to be and-ed with other
20765 bits.
20766 (const struct builtin_description bdesc_special_args[]):
20767 Remove duplicate ISA bits.
20768
20769 2016-03-22 Jakub Jelinek <jakub@redhat.com>
20770
20771 PR target/70329
20772 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20773 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
20774 in a way that works also for AVX512BW.
20775
20776 PR target/70300
20777 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20778 instead of source if operands[1] is xmm16 and above and
20779 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20780 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20781
20782 PR c++/70295
20783 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20784 on assign if (*from_p) is a comparison, set it to
20785 TREE_NO_WARNING (*from_p).
20786
20787 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20788
20789 PR middle-end/70326
20790 * lra.c (restore_scratches): Ignore deleted insns.
20791
20792 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20793 Jakub Jelinek <jakub@redhat.com>
20794
20795 PR tree-optimization/70317
20796 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20797 to HONOR_NANS.
20798
20799 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20800
20801 PR target/70327
20802 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20803 of ix86_expand_move.
20804 (movoi): Ditto.
20805 (movti): Use general_operand for operand 1 predicate.
20806
20807 2016-03-21 Martin Liska <mliska@suse.cz>
20808
20809 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20810 insns.
20811 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20812
20813 2016-03-21 Martin Liska <mliska@suse.cz>
20814
20815 PR ipa/70306
20816 * ipa-icf.c (sem_function::parse): Skip static
20817 constructors and destructors.
20818
20819 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20820
20821 PR target/70296
20822 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20823 function-like macro, peek following token(s) if it is followed
20824 by CPP_OPEN_PAREN token with optional padding in between, and
20825 if not, don't treat it like a macro.
20826
20827 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20828 Alexander Monakov <amonakov@ispras.ru>
20829
20830 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20831 for the stabs debug format.
20832
20833 2016-03-21 Richard Biener <rguenther@suse.de>
20834
20835 PR tree-optimization/70310
20836 * tree-vect-generic.c (expand_vector_condition): Fold the built
20837 condition.
20838
20839 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20840
20841 PR target/70293
20842 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20843 Block third alternative for AVX-512VL target,
20844
20845 2016-03-21 Martin Liska <mliska@suse.cz>
20846
20847 PR hsa/70234
20848 * hsa-brig.c (emit_function_directives): Mark unemitted
20849 global variables for emission.
20850 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20851 (get_symbol_for_decl): Likewise.
20852 * hsa.h (struct hsa_symbol): New flag.
20853
20854 2016-03-21 Richard Biener <rguenther@suse.de>
20855
20856 PR tree-optimization/70288
20857 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20858 we do not estimate unsimplified all-constant conditionals or
20859 switches as optimized away.
20860
20861 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20862
20863 PR rtl-optimization/69102
20864 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20865 when we have a readonly dependency context.
20866
20867 2016-03-18 Jeff Law <law@redhat.com>
20868
20869 PR rtl-optimization/70263
20870 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20871 (update_equiv_regs): When trying to move a store to after the insn
20872 that sets the source of the store, make sure the store occurs after
20873 the insn that sets the source of the store. When successful note
20874 the REG_EQUIV note created in the dump file.
20875
20876 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20877 Bernd Schmidt <bschmidt@redhat.com>
20878
20879 * doc/extend.texi: Document more potential problems with basic asms.
20880
20881 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20882
20883 PR rtl-optimization/70278
20884 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20885 VOIDmode.
20886
20887 2016-03-18 Jason Merrill <jason@redhat.com>
20888
20889 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20890
20891 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20892
20893 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20894 values to 128b regs.
20895
20896 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20897
20898 PR tree-optimization/70252
20899 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20900 boolean vector has a proper number of elements.
20901 (supportable_narrowing_operation): Likewise.
20902
20903 2016-03-18 Tom de Vries <tom@codesourcery.com>
20904
20905 PR ipa/70269
20906 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20907
20908 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20909
20910 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20911 instead of replace_rtx for DEBUG_INSNs.
20912
20913 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20914
20915 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20916 load type reservations.
20917
20918 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20919
20920 PR target/70188
20921 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20922 define_constraint for "Q" and "T" constraints.
20923
20924 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20925
20926 Tweak the pipeline model for Exynos M1
20927
20928 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20929 model.
20930
20931 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20932
20933 PR c/70264
20934 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20935 where one or both locations aren't within a line_map.
20936
20937 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20938
20939 PR driver/70192
20940 * opts.c (finish_options): Don't set flag_pie to the default if
20941 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20942 if it is -1.
20943
20944 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20945
20946 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20947 true as ALL_REGS argument to replace_rtx.
20948
20949 2016-03-17 Richard Biener <rguenther@suse.de>
20950
20951 PR debug/70271
20952 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20953 last.
20954
20955 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20956
20957 PR target/70245
20958 * rtl.h (replace_rtx): Add ALL_REGS argument.
20959 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20960 equality and assert mode is the same, instead of just rtx pointer
20961 equality.
20962 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20963 true as ALL_REGS argument to replace_rtx.
20964
20965 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20966
20967 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20968 for boolean vector with vector mode only.
20969 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20970
20971 2016-03-17 Nick Clifton <nickc@redhat.com>
20972
20973 PR target/70162
20974 * config/rx/rx.c (rx_print_integer): Print negative constants in
20975 decimal.
20976
20977 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20978
20979 PR target/70261
20980 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20981
20982 2016-03-16 Richard Henderson <rth@redhat.com>
20983 Richard Biener <rguenth@suse.de>
20984
20985 PR middle-end/70240
20986 PR middle-end/68215
20987 PR tree-opt/68714
20988 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20989 first operand as is_gimple_condexpr.
20990
20991 PR middle-end/70240
20992 PR middle-end/68215
20993 Revert r231575
20994 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
20995 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20996 Do not gimplify the result.
20997 (do_unop): Adjust call to tree_vec_extract.
20998 (do_binop): Likewise.
20999 (do_compare): Likewise.
21000 (do_plus_minus): Likewise.
21001 (do_negate): Likewise.
21002 (expand_vector_condition): Likewise.
21003 (do_cond): Likewise.
21004
21005 2016-03-16 Richard Henderson <rth@redhat.com>
21006
21007 PR target/70048
21008 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
21009 (aarch64_classify_address): Use it.
21010 (aarch64_legitimize_address): Force all subexpressions of PLUS
21011 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
21012
21013 2016-03-16 Jakub Jelinek <jakub@redhat.com>
21014 Richard Biener <rguenth@suse.de>
21015
21016 PR target/70245
21017 * rtlanal.c (replace_rtx): For REG, if from is a REG,
21018 return to even if only REGNO is equal, and assert
21019 mode is the same.
21020
21021 2016-03-11 Jeff Law <law@redhat.com>
21022
21023 PR rtl-optimization/70224
21024 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
21025
21026 2016-03-16 Richard Henderson <rth@redhat.com>
21027
21028 PR middle-end/70199
21029 * function.h (struct function): Add has_forced_label_in_static.
21030 * gimplify.c (force_labels_r): Set it.
21031 * lto-streamer-in.c (input_struct_function_base): Read it.
21032 * lto-streamer-out.c (output_struct_function_base): Write it.
21033 * tree-inline.c (has_label_address_in_static_1): Remove.
21034 (copy_forbidden): Remove fndecl parameter; test
21035 has_forced_label_in_static.
21036 (inline_forbidden_p): Update call to copy_forbidden.
21037 (tree_versionable_function_p): Likewise.
21038 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
21039 (chkp_versioning): Likewise.
21040 * tree-inline.h (copy_forbidden): Update decl.
21041
21042 2016-03-16 Marek Polacek <polacek@redhat.com>
21043
21044 PR c/70093
21045 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
21046 function being thunked if the result type doesn't have fixed size.
21047 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
21048 doesn't have fixed size.
21049
21050 2016-03-16 Bin Cheng <bin.cheng@arm.com>
21051
21052 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
21053 reporting malformed loop nest.
21054
21055 2016-03-16 Tom de Vries <tom@codesourcery.com>
21056
21057 PR lto/70187
21058 * ipa-devirt.c (possible_polymorphic_call_targets): Move
21059 nodes.length () == 1 test to before first nodes[0] access.
21060
21061 2016-03-16 Tom de Vries <tom@codesourcery.com>
21062
21063 PR tree-optimization/68715
21064 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
21065 single_pred_p test.
21066
21067 2016-03-16 Tom de Vries <tom@codesourcery.com>
21068
21069 PR tree-optimization/68809
21070 * graphite-scop-detection.c (same_close_phi_node): Test if result types
21071 are the same.
21072
21073 2016-03-16 Carlos O'Donell <carlos@redhat.com>
21074 Sandra Loosemore <sandra@codesourcery.com>
21075
21076 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
21077 on leaf attribute. Mention ELF interposition problems.
21078
21079 2016-03-16 Alan Modra <amodra@gmail.com>
21080
21081 PR rtl-optimization/69195
21082 PR rtl-optimization/47992
21083 * ira.c (indirect_jump_optimize): Ignore artificial defs.
21084 Add comments.
21085
21086 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
21087
21088 PR bootstrap/69513
21089 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
21090
21091 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21092
21093 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
21094
21095 2016-03-15 Jakub Jelinek <jakub@redhat.com>
21096
21097 PR rtl-optimization/70222
21098 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21099 optimization if mode is different from result_mode, queue up masking
21100 of the result in outer_op. Formatting fix.
21101
21102 PR middle-end/70239
21103 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
21104 of safe_grow.
21105
21106 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21107
21108 PR rtl-optimization/69032
21109 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
21110 looping backwards over basic block insns.
21111
21112 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21113
21114 PR target/66660
21115 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
21116 to non-speculative when propagating trap bits.
21117
21118 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21119
21120 PR rtl-optimization/63384
21121 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
21122 DEBUG_INSN_P insns.
21123
21124 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21125
21126 PR target/64411
21127 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
21128 factored out from ...
21129 (sched_analyze_insn): ... here.
21130 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
21131 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
21132 get_implicit_reg_pending_clobbers in it.
21133 (setup_id_reg_sets): Use setup_id_implicit_regs.
21134 (deps_init_id): Ditto.
21135
21136 2016-03-15 Tom de Vries <tom@codesourcery.com>
21137
21138 PR ipa/70161
21139 * cgraph.c (cgraph_node::get_body): Save, reset and restore
21140 dump_file_name.
21141 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
21142 execute_function_dump.
21143 (execute_one_pass): Don't dump function if it will be dumped after ipa
21144 transform.
21145
21146 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21147
21148 * genrecog.c (match_pattern_2): If pred is NULL don't call
21149 safe_predicate_mode on it.
21150
21151 2016-03-14 Jakub Jelinek <jakub@redhat.com>
21152
21153 PR middle-end/70219
21154 * lra-constraints.c (delete_move_and_clobber): Change assertion
21155 to also allow dregno == 0.
21156
21157 2016-03-14 Richard Henderson <rth@redhat.com>
21158
21159 PR tree-opt/68714
21160 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
21161 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
21162 (reassociate_bb): Use optimize_vec_cond_expr; avoid
21163 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
21164 on vectors.
21165
21166 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
21167
21168 PR target/70083
21169 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
21170 regs.
21171 (lra_create_live_ranges_1): initialize hard register biggest_mode to
21172 VOIDmode.
21173 * lra-constraints.c (split_reg): For hard regs, try to find the
21174 biggest single-register mode used in the function.
21175
21176 2016-03-14 Richard Biener <rguenther@suse.de>
21177
21178 PR tree-optimization/56365
21179 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
21180 constants to compare against.
21181
21182 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
21183
21184 PR target/70098
21185 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
21186 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
21187 (define_split for the GPR case): Use int_reg_operand instead of
21188 gpc_reg_operand for the output.
21189
21190 2016-03-14 Tom de Vries <tom@codesourcery.com>
21191
21192 PR tree-optimization/70045
21193 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
21194 create_empty_if_region_on_edge argument.
21195
21196 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
21197
21198 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
21199 (STACK_CHECK_PROTECT): Likewise.
21200 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21201 (STACK_CHECK_PROTECT): Likewise.
21202 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21203 (STACK_CHECK_PROTECT): Likewise.
21204 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
21205 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21206 (STACK_CHECK_PROTECT): Likewise.
21207
21208 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
21209
21210 PR rtl-optimization/69307
21211 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
21212 registers in modes that span more than one register.
21213
21214 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
21215
21216 PR target/69614
21217 * lra-constraints.c (delete_move_and_clobber): New.
21218 (remove_inheritance_pseudos): Use it.
21219
21220 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
21221
21222 PR ada/70017
21223 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
21224 the libcall is LCT_THROW.
21225 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
21226 for the checking routine.
21227
21228 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21229
21230 PR target/70131
21231 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
21232 optimization if we have direct move.
21233 (roundu32<mode>2_fprs): Likewise.
21234
21235 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
21236
21237 PR target/70123
21238 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
21239 be rematerialized.
21240 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
21241 Arguments swapped. All callers changed. Take reg_renumber into
21242 account, and Calculate and compare register ranges for hard regs.
21243
21244 2016-03-11 Jeff Law <law@redhat.com>
21245
21246 PR tree-optimization/70190
21247 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21248 Handle cases where we can not extract the taken edge, even though we
21249 found a constant value.
21250
21251 PR tree-optimization/64058
21252 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
21253 (num_coalesce_pairs): Move up earlier in file.
21254 (find_coalesce_pair): Initialize the INDEX field for each pair
21255 discovered.
21256 (compare_pairs): No longer sort on the elements in each pair.
21257 Instead break ties with the index of the coalesce pair.
21258
21259 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21260
21261 PR target/70002
21262 * config/aarch64/aarch64-protos.h
21263 (aarch64_save_restore_target_globals): New prototype.
21264 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
21265 Call the above when popping pragma.
21266 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
21267 New function.
21268 (aarch64_set_current_function): Rewrite using the above.
21269
21270 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21271
21272 PR tree-optimization/70177
21273 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
21274 (extract_ops_from_tree): ... this. In the 2 argument
21275 overload remove _1 suffix.
21276 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
21277 (extract_ops_from_tree): ... this.
21278 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
21279 Adjust callers.
21280 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
21281 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
21282 extract_ops_from_tree instead of 2 operand one.
21283
21284 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
21285
21286 PR tree-optimization/70013
21287 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
21288 for constant-pool entries.
21289
21290 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21291
21292 PR rtl-optimization/70174
21293 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
21294 followed by gen_lowpart on force_reg instead of just gen_lowpart.
21295
21296 PR tree-optimization/70169
21297 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
21298 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
21299 for unknown codes.
21300
21301 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
21302 Jakub Jelinek <jakub@redhat.com>
21303
21304 PR target/70160
21305 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
21306 of uninitialized values.
21307
21308 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21309
21310 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
21311 define_expand.
21312 ("*trunctddd2"): New pattern definition.
21313 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
21314 TD->DD truncation.
21315
21316 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21317
21318 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
21319 definitions for BFP and DFP rounding modes.
21320 ("fixuns_truncdddi2", "fixuns_trunctddi2")
21321 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
21322 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
21323 ("fix_trunctf<mode>2"): Use the new constants instead of magic
21324 numbers.
21325
21326 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21327
21328 * config/s390/constraints.md: Adjust comment.
21329 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
21330 s390_decompose_addrstyle_without_index.
21331 * config/s390/predicates.md (shift_count_or_setmem_operand):
21332 Rename to setmem_operand.
21333 * config/s390/s390-protos.h
21334 (s390_decompose_shift_count): Rename to
21335 s390_decompose_addrstyle_without_index.
21336 * config/s390/s390.c (s390_decompose_shift_count)
21337 (s390_mem_constraint, print_shift_count_operand)
21338 (print_operand_address, print_operand): Rename
21339 s390_decompose_shift_count to
21340 s390_decompose_addrstyle_without_index and rename
21341 print_shift_count_operand to print_addrstyle_operand troughout the
21342 file.
21343 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
21344 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
21345 Rename shift_count_or_setmem_operand to setmem_operand.
21346 * config/s390/vx-builtins.md ("vec_insert<mode>")
21347 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
21348 nonmemory_operand.
21349
21350 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21351
21352 PR target/70168
21353 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21354 Handle overlapping retval and newval.
21355
21356 2016-03-10 Nick Clifton <nickc@redhat.com>
21357
21358 PR target/7044
21359 * config/aarch64/aarch64.c
21360 (aarch64_override_options_after_change_1): When forcing
21361 flag_omit_frame_pointer to be true, use a special value that can
21362 be detected if this function is called again, thus preventing
21363 flag_omit_leaf_frame_pointer from being forced to be false.
21364
21365 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21366
21367 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
21368 Set x_flag_omit_leaf_frame_pointer when handling
21369 -momit-leaf-frame-pointer.
21370
21371 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21372
21373 PR lto/69589
21374 * cgraph.c (cgraph_node::dump): Dump split_part and
21375 indirect_call_target.
21376 * cgraph.h (cgraph_node): Add indirect_call_target flag.
21377 * ipa.c (has_addr_references_p): Cleanup.
21378 (is_indirect_call_target_p): New.
21379 (walk_polymorphic_call_targets): Do not mark virtuals that may be
21380 called indirectly as local.
21381 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
21382
21383 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21384
21385 PR ipa/69630
21386 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21387 on cxa_pure_virtual.
21388
21389 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21390
21391 PR lto/69589
21392 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
21393
21394 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21395
21396 PR lto/69589
21397 * tree.c (need_assembler_name_p): Only record main variant type names.
21398
21399 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21400
21401 PR target/70113.
21402 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
21403 Always define to 0 or 1.
21404 (TARGET_FIX_ERR_A53_843419): New macro.
21405 * config/aarch64/aarch64-elf-raw.h
21406 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
21407 * config/aarch64/aarch64-linux.h: Likewise.
21408 * config/aarch64/aarch64.c
21409 (aarch64_override_options_after_change_1): Do not default
21410 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
21411 843419 is on.
21412 (aarch64_attributes): Handle fix-cortex-a53-843419.
21413 (aarch64_can_inline_p): Likewise.
21414 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
21415
21416 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
21417 Jakub Jelinek <jakub@redhat.com>
21418
21419 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
21420 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
21421 DECL_COMMONS if flag_unconstrained_commons is set.
21422 * tree-dfa.c (get_ref_base_and_extent): Likewise.
21423 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
21424 (funconstrained-commons): Document.
21425
21426 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21427
21428 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
21429 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
21430
21431 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
21432
21433 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
21434 has a proper number of elements.
21435
21436 2016-03-10 Alan Modra <amodra@gmail.com>
21437
21438 PR rtl-optimization/69195
21439 PR rtl-optimization/47992
21440 * ira.c (recorded_label_ref): Delete.
21441 (update_equiv_regs): Return void.
21442 (indirect_jump_optimize): New function.
21443 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
21444 before regstat_compute_ri. Don't rebuild_jump_labels here.
21445 Delete update_regstat.
21446
21447 2016-03-10 Richard Biener <rguenther@suse.de>
21448
21449 PR tree-optimization/70128
21450 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21451 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
21452
21453 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21454
21455 PR tree-optimization/70152
21456 * tree-sra.c (replace_removed_params_ssa_names): Copy over
21457 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
21458
21459 PR target/70086
21460 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
21461 instead of gen_sse2_loadlpd.
21462 * config/i386/sse.md (*vec_concatv2df): Rename to...
21463 (vec_concatv2df): ... this.
21464
21465 PR tree-optimization/70127
21466 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
21467
21468 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21469
21470 PR c/68473
21471 PR c++/70105
21472 * diagnostic-show-locus.c (compatible_locations_p): New function.
21473 (layout::layout): Sanitize ranges using compatible_locations_p.
21474
21475 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21476
21477 PR c/68473
21478 PR c++/70105
21479 * diagnostic-show-locus.c (layout_range::layout_range): Replace
21480 location_range param with three const expanded_locations * and a
21481 bool.
21482 (layout::layout): Replace call to
21483 rich_location::lazily_expand_location with get_expanded_location.
21484 Extract the range and perform location expansion here, passing
21485 the results to the layout_range ctor.
21486 * diagnostic.c (source_range::debug): Delete.
21487 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
21488 of rich_location::get_expanded_location.
21489 * gcc-rich-location.c (get_range_for_expr): Delete.
21490 (gcc_rich_location::add_expr): Reimplement to avoid the
21491 rich_location::add_range overload that took a location_range,
21492 passing a location_t instead.
21493
21494 2016-03-09 Richard Biener <rguenther@suse.de>
21495 Jakub Jelinek <jakub@redhat.com>
21496
21497 PR tree-optimization/70138
21498 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21499 Also skip vect_double_reduction_def.
21500
21501 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21502
21503 PR target/70049
21504 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
21505 if the operand is "m".
21506
21507 2016-03-09 Nathan Sidwell <nathan@acm.org>
21508
21509 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
21510
21511 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21512
21513 * config/i386/i386.c (processor_target_table): Fix cost table
21514 intialization order for znver1.
21515
21516 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21517
21518 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
21519 - becuase -> because.
21520 * ipa-reference.c (ignore_module_statics): Likewise.
21521 * cgraph.c (cgraph_node::get_body): Likewise.
21522 * ipa-inline.c (early_inliner): Likewise.
21523 * ipa-devirt.c (types_same_for_odr): Likewise.
21524 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
21525 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
21526
21527 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21528
21529 * tree-ssa-math-opts.c: Fix typo in comment.
21530
21531 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21532
21533 PR target/70110
21534 * config/i386/i386.c (scalar_chain::make_vector_copies,
21535 scalar_chain::convert_reg): Call end_sequence in between
21536 get_insns and emit_conversion_insns rather than after both
21537 calls.
21538
21539 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
21540
21541 PR target/70064
21542 * config/i386/i386.h (machine_function): Add
21543 pc_thunk_call_expanded flag.
21544 (ix86_pc_thunk_call_expanded): New define.
21545 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
21546 (*set_got): Rename insn pattern from set_got.
21547 (*set_got_labelled): Rename inst pattern from set_got_labelled.
21548 * config/i386/i386.c (ix86_compute_frame_layout): Use
21549 ix86_pc_thunk_call_expanded to prevent red-zone.
21550
21551 2016-03-07 Martin Jambor <mjambor@suse.cz>
21552
21553 * hsa.h (hsa_get_ctor_statements): Declare.
21554 (hsa_get_dtor_statements): Likewise.
21555 (hsa_get_kernel_dispatch_type): Likewise.
21556 * hsa.c (hsa_get_ctor_statements): New function.
21557 (hsa_get_dtor_statements): Likewise.
21558 (hsa_get_kernel_dispatch_type): Likewise.
21559 * hsa-brig.c (hsa_cdtor_statements): Removed.
21560 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
21561 hsa_get_dtor_statements.
21562 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
21563 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
21564
21565 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
21566
21567 * config/arm/arm-cores.def (cortex-r8): New.
21568 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
21569 * config/arm/arm-tune.md: Likewise.
21570 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
21571
21572 2016-03-07 Martin Sebor <msebor@redhat.com>
21573
21574 PR rtl-optimization/19705
21575 * doc/invoke.texi (Options That Control Optimization): Clarify
21576 -fno-branch-count-reg.
21577
21578 2016-02-26 Richard Biener <rguenther@suse.de>
21579 Jeff Law <law@redhat.com>
21580
21581 PR tree-optimization/69740
21582 * cfghooks.c (remove_edge): Request loop fixups if we delete
21583 an edge that might turn an irreducible loop into a natural
21584 loop.
21585 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
21586 Move after definition of loops_state_clear.
21587
21588 2016-03-07 Bin Cheng <bin.cheng@arm.com>
21589
21590 PR rtl-optimization/69052
21591 * rtlanal.c (commutative_operand_precedence): Set higher precedence
21592 to CONST_WIDE_INT.
21593
21594 2016-03-07 Tom de Vries <tom@codesourcery.com>
21595
21596 PR tree-optimization/70116
21597 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
21598 is_tm_ending stmts and ubsan/asan internal functions.
21599 (find_duplicate): Use it. Don't test is_tm_ending here.
21600
21601 2016-03-07 Richard Biener <rguenther@suse.de>
21602
21603 PR tree-optimization/70115
21604 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
21605 (propagate_constants_for_unrolling): Use replace_uses_by.
21606
21607 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
21608
21609 PR middle-end/69916
21610 * omp-low.c (struct oacc_loop): Add ifns.
21611 (new_oacc_loop_raw): Initialize it.
21612 (finish_oacc_loop): Clear mask & flags if no ifns.
21613 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
21614 (oacc_loop_xform_loop): Add ifns arg & adjust.
21615 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
21616
21617 2016-03-07 Richard Henderson <rth@redhat.com>
21618
21619 PR rtl-opt/70061
21620 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
21621 (insert_value_copy_on_edge): Likewise.
21622
21623 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21624
21625 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
21626
21627 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21628
21629 PR target/62281
21630 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
21631
21632 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21633
21634 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
21635
21636 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21637
21638 Fix sseimul type attribute.
21639 * config/i386/znver1.md
21640 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21641 znver1_sseimul_avx256_load) : Fix the type attribute.
21642 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21643 pipe usage and latency.
21644
21645 2016-03-05 Jakub Jelinek <jakub@redhat.com>
21646
21647 PR c++/70084
21648 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21649 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21650 to the right type.
21651
21652 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21653
21654 PR c/69973
21655 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21656
21657 PR rtl-optimization/69941
21658 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21659 the reg share its mode.
21660
21661 2016-03-04 Jeff Law <law@redhat.com>
21662
21663 PR tree-optimization/69196
21664 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21665 If the both SSA_NAMEs are anonymous, then consider them unassociated
21666 and include the PHI in the statement count.
21667
21668 2016-03-05 Tom de Vries <tom@codesourcery.com>
21669
21670 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21671 construct in oacc routine. Check for oacc region in oacc routine.
21672
21673 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21674
21675 PR target/70062
21676 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
21677 2016-02-22 changes, instead don't recurse if RECUR is already true.
21678 Don't change *dynamic_check if RECUR. Adjust recursive caller
21679 to pass true to the new argument.
21680 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21681
21682 PR target/70059
21683 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21684 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21685 fixes.
21686 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
21687
21688 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21689
21690 PR rtl-optimization/57676
21691 * lra-assigns.c (lra_assign): Guard test for maximum iterations
21692 with flag_checking.
21693
21694 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
21695
21696 * tree-vect-patterns.c (search_type_for_mask): Handle
21697 comparison of booleans.
21698
21699 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21700
21701 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21702 Fix @xref usage.
21703
21704 PR debug/69947
21705 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21706 all other ops that have dw_val_class_die_ref operands,
21707 and DW_OP_GNU_entry_value.
21708
21709 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21710
21711 PR rtl-optimization/69904
21712 * config/arm/arm.c (arm_cannot_copy_insn_p):
21713 Return true for load-exclusive instructions.
21714
21715 2016-03-03 Jakub Jelinek <jakub@redhat.com>
21716
21717 PR target/70021
21718 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21719 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21720 the pattern no matter if it is used just by non-pattern, pattern
21721 or mix thereof.
21722 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21723 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21724 oprnd1 def_stmt is in pattern, don't look through it.
21725
21726 2016-03-03 Marek Polacek <polacek@redhat.com>
21727
21728 PR middle-end/70050
21729 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21730
21731 2016-03-03 Martin Liska <mliska@suse.cz>
21732
21733 PR tree-optimization/70043
21734 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21735 previous statement if we see a debug statement.
21736
21737 2016-03-03 Richard Biener <rguenther@suse.de>
21738
21739 PR tree-optimization/55936
21740 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21741 parameter and guard unsafe equivalence use.
21742 (vrp_evaluate_conditional_warnv_with_ops): Always use
21743 safe equivalences but not via the quadratic compare_names
21744 helper.
21745
21746 2016-03-03 Michael Collison <michael.collison@linaro.org>
21747
21748 PR target/70014
21749 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21750 for operand 1 to s_register_operand. Change predicate for operand
21751 2 to arm_not_immediate_operand.
21752
21753 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
21754
21755 * doc/tm.texi: Regenerated.
21756
21757 2016-03-02 Richard Henderson <rth@redhat.com>
21758
21759 PR rtl-opt/67145
21760 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21761 simplification when all args are positive non-fixed registers.
21762
21763 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21764
21765 * target.def (lra_p): Specify that new ports should use LRA.
21766
21767 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21768
21769 PR libgomp/69555
21770 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21771 gimplify_type_sizes the type they refer to.
21772 (omp_notice_variable): Handle reference vars to VLAs.
21773 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21774 reference to VLA decls in the second pass instead of first pass.
21775
21776 2016-03-02 Tom de Vries <tom@codesourcery.com>
21777
21778 PR tree-optimization/68659
21779 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21780 new_expr == NULL_TREE.
21781 (get_new_name): Handle ADDR_EXPR.
21782
21783 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21784
21785 PR rtl-optimization/69052
21786 * loop-invariant.c (canonicalize_address): New function.
21787 (inv_can_prop_to_addr_use): Check validity of address expression
21788 which is canonicalized by above function.
21789
21790 2016-03-02 Alan Modra <amodra@gmail.com>
21791
21792 PR ipa/69990
21793 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21794 larger alignment.
21795
21796 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21797
21798 PR target/70028
21799 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21800 (*movhi_internal): Put mask moves from and to memory separately
21801 from moves from/to GPRs.
21802
21803 2016-03-02 Richard Biener <rguenther@suse.de>
21804
21805 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21806 GENERIC expressions in GIMPLE.
21807
21808 2016-03-02 Richard Biener <rguenther@suse.de>
21809
21810 * config/i386/i386.c (type_natural_mode): Fix typo.
21811
21812 2016-03-02 Nick Clifton <nickc@redhat.com>
21813
21814 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21815
21816 2016-03-02 Richard Biener <rguenther@suse.de>
21817 Uros Bizjak <ubizjak@gmail.com>
21818
21819 PR target/67278
21820 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21821
21822 2016-03-02 Richard Biener <rguenther@suse.de>
21823
21824 PR middle-end/67278
21825 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21826
21827 2016-03-02 Marek Polacek <polacek@redhat.com>
21828
21829 PR c/67854
21830 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21831 "is promoted to" warning.
21832
21833 2016-03-01 DJ Delorie <dj@redhat.com>
21834
21835 * config.gcc: Deprecate mep-*.
21836
21837 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21838
21839 PR middle-end/70025
21840 * lra-constraints.c (regno_val_use_in): New.
21841 (match_reload): Use it instead of regno_use_in.
21842
21843 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21844
21845 PR rtl-optimization/70007
21846 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21847 references present in REG_EQUAL notes attached to non-SET patterns.
21848
21849 2016-03-01 Jeff Law <law@redhat.com>
21850
21851 PR tree-optimization/69196
21852 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21853 Appropriately clamp the number of statements to copy when the
21854 thread path does not traverse a loop backedge.
21855
21856 PR tree-optimization/69196
21857 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21858 Do count some PHIs in the thread path against the insn count. Decrease
21859 final statement count by one as the control statement in the last
21860 block will get removed. Remove special cased code for handling PHIs
21861 in the last block.
21862
21863 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21864
21865 PR target/70027
21866 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21867 asm dialect alternatives to explicit GOTPCREL calls.
21868
21869 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21870
21871 PR ada/70017
21872 * ira.c (do_reload): Issue warning for generic stack checking here...
21873 * reload1.c (reload): ...instead of here and streamline it.
21874
21875 2016-03-01 Nick Clifton <nickc@redhat.com>
21876
21877 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21878
21879 2016-03-01 Richard Biener <rguenther@suse.de>
21880
21881 PR tree-optimization/69983
21882 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21883 types and fall back to operand_equal_p.
21884
21885 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21886
21887 Revert
21888 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21889
21890 * config/s390/constraints.md ("jm8"): New constraint.
21891 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21892 predicate.
21893 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21894 into ...
21895 ("*setmem_long<setmem_and>"): New pattern.
21896 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21897 into ...
21898 ("*setmem_long_31z<setmem_and>"): New pattern.
21899 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21900 New substitution rules with the required attributes.
21901
21902
21903 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21904
21905 Revert
21906 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21907
21908 * gensupport.c (process_substs_on_one_elem): Split loop to
21909 complete mark_operands_used_in_match_dup on all expressions in the
21910 vector first.
21911 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21912 and remove function.
21913
21914 2016-03-01 Richard Biener <rguenther@suse.de>
21915
21916 PR middle-end/70022
21917 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21918 vector BIT_FIELD_REF extract.
21919
21920 2016-03-01 Richard Biener <rguenther@suse.de>
21921
21922 PR tree-optimization/69994
21923 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21924
21925 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21926
21927 PR tree-optimization/69956
21928 * tree-vect-stmts.c (supportable_widening_operation): Support
21929 multi-step conversion of boolean vectors.
21930 (supportable_narrowing_operation): Likewise.
21931
21932 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21933
21934 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21935 anymore.
21936
21937 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21938
21939 * config/s390/subst.md (DSI_VI): New mode iterator.
21940 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21941 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21942 the insn definition.
21943 ("*vec_set<mode>"): Change predicate and add alternative to
21944 support only either register or const_int operands as element
21945 selector.
21946 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21947 operands.
21948 ("vec_extract<mode>"): New expander.
21949 ("*vec_extract<mode>"): New insn definition supporting reg and
21950 const_int element selectors.
21951 ("*vec_extract<mode>_plus"): New insn definition supporting
21952 reg+const_int element selectors.
21953 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21954 following expander+insn definition.
21955 ("<vec_shifts_name><mode>3"): New expander.
21956 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21957
21958 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21959
21960 * config/s390/s390.md ("*tabort_1"): Change predicate to
21961 nonmemory_operand. Add a second alternative to cover
21962 register as well as const int operands.
21963 ("*tabort_1_plus"): New pattern definition.
21964
21965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21966
21967 * config/s390/s390.md ("*ashrdi3_cc_31")
21968 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21969 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21970 Merge insn definitions into ...
21971 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21972 New pattern definition.
21973 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21974 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21975 ("*ashr<mode>3_and"): Merge insn definitions into ...
21976 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21977 New pattern definition.
21978 * config/s390/subst.md ("addr_style_op_cc_subst")
21979 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21980 substitutions patterns plus attributes.
21981 Add ashiftrt to SUBST iterator.
21982
21983 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21984
21985 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21986 op2 to nonmemory_operand.
21987 ("*<shift>di3_31", "*<shift>di3_31_and"):
21988 Merge into single pattern definition ...
21989 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21990 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21991 pattern definition ...
21992 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21993 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21994 iterator.
21995
21996 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21997
21998 * config/s390/predicates.md (const_int_6bitset_operand): New
21999 predicate.
22000 * config/s390/s390.md: Include subst.md.
22001 ("rotl<mode>3"): New expander.
22002 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
22003 ...
22004 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
22005 * config/s390/subst.md: New file.
22006
22007 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22008
22009 * config/s390/s390.md ("op_type", "atype", "length" attributes):
22010 Remove RRR type. It doesn't really exist.
22011 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
22012 attributes.
22013 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
22014 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
22015 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
22016 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
22017 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
22018 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
22019 `enabled' attribute.
22020
22021 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22022
22023 * gensupport.c (process_substs_on_one_elem): Split loop to
22024 complete mark_operands_used_in_match_dup on all expressions in the
22025 vector first.
22026 (adjust_operands_numbers): Inline into process_substs_on_one_elem
22027 and remove function.
22028
22029 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22030
22031 PR target/69706
22032 * config/sparc/sparc.c (NWORDS_UP): Rename to...
22033 (CEIL_NWORDS): ...this. Use CEIL macro.
22034 (compute_fp_layout): Adjust to above renaming.
22035 (function_arg_union_value): Likewise.
22036 (sparc_arg_partial_bytes): Likewise.
22037 (sparc_function_arg_advance): Likewise.
22038
22039 2016-02-29 Jeff Law <law@redhat.com>
22040
22041 PR tree-optimization/70005
22042 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
22043 where an object with a boolean range is compared against a value
22044 outside [0..1].
22045
22046 PR tree-optimization/69999
22047 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
22048 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
22049 loop cleanups.
22050
22051 2016-02-29 Richard Biener <rguenther@suse.de>
22052
22053 PR tree-optimization/69994
22054 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
22055 (get_unary_op): Look through nop conversions.
22056 (ops_equal_values_p): New function, look for equality diregarding
22057 nop conversions.
22058 (eliminate_plus_minus_pair): Use ops_equal_values_p
22059 (repropagate_negates): Do not use get_unary_op here.
22060
22061 2016-02-29 Martin Liska <mliska@suse.cz>
22062
22063 * system.h: Poison ENABLE_CHECKING macro.
22064
22065 2016-02-29 Martin Liska <mliska@suse.cz>
22066
22067 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
22068 is presented in dump flags.
22069 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22070 (hsa_regalloc): Likewise.
22071
22072 2016-02-19 Richard Biener <rguenther@suse.de>
22073
22074 PR tree-optimization/69980
22075 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
22076 permutation of those we need to keep.
22077
22078 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22079
22080 PR target/69706
22081 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
22082 (NWORDS_UP): ...this
22083 (init_cumulative_args): Minor tweaks.
22084 (sparc_promote_function_mode): Likewise.
22085 (scan_record_type): Delete.
22086 (traverse_record_type): New function template.
22087 (classify_data_t): New structure type.
22088 (classify_registers): New inline function.
22089 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
22090 exhausted. Instantiate traverse_record_type on classify_registers and
22091 deal with the case of a structure passed in slot #15 with no FP field
22092 in the first word.
22093 (assign_data_t): New structure type.
22094 (compute_int_layout): New static function.
22095 (compute_fp_layout): Likewise.
22096 (count_registers): New inline function.
22097 (assign_int_registers): New static function.
22098 (assign_fp_registers): Likewise.
22099 (assign_registers): New inline function.
22100 (function_arg_record_value_1): Delete.
22101 (function_arg_record_value_2): Likewise.
22102 (function_arg_record_value_3): Likewise.
22103 (function_arg_record_value): Adjust to above changes. Instantiate
22104 traverse_record_type on count_registers to first count the number of
22105 registers to be used and then on assign_registers to assign them.
22106 (function_arg_union_value): Adjust to above renaming.
22107 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
22108 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
22109 case of a structure passed in slot #15
22110 (sparc_function_arg_advance): Likewise.
22111 (function_arg_padding): Minor tweak.
22112
22113 2016-02-29 Richard Biener <rguenther@suse.de>
22114
22115 PR tree-optimization/69720
22116 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
22117 the adjustment_def path for possibly vectorized defs.
22118 (vect_create_epilog_for_reduction): Handle vectorized initial
22119 defs properly.
22120
22121 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
22122
22123 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
22124
22125 2016-02-27 Jeff Law <law@redhat.com>
22126
22127 Revert
22128 2016-02-26 Richard Biener <rguenther@suse.de>
22129 Jeff Law <law@redhat.com>
22130
22131 PR tree-optimization/69740
22132 * cfghooks.c (remove_edge): Request loop fixups if we delete
22133 an edge that might turn an irreducible loop into a natural
22134 loop.
22135
22136 2016-02-27 Jakub Jelinek <jakub@redhat.com>
22137
22138 PR rtl-optimization/69896
22139 * tree-vect-generic.c (get_compute_type): Avoid single element
22140 vector types.
22141
22142 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
22143
22144 Rename the AArch64 tuning option and related functions to enable the
22145 Newton series for the reciprocal square root to reflect its
22146 approximative characteristic.
22147
22148 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
22149 function to "aarch64_emit_approx_rsqrt".
22150 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
22151 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
22152 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
22153 (xgene1_tunings): Likewise.
22154 (use_rsqrt_p): Likewise.
22155 (aarch64_emit_swrsqrt): Use new function name.
22156 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
22157 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
22158 text explaining this option.
22159 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
22160
22161 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22162
22163 PR target/69969
22164 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22165 complain about -mallow-movmisalign without -mvsx if
22166 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
22167
22168 2016-02-26 Joel Sherrill <joel@rtems.org>
22169
22170 * config.gcc: Add x86_64-*-rtems*.
22171 * config/i386/rtems-64.h: New file.
22172
22173 2016-02-26 Joel Sherrill <joel@rtems.org>
22174
22175 * config.gcc: Add aarch64-*-rtems*.
22176 * config/aarch64/rtems.h: New file.
22177
22178 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
22179
22180 PR target/69946
22181 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
22182 shift amount using %h. Add comment.
22183
22184 2016-02-26 Richard Biener <rguenther@suse.de>
22185 Jeff Law <law@redhat.com>
22186
22187 PR tree-optimization/69740
22188 * cfghooks.c (remove_edge): Request loop fixups if we delete
22189 an edge that might turn an irreducible loop into a natural
22190 loop.
22191
22192 2016-02-26 Martin Jambor <mjambor@suse.cz>
22193
22194 PR middle-end/69920
22195 * tree-sra.c (sra_modify_assign): Do not remove loads of
22196 uninitialized aggregates to SSA_NAMEs.
22197
22198 2016-02-26 Richard Henderson <rth@redhat.com>
22199
22200 PR target/69709
22201 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
22202 pseudo in case the target rtx matches the source of the left
22203 shift.
22204
22205 2016-02-26 Martin Jambor <mjambor@suse.cz>
22206
22207 PR hsa/69568
22208 * hsa.h (hsa_type_packed_p): Declare.
22209 * hsa.c (hsa_type_packed_p): New function.
22210 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
22211 loads.
22212 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
22213 * hsa-brig.c (emit_basic_insn): Likewise.
22214
22215 2016-02-26 Martin Jambor <mjambor@suse.cz>
22216
22217 pr hsa/69674
22218 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
22219 pointers.
22220 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
22221
22222 2016-02-26 Martin Jambor <mjambor@suse.cz>
22223
22224 * hsa.h (is_a_helper): New overload for hsa_op_immed for
22225 hsa_op_with_type operands.
22226 (hsa_unsigned_type_for_type): Declare.
22227 * hsa.c (hsa_unsigned_type_for_type): New function.
22228 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
22229 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
22230 the finalizer. Do not emit extra move.
22231
22232 2016-02-26 Martin Jambor <mjambor@suse.cz>
22233
22234 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
22235 atomic operations in private segment.
22236
22237 2016-02-26 Martin Jambor <mjambor@suse.cz>
22238
22239 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
22240 statements to wi->info. Also disallow omp simd constructs.
22241 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
22242 for not gridifying. Dump special string for omp_for.
22243
22244 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22245
22246 PR target/69245
22247 * config/aarch64/aarch64.c (aarch64_set_current_function):
22248 Save/restore target globals when switching to
22249 target_option_default_node.
22250
22251 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22252
22253 PR target/69613
22254 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
22255 Return 0 if !SHIFT_COUNT_TRUNCATED.
22256
22257 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22258 Eric Botcazou <ebotcazou@adacore.com>
22259
22260 PR rtl-optimization/69891
22261 * dse.c (scan_insn): If we can't figure out memset arguments
22262 or they are non-constant, call clear_rhs_from_active_local_stores.
22263
22264 2016-02-26 Martin Liska <mliska@suse.cz>
22265
22266 * doc/extend.texi: Mention clog10, clog10f an clog10l
22267 in Builtins section.
22268
22269 2016-02-26 Martin Liska <mliska@suse.cz>
22270
22271 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
22272 CHECKING_P.
22273 (resolve_args_picking_1): Likewise.
22274 * dwarf2out.h (struct GTY): Likewise.
22275
22276 2016-02-26 Martin Liska <mliska@suse.cz>
22277
22278 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
22279 with flag_checking.
22280 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22281
22282 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22283 Martin Liska <mliska@suse.cz>
22284
22285 * doc/install.texi: Mention --enable-valgrind-annotations.
22286
22287 2016-02-26 Richard Biener <rguenther@suse.de>
22288
22289 PR tree-optimization/69551
22290 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
22291 looking through aliases adjust DECL_PT_UID to refer to the
22292 ultimate alias target.
22293
22294 2016-02-25 Martin Liska <mliska@suse.cz>
22295
22296 PR middle-end/69919
22297 * alloc-pool.c (after_memory_report): New variable.
22298 * alloc-pool.h (base_pool_allocator ::release): Do not use
22299 the infrastructure if after_memory_report.
22300 * toplev.c (toplev::main): Mark after memory report.
22301
22302 2016-02-25 Richard Biener <rguenther@suse.de>
22303
22304 PR tree-optimization/48795
22305 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
22306
22307 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
22308
22309 PR driver/68463
22310 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
22311 offloading is enabled and -fopenacc or -fopenmp is specified.
22312 (CRTOFFLOADEND): Likewise.
22313 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
22314 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
22315 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
22316 (offload_objects_file_name): New static var.
22317 (tool_cleanup): Remove offload_objects_file_name file.
22318 (find_offloadbeginend): Replace with ...
22319 (find_crtoffloadtable): ... this.
22320 (run_gcc): Remove offload_argc and offload_argv.
22321 Get offload_objects_file_name from -foffload-objects=... option.
22322 Read names of object files with offload from this file, pass them to
22323 compile_images_for_offload_targets. Don't call find_offloadbeginend and
22324 don't pass offloadbegin and offloadend to the linker. Don't pass
22325 offload non-LTO files to the linker, because now they're not claimed.
22326
22327 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
22328
22329 PR ipa/69630
22330 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22331 on builtin_unreachable.
22332
22333 2016-02-25 Jakub Jelinek <jakub@redhat.com>
22334
22335 PR rtl-optimization/69896
22336 * regcprop.c: Include cfgrtl.h.
22337 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
22338 than remembered mode, either delete it (if noop_move_p), or
22339 treat like copy_p but not noop_p instruction.
22340
22341 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22342
22343 PR debug/69705
22344 * dwarf2out.c (gen_variable_die): Work around buggy LTO
22345 - allow NULL decl for Fortran DW_TAG_common_block variables.
22346
22347 2016-02-24 Jason Merrill <jason@redhat.com>
22348
22349 * common.opt (flifetime-dse): Add -flifetime-dse=1.
22350
22351 2016-02-24 Richard Biener <rguenther@suse.de>
22352 Jakub Jelinek <jakub@redhat.com>
22353
22354 PR middle-end/69760
22355 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
22356 conditionally executed ops to well-defined overflow behavior.
22357
22358 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22359
22360 PR middle-end/69915
22361 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
22362 elements.
22363
22364 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22365
22366 PR rtl-optimization/69886
22367 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
22368 argument. Use it when checking validity of set instructions.
22369 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
22370 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
22371 callsite.
22372 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
22373 * store-motion.c (find_moveable_store): Update
22374 can_assign_to_reg_without_clobbers_p callsite.
22375
22376 2016-02-24 Richard Biener <rguenther@suse.de>
22377
22378 PR middle-end/68963
22379 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
22380 bogus check.
22381 (record_nonwrapping_iv): Do not fall back to the low/high bound
22382 for non-constant IV bases if the stmt is not always executed.
22383
22384 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22385
22386 * config/arm/arm-cores.def (cortex-a32): New entry.
22387 * config/arm/arm-tables.opt: Regenerate.
22388 * config/arm/arm-tune.md: Regenerate.
22389 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
22390 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
22391 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
22392 for -mcpu and -mtune.
22393
22394 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22395
22396 PR target/69875
22397 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
22398 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
22399 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
22400 (atomic_loaddi_1): Delete.
22401 (atomic_loaddi): Rewrite expander using the above changes.
22402
22403 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22404
22405 PR c/69918
22406 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
22407 2 to 3.
22408
22409 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22410 Richard Biener <rguenth@suse.de>
22411
22412 PR middle-end/69909
22413 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
22414 set_mem_attributes if tem is SSA_NAME which got expanded
22415 as a MEM.
22416
22417 2016-02-24 Richard Biener <rguenther@suse.de>
22418
22419 PR tree-optimization/69907
22420 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
22421 end of permutations for BB vectorization.
22422
22423 2016-02-24 Christian Bruel <christian.bruel@st.com>
22424
22425 * config/arm/arm-c.c (arm_option_override): Initialize
22426 target_option_current_node.
22427 * config/arm/arm.c (arm_pragma_target_parse): Replace
22428 build_target_option_node call by target_option_current_node.
22429 Set target_option_current_node.
22430 Fix comments.
22431
22432 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
22433
22434 PR target/69810
22435 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
22436 define_insn_and_split to define_insn.
22437 (zero_extendqi<mode>2_dot2): Same.
22438 (extendqi<mode>2_dot): Same.
22439 (extendqi<mode>2_dot2): Same.
22440
22441 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22442
22443 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
22444 and add bypass for AES{D,E} and AESMC pairs.
22445 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
22446 and AESMC pairs.
22447
22448 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22449
22450 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
22451 series for reciprocal square root in Exynos M1.
22452
22453 2016-02-23 Martin Sebor <msebor@redhat.com>
22454
22455 PR c/69759
22456 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
22457 __builtin_alloca_with_align.
22458
22459 2016-02-23 Richard Henderson <rth@redhat.com>
22460
22461 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
22462 (ix86_register_pragmas): Remove __seg_tls.
22463 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
22464 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
22465 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
22466 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
22467 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
22468 * doc/extend.texi (__seg_tls): Remove item.
22469
22470 2016-02-23 Richard Biener <rguenther@suse.de>
22471
22472 * alloc-pool.h (struct allocation_object): Make id member
22473 conditional on CHECKING_P again.
22474 (get_instance): Adjust.
22475 (base_pool_allocator): Likewise.
22476
22477 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
22478
22479 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
22480 (parallelize_loops): In OpenACC kernels mode, set n_threads to
22481 zero.
22482 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
22483 flag_openacc.
22484 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
22485
22486 2016-02-23 Richard Biener <rguenther@suse.de>
22487
22488 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
22489 * bitmap.h (struct bitmap_usage): Likewise.
22490 (bitmap_move): Declare.
22491 * bitmap.c (register_overhead): Take size_t argument.
22492 (bitmap_move): New function.
22493 * df-problems.c (df_rd_transfer_function): Use bitmap_move
22494 to properly account overhead.
22495 * tree.c (free_node): Use tree_size.
22496
22497 2016-02-23 Jakub Jelinek <jakub@redhat.com>
22498
22499 PR c++/69902
22500 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
22501 when inverting comparison.
22502
22503 PR c/69900
22504 * common.opt (Wunreachable-code): Add Warning flag.
22505
22506 2016-02-23 Mark Wielaard <mjw@redhat.com>
22507 Jakub Jelinek <jakub@redhat.com>
22508
22509 PR c/69911
22510 * cgraphunit.c (check_global_declaration): Check main_input_filename
22511 and DECL_SOURCE_FILE are not NULL.
22512
22513 2016-02-23 Martin Jambor <mjambor@suse.cz>
22514
22515 PR tree-optimization/69666
22516 * tree-sra.c (sra_modify_assign): Do not attempt to create
22517 default_def replacements for unscalarizable regions.
22518
22519 2016-02-20 Mark Wielaard <mjw@redhat.com>
22520
22521 PR c/28901
22522 * cgraphunit.c (check_global_declaration): Check level of
22523 warn_unused_const_variable and main_input_filename.
22524 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
22525 (-Wunused-variable): For C implies -Wunused-const-variable=1.
22526 (-Wunused-const-variable): Explain levels 1 and 2.
22527
22528 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR target/69888
22531 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
22532 identical arguments. Formatting and spelling fixes.
22533
22534 PR target/69885
22535 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
22536 be specified.
22537
22538 PR target/69894
22539 PR target/69895
22540 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
22541 and m68k-devices.def.
22542 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
22543 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
22544
22545 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
22546
22547 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
22548 and HImode registers.
22549
22550 2016-02-22 Richard Biener <rguenther@suse.de>
22551
22552 PR tree-optimization/69882
22553 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
22554 preserve permutations present because of gaps.
22555 (vect_supported_load_permutation_p): Always continue checking
22556 permutations after vect_attempt_slp_rearrange_stmts.
22557
22558 2016-02-22 Bin Cheng <bin.cheng@arm.com>
22559
22560 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
22561 min_profitable_estimate, rather than min_profitable_iters.
22562
22563 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22564
22565 PR target/69885
22566 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
22567 SImode for last match_operand.
22568
22569 2016-02-22 Martin Liska <mliska@suse.cz>
22570
22571 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
22572 return bitsize - 1 as the return value.
22573
22574 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
22575
22576 PR target/69806
22577 PR target/54089
22578 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
22579 Handle negative shift counts.
22580 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
22581 force_reg on the shift constant.
22582 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
22583 (lshrsi3_d): Handle negative shift counts.
22584
22585 2016-02-22 Richard Biener <rguenther@suse.de>
22586 Tom de Vries <tom@codesourcery.com>
22587
22588 * graph.c: Include dumpfile.h.
22589 (print_graph_cfg): Split into three overloads.
22590 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
22591
22592 2016-02-22 Tom de Vries <tom@codesourcery.com>
22593
22594 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
22595 dump-fn.
22596
22597 2016-02-22 Richard Biener <rguenther@suse.de>
22598
22599 PR ipa/37448
22600 * ipa-inline-transform.c (inline_call): When not updating
22601 overall summaries adjust self size by the growth estimate.
22602 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
22603 hash-set, do not update overall summaries here. Renamed from ...
22604 (inline_to_all_callers): ... this which is now wrapping the
22605 above and performing delayed overall summary update.
22606 (early_inline_small_functions): Delay updating of the overall
22607 summary.
22608
22609 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
22610
22611 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
22612 variable.
22613
22614 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22615
22616 PR driver/69805
22617 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
22618 :%* in %:gt() argument.
22619 (greater_than_spec_func): Adjust for expecting only numbers,
22620 if there are more than two numbers, compare the last two.
22621
22622 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
22623
22624 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
22625 -Wnarrowing with -std.
22626
22627 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22628
22629 PR c++/69851
22630 * expr.c (store_field): Don't use bit-field path if exp is
22631 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
22632 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
22633 and the assignment can be performed by bitwise copy. Formatting
22634 fix.
22635
22636 PR middle-end/69838
22637 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
22638 call copy_reg_eh_region_note_forward on before and/or after sequences
22639 and remove note from insn if it no longer can throw.
22640
22641 PR target/69820
22642 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22643 if TARGET_AVX512BW.
22644
22645 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22646
22647 * config/s390/vector.md: Add missing commutative operand markers
22648 to the patterns which qualify for one.
22649 * config/s390/vx-builtins.md: Likewise.
22650
22651 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22652
22653 * config/s390/vector.md (VI, VI_QHS): Add single element vector
22654 types to mode iterators.
22655 (vec_double): ... and mode attribute.
22656 * config/s390/vx-builtins.md (non_vec_int): Likewise.
22657
22658 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22659
22660 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22661 Change the predicate of op2 from nonimmediate to general and let
22662 reload fix it if necessary.
22663
22664 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22665
22666 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22667
22668 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22669
22670 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22671 mode.
22672
22673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22674
22675 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22676 * config/s390/s390.c (s390_expand_vec_movstr): New function.
22677 * config/s390/s390.md ("movstr<P:mode>"): Call
22678 s390_expand_vec_movstr.
22679
22680 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22681
22682 * config/s390/s390.md: Add missing output modifier for operand 1
22683 to print it as address properly.
22684
22685 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22686
22687 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22688 * config/s390/2964.md: New file.
22689 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22690 of insn grouping attributes depending on the CPU level.
22691 (s390_get_unit_mask): New function.
22692 (s390_sched_score): Remove the OOO from the scheduling macros.
22693 Add loop to calculate a score for the instruction mix.
22694 (s390_sched_reorder): Likewise plus improve debug output.
22695 (s390_sched_variable_issue): Rename macros as above. Calculate
22696 the unit distances after actually scheduling an insn. Improve
22697 debug output.
22698 (s390_sched_init): Clear last_scheduled_unit_distance array.
22699 * config/s390/s390.md: Include 2964.md.
22700
22701 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22702
22703 PR target/69671
22704 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22705 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22706 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22707 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22708 *avx512f_<code>v8div16qi2_mask_1): New insns.
22709
22710 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22711
22712 PR target/68404
22713 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22714 2016-02-09 change.
22715
22716 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22717 earlyclobber from target. Use wF constraint for fused memory
22718 address.
22719 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22720
22721 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22722 Martin Liska <mliska@suse.cz>
22723
22724 PR sanitizer/69863
22725 * cfgexpand.c (asan_sanitize_stack_p): New function.
22726 (partition_stack_vars): Use the function.
22727 (expand_stack_vars): Likewise.
22728 (defer_stack_allocation): Likewise.
22729 (expand_used_vars): Likewise.
22730
22731 2016-02-18 Richard Biener <rguenther@suse.de>
22732
22733 PR middle-end/69553
22734 * fold-const.c (operand_equal_p): Properly compare offsets for
22735 IMAGPART_EXPR and ARRAY_REF.
22736
22737 2016-02-18 Nick Clifton <nickc@redhat.com>
22738
22739 PR target/62254
22740 PR target/69610
22741 * config/arm/arm.c (arm_option_override_internal): Disable
22742 interworking if the target does not support thumb instructions.
22743 (arm_reload_in_hi): Handle the case where a register to register
22744 move needs reloading because there is no simple pattern to handle
22745 it.
22746 (arm_reload_out_hi): Likewise.
22747
22748 2016-02-18 Richard Biener <rguenther@suse.de>
22749
22750 PR middle-end/69854
22751 * match.pd: Don't use fold_binary or fold_unary for folding
22752 constants.
22753
22754 2016-02-17 Jakub Jelinek <jakub@redhat.com>
22755
22756 PR c++/69850
22757 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22758 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22759 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22760 warn on gimple_no_warning_p statements.
22761
22762 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
22763
22764 * doc/extend.texi (C++ Attributes): Correct description of
22765 warn_unused type attribute.
22766
22767 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22768
22769 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22770 correct instruction.
22771
22772 2016-02-17 Richard Biener <rguenther@suse.de>
22773
22774 PR rtl-optimization/69609
22775 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22776 (find_traces_1_round): When ending a trace update cached priority
22777 of successors.
22778 (bb_to_key): Use cached priority when available.
22779 (copy_bb): Initialize cached priority.
22780 (reorder_basic_blocks_software_trace_cache): Likewise.
22781
22782 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22783
22784 PR target/69161
22785 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22786 New predicate.
22787 (aarch64_comparison_operator): Break overly long line into two.
22788 (aarch64_comparison_operation): Likewise.
22789 * config/aarch64/aarch64.md (cstorecc4): Use
22790 aarch64_comparison_operator_mode instead of
22791 aarch64_comparison_operator.
22792 (cstore<mode>4): Likewise.
22793 (aarch64_cstore<mode>): Likewise.
22794 (*cstoresi_insn_uxtw): Likewise.
22795 (cstore<mode>_neg): Likewise.
22796 (*cstoresi_neg_uxtw): Likewise.
22797
22798 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22799
22800 PR target/69161
22801 * config/arm/predicates.md (arm_comparison_operator_mode):
22802 New predicate.
22803 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22804 instead of arm_comparison_operator.
22805 (*mov_negscc): Likewise.
22806 (*mov_notscc): Likewise.
22807 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22808 (*thumb2_mov_negscc): Likewise.
22809 (*thumb2_mov_negscc_strict_it): Likewise.
22810 (*thumb2_mov_notscc): Likewise.
22811 (*thumb2_mov_notscc_strict_it): Likewise.
22812
22813 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22814
22815 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22816 Add missing return.
22817
22818 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22819
22820 * config/visium/visium.c (machine_libfunc_index): New enum.
22821 (machine_libfuncs): New structure.
22822 (visium_libfuncs): New static variable.
22823 (TARGET_INIT_LIBFUNCS): Define to...
22824 (visium_init_libfuncs): ...this. New function.
22825 (expand_block_move_4): Use the appropriate libfunc.
22826 (expand_block_move_2): Likewise.
22827 (expand_block_move_1): Likewise.
22828 (expand_block_set_4): Likewise.
22829 (expand_block_set_2): Likewise.
22830 (expand_block_set_1): Likewise.
22831 (visium_trampoline_init): Likewise.
22832
22833 2016-02-17 Nick Clifton <nickc@redhat.com>
22834
22835 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22836 TI's devices.csv file as of March 2016.
22837
22838 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22839
22840 PR Target/48344
22841 * opts-global.c (handle_common_deferred_options): Introduce and
22842 initialize two global variables to remember command-line options
22843 specifying a stack-limiting register.
22844 * opts.h: Add extern declarations of the two new global variables.
22845 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22846 variable based on the values of the two new global variables.
22847
22848 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22849
22850 PR c/69835
22851 * common.opt (Wnonnull-compare): New warning.
22852 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22853 of arguments against NULL.
22854 (-Wnonnull-compare): Document.
22855 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22856 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22857 * passes.def (pass_warn_nonnull_compare): Add.
22858 * gimple-ssa-nonnull-compare.c: New file.
22859
22860 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22861
22862 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22863 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22864
22865 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22866
22867 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22868 reciprocal sqrt for -mlow-precision-recip-sqrt.
22869
22870 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22871 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22872
22873 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22874 always use lane loads to construct non-constant vectors.
22875
22876 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22877
22878 * config/aarch64/aarch64.md
22879 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22880 constraints for operand 3.
22881 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22882
22883 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22884 Richard Biener <rguenther@suse.de>
22885
22886 PR tree-optimization/69820
22887 * tree-vect-patterns.c (type_conversion_p): Return false if
22888 *orig_type is unsigned single precision or boolean.
22889 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22890 Formatting fix.
22891
22892 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22893
22894 PR rtl-optimization/69764
22895 PR rtl-optimization/69771
22896 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22897 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22898
22899 2016-02-16 Richard Biener <rguenther@suse.de>
22900
22901 PR tree-optimization/69776
22902 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22903 sets from caller.
22904 (indirect_refs_may_alias_p): Likewise.
22905 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22906 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22907 according to tbaa_p.
22908 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22909 (optimize_stmt): For redundant store discovery do not allow tbaa.
22910
22911 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22912
22913 PR tree-optimization/69714
22914 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22915 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22916
22917 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22918
22919 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22920 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22921 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22922 * config/arc/arc.c (arc_init): Check FPU options.
22923 (get_arc_condition_code): Handle new CC_FPU* modes.
22924 (arc_select_cc_mode): Likewise.
22925 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22926 register pair only. Allow access for ARCv2 accumulator.
22927 (gen_compare_reg): Whenever we have FPU support use FPU compare
22928 instructions.
22929 (arc_reorg): Don't generate brcc insns when FPU compare
22930 instructions are involved.
22931 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22932 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22933 floating point emulation.
22934 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22935 (REVERSE_CONDITION): Add new CC_FPU* modes.
22936 (TARGET_FP_SP_BASE): Define.
22937 (TARGET_FP_DP_BASE): Likewise.
22938 (TARGET_FP_SP_FUSED): Likewise.
22939 (TARGET_FP_DP_FUSED): Likewise.
22940 (TARGET_FP_SP_CONV): Likewise.
22941 (TARGET_FP_DP_CONV): Likewise.
22942 (TARGET_FP_SP_SQRT): Likewise.
22943 (TARGET_FP_DP_SQRT): Likewise.
22944 (TARGET_FP_DP_AX): Likewise.
22945 * config/arc/arc.md (ARCV2_ACC): New constant.
22946 (type): New fpu type attribute.
22947 (SDF): Conditional iterator.
22948 (cstore<mode>, cbranch<mode>): Change expand condition.
22949 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22950 handles FPU/FPX cases as well.
22951 * config/arc/arc.opt (mfpu): New option.
22952 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22953 Renamed.
22954 (adddf3, muldf3, subdf3): Removed.
22955 * config/arc/predicates.md (proper_comparison_operator): Recognize
22956 CC_FPU* modes.
22957 * config/arc/fpu.md: New file.
22958 * doc/invoke.texi (ARC Options): Document mfpu option.
22959
22960 2016-02-16 Richard Biener <rguenther@suse.de>
22961
22962 PR rtl-optimization/69291
22963 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22964 noce_operand_ok check.
22965
22966 2016-02-16 Tom de Vries <tom@codesourcery.com>
22967
22968 PR lto/67709
22969 * omp-low.c (simd_clone_create): Remove call to
22970 symtab->call_cgraph_insertion_hooks.
22971
22972 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22973
22974 PR tree-optimization/69802
22975 * tree-ssa-reassoc.c (update_range_test): If op is
22976 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22977 op == 1 test of precision 1 integral op, otherwise handle
22978 that case as op itself. Fix up formatting.
22979 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22980 up formatting.
22981
22982 2016-02-16 Richard Biener <rguenther@suse.de>
22983
22984 PR tree-optimization/69586
22985 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22986 types for conversion sources.
22987
22988 2016-02-16 Richard Biener <rguenther@suse.de>
22989
22990 PR middle-end/69801
22991 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22992 mask OEP_ADDRESS_OF.
22993
22994 2016-02-16 Alan Modra <amodra@gmail.com>
22995
22996 PR target/68973
22997 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22998 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22999 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
23000 (p8_mtvsrwz): New.
23001 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
23002 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
23003 (p8_fmrgow_<mode>): Likewise.
23004 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
23005 changes.
23006 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
23007 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
23008 to use movdi_internal64. Remove op0_di.
23009 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
23010
23011 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
23012
23013 Add support for the FCCMP insn types
23014
23015 * config/aarch64/aarch64.md (fccmp): Change insn type.
23016 (fccmpe): Likewise.
23017 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
23018 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
23019 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
23020 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
23021 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
23022 * config/arm/types.md (fccmps): Add new insn type.
23023 (fccmpd): Likewise.
23024
23025 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
23026
23027 * alias.c (get_alias_set): Fix a typo in comment.
23028
23029 2016-02-15 Richard Biener <rguenther@suse.de>
23030
23031 PR tree-optimization/69595
23032 * match.pd: Complete range test simplification to true.
23033
23034 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
23035
23036 PR rtl-optimization/69648
23037 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
23038 pic_offset_table_rtx.
23039
23040 PR rtl-optimization/69752
23041 * ira.c (update_equiv_regs): When looking for more than a single SET,
23042 also take other side effects into account.
23043
23044 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23045
23046 * config/s390/s390.c (s390_function_profiler): Add a new sequence
23047 for z900+ CPUs in 31-bit mode.
23048
23049 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23050
23051 * common/config/s390/s390-common.c (s390_supports_split_stack):
23052 New function.
23053 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
23054 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
23055 * config/s390/s390.c (struct machine_function): New field
23056 split_stack_varargs_pointer.
23057 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
23058 in s390_emit_prologue.
23059 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
23060 vararg pointer.
23061 (morestack_ref): New global.
23062 (SPLIT_STACK_AVAILABLE): New macro.
23063 (s390_expand_split_stack_prologue): New function.
23064 (s390_live_on_entry): New function.
23065 (s390_va_start): Use split-stack vararg pointer if appropriate.
23066 (s390_asm_file_end): Emit the split-stack note sections.
23067 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
23068 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
23069 (UNSPECV_SPLIT_STACK_CALL): New unspec.
23070 (UNSPECV_SPLIT_STACK_DATA): New unspec.
23071 (split_stack_prologue): New expand.
23072 (split_stack_space_check): New expand.
23073 (split_stack_data): New insn.
23074 (split_stack_call): New expand.
23075 (split_stack_call_*): New insn.
23076 (split_stack_cond_call): New expand.
23077 (split_stack_cond_call_*): New insn.
23078
23079 2016-02-15 Richard Biener <rguenther@suse.de>
23080
23081 PR tree-optimization/69783
23082 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23083 Add trivially correct cases.
23084
23085 2016-02-15 Tom de Vries <tom@codesourcery.com>
23086
23087 PR lto/69655
23088 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
23089 do_force_output.
23090 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
23091
23092 2016-02-15 Richard Biener <rguenther@suse.de>
23093
23094 PR tree-optimization/69776
23095 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
23096 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
23097 indicate whether we can use TBAA to disambiguate against stores.
23098 Use alias-set zero if not.
23099 (visit_reference_op_store): Do not use TBAA when looking up
23100 redundant stores.
23101 * tree-ssa-pre.c (compute_avail): Use TBAA here.
23102 (eliminate_dom_walker::before_dom_children): But not when looking
23103 up redundant stores.
23104
23105 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
23106
23107 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
23108
23109 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23110
23111 * config/i386/znver1.md
23112 (znver1_pop, znver1_pop_mem,
23113 znver1_load_imov_double_store,
23114 znver1_load_imov_direct_store,
23115 znver1_load_imov_direct_load,
23116 znver1_load_imov_double_load): Add new.
23117 (znver1_insn, znver1_insn_load): Add icmov type.
23118 (znver1_sseavx_fma,
23119 znver1_sseavx_fma_load,
23120 znver1_avx256_fma,
23121 znver1_avx256_fma_load): Fix pipe usage.
23122
23123 2016-02-14 Alan Modra <amodra@gmail.com>
23124
23125 PR target/68973
23126 * reload.c (find_reloads_address_1): For pre/post-inc/dec
23127 with an invalid hard reg, reload just the reg not the entire
23128 pre/post-inc/dec address expression.
23129
23130 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23131
23132 PR target/67260
23133 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
23134 fixed R1_REG scratch reg.
23135 (sibcall_value_pcrel_fdpic): Likewise.
23136
23137 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23138
23139 PR target/67636
23140 PR target/64345
23141 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
23142
23143 2016-02-12 Walter Lee <walt@tilera.com>
23144
23145 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
23146 * config/tilegx/t-tilegx: Likewise.
23147
23148 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23149
23150 PR other/69554
23151 * diagnostic-show-locus.c (struct line_span): New struct.
23152 (layout::get_first_line): Delete.
23153 (layout::get_last_line): Delete.
23154 (layout::get_num_line_spans): New member function.
23155 (layout::get_line_span): Likewise.
23156 (layout::print_heading_for_line_span_index_p): Likewise.
23157 (layout::get_expanded_location): Likewise.
23158 (layout::calculate_line_spans): Likewise.
23159 (layout::m_first_line): Delete.
23160 (layout::m_last_line): Delete.
23161 (layout::m_line_spans): New field.
23162 (layout::layout): Update comment. Replace m_first_line and
23163 m_last_line with m_line_spans, replacing their initialization
23164 with a call to calculate_line_spans.
23165 (diagnostic_show_locus): When printing source lines and
23166 annotations, rather than looping over a single span
23167 of lines, instead loop over each line_span within
23168 the layout, with an inner loop over the lines within them.
23169 Call the context's start_span callback when changing line spans.
23170 * diagnostic.c (diagnostic_initialize): Initialize start_span.
23171 (diagnostic_build_prefix): Break out the building of the location
23172 part of the string into...
23173 (diagnostic_get_location_text): ...this new function, rewriting
23174 it from nested ternary expressions to a sequence of "if"
23175 statements.
23176 (default_diagnostic_start_span_fn): New function.
23177 * diagnostic.h (diagnostic_start_span_fn): New typedef.
23178 (diagnostic_context::start_span): New field.
23179 (default_diagnostic_start_span_fn): New prototype.
23180
23181 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23182
23183 PR driver/69779
23184 * gcc.c (driver::finalize): Fix cleanup of "specs".
23185
23186 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23187
23188 PR driver/69265
23189 PR driver/69453
23190 * gcc.c (driver::driver): Initialize m_option_suggestions.
23191 (driver::~driver): Clean up m_option_suggestions.
23192 (suggest_option): Convert to...
23193 (driver::suggest_option): ...this, and split out into
23194 driver::build_option_suggestions and find_closest_string.
23195 (driver::build_option_suggestions): New function, from
23196 first half of suggest_option. Special-case
23197 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
23198 the sanitizer_opts array. For options of enum types, add the
23199 various enum values to the candidate strings.
23200 (driver::handle_unrecognized_options): Remove "const".
23201 * gcc.h (driver::handle_unrecognized_options): Likewise.
23202 (driver::build_option_suggestions): New decl.
23203 (driver::suggest_option): New decl.
23204 (driver::m_option_suggestions): New field.
23205 * opts-common.c (add_misspelling_candidates): New function.
23206 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
23207 and make non-static.
23208 * opts.h (sanitizer_opts): New array decl.
23209 (add_misspelling_candidates): New function decl.
23210 * spellcheck.c (find_closest_string): New function.
23211 * spellcheck.h (find_closest_string): New function decl.
23212
23213 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23214
23215 PR rtl-optimization/69764
23216 PR rtl-optimization/69771
23217 * optabs.c (expand_binop_directly): For shift_optab_p, force
23218 convert_modes with VOIDmode if xop1 has VOIDmode.
23219
23220 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
23221
23222 PR target/69729
23223 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
23224 to correctly determine instrumentation thunks.
23225
23226 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23227
23228 PR ipa/69241
23229 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
23230 type by reference, force lhs on the call.
23231
23232 PR ipa/68672
23233 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
23234 Compute retval and retbnd early in all cases if split_part_return_p
23235 and return_bb is not EXIT. Remove all clobber stmts and reset
23236 all debug stmts that refer to SSA_NAMEs defined in split part,
23237 except if it is retval, in that case replace the old retval with the
23238 lhs of the call to the split part.
23239
23240 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23241
23242 revert:
23243 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23244
23245 PR middle-end/66726
23246 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23247 whose result is used in PHI.
23248 (maybe_optimize_range_tests): Likewise.
23249 (final_range_test_p): Likweise.
23250
23251 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23252
23253 PR middle-end/66726
23254 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23255 whose result is used in PHI.
23256 (maybe_optimize_range_tests): Likewise.
23257 (final_range_test_p): Likweise.
23258
23259 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23260
23261 * cgraph.c: Spelling fixes - behaviour -> behavior and
23262 neighbour -> neighbor.
23263 * target.def: Likewise.
23264 * sel-sched.c: Likewise.
23265 * config/mips/mips.c: Likewise.
23266 * config/arc/arc.md: Likewise.
23267 * config/arm/cortex-a57.md: Likewise.
23268 * config/arm/arm.c: Likewise.
23269 * config/arm/neon.md: Likewise.
23270 * config/arm/arm-c.c: Likewise.
23271 * config/vms/vms-c.c: Likewise.
23272 * config/s390/s390.c: Likewise.
23273 * config/i386/znver1.md: Likewise.
23274 * config/i386/i386.c: Likewise.
23275 * config/ia64/hpux-unix2003.h: Likewise.
23276 * config/msp430/msp430.md: Likewise.
23277 * config/rx/rx.c: Likewise.
23278 * config/rx/rx.md: Likewise.
23279 * config/aarch64/aarch64-simd.md: Likewise.
23280 * config/aarch64/aarch64.c: Likewise.
23281 * config/nvptx/nvptx.c: Likewise.
23282 * config/bfin/bfin.c: Likewise.
23283 * config/cris/cris.opt: Likewise.
23284 * config/rs6000/rs6000.c: Likewise.
23285 * target.h: Likewise.
23286 * spellcheck.c: Likewise.
23287 * ira-build.c: Likewise.
23288 * tree-inline.c: Likewise.
23289 * builtins.c: Likewise.
23290 * lra-constraints.c: Likewise.
23291 * explow.c: Likewise.
23292 * hwint.h: Likewise.
23293 * targhooks.c: Likewise.
23294 * tree-vect-data-refs.c: Likewise.
23295 * expr.c: Likewise.
23296 * doc/tm.texi: Likewise.
23297 * doc/extend.texi: Likewise.
23298 * doc/install.texi: Likewise.
23299 * doc/md.texi: Likewise.
23300 * tree-ssa-tail-merge.c: Likewise.
23301 * sched-int.h: Likewise.
23302 * match.pd: Likewise.
23303 * sched-ebb.c: Likewise.
23304 * target.def (omit_struct_return_reg): Likewise.
23305 * gimple-ssa-isolate-paths.c: Likewise.
23306 (find_implicit_erroneous_behaviour): Renamed to...
23307 (find_implicit_erroneous_behavior): ... this.
23308 (find_explicit_erroneous_behaviour): Renamed to...
23309 (find_explicit_erroneous_behavior): ... this.
23310 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
23311
23312 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
23313
23314 PR rtl-optimization/64682
23315 PR rtl-optimization/69567
23316 PR rtl-optimization/69737
23317 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
23318 in I2 as well, just lose it.
23319
23320 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23321
23322 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
23323 New variable.
23324 (aarch64_last_printed_tune_string): Likewise.
23325 (aarch64_declare_function_name): Only output .arch assembler
23326 directive if it will be different from the previously output
23327 directive. Same for .tune comment but only if -dA is set.
23328 (aarch64_start_file): New function.
23329 (TARGET_ASM_FILE_START): Define.
23330
23331 2016-02-11 David Malcolm <dmalcolm@redhat.com>
23332
23333 PR plugins/69758
23334 * Makefile.in (PLUGIN_HEADERS): Add params.list.
23335
23336 2016-02-11 Jakub Jelinek <jakub@redhat.com>
23337
23338 PR target/65313
23339 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
23340 -Wmaybe-uninitialized warning.
23341
23342 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
23343
23344 PR target/69713
23345 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
23346
23347 2016-02-11 Richard Biener <rguenther@suse.de>
23348
23349 PR rtl-optimization/69291
23350 * ifcvt.c (noce_try_store_flag_constants): Do not allow
23351 subexpressions affected by changing the result.
23352
23353 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
23354
23355 PR target/69148
23356 * lra-constraints.c (curr_insn_transform): Find in/out operands
23357 for secondary memory moves. Update dups.
23358
23359 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
23360
23361 PR tree-optimization/69652
23362 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
23363 to nested loop, did source re-formatting, skip debug statements,
23364 add check on statement with volatile operand, remove dead scalar
23365 statements.
23366
23367 2016-02-10 Jakub Jelinek <jakub@redhat.com>
23368 Patrick Palka <ppalka@gcc.gnu.org>
23369
23370 PR ipa/69241
23371 PR c++/69649
23372 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
23373 calls if the return type is TREE_ADDRESSABLE.
23374 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
23375 * ipa-split.c (split_function): Fix doubled "we" in comment.
23376 Use void return type for the split part even if
23377 !split_point->split_part_set_retval.
23378
23379 2016-02-10 Bin Cheng <bin.cheng@arm.com>
23380
23381 PR tree-optimization/68021
23382 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
23383 when computing the value of biv cand by itself.
23384
23385 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23386
23387 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
23388 (cortexa57_tunings): Likewise.
23389 (cortexa72_tunings): Likewise.
23390 (arch_macro_fusion_pair_p): Add support for AES fusion.
23391 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
23392 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
23393 Allow virtual registers before reload so early scheduling works.
23394 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
23395 correct latency and pipeline.
23396 (cortex_a57_crypto_complex): Likewise.
23397 (cortex_a57_crypto_xor): Likewise.
23398 (define_bypass): Add AES bypass.
23399
23400 2016-02-10 Richard Biener <rguenther@suse.de>
23401
23402 PR tree-optimization/69726
23403 * passes.def: Add DCE pass before late uninit.
23404 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
23405 really fixup if-conversions job.
23406
23407 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23408
23409 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
23410 (arm_cortex_a57_tune): Likewise.
23411 (aarch_macro_fusion_pair_p): Add support for AES fusion.
23412 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
23413
23414 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
23415
23416 * timevar.def (TV_PHASE_DBGINFO): Delete.
23417 (TV_PHASE_CHECK_DBGINFO): Likewise.
23418 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
23419
23420 2016-02-10 Richard Biener <rguenther@suse.de>
23421
23422 PR tree-optimization/69719
23423 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23424 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
23425
23426 2016-02-09 Andrew Pinski <apinski@cavium.com>
23427
23428 PR tree-opt/69282
23429 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
23430 get_vcond_mask_icode returns false.
23431
23432 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23433
23434 PR target/68404
23435 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
23436 an ADDIS that adds a pointer to a large constant that sets the
23437 upper16 bits with a load operation.
23438
23439 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23440
23441 PR target/68532
23442 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
23443 order.
23444 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
23445 endian.
23446 (vzipq_s16): Likewise.
23447 (vzipq_s32): Likewise.
23448 (vzipq_f32): Likewise.
23449 (vzipq_u8): Likewise.
23450 (vzipq_u16): Likewise.
23451 (vzipq_u32): Likewise.
23452 (vzipq_p8): Likewise.
23453 (vzipq_p16): Likewise.
23454
23455 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23456
23457 PR target/68532
23458 * config/arm/arm.c (neon_endian_lane_map): New function.
23459 (neon_vector_pair_endian_lane_map): New function.
23460 (arm_evpc_neon_vuzp): Allow for big endian lane order.
23461 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
23462 endian.
23463 (vuzpq_s16): Likewise.
23464 (vuzpq_s32): Likewise.
23465 (vuzpq_f32): Likewise.
23466 (vuzpq_u8): Likewise.
23467 (vuzpq_u16): Likewise.
23468 (vuzpq_u32): Likewise.
23469 (vuzpq_p8): Likewise.
23470 (vuzpq_p16): Likewise.
23471
23472 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
23473
23474 PR target/69634
23475 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
23476 debug insns.
23477
23478 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
23479
23480 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
23481 truncate const_int operand 1 to QImode.
23482
23483 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
23484
23485 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
23486 corresponding to an abnormal edge.
23487
23488 2016-02-09 Tom de Vries <tom@codesourcery.com>
23489
23490 PR tree-optimization/69599
23491 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
23492 function.
23493 (find_func_aliases_for_builtin_call, find_func_clobbers)
23494 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
23495 partition.
23496
23497 2016-02-09 Richard Biener <rguenther@suse.de>
23498
23499 PR tree-optimization/69715
23500 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
23501 LHS on calls as non-rewritable.
23502
23503 2016-02-09 Tom de Vries <tom@codesourcery.com>
23504
23505 PR lto/69707
23506 * lto-wrapper.c (append_diag_options): New function.
23507 (compile_offload_image): Call append_diag_options.
23508
23509 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
23510
23511 PR other/69722
23512 * doc/extend.texi (Flag Output Operands): Correct sectioning.
23513 Minor copy-edit to fix verb tenses.
23514
23515 2016-02-08 Jakub Jelinek <jakub@redhat.com>
23516
23517 PR tree-optimization/69209
23518 * ipa-split.c (split_function): If split part is not
23519 returning retval, retval has gimple type but is not
23520 gimple value, force it into a SSA_NAME first.
23521
23522 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
23523
23524 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
23525 outdated section.
23526
23527 2016-02-08 Jason Merrill <jason@redhat.com>
23528
23529 PR c++/69631
23530 * convert.c (convert_to_integer_1): Check dofold on truncation
23531 distribution.
23532 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
23533 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
23534 Rename from *_nofold.
23535 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
23536 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
23537
23538 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
23539
23540 PR target/60410
23541 * tree.c (build_common_tree_nodes): Remove short_double argument.
23542 All callers changed.
23543 * tree.h (build_common_tree_nodes): Adjust declaration.
23544 * doc/invoke.texi (-fshort-double): Remove documentation.
23545 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23546 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
23547 * lto-wrapper.c (merge_and_complain, append_compiler_options)
23548 (append_linker_options): Don't handle OPT_fshort_double.
23549
23550 PR rtl-optimization/68730
23551 * lra-remat.c (insn_to_cand_activation): New static variable.
23552 (lra_remat): Allocate and free it.
23553 (create_cand): New arg activation. Initialize a field in
23554 insn_to_cand_activation if it is nonnull.
23555 (create_cands): Pass the activation insn to create_cand when making
23556 a candidate involving an output reload. Reorganize code a little.
23557 (do_remat): Keep track of active status of candidates in a separate
23558 bitmap.
23559
23560 2016-02-08 Richard Biener <rguenther@suse.de>
23561
23562 PR tree-optimization/69719
23563 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23564 Properly use absolute of the difference of the two offsets to
23565 compare or adjust the segment length.
23566
23567 2016-02-08 Richard Biener <rguenther@suse.de>
23568 Jeff Law <law@redhat.com>
23569
23570 PR target/68273
23571 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
23572 types for anonymous SSA names.
23573
23574 2016-02-08 Richard Biener <rguenther@suse.de>
23575
23576 PR rtl-optimization/69274
23577 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
23578
23579 2016-02-08 Jeff Law <law@redhat.com>
23580
23581 PR tree-optimization/65917
23582 * tree-ssa-dom.c (record_temporary_equivalences): Record both
23583 equivalences from if (x == y) style conditionals.
23584 (loop_depth_of_name): Remove.
23585 (record_equality): Remove loop depth check.
23586 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
23587 (const_and_copies::record_const_or_copy_raw): New member function.
23588 * tree-ssa-scopedtables.c
23589 (const_and_copies::record_const_or_copy_raw): New, factored out of
23590 (const_and_copies::record_const_or_copy): Call new member function.
23591
23592 2016-02-05 Jeff Law <law@redhat.com>
23593
23594 PR tree-optimization/68541
23595 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
23596 (count_stmts_in_block): New function.
23597 (poor_ifcvt_candidate_code): Likewise.
23598 (is_feasible_trace): Add some heuristics to determine when path
23599 splitting is profitable.
23600 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
23601 is a diamond with a single exit.
23602
23603 2016-02-05 Martin Sebor <msebor@redhat.com>
23604
23605 PR c++/69662
23606 * doc/invoke.texi: Update -Wplacement-new to take an optional
23607 argument.
23608
23609 2016-02-06 Richard Henderson <rth@redhat.com>
23610
23611 PR c/69643
23612 * tree.c (tree_nop_conversion_p): Do not strip casts into or
23613 out of non-standard address spaces.
23614
23615 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23616
23617 PR rtl-optimization/69691
23618 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
23619
23620 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
23621
23622 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
23623 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
23624 (*ieee128_mfvsrd_64bit): Likewise.
23625 (*ieee128_mfvsrd_32bit): Likewise.
23626
23627 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
23628
23629 PR target/69369
23630 Revert r232560:
23631 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23632
23633 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23634 instrumented_version.
23635
23636 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
23637
23638 * doc/invoke.texi (Optimize Options): In table of --param options
23639 rename second occurrence of tracer-min-branch-ratio to
23640 tracer-min-branch-probability, rename
23641 tracer-min-branch-ratio-feedback to
23642 tracer-min-branch-probability-feedback and clarify description,
23643 rename sched-spec-state-edge-prob-cutoff to
23644 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23645 to selsched-insns-to-rename, rename lto-minpartition to
23646 lto-min-partition, delete reorder-blocks-duplicate and
23647 reorder-blocks-duplicate-feedback.
23648
23649 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23650
23651 * config/s390/s390.c (s390_register_info_set_ranges): Remove
23652 superfluous loops.
23653
23654 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
23655
23656 * doc/extend.texi: S/390: Correct some typos.
23657
23658 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23659
23660 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23661
23662 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23663
23664 PR target/69625
23665 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23666 (s390_register_info_gprtofpr): Use new macros above.
23667 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23668 its name.
23669 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23670 its name. Adjust restore and save gpr ranges.
23671 (s390_register_info_set_ranges): New function.
23672 (s390_register_info): Use new macros above. Call
23673 s390_register_info_set_ranges.
23674 (s390_optimize_register_info): Likewise.
23675 (s390_hard_regno_rename_ok): Use new macros.
23676 (s390_hard_regno_scratch_ok): Likewise.
23677 (s390_emit_epilogue): Likewise.
23678 (s390_can_use_return_insn): Likewise.
23679 (s390_optimize_prologue): Likewise.
23680 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23681
23682 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23683
23684 PR bootstrap/69677
23685 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23686 alignment fixes.
23687 (ix86_option_override_internal): Disable TARGET_STV even for
23688 -m{incoming,preferred}-stack-boundary=3.
23689
23690 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23691
23692 * config.gcc: Mark deprecated rtems targets as obsolete.
23693
23694 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
23695
23696 PR rtl-optimization/64682
23697 PR rtl-optimization/69567
23698 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23699 before I2 only if the register is both used and set in I2.
23700
23701 2016-02-04 DJ Delorie <dj@redhat.com>
23702
23703 * config/msp430/msp430.c (msp430_start_function): Add function type.
23704
23705 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23706
23707 PR fortran/69368
23708 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23709
23710 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
23711
23712 PR rtl-optimization/69577
23713 Revert:
23714 2015-10-29 Richard Henderson <rth@redhat.com>
23715
23716 PR target/68124
23717 PR rtl-opt/67609
23718 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23719 sse check to the exact conditions of PR 67609.
23720
23721 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
23722
23723 PR target/69667
23724 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23725 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23726 not allowed into the traditional Altivec registers.
23727 (movtd_64bit_nodm): Likewise.
23728 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23729
23730 2016-02-04 David Malcolm <dmalcolm@redhat.com>
23731
23732 * config/aarch64/cortex-a57-fma-steering.c
23733 (aarch64_register_fma_steering): Remove "static" from arguments
23734 to register_pass.
23735
23736 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
23737
23738 PR target/69619
23739 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23740 twice when complex.
23741
23742 2016-02-04 Mike Frysinger <vapier@gentoo.org>
23743
23744 * doc/invoke.texi: Delete -mno-fma4.
23745
23746 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
23747
23748 PR rtl-optimization/69577
23749 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23750 (find_subregs_of_mode): Update accordingly. Iterate over partial
23751 definitions.
23752
23753 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
23754
23755 * config/arm/arm-protos.h (neon_reinterpret): Remove.
23756 * config/arm/arm.c (neon_reinterpret): Remove.
23757 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23758 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23759 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23760 vreinterpretti): Remove.
23761 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23762 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23763 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23764 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23765 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23766 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23767 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23768 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23769 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23770 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23771 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23772 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23773 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23774 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23775 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23776 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23777 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23778 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23779 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23780 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23781 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23782 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23783 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23784 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23785 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23786 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23787 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23788 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23789 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23790 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23791 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23792 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23793 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23794 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23795 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23796 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23797 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23798 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23799 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23800 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23801 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23802 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23803 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23804 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23805 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23806 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23807 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23808 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23809 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23810 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23811 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23812 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23813 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23814 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23815 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23816 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23817 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23818 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23819 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23820 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23821 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23822 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23823 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23824 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23825 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23826 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23827 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23828 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23829 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23830 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23831 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23832 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23833 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23834 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23835 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23836 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23837 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23838 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23839 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23840 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23841 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23842 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23843 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23844 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23845 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23846 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23847 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23848 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23849 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23850 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23851 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23852 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23853 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23854 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23855 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23856 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23857 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23858 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23859 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23860 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23861 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23862 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23863 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23864
23865 2016-02-04 Martin Liska <mliska@suse.cz>
23866
23867 PR sanitizer/69276
23868 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23869 that are gimple_store_p.
23870 (maybe_instrument_call): Likewise.
23871
23872 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23873
23874 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23875 register scaling out of memory reference and comment why.
23876
23877 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23878
23879 PR target/65932
23880 PR target/67714
23881 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23882 folding the source of a SET.
23883
23884 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23885
23886 PR target/65932
23887 PR target/67714
23888 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23889 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23890
23891 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23892
23893 PR target/65932
23894 PR target/67714
23895 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23896 HImode.
23897
23898 2016-02-04 Christian Bruel <christian.bruel@st.com>
23899
23900 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23901 * config/arm/arm.c (arm_set_current_function): Likewise.
23902
23903 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23904 Ilya Enkovich <enkovich.gnu@gmail.com>
23905 H.J. Lu <hongjiu.lu@intel.com>
23906
23907 PR target/69454
23908 * config/i386/i386.c (convert_scalars_to_vector): Remove
23909 stack alignment fixes.
23910 (ix86_option_override_internal): Disable TARGET_STV if stack
23911 might not be aligned enough.
23912 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23913
23914 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23915
23916 * config/i386/x86-tune.def: Disable default prefetching
23917 for -march=znver1.
23918
23919 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23920 Vladimir Makarov <vmakarov@redhat.com>
23921
23922 PR target/69461
23923 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23924 in validating fused toc addresses.
23925
23926 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23927
23928 PR c/69627
23929 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23930 range->m_caret fields if range->m_show_caret_p is false.
23931
23932 PR target/69644
23933 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23934 Force oldval into register if it does not satisfy reg_or_short_operand
23935 predicate. Fix up formatting.
23936
23937 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23938 Alexandre Oliva <aoliva@redhat.com>
23939
23940 PR target/69461
23941 * lra-constraints.c (simplify_operand_subreg): Check additionally
23942 address validity after potential reloading.
23943 (process_address_1): Check insns validity. In case of failure do
23944 nothing.
23945
23946 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23947
23948 PR target/69118
23949 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23950 Fix target.
23951
23952 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23953
23954 * wide-int.cc (canonize_uhwi): New function.
23955 (wi::divmod_internal): Use it.
23956
23957 2016-02-02 James Norris <jnorris@codesourcery.com>
23958
23959 * gimplify.c (omp_notice_variable): Add usage check.
23960
23961 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23962
23963 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23964 like LE, GE, LT, GT when emitting relational operator.
23965
23966 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23967
23968 * ira-costs.c (find_costs_and_classes): Add extra argument.
23969 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23970 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23971 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23972 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23973 Add best_class parameter, and return it if not ALL_REGS.
23974 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23975 Add parameter.
23976 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23977 Update target hook.
23978
23979 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23980
23981 * config/aarch64/aarch64.c
23982 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23983 (aarch64_ira_change_pseudo_allocno_class): New function.
23984
23985 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
23986
23987 PR target/67032
23988 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23989
23990 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23991
23992 * config/avr/avr.c (avr_option_override): Set
23993 PARAM_ALLOW_STORE_DATA_RACES to 1.
23994
23995 2016-02-02 Richard Biener <rguenther@suse.de>
23996
23997 PR tree-optimization/69595
23998 * match.pd: Add range test simplifications to true/false.
23999
24000 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
24001
24002 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
24003 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
24004 instead.
24005
24006 2016-02-02 Richard Biener <rguenther@suse.de>
24007
24008 PR tree-optimization/69606
24009 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
24010 info on the result before moving a stmt.
24011
24012 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
24013
24014 PR middle-end/68542
24015 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
24016 branch with vector comparison.
24017 * config/i386/sse.md (VI48_AVX): New mode iterator.
24018 (define_expand "cbranch<mode>4): Add support for conditional branch
24019 with vector comparison.
24020 * tree-vect-loop.c (optimize_mask_stores): New function.
24021 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
24022 has_mask_store field of vect_info.
24023 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
24024 vectorized loops having masked stores after vec_info destroy.
24025 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
24026 correspondent macros.
24027 (optimize_mask_stores): Add prototype.
24028
24029 2016-02-02 Alan Modra <amodra@gmail.com>
24030
24031 PR target/69548
24032 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
24033 allow subregs.
24034
24035 2016-02-02 Alan Modra <amodra@gmail.com>
24036
24037 PR target/68662
24038 * config/rs6000/rs6000.c (need_toc_init): New var, set it
24039 whenever toc_label_name used.
24040 (rs6000_file_start): Don't set up toc section here,
24041 (rs6000_output_function_epilogue): do so here instead,
24042 (rs6000_xcoff_file_start): and here.
24043 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
24044 (load_toc_aix_di): Likewise.
24045
24046 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24047
24048 PR rtl-optimization/69592
24049 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
24050 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
24051 (num_sign_bit_copies_binary_arith_p): New inline function.
24052 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
24053
24054 2016-02-01 Jeff Law <law@redhat.com>
24055
24056 PR tree-optimization/69580
24057 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
24058 * tree-ssa-threadbackward.c
24059 (fsm_find_control_statement_thread_paths): Do not try to walk
24060 through large PHI nodes.
24061
24062 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24063
24064 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
24065 when count is incremented above limit, don't analyze further
24066 insns afterwards.
24067
24068 * omp-low.c (oacc_parse_default_dims): Avoid
24069 -Wsign-compare warning, make sure value fits into int
24070 rather than just unsigned int.
24071
24072 2016-02-01 Bin Cheng <bin.cheng@arm.com>
24073
24074 PR tree-optimization/67921
24075 * fold-const.c (split_tree): New parameters. Convert pointer
24076 type variable part to proper type before negating.
24077 (fold_binary_loc): Pass new arguments to split_tree.
24078
24079 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
24080
24081 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
24082 (nvptx_goacc_validate_dims): Extend to handle global defaults.
24083 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
24084 * doc/tm.texti: Rebuilt.
24085 * doc/invoke.texi (fopenacc-dim): Document.
24086 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
24087 (append_compiler_options): Likewise.
24088 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
24089 (oacc_parse_default_dims): New.
24090 (oacc_validate_dims): Add USED arg. Select non-unity default when
24091 possible.
24092 (oacc_loop_fixed_partitions): Return mask of used partitions.
24093 (oacc_loop_auto_partitions): Emit dump info.
24094 (oacc_loop_partition): Return mask of used partitions.
24095 (execute_oacc_device_lower): Parse default dimension arg. Adjust
24096 loop partitioning and validation calls.
24097
24098 2016-02-01 Richard Biener <rguenther@suse.de>
24099
24100 PR middle-end/69556
24101 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
24102
24103 2016-02-01 Richard Biener <rguenther@suse.de>
24104
24105 PR tree-optimization/69574
24106 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
24107 of asserting return chrec_dont_know.
24108
24109 2016-02-01 Martin Liska <mliska@suse.cz>
24110
24111 * mem-stats-traits.h: Add copyright header.
24112 * mem-stats.h: Likewise.
24113
24114 2016-02-01 Richard Biener <rguenther@suse.de>
24115
24116 PR tree-optimization/69579
24117 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
24118 Do not propagate through abnormal PHI results.
24119
24120 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
24121
24122 * postreload.c (reload_cse_simplify): Remove dead code.
24123
24124 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24125
24126 PR rtl-optimization/69570
24127 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
24128 if there is more than one set, not if there is a single set.
24129
24130 2016-02-01 Richard Henderson <rth@redhat.com>
24131
24132 PR rtl-opt/69535
24133 * combine.c (make_compound_operation): When looking through a
24134 subreg, make sure to re-extend to the width of the outer mode.
24135
24136 2016-01-30 Jakub Jelinek <jakub@redhat.com>
24137
24138 PR tree-optimization/69546
24139 * wide-int.cc (wi::divmod_internal): For unsigned division
24140 where both operands fit into uhwi, if o1 is 1 and o0 has
24141 msb set, if divident_prec is larger than bits per hwi,
24142 clear another quotient word and return 2 instead of 1.
24143 Similarly for remainder with msb in HWI set, if dividend_prec
24144 is larger than bits per hwi.
24145
24146 2016-01-29 Martin Jambor <mjambor@suse.cz>
24147
24148 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
24149 Use short lowercase names.
24150 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
24151 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
24152 acq_rel one. Protect warning agains segfaults if
24153 get_memory_order_name returns NULL.
24154 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
24155 with release semantics. Do not warn if get_memory_order already did.
24156 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
24157 semantics. Fix check for relaxed or acquire semantics. Do not warn
24158 if get_memory_order already did.
24159
24160 2016-01-29 Sebastian Pop <s.pop@samsung.com>
24161
24162 * doc/install.texi: Document that isl-0.16 is supported.
24163
24164 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
24165
24166 PR target/69299
24167 * config/i386/constraints.md (Bm): Describe as special memory
24168 constraint.
24169 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
24170 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24171 * genpreds.c (struct constraint_data): Add is_special_memory.
24172 (have_special_memory_constraints, special_memory_start): New
24173 static vars.
24174 (special_memory_end): Ditto.
24175 (add_constraint): Add new arg is_special_memory. Add code to
24176 process its true value. Update have_special_memory_constraints.
24177 (process_define_constraint): Pass the new arg.
24178 (process_define_register_constraint): Ditto.
24179 (choose_enum_order): Process special memory.
24180 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
24181 function insn_extra_special_memory_constraint.
24182 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24183 * gensupport.c (process_rtx): Process
24184 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24185 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
24186 * ira-lives.c (single_reg_class): Use
24187 insn_extra_special_memory_constraint.
24188 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
24189 * lra-constraints.c (process_alt_operands): Ditto.
24190 (curr_insn_transform): Use insn_extra_special_memory_constraint.
24191 * recog.c (asm_operand_ok, preprocess_constraints): Process
24192 CT_SPECIAL_MEMORY.
24193 * reload.c (find_reloads): Ditto.
24194 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
24195 * stmt.c (parse_input_constraint): Use
24196 insn_extra_special_memory_constraint.
24197
24198 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24199
24200 PR target/69530
24201 * lra-splill.c (lra_final_code_change): Revert r229087 by
24202 removing all sub-registers.
24203
24204 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
24205
24206 PR target/65604
24207 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
24208
24209 2016-01-29 Jakub Jelinek <jakub@redhat.com>
24210
24211 PR target/69551
24212 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
24213 SSE1, copy target into the temporary reg first before recursing
24214 on it.
24215
24216 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24217
24218 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
24219 with vm.
24220
24221 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24222
24223 * ginclude/stdarg.h: Test __cplusplus instead of
24224 __GXX_EXPERIMENTAL_CXX0X__.
24225
24226 2016-01-29 Richard Biener <rguenther@suse.de>
24227
24228 PR tree-optimization/69547
24229 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
24230 Do not mark clobbers necessary.
24231 (mark_all_reaching_defs_necessary_1): Likewise.
24232
24233 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24234
24235 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
24236 declaration name with %qs and print it in both error messages.
24237 Also fix indentation.
24238
24239 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24240
24241 PR other/69006
24242 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
24243 trailing blank line from error message.
24244
24245 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24246
24247 PR c++/69462
24248 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
24249 for C++-11.
24250
24251 2016-01-29 Richard Biener <rguenther@suse.de>
24252
24253 PR middle-end/69537
24254 * match.pd: Allow all integral types when simplifying a
24255 widening or sign-changing conversion.
24256
24257 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24258
24259 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
24260 back to setting codegen_error to fail codegen.
24261
24262 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
24263
24264 PR target/69459
24265 * config/i386/constraints.md (C): Only accept constant zero operand.
24266 (BC): New constraint.
24267 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
24268 instead of C constraint.
24269 * doc/md.texi (Machine Constraints): Update description
24270 of C constraint.
24271
24272 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
24273
24274 PR target/68400
24275 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
24276
24277 2016-01-28 Jakub Jelinek <jakub@redhat.com>
24278
24279 PR middle-end/69542
24280 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
24281 non-debug insns.
24282
24283 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
24284
24285 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
24286 branches if using guessed profile.
24287
24288 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
24289
24290 * graphite-optimize-isl.c (optimize_isl): Fix dump.
24291
24292 2016-01-28 Richard Henderson <rth@redhat.com>
24293
24294 PR target/69305
24295 * config/aarch64/aarch64-modes.def (CC_Cmode): New
24296 * config/aarch64/aarch64-protos.h: Update.
24297 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
24298 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
24299 (aarch64_get_condition_code_1): Handle CC_Cmode.
24300 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
24301 (*add<mode>3_compareC_cconly_imm): New.
24302 (*add<mode>3_compareC_cconly): New.
24303 (*add<mode>3_compareC_imm): New.
24304 (add<mode>3_compareC): New.
24305 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
24306 to be first. Use aarch64_carry_operation.
24307 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
24308 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
24309 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
24310 (subti3): Use subdi3_compare1.
24311 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
24312 (sub<mode>3_compare1): New.
24313 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
24314 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
24315 (*subsi3_carryin_uxtw): Likewise.
24316 (*ngc<mode>, *ngcsi_uxtw): Likewise.
24317 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
24318 * config/aarch64/iterators.md (DWI): New.
24319 * config/aarch64/predicates.md (aarch64_carry_operation): New.
24320 (aarch64_borrow_operation): New.
24321
24322 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24323
24324 * graphite-optimize-isl.c (optimize_isl): Print a different debug
24325 message when isl does not return a valid schedule.
24326
24327 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24328
24329 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
24330 Remove comments from class declarations: they are already in the code
24331 close by the defs.
24332
24333 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24334
24335 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
24336 codegen_error_p.
24337 (ternary_op_to_tree): Same.
24338 (unary_op_to_tree): Same.
24339 (nary_op_to_tree): Same.
24340 (gcc_expression_from_isl_expr_op): Same.
24341 (gcc_expression_from_isl_expression): Same.
24342 (graphite_create_new_loop): Same.
24343 (graphite_create_new_loop_guard): Same.
24344 (build_iv_mapping): Same.
24345 (graphite_create_new_guard): Same.
24346 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
24347 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
24348
24349 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24350
24351 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
24352 instead of setting codegen_error to fail codegen.
24353
24354 2016-01-28 Jason Merrill <jason@redhat.com>
24355
24356 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
24357
24358 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24359
24360 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24361 Remove CONST_INT_P check in CCMP cost calculation.
24362
24363 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24364
24365 * config/aarch64/aarch64.c (generic_vector_cost):
24366 Set vec_permute_cost.
24367 (cortexa57_vector_cost): Likewise.
24368 (exynosm1_vector_cost): Likewise.
24369 (xgene1_vector_cost): Likewise.
24370 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
24371 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
24372 Add vec_permute_cost entry.
24373
24374 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24375
24376 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
24377 immediate as %1.
24378 (add<mode>3_compare0): Likewise.
24379 (addsi3_compare0_uxtw): Likewise.
24380 (add<mode>3nr_compare0): Likewise.
24381 (compare_neg<mode>): Likewise.
24382 (<optab><mode>3): Likewise.
24383
24384 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
24385
24386 * tree-vect-stmts.c (vectorizable_comparison): Add
24387 NULL check for vectype.
24388
24389 2016-01-28 Richard Biener <rguenther@suse.de>
24390
24391 PR tree-optimization/69466
24392 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
24393 Account for PHIs we couldn't duplicate.
24394
24395 2016-01-28 Martin Liska <mliska@suse.cz>
24396
24397 PR pch/68758
24398 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
24399 instead of ENABLE_VALGRIND_CHECKING.
24400
24401 2016-01-27 Richard Henderson <rth@redhat.com>
24402
24403 PR rtl-opt/69447
24404 * lra-remat.c (subreg_regs): New.
24405 (dump_candidates_and_remat_bb_data): Dump it.
24406 (operand_to_remat): Reject if operand in subreg_regs.
24407 (set_bb_regs): Collect subreg_regs.
24408 (lra_remat): Init and free subreg_regs. Compute
24409 calculate_local_reg_remat_bb_data before create_cands.
24410
24411 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
24412
24413 PR target/68986
24414 * config/i386/i386.c (ix86_update_stack_boundary): Don't
24415 change stack_alignment_needed for __tls_get_addr call.
24416
24417 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
24418
24419 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
24420
24421 2016-01-27 Jeff Law <law@redhat.com>
24422
24423 PR tree-optimization/68398
24424 PR tree-optimization/69196
24425 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
24426 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
24427 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24428 Only count PHIs in the last block in the path. The others will
24429 const/copy propagate away. Add heuristic to allow more irreducible
24430 subloops to be created when it is likely profitable to do so.
24431
24432 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24433 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
24434 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
24435
24436 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24437
24438 PR lto/69254
24439 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
24440 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
24441 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
24442 * tree-streamer-in.c: Include asan.h.
24443 (streamer_get_builtin_tree): For builtins in sanitizer
24444 range call initialize_sanitizer_builtins and retry.
24445
24446 2016-01-27 Ian Lance Taylor <iant@google.com>
24447
24448 * common.opt (fkeep-gc-roots-live): New undocumented option.
24449 * tree-ssa-loop-ivopts.c (add_candidate_1): If
24450 -fkeep-gc-roots-live, skip pointers.
24451 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
24452 NULL.
24453
24454 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
24455
24456 PR target/69512
24457 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
24458 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
24459
24460 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
24461
24462 PR target/68380
24463 * configure.ac: NetBSD provides SSP in its C library.
24464 * configure: Updated.
24465
24466 2016-01-27 Richard Biener <rguenther@suse.de>
24467
24468 PR tree-optimization/69166
24469 * tree-vect-loop.c (vect_is_simple_reduction): Always check
24470 reduction code for commutativity / associativity.
24471
24472 2016-01-27 Martin Jambor <mjambor@suse.cz>
24473
24474 PR tree-optimization/69355
24475 * tree-sra.c (analyze_access_subtree): Correct hole detection when
24476 total_scalarization fails.
24477
24478 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
24479
24480 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
24481 power9.
24482
24483 2016-01-27 Christian Bruel <christian.bruel@st.com>
24484
24485 PR target/69245
24486 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
24487 Move arm_reset_previous_fndecl and set_target_option_current_node in
24488 the conditional part. Call save_restore_target_globals.
24489 * config/arm/arm.c (arm_set_current_function):
24490 Refactor to better support #pragma target and attribute mix.
24491 Call save_restore_target_globals.
24492 * config/arm/arm-protos.h (save_restore_target_globals): New function.
24493
24494 2016-01-27 Martin Liska <mliska@suse.cz>
24495
24496 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
24497 reference for an HSA kernel and its host function.
24498
24499 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24500
24501 PR tree-optimization/69399
24502 * wide-int.h (wi::lrshift): For larger precisions, only
24503 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
24504
24505 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
24506
24507 * config/arc/predicates.md (proper_comparison_operator): Reject
24508 constant-constant comparison.
24509
24510 2016-01-26 Tom de Vries <tom@codesourcery.com>
24511
24512 PR tree-optimization/69110
24513 * tree-data-ref.c (initialize_data_dependence_relation): Handle
24514 DR_NUM_DIMENSIONS == 0.
24515
24516 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24517 Sebastian Pop <s.pop@samsung.com>
24518
24519 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
24520 isl_ast_op_cond and isl_ast_op_select.
24521 (gcc_expression_from_isl_expr_op): Same.
24522
24523 2016-01-26 Jason Merrill <jason@redhat.com>
24524
24525 PR c++/68782
24526 * tree.c (recompute_constructor_flags): Split out from
24527 build_constructor.
24528 (verify_constructor_flags): New.
24529 * tree.h: Declare them.
24530
24531 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
24532
24533 PR rtl-optimization/69217
24534 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
24535 are no TYPE_FIELDS set for the record type.
24536
24537 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24538
24539 PR target/68662
24540 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
24541 toc_label_name unconditionally.
24542 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
24543 SYMBOL_REF string. Use toc_label_name instead of constructing
24544 LCTOC1.
24545 (rs6000_elf_declare_function_name): Use toc_label_name instead of
24546 constructing LCTOC1.
24547
24548 2016-01-26 Martin Sebor <msebor@redhat.com>
24549
24550 PR other/69477
24551 * doc/extend.texi (Common Type Attributes): Move text that talks about
24552 attribute packed from attribute aligned to the section discussing
24553 the former attribute for clarity.
24554
24555 2016-01-26 Richard Henderson <rth@redhat.com>
24556
24557 PR middle-end/60908
24558 * trans-mem.c (tm_region_init): Mark entry block as visited.
24559
24560 2016-01-26 David Malcolm <dmalcolm@redhat.com>
24561
24562 PR other/69006
24563 * diagnostic-show-locus.c (layout::print_source_line): Replace
24564 call to pp_newline with call to layout::print_newline.
24565 (layout::print_annotation_line): Likewise.
24566 (layout::move_to_column): Likewise.
24567 (layout::print_any_fixits): After printing any fixits, print a
24568 trailing newline, if necessary.
24569 (layout::print_newline): New method, resetting any colorization
24570 before a newline.
24571 (diagnostic_show_locus): Move the pp_newline to before the
24572 early bailout. Remove dummy block enclosing the layout instance.
24573 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
24574 of pp_newline_and_flush with pp_flush.
24575 (diagnostic_append_note): Delete use of pp_newline.
24576 (diagnostic_append_note_at_rich_loc): Delete.
24577 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
24578 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
24579 when newline characters are added to the buffer.
24580
24581 2016-01-26 Michael Matz <matz@suse.de>
24582
24583 * configure.ac (ac_cv_std_swap_in_utility): New test.
24584 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
24585 * configure: Regenerate.
24586 * config.in: Regenerate.
24587
24588 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
24589
24590 * config/arc/arc.md (cstoresi4): Force operand into register.
24591 (arcset<code>): Fix predicate.
24592 (arcsetltu): Likewise.
24593 (arcsetgeu): Likewise.
24594 (arcsethi): Likewise.
24595 (arcsetls): Likewise.
24596
24597 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24598
24599 PR tree-optimization/69483
24600 * gimple-fold.c (canonicalize_constructor_val): Return NULL
24601 if base has error_mark_node type.
24602
24603 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
24604
24605 PR target/68620
24606 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
24607 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
24608 New helper macros.
24609 (vget_lane_f16): Handle big-endian.
24610 (vgetq_lane_f16): Likewise.
24611 (vset_lane_f16): Likewise.
24612 (vsetq_lane_f16): Likewise.
24613 * config/arm/iterators.md (VQXMOV): Add V8HF.
24614 (VDQ): Add V4HF and V8HF.
24615 (V_reg): Handle V4HF and V8HF.
24616 (Is_float_mode): Likewise.
24617 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
24618 neon_vdup_nv8hf): New patterns.
24619 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
24620 Use VD_LANE iterator.
24621 (neon_vld1_dup<mode>): Use VQ2 iterator.
24622
24623 2016-01-26 Nathan Sidwell <nathan@acm.org>
24624
24625 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
24626 (set_oacc_fn_attrib): Add IS_KERNEL arg.
24627 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
24628 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
24629 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
24630 (oacc_validate_dims): Add LEVEL arg, don't return level.
24631 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
24632 oacc_validate_dims.
24633 (execute_oacc_device_lower): Adjust, add more dump output.
24634 * tree-ssa-loop.c (gate_oacc_kernels): Use
24635 oacc_fn_attrib_kernels_p.
24636 * tree-parloops.c (create_parallel_loop): Adjust
24637 set_oacc_fn_attrib call.
24638
24639 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24640
24641 PR lto/69254
24642 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24643 (append_compiler_options): Handle -fcilkplus.
24644 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24645
24646 2016-01-26 Nick Clifton <nickc@redhat.com>
24647
24648 PR target/66655
24649 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24650 been marked as DECL_ONE_ONLY but we do not the means to make it
24651 so, then do not allow it to bind locally.
24652
24653 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24654
24655 PR lto/69254
24656 * opts.h (parse_sanitizer_options): New prototype.
24657 * opts.c (sanitizer_opts): New array.
24658 (parse_sanitizer_options): New function.
24659 (common_handle_option): Use parse_sanitizer_options.
24660
24661 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
24662
24663 PR target/68986
24664 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24665 alignment adjustment to ...
24666 (ix86_update_stack_boundary): Here. Don't over-align stack for
24667 __tls_get_addr.
24668 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24669 if __tls_get_addr is called.
24670
24671 2016-01-26 Christian Bruel <christian.bruel@st.com>
24672
24673 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24674
24675 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
24676
24677 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24678
24679 2016-01-26 Richard Biener <rguenther@suse.de>
24680
24681 PR middle-end/69467
24682 * match.pd: Guard X * CST CMP 0 pattern with single_use.
24683
24684 2016-01-26 Richard Biener <rguenther@suse.de>
24685
24686 PR tree-optimization/69452
24687 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24688 (move_computations_dom_walker::before_dom_children): Rename
24689 to ...
24690 (move_computations_worker): This.
24691 (move_computations): Perform an RPO rather than a DOM walk.
24692
24693 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24694
24695 PR target/69442
24696 * combine.c (combine_instructions): For REG_EQUAL note with
24697 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24698 to the underlying register.
24699 * doc/rtl.texi (REG_EQUAL): Document the behavior of
24700 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24701
24702 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
24703
24704 PR target/67896
24705 * config/aarch64/aarch64-builtins.c
24706 (aarch64_init_simd_builtin_types): Do not set structural
24707 equality to __Poly{8,16,64,128}_t types.
24708
24709 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
24710
24711 PR tree-optimization/69400
24712 * wide-int.cc (wi_pack): Take the precision as argument and
24713 perform canonicalization here rather than in the callers.
24714 Use the main loop to handle all full-width HWIs. Add a
24715 zero HWI if in_len isn't a full result.
24716 (wi::divmod_internal): Update accordingly.
24717 (wi::mul_internal): Likewise. Simplify.
24718
24719 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24720 Sebastian Pop <s.pop@samsung.com>
24721
24722 * graphite-poly.c (apply_poly_transforms): Simplify.
24723 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24724 (print_isl_map): Same.
24725 (print_isl_union_map): Same.
24726 (print_isl_schedule): New.
24727 (debug_isl_schedule): New.
24728 * graphite-dependences.c (scop_get_reads): Do not call
24729 isl_union_map_add_map that is undocumented isl functionality.
24730 (scop_get_must_writes): Same.
24731 (scop_get_may_writes): Same.
24732 (scop_get_original_schedule): Remove.
24733 (scop_get_dependences): Do not call isl_union_map_compute_flow that
24734 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
24735 (compute_deps): Remove.
24736 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24737 (debug_schedule_ast): New.
24738 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24739 set_separate_option.
24740 (graphite_regenerate_ast_isl): Add dump.
24741 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24742 from scop->transformed_schedule.
24743 (graphite_regenerate_ast_isl): Add more dump.
24744 * graphite-optimize-isl.c (optimize_isl): Set
24745 scop->transformed_schedule. Check whether schedules are equal.
24746 (apply_poly_transforms): Move here.
24747 * graphite-poly.c (apply_poly_transforms): ... from here.
24748 (free_poly_bb): Static.
24749 (free_scop): Static.
24750 (pbb_number_of_iterations_at_time): Remove.
24751 (print_isl_ast): New.
24752 (debug_isl_ast): New.
24753 (debug_scop_pbb): New.
24754 * graphite-scop-detection.c (print_edge): Move.
24755 (print_sese): Move.
24756 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24757 (build_scop_scattering): Remove.
24758 (create_pw_aff_from_tree): Assert instead of bailing out.
24759 (add_condition_to_pbb): Remove unused code, do not fail.
24760 (add_conditions_to_domain): Same.
24761 (add_conditions_to_constraints): Remove.
24762 (build_scop_context): New.
24763 (add_iter_domain_dimension): New.
24764 (build_iteration_domains): Initialize pbb->iterators.
24765 Call add_conditions_to_domain.
24766 (nested_in): New.
24767 (loop_at): New.
24768 (index_outermost_in_loop): New.
24769 (index_pbb_in_loop): New.
24770 (outermost_pbb_in): New.
24771 (add_in_sequence): New.
24772 (add_outer_projection): New.
24773 (outer_projection_mupa): New.
24774 (add_loop_schedule): New.
24775 (build_schedule_pbb): New.
24776 (build_schedule_loop): New.
24777 (embed_in_surrounding_loops): New.
24778 (build_schedule_loop_nest): New.
24779 (build_original_schedule): New.
24780 (build_poly_scop): Call build_original_schedule.
24781 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24782 (free_poly_dr): Remove.
24783 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24784 (free_poly_bb): Remove.
24785 (debug_loop_vec): Remove.
24786 (print_isl_ast): Declare.
24787 (debug_isl_ast): Declare.
24788 (scop_do_interchange): Remove.
24789 (scop_do_strip_mine): Remove.
24790 (scop_do_block): Remove.
24791 (flatten_all_loops): Remove.
24792 (optimize_isl): Remove.
24793 (pbb_number_of_iterations_at_time): Remove.
24794 (debug_scop_pbb): Declare.
24795 (print_schedule_ast): Declare.
24796 (debug_schedule_ast): Declare.
24797 (struct scop): Remove schedule. Add original_schedule,
24798 transformed_schedule.
24799 (free_gimple_poly_bb): Remove.
24800 (print_generated_program): Remove.
24801 (debug_generated_program): Remove.
24802 (unify_scattering_dimensions): Remove.
24803 * sese.c (print_edge): ... here.
24804 (print_sese): ... here.
24805 (debug_edge): ... here.
24806 (debug_sese): ... here.
24807 * sese.h (print_edge): Declare.
24808 (print_sese): Declare.
24809 (dump_edge): Declare.
24810 (dump_sese): Declare.
24811
24812 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24813 Sebastian Pop <s.pop@samsung.com>
24814
24815 * Makefile.in: Set ISLVER in site.exp.
24816
24817 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24818
24819 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24820 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24821 through DECL_VALUE_EXPR for expansion.
24822
24823 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24824
24825 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24826 the frame info after reload completed.
24827
24828 2016-01-25 Jeff Law <law@redhat.com>
24829
24830 PR tree-optimization/69196
24831 PR tree-optimization/68398
24832 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24833 tree-ssa-threadupdate.c.
24834 (determine_bb_domination_status): Prototype
24835 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24836 (determine_bb_domination_status): No longer static.
24837 (valid_jump_thread_path): Remove code to detect characteristics
24838 of the jump thread path not associated with correctness.
24839 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24840 Correct test for thread path length. Count PHIs for real operands as
24841 statements that need to be copied. Do not count ASSERT_EXPRs.
24842 Look at all the blocks in the thread path. Compute and selectively
24843 filter thread paths based on threading through the latch, threading
24844 a multiway branch or crossing a multiway branch.
24845
24846 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24847
24848 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24849 decl with __attribute__ ((unused)) annotation.
24850
24851 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24852
24853 PR target/69421
24854 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24855 of operands is compatible with a statement vectype.
24856
24857 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24858
24859 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24860 improve wording for mixed storage order support.
24861
24862 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24863
24864 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24865 (vcvt_u64_f64): Likewise.
24866 (vcvta_s64_f64): Likewise.
24867 (vcvta_u64_f64): Likewise.
24868 (vcvtm_s64_f64): Likewise.
24869 (vcvtm_u64_f64): Likewise.
24870 (vcvtn_s64_f64): Likewise.
24871 (vcvtn_u64_f64): Likewise.
24872 (vcvtp_s64_f64): Likewise.
24873 (vcvtp_u64_f64): Likewise.
24874
24875 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24876
24877 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24878 (arc_init): Check validity mll64 option.
24879 (arc_save_restore): Use double load/store instruction.
24880 (arc_expand_movmem): Likewise.
24881 (arc_split_move): Don't split if we have double load/store
24882 instructions. Returns a boolean.
24883 (arc_process_double_reg_moves): Change function to return boolean
24884 instead of a sequence of instructions.
24885 (arc_dwarf_register_span): New function.
24886 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24887 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24888 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24889 (*movdf_insn): Likewise.
24890 * config/arc/arc.opt (mll64): New option.
24891 * config/arc/predicates.md (even_register_operand): New predicate.
24892 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24893
24894 2016-01-25 Richard Biener <rguenther@suse.de>
24895
24896 PR lto/69393
24897 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24898 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24899 DECL_NAMELESS.
24900 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24901
24902 2016-01-25 Richard Biener <rguenther@suse.de>
24903
24904 PR tree-optimization/69376
24905 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24906 flag.
24907 (VN_INFO_ANTI_RANGE_P): New inline.
24908 (VN_INFO_RANGE_TYPE): Likewise.
24909 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24910 SSA_NAME_ANTI_RANGE_P.
24911 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24912 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24913 Properly query VN_INFO_RANGE_TYPE.
24914
24915 2016-01-25 Nick Clifton <nickc@redhat.com>
24916
24917 PR target/66655
24918 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24919
24920 2016-01-23 Tom de Vries <tom@codesourcery.com>
24921
24922 PR tree-optimization/69426
24923 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24924 removed clobber.
24925
24926 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24927
24928 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24929 "the the" with "the" in the comments.
24930 * ipa-devirt.c (build_type_inheritance_graph,
24931 update_type_inheritance_graph): Likewise.
24932 * tree.c (build_function_type_list_1): Likewise.
24933 * cfgloopmanip.c (scale_loop_profile): Likewise.
24934 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24935 * gimple-ssa-split-paths.c
24936 (find_block_to_duplicate_for_splitting_paths): Likewise.
24937 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24938 * expr.c (convert_move): Likewise.
24939 * var-tracking.c (vt_stack_adjustments): Likewise.
24940 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24941 * tree-vrp.c (test_for_singularity): Likewise.
24942
24943 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24944 directly instead of building a temporary tree.
24945
24946 PR bootstrap/69434
24947 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24948 remove <algorithm> include.
24949
24950 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24951
24952 PR target/69432
24953 * config/i386/i386.c: Include dojump.h.
24954 (expand_small_movmem_or_setmem,
24955 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24956 fixes.
24957 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24958 if dynamic_check != -1.
24959
24960 2016-01-21 Jeff Law <law@redhat.com>
24961
24962 PR middle-end/69347
24963 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24964 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24965 into dominated_by_p.
24966 (cprop_into_successor_phis): Avoid unnecessary tests.
24967
24968 2016-01-22 Richard Henderson <rth@redhat.com>
24969
24970 PR target/69416
24971 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24972 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24973
24974 2016-01-22 Michael Matz <matz@suse.de>
24975
24976 * system.h (string, algorithm): Include only conditionally.
24977 (new): Include always under C++.
24978 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24979 * final.c (toplevel): Ditto.
24980 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24981 * genconditions.c (write_header): Make gencondmd.c define
24982 INCLUDE_STRING.
24983 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24984
24985 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24986 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24987
24988 2016-01-22 Christian Bruel <christian.bruel@st.com>
24989
24990 PR target/68674
24991 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24992
24993 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24994
24995 PR target/69403
24996 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24997 define_insn_and_split. Ensure operands[1] and operands[0] do not
24998 get assigned the same register.
24999
25000 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
25001
25002 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
25003
25004 2016-01-22 Christian Bruel <christian.bruel@st.com>
25005
25006 * config/arm/arm-c.c (arm_pragma_target_parse):
25007 Remove warn_builtin_macro_redefined overwrite.
25008
25009 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
25010
25011 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
25012 flag_non_call_exceptions compatibility.
25013
25014 2016-01-22 Jakub Jelinek <jakub@redhat.com>
25015
25016 PR debug/66668
25017 * dwarf2out.c (add_child_die_after): New function.
25018 (dwarf_qual_info_t): New type.
25019 (dwarf_qual_info): New variable.
25020 (qualified_die_p): New function.
25021 (modified_type_die): For -fdebug-types-section, ensure
25022 canonical order of qualifiers. Put qualified DIEs adjacent
25023 to the corresponding non-qualified type DIE and search there
25024 for existing qualified DIEs.
25025
25026 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
25027
25028 * doc/extend.texi (scalar_storage_order type attribute): Document
25029 restriction on type punning and aliasing, and remove future tense.
25030
25031 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
25032
25033 PR target/69252
25034 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
25035 first stage.
25036
25037 2016-01-21 Jeff Law <law@redhat.com>
25038
25039 PR middle-end/69347
25040 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
25041 useless call to record_temporary_equivalences.
25042 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
25043 allocate 10 slots in the bb_path vector and let it grow as needed.
25044 (fsm_find_control_statement_thread_paths): Similarly for the next_path
25045 vector.
25046
25047 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25048
25049 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
25050 Detangle.
25051 * configure: Regenerate.
25052
25053 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
25054
25055 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
25056 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
25057
25058 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
25059
25060 PR middle-end/66178
25061 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
25062 drop EXPAND_INITIALIZER.
25063 * rtl.h (contains_symbolic_reference_p): Declare.
25064 * rtlanal.c (contains_symbolic_reference_p): New function.
25065 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
25066 a subtraction into a NOT if symbolic constants are involved.
25067
25068 2016-01-21 Anton Blanchard <anton@samba.org>
25069 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25070
25071 PR target/63354
25072 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
25073 #define.
25074 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
25075 function.
25076
25077 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25078
25079 * config/microblaze/microblaze.c
25080 (get_branch_target): New.
25081 (insert_wic_for_ilb_runout): New.
25082 (insert_wic): New.
25083 (microblaze_machine_dependent_reorg): New.
25084 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
25085 * config/microblaze/microblaze.md
25086 (UNSPEC_IPREFETCH): Define.
25087 (iprefetch): New pattern
25088 * config/microblaze/microblaze.opt
25089 (mxl-prefetch): New flag.
25090
25091 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25092
25093 * config/microblaze/microblaze.h
25094 (FIXED_REGISTERS): Update in macro.
25095 (CALL_USED_REGISTERS): Update in macro.
25096
25097 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
25098
25099 PR rtl-optimization/68920
25100 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
25101 moves.
25102
25103 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
25104
25105 PR rtl-optimization/68990
25106 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
25107 pseudo instead of inheritance ones.
25108
25109 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25110 Nick Clifton <nickc@redhat.com>
25111
25112 PR target/69129
25113 PR target/69012
25114 * config/mips/mips.c (mips_compute_frame_info): Initialise
25115 args_size and hard_frame_pointer_offset fields of the frame
25116 structure before calling mips_global_pointer.
25117
25118 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25119
25120 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
25121 label reference.
25122 * configure: Regenerate.
25123
25124 2016-01-21 Richard Biener <rguenther@suse.de>
25125
25126 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
25127
25128 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25129
25130 * config/s390/s390.c (s390_asm_declare_function_size): Add code
25131 to actually emit the .size directive.
25132
25133 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
25134 Jakub Jelinek <jakub@redhat.com>
25135
25136 PR target/69187
25137 PR target/65624
25138 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
25139 args array size by one to avoid buffer overflow.
25140
25141 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25142
25143 * config/s390/s390.md (pool_section_start): Use switch_to_section
25144 to select proper read-only data section instead of hardcoding
25145 .rodata.
25146 (pool_section_end): Use switch_to_section to match the above.
25147
25148 2016-01-21 Richard Biener <rguenther@suse.de>
25149
25150 PR tree-optimization/69378
25151 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
25152 (set_ssa_val_to): Use it for dominance checks taking into
25153 account not executable edges.
25154
25155 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25156
25157 PR c++/69355
25158 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
25159 for bitsize instead of GET_MODE_PRECISION (mode).
25160
25161 2016-01-20 Martin Sebor <msebor@redhat.com>
25162
25163 PR c/52291
25164 * extend.texi (__sync Builtins): Clarify the semantics of
25165 __sync_fetch_and_OP built-ins on pointers.
25166 (__atomic Builtins): Same.
25167
25168 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25169 Sebastian Pop <s.pop@samsung.com>
25170
25171 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
25172 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
25173 (is_valid_rename): Same.
25174 (translate_isl_ast_to_gimple::get_rename): Same.
25175 (translate_isl_ast_to_gimple::rename_all_uses): Same.
25176 (translate_isl_ast_to_gimple::rename_uses): Same.
25177 (get_new_name): Check for close_phi nodes.
25178 (copy_loop_phi_args): Use phi_node_kind.
25179 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
25180 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
25181
25182 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25183 Sebastian Pop <s.pop@samsung.com>
25184
25185 Revert commit r229783.
25186 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
25187 Remove use of parameter_rename_map.
25188 (copy_def): Remove.
25189 (copy_internal_parameters): Remove.
25190 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
25191 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
25192 (free_sese_info): Do not free parameter_rename_map.
25193 (set_rename): Do not use parameter_rename_map.
25194 (rename_uses): Update call to set_rename.
25195 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
25196 * sese.h (parameter_rename_map_t): Remove.
25197 (struct sese_info_t): Remove field parameter_rename_map.
25198
25199 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25200 Sebastian Pop <s.pop@samsung.com>
25201
25202 * graphite-isl-ast-to-gimple.c: Fix comment.
25203 * graphite-scop-detection.c (defined_in_loop_p): New.
25204 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
25205 names defined in loop.
25206
25207 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25208 Sebastian Pop <s.pop@samsung.com>
25209
25210 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
25211 Discard unstructured if-then-else regions.
25212
25213 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25214 Sebastian Pop <s.pop@samsung.com>
25215
25216 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
25217 (cleanup_loop_iter_dom): Remove.
25218 (build_loop_iteration_domains): Remove.
25219 (build_scop_context): Remove.
25220 (build_scop_iteration_domain): Remove.
25221 (add_loop_constraints): New.
25222 (build_iteration_domains): New.
25223 (build_poly_scop): Call build_iteration_domains.
25224
25225 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25226 Sebastian Pop <s.pop@samsung.com>
25227
25228 * graphite-scop-detection.c
25229 (scop_detection::harmful_loop_in_region): Free dom and loops.
25230 (scop_detection::loop_body_is_valid_scop): Free bbs.
25231
25232 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25233 Sebastian Pop <s.pop@samsung.com>
25234
25235 * graphite-scop-detection.c (record_loop_in_sese): New.
25236 (gather_bbs::before_dom_children): Call record_loop_in_sese.
25237 (build_scops): Remove call to build_sese_loop_nests.
25238 * sese.c (sese_record_loop): Remove.
25239 (build_sese_loop_nests): Remove.
25240 (new_sese_info): Remove region->loops.
25241 (free_sese_info): Same.
25242 * sese.h (sese_contains_loop): Same.
25243 (build_sese_loop_nests): Remove.
25244 (sese_contains_loop): Remove.
25245
25246 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25247 Sebastian Pop <s.pop@samsung.com>
25248
25249 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
25250 loop_is_valid_in_scop.
25251 (scop_detection::harmful_stmt_in_region): Renamed
25252 harmful_loop_in_region.
25253 Call loop_is_valid_in_scop.
25254
25255 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25256 Sebastian Pop <s.pop@samsung.com>
25257
25258 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
25259 isl_ast_node_mark.
25260
25261 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25262 Sebastian Pop <s.pop@samsung.com>
25263
25264 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
25265 * graphite.h (struct poly_bb): Remove field is_reduction.
25266 (PBB_IS_REDUCTION): Remove.
25267
25268 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25269 Sebastian Pop <s.pop@samsung.com>
25270
25271 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
25272 (add_pdr_constraints): Same.
25273 (scop_get_reads): Same.
25274 (scop_get_must_writes): Same.
25275 (scop_get_may_writes): Same.
25276 (scop_get_original_schedule): Same.
25277 (extend_schedule): Same.
25278 (apply_schedule_on_deps): Same.
25279 (carries_deps): Same.
25280 (compute_deps): Same.
25281 (scop_get_dependences): Same.
25282 * graphite-isl-ast-to-gimple.c
25283 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
25284 * graphite-optimize-isl.c (get_schedule_for_band): Same.
25285 (get_schedule_for_band_list): Same.
25286 (get_schedule_map): Same.
25287 (apply_schedule_map_to_scop): Same.
25288 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25289 (build_loop_iteration_domains): Same.
25290 (add_condition_to_pbb): Same.
25291 (add_param_constraints): Same.
25292 (pdr_add_memory_accesses): Same.
25293 (pdr_add_data_dimensions): Same.
25294
25295 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25296
25297 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
25298 requirements.
25299
25300 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25301
25302 * common.opt (feliminate-dwarf2-dups): Replace references to
25303 "DWARF 2" with just "DWARF".
25304 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
25305 * doc/extend.texi: Likewise.
25306 * doc/cpp.texi: Likewise.
25307 * doc/invoke.texi: Likewise.
25308 (Option Summary): Add -gdwarf to list of Debugging Options.
25309 (Debugging Options): Document -gdwarf.
25310 * doc/contrib.texi: Spell "DWARF" like that.
25311
25312 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25313
25314 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
25315 warning. Fix up formatting.
25316
25317 PR middle-end/67653
25318 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
25319 attempt to mark memory input operand addressable and
25320 call prepare_gimple_addressable in that case. Don't adjust
25321 input_location for diagnostics, use error_at instead.
25322
25323 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
25324
25325 * config/rs6000/ppc-auxv.h: New file.
25326 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
25327 (cpu_is): Likewise.
25328 (cpu_supports): Likewise.
25329 * config/rs6000/rs6000.c: include "ppc-auxv.h".
25330 (cpu_is_info): New variable.
25331 (cpu_supports_info): Likewise.
25332 (tcb_verification_symbol): Likewise.
25333 (cpu_builtin_p): Likewise.
25334 (cpu_expand_builtin): New function.
25335 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
25336 (rs6000_init_builtins): Likewise.
25337 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
25338 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
25339 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
25340 * configure: Regenerate.
25341 * config.in: Likewise.
25342 * doc/extend.texi (PowerPC Built-in Functions): Document
25343 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
25344
25345 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
25346
25347 PR target/68609
25348 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
25349 domain check.
25350 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
25351 for V4SFmode.
25352
25353 2016-01-20 Richard Henderson <rth@redhat.com>
25354
25355 PR bootstrap/69343
25356 PR bootstrap/69339
25357 PR tree-opt/68964
25358 Revert:
25359 * tree.c (tm_define_builtin): New.
25360 (find_tm_vector_type): New.
25361 (build_tm_vector_builtins): New.
25362 (build_common_builtin_nodes): Call it.
25363
25364 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
25365
25366 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
25367 (arm_fp_ok): Likewise.
25368 (arm_fp): Likewise.
25369 (arm_crypto): Likewise.
25370
25371 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25372 Richard Biener <rguenther@suse.de>
25373
25374 PR tree-optimization/69328
25375 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
25376 vectors have same number of elements.
25377 (vectorizable_condition): Fix masked version recognition.
25378
25379 2016-01-20 Richard Biener <rguenther@suse.de>
25380
25381 PR tree-optimization/69345
25382 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
25383 (VN_INFO_PTR_INFO): Likewise.
25384 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
25385 info when it is equal between non-dominating SSA names.
25386 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25387 Make sure to look at original SSA infos.
25388
25389 2016-01-20 Jeff Law <law@redhat.com>
25390
25391 PR target/25114
25392 * config/m68k/predicates.md (pow2_m1_operand): New predicate
25393 extracted from ...
25394 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
25395 (pc_or_label_operand): New predicate.
25396 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
25397 tests for small integers that are 2^n - 1.
25398
25399 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
25400
25401 * doc/invoke.texi (Options Summary): Add '.' after @xref.
25402
25403 2016-01-19 Jeff Law <law@redhat.com>
25404
25405 PR middle-end/69347
25406 * tree-ssa-threadbackwards.c
25407 (fsm_find_control_statement_thread_paths): Do not try to lookup
25408 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
25409
25410 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25411
25412 * doc/lto.texi: Remove text that says only Gold has linker plugin
25413 support.
25414
25415 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
25416
25417 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
25418 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
25419 the DIE accordingly.
25420 (modified_type_die): Add REVERSE parameter and pass it recursively,
25421 as well as to base_type_die. Adjust presence check accordingly.
25422 (base_type_for_mode): Adjust call to modified_type_die.
25423 (add_type_attribute): Add REVERSE parameter and pass it to
25424 modified_type_die.
25425 (generic_parameter_die): Adjust call to add_type_attribute.
25426 (add_scalar_info): Likewise.
25427 (add_subscript_info): Likewise.
25428 (gen_array_type_die): Likewise.
25429 (gen_descr_array_type_die): Likewise.
25430 (gen_entry_point_die): Likewise.
25431 (gen_enumeration_type_die): Likewise.
25432 (gen_formal_parameter_die): Likewise.
25433 (gen_subprogram_die): Likewise.
25434 (gen_variable_die ): Likewise.
25435 (gen_const_die): Likewise.
25436 (gen_field_die): Likewise.
25437 (gen_pointer_type_die): Likewise.
25438 (gen_reference_type_die): Likewise.
25439 (gen_ptr_to_mbr_type_die): Likewise.
25440 (gen_inheritance_die): Likewise.
25441 (gen_subroutine_type_die): Likewise.
25442 (gen_typedef_die): Likewise.
25443 (force_type_die): Adjust call to modified_type_die.
25444
25445 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
25446
25447 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
25448 flow throughout the file. Fix broken link to Objective-C 2.0
25449 documentation.
25450 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
25451 errors.
25452
25453 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25454
25455 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
25456
25457 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25458
25459 PR ipa/66223
25460 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
25461 (maybe_record_node): Record cxa_pure_virtual as the only possible
25462 target if there are not ohter candidates.
25463 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
25464
25465 2016-01-19 Richard Biener <rguenther@suse.de>
25466
25467 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
25468 (get_memory_order): Likewise.
25469
25470 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
25471
25472 * tree-vect-stmts.c (vectorizable_store): Check
25473 rhs vectype.
25474
25475 2016-01-19 David Malcolm <dmalcolm@redhat.com>
25476
25477 PR jit/68446
25478 * gcc.c (driver::decode_argv): Add call to
25479 init_opts_obstack before init_options_struct.
25480 * opts.c (init_opts_obstack): Remove idempotency.
25481 (init_options_struct): Replace call to init_opts_obstack
25482 with a gcc_assert to verify that it has already been called.
25483 * toplev.c (toplev::main): Add call to init_opts_obstack before
25484 calls to init_options_struct.
25485 (toplev::finalize): Move cleanup of opts_obstack next to
25486 cleanup of save_decoded_options, clearing the latter, and
25487 save_decoded_options_count.
25488
25489 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25490
25491 PR target/69135
25492 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
25493 attribute to unconditional. Remove %? from output template.
25494
25495 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25496 Jiong Wang <jiong.wang@arm.com>
25497
25498 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
25499 generated from different expand order.
25500
25501 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25502
25503 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25504 Add support for CCMP costing.
25505
25506 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25507
25508 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
25509 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
25510 (fccmpe<mode>): Likewise.
25511 (fcmp): Rename to fcmp and globalize pattern.
25512 (fcmpe): Likewise.
25513 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
25514 (aarch64_gen_ccmp_next): Add FP support.
25515
25516 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25517
25518 * target.def (gen_ccmp_first): Update documentation.
25519 (gen_ccmp_next): Likewise.
25520 * doc/tm.texi (gen_ccmp_first): Update documentation.
25521 (gen_ccmp_next): Likewise.
25522 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
25523 expand_ccmp_expr_1. Improve comments.
25524 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
25525 (ccmp_ior<mode>): Remove pattern.
25526 (cmp<mode>): Remove expand.
25527 (cmp): Globalize pattern.
25528 (cstorecc4): Use cc_register.
25529 (mov<mode>cc): Remove ccmp_cc_register check.
25530 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
25531 Simplify after removal of CC_DNE/* modes.
25532 (aarch64_ccmp_mode_to_code): Remove.
25533 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
25534 In 'k' case use integer as condition.
25535 (aarch64_nzcv_codes): Remove inverted cases.
25536 (aarch64_code_to_ccmode): Remove.
25537 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
25538 comparison with CC register to be used in folowing CCMP/branch/CSEL.
25539 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
25540 pattern. Return the comparison with CC register. Invert conditions
25541 when bitcode is OR.
25542 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
25543 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
25544
25545 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25546
25547 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25548 instrumented_version.
25549
25550 2016-01-19 Richard Biener <rguenther@suse.de>
25551
25552 PR tree-optimization/69336
25553 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
25554 handled components with get_ref_base_and_extent.
25555 (equal_mem_array_ref_p): Adjust.
25556
25557 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25558
25559 PR debug/65779
25560 * shrink-wrap.c: Include valtrack.h.
25561 (move_insn_for_shrink_wrap): Add DEBUG argument. If
25562 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
25563 in between insn and where it will be moved to. Call
25564 dead_debug_insert_temp.
25565 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
25566 first and dead_debug_local_finish at the end.
25567 For uses and defs bitmap, handle all regs in between REGNO and
25568 END_REGNO, not just the first one.
25569
25570 2016-01-19 Richard Biener <rguenther@suse.de>
25571
25572 PR tree-optimization/69352
25573 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
25574 (equal_mem_array_ref_p): Constrain size and max size properly.
25575 Compare the reverse flag.
25576
25577 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
25578
25579 * ira.c (ira): Update regstat data if we deleted insns.
25580
25581 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25582
25583 PR rtl-optimization/68955
25584 PR rtl-optimization/64557
25585 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
25586 here. Fix up formatting.
25587 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
25588
25589 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25590
25591 PR lto/69133
25592 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
25593 assume that the node has body.
25594 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
25595 check.
25596
25597 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25598
25599 * lto-streamer-out.c (lto_output): Do not stream instrumentation
25600 thunks.
25601
25602 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25603
25604 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
25605 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
25606
25607 2016-01-19 Martin Jambor <mjambor@suse.cz>
25608 Martin Liska <mliska@suse.cz>
25609 Michael Matz <matz@suse.de>
25610
25611 * Makefile.in (OBJS): Add new source files.
25612 (GTFILES): Add hsa.c.
25613 * common.opt (disable_hsa): New variable.
25614 (-Whsa): New warning.
25615 * config.in (ENABLE_HSA): New.
25616 * configure.ac: Treat hsa differently from other accelerators.
25617 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
25618 $enable_offloading.
25619 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
25620 * doc/install.texi (Configuration): Document --with-hsa-runtime,
25621 --with-hsa-runtime-include, --with-hsa-runtime-lib and
25622 --with-hsa-kmt-lib.
25623 * doc/invoke.texi (-Whsa): Document.
25624 (hsa-gen-debug-stores): Likewise.
25625 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
25626 to invoke offload compiler for hsa acclerator.
25627 * opts.c (common_handle_option): Determine whether HSA offloading
25628 should be performed.
25629 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
25630 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
25631 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
25632 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
25633 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
25634 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
25635 GF_OMP_FOR_KIND_GRID_LOOP.
25636 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
25637 (pp_gimple_stmt_1): Likewise.
25638 * gimple-walk.c (walk_gimple_stmt): Likewise.
25639 * gimple.c (gimple_build_omp_grid_body): New function.
25640 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25641 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25642 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25643 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25644 GF_OMP_TEAMS_GRID_PHONY.
25645 (gimple_statement_omp_single_layout): Updated comments.
25646 (gimple_build_omp_grid_body): New function.
25647 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25648 (gimple_omp_for_grid_phony): New function.
25649 (gimple_omp_for_set_grid_phony): Likewise.
25650 (gimple_omp_parallel_grid_phony): Likewise.
25651 (gimple_omp_parallel_set_grid_phony): Likewise.
25652 (gimple_omp_teams_grid_phony): Likewise.
25653 (gimple_omp_teams_set_grid_phony): Likewise.
25654 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25655 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25656 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25657 (BUILT_IN_GOMP_TARGET): Updated type.
25658 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25659 (adjust_for_condition): New function.
25660 (get_omp_for_step_from_incr): Likewise.
25661 (extract_omp_for_data): Moved parts to adjust_for_condition and
25662 get_omp_for_step_from_incr.
25663 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25664 (fixup_child_record_type): Bail out if receiver_decl is NULL.
25665 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25666 (scan_omp_parallel): Do not create child functions for phony
25667 constructs.
25668 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25669 (scan_omp_1_op): Checking assert we are not remapping to
25670 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
25671 (parallel_needs_hsa_kernel_p): New function.
25672 (expand_parallel_call): Register apprpriate parallel child
25673 functions as HSA kernels.
25674 (grid_launch_attributes_trees): New type.
25675 (grid_attr_trees): New variable.
25676 (grid_create_kernel_launch_attr_types): New function.
25677 (grid_insert_store_range_dim): Likewise.
25678 (grid_get_kernel_launch_attributes): Likewise.
25679 (get_target_argument_identifier_1): Likewise.
25680 (get_target_argument_identifier): Likewise.
25681 (get_target_argument_value): Likewise.
25682 (push_target_argument_according_to_value): Likewise.
25683 (get_target_arguments): Likewise.
25684 (expand_omp_target): Call get_target_arguments instead of looking
25685 up for teams and thread limit.
25686 (grid_expand_omp_for_loop): New function.
25687 (grid_arg_decl_map): New type.
25688 (grid_remap_kernel_arg_accesses): New function.
25689 (grid_expand_target_kernel_body): New function.
25690 (expand_omp): Call it.
25691 (lower_omp_for): Do not emit phony constructs.
25692 (lower_omp_taskreg): Do not emit phony constructs but create for them
25693 a temporary variable receiver_decl.
25694 (lower_omp_taskreg): Do not emit phony constructs.
25695 (lower_omp_teams): Likewise.
25696 (lower_omp_grid_body): New function.
25697 (lower_omp_1): Call it.
25698 (grid_reg_assignment_to_local_var_p): New function.
25699 (grid_seq_only_contains_local_assignments): Likewise.
25700 (grid_find_single_omp_among_assignments_1): Likewise.
25701 (grid_find_single_omp_among_assignments): Likewise.
25702 (grid_find_ungridifiable_statement): Likewise.
25703 (grid_target_follows_gridifiable_pattern): Likewise.
25704 (grid_remap_prebody_decls): Likewise.
25705 (grid_copy_leading_local_assignments): Likewise.
25706 (grid_process_kernel_body_copy): Likewise.
25707 (grid_attempt_target_gridification): Likewise.
25708 (grid_gridify_all_targets_stmt): Likewise.
25709 (grid_gridify_all_targets): Likewise.
25710 (execute_lower_omp): Call grid_gridify_all_targets.
25711 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25712 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25713 (tree_omp_clause): Added union field dimension.
25714 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25715 * tree.c (omp_clause_num_ops): Added number of arguments of
25716 OMP_CLAUSE__GRIDDIM_.
25717 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25718 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25719 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25720 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25721 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25722 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25723 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25724 * tree-pass.h (make_pass_gen_hsail): Declare.
25725 (make_pass_ipa_hsa): Likewise.
25726 * ipa-hsa.c: New file.
25727 * lto-section-in.c (lto_section_name): Add hsa section name.
25728 * lto-streamer.h (lto_section_type): Add hsa section.
25729 * timevar.def (TV_IPA_HSA): New.
25730 * hsa-brig-format.h: New file.
25731 * hsa-brig.c: New file.
25732 * hsa-dump.c: Likewise.
25733 * hsa-gen.c: Likewise.
25734 * hsa.c: Likewise.
25735 * hsa.h: Likewise.
25736 * toplev.c (compile_file): Call hsa_output_brig.
25737 * hsa-regalloc.c: New file.
25738
25739 2016-01-18 Jeff Law <law@redhat.com>
25740
25741 PR tree-optimization/69320
25742 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25743 ranged object, do nothing if the RHS constant is not [0..1].
25744 (optimize_stmt): Comparing a boolean ranged object against a
25745 constant outside [0..1] results in a compile-time constant.
25746
25747 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25748 test.
25749
25750 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
25751
25752 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25753 (Option Summary): Update to reflect new section and moved options.
25754 (C++ Dialect Options): Move -fstats to new section.
25755 (Debugging Options): Move all dump, statistics, and other GCC
25756 developer options to new section. Rewrite section introduction
25757 and re-order remaining options to put the more basic ones first.
25758 (Optimization Options): Move -fira-verbose and -flto-report* to
25759 new section.
25760 (Developer Options): New section incorporating moved options.
25761 * doc/cppopts.texi (-dM): Update cross-reference.
25762
25763 2016-01-18 Richard Henderson <rth@redhat.com>
25764
25765 PR target/69176
25766 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25767 operands to pseudo only if CSE is expected. Split long immediate
25768 operands only after reload, and for the stack pointer.
25769 (*add<GPI>3_pluslong): Remove.
25770 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25771 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
25772 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25773 (*add<GPI>3 peepholes): New.
25774 (*add<GPI>3 splitters): New.
25775 * config/aarch64/constraints.md (Upl): New.
25776 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25777
25778 2016-01-18 Richard Biener <rguenther@suse.de>
25779
25780 PR tree-optimization/69297
25781 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25782 stmt at most once.
25783 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25784
25785 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25786
25787 PR middle-end/68542
25788 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25789 of mixind vector and scalar types.
25790 (fold_relational_const): Add handling of vector
25791 comparison with boolean result.
25792 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25793 comparison of vector operands with boolean result for EQ/NE only.
25794 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25795 (verify_gimple_cond): Likewise.
25796 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25797 valid type of VAL.
25798
25799 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25800
25801 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25802 !TARGET_OCTEON.
25803
25804 2016-01-18 Richard Biener <rguenther@suse.de>
25805
25806 PR middle-end/69308
25807 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25808
25809 2016-01-18 Tom de Vries <tom@codesourcery.com>
25810
25811 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25812
25813 2016-01-18 Tom de Vries <tom@codesourcery.com>
25814
25815 * omp-low.c (set_oacc_fn_attrib): Make extern.
25816 * omp-low.h (set_oacc_fn_attrib): Declare.
25817 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25818 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25819 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25820 Add and handle function parameter oacc_kernels_p.
25821 (find_reduc_addr, get_omp_data_i_param): New function.
25822 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25823 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25824 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25825 Calculate dominance info. Skip loops that are not in a kernels region
25826 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25827 (pass_parallelize_loops::execute): Call parallelize_loops with
25828 oacc_kernels_p argument.
25829 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25830 New member function.
25831 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25832 * passes.def: Add argument to pass_parallelize_loops instantation.
25833
25834 2016-01-18 Tom de Vries <tom@codesourcery.com>
25835
25836 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25837 pass_parallelize_loops to be run outside the loop pipeline.
25838
25839 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25840
25841 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25842 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25843
25844 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25845
25846 PR target/63679
25847 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25848 using get_ref_base_and_extent.
25849 (equal_mem_array_ref_p): New.
25850 (hashable_expr_equal_p): Add call to previous.
25851
25852 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25853
25854 PR target/63679
25855 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25856 (sra_initialize): Allocate disqualified_constants.
25857 (sra_deinitialize): Free disqualified_constants.
25858 (disqualify_candidate): Update disqualified_constants when appropriate.
25859 (create_access): Scan for constant-pool entries as we go along.
25860 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25861 (maybe_add_sra_candidate): Allow constant-pool entries.
25862 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25863 (initialize_constant_pool_replacements): New.
25864 (sra_modify_assign): Avoid mangling assignments created by previous,
25865 and don't generate writes into constant pool.
25866 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25867
25868 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25869
25870 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25871 andnot instruction.
25872 (scalar_chain::convert_op): Likewise.
25873 * config/i386/i386.md (*andndi3_doubleword): New.
25874
25875 2016-01-18 Richard Biener <rguenther@suse.de>
25876
25877 PR tree-optimization/69170
25878 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25879 building a vector from scalar results of a pattern stmt.
25880
25881 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25882
25883 * haifa-sched.c (autopref_multipass_init): Work around
25884 -Wmaybe-uninitialized warning.
25885
25886 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25887
25888 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25889 against the constant 0.
25890
25891 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25892
25893 PR tree-optimization/68799
25894 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25895 look up phi candidates in the statement-candidate map.
25896 (phi_add_costs): Likewise.
25897 (record_phi_increments): Likewise.
25898 (phi_incr_cost): Likewise.
25899 (ncd_with_phi): Likewise.
25900 (all_phi_incrs_profitable): Likewise.
25901
25902 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25903
25904 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25905 -Wmaybe-uninitialized warning.
25906
25907 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25908
25909 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25910 (Option Summary): Update to reflect new section and moved options.
25911 (C++ Dialect Options): Move -fvtable-verify and related options.
25912 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25913 and profiling-related options.
25914 (Optimization Options): Move profile generation options and
25915 -fstack-protector and related options.
25916 (Instrumentation Options): New section incorporating moved options.
25917 (Code Generation Options): Move -finstrument-functions and
25918 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25919
25920 2016-01-16 Tom de Vries <tom@codesourcery.com>
25921
25922 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25923
25924 2016-01-16 Tom de Vries <tom@codesourcery.com>
25925
25926 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25927
25928 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25929
25930 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25931 that checks whether the table is already empty. Rename the
25932 original implementation to...
25933 (hash_table::empty_slot): ...this new private function.
25934
25935 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25936
25937 PR diagnostic/68899
25938 * diagnostic-show-locus.c (layout::print_source_line): Move x
25939 offset of line until after call to
25940 get_line_width_without_trailing_whitespace.
25941
25942 2016-01-15 Jeff Law <law@redhat.com>
25943
25944 PR tree-optimization/69270
25945 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25946 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25947 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25948 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25949 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25950 ssa_name_has_boolean_range and constant_boolean_node.
25951
25952 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25953
25954 PR rtl-optimization/69030
25955 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25956 returning bool.
25957 (spill_pseudos): Delete debug insn for dead pseudo.
25958 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25959
25960 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25961
25962 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25963 New.
25964 (TYPES_UNOPUS): Likewise.
25965 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25966 builtin type, from UNOP to UNOPUS.
25967 (lbtruncuv4sf): Likewise.
25968 (lbtruncuv2df): Likewise.
25969 (lrounduv2sf): Likewise.
25970 (lrounduv4sf): Likewise.
25971 (lrounduv2df): Likewise.
25972 (lroundusf): Likewise.
25973 (lroundusf): Likewise.
25974 (lceiluv2sf): Likewise.
25975 (lceiluv4sf): Likewise.
25976 (lceiluv2df): Likewise.
25977 (lceilusf): Likewise.
25978 (lceiludf): Likewise.
25979 (lflooruv2sf): Likewise.
25980 (lflooruv4sf): Likewise.
25981 (lflooruv2df): Likewise.
25982 (lfloorusf): Likewise.
25983 (lfloorudf): Likewise.
25984 (lfrintnuv2sf): Likewise.
25985 (lfrintnuv4sf): Likewise.
25986 (lfrintnuv2df): Likewise.
25987 (lfrintnusf): Likewise.
25988 (lfrintnudf): Likewise.
25989 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25990 conversion.
25991 (vcvtq_u32_f32): Likewise.
25992 (vcvtq_u64_f64): Likewise.
25993 (vcvta_u32_f32): Likewise.
25994 (vcvtaq_u32_f32): Likewise.
25995 (vcvtaq_u64_f64): Likewise.
25996 (vcvtm_u32_f32): Likewise.
25997 (vcvtmq_u32_f32): Likewise.
25998 (vcvtmq_u64_f64): Likewise.
25999 (vcvtn_u32_f32): Likwise.
26000 (vcvtnq_u32_f32): Likewise.
26001 (vcvtnq_u64_f64): Likewise.
26002 (vcvtp_u32_f32): Likewise.
26003 (vcvtpq_u32_f32): Likewise.
26004 (vcvtpq_u64_f64): Likewise.
26005 (vcvtmd_u64_f64): Likewise.
26006 (vcvtms_u32_f32): Likewise.
26007 (vcvtad_u64_f64): Likewise.
26008 (vcvtas_u32_f32): Likewise.
26009 (vcvtnd_u64_f64): Likewise.
26010 (vcvtns_u32_f32): Likewise.
26011 (vcvtpd_u64_f64): Likewise.
26012 (vcvtps_u32_f32): Likewise.
26013
26014 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26015
26016 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
26017 CSEL of zero_extended registers.
26018
26019 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26020
26021 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
26022 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
26023
26024 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26025
26026 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
26027 false when argument string is not found in the attributes table
26028 at all.
26029
26030 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
26031
26032 PR target/68609
26033 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
26034 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
26035 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
26036 precision estimate.
26037
26038 2016-01-15 Richard Biener <rguenther@suse.de>
26039
26040 PR tree-optimization/66856
26041 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
26042 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
26043 (vect_create_new_slp_node): Increment stmt reference count.
26044 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
26045 an SLP tree before swapping operands.
26046 (vect_build_slp_tree): Likewise.
26047 (destroy_bb_vec_info): Free stmt info after SLP instances.
26048 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
26049 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
26050 (STMT_VINFO_NUM_SLP_USES): New macro.
26051
26052 2016-01-15 Richard Biener <rguenther@suse.de>
26053
26054 PR debug/69137
26055 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
26056 (add_linkage_name): ... here.
26057 (gen_typedef_die): Use add_linkage_name_raw instead of
26058 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
26059 if necessary.
26060
26061 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
26062
26063 * gimplify.c (oacc_default_clause): Decode reference and pointer
26064 types for both kernels and parallel regions.
26065
26066 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
26067
26068 PR middle-end/69246
26069 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
26070
26071 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26072
26073 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
26074 (convert_scalars_to_vector): Likewise.
26075
26076 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
26077
26078 * doc/extend.texi (Type Traits): Fix grammar.
26079
26080 2016-01-15 Martin Jambor <mjambor@suse.cz>
26081
26082 * tree-inline.c (remap_decl): Use existing dclarations if
26083 remapping a type and prevent_decl_creation_for_types.
26084 (replace_locals_stmt): Do an initial remapping of non-VLA typed
26085 decls first. Do real remapping with
26086 prevent_decl_creation_for_types set.
26087 * tree-inline.h (copy_body_data): New field
26088 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
26089 padding.
26090
26091 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26092
26093 * config/s390/s390.opt (mmvcle): More verbose help text.
26094
26095 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26096
26097 * config/s390/s390.opt: Add period to -mzvector option text.
26098
26099 2016-01-15 Richard Biener <rguenther@suse.de>
26100
26101 PR tree-optimization/68961
26102 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
26103 of invariants in stores again.
26104
26105 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26106
26107 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
26108
26109 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26110
26111 * config/i386/i386.c (ix86_expand_branch): Don't split
26112 DI mode xor instruction to SI mode.
26113
26114 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26115
26116 PR ipa/68148
26117 * ipa-icf.c (sem_function::merge): Virtual functions may become
26118 reachable even if they address is not taken and there are no
26119 idrect calls.
26120
26121 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26122
26123 * lto-streamer-out.c (subtract_estimated_size): New function.
26124 (get_symbol_initial_value): Use it.
26125
26126 2016-01-15 Christian Bruel <christian.bruel@st.com>
26127
26128 PR target/65837
26129 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
26130 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
26131 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
26132 use add_builtin_function_ext_scope instead of add_builtin_function.
26133 (neon_set_p, neon_crypto_set_p): Remove.
26134 (arm_init_builtins): Always call arm_init_neon_builtins and
26135 arm_init_crypto_builtins.
26136 (arm_expand_builtin): Check that builtins are allowed for the arch.
26137 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
26138 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
26139 arm_init_neon_builtins call.
26140
26141 2016-01-15 Richard Biener <rguenther@suse.de>
26142
26143 PR tree-optimization/69117
26144 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
26145 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
26146 of the leader conservatively.
26147 (free_scc_vn): Restore original SSA name infos.
26148
26149 2016-01-14 Jeff Law <law@redhat.com>
26150
26151 PR tree-optimization/69270
26152 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
26153 single bit of precision, verify it's also unsigned.
26154 (record_edge_info): Use constant_boolean_node rather than fold_convert
26155 to convert boolean_true/boolean_false to the right type.
26156
26157 2016-01-14 Richard Henderson <rth@redhat.com>
26158
26159 PR rtl-opt/69014
26160 * loop-doloop.c (record_reg_sets): New.
26161 (doloop_optimize): Reject the transform if the sequence
26162 clobbers registers live at the end of the loop block.
26163 (doloop_optimize_loops): Enable df_live if needed.
26164
26165 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26166
26167 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
26168 * config/rs6000/rs6000.c: Likewise.
26169 * config/rs6000/rs6000.h: Likewise.
26170 * config/rs6000/rs6000.md: Likewise.
26171 * doc/extend.texi: Likewsie.
26172
26173 2016-01-14 Jeff Law <law@redhat.com>
26174
26175 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
26176 typo.
26177
26178 2016-01-14 Richard Henderson <rth@redhat.com>
26179
26180 PR c/69272
26181 PR tree-opt/68964
26182 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
26183 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
26184 instead of builtin_decl_declared_p to test for declaration.
26185
26186 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
26187
26188 * doc/loop.texi (Loop Analysis and Representation): Document
26189 loop_depth function.
26190
26191 2016-01-14 Tom de Vries <tom@codesourcery.com>
26192
26193 PR tree-optimization/68773
26194 * omp-low.c (expand_omp_target): Don't set force_output.
26195 * varpool.c (varpool_node::get_create): Same.
26196 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
26197 offload_funcs with force_output.
26198
26199 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26200
26201 PR debug/69244
26202 * lra-eliminations.c (move_plus_up): Don't change anything if either
26203 the outer or inner subreg mode is not MODE_INT.
26204 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
26205 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
26206
26207 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26208
26209 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
26210 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
26211 reduc_uplus_@var{m}): Remove.
26212 * expr.c (expand_expr_real_2): Remove expansion path for
26213 reduc_[us](min|max|plus) optabs.
26214 * optabs-tree.c (scalar_reduc_to_vector): Remove.
26215 * optabs-tree.h (scalar_reduc_to_vector): Remove.
26216 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
26217 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
26218 * tree-vect-loop.c (vectorizable_reduction): Remove test for
26219 reduc_[us](min|max|plus) optabs.
26220
26221 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26222
26223 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
26224 (reduc_plus_scal_v2sf): New.
26225 (reduc_smax_v2sf): Rename to...
26226 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
26227 (reduc_smin_v2sf): Rename to...
26228 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
26229
26230 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
26231
26232 * alias.c (compare_base_symbol_refs): New function.
26233 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
26234 it.
26235
26236 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26237
26238 PR middle-end/68146
26239 PR tree-optimization/69155
26240 * tree-complex.c: Include cfganal.h.
26241 (phis_to_revisit): New variable.
26242 (extract_component): Add phiarg_p argument. Assert that returned
26243 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
26244 (update_phi_components): Partly rewrite to use loop over real/imag
26245 components instead of code duplication. If extract_component returns
26246 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
26247 create_tmp_reg into the PHI node instead, and mention the phi triplet
26248 in phis_to_revisit.
26249 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
26250 in phis_to_revisit at the end.
26251
26252 2016-01-14 Richard Biener <rguenther@suse.de>
26253
26254 PR tree-optimization/68060
26255 * tree-vect-loop.c (vect_is_simple_reduction): Check the
26256 outer loop reduction is only used in the inner loop before
26257 detecting a double reduction.
26258
26259 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26260
26261 PR target/68269
26262 * combine.c (expand_field_assignment): Punt if compute_mode is
26263 unsupported scalar mode.
26264
26265 2016-01-14 Richard Biener <rguenther@suse.de>
26266
26267 PR tree-optimization/66856
26268 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
26269 SLP node only if it built successfully.
26270 (vect_analyze_slp_instance): Adjust.
26271
26272 2016-01-14 Jeff Law <law@redhat.com>
26273
26274 PR tree-optimization/69270
26275 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
26276 (record_edge_info): Use it. Convert boolean_{true,false}_node
26277 to the type of op0.
26278
26279 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
26280
26281 PR ipa/66487
26282 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
26283 use block_ultimate_origin
26284 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
26285
26286 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26287
26288 * doc/invoke.texi (Submodel Options): Rename section to
26289 "Machine-Dependent Options" to better reflect its content.
26290 Rewrite introductory text to remove archaic CPU names.
26291 Update references.
26292
26293 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26294
26295 * doc/invoke.texi (Code Gen Options): Move section up in file,
26296 before target-specific options. Update menu and option summary
26297 to reflect the new section ordering.
26298
26299 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26300
26301 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
26302 (C++ Dialect Options): Add cross-reference to -std option.
26303 * doc/standards.texi (C++ Language): Document C++14 support.
26304
26305 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26306
26307 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
26308 for pack/unpack functions for __ibm128.
26309 (PACK_IF): Likewise.
26310 (UNPACK_IF): Likewise.
26311
26312 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26313 support for __ibm128 pack/unpack functions.
26314 (rs6000_invalid_builtin): Likewise.
26315 (rs6000_init_builtins): Likewise.
26316 (rs6000_opt_masks): Likewise.
26317
26318 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
26319 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
26320 functions
26321 (RS6000_BTM_COMMON): Likewise.
26322
26323 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
26324 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
26325 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
26326 128-bit floating point. Add support for the double values to be
26327 in Altivec registers for TF/IF packing and unpacking, but restrict
26328 TD packing sub-fields to be FPR registers. Don't allow overlapped
26329 register support for packing. Allow pack inputs to be memory
26330 locations. Don't build generator functions for unpack<mode>_dm
26331 and unpack<mode>_nodm.
26332 (unpack<mode>_dm): Likewise.
26333 (unpack<mode>_nodm): Likewise.
26334 (pack<mode>): Likewise.
26335
26336 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
26337 built-in functions to pack/unpack explicit __ibm128 values.
26338 (__builtin_unpack_ibm128): Likewise.
26339
26340 * doc/extend.texi (PowerPC Built-in Functions): Document
26341 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
26342
26343 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
26344
26345 PR c/66208
26346 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
26347 Add new arg loc and pass it down as context.
26348 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
26349 to the location to use for the warning.
26350 (check_function_arguments): New arg loc. All callers changed. Pass
26351 it to check_function_nonnull.
26352 * c-common.h (check_function_arguments): Adjust declaration.
26353
26354 2016-01-13 Jakub Jelinek <jakub@redhat.com>
26355
26356 PR tree-optimization/69156
26357 * gimple.c (validate_type): Removed.
26358 (gimple_builtin_call_types_compatible_p): Use
26359 useless_type_conversion_p instead of validate_type.
26360 * value-prof.c (gimple_stringop_fixed_value): Fold
26361 icall_size to correct type.
26362
26363 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26364
26365 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
26366 effects.
26367
26368 2016-01-13 Richard Henderson <rth@redhat.com>
26369
26370 PR tree-opt/68964
26371 * target.def (builtin_tm_load, builtin_tm_store): Remove.
26372 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
26373 (ix86_builtin_tm_store): Remove.
26374 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26375 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26376 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26377 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26378 * doc/tm.texi: Rebuild.
26379
26380 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
26381 (BUILT_IN_TM_MEMCPY_RTWN): New.
26382 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
26383 fallback from vector to integer helpers.
26384 (build_tm_load): Handle vector types directly, instead of
26385 via target hook.
26386 (build_tm_store): Likewise.
26387 (expand_assign_tm): Prepare for register types not handled by
26388 the above. Copy them to memory and use memcpy.
26389 * tree.c (tm_define_builtin): New.
26390 (find_tm_vector_type): New.
26391 (build_tm_vector_builtins): New.
26392 (build_common_builtin_nodes): Call it.
26393
26394 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
26395
26396 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
26397 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
26398
26399 2016-01-13 Tom de Vries <tom@codesourcery.com>
26400
26401 PR tree-optimization/69169
26402 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
26403 handled_struct_type param.
26404 (create_variable_info_for, intra_create_variable_infos): Call
26405 create_variable_info_for_1 with extra arg.
26406
26407 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
26408
26409 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
26410 and "armv8.1-a+crc" entries.
26411
26412 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
26413
26414 PR target/69228
26415 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
26416 Change first operand predicate from register_or_constm1_operand
26417 to register_operand.
26418 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
26419 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
26420 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
26421 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
26422 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
26423 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
26424 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
26425 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
26426 comparison with constm1_rtx from vec_prefetch_gen part.
26427
26428 2016-01-13 Richard Biener <rguenther@suse.de>
26429
26430 PR tree-optimization/69013
26431 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
26432 Exchange assert for a test.
26433
26434 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26435
26436 PR target/69247
26437 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
26438
26439 2016-01-13 Richard Biener <rguenther@suse.de>
26440
26441 PR tree-optimization/69242
26442 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
26443 assert with a check.
26444
26445 2016-01-13 Richard Biener <rguenther@suse.de>
26446
26447 PR tree-optimization/69186
26448 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26449 Properly guard vect_update_misalignment_for_peel call.
26450
26451 2016-01-12 Jeff Law <law@redhat.com>
26452
26453 PR tree-optimization/pr67755
26454 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
26455 "need_profile_correction".
26456 (thread_block_1): Initialize new field to false by default. If we
26457 have multiple thread paths through a common joiner to different
26458 final targets, then set new field to true.
26459 (compute_path_counts): Only do count adjustment when it's really
26460 needed.
26461
26462 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26463
26464 * doc/invoke.texi (Spec Files): Move section down in file, past
26465 all command-line option descriptions.
26466
26467 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26468
26469 PR middle-end/54809
26470 * doc/gty.texi: Remove documentation of mark_hook.
26471 * gengtype.c (struct write_types_data): Remove code to support
26472 mark_hook attribute.
26473 (walk_type): Likewise.
26474 (write_func_for_structure): Likewise.
26475
26476 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26477
26478 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
26479 Directory Options, and -specs= to Overall Options.
26480 (Overall Options): Adjust similarly. Reorder to group related
26481 options together. Make -specs= cross-reference the spec file details.
26482 (Directory Options): Adjust similarly.
26483
26484 2016-01-12 Jeff Law <law@redhat.com>
26485
26486 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
26487
26488 2016-01-12 Olivier Hainque <hainque@adacore.com>
26489
26490 * gcc.c (spec_undefvar_allowed): New global.
26491 (process_command): Set to true when running for --version or --help,
26492 alone or together.
26493 (getenv_spec_function): When the variable is not defined, use the
26494 variable name as the variable value if we're allowed not to issue
26495 a fatal error.
26496
26497 2016-01-12 Bin Cheng <bin.cheng@arm.com>
26498
26499 PR tree-optimization/68911
26500 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
26501 information computed for expression "init + nit * step".
26502
26503 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26504
26505 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
26506 about name of GCC executable. Remove deleted node from menu.
26507 (Directory Options) <-B>: Remove cross-reference to deleted node.
26508 (Target Options): Delete section.
26509
26510 2016-01-12 Christian Bruel <christian.bruel@st.com>
26511
26512 PR target/69180
26513 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
26514 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
26515
26516 2016-01-12 Jakub Jelinek <jakub@redhat.com>
26517
26518 PR target/69198
26519 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
26520 aligned_mem is properly set for AVX512-VL floating point masked
26521 stores.
26522
26523 PR target/69175
26524 * ifcvt.c (cond_exec_process_if_block): When removing the last
26525 insn from then_bb, remove also any possible barriers that follow it.
26526
26527 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
26528
26529 PR target/68456
26530 PR target/69226
26531 * config/i386/iamcu.h (SIZE_TYPE): New macro.
26532 (PTRDIFF_TYPE): Likewise.
26533 (WCHAR_TYPE): Likewise.
26534 (WCHAR_TYPE_SIZE): Likewise.
26535 (STDINT_LONG32): Likewise.
26536
26537 2016-01-12 Richard Biener <rguenther@suse.de>
26538
26539 PR tree-optimization/69053
26540 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
26541 convert initial value for cond reductions.
26542
26543 2016-01-12 Richard Biener <rguenther@suse.de>
26544
26545 PR tree-optimization/69007
26546 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
26547 widen_sum after dot_prod and sad.
26548
26549 2016-01-12 Richard Biener <rguenther@suse.de>
26550
26551 PR tree-optimization/69168
26552 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
26553 pattern stmt SLP type.
26554 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
26555 end up unused so cope with that case.
26556
26557 2016-01-12 Richard Biener <rguenther@suse.de>
26558
26559 PR tree-optimization/69157
26560 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
26561 stmts def type only during analyze phase.
26562 (vectorizable_call): Likewise.
26563 (vectorizable_simd_clone_call): Likewise.
26564 (vectorizable_conversion): Likewise.
26565 (vectorizable_assignment): Likewise.
26566 (vectorizable_shift): Likewise.
26567 (vectorizable_operation): Likewise.
26568 (vectorizable_store): Likewise.
26569 (vectorizable_load): Likewise.
26570
26571 2016-01-12 Richard Biener <rguenther@suse.de>
26572
26573 PR tree-optimization/69174
26574 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
26575 space.
26576 (vectorizable_load): Properly compute the number of loads needed
26577 for permuted strided SLP loads and do not spuriously assign
26578 to SLP_TREE_VEC_STMTS.
26579
26580 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
26581
26582 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
26583 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
26584 (MD_EXEC_PREFIX): Remove.
26585 (MD_STARTFILE_PREFIX) Removee.
26586 (FILE_NAME_ABSOLUTE_P): Remove.
26587 (CPP_SPEC): Do not read macros from sys/version.h.
26588 (LINK_COMMAND_SPEC): Remove.
26589 (LOCAL_INCLUDE_DIR): Remove.
26590 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
26591 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
26592 (POST_LINK_SPEC): Define to invoke stubify after linker
26593 (LIBSTDCXX): Remove define
26594 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
26595 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
26596 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
26597 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
26598 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
26599 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
26600 (i386_djgpp_asm_named_section): Add propotype of new procedure
26601
26602 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
26603 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
26604 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
26605 in config/i386/djgpp.h).
26606 (STANDARD_STARTFILE_PREFIX_2): Define identical to
26607 STANDARD_STARTFILE_PREFIX_1.
26608 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
26609 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
26610 installation errors.
26611 (MAX_OFILE_ALIGNMENT): Define to 128.
26612 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
26613
26614 * config/i386/djgpp.c: New file. Add implementation of
26615 i386_djgpp_asm_named_section.
26616
26617 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
26618
26619 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
26620 Add rule for building djgpp.o.
26621
26622 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26623
26624 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
26625 (rtx_is_swappable_p): Reductions are swappable.
26626 (insn_is_swappable_p): V2DF reductions are swappable.
26627
26628 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
26629
26630 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
26631 reloads for other unsupported memory operands.
26632
26633 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26634 Jim Wilson <jim.wilson@linaro.org>
26635
26636 PR target/69194
26637 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
26638 copy_to_mode_reg instead of force_reg.
26639
26640 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26641
26642 PR target/69225
26643 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26644 TARGET_80387 is true.
26645
26646 2016-01-11 Jakub Jelinek <jakub@redhat.com>
26647
26648 PR target/69071
26649 * lra-eliminations.c (move_plus_up): Only move plus up
26650 if subreg of the constant can be simplified into constant
26651 and use the simplified subreg of the constant instead of
26652 the original constant.
26653
26654 * fold-const.c (fold_convertible_p): Don't return true
26655 for conversion of VECTOR_TYPE to same sized integral type.
26656 (fold_convert_loc): Fix up formatting. Fold conversion of
26657 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26658 instead of NOP_EXPR.
26659
26660 PR tree-optimization/69214
26661 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26662 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26663 Formatting fix.
26664
26665 PR tree-optimization/69207
26666 * tree-vect-slp.c (vect_get_constant_vectors): For
26667 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26668 fold_convertible_p to vector_type's element type, and always
26669 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26670
26671 2016-01-11 Richard Biener <rguenther@suse.de>
26672
26673 PR tree-optimization/69173
26674 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26675 fixup the cycle if all stmts are in a pattern.
26676
26677 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
26678
26679 PR middle-end/68999
26680 * alias.c (base_alias_check): Move check for addresses with
26681 alignment ANDs before the call for compare_base_decls.
26682 (memrefs_conflict_p): Return -1 for different decls
26683 that went through alignment adjustments.
26684
26685 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26686
26687 PR rtl-optimization/68796
26688 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26689 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26690 and QImode comparisons against zero with CC_NZmode.
26691 * config/aarch64/iterators.md (short_mask): New mode_attr.
26692
26693 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26694
26695 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26696 (<avx512>_store<mode>_mask): Likewise.
26697
26698 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
26699 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26700
26701 PR rtl-optimization/68841
26702 * ifcvt.c (struct noce_if_info): Add orig_x field.
26703 (bbs_ok_for_cmove_arith): Add to_rename parameter.
26704 Don't record conflicts on to_rename if it's present.
26705 Allow memory destinations in sets.
26706 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26707 blocks, passing orig_x to the checks.
26708 (noce_process_if_block): Set if_info->orig_x appropriately.
26709
26710 2016-01-11 Tom de Vries <tom@codesourcery.com>
26711
26712 PR tree-optimization/69069
26713 * tree-parloops.c (create_parallel_loop): Add missing phi args.
26714
26715 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
26716
26717 PR rtl-optimization/68920
26718 * config/i386/i386.c (ix86_option_override_internal): Restrict number
26719 of conditional moves for RTL if-conversion to 1 for
26720 TARGET_ONE_IF_CONV_INSN.
26721 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26722 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26723 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26724 parameter to restirct number of conditional moves for
26725 RTL if-conversion.
26726 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26727 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26728 conditionl moves.
26729
26730 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
26731
26732 PR bootstrap/69123
26733 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26734 onepart vars. Fix typo in comment. Fix reversed condition in
26735 unshare test.
26736 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26737
26738 PR bootstrap/69123
26739 * var-tracking.c (dump_onepart_variable_differences): New.
26740 (dataflow_set_different): If a detailed dump is requested,
26741 delay early returns and dump differences between onepart
26742 variables present before and after, and added variables.
26743
26744 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26745
26746 PR target/69010
26747 * expr.c (expand_expr_real_1): For boolean vector constants
26748 with a scalar mode use const_scalar_mask_from_tree.
26749 (const_scalar_mask_from_tree): New.
26750 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26751 assigned to a mask type to handle constants.
26752
26753 2016-01-11 Martin Jambor <mjambor@suse.cz>
26754
26755 PR ipa/69044
26756 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26757 useless parameters if we cannot change function signature.
26758
26759 2016-01-11 Martin Jambor <mjambor@suse.cz>
26760
26761 PR ipa/66616
26762 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26763 flag.
26764
26765 2016-01-11 Tom de Vries <tom@codesourcery.com>
26766
26767 PR tree-optimization/69109
26768 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26769 latch with phi.
26770
26771 2016-01-11 Tom de Vries <tom@codesourcery.com>
26772
26773 PR tree-optimization/69108
26774 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26775 res is not used in a phi.
26776
26777 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26778
26779 PR 67425
26780 * common.opt (frandom-seed): Fix parameter name.
26781 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26782
26783 2016-01-11 Tom de Vries <tom@codesourcery.com>
26784
26785 PR tree-optimization/69058
26786 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26787 not supported.
26788
26789 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26790
26791 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26792 (mcode-density): Likewise.
26793
26794 2016-01-10 Tom de Vries <tom@codesourcery.com>
26795
26796 PR tree-optimization/69062
26797 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26798 (parallelize_loops): Don't paralelize loop that has phi with address
26799 arg.
26800
26801 2016-01-10 Tom de Vries <tom@codesourcery.com>
26802
26803 PR tree-optimization/69039
26804 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26805 phi for reduction.
26806
26807 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26808
26809 PR middle-end/68743
26810 * match.pd: Require target has function_c99_misc before doing
26811 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26812
26813 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26814
26815 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26816 use GMPINC.
26817 * configure: Regenerate.
26818
26819 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26820
26821 PR middle-end/50865
26822 PR tree-optimization/69097
26823 * fold-const.h (expr_not_equal_to): New prototype.
26824 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26825 (expr_not_equal_to): New function.
26826 * match.pd (X % -Y is the same as X % Y): Don't optimize
26827 unless X is known not to be equal to minimum or Y is known
26828 not to be equal to -1.
26829 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26830 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26831 (simplify_stmt_using_ranges): Adjust caller.
26832 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26833 substitute_and_fold.
26834
26835 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26836
26837 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26838 w/o DECL_NAME.
26839
26840 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26841
26842 PR tree-optimization/69167
26843 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26844 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26845 ops[0] comparison.
26846 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26847
26848 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26849 Richard Biener <rguenther@suse.de>
26850
26851 PR tree-optimization/68707
26852 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26853 instances that can be handled via vect_load_lanes.
26854
26855 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26856
26857 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26858 if we can't determine address equivalence.
26859 * alias.c (compare_base_decl): Update for changed return value of
26860 symtab_node::equal_address_to.
26861
26862 2016-01-08 Jason Merrill <jason@redhat.com>
26863
26864 PR c++/68983
26865 PR c++/67557
26866 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26867 * expr.c (store_field): Not here.
26868 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26869 call with TREE_ADDRESSABLE type.
26870 * tree-cfg.c (verify_gimple_call): Adjust.
26871
26872 2016-01-08 Olivier Hainque <hainque@adacore.com>
26873
26874 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26875 libc_internal.
26876
26877 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26878
26879 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26880 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26881 (reduc_smin_v2sf): Rename to...
26882 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26883 (reduc_splus_v2sf): Rename to...
26884 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26885
26886 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26887
26888 PR tree-optimization/69162
26889 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26890 valist argument in another argument.
26891 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26892 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26893 to determine the va_list type, build a MEM_REF instead of
26894 build_fold_indirect_ref.
26895
26896 PR tree-optimization/69172
26897 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26898 gimple_build.
26899
26900 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26901
26902 PR tree-optimization/67781
26903 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26904 and cmpnop in two steps: first the ones not accessed in original
26905 gimple expression in a endian independent way and then the ones not
26906 accessed in the final result in an endian-specific way.
26907
26908 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26909
26910 PR tree-optimization/69083
26911 * tree-vect-slp.c (vect_get_constant_vectors): For
26912 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26913 element type. If op is fold_convertible_p to vector_type's element
26914 type, use NOP_EXPR instead of VCE.
26915
26916 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26917
26918 PR rtl-optimization/67778
26919 PR rtl-optimization/68634
26920 PR rtl-optimization/68909
26921 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26922 block from the stack until done with it. Remove a superfluous
26923 bitmap set. Remove a superfluous bitmap test.
26924
26925 2016-01-07 Martin Sebor <msebor@redhat.com>
26926
26927 PR c/68966
26928 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26929 constraint on the type of arguments.
26930
26931 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26932
26933 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26934 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26935 unaligned_access on the gcc_options set.
26936 * config/arm/arm.c (arm_option_override_internal): Use
26937 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26938
26939 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26940
26941 PR target/69140
26942 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26943 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26944
26945 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26946
26947 Revert
26948 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26949
26950 PR target/69140
26951 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26952 depending on frame_pointer_needed before remaining integer and SSE
26953 registers are saved.
26954
26955 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26956
26957 PR 1078
26958 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26959
26960 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26961
26962 PR target/69171
26963 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26964 Use the "xBm" constraint.
26965 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26966 Likewise.
26967 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26968 (sse_cvtsi2ssq<round_name>): Likewise.
26969 (sse_cvtss2si<round_name>): Likewise.
26970 (sse_cvtss2siq<round_name>): Likewise.
26971 (sse2_cvtsi2sdq<round_name>): Likewise.
26972 (sse2_cvtsd2si<round_name>): Likewise.
26973 (sse2_cvtsd2siq<round_name>): Likewise.
26974 * config/i386/subst.md (round_nimm_scalar_predicate): New
26975 predicate.
26976
26977 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
26978
26979 PR middle-end/67639
26980 * varasm.c (make_decl_rtl): Mark invalid register vars as
26981 DECL_EXTERNAL.
26982
26983 PR rtl-optimization/66206
26984 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26985 All callers changed.
26986
26987 2016-01-07 Jakub Jelinek <jakub@redhat.com>
26988
26989 PR tree-optimization/69141
26990 * tree-ssa-pre.c: Include langhooks.h.
26991 (eliminate_dom_walker::before_dom_children): Use
26992 lang_hooks.decl_printable_name instead of
26993 cgraph_node::get ()->name ().
26994
26995 PR middle-end/68960
26996 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26997 it and DECL_ALIGN too.
26998
26999 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
27000
27001 * config/mips/mips-ftypes.def: Sort to lexicographical order.
27002
27003 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
27004
27005 PR target/69140
27006 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
27007 depending on frame_pointer_needed before remaining integer and SSE
27008 registers are saved.
27009
27010 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27011
27012 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
27013 mode iterator with VSX_M2.
27014 (*p9_vecstore_<mode>): Likewise.
27015 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
27016 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
27017 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
27018 (define_split for VSX_LE128 stores): Likewise.
27019 (define_peephole2 for TImode LE swaps): Likewise.
27020 (define_split for VSX_LE128 post-reload stores): Likewise.
27021
27022 2016-01-06 Marek Polacek <polacek@redhat.com>
27023
27024 PR sanitizer/69099
27025 * convert.c (convert_to_integer_1): Adjust call to
27026 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
27027 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
27028 EXPR instead of ARG.
27029 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
27030
27031 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27032
27033 PR 1078
27034 * doc/extend.texi (RL78 Variable Attributes): New section.
27035
27036 2016-01-05 Marek Polacek <polacek@redhat.com>
27037
27038 PR c/69104
27039 * builtins.c (get_memmodel): Use expansion point location rather than
27040 the input location. Call warning_at rather than warning.
27041 (expand_builtin_atomic_compare_exchange): Likewise.
27042 (expand_builtin_atomic_load): Likewise.
27043 (expand_builtin_atomic_store): Likewise.
27044 (expand_builtin_atomic_clear): Likewise.
27045
27046 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27047
27048 PR target/68991
27049 * config/i386/i386.c (ix86_expand_vector_logical_operator):
27050 Replace nonimmediate_operand with vector_operand.
27051 * config/i386/predicates.md (vector_operand): New predicate.
27052 (general_vector_operand): Replace nonimmediate_operand with
27053 vector_operand.
27054 * config/i386/sse.md: Replace nonimmediate_operand with
27055 vector_operand and m constraint with Bm constraint on SSE
27056 patterns with 16-byte memory operand.
27057 * config/i386/subst.md (round_nimm_predicate): Replace
27058 nonimmediate_operand with vector_operand.
27059 (round_saeonly_nimm_predicate): Likewise.
27060 (round_saeonly_nimm_scalar_predicate): New.
27061
27062 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27063
27064 PR target/68991
27065 * config/i386/constraints.md (Bm): New constraint.
27066 * config/i386/predicates.md (vector_memory_operand): New
27067 predicate.
27068 * config/i386/sse.md: Replace xm with xBm in plusminus and
27069 any_logic patterns.
27070
27071 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27072
27073 PR 1078
27074 * doc/extend.texi (V850 Function Attributes): New section.
27075 (V850 Variable Attributes): New section.
27076
27077 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27078
27079 PR 1078
27080 * doc/extend.texi (MicroBlaze Function Attributes): Document
27081 interrupt_handler and fast_interrupt attributes.
27082
27083 2016-01-05 Sergei Trofimovich <siarheit@google.com>
27084
27085 PR other/60465
27086 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
27087 for local symbolic operands.
27088 * config/ia64/predicates.md (local_symbolic_operand64): New
27089 predicate.
27090
27091 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27092
27093 PR rtl-optimization/68651
27094 * combine.c (combine_simplify_rtx): Canonicalize x + x into
27095 x << 1.
27096
27097 2016-01-05 Nathan Sidwell <nathan@acm.org>
27098
27099 * alias.c (compare_base_decls): Use symtab_node::get.
27100
27101 2016-01-05 Nick Clifton <nickc@redhat.com>
27102
27103 PR target/68770
27104 * ira-costs.c (copy_cost): Initialise the t_icode field of the
27105 secondary_reload_info structure.
27106
27107 PR target/66655
27108 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
27109 decls if weak support is available.
27110
27111 2016-01-04 Martin Sebor <msebor@redhat.com>
27112
27113 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
27114
27115 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27116
27117 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
27118 OPTION_MASK_P9_DFORM.
27119
27120 * config/rs6000/constraints.md (wo constraint): New constraint for
27121 ISA 3.0 (power9).
27122
27123 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
27124 for wo constraint.
27125 (rs6000_init_hard_regno_mode_ok): Likewise.
27126
27127 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
27128 wo constraint.
27129
27130 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
27131 expanders not to have constraints. Add support for ISA 3.0 xxperm
27132 instruction. Add support for fusing xxlor with xxperm.
27133 (altivec_vperm_<mode>_internal): Likewise.
27134 (altivec_vperm_v8hiv16qi): Likewise.
27135 (altivec_vperm_<mode>v16q): Likewise.
27136 (altivec_vperm_<mode>_uns): Likewise.
27137 (vperm_v8hiv4si): Likewise.
27138 (vperm_v16qiv8hi): Likewise.
27139
27140 * doc/md.texi (RS/6000 constraints): Document wo constraint.
27141
27142 2016-01-04 Jakub Jelinek <jakub@redhat.com>
27143
27144 Update copyright years.
27145
27146 * gcc.c (process_command): Update copyright notice dates.
27147 * gcov-dump.c (print_version): Ditto.
27148 * gcov.c (print_version): Ditto.
27149 * gcov-tool.c (print_version): Ditto.
27150 * gengtype.c (create_file): Ditto.
27151 * doc/cpp.texi: Bump @copying's copyright year.
27152 * doc/cppinternals.texi: Ditto.
27153 * doc/gcc.texi: Ditto.
27154 * doc/gccint.texi: Ditto.
27155 * doc/gcov.texi: Ditto.
27156 * doc/install.texi: Ditto.
27157 * doc/invoke.texi: Ditto.
27158
27159 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27160
27161 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
27162 modes larger than TImode as TImode if NEON is not enabled.
27163
27164 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27165
27166 PR target/69100
27167 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
27168 mode for %f0-%f31 only if TARGET_FPU.
27169
27170 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27171
27172 PR target/69072
27173 * config/sparc/sparc.c (scan_record_type): Take into account subfields
27174 to compute the PACKED_P predicate.
27175 (function_arg_record_value): Minor tweaks.
27176
27177 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
27178
27179 * doc/install.texi (--with-multilib-list): Describe the meaning of the
27180 option for arm*-*-* targets.
27181
27182 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
27183
27184 * doc/extend.texi (Common Function Attributes): Move docs for
27185 MSP430-specific attributes to....
27186 (MSP430 Function Attributes): ...here. Delete the redundant
27187 entries and copy-edit the remaining text.
27188 (MSP430 Variable Attributes): Use uniform format for index
27189 entries and add a cross-reference to the corresponding function
27190 attribute docs.
27191
27192 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
27193
27194 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
27195 -finite-math typo.
27196 (x86 Options): Likewise.
27197
27198 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27199
27200 PR 1078
27201
27202 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
27203 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
27204 to corresponding attribute.
27205
27206 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27207
27208 * doc/extend.texi (Common Function Attributes) <noplt>: Move
27209 to correct alphabetization of table. Copy-edit and correct
27210 markup.
27211 <stack_protect>: Likewise.
27212 <target_clones>: Likewise.
27213 <simd>: Likewise.
27214 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
27215 Correct punctuation.
27216 (Code Gen Options) <-fno-plt>: Copy-edit.
27217
27218 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27219
27220 PR target/68917
27221 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
27222 SI values. Explicitly convert SI to DI and vice-versa.
27223
27224 2016-01-01 Jakub Jelinek <jakub@redhat.com>
27225
27226 PR tree-optimization/69070
27227 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
27228 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
27229
27230 PR sanitizer/69055
27231 * ubsan.c (ubsan_instrument_float_cast): Call
27232 initialize_sanitizer_builtins.
27233
27234 PR target/69015
27235 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
27236 \f
27237 Copyright (C) 2016 Free Software Foundation, Inc.
27238
27239 Copying and distribution of this file, with or without modification,
27240 are permitted in any medium without royalty provided the copyright
27241 notice and this notice are preserved.