[RS6000] PR79144, cmpstrnsi optimization breaks glibc
[official-gcc.git] / gcc / ChangeLog
blob33eb1298100781f01ab3eecd4eead9fdf593c2a5
1 2017-01-20  Alan Modra  <amodra@gmail.com>
3         PR target/79144
4         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
5         for strcmp and strncmp from corresponding builtin decl.
7 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
9         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
10         instead of i386/rtems-64.h.
11         * config/i386/rtems-64.h: Remove.
13 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
15         PR target/78478
16         Revert:
17         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
19         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
21 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
23         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
24         Change int to HOST_WIDE_INT.
25         * config/aarch64/aarch64-protos.h
26         (aarch64_simd_gen_const_vector_dup): Likewise.
27         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
29 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
31         * langhooks-def.h (lhd_type_for_size): New decl.
32         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
33         * langhooks.c (lhd_type_for_size): New function, taken from
34         lto_type_for_size.
36 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
38         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
39         define_bypass for CR latency.
40         (power9-cracked-alu): Update bypass latency and remove power9-branch.
41         (power9-alu2): Add define_bypass for CR latency.
42         (power9-cmp): New.
43         (power9-mul): Update insn latency.
44         (power9-mul-compare): Update insn latency, bypass latency and remove
45         power9-branch.
47 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
49         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
50         Delete.
51         * config/aarch64/aarch64.md
52         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
53         aarch64_nopcrelative_literal_loads.
54         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
56 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
58         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
59         TARGET_LOONGSON_3A.
60         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
62 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
64         PR target/78176
65         * config.gcc (supported_defaults): Add lxc1-sxc1.
66         (with_lxc1_sxc1): Add validation.
67         (all_defaults): Add lxc1-sxc1.
68         * config/mips/mips.opt (mlxc1-sxc1): New option.
69         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
70         mlxc1-sxc1.
71         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
72         __mips_no_lxc1_sxc1.
73         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
74         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
75         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
77 2017-01-19  Richard Biener  <rguenther@suse.de>
79         PR tree-optimization/72488
80         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
81         sure to restore SSA info.
82         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
84 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
86         PR rtl-optimization/79121
87         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
88         of the inner type when shifting an extended value.
90 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
92         PR lto/78407
93         * symtab.c (symtab_node::equal_address_to): Fix comparing of
94         interposable aliases.
96 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
98         PR target/78516
99         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
100         Use the evmergelohi instruction.
101         (mov_si<mode>_e500_subreg4_2_le): Likewise.
102         (mov_sitf_e500_subreg8_2_be): Likewise.
103         (mov_sitf_e500_subreg12_2_le): Likewise.
104         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
105         (mov_si<mode>_e500_subreg4_2_be): Likewise.
106         (mov_sitf_e500_subreg8_2_le): Likewise.
107         (mov_sitf_e500_subreg12_2_be): Likewise.
109 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
111         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
112         attribute from vecsimple to vecperm.
113         (altivec_vbpermq2): Likewise.
115 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
117         PR target/79040
118         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
120 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
121         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
122         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
123         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
124         case where N arg is SIZE_MAX.
125         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
126         (cmpstrsi): Add pattern.
128 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
130         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
131         __builtin_vec_revb builtins.
132         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
133         built-in functions to support generation of the ISA 3.0 XXBR<x>
134         vector byte reverse instructions.
135         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
136         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
137         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
138         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
139         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
140         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
141         (P9V_BUILTIN_VEC_REVB): Likewise.
142         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
143         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
144         (p9_xxbrq_v16qi): Likewise.
145         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
146         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
147         (p9_xxbrh_v8hi): Likewise.
148         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
149         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
150         vec_revb built-in functions.
152 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
154         PR rtl-optimization/78952
155         * config/i386/i386.md (any_extract): New code iterator.
156         (*insvqi_2): Use any_extract for source operand.
157         (*insvqi_3): Use any_shiftrt for source operand.
159 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
161         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
162         New function.
163         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
165 2017-01-18  Maxim Ostapenko  <m.ostapenko@samsung.com>
167         PR lto/79061
168         * asan.c (get_translation_unit_decl): New function.
169         (asan_add_global): Extract modules file name from globals
170         TRANSLATION_UNIT_DECL in lto mode.
171         * tree.c (build_translation_unit_decl): Add source location for newly
172         built TRANSLATION_UNIT_DECL.
174 2017-01-18  Matthias Klose  <doko@ubuntu.com>
176         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
178 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
180         * config/rs6000/altivec.h (vec_bperm): Change #define.
181         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
182         (altivec_vbpermq2): New define_insn.
183         (altivec_vbpermd): Likewise.
184         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
185         function interface.
186         (VBPERMD): Likewise.
187         (VBPERM): New polymorphic function interface.
188         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
189         Add entries for P9V_BUILTIN_VEC_VBPERM.
190         * doc/extend.texi: Add interfaces for vec_bperm.
192 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
194         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
195         first letter of error messages.
196         (s390_resolve_overloaded_builtin): Likewise.
197         * config/s390/s390.c (s390_expand_builtin): Likewise.
198         (s390_invalid_arg_for_unprototyped_fn): Likewise.
199         (s390_valid_target_attribute_inner_p): Likewise.
200         * config/s390/s390.md ("tabort"): Likewise.
202 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
204         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
205         (ISA_AVOID_DIV_HILO): New macro.
206         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
207         (ISA_HAS_DDIV): Likewise.
209 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
211         * doc/invoke.texi (fabi-version): Correct number of occurrences.
213 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
215         * doc/invoke.texi (fabi-version): Spelling fix.
217 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
219         PR c++/70182
220         * doc/invoke.texi (fabi-version): Mention mangling fix for
221         operator names.
223 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
225         PR c++/77489
226         * doc/invoke.texi (fabi-version): Document discriminator mangling.
228 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
230         PR target/78875
231         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
232         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
233         the new options.
234         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
235         flexible settings.
236         (stack_protect_test): Ditto.
237         * config/rs6000/rs6000.opt (mstack-protector-guard=,
238         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
239         options.
240         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
241         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
242         -mstack-protector-guard-offset=.
243         (RS/6000 and PowerPC Options): Ditto.
245 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
247         * config/i386/i386.h (MASK_CLASS_P): New define.
248         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
249         there are no registers from different register sets also when
250         mask registers are used.  Update function comment.
251         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
252         to (*k/*r) and (*k/*km) alternatives.
254 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
256         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
257         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
258         (EH_RETURN_HANDLER_RTX): New define.
259         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
260         Force frame pointer in EH return functions.
261         (aarch64_expand_epilogue): Add barrier for eh_return.
262         (aarch64_final_eh_return_addr): Remove.
263         (aarch64_eh_return_handler_rtx): New function.
264         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
265         Remove.
266         (aarch64_eh_return_handler_rtx): New prototype.
268 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
270         * config/rs6000/altivec.h (vec_rlmi): New #define.
271         (vec_vrlnm): Likewise.
272         (vec_rlnm): Likewise.
273         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
274         (UNSPEC_VRLNM): Likewise.
275         (VIlong): New mode iterator.
276         (altivec_vrl<VI_char>mi): New define_insn.
277         (altivec_vrl<VI_char>nm): Likewise.
278         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
279         function entry.
280         (VRLDNM): Likewise.
281         (RLNM): New polymorphic function entry.
282         (VRLWMI): New monomorphic function entry.
283         (VRLDMI): Likewise.
284         (RLMI): New polymorphic function entry.
285         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
286         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
287         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
288         vec_vrlnm.
290 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
292         PR debug/78839
293         * dwarf2out.c (field_byte_offset): Restore the
294         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
295         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
296         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
297         of build2 + fold.
299 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
301         PR ada/67205
302         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
304 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
306         PR debug/71669
307         * dwarf2out.c (add_data_member_location_attribute): For constant
308         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
309         instead of DW_AT_data_member_location, DW_AT_bit_offset and
310         DW_AT_byte_size attributes.
312 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
314         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
315         after forcing to constant memory when the code model is medium.
317 2017-01-17  Julia Koval  <julia.koval@intel.com>
319         PR target/76731
320         * config/i386/avx512fintrin.h
321         (_mm512_i32gather_ps): Change __addr type to void const*.
322         (_mm512_mask_i32gather_ps): Ditto.
323         (_mm512_i32gather_pd): Ditto.
324         (_mm512_mask_i32gather_pd): Ditto.
325         (_mm512_i64gather_ps): Ditto.
326         (_mm512_mask_i64gather_ps): Ditto.
327         (_mm512_i64gather_pd): Ditto.
328         (_mm512_mask_i64gather_pd): Ditto.
329         (_mm512_i32gather_epi32): Ditto.
330         (_mm512_mask_i32gather_epi32): Ditto.
331         (_mm512_i32gather_epi64): Ditto.
332         (_mm512_mask_i32gather_epi64): Ditto.
333         (_mm512_i64gather_epi32): Ditto.
334         (_mm512_mask_i64gather_epi32): Ditto.
335         (_mm512_i64gather_epi64): Ditto.
336         (_mm512_mask_i64gather_epi64): Ditto.
337         (_mm512_i32scatter_ps): Change __addr type to void*.
338         (_mm512_mask_i32scatter_ps): Ditto.
339         (_mm512_i32scatter_pd): Ditto.
340         (_mm512_mask_i32scatter_pd): Ditto.
341         (_mm512_i64scatter_ps): Ditto.
342         (_mm512_mask_i64scatter_ps): Ditto.
343         (_mm512_i64scatter_pd): Ditto.
344         (_mm512_mask_i64scatter_pd): Ditto.
345         (_mm512_i32scatter_epi32): Ditto.
346         (_mm512_mask_i32scatter_epi32): Ditto.
347         (_mm512_i32scatter_epi64): Ditto.
348         (_mm512_mask_i32scatter_epi64): Ditto.
349         (_mm512_i64scatter_epi32): Ditto.
350         (_mm512_mask_i64scatter_epi32): Ditto.
351         (_mm512_i64scatter_epi64): Ditto.
352         (_mm512_mask_i64scatter_epi64): Ditto.
353         * config/i386/avx512pfintrin.h
354         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
355         (_mm512_mask_prefetch_i32gather_ps): Ditto.
356         (_mm512_mask_prefetch_i64gather_pd): Ditto.
357         (_mm512_mask_prefetch_i64gather_ps): Ditto.
358         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
359         (_mm512_prefetch_i32scatter_ps): Ditto.
360         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
361         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
362         (_mm512_prefetch_i64scatter_pd): Ditto.
363         (_mm512_prefetch_i64scatter_ps): Ditto.
364         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
365         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
366         * config/i386/avx512vlintrin.h
367         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
368         (_mm_mmask_i32gather_ps): Ditto.
369         (_mm256_mmask_i32gather_pd): Ditto.
370         (_mm_mmask_i32gather_pd): Ditto.
371         (_mm256_mmask_i64gather_ps): Ditto.
372         (_mm_mmask_i64gather_ps): Ditto.
373         (_mm256_mmask_i64gather_pd): Ditto.
374         (_mm_mmask_i64gather_pd): Ditto.
375         (_mm256_mmask_i32gather_epi32): Ditto.
376         (_mm_mmask_i32gather_epi32): Ditto.
377         (_mm256_mmask_i32gather_epi64): Ditto.
378         (_mm_mmask_i32gather_epi64): Ditto.
379         (_mm256_mmask_i64gather_epi32): Ditto.
380         (_mm_mmask_i64gather_epi32): Ditto.
381         (_mm256_mmask_i64gather_epi64): Ditto.
382         (_mm_mmask_i64gather_epi64): Ditto.
383         (_mm256_i32scatter_ps): Change __addr type to void*.
384         (_mm256_mask_i32scatter_ps): Ditto.
385         (_mm_i32scatter_ps): Ditto.
386         (_mm_mask_i32scatter_ps): Ditto.
387         (_mm256_i32scatter_pd): Ditto.
388         (_mm256_mask_i32scatter_pd): Ditto.
389         (_mm_i32scatter_pd): Ditto.
390         (_mm_mask_i32scatter_pd): Ditto.
391         (_mm256_i64scatter_ps): Ditto.
392         (_mm256_mask_i64scatter_ps): Ditto.
393         (_mm_i64scatter_ps): Ditto.
394         (_mm_mask_i64scatter_ps): Ditto.
395         (_mm256_i64scatter_pd): Ditto.
396         (_mm256_mask_i64scatter_pd): Ditto.
397         (_mm_i64scatter_pd): Ditto.
398         (_mm_mask_i64scatter_pd): Ditto.
399         (_mm256_i32scatter_epi32): Ditto.
400         (_mm256_mask_i32scatter_epi32): Ditto.
401         (_mm_i32scatter_epi32): Ditto.
402         (_mm_mask_i32scatter_epi32): Ditto.
403         (_mm256_i32scatter_epi64): Ditto.
404         (_mm256_mask_i32scatter_epi64): Ditto.
405         (_mm_i32scatter_epi64): Ditto.
406         (_mm_mask_i32scatter_epi64): Ditto.
407         (_mm256_i64scatter_epi32): Ditto.
408         (_mm256_mask_i64scatter_epi32): Ditto.
409         (_mm_i64scatter_epi32): Ditto.
410         (_mm_mask_i64scatter_epi32): Ditto.
411         (_mm256_i64scatter_epi64): Ditto.
412         (_mm256_mask_i64scatter_epi64): Ditto.
413         (_mm_i64scatter_epi64): Ditto.
414         (_mm_mask_i64scatter_epi64): Ditto.
415         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
416         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
417         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
418         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
419         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
420         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
421         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
422         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
423         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
424         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
425         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
426         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
427         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
428         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
429         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
430         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
431         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
432         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
433         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
434         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
435         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
436         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
437         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
438         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
439         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
440         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
441         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
442         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
443         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
444         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
445         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
446         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
447         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
448         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
449         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
450         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
451         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
452         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
453         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
454         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
455         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
456         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
457         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
458         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
459         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
460         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
461         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
462         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
463         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
464         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
465         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
466         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
467         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
468         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
469         definitions accordingly.
471 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
472             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
474         PR target/79079
475         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
476         gen_lowpart.
478 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
480         PR target/79058
481         * ira-conflicts.c (ira_build_conflicts): Update total conflict
482         hard regs for inner regno.
484 2017-01-17  Martin Liska  <mliska@suse.cz>
486         PR ipa/71207
487         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
488         assumption and add comment.
490 2017-01-17  Nathan Sidwell  <nathan@acm.org>
492         * ipa-visibility.c (localize_node): New function, broken out of ...
493         (function_and_variable_visibility): ... here. Call it.
495 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
497         PR middle-end/77445
498         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
499         correctly set frequency of oudgoing edge.
500         (duplicate_thread_path): Fix profile updating.
502 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
504         PR other/79046
505         * configure.ac: Add GCC_BASE_VER.
506         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
507         version from BASE-VER file.
508         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
509         (gcc.o): Depend on $(BASEVER).
510         * common.opt (dumpfullversion): New option.
511         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
512         * doc/invoke.texi: Document -dumpfullversion.
513         * doc/install.texi: Document --with-gcc-major-version-only.
514         * configure: Regenerated.
516 2017-01-17  Richard Biener  <rguenther@suse.de>
518         PR tree-optimization/71433
519         * tree-vrp.c (register_new_assert_for): Merge same asserts
520         on all incoming edges.
521         (process_assert_insertions_for): Handle insertions at the
522         beginning of BBs.
524 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
526         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
527         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
529 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
531         PR target/78633
532         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
533         RTL sharing.
535 2017-01-17  Alan Modra  <amodra@gmail.com>
537         PR target/79066
538         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
539         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
540         symbolic stack limit when pic.
542 2017-01-16  Martin Sebor  <msebor@redhat.com>
544         PR tree-optimization/78608
545         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
547 2017-01-16  Jeff Law  <law@redhat.com>
549         Revert:
550         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
551         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
552         for several include directories that may be relative to sysroot.
553         * config/i386/x-mingw32 (gplus_includedir): Define.
554         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
555         (native_system_includedir): Likewise.
556         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
557         override if TARGET_SYSTEM_ROOT is defined.
558         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
560         PR tree-optimization/79090
561         PR tree-optimization/33562
562         PR tree-optimization/61912
563         PR tree-optimization/77485
564         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
565         and computed trims into the dump file.
567 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
569         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
571 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
573         PR c/79089
574         * gimplify.c (gimplify_init_constructor): If want_value and
575         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
576         fix.
578         PR target/79080
579         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
580         sequence.  Formatting fixes.
581         (doloop_optimize): Formatting fixes.
583         PR driver/49726
584         * gcc.c (debug_level_greater_than_spec_func): New function.
585         (static_spec_functions): Add debug-level-gt spec function.
586         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
587         !g0.
588         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
589         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
590         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
591         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
592         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
593         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
595 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
597         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
598         QImode fixups to general and mask registers only.
600 2017-01-16  Carl Love  <cel@us.ibm.com>
602         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
603         for built-in functions
604         vector signed char vec_nabs (vector signed char)
605         vector signed short vec_nabs (vector signed short)
606         vector signed int vec_nabs (vector signed int)
607         vector signed long long vec_nabs (vector signed long long)
608         vector float vec_nabs (vector float)
609         vector double vec_nabs (vector double)
610         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
611         and NABS overload.
612         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
613         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
614         * doc/extend.texi: Update the documentation file for the new built-in
615         functions.
617 2017-01-16  Martin Sebor  <msebor@redhat.com>
619         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
620         message.
622 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
624         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
625         UNSPEC_VSX__XXSPLTD to require special splat handling.
627 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
629         PR bootstrap/78616
630         * system.h: Poison strndup.
632 2017-01-16  Alan Modra  <amodra@gmail.com>
634         PR target/79098
635         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
636         use a switch.
638 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
640         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
642 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
644         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
645         call recog here.  Assert that INSN_CODE (insn) is non-negative.
647 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
649         PR target/72749
650         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
651         fallthrough.
652         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
653         in the currently scheduled RTL fragment.
655 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
657         PR rtl-optimization/78751
658         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
659         give up.
661 2017-01-14  Jeff Law  <law@redhat.com>
663         PR tree-optimization/79090
664         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
665         variable length stores.
666         (compute_trims): Delete dead assignment to *trim_tail.
667         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
668         zero length.
670 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
672         PR rtl-optimization/78626
673         PR rtl-optimization/78727
674         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
675         of a block, and split such blocks after everything else is finished.
677 2017-01-14  Alan Modra  <amodra@gmail.com>
679         PR target/72749
680         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
681         target legitimate_combined_insn.
682         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
683         (rs6000_legitimate_combined_insn): New function.
684         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
685         all uses.
686         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
687         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
688         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
690 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
692         * doc/frontends.texi (G++ and GCC): Remove references to Java.
694 2017-01-13  Jeff Law  <law@redhat.com>
696         PR tree-optimization/33562
697         PR tree-optimization/61912
698         PR tree-optimization/77485
699         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
700         a statement.
701         (delete_dead_assignment): Likewise.
702         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
703         statement to delete_dead_call and delete_dead_assignment.
705 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
707         PR c/78304
708         * substring-locations.c (format_warning_va): Strengthen case 1 so
709         that both endpoints of the substring must be within the format
710         range for just the substring to be printed.
712 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
714         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
715         * config/i386/i386.c (ix86_target_string): Add missing options
716         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
717         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
718         flags_other and ix86_target_other to flags2_other.  Display unknown
719         isa2 options.
720         (ix86_valid_target_attribute_inner_p): Add missing options and
721         reorder options by implied ISAs, as in ix86_target_string.
723 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
725         * hash-table.h (hash_table::too_empty_p): New function.
726         (hash_table::expand): Use it.
727         (hash_table::traverse): Likewise.
728         (hash_table::empty_slot): Use sizeof (value_type) instead of
729         sizeof (PTR) to convert bytes to elements.  Shrink the table
730         if the current size is excessive for the current number of
731         elements.
733 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
735         * ira-costs.c (record_reg_classes): Break from the inner loop
736         early once alt_fail is known to be true.  Update outer loop
737         handling accordingly.
739 2017-01-13  Jeff Law  <law@redhat.com>
741         * tree-ssa-dse.c (decrement_count): New function.
742         (increment_start_addr, maybe_trim_memstar_call): Likewise.
743         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
744         when we know the partially dead statement is a mem* function.
746         PR tree-optimization/61912
747         PR tree-optimization/77485
748         * tree-ssa-dse.c: Include expr.h.
749         (maybe_trim_constructor_store): New function.
750         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
752         PR tree-optimization/33562
753         PR tree-optimization/61912
754         PR tree-optimization/77485
755         * doc/invoke.texi: Document new dse-max-object-size param.
756         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
757         * tree-ssa-dse.c: Include params.h.
758         (dse_store_status): New enum.
759         (initialize_ao_ref_for_dse): New, partially extracted from
760         dse_optimize_stmt.
761         (valid_ao_ref_for_dse, normalize_ref): New.
762         (setup_live_bytes_from_ref, compute_trims): Likewise.
763         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
764         (maybe_trim_partially_dead_store): Likewise.
765         (maybe_trim_complex_store): Likewise.
766         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
767         Track what bytes live from the original store.  Return tri-state
768         for dead, partially dead or live.
769         (dse_dom_walker): Add constructor, destructor and new private members.
770         (delete_dead_call, delete_dead_assignment): New extracted from
771         dse_optimize_stmt.
772         (dse_optimize_stmt): Make a member of dse_dom_walker.
773         Use initialize_ao_ref_for_dse.
775         PR tree-optimization/33562
776         PR tree-optimization/61912
777         PR tree-optimization/77485
778         * sbitmap.h (bitmap_count_bits): Prototype.
779         (bitmap_clear_range, bitmap_set_range): Likewise.
780         * sbitmap.c (bitmap_clear_range): New function.
781         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
783 2017-01-13  Martin Liska  <mliska@suse.cz>
785         PR ipa/79043
786         * function.c (set_cfun): Add new argument force.
787         * function.h (set_cfun): Likewise.
788         * ipa-inline-transform.c (inline_call): Use the function when
789         strict alising from is dropped for function we inline to.
791 2017-01-13  Richard Biener  <rguenther@suse.de>
793         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
794         for dumping GIMPLE INTEGER_CSTs.
796 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
798         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
799         to 201112L since C++17.
801 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
803         PR sanitizer/78887
804         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
805         if -fsanitize=kernel-address is present.
807 2017-01-13  Richard Biener  <rguenther@suse.de>
809         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
810         as _Literal ( type ) number in case usual suffixes do not
811         preserve all information.
813 2017-01-13  Richard Biener  <rguenther@suse.de>
815         PR tree-optimization/77283
816         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
817         and ssa-iterators.h.
818         (is_feasible_trace): Implement a cost model based on joiner
819         PHI node uses.
821 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
823         PR target/79004
824         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
825         char or short to __float128/_Float128 directly.
827 2017-01-12  Martin Sebor  <msebor@redhat.com>
829         to -Wformat-overflow.
830         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
831         (min_bytes_remaining): Same.
832         (get_string_length): Same.
833         (format_string): Same.
834         (format_directive): Same.
835         (add_bytes): Same.
836         (pass_sprintf_length::handle_gimple_call): Same.
838 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
840         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
841         info.nowrite calls with no lhs that can't throw.  Return bool
842         whether gsi_remove has been called or not.
843         (pass_sprintf_length::handle_gimple_call): Return bool whether
844         try_substitute_return_value called gsi_remove.  Formatting fix.
845         (pass_sprintf_length::execute): Don't use gsi_remove if
846         handle_gimple_call returned true.
848         PR bootstrap/79069
849         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
850         be removed due to side-effects, don't remove following barrier nor
851         turn the successor edge into fallthru edge.
853 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
855         PR target/79044
856         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
857         element-reversing loads and stores as not swappable.
859 2017-01-12  Nathan Sidwell  <nathan@acm.org>
860             Nicolai Stange  <nicstange@gmail.com>
862         * combine.c (try_combine): Don't ignore result of overlap checking
863         loop.  Combine overlap & asm check into single loop.
865 2017-01-12  Richard Biener  <rguenther@suse.de>
867         * tree-pretty-print.c (dump_generic_node): Provide -gimple
868         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
870 2017-01-12  Richard Biener  <rguenther@suse.de>
872         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
873         and TS_TARGET_OPTION directly derive from TS_BASE.
874         * tree-core.h (tree_optimization_option): Derive from tree_base.
875         (tree_target_option): Likewise.
877 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
879         * config/i386/i386.c (memory_address_length): Increase len
880         only when rip_relative_addr_p returns false.
882 2017-01-11  Julia Koval  <julia.koval@intel.com>
884         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
885         (OPTION_MASK_ISA_SGX_SET): New.
886         (ix86_handle_option): Handle OPT_msgx.
887         * config.gcc: Added sgxintrin.h.
888         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
889         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
890         * config/i386/i386.c (ix86_target_string): Add -msgx.
891         (PTA_SGX): New.
892         (ix86_option_override_internal): Handle new options.
893         (ix86_valid_target_attribute_inner_p): Add sgx.
894         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
895         * config/i386/i386.opt: Add msgx.
896         * config/i386/sgxintrin.h: New file.
897         * config/i386/x86intrin.h: Add sgxintrin.h.
899 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
901         PR c++/71537
902         * fold-const.c (maybe_nonzero_address): Return 1 for function
903         local objects.
904         (tree_single_nonzero_warnv_p): Don't handle function local objects
905         here.
907         PR c++/72813
908         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
909         of c-header.
911 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
913         PR driver/78877
914         * opts.c: Include "spellcheck.h"
915         (struct string_fragment): New struct.
916         (struct edit_distance_traits<const string_fragment &>): New
917         struct.
918         (get_closest_sanitizer_option): New function.
919         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
921 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
923         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
924         by 12.
925         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
926         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
927         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
928         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
929         for initial die_offset if dwarf_split_debug_info.
930         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
931         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
932         fields.
933         (output_skeleton_debug_sections): Formatting fix.  Use
934         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
935         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
937 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
939         * config/arm/cortex-a53.md: Add bypasses for
940         cortex_a53_r2f_cvt.
941         (cortex_a53_r2f): Only use for transfers.
942         (cortex_a53_f2r): Likewise.
943         (cortex_a53_r2f_cvt): Add reservation for conversions.
944         (cortex_a53_f2r_cvt): Likewise.
946 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
948         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
949         to all inlined functions, change static to extern.
951 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
953         PR target/78253
954         * config/arm/arm.c (legitimize_pic_address): Handle reference to
955         weak symbol.
956         (arm_assemble_integer): Likewise.
958 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
960         * config.gcc: Use new awk script to check CPU, FPU and architecture
961         parameters for --with-... options.
962         * config/arm/parsecpu.awk: New file
963         * config/arm/arm-cpus.in: New file.
964         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
965         files.
966         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
967         files.
968         * config/arm/t-arm: Update dependency rules.
969         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
970         of processing .def files.
971         * config/arm/genopt.sh: Deleted.
972         * config/arm/gentune.sh: Deleted.
973         * config/arm/arm-cores.def: Deleted.
974         * config/arm/arm-arches.def: Deleted.
975         * config/arm/arm-fpus.def: Deleted.
976         * config/arm/arm-tune.md: Regenerated.
977         * config/arm/arm-tables.opt: Regenerated.
978         * config/arm/arm-cpu.h: New generated file.
979         * config/arm/arm-cpu-data.h: New generated file.
980         * config/arm/arm-cpu-cdata.h: New generated file.
982 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
984         PR lto/79042
985         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
986         bit.
987         (input_varpool_node): Unpack dynamically_initialized bit.
989 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
991         PR rtl-optimization/79032
992         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
993         the alignment of the adjusted memory reference against that of MODE,
994         instead of the alignment of the original memory reference.
996 2017-01-11  Martin Jambor  <mjambor@suse.cz>
998         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
999         test.
1000         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
1001         decorated functions.
1003 2017-01-11  Richard Biener  <rguenther@suse.de>
1005         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
1006         set range/nonnull info for PHI results.  Do not set it on
1007         stmts marked for removal.
1009 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
1011         * expr.c (store_field): In the bitfield case, fetch the return value
1012         from the registers before applying a single big-endian adjustment.
1013         Always do a final load for a BLKmode value not larger than a word.
1015 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
1017         PR c++/77949
1018         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1019         that we correctly handle column numbers greater than
1020         LINE_MAP_MAX_COLUMN_NUMBER.
1022 2017-01-10  Martin Sebor  <msebor@redhat.com>
1024         PR middle-end/78245
1025         * gimple-ssa-sprintf.c (get_destination_size): Call
1026         {init,fini}object_sizes.
1027         * tree-object-size.c (addr_object_size): Adjust.
1028         (pass_through_call): Adjust.
1029         (pass_object_sizes::execute): Adjust.
1030         * tree-object-size.h (fini_object_sizes): Declare.
1032 2017-01-10  Martin Sebor  <msebor@redhat.com>
1034         PR tree-optimization/78775
1035         * builtins.c (get_size_range): Move...
1036         * calls.c: ...to here.
1037         (alloc_max_size): Accept zero argument.
1038         (operand_signed_p): Remove.
1039         (maybe_warn_alloc_args_overflow): Call get_size_range.
1040         * calls.h (get_size_range): Declare.
1042 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
1044         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
1045         from TI's devices.csv file as of September 2016.
1046         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
1048 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
1050         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
1051         * doc/invoke.texi: Likewise.
1052         * doc/md.texi: Likewise.
1053         * doc/objc.texi: Likewise.
1055 2017-01-10  Joshua Conner  <joshconner@google.com>
1057         * config/arm/fuchsia-elf.h: New file.
1058         * config/fuchsia.h: New file.
1059         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
1060         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
1061         targets.
1062         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
1064 2016-01-10  Richard Biener  <rguenther@suse.de>
1066         PR tree-optimization/79034
1067         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1068         Propagate out degenerate PHIs in the joiner.
1070 2017-01-10  Martin Liska  <mliska@suse.cz>
1072         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
1073         (sort_congruence_classes_by_decl_uid): Likewise.
1074         (sort_congruence_class_groups_by_decl_uid): Likewise.
1075         (sem_item_optimizer::merge_classes): Sort class, groups in these
1076         classes and members in the groups by DECL_UID of declarations.
1077         This would make merge operations stable.
1079 2017-01-10  Martin Liska  <mliska@suse.cz>
1081         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
1082         usage of m_classes_vec.
1083         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
1084         (sem_item_optimizer::get_group_by_hash): Likewise.
1085         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1086         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
1087         (sem_item_optimizer::verify_classes): Likewise.
1088         (sem_item_optimizer::process_cong_reduction): Likewise.
1089         (sem_item_optimizer::dump_cong_classes): Likewise.
1090         (sem_item_optimizer::merge_classes): Likewise.
1091         * ipa-icf.h (congruence_class_hash): Rename from
1092         congruence_class_group_hash.  Remove declaration of m_classes_vec.
1094 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
1096         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
1097         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
1098         * config.gcc: Add avx512vpopcntdqintrin.h.
1099         * config/i386/avx512vpopcntdqintrin.h: New.
1100         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
1101         * config/i386/i386-builtin-types.def: Add new types.
1102         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
1103         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
1104         __builtin_ia32_vpopcountq_v8di_mask): New.
1105         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1106         __AVX512VPOPCNTDQ__.
1107         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
1108         (PTA_AVX512VPOPCNTDQ): Define.
1109         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
1110         TARGET_AVX512VPOPCNTDQ_P): Define.
1111         * config/i386/i386.opt: Add mavx512vpopcntdq.
1112         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
1113         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
1115 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
1117         PR middle-end/77484
1118         * predict.def (PRED_CALL): Set to 67.
1120 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
1122         * expr.c (store_field): In the bitfield case, if the value comes from
1123         a function call and is of an aggregate type returned in registers, do
1124         not modify the field mode; extract the value in all cases if the mode
1125         is BLKmode and the size is not larger than a word.
1127 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
1129         PR target/71017
1130         * config/i386/cpuid.h: Fix undefined behavior.
1132 2017-01-04  Jeff Law  <law@redhat.com>
1134         PR tree-optimization/79007
1135         PR tree-optimization/67955
1136         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
1137         conservative for pt.null when flag_non_call_exceptions is on.
1139 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1141         PR translation/79019
1142         PR translation/79020
1143         * params.def (PARAM_INLINE_MIN_SPEEDUP,
1144         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
1145         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
1146         in descriptions.
1147         * config/avr/avr.opt (maccumulate-args): Likewise.
1148         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
1149         * common.opt (freport-bug): Likewise.
1150         * cif-code.def (CIF_FINAL_ERROR): Likewise.
1151         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
1152         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
1153         translatable string.
1154         * config/i386/i386.c (function_value_32): Likewise.
1155         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
1156         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
1157         Likewise.
1158         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
1159         * common/config/msp430/msp430-common.c (msp430_handle_option):
1160         Likewise.
1161         * symtab.c (symtab_node::verify_base): Likewise.
1162         * opts.c (set_debug_level): Likewise.
1163         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
1164         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1165         missing whitespace to translatable strings.
1166         * config/avr/avr.md (bswapsi2): Fix typo in comment.
1167         * config/sh/superh.h: Likewise.
1168         * config/i386/xopintrin.h: Likewise.
1169         * config/i386/znver1.md: Likewise.
1170         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
1171         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
1172         * double-int.h (struct double_int): Likewise.
1173         * double-int.c (div_and_round_double): Likewise.
1174         * wide-int.cc: Likewise.
1175         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
1176         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
1177         * cfgcleanup.c (crossjumps_occured): Renamed to ...
1178         (crossjumps_occurred): ... this.
1179         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
1180         Adjust all uses.
1182         PR tree-optimization/78899
1183         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
1184         returning bool return struct loop *, NULL for failure and the new
1185         loop on success.
1186         (versionable_outer_loop_p): Don't version outer loop if it has
1187         dont_vectorized bit set.
1188         (tree_if_conversion): When versioning outer loop, ensure
1189         tree_if_conversion is performed also on the inner loop of the
1190         non-vectorizable outer loop copy.
1191         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
1192         LOOP_VECTORIZED in inner loop of the scalar outer loop and
1193         prevent vectorization of it.
1194         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
1195         the outer loop vectorization of the non-scalar version is attempted
1196         before vectorization of the inner loop in scalar version.  If
1197         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
1198         vectorization of its inner loop.
1199         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
1200         has 2 inner loops, rename also on edges from bb whose single pred
1201         is outer_loop->header.  Fix typo in function comment.
1203 2017-01-09  Martin Sebor  <msebor@redhat.com>
1205         PR bootstrap/79033
1206         * asan.c (asan_emit_stack_protection): Increase local buffer size
1207         to avoid snprintf truncation warning.
1209 2017-01-09  Andrew Pinski  <apinski@cavium.com>
1211         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
1212         to reference thunderx2t99 for the tuning structure
1213         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
1214         Rename to ...
1215         (thunderx2t99_extra_costs): This.
1216         * config/aarch64/aarch64-tune.md: Regenerate.
1217         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
1218         (vulcan_addrcost_table): This.
1219         (vulcan_regmove_cost): Rename to ...
1220         (thunderx2t99_regmove_cost): This.
1221         (vulcan_vector_cost): Rename to ...
1222         (thunderx2t99_vector_cost): this.
1223         (vulcan_branch_cost): Rename to ...
1224         (thunderx2t99_branch_cost): This.
1225         (vulcan_tunings): Rename to ...
1226         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
1227         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
1229 2017-01-09  Martin Jambor  <mjambor@suse.cz>
1231         PR ipa/78365
1232         PR ipa/78599
1233         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
1234         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
1235         (propagate_vr_accross_jump_function): Use the above function for all
1236         value range computations for pass-through jump functions and type
1237         converasion from explicit value range values.
1238         (ipcp_propagate_stage): Do not attempt to deduce types of formal
1239         parameters from TYPE_ARG_TYPES.
1240         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
1241         (ipa_write_node_info): Stream type of the actual argument.
1242         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
1244 2017-01-09  Martin Liska  <mliska@suse.cz>
1246         PR pch/78970
1247         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
1248         (lookup_compiler): Do not show error message with have_E.
1250 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
1252         PR tree-optimization/78938
1253         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
1254         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
1255         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
1256         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
1257         fixes.
1259 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1261         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
1262         is const0_rtx.
1264 2017-01-09  Richard Biener  <rguenther@suse.de>
1266         PR tree-optimization/78997
1267         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
1268         name condition properly.
1270 2017-01-09  Richard Biener  <rguenther@suse.de>
1272         PR debug/79000
1273         * dwarf2out.c (is_cxx): New overload with context.
1274         (is_naming_typedef_decl): Use it.
1276 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
1278         * invoke.texi (Option Summary): Correct spacing in option lists
1279         and add line breaks to fix over-long lines.
1281 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
1283         PR middle-end/17660
1285         * extend.texi (Common Variable Attributes): Add xref to GCC
1286         Internals manual to explain mode attribute keywords.
1288 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
1290         PR other/16519
1291         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
1292         and Preprocessor Options.
1293         (Options for Linking): Document -pthread here....
1294         (RS/6000 and PowerPC Options): ...not here.
1295         (Solaris 2 Options): ...or here.
1296         * doc/cppopts.texi: Document -pthread.
1298 2017-01-08  Martin Sebor  <msebor@redhat.com>
1300         PR middle-end/77708
1301         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
1302         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
1303         New member functions.
1304         (format_directive): Used them.
1305         (add_bytes): Same.
1306         (pass_sprintf_length::handle_gimple_call): Same.
1307         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
1308         to avoid truncation for any argument.
1309         (extract_affine_mul): Same.
1310         * tree.c (get_file_function_name): Same.
1312 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
1314         PR middle-end/77484
1315         * predict.def (PRED_INDIR_CALL): Set to 86.
1317 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
1319         PR preprocessor/54124
1320         * doc/cppopts.texi: Reformat -d subtable to list the full name
1321         of the options.  Add cross-reference to the docs for the general
1322         compiler -d options.
1323         * doc/invoke.texi (Developer Options): Add cross-reference to the
1324         preprocessor-specific -d option documentation.
1326 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
1328         PR preprocessor/13498
1329         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
1330         redudant material, and reflect new command-line options.
1331         (System Headers): Likewise.
1333 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
1335         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
1336         -isystem, and -idirafter.  Copy-edit.
1337         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
1338         default for -ftrack-macro-expansion.  Delete obsolete and
1339         badly-formatted implementation details about -fdebug-cpp output.
1340         * doc/cppwarnopts.texi: Copy-edit.
1342 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
1344         PR c++/72803
1345         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1346         that the transition from a max line width >= 1<<10 to narrower
1347         lines works correctly.
1349 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
1351         * doc/options.texi (PerFunction): New.
1352         * opt-functions.awk (switch_flags): Map both Optimization and
1353         PerFunction to CL_OPTIMIZATION.
1354         * opth-gen.awk: Test for PerFunction flag along with
1355         Optimization.
1356         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
1357         it only when the latter is present.  Skip those that don't in
1358         the hash function generator.
1359         * common.opt (fvar-tracking): Mark as PerFunction instead of
1360         Optimization.
1361         (fvar-tracking-assignments): Likewise.
1362         (fvar-tracking-assignments-toggle): Likewise.
1363         (fvar-tracking-uninit): Likewise.
1365 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
1367         PR translation/79018
1368         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
1369         the and store.
1371 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
1373         PR target/57583
1374         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
1375         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
1376         TARGET_LONG_JUMP_TABLE_OFFSETS.
1377         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
1378         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
1379         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
1380         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
1381         * config/m68k/m68k.md (tablejump expander): Likewise.
1382         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
1383         TARGET_LONG_JUMP_TABLE_OFFSETS.
1384         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
1385         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
1387 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1388             David Holsgrove <david.holsgrove@xilinx.com>
1390         * common/config/microblaze/microblaze-common.c
1391         (TARGET_EXCEPT_UNWIND_INFO): Remove.
1392         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
1393         New prototype.
1394         * config/microblaze/microblaze.c (microblaze_must_save_register)
1395         (microblaze_expand_epilogue, microblaze_return_addr): Handle
1396         calls_eh_return.
1397         (microblaze_eh_return): New function.
1398         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
1399         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
1400         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
1401         * config/microblaze/microblaze.md (eh_return): New pattern.
1403 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
1405         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
1406         GCC_DIAGNOSTIC_STRINGIFY): Define.
1408         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
1410 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1412         * config/arm/arm.md (<mcrr>): New.
1413         (<mrrc>): New.
1414         * config/arm/arm.c (arm_arch5te): New.
1415         (arm_option_override): Set arm_arch5te.
1416         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
1417         and mrrc2.
1418         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
1419         (arm_mcrr_qualifiers): ... this. New.
1420         (MRRC_QUALIFIERS): Define to...
1421         (arm_mrrc_qualifiers): ... this. New.
1422         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
1423         __arm_mrrc2): New.
1424         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
1425         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
1426         (MRRCI, mrrc, MRRC): New.
1427         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
1428         VUNSPEC_MRRC2): New.
1430 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1432         * config/arm/arm.md (<mcr>): New.
1433         (<mrc>): New.
1434         * config/arm/arm.c (arm_coproc_builtin_available): Add
1435         support for mcr, mrc, mcr2 and mrc2.
1436         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
1437         (arm_mcr_qualifiers): ... this. New.
1438         (MRC_QUALIFIERS): Define to ...
1439         (arm_mrc_qualifiers): ... this. New.
1440         (MCR_QUALIFIERS): Define to ...
1441         (arm_mcr_qualifiers): ... this. New.
1442         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
1443         __arm_mrc2): New.
1444         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
1445         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
1446         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
1447         VUNSPEC_MRC2): New.
1449 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1451         * config/arm/arm.md (*ldc): New.
1452         (*stc): New.
1453         (<ldc>): New.
1454         (<stc>): New.
1455         * config/arm/arm.c (arm_coproc_builtin_available): Add
1456         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
1457         (arm_coproc_ldc_stc_legitimate_address): New.
1458         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
1459         'qualifier_const_pointer'.
1460         (LDC_QUALIFIERS): Define to...
1461         (arm_ldc_qualifiers): ... this. New.
1462         (STC_QUALIFIERS): Define to...
1463         (arm_stc_qualifiers): ... this. New.
1464         * config/arm/arm-protos.h
1465         (arm_coproc_ldc_stc_legitimate_address): New.
1466         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
1467         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
1468         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
1469         stc2, stcl, stc2l): New.
1470         * config/arm/constraints.md (Uz): New.
1471         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
1472         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
1473         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
1474         VUNSPEC_STC2L): New.
1476 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1478         * config/arm/arm.md (<cdp>): New.
1479         * config/arm/arm.c (neon_const_bounds): Rename this ...
1480         (arm_const_bounds): ... this.
1481         (arm_coproc_builtin_available): New.
1482         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
1483         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
1484         (CDP_QUALIFIERS): Define to...
1485         (arm_cdp_qualifiers): ... this. New.
1486         (void_UP): Define.
1487         (arm_expand_builtin_args): Add case for 6 arguments.
1488         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
1489         (arm_const_bounds): ... this.
1490         (arm_coproc_builtin_available): New.
1491         * config/arm/arm_acle.h (__arm_cdp): New.
1492         (__arm_cdp2): New.
1493         * config/arm/arm_acle_builtins.def (cdp): New.
1494         (cdp2): New.
1495         * config/arm/iterators.md (CDPI,CDP,cdp): New.
1496         * config/arm/neon.md: Rename all 'neon_const_bounds' to
1497         'arm_const_bounds'.
1498         * config/arm/types.md (coproc): New.
1499         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
1500         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
1501         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
1502         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
1504 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1506         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
1507         (UBINOP_QUALIFIERS): New.
1508         (si_UP): Define.
1509         (acle_builtin_data): New. Change comment.
1510         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
1511         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
1512         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
1513         arm_acle_builtins.def.
1514         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
1515         (arm_init_acle_builtins): New.
1516         (CRC32_BUILTIN): Remove.
1517         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
1518         crc32cb, crc32ch and crc32cw.
1519         (arm_init_crc32_builtins): Remove.
1520         (arm_init_builtins): Use arm_init_acle_builtins rather
1521         than arm_init_crc32_builtins.
1522         (arm_expand_acle_builtin): New.
1523         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
1524         * config/arm/arm_acle_builtins.def: New.
1526 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1528         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
1529         (arm_builtin_datum): ... this.
1530         (arm_init_neon_builtin): Rename to ...
1531         (arm_init_builtin): ... this. Add a new parameters PREFIX
1532         and USE_SIG_IN_NAME.
1533         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
1534         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
1535         'arm_builtin_datum'.
1536         (arm_init_vfp_builtins): Likewise.
1537         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
1538         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
1539         (arm_expand_neon_args): Rename to ...
1540         (arm_expand_builtin_args): ... this. Rename builtin_arg
1541         enum values and differentiate between ARG_BUILTIN_MEMORY
1542         and ARG_BUILTIN_NEON_MEMORY.
1543         (arm_expand_neon_builtin_1): Rename to ...
1544         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
1545         values, arm_expand_builtin_args and add bool parameter NEON.
1546         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
1547         (arm_expand_vfp_builtin): Likewise.
1548         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
1550 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
1552         PR middle-end/77484
1553         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
1554         * predict.c (tree_estimate_probability_bb): Reverse direction of
1555         polymorphic call predictor.
1557 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
1559         * passes.c (execute_one_pass): Split out pass-skipping logic into...
1560         (determine_pass_name_match): ...this new function and...
1561         (should_skip_pass_p): ...this new function.
1563 2017-01-06  Nathan Sidwell  <nathan@acm.org>
1565         * ipa-visibility.c (function_and_variable_visibility): Reformat
1566         comments and long lines.  Remove extrneous if.
1567         * symtab.c (symtab_node::make_decl_local): Fix code format.
1568         (symtab_node::set_section_for_node): Fix comment typo.
1570 2017-01-06  Martin Liska  <mliska@suse.cz>
1572         PR bootstrap/79003
1573         * lra-constraints.c: Rename invariant to lra_invariant.
1574         * predict.c (set_even_probabilities): Initialize e to NULL.
1576 2017-01-05  Martin Sebor  <msebor@redhat.com>
1578         PR tree-optimization/78910
1579         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
1580         (format_integer): Correct off-by-one error in the handling
1581         of precision with negative numbers in signed conversions..
1583 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1585         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
1587 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
1589         PR tree-optimization/71016
1590         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
1591         factor_out_conditional_conversion.  Formatting fix.
1592         (factor_out_conditional_conversion): Add cond_stmt argument.
1593         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
1594         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
1595         Formatting fix.
1597 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
1599         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
1600         read-rtl-function.o, and selftest-rtl.o.
1601         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
1602         (selftest::aarch64_test_loading_full_dump): New function.
1603         (selftest::aarch64_run_selftests): New function.
1604         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
1605         selftest::aarch64_run_selftests.
1606         * config/i386/i386.c
1607         (selftest::ix86_test_loading_dump_fragment_1): New function.
1608         (selftest::ix86_test_loading_call_insn): New function.
1609         (selftest::ix86_test_loading_full_dump): New function.
1610         (selftest::ix86_test_loading_unspec): New function.
1611         (selftest::ix86_run_selftests): Call the new functions.
1612         * emit-rtl.c (maybe_set_max_label_num): New function.
1613         * emit-rtl.h (maybe_set_max_label_num): New decl.
1614         * function.c (instantiate_decls): Guard call to
1615         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
1616         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
1617         "static".
1618         * gensupport.c (gen_reader::gen_reader): Pass "false"
1619         for new "compact" param of rtx_reader.
1620         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
1621         rather than an empty string for NULL strings.
1622         * read-md.c: Potentially include config.h rather than bconfig.h.
1623         Wrap include of errors.h with #ifdef GENERATOR_FILE.
1624         (have_error): New global, copied from errors.c.
1625         (md_reader::read_name): Rename to...
1626         (md_reader::read_name_1): ...this, adding "out_loc" param,
1627         and converting "missing name or number" to returning false, rather
1628         than failing.
1629         (md_reader::read_name): Reimplement in terms of read_name_1.
1630         (md_reader::read_name_or_nil): New function.
1631         (md_reader::read_string): Handle "(nil)" by returning NULL.
1632         (md_reader::md_reader): Add new param "compact".
1633         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
1634         (md_reader::read_file): New method.
1635         * read-md.h (md_reader::md_reader): Add new param "compact".
1636         (md_reader::read_file): New method.
1637         (md_reader::is_compact): New accessor.
1638         (md_reader::read_name): Convert return type from void to file_location.
1639         (md_reader::read_name_or_nil): New decl.
1640         (md_reader::read_name_1): New decl.
1641         (md_reader::m_compact): New field.
1642         (noop_reader::noop_reader): Pass "false" for new "compact" param
1643         of rtx_reader.
1644         (rtx_reader::rtx_reader): Add new "compact" param.
1645         (rtx_reader::read_rtx_operand): Make virtual and convert return
1646         type from void to rtx.
1647         (rtx_reader::read_until): New decl.
1648         (rtx_reader::handle_any_trailing_information): New virtual function.
1649         (rtx_reader::postprocess): New virtual function.
1650         (rtx_reader::finalize_string): New virtual function.
1651         (rtx_reader::m_in_call_function_usage): New field.
1652         (rtx_reader::m_reuse_rtx_by_id): New field.
1653         * read-rtl-function.c: New file.
1654         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
1655         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
1656         (selftest::verify_three_block_rtl_cfg): New decl.
1657         * read-rtl-function.h: New file.
1658         * read-rtl.c: Potentially include config.h rather than bconfig.h.
1659         For host, include function.h, memmodel.h, and emit-rtl.h.
1660         (one_time_initialization): New function.
1661         (struct compact_insn_name): New struct.
1662         (compact_insn_names): New array.
1663         (find_code): Handle insn codes in compact dumps.
1664         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
1665         (bind_subst_iter_and_attr): Likewise.
1666         (add_condition_to_string): Likewise.
1667         (add_condition_to_rtx): Likewise.
1668         (apply_attribute_uses): Likewise.
1669         (add_current_iterators): Likewise.
1670         (apply_iterators): Likewise.
1671         (initialize_iterators): Guard usage of apply_subst_iterator with
1672         #ifdef GENERATOR_FILE.
1673         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
1674         (md_reader::read_mapping): Likewise.
1675         (add_define_attr_for_define_subst): Likewise.
1676         (add_define_subst_attr): Likewise.
1677         (read_subst_mapping): Likewise.
1678         (check_code_iterator): Likewise.
1679         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
1680         logic to...
1681         (one_time_initialization): New function.
1682         (rtx_reader::read_until): New method.
1683         (read_flags): New function.
1684         (parse_reg_note_name): New function.
1685         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
1686         Handle reuse_rtx ids.
1687         Wrap iterator lookup within #ifdef GENERATOR_FILE.
1688         Add parsing support for RTL dumps, mirroring the special-cases in
1689         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
1690         values, and calling handle_any_trailing_information.
1691         (rtx_reader::read_rtx_operand): Convert return type from void
1692         to rtx, returning return_rtx.  Handle case 'e'.  Call
1693         finalize_string on XSTR and XTMPL fields.
1694         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
1695          "(nil)" values were omitted.  Call the postprocess vfunc on the
1696         return_rtx.
1697         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
1698         class ctor.  Initialize m_in_call_function_usage.  Call
1699         one_time_initialization.
1700         * rtl-tests.c (selftest::test_uncond_jump): Call
1701         set_new_first_and_last_insn.
1702         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
1703         * selftest-rtl.c: New file.
1704         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
1705         (selftest::get_insn_by_uid): New decl.
1706         * selftest-run-tests.c (selftest::run_tests): Call
1707         read_rtl_function_c_tests.
1708         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
1709         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
1710         dumps.
1712 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
1714         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
1715         operands in a special way.  Assert that pos+len <= mode precision.
1717 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
1719         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
1720         3 argument Alias with unlimited for the negative form.
1721         (fno-vect-cost-model): Removed.
1723 2017-01-05  Martin Liska  <mliska@suse.cz>
1725         * hsa-gen.c (gen_hsa_divmod): New function.
1726         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
1728 2017-01-05  Martin Liska  <mliska@suse.cz>
1730         PR pch/78970
1731         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
1732         header.
1734 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1736         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
1737         small constant length operands.
1739 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1741         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
1742         between loop iterations.
1744 2017-01-05  Martin Liska  <mliska@suse.cz>
1746         PR sanitizer/78815
1747         * gimplify.c (gimplify_decl_expr): Compare to
1748         asan_poisoned_variables instread of checking flags.
1749         (gimplify_target_expr): Likewise.
1750         (gimplify_expr): Likewise.
1751         (gimplify_function_tree): Conditionally initialize
1752         asan_poisoned_variables.
1754 2017-01-04  Jeff Law  <law@redhat.com>
1756         PR tree-optimizatin/78812
1757         * rtl.h (contains_mem_rtx_p): Prototype.
1758         * ifcvt.c (containts_mem_rtx_p): Move from here to...
1759         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
1760         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
1761         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
1762         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
1764 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
1766         * input.c (assert_char_at_range): Default-initialize actual_range.
1768 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
1770         * df-scan.c (df_ref_create_structure): Make regno unsigned,
1771         to match the caller.
1773 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
1775         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
1776         insns after final jump in test to emit dummy move.
1778 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
1780         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
1781         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
1783 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
1785         * multiple_target.c (create_dispatcher_calls): Init e_next.
1786         * tree-ssa-loop-split.c (split_loop): Init border.
1787         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
1788         scalar_type.
1790 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
1792         PR target/71977
1793         PR target/70568
1794         PR target/78823
1795         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
1796         (altivec_register_operand): Do not return true if the operand
1797         contains a SUBREG mixing SImode and SFmode.
1798         (vsx_register_operand): Likewise.
1799         (vsx_reg_sfsubreg_ok): New predicate.
1800         (vfloat_operand): Do not return true if the operand contains a
1801         SUBREG mixing SImode and SFmode.
1802         (vint_operand): Likewise.
1803         (vlogical_operand): Likewise.
1804         (gpc_reg_operand): Likewise.
1805         (int_reg_operand): Likewise.
1806         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
1807         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
1808         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
1809         SImode and SFmode.
1810         (rs6000_emit_move_si_sf_subreg): New helper function.
1811         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
1812         fixup SUBREGs involving SImode and SFmode.
1813         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
1814         numbers for the new peephole2 optimization.
1815         (peephole2 for SFmode unions): New peephole2 to optimize cases in
1816         the GLIBC math library that do AND/IOR/XOR operations on single
1817         precision floating point.
1818         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
1819         target macros to say whether we need to avoid SUBREGs mixing
1820         SImode and SFmode.
1821         (TARGET_ALLOW_SF_SUBREG): Likewise.
1822         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
1823         (UNSPEC_SI_FROM_SF): Likewise.
1824         (iorxor): Change spacing.
1825         (and_ior_xor): New iterator for AND, IOR, and XOR.
1826         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
1827         (movdi_from_sf_zero_ext): Likewise.
1828         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
1829         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
1830         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
1831         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
1832         (fms<mode>4): Likewise.
1833         (fnma<mode>4): Likewise.
1834         (fnms<mode>4): Likewise.
1835         (nfma<mode>4): Likewise.
1836         (nfms<mode>4): Likewise.
1838 2017-01-04  Marek Polacek  <polacek@redhat.com>
1840         PR c++/64767
1841         * doc/invoke.texi: Document -Wpointer-compare.
1843 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1845         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
1846         RejectNegative.
1848         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
1849         descriptions for -gdwarf-5 and emit them as uleb128 instead of
1850         2-byte data.
1852 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1854         PR target/78056
1855         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
1856         documentation of the powerpc_popcntb_ok attribute.
1857         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1858         code to issue warning messages if a requested CPU configuration is
1859         not supported by the binary (assembler and loader) toolchain.
1860         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
1861         made to define a built-in function that has been disabled.
1862         (paired_init_builtins): Add assertion to prevent ICE if attempt is
1863         made to define a built-in function that has been disabled.
1864         (altivec_init_builtins): Add comment explaining why definition
1865         of the DST built-in functions is not preceded by an assertion
1866         check.  Add assertions to prevent ICE if attempts are made to
1867         define an altivec predicate or an abs* built-in function that has
1868         been disabled.
1869         (htm_init_builtins): Add comment explaining why definition of the
1870         htm built-in functions is not preceded by an assertion check.
1872 2017-01-04  Jeff Law  <law@redhat.com>
1874         PR tree-optimizatin/67955
1875         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
1876         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
1877         the points-to solution does not include pt_null.  Use DECL_PT_UID
1878         unconditionally.
1880 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
1882         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
1883         Use gen_int_mode instead of gen_lopwart for const_int operands.
1885 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1887         PR tree-optimization/71563
1888         * match.pd: Simplify X << Y into X if Y is known to be 0 or
1889         out of range value - has low bits known to be zero.
1891 2017-01-04  Alan Modra  <amodra@gmail.com>
1893         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
1894         * configure: Regenerate.
1895         * config.in: Regenerate.
1897 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
1899         PR bootstrap/77569
1900         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
1901         a substring of the message, but strcmp with the whole message.  Ifdef
1902         ENABLE_NLS, translate the message first using dgettext.
1904 2017-01-03  Jeff Law  <law@redhat.com>
1906         PR tree-optimizatin/78856
1907         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
1908         (mark_threaded_blocks): Remove code to truncate thread paths that
1909         cross multiple loop headers.  Instead invalidate the cached loop
1910         iteration information and handle case of a thread path walking
1911         into an irreducible region.
1913 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1915         PR target/78900
1916         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
1917         assertions.  Add support for doing the signbit if the IEEE 128-bit
1918         floating point value is in a GPR.
1919         * config/rs6000/rs6000.md (Fsignbit): Delete.
1920         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
1921         Update the length attribute if the value is in a GPR.
1922         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
1923         the sign or zero extension instruction, since the value is always 0/1.
1924         (signbit<mode>2_dm2): Delete using <Fsignbit>.
1926         PR target/78953
1927         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
1928         extracting SImode to a GPR register so that we can generate a
1929         store, limit the vector to be in a traditional Altivec register
1930         for the vextuwrx instruction.
1932 2017-01-03  Ian Lance Taylor  <iant@google.com>
1934         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
1936 2017-01-03  Martin Sebor  <msebor@redhat.com>
1938         PR tree-optimization/78696
1939         * gimple-ssa-sprintf.c (format_floating): Correct handling of
1940         precision.  Use MPFR for %f for greater fidelity.  Correct handling
1941         of %g.
1942         (pass_sprintf_length::compute_format_length): Set width and precision
1943         specified by asrerisk to void_node for vararg functions.
1944         (try_substitute_return_value): Adjust dump output.
1946 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
1948         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
1950 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
1952         * doc/invoke.texi (SPARC options): Document -mlra as the default.
1953         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
1954         -mlra/-mno-lra was passed to the compiler.
1956 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
1958         PR rtl-optimization/65618
1959         * emit-rtl.c (try_split): Move initialization of "before" and
1960         "after" to just before the call to emit_insn_after_setloc.
1962 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
1964         * doc/md.texi (Standard Names): Remove reference to Java frontend.
1966 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
1968         * dwarf2out.c (gen_enumeration_type_die): When
1969         -gno-strict-dwarf, add a DW_AT_encoding attribute.
1971 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
1973         PR tree-optimization/78965
1974         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1975         Change first argument from const call_info & to call_info &.  For %n
1976         set info.nowrite to false.
1978         PR middle-end/78901
1979         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
1980         possibly throwing calls.
1982         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
1983         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
1984         and fns handling, rather than in a separate case SSA_NAME.
1986 2017-01-02  Jeff Law  <law@redhat.com>
1988         * config/darwin-driver.c (darwin_driver_init): Const-correctness
1989         fixes for first_period and second_period variables.
1991 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
1993         PR target/78967
1994         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
1995         (*insvqi_1): New insn pattern.
1996         (*insvqi_1_mem_rex64): Ditto.
1997         (*insvqi_2): Ditto.
1998         (*insvqi_3): Rename from *insvqi.
2000         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
2002 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
2004         * doc/cfg.texi (Edges): Remove reference to Java.
2005         (Maintaining the CFG): Ditto.
2007 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
2009         PR middle-end/77674
2010         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
2011         transparent aliases.
2013 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
2015         PR middle-end/77484
2016         * predict.def (PRED_CALL): Update hitrate.
2017         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
2018         * predict.c (tree_estimate_probability_bb): Split CALL predictor
2019         into direct/indirect/polymorphic variants.
2021 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2023         Update copyright years.
2025         * gcc.c (process_command): Update copyright notice dates.
2026         * gcov-dump.c (print_version): Ditto.
2027         * gcov.c (print_version): Ditto.
2028         * gcov-tool.c (print_version): Ditto.
2029         * gengtype.c (create_file): Ditto.
2030         * doc/cpp.texi: Bump @copying's copyright year.
2031         * doc/cppinternals.texi: Ditto.
2032         * doc/gcc.texi: Ditto.
2033         * doc/gccint.texi: Ditto.
2034         * doc/gcov.texi: Ditto.
2035         * doc/install.texi: Ditto.
2036         * doc/invoke.texi: Ditto.
2038 Copyright (C) 2017 Free Software Foundation, Inc.
2040 Copying and distribution of this file, with or without modification,
2041 are permitted in any medium without royalty provided the copyright
2042 notice and this notice are preserved.