Replace NULL with false as a return value
[gcc.git] / gcc / ChangeLog
1 2016-10-19 Martin Liska <mliska@suse.cz>
2
3 * cgraph.h (cgraph_edge::binds_to_current_def_p):
4 Replace NULL with false as a return value.
5
6 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7
8 PR tree-optimization/78024
9 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
10 don't clear BB_VISITED after processing.
11
12 2016-10-19 Richard Biener <rguenther@suse.de>
13
14 * domwalk.c (dom_walker::walk): Use RPO order.
15
16 2016-10-19 Richard Biener <rguenther@suse.de>
17
18 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
19 stmts_to_remove.
20 (evrp_dom_walker::~evrp_dom_walker): Free it.
21 (evrp_dom_walker::stmts_to_remove): Add.
22 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
23 whose output we fully propagate for removal. Propagate
24 into BB destination PHI arguments.
25 (execute_early_vrp): Remove queued stmts. Dump value ranges
26 before stmt removal.
27
28 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
29
30 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
31 * passes.def: Add two instances of pass_walloca.
32 * tree-pass.h (make_pass_walloca): New.
33 * gimple-ssa-warn-alloca.c: New file.
34 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
35 -Wvla-larger-than= options.
36
37 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
38
39 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
40 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
41
42 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
43
44 * config/rs6000/altivec.h (vec_xl_len): New macro.
45 (vec_xst_len): New macro.
46 (vec_cmpnez): New macro.
47 (vec_cntlz_lsbb): New macro.
48 (vec_cnttz_lsbb): New macro.
49 (vec_xlx): New macro.
50 (vec_xrx): New macro.
51 (vec_all_nez): New C++ predicate template.
52 (vec_any_eqz): New C++ predicate template.
53 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
54 conditional compilation.
55 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
56 conditional compilation.
57 (vec_all_nez): New macro.
58 (vec_any_eqz): New macro.
59 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
60 compilation.
61 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
62 compilation.
63 * config/rs6000/vector.md (VI): Moved this mode iterator
64 definition from altivec.md to vector.md.
65 (UNSPEC_NEZ_P): New value.
66 (vector_ne_<mode>_p): New expansion for implementation of
67 vec_all_ne and vec_any_eq built-in functions.
68 (vector_nez_<mode>_p): New expansion for implementation of
69 vec_all_nez and vec_any_eqz built-in functions.
70 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
71 and vec_any_eq built-in function.
72 (cr6_test_for_zero): New commentary to explain this expansion.
73 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
74 (cr6_test_for_lt): New commentary to explain this expansion.
75 (cr6_test_for_lt_reverse): New commentary to explain this
76 expansion.
77 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
78 overloaded function prototypes for vec_all_ne, vec_all_nez,
79 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
80 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
81 built-in functions.
82 (altivec_resolve_overloaded_builtin): Modify the handling of
83 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
84 the compiler is configured to support TARGET_P9_VECTOR.
85 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
86 to explain the special processing that is given to predicate
87 built-ins introduced using this macro.
88 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
89 the special processing given to predicate built-ins introduced
90 using this macro.
91 (BU_VSX_P): Likewise.
92 (BU_P8V_AV_P): Likewise.
93 (BU_P9V_AV_P): Likewise.
94 (BU_P9V_AV_X): New macro.
95 (BU_P9V_64BIT_AV_X): New macro.
96 (BU_P9V_VSX_3): New macro.
97 (BU_P9V_OVERLOAD_P): New macro.
98 (LXVL): New BU_P9V_64BIT_VSX_2.
99 (VEXTUBLX): New BU_P9V_AV_2.
100 (VEXTUBRX): Likewise.
101 (VEXTUHLX): Likewise.
102 (VEXTUHRX): Likewise.
103 (VEXTUWLX): Likewise.
104 (VEXTUWRX): Likewise.
105 (STXVL): New BU_P9V_64BIT_AV_X.
106 (VCLZLSBB): New BU_P9V_AV_1.
107 (VCTZLSBB): Likewise.
108 (CMPNEB): New BU_P9V_AV_2.
109 (CMPNEH): Likewise.
110 (CMPNEW): Likewise.
111 (CMPNEF): Likewise.
112 (CMPNED): Likewise.
113 (VCMPNEB_P): New BU_P9V_AV_P.
114 (VCMPNEH_P): Likewise.
115 (VCMPNEW_P): Likewise.
116 (VCMPNED_P): Likewise.
117 (VCMPNEFP_P): Likewise.
118 (VCMPNEDP_P): Likewise.
119 (CMPNEZB): New BU_P9V_AV_2.
120 (CMPNEZH): Likewise.
121 (CMPNEZW): Likewise.
122 (VCMPNEZB_P): New BU_P9V_AV_P.
123 (VCMPNEZH_P): Likewise.
124 (VCMPNEZW_P): Likewise.
125 (LXVL): New BU_P9V_OVERLOAD_2.
126 (STXVL): New BU_P9V_OVERLOAD_3.
127 (VEXTULX): New BU_P9V_OVERLOAD_2.
128 (VEXTURX): Likewise.
129 (CMPNEZ): Likewise.
130 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
131 (VCMPNE_P): Likewise.
132 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
133 (VCTZLSBB): Likewise.
134 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
135 comment to explain mode used for scratch register.
136 (altivec_expand_stxvl_builtin): New function.
137 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
138 (altivec_init_builtins): Add initialized variable
139 void_ftype_v16qi_pvoid_long and use this type to define the
140 built-in function __builtin_altivec_stxvl.
141 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
142 (UNSPEC_STXVL): New value.
143 (UNSPEC_VCLZLSBB): New value.
144 (UNSPEC_VCTZLSBB): New value.
145 (UNSPEC_VEXTUBLX): New value.
146 (UNSPEC_VEXTUHLX): New value.
147 (UNSPEC_VEXTUWLX): New value.
148 (UNSPEC_VEXTUBRX): New value.
149 (UNSPEC_VEXTUHRX): New value.
150 (UNSPEC_VEXTUWRX): New value.
151 (UNSPEC_VCMPNEB): New value.
152 (UNSPEC_VCMPNEZB): New value.
153 (UNSPEC_VCMPNEH): New value.
154 (UNSPEC_VCMPNEZH): New value.
155 (UNSPEC_VCMPNEW): New value.
156 (UNSPEC_VCMPNEZW): New value.
157 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
158 vector of integer modes.
159 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
160 vector of float or double modes.
161 (*vector_nez_<mode>_p): New insn for vector test all not equal or
162 zero.
163 (lxvl): New expand for load VSX vector with length.
164 (*lxvl): New insn for load VSX vector with length.
165 (stxvl): New expand for store VSX vector with length.
166 (*stxvl): New insn for store VSX vector with length.
167 (vcmpneb): New insn for vector of byte compare not equal.
168 (vcmpnezb): New insn for vector of byte compare not equal or zero.
169 (vcmpneh): New insn for vector of half word compare not equal.
170 (vcmpnezh): New insn for vector of half word compare not equal or
171 zero.
172 (vcmpnew): New insn for vector of word compare not equal.
173 (vcmpne<VSs>): New insn for vector of float or double compare not
174 equal.
175 (vcmpnezw): New insn for vector of word compare not equal or zero.
176 (vclzlsbb): New insn for vector count leading zero
177 least-significant bits byte.
178 (vctzlsbb): New insn for vector count trailing zero least
179 signficant bits byte.
180 (vextublx): New insn for vector extract unsigned byte left
181 indexed.
182 (vextubrx): New insn for vector extract unsigned byte right
183 indexed.
184 (vextuhlx): New insn for vector extract unsigned half word left
185 indexed.
186 (vextuhrx): New insn for vector extract unsigned half word right
187 indexed.
188 (vextuwlx): New insn for vector extract unsigned word left
189 indexed.
190 (vextuwrx): New insn for vector extract unsigned word right
191 indexed.
192 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
193 clarify intent of this constant.
194 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
195 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
196 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
197 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
198 and vec_xrx functions.
199
200 2016-10-18 Andrew Pinski <apinski@cavium.com>
201
202 PR tree-opt/65950
203 * predict.c (is_exit_with_zero_arg): New function.
204 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
205 as nottaken.
206
207 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
208
209 PR target/77991
210 * config/i386/i386.c (legitimize_tls_address)
211 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
212 convert dest to Pmode if different than Pmode.
213
214 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
215
216 PR tree-optimization/77916
217 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
218 stopgap fix, as pointers with -1 increment are still broken.
219
220 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
221
222 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
223 mapping class decoration from here...
224 (rs6000_xcoff_encode_section): ...to here.
225
226 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
227 if shrink-wrapping and optimizing for speed.
228
229 2016-10-18 Richard Biener <rguenther@suse.de>
230
231 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
232 not visited but non-executable predecessors. Return taken edge.
233 Simplify conditions and refactor propagation vs. folding step.
234
235 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
236
237 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
238 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
239 (rs6000_get_separate_components): Assert we do not have those
240 strategies selected.
241
242 2016-10-18 Richard Biener <rguenther@suse.de>
243
244 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
245 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
246 clearing.
247 (substitute_and_fold_dom_walker): Adjust constructor.
248 (substitute_and_fold_dom_walker::before_dom_children): Remove
249 do_dce flag and handling (always true).
250 (substitute_and_fold): Likewise.
251 * tree-vrp.c (vrp_finalize): Adjust.
252 (execute_early_vrp): Remove final BB_VISITED clearing.
253 * tree-ssa-ccp.c (ccp_finalize): Adjust.
254 * tree-ssa-copy.c (fini_copy_prop): Likewise.
255 * ira.c (ira): Call clear_bb_flags.
256
257 2016-10-18 Richard Biener <rguenther@suse.de>
258
259 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
260 get at the operand to look at with TREE_OPERAND for generic
261 sub-nodes.
262
263 2016-10-18 David Malcolm <dmalcolm@redhat.com>
264
265 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
266 copy_md_ptr_loc.
267 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
268 (write_test_expr): Use rtx_reader_ptr for calls to
269 fprint_c_condition.
270 (write_attr_value): Likewise.
271 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
272 call to print_md_ptr_loc.
273 (write_one_condition): Likewise for calls to print_c_condition.
274 * genconstants.c: Include "statistics.h" and "vec.h".
275 (main): Update for conversion to member functions.
276 * genemit.c (emit_c_code): Use rtx_reader_ptr for
277 call to print_md_ptr_loc.
278 * genenums.c: Include "statistics.h" and "vec.h".
279 (main): Update for conversion of traverse_enum_types to a method.
280 * genmddeps.c: Include "statistics.h" and "vec.h".
281 * genoutput.c (process_template): Use rtx_reader_ptr for call to
282 print_md_ptr_loc.
283 * genpreds.c (write_predicate_subfunction): Likewise.
284 (write_predicate_expr): Likewise for calls to print_c_condition.
285 * genrecog.c (print_test): Likewise.
286 * gensupport.c (process_rtx): Likewise for calls to
287 copy_md_ptr_loc and join_c_conditions.
288 (alter_test_for_insn): Likewise for call to join_c_conditions.
289 (process_substs_on_one_elem): Likewise.
290 (gen_mnemonic_setattr): Update for move of string_obstack to a
291 field of rtx_reader.
292 (mnemonic_htab_callback): Likewise. Fix formatting.
293 (gen_mnemonic_attr): Likewise.
294 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
295 to print_c_condition.
296 * read-md.c: Include "statistics.h" and "vec.h".
297 (string_obstack): Convert this global to field "m_string_obstack"
298 of class rtx_reader.
299 (ptr_locs): Likewise, as "m_ptr_locs".
300 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
301 (joined_conditions): Likewise, as "m_joined_conditions".
302 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
303 (md_constants): Likewise, as "m_md_constants".
304 (enum_types): Likewise, as "m_enum_types".
305 (set_md_ptr_loc): Convert to...
306 (rtx_reader::set_md_ptr_loc): ...member function.
307 (get_md_ptr_loc): Convert to...
308 (rtx_reader::get_md_ptr_loc): ...member function.
309 (copy_md_ptr_loc): Convert to...
310 (rtx_reader::copy_md_ptr_loc): ...member function.
311 (fprint_md_ptr_loc): Convert to...
312 (rtx_reader::fprint_md_ptr_loc): ...member function.
313 (print_md_ptr_loc): Convert to...
314 (rtx_reader::print_md_ptr_loc): ...member function.
315 (join_c_conditions): Convert to...
316 (rtx_reader::join_c_conditions): ...member function.
317 (fprint_c_condition): Convert to...
318 (rtx_reader::fprint_c_condition): ...member function.
319 (print_c_condition): Convert to...
320 (rtx_reader::print_c_condition): ...member function.
321 (read_name): Convert to...
322 (rtx_reader::read_name): ...member function.
323 (read_escape): Convert to...
324 (rtx_reader::read_escape): ...member function.
325 (read_quoted_string): Convert to...
326 (rtx_reader::read_quoted_string): ...member function.
327 (read_braced_string): Convert to...
328 (rtx_reader::read_braced_string): ...member function.
329 (read_string): Convert to...
330 (rtx_reader::read_string): ...member function.
331 (read_skip_construct): Convert to...
332 (rtx_reader::read_skip_construct): ...member function.
333 (handle_constants): Convert to...
334 (rtx_reader::handle_constants): ...member function.
335 (traverse_md_constants): Convert to...
336 (rtx_reader::traverse_md_constants): ...member function.
337 (handle_enum): Convert to...
338 (rtx_reader::handle_enum): ...member function.
339 (lookup_enum_type): Convert to...
340 (rtx_reader::lookup_enum_type): ...member function.
341 (traverse_enum_types): Convert to...
342 (rtx_reader::traverse_enum_types): ...member function.
343 (rtx_reader::rtx_reader): Move initializations
344 of various former global data from rtx_reader::read_md_files to
345 here, as fields, along with the call to unlock_std_streams.
346 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
347 the new fields.
348 (rtx_reader::read_md_files): Move initializations of various
349 global data from here to the ctor.
350 * read-md.h (read_name): Convert to...
351 (rtx_reader::read_name): ...member function.
352 (rtx_reader::read_escape): New method decl.
353 (read_quoted_string): Convert to...
354 (rtx_reader::read_quoted_string): ...member function.
355 (rtx_reader::read_braced_string): New method decl.
356 (read_string): Convert to...
357 (rtx_reader::read_string): ...member function.
358 (rtx_reader::read_skip_construct): New method decl.
359 (rtx_reader::set_md_ptr_loc): New method decl.
360 (rtx_reader::get_md_ptr_loc): New method decl.
361 (copy_md_ptr_loc): Convert to...
362 (rtx_reader::copy_md_ptr_loc): ...member function.
363 (fprint_md_ptr_loc): Convert to...
364 (rtx_reader::fprint_md_ptr_loc): ...member function.
365 (print_md_ptr_loc): Convert to...
366 (rtx_reader::print_md_ptr_loc): ...member function.
367 (rtx_reader::lookup_enum_type): New method decl.
368 (rtx_reader::traverse_enum_types): New method decl.
369 (rtx_reader::handle_constants): New method decl.
370 (traverse_md_constants): Convert to...
371 (rtx_reader::traverse_md_constants): ...member function.
372 (rtx_reader::handle_enum): New method decl.
373 (rtx_reader::join_c_conditions): New method decl.
374 (fprint_c_condition): Convert to...
375 (rtx_reader::fprint_c_condition): ...member function.
376 (print_c_condition): Convert to...
377 (rtx_reader::print_c_condition): ...member function.
378 (rtx_reader::apply_iterator_to_string): New method decl.
379 (rtx_reader::copy_rtx_for_iterators): New method decl.
380 (rtx_reader::read_conditions): New method decl.
381 (rtx_reader::record_potential_iterator_use): New method decl.
382 (rtx_reader::read_mapping): New method decl.
383 (rtx_reader::read_rtx): New method decl.
384 (rtx_reader::read_rtx_code): New method decl.
385 (rtx_reader::read_rtx_operand): New method decl.
386 (rtx_reader::read_nested_rtx): New method decl.
387 (rtx_reader::read_rtx_variadic): New method decl.
388 (rtx_reader::get_string_obstack): New method.
389 (rtx_reader::get_md_constants): New method.
390 (string_obstack): Convert global variable decl to...
391 (rtx_reader::m_string_obstack): ...this new field.
392 (rtx_reader::m_ptr_locs): New field.
393 (rtx_reader::m_ptr_loc_obstack): New field.
394 (rtx_reader::m_joined_conditions): New field.
395 (rtx_reader::m_joined_conditions_obstack): New field.
396 (rtx_reader::m_md_constants): New field.
397 (rtx_reader::m_enum_types): New field.
398 * read-rtl.c (apply_iterator_to_string): Convert to...
399 (rtx_reader::apply_iterator_to_string): ...member function.
400 (copy_rtx_for_iterators): Convert to...
401 (rtx_reader::copy_rtx_for_iterators): ...member function.
402 (add_condition_to_string): Use rtx_reader_ptr for
403 calls join_c_conditions.
404 (apply_iterators): Use rtx_reader_ptr for calls to
405 join_c_conditions and copy_rtx_for_iterators.
406 (read_conditions): Convert to...
407 (rtx_reader::read_conditions): ...member function.
408 (record_potential_iterator_use): Convert to...
409 (rtx_reader::record_potential_iterator_use): ...member function.
410 (read_mapping): Convert to...
411 (rtx_reader::read_mapping): ...member function.
412 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
413 (read_rtx): Convert to...
414 (rtx_reader::read_rtx): ...member function.
415 (read_rtx_code): Convert to...
416 (rtx_reader::read_rtx_code): ...member function.
417 (read_rtx_operand): Convert to...
418 (rtx_reader::read_rtx_operand): ...member function. Update for move
419 of string_obstack to a field.
420 (read_nested_rtx): Convert to..
421 (rtx_reader::read_nested_rtx): ...member function.
422 (read_rtx_variadic): Convert to..
423 (rtx_reader::read_rtx_variadic): ...member function.
424
425 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
426
427 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
428
429 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
430
431 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
432 for pointer type too.
433 (ipcp_update_vr): set_ptr_nonnull for pointer.
434
435 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
436
437 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
438 pt_solution_singleton_p.
439 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
440 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
441 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
442 pointer nonnull computed by VRP.
443 Also Conservatively set pt.null to 1.
444 (pt_solution_reset): Conservatively set pt.null to 1.
445 (pt_solution_singleton_or_null_p): Renamed from
446 pt_solution_singleton_p.
447 * tree-ssanames.h (set_ptr_nonnull): Declare.
448 (get_ptr_nonnull): Likewise.
449 * tree-ssanames.c (set_ptr_nonnull): New.
450 (get_ptr_nonnull): Likewise.
451 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
452 (evrp_dom_walker::before_dom_children): Likewise.
453
454 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
455
456 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
457 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
458 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
459 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
460 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
461 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
462 (rs6000_option_override_internal): Clear it if ABI_AIX.
463 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
464 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
465
466 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
467
468 * gimple-ssa-strength-reduction.c (record_increment): Remove
469 garbage comment.
470
471 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
472
473 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
474 that the result is non-zero if it is true.
475 (maybe_expand_shift): New wrapper around expand_shift_1.
476 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
477
478 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
479
480 PR tree-optimization/77916
481 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
482 Don't allow a MINUS_EXPR for pointer arithmetic for either known
483 or unknown strides.
484 (record_increment): Increments of -1 for unknown strides just use
485 a multiply initializer like other negative values.
486 (analyze_increments): Remove stopgap solution for -1 increment
487 applied to pointer arithmetic.
488
489 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
490
491 * dominance.c (dom_info::dom_info): Add new constructor for region
492 which is vector of basic blocks.
493 (dom_init): New method to initialize members common for both
494 constructors.
495 (dom_info::dom_info): Invoke dom_init for partial initialization.
496 (dom_info::get_idom): Add check to corner cases on basic blocks which
497 are not in region.
498 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
499 to detect unreachable bbs.
500 (dom_info::calc_idoms): Likewise.
501 (compute_dom_fast_query_in_region): New function.
502 (calculate_dominance_info_for_region): Likewise.
503 (free_dominance_info_for_region): Likewise.
504 * dominance.h: Add prototypes for introduced region-based functions
505 tree-if-conv.c: (build_region): New function.
506 (if_convertible_loop_p_1): Invoke local version of post-dominators
507 calculation before basic block predication with subsequent freeing
508 post-dominator info.
509 (tree_if_conversion): Remove free of post-dominator info
510 (pass_if_conversion::execute): Delete detection of infinite loops
511 and fake edges to exit block since post-dominator calculation is
512 performed per if-converted loop only.
513
514 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
515
516 PR target/77308
517 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
518 register explicitly.
519 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
520 optimizing for size.
521
522 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
523
524 * config/aarch64/aarch64.c: Delete inclusion of
525 cortex-a57-fma-steering.h.
526 (aarch64_override_options): Delete call
527 to aarch64_register_fma_steering.
528 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
529 * config/aarch64/cortex-a57-fma-steering.h: Delete.
530 * config/aarch64/aarch64-passes.def: New file.
531 * config/aarch64/cortex-a57-fma-steering.c
532 (aarch64_register_fma_steering): Delete definition.
533 (make_pass_fma_steering): Remove static qualifier.
534 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
535 (cortex-a57-fma-steering.o): Remove dependency on
536 cortex-a57-fma-steering.h.
537
538 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
539
540 * explow.c (validize_mem): Do not modify the argument in-place.
541
542 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
543
544 * tree-streamer.c (record_common_node): Explicitly list expected
545 tree codes.
546
547 2016-10-17 Richard Biener <rguenther@suse.de>
548
549 PR tree-optimization/77988
550 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
551
552 2016-10-17 Marek Polacek <polacek@redhat.com>
553
554 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
555
556 2016-10-17 Richard Biener <rguenther@suse.de>
557
558 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
559 before using it.
560
561 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
562
563 PR tree-optimization/71636
564 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
565
566 2016-10-17 Richard Biener <rguenther@suse.de>
567
568 * gimplify.c (gimplify_function_tree): Do not move the outer
569 binds block.
570
571 2016-10-17 Jakub Jelinek <jakub@redhat.com>
572
573 * langhooks.h (struct lang_hooks_for_decls): Remove
574 function_decl_explicit_p, function_decl_deleted_p and
575 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
576 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
577 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
578 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
579 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
580 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
581 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
582 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
583 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
584 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
585 * langhooks.c (lhd_decl_dwarf_attribute): New function.
586 * dwarf2out.c (gen_subprogram_die): Use
587 lang_hooks.decls.decl_dwarf_attribute instead of
588 lang_hooks.decls.function_decl_*.
589
590 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
591
592 PR ada/37139
593 PR ada/67205
594 * common.opt (-ftrampolines): New option.
595 * doc/invoke.texi (Code Gen Options): Document it.
596 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
597 * doc/tm.texi: Regenerate.
598 * builtins.def: Add init_descriptor and adjust_descriptor.
599 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
600 on platforms with descriptors.
601 (expand_builtin_init_descriptor): New function.
602 (expand_builtin_adjust_descriptor): Likewise.
603 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
604 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
605 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
606 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
607 Set STATIC_CHAIN_REG_P on the static chain register, if any.
608 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
609 (expand_call): Likewise. Move around call to prepare_call_address
610 and pass all flags to it.
611 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
612 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
613 (gimple_call_set_by_descriptor): New setter.
614 (gimple_call_by_descriptor_p): New getter.
615 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
616 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
617 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
618 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
619 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
620 * rtl.h (STATIC_CHAIN_REG_P): New macro.
621 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
622 * target.def (custom_function_descriptors): New POD hook.
623 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
624 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
625 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
626 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
627 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
628 (build_common_builtin_nodes): Initialize init_descriptor and
629 adjust_descriptor.
630 * tree-nested.c: Include target.h.
631 (struct nesting_info): Add 'any_descr_created' field.
632 (get_descriptor_type): New function.
633 (lookup_element_for_decl): New function extracted from...
634 (create_field_for_decl): Likewise.
635 (lookup_tramp_for_decl): ...here. Adjust.
636 (lookup_descr_for_decl): New function.
637 (convert_tramp_reference_op): Deal with descriptors.
638 (build_init_call_stmt): New function extracted from...
639 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
640 * defaults.h (FUNCTION_ALIGNMENT): Define.
641 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
642 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
643 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
644 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
645 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
646
647 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
648
649 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
650 constants in CONST_VECTORs.
651
652 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
653
654 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
655 register as destination of bmask.
656 (vector_init_bshuffle): Likewise.
657 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
658 (bmaskdi_vis): Enable only in 64-bit mode.
659
660 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
661
662 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
663 make LR a separately shrink-wrapped component unless savres_strategy
664 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
665 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
666 wrapping when not both {SAVE,REST}_INLINE_GPRS.
667
668 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
669
670 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
671 and keep looping on failure.
672
673 2016-10-14 David Malcolm <dmalcolm@redhat.com>
674
675 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
676 set.
677 (print_rtx_function): Update example in comment for...
678 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
679 non-virtual pseudos with a '%' sigil followed by the regno, offset
680 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
681 pseudo is dumped as "%0".
682
683 2016-10-14 Jakub Jelinek <jakub@redhat.com>
684
685 PR middle-end/77959
686 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
687 return a MEM.
688
689 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
690
691 * config/sparc/sparc-passes.def: New file.
692 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
693 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
694 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
695
696 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
697
698 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
699 loop peel to loops with exit test at the beginning.
700
701 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
702
703 PR rtl-optimization/68212
704 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
705 frequency when computing scale factor for peeled copies.
706 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
707 values for switch/peel blocks/edges.
708
709 2016-10-14 Pedro Alves <palves@redhat.com>
710
711 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
712
713 2016-10-14 Catherine Moore <clm@codesourcery.com>
714
715 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
716 micromips_globals to zero.
717
718 2016-10-14 Richard Biener <rguenther@suse.de>
719
720 PR tree-optimization/77979
721 * tree-vrp.c (compare_name_with_value): Handle released SSA names
722 in the equivalency sets.
723 (compare_names): Likewise.
724
725 2016-10-14 Martin Liska <mliska@suse.cz>
726
727 * builtins.h(target_char_cst_p): Declare the function.
728 * builtins.c (fold_builtin_memchr): Remove.
729 (target_char_cst_p): Move the function from gimple-fold.c.
730 (fold_builtin_3): Do not call the function.
731 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
732 (gimple_fold_builtin): Call the function.
733 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
734
735 2016-10-14 Martin Liska <mliska@suse.cz>
736
737 * builtins.c (fold_builtin_strcmp): Remove function.
738 (fold_builtin_strncmp): Likewise.
739 (fold_builtin_2): Remove call of the function.
740 (fold_builtin_3): Likewise.
741 * fold-const-call.c (fold_const_call): Add constant folding
742 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
743 * fold-const-call.h (build_cmp_result): Declare the function.
744 * gimple-fold.c (gimple_load_first_char): New function.
745 (gimple_fold_builtin_string_compare): Likewise.
746 (gimple_fold_builtin): Call the function.
747
748 2016-10-14 Nathan Sidwell <nathan@acm.org>
749
750 * gcov-io.c (gcov_open): Deconstify 'mode'.
751
752 2016-10-14 Martin Liska <mliska@suse.cz>
753
754 * fold-const.c (c_getstr): Support of properly \0-terminated
755 string constants. New argument is added.
756 * fold-const.h: New argument is added.
757
758 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
759
760 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
761 New function.
762 (aarch64_print_hint_for_core): Likewise.
763 (aarch64_print_hint_for_arch): Likewise.
764 (aarch64_validate_march): Use it. Fix indentation in type signature.
765 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
766 (aarch64_validate_mtune): Likewise.
767 (aarch64_handle_attr_arch): Likewise.
768 (aarch64_handle_attr_cpu): Likewise.
769 (aarch64_handle_attr_tune): Likewise.
770
771 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
772
773 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
774 and udivmod_optab.
775
776 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
777
778 * config/m68k/m68k.c (m68k_option_override): Check
779 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
780 instead of stack_limit_rtx.
781
782 2016-10-13 Jakub Jelinek <jakub@redhat.com>
783
784 * dwarf2out.c (gen_member_die): Handle inline static data member
785 definitions.
786
787 2016-10-13 Nathan Sidwell <nathan@acm.org>
788
789 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
790 gcov_var.mode. Remove unnecessary fstat.
791
792 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
793
794 PR bootstrap/77962
795 * function.c (thread_prologue_and_epilogue_insns): Call all
796 make_*logue_seq in the same order as traditional. Call them
797 all a second time if shrink_wrapped_separate.
798
799 2016-10-13 Marek Polacek <polacek@redhat.com>
800
801 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
802 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
803 use -Wno-error.
804
805 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
806
807 PR tree-optimization/77937
808 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
809 to infinite when we have a pointer with an increment of -1.
810
811 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
812
813 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
814 into ...
815 * memmodel.h: This file.
816 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
817 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
818 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
819 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
820 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
821 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
822 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
823 compare-elim.c, config/aarch64/aarch64-builtins.c,
824 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
825 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
826 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
827 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
828 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
829 config/darwin.c, config/epiphany/epiphany.c,
830 config/epiphany/mode-switch-use.c,
831 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
832 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
833 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
834 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
835 config/m68k/m68k.c, config/mcore/mcore.c,
836 config/microblaze/microblaze.c, config/mmix/mmix.c,
837 config/mn10300/mn10300.c, config/moxie/moxie.c,
838 config/msp430/msp430.c, config/nds32/nds32-cost.c,
839 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
840 config/nds32/nds32-memory-manipulation.c,
841 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
842 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
843 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
844 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
845 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
846 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
847 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
848 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
849 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
850 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
851 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
852 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
853 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
854 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
855 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
856 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
857 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
858 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
859 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
860 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
861 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
862 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
863 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
864 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
865 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
866 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
867 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
868 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
869 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
870 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
871 var-tracking.c, varasm.c: Include memmodel.h.
872 * genattrtab.c (write_header): Include memmodel.h in generated file.
873 * genautomata.c (main): Likewise.
874 * gengtype.c (open_base_files): Likewise.
875 * genopinit.c (main): Likewise.
876 * genconditions.c (write_header): Include memmodel.h earlier in
877 generated file.
878 * genemit.c (main): Likewise.
879 * genoutput.c (output_prologue): Likewise.
880 * genpeep.c (main): Likewise.
881 * genpreds.c (write_insn_preds_c): Likewise.
882 * genrecog.c (write_header): Likewise.
883 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
884
885 2016-10-13 David Malcolm <dmalcolm@redhat.com>
886
887 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
888 for new "compact" param of print_rtx_function. Check for "cinsn"
889 rather than "insn".
890 * print-rtl-function.c (flag_compact): New decl.
891 (print_rtx_function): Add param "compact" and use it to set
892 flag_compact, adding a description of the effect to the leading
893 comment, and updating the example output.
894 * print-rtl.c (flag_compact): New variable.
895 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
896 mode.
897 (print_rtx_operand_code_i): When printing source locations, wrap
898 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
899 (print_rtx_operand_code_r): Don't print regnos for hard regs and
900 virtuals in compact mode.
901 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
902 apart from in LABEL_REFs.
903 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
904 Don't print basic block ids in compact mode.
905 (print_rtx): In compact mode, prefix the code of insns with "c",
906 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
907 * print-rtl.h (print_rtx_function): Add "compact" param.
908
909 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
910
911 * arm.h (TARGET_VFP): Delete.
912 (TARGET_VFPD32): Remove references to TARGET_VFP.
913 (TARGET_VFP3, TARGET_VFP5): Likewise.
914 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
915 (TARGET_NEON_FP16): Likewise.
916 (TARGET_FMA): Likewise.
917 (TARGET_CRYPTO): Likewise.
918 (TARGET_NEON): Likewise.
919 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
920 (FUNCTION_ARG_REGNO_P): Likewise.
921 * arm.c (arm_option_check_internal): Likewise.
922 (arm_option_override): Likewise.
923 (use_return_insn): Likewise.
924 (arm_function_value_regno_p): Likewise.
925 (arm_apply_result_size): Likewise.
926 (use_vfp_abi): Likewise.
927 (arm_legitimate_address_outer_p): Likewise.
928 (thumb2_legitimate_address_p): Likewise.
929 (arm_legitimate_index_p): Likewise.
930 (thumb2_legitimate_index_p): Likewise.
931 (arm_legitimate_address): Likewise.
932 (arm_get_vfp_saved_size): Likewise.
933 (arm_emit_vfp_multi_reg_pop): Likewise.
934 (arm_get_frame_offsets): Likewise.
935 (arm_save_coproc_regs): Likewise.
936 (arm_hard_regno_mode_ok): Likewise.
937 (arm_expand_epilogue_apcs_frame): Likewise.
938 (arm_expand_epilogue): Likewise.
939 (arm_file_start): Likewise.
940 (arm_conditional_register_usage): Likewise.
941 (arm_validize_comparison): Use vfp_compare_operand directly.
942 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
943 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
944 unsupported usage.
945 (arm_atomic_assign_expand_fenv): Likewise.
946 * arm.md (divsf3): Likewise.
947 (arm_negsi2): Likewise.
948 (absdf2): Likewise.
949 (arm_movdi): Likewise.
950 (arm_movt): Likewise.
951 (cbranchsf4): Change predicate to vfp_compare_operand.
952 (cbranchdf4): Change predicate to vfp_compare_operand.
953 (cstorehf4): Change predicate to vfp_compare_operand.
954 (cstoresf4): Change predicate to vfp_compare_operand.
955 (cstoredf4): Change predicate to vfp_compare_operand.
956 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
957 (movhi_insn_arch4, movhi_bytes): Likewise.
958 * constraints.md (Dt): Likewise.
959 (Dp): Likewise.
960 * iterators.md (SDF): Likewise.
961 * predicates.md (arm_float_compare_operand): Delete.
962 (const_double_vcvt_power_of_two_reciprocal): Remove references to
963 TARGET_VFP.
964 (const_double_vcvt_power_of_two): Likewise.
965 * thumb2.md thumb2_movsi_insn): Likewise.
966 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
967 (movhf_vfp): Likewise.
968 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
969 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
970 (movsf_vfp, thumb2_movsf_vfp): Likewise.
971 (movdf_vfp, thumb2_movdf_vfp): Likewise.
972 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
973 (subsf3_vfp, divsf3_vfp): Likewise.
974 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
975 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
976 (mulsf3negsfsubsf_vfp): Likewise.
977 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
978 (floatunssisf2, sqrtsf2_vfp): Likewise.
979 (movcc_vfp): Likewise.
980 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
981 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
982 (push_multi_vfp): Likewise.
983 (set_fpscr, get_fpscr): Likewise.
984 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
985
986 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
987
988 * arm.h (TARGET_VFP): Unconditionally define to 1.
989 (arm_fpu_desc): Remove 'model' field.
990 (TARGET_FPU_MODEL): Delete.
991 * arm.c (all_fpus): Don't initialize the model field.
992 (arm_can_inline_p): Don't check the FPU model.
993 * arm-fpus.def: Remove redundant model field from all FPU
994 descriptions.
995
996 2016-10-13 Richard Biener <rguenther@suse.de>
997
998 PR middle-end/77826
999 * genmatch.c (struct capture): Add value_match member.
1000 (commutate): Preserve value_match.
1001 (lower_opt_convert): Likewise.
1002 (lower_cond): Likewise.
1003 (replace_id): Likewise.
1004 (struct dt_operand): Add value_match member.
1005 (decision_tree::cmp_node): Compare it.
1006 (decision_tree::insert_operand): Honor it when finding and
1007 when appending a DT_MATCH.
1008 (dt_operand::gen_match_op): Generate a type check after
1009 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
1010 (parser::get_internal_capture_id): New helper.
1011 (parser::finish_match_operand): New function lowering @@<id>.
1012 (parser::parse_capture): Parse @@<id> as value-match.
1013 (parser::parse_expr): Use get_internal_capture_id.
1014 (parser::parse_simplify): Call finish_match_operand.
1015 (walk_captures): New helper.
1016 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
1017 of operand_equal_p.
1018 ((X /[ex] A) * A -> X): Likewise.
1019 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
1020 convert[12] and value-matching.
1021 ((A | B) & (A | C) -> A | (B & C)): Likewise.
1022 ((X | Y) | Y -> X | Y): Likewise.
1023 ((X ^ Y) ^ Y -> X): Likewise.
1024 (A - (A & B) -> ~B & A): Likewise.
1025 ((T)(P + A) - (T)P -> (T) A): Likewise.
1026 ((T)P - (T)(P + A) -> -(T) A): Likewise.
1027 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
1028 * doc/match-and-simplify.texi: Amend capture section.
1029
1030 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1031
1032 * config/arc/arc.md (umul_600): Remove predicated variant.
1033 (umul64_600): Likewise.
1034
1035 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1036
1037 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
1038
1039 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1040
1041 * tree-vect-loop.c (loop_niters_no_overflow): New func.
1042 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
1043 no-overflow information to vect_do_peeling_for_loop_bound and
1044 vect_gen_vector_loop_niters.
1045
1046 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1047
1048 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
1049 iterates 1 time.
1050
1051 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1052
1053 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
1054 adjust_vec automatically.
1055 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
1056 param exit_bb to guard_to.
1057 (slpeel_checking_verify_cfg_after_peeling):
1058 (set_prologue_iterations):
1059 (create_lcssa_for_virtual_phi): New func which is factored out from
1060 slpeel_tree_peel_loop_to_edge.
1061 (slpeel_tree_peel_loop_to_edge):
1062 (iv_phi_p): New func.
1063 (vect_can_advance_ivs_p): Call iv_phi_p.
1064 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
1065 new gimple stmts in basic block.
1066 (vect_do_peeling_for_loop_bound):
1067 (vect_do_peeling_for_alignment):
1068 (vect_gen_niters_for_prolog_loop): Rename to...
1069 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
1070 adjust implementation.
1071 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
1072 sizetype if necessary.
1073 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
1074 it to external function.
1075 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
1076 (vect_gen_vector_loop_niters_mult_vf): New.
1077 (slpeel_update_phi_nodes_for_loops): New.
1078 (slpeel_update_phi_nodes_for_guard1): Reimplement.
1079 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
1080 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
1081 * tree-vect-loop.c (vect_build_loop_niters): Move to file
1082 tree-vect-loop-manip.c
1083 (vect_generate_tmps_on_preheader): Delete.
1084 (vect_transform_loop): Rename vectorization_factor to vf. Call
1085 vect_do_peeling instead of vect_do_peeling-* functions.
1086 * tree-vectorizer.h (vect_do_peeling): New decl.
1087 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
1088 (vect_do_peeling_for_loop_bound): Delete.
1089 (vect_do_peeling_for_alignment): Delete.
1090
1091 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1092
1093 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
1094 duplicated loop after its preheader and after the original loop.
1095
1096 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1097
1098 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
1099 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
1100
1101 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1102
1103 * tree-vect-loop.c (vectorizable_live_operation): Support handling
1104 for live variable outside loop but not in lcssa form.
1105
1106 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1107
1108 * cfg.c (reset_original_copy_tables): New func.
1109 * cfg.h (reset_original_copy_tables): New decl.
1110
1111 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1112
1113 PR c/77946
1114 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
1115 public_flag.
1116 * varasm.c (default_binds_local_p_3): Formatting fix.
1117
1118 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1119
1120 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
1121 style issue.
1122 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1123 Remove useless code.
1124
1125 2016-10-13 Martin Liska <mliska@suse.cz>
1126
1127 PR tree-optimization/77943
1128 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1129 a different EH landing pads.
1130
1131 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1132
1133 PR target/77957
1134 * hooks.h (hook_tree_void_null): Declare.
1135 * hooks.c (hook_tree_void_null): New function.
1136 * langhooks.c (lhd_return_null_tree_v): Remove.
1137 * langhooks-def.h (lhd_return_null_tree_v): Remove.
1138 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
1139 set y to const0_rtx.
1140 * function.c (stack_protect_epilogue): Likewise.
1141 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
1142 if TARGET_THREAD_SSP_OFFSET is defined.
1143 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1144 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1145 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1146 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1147 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1148 (ix86_stack_protect_guard): New function.
1149
1150 2016-10-13 Richard Biener <rguenther@suse.de>
1151
1152 * dwarf2out.c (tree_add_const_value_attribute): Do not try
1153 rtl_for_decl_init during early phase.
1154 (gen_variable_die): Do not create locations during early phase.
1155 (gen_label_die): Likewise.
1156 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
1157 twice.
1158
1159 2016-10-12 Richard Biener <rguenther@suse.de>
1160
1161 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
1162 try_add_new_range and made to eturn new range.
1163 (evrp_dom_walker::before_dom_children): Push op1 value range before
1164 pushing op0 value range.
1165
1166 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1167
1168 PR tree-optimization/77937
1169 * gimple-ssa-strength-reduction.c (analyze_increments): Use
1170 POINTER_TYPE_P on the candidate type to determine whether
1171 candidates in this chain require pointer arithmetic.
1172
1173 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
1174
1175 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
1176 correction if the type is smaller than a word.
1177 (visium_select_cc_mode): Add ... fall through ... comment.
1178
1179 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1180
1181 * config/rs6000/rs6000.c (machine_function): Add new fields
1182 gpr_is_wrapped_separately and lr_is_wrapped_separately.
1183 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1184 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1185 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1186 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1187 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1188 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1189 (rs6000_get_separate_components): New function.
1190 (rs6000_components_for_bb): New function.
1191 (rs6000_disqualify_components): New function.
1192 (rs6000_emit_prologue_components): New function.
1193 (rs6000_emit_epilogue_components): New function.
1194 (rs6000_set_handled_components): New function.
1195 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
1196 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
1197 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
1198 (rs6000_emit_epilogue): Don't emit GPR restores if
1199 gpr_is_wrapped_separately for that register. Don't make a
1200 REG_CFA_RESTORE note for registers we did not restore, either.
1201
1202 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1203
1204 * function.c (thread_prologue_and_epilogue_insns): Call
1205 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
1206 if it has possibly changed. Compute the split_prologue_seq and
1207 epilogue_seq later, too.
1208 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
1209 (dump_components): New function.
1210 (struct sw): New struct.
1211 (SW): New function.
1212 (init_separate_shrink_wrap): New function.
1213 (fini_separate_shrink_wrap): New function.
1214 (place_prologue_for_one_component): New function.
1215 (spread_components): New function.
1216 (disqualify_problematic_components): New function.
1217 (emit_common_heads_for_components): New function.
1218 (emit_common_tails_for_components): New function.
1219 (insert_prologue_epilogue_for_components): New function.
1220 (try_shrink_wrapping_separate): New function.
1221 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
1222
1223 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1224
1225 * regrename.c (build_def_use): Invalidate chains that have a
1226 REG_CFA_RESTORE on some instruction.
1227
1228 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1229
1230 * dce.c (delete_unmarked_insns): Don't delete instructions with
1231 a REG_CFA_RESTORE note.
1232
1233 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1234
1235 * common.opt (-fshrink-wrap-separate): New flag.
1236 * doc/invoke.texi: Document it.
1237 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
1238 * doc/tm.texi: Regenerate.
1239 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
1240 * target.def (shrink_wrap): New hook vector.
1241 (get_separate_components, components_for_bb, disqualify_components,
1242 emit_prologue_components, emit_epilogue_components,
1243 set_handled_components): New hooks.
1244
1245 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1246
1247 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
1248 vector return by reference only if -Wpsabi.
1249 (rs6000_pass_by_reference): Similarly, for argument passing.
1250
1251 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1252
1253 * function-tests.c: Include "print-rtl.h".
1254 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
1255 function, and verify what is dumped.
1256 * print-rtl-function.c (print_edge): New function.
1257 (begin_any_block): New function.
1258 (end_any_block): New function.
1259 (can_have_basic_block_p): New function.
1260 (print_rtx_function): Track the basic blocks of insns in the
1261 chain, wrapping those that are within blocks within "(block)"
1262 directives. Remove the "(cfg)" directive.
1263
1264 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1265
1266 * selftest.c (selftest::read_file): New function.
1267 (selftest::test_read_file): New function.
1268 (selftest::selftest_c_tests): Call test_read_file.
1269 * selftest.h (selftest::read_file): New decl.
1270
1271 2016-10-12 Richard Biener <rguenther@suse.de>
1272
1273 PR debug/77947
1274 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
1275 function context.
1276
1277 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
1278
1279 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
1280
1281 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
1282 dwarf2out_assembly_start.
1283
1284 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
1285
1286 * Makefile.in (SELFTEST_FLAGS): New variable.
1287 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
1288
1289 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
1290 early_finish hook.
1291
1292 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
1293
1294 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
1295 dumped in RTL dumps.
1296
1297 2016-10-12 Martin Liska <mliska@suse.cz>
1298
1299 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
1300 (gimple_fold_builtin_memory_op): Use the function.
1301 (gimple_fold_builtin_strchr): Likewise.
1302 (gimple_fold_builtin_strcat): Likewise.
1303 (gimple_build): Likewise.
1304
1305 2016-10-12 Nathan Sidwell <nathan@acm.org>
1306
1307 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
1308
1309 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1310
1311 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
1312 equivalent 32-bit constant (modulo 2**32) when that yields
1313 smaller instructions.
1314 (size_of_int_loc_descriptor): Update accordingly.
1315
1316 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1317
1318 * dwarf2out.c (dwarf2out_early_global_decl): For nested
1319 functions, call dwarf2out_decl on the parent function first.
1320
1321 2016-10-12 Richard Biener <rguenther@suse.de>
1322
1323 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
1324 on the conversion.
1325
1326 2016-10-12 Richard Biener <rguenther@suse.de>
1327
1328 * tree-ssa-propagate.c
1329 (substitute_and_fold_dom_walker::before_dom_children): Do not
1330 ignore ASSERT_EXPRs but only preserve them.
1331 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
1332 that have been propagated into.
1333 (vrp_finalize): Enable DCE for substitute_and_fold.
1334
1335 2016-10-12 Richard Biener <rguenther@suse.de>
1336
1337 PR tree-optimization/77920
1338 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
1339 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
1340 (simplify_abs_using_ranges): Likewise.
1341 (simplify_conversion_using_ranges): Likewise.
1342 (simplify_stmt_using_ranges): Adjust.
1343
1344 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1345
1346 PR tree-optimization/77929
1347 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
1348 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
1349
1350 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1351
1352 PR target/77934
1353 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
1354 needs a base register for arg 1.
1355
1356 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1357
1358 * common.opt (Wimplicit-fallthrough) Turn into alias to
1359 -Wimplicit-fallthrough=3. Remove EnabledBy.
1360 (Wimplicit-fallthrough=): New option.
1361 * gimplify.c (warn_implicit_fallthrough_r): Use
1362 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
1363 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
1364 to -Wimplicit-fallthrough=3.
1365 (-Wimplicit-fallthrough=): Document.
1366
1367 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1368
1369 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
1370 and GEU in DImode if TARGET_SUBXC.
1371 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
1372 (seqdi<W:mode>_zero_subxc): Delete.
1373 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
1374 (neg_seqdi<W:mode>_zero_vis3): Delete.
1375 (plus_seqdi<W:mode>_zero): Likewise.
1376 (minus_seqdi<W:mode>_zero): Likewise.
1377 (plus_plus_sltu<W:mode>): Accept only register.
1378 (addx<W:mode>): Likewise.
1379 (plus_sltu<W:mode>_vis3): Likewise.
1380 (plus_plus_sltu<W:mode>_vis3): Likewise.
1381 (neg_sgeu<W:mode>_vis3): Delete.
1382 (minus_sgeu<W:mode>_vis3): Likewise.
1383 (addxc<W:mode>): Accept only registers.
1384 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1385 (minus_neg_sltu<W:mode>_subxc): Accept only register.
1386 (neg_plus_sltu<W:mode>_subxc): Likewise.
1387 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1388 (minus_minus_sltu<W:mode>_subxc): Accept only register.
1389 (sgeu<W:mode>_insn_subxc): Delete.
1390 (plus_sgeu<W:mode>_subxc): Likewise.
1391 (subxc<W:mode>): Accept only register.
1392 (scc splitter): Split always GEU again.
1393
1394 2016-10-11 Jeff Law <law@redhat.com>
1395
1396 PR tree-optimization/77424
1397 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
1398 dead conditionals. Assert that all e->aux fields are NULL.
1399
1400 2016-10-11 David Malcolm <dmalcolm@redhat.com>
1401
1402 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
1403 operand-printing "switch" statement into...
1404 (print_rtx_operand_code_0): ...this new function, ...
1405 (print_rtx_operand_code_e): ...this new function, ...
1406 (print_rtx_operand_codes_E_and_V): ...this new function, ...
1407 (print_rtx_operand_code_i): ...this new function, ...
1408 (print_rtx_operand_code_r): ...this new function, ...
1409 (print_rtx_operand_code_u): ...this new function, ...
1410 (print_rtx_operand): ...and this new function.
1411
1412 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
1413
1414 * config/alpha/alpha-passes.def: New file.
1415 * config/alpha/t-alpha: New file.
1416 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
1417 (make_pass_handle_trap_shadows): New prototype.
1418 (make_pass_align_insns): Ditto.
1419 * config/alpha/alpha.c (alpha_option_override): Don't register
1420 passes here.
1421 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
1422
1423 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1424
1425 PR target/77924
1426 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
1427 distinct __ibm128 IBM extended double type if long doubles are
1428 128-bits and the default format for long double is IEEE 128-bit.
1429
1430 2016-10-11 Richard Biener <rguenther@suse.de>
1431
1432 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
1433 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
1434 (verify_die): New function.
1435 (dwarf2out_finish): Call it.
1436 (output_line_info): Handle case of -gsplit-dwarf without
1437 DWARF2_ASM_LINE_DEBUG_INFO.
1438
1439 2016-10-11 Richard Biener <rguenther@suse.de>
1440
1441 PR debug/77931
1442 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
1443 sub-chains of BLOCK_VARS and gimple_bind_vars.
1444
1445 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1446
1447 * config/i386/znver1.md : Fix imov/imovx load type reservations.
1448
1449 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1450
1451 * config/sparc/sparc.opt (msubxc): New option.
1452 * doc/invoke.texi (SPARC options): Document it and tidy up.
1453 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
1454 * doc/tm.texi: Regenerate.
1455 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
1456 (CCNZ): ...this.
1457 (CCX_NOOV): Rename into...
1458 (CCXNZ): ...this.
1459 (CCC): New.
1460 (CCXC): Likewise.
1461 * config/sparc/predicates.m (fcc_register_operand): Simplify.
1462 (fcc0_register_operand): Likewise.
1463 (icc_register_operand): New.
1464 (icc_or_fcc_register_operand): Simplify.
1465 (nz_comparison_operator): New.
1466 (c_comparison_operator): Likewise.
1467 (noov_compare_operator): Rename into...
1468 (icc_comparison_operator): ...this. Use above predicates.
1469 (noov_compare64_operator): Rename into...
1470 (v9_comparison_operator): ...this and tidy up.
1471 (fcc_comparison_operator): New.
1472 (icc_or_fcc_comparison_operator): Likewise.
1473 (v9_register_compare_operator): Rename info...
1474 (v9_register_comparison_operator): ...this.
1475 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1476 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
1477 for Niagara-7.
1478 (sparc_fixed_condition_code_regs): New function.
1479 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
1480 renaming and add support for CCC/CCXC.
1481 (output_cbranch): Likewise.
1482 (sparc_print_operand): Likewise.
1483 (gen_v9_scc): Remove obsolete assertion.
1484 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
1485 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
1486 (output_cbcond): Remove bogus handling of CC modes.
1487 (sparc_register_move_cost): Return 100 for NO_REGS.
1488 * config/sparc/sparc.md (W): New mode iterator.
1489 (length): Adjust for noov_compare64_operator renaming.
1490 (cmpsi_sne): New instruction.
1491 (cmpdi_sne): Likewise.
1492 (seqdi_special): Delete.
1493 (seqdi_special): Likewise.
1494 (snesi<P:mode>_special): Likewise.
1495 (snedi_special): Likewise.
1496 (snedi_special_vis3): Likewise.
1497 (snesi patterns): Use W iterator.
1498 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
1499 (sltu patterns): Likewise.
1500 (sgeu patterns): Likewise.
1501 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
1502 (normal_branch): Use icc_comparison_operator predicate.
1503 (inverted_branch): Likewise.
1504 (cbcond_sp32): Use comparison_operator predicate.
1505 (cbcond_sp64): Likewise.
1506 (normal_int_branch_sp64): Adjust for renaming
1507 (inverted_int_branch_sp64): Likewise.
1508 (mov<I:mode>_cc_reg_sp64): Likewise.
1509 (movsf_cc_reg_sp6): Likewise.
1510 (movdf_cc_reg_sp64): Likewise.
1511 (movtf_cc_reg_hq_sp64): Likewise.
1512 (movtf_cc_reg_sp64): Likewise.
1513 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
1514 (movsf_cc_v9): Likewise.
1515 (movdf_cc_v9): Likewise.
1516 (movtf_cc_hq_v9): Likewise.
1517 (movtf_cc_v9): Likewise.
1518 (adddi3): Call gen_adddi3_sp32.
1519 (adddi3_insn_sp32): Rename to...
1520 (adddi3_sp32): ...this. Accept only register_operand as operand #1
1521 and use CCCmode for the carry.
1522 (addx_extend_sp32): Use CCCmode for the carry.
1523 (addx_extend_sp64): Delete.
1524 (adddi3_extend_sp32): Use CCCmode for the carry.
1525 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
1526 (subdi3): Call gen_subdi3_sp32.
1527 (subdi3_insn_sp32): Rename to...
1528 (subdi3_sp32): ...this and use CCmode for the carry.
1529 (subx_extend_sp32): Use CCCmode for the carry.
1530 (subx_extend_sp64): Delete.
1531 (subdi3_extend_sp32): Use CCmode for the carry.
1532 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
1533 (negdi3): Call gen_negdi3_sp32.
1534 (negdi3_sp32): Use CCCmode for the carry.
1535 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
1536 (cmp_nz_ashift_1): Use CCNZ mode.
1537 (cmp_nz_set_ashift_1): Likewise.
1538 (ctrapsi4): Use comparison_operator predicate.
1539 (ctrapdi4): Likewise.
1540 (trapsi_insn): Use icc_comparison_operator predicate.
1541 (trapdi_insn): Likewise.
1542 (edge8 patterns): Use CCNZmode.
1543 (edge16 patterns): Likewise.
1544 (edge32 patterns): Likewise.
1545
1546 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1547
1548 * config/visium/visium-modes.def (CC_NOOV): Rename into...
1549 (CCNZ): ...this.
1550 (CC_BTST): Rename into...
1551 (CCC): ...this.
1552 * config/visium/predicates.md (real_add_operand): New.
1553 (visium_btst_operator): Rename into...
1554 (visium_equality_comparison_operator): ...this.
1555 (visium_noov_operator): Rename into...
1556 (visium_nz_comparison_operator): ...this.
1557 (visium_c_comparison_operator): New.
1558 (visium_branch_operator): Adjust and deal with all CC modes.
1559 * config/visium/visium.c (visium_adjust_cost): Adjust.
1560 (visium_split_double_add): Use the *_set_carry patterns.
1561 (visium_select_cc_mode): Add support for CCC mode and adjust.
1562 (output_cbranch): Adjust and use the carry-based operators for
1563 floating-point comparisons.
1564 * config/visium/visium.md (flags_subst_arith): Adjust.
1565 (addsi3_insn_set_carry): New instruction.
1566 (subsi3_insn_set_carry): Likewise.
1567 (negsi2_insn_set_carry): Likewise.
1568 (btst): Adjust.
1569 (cmp<mode>_sne): Likewise.
1570 (cbranch<mode>4): Use ordered_comparison_operator.
1571 (cbranch<mode>4_insn): Likewise.
1572 (cbranchsi4_btst_insn): Adjust.
1573
1574 2016-10-11 Tom de Vries <tom@codesourcery.com>
1575
1576 PR middle-end/77558
1577 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1578 special-casing.
1579
1580 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1581
1582 * tree.h (build_complex_type): Add second parameter with default.
1583 * tree.c (build_complex_type): Add NAMED second parameter and adjust
1584 recursive call. Create a TYPE_DECL only if NAMED is true.
1585 (build_common_tree_nodes): Pass true in calls to build_complex_type.
1586
1587 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
1588
1589 New avr-passes.def to register AVR specific passes.
1590
1591 * config/avr/avr-passes.def: New file.
1592 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1593 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1594 (make_avr_pass_recompute_note): New proto.
1595 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1596 (avr_pass_recompute_notes): Use anonymous namespace.
1597 (avr_register_passes): Remove function...
1598 (avr_option_override): ...and its call.
1599
1600 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
1601
1602 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1603 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1604 PTF_AVOID_BRANCHLIKELY_SPEED for others.
1605 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1606 flags.
1607 * config/mips/mips.c (mips_option_override): Enable the branch
1608 likely depending on the tune flags and optimization level.
1609 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1610 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1611 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1612 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1613
1614 2016-10-11 Richard Biener <rguenther@suse.de>
1615
1616 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1617 (output_function): Properly stream the whole block tree.
1618 * lto-streamer-in.c (input_function): Likewise.
1619
1620 2016-10-11 Marek Polacek <polacek@redhat.com>
1621
1622 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1623
1624 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1625
1626 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1627 (evrp_dom_walker::before_dom_children): Infer and push new value
1628 ranges for x in y < x.
1629
1630 2016-10-10 Joseph Myers <joseph@codesourcery.com>
1631
1632 PR target/77586
1633 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1634 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1635 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1636 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1637 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1638 (IA64_NO_LIBGCC_TFMODE): Likewise.
1639
1640 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1641
1642 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1643 copying.
1644
1645 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
1646
1647 * config.gcc: Add aarch64-*-freebsd* support.
1648 * config.host: Likewise.
1649 * config/aarch64/aarch64-freebsd.h: New file.
1650 * config/aarch64/t-aarch64-freebsd: Ditto.
1651
1652 2016-10-10 Jeff Law <law@redhat.com>
1653
1654 PR tree-optimization/71947
1655 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1656 B with A within a single statement.
1657
1658 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1659
1660 PR tree-optimization/77824
1661 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1662 zero cost for copies.
1663 (find_candidates_dom_walker::before_dom_children): Replace
1664 MODIFY_EXPR with SSA_NAME.
1665 (replace_mult_candidate): Likewise.
1666 (replace_profitable_candidates): Likewise.
1667
1668 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1669
1670 * config/s390/s390.h: Wrap more macros args in brackets and fix
1671
1672 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
1673
1674 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1675
1676 2016-10-10 Andreas Schwab <schwab@suse.de>
1677
1678 PR target/77738
1679 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1680 pseudo is not DImode.
1681
1682 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
1683
1684 * common/config/arc/arc-common.c (arc_option_optimization_table):
1685 Remove compact casesi option.
1686 * config/arc/arc.c (arc_override_options): Use compact casesi
1687 option only for pre-ARCv2 cores.
1688 * doc/invoke.texi (mcompact-casesi): Update text.
1689
1690 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1691
1692 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1693 Add macro to say we can efficiently handle overlapping unaligned
1694 loads.
1695 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1696 poor code for processors older than p8.
1697
1698 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
1699
1700 * gen-pass-instances.awk: Remove GNUism.
1701
1702 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1703
1704 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1705 NULL of (*ipcp_transformations)][node->uid].
1706
1707 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
1708
1709 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1710 (MALLOC_ABI_ALIGNMENT): Define.
1711
1712 2016-10-09 Jakub Jelinek <jakub@redhat.com>
1713
1714 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1715 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1716 VAR_OR_FUNCTION_DECL_P macros.
1717 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1718 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1719 chkp_find_bounds_1): Likewise.
1720 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1721 * hsa-gen.c (get_symbol_for_decl): Likewise.
1722 * cgraphunit.c (check_global_declaration, analyze_functions,
1723 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1724 Likewise.
1725 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1726 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1727 Likewise.
1728 * tree.c (set_decl_section_name, copy_node_stat,
1729 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1730 merge_dllimport_decl_attributes, handle_dll_attribute,
1731 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1732 verify_type): Likewise.
1733 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1734 find_explicit_erroneous_behavior): Likewise.
1735 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1736 * ipa.c (process_references): Likewise.
1737 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1738 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1739 notice_global_symbol, assemble_variable, mark_decl_referenced,
1740 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1741 make_decl_one_only, default_section_type_flags,
1742 categorize_decl_for_section, default_encode_section_info): Likewise.
1743 * trans-mem.c (requires_barrier): Likewise.
1744 * gimple-expr.c (mark_addressable): Likewise.
1745 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1746 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1747 expand_debug_expr): Likewise.
1748 * tree-dump.c (dequeue_and_dump): Likewise.
1749 * ubsan.c (instrument_bool_enum_load): Likewise.
1750 * tree-pretty-print.c (print_declaration): Likewise.
1751 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1752 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1753 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1754 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1755 pass_build_ssa::execute): Likewise.
1756 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1757 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1758 Likewise.
1759 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1760 Likewise.
1761 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1762 can_be_nonlocal, remap_decls, copy_debug_stmt,
1763 initialize_inlined_parameters, add_local_variables,
1764 reset_debug_binding, replace_locals_op): Likewise.
1765 * dse.c (can_escape): Likewise.
1766 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1767 Likewise.
1768 * tree-diagnostic.c (default_tree_printer): Likewise.
1769 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1770 unpack_ts_decl_with_vis_value_fields,
1771 lto_input_ts_decl_common_tree_pointers): Likewise.
1772 * builtins.c (builtin_save_expr, fold_builtin_expect,
1773 readonly_data_expr): Likewise.
1774 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1775 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1776 Likewise.
1777 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1778 * gimplify.c (force_constant_size, gimplify_bind_expr,
1779 gimplify_decl_expr, gimplify_var_or_parm_decl,
1780 gimplify_compound_lval, gimplify_init_constructor,
1781 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1782 gimplify_type_sizes): Likewise.
1783 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1784 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1785 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1786 remove_unused_locals): Likewise.
1787 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1788 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1789 * function.c (instantiate_expr, instantiate_decls_1,
1790 setjmp_vars_warning, add_local_decl): Likewise.
1791 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1792 Likewise.
1793 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1794 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1795 optimize_va_list_gpr_fpr_size): Likewise.
1796 * tree-nrv.c (pass_nrv::execute): Likewise.
1797 * tsan.c (instrument_expr): Likewise.
1798 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1799 * vtable-verify.c (verify_bb_vtables): Likewise.
1800 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1801 get_ref_base_and_extent): Likewise.
1802 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1803 Likewise.
1804 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1805 analyze_all_variable_accesses): Likewise.
1806 * tree-nested.c (get_nonlocal_debug_decl,
1807 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1808 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1809 get_local_debug_decl, convert_local_omp_clauses,
1810 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1811 Likewise.
1812 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1813 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1814 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1815 dbxout_symbol, dbxout_common_check): Likewise.
1816 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1817 string_constant): Likewise.
1818 * hsa.c (hsa_get_declaration_name): Likewise.
1819 * passes.c (rest_of_decl_compilation): Likewise.
1820 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1821 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1822 pack_ts_decl_with_vis_value_fields,
1823 write_ts_decl_common_tree_pointers): Likewise.
1824 * stor-layout.c (place_field): Likewise.
1825 * symtab.c (symtab_node::maybe_create_reference,
1826 symtab_node::verify_base, symtab_node::make_decl_local,
1827 symtab_node::copy_visibility_from,
1828 symtab_node::can_increase_alignment_p): Likewise.
1829 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1830 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1831 fortran_common, add_location_or_const_value_attribute,
1832 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1833 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1834 optimize_one_addr_into_implicit_ptr,
1835 optimize_location_into_implicit_ptr): Likewise.
1836 * gimple-low.c (record_vars_into): Likewise.
1837 * ipa-visibility.c (update_vtable_references): Likewise.
1838 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1839 Likewise.
1840 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1841 DFS::DFS_write_tree_body, write_symbol): Likewise.
1842 * langhooks.c (lhd_warn_unused_global_decl,
1843 lhd_set_decl_assembler_name): Likewise.
1844 * attribs.c (decl_attributes): Likewise.
1845 * except.c (output_ttype): Likewise.
1846 * varpool.c (varpool_node::get_create, ctor_for_folding,
1847 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1848 * fold-const.c (fold_unary_loc): Likewise.
1849 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1850 ipa_find_agg_cst_from_init): Likewise.
1851 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1852 expand_omp_target, lower_omp_regimplify_p,
1853 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1854 find_link_var_op): Likewise.
1855 * tree-chrec.c (chrec_contains_symbols): Likewise.
1856 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1857 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1858 execute_fixup_cfg): Likewise.
1859
1860 PR tree-optimization/77901
1861 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1862 if ranges[i].exp is SSA_NAME when looking for >= and only when
1863 ranges[i].exp is NULL or SSA_NAME when looking for the other
1864 comparison.
1865
1866 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1867
1868 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1869 (ipcp_param_lattices): Remove field alignment.
1870 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1871 (set_all_contains_variable): Remove call to
1872 ipcp_alignment_lattice::set_to_bottom.
1873 (initialize_node_lattices): Likewise.
1874 (propagate_alignment_accross_jump_function): Remove.
1875 (propagate_constants_accross_call): Remove call to
1876 propagate_alignment_accross_jump_function.
1877 (ipcp_store_alignment_results): Remove.
1878 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1879 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1880 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1881 pretty-printing of alignment jump function.
1882 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1883 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1884 alignments and remove computing ipa_alignment jump function.
1885 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1886 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1887 (ipa_read_jump_function): Remove reading of ipa_alignment.
1888 (write_ipcp_transformation_info): Remove streaming for alignment
1889 propagation summary.
1890 (read_ipcp_transformation_info): Remove reading of alignment
1891 propagation summary.
1892 (ipcp_update_alignments): Remove.
1893 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1894 type.
1895 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1896 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1897 * ipa-prop.h (ipa_alignment): Remove.
1898 (ipa_jump_func): Remove field alignment.
1899 (ipcp_transformation_summary): Remove field alignments.
1900 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1901 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1902 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1903
1904 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1905
1906 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1907
1908 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1909 change.
1910 (visium_expand_fp_cstore): Likewise.
1911
1912 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1913
1914 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1915 * diagnostic.c (warning_at_rich_loc_n): New function.
1916 (diagnostic_n_impl_richloc): Likewise.
1917 (diagnostic_n_impl): Move most of the function to
1918 diagnostic_n_impl_richloc and call it.
1919
1920 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1921
1922 * gen-pass-instances.awk: Rewritten.
1923 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1924 $(PASSES_EXTRA) after passes.def to the script.
1925 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1926 * config/i386/i386-passes.def: New file.
1927 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1928 make_pass_stv): Declare.
1929 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1930 false.
1931 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1932 or !TARGET_64BIT.
1933 (pass_stv::clone, pass_stv::set_pass_param): New methods.
1934 (pass_stv::timode_p): New non-static data member.
1935 (ix86_option_override): Don't register passes here.
1936
1937 * doc/invoke.texi: Document accepting Else, fallthrough.
1938
1939 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1940 style changes.
1941
1942 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1943 FALLTHRU comment styles.
1944
1945 2016-10-07 Andrew Pinski <apinski@cavium.com>
1946
1947 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1948 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1949 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1950 Likewise.
1951 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1952 Likewise.
1953 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1954 Likewise.
1955 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1956 (AARCH64_ARCH): Likewise.
1957 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1958 Likewise.
1959 (AARCH64_CORE): Likewise.
1960 (AARCH64_ARCH): Likewise.
1961 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1962 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1963 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1964 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1965 (AARCH64_ARCH): Likewise.
1966 (AARCH64_CORE): Likewise.
1967 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1968 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1969 (AARCH64_CORE): Likewise.
1970 (AARCH64_ARCH): Likewise.
1971
1972 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1973
1974 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1975 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1976 floating point type infrastructre, and -mfloat128 that enables the
1977 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1978 if -mfloat128-type. Define __ibm128 to be long double by default.
1979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1980 the IEEE 128-bit floating point type infrastructure should
1981 automatically be enabled.
1982 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1983 instead of -mfloat128 to enable KFmode.
1984 (rs6000_option_override_internal): Split the option -mfloat128
1985 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
1986 systems, automatically set -mfloat128-type, but don't enable it on
1987 other operating systems. Move setting the long double size and
1988 IEEE quad support before the IEEE 128-bit floating point changes.
1989 (rs6000_init_builtins): Do not create a unique type for __ibm128
1990 if long double is IBM extended double, instead rely on __ibm128
1991 being defined as 'long double'. If -mfloat128-type and not
1992 -mfloat128, create the KFmode type with an undocumented __ieee128
1993 keyword.
1994 (rs6000_init_libfuncs): Use -mfloat128-type instead of
1995 -mfloat128 for tests about the types, but keep tests for
1996 -mfloat128 to enable the keyword support.
1997 (rs6000_complex_function_value): Likewise.
1998 (rs6000_scalar_mode_supported_p): Likewise.
1999 (rs6000_floatn_mode): Likewise.
2000 (rs6000_c_mode_for_suffix): Likewise.
2001 (rs6000_opt_masks): Add -mfloat128-type.
2002 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
2003 -mfloat128-type being split from -mfloat128. Add
2004 -mfloat128-hardware, which was missing.
2005 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
2006 -mfloat128 and -mfloat128-type:
2007 (-mfloat128-type): Likewise.
2008 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
2009 that 64-bit Linux systems with enable -mfloat128-type by default
2010 on VSX systems.
2011 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
2012 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
2013 -mfloat128-type instead of -mfloat128.
2014 (FLOAT128_2REG_P): Likewise.
2015 (MASK_FLOAT128_TYPE): Likewise.
2016 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2017 (RS6000_BTM_FLOAT128): Likewise.
2018 (TARGET_FLOAT128): Poison old identifiers.
2019 (OPTION_MASK_FLOAT128): Likewise.
2020 (MASK_FLOAT128): Likewise.
2021 * config/rs6000/rs6000.md (FP): Likewise.
2022 (FLOAT128): Likewise.
2023 (fix_trunc<mode>di2): Likewise.
2024 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2025 (floatdi<mode>2): Likewise.
2026 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
2027 (neg<mode>2, FLOAT128 iterator): Likewise.
2028 (abs<mode>2, FLOAT128 iterator): Likewise.
2029 (ieee_128bit_negative_zero): Likewise.
2030 (ieee_128bit_vsx_neg<mode>2): Likewise.
2031 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2032 (ieee_128bit_vsx_abs<mode>2): Likewise.
2033 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2034 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2035 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2036 (extendiftf2): Likewise.
2037 (extendifkf2): Likewise.
2038 (extendtfkf2): Likewise.
2039 (trunciftf2): Likewise.
2040 (truncifkf2): Likewise.
2041 (trunckftf2): Likewise.
2042 (trunctfif2): Likewise.
2043 (extendkftf2): Likewise.
2044 (trunctfkf2): Likewise.
2045
2046 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2047
2048 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
2049 before merging in bytes to pass down to real_from_target.
2050
2051 2016-10-07 Richard Biener <rguenther@suse.de>
2052
2053 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
2054 required hack.
2055 (substitute_and_fold_dom_walker::before_dom_children):
2056 Substitute and fold before pass specific folding to avoid
2057 feeding that with SSA names that will be later released.
2058 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
2059 introduced by folding and visited by evaluate_stmt called during
2060 ccp_fold_stmt.
2061 (likely_value): Likewise.
2062 (evaluate_stmt): Likewise.
2063 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
2064 (simplify_div_or_mod_using_ranges): Likewise.
2065 (simplify_min_or_max_using_ranges): Likewise.
2066 (simplify_abs_using_ranges): Likewise.
2067 (simplify_conversion_using_ranges): Likewise.
2068 (simplify_float_conversion_using_ranges): Likewise.
2069 (simplify_stmt_using_ranges): Likewise.
2070
2071 2016-10-07 Marek Polacek <polacek@redhat.com>
2072
2073 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
2074 FALLTHROUGH_LABEL_P here...
2075 (warn_implicit_fallthrough_r): ...not here.
2076
2077 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
2078
2079 PR tree-optimization/77880
2080 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
2081 necessary.
2082
2083 2016-10-07 Marek Polacek <polacek@redhat.com>
2084
2085 PR c++/77803
2086 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
2087
2088 2016-10-07 Richard Biener <rguenther@suse.de>
2089
2090 * bitmap.h: Document constraints on bitmap modification while
2091 iterating over it.
2092
2093 2016-10-07 Richard Biener <rguenther@suse.de>
2094
2095 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
2096 * bitmap.h (bmp_iter_set): When advancing to the next element
2097 check that we didn't remove the current one.
2098 (bmp_iter_and): Likewise.
2099 (bmp_iter_and_compl): Likewise.
2100 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
2101 we currently iterate on but keep a one-level queue.
2102 * sched-deps.c (remove_from_deps): Do not clear current bit
2103 but keep a one-level queue.
2104
2105 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR tree-optimization/77664
2108 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
2109 for the other ranges.
2110 (optimize_range_tests_diff): Fix up formatting.
2111 (optimize_range_tests_var_bound): New function.
2112 (optimize_range_tests): Use it.
2113
2114 2016-10-07 Martin Liska <mliska@suse.cz>
2115
2116 * coverage.c (build_gcov_exit_decl): Fix priority what
2117 should be really 99.
2118
2119 2016-10-07 Richard Biener <rguenther@suse.de>
2120
2121 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
2122 vars in gimple_bind_vars but not in BLOCK_VARS.
2123
2124 2016-10-07 Richard Biener <rguenther@suse.de>
2125
2126 PR tree-optimization/77879
2127 * tree-ssa-structalias.c (handle_const_call): Properly handle
2128 NRV return slots.
2129 (handle_pure_call): Likewise.
2130
2131 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2132
2133 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
2134 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
2135 possible overflow.
2136
2137 2016-10-06 Andrew Pinski <apinski@cavium.com>
2138
2139 * config/aarch64/aarch64-cores.def: Add a comment before each
2140 set of cores.
2141
2142 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2143
2144 PR tree-optimization/77862
2145 * tree-vrp.c (add_equivalence): Use get_value_range so that
2146 num_vr_values is checked before accessing vr_values.
2147
2148 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2149
2150 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2151 POINTER_TYPE_P.
2152
2153 2016-10-05 Jeff Law <law@redhat.com>
2154
2155 PR tree-optimization/71661
2156 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
2157 removal of a forwarder exposes a new natural loop.
2158
2159 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
2160
2161 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
2162 Introduce ssesuffix variable.
2163 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2164 (*<code><mode>3): Ditto.
2165
2166 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
2167
2168 * postreload.c (reload_cse_simplify): Skip also USE when detecting
2169 noop move.
2170
2171 2016-10-06 Richard Biener <rguenther@suse.de>
2172
2173 PR tree-optimization/77855
2174 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2175 instead of removing the current item while iterating over the set
2176 which is not safe.
2177
2178 2016-10-06 James Clarke <jrtc27@jrtc27.com>
2179 Eric Botcazou <ebotcazou@adacore.com>
2180
2181 PR target/77759
2182 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
2183 (classify_registers): Don't set it
2184 (function_arg_slotno): Don't initialize and test it. Tidy up.
2185
2186 2016-10-06 Richard Biener <rguenther@suse.de>
2187
2188 PR tree-optimization/77839
2189 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
2190 lattice transition.
2191
2192 2016-10-06 Martin Liska <mliska@suse.cz>
2193
2194 * gcc.c: Set -fprofile-update=atomic when profiling is
2195 enabled and -pthread is set. Warn when one combines
2196 -pthread and -fprofile-update=single for an app using
2197 profiling code.
2198
2199 2016-10-06 Martin Liska <mliska@suse.cz>
2200
2201 PR bootstrap/77788
2202 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
2203 * gimple-ssa-strength-reduction.c (slsr_process_cast):
2204 Initialize a pointer to NULL.
2205 (slsr_process_copy): Likewise.
2206 * input.c (location_get_source_line): Likewise.
2207 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2208
2209 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
2210
2211 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2212 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
2213 (ix86_handle_option): Deleted handle of OPT_mpcommit.
2214 * config.gcc: Deleted pcommitintrin.h
2215 * config/i386/pcommitintrin.h: Deleted file.
2216 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
2217 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
2218 detection.
2219 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
2220 __PCOMMIT__.
2221 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
2222 (PTA_PCOMMIT): Deleted define.
2223 (ix86_option_override_internal): Deleted handle of option.
2224 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
2225 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
2226 __builtin_ia32_pcommit): Deleted.
2227 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
2228 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
2229 (pcommit): Deleted instruction.
2230 * config/i386/i386.opt: Mention -mpcommit deprecation.
2231 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
2232
2233 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
2234
2235 PR target/77874
2236 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
2237 Remove wrong assert.
2238 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
2239 Use <round_constraint> as operand 1 constraint.
2240
2241 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2242
2243 PR sanitizer/66343
2244 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
2245 (ubsan_instrument_float_cast): And not here.
2246
2247 PR sanitizer/66343
2248 * ubsan.c (ubsan_ids): New GTY(()) array.
2249 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
2250 instead of static local counters.
2251
2252 2016-10-05 Martin Sebor <msebor@redhat.com>
2253
2254 PR bootstrap/77819
2255 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
2256 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
2257 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
2258 (default_printf_pointer_format): Define function.
2259 * targhooks.c (linux_printf_pointer_format): Define new function.
2260 * targhooks.h (linux_printf_pointer_format): Declare.
2261 (gnu_libc_printf_pointer_format): Remove declaration.
2262
2263 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2264
2265 * fold-const.c (native_encode_real): Fix logic for selecting offset
2266 to write to when BYTES_BIG_ENDIAN.
2267
2268 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
2269
2270 * builtins.c (fold_builtin_strchr): Remove function.
2271 (fold_builtin_strrchr): Likewise.
2272 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
2273 * gimple-fold.c (target_char_cst_p): New function.
2274 (gimple_fold_builtin_strchr) Add more foldings.
2275 (gimple_fold_builtin): Add index, strrchr, rindex cases.
2276
2277 2016-10-05 Richard Biener <rguenther@suse.de>
2278
2279 PR middle-end/77863
2280 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
2281 capture ids in c-exprs.
2282
2283 2016-10-05 Richard Biener <rguenther@suse.de>
2284
2285 PR middle-end/77826
2286 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
2287 with types_match for GIMPLE code gen to handle type mismatched
2288 constants properly.
2289 (dt_operand::gen): Adjust.
2290 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
2291 and constant A.
2292
2293 2016-10-05 Richard Biener <rguenther@suse.de>
2294
2295 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
2296
2297 2016-10-05 Richard Biener <rguenther@suse.de>
2298
2299 PR middle-end/77842
2300 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
2301
2302 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
2303
2304 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
2305 version check to protect only DW_TAG_imported_module generation.
2306
2307 2016-10-05 Richard Biener <rguenther@suse.de>
2308
2309 PR middle-end/55152
2310 * match.pd (min(a,-a) -> -abs(a)): New pattern.
2311
2312 2016-10-04 Ian Lance Taylor <iant@golang.org>
2313
2314 * explow.c (allocate_dynamic_stack_space): Call
2315 do_pending_stack_adjust before handling flag_split_stack.
2316
2317 2016-10-04 David Malcolm <dmalcolm@redhat.com>
2318
2319 * genattrtab.c (make_internal_attr): Supply dummy column number to
2320 file_location ctor.
2321 (main): Likewise.
2322 * genoutput.c (init_insn_for_nothing): Likewise.
2323 * gensupport.c (add_define_attr): Likewise.
2324 * read-md.c (message_at_1): Print column number.
2325 (fatal_with_file_and_line): Likewise.
2326 (rtx_reader::read_char): Track column numbers.
2327 (rtx_reader::unread_char): Likewise.
2328 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
2329 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
2330 (rtx_reader::handle_file): Initialize m_read_md_colno.
2331 (rtx_reader::get_current_location): Supply column number to
2332 file_location ctor.
2333 * read-md.h (struct file_location): Add field "colno".
2334 (file_location::file_location): Likewise.
2335 (rtx_reader::get_colno): New accessor.
2336 (rtx_reader::m_read_md_colno): New field.
2337 (rtx_reader::m_last_line_colno): New field.
2338
2339 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2340
2341 * doc/extend.texi (Java Exceptions): Remove.
2342 (java_interface): Remove.
2343
2344 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
2345
2346 PR tree-optimization/77808
2347 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
2348 and addr are different before copying points-to information.
2349
2350 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
2351
2352 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
2353 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
2354 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
2355 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
2356
2357 2016-10-04 Richard Biener <rguenther@suse.de>
2358
2359 PR tree-optimization/77399
2360 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
2361 verify the target can convert.
2362
2363 2016-10-04 Richard Biener <rguenther@suse.de>
2364
2365 PR middle-end/77833
2366 * explow.c (plus_constant): Verify the mode of the constant
2367 pool offset before calling plus_constant.
2368
2369 2016-10-04 Richard Biener <rguenther@suse.de>
2370
2371 PR middle-end/77407
2372 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
2373 type support, mark with :C.
2374 (X / -X -> -1): Mark with :C.
2375
2376 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2377
2378 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
2379 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
2380 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
2381 * doc/tm.texi: Regenerated.
2382 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
2383 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
2384 * config/darwin.h (JCR_SECTION_NAME): Remove.
2385 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
2386 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
2387 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
2388 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
2389 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
2390 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
2391
2392 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2393
2394 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
2395 between "because" and "param" in dump message in call to fprintf.
2396
2397 2016-10-03 Jeff Law <law@redhat.com>
2398
2399 PR tree-optimization/71550
2400 PR tree-optimization/71403
2401 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
2402 (profitable_jump_thread_path): Also return boolean indicating if
2403 the realized path will create an irreducible loop.
2404 Remove loop depth tests from 71403.
2405 (fsm_find_control_statement_thread_paths): Remove loop depth tests
2406 from 71403. If threading will create an irreducible loop, then
2407 throw away loop iteration and related information.
2408
2409 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
2410
2411 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
2412 -Woverloaded-virtual checks for warning options.
2413 * configure: Regenerate.
2414
2415 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2416
2417 PR preprocessor/77699
2418 * input.c (maybe_grow): Don't allocate one byte extra headroom.
2419 (get_next_line): Return false on error.
2420 (read_next_line): Removed, use get_next_line instead.
2421 (read_line_num): Don't copy the line.
2422 (location_get_source_line): Don't use static data.
2423 (selftest::test_reading_source_line): Add more test cases.
2424
2425 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2426
2427 Revert
2428 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2429
2430 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2431 (noce_process_if_block): Use it.
2432
2433 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2434
2435 * doc/invoke.texi: Update -Wint-in-bool-context.
2436
2437 2016-10-02 Jakub Jelinek <jakub@redhat.com>
2438
2439 * dwarf2out.c (output_fde, output_call_frame_info,
2440 dwarf2out_do_cfi_startproc, set_indirect_string,
2441 gen_internal_sym, output_die, output_line_info): Use
2442 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
2443 ASM_GENERATE_INTERNAL_LABEL output.
2444
2445 2016-10-01 Richard Biener <rguenther@suse.de>
2446
2447 PR middle-end/77798
2448 * genmatch.c (get_operand_type): Add operand position arg
2449 and handle COND_EXPR comparison operand with fixed boolean_type_node.
2450 (expr::gen_transform): Adjust.
2451 (dt_simplify::gen_1): Likewise.
2452
2453 2016-10-01 Jakub Jelinek <jakub@redhat.com>
2454
2455 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
2456 comments. Simplify asserts, remove unnecessary conditions.
2457 Formatting fixes.
2458 (*<code><mode>3): Likewise.
2459
2460 2016-09-30 Jakub Jelinek <jakub@redhat.com>
2461
2462 * doc/invoke.texi (-Wregister): Document.
2463
2464 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2465
2466 * configure.ac: Split CHECKING_P into CHECKING_P and
2467 ENABLE_EXTRA_CHECKING.
2468 * configure: Regenerated.
2469 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
2470 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
2471
2472 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
2473
2474 PR other/31566
2475 * gcc.c (process_command): For @filename handling, output
2476 the correct name if the file does not exist.
2477
2478 2016-09-30 Marek Polacek <polacek@redhat.com>
2479
2480 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
2481 * config/alpha/predicates.md: Likewise.
2482
2483 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2484
2485 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2486 (noce_process_if_block): Use it.
2487
2488 2016-09-30 Martin Liska <mliska@suse.cz>
2489
2490 * doc/invoke.texi: Document asan-use-after-return that
2491 it's disabled by default in runtime.
2492
2493 2016-09-30 Richard Biener <rguenther@suse.de>
2494
2495 * tree-vrp.c (intersect_ranges): If we failed to handle
2496 the intersection choose a constant singleton range if available.
2497
2498 2016-09-30 Richard Biener <rguenther@suse.de>
2499
2500 PR tree-optimization/77399
2501 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2502 float <-> int conversions.
2503
2504 2016-09-30 Alan Modra <amodra@gmail.com>
2505
2506 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
2507
2508 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2509
2510 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
2511 ext_level before calling CPUID with 0x80000008.
2512 Simplify xgetbv checks.
2513
2514 2016-09-29 David Malcolm <dmalcolm@redhat.com>
2515
2516 * Makefile.in (OBJS): Add print-rtl-function.o.
2517 * print-rtl-function.c: New file.
2518 * print-rtl.h (print_rtx_function): New decl.
2519
2520 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2521
2522 PR target/77756
2523 * config/i386/cpuid.h (__get_cpuid_count): New.
2524 (__get_cpuid): Rename __level to __leaf.
2525
2526 2016-09-29 Marek Polacek <polacek@redhat.com>
2527
2528 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
2529
2530 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
2531
2532 * builtins.c (expand_builtin_memcmp): don't swap args unless
2533 result is only being compared with zero.
2534
2535 2016-09-29 Marek Polacek <polacek@redhat.com>
2536
2537 * dwarf2out.c (loc_descriptor): Add fall through comment.
2538 (add_const_value_attribute): Likewise.
2539
2540 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
2541
2542 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
2543 with "v6t2". Move "arch" attribute above "pool_range".
2544 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
2545 with "v6t2".
2546 (*thumb2_movhi_vfp): Likewise.
2547 (*arm_movhi_fp16): Likewise.
2548 (*thumb2_movhi_fp16): Likewise.
2549 (*arm_movsi_vfp): Remove "arch" attribute.
2550 (*thumb2_movsi_vfp): Likewise.
2551
2552 2016-09-29 Martin Liska <mliska@suse.cz>
2553
2554 * doc/extend.texi: Remove limitation of Objective C for
2555 __attribute__((constructor)) and __attribute__((destructor)).
2556
2557 2016-09-29 Richard Biener <rguenther@suse.de>
2558
2559 PR tree-optimization/77768
2560 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2561 Handle stores to readonly memory when removing redundant stores.
2562
2563 2016-09-29 Richard Biener <rguenther@suse.de>
2564
2565 PR middle-end/77407
2566 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
2567 X / -X -> -1 simplifications.
2568
2569 2016-09-29 Richard Biener <rguenther@suse.de>
2570
2571 PR middle-end/55152
2572 * match.pd: Add max(a,-a) -> abs(a) pattern.
2573 * tree-ssa-phiopt.c (minmax_replacement): Disable for
2574 HONOR_SIGNED_ZEROS types.
2575
2576 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2577
2578 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
2579 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
2580
2581 2016-09-29 Richard Biener <rguenther@suse.de>
2582
2583 * tree-vrp.c (set_defs_to_varying): New helper avoiding
2584 writing to vr_const_varying.
2585 (vrp_initialize): Call it.
2586 (vrp_visit_stmt): Likewise.
2587 (evrp_dom_walker::before_dom_children): Likewise.
2588
2589 2016-09-29 Richard Biener <rguenther@suse.de>
2590
2591 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2592 constructors with vector elements.
2593
2594 2016-09-29 Richard Biener <rguenther@suse.de>
2595
2596 PR tree-optimization/77768
2597 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2598 with stores to a place we know has a constant value.
2599
2600 2016-09-29 Alan Modra <amodra@gmail.com>
2601
2602 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2603 * doc/invoke.texi: Document it.
2604 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2605 (rs6000_passes_float): Comment.
2606 (rs6000_passes_long_double): New static var.
2607 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2608 (init_cumulative_args): Set up to emit fp .gnu_attribute for
2609 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
2610 to include fp values returned in vectors.
2611 Set rs6000_passes_long_double.
2612 (rs6000_function_arg_advance_1): Likewise for function args.
2613 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2614 and SPE. Emit long double tag value too.
2615 (rs6000_opt_vars): Add gnu-attr.
2616 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2617 * configure: Regenerate.
2618 * config.in: Regenerate.
2619
2620 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2621
2622 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2623 of 0 < x.
2624 (format_floating, format_string, format_directive,
2625 get_destination_size, pass_sprintf_length::handle_gimple_call):
2626 Likewise.
2627
2628 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2629
2630 * gimple-ssa-sprintf.c: Fix comment formatting.
2631 (format_integer): Use is_gimple_assign.
2632 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2633 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
2634 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
2635 (pass_sprintf_length::execute): Use is_gimple_call.
2636
2637 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2638
2639 * gimple-fold.c (gimple_fold_builtin): After failing to fold
2640 strchr, also try the generic folding.
2641
2642 2016-09-28 Martin Sebor <msebor@redhat.com>
2643
2644 PR c/77762
2645 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2646 Fix typos.
2647
2648 2016-09-28 Martin Sebor <msebor@redhat.com>
2649
2650 PR middle-end/77683
2651 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2652 length modifier is not expected.
2653 (format_floating): Ignore l length modifier and fail gracefuly
2654 when it isn't one of the other expected ones.
2655
2656 2016-09-28 Martin Sebor <msebor@redhat.com>
2657
2658 PR bootstrap/77753
2659 * varasm.c (assemble_addr_to_section): Increase local buffer size.
2660
2661 2016-09-27 Richard Biener <rguenther@suse.de>
2662
2663 * dwarf2out.c (cu_die_list): New global.
2664 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
2665 main_comp_unit_die to cu_die_list if we created it.
2666 Move break_out_includes ...
2667 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
2668 the cu_die_list.
2669
2670 2016-09-28 Richard Biener <rguenther@suse.de>
2671
2672 * dwarf2out.c (struct die_struct): Add removed flag.
2673 (lookup_type_die): If the DIE is marked as removed, clear
2674 TYPE_SYMTAB_DIE and return NULL.
2675 (lookup_decl_die): If the DIE is marked as removed, remove it
2676 from the hash and return NULL.
2677 (mark_removed): New helper.
2678 (prune_unused_types_prune): Call it for removed DIEs.
2679 (gen_subprogram_die): Move the premark_used_types call to after
2680 DIEs for the functions scopes are generated.
2681 (process_scope_var): Do not re-create pruned types or type decls.
2682 Make sure to also re-parent type decls.
2683 (dwarf2out_finish): Move unused type pruning and debug_types
2684 handling ...
2685 (dwarf2out_early_finish): ... here.
2686
2687 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2688
2689 * config/arc/arc-c.c: New file.
2690 * config/arc/arc-c.def: Likewise.
2691 * config/arc/t-arc: Likewise.
2692 * config.gcc: Include arc-c.o as c and cpp object.
2693 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2694 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2695 arc_cpu_cpp_builtins.
2696
2697 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2698
2699 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2700 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2701
2702 2016-09-28 Nathan Sidwell <nathan@acm.org>
2703
2704 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2705 printing.
2706
2707 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2708
2709 PR tree-optimization/61056
2710 * gimple-fold.c (gimple_fold_builtin_strchr):
2711 New function to optimize strchr (s, 0) to strlen.
2712 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2713
2714 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
2715
2716 PR tree-optimization/77724
2717 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2718 Add tree_fits_shwi_p check.
2719
2720 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2721
2722 * auto-inc-dec.c (try_merge): Remove break after return.
2723 * cselib.c (autoinc_split): Likewise.
2724 * explow.c (promote_mode): Likewise.
2725 * fixed-value.c (fixed_arithmetic): Likewise.
2726 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2727 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2728 * trans-mem.c (get_attrs_for): Likewise.
2729 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2730 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2731 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2732 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2733 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2734 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2735 * config/cris/cris.c (cris_op_str): Likewise.
2736 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2737 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2738
2739 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2740
2741 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2742 IFN_GOACC_REDUCTION_CODES): New.
2743 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2744 ifn_goacc_reduction_kind): Use them.
2745 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2746 of internal functions, when applicable.
2747
2748 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2749
2750 * config/mips/constraints.md (d): Fix documentation.
2751 * doc/md.texi (Machine Constraints): Update accordingly.
2752
2753 2016-09-27 Richard Biener <rguenther@suse.de>
2754
2755 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2756 cur_line_info_table initialization ...
2757 (dwarf2out_assembly_start): ... here.
2758
2759 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2760
2761 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2762 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2763 (*thumb2_movhi_vfp): Likewise.
2764 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2765 template. Expand predicable attribute to mark VMOV.F16 as not
2766 predicable. Add "arch" attribute.
2767 (*thumb2_movhi_fp16): Likewise.
2768 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2769 (*thumb2_movsi_vfp): Add "arch" attribute.
2770
2771 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2772
2773 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2774 VAR_DECL string.
2775
2776 2016-09-27 Marek Polacek <polacek@redhat.com>
2777
2778 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2779 comment.
2780
2781 * config/c6x/c6x.h: Adjust fall through comment.
2782 * config/sh/sh.c (final_prescan_insn): Likewise.
2783 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2784 (visium_expand_fp_cstore): Likewise.
2785
2786 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2787
2788 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2789 expected by -Wimplicit-fallthrough.
2790 (thumb1_size_rtx_costs): Likewise.
2791 (thumb2_reorg): Likewise.
2792 (tls_mentioned_p): Add "Fall through" comment.
2793 (thumb2_reorg): Likewise.
2794 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2795 comment form expected by -Wimplicit-fallthrough.
2796
2797 2016-09-27 Martin Liska <mliska@suse.cz>
2798
2799 PR gcov-profile/46266
2800 * input.h (RESERVED_LOCATION_P): New macro.
2801 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2802 instread of comparison with UNKNOWN_LOCATION.
2803
2804 2016-09-27 Richard Biener <rguenther@suse.de>
2805
2806 PR tree-optimization/77745
2807 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2808 When removing redundant stores make sure to check compatibility
2809 of the TBAA state for downstream accesses.
2810 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2811 value-numbering virtual operands for store matches.
2812
2813 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2814
2815 PR target/51244
2816 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2817 movrt patterns. Match them before anything else in the SET case.
2818
2819 2016-09-27 Martin Liska <mliska@suse.cz>
2820
2821 PR gcov-profile/7970
2822 PR gcov-profile/16855
2823 PR gcov-profile/44779
2824 * coverage.c (build_gcov_exit_decl): New function.
2825 (coverage_obj_init): Call the function and generate __gcov_exit
2826 destructor.
2827 * doc/gcov.texi: Document when __gcov_exit function is called.
2828
2829 2016-09-27 Marek Polacek <polacek@redhat.com>
2830
2831 PR bootstrap/77751
2832 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2833 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2834 -Wno-error instead of -Wno-implicit-fallthrough.
2835
2836 2016-09-27 Martin Liska <mliska@suse.cz>
2837
2838 PR bootstrap/77749
2839 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2840
2841 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2842
2843 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2844 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2845 comments. Remove break after return.
2846 (ix86_fp_compare_code_to_integer, has_dispatch,
2847 ix86_simd_clone_usable): Remove break after return.
2848
2849 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2850
2851 PR rlt-optimization/77714
2852 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2853 REG_EQUAL note.
2854
2855 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2856
2857 PR ipa/77677
2858 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2859 extract_range_from_unary_expr to convert value_range.
2860 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2861 (extract_range_from_unary_expr): This.
2862 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2863
2864 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2865
2866 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2867
2868 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2869
2870 * config/i386/i386.c (ix86_print_operand)
2871 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2872 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2873 (epilogue_renumber): Likewise.
2874
2875 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2876
2877 PR middle-end/77719
2878 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2879 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2880
2881 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2882
2883 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2884 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2885 is_mm_seq_cst, is_mm_sync): Move to ...
2886 * memmodel.h: This. New file.
2887 * builtins.c: Include memmodel.h.
2888 * optabs.c: Likewise.
2889 * tsan.c: Likewise.
2890 * config/aarch64/aarch64.c: Likewise.
2891 * config/alpha/alpha.c: Likewise.
2892 * config/arm/arm.c: Likewise.
2893 * config/i386/i386.c: Likewise.
2894 * config/ia64/ia64.c: Likewise.
2895 * config/mips/mips.c: Likewise.
2896 * config/rs6000/rs6000.c: Likewise.
2897 * config/sparc/sparc.c: Likewise.
2898 * genconditions.c: Include memmodel.h in generated file.
2899 * genemit.c: Likewise.
2900 * genoutput.c: Likewise.
2901 * genpeep.c: Likewise.
2902 * genpreds.c: Likewise.
2903 * genrecog.c: Likewise.
2904
2905 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2906
2907 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2908 "c" instead when parsing characters. Move operand parsing into...
2909 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2910 and tightening the scope of various locals.
2911
2912 2016-09-26 Liu Hao <lh_mouse@126.com>
2913
2914 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2915
2916 2016-09-26 Marek Polacek <polacek@redhat.com>
2917
2918 * system.h: Use __has_attribute to check whether the fallthrough
2919 attribute is supported.
2920
2921 2016-09-26 Marek Polacek <polacek@redhat.com>
2922
2923 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2924 gimple_call_internal_p.
2925 * ipa-split.c (find_return_bb): Likewise.
2926 (execute_split_functions): Likewise.
2927 * omp-low.c (dump_oacc_loop_part): Likewise.
2928 (oacc_loop_xform_head_tail): Likewise.
2929 * predict.c (predict_loops): Likewise.
2930 * sanopt.c (pass_sanopt::execute): Likewise.
2931 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2932 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2933 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2934 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2935 (expand_ifn_va_arg): Likewise.
2936 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2937 (optimize_mask_stores): Likewise.
2938 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2939 (vect_transform_stmt): Likewise.
2940 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2941 * tsan.c (instrument_memory_accesses): Likewise.
2942
2943 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2944 Alexander Monakov <amonakov@ispras.ru>
2945
2946 * regrename.c (rename_chains): Check
2947 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2948 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2949 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2950
2951 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2952
2953 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2954 (s390_sched_score): Likewise.
2955
2956 2016-09-26 Martin Liska <mliska@suse.cz>
2957
2958 * doc/gcov.texi: Update program output of gcov tool.
2959
2960 2016-09-26 Martin Liska <mliska@suse.cz>
2961
2962 PR gcov-profile/23332
2963 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2964 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2965 * value-prof.c (dump_histogram_value): Do not handle
2966 HIST_TYPE_CONST_DELTA.
2967 (stream_in_histogram_value): Likewise.
2968 (gimple_find_values_to_profile): Likewise.
2969 * value-prof.h (enum hist_type): Likewise.
2970
2971 2016-09-26 Martin Liska <mliska@suse.cz>
2972
2973 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2974 from default sanitize recover values.
2975 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2976 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2977 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2978 consistent.
2979 * opts.c (finish_options): Do a generic loop over options
2980 that can be recovered.
2981 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2982 SANITIZE_RETURN.
2983 (common_handle_option): Likewise.
2984 * opts.h: Declare can_recover to sanitizer_opts_s.
2985
2986 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
2987
2988 * target.def(elf_flags_numeric): Change documentation to present tense.
2989 * doc/tm.texi: Regenerate.
2990
2991 2016-09-26 Marek Polacek <polacek@redhat.com>
2992
2993 PR c/7652
2994 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2995 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
2996 -Wno-switch-fallthrough.
2997 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
2998 (expand_builtin): Likewise.
2999 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
3000 * convert.c (convert_to_real_1): Likewise.
3001 (convert_to_integer_1): Likewise.
3002 * final.c (output_alternate_entry_point): Likewise.
3003 * genattrtab.c (make_canonical): Likewise.
3004 (write_test_expr): Likewise.
3005 * genpreds.c (validate_exp): Likewise.
3006 * gimple-ssa-strength-reduction.c
3007 (find_candidates_dom_walker::before_dom_children): Likewise.
3008 * godump.c (go_format_type): Likewise.
3009 * reload1.c (elimination_effects): Likewise.
3010 * resource.c (mark_referenced_resources): Likewise.
3011 (mark_set_resources): Likewise.
3012 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
3013 * varasm.c (output_addressed_constants): Likewise.
3014
3015 2016-09-26 Marek Polacek <polacek@redhat.com>
3016
3017 PR c/7652
3018 * common.opt (Wimplicit-fallthrough): New option.
3019 * doc/extend.texi: Document statement attributes and the fallthrough
3020 attribute.
3021 * doc/invoke.texi: Document -Wimplicit-fallthrough.
3022 * gimple.h (gimple_call_internal_p): New function.
3023 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
3024 (struct label_entry): New struct.
3025 (find_label_entry): New function.
3026 (case_label_p): New function.
3027 (collect_fallthrough_labels): New function.
3028 (last_stmt_in_scope): New function.
3029 (should_warn_for_implicit_fallthrough): New function.
3030 (warn_implicit_fallthrough_r): New function.
3031 (maybe_warn_implicit_fallthrough): New function.
3032 (expand_FALLTHROUGH_r): New function.
3033 (expand_FALLTHROUGH): New function.
3034 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
3035 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
3036 (gimplify_label_expr): New function.
3037 (gimplify_case_label_expr): Set location.
3038 (gimplify_expr): Call gimplify_label_expr.
3039 * internal-fn.c (expand_FALLTHROUGH): New function.
3040 * internal-fn.def (FALLTHROUGH): New internal function.
3041 * langhooks.c (lang_GNU_OBJC): New function.
3042 * langhooks.h (lang_GNU_OBJC): Declare.
3043 * system.h (gcc_fallthrough): Define.
3044 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
3045 * tree.h (FALLTHROUGH_LABEL_P): Define.
3046
3047 2016-09-26 Richard Biener <rguenther@suse.de>
3048
3049 * dwarf2out.c (stripattributes): Remove unused function.
3050 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
3051 Push dwarf_split_debug_info handling into init_sections_and_labels.
3052 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
3053 (DEBUG_MACRO_SECTION_FLAGS): Remove.
3054 (debug_macinfo_section_name): New global.
3055 (output_macinfo): Use debug_macinfo_section_name.
3056 (init_sections_and_labels): Split out section and label generation
3057 from dwarf2out_init. Set debug_macinfo_section_name.
3058 (dwarf2out_init): Move text section label generation and emission
3059 to ...
3060 (dwarf2out_assembly_start): ... here.
3061 (dwarf2out_finish): Call init_sections_and_labels before DWARF
3062 output starts.
3063
3064 2016-09-26 Richard Biener <rguenther@suse.de>
3065
3066 PR debug/77692
3067 * cgraphunit.c (analyze_functions): Before early removing
3068 global vars calls the late_global_decl debug handler mark
3069 the variable as readonly.
3070
3071 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3072
3073 PR target/51244
3074 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
3075 (sh_rtx_costs): Handle SET of movt and movrt patterns.
3076 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
3077 declare new overloads.
3078 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
3079 operand.
3080
3081 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3082
3083 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
3084 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
3085
3086 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3087
3088 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3089 * configure: Regenerate.
3090
3091 2016-09-24 Marek Polacek <polacek@redhat.com>
3092
3093 PR c/77490
3094 * doc/invoke.texi: Document -Wbool-operation.
3095
3096 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3097
3098 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
3099 * config/rs6000/rs6000.c (expand_block_compare): New function used by
3100 cmpmemsi pattern to do builtin expansion of memcmp ().
3101 (compute_current_alignment): Add helper function for
3102 expand_block_compare used to compute alignment as the compare proceeds.
3103 (select_block_compare_mode): Used by expand_block_compare to select
3104 the mode used for reading the next chunk of bytes in the compare.
3105 (do_load_for_compare): Used by expand_block_compare to emit the load
3106 insns for the compare.
3107 (rs6000_emit_dot_insn): Moved this function to avoid a forward
3108 reference from expand_block_compare ().
3109 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
3110 prototype for this function.
3111 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
3112 target option for controlling how much code inline expansion of
3113 memcmp() will be allowed to generate.
3114
3115 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3116
3117 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
3118 hook_bool_mode_false, hook_bool_mode_true,
3119 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3120 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3121 hook_bool_const_rtx_insn_const_rtx_insn_true,
3122 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
3123 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
3124 hook_bool_const_tree_hwi_hwi_const_tree_false,
3125 hook_bool_const_tree_hwi_hwi_const_tree_true,
3126 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
3127 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3128 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
3129 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
3130 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
3131 hook_bool_const_tree_true, hook_bool_tree_tree_false,
3132 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
3133 hook_bool_rtx_insn_true, hook_bool_rtx_false,
3134 hook_bool_uintp_uintp_false,
3135 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
3136 hook_rtx_tree_int_null, hook_uint_mode_0,
3137 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
3138 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
3139 hook_constcharptr_const_rtx_insn_null,
3140 hook_constcharptr_const_tree_const_tree_null,
3141 hook_constcharptr_int_const_tree_null,
3142 hook_constcharptr_int_const_tree_const_tree_null,
3143 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
3144 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
3145 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
3146
3147 * vec.h (vNULL): Extend comment to say = vNULL initialization
3148 isn't needed for static vars.
3149
3150 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
3151 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
3152 = vNULL initialization of file scope vec.
3153 * passes.c (pass_tab, enabled_pass_uid_range_tab,
3154 disabled_pass_uid_range_tab): Likewise.
3155 * haifa-sched.c (sched_luids, h_i_d): Likewise.
3156 * tree-chkp-opt.c (check_infos): Likewise.
3157 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
3158
3159 * vec.h (vnull::operator vec): Add constexpr keyword for
3160 C++11 and later.
3161
3162 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
3163
3164 PR tree-optimization/77654
3165 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
3166 to duplicate_ssa_name_ptr_info.
3167
3168 2016-09-23 David Malcolm <dmalcolm@redhat.com>
3169
3170 PR preprocessor/77672
3171 * input.c (selftest::test_lexer_string_locations_simple): Update
3172 test to expect location information of the terminator character
3173 at the location of the final closing quote.
3174 (selftest::test_lexer_string_locations_hex): Likewise.
3175 (selftest::test_lexer_string_locations_oct): Likewise.
3176 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
3177 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
3178 (selftest::test_lexer_string_locations_ucn4): Likewise.
3179 (selftest::test_lexer_string_locations_ucn8): Likewise.
3180 (selftest::test_lexer_string_locations_u8): Likewise.
3181 (selftest::test_lexer_string_locations_utf8_source): Likewise.
3182 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
3183 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
3184 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
3185 (selftest::test_lexer_string_locations_macro): Likewise.
3186 (selftest::test_lexer_string_locations_long_line): Likewise.
3187
3188 2016-09-23 Richard Biener <rguenther@suse.de>
3189
3190 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
3191 virtual definition to virtual use if the call devirtualizes
3192 to a const or pure function.
3193 (visit_use): Also visit calls we can devirtualize to a
3194 const or pure function.
3195
3196 2016-09-23 Richard Biener <rguenther@suse.de>
3197
3198 PR tree-optimization/77697
3199 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
3200 signal error if we have sth ternary or unhandled.
3201
3202 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3203
3204 * config/arm/arm_neon.h (vabd_f16): New.
3205 (vabdq_f16): New.
3206 (vabs_f16): New.
3207 (vabsq_f16): New.
3208 (vadd_f16): New.
3209 (vaddq_f16): New.
3210 (vcage_f16): New.
3211 (vcageq_f16): New.
3212 (vcagt_f16): New.
3213 (vcagtq_f16): New.
3214 (vcale_f16): New.
3215 (vcaleq_f16): New.
3216 (vcalt_f16): New.
3217 (vcaltq_f16): New.
3218 (vceq_f16): New.
3219 (vceqq_f16): New.
3220 (vceqz_f16): New.
3221 (vceqzq_f16): New.
3222 (vcge_f16): New.
3223 (vcgeq_f16): New.
3224 (vcgez_f16): New.
3225 (vcgezq_f16): New.
3226 (vcgt_f16): New.
3227 (vcgtq_f16): New.
3228 (vcgtz_f16): New.
3229 (vcgtzq_f16): New.
3230 (vcle_f16): New.
3231 (vcleq_f16): New.
3232 (vclez_f16): New.
3233 (vclezq_f16): New.
3234 (vclt_f16): New.
3235 (vcltq_f16): New.
3236 (vcltz_f16): New.
3237 (vcltzq_f16): New.
3238 (vcvt_f16_s16): New.
3239 (vcvt_f16_u16): New.
3240 (vcvt_s16_f16): New.
3241 (vcvt_u16_f16): New.
3242 (vcvtq_f16_s16): New.
3243 (vcvtq_f16_u16): New.
3244 (vcvtq_s16_f16): New.
3245 (vcvtq_u16_f16): New.
3246 (vcvta_s16_f16): New.
3247 (vcvta_u16_f16): New.
3248 (vcvtaq_s16_f16): New.
3249 (vcvtaq_u16_f16): New.
3250 (vcvtm_s16_f16): New.
3251 (vcvtm_u16_f16): New.
3252 (vcvtmq_s16_f16): New.
3253 (vcvtmq_u16_f16): New.
3254 (vcvtn_s16_f16): New.
3255 (vcvtn_u16_f16): New.
3256 (vcvtnq_s16_f16): New.
3257 (vcvtnq_u16_f16): New.
3258 (vcvtp_s16_f16): New.
3259 (vcvtp_u16_f16): New.
3260 (vcvtpq_s16_f16): New.
3261 (vcvtpq_u16_f16): New.
3262 (vcvt_n_f16_s16): New.
3263 (vcvt_n_f16_u16): New.
3264 (vcvtq_n_f16_s16): New.
3265 (vcvtq_n_f16_u16): New.
3266 (vcvt_n_s16_f16): New.
3267 (vcvt_n_u16_f16): New.
3268 (vcvtq_n_s16_f16): New.
3269 (vcvtq_n_u16_f16): New.
3270 (vfma_f16): New.
3271 (vfmaq_f16): New.
3272 (vfms_f16): New.
3273 (vfmsq_f16): New.
3274 (vmax_f16): New.
3275 (vmaxq_f16): New.
3276 (vmaxnm_f16): New.
3277 (vmaxnmq_f16): New.
3278 (vmin_f16): New.
3279 (vminq_f16): New.
3280 (vminnm_f16): New.
3281 (vminnmq_f16): New.
3282 (vmul_f16): New.
3283 (vmul_lane_f16): New.
3284 (vmul_n_f16): New.
3285 (vmulq_f16): New.
3286 (vmulq_lane_f16): New.
3287 (vmulq_n_f16): New.
3288 (vneg_f16): New.
3289 (vnegq_f16): New.
3290 (vpadd_f16): New.
3291 (vpmax_f16): New.
3292 (vpmin_f16): New.
3293 (vrecpe_f16): New.
3294 (vrecpeq_f16): New.
3295 (vrnd_f16): New.
3296 (vrndq_f16): New.
3297 (vrnda_f16): New.
3298 (vrndaq_f16): New.
3299 (vrndm_f16): New.
3300 (vrndmq_f16): New.
3301 (vrndn_f16): New.
3302 (vrndnq_f16): New.
3303 (vrndp_f16): New.
3304 (vrndpq_f16): New.
3305 (vrndx_f16): New.
3306 (vrndxq_f16): New.
3307 (vrsqrte_f16): New.
3308 (vrsqrteq_f16): New.
3309 (vrecps_f16): New.
3310 (vrecpsq_f16): New.
3311 (vrsqrts_f16): New.
3312 (vrsqrtsq_f16): New.
3313 (vsub_f16): New.
3314 (vsubq_f16): New.
3315
3316 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3317
3318 * config.gcc (extra_headers): Add arm_fp16.h
3319 * config/arm/arm_fp16.h: New.
3320 * config/arm/arm_neon.h: Include "arm_fp16.h".
3321
3322 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3323
3324 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
3325 variants).
3326 (vmulf): New (v8hf, v4hf variants).
3327 (vfma): New (v8hf, v4hf variants).
3328 (vfms): New (v8hf, v4hf variants).
3329 (vsub): New (v8hf, v4hf variants).
3330 (vcage): New (v8hf, v4hf variants).
3331 (vcagt): New (v8hf, v4hf variants).
3332 (vcale): New (v8hf, v4hf variants).
3333 (vcalt): New (v8hf, v4hf variants).
3334 (vceq): New (v8hf, v4hf variants).
3335 (vcgt): New (v8hf, v4hf variants).
3336 (vcge): New (v8hf, v4hf variants).
3337 (vcle): New (v8hf, v4hf variants).
3338 (vclt): New (v8hf, v4hf variants).
3339 (vceqz): New (v8hf, v4hf variants).
3340 (vcgez): New (v8hf, v4hf variants).
3341 (vcgtz): New (v8hf, v4hf variants).
3342 (vcltz): New (v8hf, v4hf variants).
3343 (vclez): New (v8hf, v4hf variants).
3344 (vabd): New (v8hf, v4hf variants).
3345 (vmaxf): New (v8hf, v4hf variants).
3346 (vmaxnm): New (v8hf, v4hf variants).
3347 (vminf): New (v8hf, v4hf variants).
3348 (vminnm): New (v8hf, v4hf variants).
3349 (vpmaxf): New (v4hf variant).
3350 (vpminf): New (v4hf variant).
3351 (vpadd): New (v4hf variant).
3352 (vrecps): New (v8hf, v4hf variants).
3353 (vrsqrts): New (v8hf, v4hf variants).
3354 (vabs): New (v8hf, v4hf variants).
3355 (vneg): New (v8hf, v4hf variants).
3356 (vrecpe): New (v8hf, v4hf variants).
3357 (vrnd): New (v8hf, v4hf variants).
3358 (vrnda): New (v8hf, v4hf variants).
3359 (vrndm): New (v8hf, v4hf variants).
3360 (vrndn): New (v8hf, v4hf variants).
3361 (vrndp): New (v8hf, v4hf variants).
3362 (vrndx): New (v8hf, v4hf variants).
3363 (vrsqrte): New (v8hf, v4hf variants).
3364 (vmul_lane): Add v4hf and v8hf variants.
3365 (vmul_n): Add v4hf and v8hf variants.
3366 (vext): New (v8hf, v4hf variants).
3367 (vcvts): New (v8hi, v4hi variants).
3368 (vcvts): New (v8hf, v4hf variants).
3369 (vcvtu): New (v8hi, v4hi variants).
3370 (vcvtu): New (v8hf, v4hf variants).
3371 (vcvts_n): New (v8hf, v4hf variants).
3372 (vcvtu_n): New (v8hi, v4hi variants).
3373 (vcvts_n): New (v8hi, v4hi variants).
3374 (vcvtu_n): New (v8hf, v4hf variants).
3375 (vbsl): New (v8hf, v4hf variants).
3376 (vcvtas): New (v8hf, v4hf variants).
3377 (vcvtau): New (v8hf, v4hf variants).
3378 (vcvtms): New (v8hf, v4hf variants).
3379 (vcvtmu): New (v8hf, v4hf variants).
3380 (vcvtns): New (v8hf, v4hf variants).
3381 (vcvtnu): New (v8hf, v4hf variants).
3382 (vcvtps): New (v8hf, v4hf variants).
3383 (vcvtpu): New (v8hf, v4hf variants).
3384
3385 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3386
3387 * config/arm/arm-builtins.c (hf_UP): New.
3388 (si_UP): New.
3389 (vfp_builtin_data): New. Update comment.
3390 (enum arm_builtins): Include "arm_vfp_builtins.def".
3391 (ARM_BUILTIN_VFP_PATTERN_START): New.
3392 (arm_init_vfp_builtins): New.
3393 (arm_init_builtins): Add arm_init_vfp_builtins.
3394 (arm_expand_vfp_builtin): New.
3395 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
3396 long line.
3397 * config/arm/arm_vfp_builtins.def: New file.
3398 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
3399 (arm-builtins.o): Likewise.
3400
3401 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3402
3403 PR ipa/77677
3404 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
3405 from constant while creating value range.
3406
3407 2016-09-23 Renlin Li <renlin.li@arm.com>
3408
3409 * ira.c (ira): Move ira_use_lra_p initialization code to ...
3410 (ira_init_once): Here.
3411
3412 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
3413 Jakub Jelinek <jakub@redhat.com>
3414
3415 * hooks.h (hook_uint_uintp_false): Rename to...
3416 (hook_bool_uint_uintp_false): ... this.
3417 * hooks.c (hook_uint_uintp_false): Rename to...
3418 (hook_bool_uint_uintp_false): ... this.
3419 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
3420 instead of hook_uint_uintp_false.
3421
3422 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3423
3424 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
3425 (arm_init_builtins): Move body of a loop to the standalone
3426 function arm_init_neon_builtin.
3427 (arm_expand_neon_builtin_1): New. Update comment. Function body
3428 moved from arm_neon_builtin with some white-space fixes.
3429 (arm_expand_neon_builtin): Move code into the standalone function
3430 arm_expand_neon_builtin_1.
3431
3432 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3433
3434 * config/arm/iterators.md (VCVTHI): New.
3435 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
3436 (NEON_VAGLTE): New.
3437 (VFM_LANE_AS): New.
3438 (VH_CVTTO): New.
3439 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
3440 (V_HALF): Add V4HF. Fix white-space.
3441 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
3442 (V_s_elem): Likewise.
3443 (V_sz_elem): Fix white-space.
3444 (V_elem_ch): Likewise.
3445 (VH_elem_ch): New.
3446 (scalar_mul_constraint): Add V8HF and V4HF.
3447 (Is_float_mode): Fix white-space.
3448 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
3449 (q): Add HF. Fix white-space.
3450 (float_sup): New.
3451 (float_SUP): New.
3452 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
3453 (neon_vfm_lane_as): New.
3454 * config/arm/neon.md (add<mode>3_fp16): New.
3455 (sub<mode>3_fp16): New.
3456 (mul<mode>3add<mode>_neon): New.
3457 (fma<VH:mode>4_intrinsic): New.
3458 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
3459 (fmsub<VH:mode>4_intrinsic): New.
3460 (<absneg_str><mode>2): New.
3461 (neon_v<absneg_str><mode>): New.
3462 (neon_v<fp16_rnd_str><mode>): New.
3463 (neon_vrsqrte<mode>): New.
3464 (neon_vpaddv4hf): New.
3465 (neon_vadd<mode>): New.
3466 (neon_vsub<mode>): New.
3467 (neon_vmulf<mode>): New.
3468 (neon_vfma<VH:mode>): New.
3469 (neon_vfms<VH:mode>): New.
3470 (neon_vc<cmp_op><mode>): New.
3471 (neon_vc<cmp_op><mode>_fp16insn): New
3472 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
3473 (neon_vca<cmp_op><mode>): New.
3474 (neon_vca<cmp_op><mode>_fp16insn): New.
3475 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
3476 (neon_vc<cmp_op>z<mode>): New.
3477 (neon_vabd<mode>): New.
3478 (neon_v<maxmin>f<mode>): New.
3479 (neon_vp<maxmin>fv4hf: New.
3480 (neon_<fmaxmin_op><mode>): New.
3481 (neon_vrecps<mode>): New.
3482 (neon_vrsqrts<mode>): New.
3483 (neon_vrecpe<mode>): New (VH variant).
3484 (neon_vdup_lane<mode>_internal): New.
3485 (neon_vdup_lane<mode>): New.
3486 (neon_vcvt<sup><mode>): New (VCVTHI variant).
3487 (neon_vcvt<sup><mode>): New (VH variant).
3488 (neon_vcvt<sup>_n<mode>): New (VH variant).
3489 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
3490 (neon_vcvt<vcvth_op><sup><mode>): New.
3491 (neon_vmul_lane<mode>): New.
3492 (neon_vmul_n<mode>): New.
3493 * config/arm/unspecs.md (UNSPEC_VCALE): New
3494 (UNSPEC_VCALT): New.
3495 (UNSPEC_VFMA_LANE): New.
3496 (UNSPECS_VFMS_LANE): New.
3497
3498 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3499
3500 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
3501 ("*extzv<mode><clobbercc_or_nocc>"):
3502 Correct a typo in a comment.
3503 Merged patterns.
3504 ("*insv<mode>_zEC12", "*insv<mode>_z10")
3505 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
3506 ("*insv<mode>_zEC12_appendbitsleft")
3507 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
3508 ("*insv<mode>_z10_appendbitsleft"): Ditto.
3509 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
3510 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
3511 Provide pattern with operands switched.
3512 ("*pre_z10_extv<mode>"):
3513 Use new subst patterns.
3514 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
3515 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
3516 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
3517 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
3518 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
3519 ("*<risbg_n>_sidi_ior_and_lshiftrt")
3520 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
3521 New patterns.
3522 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
3523 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3524 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
3525 on zEC12.
3526 ("SINT"): New mode_iterator with SI, HI, QI.
3527 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
3528 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
3529 duplication.
3530
3531 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3532
3533 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
3534 new interface of s390_contiguous_bitmask_p.
3535 ("contiguous_bitmask_nowrap_operand"): New predicate.
3536 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
3537 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
3538 of s390_contiguous_bitmask_p.
3539 ("NxxDw"): Rename NxxDq constraint to NxxDw.
3540 ("NxxSw"): New constraint.
3541 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
3542 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
3543 interface.
3544 (s390_contiguous_bitmask_nowrap_p): Export.
3545 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
3546 former s390_contiguous_bitmask_p.
3547 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
3548 detect contiguous bit ranges with wraparound. Change signature to
3549 return START and END position instead of POS and LENGTH.
3550 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
3551 ranges with wraparound.
3552 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
3553 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
3554 Adapt to new signature of s390_contiguous_bitmask_p.
3555
3556 2016-09-23 Bin Cheng <bin.cheng@arm.com>
3557
3558 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
3559 (create_intersect_range_checks): New.
3560 (vect_create_cond_for_alias_checks): Call above function.
3561
3562 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3563
3564 * config/arm/iterators.md (Code iterators): Fix some white-space
3565 in the comments.
3566 (GLTE): New.
3567 (ABSNEG): New
3568 (FCVT): Moved from vfp.md.
3569 (VCVT_HF_US_N): New.
3570 (VCVT_SI_US_N): New.
3571 (VCVT_HF_US): New.
3572 (VCVTH_US): New.
3573 (FP16_RND): New.
3574 (absneg_str): New.
3575 (FCVTI32typename): Moved from vfp.md.
3576 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
3577 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
3578 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
3579 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
3580 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
3581 (vcvth_op): New.
3582 (fp16_rnd_str): New.
3583 (fp16_rnd_insn): New.
3584 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
3585 (UNSPEC_VCVT_HF_U_N): New.
3586 (UNSPEC_VCVT_SI_S_N): New.
3587 (UNSPEC_VCVT_SI_U_N): New.
3588 (UNSPEC_VCVTH_S): New.
3589 (UNSPEC_VCVTH_U): New.
3590 (UNSPEC_VCVTA_S): New.
3591 (UNSPEC_VCVTA_U): New.
3592 (UNSPEC_VCVTM_S): New.
3593 (UNSPEC_VCVTM_U): New.
3594 (UNSPEC_VCVTN_S): New.
3595 (UNSPEC_VCVTN_U): New.
3596 (UNSPEC_VCVTP_S): New.
3597 (UNSPEC_VCVTP_U): New.
3598 (UNSPEC_VCVTP_S): New.
3599 (UNSPEC_VCVTP_U): New.
3600 (UNSPEC_VRND): New.
3601 (UNSPEC_VRNDA): New.
3602 (UNSPEC_VRNDI): New.
3603 (UNSPEC_VRNDM): New.
3604 (UNSPEC_VRNDN): New.
3605 (UNSPEC_VRNDP): New.
3606 (UNSPEC_VRNDX): New.
3607 * config/arm/vfp.md (<absneg_str>hf2): New.
3608 (neon_vabshf): New.
3609 (neon_v<fp16_rnd_str>hf): New.
3610 (neon_vrndihf): New.
3611 (addhf3): New.
3612 (subhf3): New.
3613 (divhf3): New.
3614 (mulhf3): New.
3615 (*mulsf3neghf_vfp): New.
3616 (*negmulhf3_vfp): New.
3617 (*mulsf3addhf_vfp): New.
3618 (*mulhf3subhf_vfp): New.
3619 (*mulhf3neghfaddhf_vfp): New.
3620 (*mulhf3neghfsubhf_vfp): New.
3621 (fmahf4): New.
3622 (neon_vfmahf): New.
3623 (fmsubhf4_fp16): New.
3624 (neon_vfmshf): New.
3625 (*fnmsubhf4): New.
3626 (*fnmaddhf4): New.
3627 (neon_vsqrthf): New.
3628 (neon_vrsqrtshf): New.
3629 (FCVT): Move to iterators.md.
3630 (FCVTI32typename): Likewise.
3631 (neon_vcvth<sup>hf): New.
3632 (neon_vcvth<sup>si): New.
3633 (neon_vcvth<sup>_nhf_unspec): New.
3634 (neon_vcvth<sup>_nhf): New.
3635 (neon_vcvth<sup>_nsi_unspec): New.
3636 (neon_vcvth<sup>_nsi): New.
3637 (neon_vcvt<vcvth_op>h<sup>si): New.
3638 (neon_<fmaxmin_op>hf): New.
3639
3640 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3641
3642 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3643 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3644 ("*insv<mode>_zEC12_appendbitsleft")
3645 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3646 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3647
3648 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3649
3650 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3651 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3652 construct values without normalization.
3653 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3654 static local lhs_ops to vNULL.
3655
3656 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3657 Jiong Wang <jiong.wang@arm.com>
3658
3659 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3660 available when FP16 instructions are available.
3661 (output_move_vfp): Add support for 16-bit data moves.
3662 (arm_validize_comparison): Fix some white-space. Support HFmode
3663 by conversion to SFmode.
3664 * config/arm/arm.md (truncdfhf2): Fix a comment.
3665 (extendhfdf2): Likewise.
3666 (cstorehf4): New.
3667 (movsicc): Fix some white-space.
3668 (movhfcc): New.
3669 (movsfcc): Fix some white-space.
3670 (*cmovhf): New.
3671 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3672 instructions are available.
3673 (*thumb2_movhi_vfp): Likewise.
3674 (*arm_movhi_fp16): New.
3675 (*thumb2_movhi_fp16): New.
3676 (*movhf_vfp_fp16): New.
3677 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3678 (*movhf_vfp): Likewise.
3679 (extendhfsf2): Enable when VFP FP16 instructions are available.
3680 (truncsfhf2): Enable when VFP FP16 instructions are available.
3681
3682 2016-09-23 Martin Liska <mliska@suse.cz>
3683
3684 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3685
3686 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3687
3688 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3689 V4HF modes.
3690 (arm_evpc_neon_vtrn): Likewise.
3691 (arm_evpc_neon_vrev): Likewise.
3692 (arm_evpc_neon_vext): Likewise.
3693 * config/arm/arm_neon.h (vbsl_f16): New.
3694 (vbslq_f16): New.
3695 (vdup_n_f16): New.
3696 (vdupq_n_f16): New.
3697 (vdup_lane_f16): New.
3698 (vdupq_lane_f16): New.
3699 (vext_f16): New.
3700 (vextq_f16): New.
3701 (vmov_n_f16): New.
3702 (vmovq_n_f16): New.
3703 (vrev64_f16): New.
3704 (vrev64q_f16): New.
3705 (vtrn_f16): New.
3706 (vtrnq_f16): New.
3707 (vuzp_f16): New.
3708 (vuzpq_f16): New.
3709 (vzip_f16): New.
3710 (vzipq_f16): New.
3711 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3712 (vdup_lane): New (v8hf, v4hf variants).
3713 (vext): New (v8hf, v4hf variants).
3714 (vbsl): New (v8hf, v4hf variants).
3715 * config/arm/iterators.md (VDQWH): New.
3716 (VH): New.
3717 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
3718 (Scalar_mul_8_16): Fix white-space.
3719 (Is_d_reg): Add V4HF and V8HF.
3720 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3721 (neon_vdup_lane<mode>): New.
3722 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3723 (*neon_vtrn<mode>_insn): Likewise.
3724 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3725 (*neon_vzip<mode>_insn): Likewise
3726 (neon_vuzp<mode>_internal): Likewise.
3727 (*neon_vuzp<mode>_insn): Likewise
3728 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3729
3730 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3731 Matthew Wahab <matthew.wahab@arm.com>
3732
3733 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3734 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3735 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3736 available. Also fix some white-space.
3737 * config/arm/vfp.md (*arm_movhi_vfp): New.
3738 (*thumb2_movhi_vfp): New.
3739
3740 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3741
3742 * config/arm/arm-c.c (arm_cpu_builtins): Define
3743 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3744 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3745
3746 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3747
3748 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3749 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3750 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3751 arm_v8_2a_fp16_neon_hw.
3752 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3753 arm_v8_2a_neon.
3754
3755 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3756
3757 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3758 arm_fp16_alternative_ok and arm_fp16_none_ok.
3759
3760 2016-09-23 Martin Liska <mliska@suse.cz>
3761
3762 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3763
3764 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3765
3766 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3767 ("armv8.2-a"): New.
3768 ("armv8.2-a+fp16"): New.
3769 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3770 (FL2_FP16INST): New.
3771 (FL2_FOR_ARCH8_2A): New.
3772 * config/arm/arm-tables.opt: Regenerate.
3773 * config/arm/arm.c (arm_arch8_2): New.
3774 (arm_fp16_inst): New.
3775 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3776 for incompatible fp16-format settings.
3777 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3778 (TARGET_NEON_FP16INST): New.
3779 (arm_arch8_2): Declare.
3780 (arm_fp16_inst): Declare.
3781 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3782 march=armv8.2-a and march=armv8.2-a+fp16.
3783 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3784 and armv8.2-a+fp16.
3785 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3786 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3787
3788 2016-09-23 Martin Liska <mliska@suse.cz>
3789
3790 * doc/extend.texi: Remove fused-madd from i386 target options.
3791
3792 2016-09-23 Martin Liska <mliska@suse.cz>
3793
3794 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3795 Handle movbe.
3796
3797 2016-09-23 Martin Liska <mliska@suse.cz>
3798
3799 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3800 Handle crc32.
3801
3802 2016-09-23 Martin Liska <mliska@suse.cz>
3803
3804 PR target/71652
3805 * config/i386/i386.c (ix86_option_override_internal): Change
3806 signature and return false when there's an error related to
3807 arch string.
3808 (release_options_strings): New function.
3809 (ix86_valid_target_attribute_tree): Call the function.
3810
3811 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3812
3813 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3814 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3815 (gen_hsa_ctor_assignment): Likewise.
3816 * print-tree.c (print_node): Likewise.
3817 * tree-dump.c (dequeue_and_dump): Likewise.
3818 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3819 * expr.c (store_constructor): Likewise.
3820 * fold-const.c (operand_equal_p): Likewise.
3821 * tree-pretty-print.c (dump_generic_node): Likewise.
3822 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3823 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3824
3825 2016-09-23 Richard Biener <rguenther@suse.de>
3826
3827 * hooks.h (hook_uint_uintp_false): Declare.
3828
3829 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3830
3831 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3832 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3833
3834 2016-09-22 Martin Sebor <msebor@redhat.com>
3835
3836 PR target/77676
3837 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3838 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3839 (target_int_min): Correct computation.
3840 (format_integer): Use long long as the argument for the ll length
3841 modifier.
3842 (format_floating): Use target_int_max().
3843 (get_string_length): Same.
3844 (format_string): Avoid setting the bounded flag for strings
3845 of unknown length.
3846 (try_substitute_return_value): Avoid setting range info when
3847 the result isn't bounded.
3848 * varasm.c (assemble_name): Increase buffer size.
3849
3850 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3851 Terry Guo <terry.guo@arm.com>
3852
3853 * target.def (elf_flags_numeric): New target hook.
3854 * targhooks.h (default_asm_elf_flags_numeric): New.
3855 * varasm.c (default_asm_elf_flags_numeric): New.
3856 (default_elf_asm_named_section): Use new target hook.
3857 * config/arm/arm.opt (mpure-code): New.
3858 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3859 * config/arm/arm.c (arm_asm_init_sections): Add section
3860 attribute to default text section if -mpure-code.
3861 (arm_option_check_internal): Diagnose use of option with
3862 non supported targets and/or options.
3863 (arm_asm_elf_flags_numeric): New.
3864 (arm_function_section): New.
3865 (arm_elf_section_type_flags): New.
3866 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3867 for -mpure-code.
3868 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3869 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3870
3871 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3872
3873 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3874
3875 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3876
3877 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3878 * rtl.h: Adjust prototype.
3879
3880 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3881
3882 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3883 (prev_active_insn): Likewise.
3884 (active_insn_p): Likewise.
3885 * rtl.h: Adjust prototypes.
3886 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3887 * config/arc/arc.md: Likewise.
3888 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3889 (branch_needs_nop_p): Likewise.
3890 (use_skip_p): Likewise.
3891 * config/sh/sh.c (gen_block_redirect): Likewise.
3892 (split_branches): Likewise.
3893 * reorg.c (optimize_skip): Likewise.
3894 (fill_simple_delay_slots): Likewise.
3895 (fill_slots_from_thread): Likewise.
3896 (relax_delay_slots): Likewise.
3897 * resource.c (mark_target_live_regs): Likewise.
3898
3899 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3900
3901 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3902 type to rtx_insn *.
3903 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3904 (prev_nonnote_nondebug_insn): Likewise.
3905 * config/cris/cris-protos.h: Adjust prototype.
3906 * rtl.h: Likewise.
3907 * jump.c (rtx_renumbered_equal_p): Adjust.
3908
3909 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3910
3911 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3912 * rtl.h: Adjust prototype.
3913 * config/sh/sh.md: Adjust.
3914 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3915
3916 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3917
3918 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3919 (prev_nondebug_insn): Likewise.
3920 * loop-doloop.c (doloop_condition_get): Likewise.
3921 * rtl.h: Adjust prototype.
3922 * cfgloop.h: Likewise.
3923
3924 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3925
3926 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3927 (prev_nonnote_insn): Likewise.
3928 * jump.c (reversed_comparison_code_parts): Likewise.
3929 (reversed_comparison): Likewise.
3930 * rtl.h: Adjust prototypes.
3931 * config/arc/arc.md: Adjust.
3932 * cse.c (find_comparison_args): Likewise.
3933 * reorg.c (redundant_insn): Change return type to rtx_insn *.
3934 (fix_reg_dead_note): Change argument type to rtx_insn *.
3935 (delete_prior_computation): Likewise.
3936 (delete_computation): Likewise.
3937 (fill_slots_from_thread): Adjust.
3938 (relax_delay_slots): Likewise.
3939 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3940 (simplify_relational_operation_1): Likewise.
3941 (simplify_ternary_operation): Likewise.
3942
3943 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3944
3945 * config/arc/arc-protos.h (arc_label_align): Change type of
3946 variables from rtx to rtx_insn *.
3947 * config/arc/arc.c (arc_label_align): Likewise.
3948 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3949 * config/bfin/bfin.c (workaround_speculation): Likewise.
3950 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3951 (find_last_same_clock): Likewise.
3952 (reorg_split_calls): Likewise.
3953 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3954 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3955 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3956 (same_cmp_following_p): Likewise.
3957 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3958 (same_cmp_following_p): Likwise.
3959 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3960 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3961 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3962 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3963 (rl78_alloc_physical_registers_cmp): Likewise.
3964 (rl78_alloc_physical_registers_umul): Likewise.
3965 (rl78_calculate_death_notes): Likewise.
3966 * config/s390/s390-protos.h (s390_label_align): Likewise.
3967 * config/s390/s390.c (s390_label_align): Likewise.
3968 * config/sh/sh.c (barrier_align): Likewise.
3969 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3970 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3971 (emit_cbcond_nop): Likewise.
3972
3973 2016-09-22 Martin Liska <mliska@suse.cz>
3974
3975 PR ipa/77653
3976 * ipa-icf.c (sem_variable::merge): Yield merge operation if
3977 alias address matters, not necessarily address of original.
3978
3979 2016-09-22 Richard Biener <rguenther@suse.de>
3980
3981 PR middle-end/77697
3982 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3983 fold fails.
3984
3985 2016-09-22 Richard Biener <rguenther@suse.de>
3986
3987 PR middle-end/77677
3988 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
3989 from constant folding results.
3990 (gimple_resimplify2): Likewise.
3991 (gimple_resimplify3): Likewise.
3992
3993 2016-09-22 Richard Biener <rguenther@suse.de>
3994
3995 PR middle-end/77678
3996 * expr.c (expand_expr_real_1): Guard array access against negative
3997 offset.
3998
3999 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4000
4001 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
4002 of MPFR_RNDN.
4003 (format_floating): Likewise.
4004
4005 2016-09-22 Jakub Jelinek <jakub@redhat.com>
4006
4007 PR fortran/77665
4008 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
4009 for all IFN_GOMP_SIMD_* internal fns, not just for
4010 IFN_GOMP_SIMD_ORDERED_*.
4011
4012 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4013
4014 PR target/77670
4015 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
4016 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
4017 instructions when you want to invert the test.
4018 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
4019 correct order for XXSEL.
4020 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
4021 for using XSCMP{EQ,GT,GE}DP.
4022
4023 2016-09-21 David Malcolm <dmalcolm@redhat.com>
4024
4025 * genconstants.c (main): Introduce noop_reader and convert call
4026 to read_md_files to a method call.
4027 * genenums.c (main): Likewise.
4028 * genmddeps.c (main): Likewise.
4029 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
4030 rtx_reader_ptr->get_top_level_filename ().
4031 (write_tm_preds_h): Likewise.
4032 (write_insn_preds_c): Likewise.
4033 * gensupport.c (class gen_reader): New subclass of rtx_reader.
4034 (rtx_handle_directive): Convert to...
4035 (gen_reader::handle_unknown_directive): ...this.
4036 (init_rtx_reader_args_cb): Convert return type from bool to
4037 rtx_reader *. Create a gen_reader instance, using it for the
4038 call to read_md_files. Return it if no errors occur.
4039 (init_rtx_reader_args): Convert return type from bool to
4040 rtx_reader *.
4041 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4042 (init_rtx_reader_args_cb): Likewise.
4043 * read-md.c (struct file_name_list): Move to class rtx_reader.
4044 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
4045 (read_md_filename): Delete in favor of
4046 rtx_reader::m_read_md_filename.
4047 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
4048 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
4049 (base_dir): Delete in favor of rtx_reader::m_base_dir.
4050 (first_dir_md_include): Delete in favor of
4051 rtx_reader::m_first_dir_md_include.
4052 (last_dir_md_include_ptr): Delete in favor of
4053 rtx_reader::m_last_dir_md_include_ptr.
4054 (max_include_len): Delete.
4055 (rtx_reader_ptr): New.
4056 (fatal_with_file_and_line): Use get_filename and get_lineno
4057 accessors of rtx_reader_ptr.
4058 (require_char_ws): Likewise.
4059 (rtx_reader::read_char): New method, based on ::read_char.
4060 (rtx_reader::unread_char): New method, based on ::unread_char.
4061 (read_escape): Use get_filename and get_lineno accessors of
4062 rtx_reader_ptr.
4063 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
4064 (read_string): Use get_filename and get_lineno accessors of
4065 rtx_reader_ptr.
4066 (rtx_reader::rtx_reader): New ctor.
4067 (rtx_reader::~rtx_reader): New dtor.
4068 (handle_include): Convert from a function to...
4069 (rtx_reader::handle_include): ...this method, converting
4070 handle_directive from a callback to a virtual function.
4071 (handle_file): Likewise, converting to...
4072 (rtx_reader::handle_file): ...this method.
4073 (handle_toplevel_file): Likewise, converting to...
4074 (rtx_reader::handle_toplevel_file): ...this method.
4075 (rtx_reader::get_current_location): New method.
4076 (parse_include): Convert from a function to...
4077 (rtx_reader::add_include_path): ...this method, dropping redundant
4078 update to unused max_include_len.
4079 (read_md_files): Convert from a function to...
4080 (rtx_reader::read_md_files): ...this method, converting
4081 handle_directive from a callback to a virtual function.
4082 (noop_reader::handle_unknown_directive): New method.
4083 * read-md.h (directive_handler_t): Delete this typedef.
4084 (in_fname): Delete.
4085 (read_md_file): Delete.
4086 (read_md_lineno): Delete.
4087 (read_md_filename): Delete.
4088 (class rtx_reader): New class.
4089 (rtx_reader_ptr): New decl.
4090 (class noop_reader): New subclass of rtx_reader.
4091 (read_char): Reimplement in terms of rtx_reader::read_char.
4092 (unread_char): Reimplement in terms of rtx_reader::unread_char.
4093 (read_md_files): Delete.
4094 * read-rtl.c (read_rtx_code): Update for deletion of globals
4095 read_md_filename and read_md_lineno.
4096
4097 2016-09-21 Jason Merrill <jason@redhat.com>
4098
4099 * input.h (from_macro_definition_at): New.
4100
4101 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4102
4103 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
4104
4105 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4106
4107 PR tree-optimization/77550
4108 * tree-vect-stmts.c (create_array_ref): Change parameters.
4109 (get_group_alias_ptr_type): New function.
4110 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
4111
4112 2016-09-21 Marek Polacek <polacek@redhat.com>
4113
4114 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4115 Add falls through comment.
4116
4117 2016-09-21 Richard Biener <rguenther@suse.de>
4118
4119 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
4120 (replace_child): Likewise.
4121 (remove_child_TAG): Adjust.
4122 (move_marked_base_types): Likewise.
4123 (prune_unused_types_prune): Clear die_sib of removed children.
4124
4125 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
4126
4127 PR target/77326
4128 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
4129 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
4130
4131 2016-09-21 Richard Biener <rguenther@suse.de>
4132
4133 PR tree-optimization/77648
4134 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
4135 with complex RHS.
4136 (make_transitive_closure_constraints): Adjust comment.
4137 (make_any_offset_constraints): New function.
4138 (handle_rhs_call): Make sure to first expand a pointer to all
4139 subfields before transitively closing it.
4140 (handle_const_call): Likewise. Properly expand returned
4141 pointers as well.
4142 (handle_pure_call): Likewise.
4143
4144 2016-09-21 Richard Biener <rguenther@suse.de>
4145 Jakub Jelinek <jakub@redhat.com>
4146
4147 PR tree-optimization/77621
4148 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
4149 group at non-vectorizable stmts.
4150
4151 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4152
4153 PR tree-optimization/72835
4154 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
4155 (make_new_ssa_for_all_defs): Likewise.
4156 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
4157
4158 2016-09-20 Martin Sebor <msebor@redhat.com>
4159
4160 PR middle-end/49905
4161 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
4162 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
4163 * config/linux.c (gnu_libc_printf_pointer_format): New function.
4164 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
4165 * config/sol2.c (solaris_printf_pointer_format): New function.
4166 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
4167 options.
4168 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
4169 * doc/tm.texi: Regenerate.
4170 * gimple-fold.h (get_range_strlen): New function.
4171 (get_maxval_strlen): Declare existing function.
4172 * gimple-fold.c (get_range_strlen): Add arguments and compute both
4173 maximum and minimum.
4174 (get_range_strlen): Define overload.
4175 (get_maxval_strlen): Adjust.
4176 * gimple-ssa-sprintf.c: New file and pass.
4177 * passes.def (pass_sprintf_length): Add new pass.
4178 * targhooks.h (default_printf_pointer_format): Declare new function.
4179 (gnu_libc_printf_pointer_format): Same.
4180 (solaris_libc_printf_pointer_format): Same.
4181 * targhooks.c (default_printf_pointer_format): Define new function.
4182 * tree-pass.h (make_pass_sprintf_length): Declare new function.
4183 * print-tree.c: Increase buffer size.
4184
4185 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4186
4187 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
4188
4189 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4190
4191 * common.opt: New option -fipa-vrp.
4192 * ipa-cp.c (ipa_get_vr_lat): New.
4193 (ipcp_vr_lattice::print): Likewise.
4194 (print_all_lattices): Call ipcp_vr_lattice::print.
4195 (ipcp_vr_lattice::meet_with): New.
4196 (ipcp_vr_lattice::meet_with_1): Likewise.
4197 (ipcp_vr_lattice::top_p): Likewise.
4198 (ipcp_vr_lattice::bottom_p): Likewsie.
4199 (ipcp_vr_lattice::set_to_bottom): Likewise.
4200 (set_all_contains_variable): Call VR set_to_bottom.
4201 (initialize_node_lattices): Init VR lattices.
4202 (propagate_vr_accross_jump_function): New.
4203 (propagate_constants_accross_call): Call
4204 propagate_vr_accross_jump_function.
4205 (ipcp_store_vr_results): New.
4206 (ipcp_driver): Handle VR.
4207 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
4208 (ipa_set_jf_unknown): Likewise.
4209 (ipa_compute_jump_functions_for_edge): Likewise.
4210 (ipa_node_params_t::duplicate): Likewise.
4211 (ipa_write_jump_function): Likewise.
4212 (ipa_read_jump_function): Likewise.
4213 (write_ipcp_transformation_info): Likewise.
4214 (read_ipcp_transformation_info): Likewise.
4215 (ipcp_update_vr): New.
4216 (ipcp_transform_function): Handle VR.
4217 * ipa-prop.h (struct ipa_vr): New.
4218 * cgraph.c: Include tree-vrp.h.
4219 * cgraphunit.c: Likewise.
4220 * ipa-utils.c: Likewise.
4221 * ipa.c: Likewise.
4222 * opts.c: Likewise.
4223 * toplev.c: Likewise.
4224 * ipa-devirt.c: Likewise.
4225 * ipa-inline-transform.c: Likewise.
4226 * ipa-inline.c: Likewise.
4227 * ipa-profile.c: Likewise.
4228
4229 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4230
4231 * doc/invoke.texi: Document -fdump-tree-evrp.
4232 * passes.def: Define new pass_early_vrp.
4233 * timevar.def: Define new TV_TREE_EARLY_VRP.
4234 * tree-pass.h (make_pass_early_vrp): New.
4235 * tree-ssa-propagate.c: Make replace_uses_in non static.
4236 * tree-ssa-propagate.h: Export replace_uses_in.
4237 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
4238 (extract_range_from_assert): Factor out
4239 extract_range_for_var_from_comparison_expr.
4240 (vrp_initialize_lattice): New.
4241 (vrp_initialize): Factor out vrp_initialize_lattice.
4242 (vrp_valueize): Fix it to reject complex value ranges.
4243 (vrp_free_lattice): New.
4244 (evrp_dom_walker::before_dom_children): Likewise.
4245 (evrp_dom_walker::after_dom_children): Likewise.
4246 (evrp_dom_walker::push_value_range): Likewise.
4247 (evrp_dom_walker::pop_value_range): Likewise.
4248 (execute_early_vrp): Likewise.
4249 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
4250 (make_pass_early_vrp): New.
4251
4252 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4253
4254 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
4255 instead of exact_log2.
4256
4257 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4258
4259 PR target/77621
4260 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
4261 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
4262 (ix86_add_stmt_cost): Penalize DFmode vector operations
4263 for !TARGET_VECTORIZE_DOUBLE.
4264
4265 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
4266
4267 * doc/invoke.texi (Warning Options): Simplify language.
4268 (Optimize Options): Complete sentence.
4269
4270 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
4271
4272 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
4273 early_finish hook.
4274
4275 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4276
4277 PR target/71395
4278 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
4279 inits on power8 and above, use the VMRGEW instruction instead of a
4280 permute.
4281
4282 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
4283 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
4284 initialization.
4285
4286 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4287
4288 * config/aarch64/arm_neon.h
4289 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
4290 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
4291 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
4292
4293 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4294
4295 * config/var/vax.h (ELIMINABLE_REGS): Define.
4296 (INITIAL_ELIMINATION_OFFSET): Define.
4297
4298 2016-09-20 Jakub Jelinek <jakub@redhat.com>
4299
4300 PR middle-end/77624
4301 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
4302 cast to void * if the cast is from some other pointer type.
4303
4304 2016-09-20 Richard Biener <rguenther@suse.de>
4305
4306 PR tree-optimization/77646
4307 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
4308 a VDEF.
4309
4310 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4311
4312 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
4313 attributes to all inlined functions and make them extern.
4314
4315 2016-09-20 Richard Biener <rguenther@suse.de>
4316
4317 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
4318 hook.
4319 * debug.c (do_nothing_debug_hooks): Adjust.
4320 * dbxout.c (dbx_debug_hooks): Likewise.
4321 * sdbout.c (sdb_debug_hooks): Likewise.
4322 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
4323 (dwarf2out_finish): Move producer, filename and
4324 path annotation ...
4325 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
4326 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
4327
4328 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4329
4330 PR c++/77434
4331 * doc/invoke.texi: Document -Wint-in-bool-context.
4332
4333 PR middle-end/77421
4334 * dwarf2out.c (output_loc_operands): Fix an assertion.
4335
4336 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4337
4338 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
4339 (CR_DECIMAL_DIG): New macro.
4340
4341 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4342
4343 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
4344 element.
4345
4346 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
4347
4348 PR rtl-optimization/77416
4349 * lra-remat.c (operand_to_remat): Process hard coded insn
4350 registers.
4351
4352 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4353
4354 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
4355 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
4356
4357 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4358
4359 * target.def (lra_p): Wordsmithing.
4360 * doc/tm.texi: Regenerate.
4361
4362 2016-09-19 Jakub Jelinek <jakub@redhat.com>
4363 Jan Hubicka <jh@suse.cz>
4364
4365 PR target/77587
4366 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
4367 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
4368 Call ultimate_alias_target just once, not up to 4 times.
4369
4370 2016-09-19 Richard Biener <rguenther@suse.de>
4371
4372 * dwarf2out.c (early_dwarf_finished): New global.
4373 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
4374 is false.
4375 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
4376 if called from LTO exit early.
4377 (dwarf2out_late_global_decl): When being during the early
4378 debug phase do not add locations but only const value attributes.
4379 Adjust the way we generate early DIEs for LTO.
4380
4381 2016-09-19 Richard Biener <rguenther@suse.de>
4382
4383 PR middle-end/77605
4384 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
4385 proper niter to bound the loops.
4386
4387 2016-09-19 Richard Biener <rguenther@suse.de>
4388
4389 PR tree-optimization/77514
4390 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
4391 search for folded stmt.
4392
4393 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
4394
4395 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
4396 * tree-pass.h (make_pass_early_thread_jumps): Declare.
4397 * tree-ssa-threadbackward.c (fsm_find_thread_path,
4398 fsm_find_thread_path, profitable_jump_thread_path,
4399 fsm_find_control_statement_thread_paths,
4400 find_jump_threads_backwards): Add speed_p parameter.
4401 (pass_data_early_thread_jumps): New pass.
4402 (make_pass_early_thread_jumps): New function.
4403
4404 2016-09-17 Andreas Schwab <schwab@suse.de>
4405
4406 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
4407 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4408
4409 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
4410
4411 * recog.c (rest_of_handle_split_after_reload): Delete.
4412 (pass_split_after_reload::gate): New method.
4413 (pass_split_after_reload::execute): Call split_all_insns directly.
4414
4415 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
4416
4417 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
4418 parameters for functions taking long long arguments.
4419
4420 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4421
4422 PR target/77613
4423 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
4424 splat with truncate.
4425
4426 2016-09-16 Jason Merrill <jason@redhat.com>
4427
4428 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
4429 New.
4430 * hwint.c (exact_log2): Use pow2p_hwi.
4431 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
4432 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
4433 * builtins.c (get_object_alignment_2, get_object_alignment)
4434 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
4435 least_bit_hwi.
4436 * calls.c (compute_argument_addresses, store_one_arg): Use
4437 least_bit_hwi.
4438 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
4439 * combine.c (force_to_mode): Use least_bit_hwi.
4440 (contains_muldiv, find_split_point, combine_simplify_rtx)
4441 (simplify_if_then_else, simplify_set, force_to_mode)
4442 (if_then_else_cond, simplify_and_const_int_1)
4443 (simplify_compare_const): Use pow2p_hwi.
4444 * cse.c (fold_rtx): Use pow2p_hwi.
4445 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
4446 Use least_bit_hwi.
4447 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
4448 (init_expmed_one_conv): Use pow2p_hwi.
4449 * expr.c (is_aligning_offset): Use pow2p_hwi.
4450 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
4451 (fold_binary_loc): Use pow2p_hwi.
4452 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
4453 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
4454 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
4455 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
4456 Use least_bit_hwi.
4457 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
4458 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
4459 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
4460 * omp-low.c (oacc_loop_fixed_partitions)
4461 (oacc_loop_auto_partitions): Use least_bit_hwi.
4462 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
4463 * stor-layout.c (place_field): Use least_bit_hwi.
4464 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
4465 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
4466 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
4467 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
4468 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
4469 * tree-vect-data-refs.c (vect_analyze_group_access_1)
4470 (vect_grouped_store_supported, vect_grouped_load_supported)
4471 (vect_permute_load_chain, vect_shift_permute_load_chain)
4472 (vect_transform_grouped_load): Use pow2p_hwi.
4473 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
4474 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
4475 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
4476 least_bit_hwi.
4477 * tsan.c (instrument_expr): Use least_bit_hwi.
4478 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
4479
4480 2016-09-16 Andreas Schwab <schwab@suse.de>
4481
4482 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
4483 OFFSET, not offset.
4484 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4485
4486 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4487
4488 PR target/77526
4489 * combine.c (rest_of_handle_combine): If any edges have been purged,
4490 free dominators if available.
4491
4492 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4493 Eric Botcazou <ebotcazou@adacore.com>
4494
4495 PR middle-end/77594
4496 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
4497 through into expand_addsub_overflow after expand_neg_overflow.
4498
4499 2016-09-15 David Malcolm <dmalcolm@redhat.com>
4500
4501 * diagnostic-show-locus.c
4502 (selftest::test_fixit_insert_containing_newline): New function.
4503 (selftest::test_fixit_replace_containing_newline): New function.
4504 (selftest::diagnostic_show_locus_c_tests): Call the above.
4505
4506 2016-09-15 Bin Cheng <bin.cheng@arm.com>
4507
4508 PR tree-optimization/77503
4509 * tree-vect-loop.c (vectorizable_reduction): Record reduction
4510 code for CONST_COND_REDUCTION at analysis stage and use it at
4511 transform stage.
4512 * tree-vectorizer.h (struct _stmt_vec_info): New field.
4513 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
4514 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
4515 field.
4516
4517 2016-09-15 Richard Biener <rguenther@suse.de>
4518
4519 PR middle-end/77544
4520 * fold-const.c (split_tree): Do not split constant ~X.
4521
4522 2016-09-15 Jakub Jelinek <jakub@redhat.com>
4523
4524 PR rtl-optimization/77425
4525 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
4526 is NULL.
4527
4528 PR middle-end/77475
4529 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
4530 use %qs instead of %s where desirable, use argument instead of arg in
4531 the diagnostic wording, add list of supported strategies and
4532 spellcheck hint.
4533 (ix86_option_override_internal): Emit target("m...") instead of
4534 option("m...") in the diagnostic. Use %qs instead of %s in invalid
4535 -march/-mtune option diagnostic. Add list of supported arches/tunings
4536 and spellcheck hint. Remove prefix, suffix and sw variables, use
4537 main_args_p ? "..." : "..." in diagnostics to make translation
4538 possible.
4539
4540 2016-09-15 Richard Biener <rguenther@suse.de>
4541
4542 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
4543 extra offset argument.
4544 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
4545 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
4546 to reflect new offset parameter.
4547 * doc/tm.texi: Regenerate.
4548 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4549 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
4550 offset argument.
4551 (darwin_asm_output_dwarf_offset): Likewise.
4552 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
4553 argument.
4554 (darwin_asm_output_dwarf_offset): Pass offset argument through.
4555 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4556 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4557
4558 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
4559
4560 PR fortran/72743
4561 * ipa-icf.c (set_alias_uids): New function.
4562 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
4563 all the merged variable's referring aliases.
4564
4565 2016-09-15 Richard Biener <rguenther@suse.de>
4566
4567 PR tree-optimization/77514
4568 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
4569 only forced_stmts sequence.
4570
4571 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
4572
4573 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
4574 * cfgexpand.c (update_alias_info_with_stack_vars): Use
4575 FOR_EACH_SSA_NAME to iterate over SSA variables.
4576 (pass_expand::execute): Likewise.
4577 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
4578 * tree-cfg.c (dump_function_to_file): Likewise.
4579 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
4580 (update_ssa): Likewise.
4581 * tree-ssa-alias.c (dump_alias_info): Likewise.
4582 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4583 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
4584 (create_outofssa_var_map): Likewise.
4585 (coalesce_ssa_name): Likewise.
4586 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
4587 * tree-ssa-pre.c (compute_avail): Likewise.
4588 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4589 (scc_vn_restore_ssa_info): Likewise.
4590 (free_scc_vn): Likwise.
4591 (run_scc_vn): Likewise.
4592 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4593 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4594 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4595 * tree-ssa.c (verify_ssa): Likewise.
4596
4597 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
4598
4599 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4600 and mips64r2 as default 32-bit and 64-bit architectures.
4601 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4602 as default 32-bit and 64-bit architectures.
4603
4604 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
4605
4606 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4607 of succ edge.
4608
4609 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4610
4611 * target.def (lra_p): Change commentary (for the manual) for the
4612 new default.
4613 * doc/tm.texi: Regenerate.
4614
4615 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4616
4617 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4618 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4619 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4620 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4621
4622 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4623
4624 * targhooks.c (default_lra_p): Return true instead of false.
4625
4626 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4627
4628 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4629 hook_bool_void_false.
4630 * config/avr/avr.c: Ditto.
4631 * config/bfin/bfin.c: Ditto.
4632 * config/c6x/c6x.c: Ditto.
4633 * config/cr16/cr16.c: Ditto.
4634 * config/cris/cris.c: Ditto.
4635 * config/epiphany/epiphany.c: Ditto.
4636 * config/fr30/fr30.c: Ditto.
4637 * config/frv/frv.c: Ditto.
4638 * config/h8300/h8300.c: Ditto.
4639 * config/ia64/ia64.c: Ditto.
4640 * config/iq2000/iq2000.c: Ditto.
4641 * config/lm32/lm32.c: Ditto.
4642 * config/m32c/m32c.c: Ditto.
4643 * config/m32r/m32r.c: Ditto.
4644 * config/m68k/m68k.c: Ditto.
4645 * config/mcore/mcore.c: Ditto.
4646 * config/microblaze/microblaze.c: Ditto.
4647 * config/mmix/mmix.c: Ditto.
4648 * config/mn10300/mn10300.c: Ditto.
4649 * config/moxie/moxie.c: Ditto.
4650 * config/msp430/msp430.c: Ditto.
4651 * config/nios2/nios2.c: Ditto.
4652 * config/nvptx/nvptx.c: Ditto.
4653 * config/pa/pa.c: Ditto.
4654 * config/pdp11/pdp11.c: Ditto.
4655 * config/rl78/rl78.c: Ditto.
4656 * config/sparc/sparc.c: Ditto.
4657 * config/spu/spu.c: Ditto.
4658 * config/stormy16/stormy16.c: Ditto.
4659 * config/tilegx/tilegx.c: Ditto.
4660 * config/tilepro/tilepro.c: Ditto.
4661 * config/v850/v850.c: Ditto.
4662 * config/vax/vax.c: Ditto.
4663 * config/visium/visium.c: Ditto.
4664 * config/xtensa/xtensa.c: Ditto.
4665
4666 2016-09-14 Jakub Jelinek <jakub@redhat.com>
4667
4668 PR sanitizer/68260
4669 * tsan.c: Include target.h.
4670 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4671 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4672 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4673 BUILT_IN_ATOMIC_TEST_AND_SET entries.
4674 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4675
4676 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4677 Martin Liska <mliska@suse.cz>
4678
4679 PR middle-end/77574
4680 * predict.c (force_edge_cold): Add braces to a condition.
4681
4682 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4683
4684 PR rtl-optimization/77289
4685 * lra-constraints.c (get_final_hard_regno): Removed.
4686 (get_hard_regno): Add new parameter final_p.
4687 (get_reg_class): Directly call lra_get_elimination_hard_regno.
4688 (operands_match_p): Adjust call to get_hard_regno.
4689 (uses_hard_regs_p): Likewise.
4690 (process_alt_operands): Likewise.
4691
4692 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
4693
4694 PR target/70713
4695 * config/msp430/msp430.c (msp430_start_function): Emit an error
4696 if a function is both weak and specifies an interrupt number.
4697
4698 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4699
4700 PR tree-optimization/77454
4701 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4702 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
4703 Formatting fix.
4704
4705 2016-09-13 Tamar Christina <tamar.christina@arm.com>
4706
4707 * config/aarch64/aarch64-builtins.c
4708 (aarch64_init_simd_builtins): Fix builtin type signature printing.
4709
4710 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
4711
4712 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4713 SFmode and SCmode arguments by reference.
4714
4715 2016-09-13 David Malcolm <dmalcolm@redhat.com>
4716
4717 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4718 Rename to...
4719 (selftest::test_one_liner_fixit_insert_before): ...this, and update
4720 for renaming of add_fixit_insert to add_fixit_insert_before.
4721 (selftest::test_one_liner_fixit_insert_after): New function.
4722 (selftest::test_one_liner_fixit_validation_adhoc_locations):
4723 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4724 (selftest::test_one_liner_many_fixits): Likewise.
4725 (selftest::test_diagnostic_show_locus_one_liner): Update for
4726 renaming, call new test function.
4727 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4728 renaming of add_fixit_insert to add_fixit_insert_before.
4729 (selftest::test_fixit_consolidation): Likewise.
4730 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4731 Likewise.
4732 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4733 (selftest::test_applying_fixits_insert_before): ...this.
4734 (selftest::test_applying_fixits_insert): Update for renaming of
4735 add_fixit_insert to add_fixit_insert_before.
4736 (selftest::test_applying_fixits_insert_after): New function.
4737 (selftest::test_applying_fixits_insert_after_at_line_end): New
4738 function.
4739 (selftest::test_applying_fixits_insert_after_failure): New function.
4740 (selftest::test_applying_fixits_multiple): Update for renaming of
4741 add_fixit_insert to add_fixit_insert_before.
4742 (selftest::change_line): Likewise.
4743 (selftest::test_applying_fixits_unreadable_file): Likewise.
4744 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4745 (selftest::test_applying_fixits_column_validation): Likewise.
4746 (selftest::test_applying_fixits_column_validation): Likewise.
4747 (selftest::edit_context_c_tests): Update for renamed test function;
4748 call new test functions.
4749
4750 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4751
4752 PR tree-optimization/77536
4753 PR rtl-optimization/68212
4754 * config/rs6000/rs6000.md (div->recip splitter): Remove
4755 optimize_insn_for_speed_p condition.
4756
4757 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4758
4759 * optabs.c (prepare_cmp_insn): Update documentation comment.
4760
4761 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4762 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4763
4764 PR middle-end/77475
4765 * opts.h (candidates_list_and_hint): Declare.
4766 * opts-common.c (candidates_list_and_hint): New function.
4767 (cmdline_handle_error): Use it.
4768
4769 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4770
4771 * edit-context.c (edited_line::get_len): New accessor.
4772 (edited_file::print_diff): Split out hunk-printing into...
4773 (edited_file::print_diff_hunk): New method.
4774 (edited_file::print_diff_line): New method.
4775
4776 2016-09-12 Andrew Pinski <apinski@cavium.com>
4777
4778 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4779 New tuning option.
4780 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4781 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4782 (aarch64_operands_ok_for_ldpstp): Return false if
4783 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4784 was SImode and the alignment is less than 8 byte.
4785 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4786
4787 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4788
4789 PR target/77570
4790 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4791
4792 2016-09-12 Marek Polacek <polacek@redhat.com>
4793
4794 * doc/extend.texi: Use lowercase "boolean".
4795 * doc/invoke.texi: Likewise.
4796 * doc/md.texi: Likewise.
4797 * target.def: Likewise.
4798 * doc/tm.texi: Regenerated.
4799
4800 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4801
4802 PR middle-end/77426
4803 * expmed.c (synth_mult): Delete duplicate mode check.
4804
4805 2016-09-10 Tom de Vries <tom@codesourcery.com>
4806
4807 PR C/71602
4808 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4809 va_list type only.
4810 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4811 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4812
4813 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4814
4815 PR rtl-optimization/77289
4816 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4817 register numbers. Remove support for subregs.
4818 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4819 (get_reg_class): Delete removed get_final_hard_regno() argument.
4820 (uses_hard_regs_p): Call get_final_hard_regno().
4821
4822 2016-09-09 Martin Sebor <msebor@redhat.com>
4823
4824 PR c/77520
4825 PR c/77521
4826 * pretty-print.c (pp_quoted_string): New function.
4827 (pp_format): Call it for %c and %s directives.
4828
4829 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4830
4831 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4832 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4833 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4834 * target.def (frame_pointer_required, can_eliminate): Likewise.
4835 * doc/tm.texi: Regenerated.
4836 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4837 ELIMINABLE_REGS.
4838 * df-scan.c (df_hard_reg_init): Likewise.
4839 * ira.c (ira_setup_eliminable_regset): Likewise.
4840 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4841 init_elim_table): Likewise.
4842 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4843 set_initial_elim_offsets, update_eliminables,
4844 init_elim_table): Likewise.
4845 * rtlanal.c (get_initial_register_offset): Likewise.
4846 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4847 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4848 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4849 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4850 * config/fr30/fr30.h: Fix comment.
4851 * config/frv/frv.c: Likewise.
4852 * config/frv/frv.h: Likewise.
4853 * config/ft32/ft32.h: Likewise.
4854 * config/visium/visium.h: Likewise.
4855 * config/pa/pa64-linux.h: Likewise.
4856 * config/v850/v850.h: Likewise.
4857 * config/cris/cris.c: Likewise.
4858 * config/ia64/ia64.h: Likewise.
4859 * config/moxie/moxie.h: Likewise.
4860 * config/m32r/m32r.h: Likewise.
4861
4862 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4863
4864 PR target/77267
4865 * config.in: Regenerate.
4866 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4867 New macro.
4868 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4869 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4870 static-libmpxwrappers case.
4871 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4872 MPX_LD_AS_NEEDED_GUARD_POP.
4873 * configure: Regenerate.
4874 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4875 defined if linker support "--push-state"/"--pop-state".
4876
4877 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4878
4879 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4880
4881 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4882
4883 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4884 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4885 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4886 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4887 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4888 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4889 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4890 Document.
4891 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4892 width macros from TS 18661-1.
4893 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4894
4895 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4896
4897 PR fortran/77516
4898 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4899 OMP_CLAUSE_SAFELEN_EXPR.
4900
4901 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4902
4903 * Makefile.in (OBJS): Add substring-locations.o.
4904 * langhooks-def.h (class substring_loc): New forward decl.
4905 (lhd_get_substring_location): New decl.
4906 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4907 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4908 * langhooks.c (lhd_get_substring_location): New function.
4909 * langhooks.h (class substring_loc): New forward decl.
4910 (struct lang_hooks): Add field get_substring_location.
4911 * substring-locations.c: New file, taking definition of
4912 format_warning_va and format_warning_at_substring from
4913 c-family/c-format.c, making them non-static.
4914 * substring-locations.h (class substring_loc): Move class here
4915 from c-family/c-common.h. Add and rewrite comments.
4916 (format_warning_va): New decl.
4917 (format_warning_at_substring): New decl.
4918 (get_source_location_for_substring): Add comment.
4919
4920 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
4921
4922 * config/i386/i386.c: Add 'U' suffix to processor feature bits
4923 to avoid -Wnarrowing warning.
4924 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4925 * opts.c: Likewise for SANITIZER_OPT bitmasks.
4926
4927 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
4928
4929 * config/aarch64/aarch64.c (aarch64_legitimize_address):
4930 Avoid use of base_offset if offset already in range.
4931
4932 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
4933
4934 * config/sh/sh-protos.h (struct sh_atomic_model,
4935 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4936 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4937 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4938 * config/sh/sh.h (struct sh_atomic_model,
4939 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4940 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4941 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4942 Guard with __cplusplus.
4943
4944 2016-09-06 Jakub Jelinek <jakub@redhat.com>
4945
4946 PR target/69255
4947 * config/i386/i386.c (ix86_expand_builtin): For builtin with
4948 unsupported or unknown ISA, use expand_call.
4949
4950 2016-09-06 Martin Liska <mliska@suse.cz>
4951
4952 PR gcov-profile/77378
4953 PR gcov-profile/77466
4954 * tree-profile.c (tree_profiling): Detect whether target can use
4955 -fprofile-update=atomic.
4956
4957 2016-09-06 Richard Biener <rguenther@suse.de>
4958
4959 PR tree-optimization/77479
4960 * tree-vrp.c (update_value_range): Extend overflow handling to
4961 VARYING.
4962
4963 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4964
4965 PR target/77476
4966 * config/i386/i386.md (isa): Add x64_avx512bw.
4967 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4968 (kmov_isa): New mode attr.
4969 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4970 (*zero_extend<mode>si2): Likewise.
4971 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4972
4973 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
4974
4975 * doc/invoke.texi (SPU Options): nops -> NOPs.
4976 (x86 Options): Ditto.
4977
4978 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4979
4980 PR middle-end/77475
4981 * toplev.c (process_options): Temporarily set input_location
4982 to UNKNOWN_LOCATION around targetm.target_option.override () call.
4983
4984 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
4985
4986 PR rtl-optimization/77452
4987 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
4988 inner-mode reference to a CONST_VECTOR constant in the constant pool.
4989
4990 2016-09-05 Marek Polacek <polacek@redhat.com>
4991
4992 PR c/77423
4993 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
4994
4995 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4996
4997 PR other/77421
4998 * gensupport.c (alter_output_for_subst_insn): Remove redundant
4999 *insn_out == '*' test. Don't copy unnecessary to yet another
5000 memory buffer, and don't leak it.
5001
5002 PR rtl-optimization/77425
5003 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
5004
5005 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
5006
5007 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
5008
5009 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5010
5011 * common.opt (fdiagnostics-generate-patch): New option.
5012 * diagnostic.c: Include "edit-context.h".
5013 (diagnostic_initialize): Initialize context->edit_context_ptr.
5014 (diagnostic_finish): Delete context->edit_context_ptr.
5015 (diagnostic_report_diagnostic): Add fix-it hints from the
5016 diagnostic to context->edit_context_ptr, if any.
5017 * diagnostic.h (class edit_context): Add forward decl.
5018 (struct diagnostic_context): Add field "edit_context_ptr".
5019 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5020 -fdiagnostics-generate-patch.
5021 (-fdiagnostics-generate-patch): New item.
5022 * toplev.c: Include "edit-context.h".
5023 (process_options): Set global_dc->edit_context_ptr to a new
5024 edit_context if the options need one.
5025 (toplev::main): Handle -fdiagnostics-generate-patch by using
5026 global_dc->edit_context_ptr.
5027
5028 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5029
5030 PR c/65467
5031 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
5032 map and firstprivate clauses on target construct for _Atomic
5033 qualified decls.
5034 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
5035 on target construct for _Atomic qualified decls.
5036 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
5037 decls.
5038 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
5039 _Atomic qualified arguments not mentioned in uniform clause.
5040
5041 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5042
5043 * Makefile.in (OBJS-libcommon): Add edit-context.o.
5044 * diagnostic-color.c (color_dict): Add "diff-filename",
5045 "diff-hunk", "diff-delete", and "diff-insert".
5046 (parse_gcc_colors): Update default value of GCC_COLORS in comment
5047 to reflect above changes.
5048 * doc/invoke.texi (-fdiagnostics-color): Update description of
5049 default GCC_COLORS, and of the supported capabilities.
5050 * edit-context.c: New file.
5051 * edit-context.h: New file.
5052 * input.c (struct fcache): Add field "missing_trailing_newline".
5053 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
5054 true.
5055 (add_file_to_cache_tab): Likewise.
5056 (fcache::fcache): Likewise.
5057 (get_next_line): Update c->missing_trailing_newline.
5058 (location_missing_trailing_newline): New function.
5059 * input.h (location_missing_trailing_newline): New decl.
5060 * selftest-run-tests.c (selftest::run_tests): Call
5061 edit_context_c_tests.
5062 * selftest.h (edit_context_c_tests): New decl.
5063
5064 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5065 Richard Biener <rguenth@suse.de>
5066
5067 PR tree-optimization/77444
5068 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
5069 as steptype, remove redundant initialization.
5070
5071 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5072
5073 PR sanitizer/77396
5074 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
5075 (sanopt_optimize_walker): Optimize away
5076 __asan_before_dynamic_init (...) followed by
5077 __asan_after_dynamic_init () without intervening memory loads/stores.
5078 * ipa-pure-const.c (special_builtin_state): Handle
5079 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
5080 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
5081
5082 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5083
5084 * cfg.c (free_original_copy_tables): Replace second assignment of
5085 bb_copy = NULL by bb_original = NULL.
5086
5087 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5088
5089 PR other/77421
5090 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
5091 assignment added in r216794.
5092
5093 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5094
5095 * Makefile.in (OBJS): Add typed-splay-tree.o.
5096 * selftest-run-tests.c (selftest::run_tests): Call
5097 typed_splay_tree_c_tests.
5098 * selftest.h (typed_splay_tree_c_tests): New decl.
5099 * typed-splay-tree.c: New file.
5100 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
5101 (typed_splay_tree::max): New method.
5102 (typed_splay_tree::min): New method.
5103 (typed_splay_tree::foreach): New method.
5104 (typed_splay_tree::closure): New struct.
5105 (typed_splay_tree::inner_foreach_fn): New function.
5106
5107 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5108
5109 * ipa-cp.c (ipcp_store_bits_results): Change option name from
5110 -fipa-cp-bit to -fipa-bit-cp.
5111
5112 2016-09-01 Martin Sebor <msebor@redhat.com>
5113
5114 PR tree-optimization/71831
5115 * tree-object-size.h: Return bool instead of the size and add
5116 argument for the size.
5117 * tree-object-size.c (compute_object_offset): Update signature.
5118 (addr_object_size): Same.
5119 (compute_builtin_object_size): Return bool instead of the size
5120 and add argument for the size. Handle POINTER_PLUS_EXPR when
5121 optimization is disabled.
5122 (expr_object_size): Adjust.
5123 (plus_stmt_object_size): Adjust.
5124 (pass_object_sizes::execute): Adjust.
5125 * builtins.c (fold_builtin_object_size): Adjust.
5126 * doc/extend.texi (Object Size Checking): Update.
5127 * ubsan.c (instrument_object_size): Adjust.
5128
5129 2016-09-01 Martin Sebor <msebor@redhat.com>
5130
5131 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
5132 it fits the output of the formatted function regardless of its
5133 arguments.
5134 * gcc/genmodes.c (parser::parse_expr): Same.
5135 * gimplify.c (gimplify_asm_expr): Same.
5136 * passes.c (pass_manager::register_one_dump_file): Same.
5137 * print-tree.c (print_node): Same.
5138
5139 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5140
5141 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
5142
5143 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5144
5145 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
5146
5147 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5148
5149 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
5150 * config/rs6000/vector.md: Ditto.
5151 * config/rs6000/vsx.md: Ditto.
5152
5153 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5154
5155 * ipa-inline-analysis.c (param_change_prob): Get to the base object
5156 first in all cases.
5157
5158 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5159
5160 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
5161 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
5162 *return_and_restore_gpregs_<mode>_r11,
5163 *return_and_restore_gpregs_<mode>_r12,
5164 *return_and_restore_gpregs_<mode>_r1,
5165 *return_and_restore_fpregs_<mode>_r11,
5166 *return_and_restore_fpregs_<mode>_r12,
5167 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
5168 directly instead of via the "l" constraint. Renumber operands.
5169 Fix whitespace.
5170
5171 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5172
5173 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
5174 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
5175 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
5176 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
5177 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
5178 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
5179 *call_value_nonlocal_darwin64, reload_macho_picbase,
5180 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
5181 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
5182 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
5183 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
5184 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
5185 *save_fpregs_<mode>_r1): Ditto.
5186 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
5187 *return_and_restore_gpregs_spe): Ditto.
5188
5189 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5190
5191 * config/rs6000/rs6000.md
5192 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
5193 the use of the link register.
5194 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
5195
5196 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5197 Michael Meissner <meissner@linux.vnet.ibm.com>
5198
5199 PR target/72827
5200 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
5201 reg+reg addressing for TImode.
5202 (rs6000_legitimate_address_p): Only allow register indirect
5203 addressing for TImode, even without TARGET_QUAD_MEMORY.
5204
5205 2016-09-01 Richard Biener <rguenther@suse.de>
5206
5207 PR middle-end/77436
5208 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
5209 check whether the result fits the desired result type.
5210
5211 2016-09-01 Nathan Sidwell <nathan@acm.org>
5212
5213 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
5214
5215 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
5216
5217 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
5218 New function.
5219 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
5220
5221 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5222
5223 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
5224 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
5225 for comparisons of integer ZERO_EXTEND against zero.
5226
5227 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5228
5229 * config/i386/i386.c (ix86_option_override_internal): Also disable the
5230 STV pass if -mstackrealign is enabled.
5231
5232 2016-08-31 Ilya Verbin <iverbin@gmail.com>
5233
5234 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
5235 AVX512IFMA.
5236
5237 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5238
5239 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
5240 (layout_range::intersects_line_p): New method.
5241 (test_range_contains_point_for_single_point): Rename to...
5242 (test_layout_range_for_single_point): ...this, and add testing
5243 for layout_range::intersects_line_p.
5244 (test_range_contains_point_for_single_line): Rename to...
5245 (test_layout_range_for_single_line): ...this, and add testing
5246 for layout_range::intersects_line_p.
5247 (test_range_contains_point_for_multiple_lines): Rename to...
5248 (test_layout_range_for_multiple_lines): ...this, and add testing
5249 for layout_range::intersects_line_p.
5250 (layout::layout): Populate m_fixit_hints.
5251 (layout::get_expanded_location): Handle the case of a line-span
5252 for a fix-it hint.
5253 (layout::validate_fixit_hint_p): New method.
5254 (get_line_span_for_fixit_hint): New function.
5255 (layout::calculate_line_spans): Add spans for fixit-hints.
5256 (layout::should_print_annotation_line_p): New method.
5257 (layout::print_any_fixits): Drop param "richloc", instead using
5258 validated fixits in m_fixit_hints. Add "const" to hint pointers.
5259 (diagnostic_show_locus): Avoid printing blank annotation lines.
5260 (selftest::test_diagnostic_context::test_diagnostic_context):
5261 Initialize show_column and start_span.
5262 (selftest::test_diagnostic_context::start_span_cb): New static
5263 function.
5264 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
5265 (selftest::diagnostic_show_locus_c_tests): Update for function
5266 renamings. Call test_diagnostic_show_locus_fixit_lines.
5267
5268 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5269
5270 PR tree-optimization/73714
5271 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
5272
5273 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5274
5275 * selftest.c: Move "namespace selftest {" to top of file,
5276 removing explicit "selftest::" qualifiers throughout.
5277
5278 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5279
5280 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
5281 New types.
5282 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
5283 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
5284 Replace builtin with vector extension.
5285 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
5286 New types.
5287 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
5288 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
5289 Replace builtin with vector extension.
5290 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
5291 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
5292 Replace builtin with vector extension.
5293 * config/i386/xmmintrin.h (__m128_u): New type.
5294 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
5295 (_mm_load_ps, _mm_store_ps): Simplify.
5296
5297 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
5298
5299 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
5300
5301 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5302
5303 * diagnostic-show-locus.c (colorizer::begin_state): Support more
5304 than 3 ranges per diagnostic by alternating between color 1 and
5305 color 2.
5306 (layout::layout): Replace use of rich_location::MAX_RANGES
5307 with richloc->get_num_locations ().
5308 (layout::calculate_line_spans): Replace use of
5309 rich_location::MAX_RANGES with m_layout_ranges.length ().
5310 (layout::print_annotation_line): Handle arbitrary numbers of
5311 ranges in caret-printing by defaulting to '^'.
5312 (selftest::test_one_liner_many_fixits): New function.
5313 (test_diagnostic_show_locus_one_liner): Call it.
5314 * diagnostic.c (diagnostic_initialize): Update for renaming
5315 of rich_location::MAX_RANGES to
5316 rich_location::STATICALLY_ALLOCATED_RANGES.
5317 * diagnostic.h (struct diagnostic_context): Likewise.
5318
5319 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5320
5321 * selftest.c (selftest::named_temp_file::named_temp_file): New
5322 ctor.
5323 (selftest::temp_source_file::~temp_source_file): Move to...
5324 (selftest::named_temp_file::~named_temp_file): ...here.
5325 (selftest::test_named_temp_file): New function.
5326 (selftest::selftest_c_tests): Call test_named_temp_file.
5327 * selftest.h (class named_temp_file): New class.
5328 (class temp_source_file): Convert to a subclass of named_temp_file.
5329
5330 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
5331
5332 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
5333 USEs of LR_REGNO in returns and sibcalls.
5334 (rs6000_output_mi_thunk): Similar.
5335 (rs6000_sibcall_aix): Similar.
5336 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
5337 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
5338 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
5339 Remove the USE of LR_REGNO from the patterns as well. Delete an
5340 obsolete comment.
5341 (return_internal_<mode>): Delete.
5342
5343 2016-08-30 Tamar Christina <tamar.christina@arm.com>
5344
5345 * gcc/config/aarch64/aarch64-simd.md
5346 (aarch64_ld2<mode>_dreg_le): New.
5347 (aarch64_ld2<mode>_dreg_be): New.
5348 (aarch64_ld2<mode>_dreg): Removed.
5349 (aarch64_ld3<mode>_dreg_le): New.
5350 (aarch64_ld3<mode>_dreg_be): New.
5351 (aarch64_ld3<mode>_dreg): Removed.
5352 (aarch64_ld4<mode>_dreg_le): New.
5353 (aarch64_ld4<mode>_dreg_be): New.
5354 (aarch64_ld4<mode>_dreg): Removed.
5355 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
5356
5357 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5358
5359 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
5360 redundant location param.
5361 (test_one_liner_fixit_remove): Likewise.
5362 (test_one_liner_fixit_replace): Likewise.
5363 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
5364 * gcc-rich-location.c
5365 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
5366 get_range_from_loc. Drop overload taking a const char *.
5367 * gcc-rich-location.h
5368 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
5369 a const char *.
5370
5371 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5372
5373 * config/linux.c (linux_libc_has_function): Return true on musl.
5374
5375 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5376
5377 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
5378
5379 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
5380
5381 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
5382 used for abnormal egdes.
5383
5384 2016-08-30 Jakub Jelinek <jakub@redhat.com>
5385
5386 PR tree-optimization/72866
5387 * tree-vect-patterns.c (search_type_for_mask): Turn into
5388 a small wrapper, move all code to ...
5389 (search_type_for_mask_1): ... this new function. Add caching
5390 and adjust recursive calls.
5391
5392 PR debug/77363
5393 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
5394 instead of lookup_type_die (type_main_variant (type)) even for array
5395 types.
5396
5397 PR middle-end/77377
5398 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
5399 constant pool reference return x instead of c.
5400
5401 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
5402
5403 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
5404 include MQ.
5405
5406 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5407
5408 * input.c
5409 (selftest::test_make_location_nonpure_range_endpoints): Fix
5410 header comment.
5411
5412 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5413
5414 * diagnostic-show-locus.c
5415 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
5416 function.
5417 (selftest::test_diagnostic_show_locus_one_liner): Call it.
5418 * input.c (get_pure_location): Move to libcpp/line-map.c.
5419 * input.h (get_pure_location): Convert decl to an inline function
5420 calling implementation in libcpp.
5421
5422 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
5423
5424 PR target/77403
5425 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
5426 template for intel asm dialect.
5427 (vec_set_hi_<mode><mask_name>): Ditto.
5428
5429 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5430
5431 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
5432 (selftest::fail_formatted): Likewise.
5433
5434 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5435
5436 * input.c (make_location): Call get_start and get_finish
5437 on the endpoints to avoid storing packed ranges or ad-hoc
5438 ranges in them.
5439 (selftest::test_make_location_nonpure_range_endpoints): New function.
5440 (selftest::input_c_tests): Call it.
5441 * input.h (get_start): New inline function.
5442
5443 2016-08-29 Tom de Vries <tom@codesourcery.com>
5444
5445 PR c/77398
5446 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
5447 with assert.
5448
5449 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
5450
5451 * Makefile.in (gcov-iov.h): Add dummy recipe.
5452
5453 2016-08-29 Nathan Sidwell <nathan@acm.org>
5454
5455 * config/nvptx/nvptx.c: #include tree-vrp.h.
5456
5457 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
5458
5459 PR target/77324
5460 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
5461 HIGH+LO construct during reload.
5462
5463 2016-08-28 Tom de Vries <tom@codesourcery.com>
5464
5465 PR lto/70955
5466 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
5467 'sysv_abi va_list' attribute.
5468 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
5469 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
5470 attributes.
5471
5472 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5473
5474 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
5475 * emit-rtl.c (unshare_all_rtl_1): Adjust.
5476 (unshare_all_rtl_again): Likewise.
5477 * function.c (assign_stack_local_1): Likewise.
5478 (assign_stack_temp_for_type): Likewise.
5479
5480 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5481
5482 * cfgbuild.c (make_edges): Adjust.
5483 * cfgrtl.c (can_delete_label_p): Likewise.
5484 * dwarf2cfi.c (create_trace_edges): Likewise.
5485 * except.c (sjlj_emit_dispatch_table): Likewise.
5486 * function.h (struct expr_status): make x_forced_labels a vector.
5487 * jump.c (rebuild_jump_labels_1): Adjust.
5488 * reload1.c (set_initial_label_offsets): Likewise.
5489 * stmt.c (force_label_rtx): Likewise.
5490 (expand_label): Likewise.
5491
5492 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5493
5494 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
5495
5496 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
5497
5498 PR tree-optimization/71077
5499 PR tree-optimization/68542
5500 * fold-const.c (fold_relational_const): Fix folding of
5501 VECTOR_CST comparisons that have a scalar boolean result type.
5502 (selftest::test_vector_folding): New static function.
5503 (selftest::fold_const_c_tests): Call it.
5504
5505 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
5506
5507 * doc/extend.texi (SPU Built-in Functions): Remove stale
5508 references to material formerly at IBM and Sony.
5509
5510 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
5511
5512 PR target/77349
5513 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
5514
5515 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5516
5517 * diagnostic-show-locus.c
5518 (selftest::test_fixit_consolidation): New function.
5519 (selftest::diagnostic_show_locus_c_tests): Call it.
5520 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
5521 constructor based on source_range.
5522
5523 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5524
5525 * diagnostic-color.c (color_dict): Add "fixit-insert" and
5526 "fixit-delete".
5527 (parse_gcc_colors): Update description of default GCC_COLORS.
5528 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
5529 (colorizer::set_fixit_insert): New method.
5530 (colorizer::set_fixit_delete): New method.
5531 (colorizer::get_color_by_name): New method.
5532 (colorizer::STATE_FIXIT_INSERT): New constant.
5533 (colorizer::STATE_FIXIT_DELETE): New constant.
5534 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
5535 fields in favor of new field "m_stop_color". Add fields
5536 "m_fixit_insert" and "m_fixit_delete".
5537 (colorizer::colorizer): Update for above changes. Replace
5538 colorize_start calls with calls to get_color_by_name.
5539 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
5540 STATE_FIXIT_DELETE. Update for field renamings.
5541 (colorizer::finish_state): Simplify by using m_stop_color,
5542 rather than multiple identical "*_ce" fields.
5543 (colorizer::get_color_by_name): New method.
5544 (layout::print_any_fixits): Print insertions and replacements
5545 using the "fixit-insert" color, and deletions using the
5546 "fixit-delete" color.
5547 * doc/invoke.texi (-fdiagnostics-color): Update description of
5548 default GCC_COLORS, and of the supported capabilities.
5549
5550 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
5551
5552 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
5553 current_function_static_stack_size variable with the static
5554 stack frame size of the current function when
5555 flag_stack_usage_info is enabled.
5556
5557 2016-08-26 Nathan Sidwell <nathan@acm.org>
5558
5559 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
5560 assignment inside if condition.
5561
5562 2016-08-26 Richard Biener <rguenther@suse.de>
5563
5564 PR tree-optimization/69047
5565 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
5566 extracts similar to what FRE does.
5567 (non_rewritable_mem_ref_base): Likewise.
5568
5569 2016-08-26 Joseph Myers <joseph@codesourcery.com>
5570
5571 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
5572 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5573 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5574 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5575 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
5576 Likewise.
5577 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5578 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5579 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5580 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
5581 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5582
5583 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5584
5585 PR target/70473
5586 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
5587 reservation duration to 15 cycles.
5588 (cortex_a8_vfp_macs): Likewise.
5589 (cortex_a8_vfp_macd): Likewise.
5590 (cortex_a8_vfp_divs): Likewise.
5591 (cortex_a8_vfp_divd): Likewise.
5592
5593 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5594
5595 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5596 (aarch_macro_fusion_pair_p): Use above to avoid early return.
5597
5598 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5599 Martin Jambhor <mjambor@suse.cz>
5600
5601 * common.opt: New option -fipa-bit-cp.
5602 * doc/invoke.texi: Document -fipa-bit-cp.
5603 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5604 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5605 * tree-ssa-ccp.h: New header file.
5606 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5607 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5608 Replace all occurences of tree parameter by two new params: signop, int.
5609 (bit_value_unop_1): Change to bit_value_unop and export it.
5610 Replace all occurences of tree parameter by two new params: signop,
5611 int.
5612 (bit_value_binop): Change call from bit_value_binop_1 to
5613 bit_value_binop.
5614 (bit_value_assume_aligned): Likewise.
5615 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5616 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5617 to ccp_finalize.
5618 (ccp_finalize): Skip processing if val->mask == 0.
5619 * ipa-cp.c: Include tree-ssa-ccp.h
5620 (ipcp_bits_lattice): New class.
5621 (ipcp_param_lattice (bits_lattice): New member.
5622 (print_all_lattices): Call ipcp_bits_lattice::print.
5623 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5624 (initialize_node_lattices): Likewise.
5625 (propagate_bits_accross_jump_function): New function.
5626 (propagate_constants_accross_call): Call
5627 propagate_bits_accross_jump_function.
5628 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5629 (ipcp_store_bits_results): New function.
5630 (ipcp_driver): Call ipcp_store_bits_results.
5631 * ipa-prop.h (ipa_bits): New struct.
5632 (ipa_jump_func): Add new member bits of type ipa_bits.
5633 (ipa_param_descriptor): Change decl to decl_or_type.
5634 (ipa_get_param): Change decl to decl_or_type and assert on
5635 PARM_DECL.
5636 (ipa_get_type): New function.
5637 (ipcp_transformation_summary): New member bits.
5638 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5639 (ipa_populate_param_decls): Likewise.
5640 (ipa_dump_param): Likewise.
5641 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5642 function.
5643 (ipa_set_jf_unknown): Set ipa_bits::known to false.
5644 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5645 propagation.
5646 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5647 (ipa_write_jump_function): Add streaming for ipa_bits.
5648 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5649 (write_ipcp_transformation_info): Add streaming for ipa_bits
5650 summary for ltrans.
5651 (read_ipcp_transfomration_info): Add support for reading streamed
5652 ipa_bits.
5653 (ipcp_update_bits): New function.
5654 (ipcp_transform_function): Call ipcp_update_bits.
5655
5656 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5657
5658 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5659 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5660
5661 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
5662
5663 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5664
5665 2016-08-25 Richard Biener <rguenther@suse.de>
5666
5667 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5668 Only add locations in late dwarf.
5669 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5670 (dwarf2out_early_finish): But do it here.
5671
5672 2016-08-24 Michael Collison <michael.collison@linaro.org>
5673 Michael Collison <michael.collison@arm.com>
5674
5675 * config/arm/arm-modes.def: Add new condition code mode CC_V
5676 to represent the overflow bit.
5677 * config/arm/arm.c (maybe_get_arm_condition_code):
5678 Add support for CC_Vmode.
5679 (arm_gen_unlikely_cbranch): New function to generate common
5680 rtl conditional branches for overflow patterns.
5681 * config/arm/arm-protos.h: Add prototype for
5682 arm_gen_unlikely_cbranch.
5683 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5684 addsi3_compareV_upper): New patterns to support signed
5685 builtin overflow add operations.
5686 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5687 New patterns to support unsigned builtin add overflow operations.
5688 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5689 builtin overflow subtract operations,
5690 (usubv<mode>4): New patterns to support unsigned builtin subtract
5691 overflow operations.
5692 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5693 to support builtin overflow negate operations.
5694
5695 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5696
5697 Revert
5698 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5699
5700 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5701 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5702 needed.
5703
5704 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5705
5706 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5707 MULTILIB_OPTIONS should be used. Small wording fixes.
5708 * genmultilib: Memorize set of all option combinations in
5709 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
5710 found in MULTILIB_OPTIONS by checking if option set is listed in
5711 combination_space. Output new and existing error message to stderr.
5712
5713 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5714
5715 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5716 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5717 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5718 (MULTILIB_REUSE): Remove reuse rules for option set including
5719 -mfpu=fp-armv8 and -mfpu=vfpv4
5720
5721 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
5722
5723 * config/arm/t-rtems: Add vfp multilib.
5724
5725 2016-08-23 Ian Lance Taylor <iant@golang.org>
5726
5727 * config/s390/s390.c (s390_asm_file_start): Call
5728 default_file_start.
5729
5730 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5731
5732 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5733 initialization of all 0's to the 0 constant, instead of directly
5734 generating XOR. Add support for V4SImode vector initialization on
5735 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5736 initialization. Change variables used in V4SFmode vector
5737 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5738 any memory addresses are in index form. Add support for using
5739 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5740 with all of the same element.
5741 (regno_or_subregno): New helper function to return a register
5742 number for either REG or SUBREG.
5743 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5744 Use regno_or_subregno where possible.
5745 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5746 DImode value from two SImode values in order to generate V4SImode
5747 vector initialization on 64-bit systems with direct move.
5748 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5749 initialization.
5750 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5751 swappable.
5752 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5753 declaration.
5754 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5755 attributes to initialize V8HImode and V16QImode vectors with the
5756 same element.
5757 (VSX_SPLAT_COUNT): Likewise.
5758 (VSX_SPLAT_SUFFIX): Likewise.
5759 (UNSPEC_VSX_VEC_INIT): New unspec.
5760 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5761 Allow SFmode values to come from Altivec registers.
5762 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5763 on 64-bit systems with direct move.
5764 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5765 vector initializations, to allow V4SImode vector initializations
5766 on 64-bit systems with direct move.
5767 (vsx_splat_v4si): Likewise.
5768 (vsx_splat_v4si_di): Likewise.
5769 (vsx_splat_v4sf): Likewise.
5770 (vsx_splat_v4sf_internal): Likewise.
5771 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5772 register classes.
5773 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5774 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5775 initializing V8HImode and V16QImode vectors with the same
5776 element.
5777 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5778 optimization if -maltivec=be.
5779
5780 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5781
5782 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5783 attribute for alternatives 3 and 4.
5784
5785 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5786
5787 * selftest.c (selftest::assert_str_contains): New function.
5788 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5789 * selftest.h (selftest::assert_str_contains): New decl.
5790 (ASSERT_STR_CONTAINS): New macro.
5791
5792 2016-08-23 Richard Biener <rguenther@suse.de>
5793
5794 PR tree-optimization/77286
5795 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5796 the CFG here.
5797 (vect_transform_loop): Split exit edges of loop and scalar
5798 loop if required and at the appropriate time.
5799
5800 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5801
5802 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5803 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5804 needed.
5805 Correct a typo in a comment.
5806
5807 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5808
5809 * config/s390/s390.md ("*andc_split"): New splitter for and with
5810 complement.
5811
5812 2016-08-23 Richard Biener <rguenther@suse.de>
5813
5814 PR tree-optimization/27336
5815 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5816 by looking for a non-EH edge.
5817 (process_assert_insertions_for): Likewise.
5818
5819 2016-08-23 Richard Biener <rguenther@suse.de>
5820
5821 PR middle-end/77305
5822 * statistics.c (statistics_counter_event): Robustify against
5823 NULL current_pass.
5824
5825 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5826
5827 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5828 for targets amdfam10 and barcelona.
5829
5830 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5831
5832 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5833 (zero_extend<mode>di2): Ditto.
5834 (*zero_extend<mode>si2): Ditto.
5835 (*zero_extendqihi2): Ditto.
5836
5837 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5838
5839 PR middle-end/77269
5840 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5841 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5842
5843 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5844
5845 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5846 identical consecutive elements.
5847 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5848 the node's def stmt, avoid printing an unwanted trailing newline by
5849 replacing the call to print_gimple_stmt() with its inlined body and
5850 adjusting it to not set pp_needs_newline and to call pp_flush()
5851 instead of pp_newline_and_flush().
5852
5853 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5854
5855 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5856 (float32_type_node, float64_type_node, float32x_type_node)
5857 (float128x_type_node): New macros.
5858 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5859 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5860 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5861 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5862 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5863 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5864 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5865 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5866 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5867 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5868 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5869 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5870 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5871 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5872 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5873 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5874 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5875 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5876 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5877 and copysign.
5878 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5879 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5880 * doc/extend.texi (Other Builtins): Document these built-in
5881 functions.
5882 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5883 for nan and nans.
5884
5885 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5886
5887 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5888
5889 2016-08-22 Richard Biener <rguenther@suse.de>
5890
5891 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5892
5893 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5894
5895 PR target/77270
5896 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5897 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5898 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5899
5900 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5901
5902 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5903 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5904 (vrp_visit_switch_stmt): Likewise.
5905 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5906 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5907 (vrp_visit_stmt): Use extract_range_from_stmt.
5908 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5909
5910 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5911
5912 * Makefile.in: Add tree-vrp.h to GTFILES.
5913 * gengtype.c (open_base_files): Add tree-vrp.h.
5914 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5915 * builtins.c: Likewise.
5916 * fold-const.c: Likewise.
5917 * gimple-builder.c: Likewise.
5918 * gimple-laddress.c: Likewise.
5919 * hsa-gen.c: Likewise.
5920 * internal-fn.c: Likewise.
5921 * ssa.h: Likewise.
5922 * targhooks.c: Liewise,
5923 * tree-ssa-address.c: Likewise.
5924 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5925 * tree-vrp.c (struct value_range): Move to tree-vrp.h
5926 * tree-vrp.h: New file.
5927
5928 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5929
5930 PR tree-optimization/61839
5931 * tree-vrp.c (two_valued_val_range_p): New.
5932 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5933 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5934 Also Convert VAR BINOP CST where VAR is two-valued to
5935 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5936
5937 2016-08-19 David Malcolm <dmalcolm@redhat.com>
5938
5939 * diagnostic-show-locus.c
5940 (layout::annotation_line_showed_range_p): New method.
5941 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5942 Reimplement case fixit_hint::REPLACE to cover removals, and
5943 replacements where the range of the replacement isn't one
5944 of the ranges in the rich_location.
5945 (test_one_liner_fixit_replace): Likewise.
5946 (selftest::test_one_liner_fixit_replace_non_equal_range): New
5947 function.
5948 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5949 New function.
5950 (selftest::test_diagnostic_show_locus_one_liner): Call the new
5951 functions.
5952 * diagnostic.c (print_parseable_fixits): Remove case
5953 fixit_hint::REMOVE.
5954
5955 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
5956
5957 PR target/77270
5958 * config/i386/i386.c (ix86_option_override_internal): Remove
5959 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5960 Enable SSE prefetch also for TARGET_PREFETCHWT1.
5961 Do not try to enable TARGET_PRFCHW ISA flag here.
5962 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5963 Rewrite expander function body.
5964 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5965
5966 2016-08-19 Joseph Myers <joseph@codesourcery.com>
5967
5968 PR c/32187
5969 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5970 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5971 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5972 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5973 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5974 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5975 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5976 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5977 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5978 tree_index values.
5979 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5980 macros.
5981 (struct floatn_type_info): New structure type.
5982 (floatn_nx_types): New variable declaration.
5983 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
5984 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
5985 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
5986 * tree.c (floatn_nx_types): New variable.
5987 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
5988 corresponding complex types.
5989 * target.def (floatn_mode): New hook.
5990 * targhooks.c: Include "real.h".
5991 (default_floatn_mode): New function.
5992 * targhooks.h (default_floatn_mode): New prototype.
5993 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
5994 types.
5995 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
5996 effective-target and dg-add-options keywords.
5997 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
5998 Document new effective-target keywords.
5999 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
6000 * doc/tm.texi: Regenerate.
6001 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
6002 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
6003 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
6004 18661-3.
6005 * real.h (struct real_format): Add field ieee_bits.
6006 * real.c (ieee_single_format, mips_single_format)
6007 (motorola_single_format, spu_single_format, ieee_double_format)
6008 (mips_double_format, motorola_double_format)
6009 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
6010 (ieee_extended_intel_128_format)
6011 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
6012 (mips_extended_format, ieee_quad_format, mips_quad_format)
6013 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
6014 (decimal_double_format, decimal_quad_format, ieee_half_format)
6015 (arm_half_format, real_internal_format: Initialize ieee_bits
6016 field.
6017 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
6018 float128_type_node. Set float80_type_node to float64x_type_node
6019 if appropriate and long_double_type_node not appropriate.
6020 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
6021 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
6022 Initialize ieee_bits field.
6023 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
6024 (rs6000_init_builtins): Set ieee128_float_type_node to
6025 float128_type_node.
6026 (rs6000_floatn_mode): New function.
6027
6028 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6029
6030 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6031 _rdseed64_step): Uglify argument names and/or local variable names
6032 in inline functions.
6033 * config/i386/rtmintrin.h (_xabort): Likewise.
6034 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
6035 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
6036 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
6037 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
6038 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
6039 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
6040 _mm_maskz_ternarylogic_epi32): Likewise.
6041 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
6042 __lwpins32, __lwpins64): Likewise.
6043 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
6044 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
6045 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
6046 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
6047 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
6048 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
6049 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
6050 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
6051 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
6052 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
6053 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
6054 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
6055 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
6056 _mm256_mask_i64gather_epi32): Likewise.
6057 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6058 * config/i386/ia32intrin.h (__writeeflags): Likewise.
6059 * config/i386/pkuintrin.h (_wrpkru): Likewise.
6060 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
6061 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
6062 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
6063 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
6064 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
6065 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
6066 _mm512_mask_prefetch_i64scatter_ps): Likewise.
6067 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6068 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
6069 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
6070 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
6071 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
6072 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
6073 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
6074 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
6075
6076 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
6077 returning void.
6078 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
6079 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
6080 Likewise.
6081 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
6082 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
6083 function name.
6084 (_rdpkru_u32): Add space after function name.
6085
6086 * config/i386/t-i386 (i386-c.o): Don't depend on
6087 i386-builtin-types.inc.
6088 (i386.o): Depend on i386-builtin-types.inc.
6089
6090 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
6091
6092 PR target/77281
6093 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
6094 Use const_vec_duplicate to check for duplicated elements.
6095
6096 2016-08-19 Richard Biener <rguenther@suse.de>
6097
6098 PR tree-optimization/77290
6099 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6100 Fix flag_tree_parallelize_loops check.
6101
6102 2016-08-19 Richard Biener <rguenther@suse.de>
6103
6104 * match.pd (x | 0 -> x): Add.
6105
6106 2016-08-19 Richard Biener <rguenther@suse.de>
6107
6108 PR tree-optimization/77286
6109 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6110 Deal with virtual PHIs being out-of-order.
6111
6112 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6113
6114 * doc/invoke.texi (fverbose-asm): Note that source code lines
6115 are emitted, and provide an example.
6116 * final.c (asm_show_source): New function.
6117 (final_scan_insn): Call asm_show_source.
6118
6119 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6120
6121 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
6122 param with diagnostic_kind.
6123 (class colorizer): Similarly replace field m_diagnostic with
6124 m_diagnostic_kind.
6125 (colorizer::colorizer): Replace diagnostic
6126 param with diagnostic_kind.
6127 (colorizer::begin_state): Update for above field change.
6128 (layout::layout): Replace diagnostic param with rich_location *
6129 and diagnostic_kind.
6130 (diagnostic_show_locus): Replace diagnostic param with richloc
6131 and diagnostic_kind.
6132 (class selftest::test_diagnostic_context): New class.
6133 (selftest::test_diagnostic_show_locus_unknown_location): New
6134 function.
6135 (selftest::test_one_liner_simple_caret): New function.
6136 (selftest::test_one_liner_caret_and_range): New function.
6137 (selftest::test_one_liner_multiple_carets_and_ranges): New
6138 function.
6139 (selftest::test_one_liner_fixit_remove): New function.
6140 (selftest::test_one_liner_fixit_replace): New function.
6141 (selftest::test_diagnostic_show_locus_one_liner): New function.
6142 (selftest::diagnostic_show_locus_c_tests): Call the new test
6143 functions.
6144 * diagnostic.c (diagnostic_initialize): Initialize
6145 colorize_source_p, show_ruler_p and parseable_fixits_p.
6146 (default_diagnostic_finalizer): Update for change to
6147 diagnostic_show_locus.
6148 (diagnostic_append_note): Likewise.
6149 * diagnostic.h (diagnostic_show_locus): Replace
6150 const diagnostic_info * param with location * and diagnostic_t.
6151
6152 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6153
6154 * input.c (saved_line_table): New global.
6155 (class selftest::temp_line_table): Rename to line_table_test and
6156 move declaration to selftest.h, and drop field m_old_line_table.
6157 (selftest::temp_line_table::temp_line_table): Rename ctor to...
6158 (selftest::line_table_test::line_table_test): ...this. Add a
6159 default ctor. Store current value of line_table within
6160 saved_line_table.
6161 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
6162 (selftest::line_table_test::~line_table_test): ...this, and
6163 restore line_table from the saved_line_table, rather than
6164 m_old_line_table.
6165 (selftest::test_accessing_ordinary_linemaps): Update for above
6166 renaming.
6167 (selftest::test_lexer): Likewise.
6168 (struct selftest::lexer_test): Likewise.
6169 (selftest::lexer_test::lexer_test): Likewise.
6170 (selftest::input_c_tests): Move the looping over test cases from
6171 here into...
6172 (selftest::for_each_line_table_case): New function.
6173 * input.h (saved_line_table): New decl.
6174 * selftest.h (struct selftest::line_table_case): New forward decl.
6175 (class selftest::line_table_test): New class, moved here from
6176 selftest::temp_line_table in input.c, and renamed.
6177 (selftest::for_each_line_table_case): New decl.
6178
6179 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
6180
6181 PR target/72839
6182 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6183
6184 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6185
6186 PR middle-end/70895
6187 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
6188 enclosing parallel construct for reduction variables on OpenACC loop
6189 directives.
6190
6191 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
6192
6193 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
6194 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
6195 -gdwarf-3.
6196 (function_to_dwarf_procedure): Update comment.
6197
6198 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6199
6200 * input.c (diagnostics_file_cache_forcibly_evict_file): New
6201 function.
6202 * input.h (diagnostics_file_cache_forcibly_evict_file): New
6203 declaration.
6204 * selftest.c (selftest::temp_source_file::~temp_source_file):
6205 Evict m_filename from the diagnostic file cache.
6206
6207 2016-08-18 Richard Biener <rguenther@suse.de>
6208
6209 * tree-pass.h (make_pass_materialize_all_clones): Declare.
6210 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
6211 make_pass_materialize_all_clones): New simple IPA pass encapsulating
6212 clone materialization.
6213 * passes.def (all_late_ipa_passes): Start with
6214 pass_materialize_all_clones.
6215 * cgraphunit.c (symbol_table::compile): Remove call to
6216 materialize_all_clones.
6217 * tree-into-ssa.c: Include statistics.h.
6218 (update_ssa): Count number of times we do incremental/rewrite
6219 SSA update.
6220
6221 2016-08-18 Richard Biener <rguenther@suse.de>
6222
6223 PR tree-optimization/77282
6224 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6225 When doing auto-parallelizing also prevent use of PHIs that
6226 carry dependences across loop backedges.
6227
6228 2016-08-18 Tamar Christina <tamar.christina@arm.com>
6229 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6230
6231 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
6232
6233 2016-08-18 Richard Biener <rguenther@suse.de>
6234
6235 * ssa-iterators.h (ssa_vuse_operand): New inline.
6236 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
6237 (predicate_all_scalar_phis): Use remove_phi_node to remove
6238 phi nodes predicated. Delay removing virtual PHIs.
6239 (predicate_mem_writes): Update virtual operands.
6240 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
6241 (tree_if_conversion): Do not rewrite virtual SSA form.
6242 * tree-phinodes.c (release_phi_node): Make static.
6243 * tree-phinodes.h (release_phi_node): Remove.
6244
6245 2016-08-18 Jakub Jelinek <jakub@redhat.com>
6246
6247 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
6248 codes that appear in bdesc_* arrays, instead include i386-builtin.def
6249 twice to define those.
6250 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
6251 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
6252 bdesc_multi_arg): Define by including i386-builtin.def the third time.
6253 * config/i386/i386-builtin.def: New file.
6254
6255 2016-08-17 David Malcolm <dmalcolm@redhat.com>
6256
6257 * input.c (get_source_range_for_char): Rename to...
6258 (selftest::get_source_range_for_char): ...this, and move within
6259 the #if CHECKING_P guard.
6260 (get_num_source_ranges_for_substring): Rename to...
6261 (selftest::get_num_source_ranges_for_substring): ...this, move
6262 within the #if CHECKING_P guard, and make static.
6263 (selftest::assert_num_substring_ranges): Initialize
6264 actual_num_ranges.
6265
6266 2016-08-18 Alan Modra <amodra@gmail.com>
6267
6268 PR rtl-optimization/72771
6269 * reload.c (find_reloads): Don't assume that a subreg mem is OK
6270 when find_reloads_toplev returns address_reloaded==-1.
6271 (alternative_allows_const_pool_ref): Update comment.
6272
6273 2015-08-17 Alan Hayward <alan.hayward@arm.com>
6274
6275 PR tree-optimization/71752
6276 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
6277 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
6278
6279 2016-08-17 Jakub Jelinek <jakub@redhat.com>
6280
6281 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
6282 instead of testing ECF_NORETURN bit in gimple_call_flags.
6283 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
6284 * predict.c (tree_bb_level_predictions): Likewise.
6285 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
6286
6287 PR middle-end/77259
6288 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
6289 turning a call into __builtin_unreachable-like noreturn call, adjust
6290 gimple_call_set_fntype.
6291 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
6292 gimple_call_fntype has void return type.
6293
6294 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
6295
6296 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
6297 maybe_lookup_decl, to handle nested acc loop directives.
6298
6299 2016-08-17 Richard Biener <rguenther@suse.de>
6300
6301 PR tree-optimization/76490
6302 * tree-vrp.c (update_value_range): Preserve overflow infinities
6303 when intersecting with ranges from get_range_info.
6304 (operand_less_p): Handle overflow infinities correctly.
6305 (value_range_constant_singleton): Use vrp_operand_equal_p
6306 to handle overflow max/min correctly.
6307 (vrp_valueize): Likewise.
6308 (union_ranges): Likewise.
6309 (intersect_ranges): Likewise.
6310 (vrp_visit_phi_node): Improve iteration limitation to only
6311 apply when we'll possibly re-visit the PHI via a changed argument
6312 on the backedge.
6313
6314 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6315
6316 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
6317 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
6318 rather than those that should not be built.
6319
6320 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
6321
6322 PR target/66488
6323 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
6324
6325 2016-08-17 Richard Biener <rguenther@suse.de>
6326
6327 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
6328 (verify_vssa): New function verifying virtual SSA form.
6329 (verify_ssa): Call it.
6330 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
6331 Do not apply loop-closed SSA handling to virtuals.
6332 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
6333 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
6334 when rewriting their symbol.
6335 (prepare_def_site_for): Likewise.
6336 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
6337 operands of moved stmts.
6338
6339 2016-08-17 Richard Biener <rguenther@suse.de>
6340
6341 PR tree-optimization/23855
6342 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
6343 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
6344 find guards to hoist. Do not update SSA form but rewrite virtuals
6345 into loop closed SSA.
6346 (find_loop_guard): Adjust to skip already hoisted guards. Do
6347 not mark virtuals for renaming or update SSA form.
6348
6349 2016-08-17 Martin Liska <mliska@suse.cz>
6350
6351 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
6352 a LONG_LONG_TYPE_SIZE comparison.
6353 * gcov-io.h: Remove macro definitions.
6354 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
6355 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
6356 comparison.
6357
6358 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6359
6360 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
6361 that builtins not mentioned in bdesc_* arrays come first, then
6362 the ones mentioned in bdesc_* arrays in the order they appear in
6363 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
6364 IX86_BUILTIN__BDESC_*_LAST enumerator.
6365 (bdesc_mpx): Fix up a comment typo.
6366 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
6367 __builtin_ia32_vpcomneu[bwdq] builtins.
6368 (BDESC_VERIFY, BDESC_VERIFYS): Define.
6369 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
6370 enum ix86_builtins ordering.
6371 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
6372 for direct bdesc_* array member access instead of searching all the
6373 arrays until an fcode match is found.
6374
6375 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
6376
6377 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
6378 pattern as define_insn_and_split. Split insn before reload to
6379 ashl<mode>3_1.
6380 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
6381 <shift_insn><mode>3_1.
6382 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
6383 <rotate_insn><mode>3_1.
6384
6385 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6386
6387 PR c/72857
6388 * input.c (get_source_range_for_substring): Rename to...
6389 (get_source_location_for_substring): ...this, adding param
6390 "caret_idx", and converting output param from source_range * to
6391 location_t *.
6392 (get_source_range_for_char): New function.
6393 (get_num_source_ranges_for_substring): Update comment to reflect
6394 above renaming.
6395 (assert_char_at_range): Update to use get_source_range_for_char
6396 rather than get_source_range_for_substring.
6397 (test_lexer_string_locations_concatenation_2): Likewise.
6398 * substring-locations.h (get_source_range_for_substring): Rename
6399 to...
6400 (get_source_location_for_substring): ...this, and adding param
6401 "caret_idx", and converting output param from source_range * to
6402 location_t *.
6403
6404 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6405
6406 * input.c (class selftest::temp_source_file): Move to
6407 selftest.h.
6408 (selftest::temp_source_file::temp_source_file): Move to
6409 selftest.c.
6410 (selftest::temp_source_file::~temp_source_file): Likewise.
6411 * selftest.c (selftest::temp_source_file::temp_source_file): Move
6412 here from input.c.
6413 (selftest::temp_source_file::~temp_source_file): Likewise.
6414 * selftest.h (class selftest::temp_source_file): Move here from
6415 input.c
6416
6417 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6418
6419 PR target/71910
6420 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
6421 inlining, add cgraph edge for the added __builtin_unreachable call.
6422
6423 PR middle-end/67485
6424 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
6425 only cast it to SHWI for the final comparison.
6426
6427 2016-08-16 Martin Liska <mliska@suse.cz>
6428
6429 PR gcov-profile/36412
6430 * doc/gcov.texi: Document --hash-filenames(-x).
6431 * gcov.c (print_usage): Add the option.
6432 (process_args): Process the option, sort options alphabetically.
6433 (md5sum_to_hex): New function.
6434 (make_gcov_file_name): Do the md5sum and append it to a
6435 filename.
6436
6437 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6438
6439 PR tree-optimization/69848
6440 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
6441 and swtich operands to avoid additional NOT instruction.
6442 (vcond<v_cmp_mixed><mode>): Ditto.
6443 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6444
6445 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
6446
6447 * doc/install.texi (*-*-solaris2*): Adjust latest change.
6448
6449 2016-08-16 Richard Biener <rguenther@suse.de>
6450
6451 PR tree-optimization/76783
6452 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
6453 BB visited flags at start.
6454
6455 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6456
6457 PR tree-optimization/72817
6458 PR tree-optimization/73450
6459 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
6460 multiple_of_p for adjusted IV.base.
6461
6462 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
6463
6464 PR target/72867
6465 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
6466 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
6467 for !flag_finite_math_only or flag_signed_zeros.
6468 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
6469 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
6470 depend on flag_finite_math_only.
6471 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6472 New insn pattern.
6473 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
6474 (*ieee_smin<mode>3): Ditto.
6475 (*ieee_smax<mode>3): Ditto.
6476 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
6477 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
6478 flag_signed_zeros.
6479 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
6480 depend on flag_finite_math_only.
6481 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
6482 (*mmx_<code>v2sf3): Remove.
6483 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
6484 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
6485 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
6486
6487 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
6488
6489 PR rtl-optimization/73650
6490 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
6491 it is not a simple move.
6492
6493 2016-08-15 Martin Liska <mliska@suse.cz>
6494
6495 PR driver/72765
6496 * gcc.c (do_spec_1): Call save_string with the right size.
6497 (save_string): Do an assert about string we copy.
6498
6499 2016-08-15 Richard Biener <rguenther@suse.de>
6500
6501 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
6502 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
6503 TV_MACH_DEP.
6504 (pass_data_stv): Likewise.
6505
6506 2016-08-15 Richard Biener <rguenther@suse.de>
6507
6508 PR tree-optimization/73434
6509 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
6510 TBAA info on the base when forwarding a non-invariant address.
6511
6512 2016-08-15 Jakub Jelinek <jakub@redhat.com>
6513
6514 * dwarf2out.c (struct checksum_attributes): Add
6515 at_string_length_bit_size and at_string_length_byte_size fields.
6516 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
6517 and DW_AT_string_length_byte_size.
6518 (die_checksum_ordered): Handle at_string_length_bit_size and
6519 at_string_length_byte_size.
6520 (gen_array_type_die): For dwarf_version >= 5 emit
6521 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6522 (adjust_string_types): For dwarf_version >= 5 remove
6523 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6524 (resolve_addr): Likewise.
6525
6526 PR debug/71906
6527 * dwarf2out.c (string_types): New variable.
6528 (gen_array_type_die): Change early_dwarf handling of
6529 DW_AT_string_length, create DW_OP_call4 referencing the
6530 length var temporarily. Handle parameters that are pointers
6531 to string length.
6532 (adjust_string_types): New function.
6533 (gen_subprogram_die): Temporarily set string_types to local var,
6534 call adjust_string_types if needed.
6535 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
6536 New functions.
6537 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
6538
6539 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
6540
6541 * doc/install.texi (*-*-solaris2*): Fix version number and document
6542 requirement on GNU make for building libjava with the Solaris linker.
6543
6544 2016-08-15 Martin Liska <mliska@suse.cz>
6545 Jakub Jelinek <jakub@redhat.com>
6546
6547 PR tree-optimization/72824
6548 * tree-loop-distribution.c (const_with_all_bytes_same)
6549 <case VECTOR_CST>: Fix a typo.
6550
6551 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
6552
6553 PR target/76342
6554 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
6555 Renamed from _mm512_undefined_si512.
6556 (_mm_undefined_si512): New definition.
6557
6558 2016-08-13 Richard Biener <rguenther@suse.de>
6559
6560 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
6561 into PHIs and update the lattice for its def.
6562
6563 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6564
6565 PR c/71512
6566 * ubsan.c (instrument_si_overflow): Pass true instead of false
6567 to gsi_replace.
6568 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
6569 of bbs. Return TODO_cleanup_cfg if any returned true.
6570
6571 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6572
6573 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
6574 ISA 3.0 MTVSRDD instruction.
6575 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
6576 vecperm.
6577
6578 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
6579
6580 PR tree-optimization/71083
6581 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
6582 bitfield access when possible.
6583
6584 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
6585
6586 PR middle-end/71654
6587 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
6588 sign-changing cast from a shorter unsigned type to a wider
6589 signed type.
6590
6591 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6592
6593 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6594 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6595 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6596
6597 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6598
6599 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6600 Correct costs for vec_construct.
6601
6602 2016-08-12 Bin Cheng <bin.cheng@arm.com>
6603
6604 PR tree-optimization/69848
6605 * tree-vectorizer.h (enum vect_def_type): New condition reduction
6606 type CONST_COND_REDUCTION.
6607 * tree-vect-loop.c (vectorizable_reduction): Support new condition
6608 reudction type CONST_COND_REDUCTION.
6609
6610 2016-08-12 Richard Biener <rguenther@suse.de>
6611
6612 PR tree-optimization/57326
6613 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6614 returning an SSA name.
6615 (phi_translate_1): When fully_constant_expression returns a NAME
6616 make sure we have a leader for it.
6617
6618 2016-08-12 Martin Liska <mliska@suse.cz>
6619 Adam Fineman <afineman@afineman.com>
6620
6621 * gcov.c (process_file): Create .gcov file when .gcda
6622 file is missing.
6623
6624 2016-08-12 Marek Polacek <polacek@redhat.com>
6625
6626 PR c/7652
6627 * alias.c (find_base_value): Adjust fall through comment.
6628 * cfgexpand.c (expand_debug_expr): Likewise.
6629 * combine.c (find_split_point): Likewise.
6630 (expand_compound_operation): Likewise. Add FALLTHRU.
6631 (make_compound_operation): Adjust fall through comment.
6632 (canon_reg_for_combine): Add FALLTHRU.
6633 (force_to_mode): Adjust fall through comment.
6634 (simplify_shift_const_1): Likewise.
6635 (simplify_comparison): Likewise.
6636 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6637 FALLTHRU.
6638 * config/aarch64/predicates.md: Likewise.
6639 * config/i386/i386.c (function_arg_advance_32): Likewise.
6640 (ix86_gimplify_va_arg): Likewise.
6641 (print_reg): Likewise.
6642 (ix86_print_operand): Likewise.
6643 (ix86_build_const_vector): Likewise.
6644 (ix86_expand_branch): Likewise.
6645 (ix86_sched_init_global): Adjust fall through comment.
6646 (ix86_expand_args_builtin): Add FALLTHRU.
6647 (ix86_expand_builtin): Likewise.
6648 (ix86_expand_vector_init_one_var): Likewise.
6649 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6650 (rs6000_adjust_cost): Likewise.
6651 (insn_must_be_first_in_group): Likewise.
6652 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
6653 * dbxout.c (dbxout_symbol): Adjust fall through comment.
6654 * df-scan.c (df_uses_record): Likewise.
6655 * dojump.c (do_jump): Add FALLTHRU.
6656 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
6657 comment.
6658 (resolve_args_picking_1): Adjust fall through comment.
6659 (loc_list_from_tree_1): Likewise.
6660 * expmed.c (make_tree): Likewise.
6661 * expr.c (expand_expr_real_2): Add FALLTHRU.
6662 (expand_expr_real_1): Likewise. Adjust fall through comment.
6663 * fold-const.c (const_binop): Adjust fall through comment.
6664 (fold_truth_not_expr): Likewise.
6665 (fold_cond_expr_with_comparison): Add FALLTHRU.
6666 (fold_binary_loc): Likewise.
6667 (contains_label_1): Adjust fall through comment.
6668 (multiple_of_p): Likewise.
6669 * gcov-tool.c (process_args): Add FALLTHRU.
6670 * genattrtab.c (check_attr_test): Likewise.
6671 (write_test_expr): Likewise.
6672 * genconfig.c (walk_insn_part): Likewise.
6673 * genpreds.c (validate_exp): Adjust fall through comment.
6674 (needs_variable): Likewise.
6675 * gensupport.c (get_alternatives_number): Add FALLTHRU.
6676 (subst_dup): Likewise.
6677 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6678 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6679 (gimplify_scan_omp_clauses): Add FALLTHRU.
6680 (goa_stabilize_expr): Likewise.
6681 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6682 through comment.
6683 * hsa-gen.c (get_address_from_value): Likewise.
6684 * ipa-icf.c (sem_function::hash_stmt): Likewise.
6685 * ira.c (ira_setup_alts): Add FALLTHRU.
6686 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6687 comment.
6688 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6689 * opts.c (common_handle_option): Likewise.
6690 * read-rtl.c (read_rtx_code): Likewise.
6691 * real.c (round_for_format): Likewise.
6692 * recog.c (asm_operand_ok): Likewise.
6693 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6694 * reload1.c (set_label_offsets): Likewise.
6695 (eliminate_regs_1): Likewise.
6696 (reload_reg_reaches_end_p): Likewise.
6697 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6698 (rtx_cost): Likewise.
6699 * sched-rgn.c (is_exception_free): Likewise.
6700 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6701 * stor-layout.c (int_mode_for_mode): Likewise.
6702 * toplev.c (print_to_asm_out_file): Likewise.
6703 (print_to_stderr): Likewise.
6704 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6705 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6706 (chrec_fold_multiply): Likewise.
6707 (evolution_function_is_invariant_rec_p): Likewise.
6708 (for_each_scev_op): Likewise.
6709 * tree-data-ref.c (siv_subscript_p): Likewise.
6710 (get_references_in_stmt): Likewise.
6711 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6712 (substitute_in_expr): Likewise.
6713 (type_cache_hasher::equal): Likewise.
6714 (walk_type_fields): Likewise.
6715 * var-tracking.c (adjust_mems): Add FALLTHRU.
6716 (set_dv_changed): Adjust fall through comment.
6717 * varasm.c (default_function_section): Add FALLTHRU.
6718
6719 2016-08-12 Marek Polacek <polacek@redhat.com>
6720
6721 PR c/7652
6722 * tree-complex.c (expand_complex_division): Add missing break.
6723
6724 2016-08-12 Richard Biener <rguenther@suse.de>
6725
6726 * passes.c (execute_todo): Do not push/pop TV_TODO.
6727 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6728 (execute_one_pass): Likewise.
6729 * common.opt (ftime-report-details): New switch.
6730 * doc/invoke.texi (ftime-report-details): Document.
6731 * timevar.h (timer::print_row): Adjust signature.
6732 (timer::all_zero): New static helper.
6733 (timer::child_map_t): New typedef.
6734 (timer::time_var_def): Add children field.
6735 * timevar.c (timer::named_items::print): Adjust.
6736 (timer::~timer): Free timevar recorded children.
6737 (timer::pop_internal): When -ftime-report-details record
6738 time spent in sub-timevars.
6739 (timer::print_row): Adjust.
6740 (timer::print): Print sub-timevar stats, use all_zero.
6741 * timevar.def (TV_TODO): Remove.
6742
6743 2016-08-12 Richard Biener <rguenther@suse.de>
6744
6745 PR tree-optimization/72851
6746 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6747 worklists to use bitmaps indexed in execution order.
6748 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6749 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6750 (cfg_blocks): Make a bitmap.
6751 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6752 New globals.
6753 (cfg_blocks_empty_p): Adjust.
6754 (cfg_blocks_add): Likewise.
6755 (cfg_blocks_get): Likewise.
6756 (add_ssa_edge): Likewise.
6757 (add_control_edge): Likewise.
6758 (simulate_stmt): Likewise.
6759 (process_ssa_edge_worklist): Likewise.
6760 (simulate_block): Likewise.
6761 (ssa_prop_init): Compute PRE order and stmt UIDs.
6762 (ssa_prop_fini): Adjust.
6763 (ssa_propagate): Adjust.
6764
6765 2016-08-12 Richard Biener <rguenther@suse.de>
6766
6767 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6768 the currently executable edges have fixed ranges. Always
6769 go through update_value_range.
6770
6771 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6772
6773 PR debug/63240
6774 * langhooks-def.h
6775 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6776 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6777 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6778 (LANG_HOOKS_DECLS): Add it.
6779 * langhooks.h (struct lang_hooks_for_decls): Add
6780 function_decl_defaulted. Const_tree-ify
6781 function_decl_explicit_p and function_decl_deleted_p.
6782 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6783 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6784 also at strict DWARF v5.
6785
6786 PR debug/55641
6787 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6788 TYPE_QUAL_CONST in reference-typed decls.
6789
6790 PR debug/49366
6791 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6792 in DW_OP_pieces, just enough to handle pointers to member
6793 functions.
6794 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6795 expression on DWARFv5 if a constant value doesn't work.
6796
6797 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6798
6799 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6800 * selftest.c (selftest::test_assertions): New function.
6801 (selftest::selftest_c_tests): New function.
6802 * selftest.h (selftest::selftest_c_tests): New declaration.
6803
6804 2016-08-11 Richard Biener <rguenther@suse.de>
6805 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6806
6807 PR rtl-optimization/72855
6808 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6809
6810 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6811
6812 PR target/72863
6813 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6814 (vsx_store_<mode>): Likewise.
6815
6816 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6817
6818 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6819 TImode CONST_WIDE_INT store.
6820 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6821
6822 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6823
6824 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6825 mode if unaligned SSE load and store are optimal.
6826
6827 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6828
6829 PR tree-optimization/71083
6830 * tree-predcom.c (ref_at_iteration): Correctly align the
6831 reference type.
6832
6833 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6834
6835 * config/s390/s390-builtin-types.def: Add INT128 types.
6836 * config/s390/s390-builtins.def: Add INT128 variants for the add
6837 sub low-level builtins dealing with TImode.
6838 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6839 via subreg when expanding a builtin.
6840 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6841 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6842 Fix comment.
6843 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6844 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6845 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6846 "vacc<bhfgq>_<mode>".
6847 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6848 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6849 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6850 "vscbi<bhfgq>_<mode>".
6851 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6852 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6853
6854 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6855
6856 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6857
6858 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6859
6860 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6861 unused declaration.
6862 (vcond<v_cmp_mixed><mode>): Ditto.
6863 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6864
6865 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6866
6867 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6868 variable explicitly, also assert on it before use.
6869
6870 2016-08-11 Richard Biener <rguenther@suse.de>
6871
6872 PR tree-optimization/72772
6873 * cfgloopmanip.c (create_preheader): Use split_edge if there
6874 is a single loop entry, avoiding degenerate PHIs.
6875
6876 2016-08-11 Richard Biener <rguenther@suse.de>
6877
6878 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6879 unconditional TODO_cleanup_cfg.
6880 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6881 cleanup only if we threaded a jump.
6882
6883 2016-08-11 Alan Modra <amodra@gmail.com>
6884
6885 PR target/71680
6886 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6887 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6888 slow. Emit two reloads for slow mem case, first loading in
6889 fast innermode, then converting to required mode.
6890
6891 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6892
6893 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6894 (vec_extract_sig): New macro.
6895 (vec_insert_exp): New macro.
6896 (vec_test_data_class): New macro.
6897 (scalar_extract_exp): New macro.
6898 (scalar_extract_sig): New macro.
6899 (scalar_insert_exp): New macro.
6900 (scalar_test_data_class): New macro.
6901 (scalar_test_neg): New macro.
6902 (scalar_cmp_exp_gt): New macro.
6903 (scalar_cmp_exp_lt): New macro.
6904 (scalar_cmp_exp_eq): New macro.
6905 (scalar_cmp_exp_unordered): New macro.
6906 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6907 to enforce constraint that operand is a 7-bit unsigned literal.
6908 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6909 for power9 built-ins.
6910 (BU_P9V_VSX_2): Likewise.
6911 (BU_P9V_64BIT_VSX_2): Likewise.
6912 (VSEEDP): Add scalar extract exponent support.
6913 (VSEESP): Add scalar extract signature support.
6914 (VSTDCNDP): Add scalar test negative support.
6915 (VSTDCNSP): Likewise.
6916 (VSIEDP): Add scalar insert exponent support.
6917 (VSCEDPGT): Add scalar compare exponent greater than support.
6918 (VSCEDPLT): Add scalar compare exponent less than support.
6919 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6920 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6921 (VSTDCDP): Add scalar test data class support.
6922 (VSTDCSP): Likewise.
6923 (VSEEDP): Add overload support for scalar extract exponent
6924 operation.
6925 (VSESDP): Add overload support for scalar extract signature
6926 operation.
6927 (VSTDCN): Add overload support for scalar test negative
6928 operation.
6929 (VSTDCNDP): Add overload support for scalar test negative
6930 operation.
6931 (VSTDCNSP): Add overload support for scalar test negative
6932 operation.
6933 (VSIEDP): Add overload support for scalar insert exponent
6934 operation.
6935 (VSTDC): Add overload support for scalar test data class
6936 operation.
6937 (VSTDCDP): Add overload support for scalar test data class
6938 operation.
6939 (VSTDCSP): Add overload support for scalar test data class
6940 opreation.
6941 (VSCEDPGT): Add overload support for scalar compare exponent
6942 greater than operation.
6943 (VSCEDPLT): Add overload support for scalar compare exponent
6944 less than operation.
6945 (VSCEDPEQ): Add overload support for scalar compare exponent
6946 test-for-equality operation.
6947 (VSCEDPUO): Add overload support for scalar compare exponent
6948 test-for-unordered operation.
6949 (VEEDP): Add vector extract exponent support.
6950 (VEESP): Likewise.
6951 (VESDP): Add vector extract significand support.
6952 (VESSP): Likewise.
6953 (VIEDP): Add vector insert exponent support.
6954 (VIESP): Likewise.
6955 (VTDCDP): Add vector test data class support.
6956 (VTDCSP): Likewise.
6957 (VES): Add overload support for vector extract significand operation.
6958 (VESDP): Likewise.
6959 (VESSP): Likewise
6960 (VEE): Add overload support for vector extract exponent operation.
6961 (VEEDP): Likewise.
6962 (VEESP): Likewise.
6963 (VTDC): Add overload support for vector test data class operation.
6964 (VTDCDP): Likewise.
6965 (VTDCSP): Likewise.
6966 (VIE): Add overload support for vector insert exponent operation.
6967 (VIEDP): Likewise.
6968 (VIESP): Likewise.
6969 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6970 overloaded binary floating point functions.
6971 (altivec_resolve_overloaded_builtin): Improve error messages to
6972 distinguish between functions not supported in the current
6973 compiler configuration and functions that were invoked with an
6974 invalid parameter combination, and include the built-in function
6975 name in both error messages.
6976 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6977 New prototype.
6978 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6979 function.
6980 (rs6000_expand_binop_builtin): Add check to enforce that argument
6981 2 of the test data class operations is a 7-bit unsigned literal.
6982 (rs6000_invalid_builtin): Add code to issue an error message if a
6983 built-in function that requires the power9_vector and -m32
6984 command-line options is compiled without these options.
6985 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
6986 (UNSPEC_VSX_SXSIGDP): New value.
6987 (UNSPEC_VSX_SXSIGPDP): New value.
6988 (UNSPEC_VSX_SIEXPDP): New value.
6989 (UNSPEC_VSX_SCMPEXPDP): New value.
6990 (UNSPEC_VSX_STSTDC): New value.
6991 (UNSPEC_VSX_VXEXP): New value.
6992 (UNSPEC_VSX_VXSIG): New value.
6993 (UNSPEC_VSX_VIEXP): New value.
6994 (UNSPEC_VSX_VTSTDC): New value.
6995 (xsxexpdp): New insn for scalar extract exponent.
6996 (xsxsigdp): New insn for scalar extract significand.
6997 (xsiexpdp): New insn for scalar insert exponent.
6998 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
6999 (*xscmpexpdp): New insn for scalar compare exponents.
7000 (xststdc<Fvsx): New expansion for both single- and
7001 double-precision scalar test data class operations.
7002 (xststdcneg<Fvsx>): New expansion for both single- and
7003 double-precision scalar test for negative value operations.
7004 (*xststdc<Fvsx>): New insn for scalar test data class
7005 operation.
7006 (xvxexp<VSs>): New insn for single- and double-precision
7007 vector extract exponent operation.
7008 (xvxsig<VSs>): New insn for single- and double-precision
7009 vector extract significand operation.
7010 (xviexp<VSs>): New insn for single- and double-precision
7011 vector insert exponent operation.
7012 (xvtstdc<VSs>): New insn for single- and double-precision
7013 vector test data class operation.
7014 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7015 built-in functions to represent the Power9 binary floating-point
7016 support instructions.
7017
7018 2016-08-10 bin cheng <bin.cheng@arm.com>
7019
7020 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
7021
7022 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7023 Renlin Li <renlin.li@arm.com>
7024 Bin Cheng <bin.cheng@arm.com>
7025
7026 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
7027 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
7028 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
7029 (aarch64_vcond_internal<mode><mode>): Delete pattern.
7030 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
7031 (vcond<v_cmp_result><mode>): Ditto.
7032 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
7033 (vcondu<mode><mode>): Ditto.
7034 (vcond<v_cmp_mixed><mode>): New pattern.
7035 (vcondu<mode><v_cmp_mixed>): New pattern.
7036 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
7037 of aarch64_vcond_internal.
7038
7039 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7040 Renlin Li <renlin.li@arm.com>
7041 Bin Cheng <bin.cheng@arm.com>
7042
7043 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
7044 (vec_cmp<mode><v_cmp_result>): New pattern.
7045 (vec_cmpu<mode><mode>): New pattern.
7046 (vcond_mask_<mode><v_cmp_result>): New pattern.
7047
7048 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7049
7050 PR tree-optimization/71734
7051 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
7052 REF_LOOP, invoke ref_indep_loop_p_1.
7053 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
7054 to ref_indep_loop_p.
7055 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
7056 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
7057 is inside LOOP, do not cache dpendence value for loops with
7058 non-zero SAFELEN.
7059 (ref_indep_loop_p_2): Delete function.
7060 (can_sm_ref_p): Pass LOOP as additional argument to
7061 ref_indep_loop_p.
7062
7063 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7064
7065 PR target/72853
7066 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
7067 being an offsettable address.
7068
7069 2016-08-10 Martin Liska <mliska@suse.cz>
7070
7071 PR gcov-profile/58306
7072 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
7073 atomic variants of profile update functions.
7074
7075 2016-08-10 Martin Liska <mliska@suse.cz>
7076
7077 Cherry picked (and modified) from google-4_7 branch
7078 2012-12-26 Rong Xu <xur@google.com>
7079 * common.opt (fprofile-update): Add new flag.
7080 * coretypes.h: Define enum profile_update.
7081 * doc/invoke.texi: Document -fprofile-update.
7082 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
7083 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
7084 * tree-profile.c (gimple_init_edge_profiler): Generate
7085 also atomic profiler update.
7086 (gimple_gen_edge_profiler): Likewise.
7087
7088 2016-08-10 David Malcolm <dmalcolm@redhat.com>
7089
7090 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
7091 stack_usage_file to NULL after fclose calls.
7092
7093 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7094
7095 PR target/71873
7096 * reload.c (push_reload): Compute subreg_in_class for
7097 subregs of constants and plus expressions. Remove special
7098 handling of SYMBOL_REFs.
7099
7100 2016-08-10 Alan Modra <amodra@gmail.com>
7101
7102 PR target/71680
7103 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
7104 SImode for TARGET_E500_DOUBLE when given SImode.
7105
7106 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
7107
7108 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
7109 unused variable __O.
7110
7111 2016-08-09 Martin Liska <mliska@suse.cz>
7112
7113 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
7114 _gcov_reset to __gcov_reset.
7115 * doc/gcov-tool.texi: Fix typo.
7116
7117 2016-08-09 Martin Liska <mliska@suse.cz>
7118
7119 * value-prof.c (gimple_divmod_values_to_profile): Do not
7120 instrument MOD histogram if a value is not a SSA name.
7121
7122 2016-08-09 Martin Liska <mliska@suse.cz>
7123
7124 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
7125 values.
7126
7127 2016-08-09 Renlin Li <renlin.li@arm.com>
7128
7129 PR middle-end/64971
7130 * calls.c (prepare_call_address): Convert funexp to Pmode when
7131 necessary.
7132 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
7133 (sibcall_value): Likewise.
7134
7135 2016-08-09 Marek Polacek <polacek@redhat.com>
7136
7137 PR c/7652
7138 * cselib.c (cselib_expand_value_rtx_1): Add return.
7139 * gengtype.c (dbgprint_count_type_at): Likewise.
7140 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
7141 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
7142
7143 2016-08-09 Martin Jambor <mjambor@suse.cz>
7144
7145 PR ipa/71981
7146 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
7147 if instance is a MEM_REF.
7148
7149 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
7150
7151 PR target/72843
7152 * config/i386/i386.md (*movtf_internal): Use
7153 lra_in_progress || reload_completed instead of !can_create_pseudo_p
7154 in the insn constraint.
7155 (*movxf_internal): Ditto.
7156 (*movdf_internal): Ditto.
7157 (*movsf_internal): Ditto.
7158
7159 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7160
7161 PR tree-optimization/72772
7162 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7163 for expanded base.
7164
7165 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7166
7167 PR tree-optimization/72772
7168 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
7169 parameter STOP.
7170 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
7171 parameter STOP and update calls. Move expand_simple_operations
7172 function call from here...
7173 (simplify_using_initial_conditions): ...to here. Delete parameter
7174 STOP.
7175 (tree_simplify_using_condition): Delete parameter STOP.
7176 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
7177 simplify_using_initial_conditions.
7178
7179 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
7180
7181 PR c/65345
7182 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
7183 Use create_tmp_var_raw instead of create_tmp_var.
7184
7185 2016-08-09 Richard Biener <rguenther@suse.de>
7186
7187 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
7188 Treat same SSA names related.
7189
7190 2016-08-09 Jakub Jelinek <jakub@redhat.com>
7191
7192 PR tree-optimization/72824
7193 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
7194 real_zerop is not negative.
7195
7196 2016-08-09 Richard Biener <rguenther@suse.de>
7197
7198 PR tree-optimization/71802
7199 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
7200 all merge opportunities with the predecessor.
7201
7202 2016-08-09 Richard Biener <rguenther@suse.de>
7203
7204 PR ipa/68273
7205 * ipa-prop.c (ipa_modify_formal_parameters): Build
7206 parameter types with natural alignment also for the
7207 over-aligned case.
7208
7209 2016-08-08 Andi Kleen <ak@linux.intel.com>
7210
7211 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
7212
7213 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7214
7215 PR c/64955
7216 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
7217 do-nothing langhook.
7218 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
7219 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
7220 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
7221 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
7222
7223 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7224
7225 PR bootstrap/72844
7226 * input.c: Ensure that HAVE_ICONV is defined.
7227
7228 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7229
7230 PR middle-end/72781
7231 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
7232 private vars for lastprivate and for linear iterator.
7233
7234 PR middle-end/68762
7235 * omp-simd-clone.c: Include varasm.h.
7236 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
7237 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
7238 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
7239 update function name.
7240
7241 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7242
7243 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
7244 (avr_diagnose_devicespecs_error): Remove.
7245 (avr_devicespecs_file): Remove composing absolute path for specfile
7246 and its verbose info. Remove conditions to check specs-file,
7247
7248 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7249
7250 PR rtl-optimization/72821
7251 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
7252 just return false for them.
7253
7254 2016-08-08 Alan Modra <amodra@gmail.com>
7255
7256 PR target/72771
7257 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
7258 toc refs created during reload. Update function comment.
7259
7260 2016-08-08 Alan Modra <amodra@gmail.com>
7261
7262 PR target/72802
7263 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
7264 alternatives. Put loads first, then stores, and reg/reg moves
7265 within same class later. Delete attr length.
7266
7267 2016-08-08 Alan Modra <amodra@gmail.com>
7268
7269 PR target/72802
7270 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
7271 (mem_operand_ds_form): New predicate.
7272 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
7273 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
7274 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
7275 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
7276 (extendsfdf2_fpr): Replace o constraint with wY.
7277
7278 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
7279
7280 * tree-ssa-threadbackward.c: Include tree-inline.h
7281 (profitable_jump_thread_path): Use estimate_num_insns to estimate
7282 size of copied block; for cold paths reduce duplication.
7283 (find_jump_threads_backwards): Remove redundant tests.
7284 (pass_thread_jumps::gate): Enable for -Os.
7285
7286 2016-08-07 Jakub Jelinek <jakub@redhat.com>
7287
7288 PR c/72816
7289 * stor-layout.c (layout_decl): Fix up formatting.
7290 (relayout_decl): Allow DECL to be FIELD_DECL.
7291
7292 2016-08-07 Alan Modra <amodra@gmail.com>
7293
7294 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
7295
7296 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7297
7298 * data-streamer-in.c (streamer_read_wide_int): New.
7299 (streamer_read_widest_int): Renamed function.
7300 * data-streamer-out.c (streamer_write_wide_int): New
7301 (streamer_write_widest_int): Renamed function.
7302 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
7303 data-stream-in.c.
7304 (input_cfg): Call renamed function.
7305 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
7306 data-stream-out.c.
7307 (output_cfg): Call renamed function.
7308 * data-streamer.h: Add declarations.
7309
7310 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7311
7312 * tree-ssa-ccp.c (extend_mask): New param sgn.
7313 Remove ORing with wi::mask.
7314 (get_default_value): Adjust call to extend_mask to pass sign.
7315 (evaluate_stmt): Likewise.
7316
7317 2016-08-06 Jakub Jelinek <jakub@redhat.com>
7318
7319 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
7320 INT64_MAX.
7321
7322 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7323
7324 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
7325 transform if operand's type is pointer to function or method.
7326
7327 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7328
7329 PR tree-optimization/18046
7330 * tree-ssa-threadedge.c: Include cfganal.h.
7331 (simplify_control_statement_condition): If simplifying a
7332 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
7333 with the dominating ASSERT_EXPR before handing it off to VRP.
7334 Mention that a CASE_LABEL_EXPR may be returned.
7335 (thread_around_empty_blocks): Adjust to handle
7336 simplify_control_statement_condition() returning a
7337 CASE_LABEL_EXPR.
7338 (thread_through_normal_block): Likewise.
7339 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
7340 a switch statement by trying to determine which case label
7341 will be taken.
7342
7343 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
7344
7345 PR rtl-optimization/69847
7346 * lra-constraints.c (process_invariant_for_inheritance): Save
7347 pattern instead of src.
7348 (remove_inheritance_pseudos): Use the pattern. Add assert.
7349
7350 2016-08-05 David Malcolm <dmalcolm@redhat.com>
7351
7352 * input.c (string_concat::string_concat): New constructor.
7353 (string_concat_db::string_concat_db): New constructor.
7354 (string_concat_db::record_string_concatenation): New method.
7355 (string_concat_db::get_string_concatenation): New method.
7356 (string_concat_db::get_key_loc): New method.
7357 (class auto_cpp_string_vec): New class.
7358 (get_substring_ranges_for_loc): New function.
7359 (get_source_range_for_substring): New function.
7360 (get_num_source_ranges_for_substring): New function.
7361 (class selftest::lexer_test_options): New class.
7362 (struct selftest::lexer_test): New struct.
7363 (class selftest::ebcdic_execution_charset): New class.
7364 (selftest::ebcdic_execution_charset::s_singleton): New variable.
7365 (selftest::lexer_test::lexer_test): New constructor.
7366 (selftest::lexer_test::~lexer_test): New destructor.
7367 (selftest::lexer_test::get_token): New method.
7368 (selftest::assert_char_at_range): New function.
7369 (ASSERT_CHAR_AT_RANGE): New macro.
7370 (selftest::assert_num_substring_ranges): New function.
7371 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
7372 (selftest::assert_has_no_substring_ranges): New function.
7373 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
7374 (selftest::test_lexer_string_locations_simple): New function.
7375 (selftest::test_lexer_string_locations_ebcdic): New function.
7376 (selftest::test_lexer_string_locations_hex): New function.
7377 (selftest::test_lexer_string_locations_oct): New function.
7378 (selftest::test_lexer_string_locations_letter_escape_1): New function.
7379 (selftest::test_lexer_string_locations_letter_escape_2): New function.
7380 (selftest::test_lexer_string_locations_ucn4): New function.
7381 (selftest::test_lexer_string_locations_ucn8): New function.
7382 (selftest::uint32_from_big_endian): New function.
7383 (selftest::test_lexer_string_locations_wide_string): New function.
7384 (selftest::uint16_from_big_endian): New function.
7385 (selftest::test_lexer_string_locations_string16): New function.
7386 (selftest::test_lexer_string_locations_string32): New function.
7387 (selftest::test_lexer_string_locations_u8): New function.
7388 (selftest::test_lexer_string_locations_utf8_source): New function.
7389 (selftest::test_lexer_string_locations_concatenation_1): New
7390 function.
7391 (selftest::test_lexer_string_locations_concatenation_2): New
7392 function.
7393 (selftest::test_lexer_string_locations_concatenation_3): New
7394 function.
7395 (selftest::test_lexer_string_locations_macro): New function.
7396 (selftest::test_lexer_string_locations_stringified_macro_argument):
7397 New function.
7398 (selftest::test_lexer_string_locations_non_string): New function.
7399 (selftest::test_lexer_string_locations_long_line): New function.
7400 (selftest::test_lexer_char_constants): New function.
7401 (selftest::input_c_tests): Call the new test functions once per
7402 case within the line_table test matrix.
7403 * input.h (struct string_concat): New struct.
7404 (struct location_hash): New struct.
7405 (class string_concat_db): New class.
7406 * substring-locations.h: New header.
7407
7408 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7409
7410 PR tree-optimization/72810
7411 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
7412 the type of the case labels when truncating.
7413
7414 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7415
7416 PR Target/72819
7417 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
7418 (aarch64_fp16_ptr_type_node): Likewise.
7419 * config/aarch64/aarch64-simd-builtins.c
7420 (aarch64_fp16_ptr_type_node): Define.
7421 (aarch64_init_fp16_types): New, refactored out of...
7422 (aarch64_init_builtins): ...here, update to call
7423 aarch64_init_fp16_types.
7424 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
7425 HFmode.
7426 (aapcs_vfp_sub_candidate): Likewise.
7427
7428 2016-08-05 Martin Liska <mliska@suse.cz>
7429 Joshua Cranmer <Pidgeot18@gmail.com>
7430
7431 * gcov.c (line_t::has_block): New function.
7432 (enum loop_type): New enum.
7433 (handle_cycle): New function.
7434 (unblock): Likewise.
7435 (circuit): Likewise.
7436 (get_cycles_count): Likewise.
7437 (accumulate_line_counts): Use new loop detection algorithm.
7438
7439 2016-08-05 Martin Liska <mliska@suse.cz>
7440
7441 * gcov.c (output_intermediate_file): Rename
7442 function_info::line_next to next_file_fn.
7443 (process_file): Likewise.
7444 (read_graph_file): Likewise.
7445 (accumulate_line_counts): Likewise.
7446 (output_lines): Likewise.
7447
7448 2016-08-05 Richard Biener <rguenther@suse.de>
7449
7450 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
7451 restriction on threading to a loop header.
7452
7453 2016-08-05 Richard Biener <rguenther@suse.de>
7454
7455 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
7456 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
7457 adjust loop info accordingly.
7458
7459 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7460
7461 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
7462 before folding call to __builtin_constant_p with parameters to false.
7463
7464 2016-08-05 Alan Modra <amodra@gmail.com>
7465
7466 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
7467 code accidentally committed 2016-05-02 providing class when given
7468 NO_REGS.
7469
7470 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7471
7472 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
7473 the case label ranges that partially overlap with OP's value
7474 range.
7475
7476 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
7477
7478 PR target/72805
7479 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
7480 Cast builtin function result to __mmask16 instead of __mmask8.
7481 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7482 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
7483 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7484
7485 2016-08-04 David Malcolm <dmalcolm@redhat.com>
7486
7487 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
7488 (ASSERT_TRUE_AT): New macro.
7489 (ASSERT_FALSE): Reimplement in terms of...
7490 (ASSERT_FALSE_AT): New macro.
7491 (ASSERT_STREQ_AT): Fix typo in comment.
7492
7493 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7494
7495 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
7496 labels are exhaustive, designate the label with the widest
7497 range to be the default label.
7498
7499 2016-08-04 Andrew Pinski <apinski@cavium.com>
7500
7501 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
7502 (thunderx_tunings): Use thunderx_vector_cost instead of
7503 generic_vector_cost.
7504
7505 2016-08-04 Martin Liska <mliska@suse.cz>
7506
7507 * gcov.c (main): Fix GNU coding style.
7508 (output_intermediate_file): Likewise.
7509 (process_file): Likewise.
7510 (generate_results): Likewise.
7511 (release_structures): Likewise.
7512 (create_file_names): Likewise.
7513 (find_source): Likewise.
7514 (read_graph_file): Likewise.
7515 (find_exception_blocks): Likewise.
7516 (canonicalize_name): Likewise.
7517 (make_gcov_file_name): Likewise.
7518 (mangle_name): Likewise.
7519 (accumulate_line_counts): Likewise.
7520 (output_branch_count): Likewise.
7521 (read_line): Likewise.
7522
7523 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7524
7525 PR rtl-optimization/71779
7526 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
7527 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
7528 or if it was truncated.
7529
7530 PR rtl-optimization/70903
7531 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
7532
7533 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7534
7535 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
7536 accessing SSA_NAME_PTR_INFO.
7537
7538 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7539
7540 PR 70677
7541 * common/config/avr/avr-common.c (avr_option_optimization_table)
7542 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
7543
7544 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7545
7546 PR 55181
7547 * config/avr/avr.md: New pattern to work around do_store_flag
7548 generating shift instructions for bit extractions.
7549
7550 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7551
7552 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
7553 BITMAP_ALLOC.
7554 (add_equivalence): Likewise.
7555 (get_value_range): Allocate value range with vrp_value_range_pool.
7556 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
7557 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
7558
7559 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
7560
7561 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
7562 the default for the rs6000 port.
7563
7564 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7565
7566 PR middle-end/71876
7567 * calls.c (special_function_p): Remove special handling of
7568 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
7569 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
7570 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
7571
7572 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
7573
7574 PR middle-end/72778
7575 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
7576 Don't stop on regular insns.
7577
7578 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
7579
7580 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
7581 size to DImode boundary.
7582 (nvptx_propagate): Likewise.
7583
7584 2016-08-03 Alan Modra <amodra@gmail.com>
7585
7586 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
7587 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
7588 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7589 from -mefficient-unaligned-vector. Note that this affects fp too.
7590
7591 2016-08-03 Alan Modra <amodra@gmail.com>
7592
7593 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7594 cost more.
7595
7596 2016-08-03 Alan Modra <amodra@gmail.com>
7597
7598 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7599 to a reg. Localize vars.
7600
7601 2016-08-03 Alan Modra <amodra@gmail.com>
7602
7603 * config/rs6000/rs6000.opt: Remove negatives from help strings
7604 and comments.
7605
7606 2016-08-03 Alan Modra <amodra@gmail.com>
7607
7608 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7609 Delete duplicated code.
7610
7611 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7612
7613 PR middle-end/72778
7614 * lra-spills.c (regno_in_use_p): New.
7615 (lra_final_code_change): Use it.
7616
7617 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7618
7619 PR rtl-optimization/69847
7620 * lra-int.h (struct lra-reg): Use restore_rtx instead of
7621 restore_regno.
7622 (lra_rtx_hash): New.
7623 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7624 of restore_regno.
7625 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7626 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7627 * lra-spills.c (lra_final_code_change): Don't delete insn when the
7628 next insn is USE with the same reg as the current insn source.
7629 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7630 of restore_regno.
7631 (lra_constraints_init): Call initiate_invariants.
7632 (lra_constraints_finish): Call finish_invariants.
7633 (struct invariant, invariant_t, invariant_ptr_t): New.
7634 (const_invariant_ptr_t, invariants, invariants_pool): New.
7635 (invariant_table, invariant_hash, invariant_eq_p): New.
7636 (insert_invariant, initiate_invariants, finish_invariants): New.
7637 (clear_invariants, invalid_invariant_regs): New.
7638 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7639 instead of restore_regno.
7640 (invariant_p, process_invariant_for_inheritance): New.
7641 (inherit_in_ebb): Implement invariant inheritance.
7642 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7643 (remove_inheritance_pseudos): Implement undoing invariant
7644 inheritance.
7645 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7646 instead of restore_regno.
7647 * lra-assigns.c (regno_live_length): New.
7648 (reload_pseudo_compare_func): Use regno_live_length.
7649 (assign_by_spills): Use restore_rtx instead of restore_regno.
7650 (lra_assign): Ditto. Initiate regno_live_length.
7651
7652 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
7653
7654 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7655 __builtin_aarch64_fmindf.
7656
7657 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7658
7659 PR tree-optimization/34114
7660 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7661 information for more control IVs.
7662
7663 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7664
7665 PR tree-optimization/34114
7666 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7667 PLUS_EXPR case. Handle SSA_NAME case.
7668
7669 2016-08-02 Tamar Christina <tamar.christina@arm.com>
7670
7671 * config/aarch64/aarch64-simd-builtins.def
7672 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7673 (__builtin_aarch64_fmaxdf): Likewise.
7674 (__builtin_aarch64_smin_nandf): Likewise.
7675 (__builtin_aarch64_smax_nandf): Likewise.
7676 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7677 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7678 (<fmaxmin><mode>3): ...this.
7679 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7680 (vminnm_f64): Likewise.
7681 (vmin_f64): Likewise.
7682 (vmax_f64): Likewise.
7683 * config/aarch64/iterators.md (FMAXMIN): Merge with...
7684 (FMAXMIN_UNS): ...this.
7685 (fmaxmin): Merged with
7686 (fmaxmin_op): ...this...
7687 (maxmin_uns_op): ...in to this.
7688
7689 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7690
7691 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7692 Add support for vec_extract on vector float, vector int, vector
7693 short, and vector char vector types.
7694 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7695 vector float, vector int, vector short, and vector char
7696 optimizations on 64-bit ISA 2.07 systems for both constant and
7697 variable element numbers.
7698 (rs6000_split_vec_extract_var): Likewise.
7699 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7700 Altivec registers on ISA 2.07 and above.
7701 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7702 which never was matched due to the split occuring before register
7703 allocation (and the code would not have worked on little endian
7704 systems if it did match). Allow extracts to go to the Altivec
7705 registers if ISA 2.07 (power8). Change from using "" around the
7706 C++ code to using {}'s.
7707 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7708 vec_extracts when the vector is in memory.
7709 (vsx_extract_v4sf_var): New insn to optimize vector float
7710 vec_extracts when the element number is variable on 64-bit ISA
7711 2.07 systems.
7712 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7713 for 64-bit ISA 2.07 as well as ISA 3.0.
7714 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7715 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7716 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7717 optimize vector int, vector short, and vector char vec_extracts
7718 when the vector is in memory.
7719 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7720 optimize vector int, vector short, and vector char vec_extracts
7721 when the element number is variable.
7722
7723 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7724
7725 PR target/71948
7726 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7727 does not overlap with other symbol flags.
7728
7729 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7730
7731 * config/aarch64/aarch64.h (aarch64_frame):
7732 Remove padding0 and hardfp_offset. Add locals_offset,
7733 initial_adjust, callee_adjust, callee_offset and final_adjust.
7734 * config/aarch64/aarch64.c (aarch64_layout_frame):
7735 Remove unused padding0 and hardfp_offset initializations.
7736 Choose frame layout and set frame variables accordingly.
7737 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7738 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7739 (aarch64_pop_regs): Likewise.
7740 (aarch64_expand_prologue): Remove all decision code, just emit
7741 prolog according to frame variables.
7742 (aarch64_expand_epilogue): Remove all decision code, just emit
7743 epilog according to frame variables.
7744 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7745
7746 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7747
7748 PR target/72748
7749 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7750 fix_debug_reg_uses after changing source register mode to
7751 V1TImode if source register is undefined.
7752
7753 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7754
7755 PR tree-optimization/71818
7756 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7757 with non invariant evolutions
7758
7759 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7760
7761 PR target/72767
7762 * config/avr/avr.md (length) [branch]: Correct insn length
7763 attribute for forward branches.
7764
7765 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7766
7767 * doc/extend.texi (AVR Built-in Functions): Document
7768 __builtin_avr_nops.
7769 * config/avr/builtins.def (NOPS): New.
7770 * config/avr/avr.c (avr_expand_nops): New static function.
7771 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7772
7773 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7774
7775 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7776 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7777 addresses.
7778
7779 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7780
7781 * config/aarch64/aarch64.c (vulcan_tunings): Update
7782 vulcan L1 cache_line_size.
7783
7784 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7785
7786 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7787 function that takes a vector memory address, a hard register, an
7788 element number and a temporary base register, and recreates an
7789 address that points to the appropriate element within the vector.
7790 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7791 (rs6000_split_vec_extract_var): Add support for the target of a
7792 vec_extract with variable element number being a scalar memory
7793 location.
7794 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7795 swappable.
7796 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7797 vsx_extract_<mode>_load insn with a new insn that optimizes
7798 storing either element to a memory location, using scratch
7799 registers to pick apart the vector and reconstruct the address.
7800 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7801 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7802 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7803 store instruction.
7804 (vsx_extract_<mode>_var): Add support for extracting a variable
7805 element number from memory.
7806
7807 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7808
7809 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7810 when testing for compares against constants of the form 0xabab.
7811
7812 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7813
7814 PR tree-optimization/57558
7815 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7816 function.
7817 (vect_loop_versioning): Support versioning with niter assumptions.
7818 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7819 (vect_get_loop_niters): New parameter. Reimplement to support
7820 assumptions in loop niter info.
7821 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7822 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7823 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7824 Support loop versioning for niters.
7825 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7826 (vect_free_loop_info_assumptions): New function.
7827 (vectorize_loops): Free loop niter info for loops with flag
7828 LOOP_F_ASSUMPTIONS set if vectorization failed.
7829 * tree-vectorizer.h (struct _loop_vec_info): New field
7830 num_iters_assumptions.
7831 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7832 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7833 (LOOP_REQUIRES_VERSIONING): New macro.
7834 (vect_free_loop_info_assumptions): New decl.
7835
7836 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7837
7838 * cfgloop.h (struct loop): New field constraints.
7839 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7840 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7841 functions.
7842 * cfgloop.c (alloc_loop): Initialize new field.
7843 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7844 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7845 Adjust niter analysis wrto loop constraints.
7846 * doc/loop.texi (@node Number of iterations): Add description for loop
7847 constraints.
7848
7849 2016-07-29 Marek Polacek <polacek@redhat.com>
7850
7851 PR c/7652
7852 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7853 (ix86_expand_round_builtin): Likewise.
7854
7855 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7856 Georg-Johann Lay <avr@gjlay.de>
7857
7858 PR rtl-optimization/71976
7859 * combine.c (get_last_value): Return 0 if the argument for which
7860 the function is called has a wider mode than the recorded value.
7861
7862 2016-07-29 Marek Polacek <polacek@redhat.com>
7863
7864 PR c/7652
7865 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7866 (altivec_expand_st_builtin): Likewise.
7867
7868 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7869
7870 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7871 introduced in r238381.
7872
7873 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7874
7875 PR middle-end/68217
7876 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7877 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7878
7879 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7880
7881 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7882 New declaration.
7883 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7884 Add support for vec_extract of vector double or vector long having
7885 a variable element number on 64-bit ISA 2.07 systems or newer.
7886 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7887 Likewise.
7888 (rs6000_split_vec_extract_var): New function to split a
7889 vec_extract built-in function with variable element number.
7890 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7891 swappable.
7892 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7893 (UNSPEC_VSX_EXTRACT): Likewise.
7894 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7895 direct move instructions to be generated on 64-bit ISA 2.07
7896 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7897 instruction.
7898 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7899 arguments for vec_extract variable element.
7900 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7901 vec_extract with variable element on V2DFmode and V2DImode
7902 vectors.
7903 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7904 -mupper-regs-df requirement, since it isn't needed.
7905 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7906 do direct moves on 64-bit systems, which allows optimization of
7907 vec_extract on 64-bit ISA 2.07 systems and newer.
7908
7909 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7910 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7911
7912 * config/aarch64/aarch64.md
7913 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7914 statement and type.
7915 (<optab>qihi2_aarch64): Likewise, and split into two.
7916 (extendqihi2_aarch64): New.
7917 (zero_extendqihi2_aarch64): New.
7918 * config/aarch64/iterators.md (ldrxt): Remove.
7919 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7920 uxtb/uxth.
7921
7922 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7923
7924 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7925
7926 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7927
7928 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7929 (aarch64_push_reg): New function to push 1 or 2 registers.
7930 (aarch64_pop_reg): New function to pop 1 or 2 registers.
7931 (aarch64_expand_prologue): Use aarch64_push_regs.
7932 (aarch64_expand_epilogue): Use aarch64_pop_regs.
7933
7934 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
7935
7936 PR tree-optimization/71734
7937 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7938 attribute instead of REF_LOOP and use it.
7939 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7940 set it for Loops having non-zero safelen attribute.
7941 (ref_indep_loop_p): Pass zero as initial value for safelen.
7942
7943 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
7944
7945 PR middle-end/72657
7946 PR target/72683
7947 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7948 call using chkp_gimple_call_builtin_p.
7949 (chkp_copy_bounds_for_assign): Likewise.
7950
7951 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7952
7953 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7954 * config/arm/arm-protos.h (struct tune_params): Likewise.
7955 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7956 (cortex_a9_sched_adjust_cost): Likewise.
7957 (fa726te_sched_adjust_cost): Likewise.
7958 (arm_adjust_cost): Likewise.
7959 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7960 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7961 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7962 * config/i386/i386.c (ix86_adjust_cost): Likewise.
7963 * config/ia64/ia64.c: Likewise.
7964 * config/m68k/m68k.c: Likewise.
7965 * config/mep/mep.c (mep_adjust_cost): Likewise.
7966 * config/microblaze/microblaze.c (microblaze_adjust_cost):
7967 * Likewise.
7968 * config/mips/mips.c (mips_adjust_cost): Likewise.
7969 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7970 * Likewise.
7971 * config/pa/pa.c (pa_adjust_cost): Likewise.
7972 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7973 (rs6000_debug_adjust_cost): Likewise.
7974 * config/sh/sh.c (sh_adjust_cost): Likewise.
7975 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7976 (hypersparc_adjust_cost): Likewise.
7977 (sparc_adjust_cost): Likewise.
7978 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7979 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7980 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7981 * Likewise.
7982 * config/visium/visium.c (visium_adjust_cost): Likewise.
7983 * doc/tm.texi: Regenerate.
7984 * haifa-sched.c (dep_cost_1): Adjust.
7985 * target.def: Merge adjust_cost and adjust_cost_2.
7986
7987 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7988
7989 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
7990
7991 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7992
7993 * store-motion.c (struct st_expr): Make pattern_regs a vector.
7994 (extract_mentioned_regs): Append to a vector instead of
7995 returning a rtx_expr_list.
7996 (st_expr_entry): Adjust.
7997 (free_st_expr_entry): Likewise.
7998 (store_ops_ok): Likewise.
7999 (store_killed_in_insn): Likewise.
8000 (find_moveable_store): Likewise.
8001
8002 2016-07-28 Martin Liska <mliska@suse.cz>
8003
8004 PR gcov-profile/68025
8005 * tree-profile.c (tree_profiling): Respect
8006 no_profile_instrument_function attribute.
8007 * doc/extend.texi: Document no_profile_instrument_function
8008 attribute.
8009
8010 2016-07-28 Martin Liska <mliska@suse.cz>
8011
8012 PR rtl-optimization/70944
8013 * combine.c (make_compound_operation):
8014 Do not allow make_compound_operation for vector mode
8015
8016 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
8017
8018 PR middle-end/71994
8019 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
8020 before calling get_ops.
8021
8022 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8023
8024 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
8025 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
8026 (BITS_PER_UNIT_LOG): Remove.
8027 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
8028 * expr.c (expand_assignment): Likewise.
8029 * stor-layout.c (initialize_sizetypes): Likewise.
8030
8031 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8032
8033 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
8034 signature of rs6000_expand_vector_extract so that the element
8035 number is a RTX instead of a constant integer.
8036 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
8037 Likewise.
8038 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
8039 (altivec_expand_vec_ext_builtin): Likewise.
8040 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
8041 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
8042 MFVSRLD instruction.
8043
8044 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8045
8046 * input.c (get_pure_location): Move here from tree.c.
8047 (make_location): Likewise. Add header comment.
8048 (selftest::test_accessing_ordinary_linemaps): Verify
8049 pure_location_p, make_location, get_location_from_adhoc_loc and
8050 get_range_from_loc.
8051 * input.h (get_pure_location): Move declaration here from tree.h.
8052 (get_finish): Likewise for inline function.
8053 (make_location): Likewise for declaration.
8054 * tree.c (get_pure_location): Move to input.c.
8055 (make_location): Likewise.
8056 * tree.h (get_pure_location): Move declaration to tree.h.
8057 (get_finish): Likewise for inline function.
8058 (make_location): Likewise for declaration.
8059
8060 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8061
8062 PR middle-end/71078
8063 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
8064
8065 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8066
8067 * system.h (STATIC_ASSERT): Use static_assert if building
8068 with C++11 onwards.
8069
8070 2016-07-27 Richard Biener <rguenther@suse.de>
8071
8072 PR tree-optimization/72517
8073 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8074 Revert change to not compute read-read dependences.
8075
8076 2016-07-27 Richard Biener <rguenther@suse.de>
8077
8078 * predict.c (set_even_probabilities): Make nedges unsigned.
8079
8080 2016-07-27 Martin Liska <mliska@suse.cz>
8081
8082 * predict.c (set_even_probabilities): Handle unlikely edges.
8083 (combine_predictions_for_bb): Likewise.
8084
8085 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8086
8087 PR target/71869
8088 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
8089 __float128 support when we don't have hardware support, so that
8090 the IEEE built-in functions like isgreater, first call __unordkf3
8091 to make sure neither operand is a NaN, and if both operands are
8092 ordered, do the normal comparison.
8093
8094 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8095
8096 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
8097 name.
8098 (extract_code_and_val_from_cond_with_ops): Verify that name is
8099 either cond_op0 or cond_op1.
8100
8101 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8102
8103 PR tree-optimization/18046
8104 * genmodes.c (emit_mode_size_inline): Emit an assert that
8105 verifies that mode is a valid array index.
8106 (emit_mode_nuinits_inline): Likewise.
8107 (emit_mode_inner_inline): Likewise.
8108 (emit_mode_unit_size_inline): Likewise.
8109 (emit_mode_unit_precision_inline): Likewise.
8110 * tree-vrp.c: Include params.h.
8111 (find_switch_asserts): Register edge assertions for the default
8112 label which correspond to the anti-ranges of each case label.
8113 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
8114 * doc/invoke.texi: Document it.
8115
8116 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8117
8118 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
8119 and unnecessary call to gimple_bb.
8120
8121 2016-07-26 Richard Biener <rguenther@suse.de>
8122
8123 PR rtl-optimization/71984
8124 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
8125 for VOIDmode.
8126
8127 2016-07-26 Richard Biener <rguenther@suse.de>
8128
8129 PR middle-end/72517
8130 * expmed.c (extract_bit_field_1): Constrain the vector mode
8131 with element size matching the extraction mode size when
8132 choosing a better vector mode to do the extraction from.
8133
8134 2016-07-26 Richard Biener <rguenther@suse.de>
8135 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8136
8137 PR middle-end/70920
8138 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
8139 pattern.
8140
8141 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8142
8143 * tree-ssa-structalias.c (struct scc_info): Change types of
8144 members to auto_sbitmap and auto_vec.
8145 (scc_info::scc_info): New constructor.
8146 (scc_info::~scc_info): New destructor.
8147 (init_scc_info): Remove.
8148 (free_scc_info): Remove.
8149 (find_indirect_cycles): Adjust.
8150 (perform_var_substitution): Likewise.
8151 (free_var_substitution_info): Likewise.
8152
8153 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8154
8155 * tree-outof-ssa.c (struct elim_graph): Change type of members
8156 to auto_vec and auto_sbitmap.
8157 (elim_graph::elim_graph): New constructor.
8158 (delete_elim_graph): Remove.
8159 (expand_phi_nodes): Adjust.
8160
8161 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8162
8163 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
8164 (new_elim_graph): Adjust.
8165 (clear_elim_graph): Likewise.
8166 (delete_elim_graph): Likewise.
8167 (elim_graph_size): Likewise.
8168 (elim_graph_add_node): Likewise.
8169 (elim_graph_add_edge): Likewise.
8170 (elim_graph_remove_succ_edge): Likewise.
8171 (eliminate_name): Likewise.
8172 (eliminate_build): Likewise.
8173 (elim_forward): Likewise.
8174 (elim_unvisited_predecessor): Likewise.
8175 (elim_backward): Likewise.
8176 (elim_create): Likewise.
8177 (eliminate_phi): Likewise.
8178 (expand_phi_nodes): Likewise.
8179
8180 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8181
8182 * bt-load.c (compute_out): Use auto_sbitmap class.
8183 (link_btr_uses): Likewise.
8184 * cfganal.c (mark_dfs_back_edges): Likewise.
8185 (post_order_compute): Likewise.
8186 (inverted_post_order_compute): Likewise.
8187 (pre_and_rev_post_order_compute_fn): Likewise.
8188 (single_pred_before_succ_order): Likewise.
8189 * cfgexpand.c (pass_expand::execute): Likewise.
8190 * cfgloop.c (verify_loop_structure): Likewise.
8191 * cfgloopmanip.c (fix_bb_placements): Likewise.
8192 (remove_path): Likewise.
8193 (update_dominators_in_loop): Likewise.
8194 * cfgrtl.c (break_superblocks): Likewise.
8195 * ddg.c (check_sccs): Likewise.
8196 (create_ddg_all_sccs): Likewise.
8197 * df-core.c (df_worklist_dataflow): Likewise.
8198 * dse.c (dse_step3): Likewise.
8199 * except.c (eh_region_outermost): Likewise.
8200 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8201 * gcse.c (prune_expressions): Likewise.
8202 (prune_insertions_deletions): Likewise.
8203 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
8204 * graph.c (draw_cfg_nodes_no_loops): Likewise.
8205 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
8206 * lcm.c (compute_earliest): Likewise.
8207 (compute_farthest): Likewise.
8208 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
8209 (unroll_loop_runtime_iterations): Likewise.
8210 (unroll_loop_stupid): Likewise.
8211 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8212 * lra-lives.c: Likewise.
8213 * lra.c (lra): Likewise.
8214 * modulo-sched.c (schedule_reg_moves): Likewise.
8215 (optimize_sc): Likewise.
8216 (get_sched_window): Likewise.
8217 (sms_schedule_by_order): Likewise.
8218 (check_nodes_order): Likewise.
8219 (order_nodes_of_sccs): Likewise.
8220 (order_nodes_in_scc): Likewise.
8221 * recog.c (split_all_insns): Likewise.
8222 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8223 * reload1.c (reload): Likewise.
8224 * sched-rgn.c (haifa_find_rgns): Likewise.
8225 (split_edges): Likewise.
8226 (compute_trg_info): Likewise.
8227 * sel-sched.c (init_seqno): Likewise.
8228 * store-motion.c (remove_reachable_equiv_notes): Likewise.
8229 * tree-into-ssa.c (update_ssa): Likewise.
8230 * tree-ssa-live.c (live_worklist): Likewise.
8231 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
8232 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8233 * Likewise.
8234 (try_peel_loop): Likewise.
8235 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
8236 * Likewise.
8237 * tree-ssa-pre.c (compute_antic): Likewise.
8238 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8239 * tree-stdarg.c (reachable_at_most_once): Likewise.
8240 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
8241 * var-tracking.c (vt_find_locations): Likewise.
8242
8243 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8244
8245 * sbitmap.h (auto_sbitmap): New class.
8246
8247 2016-07-26 Alan Modra <amodra@gmail.com>
8248
8249 PR target/72103
8250 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
8251 sri->t_icode.
8252
8253 2016-07-25 David Malcolm <dmalcolm@redhat.com>
8254
8255 * input.c (selftest::temp_source_file::temp_source_file): Fix
8256 missing "%s" in fprintf.
8257
8258 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
8259
8260 PR middle-end/71732
8261 * cselib.c (cselib_process_insn): Invalidate argument slots for
8262 const/pure calls.
8263
8264 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8265
8266 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
8267 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
8268 vmulxh_lane_f16, vmulxh_laneq_f16): New.
8269
8270 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8271
8272 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8273 * config/aarch64/aarch64.md (fma, fnma): Support HF.
8274 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
8275
8276 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8277
8278 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8279 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
8280 New.
8281 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
8282 (add<mode>3): Likewise.
8283 (sub<mode>3): Likewise.
8284 (mul<mode>3): Likewise.
8285 (div<mode>3): Likewise.
8286 (*div<mode>3): Likewise.
8287 (<fmaxmin><mode>3): Extend to HF.
8288 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
8289 (fabd<mode>3): Likewise.
8290 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
8291 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
8292 (aarch64_fmulx<mode>): Likewise.
8293 (aarch64_fac<optab><mode>): Likewise.
8294 (aarch64_frecps<mode>): Likewise.
8295 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
8296 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
8297 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
8298 (VSDQ_HSDI): Support HI.
8299 (fcvt_target, FCVT_TARGET): Likewise.
8300 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
8301 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
8302 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
8303 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
8304 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
8305 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
8306 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
8307 vrsqrtsh_f16): New.
8308
8309 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8310
8311 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
8312 * config/aarch64/aarch64-builtins.c (hi_UP): New.
8313 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8314 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
8315 mode.
8316 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8317 (aarch64_cm<optab><mode>): Likewise.
8318 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
8319 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
8320 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
8321 (sqrt<mode>2): Likewise.
8322 (*sqrt<mode>2): Likewise.
8323 (abs<mode>2): Likewise.
8324 (<optab><mode>hf2): New pattern for HF mode.
8325 (<optab>hihf2): Likewise.
8326 * config/aarch64/arm_neon.h: Include arm_fp16.h.
8327 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
8328 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
8329 Support HF mode.
8330 * config/aarch64/arm_fp16.h: New file.
8331 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
8332 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
8333 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
8334 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
8335 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
8336 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
8337 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
8338 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
8339 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
8340 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
8341 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
8342 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
8343 vsqrth_f16): New.
8344
8345 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8346
8347 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
8348 reduc_smin_scal_): Use VDQIF_F16.
8349 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
8350 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
8351 Use VHSDF.
8352 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
8353 * config/aarch64/iterators.md (VDQIF_F16): New.
8354 (vp): Support HF modes.
8355 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
8356 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
8357
8358 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8359
8360 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
8361 "*aarch64_mulx_elt_from_dup<mode>".
8362 (*aarch64_mul3_elt<mode>): Update schedule type.
8363 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
8364 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
8365 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8366 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
8367 (f, fp): Support HF modes.
8368 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
8369 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
8370 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
8371 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
8372 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
8373 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
8374
8375 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8376
8377 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8378 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
8379 modes.
8380 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
8381 vfmsq_f16): New.
8382
8383 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8384
8385 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8386 * config/aarch64/aarch64-simd.md
8387 (aarch64_rsqrts<mode>): Extend to HF modes.
8388 (fabd<mode>3): Likewise.
8389 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
8390 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
8391 (aarch64_<maxmin_uns>p<mode>): Likewise.
8392 (<su><maxmin><mode>3): Likewise.
8393 (<maxmin_uns><mode>3): Likewise.
8394 (<fmaxmin><mode>3): Likewise.
8395 (aarch64_faddp<mode>): Likewise.
8396 (aarch64_fmulx<mode>): Likewise.
8397 (aarch64_frecps<mode>): Likewise.
8398 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
8399 (add<mode>3): Extend to HF modes.
8400 (sub<mode>3): Likewise.
8401 (mul<mode>3): Likewise.
8402 (div<mode>3): Likewise.
8403 (*div<mode>3): Likewise.
8404 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
8405 HF, V4HF and V8HF.
8406 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
8407 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
8408 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
8409 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
8410 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
8411 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
8412 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
8413 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
8414 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
8415 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
8416 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
8417 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
8418 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
8419 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
8420
8421 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8422
8423 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
8424 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8425 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
8426 (neg<mode>2): Likewise.
8427 (abs<mode>2): Likewise.
8428 (<frint_pattern><mode>2): Likewise.
8429 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8430 (<optab><VDQF:mode><fcvt_target>2): Likewise.
8431 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
8432 (ftrunc<VDQF:mode>2): Likewise.
8433 (<optab><fcvt_target><VDQF:mode>2): Likewise.
8434 (sqrt<mode>2): Likewise.
8435 (*sqrt<mode>2): Likewise.
8436 (aarch64_frecpe<mode>): Likewise.
8437 (aarch64_cm<optab><mode>): Likewise.
8438 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
8439 HF, V4HF and V8HF.
8440 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
8441 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
8442 (stype): New.
8443 * config/aarch64/arm_neon.h (vdup_n_f16): New.
8444 (vdupq_n_f16): Likewise.
8445 (vld1_dup_f16): Use vdup_n_f16.
8446 (vld1q_dup_f16): Use vdupq_n_f16.
8447 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
8448 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
8449 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
8450 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
8451 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
8452 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
8453 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
8454 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
8455 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
8456 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
8457 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
8458 vsqrt_f16, vsqrtq_f16): New.
8459
8460 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8461
8462 * config/aarch64/aarch64-simd.md
8463 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
8464 (aarch64_ext<mode>): Likewise.
8465 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
8466 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
8467 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
8468 and V8HFmode.
8469 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
8470 float16x8_t.
8471 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
8472 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
8473 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
8474 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
8475 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
8476 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
8477 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
8478 New.
8479 (vmov_n_f16): Reimplement using vdup_n_f16.
8480 (vmovq_n_f16): Reimplement using vdupq_n_f16..
8481
8482 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8483
8484 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
8485 "frame_related_p". Generate CFA annotation when it's necessary.
8486 (aarch64_expand_prologue): Use aarch64_add_constant.
8487 (aarch64_expand_epilogue): Likewise.
8488 (aarch64_output_mi_thunk): Pass "false" when calling
8489 aarch64_add_constant.
8490
8491 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8492
8493 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
8494 sequences.
8495
8496 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8497
8498 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
8499 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
8500 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
8501 (aarch64_build_constant): Delete.
8502
8503 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
8504
8505 Revert
8506 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8507
8508 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8509 flag_toplevel_reorder.
8510
8511 2016-07-25 Richard Biener <rguenther@suse.de>
8512
8513 * cgraph.c (cgraph_node::verify_node): Compare against builtin
8514 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
8515 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
8516 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
8517 (streamer_get_builtin_tree): Likewise.
8518 (streamer_write_builtin): Likewise.
8519 * lto-streamer.h (LTO_builtin_decl): Remove.
8520 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
8521 (lto_input_scc): Remove LTO_builtin_decl handling.
8522 (lto_input_tree_1): Liekwise.
8523 * lto-streamer-out.c (lto_output_tree_1): Remove special
8524 handling of builtins.
8525 (DFS::DFS): Likewise.
8526 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
8527 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
8528 assert.
8529 (streamer_write_builtin): Remove.
8530
8531 2016-07-25 Martin Liska <mliska@suse.cz>
8532
8533 * lto-cgraph.c (input_symtab): Don't call get_working_sets
8534 if flag_auto_profile is set to true.
8535
8536 2016-07-25 Martin Liska <mliska@suse.cz>
8537
8538 PR gcov-profile/71868
8539 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
8540 have a function with multiple latches, count them all.
8541
8542 2016-07-25 Martin Liska <mliska@suse.cz>
8543
8544 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
8545
8546 2016-07-25 Martin Liska <mliska@suse.cz>
8547
8548 PR tree-optimization/71987
8549 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
8550 just for SSA_NAMEs. Fix GNU coding style.
8551
8552 2016-07-25 Martin Liska <mliska@suse.cz>
8553
8554 PR gcov-profile/64874
8555 * gcov-io.h: Update command about file format.
8556 * gcov-iov.c (main): Adapt the numbering scheme.
8557
8558 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8559
8560 PR middle-end/66726
8561 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
8562 whose result is used in PHI.
8563 (final_range_test_p): Likewise.
8564 (maybe_optimize_range_tests): Likewise.
8565
8566 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8567
8568 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8569 Reformat two multi-line strings.
8570
8571 2016-07-22 Martin Sebor <msebor@redhat.com>
8572
8573 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
8574
8575 2016-07-22 Martin Sebor <msebor@redhat.com>
8576
8577 PR c/71560
8578 * doc/extend.texi (Compound Literals): Correct and clarify.
8579 (Cast to Union): Same.
8580
8581 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
8582
8583 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8584 comments to explain why certain error messages make mention of
8585 undocumented options.
8586 (rs6000_invalid_builtin): Change error messages to replace mention
8587 of undocumented options with mention of the -mcpu=power9 option
8588 that enables those undocumented options.
8589 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8590 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8591 definition of this macro to correct an existing error.
8592 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8593 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8594 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8595 descriptions of built-in functions so that they depend on
8596 -mcpu=power9 instead of on the corresponding undocumented flags.
8597 * doc/invoke.texi (Option Summary): Remove all mention of newly
8598 undocumented flags.
8599 (IBM RS/6000 and PowerPC Options): Likewise.
8600 * doc/md.texi (Constraints for Particuliar Machines): Remove all
8601 mention of newly undocumented flags.
8602
8603 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
8604
8605 * ipa-cp.c (determine_versionability): Do not create constprop clones,
8606 when target_clones attribute is set.
8607
8608 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8609
8610 * common.opt (funsafe-loop-optimizations): Mark ignore.
8611 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8612 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8613 related code.
8614 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8615 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8616
8617 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8618
8619 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8620 Parameter.
8621 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8622 Parameter.
8623 (number_of_iterations_exit): Warn missed loop optimization for
8624 possible infinite loops.
8625
8626 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
8627
8628 PR target/71216
8629 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8630 when to emit a ".machine" pseudo-op.
8631
8632 2016-07-22 Martin Liska <mliska@suse.cz>
8633
8634 PR gcov-profile/69028
8635 PR gcov-profile/62047
8636 * coverage.c (coverage_compute_lineno_checksum): Do not
8637 calculate checksum for fns w/o xloc.file.
8638 (coverage_compute_profile_id): Likewise.
8639
8640 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
8641
8642 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8643 (avr_secondary_reload): ...and implementation.
8644 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8645 * config/avr/avr.md (reload_in<mode>): Remove insns.
8646 (adjust_len) [lpm]: Remove insn attribute value.
8647 * config/avr/predicates.md (flash_operand): Remove insn predicate.
8648
8649 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8650
8651 PR middle-end/71876
8652 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8653 attribute.
8654 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8655 * calls.c (special_function_p): Remove the special handling of the
8656 "__builtin_" prefix.
8657
8658 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8659
8660 PR middle-end/71876
8661 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
8662 if STMT may be an alloca call.
8663 (gimple_alloca_call_p, alloca_call_p): Return only true for the
8664 builtin alloca call.
8665 * calls.h (gimple_maybe_alloca_call_p): New function.
8666 * tree-inline.c (inline_forbidden_p_stmt): Use
8667 gimple_maybe_alloca_call_p here.
8668
8669 2016-07-21 David Malcolm <dmalcolm@redhat.com>
8670
8671 * spellcheck-tree.c (best_macro_match::best_macro_match):
8672 Explictly specify the template arguments when invoking the base
8673 class constructor, to help older C++ compilers.
8674
8675 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8676
8677 PR sanitizer/71953
8678 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8679 before builtin_decl_implicit.
8680
8681 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8682
8683 * optabs.c (emit_condiitonal_move): Short circuit for identical
8684 sources.
8685
8686 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8687
8688 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8689 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
8690 (noce_conversion_profitable_p): New.
8691 (noce_try_store_flag_constants): Use it.
8692 (noce_try_addcc): Likewise.
8693 (noce_try_store_flag_mask): Likewise.
8694 (noce_try_cmove): Likewise.
8695 (noce_try_cmove_arith): Likewise.
8696 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8697 overwriting it.
8698 (noce_convert_multiple_sets): Move cost model to here, from...
8699 (bb_ok_for_noce_convert_multiple_sets) ...here.
8700 (noce_process_if_block): Update calls for above changes.
8701 (noce_find_if_block): Record new noce_if_info parameters.
8702
8703 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8704
8705 * target.def (max_noce_ifcvt_seq_cost): New.
8706 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8707 * doc/tm.texi: Regenerate.
8708 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8709 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8710 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8711 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8712 * doc/invoke.texi: Document new params.
8713
8714 2016-07-21 Richard Biener <rguenther@suse.de>
8715
8716 PR tree-optimization/71947
8717 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8718 ranges have useful limit_vr information.
8719
8720 2016-07-21 Richard Biener <rguenther@suse.de>
8721
8722 * function-tests.c (build_trivial_generic_function): Set
8723 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8724 * omp-low.c (create_omp_child_function): Likewise.
8725 (grid_expand_target_grid_body): Likewise.
8726 * cgraphunit.c (init_lowered_empty_function): Likewise.
8727 (cgraph_node::expand_thunk): Likewise.
8728 * tree-parloops.c (create_loop_fn): Likewise.
8729 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8730
8731 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8732
8733 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8734 in comment.
8735
8736 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8737
8738 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8739 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8740 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8741 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8742 values for insn attribute.
8743 * config/avr/avr.c (avr_out_insert_notbit): New function.
8744 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8745 ADJUST_LEN_INSV_NOTBIT_0/_7.
8746 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8747
8748 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8749
8750 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8751 (chrec_convert_1, chrec_convert): Ditto.
8752 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8753 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8754 * tree-vrp.c (adjust_range_with_scev): Ditto.
8755 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8756 (scev_var_range_cant_overflow): New function.
8757 (scev_probably_wraps_p): New parameter. Call above function.
8758 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8759
8760 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8761
8762 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8763 by removing computation of may_be_zero.
8764
8765 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8766
8767 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8768
8769 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8770
8771 Improving concepts performance and diagnostics.
8772 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8773 for constraint satisfaction and subsumption.
8774 * timevar.h (auto_timevar): New constructor that matches the push/pop
8775 pattern of usage in pt.c.
8776
8777 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8778
8779 * hwint.h (HOST_WIDE_INT_0): New define.
8780 (HOST_WIDE_INT_0U): Ditto.
8781 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8782 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8783 * simplify-rtx.c: Ditto.
8784 * tree-object-size.c: Ditto.
8785
8786 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8787
8788 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8789 check.
8790
8791 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8792
8793 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8794 * combine.c: Use HOST_WIDE_INT_M1U instead of
8795 ~(unsigned HOST_WIDE_INT) 0.
8796 * double-int.h: Ditto.
8797 * dse.c: Ditto.
8798 * dwarf2asm.c:Ditto.
8799 * expmed.c: Ditto.
8800 * genmodes.c: Ditto.
8801 * match.pd: Ditto.
8802 * read-rtl.c: Ditto.
8803 * tree-ssa-loop-ivopts.c: Ditto.
8804 * tree-ssa-loop-prefetch.c: Ditto.
8805 * tree-vect-generic.c: Ditto.
8806 * tree-vect-patterns.c: Ditto.
8807 * tree.c: Ditto.
8808
8809 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8810
8811 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8812 constant addresses outside [0,0xc0] into a register.
8813 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8814 cases where the base address register is unused after.
8815 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8816 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8817 (avr_out_store_psi_reg_disp_tiny): Same.
8818
8819 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8820
8821 Implement attribute progmem on reduced Tiny cores by adding
8822 flash offset 0x4000 to respective symbols.
8823
8824 PR target/71948
8825 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8826 documentation how it works on reduced Tiny cores.
8827 (AVR Named Address Spaces): No support for reduced Tiny.
8828 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8829 (avr_address_tiny_pm_p): New static function.
8830 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8831 if the address is in progmem.
8832 (avr_assemble_integer): Same.
8833 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8834 for symbol_ref in progmem.
8835 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8836 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8837 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8838
8839 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8840
8841 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8842 * configure: Regenerate.
8843 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8844 (USE_THIN_ARCHIVES): New variable.
8845 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8846 this archive as a thin archive.
8847
8848 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8849
8850 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8851 same location as last time, don't skip if we have fix-it hints.
8852 Clarify the skipping logic by converting it from one "if" clause
8853 to repeated "if" clauses.
8854 * spellcheck-tree.c: Include "cpplib.h".
8855 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8856 (best_macro_match::best_macro_match): New constructor.
8857 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8858 Move here from c/c-decl.c.
8859 (class best_macro_match): Move here from c/c-decl.c, converting
8860 from a typedef to a subclass, gaining a ctor.
8861
8862 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8863
8864 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8865 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8866 define...
8867 (avr_addr_space_diagnose_usage): ...and implementation.
8868 (avr_addr_space_supported_p): New function.
8869 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8870 report bad address space usage if that space is supported.
8871 (avr_insert_attributes): Same. No more complain about unsupported
8872 address spaces.
8873 * config/avr/avr-c.c (tm_p.h): Include it.
8874 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8875 macro if avr_addr_space_supported_p.
8876
8877 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8878
8879 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8880 flag_toplevel_reorder.
8881
8882 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8883
8884 * gcc-rich-location.c
8885 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8886 a const char *.
8887 * gcc-rich-location.h
8888 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8889
8890 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8891
8892 * target.def (addr_space): Add new diagnose_usage to hook vector.
8893 * targhooks.c (default_addr_space_diagnose_usage): Add default
8894 implementation and...
8895 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8896 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8897 is some address space, call targetm.addr_space.diagnose_usage.
8898 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8899 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8900 * doc/tm.texi: Regenerate.
8901
8902 2016-07-20 Martin Liska <mliska@suse.cz>
8903
8904 PR middle-end/71898
8905 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8906 Properly handly PHI stmts.
8907
8908 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8909
8910 PR tree-optimization/71503
8911 PR tree-optimization/71683
8912 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8913 and break.
8914
8915 2016-07-20 Martin Liska <mliska@suse.cz>
8916
8917 * doc/invoke.texi (-fipa-ra): Document when the option is
8918 disabled. Fix a typo.
8919
8920 2016-07-20 Martin Liska <mliska@suse.cz>
8921
8922 * Makefile.in: Include fibonacci_heap.c
8923 * fibonacci_heap.c: New file.
8924 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8925 (fibonacci_heap::union_with): Fix deletion of the second heap.
8926 * selftest-run-tests.c (selftest::run_tests): Incorporate
8927 fibonacci heap tests.
8928 * selftest.h: Declare fibonacci_heap_c_tests.
8929
8930 2016-07-20 Martin Liska <mliska@suse.cz>
8931
8932 * selftest-run-tests.c (selftest::run_tests): New function.
8933 * selftest.h (sreal_c_tests): Declare.
8934 * sreal.c (sreal_verify_basics): New function.
8935 (verify_aritmetics): Likewise.
8936 (sreal_verify_arithmetics): Likewise.
8937 (verify_shifting): Likewise.
8938 (sreal_verify_shifting): Likewise.
8939 (void sreal_c_tests): Likewise.
8940
8941 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8942
8943 PR rtl-optimization/71916
8944 * cfgrtl.c (contains_no_active_insn_p): Return false also for
8945 bb which have a single succ fake edge.
8946
8947 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
8948
8949 PR debug/71855
8950 * dwarf2out.c (gen_subprogram_die): Only call
8951 gen_unspecified_parameters_die while dumping early dwarf.
8952
8953 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8954
8955 PR middle-end/71874
8956 * gimple-fold.c (fold_builtin_memory_op): Use
8957 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8958
8959 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
8960
8961 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8962 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8963 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8964 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8965 * combine.c: Ditto.
8966 * cse.c: Ditto.
8967 * dojump.c: Ditto.
8968 * double-int.c: Ditto.
8969 * dse.c: Ditto.
8970 * dwarf2out.c: Ditto.
8971 * expmed.c: Ditto.
8972 * expr.c: Ditto.
8973 * fold-const.c: Ditto.
8974 * function.c: Ditto.
8975 * fwprop.c: Ditto.
8976 * genmodes.c: Ditto.
8977 * hwint.c: Ditto.
8978 * hwint.h: Ditto.
8979 * ifcvt.c: Ditto.
8980 * loop-doloop.c: Ditto.
8981 * loop-invariant.c: Ditto.
8982 * loop-iv.c: Ditto.
8983 * match.pd: Ditto.
8984 * optabs.c: Ditto.
8985 * real.c: Ditto.
8986 * reload.c: Ditto.
8987 * rtlanal.c: Ditto.
8988 * simplify-rtx.c: Ditto.
8989 * stor-layout.c: Ditto.
8990 * toplev.c: Ditto.
8991 * tree-ssa-loop-ivopts.c: Ditto.
8992 * tree-vect-generic.c: Ditto.
8993 * tree-vect-patterns.c: Ditto.
8994 * tree.c: Ditto.
8995 * tree.h: Ditto.
8996 * ubsan.c: Ditto.
8997 * varasm.c: Ditto.
8998 * wide-int-print.cc: Ditto.
8999 * wide-int.cc: Ditto.
9000 * wide-int.h: Ditto.
9001
9002 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9003
9004 * selftest.c (selftest::assert_streq): Handle NULL values of
9005 val_actual and val_expected.
9006
9007 2016-07-19 Martin Jambor <mjambor@suse.cz>
9008
9009 PR fortran/71688
9010 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
9011 rather than cgraph_create_node to get a call graph node.
9012
9013 2016-07-19 Richard Biener <rguenther@suse.de>
9014
9015 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
9016 handle all tcc_constant bases and valueize SSA names.
9017 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
9018 tcc_constant bases.
9019
9020 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9021
9022 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
9023 the flags of the exit block and bb2, not just the entry block.
9024
9025 2016-07-19 Richard Biener <rguenther@suse.de>
9026
9027 PR tree-optimization/71901
9028 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9029 align member, group stuff with the bitfield.
9030 (vn_ref_op_align_unit): New inline.
9031 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
9032 record element alignment and operand 3 unchanged.
9033 (ao_ref_init_from_vn_reference): Adjust.
9034 (valueize_refs_1): Likewise.
9035 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9036
9037 2016-07-19 Richard Biener <rguenther@suse.de>
9038
9039 PR tree-optimization/71908
9040 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
9041 symbolic constants in a more reliable way.
9042
9043 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
9044
9045 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
9046 comment.
9047 (vect_update_inits_of_drs): Likewise.
9048 (vect_create_cond_for_alias_checks): Likewise.
9049 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
9050
9051 2016-07-19 Richard Biener <rguenther@suse.de>
9052
9053 PR lto/71907
9054 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
9055 with an abstract origin that is not an inlined function outer
9056 scope add a self-reference as abstract origin.
9057 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
9058
9059 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9060
9061 PR target/71493
9062 * config/rs6000/rs6000.c (rs6000_function_value): Fix
9063 unintentional System V.4 structure return breakage for structures
9064 with a single floating point element.
9065
9066 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9067
9068 PR tree-optimization/71734
9069 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
9070 contains REF, use it to check safelen, assume that safelen value
9071 must be greater 1, fix style.
9072 (ref_indep_loop_p_2): Add REF_LOOP argument.
9073 (ref_indep_loop_p): Pass LOOP as additional argument to
9074 ref_indep_loop_p_2.
9075
9076 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
9077
9078 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
9079 allocation in the prologue.
9080 * explow.c (get_dynamic_stack_base): New function to return an address
9081 expression for the dynamic stack base.
9082 (get_dynamic_stack_size): New function to do the required dynamic stack
9083 space size calculations.
9084 (allocate_dynamic_stack_space): Use new functions.
9085 (align_dynamic_address): Move some code from
9086 allocate_dynamic_stack_space to new function.
9087 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
9088
9089 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9090
9091 * config/s390/s390.c (s390_encode_section_info): Always set
9092 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
9093 found.
9094
9095 2016-07-18 Richard Biener <rguenther@suse.de>
9096
9097 PR tree-optimization/71893
9098 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
9099 for sizetype cast added by array_ref_element_size.
9100 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9101
9102 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
9103
9104 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
9105 register parameters. Remove code to initialize argument pointer
9106 on TARGET_64BIT. Optimize call to _mcount when it can be reached
9107 using a pc-relative branch. Cleanup conditional code.
9108 * config/pa/pa.md (call_mcount): New expander.
9109 (call_mcount_nonpic): New insn.
9110 (call_mcount_pic): New insn and split.
9111 (call_mcount_pic_post_reload): New insn.
9112 (call_mcount_64bit): New insn and split.
9113 (call_mcount_64bit_post_reload): New insn.
9114
9115 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
9116
9117 * config/avr/predicates.md (const_m255_to_m1_operand): New.
9118 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
9119 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
9120 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
9121 (*usum_widenqihi3, *udiff_widenqihi3)
9122 (*addhi3_zero_extend.const): New combiner insns.
9123 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
9124 just 1 bit is affected.
9125 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
9126 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
9127
9128 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9129
9130 * omp-low.c (lower_omp_target): Mark data clauses with
9131 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
9132 zero-length subarrays.
9133
9134 2016-07-15 Richard Biener <rguenther@suse.de>
9135
9136 PR tree-optimization/71881
9137 * tree-loop-distribution.c (destroy_loop): Remove blocks in
9138 reverse DOM order to make debug temp generation happy.
9139
9140 2016-07-15 Richard Biener <rguenther@suse.de>
9141
9142 PR tree-optimization/71887
9143 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
9144 verify it is not zero for division / modulo handling.
9145 (value_replacement): Adjust.
9146
9147 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
9148 Julian Brown <julian@codesourcery.com>
9149
9150 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
9151 * config/aarch64/aarch64-cost-tables.h
9152 (vulcan_extra_costs): New variable.
9153 * config/aarch64/aarch64.c
9154 (vulcan_addrcost_table): Likewise.
9155 (vulcan_regmove_cost): Likewise.
9156 (vulcan_vector_cost): Likewise.
9157 (vulcan_branch_cost): Likewise.
9158 (vulcan_tunings): Likewise.
9159
9160 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
9161
9162 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
9163 (output_in_order): Loop over undefined variables too. Output them
9164 via assemble_undefined_decl. Skip variables that correspond to hard
9165 registers or have value-exprs.
9166 * varpool.c (symbol_table::output_variables): Handle undefined
9167 variables together with defined ones.
9168
9169 2016-07-15 Richard Biener <rguenther@suse.de>
9170
9171 * tree-ssa-pre.c (get_representative_for): Make sure to return
9172 the value number of SSA names.
9173 (phi_translate_1): get_representative_for cannot return NULL.
9174 (do_pre_regular_insertion): Remove redundant call to
9175 fully_constant_expression.
9176 (do_pre_partial_partial_insertion): Likewise.
9177
9178 2016-07-15 Bin Cheng <bin.cheng@arm.com>
9179
9180 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
9181 (derive_simple_iv_with_niters): New function.
9182 (simple_iv): Rewrite using simple_iv_with_niters.
9183 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
9184 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9185 function.
9186 (number_of_iterations_exit): Rewrite using above function.
9187 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9188 Decl.
9189
9190 2016-07-15 Richard Biener <rguenther@suse.de>
9191
9192 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
9193 vec_construct cost.
9194
9195 2016-07-14 Jakub Jelinek <jakub@redhat.com>
9196
9197 PR tree-optimization/71872
9198 * tree-data-ref.c (get_references_in_stmt): Ignore references
9199 with is_gimple_constant get_base_address.
9200
9201 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9202
9203 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
9204 (TARGET_HAVE_LDACQD): New macro.
9205 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
9206 than TARGET_HAVE_LDACQ.
9207 (arm_load_acquire_exclusivedi): Likewise.
9208 (arm_store_release_exclusivedi): Likewise.
9209
9210 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9211
9212 PR rtl-optimization/71878
9213 * lra-constraints.c (match_reload): Pass information about other
9214 output operands. Create new unique register value if matching input
9215 operand shares same register value as output operand being considered.
9216 (curr_insn_transform): Record output operands already processed.
9217
9218 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9219
9220 PR target/65951
9221 PR tree-optimization/70923
9222 * tree-vect-patterns.c: Include mult-synthesis.h.
9223 (target_supports_mult_synth_alg): New function.
9224 (synth_lshift_by_additions): Likewise.
9225 (apply_binop_and_append_stmt): Likewise.
9226 (vect_synth_mult_by_constant): Likewise.
9227 (target_has_vecop_for_code): Likewise.
9228 (vect_recog_mult_pattern): Use above functions to synthesize vector
9229 multiplication by integer constants.
9230
9231 2016-07-14 Alan Modra <amodra@gmail.com>
9232
9233 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
9234 gpr alternatives. Correct '*' placement on Y,r alternative.
9235 Add '*' on operand 1 of r,r alternative.
9236
9237 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9238
9239 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
9240 * expmed.h: ... Here.
9241
9242 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
9243
9244 * gimple.h (stmt_can_terminate_bb_p): New function.
9245 * tree-cfg.c (need_fake_edge_p): Rename to ...
9246 (stmt_can_terminate_bb_p): ... this; return true if stmt can
9247 throw external; handle const and pure calls.
9248 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
9249
9250 2016-07-14 Richard Biener <rguenther@suse.de>
9251
9252 PR tree-optimization/71866
9253 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
9254 (do_hoist_insertion): Avoid endless recursion when we
9255 didn't insert anything because we managed to simplify
9256 things down to a constant or SSA name.
9257 (fully_constant_expression): Re-write in terms of ...
9258 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
9259 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
9260 vn_nary_build_or_lookup_1.
9261 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
9262 (vn_nary_build_or_lookup): ... this which now wraps it.
9263
9264 2016-07-14 Alan Modra <amodra@gmail.com>
9265
9266 PR target/71733
9267 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
9268 with p9_vector override before power9-dform override.
9269
9270 2016-07-13 Andi Kleen <ak@linux.intel.com>
9271
9272 * value-prof.c (gimple_value_profile_transformations): Don't run
9273 when auto_profile is on.
9274
9275 2016-07-13 Andi Kleen <ak@linux.intel.com>
9276
9277 * auto-profile.c (update_inlined_ind_target,
9278 afdo_indirect_call): Print information to dump file.
9279
9280 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
9281
9282 * genrecog.c (special_predicate_operand_p): New function.
9283 (predicate_name): Move function.
9284 (validate_pattern): Don't warn about missing mode for all
9285 define_special_predicate predicates.
9286
9287 2016-07-13 Bin Cheng <bin.cheng@arm.com>
9288
9289 * tree-vect-data-refs.c (vect_no_alias_p): New function.
9290 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
9291 resolve alias checks which are known at compilation time.
9292 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
9293 alias checks are resolved. Move dump info for too many runtime
9294 alias checks to here...
9295 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
9296
9297 2016-07-13 Richard Biener <rguenther@suse.de>
9298
9299 PR tree-optimization/24574
9300 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
9301 position and add shift, rotate, divison and modulo support
9302 for left zero.
9303 (value_replacement): Pass in argument position to absorbing_element_p.
9304
9305 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
9306
9307 PR ipa/71633
9308 * ipa-inline-transform.c (inline_call): Support
9309 instrumented thunks.
9310
9311 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9312
9313 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
9314 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
9315 divide feature.
9316 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
9317 Baseline. Make initial alternative TARGET_32BIT only.
9318 (udivsi3): Likewise.
9319 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
9320 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
9321 target.
9322
9323 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9324
9325 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
9326 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
9327 availability with TARGET_HAVE_MOVT.
9328 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
9329 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
9330 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
9331 UINTVAL.
9332 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
9333 extra instruction if MOVW is available. Use a cost variable
9334 incremented by COSTS_N_INSNS (1) when the condition match rather than
9335 returning an arithmetic expression based on COSTS_N_INSNS. Make
9336 constant with bottom half word zero cost 2 instruction if MOVW is
9337 available.
9338 * config/arm/arm.md (define_attr "arch"): Add v8mb.
9339 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
9340 target is ARMv8-M Baseline.
9341 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
9342 (arm_movtas_ze): Likewise.
9343 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
9344 alternative for constants satisfying j constraint.
9345 (thumb1_movsi_insn): Likewise.
9346 (movsi splitter for K alternative): Tighten condition to not trigger
9347 if movt is available and j constraint is satisfied.
9348 (Pe immediate splitter): Likewise.
9349 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
9350 constant fitting in an halfword to use MOVW.
9351 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
9352 effective target.
9353
9354 2016-07-13 Richard Biener <rguenther@suse.de>
9355
9356 PR middle-end/71104
9357 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
9358 gimplifying the LHS. Make sure to gimplify a returning twice
9359 call LHS without using SSA names.
9360
9361 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9362
9363 * tree-data-ref.c (find_data_references_in_stmt): Remove
9364 unnecessary call to vec::release.
9365 (graphite_find_data_references_in_stmt): Likewise.
9366 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
9367 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9368
9369 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9370
9371 * cfgexpand.c (expand_used_vars): Make the type of a local
9372 variable auto_vec.
9373 * genmatch.c (lower_for): Likewise.
9374 * haifa-sched.c (haifa_sched_init): Likewise.
9375 (add_to_speculative_block): Likewise.
9376 (create_check_block_twin): Likewise.
9377 * predict.c (handle_missing_profiles): Likewise.
9378 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
9379 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
9380 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
9381 Likewise.
9382 (maybe_lower_iteration_bound): Likewise.
9383 * tree-ssa-sccvn.c (DFS): Likewise.
9384 * tree-stdarg.c (reachable_at_most_once): Likewise.
9385 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9386 (vectorizable_store): Likewise.
9387
9388 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9389
9390 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
9391 (sccvn_dom_walker): make cond_stack an auto_vec.
9392
9393 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9394
9395 * ree.c (struct ext_state): Make type of members auto_vec.
9396 (find_and_remove_re): Adjust.
9397
9398 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9399
9400 * cfgexpand.c (struct stack_vars_data): Make type of fields
9401 auto_vec.
9402 (expand_used_vars): Adjust.
9403
9404 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9405
9406 * ipa.c (record_cdtor_fn): Adjust.
9407 (build_cdtor_fns): Likewise.
9408 (ipa_cdtor_merge): Make static_ctors and static_dtors local
9409 variables.
9410
9411 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9412
9413 * genextract.c (struct accum_extract): Add constructor and make
9414 members auto_vec.
9415 (gen_insn): Adjust.
9416
9417 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9418
9419 * tree.c (struct free_lang_data_d): Add constructor and change
9420 types of members to ones that automatically manage resources.
9421 (fld_worklist_push): Adjust.
9422 (find_decls_types): Likewise.
9423 (find_decls_types_in_eh_region): Likewise.
9424 (free_lang_data_in_cgraph): Stop manually creating and
9425 destroying members of free_lang_data_d.
9426
9427 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
9428
9429 PR rtl-optimization/68961
9430 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
9431 peephole variant. Use sse_reg_operand predicates.
9432
9433 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
9434
9435 * config/i386/predicates.md (x86_64_immediate_operand)
9436 <case CONST_INT>: Remove unneeded truncation to DImode.
9437 <case CONST>: Ditto.
9438 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9439
9440 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9441
9442 PR target/71805
9443 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
9444 The xxperm and xxpermr instructions require that the 2nd input
9445 operand overlap with the output operand, and not the 1st.
9446 (altivec_vperm_v8hiv16qi): Likewise.
9447 (altivec_vperm_<mode>_uns_internal): Likewise.
9448 (altivec_vpermr_<mode>_internal): Likewise.
9449 (vperm_v8hiv4si): Likewise.
9450 (vperm_v16qiv8hi): Likewise.
9451
9452 2016-07-12 Nathan Sidwell <nathan@acm.org>
9453
9454 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
9455 when -mno-pic-data-is-text-relative is in effect, by default.
9456 * doc/invoke.texi (mpic-data-is-text-relative): Document new
9457 behavior and clarify.
9458
9459 2016-07-12 Martin Liska <mliska@suse.cz>
9460
9461 * params.def: Add avg-loop niter.
9462 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
9463 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
9464 * doc/invoke.texi: Document the new parameter.
9465
9466 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9467
9468 PR middle-end/71700
9469 * expr.c (store_constructor): Mask sign-extended bits when widening
9470 sub-word constructor element at the start of a word.
9471
9472 2016-07-12 Martin Liska <mliska@suse.cz>
9473
9474 * Makefile.in: Append rule for params-options.h.
9475 * params-options.h: New file.
9476
9477 2016-07-12 Martin Liska <mliska@suse.cz>
9478
9479 * ira-build.c (mark_loops_for_removal): Properly iterate
9480 loops.
9481
9482 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
9483 Richard Biener <rguenther@suse.de>
9484
9485 PR tree-optimization/23286
9486 PR tree-optimization/70159
9487 * doc/invoke.texi: Document -fcode-hoisting.
9488 * common.opt (fcode-hoisting): New flag.
9489 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
9490 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
9491 (do_regular_insertion): Rename to ...
9492 (do_pre_regular_insertion): ... this and amend general comments
9493 on insertion strathegy.
9494 (do_partial_partial_insertion): Rename to ...
9495 (do_pre_partial_partial_insertion): ... this.
9496 (do_hoist_insertion): New function.
9497 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
9498 and call do_hoist_insertion properly.
9499 (insert): Adjust.
9500 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
9501 (pass_pre::execute): Register hoist_insert stats.
9502
9503 2016-07-12 Jakub Jelinek <jakub@redhat.com>
9504
9505 PR middle-end/71716
9506 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
9507 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
9508 is different from mode's bitsize. Small cleanup.
9509
9510 2016-07-12 Richard Biener <rguenther@suse.de>
9511
9512 PR rtl-optimization/68961
9513 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
9514 to simplify to a non-constant.
9515
9516 2016-07-11 Jakub Jelinek <jakub@redhat.com>
9517
9518 PR middle-end/71758
9519 * omp-low.c (expand_omp_target): Gimplify device.
9520
9521 PR tree-optimization/71823
9522 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
9523 to get vec_oprnds2 from op2.
9524
9525 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
9526
9527 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
9528 Hoist common subexpressions.
9529 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9530
9531 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
9532
9533 PR target/71800
9534 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
9535 prevent generation of 'stxsiwx' on pre Power8 hardware.
9536
9537 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9538
9539 * input.c: Include cpplib.h.
9540 (selftest::temp_source_file): New class.
9541 (selftest::temp_source_file::temp_source_file): New ctor.
9542 (selftest::temp_source_file::~temp_source_file): New dtor.
9543 (selftest::should_have_column_data_p): New function.
9544 (selftest::test_should_have_column_data_p): New function.
9545 (selftest::temp_line_table): New class.
9546 (selftest::temp_line_table::temp_line_table): New ctor.
9547 (selftest::temp_line_table::~temp_line_table): New dtor.
9548 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
9549 it to create a temp_line_table.
9550 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
9551 locations that are known to have column data.
9552 (selftest::line_table_case): New struct.
9553 (selftest::test_reading_source_line): Move tempfile handling
9554 to class temp_source_file.
9555 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
9556 (selftest::assert_token_loc_eq): New function.
9557 (ASSERT_TOKEN_LOC_EQ): New macro.
9558 (selftest::test_lexer): New function.
9559 (selftest::boundary_locations): New array.
9560 (selftest::input_c_tests): Call test_should_have_column_data_p.
9561 Loop over a test matrix of interesting values of location and
9562 default_range_bits, calling test_lexer on each case in the matrix.
9563 Move call to test_accessing_ordinary_linemaps into the matrix.
9564 * selftest.h (ASSERT_EQ): Reimplement in terms of...
9565 (ASSERT_EQ_AT): New macro.
9566
9567 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
9568
9569 PR target/71801
9570 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9571 Don't convert TImode in debug insn.
9572
9573 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9574
9575 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
9576 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
9577 (tree_type_common::lang_flag_7): New.
9578 (tree_type_common::spare): Reduce size.
9579 * tree.h (TYPE_ALIGN_OK): Remove.
9580 (TYPE_LANG_FLAG_7): New.
9581 (get_inner_reference): Adjust header.
9582 * print-tree.c (print_node): Adjust.
9583 * expr.c (get_inner_reference): Remove parameter keep_aligning.
9584 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
9585 calls to get_inner_reference.
9586 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
9587 handling of TYPE_ALIGN_OK.
9588 * builtins.c (get_object_alignment_2): Adjust call to
9589 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
9590 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9591 TYPE_ALIGN_OK.
9592 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9593 * cfgexpand.c (expand_debug_expr): Likewise.
9594 * dbxout.c (dbxout_expand_expr): Likewise.
9595 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9596 loc_list_from_tree, fortran_common): Likewise.
9597 * fold-const.c (optimize_bit_field_compare,
9598 decode_field_reference, fold_unary_loc, fold_comparison,
9599 split_address_to_core_and_offset): Likewise.
9600 * gimple-laddress.c (execute): Likewise.
9601 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9602 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9603 * hsa-gen.c (gen_hsa_addr): Likewise.
9604 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9605 * tsan.c (instrument_expr): Likewise.
9606 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9607 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9608 * tree-affine.c (tree_to_aff_combination,
9609 get_inner_reference_aff): Adjust calls to get_inner_reference.
9610 * tree-data-ref.c (split_constant_offset_1,
9611 dr_analyze_innermost): Likewise.
9612 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9613 * tree-sra.c (ipa_sra_check_caller): Likewise.
9614 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9615 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9616 bswap_replace): Likewise.
9617 * tree-vect-data-refs.c (vect_check_gather,
9618 vect_analyze_data_refs): Likewise.
9619 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9620 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9621 TYPE_ALIGN_OK.
9622
9623 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9624
9625 * Makefile.in (selftest-valgrind): New phony target.
9626 * function-tests.c (selftest::build_cfg): Delete pass instances
9627 created by the test.
9628 (selftest::convert_to_ssa): Likewise.
9629 (selftest::test_expansion_to_rtl): Likewise.
9630 * tree-cfg.c (selftest::test_linear_chain): Release dominator
9631 vectors.
9632 (selftest::test_diamond): Likewise.
9633
9634 2016-07-11 Richard Biener <rguenther@suse.de>
9635
9636 PR tree-optimization/71816
9637 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9638 than replacing all of its operands.
9639
9640 2016-07-11 Alan Modra <amodra@gmail.com>
9641
9642 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9643 (ctr<mode>): Add unspec.
9644 (ctr<mode>_internal*): Likewise.
9645
9646 2016-07-08 James Bowman <james.bowman@ftdichip.com>
9647
9648 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9649 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9650
9651 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
9652
9653 PR rtl-optimization/71621
9654 * lra-constraints.c (process_alt_operands): Check combination of
9655 reg class and mode.
9656
9657 2016-07-08 Jason Merrill <jason@redhat.com>
9658 Richard Biener <rguenther@suse.de>
9659
9660 P0145: Refining Expression Order for C++.
9661 * gimplify.c (initial_rhs_predicate_for): New.
9662 (gimplfy_modify_expr): Gimplify RHS before LHS.
9663
9664 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9665
9666 PR target/71297
9667 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9668 Allow standard error handling to take over when a wrong number
9669 of arguments is presented to __builtin_vec_ld () or
9670 __builtin_vec_st ().
9671
9672 2016-07-08 Jiong Wang <jiong.wang@arm.com>
9673
9674 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9675 variants.
9676 (smin): Likewise.
9677 (fmax): New entry.
9678 (fmin): Likewise.
9679 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9680 __builtin_aarch64_fmaxv2sf.
9681 (vmaxnmq_f32): Likewise.
9682 (vmaxnmq_f64): Likewise.
9683 (vminnm_f32): Likewise.
9684 (vminnmq_f32): Likewise.
9685 (vminnmq_f64): Likewise.
9686
9687 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9688
9689 PR target/71806
9690 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9691 enable -mfloat128-hardware by default.
9692 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9693 that IEEE 128-bit hardware support needs.
9694 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9695 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9696 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9697 floating point requires.
9698 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9699 -mfloat128 and -mfloat128-hardware changes.
9700
9701 2016-07-08 Alan Hayward <alan.hayward@arm.com>
9702
9703 PR tree-optimization/71667
9704 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9705
9706 2016-07-08 Martin Liska <mliska@suse.cz>
9707
9708 PR middle-end/71606
9709 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9710 folding produces SAVE_EXPRs, thus return false for the type.
9711
9712 2016-07-07 Martin Liska <mliska@suse.cz>
9713
9714 * file-find.c (remove_prefix): New function.
9715 * file-find.h (remove_prefix): Declare the function.
9716 * gcc-ar.c (main): Skip a folder of the wrapper if
9717 a wrapped binary would point to the same file.
9718
9719 2016-07-07 Jan Hubicka <jh@suse.cz>
9720
9721 * tree-scalar-evolution.c (iv_can_overflow_p): export.
9722 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9723 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9724
9725 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9726
9727 PR ipa/71624
9728 * ipa-inline-analysis.c (compute_inline_parameters): Set
9729 local.can_change_signature to false for intrumentation
9730 thunk callees.
9731
9732 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9733
9734 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9735 with TARGET_HAVE_MOVT.
9736 (TARGET_HAVE_MOVT): Define.
9737 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9738 availability with TARGET_HAVE_MOVT.
9739 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9740 availability.
9741 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9742 TARGET_THUMB2.
9743 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9744 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9745 * config/arm/constraints.md (define_constraint "j"): Use
9746 TARGET_HAVE_MOVT to check MOVT availability.
9747
9748 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9749
9750 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9751
9752 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9753
9754 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9755 (armv8-m.main): Likewise.
9756 (armv8-m.main+dsp): Likewise.
9757 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9758 (FL_FOR_ARCH8M_MAIN): Likewise.
9759 * config/arm/arm-tables.opt: Regenerate.
9760 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9761 armv8-m.main+dsp to BE8_LINK_SPEC.
9762 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9763 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9764 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9765 Baseline and Mainline.
9766 (arm_option_override_internal): Also disable arm_restrict_it when
9767 !arm_arch_notm. Update comment for -munaligned-access to also cover
9768 ARMv8-M Baseline.
9769 (arm_file_start): Increase buffer size for printing architecture name.
9770 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9771 and armv8-m.main+dsp.
9772 (mno-unaligned-access): Clarify that this is disabled by default for
9773 ARMv8-M Baseline architectures as well.
9774
9775 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9776
9777 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9778 decide whether to prevent some libgcc routines being included for some
9779 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9780 link between this condition and the one in
9781 libgcc/config/arm/lib1func.S.
9782
9783 2016-07-07 Richard Biener <rguenther@suse.de>
9784
9785 * tree-ssa-pre.c: Include alias.h.
9786 (compute_avail): If we have multiple VN_REFERENCEs with the
9787 same hashtable entry adjust that to make it a valid replacement
9788 for all of them with respect to alignment and aliasing
9789 when doing insertion.
9790 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9791 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9792
9793 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9794
9795 PR target/70098
9796 PR target/71763
9797 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9798 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9799 constraint.
9800
9801 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9802
9803 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9804 (adjust_mems): Adjust.
9805 (adjust_insn): Likewise.
9806 (prepare_call_arguments): Likewise.
9807
9808 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9809
9810 * gcse.c (struct ls_expr): Make stores field a vector.
9811 (ldst_entry): Adjust.
9812 (free_ldst_entry): Likewise.
9813 (print_ldst_list): Likewise.
9814 (compute_ld_motion_mems): Likewise.
9815 (update_ld_motion_stores): Likewise.
9816
9817 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9818
9819 * gcse.c (struct ls_expr): Remove loads field.
9820 (ldst_entry): Adjust.
9821 (free_ldst_entry): Likewise.
9822 (print_ldst_list): Likewise.
9823 (compute_ld_motion_mems): Likewise.
9824
9825 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9826
9827 * store-motion.c (struct st_expr): Make antic_stores a vector.
9828 (st_expr_entry): Adjust.
9829 (free_st_expr_entry): Likewise.
9830 (print_store_motion_mems): Likewise.
9831 (find_moveable_store): Likewise.
9832 (compute_store_table): Likewise.
9833 (remove_reachable_equiv_notes): Likewise.
9834 (replace_store_insn): Likewise.
9835 (build_store_vectors): Likewise.
9836
9837 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9838
9839 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9840 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9841
9842 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9843
9844 PR tree-optimization/71518
9845 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9846 misalign also for outer loops with negative step.
9847
9848 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9849
9850 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9851 (cortex_a53_shift): Add mov_shift.
9852 (cortex_a53_shift_reg): Add new reservation for register shifts.
9853 (cortex_a53_alu): Remove bfm.
9854 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9855 (cortex_a53_alu_extr): Add new reservation for EXTR.
9856 (bypasses): Improve bypass modelling.
9857
9858 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9859
9860 PR target/50739
9861 * config/avr/avr.c (avr_asm_select_section): Strip off
9862 SECTION_DECLARED from flags when calling get_section.
9863
9864 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9865
9866 * tree-vectorizer.h (vect_memory_access_type): Add
9867 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9868 * tree-vect-stmts.c (compare_step_with_zero): New function.
9869 (perm_mask_for_reverse): Move further up file.
9870 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9871 step is negative.
9872 (get_negative_load_store_type): New function.
9873 (get_load_store_type): Call it. Add an ncopies argument.
9874 (vectorizable_mask_load_store): Update call accordingly and
9875 remove tests for negative steps.
9876 (vectorizable_store, vectorizable_load): Likewise. Handle new
9877 memory_access_types.
9878
9879 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9880
9881 * tree-vectorizer.h (vect_memory_access_type): New enum.
9882 (_stmt_vec_info): Add a memory_access_type field.
9883 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9884 (vect_model_store_cost): Take an access type instead of a boolean.
9885 (vect_model_load_cost): Likewise.
9886 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9887 vect_model_store_cost and vect_model_load_cost.
9888 * tree-vect-stmts.c (vec_load_store_type): New enum.
9889 (vect_model_store_cost): Take an access type instead of a
9890 store_lanes_p boolean. Simplify tests.
9891 (vect_model_load_cost): Likewise, but for load_lanes_p.
9892 (get_group_load_store_type, get_load_store_type): New functions.
9893 (vectorizable_store): Use get_load_store_type. Record the access
9894 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9895 (vectorizable_load): Likewise.
9896 (vectorizable_mask_load_store): Likewise. Replace is_store
9897 variable with vls_type.
9898
9899 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9900
9901 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9902 single_element_p parameter.
9903 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9904 Check the PR65518 case here rather than in vectorizable_load.
9905 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9906 * tree-vect-stmts.c (vectorizable_load): Likewise.
9907
9908 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9909
9910 * tree-vectorizer.h (gather_scatter_info): New structure.
9911 (vect_check_gather_scatter): Return a bool rather than a decl.
9912 Replace return-by-pointer arguments with a single
9913 gather_scatter_info *.
9914 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9915 (vect_analyze_data_refs): Update call accordingly.
9916 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9917 (vectorizable_mask_load_store): Likewise. Also record the
9918 offset dt and vectype in the gather_scatter_info.
9919 (vectorizable_store): Likewise.
9920 (vectorizable_load): Likewise.
9921
9922 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9923
9924 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9925 strided groups, use the cost of N scalar accesses instead
9926 of ncopies vector accesses.
9927 (vect_model_load_cost): Likewise.
9928
9929 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9930
9931 * tree-vect-stmts.c (vect_cost_group_size): Delete.
9932 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
9933 variable to indicate when once-per-group costs are being used.
9934 (vect_model_load_cost): Likewise. Fix comment and misindented code.
9935
9936 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9937
9938 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9939 peeling-for-gaps condition.
9940
9941 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9942
9943 * config/s390/s390.c (s390_expand_vec_init): Force initializer
9944 element to register if it doesn't match general_operand.
9945
9946 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9947 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9948
9949 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9950 prototype.
9951 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9952 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9953 (SIGNBIT): New mode iterator.
9954 (Fsignbit): New mode attribute.
9955 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9956 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9957 when direct moves are available.
9958 (signbit<mode>2_dm): New define_insn_and_split).
9959 (signbit<mode>2_dm2): New define_insn.
9960
9961 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9962
9963 PR rtl-optimization/71594
9964 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9965 into subregs of appropriate mode before trying to emit a conditional
9966 move.
9967
9968 2016-07-05 Jan Hubicka <jh@suse.cz>
9969
9970 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9971 (simple_iv): Use it.
9972
9973 2016-07-05 Jan Hubicka <jh@suse.cz>
9974
9975 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9976
9977 2016-07-05 Jiong Wang <jiong.wang@arm.com>
9978
9979 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9980 "offmemok".
9981
9982 2016-07-05 Jan Hubicka <jh@suse.cz>
9983
9984 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
9985 IV can overflow.
9986
9987 2016-07-05 Richard Biener <rguenther@suse.de>
9988
9989 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
9990 Handle empty else block.
9991 (is_feasible_trace): Likewise.
9992 (split_paths): Likewise.
9993
9994 2016-07-05 Richard Biener <rguenther@suse.de>
9995
9996 * tree-loop-distribution.c (distribute_loop): Fix issue with
9997 the cost model loop.
9998
9999 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
10000
10001 * config/arm/neon-testgen.ml: Delete.
10002 * config/arm/neon.ml: Delete.
10003
10004 2016-07-04 Jakub Jelinek <jakub@redhat.com>
10005
10006 PR c++/71739
10007 * tree.c (attribute_value_equal): Use get_attribute_name instead of
10008 directly using TREE_PURPOSE.
10009
10010 2016-07-04 Jiong Wang <jiong.wang@arm.com>
10011
10012 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
10013 * config/aarch64/aarch64_neon.h: Likewise.
10014 * config/aarch64/arm_neon.h: Likewise.
10015 * config/aarch64/atomics.md: Likewise.
10016 * config/aarch64/aarch64-simd-builtins.def: Likewise.
10017 * doc/invoke.texi: Likewise.
10018
10019 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10020
10021 * config/s390/s390.md: Add "z13" cpu_facility.
10022 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
10023 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
10024 condition" type instructions.
10025
10026 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10027 Jeff Law <law@redhat.com>
10028
10029 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
10030 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
10031
10032 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
10033
10034 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
10035 permutation for TARGET_AVX512F.
10036 (ix86_expand_vec_one_operand_perm_avx512): New function.
10037 (expand_vec_perm_1): Invoke introduced function.
10038 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10039 it may be not valid after vectorization.
10040
10041 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10042
10043 PR target/63874
10044 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
10045 typo in comment. Only force to memory if it is a weak
10046 external reference.
10047
10048 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
10049 Jiong Wang <jiong.wang@arm.com>
10050
10051 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
10052 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
10053 (AARCH64_FL_F16): New.
10054 (AARCH64_FL_FOR_ARCH8_2): New.
10055 (AARCH64_ISA_8_2): New.
10056 (AARCH64_ISA_F16): New.
10057 (TARGET_FP_F16INST): New.
10058 (TARGET_SIMD_F16INST): New.
10059 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
10060 ("fp"): Disabling "fp" also disables "fp16".
10061 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
10062 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
10063 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
10064 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
10065
10066 2016-07-04 Jan Beulich <jbeulich@suse.com>
10067
10068 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
10069
10070 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10071
10072 PR target/71720
10073 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
10074 the insns, use an insn form that does not adjust the offset on
10075 little endian systems.
10076
10077 2016-07-01 Jan Beulich <jbeulich@suse.com>
10078
10079 * varasm.c (get_variable_section): Validate initializer in
10080 named .bss-like sections.
10081
10082 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10083
10084 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
10085 Exchange the order of the second and third operands in the vpermr
10086 instruction tmeplate.
10087
10088 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
10089
10090 PR target/71698
10091 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
10092 Disallow TDmode values.
10093
10094 2016-07-01 Alan Modra <amodra@gmail.com>
10095
10096 PR rtl-optimization/71709
10097 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
10098 being set, not referenced.
10099
10100 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10101
10102 PR tree-optimization/70729
10103 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
10104 of loop since it can be not valid after transformation.
10105
10106 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10107
10108 * config/arm/arm.c (thumb_reload_in_hi): Delete.
10109 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
10110
10111 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
10112
10113 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
10114 for NULL decl.
10115
10116 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10117
10118 PR target/71677
10119 * config/rs6000/constraints.md (wY constraint): New constraint to
10120 match the requirements for the LXSD and STXSD instructions.
10121 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
10122 predicate to match the requirements for the LXSD and STXSD
10123 instructions.
10124 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
10125 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
10126 to make sure that the bottom 2 bits of offset are 0, the address
10127 form is offsettable, and no updating is done in the address mode.
10128 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
10129 (movdi_internal32): Likewise
10130 (movdi_internal64): Likewise.
10131
10132 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10133
10134 PR tree-optimization/71707
10135 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
10136 strinfo even for ADDR_EXPR ptr.
10137
10138 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10139
10140 * config/rs6000/altivec.md (darn_32): Change the condition to
10141 TARGET_P9_MISC instead of TARGET_MODULO.
10142 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
10143 condition expression.
10144 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
10145 condition expression.
10146 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
10147 (DFP_TEST): New code iterator.
10148 (dfptstsfi_<code>_mode>): New define_expand.
10149 (*dfp_sgnfcnc_<mode>): New define_insn.
10150 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
10151 definition next to BU_P9_MISC_1 definition and change the MASK
10152 value to RS6000_BTM_P9_MISC.
10153 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
10154 (BU_P9_64BIT_MISC_0): Likewise.
10155 (BU_P9_DFP_MISC_0): New macro definition.
10156 (BU_P9_DFP_MISC_1): New macro definition.
10157 (BU_P9_DFP_MISC_2): New macro definition.
10158 (BU_P9_DFP_OVERLOAD_1): New macro definition.
10159 (BU_P9_DFP_OVERLOAD_2): New macro definition.
10160 (BU_P9_DFP_OVERLOAD_3): New macro definition.
10161 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
10162 (TSTSFI_LT_TD): Likewise.
10163 (TSTSFI_EQ_DD): Likewise.
10164 (TSTSFI_EQ_TD): Likewise.
10165 (TSTSFI_GT_DD): Likewise.
10166 (TSTSFI_GT_TD): Likewise.
10167 (TSTSFI_OV_DD): Likewise.
10168 (TSTSFI_OV_TD): Likewise.
10169 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
10170 (TSTSFI_LT_DD): Likewise.
10171 (TSTSFI_LT_TD): Likewise.
10172 (TSTSFI_EQ): Likewise.
10173 (TSTSFI_EQ_DD): Likewise.
10174 (TSTSFI_EQ_TD): Likewise.
10175 (TSTSFI_GT): Likewise.
10176 (TSTSFI_GT_DD): Likewise.
10177 (TSTSFI_GT_TD): Likewise.
10178 (TSTSFI_OV): Likewise.
10179 (TSTSFI_OV_DD): Likewise.
10180 (TSTSFI_OV_TD): Likewise.
10181 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10182 overloaded test significance functions.
10183 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10184 OPTION_MASK_P9_MISC into the representation of this mask.
10185 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
10186 of this mask.
10187 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
10188 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
10189 non-zero.
10190 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
10191 argument is a 6-bit unsigned literal value if the icode argument
10192 represents a DFP test significance built-in call.
10193 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
10194 flag used independently and in combination with the
10195 RS6000_BTM_64BIT flag.
10196 (rs6000_opt_masks): Add entry for power9-misc command-line option.
10197 (rs6000_builtin_mask_names): Add entry for power9-misc
10198 command-line option.
10199 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
10200 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
10201 RS6000_BTM_P9_MISC macros.
10202 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
10203 option and change the description of the -mpower9-vector option to
10204 enable only vector instructions, removing its erroneously claimed
10205 support for scalar instructions.
10206 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10207 the ISA 3.0 digital floating point test significance built-in
10208 functions.
10209
10210 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
10211
10212 * config/aarch64/aarch64.c (cortexa35_tunings):
10213 Enable AES fusion. Use cortexa57_branch_cost.
10214 (cortexa53_tunings): Use cortexa57_branch_cost.
10215 (cortexa72_tunings): Use cortexa57_branch_cost.
10216 Use AUTOPREFETCHER_WEAK.
10217 (cortexa73_tunings): Use cortexa57_branch_cost.
10218
10219 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10220 James Greenhalgh <james.greenhalgh@arm.com>
10221
10222 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
10223 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
10224 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
10225 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
10226 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
10227 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
10228 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
10229 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
10230 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
10231 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
10232 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
10233 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
10234 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
10235 New intrinsics.
10236
10237 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
10238 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10239
10240 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10241 New define_insn.
10242 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
10243
10244 2016-06-30 David Malcolm <dmalcolm@redhat.com>
10245
10246 PR driver/71651
10247 * gcc.c (driver::build_option_suggestions): Pass "option" to
10248 add_misspelling_candidates.
10249 * opts-common.c (add_misspelling_candidates): Add "option" param;
10250 use it to avoid adding negated forms for options marked with
10251 RejectNegative.
10252 * opts.h (add_misspelling_candidates): Add "option" param.
10253
10254 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10255
10256 PR middle-end/71693
10257 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
10258 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
10259 first when permuting bitwise operation with rotate. Cast
10260 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
10261
10262 2016-06-29 David Malcolm <dmalcolm@redhat.com>
10263
10264 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
10265 for misspelled param names.
10266 * params.c: Include spellcheck.h.
10267 (find_param_fuzzy): New function.
10268 * params.h (find_param_fuzzy): New prototype.
10269 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
10270 * spellcheck.h (struct edit_distance_traits<const char *>):
10271 ...here.
10272
10273 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
10274
10275 * config/rs6000/predicates.md (const_0_to_7_operand): New
10276 predicate, recognize 0..7.
10277 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10278 support for doing extracts from V16QImode, V8HImode, V4SImode
10279 under ISA 3.0.
10280 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
10281 vector extract support.
10282 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
10283 for ISA 3.0 vector extract.
10284 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
10285 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
10286 extracts of a constant element number from small integer vectors
10287 on 64-bit ISA 3.0 systems.
10288 (vsx_extract_<mode>_di): Likewise.
10289 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
10290 say when we can do ISA 3.0 vector extracts.
10291 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
10292 registers, using the stxsiwx instruction.
10293
10294 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
10295
10296 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
10297 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
10298 qdf24xx_regmove_cost, qdf24xx_tunings): New.
10299 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
10300 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
10301 * config/arm/arm.c (arm_qdf24xx_tune): New.
10302
10303 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
10304
10305 * config/aarch64/aarch64.c (cortexa53_tunings):
10306 Increase loop alignment to 8. Set function alignment to 16.
10307 (cortexa35_tunings): Likewise.
10308 (cortexa57_tunings): Increase loop alignment to 8.
10309 (cortexa72_tunings): Likewise.
10310 (cortexa73_tunings): Likewise.
10311
10312 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
10313
10314 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
10315 for arm_fp16_ok and arm_fp16_hw.
10316 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
10317 arm_fp16_alternative.
10318
10319 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
10320
10321 PR tree-optimization/71655
10322 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
10323 types when swapping operands.
10324
10325 2016-06-29 Martin Liska <mliska@suse.cz>
10326
10327 PR middle-end/71585
10328 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
10329 * ipa-inline-transform.c (inline_call): Remove unnecessary call
10330 of build_optimization_node.
10331
10332 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10333
10334 PR tree-optimization/70729
10335 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
10336 independent in loops having positive safelen value.
10337 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10338 it may be not valid after vectorization.
10339
10340 2016-06-29 Jakub Jelinek <jakub@redhat.com>
10341
10342 PR tree-optimization/71625
10343 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
10344 is sorted by ascending list->offset. If PTR is non-NULL and there is
10345 previous strinfo, call get_stridx_plus_constant.
10346 (get_stridx): Pass exp as second argument to get_addr_stridx.
10347 (addr_stridxptr): Add missing list = list->next, so that there can be
10348 more than one entries in the list. Bump limit from 16 to 32. Ensure
10349 the list is sorted by ascending list->offset.
10350 (get_stridx_plus_constant): Adjust so that it can be also called with
10351 ADDR_EXPR instead of SSA_NAME as PTR.
10352 (handle_char_store): Pass NULL_TREE as second argument to
10353 get_addr_stridx.
10354
10355 2016-06-29 Richard Biener <rguenther@suse.de>
10356
10357 PR rtl-optimization/68961
10358 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
10359
10360 2016-06-29 Richard Biener <rguenther@suse.de>
10361
10362 PR middle-end/71002
10363 * alias.c (component_uses_parent_alias_set_from): Handle
10364 type punning through union accesses by using the union alias set.
10365 * gimple.c (gimple_get_alias_set): Remove union type punning case.
10366
10367 2016-07-29 Richard Biener <rguenther@suse.de>
10368
10369 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
10370 precision not matching mode precision.
10371
10372 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
10373
10374 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
10375 pa_output_arg_descriptor.
10376 (call_val_symref_64bit_post_reload): Likewise.
10377 (call_val_powf_64bit_post_reload): Likewise.
10378 (sibcall_internal_symref_64bit): Likewise.
10379 (sibcall_value_internal_symref_64bit): Likewise.
10380
10381 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10382
10383 PR middle-end/71626
10384 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
10385 a constant, force its SUBREG_REG into memory or register instead
10386 of whole op1.
10387
10388 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10389
10390 PR target/58655
10391 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
10392 * doc/invoke.texi (AVR Options): Document it.
10393
10394 2016-06-28 Walter Lee <walt@tilera.com>
10395
10396 * config/tilegx/linux.h: Do not include arch/icache.h
10397 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10398 * config/tilepro/linux.h: Do not include arch/icache.h
10399 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10400
10401 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
10402
10403 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
10404 for big-endian BIT_FIELD_REF.
10405
10406 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
10407
10408 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
10409 ('size' attribute): Add '128'.
10410 Include power9.md.
10411 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
10412 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
10413 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
10414 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
10415 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
10416 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
10417 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
10418 *trunc<mode>df2_odd): Set size attribute to '128'.
10419 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
10420 * config/rs6000/power6.md (power6-fp): Include dfp type.
10421 * config/rs6000/power7.md (power7-fp): Likewise.
10422 * config/rs6000/power8.md (power8-fp): Likewise.
10423 * config/rs6000/power9.md: New file.
10424 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
10425 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
10426 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
10427 htmsimple.
10428 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
10429 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
10430 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
10431 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
10432 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
10433 dfp_dscri_<mode>): Change type attribute to dfp.
10434 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
10435 attribute to vecsimple.
10436 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
10437 and prefetch streams.
10438 (rs6000_option_override_internal): Remove temporary code setting
10439 tuning to power8. Don't set rs6000_sched_groups for power9.
10440 (last_scheduled_insn): Change to rtx_insn *.
10441 (divide_cnt, vec_load_pendulum): New variables.
10442 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
10443 (rs6000_issue_rate): Set issue rate for Power9.
10444 (is_power9_pairable_vec_type): New.
10445 (power9_sched_reorder2): New.
10446 (rs6000_sched_reorder2): Call new function for Power9 specific
10447 reordering.
10448 (insn_must_be_first_in_group): Remove Power9.
10449 (insn_must_be_last_in_group): Likewise.
10450 (force_new_group): Likewise.
10451 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
10452 Initialize divide_cnt/vec_load_pendulum.
10453 (_rs6000_sched_context, rs6000_init_sched_context,
10454 rs6000_set_sched_context): Handle context save/restore of new
10455 variables.
10456
10457 2016-06-28 Richard Biener <rguenther@suse.de>
10458
10459 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10460 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
10461 COMPONENT_REF operand.
10462 (nonoverlapping_component_refs_p): Likewise.
10463 * stor-layout.c (start_bitfield_representative): Mark
10464 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
10465
10466 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10467
10468 * Makefile.in: Don't cat ../stage_current if it does not exist.
10469
10470 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
10471 last argument is a bit-field.
10472
10473 PR rtl-optimization/71673
10474 * internal-fn.c (expand_arith_overflow_result_store): Use
10475 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
10476 expand_simple_binop.
10477
10478 PR middle-end/66867
10479 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
10480 expand_ifn_atomic_compare_exchange): New functions.
10481 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
10482 * tree.h (build_call_expr_internal_loc): Rename to ...
10483 (build_call_expr_internal_loc_array): ... this. Fix up type of
10484 last argument.
10485 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
10486 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
10487 ATOMIC_COMPARE_EXCHANGE result.
10488 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
10489 * gimple-fold.h (optimize_atomic_compare_exchange_p,
10490 fold_builtin_atomic_compare_exchange): New prototypes.
10491 * gimple-fold.c (optimize_atomic_compare_exchange_p,
10492 fold_builtin_atomic_compare_exchange): New functions..
10493 * tree-ssa.c (execute_update_addresses_taken): If
10494 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
10495 of call when finding addressable vars, and if such var becomes
10496 non-addressable, call fold_builtin_atomic_compare_exchange.
10497
10498 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
10499
10500 PR target/71670
10501 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
10502 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
10503
10504 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
10505
10506 * config/rs6000/rs6000.md ('type' attribute): Add
10507 veclogical,veccmpfx,vecexts,vecmove insn types.
10508 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
10509 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
10510 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
10511 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
10512 *nabs<mode>2_hw): Change type to vecmove.
10513 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
10514 *boolcc<mode>3_internal, *eqv<mode>3_internal,
10515 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
10516 *ieee_128bit_vsx_abs<mode>2_internal,
10517 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
10518 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
10519 *ieee128_mtvsrd_32bit): Change type to veclogical.
10520 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10521 *movdi_internal32, *movdi_internal64): Update insn types.
10522 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10523 vsx_extract_<mode>): Change type to veclogical.
10524 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
10525 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
10526 *vsx_sign_extend_si_v2di): Change type to vecexts.
10527 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
10528 type to veclogical.
10529 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
10530 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
10531 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
10532 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
10533 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10534 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
10535 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
10536 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
10537 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
10538 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
10539 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
10540 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
10541 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
10542 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
10543 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
10544 (ppc7450-vecsimple): Add veclogical, vecmove.
10545 (ppc7450-veccmp): Add veccmpfx.
10546 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
10547 vecmove.
10548 (ppc8540_vector_compare): Add veccmpfx.
10549 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
10550 * config/rs6000/cell.md (cell-fp): Add fpsimple.
10551 (cell-vecsimple): Add veclogical, vecmove.
10552 (cell-veccmp): Add veccmpfx.
10553 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
10554 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
10555 veccmpfx.
10556 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
10557 * config/rs6000/power4.md (power4-fp): Add fpsimple.
10558 (power4-vecsimple): Add veclogical, vecmove.
10559 (power4-veccmp): Add veccmpfx.
10560 * config/rs6000/power5.md (power5-fp): Add fpsimple.
10561 * config/rs6000/power6.md (power6-fp): Add fpsimple.
10562 (power6-vecsimple): Add veclogical, vecmove.
10563 (power6-veccmp): Add veccmpfx.
10564 * config/rs6000/power7.md (power7-fp): Add fpsimple.
10565 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
10566 * config/rs6000/power8.md (power8-fp): Add fpsimple.
10567 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
10568 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
10569 * config/rs6000/titan.md (titan_fp): Add fpsimple.
10570 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
10571 fpsimple.
10572 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
10573
10574 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
10575
10576 PR target/71656
10577 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10578 OPTION_MASK_P9_DFORM_VECTOR.
10579 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10580 disable -mpower9-dform-vector when using reload.
10581 (quad_address_p): Remove 'gpr_p' argument and all associated code.
10582 New 'strict' argument. Update all callers. Add strict addressing
10583 support.
10584 (rs6000_legitimate_offset_address_p): Remove call to
10585 virtual_stack_registers_memory_p.
10586 (rs6000_legitimize_reload_address): Add quad address support.
10587 (rs6000_legitimate_address_p): Move call to quad_address_p above
10588 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
10589 to account for new strict usage.
10590 (rs6000_output_move_128bit): Adjust quad_address_p args to account
10591 for new strict usage.
10592 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10593
10594 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
10595
10596 PR target/70902
10597 PR target/71453
10598 PR target/71555
10599 PR target/71596
10600 PR target/71657
10601 * config/i386/i386.c (ix86_spill_class): Disable condition to
10602 always return NO_REGS.
10603
10604 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
10605
10606 * predict.c: Include gimple-pretty-print.h
10607 (predicted_by_loop_heuristics_p): Check also
10608 PRED_LOOP_EXIT_WITH_RECURSION
10609 (predict_loops): Find self recursive calls and use special purpose
10610 predictors for them; dump log about decisions.
10611 (pass_profile::execute): Dump info about #of iterations.
10612 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10613 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10614
10615 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
10616
10617 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10618 output_asm_insn calls and shorten long lines. Output .CALL
10619 argument descriptor using pa_output_arg_descriptor. Add various
10620 inline $$dyncall and other optimizations.
10621 (pa_attr_length_indirect_call): Adjust ordering and lengths.
10622
10623 2016-06-25 Jakub Jelinek <jakub@redhat.com>
10624
10625 PR tree-optimization/71643
10626 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10627 EH preds.
10628
10629 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10630 leak a bitmap if dep_bb is NULL.
10631
10632 PR tree-optimization/71631
10633 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10634 to rewrite_expr_tree even if negate_result, move new_lhs var
10635 declaration and initialization earlier, for powi_result set afterwards
10636 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
10637 if new_lhs != lhs, and don't shadow gsi var.
10638
10639 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10640
10641 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10642 Add in_loop parameter.
10643 (predict_loops): Add loop guard heuristics.
10644 * predict.def (PRED_LOOP_GUARD): New heuristics.
10645
10646 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10647
10648 * predict.c: Include ipa-utils.h
10649 (tree_bb_level_prediction): Predict recursive calls.
10650 (tree_estimate_probability_bb): Skip inexpensive calls for call
10651 predictor.
10652 * predict.def (PRED_RECURSIVE_CALL): New.
10653
10654 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10655
10656 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10657 (BU_FLOAT128_1): Likewise.
10658 (FABSQ): Likewise.
10659 (COPYSIGNQ): Likewise.
10660 (RS6000_BUILTIN_NANQ): Likewise.
10661 (RS6000_BUILTIN_NANSQ): Likewise.
10662 (RS6000_BUILTIN_INFQ): Likewise.
10663 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10664 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10665 (TARGET_FOLD_BUILTIN): New #define.
10666 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10667 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10668 (rs6000_fold_builtin): New target hook implementation, handling
10669 folding of 128-bit NaNs and infinities.
10670 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10671 entries are filled in to avoid problems during bootstrap
10672 self-test; define builtins for 128-bit NaNs and infinities.
10673 (rs6000_opt_mask): Add entry for float128.
10674 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10675 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10676 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10677 (const_str_type_node): New #define.
10678 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10679 to a define_expand that dispatches to either copysign<mode>3_soft
10680 or copysign<mode>3_hard.
10681 (copysign<mode>3_hard): Rename from copysign<mode>3.
10682 (copysign<mode>3_soft): New define_insn.
10683 * doc/extend.texi: Document new builtins.
10684
10685 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10686
10687 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10688 PRIu64 instead of lu.
10689
10690 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
10691
10692 PR debug/71642
10693 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10694 copy the type name.
10695
10696 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10697
10698 PR tree-optimization/71647
10699 * omp-low.c (lower_rec_input_clauses): Convert
10700 omp_clause_aligned_alignment (c) to size_type_node for the
10701 last argument of __builtin_assume_aligned.
10702
10703 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
10704
10705 * configure.ac (calling ___tls_get_addr via GOT): New
10706 assembler/linker check.
10707 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
10708 assembler and linker supports calling ___tls_get_addr via GOT.
10709 Otherise, defined to 0.
10710 * config.in: Regenerated.
10711 * configure: Likewise.
10712 * config/i386/constraints.md (Yb): New constraint.
10713 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10714 (REG_CLASS_NAMES): Likewise.
10715 (REG_CLASS_CONTENTS): Likewise.
10716 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10717 the b constraint with the Yb constraint. Call ___tls_get_addr
10718 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10719 is 1.
10720 (*tls_local_dynamic_base_32_gnu): Likewise.
10721 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10722 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10723 (*tls_local_dynamic_base_64_<mode>): Likewise.
10724
10725 2016-06-24 Martin Liska <mliska@suse.cz>
10726
10727 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10728 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10729 few functions.
10730 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10731 argument to true if the expected number of iterations is
10732 loop-based.
10733
10734 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10735
10736 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10737 assemble for 32bit target.
10738 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10739 and $ld_ix86_gld_32_opt to link for 32bit target.
10740 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10741 * configure: Regenerate.
10742
10743 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10744
10745 * config/arm/arm.c (int_log2): Delete definition and prototype.
10746 (shift_op): Use exact_log2 instead of int_log2.
10747 (vfp3_const_double_for_fract_bits): Likewise.
10748
10749 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10750
10751 * internal-fn.c (expand_arith_set_overflow): New function.
10752 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10753 Use it.
10754 (expand_arith_overflow_result_store): Likewise. Handle precision
10755 smaller than mode precision.
10756 * tree-vrp.c (extract_range_basic): For imag part, handle
10757 properly signed 1-bit precision result.
10758 * doc/extend.texi (__builtin_add_overflow): Document that last
10759 argument can't be pointer to enumerated or boolean type.
10760 (__builtin_add_overflow_p): Document that last argument can't
10761 have enumerated or boolean type.
10762
10763 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10764 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10765
10766 * config/rs6000/predicates.md (splat_input_operand): Rework.
10767 Don't allow constants, since the insns that use this predicate
10768 don't support constants. Constants are handled by other insns
10769 that are created via combine. During and after register
10770 allocation, only allow indexed or indirect addresses, and not
10771 general addresses. Only allow modes supported by the hardware.
10772 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10773 comment. Move check for using VSPLTIS<x> to a common location,
10774 instead of doing it in two different places.
10775
10776 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10777
10778 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10779 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10780 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10781 signature_CENTAUR_ebx.
10782
10783 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10784
10785 PR target/66232
10786 PR target/67400
10787 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10788 (as_ix86_gas_32_opt): This.
10789 (ld_ix86_tls_ldm_opt): Renamed to ...
10790 (ld_ix86_gld_32_opt): This.
10791 (R_386_TLS_LDM reloc): Updated.
10792 (R_386_GOT32X reloc): New assembler/linker check.
10793 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10794 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10795 defined to 0.
10796 * config.in: Regenerated.
10797 * configure: Likewise.
10798 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10799 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10800 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10801 if ix86_force_load_from_GOT_p returns true.
10802 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10803 ix86_force_load_from_GOT_p returns true.
10804 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10805 the external function address via the GOT slot.
10806 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10807 HAVE_AS_IX86_GOT32X before returning false.
10808 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10809 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10810
10811 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10812
10813 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10814
10815 2016-06-23 Andi Kleen <ak@linux.intel.com>
10816
10817 * Makefile.in: Regenerate.
10818 * doc/install.texi: Document autoprofiledbootstrap.
10819
10820 2016-06-23 Andi Kleen <ak@linux.intel.com>
10821
10822 * config/i386/gcc-auto-profile: New file.
10823
10824 2016-06-23 Martin Liska <mliska@suse.cz>
10825
10826 PR middle-end/71619
10827 * predict.c (predict_loops): Revert the hunk that was removed
10828 in r237103.
10829
10830 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10831
10832 * config.gcc: Add support for arm*-*-phoenix* targets.
10833 * config/arm/t-phoenix: New.
10834 * config/phoenix.h: New.
10835
10836 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10837 H.J. Lu <hongjiu.lu@intel.com>
10838
10839 PR target/67400
10840 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10841 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10842 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10843 ix86_force_load_from_GOT_p returns true.
10844 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10845 ix86_force_load_from_GOT_p returns true.
10846 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10847 ix86_force_load_from_GOT_p returns true.
10848 (ix86_expand_move): Load the external function address via the
10849 GOT slot if ix86_force_load_from_GOT_p returns true.
10850 * config/i386/predicates.md (x86_64_immediate_operand): Return
10851 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10852 (x86_64_zext_immediate_operand): Ditto.
10853
10854 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10855
10856 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10857
10858 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10859
10860 PR c/70339
10861 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10862 * diagnostic.c (pedwarn_at_rich_loc): New function.
10863 * spellcheck.h (best_match::best_match): Add a
10864 "best_distance_so_far" optional parameter.
10865 (best_match::set_best_so_far): New method.
10866 (best_match::get_best_distance): New accessor.
10867 (best_match::get_best_candidate_length): New accessor.
10868
10869 2016-06-22 Nick Clifton <nickc@redhat.com>
10870
10871 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10872 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10873 modes are accepted as well.
10874 (ucompare_loc_descriptor): Likewise.
10875 (minmax_loc_descriptor): Likewise.
10876 (clz_loc_descriptor): Likewise.
10877 (popcount_loc_descriptor): Likewise.
10878 (bswap_loc_descriptor): Likewise.
10879 (rotate_loc_descriptor): Likewise.
10880 (mem_loc_descriptor): Likewise.
10881 (loc_descriptor): Likewise.
10882
10883 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10884
10885 * common.opt (fdiagnostics-parseable-fixits): New option.
10886 * diagnostic.c: Include "selftest.h".
10887 (print_escaped_string): New function.
10888 (print_parseable_fixits): New function.
10889 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10890 (selftest::assert_print_escaped_string): New function.
10891 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10892 (selftest::test_print_escaped_string): New function.
10893 (selftest::test_print_parseable_fixits_none): New function.
10894 (selftest::test_print_parseable_fixits_insert): New function.
10895 (selftest::test_print_parseable_fixits_remove): New function.
10896 (selftest::test_print_parseable_fixits_replace): New function.
10897 (selftest::diagnostic_c_tests): New function.
10898 * diagnostic.h (struct diagnostic_context): Add field
10899 "parseable_fixits_p".
10900 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10901 -fdiagnostics-parseable-fixits.
10902 (-fdiagnostics-parseable-fixits): New option.
10903 * opts.c (common_handle_option): Handle
10904 -fdiagnostics-parseable-fixits.
10905 * selftest-run-tests.c (selftest::run_tests): Call
10906 selftest::diagnostic_c_tests.
10907 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10908
10909 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10910
10911 PR tree-optimization/71488
10912 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10913 comparison of boolean vectors.
10914 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10915 of boolean vectors using bitwise operations.
10916
10917 2016-06-22 Andreas Schwab <schwab@suse.de>
10918
10919 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10920 Remove declaration.
10921
10922 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
10923
10924 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10925
10926 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
10927
10928 * config/i386/i386.c (print_reg): Emit an error message on attempt to
10929 print FLAGS_REG.
10930
10931 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10932
10933 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10934 * config/arm/arm-cores.def (cortex-a73): New entry.
10935 (cortex-a73.cortex-a35): Likewise.
10936 (cortex-a73.cortex-a53): Likewise.
10937 * config/arm/arm-tables.opt: Regenerate.
10938 * config/arm/arm-tune.md: Likewise.
10939 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10940 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10941 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10942 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10943 * doc/invoke.texi (ARM Options): Document cortex-a73,
10944 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10945
10946 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10947
10948 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10949 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10950 (cortex-a73.cortex-a35): Likewise.
10951 (cortex-a73.cortex-a53): Likewise.
10952 * config/aarch64/aarch64-tune.md: Regenerate.
10953 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10954 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10955 -mcpu and -mtune.
10956
10957 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10958
10959 * configure.ac (gcc_cv_as_compress_debug): Remove
10960 --compress-debug-sections as extra as switch.
10961 Handle gas --compress-debug-sections=type.
10962 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10963 Handle gld --compress-debug-sections=type.
10964 * configure: Regenerate.
10965
10966 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
10967
10968 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10969
10970 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
10971
10972 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10973 (do_rewrite): likewise.
10974
10975 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10976
10977 * common/config/mep/mep-common.c: Remove.
10978 * config.gcc: Remove mep-* support.
10979 * config/mep/constraints.md: Remove.
10980 * config/mep/default.h: Remove.
10981 * config/mep/intrinsics.h: Remove.
10982 * config/mep/intrinsics.md: Remove.
10983 * config/mep/ivc2-template.h: Remove.
10984 * config/mep/mep-c5.cpu: Remove.
10985 * config/mep/mep-core.cpu: Remove.
10986 * config/mep/mep-default.cpu: Remove.
10987 * config/mep/mep-ext-cop.cpu: Remove.
10988 * config/mep/mep-intrin.h: Remove.
10989 * config/mep/mep-ivc2.cpu: Remove.
10990 * config/mep/mep-pragma.c: Remove.
10991 * config/mep/mep-protos.h: Remove.
10992 * config/mep/mep.c: Remove.
10993 * config/mep/mep.cpu: Remove.
10994 * config/mep/mep.h: Remove.
10995 * config/mep/mep.md: Remove.
10996 * config/mep/mep.opt: Remove.
10997 * config/mep/predicates.md: Remove.
10998 * config/mep/t-mep: Remove.
10999 * doc/install.texi: Remove mep-* documentation.
11000 * doc/md.texi: Likewise.
11001
11002 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11003
11004 * config.gcc: Remove support for avr-rtems.
11005 * config/avr/gen-avr-mmcu-specs.c: Likewise.
11006 * config/avr/rtems.h: Remove.
11007 * config/avr/t-rtems: Remove.
11008
11009 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11010
11011 * config.gcc: Remove m32r-rtems support.
11012 * config/m32r/rtems.h: Remove.
11013
11014 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11015
11016 * config.gcc: Remove h8300-rtems support.
11017 * config/h8300/rtems.h: Remove.
11018 * config/h8300/t-rtems: Remove.
11019
11020 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11021
11022 * config.gcc: Remove support for knetbsd.
11023 * configure.ac: Likewise.
11024 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
11025 * config/knetbsd-gnu.h: Remove.
11026 * configure: Regenerate.
11027
11028 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11029
11030 * config.gcc: Remove support for openbsd 2 and 3.
11031 * config/openbsd-oldgas.h: Remove.
11032
11033 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11034
11035 * config.gcc: Remove interix support.
11036 * config/i386/i386-interix.h: Remove.
11037 * config/i386/interix.opt: Remove.
11038 * config/i386/t-interix: Remove.
11039 * configure: Regenerate.
11040 * configure.ac: Remove interix support.
11041 * doc/install.texi: Remove interix documentation.
11042
11043 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11044
11045 * config/rs6000/rs6000.h: Add conditional preprocessing directives
11046 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
11047 not defined.
11048
11049 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11050
11051 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
11052 they are both PLACEHOLDER_EXPRs.
11053
11054 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11055
11056 * stor-layout.c (layout_type): Move setting complex MODE to
11057 layout_type, instead of setting it ahead of time by the caller.
11058 * tree.c (build_complex_type): Likewise.
11059
11060 2016-06-21 Martin Liska <mliska@suse.cz>
11061
11062 * predict.c (force_edge_cold): Replace imposisble with
11063 impossible.
11064
11065 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11066
11067 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
11068 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
11069
11070 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11071
11072 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
11073
11074 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
11075 Ilya Enkovich <ilya.enkovich@intel.com>
11076
11077 PR target/71549
11078 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11079 New member function to convert V1TImode register to SUBREG
11080 TImode in debug insn.
11081 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
11082 after changing register mode to V1TImode.
11083
11084 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
11085
11086 * config/aarch64/aarch64-cores.def (vulcan): New core.
11087 * config/aarch64/aarch64-tune.md: Regenerate.
11088 * doc/invoke.texi: Document vulcan as an available option.
11089
11090 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11091
11092 * cse.c (canon_asm_operands): New function extracted from...
11093 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
11094 either standalone or member of a PARALLEL.
11095
11096 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11097
11098 PR target/30417
11099 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
11100 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
11101 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
11102
11103 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11104
11105 PR target/71103
11106 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
11107 constant addresses if can_create_pseudo_p.
11108
11109 2016-06-21 Jakub Jelinek <jakub@redhat.com>
11110
11111 PR tree-optimization/71588
11112 * tree-ssa-strlen.c (valid_builtin_call): New function.
11113 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
11114 it.
11115
11116 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11117
11118 PR middle-end/71581
11119 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
11120 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
11121 for conversion of scalar user var to complex type and use the
11122 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
11123 punt.
11124
11125 PR rtl-optimization/71591
11126 * toplev.c (toplev::run_self_tests): If no_backend, complain and
11127 don't run any tests.
11128
11129 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
11130
11131 PR target/71571
11132 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
11133 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
11134 space for PIC with non-v32 and the common non-PIC "jump".
11135
11136 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11137
11138 PR target/71559
11139 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
11140 returned values and add UN*/LTGT/*ORDERED cases with values matching
11141 D operand modifier on vcmp for AVX.
11142
11143 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11144
11145 * config/aarch64/aarch64.opt
11146 (mpc-relative-literal-loads): Rename internal option name.
11147 * config/aarch64/aarch64.c
11148 (aarch64_nopcrelative_literal_loads): Rename to
11149 aarch64_pcrelative_literal_loads.
11150 (aarch64_expand_mov_immediate): Likewise.
11151 (aarch64_secondary_reload): Likewise.
11152 (aarch64_can_use_per_function_literal_pools_p): Likewise.
11153 (aarch64_override_options_after_change_1): Rename and simplify logic.
11154 (aarch64_classify_symbol): Merge large model checks into switch,
11155 remove pc-relative load check.
11156
11157 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11158
11159 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
11160 costs relative to the cost of a register move.
11161
11162 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11163
11164 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
11165 (vcvt_n_f64_u64): Likewise.
11166 (vcvt_n_s64_f64): Likewise.
11167 (vcvt_n_u64_f64): Likewise.
11168 (vcvt_f64_s64): Likewise.
11169 (vrecpe_f64): Likewise.
11170 (vcvt_f64_u64): Likewise.
11171 (vrecps_f64): Likewise.
11172
11173 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11174
11175 * config/aarch64/aarch64.md
11176 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
11177 iterators.
11178 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
11179 attributes.
11180 * config/aarch64/aarch64-builtins.c
11181 (aarch64_types_binop_uss_qualifiers): Delete.
11182 (TYPES_BINOP_USS): Likewise.
11183 (aarch64_types_binop_sus_qualifiers): Likewise.
11184 (TYPES_BINOP_SUS): Likewise.
11185 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
11186 (TYPES_FCVTIMM_SUS): Likewise.
11187 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
11188 rather than BINOP.
11189 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
11190 (fcvtzs): Use SHIFTIMM rather than BINOP.
11191 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
11192
11193 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11194
11195 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
11196 costs relative to the cost of a register move.
11197
11198 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11199
11200 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
11201 Allow scalar/single vector modes to be tieable.
11202
11203 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11204
11205 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
11206
11207 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11208
11209 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
11210 "alignement".
11211 * tree.h (TYPE_ALIGN): Likewise.
11212
11213 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11214
11215 PR target/71103
11216 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
11217
11218 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11219
11220 * config/avr/avr.c (avr_print_operand): Fix "format not a string
11221 literal" build warnings.
11222 (avr_print_operand_address): Dito.
11223
11224 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
11225
11226 PR target/71375
11227 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
11228 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
11229
11230 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
11231
11232 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
11233
11234 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
11235
11236 PR bootstrap/71435
11237 * reload1.c (reload): Pass 0 to finish_spills when called because
11238 update_eliminables_and_spill returns true and remove did_spill.
11239 (finish_spills): Adjust comment and document GLOBAL parameter.
11240
11241 2016-06-17 DJ Delorie <dj@redhat.com>
11242
11243 PR target/71338
11244 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
11245 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
11246 (umulqihi3_virt): Likewise.
11247 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
11248 (umulqihi3_real): Likewise.
11249
11250 2016-06-17 Martin Liska <mliska@suse.cz>
11251
11252 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
11253
11254 2016-06-17 Martin Liska <mliska@suse.cz>
11255
11256 * predict.def: PRED_LOOP_EXIT from 92 to 85.
11257
11258 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
11259
11260 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
11261 __FAST_MATH__.
11262 (vaddq_f32): Likewise.
11263 (vmul_f32): Likewise.
11264 (vmulq_f32): Likewise.
11265 (vsub_f32): Likewise.
11266 (vsubq_f32): Likewise.
11267
11268 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11269
11270 PR tree-optimization/71347
11271 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
11272 cost for all uses in group.
11273
11274 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11275
11276 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
11277 insert gimple seq if it's not empty.
11278
11279 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11280
11281 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
11282 member OFFSET.
11283 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
11284 rather than OFFSET.
11285 (comp_dr_with_seg_len_pair): Ditto.
11286 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
11287 struct dr_with_seg_len_pair against DR_OFFSET.
11288 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
11289 DR_OFFSET directly.
11290
11291 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
11292
11293 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
11294
11295 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
11296
11297 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
11298 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
11299 (pa_output_millicode_call): Likewise.
11300 (pa_output_call): Likewise.
11301 (pa_output_indirect_call): Likewise.
11302 (pa_asm_output_mi_thunk): Likewise.
11303
11304 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11305
11306 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
11307
11308 2016-06-16 Martin Liska <mliska@suse.cz>
11309
11310 * predict.c (combine_predictions_for_insn): When we find a first
11311 match predictor, we should consider just predictors with
11312 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
11313 DS theory predictor.
11314 (combine_predictions_for_bb): Likewise.
11315
11316 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11317
11318 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
11319 with base of reference to struct.
11320
11321 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11322
11323 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
11324
11325 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11326
11327 PR target/71151
11328 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
11329 progmem_swtable_section.
11330 (progmem_swtable_section): Remove.
11331 (avr_asm_function_rodata_section): Remove.
11332 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
11333 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
11334
11335 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
11336
11337 * config/i386/driver-i386.c (host_detect_local_cpu): Set
11338 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
11339 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
11340 signature_CENTAUR_ebx.
11341 * config/i386/i386.c (ix86_option_override_internal): Add
11342 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
11343 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
11344 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
11345
11346 2016-06-16 Martin Liska <mliska@suse.cz>
11347
11348 * predict.def: Add fortran loop preheader predictor.
11349 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
11350 fold IFN_BUILTIN_EXPECT with a known constant argument.
11351
11352 2016-06-16 Martin Liska <mliska@suse.cz>
11353
11354 * predict.def: Add 'Fortran' to display text of all
11355 PRED_FORTRAN_* predictors.
11356
11357 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11358
11359 PR target/71242
11360 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
11361 [IA64_BUILTIN_NANSQ]: Ditto.
11362 (ia64_fold_builtin): New function.
11363 (TARGET_FOLD_BUILTIN): New define.
11364 (ia64_init_builtins) Declare const_string_type node.
11365 Add __builtin_nanq and __builtin_nansq builtin functions.
11366 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
11367
11368 2016-06-16 Nick Clifton <nickc@redhat.com>
11369
11370 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
11371 MSP430_HWMULT_ prefix to enum values.
11372 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
11373 * config/msp430/msp430.c: Update use of enum values.
11374 * config/msp430/msp430.md: Likewise.
11375 * config/msp430/msp430.opt: Likewise.
11376
11377 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
11378
11379 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
11380 of comparsions in the last iteration.
11381
11382 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11383 Joern Rennecke <joern.rennecke@embecosm.com>
11384
11385 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
11386 addresses.
11387 (arc_needs_pcl_p): Add GOTOFFPC.
11388 (arc_legitimate_pic_addr_p): Likewise.
11389 (arc_output_pic_addr_const): Likewise.
11390 (arc_legitimize_pic_address): Generate a pc-relative address using
11391 GOTOFFPC.
11392 (arc_output_libcall): Use @pcl syntax.
11393 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
11394 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
11395 (*movsi_insn): Use @pcl syntax.
11396 (doloop_begin_i): Likewise.
11397
11398 2016-06-16 Martin Liska <mliska@suse.cz>
11399
11400 * predict.def: Define a new predictor.
11401
11402 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11403
11404 * config/arc/arc.opt (mtp-regno): Update text.
11405
11406 2016-06-16 Renlin Li <renlin.li@arm.com>
11407
11408 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
11409
11410 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11411
11412 PR target/71554
11413 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
11414 (setcc + and peephole2): Likewise.
11415
11416 PR rtl-optimization/71532
11417 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
11418 memory slots.
11419
11420 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11421
11422 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
11423 DImode constants with XXSPLTIB in vector registers.
11424 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
11425 vsx_extract_<mode>_internal{1,2} into a single insn that handles
11426 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
11427 extraction of the element at the top of the register as a scalar
11428 value.
11429 (vsx_extract_<mode>_internal1): Likewise.
11430 (vsx_extract_<mode>_internal2): Likewise.
11431 * config/rs6000/constraints.md (wi constraint): Remove a comment
11432 about DImode not being allowed in Altivec registers.
11433 (wB constraint): New constraint for constants that can be
11434 generated in Altivec registers with VSPLTISW/VUPKHSW.
11435 * config/rs6000/predicates.md (xxspltib_constant_split): Update
11436 comments.
11437 (xxspltib_constant_nosplit): Likewise.
11438 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
11439 support for -mupper-regs-di to enable DImode to go into Altivec
11440 registers.
11441 (POWERPC_MASKS): Likewise.
11442 (power7 cpu): Likewise.
11443 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
11444 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11445 for DImode being allowed in Altivec registers. Update wi/wj
11446 constraints. Set scalar_in_vmx_p flag.
11447 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
11448 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
11449 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
11450 (rs6000_opt_masks): Add -mupper-regs-di.
11451 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
11452 direct move to use wi and not wj.
11453 (lfiwzx): Likewise.
11454 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
11455 alternative.
11456 (floatunssi<mode>2_lfiwzx_mem): Likewise.
11457 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
11458 any VSX register, instead of just Altivec registers, to allow
11459 either operand to be an Altivec register or both.
11460 (fixuns_trunc<mode>di2_fctiduz): Likewise.
11461 (movdi_internal32): Add support for -mupper-regs-di. Add support
11462 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
11463 the alternatives and attributes to be lined up to be easier to
11464 read.
11465 (movdi_internal64): Likewise.
11466 (64-bit DImode splitters): Change predicates to only split loading
11467 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
11468 load constants in ISA 3.0 or ISA 2.07 respectively.
11469 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11470 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
11471 mention -mcpu=power9 sets these options.
11472 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
11473 wB constraint.
11474
11475 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11476
11477 PR target/67353
11478 * config/avr/avr.c (avr_set_current_function): Warn misspelled
11479 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
11480 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
11481 by default to warn misspelled interrupt/ signal handler.
11482 * doc/invoke.texi (AVR Options): Document it. Update description
11483 for -nodevicelib option.
11484
11485 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11486
11487 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
11488 up parentheses. Use GET_MODE_UNIT_BITSIZE.
11489 (aarch64_<sur>shll2_n<mode>): Likewise.
11490
11491 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
11492
11493 PR middle-end/71529
11494 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
11495 DECL_CONTEXT for copied arguments.
11496
11497 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11498
11499 PR tree-optimization/71483
11500 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
11501 for slp
11502
11503 2016-06-15 Martin Liska <mliska@suse.cz>
11504
11505 * predict.c (tree_predict_by_opcode): Call predict_edge_def
11506 instead of predict_edge w/o a probability.
11507
11508 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11509
11510 PR tree-optimization/71439
11511 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
11512 live PHIs.
11513
11514 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11515
11516 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
11517 register subregs in SET_SRC.
11518
11519 2016-06-15 Richard Biener <rguenther@suse.de>
11520
11521 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
11522 store restrictions.
11523
11524 2016-06-15 Richard Biener <rguenther@suse.de>
11525
11526 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
11527 not consider dependences between accesses that belong to the
11528 same group.
11529 (vect_analyze_data_ref_dependences): Do not analyze read-read
11530 or self-dependences.
11531
11532 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11533
11534 * spellcheck-tree.c: Include spellcheck-tree.h rather than
11535 spellcheck.h.
11536 (find_closest_identifier): Reimplement in terms of
11537 best_match<tree,tree>.
11538 * spellcheck-tree.h: New file.
11539 * spellcheck.c (struct edit_distance_traits<const char *>): New
11540 struct.
11541 (find_closest_string): Reimplement in terms of
11542 best_match<const char *, const char *>.
11543 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
11544 overload to spellcheck-tree.h.
11545 (find_closest_identifier): Likewise.
11546 (struct edit_distance_traits<T>): New template.
11547 (class best_match): New class.
11548
11549 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11550
11551 * selftest-run-tests.c (selftest::run_tests): Call
11552 selftest::spellcheck_tree_c_tests.
11553 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
11554 * spellcheck-tree.c: Include selftest.h and stringpool.h.
11555 (selftest::test_find_closest_identifier): New function.
11556 (selftest::spellcheck_tree_c_tests): New function.
11557 * spellcheck.c (selftest::test_find_closest_string): Verify that
11558 the order of the vec does not affect the results for this case.
11559 (selftest::test_data): New array.
11560 (selftest::test_metric_conditions): New function.
11561 (selftest::spellcheck_c_tests): Add a test of case-comparison.
11562 Call selftest::test_metric_conditions.
11563
11564 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11565
11566 * config/rs6000/rs6000-builtin.def (commentary): Typo.
11567 (BU_P9_MISC_1): Likewise.
11568 (BU_P9_64BIT_MISC_0): Likewise.
11569 (BU_P9_MISC_0): Likewise.
11570
11571 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11572
11573 * gcc-rich-location.c
11574 (gcc_rich_location::add_fixit_misspelled_id): New method.
11575 * gcc-rich-location.h
11576 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
11577
11578 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
11579
11580 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
11581 FreeBSD 11 and above.
11582
11583 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
11584
11585 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
11586
11587 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11588
11589 * expmed.h: Close parenthesis in "at your option" in copyright
11590 boilerplate.
11591 * lower-subreg.h: Likewise.
11592
11593 2016-06-14 Richard Biener <rguenther@suse.de>
11594
11595 PR middle-end/71526
11596 * genmatch.c (expr::gen_transform): Use in_type for comparisons
11597 if available.
11598
11599 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11600
11601 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11602 New function.
11603 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
11604 mask+shift version.
11605 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11606 New prototype.
11607 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11608 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11609
11610 2016-06-14 Richard Biener <rguenther@suse.de>
11611
11612 PR tree-optimization/71522
11613 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11614 copying into float copying.
11615
11616 2016-06-14 Jakub Jelinek <jakub@redhat.com>
11617
11618 PR tree-optimization/71520
11619 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11620 (replace_block_by): Move user labels from bb1 to bb2.
11621
11622 2016-06-14 Richard Biener <rguenther@suse.de>
11623
11624 PR middle-end/71310
11625 PR bootstrap/71510
11626 * expr.h (get_bit_range): Declare.
11627 * expr.c (get_bit_range): Export.
11628 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11629 word_mode again to constrain the bitfield access.
11630
11631 2016-06-14 Richard Biener <rguenther@suse.de>
11632
11633 PR tree-optimization/71521
11634 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11635 division int_const_binop against zero divisor.
11636
11637 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11638
11639 * config/i386/i386.md (signbittf2): New expander.
11640 * config/i386/sse.md (ptesttf2): New insn pattern.
11641
11642 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11643
11644 PR bootstrap/71481
11645 * input.c (selftest::test_reading_source_line): Avoid reading from
11646 __FILE__ by creating a tempfile with known content and reading
11647 from that instead.
11648
11649 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11650
11651 * pretty-print.c (assert_pp_format_colored): Skip the test if
11652 GCC_COLORS is set.
11653 (test_pp_format): Remove comment about GCC_COLORS.
11654
11655 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11656
11657 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11658 * pretty-print.c (assert_pp_format_va): Add location param and use
11659 it with ASSERT_STREQ_AT.
11660 (assert_pp_format): Add location param and pass it to
11661 assert_pp_format_va.
11662 (assert_pp_format_colored): Likewise.
11663 (ASSERT_PP_FORMAT_1): New.
11664 (ASSERT_PP_FORMAT_2): New.
11665 (ASSERT_PP_FORMAT_3): New.
11666 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11667 explicitly, or implicitly via the above macros.
11668 * selftest.c (selftest::pass): Use a selftest::location rather
11669 than file and line.
11670 (selftest::fail): Likewise. Print the function name.
11671 (selftest::fail_formatted): Likewise.
11672 (selftest::assert_streq): Use a selftest::location rather than
11673 file and line.
11674 * selftest.h (selftest::location): New struct.
11675 (SELFTEST_LOCATION): New macro.
11676 (selftest::pass): Accept a const location & rather than file
11677 and line.
11678 (selftest::fail): Likewise.
11679 (selftest::fail_formatted): Likewise.
11680 (selftest::assert_streq): Likewise.
11681 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11682 (ASSERT_FALSE): Likewise.
11683 (ASSERT_EQ): Likewise.
11684 (ASSERT_NE): Likewise.
11685 (ASSERT_STREQ): Likewise.
11686 (ASSERT_PRED1): Likewise.
11687 (ASSERT_STREQ_AT): New macro.
11688
11689 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11690
11691 * selftest.c (selftest::fail_formatted): New function.
11692 (selftest::assert_streq): New function.
11693 * selftest.h (selftests::fail_formatted): New decl.
11694 (selftest::assert_streq): New decl.
11695 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11696
11697 2016-06-13 Jeff Law <law@redhat.com>
11698
11699 PR tree-optimization/71403
11700 * tree-ssa-threadbackward.c
11701 (convert_and_register_jump_thread_path): No longer accept reference
11702 to path. Do not pop items off the path anymore.
11703 (fsm_find_control_statement_thread_paths): Do not allow threading
11704 to a deeper loop nest. Pop the last item off the path here rather
11705 than in convert_and_register_jump_thread_path.
11706
11707 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11708 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
11709
11710 [AArch64] Emit division using the Newton series
11711
11712 * config/aarch64/aarch64-protos.h
11713 (cpu_approx_modes): Add new member "division".
11714 (aarch64_emit_approx_div): Declare new function.
11715 * config/aarch64/aarch64.c
11716 (generic_approx_modes): New member "division".
11717 (exynosm1_approx_modes): Likewise.
11718 (xgene1_approx_modes): Likewise.
11719 (aarch64_emit_approx_div): Define new function.
11720 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11721 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11722 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11723 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11724
11725 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11726 Wilco Dijkstra <wilco.dijkstra@arm.com>
11727
11728 [AArch64] Emit square root using the Newton series
11729
11730 * config/aarch64/aarch64-protos.h
11731 (aarch64_emit_approx_rsqrt): Replace with new function
11732 "aarch64_emit_approx_sqrt".
11733 (cpu_approx_modes): New member "sqrt".
11734 * config/aarch64/aarch64.c
11735 (generic_approx_modes): New member "sqrt".
11736 (exynosm1_approx_modes): Likewise.
11737 (xgene1_approx_modes): Likewise.
11738 (aarch64_emit_approx_rsqrt): Replace with new function
11739 "aarch64_emit_approx_sqrt".
11740 (aarch64_override_options_after_change_1): Handle new option.
11741 * config/aarch64/aarch64-simd.md
11742 (rsqrt<mode>2): Use new function instead.
11743 (sqrt<mode>2): New expansion and insn definitions.
11744 * config/aarch64/aarch64.md: Likewise.
11745 * config/aarch64/aarch64.opt
11746 (mlow-precision-sqrt): Add new option description.
11747 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11748
11749 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11750
11751 [AArch64] Add more choices for the reciprocal square root approximation
11752
11753 Allow a target to prefer such operation depending on the operation mode.
11754
11755 * config/aarch64/aarch64-protos.h
11756 (AARCH64_APPROX_MODE): New macro.
11757 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11758 (cpu_approx_modes): New structure.
11759 (tune_params): New member "approx_modes".
11760 * config/aarch64/aarch64-tuning-flags.def
11761 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11762 * config/aarch64/aarch64.c
11763 (generic_approx_modes): New core "cpu_approx_modes" structure.
11764 (exynosm1_approx_modes): Likewise.
11765 (xgene1_approx_modes): Likewise.
11766 (generic_tunings): New member "approx_modes".
11767 (cortexa35_tunings): Likewise.
11768 (cortexa53_tunings): Likewise.
11769 (cortexa57_tunings): Likewise.
11770 (cortexa72_tunings): Likewise.
11771 (exynosm1_tunings): Likewise.
11772 (thunderx_tunings): Likewise.
11773 (xgene1_tunings): Likewise.
11774 (use_rsqrt_p): New argument for the mode and use new member from
11775 "tune_params".
11776 (aarch64_builtin_reciprocal): Devise mode from builtin.
11777 (aarch64_optab_supported_p): New argument for the mode.
11778 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11779
11780 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11781
11782 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11783 RS6000_BTM_MODULO flag into the set of flags that are considered
11784 to be part of the common configuration.
11785
11786 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11787
11788 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11789 difference unsigned.
11790 (vec_absdb): New macro for vector absolute difference unsigned
11791 byte.
11792 (vec_absdh): New macro for vector absolute difference unsigned
11793 half-word.
11794 (vec_absdw): New macro for vector absolute difference unsigned word.
11795 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11796 (vadu<mode>3): New insn.
11797 (*p9_vadu<mode>3): New insn.
11798 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11799 definition.
11800 (vaduh): New built-in definition.
11801 (vaduw): New built-in definition.
11802 (vadu): New overloaded built-in definition.
11803 (vadub): New overloaded built-in definition.
11804 (vaduh): New overloaded built-in definition.
11805 (vaduw): New overloaded built-in definition.
11806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11807 overloaded vector absolute difference unsigned functions.
11808 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11809 the ISA 3.0 vector absolute difference unsigned built-in functions.
11810
11811 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11812
11813 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11814 update shared_lookup_references only once after changing operands.
11815
11816 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11817
11818 PR middle-end/71373
11819 * tree-nested.c (convert_nonlocal_omp_clauses)
11820 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11821
11822 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11823 * tree.def (CASE_LABEL_EXPR): Likewise.
11824
11825 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11826
11827 PR bootstrap/71481
11828 * input.c (test_builtins): Fix an assertion.
11829
11830 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11831
11832 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11833 (paritysi2): Ditto.
11834 (isinfxf2): Ditto.
11835 (isinf<mode>2): Ditto.
11836
11837 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11838
11839 * ggc-tests.c (test_finalization): Only test need_finalization_p
11840 for GCC_VERSION >= 4003.
11841
11842 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11843
11844 * config/s390/vecintrin.h: Fix file description in comment.
11845
11846 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11847
11848 * config/s390/s390-builtin-types.def: Change builtin type naming
11849 scheme to match builtin-types.def.
11850
11851 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11852
11853 * fold-const.c (optimize_minmax_comparison): Remove.
11854 (fold_comparison): Remove call to the above.
11855 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11856 New transformations.
11857
11858 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11859
11860 PR tree-optimization/71416
11861 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11862 multiple entries
11863
11864 2016-06-13 Martin Liska <mliska@suse.cz>
11865
11866 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11867 (combine_predictions_for_insn): Likewise.
11868 (prune_predictions_for_bb): Likewise.
11869 (combine_predictions_for_bb): Likewise.
11870
11871 2016-06-13 Richard Biener <rguenther@suse.de>
11872
11873 PR tree-optimization/71505
11874 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11875 assert match comment.
11876
11877 2016-06-13 Marek Polacek <polacek@redhat.com>
11878
11879 PR middle-end/71476
11880 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11881 gimplify_switch_expr.
11882 (warn_switch_unreachable_r): New function.
11883
11884 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11885
11886 PR target/71379
11887 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11888 one.
11889
11890 2016-06-13 Richard Biener <rguenther@suse.de>
11891
11892 PR middle-end/64516
11893 * fold-const.c (fold_unary_loc): Preserve alignment when
11894 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11895
11896 2016-06-13 Martin Liska <mliska@suse.cz>
11897
11898 PR sanitizer/71458
11899 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11900 w/ -fsanitize=bounds.
11901
11902 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11903
11904 * config/i386/i386.c (ix86_init_builtins): Calculate
11905 FLOAT128_FTYPE_CONST_STRING function type only once.
11906 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11907 built-in functions are available for x86-32 and x86-64 targets.
11908
11909 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11910
11911 PR target/71241
11912 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11913 New primitive type.
11914 (FLOAT128_FTYPE_CONST_STRING): New function type.
11915 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11916 [IX86_BUILTIN_NANSQ]: Ditto.
11917 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11918 (ix86_init_builtin_types): Declare const_string_type_node.
11919 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11920 builtin functions.
11921 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11922 * doc/extend.texi (x86 Built-in Functions): Document
11923 __builtin_nanq and __builtin_nansq.
11924
11925 2016-06-11 Jiong Wang <jiong.wang@arm.com>
11926
11927 PR target/71061
11928 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11929 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11930 length for pop patterns.
11931 (arm_attr_length_push_multi): Update comments.
11932 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11933 attribute.
11934 (*pop_multiple_with_writeback_and_return): Likewise.
11935 (*pop_multiple_with_return): Likewise.
11936
11937 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
11938
11939 PR middle-end/71310
11940 * fold-const.c (optimize_bit_field_compare): Don't try to use
11941 word_mode unconditionally for reading the bit field, look at
11942 DECL_BIT_FIELD_REPRESENTATIVE instead.
11943
11944 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
11945
11946 PR middle-end/71478
11947 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11948 vector integer type.
11949
11950 2016-06-10 Jakub Jelinek <jakub@redhat.com>
11951
11952 PR middle-end/71494
11953 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11954 without LABEL_DECL, set *handled_ops_p to false instead of true.
11955
11956 2016-06-10 Martin Sebor <msebor@redhat.com>
11957
11958 PR c/71392
11959 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11960 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11961 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11962 them.
11963 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11964 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11965 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11966 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11967 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11968 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11969 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11970 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11971
11972 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11973
11974 * config/arm/arm.h (pool_vector_label,
11975 return_used_this_function): Remove.
11976
11977 2016-06-10 Jeff Law <law@redhat.com>
11978
11979 PR tree-optimization/71335
11980 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11981 zero length paths here.
11982 (convert_and_register_jump_thread_path): Remove hacks related to
11983 duplicated blocks in the jump thread path.
11984 (fsm_find_control_statement_thread_paths): Avoid putting the same
11985 block on the thread path twice, but ensure the thread path is
11986 unchanged from the caller's point of view.
11987
11988 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
11989
11990 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
11991 * predict.def (PRED_LOOP_BRANCH): Remove.
11992
11993 2016-06-10 David Malcolm <dmalcolm@redhat.com>
11994
11995 * Makefile.in (OBJS): Add ggc-tests.o.
11996 (GTFILES): Add ggc-tests.c.
11997 * ggc-tests.c: New file.
11998 * selftest-run-tests.c (selftest::run_tests): Call
11999 selftest::ggc_tests_c_tests.
12000 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
12001
12002 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
12003
12004 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
12005
12006 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
12007
12008 PR sanitizer/71480
12009 * varasm.c (place_block_symbol): Adjust alignment for asan protected
12010 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
12011
12012 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12013
12014 * profile.c: Include cfgloop.h.
12015 (branch_prob): Compute estimated number of iterations.
12016 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
12017 recompute estimate number of iterations from profile.
12018
12019 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12020
12021 PR inline-asm/68843
12022 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
12023 must be grouped on top of stack. Don't force early clobber
12024 on ordinary reg outputs.
12025
12026 2016-06-10 Richard Biener <rguenther@suse.de>
12027
12028 * targhooks.c (default_builtin_vectorization_cost): Adjust
12029 vec_construct cost.
12030
12031 2016-06-10 Richard Biener <rguenther@suse.de>
12032
12033 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
12034 to fold the RHS to a constant if possible.
12035
12036 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12037
12038 PR middle-end/71373
12039 * tree-nested.c (convert_nonlocal_omp_clauses)
12040 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
12041 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12042 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
12043
12044 * gimplify.c (gimplify_adjust_omp_clauses): Discard
12045 OMP_CLAUSE_TILE.
12046 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
12047
12048 * omp-low.c (scan_sharing_clauses): Don't expect
12049 OMP_CLAUSE__CACHE_.
12050
12051 2016-06-10 Alan Hayward <alan.hayward@arm.com>
12052
12053 PR tree-optimization/71407
12054 PR tree-optimization/71416
12055 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
12056 BIT_FIELD_REF type.
12057
12058 2016-06-10 Richard Biener <rguenther@suse.de>
12059
12060 PR middle-end/71477
12061 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
12062
12063 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
12064
12065 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
12066
12067 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
12068 Jiong Wang <jiong.wang@arm.com>
12069
12070 PR rtl-optimization/70751
12071 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
12072 spilled into memory.
12073
12074 2016-06-09 Jonathan Yong <10walls@gmail.com>
12075
12076 Revert:
12077 2015-09-21 Jonathan Yong <10walls@gmail.com>
12078
12079 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12080 sysroot/usr/lib/32api for additional win32 libraries,
12081 fixes failing Cygwin bootstrapping.
12082
12083 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
12084
12085 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
12086 Delete.
12087
12088 2016-06-09 David Malcolm <dmalcolm@redhat.com>
12089
12090 PR bootstrap/71471
12091 * pretty-print.c (pp_indent): Specify that %p is printed in a
12092 host-dependent manner.
12093 (test_pp_format): Remove the test for %p.
12094
12095 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
12096
12097 * config/mips/mips.c (mips_output_jump): Fix formatting.
12098
12099 2016-06-09 Richard Biener <rguenther@suse.de>
12100
12101 PR tree-optimization/71462
12102 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
12103 removed blocks.
12104
12105 2016-06-09 Martin Liska <mliska@suse.cz>
12106
12107 * predict.c (dump_prediction): Add new argument.
12108 (enum predictor_reason): New enum.
12109 (struct predictor_hash): New struct.
12110 (predictor_hash::hash): New function.
12111 (predictor_hash::equal): Likewise.
12112 (not_removed_prediction_p): New function.
12113 (prune_predictions_for_bb): Likewise.
12114 (combine_predictions_for_bb): Prune predictions.
12115
12116 2016-06-09 Martin Liska <mliska@suse.cz>
12117
12118 * predict.c (filter_predictions): New function.
12119 (remove_predictions_associated_with_edge): Use the filter
12120 function.
12121 (equal_edge_p): New function.
12122
12123 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
12124
12125 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
12126 Correct usage of @samp vs @option, add @samp where appropriate.
12127 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
12128 Add armv6s-m and document it, as it is no official ARM name.
12129
12130 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12131
12132 * ifcvt.c (struct noce_if_info): Add transform_name field.
12133 (noce_try_move): Set if_info->transform_name to the function name.
12134 (noce_try_ifelse_collapse): Likewise.
12135 (noce_try_store_flag): Likewise.
12136 (noce_try_inverse_constants): Likewise.
12137 (noce_try_store_flag_constants): Likewise.
12138 (noce_try_addcc): Likewise.
12139 (noce_try_store_flag_mask): Likewise.
12140 (noce_try_cmove): Likewise.
12141 (noce_try_cmove_arith): Likewise.
12142 (noce_try_minmax): Likewise.
12143 (noce_try_abs): Likewise.
12144 (noce_try_sign_mask): Likewise.
12145 (noce_try_bitop): Likewise.
12146 (noce_convert_multiple_sets): Likewise.
12147 (noce_process_if_block): Print if_info->transform_name to
12148 dump_file if transformation succeeded.
12149
12150 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12151
12152 * config/arm/cortex-a57.md (cortex_a57_alu):
12153 Handle csel type.
12154
12155 2016-06-08 Martin Sebor <msebor@redhat.com>
12156 Jakub Jelinek <jakub@redhat.com>
12157
12158 PR c++/70507
12159 PR c/68120
12160 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
12161 BUILT_IN_MUL_OVERFLOW_P): New builtins.
12162 * builtins.c: Include gimple-fold.h.
12163 (fold_builtin_arith_overflow): Handle
12164 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
12165 (fold_builtin_3): Likewise.
12166 * doc/extend.texi (Integer Overflow Builtins): Document
12167 __builtin_{add,sub,mul}_overflow_p.
12168
12169 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
12170
12171 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
12172 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
12173
12174 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
12175
12176 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
12177 Rewrite, looking one level down for records and arrays.
12178
12179 2016-06-08 David Malcolm <dmalcolm@redhat.com>
12180
12181 * pretty-print.c: Include "selftest.h".
12182 (pp_format): Fix comment.
12183 (identifier_to_locale): Likewise.
12184 (selftest::test_basic_printing): New function.
12185 (selftest::assert_pp_format): New function.
12186 (selftest::test_pp_format): New function.
12187 (selftest::pretty_print_c_tests): New function.
12188 * selftest-run-tests.c (selftest::run_tests): Call
12189 selftest::pretty_print_c_tests.
12190 * selftest.h (pretty_print_c_tests): New declaration.
12191
12192 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12193
12194 * invoke.texi (max-loop-headers-insns): Document.
12195 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
12196 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
12197 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
12198
12199 2016-06-08 Richard Biener <rguenther@suse.de>
12200
12201 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
12202 on strided SLP loads and fall back to scalar loads in case
12203 we can't chunk them.
12204
12205 2016-06-08 Richard Biener <rguenther@suse.de>
12206
12207 PR tree-optimization/71452
12208 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
12209 type used for the SSA rewrite has enough precision to cover
12210 the dynamic type of the location.
12211
12212 2016-06-08 Jakub Jelinek <jakub@redhat.com>
12213 Richard Biener <rguenther@suse.de>
12214
12215 PR c++/71448
12216 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
12217 the same as DECL_P (base0) for indirect_base0. Use equality_code
12218 in one further place.
12219
12220 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
12221
12222 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
12223 to one word if the field is known to overlap other words.
12224 (extract_bit_field_1): Likewise.
12225 (store_split_bit_field): Remove compensating code.
12226 (extract_split_bit_field): Likewise.
12227
12228 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
12229
12230 PR debug/71432
12231 PR ada/71413
12232 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
12233
12234 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12235
12236 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
12237 VDQF.
12238 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
12239 (arch64_addpv4sf): Delete.
12240 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
12241 "gen_aarch64_addpv4sf".
12242 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
12243 builtin.
12244 (vpadds_f32): Likewise.
12245 (vpaddq_f32): Likewise.
12246 (vpaddq_f64): Likewise.
12247
12248 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12249
12250 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
12251 VALLF.
12252 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
12253 to VALLF. Rename to "fabd<mode>3".
12254 "*fabd_scalar<mode>3): Delete.
12255 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
12256 Use builtin.
12257 (vabdd_f64): Likewise.
12258 (vabd_f32): Likewise.
12259 (vabd_f64): Likewise.
12260 (vabdq_f32): Likewise.
12261 (vabdq_f64): Likewise.
12262
12263 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12264
12265 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
12266 VALLF.
12267 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
12268 "aarch64_rsqrts<mode>".
12269 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
12270 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
12271 builtin.
12272 (vrsqrtsd_f64): Likewise.
12273 (vrsqrts_f32): Likewise.
12274 (vrsqrts_f64): Likewise.
12275 (vrsqrtsq_f32): Likewise.
12276 (vrsqrtsq_f64): Likewise.
12277
12278 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12279
12280 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
12281 VALLF.
12282 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
12283 "aarch64_rsqrte<mode>".
12284 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
12285 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
12286 builtin.
12287 (vrsqrted_f64): Likewise.
12288 (vrsqrte_f32): Likewise.
12289 (vrsqrte_f64): Likewise.
12290 (vrsqrteq_f32): Likewise.
12291 (vrsqrteq_f64): Likewise.
12292
12293 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12294
12295 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
12296 (ucvtf): Likewise.
12297 (fcvtzs): Likewise.
12298 (fcvtzu): Likewise.
12299 * config/aarch64/aarch64-simd.md
12300 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
12301 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
12302 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
12303 Use builtin.
12304 (vcvt_n_f32_u32): Likewise.
12305 (vcvt_n_s32_f32): Likewise.
12306 (vcvt_n_u32_f32): Likewise.
12307 (vcvtq_n_f32_s32): Likewise.
12308 (vcvtq_n_f32_u32): Likewise.
12309 (vcvtq_n_f64_s64): Likewise.
12310 (vcvtq_n_f64_u64): Likewise.
12311 (vcvtq_n_s32_f32): Likewise.
12312 (vcvtq_n_s64_f64): Likewise.
12313 (vcvtq_n_u32_f32): Likewise.
12314 (vcvtq_n_u64_f64): Likewise.
12315 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
12316 (VSDQ_SDI): Likewise.
12317 (fcvt_target): Support V4DI, V4SI and V2SI.
12318 (FCVT_TARGET): Likewise.
12319
12320 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12321
12322 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
12323 (TYPES_BINOP_SUS): Likewise.
12324 (aarch64_simd_builtin_data): Update include file name.
12325 (aarch64_builtins): Likewise.
12326 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
12327 for conversion between scalar float-point and fixed-point.
12328 (ucvtf): Likewise.
12329 (fcvtzs): Likewise.
12330 (fcvtzu): Likewise.
12331 * config/aarch64/aarch64.md
12332 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
12333 pattern for conversion between scalar float to fixed-pointer.
12334 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
12335 (UNSPEC_FCVTZS): New UNSPEC enumeration.
12336 (UNSPEC_FCVTZU): Likewise.
12337 (UNSPEC_SCVTF): Likewise.
12338 (UNSPEC_UCVTF): Likewise.
12339 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
12340 Use builtin.
12341 (vcvtd_n_f64_u64): Likewise.
12342 (vcvtd_n_s64_f64): Likewise.
12343 (vcvtd_n_u64_f64): Likewise.
12344 (vcvtd_n_f32_s32): Likewise.
12345 (vcvts_n_f32_u32): Likewise.
12346 (vcvtd_n_s32_f32): Likewise.
12347 (vcvts_n_u32_f32): Likewise.
12348 * config/aarch64/iterators.md (fcvt_target): Support integer to float
12349 mapping.
12350 (FCVT_TARGET): Likewise.
12351 (FCVT_FIXED2F): New iterator.
12352 (FCVT_F2FIXED): Likewise.
12353 (fcvt_fixed_insn): New define_int_attr.
12354
12355 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12356
12357 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
12358 some statements was removed.
12359
12360 2016-06-08 Alan Hayward <alan.hayward@arm.com>
12361
12362 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
12363 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
12364 (vect_can_advance_ivs_p): likewise.
12365 (vect_update_ivs_after_vectorizer): likewise.
12366 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
12367 (vect_analyze_scalar_cycles_1): likewise.
12368 (vect_analyze_loop_operations): likewise.
12369 (report_vect_op): likewise.
12370 (vect_is_slp_reduction): likewise.
12371 (vect_is_simple_reduction): likewise.
12372 (get_initial_def_for_induction): likewise.
12373 (vect_transform_loop): likewise.
12374 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
12375 (vect_recog_sad_pattern): likewise.
12376 (vect_recog_widen_sum_pattern): likewise.
12377 (vect_recog_widening_pattern): likewise.
12378 (vect_recog_divmod_pattern): likewise.
12379 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
12380 (vect_analyze_slp_instance): likewise.
12381 (vect_transform_slp_perm_load): likewise.
12382 (vect_schedule_slp_instance): likewise.
12383
12384 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12385
12386 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
12387 (return_prediction): PRED_CONST_RETURN predict return as not taken.
12388 * predict.def (PRED_CONTINUE): Change hitrate 50->67
12389 (PRED_LOOP_BRANCH): Document predictor as broken.
12390 (PRED_LOOP_EXIT): Change hitrate 91->92.
12391 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
12392 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
12393 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
12394 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
12395 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
12396 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
12397 (PRED_CALL): Chane hitrate 71->67.
12398 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
12399 (PRED_GOTO): Document as unused right now.
12400 (PRED_CONST_RETURN): Change hitrate 67->69
12401 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
12402 (PRED_NULL_RETURN): Change hitrate 91->90.
12403 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
12404 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
12405 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
12406
12407 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
12408
12409 * config/rs6000/altivec.h: Add __builtin_vec_mul.
12410 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
12411 special case Altivec builtin.
12412 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12413 VSX_BUILTIN_VEC_MUL (replaced with special case code).
12414 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12415 code for ALTIVEC_BUILTIN_VEC_MUL.
12416 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12417 for __builtin_vec_mul.
12418
12419 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
12420
12421 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
12422 -mno-htm.
12423
12424 2016-06-07 David Malcolm <dmalcolm@redhat.com>
12425
12426 * spellcheck.c (selftest::test_find_closest_string): New function.
12427 (spellcheck_c_tests): Call the above.
12428
12429 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12430
12431 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
12432
12433 2016-06-07 Jakub Jelinek <jakub@redhat.com>
12434
12435 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
12436 Yv=Yv,C alternatives.
12437
12438 2016-06-07 Richard Biener <rguenther@suse.de>
12439
12440 PR c/61564
12441 * common.opt (ffast-math): Make Optimization.
12442
12443 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
12444 Prachi Godbole <prachi.godbole@imgtec.com>
12445
12446 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
12447 `fabs' and `fneg' type attributes.
12448 (p5600_fpu_fabs): Add `fmove' to the comment.
12449
12450 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12451
12452 * gimple.c: Include builtins.h
12453 (gimple_inexpensive_call_p): New function.
12454 * gimple.h (gimple_inexpensive_call_p): Declare.
12455 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
12456 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
12457 fix formatting.
12458
12459 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
12460
12461 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
12462 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
12463 warning_at_rich_loc, warning_n, pedwarn, permerror,
12464 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
12465 sorry, fatal_error, internal_error, internal_error_no_backtrace):
12466 Use the above.
12467
12468 2016-06-07 Richard Biener <rguenther@suse.de>
12469
12470 PR tree-optimization/71428
12471 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
12472 BIT_FIELD_REF op vs. load.
12473
12474 2016-06-07 Richard Biener <rguenther@suse.de>
12475
12476 PR middle-end/71423
12477 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
12478 for signed ops.
12479
12480 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12481
12482 * config/pa/pa.md (call): Generate indirect long calls to non-local
12483 functions on TARGET_64BIT.
12484 (call_value): Likewise.
12485
12486 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12487
12488 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
12489 pattern and subsequent splitters.
12490 (call_val_reg_64bit_post_reload): Likewise.
12491
12492 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12493
12494 PR middle-end/71408
12495 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
12496 propagate_op_to_single_use.
12497
12498 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12499
12500 PR middle-end/71281
12501 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
12502
12503 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
12504
12505 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
12506 (enum x86_dirflag_state): New enum.
12507 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
12508 (machine_function): Remove needs_cld.
12509 (ix86_current_function_needs_cld): Remove.
12510 * config/i386/i386.c (ix86_set_func_type): Set
12511 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
12512 (ix86_expand_prologue): Do not emit CLD here.
12513 (ix86_dirflag_mode_needed): New function.
12514 (ix86_dirflag_mode_entry): Ditto.
12515 (ix86_mode_needed): Handle X86_DIRFLAG entity.
12516 (ix86_mode_after): Ditto.
12517 (ix86_mode_entry): Ditto.
12518 (ix86_mode_exit): Ditto.
12519 (ix86_emit_mode_set): Ditto.
12520 * config/i386/i386.md (strmov_singleop): Set
12521 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
12522 Do not set ix86_current_function_needs_cld.
12523 (rep_mov): Ditto.
12524 (strset_singleop): Ditto.
12525 (rep_stos): Ditto.
12526 (cmpstrnqi_nz_1): Ditto.
12527 (cmpstrnqi_1): Ditto.
12528 (strlenqi_1): Ditto.
12529
12530 2016-06-06 Jakub Jelinek <jakub@redhat.com>
12531
12532 PR tree-optimization/71259
12533 * tree-vect-slp.c (vect_get_constant_vectors): For
12534 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
12535 one for constant op, and use COND_EXPR for non-constant.
12536
12537 2016-06-06 David Malcolm <dmalcolm@redhat.com>
12538
12539 * Makefile.in (OBJS): Add function-tests.o,
12540 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
12541 selftest-run-tests.o.
12542 (OBJS-libcommon): Add selftest.o.
12543 (OBJS-libcommon-target): Add selftest.o.
12544 (all.internal): Add "selftest".
12545 (all.cross): Likewise.
12546 (selftest): New phony target.
12547 (s-selftest): New target.
12548 (selftest-gdb): New phony target.
12549 (COLLECT2_OBJS): Add selftest.o.
12550 * bitmap.c: Include "selftest.h".
12551 (selftest::test_gc_alloc): New function.
12552 (selftest::test_set_range): New function.
12553 (selftest::test_clear_bit_in_middle): New function.
12554 (selftest::test_copying): New function.
12555 (selftest::test_bitmap_single_bit_set_p): New function.
12556 (selftest::bitmap_c_tests): New function.
12557 * common.opt (fself-test): New.
12558 * diagnostic-show-locus.c: Include "selftest.h".
12559 (make_range): New function.
12560 (test_range_contains_point_for_single_point): New function.
12561 (test_range_contains_point_for_single_line): New function.
12562 (test_range_contains_point_for_multiple_lines): New function.
12563 (assert_eq): New function.
12564 (test_get_line_width_without_trailing_whitespace): New function.
12565 (selftest::diagnostic_show_locus_c_tests): New function.
12566 * et-forest.c: Include "selftest.h".
12567 (selftest::test_single_node): New function.
12568 (selftest::test_simple_tree): New function.
12569 (selftest::test_disconnected_nodes): New function.
12570 (selftest::et_forest_c_tests): New function.
12571 * fold-const.c: Include "selftest.h".
12572 (selftest::assert_binop_folds_to_const): New function.
12573 (selftest::assert_binop_folds_to_nonlvalue): New function.
12574 (selftest::test_arithmetic_folding): New function.
12575 (selftest::fold_const_c_tests): New function.
12576 * function-tests.c: New file.
12577 * gimple.c: Include "selftest.h".
12578 Include "gimple-pretty-print.h".
12579 (selftest::verify_gimple_pp): New function.
12580 (selftest::test_assign_single): New function.
12581 (selftest::test_assign_binop): New function.
12582 (selftest::test_nop_stmt): New function.
12583 (selftest::test_return_stmt): New function.
12584 (selftest::test_return_without_value): New function.
12585 (selftest::gimple_c_tests): New function.
12586 * hash-map-tests.c: New file.
12587 * hash-set-tests.c: New file.
12588 * input.c: Include "selftest.h".
12589 (selftest::assert_loceq): New function.
12590 (selftest::test_accessing_ordinary_linemaps): New function.
12591 (selftest::test_unknown_location): New function.
12592 (selftest::test_builtins): New function.
12593 (selftest::test_reading_source_line): New function.
12594 (selftest::input_c_tests): New function.
12595 * rtl-tests.c: New file.
12596 * selftest-run-tests.c: New file.
12597 * selftest.c: New file.
12598 * selftest.h: New file.
12599 * spellcheck.c: Include "selftest.h".
12600 (selftest::levenshtein_distance_unit_test_oneway): New function,
12601 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12602 (selftest::levenshtein_distance_unit_test): Likewise.
12603 (selftest::spellcheck_c_tests): Likewise.
12604 * toplev.c: Include selftest.h.
12605 (toplev::run_self_tests): New.
12606 (toplev::main): Handle -fself-test.
12607 * toplev.h (toplev::run_self_tests): New.
12608 * tree.c: Include "selftest.h".
12609 (selftest::test_integer_constants): New function.
12610 (selftest::test_identifiers): New function.
12611 (selftest::test_labels): New function.
12612 (selftest::tree_c_tests): New function.
12613 * tree-cfg.c: Include "selftest.h".
12614 (selftest::push_fndecl): New function.
12615 (selftest::test_linear_chain): New function.
12616 (selftest::test_diamond): New function.
12617 (selftest::test_fully_connected): New function.
12618 (selftest::tree_cfg_c_tests): New function.
12619 * vec.c: Include "selftest.h".
12620 (selftest::safe_push_range): New function.
12621 (selftest::test_quick_push): New function.
12622 (selftest::test_safe_push): New function.
12623 (selftest::test_truncate): New function.
12624 (selftest::test_safe_grow_cleared): New function.
12625 (selftest::test_pop): New function.
12626 (selftest::test_safe_insert): New function.
12627 (selftest::test_ordered_remove): New function.
12628 (selftest::test_unordered_remove): New function.
12629 (selftest::test_block_remove): New function.
12630 (selftest::reverse_cmp): New function.
12631 (selftest::test_qsort): New function.
12632 (selftest::vec_c_tests): New function.c.
12633 * wide-int.cc: Include selftest.h and wide-int-print.h.
12634 (selftest::from_int <wide_int>): New function.
12635 (selftest::from_int <offset_int>): New function.
12636 (selftest::from_int <widest_int>): New function.
12637 (selftest::assert_deceq): New function.
12638 (selftest::assert_hexeq): New function.
12639 (selftest::test_printing <VALUE_TYPE>): New function template.
12640 (selftest::test_ops <VALUE_TYPE>): New function template.
12641 (selftest::test_comparisons <VALUE_TYPE>): New function template.
12642 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12643 template.
12644 (selftest::wide_int_cc_tests): New function.
12645
12646 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12647
12648 PR middle-end/37780
12649 * ifcvt.c (noce_try_ifelse_collapse): New function.
12650 Declare prototype.
12651 (noce_process_if_block): Call noce_try_ifelse_collapse.
12652 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12653 (simplify_ternary_operation): Use the above to simplify
12654 conditional CLZ/CTZ expressions.
12655
12656 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12657
12658 PR middle-end/37780
12659 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12660 define_insn_and_split.
12661
12662 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12663
12664 PR middle-end/37780
12665 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12666
12667 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12668
12669 PR c/24414
12670 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12671 Implicitly clobber memory for basic asm with non-empty assembler
12672 string. Use targetm.md_asm_adjust also here.
12673 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12674 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12675 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12676 non-empty assembler string.
12677 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12678 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12679 (decode_asm_operands): Handle basic asm in PARALLEL block.
12680 (extract_insn): Handle basic asm in PARALLEL block.
12681 * doc/extend.texi: Mention new behavior of basic asm.
12682 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12683 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12684 branch_needs_nop_p): Use asm_noperands.
12685
12686 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12687
12688 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12689 Include the M7 SPARC DFA scheduler.
12690 New attribute v3pipe.
12691 Annotate insns with v3pipe where appropriate.
12692 Define cpu_feature vis4.
12693 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12694 Add (V8QI "8") to vbits.
12695 Add insns {add,sub}v8qi3
12696 Add insns ss{add,sub}v8qi3
12697 Add insns us{add,sub}{v8qi,v4hi}3
12698 Add insns {min,max}{v8qi,v4hi,v2si}3
12699 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12700 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12701 * config/sparc/niagara4.md: Add a comment explaining the
12702 discrepancy between the documented latenty numbers and the
12703 implemented ones.
12704 * config/sparc/niagara7.md: New file.
12705 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12706 supports SPARC5 and VIS 4.0 instructions.
12707 * configure: Regenerate.
12708 * config.in: Likewise.
12709 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12710 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12711 TARGET_CPU_niagara7.
12712 (ASM_CPU64_DEFAULT_SPEC): Likewise.
12713 (CPP_CPU_SPEC): Handle niagara7.
12714 (ASM_CPU_SPEC): Likewise.
12715 * config/sparc/sparc-opts.h (processor_type): Add
12716 PROCESSOR_NIAGARA7.
12717 (mvis4): New option.
12718 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12719 (AS_NIAGARA7_FLAG): Define.
12720 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12721 (CPP_CPU64_DEFAULT_SPEC): Likewise.
12722 (CPP_CPU_SPEC): Handle niagara7.
12723 (ASM_CPU_SPEC): Likewise.
12724 * config/sparc/sparc.c (niagara7_costs): Define.
12725 (sparc_option_override): Handle niagara7 and adjust cache-related
12726 parameters with better values for niagara cpus. Also support VIS4.
12727 (sparc32_initialize_trampoline): Likewise.
12728 (sparc_use_sched_lookahead): Likewise.
12729 (sparc_issue_rate): Likewise.
12730 (sparc_register_move_cost): Likewise.
12731 (dump_target_flag_bits): Support VIS4.
12732 (sparc_vis_init_builtins): Likewise.
12733 (sparc_builtins): Likewise.
12734 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12735 VIS4 4.0.
12736 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12737 UltraSparc M7.
12738 * config/sparc/sparc.opt (sparc_processor_type): New value
12739 niagara7.
12740 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12741 VIS4 builtins.
12742 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12743 -mvis4.
12744 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12745 VIS4 builtins.
12746
12747 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12748
12749 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12750
12751 2016-06-06 Richard Biener <rguenther@suse.de>
12752
12753 PR tree-optimization/71398
12754 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12755 remove edges.
12756
12757 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12758
12759 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12760 ft32_expand_prolog, ft32_expand_epilogue):
12761 Handle pretend_args.
12762 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12763 * config/ft32/ft32.md: Add pretend_returner.
12764
12765 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12766
12767 PR target/71389
12768 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12769 Copy op1 RTX to avoid invalid sharing.
12770 (ix86_expand_vector_move_misalign): Ditto.
12771
12772 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12773
12774 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12775 ATTRIBUTE_UNUSED.
12776
12777 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12778
12779 * predict.c (predicted_by_loop_heuristics_p): New function.
12780 (predict_iv_comparison): Use it.
12781 (predict_loops): Walk from innermost loops; do not predict edges
12782 leaving multiple loops multiple times; implement
12783 PRED_LOOP_ITERATIONS_MAX heuristics.
12784 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12785
12786 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12787
12788 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12789 only edges out of BB are EH edges.
12790
12791 2016-06-04 Martin Sebor <msebor@redhat.com>
12792 Marcin Baczyński <marbacz@gmail.com>
12793
12794 PR c/48116
12795 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12796 a void expression in a void function.
12797
12798 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12799
12800 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12801 aux; dump reasons of decisions.
12802 (should_duplicate_loop_header_p): Likewise.
12803 (do_while_loop_p): Likewise.
12804 (ch_base::copy_headers): Dump asi num insns duplicated.
12805
12806 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12807
12808 PR tree-optimization/71405
12809 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12810 incompatible type, build a new clobber with the right type instead
12811 of building a VIEW_CONVERT_EXPR around it.
12812
12813 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12814
12815 PR tree-optimization/52171
12816 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12817 by_pieces_ninsns instead of move_by_pieces_ninsns.
12818
12819 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12820
12821 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12822 for reg+reg addressing mode.
12823
12824 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12825
12826 * rs6000-c.c (c/c-tree.h): Add #include.
12827 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12828 in C++ when found in the base position of vec_ld or vec_st.
12829
12830 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12831
12832 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12833 use of profile unless profile status is PROFILE_READ.
12834 * profile.c (compute_branch_probabilities): Set profile status
12835 only after reporting predictor hitrates.
12836
12837 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12838
12839 PR target/71276
12840 PR target/71277
12841 * common.opt (ffp-int-builtin-inexact): New option.
12842 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12843 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12844 (ceil@var{m}2): Document dependence on this option.
12845 * ipa-inline-transform.c (inline_call): Handle
12846 flag_fp_int_builtin_inexact.
12847 * ipa-inline.c (can_inline_edge_p): Likewise.
12848 * config/i386/i386.md (rintxf2): Do not test
12849 flag_unsafe_math_optimizations.
12850 (rint<mode>2_frndint): New define_insn.
12851 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12852 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12853 for 387 instead of extending and truncating.
12854 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12855 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12856 Change to frndint<mode>2_<rounding>.
12857 (frndintxf2_<rounding>_i387): Likewise. Change to
12858 frndint<mode>2_<rounding>_i387.
12859 (<rounding_insn>xf2): Likewise.
12860 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12861 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12862 x87. Test TARGET_ROUND || !flag_trapping_math ||
12863 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12864 SSE. Use ROUND_NO_EXC in constant operand of
12865 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12866 for 387 instead of extending and truncating.
12867
12868 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12869 Julia Koval <julia.koval@intel.com>
12870
12871 PR target/66960
12872 PR target/67630
12873 PR target/67634
12874 PR target/67841
12875 PR target/68037
12876 PR target/68618
12877 PR target/68661
12878 PR target/69575
12879 PR target/69596
12880 PR target/69734
12881 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12882 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12883 all registers, except for function return registers if there are
12884 no caller-saved registers.
12885 (ix86_set_func_type): New function.
12886 (ix86_set_current_function): Call ix86_set_func_type to set
12887 no_caller_saved_registers and func_type. Call reinit_regs if
12888 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12889 nor x87 instructions in interrupt handler nor function with
12890 no_caller_saved_registers attribute.
12891 (ix86_function_ok_for_sibcall): Return false if there are no
12892 caller-saved registers.
12893 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12894 handler.
12895 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12896 (ix86_function_arg): Return special arguments in interrupt handler.
12897 (ix86_promote_function_mode): Promote pointer to word_mode only
12898 for normal functions.
12899 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12900 interrupt handler.
12901 (ix86_epilogue_uses): New function.
12902 (ix86_hard_regno_scratch_ok): Likewise.
12903 (ix86_save_reg): Preserve all registers in interrupt handler
12904 after reload. Preserve all registers, except for function return
12905 registers, if there are no caller-saved registers after reload.
12906 (find_drap_reg): Always use callee-saved register if there are
12907 no caller-saved registers.
12908 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12909 for interrupt handler.
12910 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12911 Emit cld instruction if stringops are used in interrupt handler
12912 or interrupt handler isn't a leaf function.
12913 (ix86_expand_epilogue): Generate interrupt return for interrupt
12914 handler and pop the 'ERROR_CODE' off the stack before interrupt
12915 return in exception handler.
12916 (ix86_expand_call): Disallow calling interrupt handler directly.
12917 If there are no caller-saved registers, mark all registers that
12918 are clobbered by the call which returns as clobbered.
12919 (ix86_handle_no_caller_saved_registers_attribute): New function.
12920 (ix86_handle_interrupt_attribute): Likewise.
12921 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12922 attributes.
12923 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12924 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12925 accumulation in interrupt function if stack may be realigned to
12926 avoid DRAP.
12927 (EPILOGUE_USES): New.
12928 (function_type): New enum.
12929 (machine_function): Add func_type and no_caller_saved_registers.
12930 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12931 (interrupt_return): New pattern.
12932 * doc/extend.texi: Document x86 interrupt and
12933 no_caller_saved_registers attributes.
12934
12935 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
12936
12937 PR tree-optimization/52171
12938 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12939 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
12940 Look for constant strings. Move some code to emit_block_cmp_hints
12941 and use it.
12942 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12943 * defaults.h (COMPARE_MAX_PIECES): New macro.
12944 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12945 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12946 (clear_by_pieces_1): Don't declare. Move definition before use.
12947 (can_do_by_pieces): New static function.
12948 (can_move_by_pieces): Use it. Return bool.
12949 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
12950 OP. All callers changed. Handle COMPARE_BY_PIECES.
12951 (class pieces_addr); New.
12952 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12953 pieces_addr::adjust, pieces_addr::increment_address,
12954 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12955 functions for it.
12956 (class op_by_pieces_d): New.
12957 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12958 functions for it.
12959 (class move_by_pieces_d, class compare_by_pieces_d,
12960 class store_by_pieces_d): New subclasses of op_by_pieces_d.
12961 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12962 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12963 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12964 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12965 compare_by_pieces_d::finish_mode): New member functions.
12966 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12967 functions.
12968 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12969 (emit_block_cmp_hints): New function.
12970 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12971 use the newly defined classes.
12972 * expr.h (by_pieces_constfn): New typedef.
12973 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12974 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12975 (move_by_pieces_ninsns): Don't declare.
12976 (can_move_by_pieces): Change return value to bool.
12977 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12978 (compare_by_pieces_branch_ratio): New hook.
12979 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12980 (by_pieces_ninsns): Declare.
12981 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12982 COMPARE_BY_PIECES.
12983 (default_compare_by_pieces_branch_ratio): New function.
12984 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
12985 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
12986 * doc/tm.texi: Regenerate.
12987 * tree-ssa-strlen.c: Include "builtins.h".
12988 (handle_builtin_memcmp): New static function.
12989 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
12990 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
12991
12992 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12993
12994 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
12995 relevant stmts which are simple and invariant.
12996 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
12997 instead of simple and invariant
12998
12999 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13000
13001 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
13002 (vectorizable_reduction): Check for new relevant state.
13003 (vectorizable_live_operation): vectorize live stmts using
13004 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
13005 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
13006 (vect_stmt_relevant_p): Check for stmts which are only used live.
13007 (process_use): Use of a stmt does not inherit it's live value.
13008 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
13009 (vect_analyze_stmt): Check for new relevant state.
13010 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
13011 outside the loop, but not inside it.
13012
13013 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13014
13015 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
13016 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
13017 (vect_get_vec_def_for_operand): Split out code.
13018
13019 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
13020
13021 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
13022
13023 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13024
13025 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
13026
13027 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13028
13029 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
13030
13031 2016-06-03 Jakub Jelinek <jakub@redhat.com>
13032
13033 PR middle-end/71387
13034 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
13035 to noreturn e->callee->decl that has void return type and void
13036 arguments, adjust gimple_call_fntype and remove lhs even if it had
13037 previously addressable type.
13038
13039 2016-06-02 Jeff Law <law@redhat.com>
13040
13041 PR tree-optimization/71328
13042 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
13043 error when checking for a jump back onto the copied path.
13044
13045 2016-06-02 David Malcolm <dmalcolm@redhat.com>
13046
13047 * config/microblaze/microblaze.c (get_branch_target): Add return
13048 NULL_RTX for the non-CALL_P case.
13049 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
13050 (insert_wic): Remove unused local "j".
13051
13052 2016-06-02 Martin Liska <mliska@suse.cz>
13053
13054 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
13055
13056 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
13057 Julia Koval <julia.koval@intel.com>
13058
13059 * function.c (assign_parm_setup_stack): Force source into a
13060 register if needed.
13061 * target.def (function_incoming_arg): Update documentation to
13062 allow arbitrary address computation based on hard register.
13063 * doc/tm.texi: Regenerated.
13064
13065 2016-06-02 Martin Liska <mliska@suse.cz>
13066
13067 * predict.c (combine_predictions_for_bb): Fix first match in
13068 cases where a first predictor contains more than one occurence
13069 in list of predictors. Take the best value in such case.
13070
13071 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13072
13073 PR rtl-optimization/71295
13074 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
13075 offset would go over the size of the inner mode reject it.
13076
13077 2016-06-02 Jakub Jelinek <jakub@redhat.com>
13078
13079 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
13080 x=x,x and v=v,m instead of x=x,m.
13081
13082 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
13083 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
13084 alternative to v=rm,C.
13085
13086 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
13087 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
13088 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
13089 instead of vex for the last two above mentioned alternatives.
13090
13091 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13092
13093 PR target/70830
13094 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
13095
13096 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
13097
13098 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
13099
13100 2016-06-01 David Malcolm <dmalcolm@redhat.com>
13101
13102 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
13103 from int to unsigned.
13104
13105 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13106
13107 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
13108 alternatives, eliminating preferred register class. Add support
13109 for the MTVSRDD instruction in ISA 3.0.
13110 (vsx_splat_v4si_internal): Use splat_input_operand instead of
13111 reg_or_indexed_operand.
13112 (vsx_splat_v4sf_internal): Likewise.
13113
13114 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13115
13116 PR target/71186
13117 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
13118 for loading up all 0's or all 1's.
13119
13120 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13121
13122 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
13123
13124 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
13125
13126 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
13127 extension.
13128 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
13129 * gcc.c (set_source_date_epoch_envvar): New function, sets
13130 the SOURCE_DATE_EPOCH environment variable to the current time.
13131
13132 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13133
13134 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
13135 the factor for live Phi nodes.
13136
13137 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13138
13139 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
13140 * tree-parloops.c (parallelize_loops): likewise.
13141 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
13142 tree_unswitch_outer_loop): likewise.
13143
13144 2016-06-01 Jakub Jelinek <jakub@redhat.com>
13145
13146 PR middle-end/71371
13147 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
13148 around creation of the temporary.
13149
13150 2016-06-01 Richard Biener <rguenther@suse.de>
13151
13152 PR tree-optimization/71366
13153 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
13154 (unloop_loops): Move removing edges here ...
13155 (try_unroll_loop_completely): ... from here.
13156 (try_peel_loop): ... and here.
13157 (tree_unroll_loops_completely_1): Track parent loops via
13158 bitmap of header BBs.
13159 (tree_unroll_loops_completely): Adjust for that.
13160
13161 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13162
13163 * config/rs6000/altivec.h (vec_slv): New macro.
13164 (vec_srv): New macro.
13165 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
13166 (UNSPEC_VSRV): New value.
13167 (vslv): New insn.
13168 (vsrv): New insn.
13169 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
13170 (vsrv): New builtin definition.
13171 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
13172 define argument types for new builtin.
13173 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
13174 new builtin.
13175 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
13176 functions.
13177
13178 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
13179 Jocelyn Mayer <l_indien@magic.fr>
13180
13181 PR target/67310
13182 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
13183 detect processor family for signature_CENTAUR_ebx.
13184 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
13185 signature_CENTAUR_ebx.
13186 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
13187 <default>: Pass x86-64 for has_longmode.
13188
13189 2016-06-01 Nathan Sidwell <nathan@acm.org>
13190
13191 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
13192 undefined weak.
13193
13194 2016-06-01 Richard Biener <rguenther@suse.de>
13195
13196 PR tree-optimization/71261
13197 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
13198 of stmts successfully put in the bool pattern. Remove
13199 single-use restriction.
13200 (adjust_bool_pattern_cast): Add cast at the use site via the
13201 pattern def sequence.
13202 (adjust_bool_pattern): Remove recursion, maintain a hash-map
13203 of patterned defs. Use the pattern def seqence instead of
13204 multiple independent patterns.
13205 (sort_after_uid): New qsort compare function.
13206 (adjust_bool_stmts): New function to process stmts in the bool
13207 pattern in IL order.
13208 (vect_recog_bool_pattern): Adjust.
13209 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
13210 (ifcvt_walk_pattern_tree): Likewise.
13211 (stmt_is_root_of_bool_pattern): Likewise.
13212 (ifcvt_repair_bool_pattern): Likewise.
13213 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
13214
13215 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13216
13217 * loop-unroll.c (decide_unroll_constant_iterations,
13218 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
13219 likely upper bounds.
13220 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
13221
13222 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
13223
13224 * tree-core.h (enum omp_clause_code): Remove
13225 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
13226
13227 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13228
13229 * config/arm/sync.md (arm_store_exclusive<mode>):
13230 Use 'H' output modifier on operands[2] rather than creating a new
13231 entry in out-of-bounds memory of the operands array.
13232 (arm_store_release_exclusivedi): Likewise.
13233
13234 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13235
13236 * config/arm/arm.c (arm_fusion_enabled_p): New function.
13237 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
13238 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
13239 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13240
13241 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13242
13243 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
13244 into account live statements for mask producers.
13245
13246 2016-06-01 Richard Biener <rguenther@suse.de>
13247
13248 PR tree-optimization/71311
13249 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
13250 restrict to non-INTEGER_CST @0.
13251
13252 2016-06-01 Richard Biener <rguenther@suse.de>
13253
13254 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
13255 (relational patterns): Use :c to avoid pattern duplications.
13256
13257 2016-06-01 Richard Biener <rguenther@suse.de>
13258
13259 * genmatch.c (comparison_code_p): New predicate.
13260 (swap_tree_comparison): New function.
13261 (commutate): Add for_vec parameter to append new for entries.
13262 Support commutating relational operators by swapping it alongside
13263 operands.
13264 (lower_commutative): Adjust.
13265 (dt_simplify::gen): Do not pass artificial operators to gen
13266 functions.
13267 (decision_tree::gen): Do not add artificial operators as parameters.
13268 (parser::parse_expr): Verify operator commutativity when :c is
13269 applied. Allow :C to override this.
13270 * match.pd: Adjust patterns to use :C instead of :c where required.
13271
13272 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
13273
13274 PR tree-optimization/71077
13275 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
13276 the combining step, use boolean_false_node and boolean_true_node
13277 as the designated false/true return values.
13278
13279 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13280
13281 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
13282 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
13283 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
13284 PRED_LOOP_EXIT.
13285
13286 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13287
13288 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
13289 of flags impliying the register renaming.
13290 * toplev.c (process_options): Do not imply flag_rename_registers with
13291 loop peeling.
13292
13293 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13294
13295 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
13296 default implementation.
13297
13298 2016-05-31 Nathan Sidwell <nathan@acm.org>
13299
13300 * dwarf2out.c (cur_line_info_table): Add GTY marker.
13301
13302 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13303
13304 * config/sh/constraints.md (b): Remove constraint.
13305 * config/sh/predicates.md (arith_reg_operand): Remove
13306 TARGET_REGISTER_P.
13307 * config/sh/sh-modes.def (PDI): Remove.
13308 * config/sh/sh.c (sh_target_reg_class,
13309 sh_optimize_target_register_callee_saved): Remove functions.
13310 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
13311 (sh_expand_epilogue): Update comment.
13312 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
13313 sh_secondary_reload): Remove TARGET_REGS related code.
13314 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
13315 TARGET_REGISTER_P): Remove macros.
13316 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
13317 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
13318 TR1_REG, TR2_REG): Remove constants.
13319 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
13320
13321 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13322
13323 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
13324 define_expand patterns.
13325 (adddi3_compact): Rename to adddi3.
13326 (subdi3_compact): Rename to subdi3.
13327 (*negdi2): Rename to negdi2.
13328 (*abs<mode>2): Rename to abs<mode>2.
13329
13330 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13331
13332 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
13333 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
13334 (atomic_sub_fetchsi): ... this new pattern.
13335 (mvtc): Add CC_REG clobber.
13336
13337 2016-05-31 Marek Polacek <polacek@redhat.com>
13338
13339 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
13340
13341 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13342
13343 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
13344 aarch64_fusion_enabled_p to check for fusion capabilities.
13345
13346 2016-05-31 Richard Biener <rguenther@suse.de>
13347
13348 PR tree-optimization/71352
13349 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
13350 minus one and a negate.
13351
13352 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13353
13354 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
13355 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
13356 Delete prototype.
13357 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
13358 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
13359 Remove use of aarch64_simd_attr_length_move, set length attribute
13360 directly.
13361 (*aarch64_be_movoi): Likewise.
13362 (*aarch64_be_movci): Likewise.
13363 (*aarch64_be_movxi): Likewise.
13364
13365 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13366
13367 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
13368 It no longer does that.
13369 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
13370
13371 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
13372
13373 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
13374 attribute __unused__.
13375
13376 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
13377
13378 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
13379 * config/arm/arm.c (arm_arch_thumb1): Define.
13380 (arm_option_override): Initialize arm_arch_thumb1.
13381 * config/arm/arm.h (arm_arch_thumb1): Declare.
13382 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
13383 support Thumb-1 ISA.
13384
13385 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
13386
13387 PR target/71346
13388 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
13389 `Yv' for scalar operand.
13390
13391 2016-05-31 Tom de Vries <tom@codesourcery.com>
13392
13393 PR tree-optimization/69068
13394 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
13395 phis with more than two args.
13396
13397 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
13398
13399 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
13400 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
13401 target.
13402
13403 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
13404
13405 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
13406 tune_64.
13407 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
13408 support on SPARC.
13409 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
13410 cpu_32, cpu_64, tune_32 and tune_64.
13411 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
13412
13413 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13414
13415 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13416
13417 2016-05-30 Andi Kleen <ak@linux.intel.com>
13418
13419 * auto-profile.c (read_profile): Replace asserts with errors
13420 when file does not exist.
13421 * gcov-io.c (gcov_read_words): Dito.
13422
13423 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13424
13425 * tree-cfg.c (print_loop): Print likely upper bounds.
13426
13427 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13428
13429 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
13430 * opts.c (default_options): Enable peel loops at -O3.
13431 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
13432 (try_peel_loop): Do not re-peel already peeled loops;
13433 use likely upper bounds; fix profile updating.
13434 (pass_complete_unroll::execute): Initialize peeled_loops.
13435
13436 2016-05-30 Martin Liska <mliska@suse.cz>
13437
13438 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
13439 computed costs by frequency of BB they belong to.
13440 (get_scaled_computation_cost_at): New function.
13441
13442 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
13443 Marc Glisse <marc.glisse@inria.fr>
13444
13445 PR tree-optimization/71289
13446 * match.pd (-1 / B < A, A > -1 / B): New transformations.
13447
13448 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13449
13450 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
13451
13452 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13453
13454 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
13455 for peeled copies; avoid underflow when updating estimates; correctly
13456 scale loop profile.
13457
13458 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13459
13460 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
13461 r236875. Corrected oe3 to oe2 as obvious.
13462
13463 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13464
13465 PR middle-end/71269
13466 PR middle-end/71252
13467 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
13468 that inserted stmt will not dominate stmts that defines its operand.
13469 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
13470 (rewrite_expr_tree_parallel): Likewise.
13471
13472 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13473
13474 PR middle-end/71252
13475 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
13476 all fields including stmt_to_insert are swapped.
13477
13478 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13479
13480 * predict.h (force_edge_cold): Declare.
13481 * predict.c (force_edge_cold): New function.
13482 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
13483 updating.
13484 (canonicalize_loop_induction_variables): Fix formating.
13485
13486 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
13487
13488 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
13489 (visium_expand_copysign): Use gen_int_mode directly.
13490 (visium_compute_frame_size): Minor tweaks.
13491
13492 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13493
13494 * tree-vect-loop.c (vect_analyze_loop_2): Use
13495 likely_max_stmt_executions_int.
13496
13497 2016-05-30 Tom de Vries <tom@codesourcery.com>
13498
13499 PR tree-optimization/69067
13500 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
13501
13502 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
13503
13504 PR target/71245
13505 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
13506 New peepholes to remove unneeded fild/fistp pairs.
13507 (define_peephole2 atomic_loaddi_fpu): Ditto.
13508
13509 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13510
13511 * predict.c (maybe_hot_frequency_p): Avoid division.
13512
13513 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
13514
13515 * doc/install.texi: Use https for shop.fsf.org.
13516
13517 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13518
13519 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
13520 likely_max_stmt_executions_int.
13521
13522 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13523
13524 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
13525 likely_max_stmt_executions_int.
13526
13527 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13528
13529 * profile.c (compute_branch_probabilities): Do not report hitrates
13530 here.
13531 (branch_prob): Report hitrates here.
13532 * predict.c (gimple_predict_edge): Do not assert profile status;
13533 fix formatting issues.
13534
13535 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13536
13537 * predict.c (edge_predicted_by_p): New function.
13538 (predict_paths_for_bb): Do not put multiple predictions of the same type
13539 on one edge.
13540
13541 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13542
13543 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
13544 commit.
13545
13546 2016-05-28 Alan Modra <amodra@gmail.com>
13547
13548 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
13549
13550 2016-05-28 Alan Modra <amodra@gmail.com>
13551
13552 PR rtl-optimization/71275
13553 * ira.c (ira): Free dominance info.
13554
13555 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
13556
13557 * doc/sourcebuild.texi: New address for upstream Go repository.
13558
13559 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13560
13561 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
13562 (TARGET_ARM_V7M): Likewise.
13563
13564 2016-05-26 Jeff Law <law@redhat.com>
13565
13566 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
13567 (thread_across_edge): Remove calls to find_jump_threads_backwards.
13568 * passes.def: Add jump threading passes before DOM/VRP.
13569 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
13570 argument to a basic block from an edge. Remove tests which are
13571 handled elsewhere.
13572 (pass_data_thread_jumps, class pass_thread_jumps): New.
13573 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
13574 (make_pass_thread_jumps): Likewise.
13575 * tree-pass.h (make_pass_thread_jumps): Declare.
13576
13577 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * config/visium/visium-protos.h (split_double_move): Rename into...
13580 (visium_split_double_move): ...this.
13581 (visium_split_double_add): Declare.
13582 * config/visium/visium.c (split_double_move): Rename into...
13583 (visium_split_double_move): ...this.
13584 (visium_split_double_add): New function.
13585 (visium_expand_copysign): Renumber operands for consistency.
13586 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
13587 (DFmode move splitter): Likewise.
13588 (*addi3_insn): Split by means of visium_split_double_add.
13589 (*adddi3_insn_flags): Delete.
13590 (*plus_plus_sltu<subst_arith>): New insn.
13591 (*subdi3_insn): Split by means of visium_split_double_add.
13592 (subdi3_insn_flags): Delete.
13593 (*minus_minus_sltu<subst_arith>): New insn.
13594 (*negdi2_insn): Split by means of visium_split_double_add.
13595 (*negdi2_insn_flags): Delete.
13596
13597 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
13598
13599 * configure.ac: Treat a --with-headers option without argument
13600 the same as the default (i.e. consult sys-include directory).
13601 * configure: Regenerate.
13602
13603 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13604
13605 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13606 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13607 prototype.
13608 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13609 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13610
13611 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13612
13613 PR target/63596
13614 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13615 tree-stdarg analysis results.
13616 (aarch64_setup_incoming_varargs): Likewise.
13617
13618 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13619
13620 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13621 va_list_gpr_counter_field and va_list_fpr_counter_field.
13622
13623 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
13624
13625 PR67609
13626 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13627 * config/aarch64/aarch64.c
13628 (aarch64_cannot_change_mode_class): Remove function.
13629 * config/aarch64/aarch64-protos.h
13630 (aarch64_cannot_change_mode_class): Remove.
13631
13632 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13633
13634 * cfgloop.c (record_niter_bound): Record likely upper bounds.
13635 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13636 get_likely_max_loop_iterations_int): New.
13637 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13638 any_likely_upper_bound.
13639 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13640 Declare.
13641 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13642 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13643 upper bound.
13644 (unroll_loop_constant_iterations): Likewise.
13645 (unroll_loop_runtime_iterations): Likewise.
13646 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13647 * lto-streamer-out.c (output_cfg): Likewise.
13648 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13649 bounds.
13650 (canonicalize_loop_induction_variables): Dump likely upper bounds.
13651 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13652 (likely_max_loop_iterations): New.
13653 (likely_max_loop_iterations_int): New.
13654 (likely_max_stmt_executions): New.
13655 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13656 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13657 likely_max_stmt_executions): Declare.
13658
13659 2016-05-27 Marek Polacek <polacek@redhat.com>
13660
13661 PR middle-end/71308
13662 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13663
13664 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13665
13666 * config/s390/s390.md (2x risbg splitters): Use
13667 reg_overlap_mentioned_p instead of rtx_equal_p.
13668
13669 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13670
13671 * combine.c (make_compound_operation): Take known zero bits into
13672 account when checking for possible zero_extend.
13673
13674 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13675
13676 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13677 Use const_int_operand for operand 2 predicate. Simplify expand code
13678 as a result.
13679
13680 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
13681
13682 PR middle-end/71279
13683 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13684 into comparison.
13685
13686 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13687
13688 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13689 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13690 that returns CC_SESWPmode and CC_ZESWPmode.
13691 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13692 and CC_SESWPmode.
13693 (aarch64_rtx_costs): Likewise.
13694
13695 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13696
13697 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13698 for ISA 3.0 min/max support.
13699 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13700 conditional move support.
13701 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13702 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13703 available.
13704 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13705 conditional moves where the comparison type is different from move
13706 type.
13707 (fp_minmax): New code iterator for smin/smax.
13708 (minmax): New code attributes for min/max.
13709 (SMINMAX): Likewise.
13710 (smax<mode>3): Combine min, max insns into one insn using the
13711 fp_minmax code iterator. Add support for ISA 3.0 min/max
13712 instructions that don't need -ffast-math.
13713 (s<minmax><mode>3): Likewise.
13714 (smax<mode>3_vsx): Likewise.
13715 (smin<mode>3): Likewise.
13716 (s<minmax><mode>3_vsx): Likewise.
13717 (smin<mode>3_vsx): Likewise.
13718 (pre-VSX min/max splitters): Likewise.
13719 (s<minmax><mode>3_fpr): Likewise.
13720 (movsfcc): Rewrite floating point conditional moves to combine
13721 SFmode/DFmode into a single insn.
13722 (mov<mode>cc): Likewise.
13723 (movdfcc): Likewise.
13724 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13725 SFDF2 iterators to handle all combinations.
13726 (fseldfsf4): Likewise.
13727 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13728 (fseldfdf4): Likewise.
13729 (fselsfdf4): Likewise.
13730 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13731 comparison instructions that set a 0/-1 mask, and use it for
13732 floating point conditional move via XXSEL.
13733 (fpmask<mode>): Likewise.
13734 (xxsel<mode>): Likewise.
13735 * config/rs6000/predicates.md (min_max_operator): Delete, no
13736 longer used.
13737 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13738 instructions that generate a 0/-1 mask for use with XXSEL.
13739 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13740 say whether floating point min/max is available, either through
13741 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13742 (TARGET_MINMAX_DF): Likewise.
13743
13744 2016-05-27 Alan Modra <amodra@gmail.com>
13745
13746 PR rtl-optimization/71275
13747 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13748 for update_equiv_regs and combine_and_move_insns.
13749
13750 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13751
13752 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13753 if_then_else or cond RTXes to calculate attribute value.
13754 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13755 <attr "length_immediate>: Ditto.
13756 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13757 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13758 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13759 <attr "type">: Ditto.
13760 <attr "prefix_data16">: Ditto.
13761 <attr "prefix_extra">: Ditto.
13762 <attr "length_immediate">: Ditto.
13763 <attr "prefix">: Ditto.
13764 (vec_set<mode>_0) <attr "isa">: Ditto.
13765 <attr "prefix_extra">: Ditto.
13766 <attr "length_immediate">: Ditto.
13767 <attr "prefix">: Ditto.
13768 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13769 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13770 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13771 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13772 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13773 <attr "length_immediate">: Ditto.
13774 <attr "prefix">: Ditto.
13775 (sse2_movsd) <attr "length_immediate">: Ditto.
13776 <attr "prefix">: Ditto.
13777 (vec_concatv2df) <attr "isa">: Ditto.
13778 <attr "prefix">: Ditto.
13779 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13780 (*vec_extractv2di_1) <attr "isa">: Ditto.
13781 <attr "type">: Ditto.
13782 <attr "length_immediate">: Ditto.
13783 <attr "prefix_rex">: Ditto.
13784 <attr "prefix_extra">: Ditto.
13785 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13786 <attr "prefix_extra">: Ditto.
13787 <attr "length_immediate">: Ditto.
13788 (vec_concatv2di) <attr "isa">: Ditto.
13789 <attr "prefix_extra">: Ditto.
13790 <attr "length_immediate">: Ditto.
13791 <attr "prefix">: Ditto.
13792
13793 2016-05-26 Martin Liska <mliska@suse.cz>
13794
13795 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13796 function.
13797 (operator+): Likewise.
13798 (operator-): Likewise.
13799 (comp_cost::operator+=): Likewise.
13800 (comp_cost::operator-=): Likewise.
13801 (comp_cost::operator/=): Likewise.
13802 (comp_cost::operator*=): Likewise.
13803 (operator<): Likewise.
13804 (operator==): Likewise.
13805 (operator<=): Likewise.
13806 (new_cost): Remove.
13807 (infinite_cost_p): Likewise.
13808 (add_costs): Likewise.
13809 (sub_costs): Likewise.
13810 (compare_costs): Likewise.
13811 (set_group_iv_cost): Use the newly introduced functions.
13812 (get_address_cost): Likewise.
13813 (get_shiftadd_cost): Likewise.
13814 (force_expr_to_var_cost): Likewise.
13815 (split_address_cost): Likewise.
13816 (ptr_difference_cost): Likewise.
13817 (difference_cost): Likewise.
13818 (get_computation_cost_at): Likewise.
13819 (determine_group_iv_cost_generic): Likewise.
13820 (determine_group_iv_cost_address): Likewise.
13821 (determine_group_iv_cost_cond): Likewise.
13822 (autoinc_possible_for_pair): Likewise.
13823 (determine_group_iv_costs): Likewise.
13824 (cheaper_cost_pair): Likewise.
13825 (iv_ca_recount_cost): Likewise.
13826 (iv_ca_set_no_cp): Likewise.
13827 (iv_ca_set_cp): Likewise.
13828 (iv_ca_cost): Likewise.
13829 (iv_ca_new): Likewise.
13830 (iv_ca_dump): Likewise.
13831 (iv_ca_narrow): Likewise.
13832 (iv_ca_prune): Likewise.
13833 (iv_ca_replace): Likewise.
13834 (try_add_cand_for): Likewise.
13835 (try_improve_iv_set): Likewise.
13836 (find_optimal_iv_set): Likewise.
13837
13838 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13839
13840 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13841 that internal functions will clobber all caller-saved registers.
13842
13843 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13844
13845 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13846 Return a better case_values_threshold when optimizing.
13847
13848 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13849
13850 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13851 Add ? to integer variant.
13852 (aarch64_combinez_be): Likewise.
13853
13854 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13855
13856 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13857 instead of x constraint.
13858 (vcvtps2ph256<mask_name>): Likewise.
13859
13860 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13861 alternative. Formatting fix.
13862
13863 * config/i386/sse.md
13864 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13865 to ...
13866 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13867 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13868 maybe_evex prefix instead of vex.
13869 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13870 EXT_REX_SSE_REG_P (op0) case in the splitter.
13871
13872 2016-05-25 Jeff Law <law@redhat.com>
13873
13874 PR tree-optimization/71272
13875 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13876 Update comments. Add test for empty path.
13877
13878 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13879
13880 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13881 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13882 special case builtin.
13883 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13884 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13885 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13886 for __builtin_vec_cmpne.
13887
13888 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13889
13890 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13891 redundant test and bail out if the type of the new operand is not
13892 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13893
13894 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13895
13896 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13897 (x_ix86_target_flags_explicit): Remove.
13898 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13899 x_ix86_target_flags_explicit.
13900 (ix86_function_specific_restore): Ditto.
13901
13902 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13903 H.J. Lu <hongjiu.lu@intel.com>
13904
13905 PR target/70738
13906 * common/config/i386/i386-common.c
13907 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13908 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13909 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13910 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13911 (-mgeneral-regs-only): Add new option.
13912 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13913 x87 instructions if only general registers are allowed.
13914 (ix86_target_string): Add ix86_flags argument. Handle additional
13915 flags options through ix86_flags argument. Update all callers.
13916 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13917
13918 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13919
13920 PR rtl-optimization/66940
13921 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13922 decrementing desired_val will not overflow before performing these
13923 operations.
13924
13925 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
13926
13927 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13928 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13929 * config/i386/i386.c (enum ix86_builtins): Add
13930 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13931 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13932 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13933 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13934 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13935 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13936 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13937 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13938 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13939 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13940 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13941 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13942 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13943 __builtin_ia32_cvtps2dq512_mask.
13944 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13945 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13946 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13947 * config/i386/sse.md
13948 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13949 Rename to ...
13950 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13951 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13952 to ...
13953 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13954 (avx512f_vec_pack_sfix_v8df): New define_expand.
13955 (avx512f_roundpd512): Rename to ...
13956 (avx512f_round<castmode>512): ... this. Change iterator.
13957 (avx512f_roundps512_sfix): New define_expand.
13958 (round<mode>2_sfix): Change iterator.
13959
13960 2016-05-25 Nick Clifton <nickc@redhat.com>
13961
13962 * config/msp430/msp430.c (msp430_attr): Produce an error if a
13963 static interrupt handler is detected.
13964 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13965 default linker script.
13966 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13967 the low part of a symbolic pointer.
13968
13969 2016-05-25 Richard Biener <rguenther@suse.de>
13970
13971 PR tree-optimization/71261
13972 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13973 interesting stmt instead of immediate uses when looking
13974 for the use operand to replace.
13975
13976 2016-05-25 Martin Liska <mliska@suse.cz>
13977
13978 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13979
13980 2016-05-25 Richard Biener <rguenther@suse.de>
13981
13982 PR tree-optimization/71264
13983 * tree-vect-stmts.c (vect_init_vector): Properly deal with
13984 vector type val.
13985
13986 2016-05-25 Martin Liska <mliska@suse.cz>
13987
13988 PR tree-optimization/71239
13989 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
13990 if DECL_SIZE is NULL.
13991
13992 2016-05-25 Richard Biener <rguenther@suse.de>
13993
13994 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
13995 * tree-if-conv.c (pass_data_if_conversion): Use it.
13996
13997 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13998
13999 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
14000 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
14001 * varpool.c (varpool_node::get_availability): Likewise.
14002
14003 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14004
14005 * config/rs6000/altivec.md (VNEG iterator): New iterator for
14006 VNEGW/VNEGD instructions.
14007 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
14008 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
14009 support for ISA 3.0 VNEGW/VNEGD instructions.
14010
14011 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
14012
14013 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
14014 pointers inside OACC_DATA regions.
14015 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
14016 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
14017 (gimplify_adjust_omp_clauses): Fix typo in comment.
14018
14019 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14020
14021 * config/rs6000/altivec.md (VParity): New mode iterator for vector
14022 parity built-in functions.
14023 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
14024 zeros.
14025 (p9v_parity<mode>2): Likewise.
14026 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
14027 parity.
14028 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
14029 (parity<mode>2): ISA 3.0 expander for vector parity.
14030 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
14031 power9 built-ins.
14032 (BU_P9_64BIT_MISC_0): Likewise.
14033 (BU_P9_MISC_0): Likewise.
14034 (BU_P9V_AV_1): Likewise.
14035 (BU_P9V_AV_2): Likewise.
14036 (BU_P9V_AV_3): Likewise.
14037 (BU_P9V_AV_P): Likewise.
14038 (BU_P9V_VSX_1): Likewise.
14039 (BU_P9V_OVERLOAD_1): Likewise.
14040 (BU_P9V_OVERLOAD_2): Likewise.
14041 (BU_P9V_OVERLOAD_3): Likewise.
14042 (VCTZB): Add vector count trailing zeros support.
14043 (VCTZH): Likewise.
14044 (VCTZW): Likewise.
14045 (VCTZD): Likewise.
14046 (VPRTYBD): Add vector parity support.
14047 (VPRTYBQ): Likewise.
14048 (VPRTYBW): Likewise.
14049 (VCTZ): Add overloaded vector count trailing zeros support.
14050 (VPRTYB): Add overloaded vector parity support.
14051 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14052 overloaded vector count trailing zeros and parity instructions.
14053 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
14054 vector parity support.
14055 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
14056 trailing zeros support.
14057 (vec_cntlz): Likewise.
14058 (vec_vctzb): Likewise.
14059 (vec_vctzd): Likewise.
14060 (vec_vctzh): Likewise.
14061 (vec_vctzw): Likewise.
14062 (vec_vprtyb): Add ISA 3.0 vector parity support.
14063 (vec_vprtybd): Likewise.
14064 (vec_vprtybw): Likewise.
14065 (vec_vprtybq): Likewise.
14066 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14067 the ISA 3.0 vector count trailing zeros and vector parity built-in
14068 functions.
14069
14070 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14071
14072 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
14073 when there is stmt_to_insert.
14074
14075 2016-05-24 Martin Sebor <msebor@redhat.com>
14076
14077 PR c++/71147
14078 * tree.h (complete_or_array_type_p): New inline function.
14079
14080 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14081
14082 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
14083 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
14084 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
14085
14086 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
14087 Limit 1st alternative to noavx isa, split 2nd alternative into one
14088 noavx and one avx alternative, use *x and Bm in the former and
14089 x and m in the latter.
14090
14091 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
14092 of sse4 for the first alternative, drop %v from the template
14093 and d operand modifier. Split second alternative into one sse4_noavx
14094 and one avx alternative, use *x instead of *v in the former and v
14095 instead of *v in the latter.
14096 (*sse4_1_extractps): Use noavx isa instead of * for the first
14097 alternative, drop %v from the template. Split second alternative into
14098 one noavx and one avx alternative, use *x instead of *v in the
14099 former and v instead of *v in the latter.
14100 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
14101 with noavx and the last one with avx.
14102 (sse4_1_phminposuw): Guard first alternative with noavx isa,
14103 split the second one into one noavx and one avx alternative,
14104 use *x and Bm in the former and x and m in the latter one.
14105 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
14106 alternatives.
14107
14108 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
14109 first two alternatives to noavx, use *x instead of *v in the second
14110 one, add avx alternative without *.
14111 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
14112 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
14113 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
14114
14115 2016-05-24 Jeff Law <law@redhat.com>
14116
14117 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
14118 New function, extracted from...
14119 (fsm_find_control_statement_thread_paths): Here. Use the new function.
14120 Allow simple copies and constant initializations in the SSA chain.
14121
14122 2016-05-24 Marek Polacek <polacek@redhat.com>
14123
14124 PR c/71249
14125 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
14126 scope.
14127
14128 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14129
14130 PR c++/71257
14131 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
14132 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
14133 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
14134 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
14135 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
14136
14137 2016-05-24 Richard Biener <rguenther@suse.de>
14138
14139 PR tree-optimization/71240
14140 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
14141 has integral type.
14142
14143 2016-05-24 Richard Biener <rguenther@suse.de>
14144
14145 PR tree-optimization/71230
14146 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
14147
14148 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14149
14150 * tree-vectorizer.h (vectorizable_comparison): Delete.
14151 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
14152 PURE_SLP_STMT check.
14153 * tree-vect-stmts.c (vectorizable_call): Likewise.
14154 (vectorizable_simd_clone_call): Likewise.
14155 (vectorizable_conversion): Likewise.
14156 (vectorizable_assignment): Likewise.
14157 (vectorizable_shift): Likewise.
14158 (vectorizable_operation): Likewise.
14159 (vectorizable_load): Likewise.
14160 (vectorizable_condition): Likewise.
14161 (vectorizable_store): Likewise. Assert that we don't have
14162 hybrid SLP.
14163 (vectorizable_comparison): Make static. Remove redundant
14164 PURE_SLP_STMT check.
14165 (vect_transform_stmt): Assert that we always have an slp_node
14166 if PURE_SLP_STMT.
14167
14168 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14169
14170 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
14171 operands[2] against 1 with comparison against CONST1_RTX.
14172 (<shift>di3_neon): Likewise.
14173 * config/arm/predicates.md (const0_operand): Replace with comparison
14174 against CONST0_RTX.
14175
14176 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14177
14178 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
14179 operands[2] against 1 with comparison against CONST1_RTX.
14180 (ashrdi3): Likewise.
14181 (lshrdi3): Likewise.
14182 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
14183 UINTVAL.
14184 (ashrsi3): Likewise.
14185 (lshrsi3): Likewise.
14186 (rotrsi3): Likewise.
14187 (define_split above *compareqi_eq0): Likewise.
14188 (define_split above "prologue"): Likewise.
14189 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
14190 * config/arm/predicates.md (shift_operator): Likewise.
14191 (shift_nomul_operator): Likewise.
14192 (sat_shift_operator): Likewise.
14193 (thumb1_cmp_operand): Likewise.
14194 (const_neon_scalar_shift_amount_operand): Replace manual range
14195 check with IN_RANGE.
14196 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
14197 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
14198
14199 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14200
14201 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
14202 with HOST_WIDE_INT_1.
14203 (insv): Likewise.
14204 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
14205 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
14206 (arm_canonicalize_comparison): Likewise.
14207 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
14208 HOST_WIDE_INT_1.
14209 (thumb1_size_rtx_costs): Likewise.
14210 (vfp_const_double_index): Replace cast of 1 to unsigned
14211 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14212 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
14213 HOST_WIDE_INT_1.
14214 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
14215 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14216 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
14217 HOST_WIDE_INT with HOST_WIDE_INT_1.
14218
14219 2016-05-24 Marek Polacek <polacek@redhat.com>
14220
14221 * tree-cfg.h (should_remove_lhs_p): New predicate.
14222 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14223 * gimplify.c (gimplify_modify_expr): Likewise.
14224 * tree-cfg.c (verify_gimple_call): Likewise.
14225 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14226 * gimple-fold.c: Include "tree-cfg.h".
14227 (gimple_fold_call): Use should_remove_lhs_p.
14228
14229 2016-05-24 Richard Biener <rguenther@suse.de>
14230
14231 PR tree-optimization/71253
14232 * cfganal.h (control_dependences): Make robust against edge
14233 and BB removal.
14234 (control_dependences::control_dependences): Remove edge_list argument.
14235 (control_dependences::get_edge): Remove.
14236 (control_dependences::get_edge_src): Add.
14237 (control_dependences::get_edge_dest): Likewise.
14238 (control_dependences::m_el): Make a vector of edge src/dest index.
14239 * cfganal.c (control_dependences::find_control_dependence): Adjust.
14240 (control_dependences::control_dependences): Likewise.
14241 (control_dependences::~control_dependence): Likewise.
14242 (control_dependences::get_edge): Remove.
14243 (control_dependences::get_edge_src): Add.
14244 (control_dependences::get_edge_dest): Likewise.
14245 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
14246 get_edge_src.
14247 (perform_tree_ssa_dce): Adjust.
14248 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
14249 get_edge_src.
14250 (pass_loop_distribution::execute): Adjust. Do loop destroying
14251 conditional on changed.
14252
14253 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14254
14255 PR target/69857
14256 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
14257 return. Reindent transformation comment and mention the ARM state
14258 behavior.
14259
14260 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14261
14262 PR middle-end/71252
14263 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
14264 after build_and_add_sum creates new use stmt.
14265
14266 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14267
14268 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
14269 load_lanes/grouped_load classification comes first. Don't check
14270 whether the vectorization factor is a multiple of the group size
14271 for load_lanes.
14272
14273 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14274
14275 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
14276 GROUP_GAP for single-element interleaving.
14277 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
14278 variable.
14279
14280 2016-05-24 Richard Biener <rguenther@suse.de>
14281
14282 PR middle-end/70434
14283 PR c/69504
14284 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
14285 bases which are accessed with non-invariant indices.
14286 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
14287 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
14288
14289 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14290
14291 PR middle-end/71170
14292 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
14293 (add_to_ops_vec): Add stmt_to_insert.
14294 (add_repeat_to_ops_vec): Init stmt_to_insert.
14295 (insert_stmt_before_use): New.
14296 (transform_add_to_multiply): Remove mult_stmt insertion and add it
14297 to ops vector.
14298 (get_ops): Init stmt_to_insert.
14299 (maybe_optimize_range_tests): Likewise.
14300 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
14301 (rewrite_expr_tree_parallel): Likewise.
14302 (reassociate_bb): Likewise.
14303
14304 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14305
14306 PR target/71201
14307 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
14308 ISA 3.0 xxperm fusion alternative.
14309 (altivec_vperm_v8hiv16qi): Likewise.
14310 (altivec_vperm_<mode>_uns_internal): Likewise.
14311 (vperm_v8hiv4si): Likewise.
14312 (vperm_v16qiv8hi): Likewise.
14313
14314 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14315 Kelvin Nilsen <kelvin@gcc.gnu.org>
14316
14317 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
14318 vpermr/xxpermr on ISA 3.0.
14319 (altivec_expand_vec_perm_le): Likewise.
14320 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
14321 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
14322 ISA 3.0.
14323
14324 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
14325
14326 * config/i386/i386.h (IS_STACK_MODE): Enable for
14327 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
14328 SSE_FLOAT_MODE_P macros.
14329 * config/i386/i386.c (ix86_preferred_reload_class): Use
14330 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
14331 Cleanup regclass processing for CONST_DOUBLE_P.
14332 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
14333 (ix86_rtx_costs): Remove redundant TARGET_80387 check
14334 with IS_STACK_MODE macro.
14335 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
14336 with TARGET_SSE2.
14337 (*movdf_internal): Use IS_STACK_MODE macro.
14338 (*movsf_internal): Ditto.
14339
14340 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
14341
14342 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
14343 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
14344
14345 2016-05-23 Jeff Law <law@redhat.com>
14346
14347 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
14348 extracted from ...
14349 (fsm_find_control_statement_thread_paths): Call it.
14350
14351 2016-05-23 Martin Jambor <mjambor@suse.cz>
14352
14353 PR ipa/71234
14354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
14355 from_global_constant if t is not NULL.
14356
14357 2016-05-23 Marek Polacek <polacek@redhat.com>
14358
14359 PR c/49859
14360 * common.opt (Wswitch-unreachable): New option.
14361 * doc/invoke.texi: Document -Wswitch-unreachable.
14362 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
14363 warning.
14364
14365 2016-05-23 Bin Cheng <bin.cheng@arm.com>
14366
14367 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
14368 TMR_INDEX is non-NULL.
14369
14370 2016-05-23 Richard Biener <rguenther@suse.de>
14371
14372 PR tree-optimization/71230
14373 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
14374 (try_special_add_to_ops): ... here. Always test for single-use.
14375
14376 2016-05-23 Martin Jambor <mjambor@suse.cz>
14377
14378 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
14379 default block if a PHI node in the original one would be resized.
14380
14381 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14382
14383 PR tree-optimization/58135
14384 * tree-vect-slp.c: When group size is not multiple
14385 of vector size, allow splitting of store group at
14386 vector boundary.
14387
14388 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
14389
14390 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
14391
14392 2016-05-22 Jakub Jelinek <jakub@redhat.com>
14393
14394 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14395 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
14396 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
14397 of 64x2.
14398
14399 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
14400 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
14401 v constraint instead of x and vinserti32x4 insn.
14402
14403 * config/i386/sse.md (i128vldq): New mode iterator.
14404 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
14405 avx512dq and avx512vl alternatives.
14406
14407 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
14408 constraint, use maybe_evex prefix instead of vex.
14409 (vec_dupv4sf): Use v constraint instead of x for output
14410 operand except for noavx alternative, use Yv constraint
14411 instead of x for input. Use maybe_evex prefix instead of vex.
14412 (*vec_dupv4si): Likewise.
14413 (*vec_dupv2di): Likewise.
14414
14415 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14416
14417 PR middle-end/40921
14418 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
14419 (linearize_expr_tree): Call try_special_add_to_ops.
14420 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
14421
14422 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14423
14424 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
14425 to computed stack_usage.
14426
14427 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14428
14429 PR target/71103
14430 * config/avr/avr.md (define_expand "mov<mode>"): If the source
14431 operand is subreg (symbol_ref) then move the symbol ref to register.
14432
14433 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
14434
14435 * tree.c (array_at_struct_end_p): Look through MEM_REF.
14436
14437 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
14438
14439 PR middle-end/71179
14440 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
14441 VECTOR type.
14442
14443 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14444
14445 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
14446 ranges by calling get_single_symbol and tidy up. Look more closely
14447 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
14448
14449 2016-05-20 Jeff Law <law@redhat.com>
14450
14451 * bitmap.c (bitmap_find_bit): Remove useless test.
14452
14453 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
14454
14455 * function.c (thread_prologue_and_epilogue_insns): Commit the
14456 insertion of the epilogue.
14457
14458 2016-05-20 Martin Jambor <mjambor@suse.cz>
14459
14460 PR tree-optimization/70884
14461 * tree-sra.c (initialize_constant_pool_replacements): Do not check
14462 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
14463 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
14464 of constant pool data as a reason for scalarization.
14465
14466 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14467
14468 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
14469 for naked functions.
14470 (thumb1_expand_prologue): Likewise.
14471
14472 2016-05-20 Nathan Sidwell <nathan@acm.org>
14473
14474 * config/nvptx/nptx.c (nvptx_option_override): Only set
14475 flag_toplevel_reorder, if not explicitly specified. Set
14476 flag_no_common, unless explicitly specified.
14477
14478 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14479
14480 * calls.c (can_implement_as_sibling_call_p): Mark param
14481 reg_parm_stack_space with ATTRIBUTE_UNUSED.
14482
14483 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
14484
14485 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
14486 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
14487 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
14488 constants.
14489 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
14490 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
14491 and CASE_CONST_ANY.
14492
14493 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
14494
14495 * config/nvptx/nvptx.md (sincossf3): New pattern.
14496
14497 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14498
14499 * calls.c (maybe_complain_about_tail_call): New function.
14500 (initialize_argument_information): Call
14501 maybe_complain_about_tail_call when clearing *may_tailcall.
14502 (can_implement_as_sibling_call_p): Call
14503 maybe_complain_about_tail_call when returning false.
14504 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
14505 ensure try_tail_call is set. Call maybe_complain_about_tail_call
14506 if tail-call optimization fails.
14507 * cfgexpand.c (expand_call_stmt): Initialize
14508 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
14509 * gimple-pretty-print.c (dump_gimple_call): Dump
14510 gimple_call_must_tail_p.
14511 * gimple.c (gimple_build_call_from_tree): Call
14512 gimple_call_set_must_tail with the value of
14513 CALL_EXPR_MUST_TAIL_CALL.
14514 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
14515 (gimple_call_set_must_tail): New function.
14516 (gimple_call_must_tail_p): New function.
14517 * print-tree.c (print_node): Update printing of TREE_STATIC
14518 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
14519 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
14520 trailing comment listing applicable flags.
14521 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
14522
14523 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14524
14525 * calls.c (expand_call): Move "Rest of purposes for tail call
14526 optimizations to fail" to...
14527 (can_implement_as_sibling_call_p): ...this new function, and
14528 split into multiple "if" statements.
14529
14530 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14531
14532 * cfgloop.h (expected_loop_iterations_unbounded,
14533 expected_loop_iterations): Unconstify.
14534 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
14535 profile with known upper bound; return 3 when profile is absent.
14536 (expected_loop_iterations): Update.
14537
14538 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14539
14540 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
14541 and get_max_loop_iterations_int.
14542
14543 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14544
14545 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
14546 realistic upper bounds here.
14547
14548 2016-05-20 Jakub Jelinek <jakub@redhat.com>
14549
14550 PR c++/71210
14551 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
14552 calls if the LHS is variable length or has addressable type.
14553 If targets[0]->decl is a noreturn call with void return type and
14554 zero arguments, adjust fntype and remove lhs in that case.
14555
14556 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
14557
14558 PR tree-optimization/71079
14559 PR tree-optimization/71206
14560 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
14561
14562 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14563
14564 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
14565 (get_vec_alignment_for_array_decl): Likewise.
14566 (get_vec_alignment_for_record_decl): Likewise.
14567 (increase_alignment::execute): Move code to find alignment to
14568 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
14569 (type_align_map): New hash_map.
14570
14571 2016-05-20 Richard Guenther <rguenther@suse.de>
14572
14573 PR tree-optimization/29756
14574 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
14575 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
14576 * fold-const.c (operand_equal_p): Likewise.
14577 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
14578 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
14579 * tree-inline.c (estimate_operator_cost): Likewise.
14580 * tree-pretty-print.c (dump_generic_node): Likewise.
14581 * tree-ssa-operands.c (get_expr_operands): Likewise.
14582 * cfgexpand.c (expand_debug_expr): Likewise.
14583 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14584 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
14585 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
14586 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
14587 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
14588 (execute_update_addresses_taken): Do it.
14589
14590 2016-05-20 Richard Biener <rguenther@suse.de>
14591
14592 PR tree-optimization/71185
14593 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14594 register operations.
14595
14596 2016-05-20 Richard Biener <rguenther@suse.de>
14597
14598 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14599 gimple_seq_add_seq_without_update.
14600 (release_bb_predicate): Assert we have no operands to free.
14601 (if_convertible_loop_p_1): Calculate post dominators later.
14602 Do not free BB predicates here.
14603 (combine_blocks): Do not recompute BB predicates.
14604 (version_loop_for_if_conversion): Save BB predicates around
14605 loop versioning.
14606
14607 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14608
14609 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14610 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
14611 code. Ignore sibcalls on EDGE_IGNORE edges.
14612 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
14613 on edges for sibcalls that run without prologue. The rest of the
14614 function is combined from...
14615 (fix_fake_fallthrough_edge): ... this, and ...
14616 (try_shrink_wrapping): ... a part of this. Remove the bb_with
14617 function argument, make it a local variable.
14618
14619 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
14620
14621 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14622 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14623 for 32-bit mode and SEH for 64-bit.
14624 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14625 TARGET_64BIT_DEFAULT.
14626
14627 2016-05-19 Ryan Burn <contact@rnburn.com>
14628
14629 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14630 * gengtype.c (open_base_files): Add cilk.h to ifiles.
14631
14632 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
14633
14634 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14635 force pending loads from memory.
14636
14637 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
14638
14639 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14640 (UNSPEC_DARN_32): New unspec constant.
14641 (UNSPEC_DARN_RAW): New unspec constant.
14642 (darn_32): New instruction.
14643 (darn_raw): New instruction.
14644 (darn): New instruction.
14645 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14646 support and documentation for this macro.
14647 (BU_P9_MISC_1): New macro definition.
14648 (BU_P9_64BIT_MISC_0): New macro definition.
14649 (BU_P9_MISC_0): New macro definition.
14650 (darn_32): New builtin definition.
14651 (darn_raw): New builtin definition.
14652 (darn): New builtin definition.
14653 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14654 RS6000_BUILTIN_0 directives to surround each occurrence of
14655 #include "rs6000-builtin.def".
14656 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14657 RS6000_BTM_64BIT flags to the returned mask, depending on
14658 configuration.
14659 (def_builtin): Correct an error in the assignments made to the
14660 debugging variable attr_string.
14661 (rs6000_expand_builtin): Add support for no-operand built-in
14662 functions.
14663 (builtin_function_type): Remove fatal_error assertion that is no
14664 longer valid.
14665 (rs6000_common_init_builtins): Add support for no-operand built-in
14666 functions.
14667 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14668 definition.
14669 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14670 definition.
14671 (RS6000_BTM_64BIT): New macro definition.
14672 * doc/extend.texi: Document __builtin_darn (void),
14673 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14674 functions.
14675
14676 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
14677
14678 * tree-vect-loop.c (vect_analyze_loop_2): Use also
14679 max_loop_iterations_int.
14680
14681 2016-05-19 Marek Polacek <polacek@redhat.com>
14682
14683 PR tree-optimization/71031
14684 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14685 condition and adjust the code a bit.
14686
14687 2016-05-19 Martin Liska <mliska@suse.cz>
14688
14689 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14690 auto_vec instead of vec.
14691
14692 2016-05-19 Martin Liska <mliska@suse.cz>
14693
14694 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14695
14696 2016-05-19 Martin Liska <mliska@suse.cz>
14697
14698 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14699
14700 2016-05-19 Martin Liska <mliska@suse.cz>
14701
14702 * ipa-pure-const.c (set_function_state): Remove an existing
14703 funct_state.
14704 (remove_node_data): Do not free it as it's released
14705 in set_function_state.
14706
14707 2016-05-19 Martin Liska <mliska@suse.cz>
14708
14709 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14710 bitmap.
14711
14712 2016-05-19 Martin Liska <mliska@suse.cz>
14713
14714 * omp-simd-clone.c (simd_clone_adjust): Release vector.
14715
14716 2016-05-19 Martin Liska <mliska@suse.cz>
14717
14718 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14719 an auto_vec instead of re-creating it.
14720
14721 2016-05-19 Martin Liska <mliska@suse.cz>
14722
14723 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14724 auto_vec instead of vec.
14725
14726 2016-05-19 Martin Liska <mliska@suse.cz>
14727
14728 * lto-section-in.c (lto_get_section_data): Call
14729 lto_check_version with additional argument.
14730 * lto-streamer.c (lto_check_version): Add new argument.
14731 * lto-streamer.h (lto_check_version): Likewise.
14732
14733 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14734
14735 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14736 Don't add cost of inner memory when handling sign-extended loads.
14737
14738 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14739
14740 PR rtl-optimization/71148
14741 * cse.c (cse_main): Free dominance info.
14742 (rest_of_handle_cse): Don't free dominance info.
14743 (rest_of_handle_cse2): Likewise.
14744 (rest_of_handle_cse_after_global_opts): Likewise.
14745
14746 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14747
14748 PR target/71056
14749 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14750 NULL_TREE early if NEON is not available. Remove now redundant check
14751 in ARM_CHECK_BUILTIN_MODE.
14752
14753 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14754
14755 PR sanitizer/64354
14756 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14757 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14758 * doc/cpp.texi: Document new macros.
14759
14760 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14761
14762 PR tree-optimization/69848
14763 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14764 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14765
14766 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14767
14768 * function.c (thread_prologue_and_epilogue_insn): Move the
14769 "goto epilogue_done" one block later.
14770
14771 2016-05-19 Richard Biener <rguenther@suse.de>
14772
14773 PR tree-optimization/70729
14774 * passes.def: Move LIM pass before PRE. Remove no longer
14775 required copyprop and move first DCE out of the loop pipeline.
14776
14777 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14778
14779 PR driver/69265
14780 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14781 (OBJS-libcommon-target): ...here.
14782 * opts-common.c: Include spellcheck.h.
14783 (cmdline_handle_error): Build a vec of valid options and use it
14784 to suggest provide hints for misspelled arguments.
14785
14786 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14787
14788 PR c++/71100
14789 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14790 lhs if it has TREE_ADDRESSABLE type.
14791
14792 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14793
14794 PR target/71145
14795 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14796 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14797
14798 2016-05-18 Martin Jambor <mjambor@suse.cz>
14799
14800 PR ipa/69708
14801 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14802 input for NOP_EXPR pass-through functions.
14803 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14804 aggregate global constant VAR_DECLs in constant jump functions.
14805
14806 2016-05-18 Martin Jambor <mjambor@suse.cz>
14807
14808 PR ipa/69708
14809 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14810 from TREE_READONLY parameters.
14811
14812 2016-05-18 Martin Jambor <mjambor@suse.cz>
14813
14814 PR ipa/69708
14815 * cgraph.h (cgraph_indirect_call_info): New field
14816 guaranteed_unmodified.
14817 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14818 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14819 appropriate.
14820 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14821 pass the parameter value to ipa_find_agg_cst_for_param.
14822 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14823 guaranteed_unmodified, store AA results there instead of bailing out
14824 if present.
14825 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14826 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14827 (find_constructor_constant_at_offset): New function.
14828 (ipa_find_agg_cst_from_init): Likewise.
14829 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14830 static initializers of contants, report back through a new paameter
14831 from_global_constant if that was the case.
14832 (try_make_edge_direct_simple_call): Also pass parameter value to
14833 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14834 appropriate.
14835 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14836 (ipa_read_indirect_edge_info): Likewise.
14837 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14838 (ipa_load_from_parm_agg): Likewise.
14839
14840 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14841
14842 PR rtl-optimization/71150
14843 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14844 check.
14845
14846 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14847
14848 PR target/70915
14849 * config/rs6000/constraints.md (wE constraint): New constraint
14850 for a vector constant that can be loaded with XXSPLTIB.
14851 (wM constraint): New constraint for a vector constant of a 1's.
14852 (wS constraint): New constraint for a vector constant that can be
14853 loaded with XXSPLTIB and a vector sign extend instruction.
14854 * config/rs6000/predicates.md (xxspltib_constant_split): New
14855 predicates for wE/wS constraints.
14856 (xxspltib_constant_nosplit): Likewise.
14857 (easy_vector_constant): Add support for constants that can be
14858 loaded via XXSPLTIB.
14859 (all_ones_constant): New predicate for vector constant with all
14860 1's set.
14861 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14862 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14863 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14864 instruction and possibly with a sign extension.
14865 (output_vec_const_move): Add support for XXSPLTIB. If we are
14866 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14867 instead of XXLXOR/XXLORC.
14868 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14869 operations.
14870 (rs6000_legitimize_reload_address): Likewise.
14871 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14872 constants.
14873 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14874 combine VSX_M and VSX_M2 into one iterator.
14875 (VSX_M2): Likewise.
14876 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14877 (VSINT_842): Likewise.
14878 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14879 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14880 XXSPLTIB instruction.
14881 (xxspltib_<mode>_nosplit): Likewise.
14882 (xxspltib_<mode>_split): New insn to load up constants with
14883 XXSPLTIB and a sign extend instruction.
14884 (vsx_mov<mode>): Replace single move that handled all vector types
14885 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14886 moves (when -mvsx-timode is in effect) into the main vector
14887 moves. Eliminate separate moves for <VSr> <VSa>, where the
14888 preferred register class (<VSr>) is listed first, and the
14889 secondary register class (<VSa>) is listed second with a '?' to
14890 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14891 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14892 that if the register was involved in a slow operation, the
14893 clear/set operation does not wait for the slow operation to
14894 finish. Adjust the length attributes for 32-bit mode. Use
14895 rs6000_output_move_128bit and drop the use of the string
14896 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14897 spacing so that the alternatives and attributes don't generate
14898 long lines, and put things in columns, so that it is easier to
14899 match up the operands and attributes with the insn alternatives.
14900 (vsx_mov<mode>_64bit): Likewise.
14901 (vsx_mov<mode>_32bit): Likewise.
14902 (vsx_movti_64bit): Fold movti into normal vector moves.
14903 (vsx_movti_32bit): Likewise.
14904 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14905 splat instructions.
14906 (vsx_splat_v4si_internal): Likewise.
14907 (vsx_splat_v4sf_internal): Likewise.
14908 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14909 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14910 extend vector elements.
14911 (vsx_sign_extend_hi_<mode>): Likewise.
14912 (vsx_sign_extend_si_v2di): Likewise.
14913 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14914 declaration.
14915 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14916 constraints. Add trailing period to wL documentation.
14917
14918 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14919
14920 PR middle-end/71020
14921 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14922 * tree-dfa.c (replace_abnormal_ssa_names): New function.
14923 * tree-call-cdce.c: Include tree-dfa.h.
14924 (can_guard_call_p): New function, extracted from...
14925 (can_use_internal_fn): ...here.
14926 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14927 and return void.
14928 (shrink_wrap_one_built_in_call): Likewise.
14929 (use_internal_fn): Likewise.
14930 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14931 and return void. Call replace_abnormal_ssa_names.
14932 (pass_call_cdce::execute): Check can_guard_call_p during the
14933 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
14934 will always change something.
14935
14936 2016-05-18 Martin Jambor <mjambor@suse.cz>
14937
14938 PR ipa/70646
14939 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14940 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14941
14942 2016-05-18 Martin Jambor <mjambor@suse.cz>
14943
14944 PR ipa/70646
14945 * ipa-inline.h (condition): New field size.
14946 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14947 for comaprison and store it into the new condition.
14948 (evaluate_conditions_for_known_args): Use condition size to check
14949 access sizes for all but CHANGED conditions.
14950 (unmodified_parm_1): New parameter size_p, store access size into it.
14951 (unmodified_parm): Likewise.
14952 (unmodified_parm_or_parm_agg_item): Likewise.
14953 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14954 (set_cond_stmt_execution_predicate): Extract access sizes and store
14955 them to conditions.
14956 (set_switch_stmt_execution_predicate): Likewise.
14957 (will_be_nonconstant_expr_predicate): Likewise.
14958 (will_be_nonconstant_predicate): Likewise.
14959 (inline_read_section): Stream condition size.
14960 (inline_write_summary): Likewise.
14961
14962 2016-05-18 Richard Biener <rguenther@suse.de>
14963
14964 * tree-ssa-loop-im.c (determine_max_movement): Properly add
14965 condition cost to PHI cost instead of total_cost.
14966
14967 2016-05-18 Martin Liska <mliska@suse.cz>
14968
14969 PR fortran/70856
14970 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14971 merged variables.
14972
14973 2016-05-18 Richard Biener <rguenther@suse.de>
14974
14975 * lto-streamer.h (LTO_major_version): Bump to 6.
14976
14977 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14978
14979 * function.c (make_split_prologue_seq, make_prologue_seq,
14980 make_epilogue_seq): New functions, factored out from...
14981 (thread_prologue_and_epilogue_insns): Here.
14982
14983 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14984
14985 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14986 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
14987 of before. Add a comment.
14988
14989 2016-05-18 Bin Cheng <bin.cheng@arm.com>
14990
14991 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
14992 expression pointer, not pointer to the pointer.
14993
14994 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14995
14996 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
14997 (avx2_pbroadcast<mode>): Add another alternative with v instead
14998 of x constraints in it, using <pbroadcast_evex_isa> isa.
14999 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
15000
15001 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
15002 constraint x instead of v in second alternative, add avx512bw
15003 alternative.
15004
15005 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
15006 constraint x instead of v in second alternative, add avx512bw
15007 alternative.
15008
15009 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
15010 constraint x instead of v in second alternative, add avx512bw
15011 alternative.
15012
15013 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
15014 avx512bw alternative.
15015
15016 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15017
15018 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
15019 array to 128 chars.
15020 (define_insn "*andnottf3"): Ditto.
15021 (define_insn "*<code><mode>3"/any_logic): Ditto.
15022 (define_insn "*<code>tf3"/any_logic): Ditto.
15023 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
15024 operand to block AVX-512VL insn variant emit when it is not enabled.
15025
15026 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15027
15028 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
15029 constraint fot SF mode.
15030
15031 2016-05-18 Petr Murzin <petr.murzin@intel.com>
15032 Kirill Yukhin <kirill.yukhin@intel.com>
15033
15034 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
15035 modifiers.
15036 (define_insn "rsqrt14<mode>"): Ditto.
15037 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
15038 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15039 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
15040 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15041 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
15042 Ditto.
15043 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
15044 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
15045 * config/i386/i386.c (ix86_print_operand): Expand check for size
15046 override codes for Intel syntax.
15047
15048 2016-05-18 Richard Biener <rguenther@suse.de>
15049
15050 PR tree-optimization/71168
15051 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
15052 initialization earlier.
15053
15054 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
15055
15056 * config/aarch64/aarch64-simd.md
15057 (aarch64_reduc_plus_internal<mode>): Rename to...
15058 (reduc_plus_scal): ...This, and remove previous implementation.
15059
15060 2016-05-18 Richard Biener <rguenther@suse.de>
15061
15062 * passes.def: Put late dse and cd_dce in canonical order.
15063
15064 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
15065
15066 * ipa-inline-transform.c (preserve_function_body_p): Look for
15067 first non-thunk clone.
15068 (save_function_body): Save into first non-thunk.
15069 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
15070 up call stmt id.
15071 (lto_output_node): Inline thunks don't need body in every
15072 partition.
15073 * lto-streamer-in.c: Do not fixup thunk clones.
15074 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
15075 thunks.
15076 * tree-inline.c (copy_bb): Be prepared for target node to be new after
15077 folding suceeds.
15078
15079 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15080
15081 PR middle-end/63586
15082 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
15083 (reassociate_bb): Call transform_add_to_multiply.
15084
15085 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15086
15087 * config/aarch64/aarch64.c (all_extensions): Removed unused
15088 static variable.
15089
15090 2016-05-17 Nathan Sidwell <nathan@acm.org>
15091
15092 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
15093 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
15094
15095 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
15096
15097 PR tree-optimization/54579
15098 PR middle-end/55299
15099 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
15100
15101 2016-05-17 Marek Polacek <polacek@redhat.com>
15102
15103 PR ipa/71146
15104 * tree-inline.c (expand_call_inline): Call
15105 maybe_remove_unused_call_args.
15106
15107 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
15108
15109 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
15110 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
15111 * doc/md.texi (fmin@var{m}3): Likewise.
15112
15113 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15114
15115 * match.pd (X & C): New transformation.
15116
15117 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15118
15119 * match.pd (~X & Y): New transformation.
15120
15121 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15122
15123 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
15124 information for new SSA_NAME.
15125 (simplify_conversion_using_ranges): Get range through get_range_info
15126 instead of get_value_range.
15127
15128 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15129
15130 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
15131 Remove inline assembly.
15132 (vmvn_s16): Likewise.
15133 (vmvn_s32): Likewise.
15134 (vmvn_u8): Likewise.
15135 (vmvn_u16): Likewise.
15136 (vmvn_u32): Likewise.
15137 (vmvnq_s8): Likewise.
15138 (vmvnq_s16): Likewise.
15139 (vmvnq_s32): Likewise.
15140 (vmvnq_u8): Likewise.
15141 (vmvnq_u16): Likewise.
15142 (vmvnq_u32): Likewise.
15143 (vmvn_p8): Likewise.
15144 (vmvnq_p16): Likewise.
15145
15146 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15147
15148 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
15149 Use builtin.
15150 (vmul_n_s16): Likewise.
15151 (vmul_n_s32): Likewise.
15152 (vmul_n_u16): Likewise.
15153 (vmul_n_u32): Likewise.
15154 (vmulq_n_f32): Likewise.
15155 (vmulq_n_f64): Likewise.
15156 (vmulq_n_s16): Likewise.
15157 (vmulq_n_s32): Likewise.
15158 (vmulq_n_u16): Likewise.
15159 (vmulq_n_u32): Likewise.
15160
15161 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15162
15163 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
15164 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
15165
15166 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15167
15168 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
15169 to *aarch64_fma4_elt_from_dup<mode>.
15170 (*aarch64_fnma4_elt_to_128df): Rename to
15171 *aarch64_fnma4_elt_from_dup<mode>.
15172 * config/aarch64/arm_neon.h (vfma_n_f64): New.
15173 (vfms_n_f32): Likewise.
15174 (vfms_n_f64): Likewise.
15175 (vfmsq_n_f32): Likewise.
15176 (vfmsq_n_f64): Likewise.
15177
15178 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
15179
15180 * wide-int.h: Change fixed_wide_int_storage from class to struct.
15181
15182 2016-05-17 Richard Biener <rguenther@suse.de>
15183
15184 PR tree-optimization/71132
15185 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
15186 Only add control dependences for blocks in the loop.
15187 (build_rdg): Adjust.
15188 (generate_code_for_partition): Return whether loop should
15189 be destroyed and delay that.
15190 (distribute_loop): Likewise.
15191 (pass_loop_distribution::execute): Record loops to be destroyed
15192 and perform delayed destroying of loops.
15193
15194 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15195
15196 PR target/70809
15197 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
15198
15199 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15200
15201 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
15202
15203 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
15204
15205 PR target/71114
15206 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
15207 insertion point for instructions generated by validize_mem.
15208
15209 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15210
15211 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
15212 in brackets.
15213
15214 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15215
15216 * config/aarch64/aarch64.c
15217 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
15218 rather than a macro.
15219
15220 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15221
15222 * doc/invoke.texi (AArch64 Options): Various updates.
15223
15224 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15225
15226 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
15227 into instrumentation thunks.
15228 * cif-code.def (CIF_CHKP): New.
15229
15230 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
15231
15232 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
15233
15234 2016-05-16 Martin Jambor <mjambor@suse.cz>
15235
15236 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
15237 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
15238
15239 2016-05-16 Marek Polacek <polacek@redhat.com>
15240
15241 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
15242 commentary.
15243
15244 2016-05-16 Martin Jambor <mjambor@suse.cz>
15245
15246 PR hsa/70857
15247 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
15248 the outlined kernel function.
15249
15250 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
15251
15252 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
15253 (ISA_HAS_DLSA): Ditto.
15254
15255 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15256
15257 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
15258
15259 2016-05-16 Nathan Sidwell <nathan@acm.org>
15260
15261 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
15262 (nvptx_name_replacement): Restore. Add comment.
15263 (write_fn_proto, write_fn_proto_from_insn,
15264 nvptx_output_call_insn): Restore
15265 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
15266
15267 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15268
15269 * config/aarch64/aarch64.md
15270 (add<mode>3_compareC_cconly_imm): Remove use of %w.
15271 (add<mode>3_compareC_imm): Likewise.
15272 (<optab>si3_uxtw): Split into register and immediate variants.
15273 (andsi3_compare0_uxtw): Likewise.
15274 (and<mode>3_compare0): Likewise.
15275 (and<mode>3nr_compare0): Likewise.
15276 (stack_protect_test_<mode>): Don't use %x for memory operands.
15277
15278 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15279
15280 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
15281
15282 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15283
15284 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15285 Split integer shifts into shift_reg and bfm.
15286 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15287 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15288 (ror<mode>3_insn): Likewise.
15289 (<optab>si3_insn_uxtw): Likewise.
15290 (<optab><mode>3_insn): Change to rotate_imm.
15291 (extr<mode>5_insn_alt): Likewise.
15292 (extrsi5_insn_uxtw): Likewise.
15293 (extrsi5_insn_uxtw_alt): Likewise.
15294
15295 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15296
15297 * doc/tm.texi: Regenerate.
15298 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
15299 (TARGET_INVALID_RETURN_TYPE): Remove.
15300 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
15301 TARGET_INVALID_RETURN_TYPE.
15302 * target.def (invalid_parameter_type): Remove.
15303 (invalid_return_type): Remove.
15304
15305 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15306
15307 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
15308 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
15309 calls from thunk.
15310 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
15311 gimple body.
15312 (preserve_function_body_p): No need to preserve function body
15313 * cif-codes.def (CIF_THUNK): Remove.
15314 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
15315
15316 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15317
15318 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
15319
15320 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15321
15322 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
15323 for thunks.
15324
15325 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15326
15327 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
15328 (inline_small_functions): Do not look for function symbol when
15329 resetting caches.
15330
15331 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15332
15333 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
15334 of inline thunks
15335
15336 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15337 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15338 Jiong Wang <jiong.wang@arm.com>
15339
15340 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
15341 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
15342 Define __ARM_FP16_ARGS when appropriate.
15343 * config/arm/arm.c (arm_invalid_parameter_type): Remove
15344 declaration.
15345 (arm_invalid_return_type): Likewise.
15346 (TARGET_INVALID_PARAMETER_TYPE): Remove.
15347 (TARGET_INVALID_RETURN_TYPE): Remove.
15348 (aapcs_vfp_sub_candidate): Allow HFmode.
15349 (aapcs_vfp_allocate): Add comment. Support HFmode.
15350 (aapcs_vfp_allocate_return_reg): Likewise.
15351 (struct aapcs_cp_arg_layout): Slightly reword comments for
15352 is_return_candidate and allocate_return_reg.
15353 (output_mov_vfp): Update assert.
15354 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
15355 condition.
15356 (arm_invalid_parameter_type): Remove.
15357 (amr_invalid_return_type): Remove.
15358 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
15359 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
15360 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
15361
15362 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15363
15364 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15365 * config/aarch64/arch64-protos.h
15366 (aarch64_legitimize_reload_address): Remove.
15367 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
15368 Remove.
15369
15370 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
15371
15372 * configure.ac: Add ACX_NONCANONICAL_HOST.
15373 * configure: Regenerate.
15374 * Makefile.in: Set host_noncanonical.
15375
15376 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
15377
15378 PR target/71097
15379 * config/i386/i386.md (*movtf_internal): Before register allocation,
15380 do not allow FP constants for CM_MEDIUM memory model, allow only
15381 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
15382 (*movxf_internal): Ditto.
15383 (*movdf_internal): Ditto.
15384 (*movsf_internal): Ditto.
15385
15386 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15387
15388 PR rtl-optimization/67483
15389 * combine.c (make_compound_operation): Don't call extract_left_shift
15390 with negative shift amounts.
15391
15392 2016-05-13 Jakub Jelinek <jakub@redhat.com>
15393
15394 PR bootstrap/71071
15395 * fold-const.c (fold_checksum_tree): Allow modification
15396 of TYPE_ALIAS_SET during folding.
15397
15398 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
15399 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
15400 (ix86_split_to_parts): Likewise. Fix up formatting.
15401
15402 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
15403
15404 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
15405 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
15406 printf format.
15407
15408 2016-05-13 Nathan Sidwell <nathan@acm.org>
15409
15410 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
15411 (nvptx_name_replacement): Delete.
15412 (write_fn_proto, write_fn_proto_from_insn,
15413 nvptx_output_call_insn): Remove nvptx_name_replacement call.
15414 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
15415 * langhooks.c (add_builtin_funcction_common): Call
15416 targetm.mangle_decl_assembler_name.
15417
15418 * config/nvptx/nvptx.c (write_fn_proto): Handle
15419 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
15420
15421 2016-05-13 Martin Liska <mliska@suse.cz>
15422
15423 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
15424 and PRIu64 in printf format.
15425
15426 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15427
15428 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
15429 comment.
15430
15431 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15432
15433 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15434 Change --param max-completely-peeled-times to
15435 --param max-completely-peel-times in dump file printing.
15436
15437 2016-05-13 Richard Biener <rguenther@suse.de>
15438
15439 PR tree-optimization/42587
15440 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
15441 (find_bswap_or_nop_1): Likewise.
15442 (bswap_replace): Likewise.
15443
15444 2016-05-13 Martin Liska <mliska@suse.cz>
15445
15446 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
15447 Initialize a variable with default value.
15448
15449 2016-05-13 Martin Liska <mliska@suse.cz>
15450
15451 * doc/invoke.texi: Enhance explanation of error recovery
15452 of sanitizers.
15453
15454 2016-05-13 Martin Liska <mliska@suse.cz>
15455
15456 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
15457 (struct cost_pair): Change inv_expr_id (int) to inv_expr
15458 (iv_inv_expr_ent *).
15459 (struct iv_inv_expr_ent): Comment struct fields.
15460 (sort_iv_inv_expr_ent): New function.
15461 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
15462 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
15463 a hash_map between iv_inv_expr_ent and number of usages.
15464 (niter_for_exit): Fix coding style.
15465 (tree_ssa_iv_optimize_init): Use renamed variable.
15466 (determine_base_object): Fix coding style.
15467 (alloc_iv): Likewise.
15468 (find_interesting_uses_outside): Likewise.
15469 (add_candidate_1): Likewise.
15470 (add_standard_iv_candidates): Likewise.
15471 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
15472 (prepare_decl_rtl): Fix coding style.
15473 (get_address_cost): Likewise.
15474 (get_shiftadd_cost): Likewise.
15475 (force_expr_to_var_cost): Likewise.
15476 (compare_aff_trees): Likewise.
15477 (get_expr_id): Restructure the function.
15478 (get_loop_invariant_expr_id): Renamed to
15479 get_loop_invariant_expr.
15480 (get_computation_cost_at): Replace usage of inv_expr_id with
15481 inv_expr.
15482 (get_computation_cost): Likewise.
15483 (determine_group_iv_cost_generic): Likewise.
15484 (determine_group_iv_cost_address): Likewise.
15485 (iv_period): Fix coding style.
15486 (iv_elimination_compare_lt): Likewise.
15487 (may_eliminate_iv): Likewise.
15488 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
15489 inv_expr.
15490 (determine_group_iv_costs): Dump invariant expressions.
15491 (iv_ca_recount_cost): Use the newly added hash_map.
15492 (iv_ca_set_remove_invariants): Fix coding style.
15493 (iv_ca_set_add_invariants): Fix coding style.
15494 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
15495 invariants.
15496 (iv_ca_set_cp): Likewise.
15497 (iv_ca_new): Initialize the newly added hash_map and remove
15498 initialization of fields.
15499 (iv_ca_free): Delete the hash_map.
15500 (iv_ca_dump): Dump invariant expressions.
15501 (iv_ca_extend): Fix coding style.
15502 (try_add_cand_for): Likewise.
15503 (create_new_ivs): Dump information about # of avg iterations and
15504 # of used invariant expressions.
15505 (rewrite_use_compare): Fix coding style.
15506 (free_loop_data): Set default value for max_inv_expr_id.
15507
15508 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15509
15510 * cse.c (rest_of_handle_cse): Use cleanup_cfg
15511 returned value cse_cfg_altered computation.
15512 (rest_of_handle_cse2): Likewise.
15513 (rest_of_handle_cse_after_global_opts): Likewise.
15514
15515 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15516
15517 PR target/53440
15518 * config/arm/arm.c (arm32_output_mi_thunk): New.
15519 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
15520 to split Thumb1 vs TARGET_32BIT functionality.
15521 (arm_thumb1_mi_thunk): New.
15522
15523 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15524
15525 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
15526 to true.
15527
15528 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15529
15530 PR target/71080
15531 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
15532
15533 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
15534
15535 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
15536 (expand_builtin_trap): Emit a regular call.
15537 (set_builtin_user_assembler_name): Remove obsolete cases.
15538 * dse.c (scan_insn): Adjust.
15539 * except.c: Include calls.h.
15540 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
15541 emit a regular call to setjmp.
15542 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
15543 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
15544 (emit_block_move_via_libcall): Delete.
15545 (block_move_fn): Delete.
15546 (init_block_move_fn): Likewise.
15547 (emit_block_move_libcall_fn): Likewise.
15548 (emit_block_op_via_libcall): New function.
15549 (set_storage_via_libcall): Tidy up and use memset builtin.
15550 (block_clear_fn): Delete.
15551 (init_block_clear_fn): Likewise.
15552 (clear_storage_libcall_fn): Likewise.
15553 (expand_assignment): Call emit_block_move_via_libcall.
15554 Do not include gt-expr.h.
15555 * expr.h (emit_block_op_via_libcall): Declare.
15556 (emit_block_copy_via_libcall): New inline function.
15557 (emit_block_move_via_libcall): Likewise.
15558 (emit_block_comp_via_libcall): Likewise.
15559 (block_clear_fn): Delete.
15560 (init_block_move_fn): Likewise.
15561 (init_block_clear_fn): Likewise.
15562 (emit_block_move_via_libcall): Likewise.
15563 (set_storage_via_libcall): Add default parameter value.
15564 * libfuncs.h (enum libfunc_index): Remove obsolete values.
15565 (abort_libfunc): Delete.
15566 (memcpy_libfunc): Likewise.
15567 (memmove_libfunc): Likewise.
15568 (memcmp_libfunc): Likewise.
15569 (memset_libfunc): Likewise.
15570 (setbits_libfunc): Likewise.
15571 (setjmp_libfunc): Likewise.
15572 (longjmp_libfunc): Likewise.
15573 (profile_function_entry_libfunc): Likewise.
15574 (profile_function_exit_libfunc): Likewise.
15575 (gcov_flush_libfunc): Likewise.
15576 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
15577 and DECL_VISIBILITY on the declaration.
15578 (init_optabs): Do not initialize obsolete libfuncs.
15579 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
15580 * tree-core.h (ECF_RET1): Define.
15581 (ECF_TM_PURE): Adjust.
15582 (ECF_TM_BUILTIN): Likewise.
15583 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
15584 (build_common_builtin_nodes): Initialize abort builtin.
15585 Add ECF_RET1 on memcpy, memmove and memset builtins.
15586 Pass final flags for alloca and alloca_with_align builtins.
15587 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
15588 obsolete builtins.
15589 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15590 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15591 set_storage_via_libcall and call emit_block_copy_via_libcall.
15592
15593 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
15594
15595 * config/i386/i386.md (*call_got_x32): Change operand 0 to
15596 DImode before it is passed to ix86_output_call_operand.
15597 (*call_value_got_x32): Ditto for operand 1.
15598
15599 2016-05-12 Jiong Wang <jiong.wang@arm.com>
15600
15601 PR rtl-optimization/70904
15602 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15603 reload for wide mode.
15604
15605 2016-05-12 Marek Polacek <polacek@redhat.com>
15606
15607 PR c/70756
15608 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15609 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15610 * langhooks.h (incomplete_type_error): Likewise.
15611 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
15612 parameter, pass it down to incomplete_type_error.
15613 * tree.h (size_in_bytes): New inline overload.
15614 (size_in_bytes_loc): Renamed from size_in_bytes.
15615
15616 2016-05-12 Richard Biener <rguenther@suse.de>
15617
15618 PR tree-optimization/71059
15619 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15620 nary before looking up or entering the expression into the VN
15621 hashes.
15622 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15623 Make sure to re-use NARYs without result as inserted by
15624 phi-translation.
15625
15626 2016-05-12 Richard Biener <rguenther@suse.de>
15627
15628 PR tree-optimization/71062
15629 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15630 field.
15631 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15632 vars_contains_restrict if the var is a restrict tag.
15633 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15634 do not disambiguate pointers against it.
15635 (dump_points_to_solution): Re-structure and adjust for new
15636 vars_contains_restrict flag.
15637 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15638
15639 2016-05-12 Martin Liska <mliska@suse.cz>
15640
15641 * doc/invoke.texi: Explain connection between
15642 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15643
15644 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
15645
15646 PR tree-optimization/71006
15647 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15648 consider COND_EXPR as a mask producer.
15649
15650 2016-05-12 Marek Polacek <polacek@redhat.com>
15651
15652 PR driver/71063
15653 * opts.c (common_handle_option): Detect missing argument for --help^.
15654
15655 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15656
15657 PR target/70830
15658 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15659 when popping the PC and within an interrupt handler routine.
15660 Add missing tab to output of "ldmfd".
15661 (output_return_instruction): Output LDMFD with SP update rather
15662 than POP when returning from interrupt handler.
15663
15664 2016-05-12 Jakub Jelinek <jakub@redhat.com>
15665
15666 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15667 TARGET_64BIT && TARGET_AVX512DQ.
15668 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15669 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15670 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15671 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15672 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15673 (*vec_extractv4si_zext): Add avx512dq alternative.
15674 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15675 use v instead of x constraint in other alternatives where possible.
15676
15677 * config/i386/sse.md (sse2_loadld): Use v instead of x
15678 constraint in alternatives 0,1,4.
15679
15680 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15681 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15682 v constraints instead of x and <pinsr_evex_isa> isa attribute.
15683
15684 PR target/71019
15685 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15686 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15687 is not emitted unless TARGET_AVX512BW.
15688 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15689 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15690 for the result operand.
15691
15692 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15693 constraint instead of x in avx alternatives. Use maybe_evex instead
15694 of vex prefix.
15695
15696 * config/i386/constraints.md (Yv): New constraint.
15697 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15698 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15699 * config/i386/i386.md (avx512fvecmode): New mode attr.
15700 (*pushtf): Use v constraint instead of x.
15701 (*movtf_internal): Likewise. For TARGET_AVX512VL and
15702 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15703 (*absneg<mode>2): Use Yv constraint instead of x constraint.
15704 (*absnegtf2_sse): Likewise.
15705 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15706 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15707 avx512f alternatives.
15708 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15709
15710 2016-05-12 Richard Biener <rguenther@suse.de>
15711
15712 PR tree-optimization/71060
15713 * tree-data-ref.c (initialize_data_dependence_relation): Do not
15714 require exact match of DR_BASE_OBJECT but only matching address and
15715 type.
15716
15717 2016-05-12 Richard Biener <rguenther@suse.de>
15718
15719 PR tree-optimization/70986
15720 * cfganal.c: Include cfgloop.h.
15721 (dfs_find_deadend): Prefer to take edges exiting loops.
15722
15723 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15724
15725 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15726 compile and run time.
15727
15728 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15729
15730 PR c/43651
15731 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15732
15733 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15734
15735 * config/i386/i386.c (legitimize_pic_address): Use
15736 copy_to_suggested_reg instead of gen_movsi.
15737
15738 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15739
15740 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15741 the code into quad_address_p and call it to share code with
15742 vsx_quad_dform_memory_operand.
15743 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15744 d-form support.
15745 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15746 bit instead of being a separate word. Split -mpower9-dform into
15747 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15748 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15749 for the register class supporting 128-bit quad word memory offsets.
15750 (mode_supports_vsx_dform_quad): Helper function to return if the
15751 register class uses quad word memory offsets.
15752 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15753 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15754 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15755 instructions are enabled, set up the appropriate addr_masks for
15756 128-bit types.
15757 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15758 -mpower9-dform-scalar, instead of -mpower9-dform.
15759 (rs6000_option_override_internal): Split -mpower9-dform into two
15760 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15761 -mpower9-dform switch sets or clears both. If we are not using
15762 the LRA register allocator, do not enable -mpower9-dform-vector by
15763 default. If we are using LRA, enable -mpower9-dform-vector and
15764 -mvsx-timode if it is appropriate. Issue a warning if either
15765 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15766 enabling LRA.
15767 (quad_address_offset_p): New helper function to return if the
15768 offset is legal for quad word memory instructions.
15769 (quad_address_p): New function to determin if GPR or vector
15770 register quad word memory addresses are legal.
15771 (mem_operand_gpr): Validate quad word address offsets.
15772 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15773 d-form (register + offset) instructions.
15774 (offsettable_ok_by_alignment): Likewise.
15775 (rs6000_legitimate_offset_address_p): Likewise.
15776 (legitimate_lo_sum_address_p): Likewise.
15777 (rs6000_legitimize_address): Likewise.
15778 (rs6000_legitimize_reload_address): Add more debug statements for
15779 -mdebug=addr.
15780 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15781 d-form instructions.
15782 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15783 d-form instructions. Distinguish different cases in debug
15784 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15785 d-form instructions.
15786 (rs6000_preferred_reload_class): Likewise.
15787 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15788 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15789 of the ISA 2.06 indexed memory instructions.
15790 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15791 use them to save/restore the saved vector registers instead of
15792 using Altivec instructions.
15793 (rs6000_emit_epilogue): Likewise.
15794 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15795 (rs6000_opt_masks): Split -mpower9-dform into
15796 -mpower9-dform-scalar and -mpower9-dform-vector.
15797 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15798 was not selected.
15799 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15800 ISA 3.0 vector indexed memory instructions, and fold the code into
15801 the normal mov<mode> patterns.
15802 (p9_vecstore_<mode>): Likewise.
15803 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15804 instructions.
15805 (vsx_movti_64bit): Likewise.
15806 (vsx_movti_32bit): Likewise.
15807 * config/rs6000/constraints.md (wO constraint): New constraint for
15808 ISA 3.0 vector d-form support.
15809 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15810 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15811 include -mpower9-dform-vector until we switch over to LRA.
15812 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15813 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15814 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15815 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15816 for -mpower9-dform and -mlra.
15817 * doc/md.texi (wO constraint): Document wO constraint.
15818
15819 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15820
15821 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15822 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15823 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15824 Move handling of non-insn arguments inline into the sole user:
15825 (output_trans_func): ...here.
15826 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15827 in emitted function prototype.
15828 (output_internal_insn_latency_func): Ditto. Simplify.
15829 (output_internal_maximal_insn_latency_func): Ditto. Delete
15830 always-unused argument.
15831 (output_insn_latency_func): Ditto.
15832 (output_maximal_insn_latency_func): Ditto.
15833
15834 2016-05-11 Richard Biener <rguenther@suse.de>
15835
15836 PR tree-optimization/71055
15837 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15838 sth with precision not equal to access size verify we don't chop
15839 off bits.
15840
15841 2016-05-11 Richard Biener <rguenther@suse.de>
15842
15843 PR debug/71057
15844 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15845 (dwarf2out_finish): Move retry_incomplete_types call ...
15846 (dwarf2out_early_finish): ... here.
15847
15848 2016-05-11 Richard Biener <rguenther@suse.de>
15849
15850 PR middle-end/71002
15851 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15852 if the langhook insists on it.
15853 * fold-const.c (make_bit_field_ref): Add arg for the original
15854 reference and preserve its alias-set.
15855 (decode_field_reference): Take exp by reference and adjust it
15856 to the original memory reference.
15857 (optimize_bit_field_compare): Adjust callers.
15858 (fold_truth_andor_1): Likewise.
15859 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15860
15861 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15862
15863 PR middle-end/70807
15864 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15865 * cfgrtl.c (delete_insn_and_edges): Likewise.
15866 * config/i386/i386.c (convert_scalars_to_vector): Remove
15867 redundant code.
15868 * cse.c (cse_insn): Compute cse_cfg_altered.
15869 (delete_trivially_dead_insns): Likewise.
15870 (cse_cc_succs): Likewise.
15871 (rest_of_handle_cse): Free dominance info if required.
15872 (rest_of_handle_cse2): Likewise.
15873 (rest_of_handle_cse_after_global_opts): Likewise.
15874
15875 2016-05-11 Alan Modra <amodra@gmail.com>
15876
15877 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15878 abi_v4_pass_in_fpr): New functions.
15879 (rs6000_function_arg_boundary): Exclude complex IBM long double
15880 from 64-bit alignment when ABI_V4.
15881 (rs6000_function_arg, rs6000_function_arg_advance_1,
15882 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15883
15884 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15885
15886 PR rtl-optimization/71028
15887 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15888 jump with just a return in the fallthrough block if the branch
15889 block contains just a return as well.
15890
15891 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15892
15893 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15894 * match.pd ((X & Y) ^ Y): ... this.
15895 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15896 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15897
15898 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15899
15900 * read-md.c (require_char_ws): New function.
15901 (read_string): Simplify using require_char_ws.
15902 (handle_constants): Likewise.
15903 (handle_enum): Likewise.
15904 (handle_file): Likewise.
15905 * read-md.h (require_char_ws): New declaration.
15906 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15907 (read_mapping): Likewise.
15908 (read_rtx_code): Likewise.
15909 (read_nested_rtx): Likewise.
15910
15911 2016-05-10 James Norris <jnorris@codesourcery.com>
15912
15913 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15914 if offloading is enabled and -fopenacc or -fopenmp is specified.
15915 (CRTOFFLOADEND): Likewise.
15916 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15917 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15918
15919 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15920
15921 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15922 gotoff_operand code paths. Use copy_to_suggested_regs and
15923 expand_simple_binop where appropriate. Cleanup.
15924
15925 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15926
15927 PR target/70799
15928 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15929 integer constants.
15930 (dimode_scalar_chain::vector_const_cost): New.
15931 (dimode_scalar_chain::compute_convert_gain): Handle constants.
15932 (dimode_scalar_chain::convert_op): Likewise.
15933 (dimode_scalar_chain::convert_insn): Likewise.
15934
15935 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15936
15937 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15938 unary operation, not a binary one.
15939
15940 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15941
15942 PR middle-end/70877
15943 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15944 calls with type casted fndecl.
15945
15946 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15947
15948 PR tree-optimization/70786
15949 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15950 * calls.c (initialize_argument_information): Bind bounds
15951 with corresponding args passed by reference.
15952
15953 2016-05-10 Jakub Jelinek <jakub@redhat.com>
15954
15955 PR target/70927
15956 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15957 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15958 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15959 accordingly.
15960
15961 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15962
15963 PR target/70963
15964 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15965 code for a zero scale factor.
15966 (vsx_xvcvdpuxds_scale): Likewise.
15967
15968 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15969
15970 * diagnostic-show-locus.c (layout::layout): Call show_ruler
15971 if show_ruler_p was set on the context.
15972 (layout::show_ruler): New method.
15973 * diagnostic.h (struct diagnostic_context): Add field
15974 "show_ruler_p".
15975
15976 2016-05-10 Richard Biener <rguenther@suse.de>
15977
15978 PR tree-optimization/71039
15979 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15980 (chk_uses): New function.
15981 (propagate_with_phi): Verify we can safely replicate the lhs of an
15982 aggregate assignment on all incoming edges.
15983
15984 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
15985
15986 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
15987 Forward declare.
15988 (rx_atomic_sequence): New class.
15989 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
15990 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
15991 non-inline.
15992 (rx_atomic_sequence::rx_atomic_sequence,
15993 rx_atomic_sequence::~rx_atomic_sequence): New functions.
15994 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
15995 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
15996 CTRLREG_INTB): New constants.
15997 (FETCHOP): New code iterator.
15998 (fethcop_name, fetchop_name2): New iterator code attributes.
15999 (QIHI): New mode iterator.
16000 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
16001 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
16002 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
16003
16004 2016-05-10 Martin Liska <mliska@suse.cz>
16005
16006 * tree-inline.c (remap_dependence_clique): Do not remap
16007 debugging statements.
16008
16009 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16010
16011 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
16012 ("*fixuns_truncdfdi2_z13")
16013 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
16014 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
16015 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
16016
16017 2016-05-10 Richard Biener <rguenther@suse.de>
16018
16019 PR tree-optimization/70497
16020 PR tree-optimization/28367
16021 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
16022 split out from ...
16023 (visit_reference_op_load): ... here.
16024 (vn_reference_lookup_3): Use it to handle subreg-like accesses
16025 with simplified BIT_FIELD_REFs.
16026 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
16027 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
16028 correctly.
16029
16030 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16031
16032 * dwarf2out.c (add_abstract_origin_attribute): Adjust
16033 documentation comment. For BLOCK nodes, add a
16034 DW_AT_abstract_origin attribute that points to the DIE generated
16035 for the origin BLOCK.
16036 (gen_lexical_block_die): Call add_abstract_origin_attribute for
16037 blocks from inlined functions.
16038
16039 2016-05-10 Alan Modra <amodra@gmail.com>
16040
16041 PR target/70947
16042 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
16043 regrename modifying insns saving lr before __morestack call.
16044 * config/rs6000/rs6000.md (split_stack_return): Similarly for
16045 insns restoring lr after __morestack call.
16046
16047 2016-05-09 Jakub Jelinek <jakub@redhat.com>
16048
16049 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
16050 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
16051 expanders.
16052 * config/i386/sse.md (vec_interleave_high<mode>,
16053 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
16054 <avx512>_vpermt2var<mode>3_maskz): Likewise.
16055
16056 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16057
16058 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
16059 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
16060 parallel reassociation for power8 and forward.
16061
16062 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
16063
16064 * config/i386/i386.md (absneg splitters with general regs): Use
16065 general_reg_operand predicate.
16066 (btsq peephole2): Use x86_64_immediate_operand to check if new
16067 value is suitable for immediate operand. Generate emitted insn
16068 using RTL expressions.
16069 (btcq peephole2): Ditto.
16070 (btrq peephole2): Ditto. Generate correct immediate operand
16071 for AND masking.
16072
16073 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16074
16075 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
16076 bitpos.
16077
16078 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16079
16080 * tree-affine.c (wide_int_constant_multiple_p): Add missing
16081 pointer dereference.
16082
16083 2016-05-09 Richard Biener <rguenther@suse.de>
16084
16085 PR tree-optimization/70985
16086 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
16087 op0 isn't a gimple register.
16088
16089 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
16090
16091 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
16092 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
16093 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
16094 (i6400_fpu_mult): New cpu units.
16095 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
16096 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
16097 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
16098 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
16099 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
16100 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
16101 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
16102 (i6400_msa_long_float4, i6400_msa_long_float5)
16103 (i6400_msa_long_float8, i6400_msa_fdiv_df)
16104 (i6400_msa_fdiv_sf): New reservations.
16105 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
16106 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
16107 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
16108 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
16109 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
16110 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
16111 (msa_short_cmp, msa_short_float2, msa_short_logic3)
16112 (msa_short_store4, msa_long_load, msa_short_store)
16113 (msa_long_logic, msa_long_float2, msa_long_float4)
16114 (msa_long_float5, msa_long_float8, msa_long_mult)
16115 (msa_long_fdiv, msa_long_div): New reservations.
16116
16117 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
16118 Sameera Deshpande <sameera.deshpande@imgtec.com>
16119 Matthew Fortune <matthew.fortune@imgtec.com>
16120 Graham Stott <graham.stott@imgtec.com>
16121 Chao-ying Fu <chao-ying.fu@imgtec.com>
16122
16123 * config.gcc: Add MSA header file for mips*-*-* target.
16124 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
16125 (Ubv8i, Urv8): New constraints.
16126 * config/mips/mips-ftypes.def: Add function types for MSA
16127 builtins.
16128 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
16129 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
16130 * config/mips/mips-msa.md: New file.
16131 * config/mips/mips-protos.h
16132 (mips_split_128bit_const_insns): New prototype.
16133 (mips_msa_idiv_insns): Likewise.
16134 (mips_split_128bit_move): Likewise.
16135 (mips_split_128bit_move_p): Likewise.
16136 (mips_split_msa_copy_d): Likewise.
16137 (mips_split_msa_insert_d): Likewise.
16138 (mips_split_msa_fill_d): Likewise.
16139 (mips_expand_msa_branch): Likewise.
16140 (mips_const_vector_same_val_p): Likewise.
16141 (mips_const_vector_same_bytes_p): Likewise.
16142 (mips_const_vector_same_int_p): Likewise.
16143 (mips_const_vector_shuffle_set_p): Likewise.
16144 (mips_const_vector_bitimm_set_p): Likewise.
16145 (mips_const_vector_bitimm_clr_p): Likewise.
16146 (mips_msa_vec_parallel_const_half): Likewise.
16147 (mips_msa_output_division): Likewise.
16148 (mips_ldst_scaled_shift): Likewise.
16149 (mips_expand_vec_cond_expr): Likewise.
16150 * config/mips/mips.c (enum mips_builtin_type): Add
16151 MIPS_BUILTIN_MSA_TEST_BRANCH.
16152 (mips_gen_const_int_vector_shuffle): New prototype.
16153 (mips_const_vector_bitimm_set_p): New function.
16154 (mips_const_vector_bitimm_clr_p): Likewise.
16155 (mips_const_vector_same_val_p): Likewise.
16156 (mips_const_vector_same_bytes_p): Likewise.
16157 (mips_const_vector_same_int_p): Likewise.
16158 (mips_const_vector_shuffle_set_p): Likewise.
16159 (mips_symbol_insns): Forbid loading symbols via immediate for
16160 MSA.
16161 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
16162 stores.
16163 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
16164 MSA.
16165 (mips_lx_address_p): Add support load indexed address for MSA.
16166 (mips_address_insns): Add calculation of instructions needed for
16167 stores and loads for MSA.
16168 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
16169 CONST_VECTOR for MSA and let it fall through.
16170 (mips_ldst_scaled_shift): New function.
16171 (mips_subword_at_byte): Likewise.
16172 (mips_msa_idiv_insns): Likewise.
16173 (mips_legitimize_move): Validate MSA moves.
16174 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
16175 calculation of costs for MSA division.
16176 (mips_split_move_p): Check if MSA moves need splitting.
16177 (mips_split_move): Split MSA moves if necessary.
16178 (mips_split_128bit_move_p): New function.
16179 (mips_split_128bit_move): Likewise.
16180 (mips_split_msa_copy_d): Likewise.
16181 (mips_split_msa_insert_d): Likewise.
16182 (mips_split_msa_fill_d): Likewise.
16183 (mips_output_move): Handle MSA moves.
16184 (mips_expand_msa_branch): New function.
16185 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
16186 Reinstate 'y' modifier.
16187 (mips_file_start): Add MSA .gnu_attribute.
16188 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
16189 FPRs.
16190 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
16191 (mips_class_max_nregs): Add register size for MSA supported mode.
16192 (mips_cannot_change_mode_class): Allow conversion between MSA
16193 vector modes and TImode.
16194 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
16195 instruction.
16196 (mips_secondary_reload_class): Force MSA loads/stores via memory.
16197 (mips_preferred_simd_mode): Add preffered modes for MSA.
16198 (mips_vector_mode_supported_p): Add MSA supported modes.
16199 (mips_autovectorize_vector_sizes): New function.
16200 (mips_msa_output_division): Likewise.
16201 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
16202 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
16203 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
16204 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
16205 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
16206 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
16207 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
16208 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
16209 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
16210 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
16211 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
16212 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
16213 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
16214 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
16215 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
16216 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
16217 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
16218 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
16219 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
16220 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
16221 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
16222 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
16223 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
16224 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
16225 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
16226 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
16227 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
16228 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
16229 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
16230 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
16231 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
16232 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
16233 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
16234 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
16235 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
16236 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
16237 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
16238 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
16239 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
16240 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
16241 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
16242 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
16243 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
16244 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
16245 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16246 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16247 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16248 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16249 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16250 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16251 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16252 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16253 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
16254 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
16255 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
16256 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
16257 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
16258 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
16259 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
16260 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
16261 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
16262 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
16263 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
16264 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
16265 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
16266 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
16267 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
16268 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
16269 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
16270 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
16271 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
16272 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
16273 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
16274 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
16275 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
16276 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
16277 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
16278 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
16279 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
16280 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
16281 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
16282 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
16283 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
16284 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
16285 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
16286 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
16287 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
16288 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
16289 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
16290 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
16291 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
16292 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
16293 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
16294 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
16295 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
16296 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
16297 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
16298 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
16299 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
16300 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
16301 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
16302 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
16303 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
16304 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
16305 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
16306 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
16307 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
16308 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
16309 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
16310 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
16311 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
16312 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
16313 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
16314 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
16315 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
16316 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
16317 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
16318 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
16319 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
16320 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
16321 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
16322 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
16323 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
16324 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
16325 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
16326 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
16327 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
16328 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
16329 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
16330 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
16331 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
16332 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
16333 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
16334 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
16335 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
16336 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
16337 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
16338 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
16339 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
16340 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
16341 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
16342 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
16343 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
16344 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
16345 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
16346 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
16347 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
16348 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
16349 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
16350 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
16351 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
16352 move_v builtins.
16353 (mips_get_builtin_decl_index): New array.
16354 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
16355 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
16356 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
16357 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
16358 (mips_init_builtins): Initialize mips_get_builtin_decl_index
16359 array.
16360 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
16361 hook.
16362 (mips_expand_builtin_insn): Prepare operands for
16363 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
16364 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
16365 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
16366 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
16367 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
16368 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
16369 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
16370 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
16371 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
16372 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
16373 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
16374 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
16375 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
16376 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
16377 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
16378 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
16379 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
16380 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
16381 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
16382 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
16383 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
16384 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
16385 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
16386 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
16387 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
16388 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
16389 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
16390 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
16391 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
16392 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
16393 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
16394 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
16395 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
16396 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
16397 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
16398 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
16399 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
16400 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
16401 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
16402 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
16403 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
16404 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
16405 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
16406 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
16407 These are set implicitly and an error is reported if overridden.
16408 (mips_expand_builtin_msa_test_branch): New function.
16409 (mips_expand_msa_shuffle): Likewise.
16410 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
16411 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
16412 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
16413 (mips_expand_vec_unpack): Add support for MSA.
16414 (mips_expand_vector_init): Likewise.
16415 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
16416 instead of const0_rtx.
16417 (mips_msa_vec_parallel_const_half): New function.
16418 (mips_gen_const_int_vector): Likewise.
16419 (mips_gen_const_int_vector_shuffle): Likewise.
16420 (mips_expand_msa_cmp): Likewise.
16421 (mips_expand_vec_cond_expr): Likewise.
16422 * config/mips/mips.h
16423 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
16424 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
16425 specified.
16426 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
16427 (ISA_HAS_MSA): New macro.
16428 (UNITS_PER_MSA_REG): Likewise.
16429 (BITS_PER_MSA_REG): Likewise.
16430 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
16431 (MSA_REG_FIRST): New macro.
16432 (MSA_REG_LAST): Likewise.
16433 (MSA_REG_NUM): Likewise.
16434 (MSA_REG_P): Likewise.
16435 (MSA_REG_RTX_P): Likewise.
16436 (MSA_SUPPORTED_MODE_P): Likewise.
16437 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
16438 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
16439 * config/mips/mips.md: Include mips-msa.md.
16440 (alu_type): Add simd_add.
16441 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
16442 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
16443 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
16444 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
16445 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
16446 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
16447 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
16448 simd_move, simd_load, simd_store. Choose "multi" for moves
16449 for "qword_mode".
16450 (qword_mode): New attribute.
16451 (insn_count): Add instruction count for quad moves.
16452 Increase the count for MIPS SIMD division.
16453 (UNITMODE): Add UNITMODEs for vector types.
16454 (addsub): New code iterator.
16455 * config/mips/mips.opt (mmsa): New option.
16456 * config/mips/msa.h: New file.
16457 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
16458 specified.
16459 * config/mips/mti-linux.h: Likewise.
16460 * config/mips/predicates.md
16461 (const_msa_branch_operand): New constraint.
16462 (const_uimm3_operand): Likewise.
16463 (const_uimm4_operand): Likewise.
16464 (const_uimm5_operand): Likewise.
16465 (const_uimm8_operand): Likewise.
16466 (const_imm5_operand): Likewise.
16467 (aq10b_operand): Likewise.
16468 (aq10h_operand): Likewise.
16469 (aq10w_operand): Likewise.
16470 (aq10d_operand): Likewise.
16471 (const_m1_operand): Likewise.
16472 (reg_or_m1_operand): Likewise.
16473 (const_exp_2_operand): Likewise.
16474 (const_exp_4_operand): Likewise.
16475 (const_exp_8_operand): Likewise.
16476 (const_exp_16_operand): Likewise.
16477 (const_vector_same_val_operand): Likewise.
16478 (const_vector_same_simm5_operand): Likewise.
16479 (const_vector_same_uimm5_operand): Likewise.
16480 (const_vector_same_uimm6_operand): Likewise.
16481 (const_vector_same_uimm8_operand): Likewise.
16482 (par_const_vector_shf_set_operand): Likewise.
16483 (reg_or_vector_same_val_operand): Likewise.
16484 (reg_or_vector_same_simm5_operand): Likewise.
16485 (reg_or_vector_same_uimm6_operand): Likewise.
16486 * doc/extend.texi (MIPS SIMD Architecture Functions): New
16487 section.
16488 * doc/invoke.texi (-mmsa): Document new option.
16489
16490 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16491
16492 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
16493 * configure: Regenerate.
16494 * config.in: Regenerate.
16495 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
16496 on -fvtable-verify.
16497 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
16498 (ENDFILE_VTV_SPEC): Define.
16499
16500 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
16501
16502 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
16503 registers in all interrupt handlers if necessary.
16504 (rl78_option_override): Add warning.
16505 (MUST_SAVE_MDUC_REGISTERS): New macro.
16506 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
16507 * config/rl78/rl78.c (check_mduc_usage): New function.
16508 (mduc_regs): New structure to hold MDUC register data.
16509 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
16510 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
16511 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
16512 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
16513 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
16514 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
16515
16516 2016-05-09 Bin Cheng <bin.cheng@arm.com>
16517
16518 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
16519 (tree-ssa-loop-niter.h): Ditto.
16520 (idx_within_array_bound, ref_within_array_bound): New functions.
16521 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
16522 Factor out check on writable base object to ...
16523 (base_object_writable): ... here.
16524
16525 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16526
16527 * config/arm/arm.md (probe_stack): Add modes to set source
16528 and destination.
16529
16530 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
16531
16532 * regrename.c (base_reg_class_for_rename): New static function.
16533 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
16534
16535 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
16536
16537 * cgraph.c (thunk_adjust): Export.
16538 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
16539 * cgraphunit.c (thunk_adjust): Export.
16540 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
16541 thunks.
16542 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
16543 inlinable.
16544 * tree-inline.c (expand_call_inline): Expand thunks inline.
16545
16546 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
16547
16548 PR target/70998
16549 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
16550 (*sse2_vd_cvtss2sd): Ditto.
16551 * config/i386/i386.md
16552 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
16553 Generate *sse2_vd_cvtsd2ss pattern.
16554 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
16555 Generate *sse2_vd_cvtss2sd pattern.
16556
16557 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16558
16559 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
16560 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
16561 users.
16562
16563 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16564
16565 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
16566 * config/sh/sh.c: Define and declare variables on first use throughout
16567 the file.
16568 (current_function_interrupt): Change to bool type.
16569 (frame_insn): Rename to emit_frame_insn and update users.
16570 (push_regs): Use bool for 'interrupt_handler' argument.
16571 (save_schedule_s): Remove.
16572 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
16573 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
16574 targetm.asm_out.unaligned_op.di.
16575 (gen_far_branch): Remove redundant forward declaration.
16576 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
16577 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
16578 (sh_set_return_address, sh_function_ok_for_sibcall,
16579 scavenge_reg): Update comments.
16580 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
16581 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
16582 (sh_attr_renesas_p): Remove unnecessary parentheses.
16583 (branch_dest): Simplify.
16584 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
16585 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
16586 (CUMULATIVE_ARGS): Change macro to typedef.
16587 (current_function_interrupt): Change to bool type.
16588 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16589 Surround with __cplusplus ifdef.
16590 (sh_compare_op0, sh_compare_op1): Remove.
16591 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16592
16593 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
16594
16595 * config/arm/arm.md: (arch): Add neon.
16596 (arch_enabled): Return yes for arch neon when TARGET_NEON.
16597 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
16598 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
16599 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
16600 attributes for alt renumbering. Mark alt 3 as non-predicable.
16601 (thumb2_movdf_vfp): Likewise.
16602
16603 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
16604
16605 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16606 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16607 (*andqi_1): Add preferred_for_speed attribute to disparage
16608 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16609 (*<code>qi_1): Ditto.
16610 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16611 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16612 (*ashlqi3_1): Ditto.
16613 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16614 Add preferred_for_size attribute to disparage alternative 0 and
16615 preferred_for_speed attribute to disparage alternative 1 for
16616 TARGET_PARTIAL_REG_STALL targets.
16617
16618 2016-05-07 Tom de Vries <tom@codesourcery.com>
16619
16620 PR tree-optimization/70956
16621 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16622 def.
16623
16624 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16625
16626 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16627 * config/sh/sh.c (sh_cbranch_distance): Implement it.
16628 * config/sh/sh.md (branch_zero): Remove define_attr.
16629 (define_delay): Disable delay slot if branch distance is one insn.
16630
16631 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16632
16633 * config/i386/i386.md (LEAMODE): New mode attribute.
16634 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16635 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16636 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
16637 operand 2 predicate.
16638 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16639 (*lea<mode>_general_3): Ditto.
16640 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16641
16642 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16643
16644 * genmddump.c (main): Convert argv from char ** to const char **.
16645
16646 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16647
16648 * coretypes.h (OVERRIDE): New macro.
16649 (FINAL): New macro.
16650
16651 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
16652
16653 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16654 allow coalescing if the types are compatible.
16655
16656 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16657
16658 * pass_manager.h (pass_manager::register_pass_name): New method.
16659 (pass_manager::get_pass_by_name): New method.
16660 (pass_manager::create_pass_tab): New method.
16661 (pass_manager::m_name_to_pass_map): New field.
16662 * passes.c (name_to_pass_map): Delete global in favor of field
16663 "m_name_to_pass_map" of pass_manager.
16664 (register_pass_name): Rename from a function to...
16665 (pass_manager::register_pass_name): ...this method, updating
16666 for renaming of global "name_to_pass_map" to field
16667 "m_name_to_pass_map".
16668 (create_pass_tab): Rename from a function to...
16669 (pass_manager::create_pass_tab): ...this method, updating
16670 for renaming of global "name_to_pass_map" to field.
16671 (get_pass_by_name): Rename from a function to...
16672 (pass_manager::get_pass_by_name): ...this method.
16673 (enable_disable_pass): Convert use of get_pass_by_name to
16674 a method call, locating the pass_manager singleton.
16675
16676 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16677
16678 * genattr-common.c (main): Convert argv from char ** to const char **.
16679 * genattr.c (main): Likewise.
16680 * genattrtab.c (main): Likewise.
16681 * genautomata.c (initiate_automaton_gen): Likewise.
16682 (main): Likewise.
16683 * gencodes.c (main): Likewise.
16684 * genconditions.c (main): Likewise.
16685 * genconfig.c (main): Likewise.
16686 * genconstants.c (main): Likewise.
16687 * genemit.c (main): Likewise.
16688 * genenums.c (main): Likewise.
16689 * genextract.c (main): Likewise.
16690 * genflags.c (main): Likewise.
16691 * genmddeps.c (main): Likewise.
16692 * genopinit.c (main): Likewise.
16693 * genoutput.c (main): Likewise.
16694 * genpeep.c (main): Likewise.
16695 * genpreds.c (main): Likewise.
16696 * genrecog.c (main): Likewise.
16697 * gensupport.c (init_rtx_reader_args_cb): Likewise.
16698 (init_rtx_reader_args): Likewise.
16699 * gensupport.h (init_rtx_reader_args_cb): Likewise.
16700 (init_rtx_reader_args): Likewise.
16701 * gentarget-def.c (main): Likewise.
16702 * read-md.c (read_md_files): Likewise.
16703 * read-md.h (read_md_files): Likewise.
16704
16705 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16706
16707 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16708 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16709 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16710 Remove unused predicate.
16711 (register_and_not_fp_reg_operand): Ditto.
16712
16713 2016-05-06 Martin Liska <mliska@suse.cz>
16714
16715 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16716 instead of vec as the vector is local to the function.
16717
16718 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16719
16720 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16721 avx512bw alternative.
16722
16723 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16724 before the ashr<mode>3 pattern.
16725
16726 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16727 v instead of x in vex or maybe_vex alternatives, use
16728 maybe_evex instead of vex in prefix.
16729
16730 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16731 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16732 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16733 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16734 in prefix.
16735
16736 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16737 v instead of x in vex or maybe_vex alternatives, use
16738 maybe_evex instead of vex in prefix.
16739
16740 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16741 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16742 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16743 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16744 alternatives, use maybe_evex instead of vex in prefix.
16745
16746 * config/i386/sse.md (vec_interleave_lowv4sf,
16747 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16748 v instead of x in vex or maybe_vex alternatives, use
16749 maybe_evex instead of vex in prefix.
16750
16751 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16752 v instead of x in vex or maybe_vex alternatives, use
16753 maybe_evex instead of vex in prefix.
16754
16755 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16756 v constraint instead of x.
16757
16758 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16759
16760 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16761 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16762 equality first.
16763
16764 2016-05-06 Richard Biener <rguenther@suse.de>
16765
16766 PR tree-optimization/70948
16767 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16768 Properly clobber all fields of va_list for __builtin_va_start.
16769
16770 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16771
16772 PR debug/70935
16773 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16774 loop latch destination.
16775
16776 2016-05-06 Martin Liska <mliska@suse.cz>
16777
16778 * tree-ssa-uninit.c: Apply manual changes
16779 to the GNU coding style.
16780 (prune_uninit_phi_opnds): Rename from
16781 prune_uninit_phi_opnds_in_unrealizable_paths.
16782
16783 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16784
16785 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16786 mspace): Remove deprecated options.
16787 * doc/invoke.texi (SH options): Remove -mspace.
16788
16789 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16790
16791 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16792
16793 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16794
16795 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16796 corresponding combine split pattern.
16797
16798 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16799
16800 PR target/58219
16801 * config/sh/predicates.md (long_displacement_mem_operand): New.
16802 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16803 Add movi20, movi20s alternatives. Adjust length attribute for
16804 alternatives.
16805 (movsi_ie): Allow for any FPU. Adjust length attribute for
16806 alternatives.
16807 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16808 attribute for alternatives.
16809 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16810 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16811 length attribute for alternatives.
16812
16813 2016-05-06 Richard Biener <rguenther@suse.de>
16814
16815 PR tree-optimization/70960
16816 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16817
16818 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16819
16820 PR target/52933
16821 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16822 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16823
16824 2016-05-06 Marek Polacek <polacek@redhat.com>
16825
16826 PR sanitizer/70875
16827 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16828
16829 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16830
16831 PR target/54089
16832 * config/sh/sh.md (*rotcr): Add another variant.
16833
16834 2016-05-06 Richard Biener <rguenther@suse.de>
16835
16836 PR middle-end/70931
16837 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16838
16839 2016-05-06 Richard Biener <rguenther@suse.de>
16840
16841 PR middle-end/70941
16842 * fold-const.c (split_tree): Always convert to the original type
16843 before negating.
16844
16845 2016-05-06 Richard Biener <rguenther@suse.de>
16846
16847 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16848 (fwprop_addr): Likewise.
16849
16850 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16851
16852 PR target/70873
16853 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16854 New prototype.
16855 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16856 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16857 the splitter condition.
16858 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16859 the splitter condition.
16860 (FP float_extend load splitter): Ditto.
16861
16862 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16863
16864 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16865 to REGNO in all peephole2 patterns.
16866 (post-reload splitters): Change true_regnum to REGNO in
16867 post-reload splitters.
16868 (zero_extend splitters): Use general_reg_operand and
16869 nonimmediate_gr_operand predicates.
16870
16871 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16872
16873 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16874 v constraint instead of x.
16875
16876 2016-05-05 Alan Modra <amodra@gmail.com>
16877
16878 PR target/68662
16879 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16880 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16881 TARGET_NO_FP_IN_TOC for -mrelocatable.
16882 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16883 TARGET_RELOCATABLE test.
16884 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16885 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16886 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16887 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16888 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16889 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16890 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16891 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16892 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16893 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16894 Likewise.
16895 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16896 (rs6000_stack_info): Likewise.
16897 (rs6000_elf_asm_out_constructor): Likewise.
16898 (rs6000_elf_asm_out_destructor): Likewise.
16899 (rs6000_elf_declare_function_name): Likewise.
16900 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16901 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16902 Don't define.
16903
16904 2016-05-05 Alan Modra <amodra@gmail.com>
16905
16906 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16907
16908 2016-05-05 Alan Modra <amodra@gmail.com>
16909
16910 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16911 out-of-line gpr restore for one or two regs if that would add
16912 a save of lr.
16913
16914 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16915
16916 PR target/70873
16917 * config/i386/i386.md
16918 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16919 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16920 as operand 0 predicate.
16921 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16922 Ditto.
16923 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16924 Ditto. Emit the pattern using RTX.
16925
16926 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16927 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
16928 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
16929 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16930 Ditto.
16931 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16932 sse_reg_operand as operand 0 predicate.
16933
16934 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16935 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
16936 instead of gen_rtx_REG.
16937 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16938 Ditto.
16939
16940 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16941
16942 * function.c (emit_use_return_register_into_block): Delete.
16943 (gen_return_pattern): Delete.
16944 (emit_return_into_block): Delete.
16945 (active_insn_between): Delete.
16946 (convert_jumps_to_returns): Delete.
16947 (emit_return_for_exit): Delete.
16948 (thread_prologue_and_epilogue_insns): Delete all code dealing with
16949 simple_return for shrink-wrapped blocks.
16950 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16951 end of blocks that need one.
16952 (get_unconverted_simple_return): Delete.
16953 (convert_to_simple_return): Delete.
16954 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16955 (convert_to_simple_return): Ditto.
16956
16957 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16958
16959 * cfgcleanup.c (bb_is_just_return): New function.
16960 (try_optimize_cfg): Simplify jumps to return, branches to return,
16961 and branches around return.
16962
16963 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16964
16965 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16966 branch to a return.
16967
16968 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16969
16970 PR c++/70906
16971 PR c++/70933
16972 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16973 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16974 assert flags & OEP_HASH_CHECK, instead of asserting it
16975 never happens. Handle TARGET_EXPR.
16976 * fold-const.c (operand_equal_p): For hash verification,
16977 or in OEP_HASH_CHECK into flags.
16978
16979 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
16980
16981 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16982 comment.
16983 (compute_samebase_partition_bases): Fix typo.
16984
16985 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16986
16987 * config/i386/sse.md (vec_interleave_highv8sf,
16988 vec_interleave_lowv8sf, vec_interleave_highv4df,
16989 vec_interleave_lowv4df): Remove constraints from expanders.
16990
16991 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
16992
16993 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16994
16995 * tree-inline.c (expand_call_inline): Fix path dealing with
16996 making lhs of call statement undefined.
16997
16998 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16999
17000 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17001 Check availability on NODE, too.
17002 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
17003 (cgraph_node::call_for_symbol_and_aliases): Likewise.
17004 (varpool_node::call_for_symbol_and_aliase): Likewise.
17005 * ipa-pure-const.c (add_new_function): Analyze all bodies.
17006 (propagate_pure_const): Propagate across interposable functions, too.
17007 (skip_function_for_local_pure_const): Do not skip interposable bodies
17008 with aliases.
17009 (pass_local_pure_const::execute): Update.
17010
17011 2016-05-04 Marek Polacek <polacek@redhat.com>
17012
17013 * doc/invoke.texi: Document -Wdangling-else.
17014
17015 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17016
17017 * config.gcc: Error out when conflicting multilib is detected. Do not
17018 loop over multilibs since no combination is legal.
17019
17020 2016-05-04 Alan Modra <amodra@gmail.com>
17021
17022 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
17023 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
17024 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17025 Align .toc.
17026
17027 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
17028
17029 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
17030 Clean up p5600 comments.
17031
17032 2016-05-04 Richard Biener <rguenther@suse.de>
17033
17034 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
17035 constructor simplifications.
17036 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
17037
17038 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
17039
17040 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
17041 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
17042 result.set_rtx is null instead of aborting.
17043 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
17044 Always enable.
17045 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
17046 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
17047 *mov<mode>_store_postinc): New patterns.
17048
17049 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
17050
17051 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
17052 as commutative. Check both conversions are NOP.
17053 ((A & B) OP (C & B)): Remove.
17054
17055 2016-05-04 Alan Modra <amodra@gmail.com>
17056
17057 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
17058
17059 2016-05-04 Alan Modra <amodra@gmail.com>
17060
17061 PR target/70866
17062 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
17063 when cr2,3,4 are all fixed regs.
17064
17065 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
17066
17067 PR rtl-optimization/57193
17068 * opts.c (default_options_table): Revert OPT_frename_registers change.
17069 * doc/invoke.texi (-frename-registers, -O2): Likewise.
17070
17071 2016-05-03 Martin Sebor <msebor@redhat.com>
17072
17073 PR c++/66561
17074 * builtins.c (fold_builtin_FILE): New function.
17075 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
17076 (fold_builtin_0): Call them.
17077 * gimplify.c (gimplify_call_expr): Remove the handling of
17078 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
17079
17080 PR c++/66561
17081 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
17082 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
17083 constants.
17084
17085 PR c++/66639
17086 * doc/extend.texi (Function Names as Strings): Update __func__,
17087 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
17088 constants.
17089
17090 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17091 Richard Biener <rguenther@suse.de>
17092
17093 PR tree-optimization/70916
17094 * tree-if-conv.c: Include cfganal.h.
17095 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
17096 and remove_fake_exit_edges around the optimization pass.
17097
17098 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
17099
17100 * cgraph.c (symbol_table::create_edge): Set inline_failed.
17101 (cgraph_edge::make_direct): Likewise.
17102 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
17103 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
17104 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
17105 (CIF_THUNK): New code.
17106 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
17107 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
17108 (compute_inline_parameters): Set inline_failed for thunks.
17109 (inline_analyze_function): Cleanup.
17110 * ipa-inline.c (can_inline_edge_p): Do not deal with
17111 call_stmt_cannot_inline_p.
17112 (can_early_inline_edge_p): Likewise.
17113 (early_inliner): Initialize inline_failed.
17114 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
17115
17116 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
17117
17118 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
17119 from nonimm_ssenomem_operand.
17120 (nonimm_ssenomem_operand): New predicate.
17121 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
17122 as operand 0 predicate.
17123 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
17124 Disable unsupported alternatives using "enabled" attribute.
17125 Use register_ssemem_operand as operand 0 predicate.
17126 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
17127
17128 2016-05-03 Marek Polacek <polacek@redhat.com>
17129
17130 PR c/70859
17131 * input.c (expansion_point_location): New function.
17132 * input.h (expansion_point_location): Declare.
17133
17134 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
17135
17136 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
17137 occurence with frame_offset_ ones.
17138
17139 2016-05-03 Alan Modra <amodra@gmail.com>
17140
17141 PR rtl-optimization/70890
17142 * ira.c (combine_and_move_insns): When moving def_insn, remove
17143 equivs on use_insn.
17144
17145 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
17146
17147 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
17148 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
17149 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
17150 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
17151
17152 2016-05-03 Alan Modra <amodra@gmail.com>
17153
17154 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
17155 for SAVE_MULTIPLE/STORE_MULTIPLE.
17156
17157 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17158
17159 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
17160 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
17161
17162 2016-05-03 Richard Biener <rguenther@suse.de>
17163
17164 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
17165 default true.
17166 (gimplify_arg): Likewise.
17167 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
17168 re-writing the result to a decl if required.
17169 (internal_get_tmp_var): Add allow_ssa parameter
17170 and override into_ssa with it.
17171 (get_formal_tmp_var): Adjust.
17172 (get_initialized_tmp_var): Add allow_ssa parameter.
17173 (gimplify_arg): Add allow_ssa parameter and avoid generating
17174 SSA names for the result false.
17175 (gimplify_call_expr): If the call may return twice do not
17176 gimplify parameters into SSA.
17177 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
17178 (gimplify_modify_expr): Adjust assert. For noreturn calls
17179 with a SSA name LHS adjust its def.
17180 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
17181 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
17182 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
17183 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
17184 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
17185 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
17186 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
17187 (optimize_target_teams): Do not allow SSA names for clause operands.
17188 (gimplify_expr): Likewise for where we mark the result addressable.
17189 * passes.def (pass_init_datastructures): Remove.
17190 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
17191 (rewrite_stmt): Likewise.
17192 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
17193 (replace_locals_op): Replace SSA names.
17194 (copy_gimple_seq_and_replace_locals): Init src_cfun.
17195 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
17196 * cgraph.c (release_function_body): Free CFG annotations only
17197 when we have a CFG. Simplify.
17198 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
17199 force_gimple_operand instead of get_initialized_tmp_var.
17200 * tree-pass.h (make_pass_init_datastructures): Remove.
17201 * tree-ssa.c (execute_init_datastructures): Remove.
17202 (pass_data_init_datastructures): Likewise.
17203 (class pass_init_datastructures): Likewise.
17204 (make_pass_init_datastructures): Likewise.
17205 * omp-low.c (create_omp_child_function): Init SSA data structures.
17206 (grid_expand_target_grid_body): Likewise.
17207 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
17208 name before adding it to names_to_release.
17209 (remove_bb): Always release SSA defs.
17210 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
17211 before dereferencing it.
17212 * cgraphunit.c (init_lowered_empty_function): Always
17213 int SSA data structures.
17214 * tree-ssanames.c (release_defs): Remove assert that we are in
17215 SSA form.
17216 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
17217
17218 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17219 Uros Bizjak <ubizjak@gmail.com>
17220
17221 PR rtl-optimization/70467
17222 * config/i386/predicates.md (x86_64_hilo_int_operand,
17223 x86_64_hilo_general_operand): New predicates.
17224 * config/i386/constraints.md (Wd): New constraint.
17225 * config/i386/i386.md (mode attr di): Use Wd instead of e.
17226 (general_hilo_operand): New mode attr.
17227 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
17228 instead of <general_operand>.
17229 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
17230 x86_64_hilo_general_operand instead of <general_operand>.
17231
17232 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17233
17234 PR tree-optimization/70916
17235 * tree-if-conv.c (constant_or_ssa_name): Removed.
17236 (fold_build_cond_expr): Use is_gimple_val instead of
17237 constant_or_ssa_name.
17238
17239 PR tree-optimization/70916
17240 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
17241 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
17242
17243 PR target/49244
17244 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
17245 (optimize_atomic_bit_test_and): New function.
17246 (pass_fold_builtins::execute): Use it.
17247 * optabs.def (atomic_bit_test_and_set_optab,
17248 atomic_bit_test_and_complement_optab,
17249 atomic_bit_test_and_reset_optab): New optabs.
17250 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
17251 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
17252 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
17253 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
17254 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
17255 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
17256 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
17257 * doc/md.texi (atomic_bit_test_and_set@var{mode},
17258 atomic_bit_test_and_complement@var{mode},
17259 atomic_bit_test_and_reset@var{mode}): Document.
17260 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
17261 atomic_bit_test_and_complement<mode>,
17262 atomic_bit_test_and_reset<mode>): New expanders.
17263 (atomic_bit_test_and_set<mode>_1,
17264 atomic_bit_test_and_complement<mode>_1,
17265 atomic_bit_test_and_reset<mode>_1): New insns.
17266
17267 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
17268
17269 PR rtl-optimization/70687
17270 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
17271 instead of unsigned HOST_WIDE_INT.
17272
17273 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
17274
17275 PR rtl-optimization/44281
17276 * hard-reg-set.h (struct target_hard_regs): New field
17277 x_fixed_nonglobal_reg_set.
17278 (fixed_nonglobal_reg_set): New macro.
17279 * reginfo.c (init_reg_sets_1): Initialize it.
17280 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
17281 of fixed_reg_set.
17282 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
17283
17284 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17285
17286 PR tree-optimization/56541
17287 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
17288 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
17289 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
17290 (any_complicated_phi): new static variable.
17291 (aggressive_if_conv): delete.
17292 (if_convertible_phi_p): support phis with more than two arguments.
17293 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
17294 critical pred edges.
17295 (ifcvt_split_critical_edges): support phis with more than two
17296 arguments by checking new parameter. only split critical edges
17297 if needed.
17298 (tree_if_conversion): handle simd pragma marked loop using new
17299 local variable aggressive_if_conv. check any_complicated_phi.
17300
17301 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17302
17303 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
17304 before using it.
17305
17306 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17307
17308 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
17309 cbase.
17310
17311 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17312
17313 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
17314 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
17315 define_insn_and_split.
17316 (mulsi3_i): New define_insn_and_split.
17317 (mulsi3_call): Convert to define_insn.
17318 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
17319 Remove constraints.
17320
17321 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17322
17323 * machmode.h (mode_complex): Add support to give the complex mode
17324 for a given mode.
17325 (GET_MODE_COMPLEX_MODE): Likewise.
17326 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
17327 stored by build_complex_type and gfc_build_complex_type instead of
17328 trying to figure out the appropriate mode based on the size. Raise
17329 an assertion error, if the type was not set.
17330 * genmodes.c (struct mode_data): Add field for the complex type of
17331 the given type.
17332 (blank_mode): Likewise.
17333 (make_complex_modes): Remember the complex mode created in the
17334 base type.
17335 (emit_mode_complex): Write out the mode_complex array to map a
17336 type mode to the complex version.
17337 (emit_insn_modes_c): Likewise.
17338 * tree.c (build_complex_type): Set the complex type to use before
17339 calling layout_type.
17340 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
17341 support for __float128 complex datatypes.
17342 (rs6000_hard_regno_mode_ok): Likewise.
17343 (rs6000_setup_reg_addr_masks): Likewise.
17344 (rs6000_complex_function_value): Likewise.
17345 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
17346 __float128 and __ibm128 complex.
17347 (FLOAT128_IBM_P): Likewise.
17348 (ALTIVEC_ARG_MAX_RETURN): Likewise.
17349 * doc/extend.texi (Additional Floating Types): Document that
17350 -mfloat128 must be used to enable __float128. Document complex
17351 __float128 and __ibm128 support.
17352
17353 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17354
17355 PR target/49244
17356 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
17357 char/short arguments promoted to int because of promote_prototypes.
17358
17359 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17360
17361 * config/i386/predicates.md (register_ssemem_operand): New predicate.
17362 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
17363 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
17364 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
17365 alternatives using "enabled" attribute. Use register_ssemem_operand
17366 as operand 1 predicate.
17367 (*cmpi<unord>xf_i387): Split XFmode pattern from
17368 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
17369 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
17370 *absneg<mode>2_i387. Disable unsupported alternatives using
17371 "enabled" attribute.
17372 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
17373
17374 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17375
17376 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
17377 marker.
17378 (oacc_loop_process): Check mask for loop termination.
17379
17380 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17381
17382 * cif-code.def (CIF_THUNK): Add.
17383 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
17384 accidental change.
17385
17386 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17387
17388 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
17389 (dump_inline_summary): Dump it.
17390 (fp_expression_p): New predicate.
17391 (estimate_function_body_sizes): Use it.
17392 (inline_merge_summary): Merge fp_expressions.
17393 (inline_read_section): Read fp_expressions.
17394 (inline_write_summary): Write fp_expressions.
17395 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
17396 codegen boundary if either caller or callee is !fp_expressions.
17397 * ipa-inline.h (inline_summary): Add fp_expressions.
17398 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
17399 to fp_expressions be sure the fp generation flags are updated.
17400
17401 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17402
17403 PR rtl-optimization/70467
17404 * cse.c (cse_insn): Handle no-op MEM moves after folding.
17405
17406 PR rtl-optimization/70467
17407 * ipa-pure-const.c (check_call): Handle internal calls even in
17408 ipa mode like in local mode.
17409
17410 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17411
17412 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
17413
17414 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17415
17416 * match.pd (X u< X, X u> X): New transformations.
17417
17418 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17419
17420 * flag-types.h (enum warn_strict_overflow_code): Move ...
17421 * coretypes.h: ... here.
17422 * fold-const.h (fold_overflow_warning): Declare.
17423 * fold-const.c (fold_overflow_warning): Make non-static.
17424 (fold_comparison): Move the transformation of X +- C1 CMP C2
17425 into X CMP C2 -+ C1 ...
17426 * match.pd: ... here.
17427 * gimple-fold.c (fold_stmt_1): Protect with
17428 fold_defer_overflow_warnings.
17429
17430 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17431
17432 * omp-low.c (struct oacc_loop): Add 'inner' field.
17433 (new_oacc_loop_raw): Initialize it to zero.
17434 (oacc_loop_fixed_partitions): Initialize it.
17435 (oacc_loop_auto_partitions): Partition outermost loop to outermost
17436 available partitioning.
17437
17438 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17439
17440 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
17441 register_operand.
17442 (umulsidi3): Likewise.
17443 (indirect_jump): Fix jump instruction assembly patterns.
17444
17445 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
17446
17447 PR target/70860
17448 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
17449 (nvptx_function_value): Assert non-NULL cfun.
17450
17451 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
17452
17453 PR rtl-optimization/70886
17454 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
17455
17456 * cselib.h (rtx_equal_for_cselib_1): Declare.
17457 (rtx_equal_for_cselib_p: New inline function.
17458 * cselib.c (rtx_equal_for_cselib_p): Delete.
17459 (rtx_equal_for_cselib_1): Make public.
17460
17461 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17462
17463 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
17464 (register_mixssei387nonimm_operand): Remove predicate.
17465 * config/i386/i386.md (*fop_<mode>_comm): Merge from
17466 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
17467 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
17468 for TARGET_MIX_SSE_I387 alternatives.
17469 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
17470 Disable unsupported alternatives using "enabled" attribute. Use
17471 nonimm_ssenomem_operand as operand 1 predicate. Also check
17472 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
17473
17474 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17475
17476 * tree.c (cst_and_fits_in_hwi): Simplify.
17477
17478 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17479
17480 * tree.h (wi::to_wide): New function.
17481 * expr.c (expand_expr_real_1): Use wi::to_wide.
17482 * fold-const.c (int_const_binop_1): Likewise.
17483 (extract_muldiv_1): Likewise.
17484
17485 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17486
17487 * wide-int.h: Update offset_int and widest_int documentation.
17488 (WI_SIGNED_SHIFT_RESULT): New macro.
17489 (wi::binary_shift): Define signed_shift_result_type for
17490 shifts on offset_int- and widest_int-like types.
17491 (generic_wide_int): Support <<= and >>= if << and >> are supported.
17492 * tree.h (int_bit_position): Use shift operators instead of wi::
17493 shifts.
17494 * alias.c (adjust_offset_for_component_ref): Likewise.
17495 * expr.c (get_inner_reference): Likewise.
17496 * fold-const.c (fold_comparison): Likewise.
17497 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
17498 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
17499 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17500 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17501 (stmt_kills_ref_p): Likewise.
17502 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
17503 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
17504 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17505 (ao_ref_init_from_vn_reference): Likewise.
17506
17507 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17508
17509 * wide-int.h: Update offset_int and widest_int documentation.
17510 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
17511 (wi::binary_traits): Allow ordered comparisons between offset_int and
17512 offset_int, between widest_int and widest_int, and between either
17513 of these types and basic C types.
17514 (operator <, <=, >, >=): Define for the same combinations.
17515 * tree.h (tree_int_cst_lt): Use comparison operators instead
17516 of wi:: comparisons.
17517 (tree_int_cst_le): Likewise.
17518 * gimple-fold.c (fold_array_ctor_reference): Likewise.
17519 (fold_nonarray_ctor_reference): Likewise.
17520 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
17521 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
17522 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
17523 * tree-sra.c (completely_scalarize): Likewise.
17524 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
17525 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
17526 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
17527 (check_for_binary_op_overflow): Likewise.
17528 (search_for_addr_array): Likewise.
17529 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
17530
17531 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17532
17533 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
17534 (arc_save_restore): Likewise.
17535 (arc_dwarf_register_span): Likewise.
17536 (arc_output_pic_addr_const): Initialize suffix variable.
17537
17538 2016-05-02 Martin Liska <mliska@suse.cz>
17539
17540 * symbol-summary.h (function_summary::function_summary):
17541 Remove checking assert for all cgraph nodes.
17542 (function_summary::get): Check summary_uid.
17543 (symtab_insertion): Check summary_uid.
17544
17545 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17546
17547 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
17548 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
17549 bmaskn instruction.
17550 (arc_dwarf_register_span): Remove enum keyword.
17551 (compact_memory_operand_p): New function.
17552 * config/arc/arc.h (reg_class): Add code density register classes.
17553 (REG_CLASS_NAMES): Likewise.
17554 (REG_CLASS_CONTENTS): Likewise.
17555 * config/arc/arc.md (*movqi_insn): Add code density instructions.
17556 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
17557 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
17558 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
17559 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
17560 constraints.
17561 (h, Rcd, Rsd, Rzd): New register constraints.
17562 (T): Use compact_memory_operand_p function.
17563 * config/arc/predicates.md (compact_load_memory_operand): Remove.
17564
17565 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17566
17567 * config/sh/sh.md (*negnegt, *movtt): Remove.
17568
17569 2016-05-02 Marek Polacek <polacek@redhat.com>
17570 Tom de Vries <tom@codesourcery.com>
17571
17572 PR tree-optimization/70700
17573 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
17574 bigger than FIRST_REF_NODE.
17575
17576 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17577
17578 PR target/52898
17579 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
17580 TARGET_CMPEQDI_T.
17581 (prepare_cbranch_operands): Don't use scratch register. Assume that
17582 function is used when pseudos can be created.
17583 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
17584 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
17585 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
17586 define_expand. Allow it only when pseudos can be created.
17587 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
17588
17589 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
17590
17591 * config/i386/constraints.md (BC): Only allow -1 operands.
17592 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17593 Add "enabled" attribute. Update XI mode attribute calculation.
17594 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17595 (*movoi_internal_avx): Update XI mode attribute calculation.
17596 (*movti_internal): Ditto.
17597
17598 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17599
17600 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17601 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17602
17603 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
17604
17605 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17606 statement on instruction code. Remove trailing spaces.
17607 (altivec_expand_stv_builtin): Likewise.
17608
17609 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17610
17611 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17612 (TARGET_FPU_DOUBLE): Simplify.
17613 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17614 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17615 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17616 with 'TARGET_FPU_DOUBLE'.
17617 * config/sh/sh.md: Likewise.
17618
17619 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
17620
17621 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17622 SH_DIV_STR_FOR_SIZE): Remove.
17623 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17624 SH_DIV_STR_FOR_SIZE): Remove.
17625
17626 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17627
17628 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17629 logical_reg_operand): Delete.
17630 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17631 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17632 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17633 match_operand and match_test.
17634 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
17635 variables on their first use. Return bool values.
17636 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17637 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17638 arith_reg_operand for input operand. Remove empty constraints.
17639 (xorsi3): Delete.
17640 (*xorsi3_compact): Rename to xorsi3.
17641 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17642 (*zero_extend<mode>si2_disp_mem): Update comment.
17643 (mov_nop): Delete.
17644
17645 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17646
17647 * config/sh/t-sh: Remove SH5 support.
17648 * config.gcc: Likewise.
17649 * configure: Likewise.
17650
17651 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17652
17653 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17654
17655 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17656
17657 * config/sh/sh.c (register_sh_passes, sh_option_override,
17658 sh_print_operand, prepare_move_operands,
17659 sh_can_follow_jump): Remove TARGET_SH1 checks.
17660 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17661 PROMOTE_MODE): Likewise.
17662 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17663 movdi): Likewise.
17664
17665 2016-04-30 Alan Modra <amodra@gmail.com>
17666
17667 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17668 restoring when fixed_reg_p, but allow out-of-line or stmw save.
17669 Check for user regs later to avoid unnecessary looping over regs.
17670 Merge user reg check with non-saved reg check. Don't force
17671 inline VR restore when static chain used.
17672 (rs6000_frame_related): Omit eh_frame info for user regs when
17673 saving.
17674 (fixed_regs_p): Delete.
17675
17676 2016-04-30 Alan Modra <amodra@gmail.com>
17677
17678 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17679 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
17680 Update all uses.
17681
17682 2016-04-30 Alan Modra <amodra@gmail.com>
17683
17684 PR target/69645
17685 * config/rs6000/rs6000.c (fixed_reg_p): New function.
17686 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
17687 Update all uses.
17688
17689 2016-04-30 Alan Modra <amodra@gmail.com>
17690
17691 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17692 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
17693 flag_pic test for Darwin.
17694
17695 2016-04-30 Alan Modra <amodra@gmail.com>
17696
17697 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17698 throw_calls_crossed.
17699 (REG_FREQ_CALLS_CROSSED): Delete.
17700 (REG_N_THROWING_CALLS_CROSSED): Delete.
17701 * regstat.c (regstat_bb_compute_ri): Don't calculate
17702 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17703 (dump_reg_info): Don't print call cross frequency.
17704 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17705 and REG_N_THROWING_CALLS_CROSSED.
17706
17707 2016-04-30 Alan Modra <amodra@gmail.com>
17708
17709 * regs.h (struct reg_info_t): Delete live_length.
17710 (REG_LIVE_LENGTH): Delete macro.
17711 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17712 local_live, local_processed and local_live_last_luid params.
17713 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
17714 Formatting fixes.
17715 (regstat_compute_ri): Adjust for above. Don't set
17716 REG_LIVE_LENGTH.
17717 (dump_reg_info): Don't print live length.
17718 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17719 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
17720 Localize loop_depth var.
17721
17722 2016-04-30 Alan Modra <amodra@gmail.com>
17723
17724 * ira.c (enum valid_equiv): New.
17725 (validate_equiv_mem): Return enum.
17726 (update_equiv_mem): Create replacement in more cases.
17727 (add_store_equivs): Update validate_equiv_mem call.
17728
17729 2016-04-30 Alan Modra <amodra@gmail.com>
17730
17731 * ira.c (combine_and_move_insns): Rather than scanning insns,
17732 use DF infrastucture to find use and def insns.
17733
17734 2016-04-30 Alan Modra <amodra@gmail.com>
17735
17736 ira.c (combine_and_move_insns): Move invariant conditions..
17737 (ira.c): ..to here. Call combine_and_move_insns before
17738 add_store_equivs. Call grow_reg_equivs later. Allocate
17739 req_equiv later using max_reg_num() rather than global max_regno.
17740 (contains_replace_regs): Delete.
17741 (add_store_equivs): Remove contains_replace_regs test.
17742
17743 2016-04-30 Alan Modra <amodra@gmail.com>
17744
17745 * ira.c (struct equiv_mem_data): New.
17746 (equiv_mem, equiv_mem_modified): Delete static vars.
17747 (validate_equiv_mem_from_store): Use "data" param to communicate..
17748 (validate_equiv_mem): ..from here.
17749
17750 2016-04-30 Alan Modra <amodra@gmail.com>
17751
17752 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17753 split out from..
17754 (update_reg_equivs): ..here. Move allocation and freeing of
17755 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17756 end_alias_analysis to..
17757 (ira): ..here.
17758
17759 2016-04-30 Alan Modra <amodra@gmail.com>
17760
17761 * ira.c (pdx_subregs): Delete.
17762 (struct equivalence): Add pdx_subregs field.
17763 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17764 pdx_subregs access.
17765 (update_equiv_regs): Don't create or free pdx_subregs. Update
17766 pdx_subregs access.
17767
17768 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17769
17770 * config/rs6000/altivec.h: Change definitions of vec_xl and
17771 vec_xst.
17772 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17773 (LD_ELEMREV_V2DI): New.
17774 (LD_ELEMREV_V4SF): New.
17775 (LD_ELEMREV_V4SI): New.
17776 (LD_ELEMREV_V8HI): New.
17777 (LD_ELEMREV_V16QI): New.
17778 (ST_ELEMREV_V2DF): New.
17779 (ST_ELEMREV_V2DI): New.
17780 (ST_ELEMREV_V4SF): New.
17781 (ST_ELEMREV_V4SI): New.
17782 (ST_ELEMREV_V8HI): New.
17783 (ST_ELEMREV_V16QI): New.
17784 (XL): New.
17785 (XST): New.
17786 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17787 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17788 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17789 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17790 (altivec_expand_builtin): Add handling for
17791 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17792 (rs6000_invalid_builtin): Add error-checking for
17793 RS6000_BTM_P9_VECTOR.
17794 (altivec_init_builtins): Define builtins used to implement vec_xl
17795 and vec_xst.
17796 (rs6000_builtin_mask_names): Define power9-vector.
17797 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17798 (RS6000_BTM_P9_VECTOR): Define.
17799 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17800 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17801 (vsx_ld_elemrev_v2df): Likewise.
17802 (vsx_ld_elemrev_v4sf): Likewise.
17803 (vsx_ld_elemrev_v4si): Likewise.
17804 (vsx_ld_elemrev_v8hi): Likewise.
17805 (vsx_ld_elemrev_v16qi): Likewise.
17806 (vsx_st_elemrev_v2df): Likewise.
17807 (vsx_st_elemrev_v2di): Likewise.
17808 (vsx_st_elemrev_v4sf): Likewise.
17809 (vsx_st_elemrev_v4si): Likewise.
17810 (vsx_st_elemrev_v8hi): Likewise.
17811 (vsx_st_elemrev_v16qi): Likewise.
17812 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17813 grammar.
17814
17815 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17816
17817 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17818 out into ...
17819 (simplify_control_stmt_condition_1): ... here. Recurse into
17820 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17821
17822 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17823
17824 PR target/69810
17825 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17826 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17827 define_insn_and_split to define_insn.
17828 (zero_extendqi<mode>2_dot2): Same.
17829 (extendqi<mode>2_dot): Same.
17830 (extendqi<mode>2_dot2): Same.
17831
17832 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17833
17834 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17835 (probe_stack): New expander.
17836 (probe_stack_<mode>): New insn pattern.
17837
17838 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17839
17840 * config/i386/i386.md
17841 (operations with memory inputs setting flags peephole2):
17842 Remove uneeded REG_P checks. Cleanup pattern generation.
17843
17844 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17845
17846 * tree-vect-loop.c (vect_transform_loop): Fix
17847 nb_iterations_upper_bound computation for vectorized loop.
17848
17849 2016-04-29 Marek Polacek <polacek@redhat.com>
17850 Jakub Jelinek <jakub@redhat.com>
17851
17852 PR sanitizer/70342
17853 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17854 TARGET_EXPR_SLOT as a base.
17855
17856 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17857
17858 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17859 with 'rCm2' constraints to limit possible immediate size.
17860 (*load_zeroextendqisi_update): Likewise.
17861 (*load_signextendqisi_update): Likewise.
17862 (*loadhi_update): Likewise.
17863 (*load_zeroextendhisi_update): Likewise.
17864 (*load_signextendhisi_update): Likewise.
17865 (*loadsi_update): Likewise.
17866 (*loadsf_update): Likewise.
17867
17868 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17869
17870 * config/i386/predicates.md (constm1_operand): Fix comparison.
17871
17872 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17873
17874 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17875
17876 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17877
17878 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17879 remaining SH5 related settings.
17880 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17881 shmedia_prepare_call_address): Delete.
17882 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17883 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17884 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17885 UNSUPPORTED_SH2A): Remove m5 checks.
17886 (sh_divide_strategy_e): Remove SH5 division strategies.
17887 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17888 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17889
17890 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17891
17892 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17893
17894 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17895
17896 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17897 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17898 Change lder to ldr.
17899 * config/s390/vector.md ("mov<mode>"): Likewise.
17900
17901 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17902
17903 * config/s390/constraints.md ("U", "W"): Invoke
17904 s390_mem_constraint with "ZR" and "ZT".
17905 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17906 addresses when using LRA. Accept also short displacements for S
17907 and T constraints. Do not check for long displacement target for
17908 S and T constraints.
17909 (s390_mem_constraint): Remove handling of U and W constraints.
17910 * config/s390/s390.md (various patterns): Remove the short
17911 displacement constraints (Q and R) if a long displacement
17912 constraint is present. Add longdisp as required CPU capability.
17913 * config/s390/vector.md: Likewise.
17914 * config/s390/vx-builtins.md: Likewise.
17915
17916 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17917
17918 PR target/60040
17919 * reload1.c (reload): Call finish_spills before
17920 restarting reload loop. Skip select_reload_regs
17921 if update_eliminables_and_spill returns true.
17922
17923 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17924
17925 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17926 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17927 (umulhisi3_imm): Update predicates and constraint letters.
17928 (umulhisi3_reg): Declare instruction as commutative.
17929 * config/arc/constraints.md (J12, J16): New constraints.
17930 * config/arc/predicates.md (short_unsigned_const_operand): New
17931 predicate.
17932 (arc_short_operand): Likewise.
17933 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17934
17935 2016-04-29 Richard Biener <rguenther@suse.de>
17936
17937 PR tree-optimization/13962
17938 PR tree-optimization/65686
17939 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17940 * tree-ssa-alias.c (ptrs_compare_unequal): New function
17941 using PTA to compare pointers.
17942 * match.pd: Add pattern for pointer equality compare simplification
17943 using ptrs_compare_unequal.
17944
17945 2016-04-29 Richard Biener <rguenther@suse.de>
17946
17947 * stor-layout.c (layout_type): Do not build a pointer-to-element
17948 type for arrays.
17949
17950 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17951
17952 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17953 Use SWI mode iterator. Use general_reg_operand predicate.
17954 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17955 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
17956 predicates.
17957
17958 2016-04-29 Jakub Jelinek <jakub@redhat.com>
17959
17960 PR middle-end/70843
17961 * fold-const.c (operand_equal_p): Don't verify hash value equality
17962 if arg0 == arg1.
17963 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
17964 and OMP_CLAUSE.
17965
17966 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17967
17968 PR target/70858
17969 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17970 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17971 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17972 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17973 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17974
17975 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17976
17977 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17978 to info. Don't initialize separate fields to 0. Clean up
17979 formatting a bit.
17980
17981 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17982
17983 * config/i386/i386.md (peephole2s for operations with memory inputs):
17984 Use SWI mode iterator.
17985 (peephole2s for operations with memory outputs): Ditto.
17986 Do not check for stack checking probe.
17987
17988 (probe_stack): Remove expander.
17989
17990 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17991 Andrew Burgess <andrew.burgess@embecosm.com>
17992
17993 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
17994 operands as 32-bits.
17995
17996 2016-04-28 Jason Merrill <jason@redhat.com>
17997
17998 * gdbinit.in: Skip line-map.h.
17999
18000 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18001 Andrew Burgess <andrew.burgess@embecosm.com>
18002
18003 * config/arc/arc.c (arc_conditional_register_usage): Take
18004 TARGET_RRQ_CLASS into account.
18005 (arc_print_operand): Support printing 'p' and 's' operands.
18006 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
18007 as 0.
18008 (TARGET_RRQ_CLASS): Define.
18009 (IS_POWEROF2_OR_0_P): Define.
18010 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
18011 alternatives.
18012 (*tst_movb): New define_insn.
18013 (*tst): Avoid recognition if it could prevent '*tst_movb'
18014 combination; replace c/CnL with c/Chs alternative.
18015 (*tst_bitfield_tst): New define_insn.
18016 (*tst_bitfield_asr): New define_insn.
18017 (*tst_bitfield): New define_insn.
18018 (andsi3_i): Add Rrq variant.
18019 (extzv): New define_expand.
18020 (insv): New define_expand.
18021 (*insv_i): New define_insn.
18022 (*movb): New define_insn.
18023 (*movb_signed): New define_insn.
18024 (*movb_high): New define_insn.
18025 (*movb_high_signed): New define_insn.
18026 (*movb_high_signed + 1): New define_split pattern.
18027 (*mrgb): New define_insn.
18028 (*mrgb + 1): New define_peephole2 pattern.
18029 (*mrgb + 2): New define_peephole2 pattern.
18030 * config/arc/arc.opt (mbitops): New option for nps400, uses
18031 TARGET_NPS_BITOPS_DEFAULT.
18032 * config/arc/constraints.md (q): Make register class conditional.
18033 (Rrq): New register constraint.
18034 (Chs): New constraint.
18035 (Clo): New constraint.
18036 (Chi): New constraint.
18037 (Cbf): New constraint.
18038 (Cbn): New constraint.
18039 (C18): New constraint.
18040 (Cbi): New constraint.
18041
18042 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18043
18044 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
18045 dst->popcount.
18046 (bitmap_intersection_of_preds): Ditto.
18047 (bitmap_union_of_succs): Ditto.
18048 (bitmap_union_of_preds): Ditto.
18049 * sbitmap.c (do_popcount): Delete.
18050 (BITMAP_DEBUGGING): Delete.
18051 (sbitmap_verify_popcount): Delete.
18052 (sbitmap_alloc): Don't initialize the popcount field.
18053 (sbitmap_alloc_with_popcount): Delete.
18054 (sbitmap_resize): Don't resize the popcount array.
18055 (sbitmap_vector_alloc): Don't initialize the popcount field.
18056 (bitmap_copy): Don't copy the popcount array.
18057 (bitmap_clear): Don't clear the popcount array.
18058 (bitmap_clear): Delete the popcount array handling.
18059 (bitmap_ior_and_compl): Delete the popcount assert.
18060 (bitmap_not): Ditto.
18061 (bitmap_and_compl): Ditto.
18062 (bitmap_and): Delete the popcount array handling.
18063 (bitmap_xor): Ditto.
18064 (bitmap_ior): Ditto.
18065 (bitmap_or_and): Delete the popcount assert.
18066 (bitmap_and_or): Ditto.
18067 (popcount_table): Delete.
18068 (sbitmap_elt_popcount): Delete.
18069 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
18070 (bitmap_set_bit): Delete the popcount assert.
18071 (bitmap_clear_bit): Ditto.
18072 (sbitmap_free): Don't free the popcount array.
18073 (sbitmap_alloc_with_popcount): Delete declaration.
18074 (sbitmap_popcount): Ditto.
18075
18076 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18077 Andrew Burgess <andrew.burgess@embecosm.com>
18078
18079 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
18080 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
18081 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
18082 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
18083 * config/arc/arc.opt (mcmem): New option.
18084 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
18085 supply length for r/m alternative.
18086 (*extendqisi2_ac): Likewise.
18087 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
18088 r/Uex alternative.
18089 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
18090 (movhi_insn): Likewise.
18091 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
18092 (*zero_extendqihi2_i): Add r/Ucm alternative.
18093 (*zero_extendqisi2_ac): Likewise.
18094 (*zero_extendhisi2_i): Likewise.
18095 * config/arc/constraints.md (Uex): New memory constraint.
18096 (Ucm): New define_constraint.
18097 * config/arc/predicates.md (long_immediate_loadstore_operand):
18098 Return 0 for MEM with cmem_address address.
18099 (cmem_address_0): New predicates.
18100 (cmem_address_1): Likewise.
18101 (cmem_address_2): Likewise.
18102 (cmem_address): Likewise.
18103
18104 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18105
18106 * config/rs6000/rs6000.c (machine_function): Rename
18107 insn_chain_scanned_p to spe_insn_chain_scanned_p.
18108 (rs6000_stack_info): Adjust.
18109
18110 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18111 Andrew Burgess <andrew.burgess@embecosm.com>
18112
18113 * config/arc/constraints.md (Usd): Convert to define_constraint.
18114 (Us<): Likewise.
18115 (Us>): Likewise.
18116
18117 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18118
18119 PR target/70821
18120 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
18121 Add new peephole2 where the first insn is *mov<mode>_or instead of
18122 *mov<mode>_internal.
18123
18124 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
18125
18126 * tracer.c (bb_seen): Make static.
18127
18128 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
18129
18130 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
18131 support, setup defaults.
18132 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
18133 * config/arc/arc.c (arc_init): Add NPS400 support.
18134 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
18135 (TARGET_ARC700): NPS400 is also an ARC700.
18136 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
18137
18138 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18139
18140 PR target/70668
18141 * config/nds32/nds32.md (casesi): Don't access the operands array
18142 out of bounds.
18143
18144 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18145
18146 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
18147 (or $-1,reg peephole2): Ditto.
18148 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
18149
18150 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18151
18152 * doc/extend.texi (Common Function Attributes) [optimize]:
18153 Discourage use of the optimize attribute.
18154
18155 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
18156
18157 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
18158 special case builtin.
18159 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18160 ALTIVEC_BUILTIN_VEC_ADDE.
18161 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18162 support for ALTIVEC_BUILTIN_VEC_ADDE.
18163 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18164 for __builtin_vec_adde.
18165
18166 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18167
18168 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
18169 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
18170
18171 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18172
18173 PR testsuite/70595
18174 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18175 attributes): Document cilkplus_runtime.
18176
18177 2016-04-28 Martin Jambor <mjambor@suse.cz>
18178
18179 * tree-cfg.c (verify_expr): Verify that local declarations belong to
18180 this function. Call verify_expr on MEM_REFs and bases of other
18181 handled_components.
18182
18183 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18184
18185 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
18186 for WORD_REGISTER_OPERATIONS to runtime check.
18187
18188 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18189
18190 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
18191
18192 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18193
18194 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
18195 big-endian compilation.
18196 * config/arc/arc.md (addf3): Likewise.
18197 (subdf3): Likewise.
18198 (muldf3): Likewise.
18199
18200 2016-04-28 Richard Biener <rguenther@suse.de>
18201
18202 PR tree-optimization/70840
18203 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
18204 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
18205 Mark x * pow(x,c) -> pow(x,c+1) commutative.
18206 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
18207
18208 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18209
18210 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
18211 and explain why in a comment.
18212
18213 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18214
18215 * config/arc/arc.md (cpu_facility): Add fpx variant.
18216 (subdf3): Prohibit use reverse sub when assist operations option
18217 is enabled.
18218 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
18219 instructions only when FPX is enabled.
18220 * testsuite/gcc.target/arc/trsub.c: New test.
18221
18222 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18223
18224 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18225 mult_operator when calculating "type" attribute.
18226 (*fop_<mode>_1_i387): Ditto.
18227 (*fop_xf_1_i387): Ditto.
18228 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
18229 Use std::swap to swap operands. Use RTL expressions to generate
18230 converted pattern.
18231
18232 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18233 Joern Rennecke <joern.rennecke@embecosm.com>
18234
18235 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
18236 declaration.
18237 (emit_pic_move): Remove.
18238 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
18239 * config/arc/arc.c (emit_pic_move): Removed.
18240 (TARGET_HAVE_TLS): Define.
18241 (arc_conditional_register_usage): Test for arc_tp_regno.
18242 (arc_print_operand, arc_print_operand_address): Handle TLS
18243 unspecs.
18244 (arc_needs_pcl_p): New function.
18245 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
18246 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
18247 (arc_raw_symbolic_reference_mentioned_p): Likewise.
18248 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
18249 (arc_legitimize_tls_address): Likewise.
18250 (DTPOFF_ZERO_SYM): Define.
18251 (arc_legitimize_pic_address): Make it static, handle TLS cases.
18252 (arc_output_pic_addr_const): Print TLS unspecs.
18253 (prepare_pic_move): New function, replaces emit_pic_move.
18254 (arc_legitimate_constant_p): Handle TLS unspecs.
18255 (arc_legitimate_address_p): Likewise.
18256 (arc_rewrite_small_data_p): Use assert for TLS constants.
18257 (prepare_move_operands): Use prepare_pic_move.
18258 (arc_legitimize_address): Legitimize tls addresses.
18259 (arc_epilogue_uses): Check for arc_tp_regno.
18260 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
18261 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
18262 Define.
18263 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
18264 Likewise.
18265 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
18266 %(arc_tls_extra_start_spec).
18267 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
18268 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
18269 (EH_USES): Define.
18270 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
18271 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
18272 (UNSPEC_TLS_OFF): Add.
18273 (R10_REG): Define.
18274 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
18275 (get_thread_pointersi): New patterns.
18276 * config/arc/arc.opt (mtp-regno): New option.
18277 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
18278 (move_dest_operand): Likewise.
18279 * configure: Regenerate.
18280 * configure.ac: Add arc*-*-* case to test for tls.
18281 * doc/invoke.texi (ARC options): Document mtp-regno.
18282
18283 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18284
18285 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
18286 the new ARC HS SIMD instructions.
18287 (arc_preferred_simd_mode): New function.
18288 (arc_autovectorize_vector_sizes): Likewise.
18289 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
18290 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18291 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
18292 (arc_init_builtins): Add new SIMD builtin types.
18293 (arc_split_move): Handle 64 bit vector moves.
18294 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
18295 (TARGET_PLUS_QMACW): Define.
18296 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
18297 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
18298 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
18299 (VSUBADD4H): New builtins.
18300 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
18301 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
18302
18303 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
18304 Matthias Klose <doko@debian.org>
18305
18306 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
18307
18308 2016-04-28 Richard Biener <rguenther@suse.de>
18309
18310 PR middle-end/70777
18311 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
18312 canonicalization.
18313
18314 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
18315
18316 * common/config/sh/sh-common.c: Remove SH5 support.
18317 * config/sh/constraints.md: Likewise.
18318 * config/sh/config/sh/elf.h: Likewise.
18319 * config/sh/linux.h: Likewise.
18320 * config/sh/netbsd-elf.h: Likewise.
18321 * config/sh/predicates.md: Likewise.
18322 * config/sh/sh-c.c: Likewise.
18323 * config/sh/sh-protos.h: Likewise.
18324 * config/sh/sh.c: Likewise.
18325 * config/sh/sh.h: Likewise.
18326 * config/sh/sh.md: Likewise.
18327 * config/sh/sh.opt: Likewise.
18328 * config/sh/sync.md: Likewise.
18329 * config/sh/sh64.h: Delete.
18330 * config/sh/shmedia.h: Likewise.
18331 * config/sh/shmedia.md: Likewise.
18332 * config/sh/sshmedia.h: Likewise.
18333 * config/sh/t-netbsd-sh5-64: Likewise.
18334 * config/sh/t-sh64: Likewise.
18335 * config/sh/ushmedia.h: Likewise.
18336
18337 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18338
18339 * config/i386/i386.md (sign_extend to memory peephole2s): Use
18340 general_reg_operand instead of register_operand predicate.
18341
18342 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18343
18344 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
18345
18346 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
18347
18348 * match.pd (A - B > A, A + B < A): New transformations.
18349
18350 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
18351
18352 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
18353 which defaults to true. Emit an outer pair of parentheses only if
18354 EMIT_PARENS. When continuing a chain of && or || (or & or |),
18355 don't emit parentheses for the right-hand operand.
18356
18357 2016-04-27 Jeff Law <law@redhat.com>
18358
18359 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
18360
18361 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18362
18363 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
18364 (altivec_lvx_<mode>_internal): Document.
18365 (altivec_lvx_<mode>_2op): New define_insn.
18366 (altivec_lvx_<mode>_1op): Likewise.
18367 (altivec_lvx_<mode>_2op_si): Likewise.
18368 (altivec_lvx_<mode>_1op_si): Likewise.
18369 (altivec_stvx_<mode>): Remove.
18370 (altivec_stvx_<mode>_internal): Document.
18371 (altivec_stvx_<mode>_2op): New define_insn.
18372 (altivec_stvx_<mode>_1op): Likewise.
18373 (altivec_stvx_<mode>_2op_si): Likewise.
18374 (altivec_stvx_<mode>_1op_si): Likewise.
18375 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18376 Expand vec_ld and vec_st during parsing.
18377 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
18378 changes.
18379 (altivec_expand_stvx_be): Likewise.
18380 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
18381 address-masking behavior in RTL.
18382 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
18383 address-masking behavior in RTL.
18384 (altivec_expand_builtin): Change builtin code arguments for calls
18385 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
18386 (insn_is_swappable_p): Avoid incorrect swap optimization in the
18387 presence of lvx/stvx patterns.
18388 (alignment_with_canonical_addr): New function.
18389 (alignment_mask): Likewise.
18390 (find_alignment_op): Likewise.
18391 (recombine_lvx_pattern): Likewise.
18392 (recombine_stvx_pattern): Likewise.
18393 (recombine_lvx_stvx_patterns): Likewise.
18394 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
18395 stvx patterns from expand.
18396 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
18397 expansions.
18398 (vector_altivec_store_<mode>): Likewise.
18399
18400 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
18401
18402 * config/aarch64/aarch64.md
18403 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
18404 remove the "fp" attributes.
18405 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
18406 add the "simd" attributes.
18407 (*movdf_aarch64): Likewise.
18408 (*movtf_aarch64): Remove the "fp" attributes.
18409 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
18410 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
18411
18412 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18413
18414 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
18415 rtx to rtx_code_label *.
18416 * rtl.h (maybe_set_first_label_num): Likewise.
18417
18418 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18419
18420 * df-core.c (df_add_problem): Make the problem param be const.
18421 (df_remove_problem): Make local "problem" be const.
18422 * df-problems.c (problem_RD): Make const.
18423 (problem_LR): Likewise.
18424 (problem_LIVE): Likewise.
18425 (problem_MIR): Likewise.
18426 (problem_CHAIN): Likewise.
18427 (problem_WORD_LR): Likewise.
18428 (problem_NOTE): Likewise.
18429 (problem_MD): Likewise.
18430 * df-scan.c (problem_SCAN): Likewise.
18431 * df.h (struct df_problem): Make field "dependent_problem" be
18432 const.
18433 (struct dataflow): Likewise for field "problem".
18434 (df_add_problem): Make param const.
18435
18436 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18437
18438 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
18439 inter-unit moves to/from vector registers are enabled. Do not disable
18440 for TARGET_MMX.
18441
18442 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18443
18444 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
18445 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
18446 #define to...
18447 (enum df_problem_id): ...this new enum.
18448 (struct df_problem): Convert field "id" from "int" to
18449 enum df_problem_id.
18450
18451 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18452
18453 * rtl.def: Update comment for "things in the instruction chain" to
18454 reflect the removal of the leading "i" field for INSN_UID in
18455 r210360. Fix bogus apostrophe.
18456
18457 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18458
18459 * config/i386/i386.md
18460 (lea arith with mem operand + setcc peephole2): Set operator mode.
18461
18462 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
18463
18464 PR target/70155
18465 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
18466 (dimode_scalar_to_vector_candidate_p): This.
18467 (timode_scalar_to_vector_candidate_p): New function.
18468 (scalar_to_vector_candidate_p): Likewise.
18469 (timode_check_non_convertible_regs): Likewise.
18470 (timode_remove_non_convertible_regs): Likewise.
18471 (remove_non_convertible_regs): Likewise.
18472 (remove_non_convertible_regs): Renamed to ...
18473 (dimode_remove_non_convertible_regs): This.
18474 (scalar_chain::~scalar_chain): Make it virtual.
18475 (scalar_chain::compute_convert_gain): Make it pure virtual.
18476 (scalar_chain::mark_dual_mode_def): Likewise.
18477 (scalar_chain::convert_insn): Likewise.
18478 (scalar_chain::convert_registers): Likewise.
18479 (scalar_chain::add_to_queue): Make it protected.
18480 (scalar_chain::emit_conversion_insns): Likewise.
18481 (scalar_chain::replace_with_subreg): Likewise.
18482 (scalar_chain::replace_with_subreg_in_insn): Likewise.
18483 (scalar_chain::convert_op): Likewise.
18484 (scalar_chain::convert_reg): Likewise.
18485 (scalar_chain::make_vector_copies): Likewise.
18486 (scalar_chain::convert_registers): New pure virtual function.
18487 (class dimode_scalar_chain): New class.
18488 (class timode_scalar_chain): Likewise.
18489 (scalar_chain::mark_dual_mode_def): Renamed to ...
18490 (dimode_scalar_chain::mark_dual_mode_def): This.
18491 (timode_scalar_chain::mark_dual_mode_def): New function.
18492 (timode_scalar_chain::convert_insn): Likewise.
18493 (dimode_scalar_chain::convert_registers): Likewise.
18494 (scalar_chain::compute_convert_gain): Renamed to ...
18495 (dimode_scalar_chain::compute_convert_gain): This.
18496 (scalar_chain::replace_with_subreg): Renamed to ...
18497 (dimode_scalar_chain::replace_with_subreg): This.
18498 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
18499 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
18500 (scalar_chain::make_vector_copies): Renamed to ...
18501 (dimode_scalar_chain::make_vector_copies): This.
18502 (scalar_chain::convert_reg): Renamed to ...
18503 (dimode_scalar_chain::convert_reg ): This.
18504 (scalar_chain::convert_op): Renamed to ...
18505 (dimode_scalar_chain::convert_op): This.
18506 (scalar_chain::convert_insn): Renamed to ...
18507 (dimode_scalar_chain::convert_insn): This.
18508 (scalar_chain::convert): Call convert_registers.
18509 (convert_scalars_to_vector): Change to scalar_chain pointer to
18510 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
18511 in 32-bit mode. Delete scalar_chain pointer. Call
18512 free_dominance_info in 64-bit mode.
18513 (pass_stv::gate): Remove TARGET_64BIT check.
18514 (ix86_option_override): Put the 64-bit STV pass before the CSE
18515 pass.
18516
18517 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
18518
18519 * dwarf2out.h (struct dw_loc_descr_node): Remove the
18520 dw_loc_frame_offset field.
18521 * dwarf2out.c (new_loc_descr): Likewise.
18522 (resolve_args_picking_1): Turn the VISITED hash set into a
18523 FRAME_OFFSET hash map. Use it to associate a frame offset to
18524 visited nodes. Remove uses of the CHECKING_P macro.
18525 (resolve_args_picking): Update call to resolve_args_picking_1.
18526
18527 2016-04-27 Martin Liska <mliska@suse.cz>
18528
18529 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
18530 (free_loop_data): Release vuses of groups.
18531
18532 2016-04-27 Bin Cheng <bin.cheng@arm.com>
18533
18534 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
18535 instead of redundant use_id and boolean have_use_for.
18536 (struct iv_use): Change sub_id into group_id. Remove field next.
18537 Move fields: related_cands, n_map_members, cost_map and selected
18538 to ...
18539 (struct iv_group): ... here. New structure.
18540 (struct iv_common_cand): Use structure declaration directly.
18541 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
18542 (MAX_CONSIDERED_USES): Rename macro to ...
18543 (MAX_CONSIDERED_GROUPS): ... here.
18544 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
18545 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
18546 (dump_uses): Rename to ...
18547 (dump_groups): ... here. Update all uses.
18548 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
18549 (find_induction_variables): Refactor format of dump information.
18550 (record_sub_use): Delete.
18551 (record_use): Update all uses.
18552 (record_group): New function.
18553 (record_group_use, find_interesting_uses_op): Call above functions.
18554 Update all uses.
18555 (find_interesting_uses_cond): Ditto.
18556 (group_compare_offset): New function.
18557 (split_all_small_groups): Rename to ...
18558 (split_small_address_groups_p): ... here. Update all uses.
18559 (split_address_groups): Update all uses.
18560 (find_interesting_uses): Refactor format of dump information.
18561 (add_candidate_1): Update all uses. Remove redundant check on iv,
18562 base and step.
18563 (add_candidate, record_common_cand): Remove redundant assert.
18564 (add_iv_candidate_for_biv): Update use.
18565 (add_iv_candidate_derived_from_uses): Update all uses.
18566 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
18567 (alloc_use_cost_map): Ditto.
18568 (set_use_iv_cost, get_use_iv_cost): Rename to ...
18569 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
18570 (determine_use_iv_cost_generic): Ditto.
18571 (determine_group_iv_cost_generic): Ditto.
18572 (determine_use_iv_cost_address): Ditto.
18573 (determine_group_iv_cost_address): Ditto.
18574 (determine_use_iv_cost_condition): Ditto.
18575 (determine_group_iv_cost_cond): Ditto.
18576 (determine_use_iv_cost): Ditto.
18577 (determine_group_iv_cost): Ditto.
18578 (set_autoinc_for_original_candidates): Update all uses.
18579 (find_iv_candidates): Update all uses. Refactor dump information.
18580 (determine_use_iv_costs): Ditto.
18581 (determine_iv_costs): Ditto.
18582 (iv_ca_cand_for_use): Rename to ...
18583 (iv_ca_cand_for_group): ... here. Update all uses.
18584 (iv_ca_add_use, iv_ca_add_group): Ditto.
18585 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
18586 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
18587 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
18588 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18589 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18590 (create_new_iv, adjust_iv_update_pos): Ditto.
18591 (rewrite_use_address): Delete.
18592 (rewrite_use_address_1): Rename to ...
18593 (rewrite_use_address): ... here.
18594 (rewrite_use_compare): Update all uses.
18595 (rewrite_use): Delete.
18596 (rewrite_uses): Rename to ...
18597 (rewrite_groups): ... here. Update all uses.
18598 (remove_unused_ivs, free_loop_data): Update all uses.
18599 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18600
18601 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18602
18603 * rtlanal.c (nonzero_bits1): Convert preprocessor check
18604 for WORD_REGISTER_OPERATIONS to runtime check.
18605
18606 2016-04-27 Richard Biener <rguenther@suse.de>
18607
18608 PR ipa/70760
18609 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18610 aggregate_value_p to determine if a function result is
18611 returned by reference.
18612 (ipa_pta_execute): Functions having their address taken are
18613 not automatically nonlocal.
18614
18615 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18616
18617 PR sanitizer/70683
18618 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18619 * fold-const.c (operand_equal_p): If flag_checking and
18620 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18621 and if it returns non-zero, assert iterative_hash_expr on both
18622 args is the same.
18623
18624 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18625
18626 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18627
18628 2016-04-27 Nick Clifton <nickc@redhat.com>
18629
18630 PR middle-end/49889
18631 * varasm.c (merge_weak): Generate an error if an attempt is made
18632 to convert a non-weak static function into a weak, public function.
18633
18634 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18635
18636 * params.def (MAX_PARTITION_SIZE): New param.
18637 * doc/invoke.texi: Document lto-max-partition.
18638
18639 2016-04-27 Richard Biener <rguenther@suse.de>
18640
18641 PR ipa/70785
18642 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18643 function cummulating used_from_other_partition, externally_visible
18644 and force_output from aliases.
18645 (refered_from_nonlocal_var): Likewise.
18646 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18647 node flags properly.
18648
18649 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18650
18651 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18652 (-Wmemset-elt-size): New item.
18653
18654 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
18655
18656 PR ada/70759
18657 * stor-layout.h (internal_reference_types): Delete.
18658 * stor-layout.c (reference_types_internal): Likewise.
18659 (internal_reference_types): Likewise.
18660 (layout_type) <REFERENCE_TYPE>: Adjust.
18661
18662 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18663
18664 PR sanitizer/70683
18665 * tree.h (inchash::add_expr): Add FLAGS argument.
18666 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
18667 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
18668 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18669 Formatting fix. Adjust recursive calls. For tcc_comparison,
18670 if swap_tree_comparison (code) is smaller than code, hash that
18671 and arguments in the other order. Hash CONVERT_EXPR the same
18672 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18673 of ADDR_EXPR of decl as the decl itself. Add or remove
18674 OEP_ADDRESS_OF from recursive flags as needed. For
18675 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18676 operands commutatively and only the third one normally.
18677 For internal CALL_EXPR hash in CALL_EXPR_IFN.
18678
18679 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
18680
18681 * config/rtems.h (LIB_SPEC): Add -latomic.
18682
18683 2016-04-27 Joel Sherrill <joel@rtems.org>
18684
18685 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18686 xilink.ld and flags not relevant to RTEMS.
18687
18688 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18689
18690 * toplev.c (backend_init_target): Avoid calling init_reload when using
18691 LRA.
18692
18693 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18694
18695 * reorg.c (try_merge_delay_insns): Declare i and j inside the
18696 for loops rather than one for the whole function.
18697
18698 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18699
18700 * match.pd (X + CST CMP X): New transformation.
18701
18702 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18703
18704 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18705 * fold-const.c (fold_binary_loc): Remove 2 transformations
18706 superseded by match.pd.
18707 * match.pd (x+x -> x*2): Generalize to integers.
18708
18709 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
18710
18711 * config/i386/i386.md (operation on memory peephole): Duplicate an
18712 existing peephole and adapt it to match lea rather than an operation
18713 that clobbers CC.
18714
18715 PR rtl-optimization/57193
18716 * opts.c (default_options_table): Add OPT_frename_registers at -O2
18717 and above.
18718 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18719
18720 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18721
18722 * tree-if-conv.c (any_pred_load_store): New static variable.
18723 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18724 any_pred_load_store instead of and_mask_load_store.
18725 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18726 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18727 (combine_blocks, tree_if_conversion): Ditto.
18728
18729 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18730
18731 PR tree-optimization/70771
18732 PR tree-optimization/70775
18733 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18734 virtual PHI nodes. Delete parameter.
18735 (if_convertible_loop_p_1): Delete argument to above function.
18736 (predicate_all_scalar_phis): Delete code handling single-argument
18737 PHIs.
18738 (tree_if_conversion): Mark and update virtual SSA.
18739
18740 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18741
18742 PR target/61821
18743 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18744 (x86_elf_aligned_common): Rename to ...
18745 (x86_elf_aligned_decl_common): ... this.
18746 Add decl arg. Switch to .lbss for largecomm object. Use
18747 LARGECOMM_SECTION_ASM_OP.
18748 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18749 renaming.
18750 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18751 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18752 Pass new decl arg.
18753 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18754 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18755
18756 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18757
18758 PR target/59407
18759 * config/i386/i386.c (SECTION_LARGE): Define.
18760 (x86_64_elf_select_section): Set it for large data/bss sections.
18761 Only clear SECTION_WRITE for .lrodata.
18762 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18763 data/bss sections.
18764 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18765 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18766 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18767 SECTION_MACH_DEP.
18768 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18769 * doc/tm.texi: Regenerate.
18770
18771 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18772
18773 PR bootstrap/70704
18774 * configure.ac (--enable-checking): Document extra flag, for
18775 non-release builds default to --enable-checking=yes,extra.
18776 If misc checking and extra checking, define CHECKING_P to 2 instead
18777 of 1.
18778 * common.opt (fchecking=): Add.
18779 * doc/invoke.texi (-fchecking=): Document.
18780 * doc/install.texi: Document --enable-checking changes.
18781 * configure: Regenerated.
18782 * config.in: Regenerated.
18783
18784 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18785
18786 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18787 attribute instead of which_alternative.
18788 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18789 Use EXT_REX_SSE_REG_P where appropriate.
18790
18791 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18792
18793 * config/i386/predicates.md (const0_operand): Do not match
18794 const_wide_int code.
18795 (const1_operand): Ditto.
18796
18797 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18798
18799 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18800 for SSE constm1 operands and TARGET_AVX512VL.
18801 (*movti_internal): Ditto.
18802 (*mov<mode>_or): Use constm1_operand predicate.
18803 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18804 for SSE vector_all_ones operands and TARGET_AVX512VL.
18805 * config/i386/predicates.md (constm1_operand): New predicate.
18806 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18807 emission of constant -1 load.
18808
18809 2016-04-25 Jason Merrill <jason@redhat.com>
18810
18811 * gdbinit.in: Skip is-a.h.
18812
18813 * attribs.c (register_scoped_attributes): Fix logic.
18814 * attribs.h: Declare register_scoped_attributes.
18815
18816 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18817
18818 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18819 stxvd2x and stxvw4x built-in functions.
18820
18821 2016-04-25 DJ Delorie <dj@redhat.com>
18822
18823 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18824 (ashrhi3): Likewise.
18825 (lshrhi3): Likewise.
18826
18827 2016-04-25 Richard Biener <rguenther@suse.de>
18828
18829 PR tree-optimization/70780
18830 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18831 wasn't visited yet.
18832 (compute_antic): Mark blocks with abnormal preds as visited as
18833 they have a final empty antic-in solution already.
18834
18835 2016-04-25 Michael Collison <michael.collison@linaro.org>
18836
18837 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18838
18839 2016-04-25 Michael Collison <michael.collison@linaro.org>
18840
18841 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18842 mode is VQI to improve mixed mode vectorization.
18843 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18844 define_insn to match low half of signed vaddw.
18845 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18846 define_insn to match high half of signed vaddw.
18847 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18848 define_insn to match low half of unsigned vaddw.
18849 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18850 define_insn to match high half of unsigned vaddw.
18851 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18852 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18853 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18854 for new function.
18855 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18856 * config/arm/predicates.md (vect_par_constant_high): Support
18857 big endian and simplify by calling
18858 arm_simd_check_vect_par_cnst_half
18859 (vect_par_constant_low): Likewise.
18860
18861 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18862
18863 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18864 predicate for operand 2.
18865
18866 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18867 H.J. Lu <hongjiu.lu@intel.com>
18868
18869 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18870 machine_mode argument.
18871 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18872 constm1_rtx operands. For VOIDmode constants, get mode from
18873 pred_mode. Check mode size if the mode is supported by ABI.
18874 (standard_sse_constant_opcode): Do not use standard_constant_p.
18875 Strictly check ABI support for all-ones operands.
18876 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18877 immediates. Update calls to standard_sse_constant_p.
18878 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18879 (ix86_rtx_costs): Ditto.
18880 * config/i386/i386.md (*movxi_internal_avx512f): Use
18881 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18882 Use (v,BC) alternative instead of (v,C). Use register_operand
18883 checks instead of MEM_P.
18884 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18885 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18886 isa attribute. Use register_operand checks instead of MEM_P.
18887 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18888 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18889 alternative and corresponding sse2 isa attribute.
18890 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18891 to standard_sse_constant_p.
18892 (FP constant splitters): Ditto.
18893 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18894 (C): Ditto.
18895 * config/i386/predicates.md (constm1_operand): Remove.
18896 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18897 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18898 vector_all_ones_operand instead of constm1_operand.
18899
18900 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18901
18902 * print-rtl.c (print_rtx_insn_vec): New function.
18903 * print-rtl.h: New prototype.
18904 * store-motion.c (struct st_expr): Make avail_stores a vector.
18905 (st_expr_entry): Adjust.
18906 (free_st_expr_entry): Likewise.
18907 (print_store_motion_mems): Likewise.
18908 (find_moveable_store): Likewise.
18909 (compute_store_table): Likewise.
18910 (delete_store): Likewise.
18911 (build_store_vectors): Likewise.
18912
18913 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18914
18915 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18916
18917 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18918
18919 * vec.h (vec_safe_contains): New function.
18920 (vec::contains): Likewise.
18921 (vec::begin): Likewise.
18922 (vec::end): Likewise.
18923
18924 2016-04-23 Jakub Jelinek <jakub@redhat.com>
18925
18926 PR sanitizer/70712
18927 * cfgexpand.c (expand_stack_vars): Fix typo.
18928
18929 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18930
18931 * system.h (list, map, set, vector): Include conditionally.
18932 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18933 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18934 * ipa-icf.c (INCLUDE_LIST): Define.
18935 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18936 * config/sh/sh.c (INCLUDE_VECTOR): Define.
18937 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18938 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18939 * cp/logic.cc (INCLUDE_LIST): Define.
18940 * fortran/trans-common.c (INCLUDE_MAP): Define.
18941
18942 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18943
18944 * auto-profile.c: Remove <string.h> include.
18945 * ipa-icf-gimple.c: Remove <list> include.
18946 * diagnostic.c: Remove <new> include.
18947 * genmatch.c: Likewise.
18948 * pretty-print.c: Likewise.
18949 * toplev.c: Likewise
18950 * c/c-objc-common.c: Likewise.
18951 * cp/error.c: Likewise.
18952 * fortran/error.c: Likewise.
18953
18954 2016-04-22 Richard Biener <rguenther@suse.de>
18955
18956 * lto-streamer-in.c (input_ssa_names): Do not allocate
18957 GIMPLE_NOP for all SSA names.
18958 * lto-streamer-out.c (output_ssa_names): Do not output
18959 SSA names that should have been released.
18960
18961 2016-04-22 Richard Biener <rguenther@suse.de>
18962
18963 PR tree-optimization/70740
18964 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18965 VDEF.
18966
18967 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
18968
18969 PR target/70750
18970 * config/i386/predicates.md (call_insn_operand): Replace
18971 sibcall_memory_operand with memory_operand.
18972
18973 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
18974
18975 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18976 has_single_use() tests.
18977 (register_edge_assert_for_1): Likewise.
18978 (find_assert_locations_1): Check the liveness bitmap instead of
18979 checking has_single_use().
18980
18981 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
18982
18983 PR target/70728
18984 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
18985 Extract AVX-512BW constraint from AVX.
18986
18987 2016-04-21 Richard Biener <rguenther@suse.de>
18988
18989 PR tree-optimization/70725
18990 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
18991 for phi_convertible_by_degenerating_args.
18992 (predicate_all_scalar_phis): Handle single-argument PHIs.
18993
18994 2016-04-21 Richard Biener <rguenther@suse.de>
18995
18996 PR middle-end/70747
18997 * fold-const.c (fold_comparison): Return properly typed
18998 constant boolean.
18999
19000 2016-04-21 Bin Cheng <bin.cheng@arm.com>
19001
19002 PR tree-optimization/70715
19003 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
19004 after expanding BASE using expand_simple_operations.
19005
19006 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19007
19008 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
19009 New transformations.
19010
19011 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19012
19013 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
19014
19015 2016-04-20 Jan Hubicka <jh@suse.cz>
19016
19017 * ipa-inline.c (can_inline_edge_p): Pass caller info to
19018 ultiimate_alias_target.
19019 (update_callee_keys): Likewise.
19020 (lookup_recursive_calls): Likewise.
19021 (speculation_useful_p): Likewise.
19022
19023 2016-04-20 Jan Hubicka <jh@suse.cz>
19024
19025 PR ipa/70018
19026 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
19027 (set_nothrow_flag_1): ... this; handle interposition correctly;
19028 recurse on aliases and thunks.
19029 (cgraph_node::set_nothrow_flag): New.
19030 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
19031 functions compiled with non-call exceptions that binds to current
19032 def.
19033 (propagate_nothrow): Be safe WRT interposition.
19034 * cgraph.h (set_nothrow_flag): Update prototype.
19035
19036 2016-04-18 Jan Hubicka <jh@suse.cz>
19037
19038 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19039 max_loop_iterations_int.
19040 (tree_unswitch_outer_loop): Likewise.
19041
19042 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19043
19044 PR tree-optimization/69489
19045 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
19046 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
19047 Revise dump message.
19048 (if_convertible_bb_p): Remove check on edge count of basic block's
19049 predecessors.
19050
19051 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19052
19053 PR tree-optimization/56625
19054 PR tree-optimization/69489
19055 * tree-data-ref.h (DR_INNERMOST): New macro.
19056 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
19057 hashing struct innermost_loop_behavior.
19058 (ref_DR_map): Remove.
19059 (innermost_DR_map): New map.
19060 (baseref_DR_map): Revise comment.
19061 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
19062 to innermost_DR_map accroding to its innermost loop behavior.
19063 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
19064 to its innermost loop behavior.
19065 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
19066 Add initialization for innermost_DR_map. Record memory reference
19067 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
19068 have innermost loop behavior.
19069 (if_convertible_loop_p): Remove release for ref_DR_map. Release
19070 innermost_DR_map.
19071
19072 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
19073
19074 * config/i386/i386.md (*lea<mode>_general_1): Rename from
19075 *lea_general_1. Use explicit SWI12 mode interator.
19076 (*lea<mode>_general_2): Rename from *lea_general_2.
19077 Use explicit SWI12 mode interator.
19078 (*lea<mode>_general_3): Rename from *lea_general_3.
19079 Use explicit SWI12 mode interator.
19080 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
19081 Use explicit SWI12 mode interator.
19082 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
19083 Use explicit SWI48 mode interator.
19084
19085 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19086
19087 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19088 Short-cut unaligned load and store cases. Handle all integer
19089 vector modes.
19090 (ix86_expand_vector_move_misalign): Short-cut unaligned load
19091 and store cases. Call ix86_avx256_split_vector_move_misalign
19092 directly without checking mode class.
19093
19094 2016-04-20 Andrew Pinski <apinski@cavium.com>
19095 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19096
19097 PR target/64971
19098 * config/aarch64/aarch64.md (sibcall): Force call
19099 address to be DImode for ILP32.
19100 (sibcall_value): Likewise.
19101
19102 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19103
19104 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
19105
19106 2016-04-20 Richard Biener <rguenther@suse.de>
19107
19108 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
19109 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
19110 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
19111 (maybe_push_res_to_seq): Adjust.
19112 * gimple-fold.c (maybe_build_generic_op): Likewise.
19113
19114 2016-04-20 Marek Polacek <polacek@redhat.com>
19115
19116 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
19117 rather than true.
19118
19119 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
19120
19121 * config/i386/sse.md (vec_unpacks_lo_hi): Always
19122 use kmovw to support AVX512F target.
19123
19124 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19125
19126 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
19127
19128 2016-04-20 Marek Polacek <polacek@redhat.com>
19129
19130 PR tree-optimization/70725
19131 * tree-if-conv.c (is_false_predicate): New function.
19132 (predicate_mem_writes): Use it.
19133
19134 2016-04-20 Richard Biener <rguenther@suse.de>
19135
19136 PR tree-optimization/70726
19137 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
19138 shift amounts from a pattern stmt operand.
19139
19140 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19141
19142 PR target/70674
19143 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
19144 stack_restore_from_fpr pattern when restoring r15.
19145 (s390_optimize_prologue): Strip away the memory barrier in the
19146 parallel when trying to get rid of restore insns.
19147 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
19148 definition for loading the stack pointer from an FPR. Compared to
19149 the normal move insn this pattern includes a full memory barrier.
19150
19151 2016-04-19 Jakub Jelinek <jakub@redhat.com>
19152
19153 PR middle-end/70680
19154 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
19155 implicitly linear or lastprivate iterator on the outer context.
19156
19157 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19158
19159 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
19160 alignment check.
19161 * config/i386/i386.md (ssememalign): Removed.
19162 * config/i386/sse.md: Remove ssememalign attribute from patterns.
19163
19164 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19165
19166 PR target/69201
19167 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
19168 const short * to __builtin_ia32_loaddquhi512_mask.
19169 (_mm512_maskz_loadu_epi16): Likewise.
19170 (_mm512_mask_storeu_epi16): Pass short * to
19171 __builtin_ia32_storedquhi512_mask.
19172 (_mm512_mask_loadu_epi8): Pass const char * to
19173 __builtin_ia32_loaddquqi512_mask.
19174 (_mm512_maskz_loadu_epi8): Likewise.
19175 (_mm512_mask_storeu_epi8): Pass char * to
19176 __builtin_ia32_storedquqi512_mask.
19177 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
19178 const double * to __builtin_ia32_loadupd512_mask.
19179 (_mm512_mask_loadu_pd): Likewise.
19180 (_mm512_maskz_loadu_pd): Likewise.
19181 (_mm512_storeu_pd): Pass double * to
19182 __builtin_ia32_storeupd512_mask.
19183 (_mm512_mask_storeu_pd): Likewise.
19184 (_mm512_loadu_ps): Pass const float * to
19185 __builtin_ia32_loadups512_mask.
19186 (_mm512_mask_loadu_ps): Likewise.
19187 (_mm512_maskz_loadu_ps): Likewise.
19188 (_mm512_storeu_ps): Pass float * to
19189 __builtin_ia32_storeups512_mask.
19190 (_mm512_mask_storeu_ps): Likewise.
19191 (_mm512_mask_loadu_epi64): Pass const long long * to
19192 __builtin_ia32_loaddqudi512_mask.
19193 (_mm512_maskz_loadu_epi64): Likewise.
19194 (_mm512_mask_storeu_epi64): Pass long long *
19195 to __builtin_ia32_storedqudi512_mask.
19196 (_mm512_loadu_si512): Pass const int * to
19197 __builtin_ia32_loaddqusi512_mask.
19198 (_mm512_mask_loadu_epi32): Likewise.
19199 (_mm512_maskz_loadu_epi32): Likewise.
19200 (_mm512_storeu_si512): Pass int * to
19201 __builtin_ia32_storedqusi512_mask.
19202 (_mm512_mask_storeu_epi32): Likewise.
19203 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
19204 char * to __builtin_ia32_storedquqi256_mask.
19205 (_mm_mask_storeu_epi8): Likewise.
19206 (_mm256_mask_loadu_epi16): Pass const short * to
19207 __builtin_ia32_loaddquhi256_mask.
19208 (_mm256_maskz_loadu_epi16): Likewise.
19209 (_mm_mask_loadu_epi16): Pass const short * to
19210 __builtin_ia32_loaddquhi128_mask.
19211 (_mm_maskz_loadu_epi16): Likewise.
19212 (_mm256_mask_loadu_epi8): Pass const char * to
19213 __builtin_ia32_loaddquqi256_mask.
19214 (_mm256_maskz_loadu_epi8): Likewise.
19215 (_mm_mask_loadu_epi8): Pass const char * to
19216 __builtin_ia32_loaddquqi128_mask.
19217 (_mm_maskz_loadu_epi8): Likewise.
19218 (_mm256_mask_storeu_epi16): Pass short * to.
19219 __builtin_ia32_storedquhi256_mask.
19220 (_mm_mask_storeu_epi16): Pass short * to.
19221 __builtin_ia32_storedquhi128_mask.
19222 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
19223 const double * to __builtin_ia32_loadupd256_mask.
19224 (_mm256_maskz_loadu_pd): Likewise.
19225 (_mm_mask_loadu_pd): Pass onst double * to
19226 __builtin_ia32_loadupd128_mask.
19227 (_mm_maskz_loadu_pd): Likewise.
19228 (_mm256_mask_storeu_pd): Pass double * to
19229 __builtin_ia32_storeupd256_mask.
19230 (_mm_mask_storeu_pd): Pass double * to
19231 __builtin_ia32_storeupd128_mask.
19232 (_mm256_mask_loadu_ps): Pass const float * to
19233 __builtin_ia32_loadups256_mask.
19234 (_mm256_maskz_loadu_ps): Likewise.
19235 (_mm_mask_loadu_ps): Pass const float * to
19236 __builtin_ia32_loadups128_mask.
19237 (_mm_maskz_loadu_ps): Likewise.
19238 (_mm256_mask_storeu_ps): Pass float * to
19239 __builtin_ia32_storeups256_mask.
19240 (_mm_mask_storeu_ps): ass float * to
19241 __builtin_ia32_storeups128_mask.
19242 (_mm256_mask_loadu_epi64): Pass const long long * to
19243 __builtin_ia32_loaddqudi256_mask.
19244 (_mm256_maskz_loadu_epi64): Likewise.
19245 (_mm_mask_loadu_epi64): Pass const long long * to
19246 __builtin_ia32_loaddqudi128_mask.
19247 (_mm_maskz_loadu_epi64): Likewise.
19248 (_mm256_mask_storeu_epi64): Pass long long * to
19249 __builtin_ia32_storedqudi256_mask.
19250 (_mm_mask_storeu_epi64): Pass long long * to
19251 __builtin_ia32_storedqudi128_mask.
19252 (_mm256_mask_loadu_epi32): Pass const int * to
19253 __builtin_ia32_loaddqusi256_mask.
19254 (_mm256_maskz_loadu_epi32): Likewise.
19255 (_mm_mask_loadu_epi32): Pass const int * to
19256 __builtin_ia32_loaddqusi128_mask.
19257 (_mm_maskz_loadu_epi32): Likewise.
19258 (_mm256_mask_storeu_epi32): Pass int * to
19259 __builtin_ia32_storedqusi256_mask.
19260 (_mm_mask_storeu_epi32): Pass int * to
19261 __builtin_ia32_storedqusi128_mask.
19262 * config/i386/i386-builtin-types.def (PCSHORT): New.
19263 (PINT64): Likewise.
19264 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
19265 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
19266 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
19267 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
19268 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
19269 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
19270 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
19271 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
19272 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
19273 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
19274 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
19275 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
19276 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
19277 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
19278 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
19279 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
19280 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
19281 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
19282 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
19283 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
19284 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
19285 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
19286 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
19287 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
19288 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
19289 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
19290 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
19291 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
19292 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
19293 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
19294 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
19295 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
19296 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
19297 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
19298 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
19299 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
19300 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
19301 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
19302 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
19303 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
19304 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
19305 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
19306 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
19307 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
19308 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
19309 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
19310 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
19311 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
19312 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
19313 use UNSPEC_STOREU.
19314 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
19315 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
19316 load nor store.
19317 (ix86_expand_vector_move_misalign): Likewise.
19318 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
19319 to scalar function prototype for unaligned load/store builtins.
19320 (ix86_expand_special_args_builtin): Updated.
19321 * config/i386/sse.md (UNSPEC_LOADU): Removed.
19322 (UNSPEC_STOREU): Likewise.
19323 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
19324 (VI_ULOADSTORE_F_AVX512VL): Likewise.
19325 (ssescalarsize): Handle V4TI, V2TI and V1TI.
19326 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19327 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19328 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
19329 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
19330 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
19331 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
19332 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
19333 (<avx512>_storedqu<mode>_mask): Likewise.
19334 (*sse4_2_pcmpestr_unaligned): Likewise.
19335 (*sse4_2_pcmpistr_unaligned): Likewise.
19336 (*mov<mode>_internal): Renamed to ...
19337 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
19338 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
19339 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
19340 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
19341
19342 2016-04-19 Richard Biener <rguenther@suse.de>
19343
19344 PR tree-optimization/70171
19345 * tree-ssa-phiprop.c: Include stor-layout.h.
19346 (phiprop_insert_phi): Handle the aggregate copy case.
19347 (propagate_with_phi): Likewise.
19348
19349 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
19350
19351 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
19352 instead of simplify_gen_subreg (... , 0).
19353 (ix86_delegitimize_address): Ditto.
19354 (ix86_split_divmod): Ditto.
19355 (ix86_split_copysign_const): Ditto.
19356 (ix86_split_copysign_var): Ditto.
19357 (ix86_expand_args_builtin): Ditto.
19358 (ix86_expand_round_builtin): Ditto.
19359 (ix86_expand_special_args_builtin): Ditto.
19360 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
19361 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
19362 (udivmodqi4): Ditto.
19363 (absneg splitters): Ditto.
19364 (*jcc_bt<mode>_1): Ditto.
19365
19366 2016-04-19 Richard Biener <rguenther@suse.de>
19367
19368 PR tree-optimization/70724
19369 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
19370 restoring out from ...
19371 (free_scc_vn): ... here.
19372 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
19373 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
19374 tail merging.
19375 (pass_fre::execute): Restore SSA info.
19376
19377 2016-04-19 Richard Biener <rguenther@suse.de>
19378
19379 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
19380 * gimple-walk.c (walk_gimple_op): Initialize it.
19381 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
19382 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
19383 remapping SSA names of defs.
19384 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
19385 adjustment.
19386
19387 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
19388
19389 PR middle-end/70689
19390 * lra-constraints.c (equiv_substition_p): New.
19391 (process_alt_operands): Use it.
19392 (swap_operands): Swap it.
19393 (curr_insn_transform): Update it.
19394
19395 2016-04-18 Michael Matz <matz@suse.de>
19396
19397 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
19398 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
19399 * tree-core.h (tree_type_common.align): Use bit-field.
19400 (tree_type_common.spare): New.
19401 (tree_decl_common.off_align): Make smaller.
19402 (tree_decl_common.align): Use bit-field.
19403
19404 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
19405 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
19406 (scan_sharing_clauses): Ditto.
19407 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19408 (omp_finish_file): Ditto.
19409 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
19410 (layout_decl): Ditto.
19411 (relayout_decl): Ditto.
19412 (finalize_record_size): Use SET_TYPE_ALIGN.
19413 (finalize_type_size): Ditto.
19414 (finish_builtin_struct): Ditto.
19415 (layout_type): Ditto.
19416 (initialize_sizetypes): Ditto.
19417 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
19418 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
19419 (lookup_field_for_decl): Use SET_DECL_ALIGN.
19420 (get_chain_field): Ditto.
19421 (get_trampoline_type): Ditto.
19422 (get_nl_goto_field): Ditto.
19423 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19424 SET_DECL_ALIGN.
19425 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
19426 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
19427 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19428 (build_qualified_type): Use SET_TYPE_ALIGN.
19429 (build_aligned_type, build_range_type_1): Ditto.
19430 (build_atomic_base): Ditto.
19431 (build_common_tree_nodes): Ditto.
19432 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
19433 (expand_one_stack_var_at): Ditto.
19434 * coverage.c (build_var): Use SET_DECL_ALIGN.
19435 * except.c (init_eh): Ditto.
19436 * function.c (assign_parm_setup_block): Ditto.
19437 * symtab.c (increase_alignment_1): Ditto.
19438 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
19439 * tree-vect-stmts.c (ensure_base_align): Ditto.
19440 * varasm.c (align_variable): Ditto.
19441 (assemble_variable): Ditto.
19442 (build_constant_desc): Ditto.
19443 (output_constant_def_contents): Ditto.
19444
19445 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
19446 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
19447 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
19448 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
19449 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
19450
19451 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
19452
19453 PR target/70708
19454 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
19455 replace %vmovsd with "%vmovq".
19456 (vec_concatv2df): Likewise.
19457
19458 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
19459
19460 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
19461 (*vec_extractv2si_0): Ditto.
19462 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
19463 (zero_extended_scalar_load_operand splitters): Ditto.
19464 (vec_extract splitters): Ditto.
19465 (*vec_extractv4si_0_zext): Ditto.
19466 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
19467 and lowpart_subreg.
19468 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
19469 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
19470 (*sse4_1_extractps): Use lowpart_subreg.
19471 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
19472
19473 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19474
19475 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
19476 gld requirements.
19477 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
19478 Mention Solaris 11 packaging changes.
19479 Update gas and gld requirements.
19480 Remove reference to pre-Solaris 10 bug.
19481 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
19482 systems and bugs.
19483 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
19484 with cc.
19485
19486 2016-04-17 Jan Hubicka <jh@suse.cz>
19487
19488 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
19489 max_loop_iterations_int.
19490
19491 2016-04-18 Richard Biener <rguenther@suse.de>
19492
19493 PR tree-optimization/43434
19494 * tree-ssa-structalias.c (struct vls_data): New.
19495 (visit_loadstore): Handle all pointer-based accesses.
19496 (compute_dependence_clique): Compute a bitmap of restrict tags
19497 assigned bases and pass it to visit_loadstore.
19498
19499 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
19500
19501 PR target/70711
19502 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
19503 armv8.1-a and armv8.1-a+crc.
19504
19505 2016-04-18 Richard Biener <rguenther@suse.de>
19506
19507 PR tree-optimization/70701
19508 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
19509 references after translating through a memcpy.
19510
19511 2016-04-18 Richard Biener <rguenther@suse.de>
19512
19513 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
19514 (compute_antic): ... here. For partial antic use regular
19515 postorder and scrap iteration.
19516 (compute_partial_antic_aux): Remove unused return value.
19517 (init_pre): Do not allocate postorder.
19518 (fini_pre): Do not free postorder.
19519
19520 2016-04-18 Richard Biener <rguenther@suse.de>
19521
19522 PR middle-end/37870
19523 * expmed.c (extract_bit_field_1): Remove broken case
19524 using a wider MODE_INT mode.
19525
19526 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
19527
19528 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
19529 unless compiling with at least GCC-4.8.
19530
19531 2016-04-17 Jan Hubicka <jh@suse.cz>
19532
19533 PR bootstrap/70706
19534 * graphite.c (graphite_finalize): Update call to
19535 tree_estimate_probability.
19536 * predict.h (tree_estimate_probability): Update prototype.
19537
19538 2016-04-17 Jan Hubicka <jh@suse.cz>
19539
19540 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
19541 (tree_estimate_probability): Likewise.
19542 (pass_profile::execute): Update.
19543 (report_predictor_hitrates): New function.
19544 * profile.c (compute_branch_probabilities): Use it.
19545 * predict.h (report_predictor_hitrates): Declare.
19546
19547 2016-04-17 Jan Hubicka <jh@suse.cz>
19548
19549 PR ipa/70018
19550 * cgraph.h (cgraph_node::set_const_flag,
19551 cgraph_node::set_pure_flag): Update prototype to return bool;
19552 update comment.
19553 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
19554 of interposable symbol are interposable, too.
19555 (cgraph_set_const_flag_1): Rename to ...
19556 (set_const_flag_1): ... this one; change to self recursive function
19557 instead of call_for_symbol_thunks_and_aliases. Handle correctly
19558 clearnig the flag in all variants and also virtual thunks of const
19559 functions are pure; track if any change was done.
19560 (cgraph_node::set_const_flag): Update.
19561 (struct set_pure_flag_info): New struct.
19562 (cgraph_set_pure_flag_1): Rename to ...
19563 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
19564 rather than pointer encoded flags; track if any changes was done;
19565 handle correctly clearning flag and setting flag of aliases already
19566 declared const.
19567 (cgraph_node::set_pure_flag): Update.
19568 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
19569
19570 2016-04-17 Tom de Vries <tom@codesourcery.com>
19571
19572 PR other/70433
19573 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
19574 backslash in label.
19575
19576 2016-04-17 Tom de Vries <tom@codesourcery.com>
19577
19578 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
19579 '{}<> ' as escape-for-record.
19580
19581 2016-04-17 Tom de Vries <tom@codesourcery.com>
19582
19583 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
19584 structure.
19585
19586 2016-04-17 Tom de Vries <tom@codesourcery.com>
19587
19588 PR other/70185
19589 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19590 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19591 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19592 * passes.c (finish_optimization_passes): Only call
19593 finish_graph_dump_file if dfi->graph_dump_initialized.
19594 (execute_function_dump, pass_init_dump_file): Use
19595 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19596
19597 2016-04-17 Tom de Vries <tom@codesourcery.com>
19598
19599 PR tree-optimization/70256
19600 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19601 (debug_varmap): New function.
19602
19603 2016-04-17 Tom de Vries <tom@codesourcery.com>
19604
19605 PR other/70183
19606 * passes.c (pass_manager::register_pass): Propagate pflags.
19607
19608 2016-04-17 Tom de Vries <tom@codesourcery.com>
19609
19610 PR other/68875
19611 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19612 * passes.c (pass_manager::pass_manager): Declare and init p_start in
19613 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
19614 check if it's equal to p_start.
19615 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19616
19617 2016-04-15 Jan Hubicka <jh@suse.cz>
19618
19619 PR ipa/70018
19620 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19621 function does not bind to current def.
19622 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19623 handle conservatively calls to functions that does not need to bind
19624 to current def.
19625 (check_call): Update call of worse_state.
19626 (ignore_edge_for_nothrow): Update.
19627 (ignore_edge_for_pure_const): Likewise.
19628 (propagate_pure_const): Update calls to worse_state.
19629 (skip_function_for_local_pure_const): Reformat comments.
19630
19631 2016-04-15 Jan Hubicka <jh@suse.cz>
19632
19633 PR ipa/70018
19634 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19635 (cgraph_node::function_symbol): Likewise.
19636 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19637 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19638 (symtab_node::ultimate_alias_target): Add REF parameter.
19639 (symtab_node::binds_to_current_def_p): Declare.
19640 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19641 (cgraph_node::function_symbol): Likewise.
19642 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19643 (cgraph_node::get_availability): Likewise.
19644 (cgraph_edge::binds_to_current_def_p): New inline function.
19645 (varpool_node::get_availability): Add REF parameter.
19646 (varpool_node::ultimate_alias_target): Likewise.
19647 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19648 (symtab_node::binds_to_current_def_p): Likewise.
19649 * varpool.c (varpool_node::get_availability): Likewise.
19650
19651 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19652
19653 PR target/70662
19654 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19655 Fix mode size check.
19656
19657 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19658
19659 * BASE-VER: Set to 7.0.0.
19660
19661 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
19662
19663 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19664
19665 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19666
19667 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19668 architecture revisions.
19669
19670 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
19671
19672 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19673 * config/i386/i386.c (ix86_using_red_zone): No longer static.
19674 * config/i386/i386.md (stack decrement to push peepholes): Guard
19675 with !x86_using_red_zone ().
19676
19677 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19678
19679 PR c++/70675
19680 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19681 to dump_generic_node.
19682 (NIY): Pass also flags to do_niy.
19683
19684 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
19685
19686 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19687 (simd_clone_vector_of_formal_parm_types)
19688 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19689 (simd_clone_mangle, simd_clone_create)
19690 (simd_clone_adjust_return_type, create_tmp_simd_array)
19691 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19692 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19693 (ipa_simd_modify_function_body, simd_clone_linear_addend)
19694 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19695 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19696 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19697 * omp-simd-clone.c: ... this new file.
19698 (simd_clone_vector_of_formal_parm_types): Make it static.
19699 * Makefile.in (OBJS): Add omp-simd-clone.o.
19700
19701 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19702
19703 PR target/70662
19704 * config/i386/sse.md: Use proper memory operand modifiers.
19705
19706
19707 2016-04-15 Richard Biener <rguenther@suse.de>
19708 Alan Modra <amodra@gmail.com>
19709
19710 PR tree-optimization/70130
19711 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19712 when alignment stays not the same and no not use the realign
19713 scheme then.
19714
19715 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19716
19717 PR target/70669
19718 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19719 direct move handlers for KFmode. Change TFmode handlers test from
19720 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19721
19722 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19723
19724 PR c++/70594
19725 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19726 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19727 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19728 * tree-ssa-live.c (remove_unused_scope_block_p): When
19729 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19730 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19731 block_ultimate_origin is FUNCTION_DECL.
19732 (remove_unused_locals): If current_function_decl is
19733 polymorphic_ctor_dtor_p, pass initial true to
19734 remove_unused_scope_block_p' is_ctor_dtor_block.
19735
19736 2016-04-14 Martin Sebor <msebor@redhat.com>
19737
19738 PR c++/69517
19739 PR c++/70019
19740 PR c++/70588
19741 * doc/extend.texi (Variable Length): Revert.
19742
19743 2016-04-14 Marek Polacek <polacek@redhat.com>
19744 Jan Hubicka <hubicka@ucw.cz>
19745
19746 PR c++/70029
19747 * tree.c (verify_type): Disable the canonical type of main variant
19748 check.
19749
19750 2016-04-14 Jason Merrill <jason@redhat.com>
19751
19752 * cfgexpand.c, expr.c: Revert previous change.
19753
19754 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19755
19756 PR middle-end/70643
19757 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19758 when building a mem ref for the incoming reduction variable.
19759
19760 2016-04-14 Richard Biener <rguenther@suse.de>
19761
19762 PR tree-optimization/70614
19763 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19764 loop if the evolution dropped to chrec_dont_know.
19765 (interpret_condition_phi): Likewise.
19766
19767 2016-04-14 Richard Biener <rguenther@suse.de>
19768
19769 PR tree-optimization/70623
19770 * tree-ssa-pre.c (changed_blocks): Make global ...
19771 (compute_antic): ... local here. Move and fix worklist
19772 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19773 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19774 worklist handling, dump when ANTIC_IN changed.
19775 (compute_partial_antic_aux): Remove worklist handling.
19776 (init_pre): Do not compute post dominators. Add a comment about
19777 the CFG order chosen.
19778 (fini_pre): Do not free post dominators.
19779
19780 2016-04-13 Martin Sebor <msebor@redhat.com>
19781
19782 PR c++/69517
19783 PR c++/70019
19784 PR c++/70588
19785 * doc/extend.texi (Variable Length): Document C++ specifics.
19786
19787 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19788
19789 PR c++/70641
19790 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19791 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19792 eh edges have been purged.
19793
19794 PR c++/70594
19795 * tree-sra.c (create_access_replacement,
19796 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19797 gets fancy name.
19798 * tree-pretty-print.c (dump_fancy_name): New function.
19799 (dump_decl_name, dump_generic_node): Use it.
19800
19801 2016-04-13 Jason Merrill <jason@redhat.com>
19802
19803 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19804 * expr.c (expand_expr_real_1): Likewise.
19805
19806 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19807
19808 * config/i386/i386.md (kunpckhi): Swap operands.
19809 (kunpcksi): Likewise.
19810 (kunpckdi): Likewise.
19811 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19812 (vec_pack_trunc_<mode>): Likewise.
19813
19814 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19815
19816 PR debug/70628
19817 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19818
19819 PR middle-end/70633
19820 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19821 gimplification turns some element into non-constant.
19822
19823 PR debug/70628
19824 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19825 * explow.c (convert_memory_address_addr_space_1): No longer static,
19826 add NO_EMIT argument and don't call convert_modes if true, pass
19827 it down recursively, remove break after return.
19828 (convert_memory_address_addr_space): Adjust caller.
19829 * simplify-rtx.c (simplify_unary_operation_1): Call
19830 convert_memory_address_addr_space_1 instead of convert_memory_address,
19831 if it returns NULL, don't simplify.
19832
19833 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19834
19835 PR target/70630
19836 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19837
19838 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19839
19840 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19841 Bump the upper SIMDLEN limits, so that if the return type or
19842 characteristic type if the return type is void can be passed in
19843 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19844 allowed.
19845
19846 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19847
19848 PR target/70640
19849 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19850 Do not use "=" constraint on an input constraint.
19851 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19852 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19853 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19854 generates (neg (abs ...)) instead of (abs ...).
19855
19856 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19857
19858 PR rtl-optimization/70596
19859 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19860 just invalidate LRA data and reset them. Adjust dump wording.
19861
19862 2016-04-12 Martin Liska <mliska@suse.cz>
19863
19864 Revert
19865 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19866
19867 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19868 estimates here.
19869 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19870 max_loop_iterations_int.
19871 (tree_unswitch_outer_loop): Likewise.
19872 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19873 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19874
19875 2016-04-12 Tom de Vries <tom@codesourcery.com>
19876
19877 PR tree-optimization/68756
19878 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19879 instead of new_name.
19880
19881 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19882
19883 PR tree-optimization/70602
19884 * tree-sra.c (generate_subtree_copies): Don't write anything into
19885 constant pool decls.
19886
19887 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19888 regardless whether there are depend clauses or not.
19889
19890 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19891
19892 PR target/70381
19893 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19894 target attribute and pragma from changing the -mfloat128
19895 and -mfloat128-hardware options.
19896
19897 * doc/extend.texi (Additional Floating Types): Document PowerPC
19898 __float128 restrictions.
19899
19900 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19901
19902 PR target/70133
19903 * config/aarch64/driver-aarch64.c
19904 (aarch64_get_extension_string_for_isa_flags): New.
19905 (arch_extension): Rename to...
19906 (aarch64_arch_extension): ...This.
19907 (ext_to_feat_string): Rename to...
19908 (aarch64_extensions): ...This.
19909 (aarch64_core_data): Keep track of architecture extension flags.
19910 (cpu_data): Rename to...
19911 (aarch64_cpu_data): ...This.
19912 (aarch64_arch_driver_info): Keep track of architecture extension
19913 flags.
19914 (get_arch_name_from_id): Rename to...
19915 (get_arch_from_id): ...This, change return type.
19916 (host_detect_local_cpu): Update and reformat for renames, handle
19917 extensions through common infrastructure.
19918
19919 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19920
19921 PR target/70133
19922 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19923 track of a canonical flag name.
19924 (all_extensions): Likewise.
19925 (arch_to_arch_name): Also track extension flags enabled by the arch.
19926 (all_architectures): Likewise.
19927 (aarch64_parse_extension): Move to here.
19928 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19929 rework.
19930 (aarch64_rewrite_selected_cpu): Update for above change.
19931 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19932 are handled, such that the single explicit value enabled by an
19933 extension is kept seperate from the implicit values it also enables.
19934 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19935 to here.
19936 (aarch64_parse_extension): New.
19937 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19938 here to config/aarch64/aarch64-protos.h.
19939 (aarch64_parse_extension): Move from here to
19940 common/config/aarch64/aarch64-common.c.
19941 (aarch64_option_print): Update.
19942 (aarch64_declare_function_name): Likewise.
19943 (aarch64_start_file): Likewise.
19944 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19945 the canonical flag for extensions.
19946 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19947 flags.
19948
19949 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19950
19951 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19952 AARCH64_FL_CRC.
19953
19954 2016-04-09 Tom de Vries <tom@codesourcery.com>
19955
19956 PR tree-optimization/68953
19957 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19958 first to last subscript.
19959
19960 2016-04-09 Jakub Jelinek <jakub@redhat.com>
19961
19962 PR tree-optimization/70586
19963 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19964 for any calls.
19965
19966 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
19967
19968 PR lto/70289
19969 PR ipa/70348
19970 PR tree-optimization/70373
19971 PR middle-end/70533
19972 PR middle-end/70534
19973 PR middle-end/70535
19974 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19975 clauses for acc parallel reductions as necessary. Error on those
19976 that are private.
19977 * omp-low.c (scan_sharing_clauses): Don't install variables which
19978 are used in acc parallel reductions.
19979 (lower_rec_input_clauses): Remove dead code.
19980 (lower_oacc_reductions): Add support for reference reductions.
19981 (lower_reduction_clauses): Remove dead code.
19982 (lower_omp_target): Don't remap variables appearing in acc parallel
19983 reductions.
19984 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
19985
19986 2016-04-08 Jakub Jelinek <jakub@redhat.com>
19987
19988 PR middle-end/70593
19989 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
19990 with multiple SSA_NAME defs, force the outputs other than first
19991 to be live before calling live_track_process_def on each output.
19992
19993 PR rtl-optimization/70574
19994 * fwprop.c (forward_propagate_and_simplify): Don't add
19995 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
19996 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
19997 paradoxical subregs within *loc.
19998
19999 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
20000
20001 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
20002 -ftree-parallelize-loops={0,1}.
20003 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20004 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20005 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20006 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20007 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20008
20009 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
20010
20011 PR sanitizer/70541
20012 * asan.c (instrument_derefs): If we get unknown location, extract it
20013 with EXPR_LOCATION.
20014 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
20015
20016 2016-04-08 Tom de Vries <tom@codesourcery.com>
20017
20018 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
20019 implicit firstprivate clause.
20020
20021 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20022
20023 PR target/70566
20024 * config/arm/thumb2.md (tst + branch-> lsls + branch
20025 peephole below *orsi_not_shiftsi_si): Require that condition
20026 register is dead after the peephole.
20027 (second peephole after the above): Likewise.
20028
20029 2016-04-08 Alan Modra <amodra@gmail.com>
20030
20031 PR target/70117
20032 * builtins.c (fold_builtin_classify): For IBM extended precision,
20033 look at just the high-order double to test for NaN.
20034 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
20035 test just the high double for Inf but both doubles for subnormal
20036 limit.
20037
20038 2016-04-07 Jakub Jelinek <jakub@redhat.com>
20039
20040 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
20041 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
20042 node->simdclone->mask_mode != VOIDmode masks.
20043 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
20044 earlier, use it instead of node->simdclone.
20045 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20046 Set clonei->mask_mode.
20047
20048 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20049
20050 PR c/70436
20051 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
20052 Pass it through to cp_parser_already_scoped_statement.
20053 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
20054 it through to cp_parser_statement.
20055 (cp_parser_statement): Pass IF_P through to
20056 cp_parser_iteration_statement.
20057 (cp_parser_pragma): Adjust call to
20058 cp_parser_iteration_statement.
20059
20060 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20061
20062 PR c/70436
20063 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
20064 resolve a future -Wparentheses warning.
20065 * omp-low.c (scan_sharing_clauses): Likewise.
20066 * tree-parloops.c (eliminate_local_variables): Likewise.
20067
20068 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
20069
20070 PR rtl-optimization/70398
20071 * lra-constraints.c (process_address_1): Check zero scale and code
20072 for reloading with zero scale.
20073
20074 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
20075
20076 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
20077 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
20078
20079 2016-04-06 Jakub Jelinek <jakub@redhat.com>
20080
20081 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20082 Add support for AVX512F clones, include them by default for
20083 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
20084 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
20085 up to 128.
20086
20087 PR middle-end/70550
20088 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
20089 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
20090 firstprivate clauses.
20091 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
20092 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
20093 (lower_omp_target): Set TREE_NO_WARNING for
20094 non-addressable possibly uninitialized vars which are copied into
20095 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
20096
20097 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
20098
20099 * config/pa/predicates.md (integer_store_memory_operand): Accept
20100 REG+D operands with a large offset when reload_in_progress is true.
20101 (floating_point_store_memory_operand): Likewise.
20102
20103 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20104
20105 PR c++/70336
20106 * match.pd (nested int casts): Limit to GIMPLE.
20107
20108 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
20109
20110 PR ipa/66223
20111 * ipa-devirt.c (maybe_record_node): Fix comment; use
20112 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
20113
20114 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20115
20116 PR rtl-optimization/70542
20117 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
20118 if there are any uses other than insn or debug insns.
20119
20120 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
20121 Jakub Jelinek <jakub@redhat.com>
20122
20123 PR tree-optimization/70509
20124 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
20125 Shift HOST_WIDE_INT_1U instead of 1.
20126
20127 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
20128
20129 PR tree-optimization/70509
20130 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
20131 of the vector base type for index.
20132
20133 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
20134
20135 PR target/70510
20136 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
20137
20138 2016-04-05 Richard Biener <rguenther@suse.de>
20139
20140 PR tree-optimization/70526
20141 * tree-sra.c (build_ref_for_offset): Use prev_base to
20142 extract the alias pointer type.
20143
20144 2016-04-05 Richard Biener <rguenther@suse.de>
20145
20146 * dse.c (struct store_info): Remove alias_set member.
20147 (struct read_info_type): Likewise.
20148 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
20149 spill_deleted, clear_alias_set_lookup): Remove.
20150 (get_group_info): Remove dead base == NULL_RTX case.
20151 (dse_step0): Remove initialization of removed variables.
20152 (delete_dead_store_insn): Reomve alias set dumping.
20153 (free_read_records): Remove alias_set handling.
20154 (canon_address): Remove alias_set_out parameter.
20155 (record_store): Remove spill_alias_set, it's always zero.
20156 (check_mem_read_rtx): Likewise.
20157 (dse_step2): Rename from ...
20158 (dse_step2_nospill): ... this. Adjust.
20159 (scan_stores): Rename from ...
20160 (scan_stores_nospill): ... this.
20161 (scan_reads): Rename from ...
20162 (scan_reads_nospill): ... this.
20163 (scan_stores_spill, scan_reads_spill): Remove.
20164 (dse_step3_scan): Remove for_spills argument which is always false.
20165 (dse_step3): Likewise.
20166 (dse_step5): Rename from ...
20167 (dse_step5_nospill): ... this. Remove alias_set handling.
20168 (rest_of_handle_dse): Adjust.
20169
20170 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20171
20172 PR target/70525
20173 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
20174 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
20175 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
20176 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
20177
20178 2016-04-05 Richard Biener <rguenther@suse.de>
20179
20180 PR middle-end/70499
20181 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
20182 non-register type temporaries into SSA.
20183
20184 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
20185
20186 PR ipa/66223
20187 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
20188 calls when sanitizing.
20189 (possible_polymorphic_call_target_p): Fix formatting.
20190
20191 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20192 Jakub Jelinek <jakub@redhat.com>
20193
20194 PR middle-end/70457
20195 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
20196 to ensure a call statement is compatible with a built-in's
20197 prototype.
20198 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
20199 Likewise.
20200
20201 2016-04-04 Richard Biener <rguenther@suse.de>
20202
20203 PR rtl-optimization/70484
20204 * rtl.h (canon_output_dependence): Declare.
20205 * alias.c (canon_output_dependence): New function.
20206 * dse.c (record_store): Use canon_output_dependence rather
20207 than canon_true_dependence.
20208
20209 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20210
20211 PR ipa/68881
20212 * cgraph.h (symtab_node::copy_visibility_from): New function.
20213 * symtab.c (symtab_node::copy_visibility_from): New function.
20214 * ipa-visibility.c (optimize_weakref): New function.
20215 (function_and_variable_visibility): Use it.
20216
20217 2016-04-04 Martin Liska <mliska@suse.cz>
20218
20219 PR hsa/70402
20220 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
20221 value that is really in range handled by SBR instruction.
20222 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
20223 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
20224 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
20225
20226 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
20227
20228 PR target/70416
20229 PR target/67391
20230 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
20231 set, but not for SP_REG operands.
20232
20233 2016-04-02 Martin Sebor <msebor@redhat.com>
20234
20235 PR c++/67376
20236 * fold-const.c (maybe_nonzero_address): New function.
20237 (fold_comparison): Call it. Fold equality and relational
20238 expressions involving null pointers.
20239 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
20240
20241 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
20242
20243 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
20244 the "Y" constraint (scalar FP 0.0 immediate).
20245
20246 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
20247 Add the "const_double" to the list of operand constraints.
20248
20249 2016-04-01 Jakub Jelinek <jakub@redhat.com>
20250
20251 PR rtl-optimization/70467
20252 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
20253 If low word of the last operand is 0, just emit addition/subtraction
20254 for the high word.
20255
20256 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20257
20258 PR target/70404
20259 * config/s390/s390.c (s390_expand_insv): Check for everything
20260 constant instead of just VOIDmode stuff.
20261
20262 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20263
20264 PR target/70496
20265 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
20266
20267 2016-04-01 Nathan Sidwell <nathan@acm.org>
20268
20269 * tree.def (TRY_CATCH_EXPR): Correct documentation.
20270
20271 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
20272
20273 PR rtl-optimization/70461
20274 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
20275 is necessary.
20276
20277 2016-03-31 Martin Liska <mliska@suse.cz>
20278
20279 PR hsa/70399
20280 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
20281 a tree value or an immediate integer value to a buffer
20282 that is eventually copied to a BRIG section.
20283 (emit_immediate_operand): Call the function here.
20284 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
20285 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
20286 of class' fields that are removed.
20287 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
20288 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
20289 m_brig_repr_size fields.
20290
20291 2016-03-31 Martin Liska <mliska@suse.cz>
20292
20293 PR hsa/70391
20294 * hsa-gen.c (hsa_function_representation::update_dominance): New
20295 function.
20296 (convert_addr_to_flat_segment): Likewise.
20297 (gen_hsa_memory_set): New alignment argument.
20298 (gen_hsa_ctor_assignment): Likewise.
20299 (gen_hsa_insns_for_single_assignment): Provide alignment
20300 to gen_hsa_ctor_assignment.
20301 (gen_hsa_insns_for_direct_call): Add new argument.
20302 (expand_lhs_of_string_op): New function.
20303 (expand_string_operation_builtin): Likewise.
20304 (expand_memory_copy): New function.
20305 (expand_memory_set): New function.
20306 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
20307 (convert_switch_statements): Change signature.
20308 (generate_hsa): Use a return value of the function.
20309 (pass_gen_hsail::execute): Do not call
20310 convert_switch_statements here.
20311 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
20312 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
20313 (hsa_function_representation::update_dominance): New function.
20314
20315 2016-03-31 Martin Liska <mliska@suse.cz>
20316
20317 PR hsa/70391
20318 * hsa-brig.c (emit_directive_variable): Emit alignment
20319 according to hsa_symbol::m_align.
20320 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
20321 (dump_hsa_symbol): Dump alignment of HSA symbols.
20322 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
20323 (gen_hsa_addr_with_align): New function.
20324 (hsa_bitmemref_alignment): Use newly added function.
20325 (gen_hsa_insns_for_load): Likewise.
20326 (gen_hsa_insns_for_store): Likewise.
20327 (gen_hsa_memory_copy): New argument added.
20328 (gen_hsa_insns_for_single_assignment): Respect
20329 alignment for assignments processed via gen_hsa_memory_copy.
20330 (gen_hsa_insns_for_direct_call): Likewise.
20331 (gen_hsa_insns_for_return): Likewise.
20332 (gen_function_def_parameters): Set default alignment.
20333 * hsa.c (hsa_object_alignment): New function.
20334 (hsa_byte_alignment): Pasted function.
20335 * hsa.h (hsa_symbol::m_align): New field.
20336
20337 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20338
20339 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
20340 scratch field for goto case.
20341
20342 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
20343
20344 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
20345
20346 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
20347
20348 PR target/70442
20349 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
20350 (scalar_chain::convert_insn): Call convert_op for reg
20351 moves to handle undefined registers.
20352
20353 2016-03-31 Nathan Sidwell <nathan@acm.org>
20354
20355 PR c++/70393
20356 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
20357 Assert we don't want to move backwards.
20358
20359 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
20360
20361 PR target/70453
20362 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
20363
20364 2016-03-31 Jakub Jelinek <jakub@redhat.com>
20365
20366 PR rtl-optimization/70460
20367 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
20368 with operand from REG_LABEL_OPERAND, instead substitute
20369 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
20370 Don't do anything for REG_NON_LOCAL_GOTO jumps.
20371
20372 2016-03-31 Martin Liska <mliska@suse.cz>
20373
20374 * passes.c (execute_one_pass): Do not call
20375 todo_after for a discarded function.
20376
20377 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20378
20379 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
20380 (no_cost, infinite_cost): Initialize the new field.
20381 (get_computation_cost_at): Record setup cost.
20382 (determine_use_iv_cost_address): Skip cost computation for sub
20383 uses if we can estimate it without losing accuracy.
20384
20385 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20386
20387 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
20388 estimates here.
20389 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20390 max_loop_iterations_int.
20391 (tree_unswitch_outer_loop): Likewise.
20392 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
20393 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20394
20395 2016-03-30 Richard Biener <rguenther@suse.de>
20396
20397 PR middle-end/70450
20398 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
20399
20400 2016-03-30 Jakub Jelinek <jakub@redhat.com>
20401
20402 PR target/70421
20403 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
20404 in gen_blendm expander.
20405
20406 2016-03-30 Nick Clifton <nickc@redhat.com>
20407
20408 PR target/62254
20409 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
20410 case where we are already provided with an SImode SUBREG.
20411
20412 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
20413
20414 PR target/70439
20415 * config/i386/i386.c (ix86_expand_epilogue): Properly check
20416 conflict between DRAP register and __builtin_eh_return.
20417
20418 2016-03-30 Michael Matz <matz@suse.de>
20419 Richard Biener <rguenther@suse.de>
20420
20421 PR ipa/12392
20422 * ipa-polymorphic-call.c (struct type_change_info): Change
20423 speculative to an unsigned allowing to limit the work we do.
20424 (csftc_abort_walking_p): New inline function..
20425 (check_stmt_for_type_change): Limit the number of may-defs
20426 skipped for speculative devirtualization to
20427 max-speculative-devirt-maydefs.
20428 * params.def (max-speculative-devirt-maydefs): New param.
20429 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
20430
20431 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
20432
20433 PR target/63890
20434 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
20435 and TARGET_MACHO.
20436
20437 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
20438
20439 PR tree-optimization/59124
20440 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
20441 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
20442
20443 2016-03-29 Jeff Law <law@redhat.com>
20444
20445 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
20446
20447 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20448
20449 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
20450 to HOST_WIDE_INT.
20451
20452 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
20453
20454 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
20455 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
20456 gcrt0.o if linking dynamically.
20457
20458 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20459
20460 PR ipa/70283
20461 * ipa-devirt.c (methods_equal_p): New function.
20462 (compare_virtual_tables): Use it.
20463 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
20464 * cgraphclones.c (clone_function_name_1): Use
20465 symbol_table::symbol_suffix_separator.
20466 * coverage.c (build_var): Likewise.
20467 * symtab.c (symbol_table::symbol_suffix_separator): New.
20468
20469 2016-03-29 Jakub Jelinek <jakub@redhat.com>
20470
20471 PR rtl-optimization/70429
20472 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
20473 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
20474 mode != result_mode.
20475
20476 PR c++/70353
20477 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
20478
20479 PR tree-optimization/70405
20480 * ssa-iterators.h (num_imm_uses): Add missing braces.
20481
20482 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
20483
20484 PR rtl-optimization/68695
20485 * ira-color.c (allocno_copy_cost_saving): New.
20486 (improve_allocation): Use it.
20487
20488 2016-03-29 Richard Henderson <rth@redhat.com>
20489
20490 PR middle-end/70355
20491 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
20492
20493 2016-03-29 Richard Biener <rguenther@suse.de>
20494
20495 PR middle-end/70424
20496 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
20497 use alignment returned by get_pointer_alignment_1 if it is
20498 bigger than BITS_PER_UNIT.
20499 * builtins.c (get_pointer_alignment_1): Do not return true
20500 for alignment extracted from SSA info.
20501
20502 2016-03-28 James Bowman <james.bowman@ftdichip.com>
20503
20504 * config/ft32/ft32.opt (mnodiv): New.
20505 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
20506 * doc/invoke.texi (FT32 Options -mnodiv): New.
20507
20508 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
20509
20510 PR target/70406
20511 * config/i386/i386.md (define_split, andn): Fix modes.
20512
20513 2016-03-26 Richard Biener <rguenther@suse.de>
20514 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20515
20516 PR ipa/70366
20517 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
20518 instead of
20519 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
20520 as 2nd argument to cl_optimization_restore().
20521
20522 2016-03-25 Richard Henderson <rth@redhat.com>
20523
20524 PR target/70120
20525 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
20526 * config/aarch64/aarch64-protos.h: Declare it.
20527 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
20528
20529 2016-03-25 Alan Modra <amodra@gmail.com>
20530
20531 PR target/70052
20532 * config/rs6000/constraints.md (j): Simplify.
20533 * config/rs6000/predicates.md (easy_fp_constant): Exclude
20534 decimal float 0.D.
20535 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
20536 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
20537 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
20538 in all constraint alternatives.
20539 (movtd_64bit_nodm): Delete "j" constraint alternative.
20540
20541 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20542
20543 * tree-ssa-propagate.c: Enhance docs for
20544 SSA_PROP_NOT_INTERESTING.
20545
20546 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20547
20548 * doc/extend.texi: Fix typo in documentation to pure attribute.
20549
20550 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
20551
20552 PR target/70319
20553 * config/pa/pa.md (bswapdi2): Use a scratch register.
20554
20555 2016-03-24 Richard Henderson <rth@redhat.com>
20556
20557 PR middle-end/69845
20558 * fold-const.c (extract_muldiv_1): Correct test for multiplication
20559 overflow.
20560
20561 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
20562
20563 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
20564 using ix86_expand_binary_operator instead of gen_andsi3.
20565
20566 2016-03-24 Richard Biener <rguenther@suse.de>
20567
20568 PR tree-optimization/70396
20569 * tree-vect-stmts.c (vectorizable_comparison): Use
20570 get_vectype_for_scalar_type.
20571
20572 2016-03-24 Richard Biener <rguenther@suse.de>
20573
20574 PR middle-end/70370
20575 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
20576 with register bases.
20577
20578 2016-03-24 Richard Biener <rguenther@suse.de>
20579
20580 PR tree-optimization/70372
20581 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
20582 build_all_ones_cst to also handle vector types correctly.
20583
20584 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20585
20586 PR target/70381
20587 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
20588 -mfloat128 here.
20589
20590 2016-03-23 Marek Polacek <polacek@redhat.com>
20591
20592 PR c++/69884
20593 * doc/invoke.texi: Document -Wignored-attributes.
20594
20595 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20596
20597 PR tree-optimization/69042
20598 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20599 parameter from 30 to 40.
20600
20601 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20602
20603 PR tree-optimization/69042
20604 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20605 for use with constant offset stripped in base.
20606
20607 2016-03-23 Richard Biener <rguenther@suse.de>
20608
20609 PR middle-end/70251
20610 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20611 mode compatibility check.
20612 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20613
20614 2016-03-23 Jeff Law <law@redhat.com>
20615
20616 PR tree-optimization/64058
20617 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20618 CONFLICT_COUNT.
20619 (struct ssa_conflicts): Move up earlier in the file.
20620 (conflicts_, var_map_): New static variables.
20621 (initialize_conflict_count): New function to initialize the
20622 CONFLICT_COUNT field for each conflict pair.
20623 (compare_pairs): Lazily initialize the conflict count and use it
20624 as the first tie-breaker.
20625 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
20626 and wipe conflicts_ and map_ around the call to qsort. Remove
20627 special case for 2 coalesce pairs.
20628 * bitmap.c (bitmap_count_unique_bits): New function.
20629 (bitmap_count_bits_in_word): New function, extracted from
20630 bitmap_count_bits.
20631 (bitmap_count_bits): Use bitmap_count_bits_in_word.
20632 * bitmap.h (bitmap_count_unique_bits): Declare it.
20633
20634 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
20635
20636 PR target/69917
20637 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20638 transparent alias chain for decl assembler name.
20639 * config/sol2.c (solaris_assemble_visibility): Likewise.
20640
20641 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20642
20643 * config/arm/arm1020e.md (1020call_op): Reduce reservation
20644 duration.
20645 (v10_fdivs): Likewise.
20646 (v10_fdivd): Likewise.
20647
20648 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20649
20650 PR driver/70132
20651 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20652 to not call fclose twice on file.
20653
20654 2016-03-23 Jakub Jelinek <jakub@redhat.com>
20655
20656 PR tree-optimization/70354
20657 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20658 oprnd0 is wider than oprnd1 and there is a cast from the wider
20659 type to oprnd1, mask it with the mask of the narrower type.
20660
20661 PR target/70321
20662 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20663 Optimize TARGET_STV splitters, if high or low word of last argument
20664 is 0 or -1.
20665
20666 2016-03-22 Jeff Law <law@redhat.com>
20667
20668 PR target/70232
20669 tree-ssa-threadbackward.c
20670 (fsm_find_control_statement_thread_paths): Correctly distinguish
20671 between old style jump threads vs FSM jump threads.
20672
20673 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20674
20675 PR target/70302
20676 * config/i386/i386.c (scalar_chain::convert_op): Support
20677 uninitialized register usage case.
20678
20679 2016-03-22 Richard Biener <rguenther@suse.de>
20680
20681 PR middle-end/70251
20682 * genmatch.c (gen_transform): Adjust last parameter to a three-state
20683 int...
20684 (capture::gen_transform): ... to change behavior when substituting
20685 a condition into cond or not-cond expr context.
20686 (dt_simplify::gen_1): Adjust.
20687 * gimple-match-head.c: Include gimplify.h for unshare_expr.
20688 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20689 last change and instead change to
20690 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20691 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20692
20693 2016-03-22 Anthony Green <green@moxielogic.com>
20694
20695 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
20696 issue for moxiebox targets.
20697 (CC1PLUS_SPEC): Ditto.
20698
20699 2016-03-22 Richard Biener <rguenther@suse.de>
20700
20701 PR middle-end/70333
20702 * fold-const.c (extract_muldiv_1): Properly perform multiplication
20703 in the wide type.
20704
20705 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20706
20707 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20708
20709 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20710
20711 PR target/70325
20712 * config/i386/i386.c (def_builtin): Handle
20713 OPTION_MASK_ISA_AVX512VL to be and-ed with other
20714 bits.
20715 (const struct builtin_description bdesc_special_args[]):
20716 Remove duplicate ISA bits.
20717
20718 2016-03-22 Jakub Jelinek <jakub@redhat.com>
20719
20720 PR target/70329
20721 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20722 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
20723 in a way that works also for AVX512BW.
20724
20725 PR target/70300
20726 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20727 instead of source if operands[1] is xmm16 and above and
20728 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20729 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20730
20731 PR c++/70295
20732 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20733 on assign if (*from_p) is a comparison, set it to
20734 TREE_NO_WARNING (*from_p).
20735
20736 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20737
20738 PR middle-end/70326
20739 * lra.c (restore_scratches): Ignore deleted insns.
20740
20741 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20742 Jakub Jelinek <jakub@redhat.com>
20743
20744 PR tree-optimization/70317
20745 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20746 to HONOR_NANS.
20747
20748 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20749
20750 PR target/70327
20751 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20752 of ix86_expand_move.
20753 (movoi): Ditto.
20754 (movti): Use general_operand for operand 1 predicate.
20755
20756 2016-03-21 Martin Liska <mliska@suse.cz>
20757
20758 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20759 insns.
20760 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20761
20762 2016-03-21 Martin Liska <mliska@suse.cz>
20763
20764 PR ipa/70306
20765 * ipa-icf.c (sem_function::parse): Skip static
20766 constructors and destructors.
20767
20768 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20769
20770 PR target/70296
20771 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20772 function-like macro, peek following token(s) if it is followed
20773 by CPP_OPEN_PAREN token with optional padding in between, and
20774 if not, don't treat it like a macro.
20775
20776 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20777 Alexander Monakov <amonakov@ispras.ru>
20778
20779 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20780 for the stabs debug format.
20781
20782 2016-03-21 Richard Biener <rguenther@suse.de>
20783
20784 PR tree-optimization/70310
20785 * tree-vect-generic.c (expand_vector_condition): Fold the built
20786 condition.
20787
20788 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20789
20790 PR target/70293
20791 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20792 Block third alternative for AVX-512VL target,
20793
20794 2016-03-21 Martin Liska <mliska@suse.cz>
20795
20796 PR hsa/70234
20797 * hsa-brig.c (emit_function_directives): Mark unemitted
20798 global variables for emission.
20799 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20800 (get_symbol_for_decl): Likewise.
20801 * hsa.h (struct hsa_symbol): New flag.
20802
20803 2016-03-21 Richard Biener <rguenther@suse.de>
20804
20805 PR tree-optimization/70288
20806 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20807 we do not estimate unsimplified all-constant conditionals or
20808 switches as optimized away.
20809
20810 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20811
20812 PR rtl-optimization/69102
20813 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20814 when we have a readonly dependency context.
20815
20816 2016-03-18 Jeff Law <law@redhat.com>
20817
20818 PR rtl-optimization/70263
20819 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20820 (update_equiv_regs): When trying to move a store to after the insn
20821 that sets the source of the store, make sure the store occurs after
20822 the insn that sets the source of the store. When successful note
20823 the REG_EQUIV note created in the dump file.
20824
20825 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20826 Bernd Schmidt <bschmidt@redhat.com>
20827
20828 * doc/extend.texi: Document more potential problems with basic asms.
20829
20830 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20831
20832 PR rtl-optimization/70278
20833 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20834 VOIDmode.
20835
20836 2016-03-18 Jason Merrill <jason@redhat.com>
20837
20838 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20839
20840 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20841
20842 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20843 values to 128b regs.
20844
20845 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20846
20847 PR tree-optimization/70252
20848 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20849 boolean vector has a proper number of elements.
20850 (supportable_narrowing_operation): Likewise.
20851
20852 2016-03-18 Tom de Vries <tom@codesourcery.com>
20853
20854 PR ipa/70269
20855 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20856
20857 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20858
20859 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20860 instead of replace_rtx for DEBUG_INSNs.
20861
20862 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20863
20864 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20865 load type reservations.
20866
20867 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20868
20869 PR target/70188
20870 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20871 define_constraint for "Q" and "T" constraints.
20872
20873 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20874
20875 Tweak the pipeline model for Exynos M1
20876
20877 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20878 model.
20879
20880 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20881
20882 PR c/70264
20883 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20884 where one or both locations aren't within a line_map.
20885
20886 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20887
20888 PR driver/70192
20889 * opts.c (finish_options): Don't set flag_pie to the default if
20890 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20891 if it is -1.
20892
20893 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20894
20895 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20896 true as ALL_REGS argument to replace_rtx.
20897
20898 2016-03-17 Richard Biener <rguenther@suse.de>
20899
20900 PR debug/70271
20901 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20902 last.
20903
20904 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20905
20906 PR target/70245
20907 * rtl.h (replace_rtx): Add ALL_REGS argument.
20908 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20909 equality and assert mode is the same, instead of just rtx pointer
20910 equality.
20911 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20912 true as ALL_REGS argument to replace_rtx.
20913
20914 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20915
20916 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20917 for boolean vector with vector mode only.
20918 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20919
20920 2016-03-17 Nick Clifton <nickc@redhat.com>
20921
20922 PR target/70162
20923 * config/rx/rx.c (rx_print_integer): Print negative constants in
20924 decimal.
20925
20926 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20927
20928 PR target/70261
20929 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20930
20931 2016-03-16 Richard Henderson <rth@redhat.com>
20932 Richard Biener <rguenth@suse.de>
20933
20934 PR middle-end/70240
20935 PR middle-end/68215
20936 PR tree-opt/68714
20937 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20938 first operand as is_gimple_condexpr.
20939
20940 PR middle-end/70240
20941 PR middle-end/68215
20942 Revert r231575
20943 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
20944 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20945 Do not gimplify the result.
20946 (do_unop): Adjust call to tree_vec_extract.
20947 (do_binop): Likewise.
20948 (do_compare): Likewise.
20949 (do_plus_minus): Likewise.
20950 (do_negate): Likewise.
20951 (expand_vector_condition): Likewise.
20952 (do_cond): Likewise.
20953
20954 2016-03-16 Richard Henderson <rth@redhat.com>
20955
20956 PR target/70048
20957 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20958 (aarch64_classify_address): Use it.
20959 (aarch64_legitimize_address): Force all subexpressions of PLUS
20960 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
20961
20962 2016-03-16 Jakub Jelinek <jakub@redhat.com>
20963 Richard Biener <rguenth@suse.de>
20964
20965 PR target/70245
20966 * rtlanal.c (replace_rtx): For REG, if from is a REG,
20967 return to even if only REGNO is equal, and assert
20968 mode is the same.
20969
20970 2016-03-11 Jeff Law <law@redhat.com>
20971
20972 PR rtl-optimization/70224
20973 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20974
20975 2016-03-16 Richard Henderson <rth@redhat.com>
20976
20977 PR middle-end/70199
20978 * function.h (struct function): Add has_forced_label_in_static.
20979 * gimplify.c (force_labels_r): Set it.
20980 * lto-streamer-in.c (input_struct_function_base): Read it.
20981 * lto-streamer-out.c (output_struct_function_base): Write it.
20982 * tree-inline.c (has_label_address_in_static_1): Remove.
20983 (copy_forbidden): Remove fndecl parameter; test
20984 has_forced_label_in_static.
20985 (inline_forbidden_p): Update call to copy_forbidden.
20986 (tree_versionable_function_p): Likewise.
20987 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
20988 (chkp_versioning): Likewise.
20989 * tree-inline.h (copy_forbidden): Update decl.
20990
20991 2016-03-16 Marek Polacek <polacek@redhat.com>
20992
20993 PR c/70093
20994 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
20995 function being thunked if the result type doesn't have fixed size.
20996 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
20997 doesn't have fixed size.
20998
20999 2016-03-16 Bin Cheng <bin.cheng@arm.com>
21000
21001 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
21002 reporting malformed loop nest.
21003
21004 2016-03-16 Tom de Vries <tom@codesourcery.com>
21005
21006 PR lto/70187
21007 * ipa-devirt.c (possible_polymorphic_call_targets): Move
21008 nodes.length () == 1 test to before first nodes[0] access.
21009
21010 2016-03-16 Tom de Vries <tom@codesourcery.com>
21011
21012 PR tree-optimization/68715
21013 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
21014 single_pred_p test.
21015
21016 2016-03-16 Tom de Vries <tom@codesourcery.com>
21017
21018 PR tree-optimization/68809
21019 * graphite-scop-detection.c (same_close_phi_node): Test if result types
21020 are the same.
21021
21022 2016-03-16 Carlos O'Donell <carlos@redhat.com>
21023 Sandra Loosemore <sandra@codesourcery.com>
21024
21025 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
21026 on leaf attribute. Mention ELF interposition problems.
21027
21028 2016-03-16 Alan Modra <amodra@gmail.com>
21029
21030 PR rtl-optimization/69195
21031 PR rtl-optimization/47992
21032 * ira.c (indirect_jump_optimize): Ignore artificial defs.
21033 Add comments.
21034
21035 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
21036
21037 PR bootstrap/69513
21038 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
21039
21040 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21041
21042 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
21043
21044 2016-03-15 Jakub Jelinek <jakub@redhat.com>
21045
21046 PR rtl-optimization/70222
21047 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21048 optimization if mode is different from result_mode, queue up masking
21049 of the result in outer_op. Formatting fix.
21050
21051 PR middle-end/70239
21052 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
21053 of safe_grow.
21054
21055 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21056
21057 PR rtl-optimization/69032
21058 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
21059 looping backwards over basic block insns.
21060
21061 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21062
21063 PR target/66660
21064 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
21065 to non-speculative when propagating trap bits.
21066
21067 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21068
21069 PR rtl-optimization/63384
21070 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
21071 DEBUG_INSN_P insns.
21072
21073 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21074
21075 PR target/64411
21076 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
21077 factored out from ...
21078 (sched_analyze_insn): ... here.
21079 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
21080 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
21081 get_implicit_reg_pending_clobbers in it.
21082 (setup_id_reg_sets): Use setup_id_implicit_regs.
21083 (deps_init_id): Ditto.
21084
21085 2016-03-15 Tom de Vries <tom@codesourcery.com>
21086
21087 PR ipa/70161
21088 * cgraph.c (cgraph_node::get_body): Save, reset and restore
21089 dump_file_name.
21090 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
21091 execute_function_dump.
21092 (execute_one_pass): Don't dump function if it will be dumped after ipa
21093 transform.
21094
21095 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21096
21097 * genrecog.c (match_pattern_2): If pred is NULL don't call
21098 safe_predicate_mode on it.
21099
21100 2016-03-14 Jakub Jelinek <jakub@redhat.com>
21101
21102 PR middle-end/70219
21103 * lra-constraints.c (delete_move_and_clobber): Change assertion
21104 to also allow dregno == 0.
21105
21106 2016-03-14 Richard Henderson <rth@redhat.com>
21107
21108 PR tree-opt/68714
21109 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
21110 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
21111 (reassociate_bb): Use optimize_vec_cond_expr; avoid
21112 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
21113 on vectors.
21114
21115 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
21116
21117 PR target/70083
21118 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
21119 regs.
21120 (lra_create_live_ranges_1): initialize hard register biggest_mode to
21121 VOIDmode.
21122 * lra-constraints.c (split_reg): For hard regs, try to find the
21123 biggest single-register mode used in the function.
21124
21125 2016-03-14 Richard Biener <rguenther@suse.de>
21126
21127 PR tree-optimization/56365
21128 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
21129 constants to compare against.
21130
21131 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
21132
21133 PR target/70098
21134 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
21135 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
21136 (define_split for the GPR case): Use int_reg_operand instead of
21137 gpc_reg_operand for the output.
21138
21139 2016-03-14 Tom de Vries <tom@codesourcery.com>
21140
21141 PR tree-optimization/70045
21142 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
21143 create_empty_if_region_on_edge argument.
21144
21145 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
21146
21147 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
21148 (STACK_CHECK_PROTECT): Likewise.
21149 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21150 (STACK_CHECK_PROTECT): Likewise.
21151 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21152 (STACK_CHECK_PROTECT): Likewise.
21153 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
21154 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21155 (STACK_CHECK_PROTECT): Likewise.
21156
21157 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
21158
21159 PR rtl-optimization/69307
21160 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
21161 registers in modes that span more than one register.
21162
21163 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
21164
21165 PR target/69614
21166 * lra-constraints.c (delete_move_and_clobber): New.
21167 (remove_inheritance_pseudos): Use it.
21168
21169 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
21170
21171 PR ada/70017
21172 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
21173 the libcall is LCT_THROW.
21174 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
21175 for the checking routine.
21176
21177 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21178
21179 PR target/70131
21180 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
21181 optimization if we have direct move.
21182 (roundu32<mode>2_fprs): Likewise.
21183
21184 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
21185
21186 PR target/70123
21187 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
21188 be rematerialized.
21189 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
21190 Arguments swapped. All callers changed. Take reg_renumber into
21191 account, and Calculate and compare register ranges for hard regs.
21192
21193 2016-03-11 Jeff Law <law@redhat.com>
21194
21195 PR tree-optimization/70190
21196 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21197 Handle cases where we can not extract the taken edge, even though we
21198 found a constant value.
21199
21200 PR tree-optimization/64058
21201 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
21202 (num_coalesce_pairs): Move up earlier in file.
21203 (find_coalesce_pair): Initialize the INDEX field for each pair
21204 discovered.
21205 (compare_pairs): No longer sort on the elements in each pair.
21206 Instead break ties with the index of the coalesce pair.
21207
21208 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21209
21210 PR target/70002
21211 * config/aarch64/aarch64-protos.h
21212 (aarch64_save_restore_target_globals): New prototype.
21213 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
21214 Call the above when popping pragma.
21215 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
21216 New function.
21217 (aarch64_set_current_function): Rewrite using the above.
21218
21219 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21220
21221 PR tree-optimization/70177
21222 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
21223 (extract_ops_from_tree): ... this. In the 2 argument
21224 overload remove _1 suffix.
21225 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
21226 (extract_ops_from_tree): ... this.
21227 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
21228 Adjust callers.
21229 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
21230 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
21231 extract_ops_from_tree instead of 2 operand one.
21232
21233 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
21234
21235 PR tree-optimization/70013
21236 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
21237 for constant-pool entries.
21238
21239 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21240
21241 PR rtl-optimization/70174
21242 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
21243 followed by gen_lowpart on force_reg instead of just gen_lowpart.
21244
21245 PR tree-optimization/70169
21246 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
21247 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
21248 for unknown codes.
21249
21250 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
21251 Jakub Jelinek <jakub@redhat.com>
21252
21253 PR target/70160
21254 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
21255 of uninitialized values.
21256
21257 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21258
21259 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
21260 define_expand.
21261 ("*trunctddd2"): New pattern definition.
21262 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
21263 TD->DD truncation.
21264
21265 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21266
21267 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
21268 definitions for BFP and DFP rounding modes.
21269 ("fixuns_truncdddi2", "fixuns_trunctddi2")
21270 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
21271 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
21272 ("fix_trunctf<mode>2"): Use the new constants instead of magic
21273 numbers.
21274
21275 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21276
21277 * config/s390/constraints.md: Adjust comment.
21278 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
21279 s390_decompose_addrstyle_without_index.
21280 * config/s390/predicates.md (shift_count_or_setmem_operand):
21281 Rename to setmem_operand.
21282 * config/s390/s390-protos.h
21283 (s390_decompose_shift_count): Rename to
21284 s390_decompose_addrstyle_without_index.
21285 * config/s390/s390.c (s390_decompose_shift_count)
21286 (s390_mem_constraint, print_shift_count_operand)
21287 (print_operand_address, print_operand): Rename
21288 s390_decompose_shift_count to
21289 s390_decompose_addrstyle_without_index and rename
21290 print_shift_count_operand to print_addrstyle_operand troughout the
21291 file.
21292 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
21293 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
21294 Rename shift_count_or_setmem_operand to setmem_operand.
21295 * config/s390/vx-builtins.md ("vec_insert<mode>")
21296 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
21297 nonmemory_operand.
21298
21299 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21300
21301 PR target/70168
21302 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21303 Handle overlapping retval and newval.
21304
21305 2016-03-10 Nick Clifton <nickc@redhat.com>
21306
21307 PR target/7044
21308 * config/aarch64/aarch64.c
21309 (aarch64_override_options_after_change_1): When forcing
21310 flag_omit_frame_pointer to be true, use a special value that can
21311 be detected if this function is called again, thus preventing
21312 flag_omit_leaf_frame_pointer from being forced to be false.
21313
21314 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21315
21316 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
21317 Set x_flag_omit_leaf_frame_pointer when handling
21318 -momit-leaf-frame-pointer.
21319
21320 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21321
21322 PR lto/69589
21323 * cgraph.c (cgraph_node::dump): Dump split_part and
21324 indirect_call_target.
21325 * cgraph.h (cgraph_node): Add indirect_call_target flag.
21326 * ipa.c (has_addr_references_p): Cleanup.
21327 (is_indirect_call_target_p): New.
21328 (walk_polymorphic_call_targets): Do not mark virtuals that may be
21329 called indirectly as local.
21330 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
21331
21332 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21333
21334 PR ipa/69630
21335 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21336 on cxa_pure_virtual.
21337
21338 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21339
21340 PR lto/69589
21341 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
21342
21343 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21344
21345 PR lto/69589
21346 * tree.c (need_assembler_name_p): Only record main variant type names.
21347
21348 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21349
21350 PR target/70113.
21351 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
21352 Always define to 0 or 1.
21353 (TARGET_FIX_ERR_A53_843419): New macro.
21354 * config/aarch64/aarch64-elf-raw.h
21355 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
21356 * config/aarch64/aarch64-linux.h: Likewise.
21357 * config/aarch64/aarch64.c
21358 (aarch64_override_options_after_change_1): Do not default
21359 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
21360 843419 is on.
21361 (aarch64_attributes): Handle fix-cortex-a53-843419.
21362 (aarch64_can_inline_p): Likewise.
21363 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
21364
21365 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
21366 Jakub Jelinek <jakub@redhat.com>
21367
21368 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
21369 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
21370 DECL_COMMONS if flag_unconstrained_commons is set.
21371 * tree-dfa.c (get_ref_base_and_extent): Likewise.
21372 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
21373 (funconstrained-commons): Document.
21374
21375 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21376
21377 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
21378 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
21379
21380 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
21381
21382 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
21383 has a proper number of elements.
21384
21385 2016-03-10 Alan Modra <amodra@gmail.com>
21386
21387 PR rtl-optimization/69195
21388 PR rtl-optimization/47992
21389 * ira.c (recorded_label_ref): Delete.
21390 (update_equiv_regs): Return void.
21391 (indirect_jump_optimize): New function.
21392 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
21393 before regstat_compute_ri. Don't rebuild_jump_labels here.
21394 Delete update_regstat.
21395
21396 2016-03-10 Richard Biener <rguenther@suse.de>
21397
21398 PR tree-optimization/70128
21399 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21400 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
21401
21402 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21403
21404 PR tree-optimization/70152
21405 * tree-sra.c (replace_removed_params_ssa_names): Copy over
21406 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
21407
21408 PR target/70086
21409 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
21410 instead of gen_sse2_loadlpd.
21411 * config/i386/sse.md (*vec_concatv2df): Rename to...
21412 (vec_concatv2df): ... this.
21413
21414 PR tree-optimization/70127
21415 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
21416
21417 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21418
21419 PR c/68473
21420 PR c++/70105
21421 * diagnostic-show-locus.c (compatible_locations_p): New function.
21422 (layout::layout): Sanitize ranges using compatible_locations_p.
21423
21424 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21425
21426 PR c/68473
21427 PR c++/70105
21428 * diagnostic-show-locus.c (layout_range::layout_range): Replace
21429 location_range param with three const expanded_locations * and a
21430 bool.
21431 (layout::layout): Replace call to
21432 rich_location::lazily_expand_location with get_expanded_location.
21433 Extract the range and perform location expansion here, passing
21434 the results to the layout_range ctor.
21435 * diagnostic.c (source_range::debug): Delete.
21436 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
21437 of rich_location::get_expanded_location.
21438 * gcc-rich-location.c (get_range_for_expr): Delete.
21439 (gcc_rich_location::add_expr): Reimplement to avoid the
21440 rich_location::add_range overload that took a location_range,
21441 passing a location_t instead.
21442
21443 2016-03-09 Richard Biener <rguenther@suse.de>
21444 Jakub Jelinek <jakub@redhat.com>
21445
21446 PR tree-optimization/70138
21447 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21448 Also skip vect_double_reduction_def.
21449
21450 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21451
21452 PR target/70049
21453 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
21454 if the operand is "m".
21455
21456 2016-03-09 Nathan Sidwell <nathan@acm.org>
21457
21458 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
21459
21460 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21461
21462 * config/i386/i386.c (processor_target_table): Fix cost table
21463 intialization order for znver1.
21464
21465 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21466
21467 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
21468 - becuase -> because.
21469 * ipa-reference.c (ignore_module_statics): Likewise.
21470 * cgraph.c (cgraph_node::get_body): Likewise.
21471 * ipa-inline.c (early_inliner): Likewise.
21472 * ipa-devirt.c (types_same_for_odr): Likewise.
21473 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
21474 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
21475
21476 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21477
21478 * tree-ssa-math-opts.c: Fix typo in comment.
21479
21480 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21481
21482 PR target/70110
21483 * config/i386/i386.c (scalar_chain::make_vector_copies,
21484 scalar_chain::convert_reg): Call end_sequence in between
21485 get_insns and emit_conversion_insns rather than after both
21486 calls.
21487
21488 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
21489
21490 PR target/70064
21491 * config/i386/i386.h (machine_function): Add
21492 pc_thunk_call_expanded flag.
21493 (ix86_pc_thunk_call_expanded): New define.
21494 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
21495 (*set_got): Rename insn pattern from set_got.
21496 (*set_got_labelled): Rename inst pattern from set_got_labelled.
21497 * config/i386/i386.c (ix86_compute_frame_layout): Use
21498 ix86_pc_thunk_call_expanded to prevent red-zone.
21499
21500 2016-03-07 Martin Jambor <mjambor@suse.cz>
21501
21502 * hsa.h (hsa_get_ctor_statements): Declare.
21503 (hsa_get_dtor_statements): Likewise.
21504 (hsa_get_kernel_dispatch_type): Likewise.
21505 * hsa.c (hsa_get_ctor_statements): New function.
21506 (hsa_get_dtor_statements): Likewise.
21507 (hsa_get_kernel_dispatch_type): Likewise.
21508 * hsa-brig.c (hsa_cdtor_statements): Removed.
21509 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
21510 hsa_get_dtor_statements.
21511 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
21512 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
21513
21514 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
21515
21516 * config/arm/arm-cores.def (cortex-r8): New.
21517 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
21518 * config/arm/arm-tune.md: Likewise.
21519 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
21520
21521 2016-03-07 Martin Sebor <msebor@redhat.com>
21522
21523 PR rtl-optimization/19705
21524 * doc/invoke.texi (Options That Control Optimization): Clarify
21525 -fno-branch-count-reg.
21526
21527 2016-02-26 Richard Biener <rguenther@suse.de>
21528 Jeff Law <law@redhat.com>
21529
21530 PR tree-optimization/69740
21531 * cfghooks.c (remove_edge): Request loop fixups if we delete
21532 an edge that might turn an irreducible loop into a natural
21533 loop.
21534 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
21535 Move after definition of loops_state_clear.
21536
21537 2016-03-07 Bin Cheng <bin.cheng@arm.com>
21538
21539 PR rtl-optimization/69052
21540 * rtlanal.c (commutative_operand_precedence): Set higher precedence
21541 to CONST_WIDE_INT.
21542
21543 2016-03-07 Tom de Vries <tom@codesourcery.com>
21544
21545 PR tree-optimization/70116
21546 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
21547 is_tm_ending stmts and ubsan/asan internal functions.
21548 (find_duplicate): Use it. Don't test is_tm_ending here.
21549
21550 2016-03-07 Richard Biener <rguenther@suse.de>
21551
21552 PR tree-optimization/70115
21553 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
21554 (propagate_constants_for_unrolling): Use replace_uses_by.
21555
21556 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
21557
21558 PR middle-end/69916
21559 * omp-low.c (struct oacc_loop): Add ifns.
21560 (new_oacc_loop_raw): Initialize it.
21561 (finish_oacc_loop): Clear mask & flags if no ifns.
21562 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
21563 (oacc_loop_xform_loop): Add ifns arg & adjust.
21564 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
21565
21566 2016-03-07 Richard Henderson <rth@redhat.com>
21567
21568 PR rtl-opt/70061
21569 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
21570 (insert_value_copy_on_edge): Likewise.
21571
21572 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21573
21574 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
21575
21576 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21577
21578 PR target/62281
21579 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
21580
21581 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21582
21583 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
21584
21585 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21586
21587 Fix sseimul type attribute.
21588 * config/i386/znver1.md
21589 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21590 znver1_sseimul_avx256_load) : Fix the type attribute.
21591 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21592 pipe usage and latency.
21593
21594 2016-03-05 Jakub Jelinek <jakub@redhat.com>
21595
21596 PR c++/70084
21597 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21598 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21599 to the right type.
21600
21601 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21602
21603 PR c/69973
21604 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21605
21606 PR rtl-optimization/69941
21607 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21608 the reg share its mode.
21609
21610 2016-03-04 Jeff Law <law@redhat.com>
21611
21612 PR tree-optimization/69196
21613 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21614 If the both SSA_NAMEs are anonymous, then consider them unassociated
21615 and include the PHI in the statement count.
21616
21617 2016-03-05 Tom de Vries <tom@codesourcery.com>
21618
21619 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21620 construct in oacc routine. Check for oacc region in oacc routine.
21621
21622 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR target/70062
21625 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
21626 2016-02-22 changes, instead don't recurse if RECUR is already true.
21627 Don't change *dynamic_check if RECUR. Adjust recursive caller
21628 to pass true to the new argument.
21629 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21630
21631 PR target/70059
21632 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21633 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21634 fixes.
21635 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
21636
21637 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21638
21639 PR rtl-optimization/57676
21640 * lra-assigns.c (lra_assign): Guard test for maximum iterations
21641 with flag_checking.
21642
21643 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
21644
21645 * tree-vect-patterns.c (search_type_for_mask): Handle
21646 comparison of booleans.
21647
21648 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21649
21650 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21651 Fix @xref usage.
21652
21653 PR debug/69947
21654 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21655 all other ops that have dw_val_class_die_ref operands,
21656 and DW_OP_GNU_entry_value.
21657
21658 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21659
21660 PR rtl-optimization/69904
21661 * config/arm/arm.c (arm_cannot_copy_insn_p):
21662 Return true for load-exclusive instructions.
21663
21664 2016-03-03 Jakub Jelinek <jakub@redhat.com>
21665
21666 PR target/70021
21667 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21668 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21669 the pattern no matter if it is used just by non-pattern, pattern
21670 or mix thereof.
21671 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21672 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21673 oprnd1 def_stmt is in pattern, don't look through it.
21674
21675 2016-03-03 Marek Polacek <polacek@redhat.com>
21676
21677 PR middle-end/70050
21678 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21679
21680 2016-03-03 Martin Liska <mliska@suse.cz>
21681
21682 PR tree-optimization/70043
21683 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21684 previous statement if we see a debug statement.
21685
21686 2016-03-03 Richard Biener <rguenther@suse.de>
21687
21688 PR tree-optimization/55936
21689 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21690 parameter and guard unsafe equivalence use.
21691 (vrp_evaluate_conditional_warnv_with_ops): Always use
21692 safe equivalences but not via the quadratic compare_names
21693 helper.
21694
21695 2016-03-03 Michael Collison <michael.collison@linaro.org>
21696
21697 PR target/70014
21698 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21699 for operand 1 to s_register_operand. Change predicate for operand
21700 2 to arm_not_immediate_operand.
21701
21702 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
21703
21704 * doc/tm.texi: Regenerated.
21705
21706 2016-03-02 Richard Henderson <rth@redhat.com>
21707
21708 PR rtl-opt/67145
21709 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21710 simplification when all args are positive non-fixed registers.
21711
21712 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21713
21714 * target.def (lra_p): Specify that new ports should use LRA.
21715
21716 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21717
21718 PR libgomp/69555
21719 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21720 gimplify_type_sizes the type they refer to.
21721 (omp_notice_variable): Handle reference vars to VLAs.
21722 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21723 reference to VLA decls in the second pass instead of first pass.
21724
21725 2016-03-02 Tom de Vries <tom@codesourcery.com>
21726
21727 PR tree-optimization/68659
21728 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21729 new_expr == NULL_TREE.
21730 (get_new_name): Handle ADDR_EXPR.
21731
21732 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21733
21734 PR rtl-optimization/69052
21735 * loop-invariant.c (canonicalize_address): New function.
21736 (inv_can_prop_to_addr_use): Check validity of address expression
21737 which is canonicalized by above function.
21738
21739 2016-03-02 Alan Modra <amodra@gmail.com>
21740
21741 PR ipa/69990
21742 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21743 larger alignment.
21744
21745 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21746
21747 PR target/70028
21748 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21749 (*movhi_internal): Put mask moves from and to memory separately
21750 from moves from/to GPRs.
21751
21752 2016-03-02 Richard Biener <rguenther@suse.de>
21753
21754 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21755 GENERIC expressions in GIMPLE.
21756
21757 2016-03-02 Richard Biener <rguenther@suse.de>
21758
21759 * config/i386/i386.c (type_natural_mode): Fix typo.
21760
21761 2016-03-02 Nick Clifton <nickc@redhat.com>
21762
21763 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21764
21765 2016-03-02 Richard Biener <rguenther@suse.de>
21766 Uros Bizjak <ubizjak@gmail.com>
21767
21768 PR target/67278
21769 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21770
21771 2016-03-02 Richard Biener <rguenther@suse.de>
21772
21773 PR middle-end/67278
21774 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21775
21776 2016-03-02 Marek Polacek <polacek@redhat.com>
21777
21778 PR c/67854
21779 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21780 "is promoted to" warning.
21781
21782 2016-03-01 DJ Delorie <dj@redhat.com>
21783
21784 * config.gcc: Deprecate mep-*.
21785
21786 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21787
21788 PR middle-end/70025
21789 * lra-constraints.c (regno_val_use_in): New.
21790 (match_reload): Use it instead of regno_use_in.
21791
21792 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21793
21794 PR rtl-optimization/70007
21795 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21796 references present in REG_EQUAL notes attached to non-SET patterns.
21797
21798 2016-03-01 Jeff Law <law@redhat.com>
21799
21800 PR tree-optimization/69196
21801 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21802 Appropriately clamp the number of statements to copy when the
21803 thread path does not traverse a loop backedge.
21804
21805 PR tree-optimization/69196
21806 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21807 Do count some PHIs in the thread path against the insn count. Decrease
21808 final statement count by one as the control statement in the last
21809 block will get removed. Remove special cased code for handling PHIs
21810 in the last block.
21811
21812 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21813
21814 PR target/70027
21815 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21816 asm dialect alternatives to explicit GOTPCREL calls.
21817
21818 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21819
21820 PR ada/70017
21821 * ira.c (do_reload): Issue warning for generic stack checking here...
21822 * reload1.c (reload): ...instead of here and streamline it.
21823
21824 2016-03-01 Nick Clifton <nickc@redhat.com>
21825
21826 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21827
21828 2016-03-01 Richard Biener <rguenther@suse.de>
21829
21830 PR tree-optimization/69983
21831 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21832 types and fall back to operand_equal_p.
21833
21834 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21835
21836 Revert
21837 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21838
21839 * config/s390/constraints.md ("jm8"): New constraint.
21840 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21841 predicate.
21842 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21843 into ...
21844 ("*setmem_long<setmem_and>"): New pattern.
21845 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21846 into ...
21847 ("*setmem_long_31z<setmem_and>"): New pattern.
21848 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21849 New substitution rules with the required attributes.
21850
21851
21852 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21853
21854 Revert
21855 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21856
21857 * gensupport.c (process_substs_on_one_elem): Split loop to
21858 complete mark_operands_used_in_match_dup on all expressions in the
21859 vector first.
21860 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21861 and remove function.
21862
21863 2016-03-01 Richard Biener <rguenther@suse.de>
21864
21865 PR middle-end/70022
21866 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21867 vector BIT_FIELD_REF extract.
21868
21869 2016-03-01 Richard Biener <rguenther@suse.de>
21870
21871 PR tree-optimization/69994
21872 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21873
21874 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21875
21876 PR tree-optimization/69956
21877 * tree-vect-stmts.c (supportable_widening_operation): Support
21878 multi-step conversion of boolean vectors.
21879 (supportable_narrowing_operation): Likewise.
21880
21881 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21882
21883 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21884 anymore.
21885
21886 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21887
21888 * config/s390/subst.md (DSI_VI): New mode iterator.
21889 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21890 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21891 the insn definition.
21892 ("*vec_set<mode>"): Change predicate and add alternative to
21893 support only either register or const_int operands as element
21894 selector.
21895 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21896 operands.
21897 ("vec_extract<mode>"): New expander.
21898 ("*vec_extract<mode>"): New insn definition supporting reg and
21899 const_int element selectors.
21900 ("*vec_extract<mode>_plus"): New insn definition supporting
21901 reg+const_int element selectors.
21902 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21903 following expander+insn definition.
21904 ("<vec_shifts_name><mode>3"): New expander.
21905 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21906
21907 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21908
21909 * config/s390/s390.md ("*tabort_1"): Change predicate to
21910 nonmemory_operand. Add a second alternative to cover
21911 register as well as const int operands.
21912 ("*tabort_1_plus"): New pattern definition.
21913
21914 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21915
21916 * config/s390/s390.md ("*ashrdi3_cc_31")
21917 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21918 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21919 Merge insn definitions into ...
21920 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21921 New pattern definition.
21922 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21923 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21924 ("*ashr<mode>3_and"): Merge insn definitions into ...
21925 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21926 New pattern definition.
21927 * config/s390/subst.md ("addr_style_op_cc_subst")
21928 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21929 substitutions patterns plus attributes.
21930 Add ashiftrt to SUBST iterator.
21931
21932 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21933
21934 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21935 op2 to nonmemory_operand.
21936 ("*<shift>di3_31", "*<shift>di3_31_and"):
21937 Merge into single pattern definition ...
21938 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21939 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21940 pattern definition ...
21941 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21942 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21943 iterator.
21944
21945 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21946
21947 * config/s390/predicates.md (const_int_6bitset_operand): New
21948 predicate.
21949 * config/s390/s390.md: Include subst.md.
21950 ("rotl<mode>3"): New expander.
21951 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21952 ...
21953 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21954 * config/s390/subst.md: New file.
21955
21956 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21957
21958 * config/s390/s390.md ("op_type", "atype", "length" attributes):
21959 Remove RRR type. It doesn't really exist.
21960 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21961 attributes.
21962 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21963 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21964 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21965 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21966 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21967 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21968 `enabled' attribute.
21969
21970 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21971
21972 * gensupport.c (process_substs_on_one_elem): Split loop to
21973 complete mark_operands_used_in_match_dup on all expressions in the
21974 vector first.
21975 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21976 and remove function.
21977
21978 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21979
21980 PR target/69706
21981 * config/sparc/sparc.c (NWORDS_UP): Rename to...
21982 (CEIL_NWORDS): ...this. Use CEIL macro.
21983 (compute_fp_layout): Adjust to above renaming.
21984 (function_arg_union_value): Likewise.
21985 (sparc_arg_partial_bytes): Likewise.
21986 (sparc_function_arg_advance): Likewise.
21987
21988 2016-02-29 Jeff Law <law@redhat.com>
21989
21990 PR tree-optimization/70005
21991 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
21992 where an object with a boolean range is compared against a value
21993 outside [0..1].
21994
21995 PR tree-optimization/69999
21996 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
21997 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
21998 loop cleanups.
21999
22000 2016-02-29 Richard Biener <rguenther@suse.de>
22001
22002 PR tree-optimization/69994
22003 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
22004 (get_unary_op): Look through nop conversions.
22005 (ops_equal_values_p): New function, look for equality diregarding
22006 nop conversions.
22007 (eliminate_plus_minus_pair): Use ops_equal_values_p
22008 (repropagate_negates): Do not use get_unary_op here.
22009
22010 2016-02-29 Martin Liska <mliska@suse.cz>
22011
22012 * system.h: Poison ENABLE_CHECKING macro.
22013
22014 2016-02-29 Martin Liska <mliska@suse.cz>
22015
22016 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
22017 is presented in dump flags.
22018 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22019 (hsa_regalloc): Likewise.
22020
22021 2016-02-19 Richard Biener <rguenther@suse.de>
22022
22023 PR tree-optimization/69980
22024 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
22025 permutation of those we need to keep.
22026
22027 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22028
22029 PR target/69706
22030 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
22031 (NWORDS_UP): ...this
22032 (init_cumulative_args): Minor tweaks.
22033 (sparc_promote_function_mode): Likewise.
22034 (scan_record_type): Delete.
22035 (traverse_record_type): New function template.
22036 (classify_data_t): New structure type.
22037 (classify_registers): New inline function.
22038 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
22039 exhausted. Instantiate traverse_record_type on classify_registers and
22040 deal with the case of a structure passed in slot #15 with no FP field
22041 in the first word.
22042 (assign_data_t): New structure type.
22043 (compute_int_layout): New static function.
22044 (compute_fp_layout): Likewise.
22045 (count_registers): New inline function.
22046 (assign_int_registers): New static function.
22047 (assign_fp_registers): Likewise.
22048 (assign_registers): New inline function.
22049 (function_arg_record_value_1): Delete.
22050 (function_arg_record_value_2): Likewise.
22051 (function_arg_record_value_3): Likewise.
22052 (function_arg_record_value): Adjust to above changes. Instantiate
22053 traverse_record_type on count_registers to first count the number of
22054 registers to be used and then on assign_registers to assign them.
22055 (function_arg_union_value): Adjust to above renaming.
22056 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
22057 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
22058 case of a structure passed in slot #15
22059 (sparc_function_arg_advance): Likewise.
22060 (function_arg_padding): Minor tweak.
22061
22062 2016-02-29 Richard Biener <rguenther@suse.de>
22063
22064 PR tree-optimization/69720
22065 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
22066 the adjustment_def path for possibly vectorized defs.
22067 (vect_create_epilog_for_reduction): Handle vectorized initial
22068 defs properly.
22069
22070 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
22071
22072 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
22073
22074 2016-02-27 Jeff Law <law@redhat.com>
22075
22076 Revert
22077 2016-02-26 Richard Biener <rguenther@suse.de>
22078 Jeff Law <law@redhat.com>
22079
22080 PR tree-optimization/69740
22081 * cfghooks.c (remove_edge): Request loop fixups if we delete
22082 an edge that might turn an irreducible loop into a natural
22083 loop.
22084
22085 2016-02-27 Jakub Jelinek <jakub@redhat.com>
22086
22087 PR rtl-optimization/69896
22088 * tree-vect-generic.c (get_compute_type): Avoid single element
22089 vector types.
22090
22091 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
22092
22093 Rename the AArch64 tuning option and related functions to enable the
22094 Newton series for the reciprocal square root to reflect its
22095 approximative characteristic.
22096
22097 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
22098 function to "aarch64_emit_approx_rsqrt".
22099 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
22100 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
22101 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
22102 (xgene1_tunings): Likewise.
22103 (use_rsqrt_p): Likewise.
22104 (aarch64_emit_swrsqrt): Use new function name.
22105 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
22106 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
22107 text explaining this option.
22108 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
22109
22110 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22111
22112 PR target/69969
22113 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22114 complain about -mallow-movmisalign without -mvsx if
22115 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
22116
22117 2016-02-26 Joel Sherrill <joel@rtems.org>
22118
22119 * config.gcc: Add x86_64-*-rtems*.
22120 * config/i386/rtems-64.h: New file.
22121
22122 2016-02-26 Joel Sherrill <joel@rtems.org>
22123
22124 * config.gcc: Add aarch64-*-rtems*.
22125 * config/aarch64/rtems.h: New file.
22126
22127 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
22128
22129 PR target/69946
22130 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
22131 shift amount using %h. Add comment.
22132
22133 2016-02-26 Richard Biener <rguenther@suse.de>
22134 Jeff Law <law@redhat.com>
22135
22136 PR tree-optimization/69740
22137 * cfghooks.c (remove_edge): Request loop fixups if we delete
22138 an edge that might turn an irreducible loop into a natural
22139 loop.
22140
22141 2016-02-26 Martin Jambor <mjambor@suse.cz>
22142
22143 PR middle-end/69920
22144 * tree-sra.c (sra_modify_assign): Do not remove loads of
22145 uninitialized aggregates to SSA_NAMEs.
22146
22147 2016-02-26 Richard Henderson <rth@redhat.com>
22148
22149 PR target/69709
22150 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
22151 pseudo in case the target rtx matches the source of the left
22152 shift.
22153
22154 2016-02-26 Martin Jambor <mjambor@suse.cz>
22155
22156 PR hsa/69568
22157 * hsa.h (hsa_type_packed_p): Declare.
22158 * hsa.c (hsa_type_packed_p): New function.
22159 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
22160 loads.
22161 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
22162 * hsa-brig.c (emit_basic_insn): Likewise.
22163
22164 2016-02-26 Martin Jambor <mjambor@suse.cz>
22165
22166 pr hsa/69674
22167 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
22168 pointers.
22169 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
22170
22171 2016-02-26 Martin Jambor <mjambor@suse.cz>
22172
22173 * hsa.h (is_a_helper): New overload for hsa_op_immed for
22174 hsa_op_with_type operands.
22175 (hsa_unsigned_type_for_type): Declare.
22176 * hsa.c (hsa_unsigned_type_for_type): New function.
22177 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
22178 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
22179 the finalizer. Do not emit extra move.
22180
22181 2016-02-26 Martin Jambor <mjambor@suse.cz>
22182
22183 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
22184 atomic operations in private segment.
22185
22186 2016-02-26 Martin Jambor <mjambor@suse.cz>
22187
22188 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
22189 statements to wi->info. Also disallow omp simd constructs.
22190 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
22191 for not gridifying. Dump special string for omp_for.
22192
22193 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22194
22195 PR target/69245
22196 * config/aarch64/aarch64.c (aarch64_set_current_function):
22197 Save/restore target globals when switching to
22198 target_option_default_node.
22199
22200 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22201
22202 PR target/69613
22203 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
22204 Return 0 if !SHIFT_COUNT_TRUNCATED.
22205
22206 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22207 Eric Botcazou <ebotcazou@adacore.com>
22208
22209 PR rtl-optimization/69891
22210 * dse.c (scan_insn): If we can't figure out memset arguments
22211 or they are non-constant, call clear_rhs_from_active_local_stores.
22212
22213 2016-02-26 Martin Liska <mliska@suse.cz>
22214
22215 * doc/extend.texi: Mention clog10, clog10f an clog10l
22216 in Builtins section.
22217
22218 2016-02-26 Martin Liska <mliska@suse.cz>
22219
22220 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
22221 CHECKING_P.
22222 (resolve_args_picking_1): Likewise.
22223 * dwarf2out.h (struct GTY): Likewise.
22224
22225 2016-02-26 Martin Liska <mliska@suse.cz>
22226
22227 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
22228 with flag_checking.
22229 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22230
22231 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22232 Martin Liska <mliska@suse.cz>
22233
22234 * doc/install.texi: Mention --enable-valgrind-annotations.
22235
22236 2016-02-26 Richard Biener <rguenther@suse.de>
22237
22238 PR tree-optimization/69551
22239 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
22240 looking through aliases adjust DECL_PT_UID to refer to the
22241 ultimate alias target.
22242
22243 2016-02-25 Martin Liska <mliska@suse.cz>
22244
22245 PR middle-end/69919
22246 * alloc-pool.c (after_memory_report): New variable.
22247 * alloc-pool.h (base_pool_allocator ::release): Do not use
22248 the infrastructure if after_memory_report.
22249 * toplev.c (toplev::main): Mark after memory report.
22250
22251 2016-02-25 Richard Biener <rguenther@suse.de>
22252
22253 PR tree-optimization/48795
22254 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
22255
22256 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
22257
22258 PR driver/68463
22259 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
22260 offloading is enabled and -fopenacc or -fopenmp is specified.
22261 (CRTOFFLOADEND): Likewise.
22262 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
22263 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
22264 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
22265 (offload_objects_file_name): New static var.
22266 (tool_cleanup): Remove offload_objects_file_name file.
22267 (find_offloadbeginend): Replace with ...
22268 (find_crtoffloadtable): ... this.
22269 (run_gcc): Remove offload_argc and offload_argv.
22270 Get offload_objects_file_name from -foffload-objects=... option.
22271 Read names of object files with offload from this file, pass them to
22272 compile_images_for_offload_targets. Don't call find_offloadbeginend and
22273 don't pass offloadbegin and offloadend to the linker. Don't pass
22274 offload non-LTO files to the linker, because now they're not claimed.
22275
22276 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
22277
22278 PR ipa/69630
22279 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22280 on builtin_unreachable.
22281
22282 2016-02-25 Jakub Jelinek <jakub@redhat.com>
22283
22284 PR rtl-optimization/69896
22285 * regcprop.c: Include cfgrtl.h.
22286 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
22287 than remembered mode, either delete it (if noop_move_p), or
22288 treat like copy_p but not noop_p instruction.
22289
22290 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22291
22292 PR debug/69705
22293 * dwarf2out.c (gen_variable_die): Work around buggy LTO
22294 - allow NULL decl for Fortran DW_TAG_common_block variables.
22295
22296 2016-02-24 Jason Merrill <jason@redhat.com>
22297
22298 * common.opt (flifetime-dse): Add -flifetime-dse=1.
22299
22300 2016-02-24 Richard Biener <rguenther@suse.de>
22301 Jakub Jelinek <jakub@redhat.com>
22302
22303 PR middle-end/69760
22304 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
22305 conditionally executed ops to well-defined overflow behavior.
22306
22307 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22308
22309 PR middle-end/69915
22310 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
22311 elements.
22312
22313 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22314
22315 PR rtl-optimization/69886
22316 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
22317 argument. Use it when checking validity of set instructions.
22318 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
22319 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
22320 callsite.
22321 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
22322 * store-motion.c (find_moveable_store): Update
22323 can_assign_to_reg_without_clobbers_p callsite.
22324
22325 2016-02-24 Richard Biener <rguenther@suse.de>
22326
22327 PR middle-end/68963
22328 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
22329 bogus check.
22330 (record_nonwrapping_iv): Do not fall back to the low/high bound
22331 for non-constant IV bases if the stmt is not always executed.
22332
22333 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22334
22335 * config/arm/arm-cores.def (cortex-a32): New entry.
22336 * config/arm/arm-tables.opt: Regenerate.
22337 * config/arm/arm-tune.md: Regenerate.
22338 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
22339 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
22340 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
22341 for -mcpu and -mtune.
22342
22343 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22344
22345 PR target/69875
22346 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
22347 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
22348 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
22349 (atomic_loaddi_1): Delete.
22350 (atomic_loaddi): Rewrite expander using the above changes.
22351
22352 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22353
22354 PR c/69918
22355 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
22356 2 to 3.
22357
22358 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22359 Richard Biener <rguenth@suse.de>
22360
22361 PR middle-end/69909
22362 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
22363 set_mem_attributes if tem is SSA_NAME which got expanded
22364 as a MEM.
22365
22366 2016-02-24 Richard Biener <rguenther@suse.de>
22367
22368 PR tree-optimization/69907
22369 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
22370 end of permutations for BB vectorization.
22371
22372 2016-02-24 Christian Bruel <christian.bruel@st.com>
22373
22374 * config/arm/arm-c.c (arm_option_override): Initialize
22375 target_option_current_node.
22376 * config/arm/arm.c (arm_pragma_target_parse): Replace
22377 build_target_option_node call by target_option_current_node.
22378 Set target_option_current_node.
22379 Fix comments.
22380
22381 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
22382
22383 PR target/69810
22384 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
22385 define_insn_and_split to define_insn.
22386 (zero_extendqi<mode>2_dot2): Same.
22387 (extendqi<mode>2_dot): Same.
22388 (extendqi<mode>2_dot2): Same.
22389
22390 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22391
22392 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
22393 and add bypass for AES{D,E} and AESMC pairs.
22394 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
22395 and AESMC pairs.
22396
22397 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22398
22399 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
22400 series for reciprocal square root in Exynos M1.
22401
22402 2016-02-23 Martin Sebor <msebor@redhat.com>
22403
22404 PR c/69759
22405 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
22406 __builtin_alloca_with_align.
22407
22408 2016-02-23 Richard Henderson <rth@redhat.com>
22409
22410 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
22411 (ix86_register_pragmas): Remove __seg_tls.
22412 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
22413 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
22414 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
22415 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
22416 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
22417 * doc/extend.texi (__seg_tls): Remove item.
22418
22419 2016-02-23 Richard Biener <rguenther@suse.de>
22420
22421 * alloc-pool.h (struct allocation_object): Make id member
22422 conditional on CHECKING_P again.
22423 (get_instance): Adjust.
22424 (base_pool_allocator): Likewise.
22425
22426 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
22427
22428 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
22429 (parallelize_loops): In OpenACC kernels mode, set n_threads to
22430 zero.
22431 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
22432 flag_openacc.
22433 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
22434
22435 2016-02-23 Richard Biener <rguenther@suse.de>
22436
22437 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
22438 * bitmap.h (struct bitmap_usage): Likewise.
22439 (bitmap_move): Declare.
22440 * bitmap.c (register_overhead): Take size_t argument.
22441 (bitmap_move): New function.
22442 * df-problems.c (df_rd_transfer_function): Use bitmap_move
22443 to properly account overhead.
22444 * tree.c (free_node): Use tree_size.
22445
22446 2016-02-23 Jakub Jelinek <jakub@redhat.com>
22447
22448 PR c++/69902
22449 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
22450 when inverting comparison.
22451
22452 PR c/69900
22453 * common.opt (Wunreachable-code): Add Warning flag.
22454
22455 2016-02-23 Mark Wielaard <mjw@redhat.com>
22456 Jakub Jelinek <jakub@redhat.com>
22457
22458 PR c/69911
22459 * cgraphunit.c (check_global_declaration): Check main_input_filename
22460 and DECL_SOURCE_FILE are not NULL.
22461
22462 2016-02-23 Martin Jambor <mjambor@suse.cz>
22463
22464 PR tree-optimization/69666
22465 * tree-sra.c (sra_modify_assign): Do not attempt to create
22466 default_def replacements for unscalarizable regions.
22467
22468 2016-02-20 Mark Wielaard <mjw@redhat.com>
22469
22470 PR c/28901
22471 * cgraphunit.c (check_global_declaration): Check level of
22472 warn_unused_const_variable and main_input_filename.
22473 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
22474 (-Wunused-variable): For C implies -Wunused-const-variable=1.
22475 (-Wunused-const-variable): Explain levels 1 and 2.
22476
22477 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22478
22479 PR target/69888
22480 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
22481 identical arguments. Formatting and spelling fixes.
22482
22483 PR target/69885
22484 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
22485 be specified.
22486
22487 PR target/69894
22488 PR target/69895
22489 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
22490 and m68k-devices.def.
22491 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
22492 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
22493
22494 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
22495
22496 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
22497 and HImode registers.
22498
22499 2016-02-22 Richard Biener <rguenther@suse.de>
22500
22501 PR tree-optimization/69882
22502 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
22503 preserve permutations present because of gaps.
22504 (vect_supported_load_permutation_p): Always continue checking
22505 permutations after vect_attempt_slp_rearrange_stmts.
22506
22507 2016-02-22 Bin Cheng <bin.cheng@arm.com>
22508
22509 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
22510 min_profitable_estimate, rather than min_profitable_iters.
22511
22512 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22513
22514 PR target/69885
22515 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
22516 SImode for last match_operand.
22517
22518 2016-02-22 Martin Liska <mliska@suse.cz>
22519
22520 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
22521 return bitsize - 1 as the return value.
22522
22523 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
22524
22525 PR target/69806
22526 PR target/54089
22527 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
22528 Handle negative shift counts.
22529 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
22530 force_reg on the shift constant.
22531 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
22532 (lshrsi3_d): Handle negative shift counts.
22533
22534 2016-02-22 Richard Biener <rguenther@suse.de>
22535 Tom de Vries <tom@codesourcery.com>
22536
22537 * graph.c: Include dumpfile.h.
22538 (print_graph_cfg): Split into three overloads.
22539 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
22540
22541 2016-02-22 Tom de Vries <tom@codesourcery.com>
22542
22543 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
22544 dump-fn.
22545
22546 2016-02-22 Richard Biener <rguenther@suse.de>
22547
22548 PR ipa/37448
22549 * ipa-inline-transform.c (inline_call): When not updating
22550 overall summaries adjust self size by the growth estimate.
22551 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
22552 hash-set, do not update overall summaries here. Renamed from ...
22553 (inline_to_all_callers): ... this which is now wrapping the
22554 above and performing delayed overall summary update.
22555 (early_inline_small_functions): Delay updating of the overall
22556 summary.
22557
22558 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
22559
22560 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
22561 variable.
22562
22563 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22564
22565 PR driver/69805
22566 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
22567 :%* in %:gt() argument.
22568 (greater_than_spec_func): Adjust for expecting only numbers,
22569 if there are more than two numbers, compare the last two.
22570
22571 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
22572
22573 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
22574 -Wnarrowing with -std.
22575
22576 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22577
22578 PR c++/69851
22579 * expr.c (store_field): Don't use bit-field path if exp is
22580 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
22581 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
22582 and the assignment can be performed by bitwise copy. Formatting
22583 fix.
22584
22585 PR middle-end/69838
22586 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
22587 call copy_reg_eh_region_note_forward on before and/or after sequences
22588 and remove note from insn if it no longer can throw.
22589
22590 PR target/69820
22591 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22592 if TARGET_AVX512BW.
22593
22594 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22595
22596 * config/s390/vector.md: Add missing commutative operand markers
22597 to the patterns which qualify for one.
22598 * config/s390/vx-builtins.md: Likewise.
22599
22600 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22601
22602 * config/s390/vector.md (VI, VI_QHS): Add single element vector
22603 types to mode iterators.
22604 (vec_double): ... and mode attribute.
22605 * config/s390/vx-builtins.md (non_vec_int): Likewise.
22606
22607 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22608
22609 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22610 Change the predicate of op2 from nonimmediate to general and let
22611 reload fix it if necessary.
22612
22613 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22614
22615 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22616
22617 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22618
22619 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22620 mode.
22621
22622 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22623
22624 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22625 * config/s390/s390.c (s390_expand_vec_movstr): New function.
22626 * config/s390/s390.md ("movstr<P:mode>"): Call
22627 s390_expand_vec_movstr.
22628
22629 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22630
22631 * config/s390/s390.md: Add missing output modifier for operand 1
22632 to print it as address properly.
22633
22634 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22635
22636 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22637 * config/s390/2964.md: New file.
22638 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22639 of insn grouping attributes depending on the CPU level.
22640 (s390_get_unit_mask): New function.
22641 (s390_sched_score): Remove the OOO from the scheduling macros.
22642 Add loop to calculate a score for the instruction mix.
22643 (s390_sched_reorder): Likewise plus improve debug output.
22644 (s390_sched_variable_issue): Rename macros as above. Calculate
22645 the unit distances after actually scheduling an insn. Improve
22646 debug output.
22647 (s390_sched_init): Clear last_scheduled_unit_distance array.
22648 * config/s390/s390.md: Include 2964.md.
22649
22650 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22651
22652 PR target/69671
22653 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22654 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22655 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22656 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22657 *avx512f_<code>v8div16qi2_mask_1): New insns.
22658
22659 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22660
22661 PR target/68404
22662 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22663 2016-02-09 change.
22664
22665 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22666 earlyclobber from target. Use wF constraint for fused memory
22667 address.
22668 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22669
22670 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22671 Martin Liska <mliska@suse.cz>
22672
22673 PR sanitizer/69863
22674 * cfgexpand.c (asan_sanitize_stack_p): New function.
22675 (partition_stack_vars): Use the function.
22676 (expand_stack_vars): Likewise.
22677 (defer_stack_allocation): Likewise.
22678 (expand_used_vars): Likewise.
22679
22680 2016-02-18 Richard Biener <rguenther@suse.de>
22681
22682 PR middle-end/69553
22683 * fold-const.c (operand_equal_p): Properly compare offsets for
22684 IMAGPART_EXPR and ARRAY_REF.
22685
22686 2016-02-18 Nick Clifton <nickc@redhat.com>
22687
22688 PR target/62254
22689 PR target/69610
22690 * config/arm/arm.c (arm_option_override_internal): Disable
22691 interworking if the target does not support thumb instructions.
22692 (arm_reload_in_hi): Handle the case where a register to register
22693 move needs reloading because there is no simple pattern to handle
22694 it.
22695 (arm_reload_out_hi): Likewise.
22696
22697 2016-02-18 Richard Biener <rguenther@suse.de>
22698
22699 PR middle-end/69854
22700 * match.pd: Don't use fold_binary or fold_unary for folding
22701 constants.
22702
22703 2016-02-17 Jakub Jelinek <jakub@redhat.com>
22704
22705 PR c++/69850
22706 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22707 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22708 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22709 warn on gimple_no_warning_p statements.
22710
22711 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
22712
22713 * doc/extend.texi (C++ Attributes): Correct description of
22714 warn_unused type attribute.
22715
22716 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22717
22718 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22719 correct instruction.
22720
22721 2016-02-17 Richard Biener <rguenther@suse.de>
22722
22723 PR rtl-optimization/69609
22724 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22725 (find_traces_1_round): When ending a trace update cached priority
22726 of successors.
22727 (bb_to_key): Use cached priority when available.
22728 (copy_bb): Initialize cached priority.
22729 (reorder_basic_blocks_software_trace_cache): Likewise.
22730
22731 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22732
22733 PR target/69161
22734 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22735 New predicate.
22736 (aarch64_comparison_operator): Break overly long line into two.
22737 (aarch64_comparison_operation): Likewise.
22738 * config/aarch64/aarch64.md (cstorecc4): Use
22739 aarch64_comparison_operator_mode instead of
22740 aarch64_comparison_operator.
22741 (cstore<mode>4): Likewise.
22742 (aarch64_cstore<mode>): Likewise.
22743 (*cstoresi_insn_uxtw): Likewise.
22744 (cstore<mode>_neg): Likewise.
22745 (*cstoresi_neg_uxtw): Likewise.
22746
22747 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22748
22749 PR target/69161
22750 * config/arm/predicates.md (arm_comparison_operator_mode):
22751 New predicate.
22752 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22753 instead of arm_comparison_operator.
22754 (*mov_negscc): Likewise.
22755 (*mov_notscc): Likewise.
22756 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22757 (*thumb2_mov_negscc): Likewise.
22758 (*thumb2_mov_negscc_strict_it): Likewise.
22759 (*thumb2_mov_notscc): Likewise.
22760 (*thumb2_mov_notscc_strict_it): Likewise.
22761
22762 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22763
22764 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22765 Add missing return.
22766
22767 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22768
22769 * config/visium/visium.c (machine_libfunc_index): New enum.
22770 (machine_libfuncs): New structure.
22771 (visium_libfuncs): New static variable.
22772 (TARGET_INIT_LIBFUNCS): Define to...
22773 (visium_init_libfuncs): ...this. New function.
22774 (expand_block_move_4): Use the appropriate libfunc.
22775 (expand_block_move_2): Likewise.
22776 (expand_block_move_1): Likewise.
22777 (expand_block_set_4): Likewise.
22778 (expand_block_set_2): Likewise.
22779 (expand_block_set_1): Likewise.
22780 (visium_trampoline_init): Likewise.
22781
22782 2016-02-17 Nick Clifton <nickc@redhat.com>
22783
22784 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22785 TI's devices.csv file as of March 2016.
22786
22787 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22788
22789 PR Target/48344
22790 * opts-global.c (handle_common_deferred_options): Introduce and
22791 initialize two global variables to remember command-line options
22792 specifying a stack-limiting register.
22793 * opts.h: Add extern declarations of the two new global variables.
22794 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22795 variable based on the values of the two new global variables.
22796
22797 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22798
22799 PR c/69835
22800 * common.opt (Wnonnull-compare): New warning.
22801 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22802 of arguments against NULL.
22803 (-Wnonnull-compare): Document.
22804 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22805 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22806 * passes.def (pass_warn_nonnull_compare): Add.
22807 * gimple-ssa-nonnull-compare.c: New file.
22808
22809 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22810
22811 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22812 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22813
22814 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22815
22816 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22817 reciprocal sqrt for -mlow-precision-recip-sqrt.
22818
22819 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22820 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22821
22822 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22823 always use lane loads to construct non-constant vectors.
22824
22825 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22826
22827 * config/aarch64/aarch64.md
22828 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22829 constraints for operand 3.
22830 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22831
22832 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22833 Richard Biener <rguenther@suse.de>
22834
22835 PR tree-optimization/69820
22836 * tree-vect-patterns.c (type_conversion_p): Return false if
22837 *orig_type is unsigned single precision or boolean.
22838 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22839 Formatting fix.
22840
22841 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22842
22843 PR rtl-optimization/69764
22844 PR rtl-optimization/69771
22845 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22846 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22847
22848 2016-02-16 Richard Biener <rguenther@suse.de>
22849
22850 PR tree-optimization/69776
22851 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22852 sets from caller.
22853 (indirect_refs_may_alias_p): Likewise.
22854 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22855 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22856 according to tbaa_p.
22857 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22858 (optimize_stmt): For redundant store discovery do not allow tbaa.
22859
22860 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22861
22862 PR tree-optimization/69714
22863 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22864 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22865
22866 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22867
22868 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22869 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22870 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22871 * config/arc/arc.c (arc_init): Check FPU options.
22872 (get_arc_condition_code): Handle new CC_FPU* modes.
22873 (arc_select_cc_mode): Likewise.
22874 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22875 register pair only. Allow access for ARCv2 accumulator.
22876 (gen_compare_reg): Whenever we have FPU support use FPU compare
22877 instructions.
22878 (arc_reorg): Don't generate brcc insns when FPU compare
22879 instructions are involved.
22880 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22881 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22882 floating point emulation.
22883 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22884 (REVERSE_CONDITION): Add new CC_FPU* modes.
22885 (TARGET_FP_SP_BASE): Define.
22886 (TARGET_FP_DP_BASE): Likewise.
22887 (TARGET_FP_SP_FUSED): Likewise.
22888 (TARGET_FP_DP_FUSED): Likewise.
22889 (TARGET_FP_SP_CONV): Likewise.
22890 (TARGET_FP_DP_CONV): Likewise.
22891 (TARGET_FP_SP_SQRT): Likewise.
22892 (TARGET_FP_DP_SQRT): Likewise.
22893 (TARGET_FP_DP_AX): Likewise.
22894 * config/arc/arc.md (ARCV2_ACC): New constant.
22895 (type): New fpu type attribute.
22896 (SDF): Conditional iterator.
22897 (cstore<mode>, cbranch<mode>): Change expand condition.
22898 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22899 handles FPU/FPX cases as well.
22900 * config/arc/arc.opt (mfpu): New option.
22901 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22902 Renamed.
22903 (adddf3, muldf3, subdf3): Removed.
22904 * config/arc/predicates.md (proper_comparison_operator): Recognize
22905 CC_FPU* modes.
22906 * config/arc/fpu.md: New file.
22907 * doc/invoke.texi (ARC Options): Document mfpu option.
22908
22909 2016-02-16 Richard Biener <rguenther@suse.de>
22910
22911 PR rtl-optimization/69291
22912 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22913 noce_operand_ok check.
22914
22915 2016-02-16 Tom de Vries <tom@codesourcery.com>
22916
22917 PR lto/67709
22918 * omp-low.c (simd_clone_create): Remove call to
22919 symtab->call_cgraph_insertion_hooks.
22920
22921 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22922
22923 PR tree-optimization/69802
22924 * tree-ssa-reassoc.c (update_range_test): If op is
22925 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22926 op == 1 test of precision 1 integral op, otherwise handle
22927 that case as op itself. Fix up formatting.
22928 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22929 up formatting.
22930
22931 2016-02-16 Richard Biener <rguenther@suse.de>
22932
22933 PR tree-optimization/69586
22934 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22935 types for conversion sources.
22936
22937 2016-02-16 Richard Biener <rguenther@suse.de>
22938
22939 PR middle-end/69801
22940 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22941 mask OEP_ADDRESS_OF.
22942
22943 2016-02-16 Alan Modra <amodra@gmail.com>
22944
22945 PR target/68973
22946 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22947 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22948 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22949 (p8_mtvsrwz): New.
22950 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22951 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22952 (p8_fmrgow_<mode>): Likewise.
22953 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
22954 changes.
22955 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22956 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22957 to use movdi_internal64. Remove op0_di.
22958 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22959
22960 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
22961
22962 Add support for the FCCMP insn types
22963
22964 * config/aarch64/aarch64.md (fccmp): Change insn type.
22965 (fccmpe): Likewise.
22966 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22967 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22968 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22969 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22970 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22971 * config/arm/types.md (fccmps): Add new insn type.
22972 (fccmpd): Likewise.
22973
22974 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
22975
22976 * alias.c (get_alias_set): Fix a typo in comment.
22977
22978 2016-02-15 Richard Biener <rguenther@suse.de>
22979
22980 PR tree-optimization/69595
22981 * match.pd: Complete range test simplification to true.
22982
22983 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
22984
22985 PR rtl-optimization/69648
22986 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
22987 pic_offset_table_rtx.
22988
22989 PR rtl-optimization/69752
22990 * ira.c (update_equiv_regs): When looking for more than a single SET,
22991 also take other side effects into account.
22992
22993 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22994
22995 * config/s390/s390.c (s390_function_profiler): Add a new sequence
22996 for z900+ CPUs in 31-bit mode.
22997
22998 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22999
23000 * common/config/s390/s390-common.c (s390_supports_split_stack):
23001 New function.
23002 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
23003 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
23004 * config/s390/s390.c (struct machine_function): New field
23005 split_stack_varargs_pointer.
23006 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
23007 in s390_emit_prologue.
23008 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
23009 vararg pointer.
23010 (morestack_ref): New global.
23011 (SPLIT_STACK_AVAILABLE): New macro.
23012 (s390_expand_split_stack_prologue): New function.
23013 (s390_live_on_entry): New function.
23014 (s390_va_start): Use split-stack vararg pointer if appropriate.
23015 (s390_asm_file_end): Emit the split-stack note sections.
23016 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
23017 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
23018 (UNSPECV_SPLIT_STACK_CALL): New unspec.
23019 (UNSPECV_SPLIT_STACK_DATA): New unspec.
23020 (split_stack_prologue): New expand.
23021 (split_stack_space_check): New expand.
23022 (split_stack_data): New insn.
23023 (split_stack_call): New expand.
23024 (split_stack_call_*): New insn.
23025 (split_stack_cond_call): New expand.
23026 (split_stack_cond_call_*): New insn.
23027
23028 2016-02-15 Richard Biener <rguenther@suse.de>
23029
23030 PR tree-optimization/69783
23031 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23032 Add trivially correct cases.
23033
23034 2016-02-15 Tom de Vries <tom@codesourcery.com>
23035
23036 PR lto/69655
23037 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
23038 do_force_output.
23039 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
23040
23041 2016-02-15 Richard Biener <rguenther@suse.de>
23042
23043 PR tree-optimization/69776
23044 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
23045 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
23046 indicate whether we can use TBAA to disambiguate against stores.
23047 Use alias-set zero if not.
23048 (visit_reference_op_store): Do not use TBAA when looking up
23049 redundant stores.
23050 * tree-ssa-pre.c (compute_avail): Use TBAA here.
23051 (eliminate_dom_walker::before_dom_children): But not when looking
23052 up redundant stores.
23053
23054 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
23055
23056 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
23057
23058 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23059
23060 * config/i386/znver1.md
23061 (znver1_pop, znver1_pop_mem,
23062 znver1_load_imov_double_store,
23063 znver1_load_imov_direct_store,
23064 znver1_load_imov_direct_load,
23065 znver1_load_imov_double_load): Add new.
23066 (znver1_insn, znver1_insn_load): Add icmov type.
23067 (znver1_sseavx_fma,
23068 znver1_sseavx_fma_load,
23069 znver1_avx256_fma,
23070 znver1_avx256_fma_load): Fix pipe usage.
23071
23072 2016-02-14 Alan Modra <amodra@gmail.com>
23073
23074 PR target/68973
23075 * reload.c (find_reloads_address_1): For pre/post-inc/dec
23076 with an invalid hard reg, reload just the reg not the entire
23077 pre/post-inc/dec address expression.
23078
23079 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23080
23081 PR target/67260
23082 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
23083 fixed R1_REG scratch reg.
23084 (sibcall_value_pcrel_fdpic): Likewise.
23085
23086 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23087
23088 PR target/67636
23089 PR target/64345
23090 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
23091
23092 2016-02-12 Walter Lee <walt@tilera.com>
23093
23094 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
23095 * config/tilegx/t-tilegx: Likewise.
23096
23097 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23098
23099 PR other/69554
23100 * diagnostic-show-locus.c (struct line_span): New struct.
23101 (layout::get_first_line): Delete.
23102 (layout::get_last_line): Delete.
23103 (layout::get_num_line_spans): New member function.
23104 (layout::get_line_span): Likewise.
23105 (layout::print_heading_for_line_span_index_p): Likewise.
23106 (layout::get_expanded_location): Likewise.
23107 (layout::calculate_line_spans): Likewise.
23108 (layout::m_first_line): Delete.
23109 (layout::m_last_line): Delete.
23110 (layout::m_line_spans): New field.
23111 (layout::layout): Update comment. Replace m_first_line and
23112 m_last_line with m_line_spans, replacing their initialization
23113 with a call to calculate_line_spans.
23114 (diagnostic_show_locus): When printing source lines and
23115 annotations, rather than looping over a single span
23116 of lines, instead loop over each line_span within
23117 the layout, with an inner loop over the lines within them.
23118 Call the context's start_span callback when changing line spans.
23119 * diagnostic.c (diagnostic_initialize): Initialize start_span.
23120 (diagnostic_build_prefix): Break out the building of the location
23121 part of the string into...
23122 (diagnostic_get_location_text): ...this new function, rewriting
23123 it from nested ternary expressions to a sequence of "if"
23124 statements.
23125 (default_diagnostic_start_span_fn): New function.
23126 * diagnostic.h (diagnostic_start_span_fn): New typedef.
23127 (diagnostic_context::start_span): New field.
23128 (default_diagnostic_start_span_fn): New prototype.
23129
23130 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23131
23132 PR driver/69779
23133 * gcc.c (driver::finalize): Fix cleanup of "specs".
23134
23135 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23136
23137 PR driver/69265
23138 PR driver/69453
23139 * gcc.c (driver::driver): Initialize m_option_suggestions.
23140 (driver::~driver): Clean up m_option_suggestions.
23141 (suggest_option): Convert to...
23142 (driver::suggest_option): ...this, and split out into
23143 driver::build_option_suggestions and find_closest_string.
23144 (driver::build_option_suggestions): New function, from
23145 first half of suggest_option. Special-case
23146 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
23147 the sanitizer_opts array. For options of enum types, add the
23148 various enum values to the candidate strings.
23149 (driver::handle_unrecognized_options): Remove "const".
23150 * gcc.h (driver::handle_unrecognized_options): Likewise.
23151 (driver::build_option_suggestions): New decl.
23152 (driver::suggest_option): New decl.
23153 (driver::m_option_suggestions): New field.
23154 * opts-common.c (add_misspelling_candidates): New function.
23155 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
23156 and make non-static.
23157 * opts.h (sanitizer_opts): New array decl.
23158 (add_misspelling_candidates): New function decl.
23159 * spellcheck.c (find_closest_string): New function.
23160 * spellcheck.h (find_closest_string): New function decl.
23161
23162 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23163
23164 PR rtl-optimization/69764
23165 PR rtl-optimization/69771
23166 * optabs.c (expand_binop_directly): For shift_optab_p, force
23167 convert_modes with VOIDmode if xop1 has VOIDmode.
23168
23169 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
23170
23171 PR target/69729
23172 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
23173 to correctly determine instrumentation thunks.
23174
23175 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23176
23177 PR ipa/69241
23178 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
23179 type by reference, force lhs on the call.
23180
23181 PR ipa/68672
23182 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
23183 Compute retval and retbnd early in all cases if split_part_return_p
23184 and return_bb is not EXIT. Remove all clobber stmts and reset
23185 all debug stmts that refer to SSA_NAMEs defined in split part,
23186 except if it is retval, in that case replace the old retval with the
23187 lhs of the call to the split part.
23188
23189 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23190
23191 revert:
23192 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23193
23194 PR middle-end/66726
23195 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23196 whose result is used in PHI.
23197 (maybe_optimize_range_tests): Likewise.
23198 (final_range_test_p): Likweise.
23199
23200 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23201
23202 PR middle-end/66726
23203 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23204 whose result is used in PHI.
23205 (maybe_optimize_range_tests): Likewise.
23206 (final_range_test_p): Likweise.
23207
23208 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23209
23210 * cgraph.c: Spelling fixes - behaviour -> behavior and
23211 neighbour -> neighbor.
23212 * target.def: Likewise.
23213 * sel-sched.c: Likewise.
23214 * config/mips/mips.c: Likewise.
23215 * config/arc/arc.md: Likewise.
23216 * config/arm/cortex-a57.md: Likewise.
23217 * config/arm/arm.c: Likewise.
23218 * config/arm/neon.md: Likewise.
23219 * config/arm/arm-c.c: Likewise.
23220 * config/vms/vms-c.c: Likewise.
23221 * config/s390/s390.c: Likewise.
23222 * config/i386/znver1.md: Likewise.
23223 * config/i386/i386.c: Likewise.
23224 * config/ia64/hpux-unix2003.h: Likewise.
23225 * config/msp430/msp430.md: Likewise.
23226 * config/rx/rx.c: Likewise.
23227 * config/rx/rx.md: Likewise.
23228 * config/aarch64/aarch64-simd.md: Likewise.
23229 * config/aarch64/aarch64.c: Likewise.
23230 * config/nvptx/nvptx.c: Likewise.
23231 * config/bfin/bfin.c: Likewise.
23232 * config/cris/cris.opt: Likewise.
23233 * config/rs6000/rs6000.c: Likewise.
23234 * target.h: Likewise.
23235 * spellcheck.c: Likewise.
23236 * ira-build.c: Likewise.
23237 * tree-inline.c: Likewise.
23238 * builtins.c: Likewise.
23239 * lra-constraints.c: Likewise.
23240 * explow.c: Likewise.
23241 * hwint.h: Likewise.
23242 * targhooks.c: Likewise.
23243 * tree-vect-data-refs.c: Likewise.
23244 * expr.c: Likewise.
23245 * doc/tm.texi: Likewise.
23246 * doc/extend.texi: Likewise.
23247 * doc/install.texi: Likewise.
23248 * doc/md.texi: Likewise.
23249 * tree-ssa-tail-merge.c: Likewise.
23250 * sched-int.h: Likewise.
23251 * match.pd: Likewise.
23252 * sched-ebb.c: Likewise.
23253 * target.def (omit_struct_return_reg): Likewise.
23254 * gimple-ssa-isolate-paths.c: Likewise.
23255 (find_implicit_erroneous_behaviour): Renamed to...
23256 (find_implicit_erroneous_behavior): ... this.
23257 (find_explicit_erroneous_behaviour): Renamed to...
23258 (find_explicit_erroneous_behavior): ... this.
23259 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
23260
23261 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
23262
23263 PR rtl-optimization/64682
23264 PR rtl-optimization/69567
23265 PR rtl-optimization/69737
23266 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
23267 in I2 as well, just lose it.
23268
23269 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23270
23271 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
23272 New variable.
23273 (aarch64_last_printed_tune_string): Likewise.
23274 (aarch64_declare_function_name): Only output .arch assembler
23275 directive if it will be different from the previously output
23276 directive. Same for .tune comment but only if -dA is set.
23277 (aarch64_start_file): New function.
23278 (TARGET_ASM_FILE_START): Define.
23279
23280 2016-02-11 David Malcolm <dmalcolm@redhat.com>
23281
23282 PR plugins/69758
23283 * Makefile.in (PLUGIN_HEADERS): Add params.list.
23284
23285 2016-02-11 Jakub Jelinek <jakub@redhat.com>
23286
23287 PR target/65313
23288 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
23289 -Wmaybe-uninitialized warning.
23290
23291 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
23292
23293 PR target/69713
23294 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
23295
23296 2016-02-11 Richard Biener <rguenther@suse.de>
23297
23298 PR rtl-optimization/69291
23299 * ifcvt.c (noce_try_store_flag_constants): Do not allow
23300 subexpressions affected by changing the result.
23301
23302 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
23303
23304 PR target/69148
23305 * lra-constraints.c (curr_insn_transform): Find in/out operands
23306 for secondary memory moves. Update dups.
23307
23308 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
23309
23310 PR tree-optimization/69652
23311 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
23312 to nested loop, did source re-formatting, skip debug statements,
23313 add check on statement with volatile operand, remove dead scalar
23314 statements.
23315
23316 2016-02-10 Jakub Jelinek <jakub@redhat.com>
23317 Patrick Palka <ppalka@gcc.gnu.org>
23318
23319 PR ipa/69241
23320 PR c++/69649
23321 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
23322 calls if the return type is TREE_ADDRESSABLE.
23323 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
23324 * ipa-split.c (split_function): Fix doubled "we" in comment.
23325 Use void return type for the split part even if
23326 !split_point->split_part_set_retval.
23327
23328 2016-02-10 Bin Cheng <bin.cheng@arm.com>
23329
23330 PR tree-optimization/68021
23331 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
23332 when computing the value of biv cand by itself.
23333
23334 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23335
23336 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
23337 (cortexa57_tunings): Likewise.
23338 (cortexa72_tunings): Likewise.
23339 (arch_macro_fusion_pair_p): Add support for AES fusion.
23340 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
23341 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
23342 Allow virtual registers before reload so early scheduling works.
23343 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
23344 correct latency and pipeline.
23345 (cortex_a57_crypto_complex): Likewise.
23346 (cortex_a57_crypto_xor): Likewise.
23347 (define_bypass): Add AES bypass.
23348
23349 2016-02-10 Richard Biener <rguenther@suse.de>
23350
23351 PR tree-optimization/69726
23352 * passes.def: Add DCE pass before late uninit.
23353 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
23354 really fixup if-conversions job.
23355
23356 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23357
23358 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
23359 (arm_cortex_a57_tune): Likewise.
23360 (aarch_macro_fusion_pair_p): Add support for AES fusion.
23361 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
23362
23363 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
23364
23365 * timevar.def (TV_PHASE_DBGINFO): Delete.
23366 (TV_PHASE_CHECK_DBGINFO): Likewise.
23367 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
23368
23369 2016-02-10 Richard Biener <rguenther@suse.de>
23370
23371 PR tree-optimization/69719
23372 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23373 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
23374
23375 2016-02-09 Andrew Pinski <apinski@cavium.com>
23376
23377 PR tree-opt/69282
23378 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
23379 get_vcond_mask_icode returns false.
23380
23381 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23382
23383 PR target/68404
23384 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
23385 an ADDIS that adds a pointer to a large constant that sets the
23386 upper16 bits with a load operation.
23387
23388 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23389
23390 PR target/68532
23391 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
23392 order.
23393 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
23394 endian.
23395 (vzipq_s16): Likewise.
23396 (vzipq_s32): Likewise.
23397 (vzipq_f32): Likewise.
23398 (vzipq_u8): Likewise.
23399 (vzipq_u16): Likewise.
23400 (vzipq_u32): Likewise.
23401 (vzipq_p8): Likewise.
23402 (vzipq_p16): Likewise.
23403
23404 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23405
23406 PR target/68532
23407 * config/arm/arm.c (neon_endian_lane_map): New function.
23408 (neon_vector_pair_endian_lane_map): New function.
23409 (arm_evpc_neon_vuzp): Allow for big endian lane order.
23410 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
23411 endian.
23412 (vuzpq_s16): Likewise.
23413 (vuzpq_s32): Likewise.
23414 (vuzpq_f32): Likewise.
23415 (vuzpq_u8): Likewise.
23416 (vuzpq_u16): Likewise.
23417 (vuzpq_u32): Likewise.
23418 (vuzpq_p8): Likewise.
23419 (vuzpq_p16): Likewise.
23420
23421 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
23422
23423 PR target/69634
23424 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
23425 debug insns.
23426
23427 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
23428
23429 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
23430 truncate const_int operand 1 to QImode.
23431
23432 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
23433
23434 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
23435 corresponding to an abnormal edge.
23436
23437 2016-02-09 Tom de Vries <tom@codesourcery.com>
23438
23439 PR tree-optimization/69599
23440 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
23441 function.
23442 (find_func_aliases_for_builtin_call, find_func_clobbers)
23443 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
23444 partition.
23445
23446 2016-02-09 Richard Biener <rguenther@suse.de>
23447
23448 PR tree-optimization/69715
23449 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
23450 LHS on calls as non-rewritable.
23451
23452 2016-02-09 Tom de Vries <tom@codesourcery.com>
23453
23454 PR lto/69707
23455 * lto-wrapper.c (append_diag_options): New function.
23456 (compile_offload_image): Call append_diag_options.
23457
23458 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
23459
23460 PR other/69722
23461 * doc/extend.texi (Flag Output Operands): Correct sectioning.
23462 Minor copy-edit to fix verb tenses.
23463
23464 2016-02-08 Jakub Jelinek <jakub@redhat.com>
23465
23466 PR tree-optimization/69209
23467 * ipa-split.c (split_function): If split part is not
23468 returning retval, retval has gimple type but is not
23469 gimple value, force it into a SSA_NAME first.
23470
23471 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
23472
23473 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
23474 outdated section.
23475
23476 2016-02-08 Jason Merrill <jason@redhat.com>
23477
23478 PR c++/69631
23479 * convert.c (convert_to_integer_1): Check dofold on truncation
23480 distribution.
23481 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
23482 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
23483 Rename from *_nofold.
23484 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
23485 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
23486
23487 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
23488
23489 PR target/60410
23490 * tree.c (build_common_tree_nodes): Remove short_double argument.
23491 All callers changed.
23492 * tree.h (build_common_tree_nodes): Adjust declaration.
23493 * doc/invoke.texi (-fshort-double): Remove documentation.
23494 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23495 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
23496 * lto-wrapper.c (merge_and_complain, append_compiler_options)
23497 (append_linker_options): Don't handle OPT_fshort_double.
23498
23499 PR rtl-optimization/68730
23500 * lra-remat.c (insn_to_cand_activation): New static variable.
23501 (lra_remat): Allocate and free it.
23502 (create_cand): New arg activation. Initialize a field in
23503 insn_to_cand_activation if it is nonnull.
23504 (create_cands): Pass the activation insn to create_cand when making
23505 a candidate involving an output reload. Reorganize code a little.
23506 (do_remat): Keep track of active status of candidates in a separate
23507 bitmap.
23508
23509 2016-02-08 Richard Biener <rguenther@suse.de>
23510
23511 PR tree-optimization/69719
23512 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23513 Properly use absolute of the difference of the two offsets to
23514 compare or adjust the segment length.
23515
23516 2016-02-08 Richard Biener <rguenther@suse.de>
23517 Jeff Law <law@redhat.com>
23518
23519 PR target/68273
23520 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
23521 types for anonymous SSA names.
23522
23523 2016-02-08 Richard Biener <rguenther@suse.de>
23524
23525 PR rtl-optimization/69274
23526 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
23527
23528 2016-02-08 Jeff Law <law@redhat.com>
23529
23530 PR tree-optimization/65917
23531 * tree-ssa-dom.c (record_temporary_equivalences): Record both
23532 equivalences from if (x == y) style conditionals.
23533 (loop_depth_of_name): Remove.
23534 (record_equality): Remove loop depth check.
23535 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
23536 (const_and_copies::record_const_or_copy_raw): New member function.
23537 * tree-ssa-scopedtables.c
23538 (const_and_copies::record_const_or_copy_raw): New, factored out of
23539 (const_and_copies::record_const_or_copy): Call new member function.
23540
23541 2016-02-05 Jeff Law <law@redhat.com>
23542
23543 PR tree-optimization/68541
23544 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
23545 (count_stmts_in_block): New function.
23546 (poor_ifcvt_candidate_code): Likewise.
23547 (is_feasible_trace): Add some heuristics to determine when path
23548 splitting is profitable.
23549 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
23550 is a diamond with a single exit.
23551
23552 2016-02-05 Martin Sebor <msebor@redhat.com>
23553
23554 PR c++/69662
23555 * doc/invoke.texi: Update -Wplacement-new to take an optional
23556 argument.
23557
23558 2016-02-06 Richard Henderson <rth@redhat.com>
23559
23560 PR c/69643
23561 * tree.c (tree_nop_conversion_p): Do not strip casts into or
23562 out of non-standard address spaces.
23563
23564 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23565
23566 PR rtl-optimization/69691
23567 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
23568
23569 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
23570
23571 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
23572 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
23573 (*ieee128_mfvsrd_64bit): Likewise.
23574 (*ieee128_mfvsrd_32bit): Likewise.
23575
23576 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
23577
23578 PR target/69369
23579 Revert r232560:
23580 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23581
23582 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23583 instrumented_version.
23584
23585 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
23586
23587 * doc/invoke.texi (Optimize Options): In table of --param options
23588 rename second occurrence of tracer-min-branch-ratio to
23589 tracer-min-branch-probability, rename
23590 tracer-min-branch-ratio-feedback to
23591 tracer-min-branch-probability-feedback and clarify description,
23592 rename sched-spec-state-edge-prob-cutoff to
23593 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23594 to selsched-insns-to-rename, rename lto-minpartition to
23595 lto-min-partition, delete reorder-blocks-duplicate and
23596 reorder-blocks-duplicate-feedback.
23597
23598 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23599
23600 * config/s390/s390.c (s390_register_info_set_ranges): Remove
23601 superfluous loops.
23602
23603 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
23604
23605 * doc/extend.texi: S/390: Correct some typos.
23606
23607 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23608
23609 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23610
23611 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23612
23613 PR target/69625
23614 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23615 (s390_register_info_gprtofpr): Use new macros above.
23616 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23617 its name.
23618 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23619 its name. Adjust restore and save gpr ranges.
23620 (s390_register_info_set_ranges): New function.
23621 (s390_register_info): Use new macros above. Call
23622 s390_register_info_set_ranges.
23623 (s390_optimize_register_info): Likewise.
23624 (s390_hard_regno_rename_ok): Use new macros.
23625 (s390_hard_regno_scratch_ok): Likewise.
23626 (s390_emit_epilogue): Likewise.
23627 (s390_can_use_return_insn): Likewise.
23628 (s390_optimize_prologue): Likewise.
23629 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23630
23631 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23632
23633 PR bootstrap/69677
23634 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23635 alignment fixes.
23636 (ix86_option_override_internal): Disable TARGET_STV even for
23637 -m{incoming,preferred}-stack-boundary=3.
23638
23639 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23640
23641 * config.gcc: Mark deprecated rtems targets as obsolete.
23642
23643 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
23644
23645 PR rtl-optimization/64682
23646 PR rtl-optimization/69567
23647 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23648 before I2 only if the register is both used and set in I2.
23649
23650 2016-02-04 DJ Delorie <dj@redhat.com>
23651
23652 * config/msp430/msp430.c (msp430_start_function): Add function type.
23653
23654 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23655
23656 PR fortran/69368
23657 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23658
23659 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
23660
23661 PR rtl-optimization/69577
23662 Revert:
23663 2015-10-29 Richard Henderson <rth@redhat.com>
23664
23665 PR target/68124
23666 PR rtl-opt/67609
23667 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23668 sse check to the exact conditions of PR 67609.
23669
23670 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
23671
23672 PR target/69667
23673 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23674 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23675 not allowed into the traditional Altivec registers.
23676 (movtd_64bit_nodm): Likewise.
23677 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23678
23679 2016-02-04 David Malcolm <dmalcolm@redhat.com>
23680
23681 * config/aarch64/cortex-a57-fma-steering.c
23682 (aarch64_register_fma_steering): Remove "static" from arguments
23683 to register_pass.
23684
23685 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
23686
23687 PR target/69619
23688 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23689 twice when complex.
23690
23691 2016-02-04 Mike Frysinger <vapier@gentoo.org>
23692
23693 * doc/invoke.texi: Delete -mno-fma4.
23694
23695 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
23696
23697 PR rtl-optimization/69577
23698 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23699 (find_subregs_of_mode): Update accordingly. Iterate over partial
23700 definitions.
23701
23702 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
23703
23704 * config/arm/arm-protos.h (neon_reinterpret): Remove.
23705 * config/arm/arm.c (neon_reinterpret): Remove.
23706 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23707 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23708 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23709 vreinterpretti): Remove.
23710 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23711 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23712 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23713 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23714 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23715 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23716 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23717 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23718 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23719 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23720 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23721 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23722 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23723 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23724 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23725 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23726 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23727 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23728 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23729 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23730 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23731 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23732 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23733 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23734 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23735 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23736 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23737 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23738 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23739 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23740 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23741 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23742 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23743 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23744 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23745 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23746 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23747 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23748 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23749 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23750 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23751 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23752 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23753 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23754 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23755 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23756 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23757 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23758 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23759 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23760 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23761 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23762 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23763 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23764 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23765 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23766 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23767 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23768 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23769 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23770 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23771 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23772 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23773 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23774 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23775 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23776 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23777 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23778 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23779 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23780 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23781 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23782 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23783 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23784 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23785 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23786 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23787 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23788 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23789 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23790 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23791 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23792 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23793 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23794 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23795 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23796 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23797 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23798 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23799 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23800 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23801 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23802 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23803 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23804 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23805 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23806 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23807 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23808 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23809 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23810 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23811 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23812 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23813
23814 2016-02-04 Martin Liska <mliska@suse.cz>
23815
23816 PR sanitizer/69276
23817 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23818 that are gimple_store_p.
23819 (maybe_instrument_call): Likewise.
23820
23821 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23822
23823 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23824 register scaling out of memory reference and comment why.
23825
23826 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23827
23828 PR target/65932
23829 PR target/67714
23830 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23831 folding the source of a SET.
23832
23833 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23834
23835 PR target/65932
23836 PR target/67714
23837 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23838 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23839
23840 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23841
23842 PR target/65932
23843 PR target/67714
23844 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23845 HImode.
23846
23847 2016-02-04 Christian Bruel <christian.bruel@st.com>
23848
23849 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23850 * config/arm/arm.c (arm_set_current_function): Likewise.
23851
23852 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23853 Ilya Enkovich <enkovich.gnu@gmail.com>
23854 H.J. Lu <hongjiu.lu@intel.com>
23855
23856 PR target/69454
23857 * config/i386/i386.c (convert_scalars_to_vector): Remove
23858 stack alignment fixes.
23859 (ix86_option_override_internal): Disable TARGET_STV if stack
23860 might not be aligned enough.
23861 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23862
23863 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23864
23865 * config/i386/x86-tune.def: Disable default prefetching
23866 for -march=znver1.
23867
23868 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23869 Vladimir Makarov <vmakarov@redhat.com>
23870
23871 PR target/69461
23872 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23873 in validating fused toc addresses.
23874
23875 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23876
23877 PR c/69627
23878 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23879 range->m_caret fields if range->m_show_caret_p is false.
23880
23881 PR target/69644
23882 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23883 Force oldval into register if it does not satisfy reg_or_short_operand
23884 predicate. Fix up formatting.
23885
23886 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23887 Alexandre Oliva <aoliva@redhat.com>
23888
23889 PR target/69461
23890 * lra-constraints.c (simplify_operand_subreg): Check additionally
23891 address validity after potential reloading.
23892 (process_address_1): Check insns validity. In case of failure do
23893 nothing.
23894
23895 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23896
23897 PR target/69118
23898 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23899 Fix target.
23900
23901 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23902
23903 * wide-int.cc (canonize_uhwi): New function.
23904 (wi::divmod_internal): Use it.
23905
23906 2016-02-02 James Norris <jnorris@codesourcery.com>
23907
23908 * gimplify.c (omp_notice_variable): Add usage check.
23909
23910 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23911
23912 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23913 like LE, GE, LT, GT when emitting relational operator.
23914
23915 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23916
23917 * ira-costs.c (find_costs_and_classes): Add extra argument.
23918 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23919 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23920 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23921 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23922 Add best_class parameter, and return it if not ALL_REGS.
23923 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23924 Add parameter.
23925 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23926 Update target hook.
23927
23928 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23929
23930 * config/aarch64/aarch64.c
23931 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23932 (aarch64_ira_change_pseudo_allocno_class): New function.
23933
23934 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
23935
23936 PR target/67032
23937 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23938
23939 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23940
23941 * config/avr/avr.c (avr_option_override): Set
23942 PARAM_ALLOW_STORE_DATA_RACES to 1.
23943
23944 2016-02-02 Richard Biener <rguenther@suse.de>
23945
23946 PR tree-optimization/69595
23947 * match.pd: Add range test simplifications to true/false.
23948
23949 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
23950
23951 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23952 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23953 instead.
23954
23955 2016-02-02 Richard Biener <rguenther@suse.de>
23956
23957 PR tree-optimization/69606
23958 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23959 info on the result before moving a stmt.
23960
23961 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
23962
23963 PR middle-end/68542
23964 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23965 branch with vector comparison.
23966 * config/i386/sse.md (VI48_AVX): New mode iterator.
23967 (define_expand "cbranch<mode>4): Add support for conditional branch
23968 with vector comparison.
23969 * tree-vect-loop.c (optimize_mask_stores): New function.
23970 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23971 has_mask_store field of vect_info.
23972 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23973 vectorized loops having masked stores after vec_info destroy.
23974 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23975 correspondent macros.
23976 (optimize_mask_stores): Add prototype.
23977
23978 2016-02-02 Alan Modra <amodra@gmail.com>
23979
23980 PR target/69548
23981 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23982 allow subregs.
23983
23984 2016-02-02 Alan Modra <amodra@gmail.com>
23985
23986 PR target/68662
23987 * config/rs6000/rs6000.c (need_toc_init): New var, set it
23988 whenever toc_label_name used.
23989 (rs6000_file_start): Don't set up toc section here,
23990 (rs6000_output_function_epilogue): do so here instead,
23991 (rs6000_xcoff_file_start): and here.
23992 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
23993 (load_toc_aix_di): Likewise.
23994
23995 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23996
23997 PR rtl-optimization/69592
23998 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
23999 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
24000 (num_sign_bit_copies_binary_arith_p): New inline function.
24001 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
24002
24003 2016-02-01 Jeff Law <law@redhat.com>
24004
24005 PR tree-optimization/69580
24006 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
24007 * tree-ssa-threadbackward.c
24008 (fsm_find_control_statement_thread_paths): Do not try to walk
24009 through large PHI nodes.
24010
24011 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24012
24013 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
24014 when count is incremented above limit, don't analyze further
24015 insns afterwards.
24016
24017 * omp-low.c (oacc_parse_default_dims): Avoid
24018 -Wsign-compare warning, make sure value fits into int
24019 rather than just unsigned int.
24020
24021 2016-02-01 Bin Cheng <bin.cheng@arm.com>
24022
24023 PR tree-optimization/67921
24024 * fold-const.c (split_tree): New parameters. Convert pointer
24025 type variable part to proper type before negating.
24026 (fold_binary_loc): Pass new arguments to split_tree.
24027
24028 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
24029
24030 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
24031 (nvptx_goacc_validate_dims): Extend to handle global defaults.
24032 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
24033 * doc/tm.texti: Rebuilt.
24034 * doc/invoke.texi (fopenacc-dim): Document.
24035 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
24036 (append_compiler_options): Likewise.
24037 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
24038 (oacc_parse_default_dims): New.
24039 (oacc_validate_dims): Add USED arg. Select non-unity default when
24040 possible.
24041 (oacc_loop_fixed_partitions): Return mask of used partitions.
24042 (oacc_loop_auto_partitions): Emit dump info.
24043 (oacc_loop_partition): Return mask of used partitions.
24044 (execute_oacc_device_lower): Parse default dimension arg. Adjust
24045 loop partitioning and validation calls.
24046
24047 2016-02-01 Richard Biener <rguenther@suse.de>
24048
24049 PR middle-end/69556
24050 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
24051
24052 2016-02-01 Richard Biener <rguenther@suse.de>
24053
24054 PR tree-optimization/69574
24055 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
24056 of asserting return chrec_dont_know.
24057
24058 2016-02-01 Martin Liska <mliska@suse.cz>
24059
24060 * mem-stats-traits.h: Add copyright header.
24061 * mem-stats.h: Likewise.
24062
24063 2016-02-01 Richard Biener <rguenther@suse.de>
24064
24065 PR tree-optimization/69579
24066 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
24067 Do not propagate through abnormal PHI results.
24068
24069 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
24070
24071 * postreload.c (reload_cse_simplify): Remove dead code.
24072
24073 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24074
24075 PR rtl-optimization/69570
24076 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
24077 if there is more than one set, not if there is a single set.
24078
24079 2016-02-01 Richard Henderson <rth@redhat.com>
24080
24081 PR rtl-opt/69535
24082 * combine.c (make_compound_operation): When looking through a
24083 subreg, make sure to re-extend to the width of the outer mode.
24084
24085 2016-01-30 Jakub Jelinek <jakub@redhat.com>
24086
24087 PR tree-optimization/69546
24088 * wide-int.cc (wi::divmod_internal): For unsigned division
24089 where both operands fit into uhwi, if o1 is 1 and o0 has
24090 msb set, if divident_prec is larger than bits per hwi,
24091 clear another quotient word and return 2 instead of 1.
24092 Similarly for remainder with msb in HWI set, if dividend_prec
24093 is larger than bits per hwi.
24094
24095 2016-01-29 Martin Jambor <mjambor@suse.cz>
24096
24097 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
24098 Use short lowercase names.
24099 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
24100 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
24101 acq_rel one. Protect warning agains segfaults if
24102 get_memory_order_name returns NULL.
24103 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
24104 with release semantics. Do not warn if get_memory_order already did.
24105 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
24106 semantics. Fix check for relaxed or acquire semantics. Do not warn
24107 if get_memory_order already did.
24108
24109 2016-01-29 Sebastian Pop <s.pop@samsung.com>
24110
24111 * doc/install.texi: Document that isl-0.16 is supported.
24112
24113 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
24114
24115 PR target/69299
24116 * config/i386/constraints.md (Bm): Describe as special memory
24117 constraint.
24118 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
24119 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24120 * genpreds.c (struct constraint_data): Add is_special_memory.
24121 (have_special_memory_constraints, special_memory_start): New
24122 static vars.
24123 (special_memory_end): Ditto.
24124 (add_constraint): Add new arg is_special_memory. Add code to
24125 process its true value. Update have_special_memory_constraints.
24126 (process_define_constraint): Pass the new arg.
24127 (process_define_register_constraint): Ditto.
24128 (choose_enum_order): Process special memory.
24129 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
24130 function insn_extra_special_memory_constraint.
24131 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24132 * gensupport.c (process_rtx): Process
24133 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24134 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
24135 * ira-lives.c (single_reg_class): Use
24136 insn_extra_special_memory_constraint.
24137 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
24138 * lra-constraints.c (process_alt_operands): Ditto.
24139 (curr_insn_transform): Use insn_extra_special_memory_constraint.
24140 * recog.c (asm_operand_ok, preprocess_constraints): Process
24141 CT_SPECIAL_MEMORY.
24142 * reload.c (find_reloads): Ditto.
24143 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
24144 * stmt.c (parse_input_constraint): Use
24145 insn_extra_special_memory_constraint.
24146
24147 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24148
24149 PR target/69530
24150 * lra-splill.c (lra_final_code_change): Revert r229087 by
24151 removing all sub-registers.
24152
24153 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
24154
24155 PR target/65604
24156 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
24157
24158 2016-01-29 Jakub Jelinek <jakub@redhat.com>
24159
24160 PR target/69551
24161 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
24162 SSE1, copy target into the temporary reg first before recursing
24163 on it.
24164
24165 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24166
24167 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
24168 with vm.
24169
24170 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24171
24172 * ginclude/stdarg.h: Test __cplusplus instead of
24173 __GXX_EXPERIMENTAL_CXX0X__.
24174
24175 2016-01-29 Richard Biener <rguenther@suse.de>
24176
24177 PR tree-optimization/69547
24178 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
24179 Do not mark clobbers necessary.
24180 (mark_all_reaching_defs_necessary_1): Likewise.
24181
24182 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24183
24184 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
24185 declaration name with %qs and print it in both error messages.
24186 Also fix indentation.
24187
24188 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24189
24190 PR other/69006
24191 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
24192 trailing blank line from error message.
24193
24194 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24195
24196 PR c++/69462
24197 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
24198 for C++-11.
24199
24200 2016-01-29 Richard Biener <rguenther@suse.de>
24201
24202 PR middle-end/69537
24203 * match.pd: Allow all integral types when simplifying a
24204 widening or sign-changing conversion.
24205
24206 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24207
24208 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
24209 back to setting codegen_error to fail codegen.
24210
24211 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
24212
24213 PR target/69459
24214 * config/i386/constraints.md (C): Only accept constant zero operand.
24215 (BC): New constraint.
24216 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
24217 instead of C constraint.
24218 * doc/md.texi (Machine Constraints): Update description
24219 of C constraint.
24220
24221 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
24222
24223 PR target/68400
24224 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
24225
24226 2016-01-28 Jakub Jelinek <jakub@redhat.com>
24227
24228 PR middle-end/69542
24229 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
24230 non-debug insns.
24231
24232 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
24233
24234 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
24235 branches if using guessed profile.
24236
24237 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
24238
24239 * graphite-optimize-isl.c (optimize_isl): Fix dump.
24240
24241 2016-01-28 Richard Henderson <rth@redhat.com>
24242
24243 PR target/69305
24244 * config/aarch64/aarch64-modes.def (CC_Cmode): New
24245 * config/aarch64/aarch64-protos.h: Update.
24246 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
24247 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
24248 (aarch64_get_condition_code_1): Handle CC_Cmode.
24249 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
24250 (*add<mode>3_compareC_cconly_imm): New.
24251 (*add<mode>3_compareC_cconly): New.
24252 (*add<mode>3_compareC_imm): New.
24253 (add<mode>3_compareC): New.
24254 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
24255 to be first. Use aarch64_carry_operation.
24256 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
24257 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
24258 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
24259 (subti3): Use subdi3_compare1.
24260 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
24261 (sub<mode>3_compare1): New.
24262 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
24263 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
24264 (*subsi3_carryin_uxtw): Likewise.
24265 (*ngc<mode>, *ngcsi_uxtw): Likewise.
24266 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
24267 * config/aarch64/iterators.md (DWI): New.
24268 * config/aarch64/predicates.md (aarch64_carry_operation): New.
24269 (aarch64_borrow_operation): New.
24270
24271 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24272
24273 * graphite-optimize-isl.c (optimize_isl): Print a different debug
24274 message when isl does not return a valid schedule.
24275
24276 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24277
24278 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
24279 Remove comments from class declarations: they are already in the code
24280 close by the defs.
24281
24282 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24283
24284 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
24285 codegen_error_p.
24286 (ternary_op_to_tree): Same.
24287 (unary_op_to_tree): Same.
24288 (nary_op_to_tree): Same.
24289 (gcc_expression_from_isl_expr_op): Same.
24290 (gcc_expression_from_isl_expression): Same.
24291 (graphite_create_new_loop): Same.
24292 (graphite_create_new_loop_guard): Same.
24293 (build_iv_mapping): Same.
24294 (graphite_create_new_guard): Same.
24295 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
24296 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
24297
24298 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24299
24300 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
24301 instead of setting codegen_error to fail codegen.
24302
24303 2016-01-28 Jason Merrill <jason@redhat.com>
24304
24305 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
24306
24307 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24308
24309 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24310 Remove CONST_INT_P check in CCMP cost calculation.
24311
24312 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24313
24314 * config/aarch64/aarch64.c (generic_vector_cost):
24315 Set vec_permute_cost.
24316 (cortexa57_vector_cost): Likewise.
24317 (exynosm1_vector_cost): Likewise.
24318 (xgene1_vector_cost): Likewise.
24319 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
24320 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
24321 Add vec_permute_cost entry.
24322
24323 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24324
24325 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
24326 immediate as %1.
24327 (add<mode>3_compare0): Likewise.
24328 (addsi3_compare0_uxtw): Likewise.
24329 (add<mode>3nr_compare0): Likewise.
24330 (compare_neg<mode>): Likewise.
24331 (<optab><mode>3): Likewise.
24332
24333 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
24334
24335 * tree-vect-stmts.c (vectorizable_comparison): Add
24336 NULL check for vectype.
24337
24338 2016-01-28 Richard Biener <rguenther@suse.de>
24339
24340 PR tree-optimization/69466
24341 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
24342 Account for PHIs we couldn't duplicate.
24343
24344 2016-01-28 Martin Liska <mliska@suse.cz>
24345
24346 PR pch/68758
24347 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
24348 instead of ENABLE_VALGRIND_CHECKING.
24349
24350 2016-01-27 Richard Henderson <rth@redhat.com>
24351
24352 PR rtl-opt/69447
24353 * lra-remat.c (subreg_regs): New.
24354 (dump_candidates_and_remat_bb_data): Dump it.
24355 (operand_to_remat): Reject if operand in subreg_regs.
24356 (set_bb_regs): Collect subreg_regs.
24357 (lra_remat): Init and free subreg_regs. Compute
24358 calculate_local_reg_remat_bb_data before create_cands.
24359
24360 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
24361
24362 PR target/68986
24363 * config/i386/i386.c (ix86_update_stack_boundary): Don't
24364 change stack_alignment_needed for __tls_get_addr call.
24365
24366 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
24367
24368 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
24369
24370 2016-01-27 Jeff Law <law@redhat.com>
24371
24372 PR tree-optimization/68398
24373 PR tree-optimization/69196
24374 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
24375 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
24376 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24377 Only count PHIs in the last block in the path. The others will
24378 const/copy propagate away. Add heuristic to allow more irreducible
24379 subloops to be created when it is likely profitable to do so.
24380
24381 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24382 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
24383 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
24384
24385 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24386
24387 PR lto/69254
24388 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
24389 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
24390 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
24391 * tree-streamer-in.c: Include asan.h.
24392 (streamer_get_builtin_tree): For builtins in sanitizer
24393 range call initialize_sanitizer_builtins and retry.
24394
24395 2016-01-27 Ian Lance Taylor <iant@google.com>
24396
24397 * common.opt (fkeep-gc-roots-live): New undocumented option.
24398 * tree-ssa-loop-ivopts.c (add_candidate_1): If
24399 -fkeep-gc-roots-live, skip pointers.
24400 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
24401 NULL.
24402
24403 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
24404
24405 PR target/69512
24406 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
24407 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
24408
24409 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
24410
24411 PR target/68380
24412 * configure.ac: NetBSD provides SSP in its C library.
24413 * configure: Updated.
24414
24415 2016-01-27 Richard Biener <rguenther@suse.de>
24416
24417 PR tree-optimization/69166
24418 * tree-vect-loop.c (vect_is_simple_reduction): Always check
24419 reduction code for commutativity / associativity.
24420
24421 2016-01-27 Martin Jambor <mjambor@suse.cz>
24422
24423 PR tree-optimization/69355
24424 * tree-sra.c (analyze_access_subtree): Correct hole detection when
24425 total_scalarization fails.
24426
24427 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
24428
24429 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
24430 power9.
24431
24432 2016-01-27 Christian Bruel <christian.bruel@st.com>
24433
24434 PR target/69245
24435 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
24436 Move arm_reset_previous_fndecl and set_target_option_current_node in
24437 the conditional part. Call save_restore_target_globals.
24438 * config/arm/arm.c (arm_set_current_function):
24439 Refactor to better support #pragma target and attribute mix.
24440 Call save_restore_target_globals.
24441 * config/arm/arm-protos.h (save_restore_target_globals): New function.
24442
24443 2016-01-27 Martin Liska <mliska@suse.cz>
24444
24445 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
24446 reference for an HSA kernel and its host function.
24447
24448 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24449
24450 PR tree-optimization/69399
24451 * wide-int.h (wi::lrshift): For larger precisions, only
24452 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
24453
24454 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
24455
24456 * config/arc/predicates.md (proper_comparison_operator): Reject
24457 constant-constant comparison.
24458
24459 2016-01-26 Tom de Vries <tom@codesourcery.com>
24460
24461 PR tree-optimization/69110
24462 * tree-data-ref.c (initialize_data_dependence_relation): Handle
24463 DR_NUM_DIMENSIONS == 0.
24464
24465 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24466 Sebastian Pop <s.pop@samsung.com>
24467
24468 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
24469 isl_ast_op_cond and isl_ast_op_select.
24470 (gcc_expression_from_isl_expr_op): Same.
24471
24472 2016-01-26 Jason Merrill <jason@redhat.com>
24473
24474 PR c++/68782
24475 * tree.c (recompute_constructor_flags): Split out from
24476 build_constructor.
24477 (verify_constructor_flags): New.
24478 * tree.h: Declare them.
24479
24480 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
24481
24482 PR rtl-optimization/69217
24483 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
24484 are no TYPE_FIELDS set for the record type.
24485
24486 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24487
24488 PR target/68662
24489 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
24490 toc_label_name unconditionally.
24491 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
24492 SYMBOL_REF string. Use toc_label_name instead of constructing
24493 LCTOC1.
24494 (rs6000_elf_declare_function_name): Use toc_label_name instead of
24495 constructing LCTOC1.
24496
24497 2016-01-26 Martin Sebor <msebor@redhat.com>
24498
24499 PR other/69477
24500 * doc/extend.texi (Common Type Attributes): Move text that talks about
24501 attribute packed from attribute aligned to the section discussing
24502 the former attribute for clarity.
24503
24504 2016-01-26 Richard Henderson <rth@redhat.com>
24505
24506 PR middle-end/60908
24507 * trans-mem.c (tm_region_init): Mark entry block as visited.
24508
24509 2016-01-26 David Malcolm <dmalcolm@redhat.com>
24510
24511 PR other/69006
24512 * diagnostic-show-locus.c (layout::print_source_line): Replace
24513 call to pp_newline with call to layout::print_newline.
24514 (layout::print_annotation_line): Likewise.
24515 (layout::move_to_column): Likewise.
24516 (layout::print_any_fixits): After printing any fixits, print a
24517 trailing newline, if necessary.
24518 (layout::print_newline): New method, resetting any colorization
24519 before a newline.
24520 (diagnostic_show_locus): Move the pp_newline to before the
24521 early bailout. Remove dummy block enclosing the layout instance.
24522 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
24523 of pp_newline_and_flush with pp_flush.
24524 (diagnostic_append_note): Delete use of pp_newline.
24525 (diagnostic_append_note_at_rich_loc): Delete.
24526 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
24527 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
24528 when newline characters are added to the buffer.
24529
24530 2016-01-26 Michael Matz <matz@suse.de>
24531
24532 * configure.ac (ac_cv_std_swap_in_utility): New test.
24533 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
24534 * configure: Regenerate.
24535 * config.in: Regenerate.
24536
24537 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
24538
24539 * config/arc/arc.md (cstoresi4): Force operand into register.
24540 (arcset<code>): Fix predicate.
24541 (arcsetltu): Likewise.
24542 (arcsetgeu): Likewise.
24543 (arcsethi): Likewise.
24544 (arcsetls): Likewise.
24545
24546 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24547
24548 PR tree-optimization/69483
24549 * gimple-fold.c (canonicalize_constructor_val): Return NULL
24550 if base has error_mark_node type.
24551
24552 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
24553
24554 PR target/68620
24555 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
24556 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
24557 New helper macros.
24558 (vget_lane_f16): Handle big-endian.
24559 (vgetq_lane_f16): Likewise.
24560 (vset_lane_f16): Likewise.
24561 (vsetq_lane_f16): Likewise.
24562 * config/arm/iterators.md (VQXMOV): Add V8HF.
24563 (VDQ): Add V4HF and V8HF.
24564 (V_reg): Handle V4HF and V8HF.
24565 (Is_float_mode): Likewise.
24566 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
24567 neon_vdup_nv8hf): New patterns.
24568 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
24569 Use VD_LANE iterator.
24570 (neon_vld1_dup<mode>): Use VQ2 iterator.
24571
24572 2016-01-26 Nathan Sidwell <nathan@acm.org>
24573
24574 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
24575 (set_oacc_fn_attrib): Add IS_KERNEL arg.
24576 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
24577 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
24578 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
24579 (oacc_validate_dims): Add LEVEL arg, don't return level.
24580 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
24581 oacc_validate_dims.
24582 (execute_oacc_device_lower): Adjust, add more dump output.
24583 * tree-ssa-loop.c (gate_oacc_kernels): Use
24584 oacc_fn_attrib_kernels_p.
24585 * tree-parloops.c (create_parallel_loop): Adjust
24586 set_oacc_fn_attrib call.
24587
24588 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24589
24590 PR lto/69254
24591 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24592 (append_compiler_options): Handle -fcilkplus.
24593 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24594
24595 2016-01-26 Nick Clifton <nickc@redhat.com>
24596
24597 PR target/66655
24598 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24599 been marked as DECL_ONE_ONLY but we do not the means to make it
24600 so, then do not allow it to bind locally.
24601
24602 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24603
24604 PR lto/69254
24605 * opts.h (parse_sanitizer_options): New prototype.
24606 * opts.c (sanitizer_opts): New array.
24607 (parse_sanitizer_options): New function.
24608 (common_handle_option): Use parse_sanitizer_options.
24609
24610 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
24611
24612 PR target/68986
24613 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24614 alignment adjustment to ...
24615 (ix86_update_stack_boundary): Here. Don't over-align stack for
24616 __tls_get_addr.
24617 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24618 if __tls_get_addr is called.
24619
24620 2016-01-26 Christian Bruel <christian.bruel@st.com>
24621
24622 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24623
24624 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
24625
24626 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24627
24628 2016-01-26 Richard Biener <rguenther@suse.de>
24629
24630 PR middle-end/69467
24631 * match.pd: Guard X * CST CMP 0 pattern with single_use.
24632
24633 2016-01-26 Richard Biener <rguenther@suse.de>
24634
24635 PR tree-optimization/69452
24636 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24637 (move_computations_dom_walker::before_dom_children): Rename
24638 to ...
24639 (move_computations_worker): This.
24640 (move_computations): Perform an RPO rather than a DOM walk.
24641
24642 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24643
24644 PR target/69442
24645 * combine.c (combine_instructions): For REG_EQUAL note with
24646 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24647 to the underlying register.
24648 * doc/rtl.texi (REG_EQUAL): Document the behavior of
24649 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24650
24651 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
24652
24653 PR target/67896
24654 * config/aarch64/aarch64-builtins.c
24655 (aarch64_init_simd_builtin_types): Do not set structural
24656 equality to __Poly{8,16,64,128}_t types.
24657
24658 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
24659
24660 PR tree-optimization/69400
24661 * wide-int.cc (wi_pack): Take the precision as argument and
24662 perform canonicalization here rather than in the callers.
24663 Use the main loop to handle all full-width HWIs. Add a
24664 zero HWI if in_len isn't a full result.
24665 (wi::divmod_internal): Update accordingly.
24666 (wi::mul_internal): Likewise. Simplify.
24667
24668 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24669 Sebastian Pop <s.pop@samsung.com>
24670
24671 * graphite-poly.c (apply_poly_transforms): Simplify.
24672 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24673 (print_isl_map): Same.
24674 (print_isl_union_map): Same.
24675 (print_isl_schedule): New.
24676 (debug_isl_schedule): New.
24677 * graphite-dependences.c (scop_get_reads): Do not call
24678 isl_union_map_add_map that is undocumented isl functionality.
24679 (scop_get_must_writes): Same.
24680 (scop_get_may_writes): Same.
24681 (scop_get_original_schedule): Remove.
24682 (scop_get_dependences): Do not call isl_union_map_compute_flow that
24683 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
24684 (compute_deps): Remove.
24685 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24686 (debug_schedule_ast): New.
24687 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24688 set_separate_option.
24689 (graphite_regenerate_ast_isl): Add dump.
24690 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24691 from scop->transformed_schedule.
24692 (graphite_regenerate_ast_isl): Add more dump.
24693 * graphite-optimize-isl.c (optimize_isl): Set
24694 scop->transformed_schedule. Check whether schedules are equal.
24695 (apply_poly_transforms): Move here.
24696 * graphite-poly.c (apply_poly_transforms): ... from here.
24697 (free_poly_bb): Static.
24698 (free_scop): Static.
24699 (pbb_number_of_iterations_at_time): Remove.
24700 (print_isl_ast): New.
24701 (debug_isl_ast): New.
24702 (debug_scop_pbb): New.
24703 * graphite-scop-detection.c (print_edge): Move.
24704 (print_sese): Move.
24705 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24706 (build_scop_scattering): Remove.
24707 (create_pw_aff_from_tree): Assert instead of bailing out.
24708 (add_condition_to_pbb): Remove unused code, do not fail.
24709 (add_conditions_to_domain): Same.
24710 (add_conditions_to_constraints): Remove.
24711 (build_scop_context): New.
24712 (add_iter_domain_dimension): New.
24713 (build_iteration_domains): Initialize pbb->iterators.
24714 Call add_conditions_to_domain.
24715 (nested_in): New.
24716 (loop_at): New.
24717 (index_outermost_in_loop): New.
24718 (index_pbb_in_loop): New.
24719 (outermost_pbb_in): New.
24720 (add_in_sequence): New.
24721 (add_outer_projection): New.
24722 (outer_projection_mupa): New.
24723 (add_loop_schedule): New.
24724 (build_schedule_pbb): New.
24725 (build_schedule_loop): New.
24726 (embed_in_surrounding_loops): New.
24727 (build_schedule_loop_nest): New.
24728 (build_original_schedule): New.
24729 (build_poly_scop): Call build_original_schedule.
24730 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24731 (free_poly_dr): Remove.
24732 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24733 (free_poly_bb): Remove.
24734 (debug_loop_vec): Remove.
24735 (print_isl_ast): Declare.
24736 (debug_isl_ast): Declare.
24737 (scop_do_interchange): Remove.
24738 (scop_do_strip_mine): Remove.
24739 (scop_do_block): Remove.
24740 (flatten_all_loops): Remove.
24741 (optimize_isl): Remove.
24742 (pbb_number_of_iterations_at_time): Remove.
24743 (debug_scop_pbb): Declare.
24744 (print_schedule_ast): Declare.
24745 (debug_schedule_ast): Declare.
24746 (struct scop): Remove schedule. Add original_schedule,
24747 transformed_schedule.
24748 (free_gimple_poly_bb): Remove.
24749 (print_generated_program): Remove.
24750 (debug_generated_program): Remove.
24751 (unify_scattering_dimensions): Remove.
24752 * sese.c (print_edge): ... here.
24753 (print_sese): ... here.
24754 (debug_edge): ... here.
24755 (debug_sese): ... here.
24756 * sese.h (print_edge): Declare.
24757 (print_sese): Declare.
24758 (dump_edge): Declare.
24759 (dump_sese): Declare.
24760
24761 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24762 Sebastian Pop <s.pop@samsung.com>
24763
24764 * Makefile.in: Set ISLVER in site.exp.
24765
24766 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24767
24768 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24769 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24770 through DECL_VALUE_EXPR for expansion.
24771
24772 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24773
24774 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24775 the frame info after reload completed.
24776
24777 2016-01-25 Jeff Law <law@redhat.com>
24778
24779 PR tree-optimization/69196
24780 PR tree-optimization/68398
24781 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24782 tree-ssa-threadupdate.c.
24783 (determine_bb_domination_status): Prototype
24784 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24785 (determine_bb_domination_status): No longer static.
24786 (valid_jump_thread_path): Remove code to detect characteristics
24787 of the jump thread path not associated with correctness.
24788 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24789 Correct test for thread path length. Count PHIs for real operands as
24790 statements that need to be copied. Do not count ASSERT_EXPRs.
24791 Look at all the blocks in the thread path. Compute and selectively
24792 filter thread paths based on threading through the latch, threading
24793 a multiway branch or crossing a multiway branch.
24794
24795 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24796
24797 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24798 decl with __attribute__ ((unused)) annotation.
24799
24800 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24801
24802 PR target/69421
24803 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24804 of operands is compatible with a statement vectype.
24805
24806 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24807
24808 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24809 improve wording for mixed storage order support.
24810
24811 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24812
24813 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24814 (vcvt_u64_f64): Likewise.
24815 (vcvta_s64_f64): Likewise.
24816 (vcvta_u64_f64): Likewise.
24817 (vcvtm_s64_f64): Likewise.
24818 (vcvtm_u64_f64): Likewise.
24819 (vcvtn_s64_f64): Likewise.
24820 (vcvtn_u64_f64): Likewise.
24821 (vcvtp_s64_f64): Likewise.
24822 (vcvtp_u64_f64): Likewise.
24823
24824 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24825
24826 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24827 (arc_init): Check validity mll64 option.
24828 (arc_save_restore): Use double load/store instruction.
24829 (arc_expand_movmem): Likewise.
24830 (arc_split_move): Don't split if we have double load/store
24831 instructions. Returns a boolean.
24832 (arc_process_double_reg_moves): Change function to return boolean
24833 instead of a sequence of instructions.
24834 (arc_dwarf_register_span): New function.
24835 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24836 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24837 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24838 (*movdf_insn): Likewise.
24839 * config/arc/arc.opt (mll64): New option.
24840 * config/arc/predicates.md (even_register_operand): New predicate.
24841 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24842
24843 2016-01-25 Richard Biener <rguenther@suse.de>
24844
24845 PR lto/69393
24846 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24847 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24848 DECL_NAMELESS.
24849 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24850
24851 2016-01-25 Richard Biener <rguenther@suse.de>
24852
24853 PR tree-optimization/69376
24854 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24855 flag.
24856 (VN_INFO_ANTI_RANGE_P): New inline.
24857 (VN_INFO_RANGE_TYPE): Likewise.
24858 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24859 SSA_NAME_ANTI_RANGE_P.
24860 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24861 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24862 Properly query VN_INFO_RANGE_TYPE.
24863
24864 2016-01-25 Nick Clifton <nickc@redhat.com>
24865
24866 PR target/66655
24867 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24868
24869 2016-01-23 Tom de Vries <tom@codesourcery.com>
24870
24871 PR tree-optimization/69426
24872 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24873 removed clobber.
24874
24875 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24876
24877 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24878 "the the" with "the" in the comments.
24879 * ipa-devirt.c (build_type_inheritance_graph,
24880 update_type_inheritance_graph): Likewise.
24881 * tree.c (build_function_type_list_1): Likewise.
24882 * cfgloopmanip.c (scale_loop_profile): Likewise.
24883 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24884 * gimple-ssa-split-paths.c
24885 (find_block_to_duplicate_for_splitting_paths): Likewise.
24886 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24887 * expr.c (convert_move): Likewise.
24888 * var-tracking.c (vt_stack_adjustments): Likewise.
24889 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24890 * tree-vrp.c (test_for_singularity): Likewise.
24891
24892 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24893 directly instead of building a temporary tree.
24894
24895 PR bootstrap/69434
24896 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24897 remove <algorithm> include.
24898
24899 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24900
24901 PR target/69432
24902 * config/i386/i386.c: Include dojump.h.
24903 (expand_small_movmem_or_setmem,
24904 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24905 fixes.
24906 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24907 if dynamic_check != -1.
24908
24909 2016-01-21 Jeff Law <law@redhat.com>
24910
24911 PR middle-end/69347
24912 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24913 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24914 into dominated_by_p.
24915 (cprop_into_successor_phis): Avoid unnecessary tests.
24916
24917 2016-01-22 Richard Henderson <rth@redhat.com>
24918
24919 PR target/69416
24920 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24921 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24922
24923 2016-01-22 Michael Matz <matz@suse.de>
24924
24925 * system.h (string, algorithm): Include only conditionally.
24926 (new): Include always under C++.
24927 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24928 * final.c (toplevel): Ditto.
24929 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24930 * genconditions.c (write_header): Make gencondmd.c define
24931 INCLUDE_STRING.
24932 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24933
24934 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24935 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24936
24937 2016-01-22 Christian Bruel <christian.bruel@st.com>
24938
24939 PR target/68674
24940 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24941
24942 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24943
24944 PR target/69403
24945 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24946 define_insn_and_split. Ensure operands[1] and operands[0] do not
24947 get assigned the same register.
24948
24949 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24950
24951 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24952
24953 2016-01-22 Christian Bruel <christian.bruel@st.com>
24954
24955 * config/arm/arm-c.c (arm_pragma_target_parse):
24956 Remove warn_builtin_macro_redefined overwrite.
24957
24958 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24959
24960 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24961 flag_non_call_exceptions compatibility.
24962
24963 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24964
24965 PR debug/66668
24966 * dwarf2out.c (add_child_die_after): New function.
24967 (dwarf_qual_info_t): New type.
24968 (dwarf_qual_info): New variable.
24969 (qualified_die_p): New function.
24970 (modified_type_die): For -fdebug-types-section, ensure
24971 canonical order of qualifiers. Put qualified DIEs adjacent
24972 to the corresponding non-qualified type DIE and search there
24973 for existing qualified DIEs.
24974
24975 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24976
24977 * doc/extend.texi (scalar_storage_order type attribute): Document
24978 restriction on type punning and aliasing, and remove future tense.
24979
24980 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
24981
24982 PR target/69252
24983 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
24984 first stage.
24985
24986 2016-01-21 Jeff Law <law@redhat.com>
24987
24988 PR middle-end/69347
24989 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
24990 useless call to record_temporary_equivalences.
24991 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
24992 allocate 10 slots in the bb_path vector and let it grow as needed.
24993 (fsm_find_control_statement_thread_paths): Similarly for the next_path
24994 vector.
24995
24996 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
24997
24998 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
24999 Detangle.
25000 * configure: Regenerate.
25001
25002 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
25003
25004 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
25005 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
25006
25007 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
25008
25009 PR middle-end/66178
25010 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
25011 drop EXPAND_INITIALIZER.
25012 * rtl.h (contains_symbolic_reference_p): Declare.
25013 * rtlanal.c (contains_symbolic_reference_p): New function.
25014 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
25015 a subtraction into a NOT if symbolic constants are involved.
25016
25017 2016-01-21 Anton Blanchard <anton@samba.org>
25018 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25019
25020 PR target/63354
25021 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
25022 #define.
25023 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
25024 function.
25025
25026 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25027
25028 * config/microblaze/microblaze.c
25029 (get_branch_target): New.
25030 (insert_wic_for_ilb_runout): New.
25031 (insert_wic): New.
25032 (microblaze_machine_dependent_reorg): New.
25033 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
25034 * config/microblaze/microblaze.md
25035 (UNSPEC_IPREFETCH): Define.
25036 (iprefetch): New pattern
25037 * config/microblaze/microblaze.opt
25038 (mxl-prefetch): New flag.
25039
25040 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25041
25042 * config/microblaze/microblaze.h
25043 (FIXED_REGISTERS): Update in macro.
25044 (CALL_USED_REGISTERS): Update in macro.
25045
25046 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
25047
25048 PR rtl-optimization/68920
25049 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
25050 moves.
25051
25052 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
25053
25054 PR rtl-optimization/68990
25055 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
25056 pseudo instead of inheritance ones.
25057
25058 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25059 Nick Clifton <nickc@redhat.com>
25060
25061 PR target/69129
25062 PR target/69012
25063 * config/mips/mips.c (mips_compute_frame_info): Initialise
25064 args_size and hard_frame_pointer_offset fields of the frame
25065 structure before calling mips_global_pointer.
25066
25067 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25068
25069 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
25070 label reference.
25071 * configure: Regenerate.
25072
25073 2016-01-21 Richard Biener <rguenther@suse.de>
25074
25075 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
25076
25077 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25078
25079 * config/s390/s390.c (s390_asm_declare_function_size): Add code
25080 to actually emit the .size directive.
25081
25082 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
25083 Jakub Jelinek <jakub@redhat.com>
25084
25085 PR target/69187
25086 PR target/65624
25087 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
25088 args array size by one to avoid buffer overflow.
25089
25090 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25091
25092 * config/s390/s390.md (pool_section_start): Use switch_to_section
25093 to select proper read-only data section instead of hardcoding
25094 .rodata.
25095 (pool_section_end): Use switch_to_section to match the above.
25096
25097 2016-01-21 Richard Biener <rguenther@suse.de>
25098
25099 PR tree-optimization/69378
25100 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
25101 (set_ssa_val_to): Use it for dominance checks taking into
25102 account not executable edges.
25103
25104 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25105
25106 PR c++/69355
25107 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
25108 for bitsize instead of GET_MODE_PRECISION (mode).
25109
25110 2016-01-20 Martin Sebor <msebor@redhat.com>
25111
25112 PR c/52291
25113 * extend.texi (__sync Builtins): Clarify the semantics of
25114 __sync_fetch_and_OP built-ins on pointers.
25115 (__atomic Builtins): Same.
25116
25117 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25118 Sebastian Pop <s.pop@samsung.com>
25119
25120 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
25121 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
25122 (is_valid_rename): Same.
25123 (translate_isl_ast_to_gimple::get_rename): Same.
25124 (translate_isl_ast_to_gimple::rename_all_uses): Same.
25125 (translate_isl_ast_to_gimple::rename_uses): Same.
25126 (get_new_name): Check for close_phi nodes.
25127 (copy_loop_phi_args): Use phi_node_kind.
25128 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
25129 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
25130
25131 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25132 Sebastian Pop <s.pop@samsung.com>
25133
25134 Revert commit r229783.
25135 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
25136 Remove use of parameter_rename_map.
25137 (copy_def): Remove.
25138 (copy_internal_parameters): Remove.
25139 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
25140 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
25141 (free_sese_info): Do not free parameter_rename_map.
25142 (set_rename): Do not use parameter_rename_map.
25143 (rename_uses): Update call to set_rename.
25144 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
25145 * sese.h (parameter_rename_map_t): Remove.
25146 (struct sese_info_t): Remove field parameter_rename_map.
25147
25148 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25149 Sebastian Pop <s.pop@samsung.com>
25150
25151 * graphite-isl-ast-to-gimple.c: Fix comment.
25152 * graphite-scop-detection.c (defined_in_loop_p): New.
25153 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
25154 names defined in loop.
25155
25156 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25157 Sebastian Pop <s.pop@samsung.com>
25158
25159 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
25160 Discard unstructured if-then-else regions.
25161
25162 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25163 Sebastian Pop <s.pop@samsung.com>
25164
25165 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
25166 (cleanup_loop_iter_dom): Remove.
25167 (build_loop_iteration_domains): Remove.
25168 (build_scop_context): Remove.
25169 (build_scop_iteration_domain): Remove.
25170 (add_loop_constraints): New.
25171 (build_iteration_domains): New.
25172 (build_poly_scop): Call build_iteration_domains.
25173
25174 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25175 Sebastian Pop <s.pop@samsung.com>
25176
25177 * graphite-scop-detection.c
25178 (scop_detection::harmful_loop_in_region): Free dom and loops.
25179 (scop_detection::loop_body_is_valid_scop): Free bbs.
25180
25181 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25182 Sebastian Pop <s.pop@samsung.com>
25183
25184 * graphite-scop-detection.c (record_loop_in_sese): New.
25185 (gather_bbs::before_dom_children): Call record_loop_in_sese.
25186 (build_scops): Remove call to build_sese_loop_nests.
25187 * sese.c (sese_record_loop): Remove.
25188 (build_sese_loop_nests): Remove.
25189 (new_sese_info): Remove region->loops.
25190 (free_sese_info): Same.
25191 * sese.h (sese_contains_loop): Same.
25192 (build_sese_loop_nests): Remove.
25193 (sese_contains_loop): Remove.
25194
25195 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25196 Sebastian Pop <s.pop@samsung.com>
25197
25198 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
25199 loop_is_valid_in_scop.
25200 (scop_detection::harmful_stmt_in_region): Renamed
25201 harmful_loop_in_region.
25202 Call loop_is_valid_in_scop.
25203
25204 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25205 Sebastian Pop <s.pop@samsung.com>
25206
25207 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
25208 isl_ast_node_mark.
25209
25210 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25211 Sebastian Pop <s.pop@samsung.com>
25212
25213 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
25214 * graphite.h (struct poly_bb): Remove field is_reduction.
25215 (PBB_IS_REDUCTION): Remove.
25216
25217 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25218 Sebastian Pop <s.pop@samsung.com>
25219
25220 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
25221 (add_pdr_constraints): Same.
25222 (scop_get_reads): Same.
25223 (scop_get_must_writes): Same.
25224 (scop_get_may_writes): Same.
25225 (scop_get_original_schedule): Same.
25226 (extend_schedule): Same.
25227 (apply_schedule_on_deps): Same.
25228 (carries_deps): Same.
25229 (compute_deps): Same.
25230 (scop_get_dependences): Same.
25231 * graphite-isl-ast-to-gimple.c
25232 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
25233 * graphite-optimize-isl.c (get_schedule_for_band): Same.
25234 (get_schedule_for_band_list): Same.
25235 (get_schedule_map): Same.
25236 (apply_schedule_map_to_scop): Same.
25237 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25238 (build_loop_iteration_domains): Same.
25239 (add_condition_to_pbb): Same.
25240 (add_param_constraints): Same.
25241 (pdr_add_memory_accesses): Same.
25242 (pdr_add_data_dimensions): Same.
25243
25244 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25245
25246 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
25247 requirements.
25248
25249 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25250
25251 * common.opt (feliminate-dwarf2-dups): Replace references to
25252 "DWARF 2" with just "DWARF".
25253 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
25254 * doc/extend.texi: Likewise.
25255 * doc/cpp.texi: Likewise.
25256 * doc/invoke.texi: Likewise.
25257 (Option Summary): Add -gdwarf to list of Debugging Options.
25258 (Debugging Options): Document -gdwarf.
25259 * doc/contrib.texi: Spell "DWARF" like that.
25260
25261 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25262
25263 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
25264 warning. Fix up formatting.
25265
25266 PR middle-end/67653
25267 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
25268 attempt to mark memory input operand addressable and
25269 call prepare_gimple_addressable in that case. Don't adjust
25270 input_location for diagnostics, use error_at instead.
25271
25272 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
25273
25274 * config/rs6000/ppc-auxv.h: New file.
25275 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
25276 (cpu_is): Likewise.
25277 (cpu_supports): Likewise.
25278 * config/rs6000/rs6000.c: include "ppc-auxv.h".
25279 (cpu_is_info): New variable.
25280 (cpu_supports_info): Likewise.
25281 (tcb_verification_symbol): Likewise.
25282 (cpu_builtin_p): Likewise.
25283 (cpu_expand_builtin): New function.
25284 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
25285 (rs6000_init_builtins): Likewise.
25286 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
25287 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
25288 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
25289 * configure: Regenerate.
25290 * config.in: Likewise.
25291 * doc/extend.texi (PowerPC Built-in Functions): Document
25292 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
25293
25294 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
25295
25296 PR target/68609
25297 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
25298 domain check.
25299 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
25300 for V4SFmode.
25301
25302 2016-01-20 Richard Henderson <rth@redhat.com>
25303
25304 PR bootstrap/69343
25305 PR bootstrap/69339
25306 PR tree-opt/68964
25307 Revert:
25308 * tree.c (tm_define_builtin): New.
25309 (find_tm_vector_type): New.
25310 (build_tm_vector_builtins): New.
25311 (build_common_builtin_nodes): Call it.
25312
25313 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
25314
25315 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
25316 (arm_fp_ok): Likewise.
25317 (arm_fp): Likewise.
25318 (arm_crypto): Likewise.
25319
25320 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25321 Richard Biener <rguenther@suse.de>
25322
25323 PR tree-optimization/69328
25324 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
25325 vectors have same number of elements.
25326 (vectorizable_condition): Fix masked version recognition.
25327
25328 2016-01-20 Richard Biener <rguenther@suse.de>
25329
25330 PR tree-optimization/69345
25331 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
25332 (VN_INFO_PTR_INFO): Likewise.
25333 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
25334 info when it is equal between non-dominating SSA names.
25335 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25336 Make sure to look at original SSA infos.
25337
25338 2016-01-20 Jeff Law <law@redhat.com>
25339
25340 PR target/25114
25341 * config/m68k/predicates.md (pow2_m1_operand): New predicate
25342 extracted from ...
25343 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
25344 (pc_or_label_operand): New predicate.
25345 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
25346 tests for small integers that are 2^n - 1.
25347
25348 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
25349
25350 * doc/invoke.texi (Options Summary): Add '.' after @xref.
25351
25352 2016-01-19 Jeff Law <law@redhat.com>
25353
25354 PR middle-end/69347
25355 * tree-ssa-threadbackwards.c
25356 (fsm_find_control_statement_thread_paths): Do not try to lookup
25357 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
25358
25359 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25360
25361 * doc/lto.texi: Remove text that says only Gold has linker plugin
25362 support.
25363
25364 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
25365
25366 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
25367 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
25368 the DIE accordingly.
25369 (modified_type_die): Add REVERSE parameter and pass it recursively,
25370 as well as to base_type_die. Adjust presence check accordingly.
25371 (base_type_for_mode): Adjust call to modified_type_die.
25372 (add_type_attribute): Add REVERSE parameter and pass it to
25373 modified_type_die.
25374 (generic_parameter_die): Adjust call to add_type_attribute.
25375 (add_scalar_info): Likewise.
25376 (add_subscript_info): Likewise.
25377 (gen_array_type_die): Likewise.
25378 (gen_descr_array_type_die): Likewise.
25379 (gen_entry_point_die): Likewise.
25380 (gen_enumeration_type_die): Likewise.
25381 (gen_formal_parameter_die): Likewise.
25382 (gen_subprogram_die): Likewise.
25383 (gen_variable_die ): Likewise.
25384 (gen_const_die): Likewise.
25385 (gen_field_die): Likewise.
25386 (gen_pointer_type_die): Likewise.
25387 (gen_reference_type_die): Likewise.
25388 (gen_ptr_to_mbr_type_die): Likewise.
25389 (gen_inheritance_die): Likewise.
25390 (gen_subroutine_type_die): Likewise.
25391 (gen_typedef_die): Likewise.
25392 (force_type_die): Adjust call to modified_type_die.
25393
25394 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
25395
25396 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
25397 flow throughout the file. Fix broken link to Objective-C 2.0
25398 documentation.
25399 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
25400 errors.
25401
25402 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25403
25404 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
25405
25406 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25407
25408 PR ipa/66223
25409 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
25410 (maybe_record_node): Record cxa_pure_virtual as the only possible
25411 target if there are not ohter candidates.
25412 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
25413
25414 2016-01-19 Richard Biener <rguenther@suse.de>
25415
25416 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
25417 (get_memory_order): Likewise.
25418
25419 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
25420
25421 * tree-vect-stmts.c (vectorizable_store): Check
25422 rhs vectype.
25423
25424 2016-01-19 David Malcolm <dmalcolm@redhat.com>
25425
25426 PR jit/68446
25427 * gcc.c (driver::decode_argv): Add call to
25428 init_opts_obstack before init_options_struct.
25429 * opts.c (init_opts_obstack): Remove idempotency.
25430 (init_options_struct): Replace call to init_opts_obstack
25431 with a gcc_assert to verify that it has already been called.
25432 * toplev.c (toplev::main): Add call to init_opts_obstack before
25433 calls to init_options_struct.
25434 (toplev::finalize): Move cleanup of opts_obstack next to
25435 cleanup of save_decoded_options, clearing the latter, and
25436 save_decoded_options_count.
25437
25438 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25439
25440 PR target/69135
25441 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
25442 attribute to unconditional. Remove %? from output template.
25443
25444 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25445 Jiong Wang <jiong.wang@arm.com>
25446
25447 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
25448 generated from different expand order.
25449
25450 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25451
25452 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25453 Add support for CCMP costing.
25454
25455 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25456
25457 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
25458 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
25459 (fccmpe<mode>): Likewise.
25460 (fcmp): Rename to fcmp and globalize pattern.
25461 (fcmpe): Likewise.
25462 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
25463 (aarch64_gen_ccmp_next): Add FP support.
25464
25465 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25466
25467 * target.def (gen_ccmp_first): Update documentation.
25468 (gen_ccmp_next): Likewise.
25469 * doc/tm.texi (gen_ccmp_first): Update documentation.
25470 (gen_ccmp_next): Likewise.
25471 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
25472 expand_ccmp_expr_1. Improve comments.
25473 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
25474 (ccmp_ior<mode>): Remove pattern.
25475 (cmp<mode>): Remove expand.
25476 (cmp): Globalize pattern.
25477 (cstorecc4): Use cc_register.
25478 (mov<mode>cc): Remove ccmp_cc_register check.
25479 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
25480 Simplify after removal of CC_DNE/* modes.
25481 (aarch64_ccmp_mode_to_code): Remove.
25482 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
25483 In 'k' case use integer as condition.
25484 (aarch64_nzcv_codes): Remove inverted cases.
25485 (aarch64_code_to_ccmode): Remove.
25486 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
25487 comparison with CC register to be used in folowing CCMP/branch/CSEL.
25488 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
25489 pattern. Return the comparison with CC register. Invert conditions
25490 when bitcode is OR.
25491 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
25492 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
25493
25494 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25495
25496 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25497 instrumented_version.
25498
25499 2016-01-19 Richard Biener <rguenther@suse.de>
25500
25501 PR tree-optimization/69336
25502 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
25503 handled components with get_ref_base_and_extent.
25504 (equal_mem_array_ref_p): Adjust.
25505
25506 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25507
25508 PR debug/65779
25509 * shrink-wrap.c: Include valtrack.h.
25510 (move_insn_for_shrink_wrap): Add DEBUG argument. If
25511 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
25512 in between insn and where it will be moved to. Call
25513 dead_debug_insert_temp.
25514 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
25515 first and dead_debug_local_finish at the end.
25516 For uses and defs bitmap, handle all regs in between REGNO and
25517 END_REGNO, not just the first one.
25518
25519 2016-01-19 Richard Biener <rguenther@suse.de>
25520
25521 PR tree-optimization/69352
25522 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
25523 (equal_mem_array_ref_p): Constrain size and max size properly.
25524 Compare the reverse flag.
25525
25526 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
25527
25528 * ira.c (ira): Update regstat data if we deleted insns.
25529
25530 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25531
25532 PR rtl-optimization/68955
25533 PR rtl-optimization/64557
25534 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
25535 here. Fix up formatting.
25536 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
25537
25538 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25539
25540 PR lto/69133
25541 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
25542 assume that the node has body.
25543 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
25544 check.
25545
25546 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25547
25548 * lto-streamer-out.c (lto_output): Do not stream instrumentation
25549 thunks.
25550
25551 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25552
25553 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
25554 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
25555
25556 2016-01-19 Martin Jambor <mjambor@suse.cz>
25557 Martin Liska <mliska@suse.cz>
25558 Michael Matz <matz@suse.de>
25559
25560 * Makefile.in (OBJS): Add new source files.
25561 (GTFILES): Add hsa.c.
25562 * common.opt (disable_hsa): New variable.
25563 (-Whsa): New warning.
25564 * config.in (ENABLE_HSA): New.
25565 * configure.ac: Treat hsa differently from other accelerators.
25566 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
25567 $enable_offloading.
25568 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
25569 * doc/install.texi (Configuration): Document --with-hsa-runtime,
25570 --with-hsa-runtime-include, --with-hsa-runtime-lib and
25571 --with-hsa-kmt-lib.
25572 * doc/invoke.texi (-Whsa): Document.
25573 (hsa-gen-debug-stores): Likewise.
25574 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
25575 to invoke offload compiler for hsa acclerator.
25576 * opts.c (common_handle_option): Determine whether HSA offloading
25577 should be performed.
25578 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
25579 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
25580 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
25581 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
25582 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
25583 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
25584 GF_OMP_FOR_KIND_GRID_LOOP.
25585 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
25586 (pp_gimple_stmt_1): Likewise.
25587 * gimple-walk.c (walk_gimple_stmt): Likewise.
25588 * gimple.c (gimple_build_omp_grid_body): New function.
25589 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25590 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25591 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25592 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25593 GF_OMP_TEAMS_GRID_PHONY.
25594 (gimple_statement_omp_single_layout): Updated comments.
25595 (gimple_build_omp_grid_body): New function.
25596 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25597 (gimple_omp_for_grid_phony): New function.
25598 (gimple_omp_for_set_grid_phony): Likewise.
25599 (gimple_omp_parallel_grid_phony): Likewise.
25600 (gimple_omp_parallel_set_grid_phony): Likewise.
25601 (gimple_omp_teams_grid_phony): Likewise.
25602 (gimple_omp_teams_set_grid_phony): Likewise.
25603 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25604 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25605 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25606 (BUILT_IN_GOMP_TARGET): Updated type.
25607 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25608 (adjust_for_condition): New function.
25609 (get_omp_for_step_from_incr): Likewise.
25610 (extract_omp_for_data): Moved parts to adjust_for_condition and
25611 get_omp_for_step_from_incr.
25612 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25613 (fixup_child_record_type): Bail out if receiver_decl is NULL.
25614 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25615 (scan_omp_parallel): Do not create child functions for phony
25616 constructs.
25617 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25618 (scan_omp_1_op): Checking assert we are not remapping to
25619 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
25620 (parallel_needs_hsa_kernel_p): New function.
25621 (expand_parallel_call): Register apprpriate parallel child
25622 functions as HSA kernels.
25623 (grid_launch_attributes_trees): New type.
25624 (grid_attr_trees): New variable.
25625 (grid_create_kernel_launch_attr_types): New function.
25626 (grid_insert_store_range_dim): Likewise.
25627 (grid_get_kernel_launch_attributes): Likewise.
25628 (get_target_argument_identifier_1): Likewise.
25629 (get_target_argument_identifier): Likewise.
25630 (get_target_argument_value): Likewise.
25631 (push_target_argument_according_to_value): Likewise.
25632 (get_target_arguments): Likewise.
25633 (expand_omp_target): Call get_target_arguments instead of looking
25634 up for teams and thread limit.
25635 (grid_expand_omp_for_loop): New function.
25636 (grid_arg_decl_map): New type.
25637 (grid_remap_kernel_arg_accesses): New function.
25638 (grid_expand_target_kernel_body): New function.
25639 (expand_omp): Call it.
25640 (lower_omp_for): Do not emit phony constructs.
25641 (lower_omp_taskreg): Do not emit phony constructs but create for them
25642 a temporary variable receiver_decl.
25643 (lower_omp_taskreg): Do not emit phony constructs.
25644 (lower_omp_teams): Likewise.
25645 (lower_omp_grid_body): New function.
25646 (lower_omp_1): Call it.
25647 (grid_reg_assignment_to_local_var_p): New function.
25648 (grid_seq_only_contains_local_assignments): Likewise.
25649 (grid_find_single_omp_among_assignments_1): Likewise.
25650 (grid_find_single_omp_among_assignments): Likewise.
25651 (grid_find_ungridifiable_statement): Likewise.
25652 (grid_target_follows_gridifiable_pattern): Likewise.
25653 (grid_remap_prebody_decls): Likewise.
25654 (grid_copy_leading_local_assignments): Likewise.
25655 (grid_process_kernel_body_copy): Likewise.
25656 (grid_attempt_target_gridification): Likewise.
25657 (grid_gridify_all_targets_stmt): Likewise.
25658 (grid_gridify_all_targets): Likewise.
25659 (execute_lower_omp): Call grid_gridify_all_targets.
25660 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25661 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25662 (tree_omp_clause): Added union field dimension.
25663 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25664 * tree.c (omp_clause_num_ops): Added number of arguments of
25665 OMP_CLAUSE__GRIDDIM_.
25666 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25667 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25668 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25669 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25670 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25671 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25672 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25673 * tree-pass.h (make_pass_gen_hsail): Declare.
25674 (make_pass_ipa_hsa): Likewise.
25675 * ipa-hsa.c: New file.
25676 * lto-section-in.c (lto_section_name): Add hsa section name.
25677 * lto-streamer.h (lto_section_type): Add hsa section.
25678 * timevar.def (TV_IPA_HSA): New.
25679 * hsa-brig-format.h: New file.
25680 * hsa-brig.c: New file.
25681 * hsa-dump.c: Likewise.
25682 * hsa-gen.c: Likewise.
25683 * hsa.c: Likewise.
25684 * hsa.h: Likewise.
25685 * toplev.c (compile_file): Call hsa_output_brig.
25686 * hsa-regalloc.c: New file.
25687
25688 2016-01-18 Jeff Law <law@redhat.com>
25689
25690 PR tree-optimization/69320
25691 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25692 ranged object, do nothing if the RHS constant is not [0..1].
25693 (optimize_stmt): Comparing a boolean ranged object against a
25694 constant outside [0..1] results in a compile-time constant.
25695
25696 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25697 test.
25698
25699 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
25700
25701 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25702 (Option Summary): Update to reflect new section and moved options.
25703 (C++ Dialect Options): Move -fstats to new section.
25704 (Debugging Options): Move all dump, statistics, and other GCC
25705 developer options to new section. Rewrite section introduction
25706 and re-order remaining options to put the more basic ones first.
25707 (Optimization Options): Move -fira-verbose and -flto-report* to
25708 new section.
25709 (Developer Options): New section incorporating moved options.
25710 * doc/cppopts.texi (-dM): Update cross-reference.
25711
25712 2016-01-18 Richard Henderson <rth@redhat.com>
25713
25714 PR target/69176
25715 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25716 operands to pseudo only if CSE is expected. Split long immediate
25717 operands only after reload, and for the stack pointer.
25718 (*add<GPI>3_pluslong): Remove.
25719 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25720 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
25721 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25722 (*add<GPI>3 peepholes): New.
25723 (*add<GPI>3 splitters): New.
25724 * config/aarch64/constraints.md (Upl): New.
25725 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25726
25727 2016-01-18 Richard Biener <rguenther@suse.de>
25728
25729 PR tree-optimization/69297
25730 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25731 stmt at most once.
25732 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25733
25734 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25735
25736 PR middle-end/68542
25737 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25738 of mixind vector and scalar types.
25739 (fold_relational_const): Add handling of vector
25740 comparison with boolean result.
25741 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25742 comparison of vector operands with boolean result for EQ/NE only.
25743 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25744 (verify_gimple_cond): Likewise.
25745 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25746 valid type of VAL.
25747
25748 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25749
25750 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25751 !TARGET_OCTEON.
25752
25753 2016-01-18 Richard Biener <rguenther@suse.de>
25754
25755 PR middle-end/69308
25756 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25757
25758 2016-01-18 Tom de Vries <tom@codesourcery.com>
25759
25760 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25761
25762 2016-01-18 Tom de Vries <tom@codesourcery.com>
25763
25764 * omp-low.c (set_oacc_fn_attrib): Make extern.
25765 * omp-low.h (set_oacc_fn_attrib): Declare.
25766 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25767 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25768 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25769 Add and handle function parameter oacc_kernels_p.
25770 (find_reduc_addr, get_omp_data_i_param): New function.
25771 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25772 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25773 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25774 Calculate dominance info. Skip loops that are not in a kernels region
25775 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25776 (pass_parallelize_loops::execute): Call parallelize_loops with
25777 oacc_kernels_p argument.
25778 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25779 New member function.
25780 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25781 * passes.def: Add argument to pass_parallelize_loops instantation.
25782
25783 2016-01-18 Tom de Vries <tom@codesourcery.com>
25784
25785 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25786 pass_parallelize_loops to be run outside the loop pipeline.
25787
25788 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25789
25790 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25791 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25792
25793 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25794
25795 PR target/63679
25796 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25797 using get_ref_base_and_extent.
25798 (equal_mem_array_ref_p): New.
25799 (hashable_expr_equal_p): Add call to previous.
25800
25801 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25802
25803 PR target/63679
25804 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25805 (sra_initialize): Allocate disqualified_constants.
25806 (sra_deinitialize): Free disqualified_constants.
25807 (disqualify_candidate): Update disqualified_constants when appropriate.
25808 (create_access): Scan for constant-pool entries as we go along.
25809 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25810 (maybe_add_sra_candidate): Allow constant-pool entries.
25811 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25812 (initialize_constant_pool_replacements): New.
25813 (sra_modify_assign): Avoid mangling assignments created by previous,
25814 and don't generate writes into constant pool.
25815 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25816
25817 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25818
25819 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25820 andnot instruction.
25821 (scalar_chain::convert_op): Likewise.
25822 * config/i386/i386.md (*andndi3_doubleword): New.
25823
25824 2016-01-18 Richard Biener <rguenther@suse.de>
25825
25826 PR tree-optimization/69170
25827 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25828 building a vector from scalar results of a pattern stmt.
25829
25830 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25831
25832 * haifa-sched.c (autopref_multipass_init): Work around
25833 -Wmaybe-uninitialized warning.
25834
25835 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25836
25837 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25838 against the constant 0.
25839
25840 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25841
25842 PR tree-optimization/68799
25843 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25844 look up phi candidates in the statement-candidate map.
25845 (phi_add_costs): Likewise.
25846 (record_phi_increments): Likewise.
25847 (phi_incr_cost): Likewise.
25848 (ncd_with_phi): Likewise.
25849 (all_phi_incrs_profitable): Likewise.
25850
25851 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25852
25853 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25854 -Wmaybe-uninitialized warning.
25855
25856 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25857
25858 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25859 (Option Summary): Update to reflect new section and moved options.
25860 (C++ Dialect Options): Move -fvtable-verify and related options.
25861 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25862 and profiling-related options.
25863 (Optimization Options): Move profile generation options and
25864 -fstack-protector and related options.
25865 (Instrumentation Options): New section incorporating moved options.
25866 (Code Generation Options): Move -finstrument-functions and
25867 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25868
25869 2016-01-16 Tom de Vries <tom@codesourcery.com>
25870
25871 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25872
25873 2016-01-16 Tom de Vries <tom@codesourcery.com>
25874
25875 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25876
25877 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25878
25879 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25880 that checks whether the table is already empty. Rename the
25881 original implementation to...
25882 (hash_table::empty_slot): ...this new private function.
25883
25884 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25885
25886 PR diagnostic/68899
25887 * diagnostic-show-locus.c (layout::print_source_line): Move x
25888 offset of line until after call to
25889 get_line_width_without_trailing_whitespace.
25890
25891 2016-01-15 Jeff Law <law@redhat.com>
25892
25893 PR tree-optimization/69270
25894 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25895 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25896 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25897 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25898 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25899 ssa_name_has_boolean_range and constant_boolean_node.
25900
25901 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25902
25903 PR rtl-optimization/69030
25904 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25905 returning bool.
25906 (spill_pseudos): Delete debug insn for dead pseudo.
25907 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25908
25909 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25910
25911 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25912 New.
25913 (TYPES_UNOPUS): Likewise.
25914 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25915 builtin type, from UNOP to UNOPUS.
25916 (lbtruncuv4sf): Likewise.
25917 (lbtruncuv2df): Likewise.
25918 (lrounduv2sf): Likewise.
25919 (lrounduv4sf): Likewise.
25920 (lrounduv2df): Likewise.
25921 (lroundusf): Likewise.
25922 (lroundusf): Likewise.
25923 (lceiluv2sf): Likewise.
25924 (lceiluv4sf): Likewise.
25925 (lceiluv2df): Likewise.
25926 (lceilusf): Likewise.
25927 (lceiludf): Likewise.
25928 (lflooruv2sf): Likewise.
25929 (lflooruv4sf): Likewise.
25930 (lflooruv2df): Likewise.
25931 (lfloorusf): Likewise.
25932 (lfloorudf): Likewise.
25933 (lfrintnuv2sf): Likewise.
25934 (lfrintnuv4sf): Likewise.
25935 (lfrintnuv2df): Likewise.
25936 (lfrintnusf): Likewise.
25937 (lfrintnudf): Likewise.
25938 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25939 conversion.
25940 (vcvtq_u32_f32): Likewise.
25941 (vcvtq_u64_f64): Likewise.
25942 (vcvta_u32_f32): Likewise.
25943 (vcvtaq_u32_f32): Likewise.
25944 (vcvtaq_u64_f64): Likewise.
25945 (vcvtm_u32_f32): Likewise.
25946 (vcvtmq_u32_f32): Likewise.
25947 (vcvtmq_u64_f64): Likewise.
25948 (vcvtn_u32_f32): Likwise.
25949 (vcvtnq_u32_f32): Likewise.
25950 (vcvtnq_u64_f64): Likewise.
25951 (vcvtp_u32_f32): Likewise.
25952 (vcvtpq_u32_f32): Likewise.
25953 (vcvtpq_u64_f64): Likewise.
25954 (vcvtmd_u64_f64): Likewise.
25955 (vcvtms_u32_f32): Likewise.
25956 (vcvtad_u64_f64): Likewise.
25957 (vcvtas_u32_f32): Likewise.
25958 (vcvtnd_u64_f64): Likewise.
25959 (vcvtns_u32_f32): Likewise.
25960 (vcvtpd_u64_f64): Likewise.
25961 (vcvtps_u32_f32): Likewise.
25962
25963 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25964
25965 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25966 CSEL of zero_extended registers.
25967
25968 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25969
25970 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25971 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25972
25973 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25974
25975 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25976 false when argument string is not found in the attributes table
25977 at all.
25978
25979 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
25980
25981 PR target/68609
25982 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25983 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
25984 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
25985 precision estimate.
25986
25987 2016-01-15 Richard Biener <rguenther@suse.de>
25988
25989 PR tree-optimization/66856
25990 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
25991 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
25992 (vect_create_new_slp_node): Increment stmt reference count.
25993 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
25994 an SLP tree before swapping operands.
25995 (vect_build_slp_tree): Likewise.
25996 (destroy_bb_vec_info): Free stmt info after SLP instances.
25997 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
25998 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
25999 (STMT_VINFO_NUM_SLP_USES): New macro.
26000
26001 2016-01-15 Richard Biener <rguenther@suse.de>
26002
26003 PR debug/69137
26004 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
26005 (add_linkage_name): ... here.
26006 (gen_typedef_die): Use add_linkage_name_raw instead of
26007 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
26008 if necessary.
26009
26010 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
26011
26012 * gimplify.c (oacc_default_clause): Decode reference and pointer
26013 types for both kernels and parallel regions.
26014
26015 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
26016
26017 PR middle-end/69246
26018 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
26019
26020 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26021
26022 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
26023 (convert_scalars_to_vector): Likewise.
26024
26025 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
26026
26027 * doc/extend.texi (Type Traits): Fix grammar.
26028
26029 2016-01-15 Martin Jambor <mjambor@suse.cz>
26030
26031 * tree-inline.c (remap_decl): Use existing dclarations if
26032 remapping a type and prevent_decl_creation_for_types.
26033 (replace_locals_stmt): Do an initial remapping of non-VLA typed
26034 decls first. Do real remapping with
26035 prevent_decl_creation_for_types set.
26036 * tree-inline.h (copy_body_data): New field
26037 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
26038 padding.
26039
26040 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26041
26042 * config/s390/s390.opt (mmvcle): More verbose help text.
26043
26044 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26045
26046 * config/s390/s390.opt: Add period to -mzvector option text.
26047
26048 2016-01-15 Richard Biener <rguenther@suse.de>
26049
26050 PR tree-optimization/68961
26051 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
26052 of invariants in stores again.
26053
26054 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26055
26056 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
26057
26058 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26059
26060 * config/i386/i386.c (ix86_expand_branch): Don't split
26061 DI mode xor instruction to SI mode.
26062
26063 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26064
26065 PR ipa/68148
26066 * ipa-icf.c (sem_function::merge): Virtual functions may become
26067 reachable even if they address is not taken and there are no
26068 idrect calls.
26069
26070 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26071
26072 * lto-streamer-out.c (subtract_estimated_size): New function.
26073 (get_symbol_initial_value): Use it.
26074
26075 2016-01-15 Christian Bruel <christian.bruel@st.com>
26076
26077 PR target/65837
26078 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
26079 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
26080 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
26081 use add_builtin_function_ext_scope instead of add_builtin_function.
26082 (neon_set_p, neon_crypto_set_p): Remove.
26083 (arm_init_builtins): Always call arm_init_neon_builtins and
26084 arm_init_crypto_builtins.
26085 (arm_expand_builtin): Check that builtins are allowed for the arch.
26086 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
26087 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
26088 arm_init_neon_builtins call.
26089
26090 2016-01-15 Richard Biener <rguenther@suse.de>
26091
26092 PR tree-optimization/69117
26093 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
26094 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
26095 of the leader conservatively.
26096 (free_scc_vn): Restore original SSA name infos.
26097
26098 2016-01-14 Jeff Law <law@redhat.com>
26099
26100 PR tree-optimization/69270
26101 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
26102 single bit of precision, verify it's also unsigned.
26103 (record_edge_info): Use constant_boolean_node rather than fold_convert
26104 to convert boolean_true/boolean_false to the right type.
26105
26106 2016-01-14 Richard Henderson <rth@redhat.com>
26107
26108 PR rtl-opt/69014
26109 * loop-doloop.c (record_reg_sets): New.
26110 (doloop_optimize): Reject the transform if the sequence
26111 clobbers registers live at the end of the loop block.
26112 (doloop_optimize_loops): Enable df_live if needed.
26113
26114 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26115
26116 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
26117 * config/rs6000/rs6000.c: Likewise.
26118 * config/rs6000/rs6000.h: Likewise.
26119 * config/rs6000/rs6000.md: Likewise.
26120 * doc/extend.texi: Likewsie.
26121
26122 2016-01-14 Jeff Law <law@redhat.com>
26123
26124 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
26125 typo.
26126
26127 2016-01-14 Richard Henderson <rth@redhat.com>
26128
26129 PR c/69272
26130 PR tree-opt/68964
26131 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
26132 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
26133 instead of builtin_decl_declared_p to test for declaration.
26134
26135 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
26136
26137 * doc/loop.texi (Loop Analysis and Representation): Document
26138 loop_depth function.
26139
26140 2016-01-14 Tom de Vries <tom@codesourcery.com>
26141
26142 PR tree-optimization/68773
26143 * omp-low.c (expand_omp_target): Don't set force_output.
26144 * varpool.c (varpool_node::get_create): Same.
26145 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
26146 offload_funcs with force_output.
26147
26148 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26149
26150 PR debug/69244
26151 * lra-eliminations.c (move_plus_up): Don't change anything if either
26152 the outer or inner subreg mode is not MODE_INT.
26153 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
26154 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
26155
26156 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26157
26158 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
26159 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
26160 reduc_uplus_@var{m}): Remove.
26161 * expr.c (expand_expr_real_2): Remove expansion path for
26162 reduc_[us](min|max|plus) optabs.
26163 * optabs-tree.c (scalar_reduc_to_vector): Remove.
26164 * optabs-tree.h (scalar_reduc_to_vector): Remove.
26165 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
26166 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
26167 * tree-vect-loop.c (vectorizable_reduction): Remove test for
26168 reduc_[us](min|max|plus) optabs.
26169
26170 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26171
26172 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
26173 (reduc_plus_scal_v2sf): New.
26174 (reduc_smax_v2sf): Rename to...
26175 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
26176 (reduc_smin_v2sf): Rename to...
26177 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
26178
26179 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
26180
26181 * alias.c (compare_base_symbol_refs): New function.
26182 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
26183 it.
26184
26185 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26186
26187 PR middle-end/68146
26188 PR tree-optimization/69155
26189 * tree-complex.c: Include cfganal.h.
26190 (phis_to_revisit): New variable.
26191 (extract_component): Add phiarg_p argument. Assert that returned
26192 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
26193 (update_phi_components): Partly rewrite to use loop over real/imag
26194 components instead of code duplication. If extract_component returns
26195 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
26196 create_tmp_reg into the PHI node instead, and mention the phi triplet
26197 in phis_to_revisit.
26198 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
26199 in phis_to_revisit at the end.
26200
26201 2016-01-14 Richard Biener <rguenther@suse.de>
26202
26203 PR tree-optimization/68060
26204 * tree-vect-loop.c (vect_is_simple_reduction): Check the
26205 outer loop reduction is only used in the inner loop before
26206 detecting a double reduction.
26207
26208 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26209
26210 PR target/68269
26211 * combine.c (expand_field_assignment): Punt if compute_mode is
26212 unsupported scalar mode.
26213
26214 2016-01-14 Richard Biener <rguenther@suse.de>
26215
26216 PR tree-optimization/66856
26217 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
26218 SLP node only if it built successfully.
26219 (vect_analyze_slp_instance): Adjust.
26220
26221 2016-01-14 Jeff Law <law@redhat.com>
26222
26223 PR tree-optimization/69270
26224 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
26225 (record_edge_info): Use it. Convert boolean_{true,false}_node
26226 to the type of op0.
26227
26228 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
26229
26230 PR ipa/66487
26231 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
26232 use block_ultimate_origin
26233 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
26234
26235 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26236
26237 * doc/invoke.texi (Submodel Options): Rename section to
26238 "Machine-Dependent Options" to better reflect its content.
26239 Rewrite introductory text to remove archaic CPU names.
26240 Update references.
26241
26242 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26243
26244 * doc/invoke.texi (Code Gen Options): Move section up in file,
26245 before target-specific options. Update menu and option summary
26246 to reflect the new section ordering.
26247
26248 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26249
26250 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
26251 (C++ Dialect Options): Add cross-reference to -std option.
26252 * doc/standards.texi (C++ Language): Document C++14 support.
26253
26254 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26255
26256 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
26257 for pack/unpack functions for __ibm128.
26258 (PACK_IF): Likewise.
26259 (UNPACK_IF): Likewise.
26260
26261 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26262 support for __ibm128 pack/unpack functions.
26263 (rs6000_invalid_builtin): Likewise.
26264 (rs6000_init_builtins): Likewise.
26265 (rs6000_opt_masks): Likewise.
26266
26267 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
26268 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
26269 functions
26270 (RS6000_BTM_COMMON): Likewise.
26271
26272 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
26273 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
26274 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
26275 128-bit floating point. Add support for the double values to be
26276 in Altivec registers for TF/IF packing and unpacking, but restrict
26277 TD packing sub-fields to be FPR registers. Don't allow overlapped
26278 register support for packing. Allow pack inputs to be memory
26279 locations. Don't build generator functions for unpack<mode>_dm
26280 and unpack<mode>_nodm.
26281 (unpack<mode>_dm): Likewise.
26282 (unpack<mode>_nodm): Likewise.
26283 (pack<mode>): Likewise.
26284
26285 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
26286 built-in functions to pack/unpack explicit __ibm128 values.
26287 (__builtin_unpack_ibm128): Likewise.
26288
26289 * doc/extend.texi (PowerPC Built-in Functions): Document
26290 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
26291
26292 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
26293
26294 PR c/66208
26295 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
26296 Add new arg loc and pass it down as context.
26297 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
26298 to the location to use for the warning.
26299 (check_function_arguments): New arg loc. All callers changed. Pass
26300 it to check_function_nonnull.
26301 * c-common.h (check_function_arguments): Adjust declaration.
26302
26303 2016-01-13 Jakub Jelinek <jakub@redhat.com>
26304
26305 PR tree-optimization/69156
26306 * gimple.c (validate_type): Removed.
26307 (gimple_builtin_call_types_compatible_p): Use
26308 useless_type_conversion_p instead of validate_type.
26309 * value-prof.c (gimple_stringop_fixed_value): Fold
26310 icall_size to correct type.
26311
26312 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26313
26314 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
26315 effects.
26316
26317 2016-01-13 Richard Henderson <rth@redhat.com>
26318
26319 PR tree-opt/68964
26320 * target.def (builtin_tm_load, builtin_tm_store): Remove.
26321 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
26322 (ix86_builtin_tm_store): Remove.
26323 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26324 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26325 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26326 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26327 * doc/tm.texi: Rebuild.
26328
26329 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
26330 (BUILT_IN_TM_MEMCPY_RTWN): New.
26331 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
26332 fallback from vector to integer helpers.
26333 (build_tm_load): Handle vector types directly, instead of
26334 via target hook.
26335 (build_tm_store): Likewise.
26336 (expand_assign_tm): Prepare for register types not handled by
26337 the above. Copy them to memory and use memcpy.
26338 * tree.c (tm_define_builtin): New.
26339 (find_tm_vector_type): New.
26340 (build_tm_vector_builtins): New.
26341 (build_common_builtin_nodes): Call it.
26342
26343 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
26344
26345 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
26346 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
26347
26348 2016-01-13 Tom de Vries <tom@codesourcery.com>
26349
26350 PR tree-optimization/69169
26351 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
26352 handled_struct_type param.
26353 (create_variable_info_for, intra_create_variable_infos): Call
26354 create_variable_info_for_1 with extra arg.
26355
26356 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
26357
26358 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
26359 and "armv8.1-a+crc" entries.
26360
26361 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
26362
26363 PR target/69228
26364 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
26365 Change first operand predicate from register_or_constm1_operand
26366 to register_operand.
26367 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
26368 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
26369 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
26370 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
26371 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
26372 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
26373 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
26374 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
26375 comparison with constm1_rtx from vec_prefetch_gen part.
26376
26377 2016-01-13 Richard Biener <rguenther@suse.de>
26378
26379 PR tree-optimization/69013
26380 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
26381 Exchange assert for a test.
26382
26383 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26384
26385 PR target/69247
26386 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
26387
26388 2016-01-13 Richard Biener <rguenther@suse.de>
26389
26390 PR tree-optimization/69242
26391 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
26392 assert with a check.
26393
26394 2016-01-13 Richard Biener <rguenther@suse.de>
26395
26396 PR tree-optimization/69186
26397 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26398 Properly guard vect_update_misalignment_for_peel call.
26399
26400 2016-01-12 Jeff Law <law@redhat.com>
26401
26402 PR tree-optimization/pr67755
26403 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
26404 "need_profile_correction".
26405 (thread_block_1): Initialize new field to false by default. If we
26406 have multiple thread paths through a common joiner to different
26407 final targets, then set new field to true.
26408 (compute_path_counts): Only do count adjustment when it's really
26409 needed.
26410
26411 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26412
26413 * doc/invoke.texi (Spec Files): Move section down in file, past
26414 all command-line option descriptions.
26415
26416 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26417
26418 PR middle-end/54809
26419 * doc/gty.texi: Remove documentation of mark_hook.
26420 * gengtype.c (struct write_types_data): Remove code to support
26421 mark_hook attribute.
26422 (walk_type): Likewise.
26423 (write_func_for_structure): Likewise.
26424
26425 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26426
26427 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
26428 Directory Options, and -specs= to Overall Options.
26429 (Overall Options): Adjust similarly. Reorder to group related
26430 options together. Make -specs= cross-reference the spec file details.
26431 (Directory Options): Adjust similarly.
26432
26433 2016-01-12 Jeff Law <law@redhat.com>
26434
26435 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
26436
26437 2016-01-12 Olivier Hainque <hainque@adacore.com>
26438
26439 * gcc.c (spec_undefvar_allowed): New global.
26440 (process_command): Set to true when running for --version or --help,
26441 alone or together.
26442 (getenv_spec_function): When the variable is not defined, use the
26443 variable name as the variable value if we're allowed not to issue
26444 a fatal error.
26445
26446 2016-01-12 Bin Cheng <bin.cheng@arm.com>
26447
26448 PR tree-optimization/68911
26449 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
26450 information computed for expression "init + nit * step".
26451
26452 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26453
26454 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
26455 about name of GCC executable. Remove deleted node from menu.
26456 (Directory Options) <-B>: Remove cross-reference to deleted node.
26457 (Target Options): Delete section.
26458
26459 2016-01-12 Christian Bruel <christian.bruel@st.com>
26460
26461 PR target/69180
26462 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
26463 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
26464
26465 2016-01-12 Jakub Jelinek <jakub@redhat.com>
26466
26467 PR target/69198
26468 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
26469 aligned_mem is properly set for AVX512-VL floating point masked
26470 stores.
26471
26472 PR target/69175
26473 * ifcvt.c (cond_exec_process_if_block): When removing the last
26474 insn from then_bb, remove also any possible barriers that follow it.
26475
26476 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
26477
26478 PR target/68456
26479 PR target/69226
26480 * config/i386/iamcu.h (SIZE_TYPE): New macro.
26481 (PTRDIFF_TYPE): Likewise.
26482 (WCHAR_TYPE): Likewise.
26483 (WCHAR_TYPE_SIZE): Likewise.
26484 (STDINT_LONG32): Likewise.
26485
26486 2016-01-12 Richard Biener <rguenther@suse.de>
26487
26488 PR tree-optimization/69053
26489 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
26490 convert initial value for cond reductions.
26491
26492 2016-01-12 Richard Biener <rguenther@suse.de>
26493
26494 PR tree-optimization/69007
26495 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
26496 widen_sum after dot_prod and sad.
26497
26498 2016-01-12 Richard Biener <rguenther@suse.de>
26499
26500 PR tree-optimization/69168
26501 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
26502 pattern stmt SLP type.
26503 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
26504 end up unused so cope with that case.
26505
26506 2016-01-12 Richard Biener <rguenther@suse.de>
26507
26508 PR tree-optimization/69157
26509 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
26510 stmts def type only during analyze phase.
26511 (vectorizable_call): Likewise.
26512 (vectorizable_simd_clone_call): Likewise.
26513 (vectorizable_conversion): Likewise.
26514 (vectorizable_assignment): Likewise.
26515 (vectorizable_shift): Likewise.
26516 (vectorizable_operation): Likewise.
26517 (vectorizable_store): Likewise.
26518 (vectorizable_load): Likewise.
26519
26520 2016-01-12 Richard Biener <rguenther@suse.de>
26521
26522 PR tree-optimization/69174
26523 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
26524 space.
26525 (vectorizable_load): Properly compute the number of loads needed
26526 for permuted strided SLP loads and do not spuriously assign
26527 to SLP_TREE_VEC_STMTS.
26528
26529 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
26530
26531 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
26532 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
26533 (MD_EXEC_PREFIX): Remove.
26534 (MD_STARTFILE_PREFIX) Removee.
26535 (FILE_NAME_ABSOLUTE_P): Remove.
26536 (CPP_SPEC): Do not read macros from sys/version.h.
26537 (LINK_COMMAND_SPEC): Remove.
26538 (LOCAL_INCLUDE_DIR): Remove.
26539 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
26540 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
26541 (POST_LINK_SPEC): Define to invoke stubify after linker
26542 (LIBSTDCXX): Remove define
26543 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
26544 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
26545 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
26546 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
26547 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
26548 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
26549 (i386_djgpp_asm_named_section): Add propotype of new procedure
26550
26551 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
26552 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
26553 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
26554 in config/i386/djgpp.h).
26555 (STANDARD_STARTFILE_PREFIX_2): Define identical to
26556 STANDARD_STARTFILE_PREFIX_1.
26557 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
26558 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
26559 installation errors.
26560 (MAX_OFILE_ALIGNMENT): Define to 128.
26561 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
26562
26563 * config/i386/djgpp.c: New file. Add implementation of
26564 i386_djgpp_asm_named_section.
26565
26566 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
26567
26568 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
26569 Add rule for building djgpp.o.
26570
26571 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26572
26573 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
26574 (rtx_is_swappable_p): Reductions are swappable.
26575 (insn_is_swappable_p): V2DF reductions are swappable.
26576
26577 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
26578
26579 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
26580 reloads for other unsupported memory operands.
26581
26582 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26583 Jim Wilson <jim.wilson@linaro.org>
26584
26585 PR target/69194
26586 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
26587 copy_to_mode_reg instead of force_reg.
26588
26589 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26590
26591 PR target/69225
26592 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26593 TARGET_80387 is true.
26594
26595 2016-01-11 Jakub Jelinek <jakub@redhat.com>
26596
26597 PR target/69071
26598 * lra-eliminations.c (move_plus_up): Only move plus up
26599 if subreg of the constant can be simplified into constant
26600 and use the simplified subreg of the constant instead of
26601 the original constant.
26602
26603 * fold-const.c (fold_convertible_p): Don't return true
26604 for conversion of VECTOR_TYPE to same sized integral type.
26605 (fold_convert_loc): Fix up formatting. Fold conversion of
26606 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26607 instead of NOP_EXPR.
26608
26609 PR tree-optimization/69214
26610 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26611 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26612 Formatting fix.
26613
26614 PR tree-optimization/69207
26615 * tree-vect-slp.c (vect_get_constant_vectors): For
26616 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26617 fold_convertible_p to vector_type's element type, and always
26618 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26619
26620 2016-01-11 Richard Biener <rguenther@suse.de>
26621
26622 PR tree-optimization/69173
26623 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26624 fixup the cycle if all stmts are in a pattern.
26625
26626 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
26627
26628 PR middle-end/68999
26629 * alias.c (base_alias_check): Move check for addresses with
26630 alignment ANDs before the call for compare_base_decls.
26631 (memrefs_conflict_p): Return -1 for different decls
26632 that went through alignment adjustments.
26633
26634 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26635
26636 PR rtl-optimization/68796
26637 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26638 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26639 and QImode comparisons against zero with CC_NZmode.
26640 * config/aarch64/iterators.md (short_mask): New mode_attr.
26641
26642 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26645 (<avx512>_store<mode>_mask): Likewise.
26646
26647 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
26648 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26649
26650 PR rtl-optimization/68841
26651 * ifcvt.c (struct noce_if_info): Add orig_x field.
26652 (bbs_ok_for_cmove_arith): Add to_rename parameter.
26653 Don't record conflicts on to_rename if it's present.
26654 Allow memory destinations in sets.
26655 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26656 blocks, passing orig_x to the checks.
26657 (noce_process_if_block): Set if_info->orig_x appropriately.
26658
26659 2016-01-11 Tom de Vries <tom@codesourcery.com>
26660
26661 PR tree-optimization/69069
26662 * tree-parloops.c (create_parallel_loop): Add missing phi args.
26663
26664 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
26665
26666 PR rtl-optimization/68920
26667 * config/i386/i386.c (ix86_option_override_internal): Restrict number
26668 of conditional moves for RTL if-conversion to 1 for
26669 TARGET_ONE_IF_CONV_INSN.
26670 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26671 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26672 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26673 parameter to restirct number of conditional moves for
26674 RTL if-conversion.
26675 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26676 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26677 conditionl moves.
26678
26679 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
26680
26681 PR bootstrap/69123
26682 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26683 onepart vars. Fix typo in comment. Fix reversed condition in
26684 unshare test.
26685 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26686
26687 PR bootstrap/69123
26688 * var-tracking.c (dump_onepart_variable_differences): New.
26689 (dataflow_set_different): If a detailed dump is requested,
26690 delay early returns and dump differences between onepart
26691 variables present before and after, and added variables.
26692
26693 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26694
26695 PR target/69010
26696 * expr.c (expand_expr_real_1): For boolean vector constants
26697 with a scalar mode use const_scalar_mask_from_tree.
26698 (const_scalar_mask_from_tree): New.
26699 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26700 assigned to a mask type to handle constants.
26701
26702 2016-01-11 Martin Jambor <mjambor@suse.cz>
26703
26704 PR ipa/69044
26705 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26706 useless parameters if we cannot change function signature.
26707
26708 2016-01-11 Martin Jambor <mjambor@suse.cz>
26709
26710 PR ipa/66616
26711 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26712 flag.
26713
26714 2016-01-11 Tom de Vries <tom@codesourcery.com>
26715
26716 PR tree-optimization/69109
26717 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26718 latch with phi.
26719
26720 2016-01-11 Tom de Vries <tom@codesourcery.com>
26721
26722 PR tree-optimization/69108
26723 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26724 res is not used in a phi.
26725
26726 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26727
26728 PR 67425
26729 * common.opt (frandom-seed): Fix parameter name.
26730 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26731
26732 2016-01-11 Tom de Vries <tom@codesourcery.com>
26733
26734 PR tree-optimization/69058
26735 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26736 not supported.
26737
26738 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26739
26740 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26741 (mcode-density): Likewise.
26742
26743 2016-01-10 Tom de Vries <tom@codesourcery.com>
26744
26745 PR tree-optimization/69062
26746 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26747 (parallelize_loops): Don't paralelize loop that has phi with address
26748 arg.
26749
26750 2016-01-10 Tom de Vries <tom@codesourcery.com>
26751
26752 PR tree-optimization/69039
26753 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26754 phi for reduction.
26755
26756 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26757
26758 PR middle-end/68743
26759 * match.pd: Require target has function_c99_misc before doing
26760 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26761
26762 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26763
26764 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26765 use GMPINC.
26766 * configure: Regenerate.
26767
26768 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26769
26770 PR middle-end/50865
26771 PR tree-optimization/69097
26772 * fold-const.h (expr_not_equal_to): New prototype.
26773 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26774 (expr_not_equal_to): New function.
26775 * match.pd (X % -Y is the same as X % Y): Don't optimize
26776 unless X is known not to be equal to minimum or Y is known
26777 not to be equal to -1.
26778 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26779 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26780 (simplify_stmt_using_ranges): Adjust caller.
26781 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26782 substitute_and_fold.
26783
26784 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26785
26786 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26787 w/o DECL_NAME.
26788
26789 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26790
26791 PR tree-optimization/69167
26792 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26793 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26794 ops[0] comparison.
26795 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26796
26797 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26798 Richard Biener <rguenther@suse.de>
26799
26800 PR tree-optimization/68707
26801 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26802 instances that can be handled via vect_load_lanes.
26803
26804 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26805
26806 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26807 if we can't determine address equivalence.
26808 * alias.c (compare_base_decl): Update for changed return value of
26809 symtab_node::equal_address_to.
26810
26811 2016-01-08 Jason Merrill <jason@redhat.com>
26812
26813 PR c++/68983
26814 PR c++/67557
26815 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26816 * expr.c (store_field): Not here.
26817 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26818 call with TREE_ADDRESSABLE type.
26819 * tree-cfg.c (verify_gimple_call): Adjust.
26820
26821 2016-01-08 Olivier Hainque <hainque@adacore.com>
26822
26823 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26824 libc_internal.
26825
26826 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26827
26828 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26829 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26830 (reduc_smin_v2sf): Rename to...
26831 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26832 (reduc_splus_v2sf): Rename to...
26833 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26834
26835 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26836
26837 PR tree-optimization/69162
26838 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26839 valist argument in another argument.
26840 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26841 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26842 to determine the va_list type, build a MEM_REF instead of
26843 build_fold_indirect_ref.
26844
26845 PR tree-optimization/69172
26846 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26847 gimple_build.
26848
26849 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26850
26851 PR tree-optimization/67781
26852 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26853 and cmpnop in two steps: first the ones not accessed in original
26854 gimple expression in a endian independent way and then the ones not
26855 accessed in the final result in an endian-specific way.
26856
26857 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26858
26859 PR tree-optimization/69083
26860 * tree-vect-slp.c (vect_get_constant_vectors): For
26861 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26862 element type. If op is fold_convertible_p to vector_type's element
26863 type, use NOP_EXPR instead of VCE.
26864
26865 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26866
26867 PR rtl-optimization/67778
26868 PR rtl-optimization/68634
26869 PR rtl-optimization/68909
26870 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26871 block from the stack until done with it. Remove a superfluous
26872 bitmap set. Remove a superfluous bitmap test.
26873
26874 2016-01-07 Martin Sebor <msebor@redhat.com>
26875
26876 PR c/68966
26877 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26878 constraint on the type of arguments.
26879
26880 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26881
26882 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26883 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26884 unaligned_access on the gcc_options set.
26885 * config/arm/arm.c (arm_option_override_internal): Use
26886 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26887
26888 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26889
26890 PR target/69140
26891 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26892 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26893
26894 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26895
26896 Revert
26897 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26898
26899 PR target/69140
26900 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26901 depending on frame_pointer_needed before remaining integer and SSE
26902 registers are saved.
26903
26904 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26905
26906 PR 1078
26907 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26908
26909 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26910
26911 PR target/69171
26912 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26913 Use the "xBm" constraint.
26914 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26915 Likewise.
26916 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26917 (sse_cvtsi2ssq<round_name>): Likewise.
26918 (sse_cvtss2si<round_name>): Likewise.
26919 (sse_cvtss2siq<round_name>): Likewise.
26920 (sse2_cvtsi2sdq<round_name>): Likewise.
26921 (sse2_cvtsd2si<round_name>): Likewise.
26922 (sse2_cvtsd2siq<round_name>): Likewise.
26923 * config/i386/subst.md (round_nimm_scalar_predicate): New
26924 predicate.
26925
26926 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
26927
26928 PR middle-end/67639
26929 * varasm.c (make_decl_rtl): Mark invalid register vars as
26930 DECL_EXTERNAL.
26931
26932 PR rtl-optimization/66206
26933 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26934 All callers changed.
26935
26936 2016-01-07 Jakub Jelinek <jakub@redhat.com>
26937
26938 PR tree-optimization/69141
26939 * tree-ssa-pre.c: Include langhooks.h.
26940 (eliminate_dom_walker::before_dom_children): Use
26941 lang_hooks.decl_printable_name instead of
26942 cgraph_node::get ()->name ().
26943
26944 PR middle-end/68960
26945 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26946 it and DECL_ALIGN too.
26947
26948 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
26949
26950 * config/mips/mips-ftypes.def: Sort to lexicographical order.
26951
26952 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26953
26954 PR target/69140
26955 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26956 depending on frame_pointer_needed before remaining integer and SSE
26957 registers are saved.
26958
26959 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26960
26961 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26962 mode iterator with VSX_M2.
26963 (*p9_vecstore_<mode>): Likewise.
26964 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26965 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26966 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26967 (define_split for VSX_LE128 stores): Likewise.
26968 (define_peephole2 for TImode LE swaps): Likewise.
26969 (define_split for VSX_LE128 post-reload stores): Likewise.
26970
26971 2016-01-06 Marek Polacek <polacek@redhat.com>
26972
26973 PR sanitizer/69099
26974 * convert.c (convert_to_integer_1): Adjust call to
26975 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
26976 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
26977 EXPR instead of ARG.
26978 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26979
26980 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26981
26982 PR 1078
26983 * doc/extend.texi (RL78 Variable Attributes): New section.
26984
26985 2016-01-05 Marek Polacek <polacek@redhat.com>
26986
26987 PR c/69104
26988 * builtins.c (get_memmodel): Use expansion point location rather than
26989 the input location. Call warning_at rather than warning.
26990 (expand_builtin_atomic_compare_exchange): Likewise.
26991 (expand_builtin_atomic_load): Likewise.
26992 (expand_builtin_atomic_store): Likewise.
26993 (expand_builtin_atomic_clear): Likewise.
26994
26995 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
26996
26997 PR target/68991
26998 * config/i386/i386.c (ix86_expand_vector_logical_operator):
26999 Replace nonimmediate_operand with vector_operand.
27000 * config/i386/predicates.md (vector_operand): New predicate.
27001 (general_vector_operand): Replace nonimmediate_operand with
27002 vector_operand.
27003 * config/i386/sse.md: Replace nonimmediate_operand with
27004 vector_operand and m constraint with Bm constraint on SSE
27005 patterns with 16-byte memory operand.
27006 * config/i386/subst.md (round_nimm_predicate): Replace
27007 nonimmediate_operand with vector_operand.
27008 (round_saeonly_nimm_predicate): Likewise.
27009 (round_saeonly_nimm_scalar_predicate): New.
27010
27011 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27012
27013 PR target/68991
27014 * config/i386/constraints.md (Bm): New constraint.
27015 * config/i386/predicates.md (vector_memory_operand): New
27016 predicate.
27017 * config/i386/sse.md: Replace xm with xBm in plusminus and
27018 any_logic patterns.
27019
27020 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27021
27022 PR 1078
27023 * doc/extend.texi (V850 Function Attributes): New section.
27024 (V850 Variable Attributes): New section.
27025
27026 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27027
27028 PR 1078
27029 * doc/extend.texi (MicroBlaze Function Attributes): Document
27030 interrupt_handler and fast_interrupt attributes.
27031
27032 2016-01-05 Sergei Trofimovich <siarheit@google.com>
27033
27034 PR other/60465
27035 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
27036 for local symbolic operands.
27037 * config/ia64/predicates.md (local_symbolic_operand64): New
27038 predicate.
27039
27040 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27041
27042 PR rtl-optimization/68651
27043 * combine.c (combine_simplify_rtx): Canonicalize x + x into
27044 x << 1.
27045
27046 2016-01-05 Nathan Sidwell <nathan@acm.org>
27047
27048 * alias.c (compare_base_decls): Use symtab_node::get.
27049
27050 2016-01-05 Nick Clifton <nickc@redhat.com>
27051
27052 PR target/68770
27053 * ira-costs.c (copy_cost): Initialise the t_icode field of the
27054 secondary_reload_info structure.
27055
27056 PR target/66655
27057 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
27058 decls if weak support is available.
27059
27060 2016-01-04 Martin Sebor <msebor@redhat.com>
27061
27062 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
27063
27064 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27065
27066 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
27067 OPTION_MASK_P9_DFORM.
27068
27069 * config/rs6000/constraints.md (wo constraint): New constraint for
27070 ISA 3.0 (power9).
27071
27072 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
27073 for wo constraint.
27074 (rs6000_init_hard_regno_mode_ok): Likewise.
27075
27076 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
27077 wo constraint.
27078
27079 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
27080 expanders not to have constraints. Add support for ISA 3.0 xxperm
27081 instruction. Add support for fusing xxlor with xxperm.
27082 (altivec_vperm_<mode>_internal): Likewise.
27083 (altivec_vperm_v8hiv16qi): Likewise.
27084 (altivec_vperm_<mode>v16q): Likewise.
27085 (altivec_vperm_<mode>_uns): Likewise.
27086 (vperm_v8hiv4si): Likewise.
27087 (vperm_v16qiv8hi): Likewise.
27088
27089 * doc/md.texi (RS/6000 constraints): Document wo constraint.
27090
27091 2016-01-04 Jakub Jelinek <jakub@redhat.com>
27092
27093 Update copyright years.
27094
27095 * gcc.c (process_command): Update copyright notice dates.
27096 * gcov-dump.c (print_version): Ditto.
27097 * gcov.c (print_version): Ditto.
27098 * gcov-tool.c (print_version): Ditto.
27099 * gengtype.c (create_file): Ditto.
27100 * doc/cpp.texi: Bump @copying's copyright year.
27101 * doc/cppinternals.texi: Ditto.
27102 * doc/gcc.texi: Ditto.
27103 * doc/gccint.texi: Ditto.
27104 * doc/gcov.texi: Ditto.
27105 * doc/install.texi: Ditto.
27106 * doc/invoke.texi: Ditto.
27107
27108 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27109
27110 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
27111 modes larger than TImode as TImode if NEON is not enabled.
27112
27113 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27114
27115 PR target/69100
27116 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
27117 mode for %f0-%f31 only if TARGET_FPU.
27118
27119 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27120
27121 PR target/69072
27122 * config/sparc/sparc.c (scan_record_type): Take into account subfields
27123 to compute the PACKED_P predicate.
27124 (function_arg_record_value): Minor tweaks.
27125
27126 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
27127
27128 * doc/install.texi (--with-multilib-list): Describe the meaning of the
27129 option for arm*-*-* targets.
27130
27131 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
27132
27133 * doc/extend.texi (Common Function Attributes): Move docs for
27134 MSP430-specific attributes to....
27135 (MSP430 Function Attributes): ...here. Delete the redundant
27136 entries and copy-edit the remaining text.
27137 (MSP430 Variable Attributes): Use uniform format for index
27138 entries and add a cross-reference to the corresponding function
27139 attribute docs.
27140
27141 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
27142
27143 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
27144 -finite-math typo.
27145 (x86 Options): Likewise.
27146
27147 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27148
27149 PR 1078
27150
27151 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
27152 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
27153 to corresponding attribute.
27154
27155 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27156
27157 * doc/extend.texi (Common Function Attributes) <noplt>: Move
27158 to correct alphabetization of table. Copy-edit and correct
27159 markup.
27160 <stack_protect>: Likewise.
27161 <target_clones>: Likewise.
27162 <simd>: Likewise.
27163 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
27164 Correct punctuation.
27165 (Code Gen Options) <-fno-plt>: Copy-edit.
27166
27167 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27168
27169 PR target/68917
27170 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
27171 SI values. Explicitly convert SI to DI and vice-versa.
27172
27173 2016-01-01 Jakub Jelinek <jakub@redhat.com>
27174
27175 PR tree-optimization/69070
27176 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
27177 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
27178
27179 PR sanitizer/69055
27180 * ubsan.c (ubsan_instrument_float_cast): Call
27181 initialize_sanitizer_builtins.
27182
27183 PR target/69015
27184 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
27185 \f
27186 Copyright (C) 2016 Free Software Foundation, Inc.
27187
27188 Copying and distribution of this file, with or without modification,
27189 are permitted in any medium without royalty provided the copyright
27190 notice and this notice are preserved.