1 2017-01-18 Matthias Klose <doko@ubuntu.com>
3 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
5 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7 * config/rs6000/altivec.h (vec_bperm): Change #define.
8 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
9 (altivec_vbpermq2): New define_insn.
10 (altivec_vbpermd): Likewise.
11 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
14 (VBPERM): New polymorphic function interface.
15 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
16 Add entries for P9V_BUILTIN_VEC_VBPERM.
17 * doc/extend.texi: Add interfaces for vec_bperm.
19 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
22 first letter of error messages.
23 (s390_resolve_overloaded_builtin): Likewise.
24 * config/s390/s390.c (s390_expand_builtin): Likewise.
25 (s390_invalid_arg_for_unprototyped_fn): Likewise.
26 (s390_valid_target_attribute_inner_p): Likewise.
27 * config/s390/s390.md ("tabort"): Likewise.
29 2017-01-18 Jakub Jelinek <jakub@redhat.com>
31 * gcc.target/s390/target-attribute/tattr-2.c: Add -fno-ipa-icf
33 (p0): Add missing dg-error.
35 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
37 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
38 (ISA_AVOID_DIV_HILO): New macro.
39 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
40 (ISA_HAS_DDIV): Likewise.
42 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
44 * doc/invoke.texi (fabi-version): Correct number of occurrences.
46 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
48 * doc/invoke.texi (fabi-version): Spelling fix.
50 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
53 * doc/invoke.texi (fabi-version): Mention mangling fix for
56 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
59 * doc/invoke.texi (fabi-version): Document discriminator mangling.
61 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
64 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
65 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
67 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
69 (stack_protect_test): Ditto.
70 * config/rs6000/rs6000.opt (mstack-protector-guard=,
71 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
73 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
74 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
75 -mstack-protector-guard-offset=.
76 (RS/6000 and PowerPC Options): Ditto.
78 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
80 * config/i386/i386.h (MASK_CLASS_P): New define.
81 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
82 there are no registers from different register sets also when
83 mask registers are used. Update function comment.
84 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
85 to (*k/*r) and (*k/*km) alternatives.
87 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
89 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
90 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
91 (EH_RETURN_HANDLER_RTX): New define.
92 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
93 Force frame pointer in EH return functions.
94 (aarch64_expand_epilogue): Add barrier for eh_return.
95 (aarch64_final_eh_return_addr): Remove.
96 (aarch64_eh_return_handler_rtx): New function.
97 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
99 (aarch64_eh_return_handler_rtx): New prototype.
101 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
103 * config/rs6000/altivec.h (vec_rlmi): New #define.
104 (vec_vrlnm): Likewise.
105 (vec_rlnm): Likewise.
106 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
107 (UNSPEC_VRLNM): Likewise.
108 (VIlong): New mode iterator.
109 (altivec_vrl<VI_char>mi): New define_insn.
110 (altivec_vrl<VI_char>nm): Likewise.
111 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
114 (RLNM): New polymorphic function entry.
115 (VRLWMI): New monomorphic function entry.
117 (RLMI): New polymorphic function entry.
118 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
119 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
120 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
123 2017-01-17 Jakub Jelinek <jakub@redhat.com>
126 * dwarf2out.c (field_byte_offset): Restore the
127 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
128 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
129 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
132 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
135 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
137 2017-01-17 Jakub Jelinek <jakub@redhat.com>
140 * dwarf2out.c (add_data_member_location_attribute): For constant
141 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
142 instead of DW_AT_data_member_location, DW_AT_bit_offset and
143 DW_AT_byte_size attributes.
145 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
147 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
148 after forcing to constant memory when the code model is medium.
150 2017-01-17 Julia Koval <julia.koval@intel.com>
153 * config/i386/avx512fintrin.h
154 (_mm512_i32gather_ps): Change __addr type to void const*.
155 (_mm512_mask_i32gather_ps): Ditto.
156 (_mm512_i32gather_pd): Ditto.
157 (_mm512_mask_i32gather_pd): Ditto.
158 (_mm512_i64gather_ps): Ditto.
159 (_mm512_mask_i64gather_ps): Ditto.
160 (_mm512_i64gather_pd): Ditto.
161 (_mm512_mask_i64gather_pd): Ditto.
162 (_mm512_i32gather_epi32): Ditto.
163 (_mm512_mask_i32gather_epi32): Ditto.
164 (_mm512_i32gather_epi64): Ditto.
165 (_mm512_mask_i32gather_epi64): Ditto.
166 (_mm512_i64gather_epi32): Ditto.
167 (_mm512_mask_i64gather_epi32): Ditto.
168 (_mm512_i64gather_epi64): Ditto.
169 (_mm512_mask_i64gather_epi64): Ditto.
170 (_mm512_i32scatter_ps): Change __addr type to void*.
171 (_mm512_mask_i32scatter_ps): Ditto.
172 (_mm512_i32scatter_pd): Ditto.
173 (_mm512_mask_i32scatter_pd): Ditto.
174 (_mm512_i64scatter_ps): Ditto.
175 (_mm512_mask_i64scatter_ps): Ditto.
176 (_mm512_i64scatter_pd): Ditto.
177 (_mm512_mask_i64scatter_pd): Ditto.
178 (_mm512_i32scatter_epi32): Ditto.
179 (_mm512_mask_i32scatter_epi32): Ditto.
180 (_mm512_i32scatter_epi64): Ditto.
181 (_mm512_mask_i32scatter_epi64): Ditto.
182 (_mm512_i64scatter_epi32): Ditto.
183 (_mm512_mask_i64scatter_epi32): Ditto.
184 (_mm512_i64scatter_epi64): Ditto.
185 (_mm512_mask_i64scatter_epi64): Ditto.
186 * config/i386/avx512pfintrin.h
187 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
188 (_mm512_mask_prefetch_i32gather_ps): Ditto.
189 (_mm512_mask_prefetch_i64gather_pd): Ditto.
190 (_mm512_mask_prefetch_i64gather_ps): Ditto.
191 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
192 (_mm512_prefetch_i32scatter_ps): Ditto.
193 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
194 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
195 (_mm512_prefetch_i64scatter_pd): Ditto.
196 (_mm512_prefetch_i64scatter_ps): Ditto.
197 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
198 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
199 * config/i386/avx512vlintrin.h
200 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
201 (_mm_mmask_i32gather_ps): Ditto.
202 (_mm256_mmask_i32gather_pd): Ditto.
203 (_mm_mmask_i32gather_pd): Ditto.
204 (_mm256_mmask_i64gather_ps): Ditto.
205 (_mm_mmask_i64gather_ps): Ditto.
206 (_mm256_mmask_i64gather_pd): Ditto.
207 (_mm_mmask_i64gather_pd): Ditto.
208 (_mm256_mmask_i32gather_epi32): Ditto.
209 (_mm_mmask_i32gather_epi32): Ditto.
210 (_mm256_mmask_i32gather_epi64): Ditto.
211 (_mm_mmask_i32gather_epi64): Ditto.
212 (_mm256_mmask_i64gather_epi32): Ditto.
213 (_mm_mmask_i64gather_epi32): Ditto.
214 (_mm256_mmask_i64gather_epi64): Ditto.
215 (_mm_mmask_i64gather_epi64): Ditto.
216 (_mm256_i32scatter_ps): Change __addr type to void*.
217 (_mm256_mask_i32scatter_ps): Ditto.
218 (_mm_i32scatter_ps): Ditto.
219 (_mm_mask_i32scatter_ps): Ditto.
220 (_mm256_i32scatter_pd): Ditto.
221 (_mm256_mask_i32scatter_pd): Ditto.
222 (_mm_i32scatter_pd): Ditto.
223 (_mm_mask_i32scatter_pd): Ditto.
224 (_mm256_i64scatter_ps): Ditto.
225 (_mm256_mask_i64scatter_ps): Ditto.
226 (_mm_i64scatter_ps): Ditto.
227 (_mm_mask_i64scatter_ps): Ditto.
228 (_mm256_i64scatter_pd): Ditto.
229 (_mm256_mask_i64scatter_pd): Ditto.
230 (_mm_i64scatter_pd): Ditto.
231 (_mm_mask_i64scatter_pd): Ditto.
232 (_mm256_i32scatter_epi32): Ditto.
233 (_mm256_mask_i32scatter_epi32): Ditto.
234 (_mm_i32scatter_epi32): Ditto.
235 (_mm_mask_i32scatter_epi32): Ditto.
236 (_mm256_i32scatter_epi64): Ditto.
237 (_mm256_mask_i32scatter_epi64): Ditto.
238 (_mm_i32scatter_epi64): Ditto.
239 (_mm_mask_i32scatter_epi64): Ditto.
240 (_mm256_i64scatter_epi32): Ditto.
241 (_mm256_mask_i64scatter_epi32): Ditto.
242 (_mm_i64scatter_epi32): Ditto.
243 (_mm_mask_i64scatter_epi32): Ditto.
244 (_mm256_i64scatter_epi64): Ditto.
245 (_mm256_mask_i64scatter_epi64): Ditto.
246 (_mm_i64scatter_epi64): Ditto.
247 (_mm_mask_i64scatter_epi64): Ditto.
248 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
249 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
250 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
251 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
252 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
253 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
254 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
255 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
256 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
257 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
258 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
259 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
260 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
261 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
262 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
263 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
264 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
265 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
266 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
267 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
268 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
269 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
270 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
271 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
272 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
273 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
274 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
275 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
276 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
277 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
278 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
279 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
280 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
281 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
282 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
283 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
284 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
285 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
286 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
287 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
288 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
289 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
290 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
291 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
292 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
293 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
294 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
295 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
296 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
297 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
298 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
299 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
300 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
301 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
302 definitions accordingly.
304 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
305 Kuan-Lin Chen <kuanlinchentw@gmail.com>
308 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
311 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
314 * ira-conflicts.c (ira_build_conflicts): Update total conflict
315 hard regs for inner regno.
317 2017-01-17 Martin Liska <mliska@suse.cz>
320 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
321 assumption and add comment.
323 2017-01-17 Nathan Sidwell <nathan@acm.org>
325 * ipa-visibility.c (localize_node): New function, broken out of ...
326 (function_and_variable_visibility): ... here. Call it.
328 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
331 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
332 correctly set frequency of oudgoing edge.
333 (duplicate_thread_path): Fix profile updating.
335 2017-01-17 Jakub Jelinek <jakub@redhat.com>
338 * configure.ac: Add GCC_BASE_VER.
339 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
340 version from BASE-VER file.
341 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
342 (gcc.o): Depend on $(BASEVER).
343 * common.opt (dumpfullversion): New option.
344 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
345 * doc/invoke.texi: Document -dumpfullversion.
346 * doc/install.texi: Document --with-gcc-major-version-only.
347 * configure: Regenerated.
349 2017-01-17 Richard Biener <rguenther@suse.de>
351 PR tree-optimization/71433
352 * tree-vrp.c (register_new_assert_for): Merge same asserts
353 on all incoming edges.
354 (process_assert_insertions_for): Handle insertions at the
357 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
359 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
360 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
362 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
365 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
368 2017-01-17 Alan Modra <amodra@gmail.com>
371 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
372 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
373 symbolic stack limit when pic.
375 2017-01-16 Martin Sebor <msebor@redhat.com>
377 PR tree-optimization/78608
378 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
380 2017-01-16 Jeff Law <law@redhat.com>
383 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
384 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
385 for several include directories that may be relative to sysroot.
386 * config/i386/x-mingw32 (gplus_includedir): Define.
387 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
388 (native_system_includedir): Likewise.
389 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
390 override if TARGET_SYSTEM_ROOT is defined.
391 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
393 PR tree-optimization/79090
394 PR tree-optimization/33562
395 PR tree-optimization/61912
396 PR tree-optimization/77485
397 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
398 and computed trims into the dump file.
400 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
402 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
404 2017-01-16 Jakub Jelinek <jakub@redhat.com>
407 * gimplify.c (gimplify_init_constructor): If want_value and
408 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
412 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
413 sequence. Formatting fixes.
414 (doloop_optimize): Formatting fixes.
417 * gcc.c (debug_level_greater_than_spec_func): New function.
418 (static_spec_functions): Add debug-level-gt spec function.
419 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
421 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
422 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
423 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
424 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
425 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
426 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
428 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
430 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
431 QImode fixups to general and mask registers only.
433 2017-01-16 Carl Love <cel@us.ibm.com>
435 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
436 for built-in functions
437 vector signed char vec_nabs (vector signed char)
438 vector signed short vec_nabs (vector signed short)
439 vector signed int vec_nabs (vector signed int)
440 vector signed long long vec_nabs (vector signed long long)
441 vector float vec_nabs (vector float)
442 vector double vec_nabs (vector double)
443 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
445 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
446 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
447 * doc/extend.texi: Update the documentation file for the new built-in
450 2017-01-16 Martin Sebor <msebor@redhat.com>
452 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
455 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
457 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
458 UNSPEC_VSX__XXSPLTD to require special splat handling.
460 2017-01-16 David Malcolm <dmalcolm@redhat.com>
463 * system.h: Poison strndup.
465 2017-01-16 Alan Modra <amodra@gmail.com>
468 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
471 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
473 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
475 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
477 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
478 call recog here. Assert that INSN_CODE (insn) is non-negative.
480 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
483 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
485 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
486 in the currently scheduled RTL fragment.
488 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
490 PR rtl-optimization/78751
491 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
494 2017-01-14 Jeff Law <law@redhat.com>
496 PR tree-optimization/79090
497 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
498 variable length stores.
499 (compute_trims): Delete dead assignment to *trim_tail.
500 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
503 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
505 PR rtl-optimization/78626
506 PR rtl-optimization/78727
507 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
508 of a block, and split such blocks after everything else is finished.
510 2017-01-14 Alan Modra <amodra@gmail.com>
513 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
514 target legitimate_combined_insn.
515 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
516 (rs6000_legitimate_combined_insn): New function.
517 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
519 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
520 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
521 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
523 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
525 * doc/frontends.texi (G++ and GCC): Remove references to Java.
527 2017-01-13 Jeff Law <law@redhat.com>
529 PR tree-optimization/33562
530 PR tree-optimization/61912
531 PR tree-optimization/77485
532 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
534 (delete_dead_assignment): Likewise.
535 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
536 statement to delete_dead_call and delete_dead_assignment.
538 2017-01-13 David Malcolm <dmalcolm@redhat.com>
541 * substring-locations.c (format_warning_va): Strengthen case 1 so
542 that both endpoints of the substring must be within the format
543 range for just the substring to be printed.
545 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
547 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
548 * config/i386/i386.c (ix86_target_string): Add missing options
549 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
550 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
551 flags_other and ix86_target_other to flags2_other. Display unknown
553 (ix86_valid_target_attribute_inner_p): Add missing options and
554 reorder options by implied ISAs, as in ix86_target_string.
556 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
558 * hash-table.h (hash_table::too_empty_p): New function.
559 (hash_table::expand): Use it.
560 (hash_table::traverse): Likewise.
561 (hash_table::empty_slot): Use sizeof (value_type) instead of
562 sizeof (PTR) to convert bytes to elements. Shrink the table
563 if the current size is excessive for the current number of
566 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
568 * ira-costs.c (record_reg_classes): Break from the inner loop
569 early once alt_fail is known to be true. Update outer loop
570 handling accordingly.
572 2017-01-13 Jeff Law <law@redhat.com>
574 * tree-ssa-dse.c (decrement_count): New function.
575 (increment_start_addr, maybe_trim_memstar_call): Likewise.
576 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
577 when we know the partially dead statement is a mem* function.
579 PR tree-optimization/61912
580 PR tree-optimization/77485
581 * tree-ssa-dse.c: Include expr.h.
582 (maybe_trim_constructor_store): New function.
583 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
585 PR tree-optimization/33562
586 PR tree-optimization/61912
587 PR tree-optimization/77485
588 * doc/invoke.texi: Document new dse-max-object-size param.
589 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
590 * tree-ssa-dse.c: Include params.h.
591 (dse_store_status): New enum.
592 (initialize_ao_ref_for_dse): New, partially extracted from
594 (valid_ao_ref_for_dse, normalize_ref): New.
595 (setup_live_bytes_from_ref, compute_trims): Likewise.
596 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
597 (maybe_trim_partially_dead_store): Likewise.
598 (maybe_trim_complex_store): Likewise.
599 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
600 Track what bytes live from the original store. Return tri-state
601 for dead, partially dead or live.
602 (dse_dom_walker): Add constructor, destructor and new private members.
603 (delete_dead_call, delete_dead_assignment): New extracted from
605 (dse_optimize_stmt): Make a member of dse_dom_walker.
606 Use initialize_ao_ref_for_dse.
608 PR tree-optimization/33562
609 PR tree-optimization/61912
610 PR tree-optimization/77485
611 * sbitmap.h (bitmap_count_bits): Prototype.
612 (bitmap_clear_range, bitmap_set_range): Likewise.
613 * sbitmap.c (bitmap_clear_range): New function.
614 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
616 2017-01-13 Martin Liska <mliska@suse.cz>
619 * function.c (set_cfun): Add new argument force.
620 * function.h (set_cfun): Likewise.
621 * ipa-inline-transform.c (inline_call): Use the function when
622 strict alising from is dropped for function we inline to.
624 2017-01-13 Richard Biener <rguenther@suse.de>
626 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
627 for dumping GIMPLE INTEGER_CSTs.
629 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
631 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
632 to 201112L since C++17.
634 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
637 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
638 if -fsanitize=kernel-address is present.
640 2017-01-13 Richard Biener <rguenther@suse.de>
642 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
643 as _Literal ( type ) number in case usual suffixes do not
644 preserve all information.
646 2017-01-13 Richard Biener <rguenther@suse.de>
648 PR tree-optimization/77283
649 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
651 (is_feasible_trace): Implement a cost model based on joiner
654 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
657 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
658 char or short to __float128/_Float128 directly.
660 2017-01-12 Martin Sebor <msebor@redhat.com>
662 to -Wformat-overflow.
663 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
664 (min_bytes_remaining): Same.
665 (get_string_length): Same.
666 (format_string): Same.
667 (format_directive): Same.
669 (pass_sprintf_length::handle_gimple_call): Same.
671 2017-01-12 Jakub Jelinek <jakub@redhat.com>
673 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
674 info.nowrite calls with no lhs that can't throw. Return bool
675 whether gsi_remove has been called or not.
676 (pass_sprintf_length::handle_gimple_call): Return bool whether
677 try_substitute_return_value called gsi_remove. Formatting fix.
678 (pass_sprintf_length::execute): Don't use gsi_remove if
679 handle_gimple_call returned true.
682 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
683 be removed due to side-effects, don't remove following barrier nor
684 turn the successor edge into fallthru edge.
686 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
689 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
690 element-reversing loads and stores as not swappable.
692 2017-01-12 Nathan Sidwell <nathan@acm.org>
693 Nicolai Stange <nicstange@gmail.com>
695 * combine.c (try_combine): Don't ignore result of overlap checking
696 loop. Combine overlap & asm check into single loop.
698 2017-01-12 Richard Biener <rguenther@suse.de>
700 * tree-pretty-print.c (dump_generic_node): Provide -gimple
701 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
703 2017-01-12 Richard Biener <rguenther@suse.de>
705 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
706 and TS_TARGET_OPTION directly derive from TS_BASE.
707 * tree-core.h (tree_optimization_option): Derive from tree_base.
708 (tree_target_option): Likewise.
710 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
712 * config/i386/i386.c (memory_address_length): Increase len
713 only when rip_relative_addr_p returns false.
715 2017-01-11 Julia Koval <julia.koval@intel.com>
717 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
718 (OPTION_MASK_ISA_SGX_SET): New.
719 (ix86_handle_option): Handle OPT_msgx.
720 * config.gcc: Added sgxintrin.h.
721 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
722 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
723 * config/i386/i386.c (ix86_target_string): Add -msgx.
725 (ix86_option_override_internal): Handle new options.
726 (ix86_valid_target_attribute_inner_p): Add sgx.
727 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
728 * config/i386/i386.opt: Add msgx.
729 * config/i386/sgxintrin.h: New file.
730 * config/i386/x86intrin.h: Add sgxintrin.h.
732 2017-01-11 Jakub Jelinek <jakub@redhat.com>
735 * fold-const.c (maybe_nonzero_address): Return 1 for function
737 (tree_single_nonzero_warnv_p): Don't handle function local objects
741 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
744 2017-01-11 David Malcolm <dmalcolm@redhat.com>
747 * opts.c: Include "spellcheck.h"
748 (struct string_fragment): New struct.
749 (struct edit_distance_traits<const string_fragment &>): New
751 (get_closest_sanitizer_option): New function.
752 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
754 2017-01-11 Jakub Jelinek <jakub@redhat.com>
756 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
758 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
759 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
760 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
761 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
762 for initial die_offset if dwarf_split_debug_info.
763 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
764 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
766 (output_skeleton_debug_sections): Formatting fix. Use
767 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
768 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
770 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
772 * config/arm/cortex-a53.md: Add bypasses for
774 (cortex_a53_r2f): Only use for transfers.
775 (cortex_a53_f2r): Likewise.
776 (cortex_a53_r2f_cvt): Add reservation for conversions.
777 (cortex_a53_f2r_cvt): Likewise.
779 2017-01-11 Tamar Christina <tamar.christina@arm.com>
781 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
782 to all inlined functions, change static to extern.
784 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
787 * config/arm/arm.c (legitimize_pic_address): Handle reference to
789 (arm_assemble_integer): Likewise.
791 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
793 * config.gcc: Use new awk script to check CPU, FPU and architecture
794 parameters for --with-... options.
795 * config/arm/parsecpu.awk: New file
796 * config/arm/arm-cpus.in: New file.
797 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
799 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
801 * config/arm/t-arm: Update dependency rules.
802 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
803 of processing .def files.
804 * config/arm/genopt.sh: Deleted.
805 * config/arm/gentune.sh: Deleted.
806 * config/arm/arm-cores.def: Deleted.
807 * config/arm/arm-arches.def: Deleted.
808 * config/arm/arm-fpus.def: Deleted.
809 * config/arm/arm-tune.md: Regenerated.
810 * config/arm/arm-tables.opt: Regenerated.
811 * config/arm/arm-cpu.h: New generated file.
812 * config/arm/arm-cpu-data.h: New generated file.
813 * config/arm/arm-cpu-cdata.h: New generated file.
815 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
818 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
820 (input_varpool_node): Unpack dynamically_initialized bit.
822 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
824 PR rtl-optimization/79032
825 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
826 the alignment of the adjusted memory reference against that of MODE,
827 instead of the alignment of the original memory reference.
829 2017-01-11 Martin Jambor <mjambor@suse.cz>
831 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
833 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
836 2017-01-11 Richard Biener <rguenther@suse.de>
838 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
839 set range/nonnull info for PHI results. Do not set it on
840 stmts marked for removal.
842 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
844 * expr.c (store_field): In the bitfield case, fetch the return value
845 from the registers before applying a single big-endian adjustment.
846 Always do a final load for a BLKmode value not larger than a word.
848 2017-01-10 David Malcolm <dmalcolm@redhat.com>
851 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
852 that we correctly handle column numbers greater than
853 LINE_MAP_MAX_COLUMN_NUMBER.
855 2017-01-10 Martin Sebor <msebor@redhat.com>
858 * gimple-ssa-sprintf.c (get_destination_size): Call
859 {init,fini}object_sizes.
860 * tree-object-size.c (addr_object_size): Adjust.
861 (pass_through_call): Adjust.
862 (pass_object_sizes::execute): Adjust.
863 * tree-object-size.h (fini_object_sizes): Declare.
865 2017-01-10 Martin Sebor <msebor@redhat.com>
867 PR tree-optimization/78775
868 * builtins.c (get_size_range): Move...
869 * calls.c: ...to here.
870 (alloc_max_size): Accept zero argument.
871 (operand_signed_p): Remove.
872 (maybe_warn_alloc_args_overflow): Call get_size_range.
873 * calls.h (get_size_range): Declare.
875 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
877 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
878 from TI's devices.csv file as of September 2016.
879 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
881 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
883 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
884 * doc/invoke.texi: Likewise.
885 * doc/md.texi: Likewise.
886 * doc/objc.texi: Likewise.
888 2017-01-10 Joshua Conner <joshconner@google.com>
890 * config/arm/fuchsia-elf.h: New file.
891 * config/fuchsia.h: New file.
892 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
893 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
895 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
897 2016-01-10 Richard Biener <rguenther@suse.de>
899 PR tree-optimization/79034
900 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
901 Propagate out degenerate PHIs in the joiner.
903 2017-01-10 Martin Liska <mliska@suse.cz>
905 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
906 (sort_congruence_classes_by_decl_uid): Likewise.
907 (sort_congruence_class_groups_by_decl_uid): Likewise.
908 (sem_item_optimizer::merge_classes): Sort class, groups in these
909 classes and members in the groups by DECL_UID of declarations.
910 This would make merge operations stable.
912 2017-01-10 Martin Liska <mliska@suse.cz>
914 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
915 usage of m_classes_vec.
916 (sem_item_optimizer::~sem_item_optimizer): Likewise.
917 (sem_item_optimizer::get_group_by_hash): Likewise.
918 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
919 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
920 (sem_item_optimizer::verify_classes): Likewise.
921 (sem_item_optimizer::process_cong_reduction): Likewise.
922 (sem_item_optimizer::dump_cong_classes): Likewise.
923 (sem_item_optimizer::merge_classes): Likewise.
924 * ipa-icf.h (congruence_class_hash): Rename from
925 congruence_class_group_hash. Remove declaration of m_classes_vec.
927 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
929 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
930 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
931 * config.gcc: Add avx512vpopcntdqintrin.h.
932 * config/i386/avx512vpopcntdqintrin.h: New.
933 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
934 * config/i386/i386-builtin-types.def: Add new types.
935 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
936 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
937 __builtin_ia32_vpopcountq_v8di_mask): New.
938 * config/i386/i386-c.c (ix86_target_macros_internal): Define
940 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
941 (PTA_AVX512VPOPCNTDQ): Define.
942 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
943 TARGET_AVX512VPOPCNTDQ_P): Define.
944 * config/i386/i386.opt: Add mavx512vpopcntdq.
945 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
946 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
948 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
951 * predict.def (PRED_CALL): Set to 67.
953 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
955 * expr.c (store_field): In the bitfield case, if the value comes from
956 a function call and is of an aggregate type returned in registers, do
957 not modify the field mode; extract the value in all cases if the mode
958 is BLKmode and the size is not larger than a word.
960 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
963 * config/i386/cpuid.h: Fix undefined behavior.
965 2017-01-04 Jeff Law <law@redhat.com>
967 PR tree-optimization/79007
968 PR tree-optimization/67955
969 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
970 conservative for pt.null when flag_non_call_exceptions is on.
972 2017-01-09 Jakub Jelinek <jakub@redhat.com>
976 * params.def (PARAM_INLINE_MIN_SPEEDUP,
977 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
978 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
980 * config/avr/avr.opt (maccumulate-args): Likewise.
981 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
982 * common.opt (freport-bug): Likewise.
983 * cif-code.def (CIF_FINAL_ERROR): Likewise.
984 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
985 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
987 * config/i386/i386.c (function_value_32): Likewise.
988 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
989 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
991 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
992 * common/config/msp430/msp430-common.c (msp430_handle_option):
994 * symtab.c (symtab_node::verify_base): Likewise.
995 * opts.c (set_debug_level): Likewise.
996 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
997 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
998 missing whitespace to translatable strings.
999 * config/avr/avr.md (bswapsi2): Fix typo in comment.
1000 * config/sh/superh.h: Likewise.
1001 * config/i386/xopintrin.h: Likewise.
1002 * config/i386/znver1.md: Likewise.
1003 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
1004 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
1005 * double-int.h (struct double_int): Likewise.
1006 * double-int.c (div_and_round_double): Likewise.
1007 * wide-int.cc: Likewise.
1008 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
1009 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
1010 * cfgcleanup.c (crossjumps_occured): Renamed to ...
1011 (crossjumps_occurred): ... this.
1012 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
1015 PR tree-optimization/78899
1016 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
1017 returning bool return struct loop *, NULL for failure and the new
1019 (versionable_outer_loop_p): Don't version outer loop if it has
1020 dont_vectorized bit set.
1021 (tree_if_conversion): When versioning outer loop, ensure
1022 tree_if_conversion is performed also on the inner loop of the
1023 non-vectorizable outer loop copy.
1024 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
1025 LOOP_VECTORIZED in inner loop of the scalar outer loop and
1026 prevent vectorization of it.
1027 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
1028 the outer loop vectorization of the non-scalar version is attempted
1029 before vectorization of the inner loop in scalar version. If
1030 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
1031 vectorization of its inner loop.
1032 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
1033 has 2 inner loops, rename also on edges from bb whose single pred
1034 is outer_loop->header. Fix typo in function comment.
1036 2017-01-09 Martin Sebor <msebor@redhat.com>
1039 * asan.c (asan_emit_stack_protection): Increase local buffer size
1040 to avoid snprintf truncation warning.
1042 2017-01-09 Andrew Pinski <apinski@cavium.com>
1044 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
1045 to reference thunderx2t99 for the tuning structure
1046 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
1048 (thunderx2t99_extra_costs): This.
1049 * config/aarch64/aarch64-tune.md: Regenerate.
1050 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
1051 (vulcan_addrcost_table): This.
1052 (vulcan_regmove_cost): Rename to ...
1053 (thunderx2t99_regmove_cost): This.
1054 (vulcan_vector_cost): Rename to ...
1055 (thunderx2t99_vector_cost): this.
1056 (vulcan_branch_cost): Rename to ...
1057 (thunderx2t99_branch_cost): This.
1058 (vulcan_tunings): Rename to ...
1059 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
1060 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
1062 2017-01-09 Martin Jambor <mjambor@suse.cz>
1066 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
1067 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
1068 (propagate_vr_accross_jump_function): Use the above function for all
1069 value range computations for pass-through jump functions and type
1070 converasion from explicit value range values.
1071 (ipcp_propagate_stage): Do not attempt to deduce types of formal
1072 parameters from TYPE_ARG_TYPES.
1073 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
1074 (ipa_write_node_info): Stream type of the actual argument.
1075 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
1077 2017-01-09 Martin Liska <mliska@suse.cz>
1080 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
1081 (lookup_compiler): Do not show error message with have_E.
1083 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1085 PR tree-optimization/78938
1086 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
1087 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
1088 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
1089 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
1092 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1094 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
1097 2017-01-09 Richard Biener <rguenther@suse.de>
1099 PR tree-optimization/78997
1100 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
1101 name condition properly.
1103 2017-01-09 Richard Biener <rguenther@suse.de>
1106 * dwarf2out.c (is_cxx): New overload with context.
1107 (is_naming_typedef_decl): Use it.
1109 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
1111 * invoke.texi (Option Summary): Correct spacing in option lists
1112 and add line breaks to fix over-long lines.
1114 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
1118 * extend.texi (Common Variable Attributes): Add xref to GCC
1119 Internals manual to explain mode attribute keywords.
1121 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
1124 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
1125 and Preprocessor Options.
1126 (Options for Linking): Document -pthread here....
1127 (RS/6000 and PowerPC Options): ...not here.
1128 (Solaris 2 Options): ...or here.
1129 * doc/cppopts.texi: Document -pthread.
1131 2017-01-08 Martin Sebor <msebor@redhat.com>
1134 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
1135 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
1136 New member functions.
1137 (format_directive): Used them.
1139 (pass_sprintf_length::handle_gimple_call): Same.
1140 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
1141 to avoid truncation for any argument.
1142 (extract_affine_mul): Same.
1143 * tree.c (get_file_function_name): Same.
1145 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1148 * predict.def (PRED_INDIR_CALL): Set to 86.
1150 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
1152 PR preprocessor/54124
1153 * doc/cppopts.texi: Reformat -d subtable to list the full name
1154 of the options. Add cross-reference to the docs for the general
1155 compiler -d options.
1156 * doc/invoke.texi (Developer Options): Add cross-reference to the
1157 preprocessor-specific -d option documentation.
1159 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
1161 PR preprocessor/13498
1162 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
1163 redudant material, and reflect new command-line options.
1164 (System Headers): Likewise.
1166 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
1168 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
1169 -isystem, and -idirafter. Copy-edit.
1170 * doc/cppopts.texi: Copy-edit. Remove contradiction about
1171 default for -ftrack-macro-expansion. Delete obsolete and
1172 badly-formatted implementation details about -fdebug-cpp output.
1173 * doc/cppwarnopts.texi: Copy-edit.
1175 2017-01-07 David Malcolm <dmalcolm@redhat.com>
1178 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1179 that the transition from a max line width >= 1<<10 to narrower
1180 lines works correctly.
1182 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
1184 * doc/options.texi (PerFunction): New.
1185 * opt-functions.awk (switch_flags): Map both Optimization and
1186 PerFunction to CL_OPTIMIZATION.
1187 * opth-gen.awk: Test for PerFunction flag along with
1189 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
1190 it only when the latter is present. Skip those that don't in
1191 the hash function generator.
1192 * common.opt (fvar-tracking): Mark as PerFunction instead of
1194 (fvar-tracking-assignments): Likewise.
1195 (fvar-tracking-assignments-toggle): Likewise.
1196 (fvar-tracking-uninit): Likewise.
1198 2017-01-07 Jakub Jelinek <jakub@redhat.com>
1200 PR translation/79018
1201 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
1204 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
1207 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
1208 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
1209 TARGET_LONG_JUMP_TABLE_OFFSETS.
1210 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
1211 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
1212 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
1213 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
1214 * config/m68k/m68k.md (tablejump expander): Likewise.
1215 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
1216 TARGET_LONG_JUMP_TABLE_OFFSETS.
1217 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
1218 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
1220 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1221 David Holsgrove <david.holsgrove@xilinx.com>
1223 * common/config/microblaze/microblaze-common.c
1224 (TARGET_EXCEPT_UNWIND_INFO): Remove.
1225 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
1227 * config/microblaze/microblaze.c (microblaze_must_save_register)
1228 (microblaze_expand_epilogue, microblaze_return_addr): Handle
1230 (microblaze_eh_return): New function.
1231 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
1232 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
1233 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
1234 * config/microblaze/microblaze.md (eh_return): New pattern.
1236 2017-01-06 Jakub Jelinek <jakub@redhat.com>
1238 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
1239 GCC_DIAGNOSTIC_STRINGIFY): Define.
1241 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
1243 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1245 * config/arm/arm.md (<mcrr>): New.
1247 * config/arm/arm.c (arm_arch5te): New.
1248 (arm_option_override): Set arm_arch5te.
1249 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
1251 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
1252 (arm_mcrr_qualifiers): ... this. New.
1253 (MRRC_QUALIFIERS): Define to...
1254 (arm_mrrc_qualifiers): ... this. New.
1255 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
1257 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
1258 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
1259 (MRRCI, mrrc, MRRC): New.
1260 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
1261 VUNSPEC_MRRC2): New.
1263 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1265 * config/arm/arm.md (<mcr>): New.
1267 * config/arm/arm.c (arm_coproc_builtin_available): Add
1268 support for mcr, mrc, mcr2 and mrc2.
1269 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
1270 (arm_mcr_qualifiers): ... this. New.
1271 (MRC_QUALIFIERS): Define to ...
1272 (arm_mrc_qualifiers): ... this. New.
1273 (MCR_QUALIFIERS): Define to ...
1274 (arm_mcr_qualifiers): ... this. New.
1275 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
1277 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
1278 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
1279 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
1282 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1284 * config/arm/arm.md (*ldc): New.
1288 * config/arm/arm.c (arm_coproc_builtin_available): Add
1289 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
1290 (arm_coproc_ldc_stc_legitimate_address): New.
1291 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
1292 'qualifier_const_pointer'.
1293 (LDC_QUALIFIERS): Define to...
1294 (arm_ldc_qualifiers): ... this. New.
1295 (STC_QUALIFIERS): Define to...
1296 (arm_stc_qualifiers): ... this. New.
1297 * config/arm/arm-protos.h
1298 (arm_coproc_ldc_stc_legitimate_address): New.
1299 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
1300 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
1301 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
1302 stc2, stcl, stc2l): New.
1303 * config/arm/constraints.md (Uz): New.
1304 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
1305 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
1306 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
1307 VUNSPEC_STC2L): New.
1309 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1311 * config/arm/arm.md (<cdp>): New.
1312 * config/arm/arm.c (neon_const_bounds): Rename this ...
1313 (arm_const_bounds): ... this.
1314 (arm_coproc_builtin_available): New.
1315 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
1316 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
1317 (CDP_QUALIFIERS): Define to...
1318 (arm_cdp_qualifiers): ... this. New.
1320 (arm_expand_builtin_args): Add case for 6 arguments.
1321 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
1322 (arm_const_bounds): ... this.
1323 (arm_coproc_builtin_available): New.
1324 * config/arm/arm_acle.h (__arm_cdp): New.
1326 * config/arm/arm_acle_builtins.def (cdp): New.
1328 * config/arm/iterators.md (CDPI,CDP,cdp): New.
1329 * config/arm/neon.md: Rename all 'neon_const_bounds' to
1331 * config/arm/types.md (coproc): New.
1332 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
1333 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
1334 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
1335 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
1337 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1339 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
1340 (UBINOP_QUALIFIERS): New.
1342 (acle_builtin_data): New. Change comment.
1343 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
1344 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
1345 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
1346 arm_acle_builtins.def.
1347 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
1348 (arm_init_acle_builtins): New.
1349 (CRC32_BUILTIN): Remove.
1350 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
1351 crc32cb, crc32ch and crc32cw.
1352 (arm_init_crc32_builtins): Remove.
1353 (arm_init_builtins): Use arm_init_acle_builtins rather
1354 than arm_init_crc32_builtins.
1355 (arm_expand_acle_builtin): New.
1356 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
1357 * config/arm/arm_acle_builtins.def: New.
1359 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1361 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
1362 (arm_builtin_datum): ... this.
1363 (arm_init_neon_builtin): Rename to ...
1364 (arm_init_builtin): ... this. Add a new parameters PREFIX
1365 and USE_SIG_IN_NAME.
1366 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
1367 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
1368 'arm_builtin_datum'.
1369 (arm_init_vfp_builtins): Likewise.
1370 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
1371 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
1372 (arm_expand_neon_args): Rename to ...
1373 (arm_expand_builtin_args): ... this. Rename builtin_arg
1374 enum values and differentiate between ARG_BUILTIN_MEMORY
1375 and ARG_BUILTIN_NEON_MEMORY.
1376 (arm_expand_neon_builtin_1): Rename to ...
1377 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
1378 values, arm_expand_builtin_args and add bool parameter NEON.
1379 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
1380 (arm_expand_vfp_builtin): Likewise.
1381 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
1383 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1386 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
1387 * predict.c (tree_estimate_probability_bb): Reverse direction of
1388 polymorphic call predictor.
1390 2017-01-06 David Malcolm <dmalcolm@redhat.com>
1392 * passes.c (execute_one_pass): Split out pass-skipping logic into...
1393 (determine_pass_name_match): ...this new function and...
1394 (should_skip_pass_p): ...this new function.
1396 2017-01-06 Nathan Sidwell <nathan@acm.org>
1398 * ipa-visibility.c (function_and_variable_visibility): Reformat
1399 comments and long lines. Remove extrneous if.
1400 * symtab.c (symtab_node::make_decl_local): Fix code format.
1401 (symtab_node::set_section_for_node): Fix comment typo.
1403 2017-01-06 Martin Liska <mliska@suse.cz>
1406 * lra-constraints.c: Rename invariant to lra_invariant.
1407 * predict.c (set_even_probabilities): Initialize e to NULL.
1409 2017-01-05 Martin Sebor <msebor@redhat.com>
1411 PR tree-optimization/78910
1412 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
1413 (format_integer): Correct off-by-one error in the handling
1414 of precision with negative numbers in signed conversions..
1416 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1418 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
1420 2017-01-05 Jakub Jelinek <jakub@redhat.com>
1422 PR tree-optimization/71016
1423 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
1424 factor_out_conditional_conversion. Formatting fix.
1425 (factor_out_conditional_conversion): Add cond_stmt argument.
1426 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
1427 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
1430 2017-01-05 David Malcolm <dmalcolm@redhat.com>
1432 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
1433 read-rtl-function.o, and selftest-rtl.o.
1434 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
1435 (selftest::aarch64_test_loading_full_dump): New function.
1436 (selftest::aarch64_run_selftests): New function.
1437 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
1438 selftest::aarch64_run_selftests.
1439 * config/i386/i386.c
1440 (selftest::ix86_test_loading_dump_fragment_1): New function.
1441 (selftest::ix86_test_loading_call_insn): New function.
1442 (selftest::ix86_test_loading_full_dump): New function.
1443 (selftest::ix86_test_loading_unspec): New function.
1444 (selftest::ix86_run_selftests): Call the new functions.
1445 * emit-rtl.c (maybe_set_max_label_num): New function.
1446 * emit-rtl.h (maybe_set_max_label_num): New decl.
1447 * function.c (instantiate_decls): Guard call to
1448 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
1449 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
1451 * gensupport.c (gen_reader::gen_reader): Pass "false"
1452 for new "compact" param of rtx_reader.
1453 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
1454 rather than an empty string for NULL strings.
1455 * read-md.c: Potentially include config.h rather than bconfig.h.
1456 Wrap include of errors.h with #ifdef GENERATOR_FILE.
1457 (have_error): New global, copied from errors.c.
1458 (md_reader::read_name): Rename to...
1459 (md_reader::read_name_1): ...this, adding "out_loc" param,
1460 and converting "missing name or number" to returning false, rather
1462 (md_reader::read_name): Reimplement in terms of read_name_1.
1463 (md_reader::read_name_or_nil): New function.
1464 (md_reader::read_string): Handle "(nil)" by returning NULL.
1465 (md_reader::md_reader): Add new param "compact".
1466 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
1467 (md_reader::read_file): New method.
1468 * read-md.h (md_reader::md_reader): Add new param "compact".
1469 (md_reader::read_file): New method.
1470 (md_reader::is_compact): New accessor.
1471 (md_reader::read_name): Convert return type from void to file_location.
1472 (md_reader::read_name_or_nil): New decl.
1473 (md_reader::read_name_1): New decl.
1474 (md_reader::m_compact): New field.
1475 (noop_reader::noop_reader): Pass "false" for new "compact" param
1477 (rtx_reader::rtx_reader): Add new "compact" param.
1478 (rtx_reader::read_rtx_operand): Make virtual and convert return
1479 type from void to rtx.
1480 (rtx_reader::read_until): New decl.
1481 (rtx_reader::handle_any_trailing_information): New virtual function.
1482 (rtx_reader::postprocess): New virtual function.
1483 (rtx_reader::finalize_string): New virtual function.
1484 (rtx_reader::m_in_call_function_usage): New field.
1485 (rtx_reader::m_reuse_rtx_by_id): New field.
1486 * read-rtl-function.c: New file.
1487 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
1488 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
1489 (selftest::verify_three_block_rtl_cfg): New decl.
1490 * read-rtl-function.h: New file.
1491 * read-rtl.c: Potentially include config.h rather than bconfig.h.
1492 For host, include function.h, memmodel.h, and emit-rtl.h.
1493 (one_time_initialization): New function.
1494 (struct compact_insn_name): New struct.
1495 (compact_insn_names): New array.
1496 (find_code): Handle insn codes in compact dumps.
1497 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
1498 (bind_subst_iter_and_attr): Likewise.
1499 (add_condition_to_string): Likewise.
1500 (add_condition_to_rtx): Likewise.
1501 (apply_attribute_uses): Likewise.
1502 (add_current_iterators): Likewise.
1503 (apply_iterators): Likewise.
1504 (initialize_iterators): Guard usage of apply_subst_iterator with
1505 #ifdef GENERATOR_FILE.
1506 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
1507 (md_reader::read_mapping): Likewise.
1508 (add_define_attr_for_define_subst): Likewise.
1509 (add_define_subst_attr): Likewise.
1510 (read_subst_mapping): Likewise.
1511 (check_code_iterator): Likewise.
1512 (rtx_reader::read_rtx): Likewise. Move one-time initialization
1514 (one_time_initialization): New function.
1515 (rtx_reader::read_until): New method.
1516 (read_flags): New function.
1517 (parse_reg_note_name): New function.
1518 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
1519 Handle reuse_rtx ids.
1520 Wrap iterator lookup within #ifdef GENERATOR_FILE.
1521 Add parsing support for RTL dumps, mirroring the special-cases in
1522 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
1523 values, and calling handle_any_trailing_information.
1524 (rtx_reader::read_rtx_operand): Convert return type from void
1525 to rtx, returning return_rtx. Handle case 'e'. Call
1526 finalize_string on XSTR and XTMPL fields.
1527 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
1528 "(nil)" values were omitted. Call the postprocess vfunc on the
1530 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
1531 class ctor. Initialize m_in_call_function_usage. Call
1532 one_time_initialization.
1533 * rtl-tests.c (selftest::test_uncond_jump): Call
1534 set_new_first_and_last_insn.
1535 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
1536 * selftest-rtl.c: New file.
1537 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
1538 (selftest::get_insn_by_uid): New decl.
1539 * selftest-run-tests.c (selftest::run_tests): Call
1540 read_rtl_function_c_tests.
1541 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
1542 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
1545 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
1547 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
1548 operands in a special way. Assert that pos+len <= mode precision.
1550 2017-01-05 Jakub Jelinek <jakub@redhat.com>
1552 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
1553 3 argument Alias with unlimited for the negative form.
1554 (fno-vect-cost-model): Removed.
1556 2017-01-05 Martin Liska <mliska@suse.cz>
1558 * hsa-gen.c (gen_hsa_divmod): New function.
1559 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
1561 2017-01-05 Martin Liska <mliska@suse.cz>
1564 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
1567 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1569 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
1570 small constant length operands.
1572 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1574 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
1575 between loop iterations.
1577 2017-01-05 Martin Liska <mliska@suse.cz>
1580 * gimplify.c (gimplify_decl_expr): Compare to
1581 asan_poisoned_variables instread of checking flags.
1582 (gimplify_target_expr): Likewise.
1583 (gimplify_expr): Likewise.
1584 (gimplify_function_tree): Conditionally initialize
1585 asan_poisoned_variables.
1587 2017-01-04 Jeff Law <law@redhat.com>
1589 PR tree-optimizatin/78812
1590 * rtl.h (contains_mem_rtx_p): Prototype.
1591 * ifcvt.c (containts_mem_rtx_p): Move from here to...
1592 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
1593 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
1594 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
1595 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
1597 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1599 * input.c (assert_char_at_range): Default-initialize actual_range.
1601 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1603 * df-scan.c (df_ref_create_structure): Make regno unsigned,
1604 to match the caller.
1606 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1608 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
1609 insns after final jump in test to emit dummy move.
1611 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1613 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
1614 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
1616 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1618 * multiple_target.c (create_dispatcher_calls): Init e_next.
1619 * tree-ssa-loop-split.c (split_loop): Init border.
1620 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
1623 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1628 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
1629 (altivec_register_operand): Do not return true if the operand
1630 contains a SUBREG mixing SImode and SFmode.
1631 (vsx_register_operand): Likewise.
1632 (vsx_reg_sfsubreg_ok): New predicate.
1633 (vfloat_operand): Do not return true if the operand contains a
1634 SUBREG mixing SImode and SFmode.
1635 (vint_operand): Likewise.
1636 (vlogical_operand): Likewise.
1637 (gpc_reg_operand): Likewise.
1638 (int_reg_operand): Likewise.
1639 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
1640 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
1641 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
1643 (rs6000_emit_move_si_sf_subreg): New helper function.
1644 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
1645 fixup SUBREGs involving SImode and SFmode.
1646 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
1647 numbers for the new peephole2 optimization.
1648 (peephole2 for SFmode unions): New peephole2 to optimize cases in
1649 the GLIBC math library that do AND/IOR/XOR operations on single
1650 precision floating point.
1651 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
1652 target macros to say whether we need to avoid SUBREGs mixing
1654 (TARGET_ALLOW_SF_SUBREG): Likewise.
1655 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
1656 (UNSPEC_SI_FROM_SF): Likewise.
1657 (iorxor): Change spacing.
1658 (and_ior_xor): New iterator for AND, IOR, and XOR.
1659 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
1660 (movdi_from_sf_zero_ext): Likewise.
1661 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
1662 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
1663 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
1664 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
1665 (fms<mode>4): Likewise.
1666 (fnma<mode>4): Likewise.
1667 (fnms<mode>4): Likewise.
1668 (nfma<mode>4): Likewise.
1669 (nfms<mode>4): Likewise.
1671 2017-01-04 Marek Polacek <polacek@redhat.com>
1674 * doc/invoke.texi: Document -Wpointer-compare.
1676 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1678 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
1681 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
1682 descriptions for -gdwarf-5 and emit them as uleb128 instead of
1685 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
1688 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
1689 documentation of the powerpc_popcntb_ok attribute.
1690 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1691 code to issue warning messages if a requested CPU configuration is
1692 not supported by the binary (assembler and loader) toolchain.
1693 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
1694 made to define a built-in function that has been disabled.
1695 (paired_init_builtins): Add assertion to prevent ICE if attempt is
1696 made to define a built-in function that has been disabled.
1697 (altivec_init_builtins): Add comment explaining why definition
1698 of the DST built-in functions is not preceded by an assertion
1699 check. Add assertions to prevent ICE if attempts are made to
1700 define an altivec predicate or an abs* built-in function that has
1702 (htm_init_builtins): Add comment explaining why definition of the
1703 htm built-in functions is not preceded by an assertion check.
1705 2017-01-04 Jeff Law <law@redhat.com>
1707 PR tree-optimizatin/67955
1708 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
1709 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
1710 the points-to solution does not include pt_null. Use DECL_PT_UID
1713 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
1715 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
1716 Use gen_int_mode instead of gen_lopwart for const_int operands.
1718 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1720 PR tree-optimization/71563
1721 * match.pd: Simplify X << Y into X if Y is known to be 0 or
1722 out of range value - has low bits known to be zero.
1724 2017-01-04 Alan Modra <amodra@gmail.com>
1726 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
1727 * configure: Regenerate.
1728 * config.in: Regenerate.
1730 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1733 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
1734 a substring of the message, but strcmp with the whole message. Ifdef
1735 ENABLE_NLS, translate the message first using dgettext.
1737 2017-01-03 Jeff Law <law@redhat.com>
1739 PR tree-optimizatin/78856
1740 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
1741 (mark_threaded_blocks): Remove code to truncate thread paths that
1742 cross multiple loop headers. Instead invalidate the cached loop
1743 iteration information and handle case of a thread path walking
1744 into an irreducible region.
1746 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1749 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
1750 assertions. Add support for doing the signbit if the IEEE 128-bit
1751 floating point value is in a GPR.
1752 * config/rs6000/rs6000.md (Fsignbit): Delete.
1753 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
1754 Update the length attribute if the value is in a GPR.
1755 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
1756 the sign or zero extension instruction, since the value is always 0/1.
1757 (signbit<mode>2_dm2): Delete using <Fsignbit>.
1760 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
1761 extracting SImode to a GPR register so that we can generate a
1762 store, limit the vector to be in a traditional Altivec register
1763 for the vextuwrx instruction.
1765 2017-01-03 Ian Lance Taylor <iant@google.com>
1767 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
1769 2017-01-03 Martin Sebor <msebor@redhat.com>
1771 PR tree-optimization/78696
1772 * gimple-ssa-sprintf.c (format_floating): Correct handling of
1773 precision. Use MPFR for %f for greater fidelity. Correct handling
1775 (pass_sprintf_length::compute_format_length): Set width and precision
1776 specified by asrerisk to void_node for vararg functions.
1777 (try_substitute_return_value): Adjust dump output.
1779 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
1781 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
1783 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
1785 * doc/invoke.texi (SPARC options): Document -mlra as the default.
1786 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
1787 -mlra/-mno-lra was passed to the compiler.
1789 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
1791 PR rtl-optimization/65618
1792 * emit-rtl.c (try_split): Move initialization of "before" and
1793 "after" to just before the call to emit_insn_after_setloc.
1795 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1797 * doc/md.texi (Standard Names): Remove reference to Java frontend.
1799 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
1801 * dwarf2out.c (gen_enumeration_type_die): When
1802 -gno-strict-dwarf, add a DW_AT_encoding attribute.
1804 2017-01-03 Jakub Jelinek <jakub@redhat.com>
1806 PR tree-optimization/78965
1807 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1808 Change first argument from const call_info & to call_info &. For %n
1809 set info.nowrite to false.
1812 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
1813 possibly throwing calls.
1815 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
1816 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
1817 and fns handling, rather than in a separate case SSA_NAME.
1819 2017-01-02 Jeff Law <law@redhat.com>
1821 * config/darwin-driver.c (darwin_driver_init): Const-correctness
1822 fixes for first_period and second_period variables.
1824 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
1827 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
1828 (*insvqi_1): New insn pattern.
1829 (*insvqi_1_mem_rex64): Ditto.
1831 (*insvqi_3): Rename from *insvqi.
1833 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
1835 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1837 * doc/cfg.texi (Edges): Remove reference to Java.
1838 (Maintaining the CFG): Ditto.
1840 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1843 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
1844 transparent aliases.
1846 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1849 * predict.def (PRED_CALL): Update hitrate.
1850 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
1851 * predict.c (tree_estimate_probability_bb): Split CALL predictor
1852 into direct/indirect/polymorphic variants.
1854 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1856 Update copyright years.
1858 * gcc.c (process_command): Update copyright notice dates.
1859 * gcov-dump.c (print_version): Ditto.
1860 * gcov.c (print_version): Ditto.
1861 * gcov-tool.c (print_version): Ditto.
1862 * gengtype.c (create_file): Ditto.
1863 * doc/cpp.texi: Bump @copying's copyright year.
1864 * doc/cppinternals.texi: Ditto.
1865 * doc/gcc.texi: Ditto.
1866 * doc/gccint.texi: Ditto.
1867 * doc/gcov.texi: Ditto.
1868 * doc/install.texi: Ditto.
1869 * doc/invoke.texi: Ditto.
1871 Copyright (C) 2017 Free Software Foundation, Inc.
1873 Copying and distribution of this file, with or without modification,
1874 are permitted in any medium without royalty provided the copyright
1875 notice and this notice are preserved.