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