[ARM] PR target/79911: Invalid vec_select arguments
[official-gcc.git] / gcc / ChangeLog
blobc001ae5a5e0195d57f4f34599fc11366f2921e07
1 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         PR target/79911
4         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
5         Rename to...
6         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
7         between vec_select and vector argument.
8         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
9         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
10         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
11         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
12         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
13         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
15 2017-03-13  Richard Biener  <rguenther@suse.de>
17         PR other/79991
18         * params.def (vect-max-peeling-for-alignment): Fix typo.
20 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
22         * doc/install.texi (Specific) <mips-*-*>: Remove description of
23         issue that only occurred with binutils below 2.18.
24         
25 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
27         * doc/install.texi (Specific) <cris-axis-elf>: No longer
28         refer to binutils 2.11/2.12 minimum.
30 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
32         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
33         ftp.kernel.org and simplify binutils requirement.
35 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
37         * doc/invoke.texi (Warning Options): Fix spelling of link-time
38         optimization.
39         (Optimize Options): Ditto.  Also remove redundancy.
41 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
43         PR translation/79848
44         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
45         "%qs".
46         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
47         to G_ to avoid double translation.
49 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
51         PR translation/79923
52         * auto-profile.c (get_combined_location): Convert leading
53         character of diagnostics to lower case and remove trailing period.
54         (read_profile): Likewise for various diagnostics.
55         * config/arm/arm.c (arm_option_override): Remove trailing period
56         from various diagnostics.
57         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
58         (msp430_expand_delay_cycles): Likewise.
60 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
62         PR target/79925
63         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
64         full command-line argument, rather than just "str".
65         (aarch64_validate_march): Likewise.
66         (aarch64_validate_mtune): Likewise.
68 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
70         PR rtl-optimization/78911
71         * lra-assigns.c (must_not_spill_p): New function.
72         (spill_for): Use it.
74 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
76         PR tree-optimization/79981
77         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
78         ATOMIC_COMPARE_EXCHANGE ifn result.
79         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
80         IFN_ATOMIC_COMPARE_EXCHANGE.
82 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
84         PR driver/79875
85         * opts.c (parse_sanitizer_options): Add missing question mark to
86         "did you mean" message.
88 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
90         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
91         built-in.
92         (VMULEUH_UNS): Likewise.
93         (VMULOUB_UNS): Likewise.
94         (VMULOUH_UNS): Likewise.
95         * config/rs6000/rs6000.c (builtin_function_type): Remove
96         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
98 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
100         PR bootstrap/79952
101         * read-rtl-function.c (function_reader::read_rtx_operand): Update
102         x with result of extra_parsing_for_operand_code_0.
103         (function_reader::extra_parsing_for_operand_code_0): Convert
104         return type from void to rtx, returning x.  When reading
105         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
106         larger size containing struct block_symbol.
108 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
110         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
111         -mfloat128-hardware without -m64.
113 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
115         PR target/79941
116         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
117         entries to the case statement that marks unsigned arguments to
118         overloaded functions.
120 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
122         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
123         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
125 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
127         PR target/79907
128         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
129         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
131 2017-03-10  Martin Liska  <mliska@suse.cz>
133         PR target/65705
134         PR target/69804
135         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
136         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
137         FIELD != NULL.
139 2017-03-10  Olivier Hainque  <hainque@adacore.com>
141         * tree-switch-conversion (array_value_type): Start by resetting
142         candidate type to it's main variant.
144 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
146         PR rtl-optimization/79909
147         * combine.c (try_combine): Use simplify_replace_rtx on individual
148         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
149         of the whole CALL_INSN_FUNCTION_USAGE.
151         PR tree-optimization/79972
152         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
153         get_range_info on SSA_NAMEs.  Formatting fixes.
155 2017-03-10  Richard Biener  <rguenther@suse.de>
156             Jakub Jelinek  <jakub@redhat.com>
158         PR tree-optimization/77975
159         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
160         edge to be constant.
161         (get_val_for): For constant x return it.  Formatting fix.
162         (loop_niter_by_eval): Avoid pointless looping if the next iteration
163         would use the same bases as the current one.
165 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
167         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
168         instead of vec_select for V1TImode.
169         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
170         longer needed.
171         (VSX_LE_128): Add V1TI to this mode iterator.
172         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
173         (*vsx_le_perm_store_<mode>): Likewise.
174         (pre-reload splitter for VSX stores): Likewise.
175         (post-reload splitter for VSX stores): Likewise.
176         (*vsx_xxpermdi2_le_<mode>): Likewise.
177         (*vsx_lxvd2x2_le_<mode>): Likewise.
178         (*vsx_stxvd2x2_le_<mode>): Likewise.
180 2017-03-09  Michael Eager  <eager@eagercon.com>
182         Correct failures with --enable-checking=yes,rtl.
184         * config/microblaze/microblaze.c (microblaze_expand_shift):
185         Replace GET_CODE test with CONST_INT_P and INTVAL test with
186         test for const0_rtx.
187         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
188         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
190 2017-03-09  Richard Biener  <rguenther@suse.de>
192         PR tree-optimization/79977
193         * graphite-scop-detection.c (scop_detection::merge_sese):
194         Handle the case of extra exits to blocks dominating the entry.
196 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
198         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
199         Document rdynamic.
201 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
203         PR rtl-optimization/79949
204         * lra-constraints.c (process_alt_operands): Check memory when
205         trying to predict a cycle.  Print about the overall increase.
207 2017-03-09  Richard Biener  <rguenther@suse.de>
209         PR middle-end/79971
210         * gimple-expr.c (useless_type_conversion_p): Preserve
211         TYPE_SATURATING for fixed-point types.
213 2017-03-09  Richard Biener  <rguenther@suse.de>
215         PR ipa/79970
216         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
217         alignment of BLKmode params.
219 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
221         PR target/79913
222         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
223         (VALL_NO_V2Q): Likewise.
224         (VDQF_DF): Delete.
225         * config/aarch64/aarch64-simd.md
226         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
227         iterator.
228         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
229         VALL_NO_V2Q mode iterator.
230         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
232 2017-03-09  Martin Liska  <mliska@suse.cz>
234         PR tree-optimization/79631
235         * tree-chkp-opt.c (chkp_is_constant_addr): Call
236         tree_int_cst_sign_bit just for INTEGER constants.
238 2017-03-09  Martin Liska  <mliska@suse.cz>
240         PR target/65705
241         PR target/69804
242         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
243         sanitizers.
245 2017-03-09  Marek Polacek  <polacek@redhat.com>
247         PR c++/79672
248         * tree.c (inchash::add_expr): Handle TREE_VEC.
250 2017-03-09  Martin Liska  <mliska@suse.cz>
252         PR ipa/79764
253         (chkp_narrow_size_and_offset): New function.
254         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
255         (void chkp_parse_bit_field_ref): New function.
256         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
257         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
259 2017-03-09  Martin Liska  <mliska@suse.cz>
261         PR ipa/79761
262         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
263         (chkp_find_bounds_1): Remove gcc_unreachable.
265 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
267         PR sanitizer/79944
268         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
269         BUILT_IN_SYNC*, determine the access type from the size suffix and
270         always build a MEM_REF with that type.  Handle forgotten
271         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
273         PR target/79932
274         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
275         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
276         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
277         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
278         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
279         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
280         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
281         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
282         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
283         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
284         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
285         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
286         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
287         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
288         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
289         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
290         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
291         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
292         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
293         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
294         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
295         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
296         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
297         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
298         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
299         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
300         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
301         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
302         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
303         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
304         definitions outside of __OPTIMIZE__ guarded section.
306         PR target/79932
307         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
308         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
309         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
310         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
311         guarded section.
313 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
315         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
316         ("vfenez<mode>"): Add missing constraints.
318 2017-03-08  Martin Sebor  <msebor@redhat.com>
320         PR target/79928
321         * config/nds32/nds32.c (nds32_option_override): 
323 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
325         PR c/79940
326         * gimplify.c (gimplify_omp_for): Replace index var in outer
327         taskloop statement with an artificial variable and add
328         OMP_CLAUSE_PRIVATE clause for it.
330 2017-03-08  Richard Biener  <rguenther@suse.de>
332         PR tree-optimization/79955
333         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
334         for accesses that are completely outside of the variable.
336 2017-03-08  Andrew Haley  <aph@redhat.com>
338         PR tree-optimization/79943
339         * tree-ssa-loop-split.c (compute_new_first_bound): When
340         calculating the new upper bound, (END-BEG) should be added, not
341         subtracted.
343 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
345         * config/avr/avr.md (setmemhi): Make sure match_dup
346         operand number comes before match_scratch.
348 2017-03-08  Richard Biener  <rguenther@suse.de>
350         PR tree-optimization/79920
351         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
352         with ncopies == 1 to ...
353         (vect_transform_slp_perm_load): ... here.  Properly compute
354         all element loads by iterating VF times over the group.  Do
355         not handle ncopies (computed in a broken way) in
356         vect_create_mask_and_perm.
358 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
360         PR sanitizer/79904
361         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
362         is a uniform vector, use uniform_vector_p return value instead of
363         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
365 2017-03-07  Marek Polacek  <polacek@redhat.com>
367         PR middle-end/79809
368         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
369         (alloca_call_type): Likewise.
371 2017-03-07  Martin Liska  <mliska@suse.cz>
373         * gcov.c (process_args): Put comment to correct location.
375 2017-03-07  Martin Liska  <mliska@suse.cz>
377         PR middle-end/68270
378         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
379         Use array_at_struct_end_p instead of DECL_CHAIN (field).
380         (chkp_narrow_bounds_for_field): Likewise.
381         (chkp_parse_array_and_component_ref): Pass one more argument to
382         call.
384 2017-03-07  Richard Biener  <rguenther@suse.de>
386         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
387         preheaders.
389 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
391         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
392         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
394 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
396         PR c/79855
397         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
398         to end of description.
399         (PARAM_MAX_STORES_TO_MERGE): Likewise.
401 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
403         PR rtl-optimization/79901
404         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
405         ...
406         (*avx512f_<code><mode>3<mask_name>): ... this.
407         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
408         iterator instead of VI8_AVX2_AVX512BW.
410         PR rtl-optimization/79901
411         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
412         min/max expander, expand it using expand_vec_cond_expr.
414         PR sanitizer/79897
415         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
416         temporary.
418 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
420         PR c++/79821
421         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
422         to void * for PCH reasons.
423         * dwarf2out.c (output_loc_operands, output_die): Cast
424         v.val_vec.array to unsigned char *.
426 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
428         PR target/77850
429         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
430         vector types.
432 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
434         PR rtl-optimization/79571
435         * lra-constraints.c (process_alt_operands): Calculate static
436         reject and subtract it from overall when only addresses will be
437         reloaded.
439 2017-03-06  Julia Koval  <julia.koval@intel.com>
441         PR target/79793
442         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
443         incoming stack boundary to 128 for 64-bit targets.
445 2017-03-06  Richard Biener  <rguenther@suse.de>
447         PR tree-optimization/79894
448         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
449         to NULL after folding it.
451 2017-03-06  Richard Biener  <rguenther@suse.de>
453         PR tree-optimization/79824
454         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
455         check disabling peeling for gaps.
457 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
459         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
460         attributes): Document gettimeofday.
462 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
464         * config/s390/s390.c (s390_option_override_internal): Set
465         PARAM_MIN_VECT_LOOP_BOUND
467 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
469         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
470         * config/s390/s390.md: Likewise.
472 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
474         PR target/79812
475         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
476         (<avx2_avx512>_perm<mode>): Rename to ...
477         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
478         of VI8F_256_512.
479         (<avx512>_perm<mode>_mask): Rename to ...
480         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
481         of VI8F_256_512.
482         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
483         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
484         instead of VI8F_256_512.
485         (avx512f_perm<mode>): New define_expand.
486         (avx512f_perm<mode>_mask): Likewise.
487         (avx512f_perm<mode>_1<mask_name>): New define_insn.
488         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
490 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
492         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
493         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
494         if_then_else.
495         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
497 2017-03-06  Martin Liska  <mliska@suse.cz>
499         PR sanitize/79783
500         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
501         when having a SSA NAME w/o VAR_DECL assigned to it.
503 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
505         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
506         msa_dpsub_<su>_d): Fix MODE for vec_select.
508 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
510         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
511         argument.
512         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
514 2017-03-06  Richard Biener  <rguenther@suse.de>
516         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
517         * plugin.c (register_plugin_info): Likewise.
518         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
520 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
522         * config/i386/sse.md (sse_storehps, sse_storelps,
523         avx_<castmode><avxsizesuffix>_<castmode>,
524         avx512f_<castmode><avxsizesuffix>_<castmode>,
525         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
526         in condition that at least one operand is not a MEM.
528 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
530         PR middle-end/79805
531         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
532         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
533         ECF_NOTHROW.
534         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
535         gimple_call_nothrow_p flag based on whether original builtin can throw.
536         If it can, emit following stmts on the fallthrough edge.
537         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
538         don't create new bb if inserting just debug stmts on the edge, try to
539         insert them on the fallthru bb or just reset debug stmts.
541 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
543         PR target/43763
544         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
545         restore recog_data (including the operand rtxes inside it) around
546         the call to get_insn_template.
548 2017-03-03  Martin Sebor  <msebor@redhat.com>
550         PR tree-optimization/79699
551         * context.c (context::~context): Free MPFR caches to avoid
552         a memory leak on program exit.
554 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
556         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
557         Use wide_int::ulow () instead of .elt (0).
559 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
561         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
562         (*pushxf): Limit oF constraint to 32bit targets and add oC
563         constraint for 64bit targets.
564         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
565         (*pushdf): Change rmF constraint to rmC.
567 2017-03-03  Martin Liska  <mliska@suse.cz>
569         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
570         Remove unused variable.
572 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
574         PR target/79807
575         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
576         is a memory operand, increase num_memory.
577         (ix86_expand_args_builtin): Likewise.
579 2017-03-03  Jan Hubicka  <jh@suse.cz>
581         PR lto/79760
582         * ipa-devirt.c (maybe_record_node): Properly handle
583         __cxa_pure_virtual visibility.
585 2017-03-03  Martin Liska  <mliska@suse.cz>
587         PR tree-optimization/79803
588         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
589         assert.
590         (pass_loop_prefetch::execute): Disabled optimization if an
591         assumption about L1 cache size is not met.
593 2017-03-03  Martin Liska  <mliska@suse.cz>
595         PR rtl-optimization/79574
596         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
597         (hash_scan_set): Likewise.
598         (dump_hash_table): Likewise.
599         (hoist_code): Likewise.
601 2017-03-03  Richard Biener  <rguenther@suse.de>
603         * fixed-value.c (fixed_from_string): Restore use of elt (1)
604         in place of uhigh ().
605         (fixed_convert_from_real): Likewise.
607 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
609         PR target/79514
610         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
612 2017-03-03  Richard Biener  <rguenther@suse.de>
614         PR middle-end/79818
615         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
616         TYPE_OVERFLOW_UNDEFINED check.
618 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
620         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
621         numbers.
622         (vector_ae_<mode>_p): Likewise.
623         (vector_nez_<mode>_p): Likewise.
624         (vector_ne_v2di_p): Likewise.
625         (vector_ae_v2di_p): Likewise.
626         (vector_ne_<mode>_p): Likewise.
627         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
628         numbers.
629         (vsx_tsqrt<mode>2_fe): Likewise.
631 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
633         PR target/79514
634         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
636 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
638         PR rtl-optimization/79780
639         * cprop.c (one_cprop_pass): When second and further conditional trap
640         in a single basic block is turned into an unconditional trap, turn it
641         into a deleted note to avoid RTL verification failures.
643 2017-03-02  Richard Biener  <rguenther@suse.de>
645         * fold-const.c (const_binop): Use ulow () instead of elt (0).
647 2017-03-02  Richard Biener  <rguenther@suse.de>
649         PR tree-optimization/79345
650         PR c++/42000
651         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
652         param and abort the walk, returning -1 if it is hit.
653         (walk_aliased_vdefs): Take a limit param and pass it on.
654         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
655         defaulting to 0 and return a signed int.
656         * tree-ssa-uninit.c (struct check_defs_data): New struct.
657         (check_defs): New helper.
658         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
659         about uninitialized memory.
660         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
661         bogus uninitialized warning.
662         (fixed_convert_from_real): Likewise.
664 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
666         PR tree-optimization/66768
667         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
668         iv_use if base object can't be determined.
670 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
672         PR tree-optimization/79345
673         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
674         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
675         (get_pattern_stats): Initialize it.
676         * genemit.c (gen_expand): Verify match_scratch numbers come after
677         match_operand/match_dup numbers.
678         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
679         match_scratch numbers.
680         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
681         Likewise.
682         * config/s390/s390.md (trunctdsd2): Likewise.
684 2017-03-02  Richard Biener  <rguenther@suse.de>
686         * wide-int.h (wide_int_storage::operator=): Implement in terms
687         of wi::copy.
689 2017-03-02  Richard Biener  <rguenther@suse.de>
691         PR tree-optimization/79777
692         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
693         the to insert expression to sth existing.
695 2017-03-01  Martin Sebor  <msebor@redhat.com>
697         PR middle-end/79692
698         * gimple-ssa-sprintf.c
699         (directive::known_width_and_precision): New function.
700         (format_integer): Use it.
701         (get_mpfr_format_length): Consider the full range of precision
702         when computing %g output with the # flag.  Set the likely byte
703         count to 3 rather than 1 when precision is indeterminate.
704         (format_floating): Correct the lower bound of precision.
706 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
708         * doc/invoke.texi: Document default code model for 64-bit Linux.
710 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
712         PR target/79752
713         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
714         udiv rather than div since input pattern is unsigned.
716 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
718         * config/i386/i386.c (print_reg): Warn for values of
719         unsupported size in integer register.
721 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
723         PR target/79439
724         * config/rs6000/predicates.md (current_file_function_operand): Do
725         not allow self calls to be local if the function is replaceable.
727 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
729         PR target/79395
730         * config/rs6000/altivec.h (vec_ctz and others): Change the
731         preprocessor macro that controls conditional compilation from
732         _ARCH_PWR9 to __POWER9_VECTOR__.
733         (vec_all_ne): Change parameterization of __altivec_scalar_pred
734         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
735         control (instead of _ARCH_PWR9 control) so that template
736         definition uses power9-specific function.
737         (vec_any_eq): Likewise.
738         (vec_all_ne): Change macro definition to use a power9-specific
739         expansion under #ifdef __POWER9_VECTOR__ control (instead of
740         _ARCH_PWR9 control).
741         (vec_any_eq) Likewise.
742         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
743         expansion for CMPNEF to remove support for xvcmpnesp instruction.
744         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
745         support for xvcmpnedp instruction.
746         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
747         macro expansion so that Power9 implementation of vec_all_ne does
748         not use the AltiVec predicate framework.
749         (VCMPNEH_P): Likewise.
750         (VCMPNEW_P): Likewise.
751         (VCMPNED_P): Likewise.
752         (VCMPNEFP_P): Likewise.
753         (VCMPNEDP_P): Likewise.
754         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
755         implementation of vec_any_eq to not use AltiVec predicate
756         framework.
757         (VCMPAEH_P): Likewise.
758         (VCMPAEW_P): Likewise.
759         (VCMPAED_P): Likewise.
760         (VCMPAEFP_P): Likewise.
761         (VCMPAEDP_P): Likewise.
762         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
763         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
764         not use the AltiVec predicate framework.
765         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
766         of vec_any_eq to not use AltiVec predicate framework.
767         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
768         support for predefined __POWER9_VECTOR__ macro to indicate that
769         Power9 instruction selection is enabled.
770         (altivec_overloaded_builtins): Remove extraneous
771         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
772         function argument types RS6000_BTI_bool_V16QI and
773         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
774         entry for overloaded function argument types RS6000_BTI_bool_V4SI
775         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
776         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
777         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
778         Power9 for implementations of vec_cmpne.  Change the signature for
779         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
780         (representing vec_all_ne) to remove the previously described first
781         argument of type RS6000_BTI_INTSI, as this was an artifact of
782         reliance on the AltiVec predicate framework, which is no longer
783         used in the implementation of these functions.  Add
784         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
785         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
786         since, unlike the AltiVec predicate framework implementation, we
787         do not share function descriptors between vec_alle and vec_anyeq.
788         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
789         set of modes that receive special treatment even when
790         TARGET_P9_VECTOR is true.  The special treatment emits code that
791         does not depend on Power9 instructions.
792         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
793         define_expand to not rely on AltiVec predicate framework.
794         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
795         function.
796         (vector_ne_v2di_p): Change this define_expand to not rely on
797         AltiVec predicate framework.
798         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
799         function.
800         (vector_ne_<mode>_p): Change this define_expand to not rely on
801         AltiVec predicate framework.
802         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
803         function.
804         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
805         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
806         define_insn pattern.
807         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
808         define_insn pattern because the xvcmpne<VSs>. instruction is not
809         supported.
810         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
811         instruction is not supported.
813 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
815         * config/nvptx/nvptx.c: Include intl.h.
817 2017-03-01  Martin Jambor  <mjambor@suse.cz>
819         PR lto/78140
820         * ipa-prop.h (ipa_bits): Removed field known.
821         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
822         to pointers.  Adjusted their comments to warn about their sharing.
823         (ipcp_transformation_summary): Change bits to a vector of pointers.
824         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
825         (ipa_get_ipa_bits_for_value): Declare.
826         * tree-vrp.h (value_range): Mark as GTY((for_user)).
827         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
828         (ipa_bits_hash_table): Likewise.
829         (ipa_vr_ggc_hash_traits): Likewise.
830         (ipa_vr_hash_table): Likewise.
831         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
832         being pointers and vr_known being removed.
833         (ipa_set_jf_unknown): Likewise.
834         (ipa_get_ipa_bits_for_value): New function.
835         (ipa_set_jfunc_bits): Likewise.
836         (ipa_get_value_range): New overloaded functions.
837         (ipa_set_jfunc_vr): Likewise.
838         (ipa_compute_jump_functions_for_edge): Use the above functions to
839         construct bits and vr parts of jump functions.
840         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
841         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
842         exist.
843         (ipcp_grow_transformations_if_necessary): Also allocate
844         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
845         exist.
846         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
847         them.  Fix too long lines.
848         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
849         vr_known being removed.
850         (ipa_read_jump_function): Use new setter functions to construct bits
851         and vr parts of jump functions or set them to NULL.
852         (write_ipcp_transformation_info): Adjust for bits being pointers.
853         (read_ipcp_transformation_info): Likewise.
854         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
855         space.
856         Include gt-ipa-prop.h.
857         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
858         being pointers.
859         (ipcp_store_bits_results): Likewise.
860         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
861         Do not write to existing jump functions but use a temporary instead.
863 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
865         PR c++/79681
866         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
867         attempt to use its first operand as BIT_FIELD_REF base.
869 2017-03-01  Richard Biener  <rguenther@suse.de>
871         PR middle-end/79721
872         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
873         interpolating formula in wrapping arithmetic.
874         (chrec_apply): Convert chrec_evaluate return value to wanted type.
876 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
878         PR tree-optimization/79734
879         * tree-vect-generic.c (expand_vector_condition): Optimize
880         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
881         Handle VEC_COND_EXPR where comparison has different inner width from
882         type's inner width.
884 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
886         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
887         markup, and similar issues.  Remove @opindex entries for things
888         that aren't options.  Add missing -mmpy-option entries.
890 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
892         PR tree-optimization/79737
893         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
894         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
895         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
896         instead of byte_size.  Formatting fix.
897         (shift_bytes_in_array_right): Formatting fix.
899 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
901         PR target/79749
902         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
903         condition on optimize for the leaf function test.
905 2017-02-28  Martin Liska  <mliska@suse.cz>
907         PR lto/79625
908         * read-rtl-function.c (function_reader::handle_unknown_directive):
909         Bail out when one uses -flto.
911 2017-02-28  Martin Liska  <mliska@suse.cz>
913         * common.opt: Replace space with tabular for options of <number>
914         type.
915         * config/i386/i386.opt: Show <number> value for
916         -mlarge-data-threshold.
917         * opts.c (print_filtered_help): Do not display number in hexadecimal
918         format.
920 2017-02-28  Martin Liska  <mliska@suse.cz>
922         * common.opt: Fix --help=option -Q for options which are of
923         an enum type.
925 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
927         * config/i386/i386.c (print_reg): Error out for values
928         of 8-bit size in invalid integer register.
930 2017-02-28  Martin Sebor  <msebor@redhat.com>
932         PR tree-optimization/79691
933         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
935 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
937         PR target/79729
938         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
939         gcc_unreachable with output_operand_lossage.
941 2017-02-28  Richard Biener  <rguenther@suse.de>
943         PR tree-optimization/79740
944         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
945         inserts.
946         (visit_nary_op): Insert the nary into the hashtable if we
947         pattern-matched sth.
948         * tree-ssa-pre.c (eliminate_insert): Robustify.
950 2017-02-28  Richard Biener  <rguenther@suse.de>
952         PR middle-end/79731
953         * fold-const.c (decode_field_reference): Reject out-of-bound
954         accesses.
956 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
958         * config/i386/i386.c: Include intl.h.
959         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
960         instead of just cond ? "..." : "...".
961         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
962         * coverage.c (read_counts_file): Likewise.
963         * omp-offload.c: Include intl.h.
964         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
965         of just cond ? "..." : "...".
966         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
967         of just cond ? "..." : "...".
969 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
971         PR target/79742
972         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
973         entry, if present.
974         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
975         'tune for' CPU name.
976         * config/arm/arm-cpu-data.h: Regenerated.
978 2017-02-28  Richard Biener  <rguenther@suse.de>
980         PR tree-optimization/79732
981         * tree-inline.c (expand_call_inline): Do not shadow var.
983 2017-02-28  Richard Biener  <rguenther@suse.de>
985         PR tree-optimization/79723
986         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
987         address-space properly.
989 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
991         * doc/optinfo.texi (Optimization groups): Fix option used for
992         OPTGROUP_ALL.
993         * doc/invoke.texi (-fopt-info): Document "omp".
994         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
995         (OPTGROUP_ALL): Add OPTGROUP_OMP.
996         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
997         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
998         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
1000         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
1001         all users.
1002         * dumpfile.c (optgroup_options): Instead of "openmp", associate
1003         OPTGROUP_OMP with "omp".
1005 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
1007         PR target/79544
1008         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
1009         for arithmetic shift of unsigned V2DI.
1011 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
1013         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
1014         arc/linux.h headers.
1015         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
1016         (LINK_SPEC): Likewise.
1017         (ARC_TLS_EXTRA_START_SPEC): Likewise.
1018         (EXTRA_SPECS): Likewise.
1019         (STARTFILE_SPEC): Likewise.
1020         (ENDFILE_SPEC): Likewise.
1021         (LIB_SPEC): Likewise.
1022         (TARGET_SDATA_DEFAULT): Likewise.
1023         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
1024         (MULTILIB_DEFAULTS): Likewise.
1025         (DWARF2_UNWIND_INFO): Likewise.
1026         * config/arc/big.h: New file.
1027         * config/arc/elf.h: Likewise.
1028         * config/arc/linux.h: Likewise.
1029         * config/arc/t-uClibc: Remove.
1031 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
1033         PR tree-optimization/77536
1034         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
1035         (tree_transform_and_unroll_loop): Use above function to compute the
1036         estimated niter of unrolled loop and use it when scaling profile.
1037         Also use count info rather than frequency if it's non-zero.
1038         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
1039         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
1040         (vect_transform_loop): Call above function.
1042 2017-02-27  Richard Biener  <rguenther@suse.de>
1044         PR tree-optimization/45397
1045         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
1046         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
1047         (visit_nary_op): Add pattern matching for CSEing sign-changed
1048         or truncated operations with wider ones.
1050 2017-02-27  Richard Biener  <rguenther@suse.de>
1052         PR tree-optimization/79690
1053         * tree-vect-stmts.c (vectorizable_store): Use vector type
1054         built from the DR with address-space.
1056 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
1058         * doc/invoke.texi (Optimize Options): Refine the description
1059         of asan-use-after-return.
1061 2017-02-25  Alan Modra  <amodra@gmail.com>
1063         PR rtl-optimization/79584
1064         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
1065         base, not ad->base_term, the reg within base.  Remove assertion
1066         that ad->base == ad->base_term.  Replace gen_int_mode using
1067         bogus mode with const0_rtx.
1069 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
1071         PR middle-end/79396
1072         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
1073         FMA_EXPR like tcc_binary or tcc_unary.
1075         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
1077         PR debug/77589
1078         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
1079         bitfield.
1080         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
1081         (output_loc_operands): Handle DW_OP_call_ref and
1082         DW_OP_GNU_variable_value.
1083         (struct variable_value_struct): New type.
1084         (struct variable_value_hasher): Likewise.
1085         (variable_value_hash): New variable.
1086         (string_types): Remove.
1087         (copy_loc_descr): New function.
1088         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
1089         (prepend_loc_descr_to_each): New function.
1090         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
1091         instead of add_loc_descr_to_each if the first argument is single
1092         location list and the second has multiple.
1093         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
1094         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
1095         when looking for variable value which doesn't have other location info.
1096         (loc_list_from_tree): Formatting fix.
1097         (gen_array_type_die): Simplify DW_AT_string_length handling.
1098         (adjust_string_types): Remove.
1099         (gen_subprogram_die): Don't call adjust_string_types nor test/set
1100         string_types.  Call resolve_variable_values.
1101         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
1102         (resolve_addr_in_expr): Likewise.  Add A argument.
1103         (copy_deref_exprloc): Remove deref argument.  Adjust for the
1104         original expression being DW_OP_GNU_variable_value with optionally
1105         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
1106         optionally after it.
1107         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
1108         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
1109         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
1110         (variable_value_hasher::hash, variable_value_hasher::equal): New
1111         methods.
1112         (resolve_variable_value_in_expr, resolve_variable_value,
1113         resolve_variable_values, note_variable_value_in_expr,
1114         note_variable_value): New functions.
1115         (dwarf2out_early_finish): Call note_variable_value on all toplevel
1116         DIEs.
1118 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
1120         PR c/79677
1121         * opts.h (handle_generated_option): Add GENERATED_P argument.
1122         * opts-common.c (handle_option): Adjust function comment.
1123         (handle_generated_option): Add GENERATED_P argument, pass it to
1124         handle_option.
1125         (control_warning_option): Pass false to handle_generated_option
1126         GENERATED_P.
1127         * opts.c (maybe_default_option): Pass true to handle_generated_option
1128         GENERATED_P.
1129         * optc-gen.awk: Likewise.
1131 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1133         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
1134         a REG, look at the REG it is a SUBREG of.
1135         (splitter for cmpeqsi_t): Ditto.
1137 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1139         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
1140         the special USEs with the pattern of the insn, not the insn itself.
1142 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
1144         PR target/79473
1145         * doc/invoke.texi: Document -mload-store-pairs.
1147 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1148             Sandra Loosemore  <sandra@codesourcery.com>
1150         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
1151         argument isn't a CONST_INT.
1152         (nios2_alternate_compare_const): Assert op is a CONST_INT.
1153         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
1154         (nios2_validate_compare): Bypass alternate compare logic if *op2
1155         is not a CONST_INT.
1156         (ldstwm_operation_p): Return false if first_base is not a REG or
1157         if first_offset is not a CONST_INT.
1159 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1161         * config/cris/cris.md: Use correct operand in a define_peephole2.
1163 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1165         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
1167 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
1169         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
1170         this_insn if it is an INSN or JUMP_INSN.
1171         (force_offsettable): Look at base, not at addr.
1172         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
1173         on things that aren't necessarily CONST_INTs.
1175 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
1177         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
1178         -mfpmath=sse is the default also for x86-32 targets with SSE2
1179         instruction set when @option{-ffast-math} is enabled
1181 2017-02-24  Jeff Law  <law@redhat.com>
1183         PR rtl-optimizatoin/79286
1184         * ira.c (update_equiv_regs): Drop may_trap_p exception to
1185         dominance test.
1187 2017-02-24  Richard Biener  <rguenther@suse.de>
1189         PR tree-optimization/79389
1190         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
1191         debug insns.
1193 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
1195         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
1196         function comment to reflect reality.
1197         (loop_exits_before_overflow): Fix typo in function description.
1199 2017-02-24  Richard Biener  <rguenther@suse.de>
1201         PR tree-optimization/79389
1202         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
1203         properly that a threading opportunity exists.  Detect conditional
1204         copy/constant propagation opportunities.
1206 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
1208         * config/visium/visium.md (type): Add trap.
1209         (b): New mode attribute.
1210         (*btst): Rename into...
1211         (*btst<mode>): ...this and adjust.
1212         (*cbranchsi4_btst_insn): Rename into...
1213         (*cbranch<mode>4_btst_insn): ...this and adjust.
1214         (trap): New define_insn.
1216 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
1218         PR tree-optimization/79389
1219         * ifcvt.c (struct noce_if_info): Add rev_cond field.
1220         (noce_reversed_cond_code): New function.
1221         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
1222         reversed_comparison_code.  Formatting fix.
1223         (noce_try_store_flag): Test rev_cond != NULL in addition to
1224         reversed_comparison_code.
1225         (noce_try_store_flag_constants): Likewise.
1226         (noce_try_store_flag_mask): Likewise.
1227         (noce_try_addcc): Use rev_cond if non-NULL instead of
1228         reversed_comparison_code.
1229         (noce_try_cmove_arith): Likewise.  Formatting fixes.
1230         (noce_try_minmax, noce_try_abs): Clear rev_cond.
1231         (noce_find_if_block): Initialize rev_cond.
1232         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
1233         instead of false as last argument never attempt to reverse it
1234         afterwards.
1236 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
1238         PR tree-optimization/79663
1239         * tree-predcom.c (combine_chains): Process refs in reverse order
1240         only for ZERO length chains, and add explaining comment.
1242 2017-02-23  Jeff Law  <law@redhat.com>
1244         PR tree-optimization/79578
1245         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
1246         in call to operand_equal_p.
1248 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
1250         PR target/71017
1251         * config/i386/cpuid.h: Fix another undefined behavior.
1253 2017-02-23  Richard Biener  <rguenther@suse.de>
1255         PR tree-optimization/79683
1256         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
1257         vector types for data-refs.
1259 2017-02-23  Martin Liska  <mliska@suse.cz>
1261         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
1263 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
1265         PR middle-end/79665
1266         * internal-fn.c (get_range_pos_neg): Moved to ...
1267         * tree.c (get_range_pos_neg): ... here.  No longer static.
1268         * tree.h (get_range_pos_neg): New prototype.
1269         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
1270         are known to be in between 0 and signed maximum inclusive, try to
1271         expand both unsigned and signed divmod and use the cheaper one from
1272         those.
1274 2017-02-22  Jeff Law  <law@redhat.com>
1276         PR tree-optimization/79578
1277         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
1278         to compare base operands.
1280 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
1282         PR target/79211
1283         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
1284         gpc_reg_operand instead of fpr_reg_operand.
1286 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
1288         * config/mips/mips.c (mips_return_in_memory): Force FP
1289         vector types to be returned in memory for o32 ABI.
1291 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
1293         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
1294         instead of DW_TAG_member for static data member declarations and don't
1295         set no_linkage_name for static inline data members.
1296         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
1297         to DW_TAG_member.
1299 2017-02-22  Martin Liska  <mliska@suse.cz>
1301         * doc/invoke.texi: Replace inequality signs with square brackets
1302         for -Wnormalized.
1304 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1306         PR tree-optimization/68644
1307         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
1309 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
1311         PR target/78660
1312         * lra-constraints.c (simplify_operand_subreg): Handle
1313         WORD_REGISTER_OPERATIONS targets.
1315 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
1317         PR target/70465
1318         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
1319         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
1320         elimination by swapping fld*.
1322 2017-02-22  Richard Biener  <rguenther@suse.de>
1324         PR tree-optimization/79673
1325         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
1326         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
1327         irrelevant address-space qualifiers and avoiding a
1328         ADDR_SPACE_CONVERT_EXPR from fold_convert.
1330 2017-02-22  Richard Biener  <rguenther@suse.de>
1332         PR tree-optimization/79666
1333         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
1334         to not symbolically negate if that may introduce undefined
1335         overflow.
1337 2017-02-22  Martin Liska  <mliska@suse.cz>
1339         PR lto/79587
1340         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
1341         * data-streamer-out.c (streamer_write_gcov_count_stream):
1342         Likewise.
1343         * value-prof.c (stream_out_histogram_value): Make assert more
1344         precise based on type of counter.
1346 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
1348         PR target/79593
1349         * config/i386/i386.md (standard_x87sse_constant_load splitter):
1350         Use nonimmediate_operand instead of memory_operand for operand 1.
1351         (float-extend standard_x87sse_constant_load splitter): Ditto.
1353 2017-02-21 Jeff Law  <law@redhat.com>
1355         PR tree-optimization/79621
1356         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
1357         blocks with edges to themselves.
1359 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1361         PR target/79633
1362         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
1363         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
1364         Use gimple_call_builtin_p.
1366         PR target/79570
1367         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
1368         on temporarily removed DEBUG_INSNs.
1370         PR tree-optimization/79649
1371         * tree-loop-distribution.c (classify_partition): Give up on
1372         non-generic address space loads/stores.
1374 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
1376         * doc/loop.texi (Loop manipulation): Remove nonexistent
1377         tree_ssa_loop_version from the documentation.
1378         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
1380 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1382         PR target/79494
1383         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
1384         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
1385         * config/rs6000/rs6000.c: Include except.h.
1386         (rs6000_expand_split_stack_prologue): Call
1387         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
1389 2017-02-21  Martin Jambor  <mjambor@suse.cz>
1391         PR lto/79579
1392         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
1393         have been analyzed.
1395 2017-02-21  Martin Jambor  <mjambor@suse.cz>
1397         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
1398         for backward compatibility only.
1399         * doc/invoke.texi (Option Summary): Remove all references to
1400         -fipa-cp-alignment.
1402 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
1404         PR target/78660
1405         Revert:
1406         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1408         * lra-constraints.c (curr_insn_transform): Handle
1409         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1411 2017-02-21  Martin Liska  <mliska@suse.cz>
1413         * config/i386/i386.opt: Replace -masm-dialect with -masm.
1415 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
1417         PR translation/79638
1418         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
1420 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
1422         PR ada/67205
1423         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1424         (arm_function_ok_for_sibcall): Return false for an indirect call by
1425         descriptor if all the argument registers are used.
1426         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
1427         alignment of the function.
1429 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
1431         PR tree-optimization/61441
1432         * simplify-rtx.c (simplify_const_unary_operation): For
1433         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
1434         the sNaN unmodified.
1436 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1438         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1439         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1440         instead of SYSTEM_HEADER_DIR.
1442 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
1443             Martin LiÅ¡ka  <mliska@suse.cz>
1445         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
1446         Fix typos and grammar, use active voice, and clarify.
1448 2017-02-20  Marek Polacek  <polacek@redhat.com>
1450         PR middle-end/79537
1451         * gimplify.c (gimplify_expr): Handle unused *&&L;.
1453         PR sanitizer/79558
1454         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
1456 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
1458         PR target/79568
1459         * config/i386/i386.c (ix86_expand_builtin): Handle
1460         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
1461         ix86_builtins_isa[fcode].isa as a requirement of those
1462         flags and any other flag in the bitmask.
1463         (ix86_init_mmx_sse_builtins): Use 0 instead of
1464         ~OPTION_MASK_ISA_64BIT as mask.
1465         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
1466         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
1467         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
1468         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
1470 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1472         PR target/78012
1473         * lra-constraints.c (split_reg): Check requested split mode
1474         is supported by the register.
1476 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1478         * lra-constraints.c (simplify_operand_subreg): Remove early
1479         return false.
1481 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1483         PR target/78660
1484         * lra-constraints.c (curr_insn_transform): Tighten condition
1485         for converting SUBREG reloads from OP_OUT to OP_INOUT.
1487 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
1489         PR target/78660
1490         * lra-constraints.c (curr_insn_transform): Handle
1491         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1493 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
1495         Revert:
1496         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
1498         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1500 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
1502         PR c++/69523
1503         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
1504         description.
1506 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1508         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
1509         for FMA_EXPR.
1511 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
1513         * final.c (last_columnnum, override_columnnum): New variables.
1514         (final_start_function): Set last_columnnum, pass it to begin_prologue
1515         hook and pass 0 to dwarf2out_begin_prologue.
1516         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
1517         to source_line debug hook.
1518         (notice_source_line): Compute last_columnnum and for debug_column_info
1519         return true on column changes.
1520         * debug.h (struct gcc_debug_hooks): Add column argument to
1521         source_line and begin_prologue hooks.
1522         (debug_nothing_int_charstar_int_bool): Remove prototype.
1523         (debug_nothing_int_int_charstar,
1524         debug_nothing_int_int_charstar_int_bool): New prototypes.
1525         (dwarf2out_begin_prologue): Add column argument.
1526         * debug.c (do_nothing_debug_hooks): Adjust source_line and
1527         begin_prologue hooks.
1528         (debug_nothing_int_charstar_int_bool): Remove.
1529         (debug_nothing_int_int_charstar,
1530         debug_nothing_int_int_charstar_int_bool): New functions.
1531         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
1532         through to dwarf2out_source_line.
1533         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
1534         (dwarf2out_source_line): Add column argument, emit it if requested.
1535         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
1536         arguments.
1537         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1538         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1539         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
1540         through to dwarf2out_begin_prologue.
1541         (vmsdbgout_source_line): Add column argument, pass it through to
1542         dwarf2out_source_line.
1543         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
1544         dbxout_source_line caller.
1545         (dbxout_source_line): Add column argument.
1547         * common.opt (gno-column-info, gcolumn-info): New options.
1548         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
1549         (check_die): Also test for multiple DW_AT_decl_column attributes.
1550         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
1551         DW_AT_decl_column if requested.
1552         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
1553         if requested.
1554         (gen_variable_die): Likewise.
1555         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
1556         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
1558         PR target/79569
1559         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
1560         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
1561         (ix86_handle_option): Handle OPT_m3dnowa.
1562         * doc/invoke.texi (-m3dnowa): Document.
1563         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
1564         -m3dnowa instead of -m3dnow -march=athlon.
1566         PR target/79559
1567         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
1568         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
1570 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1572         PR target/79261
1573         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1574         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
1575         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
1576         generator for vsx_xxpermdi_<mode>_be.
1577         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
1578         force big-endian semantics.
1579         (vsx_xxpermdi_<mode>_be): New define_expand with same
1580         implementation as previous version of vsx_xxpermdi_<mode>.
1582 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
1584         PR tree-optimization/79327
1585         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
1586         variable, its initialization and use.
1588 2017-02-17  Julia Koval  <julia.koval@intel.com>
1590         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
1591         (OPTION_MASK_ISA_PKU_UNSET): New.
1592         (ix86_handle_option): Handle -mrdpid.
1593         * config/i386/cpuid.h (bit_RDPID): New.
1594         * config/i386/driver-i386.c (host_detect_local_cpu):
1595         Detect RDPID feature.
1596         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
1597         * config/i386/i386-c.c (ix86_target_macros_internal):
1598         Handle RDPID flag.
1599         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
1600         (ix86_valid_target_attribute_inner_p): Add "rdpid".
1601         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
1602         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
1603         * config/i386/i386.md (define_insn "rdpid"): New.
1604         * config/i386/i386.opt Add -mrdpid.
1605         * config/i386/immintrin.h (_rdpid_u32): New.
1607 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
1609         PR rtl-optimization/79541
1610         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
1611         instead of transforming it into USE.
1613 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
1615         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
1616         If HONOR_SNANS (SFmode) force the input to a register.
1617         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
1618         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
1619         an frsp or similar insn.
1621 2017-02-17  Martin Liska  <mliska@suse.cz>
1623         PR rtl-optimization/79577
1624         * params.def (selsched-max-sched-times): Increase minimum to 1.
1626 2017-02-17  Martin Liska  <mliska@suse.cz>
1628         PR rtl-optimization/79574
1629         * gcse.c (want_to_gcse_p): Prevent integer overflow.
1631 2017-02-17  Martin Liska  <mliska@suse.cz>
1633         PR tree-optimization/79529
1634         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
1635         ssa_defined_default_def_p to handle cases which are implicitly
1636         defined.
1637         * tree-ssa.c (ssa_defined_default_def_p): New function.
1638         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
1639         which are implicitly defined.
1640         * tree-ssa.h (ssa_defined_default_def_p): Declare.
1642 2017-02-17  Richard Biener  <rguenther@suse.de>
1644         PR middle-end/79576
1645         * params.def (max-ssa-name-query-depth): Limit to 10.
1647 2017-02-17  Richard Biener  <rguenther@suse.de>
1649         PR tree-optimization/79552
1650         * tree-ssa-structalias.c (visit_loadstore): Properly verify
1651         default defs.
1653 2017-02-17  Richard Biener  <rguenther@suse.de>
1655         PR bootstrap/79567
1656         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
1658 2017-02-17  Marek Polacek  <polacek@redhat.com>
1660         PR middle-end/79536
1661         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
1662         (fold_negate_expr): New wrapper.
1664 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
1666         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
1667         Correct terminology and de-emphasize pre-standard behavior.
1669 2017-02-16  Alan Modra  <amodra@gmail.com>
1671         PR rtl-optimization/79286
1672         * ira.c (def_dominates_uses): New function.
1673         (update_equiv_regs): Don't create an equivalence for insns that
1674         may trap where the register def does not dominate the use.
1676 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
1678         PR rtl-optimization/78127
1679         * lra.c (lra): Call lra_eliminate before finish the loop after
1680         lra_constraint.
1682 2017-02-16  Richard Biener  <rguenther@suse.de>
1684         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
1685         isl/isl_val.h.
1686         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
1687         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
1688         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
1689         (isl_val_int_from_wi): New function.
1690         (extract_affine_gmp): Rename to ...
1691         (extract_affine_wi): ... this, take a widest_int.
1692         (extract_affine_int): Just wrap extract_affine_wi.
1693         (add_param_constraints): Use isl_val_int_from_wi.
1694         (add_loop_constraints): Likewise, and extract_affine_wi.
1696 2017-02-15 Jeff Law  <law@redhat.com>
1698         PR middle-end/79521
1699         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
1700         ira_init_register_move_cost_if_necessary.
1702 2017-02-15  Martin Sebor  <msebor@redhat.com>
1704         PR middle-end/32003
1705         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
1706         removed in a prior commit.
1708 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
1710         PR tree-optimization/79347
1711         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
1712         counters during peeling.
1714 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
1716         * Makefile.in (site.exp): Remove "set ISLVER".
1718 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
1720         PR target/79487
1721         * real.c (real_from_integer): Call real_convert even for decimal.
1723 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1725         PR target/79421
1726         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
1728 2017-02-14  Andrew Pinski  <apinski@cavium.com>
1730         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
1731         cores and change the partno/implementer to be correct.
1732         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
1733         the 'B" as the implementer.
1734         * config/aarch64/aarch64-tune.md: Regenerate.
1736 2017-02-14  Carl Love  <cel@us.ibm.com>
1738         * config/rs6000/rs6000.c: Add case statement entry to make the
1739         xvcvuxdsp built-in argument unsigned.
1740         * config/rs6000/vsx.md: Fix the source and return operand types so they
1741         match the instruction definitions from the ISA document.  Fix typo
1742         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
1743         statement.
1745 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
1747         PR target/79282
1748         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
1749         member early_clobber_alts.
1750         * lra-lives.c (reg_early_clobber_p): New.
1751         (process_bb_lives): Use it.
1752         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
1753         (debug_operand_data): Initialize early_clobber_alts.
1754         (setup_operand_alternative): Set up early_clobber_alts.
1755         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
1756         alternatives to new_insn_reg.
1757         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
1758         it.
1759         (lra_update_insn_regno_info): Pass the new arg.
1761 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
1763         PR middle-end/79505
1764         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
1765         (new_oacc_loop_raw): Don't clear already cleared fields.
1767         PR target/79481
1768         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
1769         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
1770         _mm512_prefetch_i64gather_ps): New inline functions and macros.
1772 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
1774         PR target/79495
1775         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
1777 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
1779         PR target/79498
1780         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
1781         the extra instruction to the right place to store 128-bit constant
1782         when needed.
1784 2017-02-14  Martin Sebor  <msebor@redhat.com>
1786         PR middle-end/79448
1787         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
1788           warning for strings of unknown length.
1790 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
1792         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
1794 2017-02-14 Jeff Law  <law@redhat.com>
1796         PR target/79404
1797         * ira-costs.c (scan_one_insn): Initialize register move costs
1798         for pseudos seen in USE/CLOBBER insns.
1800         PR tree-optimization/79095
1801         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
1802         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
1803         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
1804         if the operands are known to be not equal, then the resulting range
1805         is ~[0,0].
1806         (intersect_ranges): If the new range is ~[0,0] and the old range is
1807         wide, then prefer ~[0,0].
1808         * tree-vrp.c (overflow_comparison_p_1): New function.
1809         (overflow_comparison_p): New function.
1810         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
1811         if NAME is used in an overflow test.
1812         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
1813         overflow check that can be expressed as an equality test, then adjust
1814         ops to be that equality test.
1816 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1818         * config/s390/s390-builtin-types.def: Remove flags argument.
1819         * config/s390/s390.c (s390_init_builtins): Likewise.
1821 2017-02-14  Martin Liska  <mliska@suse.cz>
1823         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
1824         vector.  Fix trailing white spaces.
1826 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
1828         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
1829         HFmode.
1831 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1833         PR rtl-optimization/68664
1834         * config/arm/arm.c (arm_sched_can_speculate_insn):
1835         New function.  Declare prototype.
1836         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
1838 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1840         PR rtl-optimization/68664
1841         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
1842         New function.
1843         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
1845 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
1847         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
1848         max skip bytes for function, loop and jump.
1850 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1852         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
1853         ABS_EXPR for gimple dump.
1855 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
1857         PR target/79462
1858         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
1860         PR tree-optimization/79408
1861         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
1862         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
1863         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
1864         also if rhs1 is INTEGER_CST.
1866 2017-02-14  Richard Biener  <rguenther@suse.de>
1868         PR middle-end/79432
1869         * tree-into-ssa.c (insert_phi_nodes): When the function can
1870         have abnormal edges rewrite SSA names with broken use-def
1871         dominance out of SSA and register them for PHI insertion.
1873 2017-02-13  Martin Sebor  <msebor@redhat.com>
1875         PR middle-end/79496
1876         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
1877         clearing info.nowrite flag when snprintf size argument is a range.
1879 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1881         * cprop.c (cprop_jump): Add missing space in string literal.
1882         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1883         (get_constraint_for_component_ref): Likewise.
1884         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
1885         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
1886         * lra-constraints.c (process_alt_operands): Likewise.
1887         * ipa-inline.c (inline_small_functions): Likewise.
1888         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
1889         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1890         * trans-mem.c (diagnose_tm_1_op): Likewise.
1891         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
1892         (grid_parallel_clauses_gridifiable): Likewise.
1894         * config/nvptx/mkoffload.c (process): Add space in between
1895         , and %d.
1897         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
1898         "MOD4_SSE_REGS" and "ALL_REGS".
1900         * spellcheck.c (test_data): Add , in between "foo" and "food".
1902 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1904         PR target/79449
1905         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
1906         boundary crossing check and subsequent code generation agree.
1908 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1910         * config/aarch64/aarch64.c (has_memory_op): Delete.
1911         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
1912         has_memory_op.
1914 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
1916         PR rtl-optimization/79388
1917         PR rtl-optimization/79450
1918         * combine.c (distribute_notes): When removing TEM_INSN for which
1919         corresponding dest has last value recorded, invalidate that last
1920         value.
1922 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1924         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
1925         of explicit '@'.  Add missing assembly comment marker on branch costs
1926         printout.
1928 2017-02-13  Nathan Sidwell  <nathan@acm.org>
1930         * gengtype-lex.l (<in_struct>): Add '/'.
1932 2017-02-13  Martin Liska  <mliska@suse.cz>
1934         PR c/79471
1935         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
1937 2017-02-13  Richard Biener  <rguenther@suse.de>
1939         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
1940         Remove.
1941         * configure: Re-generate.
1942         * config.in: Likewise.
1943         * graphite-dependences.c: Simplify as if
1944         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
1945         * graphite-isl-ast-to-gimple.c: Likewise.
1946         * graphite-optimize-isl.c: Likewise.
1947         * graphite-poly.c: Likewise.
1948         * graphite-sese-to-poly.c: Likewise.
1949         * graphite.h: Likewise.
1950         * toplev.c: Include isl/version.h and use isl_version () for
1951         printing the ISL version.
1952         * doc/install.texi: Update ISL requirement.
1954 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
1956         * doc/standards.texi (Standards): Update reference to
1957         Objective-C 2.0.
1959 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
1960         
1961         * doc/extend.texi (Named Address Spaces): sourceware.org now
1962         defaults to https.
1963         * doc/install.texi (Binaries): Ditto.
1964         (Specific): Ditto.
1966 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
1968         * doc/cpp.texi: Replace "stringify"/"stringification" with C 
1969         standard terminology "stringize"/"stringizing" throughout.
1970         * doc/cppinternals.texi: Likewise.
1972 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
1974         * doc/extend.texi: Fix some spelling mistakes and typos.
1975         * doc/invoke.texi: Likewise.
1977 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
1979         PR ipa/79224
1980         * params.def (inline-min-speedup) Change from 10 to 8.
1982 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
1984         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
1985         4.5.
1987 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
1989         PR ipa/79224
1990         * ipa-inline-analysis.c (get_minimal_bb): New function.
1991         (record_modified): Use it.
1992         (remap_edge_change_prob): Handle also ancestor functions.
1994 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
1996         * doc/contrib.texi (Contributors): Remove broken link into
1997         the Mauve CVS repository.
1999 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
2001         PR middle-end/79454
2002         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
2003         result computation whenever lhs doesn't have vector mode, not
2004         just when it has BLKmode.
2006 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
2008         * doc/makefile.texi (profiledbootstrap): Refer to the
2009         installation instructions only in textual form.
2011 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2013         PR target/79295
2014         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
2016 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
2018         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
2019         (Specific): Update mingw-w64 reference.
2020         (Binaries): Ditto.
2021         (Specific): Remove broken link to Renesas RX processor.
2023 2017-02-10  Richard Biener  <rguenther@suse.de>
2025         * toplev.c (process_options): Do not mention obsolete graphite
2026         options when printing sorry message about missing graphite support.
2027         Mention -floop-nest-optimize.
2029 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
2031         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
2032         (vtst_p16): Likewise.
2033         (vtstq_p8): Likewise.
2034         (vtstq_p16): Likewise.
2035         (vtst_p64): New.
2036         (vtstq_p64): Likewise.
2037         * config/arm/arm_neon.h (vgetq_lane_p64): New.
2038         (vset_lane_p64): New.
2039         (vsetq_lane_p64): New.
2041 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
2043         PR tree-optimization/79411
2044         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
2045         stmt operands are SSA_NAMEs used in abnormal phis.
2046         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
2047         phis.
2049 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
2051         PR ipa/70795
2052         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
2053         flag if needed.
2055 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
2057         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
2059 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
2061         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
2062         to avoid warning.
2064         PR c/79413
2065         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
2066         not arbitrary TREE_CONSTANT.
2068         PR c/79431
2069         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
2070         "omp declare target link" attribute unless is_global_var.
2071         * omp-offload.c (find_link_var_op): Likewise.
2073 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
2074             Chung-Lin Tang  <cltang@codesourcery.com>
2076         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
2077         OMP_CLAUSE_TILE.
2078         (gimplify_adjust_omp_clauses): Don't delete TILE.
2079         (gimplify_omp_for): Deal with TILE.
2080         * internal-fn.c (expand_GOACC_TILE): New function.
2081         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
2082         (GOACC_TILE): New.
2083         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
2084         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
2085         element fields.
2086         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
2087         avoid DIV for outermost collapse var.
2088         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
2089         Remove out of date comments, fix whitespace.
2090         * omp-general.c (omp_extract_for_data): Deal with tiling.
2091         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
2092         adjust OLF_DIM_BASE value.
2093         (struct omp_for_data): Add tiling field.
2094         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
2095         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
2096         for auto loops.  Remove default auto determining, moved to
2097         oacc_loop_fixed_partitions.
2098         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
2099         stmts, add e_mask field.
2100         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
2101         (oacc_thread_numbers): Use oacc_dim_call.
2102         (oacc_xform_tile): New.
2103         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
2104         (finish_oacc_loop): Adjust for ifns vector.
2105         (oacc_loop_discover_walk): Append loop abstraction sites to list,
2106         add case for GOACC_TILE fns.
2107         (oacc_loop_xform_loop): Delete.
2108         (oacc_loop_process): Iterate over call list directly, and add
2109         handling for GOACC_TILE fns.
2110         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
2111         dump partitioning.
2112         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
2113         vector partitioning to outer loops.  Assign 2 partitions to loops
2114         when available. Add TILE handling.
2115         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
2116         (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
2117         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
2118         * tree.c (omp_clause_num_ops): Adjust TILE ops.
2119         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
2121 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
2123         * configure.ac (ACX_BUGURL): Update.
2124         * configure: Regenerate.
2126 2017-02-09  Richard Biener  <rguenther@suse.de>
2128         PR tree-optimization/69823
2129         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2130         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
2132 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2134         * config/arc/arc-c.def: Add __NPS400__ definition.
2135         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
2136         (TARGET_NPS400): Define.
2138 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2140         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
2141         file.
2142         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
2143         pointer, arch_info.
2144         (arc_cpu_types): Fill the arch_info field with a pointer into the
2145         arc_arch_types table.
2146         (arc_selected_cpu): Declare.
2147         * config/arc/arc.c (arc_selected_cpu): Make global.
2148         (arc_selected_arch): Delete.
2149         (arc_base_cpu): Delete.
2150         (arc_override_options): Remove references to deleted variables,
2151         update access to arch information.
2152         (ARC_OPT): Update access to arch information.
2153         (ARC_OPTX): Likewise.
2154         * config/arc/arc.h (arc_base_cpu): Remove declaration.
2155         (TARGET_ARC600): Update access to arch information.
2156         (TARGET_ARC601): Likewise.
2157         (TARGET_ARC700): Likewise.
2158         (TARGET_EM): Likewise.
2159         (TARGET_HS): Likewise.
2160         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
2161         information.
2163 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
2165         PR target/78604
2166         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
2167         condition/operands for integer GE/LE/GEU/LEU operations.
2169 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
2171         PR translation/79397
2172         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
2173         of AltiVec.
2175 2017-02-08  Martin Jambor  <mjambor@suse.cz>
2177         PR ipa/79375
2178         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
2179         whether allocation happened.
2180         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
2181         nothing was allocated.
2183 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
2185         PR tree-optimization/79408
2186         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
2187         constant, but SSA_NAME with a known integer range, use the minimum
2188         of that range instead of op1 to determine if modulo can be replaced
2189         with its first operand.
2191 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2193         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
2195 2017-02-08  Richard Biener  <rguenther@suse.de>
2197         PR tree-optimization/71824
2198         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2199         Check all loops contained in the merged region.
2201 2017-02-07  Andrew Pinski  <apinski@cavium.com>
2203         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
2205 2017-02-07  Andrew Pinski  <apinski@cavium.com>
2207         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
2208         (thunderxt88): Likewise.
2209         (thunderxt81): Disable LSE and change v8.1 to v8.
2210         (thunderxt83): Likewise.
2212 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
2213             Richard Biener  <rguenther@suse.de>
2215         PR middle-end/79399
2216         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
2217         type from int to size_t.
2218         * ira-costs.c (struct_costs_size): Change type from int to size_t.
2220 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
2222         PR rtl-optimization/79386
2223         * cprop.c (bypass_conditional_jumps): Initialize
2224         bypass_last_basic_block already before splitting bbs after
2225         unconditional traps...
2226         (bypass_conditional_jumps): ... rather than here.
2228         PR target/79299
2229         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
2230         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
2231         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
2232         fix -masm=intel patterns.
2234 2017-02-07  Richard Biener  <rguenther@suse.de>
2236         PR tree-optimization/79256
2237         PR middle-end/79278
2238         * builtins.c (get_object_alignment_2): Use min_align_of_type
2239         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
2240         and ADJUST_FIELD_ALIGN.
2242         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
2243         type parameter.
2244         * doc/tm.texi: Regenerate.
2245         * stor-layout.c (layout_decl): Adjust.
2246         (update_alignment_for_field): Likewise.
2247         (place_field): Likewise.
2248         (min_align_of_type): Likewise.
2249         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
2250         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
2251         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
2252         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
2253         * config/frv/frv.c (frv_adjust_field_align): Likewise.
2254         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
2255         * config/i386/i386.c (x86_field_alignment): Likewise.
2256         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2257         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
2258         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
2259         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2260         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
2261         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2262          Likewise.
2264         Revert
2265         2017-01-30  Richard Biener  <rguenther@suse.de>
2267         PR tree-optimization/79256
2268         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2269         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2270         alignment on TYPE.
2272 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
2274         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
2275         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
2276         builtins to SImode and emit a zero-extend, if necessary.
2278 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2280         * docs/invoke.texi (RISC-V Options): Alphabetize.
2282 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2284         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
2285         options.
2287 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
2289         * config/riscv/riscv.c: New file.
2290         * gcc/common/config/riscv/riscv-common.c: Likewise.
2291         * config.gcc: Likewise.
2292         * config/riscv/constraints.md: Likewise.
2293         * config/riscv/elf.h: Likewise.
2294         * config/riscv/generic.md: Likewise.
2295         * config/riscv/linux.h: Likewise.
2296         * config/riscv/multilib-generator: Likewise.
2297         * config/riscv/peephole.md: Likewise.
2298         * config/riscv/pic.md: Likewise.
2299         * config/riscv/predicates.md: Likewise.
2300         * config/riscv/riscv-builtins.c: Likewise.
2301         * config/riscv/riscv-c.c: Likewise.
2302         * config/riscv/riscv-ftypes.def: Likewise.
2303         * config/riscv/riscv-modes.def: Likewise.
2304         * config/riscv/riscv-opts.h: Likewise.
2305         * config/riscv/riscv-protos.h: Likewise.
2306         * config/riscv/riscv.h: Likewise.
2307         * config/riscv/riscv.md: Likewise.
2308         * config/riscv/riscv.opt: Likewise.
2309         * config/riscv/sync.md: Likewise.
2310         * config/riscv/t-elf-multilib: Likewise.
2311         * config/riscv/t-linux: Likewise.
2312         * config/riscv/t-linux-multilib: Likewise.
2313         * config/riscv/t-riscv: Likewise.
2314         * configure.ac: Likewise.
2315         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
2316         Waterman as RISC-V maintainers.
2317         * doc/install.texi: Add RISC-V entries.
2318         * doc/invoke.texi: Add RISC-V options section.
2319         * doc/md.texi: Add RISC-V constraints section.
2320         * configure: Regenerated.
2322 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2324         PR target/66144
2325         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
2326         false values to be constant vectors with all 0 or all 1 bits set.
2327         (vcondu<mode><mode>): Likewise.
2328         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
2329         predicate.
2330         (fpmask_comparison_operator): Update comment.
2331         (vecint_comparison_operator): New predicate.
2332         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
2333         vector conditionals when the true and false values are constant
2334         vectors with all 0 bits or all 1 bits set.
2336 2017-02-06  Martin Sebor  <msebor@redhat.com>
2338         PR  tree-optimization/79376
2339         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
2341 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
2343         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
2344         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
2345         to simplify split condition.
2347 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
2349         * omp-expand.c (oxpand_omp_atomic_fetch_op,
2350         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
2351         false.
2353 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
2355         PR rtl-optimization/68664
2356         * target.def (can_speculate_insn): New hook.
2357         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
2358         * doc/tm.texi: Regenerate.
2359         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
2360         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
2361         (rs6000_sched_can_speculate_insn): New function.
2363 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
2365         PR tree-optimization/79284
2366         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
2367         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
2368         vectorizable_mask_load_store, vectorizable_operation,
2369         vect_is_simple_cond, get_same_sized_vectype): Use it instead
2370         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
2371         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
2372         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
2373         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2374         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2375         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
2376         is_gimple_assign (stmt).  Replace another such test with
2377         is_gimple_assign (stmt).
2379 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
2381         PR target/78883
2382         * config/avr/avr.c (rtl-iter.h): Include it.
2383         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
2384         (avr_legitimate_combined_insn): ...and implementation.
2386 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2388         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
2389         * config/s390/s390.c (s390_const_operand_ok)
2390         (s390_canonicalize_comparison, s390_extract_part)
2391         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
2392         (s390_contiguous_bitmask_p, s390_rtx_costs)
2393         (legitimize_pic_address): Likewise.
2394         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
2395         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
2396         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
2397         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
2398         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
2400 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
2402         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
2403         REGNO($0) == REGNO($1).
2405 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2407         * config/s390/linux.h(SIZE_TYPE): Add comment.
2409 2017-02-06  Julian Brown  <julian@codesourcery.com>
2410             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2411             Virendra Pathak  <virendra.pathak@broadcom.com>
2413         * config/aarch64/aarch64-cores.def: Change the scheduler
2414         to Thunderx2t99.
2415         * config/aarch64/aarch64.md: Include thunderx2t99.md.
2416         * config/aarch64/thunderx2t99.md: New file.
2418 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2420         * doc/standards.texi (Go Language): Update link to language
2421         standard.
2423 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
2425         * tree-eh.c (lower_resx): Sanitize profile.
2426         (cleanup_empty_eh_move_lp): Likewise.
2428 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
2430         PR tree-ssa/79347
2431         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
2432         ELSE_PROB.
2433         * cfgloopmanip.h (loop_version): Update prototype.
2434         * modulo-sched.c (sms_schedule): Update call of loop_version.
2435         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
2436         * tree-parloops.c (gen_parallel_loop): Likewise.
2437         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2438         * tree-ssa-loop-split.c (split_loop): Likewise.
2439         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
2440         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
2442 2017-02-05  Martin Liska  <mliska@suse.cz>
2444         PR bootstrap/78985
2445         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
2446         variable to NULL.
2447         (print_operand_address): Initialize a struct to zero.
2449 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2451         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
2452         garbage collector only in textual form.
2454 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
2455         
2456         * doc/extend.texi (x86 specific memory model extensions for
2457         transactional memory): Simplify a phrase.
2459 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
2461         PR target/79353
2462         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
2463         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
2464         (atomic_storedi_1): Likewise.
2466 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
2468         PR tree-optimization/79338
2469         * tree-parloops.c (gather_scalar_reductions): Don't call
2470         vect_analyze_loop_form for loop->inner before destroying loop's
2471         loop_vinfo.
2473 2017-02-03  Martin Sebor  <msebor@redhat.com>
2475         PR tree-optimization/79327
2476         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
2477         when precision has resulted in leading zeros.
2478         (format_integer): Adjust the likely counter to assume an unknown
2479         argument that may be zero is non-zero.
2481 2017-02-03  Jason Merrill  <jason@redhat.com>
2483         PR c++/78689
2484         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
2485         avoid copying non-taken branch.
2487 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
2489         PR tree-optimization/79340
2490         * tree-vect-loop.c (vectorizable_reduction): Release
2491         vec_defs elements after safe_splicing them into other vectors.
2492         Formatting fixes.
2494         PR tree-optimization/79327
2495         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
2496         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
2497         dirtype.
2498         (format_integer): Use wide_int_to_tree instead of build_int_cst
2499         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
2500         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
2501         of shortest and longest sequence.
2503 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
2505         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2506         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
2508 2017-02-03  Walter Lee  <walt@tilera.com>
2510         PR target/78862
2511         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
2512         after initial stackframe link reg save.
2513         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
2515 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
2517         PR target/79354
2518         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
2519         wu for stxssp alternative.
2521 2017-02-03  Martin Sebor  <msebor@redhat.com>
2523         PR tree-optimization/79352
2524         * gimple-fold.c (get_range_strlen): Add argument.
2525         (get_range_strlen): Change return type to bool.
2526         (get_maxval_strlen): Pass in a dummy argument.
2527         * gimple-fold.h (get_range_strlen): Change return type to bool.
2528         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
2529         * tree.h (array_at_struct_end_p): Add argument.
2530         * tree.c (array_at_struct_end_p): Handle it.
2532 2017-02-03  Martin Liska  <mliska@suse.cz>
2534         PR lto/66295
2535         * multiple_target.c (create_dispatcher_calls): Redirect edge
2536         from a caller of a dispatcher.
2537         (expand_target_clones): Make the clones local.
2538         (ipa_target_clone): Do both target clones and resolvers.
2539         (ipa_dispatcher_calls): Remove the pass.
2540         (pass_dispatcher_calls::gate): Likewise.
2541         (make_pass_dispatcher_calls): Likewise.
2542         * passes.def (pass_target_clone): Put as very first IPA early
2543         pass.
2545 2017-02-03  Martin Liska  <mliska@suse.cz>
2547         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
2548         in case of a function with ifunc attribute.
2550 2017-02-03  Martin Liska  <mliska@suse.cz>
2552         * cgraph.c (cgraph_node::dump): Dump function version info.
2553         * symtab.c (symtab_node::dump_base): Add missing new line.
2555 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
2557         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
2558         (ifcombine_ifandif): Use it.
2560 2017-02-03  Martin Liska  <mliska@suse.cz>
2562         * doc/invoke.texi: Document default value for
2563         use-after-scope-direct-emission-threshold.
2565 2017-02-03  Martin Liska  <mliska@suse.cz>
2567         PR tree-optimization/79339
2568         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
2569         (format_floating): Likewise.
2571 2017-02-03  Martin Liska  <mliska@suse.cz>
2573         PR ipa/79337
2574         * ipa-prop.c (ipa_node_params_t::insert): Remove current
2575         implementation.
2576         (ipa_node_params_t::remove): Likewise.
2577         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
2578         initialization from removed ipa_node_params_t::insert.
2579         (ipa_node_params::~ipa_node_params): Move from removed
2580         ipa_node_params_t::release.
2581         * symbol-summary.h (symbol_summary::m_released): New member.
2582         Do not release a summary twice.  Do not allow to call finalizer
2583         for types of a summary that live in GGC memory.
2585 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
2587         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
2588         cmp_branch fusion.
2590 2017-02-02  Martin Sebor  <msebor@redhat.com>
2592         PR middle-end/79275
2593         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
2594         (format_string): Tighten up the range of output for non-constant
2595         strings and correct the expected range for wide non-constant strings.
2597 2017-02-02  Martin Sebor  <msebor@redhat.com>
2599         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
2601         PR middle-end/32003
2602         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
2603         index.
2604         (-fdump-tree-@var): Add to index and document how to come up
2605         with pass-specific option and dump file names.
2606         (-fdump-passes): Clarify where to look for output.
2608 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
2610         PR middle-end/77445
2611         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
2612         statistics of the analyzed path; allow threading for speed when
2613         any of BBs along the path are optimized for speed.
2615 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
2617         PR middle-end/78468
2618         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
2619         settings of the virtual registers.
2621         Revert again
2622         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2624         * explow.c (get_dynamic_stack_size): Take known alignment of stack
2625         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2626         needed.
2628 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2630         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
2631         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
2633 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2635         * config/s390/s390.md: Add missing comments with the expanded
2636         mnemonics.
2637         * config/s390/vector.md: Likewise.
2638         * config/s390/vx-builtins.md: Likewise.
2640 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
2642         PR target/79197
2643         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
2644         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
2645         conditions on a single line.
2647 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2649         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2650         __S390_VX__ to __VX__.
2652 2017-02-01  Andrew Pinski  <apinski@cavium.com>
2654         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
2655         stmt_info to record_stmt_cost.
2656         (vect_get_known_peeling_cost): Pass stmt_info if known to
2657         record_stmt_cost.
2658         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
2659         cpu_vector_cost field into
2660         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
2661         field into vec_int_stmt_cost and vec_fp_stmt_cost.
2662         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
2663         splitting of scalar_stmt_cost and vec_stmt_cost.
2664         (thunderx_vector_cost): Likewise.
2665         (cortexa57_vector_cost): LIkewise.
2666         (exynosm1_vector_cost): Likewise.
2667         (xgene1_vector_cost): Likewise.
2668         (thunderx2t99_vector_cost): Improve after the splitting of the two
2669         fields.
2670         (aarch64_builtin_vectorization_cost): Update for the splitting of
2671         scalar_stmt_cost and vec_stmt_cost.
2673 2017-02-01  Torvald Riegel  <triegel@redhat.com>
2674             Richard Henderson  <rth@redhat.com>
2676         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
2677         conditional on existance of a fast atomic load.
2678         * optabs-query.c (can_atomic_load_p): New function.
2679         * optabs-query.h (can_atomic_load_p): Declare it.
2680         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
2681         no fast atomic load is available for the particular size of access.
2682         (expand_atomic_compare_and_swap): Likewise.
2683         (expand_atomic_load): Likewise.
2684         (expand_atomic_store): Likewise.
2685         (expand_atomic_fetch_op): Likewise.
2686         * testsuite/lib/target-supports.exp
2687         (check_effective_target_sync_int_128): Remove x86 because it provides
2688         no fast atomic load.
2689         (check_effective_target_sync_int_128_runtime): Likewise.
2691 2017-02-01  Richard Biener  <rguenther@suse.de>
2693         * graphite.c: Include tree-vectorizer.h for find_loop_location.
2694         (graphite_transform_loops): Provide opt-info for optimized nests.
2695         * tree-parloop.c (parallelize_loops): Provide opt-info for
2696         parallelized loops.
2698 2017-02-01  Richard Biener  <rguenther@suse.de>
2700         PR middle-end/79315
2701         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
2702         was not set before.
2704 2017-02-01  Richard Biener  <rguenther@suse.de>
2706         PR tree-optimization/71824
2707         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2708         Verify the loops are valid in the merged SESE region.
2709         (scop_detection::can_represent_loop_1): Check analyzing the
2710         evolution of the number of iterations in the region succeeds.
2712 2017-01-31  Ian Lance Taylor  <iant@golang.org>
2714         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
2715         REG_ARGS_SIZE note to 32-bit push insns and call insn.
2717 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
2719         PR preprocessor/79210
2720         * input.c (get_substring_ranges_for_loc): Replace line_width
2721         assertion with error-handling.
2723 2017-01-31  Richard Biener  <rguenther@suse.de>
2725         PR tree-optimization/77318
2726         * graphite-sese-to-poly.c (extract_affine): Fix assert.
2727         (create_pw_aff_from_tree): Take loop parameter.
2728         (add_condition_to_pbb): Pass loop of the condition to
2729         create_pw_aff_from_tree.
2731 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
2733         * config/s390/s390.c (s390_asan_shadow_offset): New function.
2734         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
2736 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
2738         PR target/78597
2739         PR target/79038
2740         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
2741         no longer used.
2742         (convert_int_to_float128): Likewise.
2743         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
2744         (convert_int_to_float128): Likewise.
2745         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
2746         (UNSPEC_IEEE128_CONVERT): Likewise.
2747         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
2748         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
2749         Use local variables for IBM extended format.
2750         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
2751         (fix_trunc<mode>si2_fprs): Likewise.
2752         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2753         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
2754         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
2755         to know that we can now have integers of all sizes in vector
2756         registers.
2757         (fix<uns>_<mode>di2_hw): Likewise.
2758         (float<uns>_<mode>si2_hw): Likewise.
2759         (fix_<mode>si2_hw): Likewise.
2760         (fixuns_<mode>si2_hw): Likewise.
2761         (float<uns>_<mode>di2_hw): Likewise.
2762         (float_<mode>di2_hw): Likewise.
2763         (float_<mode>si2_hw): Likewise.
2764         (floatuns_<mode>di2_hw): Likewise.
2765         (floatuns_<mode>si2_hw): Likewise.
2766         (xscvqp<su>wz_<mode>): Delete, no longer used.
2767         (xscvqp<su>dz_<mode>): Likewise.
2768         (xscv<su>dqp_<mode>): Likewise.
2769         (ieee128_mfvsrd_64bit): Likewise.
2770         (ieee128_mfvsrd_32bit): Likewise.
2771         (ieee128_mfvsrwz): Likewise.
2772         (ieee128_mtvsrw): Likewise.
2773         (ieee128_mtvsrd_64bit): Likewise.
2774         (ieee128_mtvsrd_32bit): Likewise.
2776 2017-01-31  Martin Liska  <mliska@suse.cz>
2778         PR ipa/79285
2779         * ipa-prop.c (ipa_free_all_node_params): Call release method
2780         instead of ~sumbol_summary to not to trigger double times
2781         dtor of hash_map.
2783 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
2785         PR tree-optimization/71691
2786         * bitmap.h (class auto_bitmap): New.
2787         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
2788         is_maybe_undefined instead of ssa_undefined_value_p.
2790 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2792         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2793         __S390_ARCH_LEVEL__ to __ARCH__.
2795 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
2797         PR tree-optimization/79267
2798         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
2799         if should_remove_lhs_p is true.
2801 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
2803         PR debug/63238
2804         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
2805         (add_alignment_attribute): New.
2806         (base_type_die): Add alignment attribute.
2807         (subrange_type_die): Likewise.
2808         (modified_type_die): Likewise.
2809         (gen_array_type_die): Likewise.
2810         (gen_descr_array_type_die: Likewise.
2811         (gen_enumeration_type_die): Likewise.
2812         (gen_subprogram_die): Likewise.
2813         (gen_variable_die): Likewise.
2814         (gen_field_die): Likewise.
2815         (gen_ptr_to_mbr_type_die): Likewise.
2816         (gen_struct_or_union_type_die): Likewise.
2817         (gen_subroutine_type_die): Likewise.
2818         (gen_typedef_die): Likewise.
2819         (base_type_cmp): Compare alignment attribute.
2821 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2823         PR target/79170
2824         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
2825         (setb_unsigned) New pattern for setb with CCUNS.
2826         * config/rs6000/rs6000.c (expand_block_compare): Use a different
2827         subfc./subfe sequence to avoid overflow problems.  Generate a
2828         shorter sequence with cmpld/setb for power9.
2829         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
2830         for generating subfc. instruction.
2831         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
2832         now uses this instruction.
2834 2017-01-30  Ian Lance Taylor  <iant@google.com>
2836         PR debug/79289
2837         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
2838         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
2840 2017-01-30  Martin Sebor  <msebor@redhat.com>
2842         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
2843         Move constant to the right of a relational operator.
2844         (get_mpfr_format_length, format_character, format_string): Ditto.
2845         (should_warn_p, maybe_warn): Same.
2847         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
2849 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
2851         PR lto/79061
2852         * asan.c (get_translation_unit_decl): Remove function.
2853         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
2855 2017-01-30  Martin Liska  <mliska@suse.cz>
2857         PR gcov-profile/79259
2858         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
2859         -fprofile-generate.
2861 2017-01-30  Martin Liska  <mliska@suse.cz>
2863         PR bootstrap/78985
2864         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
2865         Initialize variables with NULL value.
2867 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
2869         PR target/79260
2870         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
2871         tm_p_file.
2872         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
2874 2017-01-30  Richard Biener  <rguenther@suse.de>
2876         PR tree-optimization/79276
2877         * tree-vrp.c (process_assert_insertions): Properly adjust common
2878         when removing a duplicate.
2880         * gcc.dg/torture/pr79276.c: New testcase.
2882 2017-01-30  Richard Biener  <rguenther@suse.de>
2884         PR tree-optimization/79256
2885         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2886         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2887         alignment on TYPE.
2888         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
2890 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2892         PR target/79240
2893         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
2894         ("*r<noxa>sbg_<mode>_sll_bitmask")
2895         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2896         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
2897         Use contiguous_bitmask_nowrap_operand.
2899 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2901         PR target/79268
2902         * config/rs6000/altivec.h (vec_xl): Revise #define.
2903         (vec_xst): Likewise.
2905 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
2907         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
2909 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
2911         PR rtl-optimization/79194
2912         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
2913         traps before call to bypass_conditional_jumps.
2915 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
2917         PR tree-optimization/71374
2918         * lra-constraints.c (check_conflict_input_operands): New.
2919         (match_reload): Use it.
2921 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
2923         PR target/79131
2924         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
2925         account to calculate conflict_set.
2927 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
2929         PR rtl-optimization/78559
2930         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
2931         other_insn in combine.
2933 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
2935         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
2936         uint16_type_node for BT_UINT16.
2938 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
2940         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
2941         "RTL Tests" to menu.
2942         (GIMPLE Tests): New node.
2943         (RTL Tests): New node.
2945 2017-01-27  Richard Biener  <rguenther@suse.de>
2947         PR tree-optimization/79245
2948         * tree-loop-distribution.c (distribute_loop): Apply cost
2949         modeling also to detected patterns.
2951 2017-01-27  Richard Biener  <rguenther@suse.de>
2953         PR tree-optimization/71433
2954         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
2955         (compare_assert_loc): New function.
2956         (process_assert_insertions): Sort and optimize assert locations
2957         to remove duplicates and push down identical assertions on
2958         edges to their destination block.
2960 2017-01-27  Richard Biener  <rguenther@suse.de>
2962         PR tree-optimization/79244
2963         * tree-vrp.c (remove_range_assertions): Forcefully propagate
2964         out SSA names even if abnormal.
2966 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
2968         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
2969         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
2970         instead of MPFR_RNDN.
2972 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
2974         PR target/79239
2975         * arm.c (arm_option_override): Don't call build_target_option_node
2976         until after doing all option overrides.
2977         (arm_valid_target_attribute_tree): Likewise.
2979 2017-01-27  Martin Liska  <mliska@suse.cz>
2981         * doc/invoke.texi (-fprofile-arcs): Document profiling support
2982         for {cd}tors and C++ {cd}tors.
2984 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2986         * config/s390/s390.md ("*setmem_long_and")
2987         ("*setmem_long_and_31z"): Use zero_extend instead of and.
2989 2017-01-26  Martin Sebor  <msebor@redhat.com>
2991         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
2992         of precision.
2994 2017-01-26  Martin Sebor  <msebor@redhat.com>
2996         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
2997         HAVE_DFmode before using XFmode or DFmode.
2998         (parse_directive): Avoid using the z length modifier to avoid
2999         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
3001         PR middle-end/78703
3002         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
3003         to accept adjustment as an array.
3004         (get_int_range): New function.
3005         (struct directive): Make width and prec arrays.
3006         (directive::set_width, directive::set_precision): Call get_int_range.
3007         (format_integer, format_floating): Handle width and precision ranges.
3008         (format_string, parse_directive): Same.
3010 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3012         PR debug/79129
3013         * dwarf2out.c (generate_skeleton_bottom_up): For children with
3014         comdat_type_p set, just clone them, but keep the children in the
3015         original DIE.
3017         PR debug/78835
3018         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
3019         which have direct callers with -fvar-tracking-assignments enabled
3020         in the current TU.
3021         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
3022         inside of type units.
3024 2017-01-26  Martin Sebor  <msebor@redhat.com>
3026         PR middle-end/78703
3027         * gimple-ssa-sprintf.c (struct result_range): Add likely and
3028         unlikely counters.
3029         (struct format_result): Replace number_chars, number_chars_min,
3030         and number_chars_max with a single member of struct result_range.
3031         Remove bounded.
3032         (format_result::operator+=): Adjust.
3033         (struct fmtresult): Remove bounded.  Handle likely and unlikely
3034         counters.
3035         (fmtresult::adjust_for_width_or_precision): New function.
3036         (fmtresult:type_max_digits): New function.
3037         (bytes_remaining): Handle likely and unlikely counters.
3038         (min_bytes_remaining): Remove.
3039         (format_percent): Simplify.
3040         (format_integer, format_floating): Set likely and unlikely counters.
3041         (get_string_length, format_character, format_string): Same.
3042         (format_plain, should_warn_p): New function.
3043         (maybe_warn): Call should_warn_p.  Update diagnostic messages
3044         and handle those for all directives, including plain strings.
3045         (format_directive): Handle likely and unlikely counters.
3046         Remove unnecessary quoting from diagnostics.  Add an informational
3047         note.
3048         (add_bytes): Remove.
3049         (pass_sprintf_length::compute_format_length): Simplify.
3050         (try_substitute_return_value): Handle likely and unlikely counters.
3052 2017-01-26  Carl Love  <cel@us.ibm.com>
3054         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
3055         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
3057 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
3059         PR target/79131
3060         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
3061         endianess for subregs into account.
3062         * lra-constraints.c (lra_constraints): Do risky transformations
3063         always on the first iteration.
3064         * lra-lives.c (check_pseudos_live_through_calls): Add arg
3065         last_call_used_reg_set.
3066         (process_bb_lives): Define and use last_call_used_reg_set.
3067         * lra.c (lra): Always continue after lra_constraints on the first
3068         iteration.
3070 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
3072         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
3073         constant.
3074         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
3076 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3078         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
3079         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
3080         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
3081         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
3082         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
3083         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
3084         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
3085         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
3086         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
3088 2017-01-26  Marek Polacek  <polacek@redhat.com>
3090         PR c/79199
3091         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
3092         for the third operand.
3094 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3096         PR middle-end/79236
3097         * omp-low.c (struct omp_context): Add simt_stmt field.
3098         (scan_omp_for): Return omp_context *.
3099         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
3100         context to the _simt_ SIMD stmt.
3101         (lower_omp_for): For combined SIMD with sibling _simt_
3102         SIMD, make sure to use the same decls in _looptemp_
3103         clauses as in the sibling.
3105 2017-01-26  David Sherwood  <david.sherwood@arm.com>
3107         PR middle-end/79212
3108         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
3109         all contexts.
3111 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
3113         PR target/70465
3114         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
3115         emit fld b; fld a; if possible.
3117         * brig-builtins.def: Update copyright years.
3118         * config/arm/arm_acle_builtins.def: Update copyright years.
3120 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3122         PR target/79179
3123         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
3124         constraint instead of o for the stxsd instruction.
3126 2017-01-25  Carl Love  <cel@us.ibm.com>
3128         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
3129         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
3131 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
3133         * doc/invoke.texi (C++ Dialect Options): Fix typo.
3135 2017-01-25  Richard Biener  <rguenther@suse.de>
3137         PR tree-optimization/69264
3138         * target.def (vector_alignment_reachable): Improve documentation.
3139         * doc/tm.texi: Regenerate.
3140         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
3141         and add a comment.
3142         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
3143         earlier changes with respect to TYPE_USER_ALIGN.
3144         (vector_alignment_reachable_p): Likewise.  Improve dumping.
3146 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3148         PR target/79145
3149         * config/arm/arm.md (xordi3): Force constant operand into a register
3150         for TARGET_IWMMXT.
3152 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3154         * doc/invoke.texi (-fstore-merging): Correct default optimization
3155         levels at which it is enabled.
3156         (-O): Move -fstore-merging from list to...
3157         (-O2): ... Here.
3159 2017-01-25  Richard Biener  <rguenther@suse.de>
3161         PR debug/78363
3162         * omp-expand.c: Include debug.h.
3163         (expand_omp_taskreg): Make sure to generate early debug before
3164         outlining anything from a function.
3165         (expand_omp_target): Likewise.
3166         (grid_expand_target_grid_body): Likewise.
3168 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
3170         PR lto/79061
3171         * asan.c (get_translation_unit_decl): New function.
3172         (asan_add_global): Extract modules file name from globals
3173         TRANSLATION_UNIT_DECL name.
3175 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
3177         PR target/77439
3178         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
3179         for long calls with APCS frame and VFP.
3181 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
3183         * cfg.c (original_copy_tables_initialized_p): New function.
3184         * cfg.h (original_copy_tables_initialized_p): New decl.
3185         * cfgrtl.c (relink_block_chain): Guard the call to
3186         free_original_copy_tables with a call to
3187         original_copy_tables_initialized_p.
3188         * cgraph.h (symtab_node::native_rtl_p): New decl.
3189         * cgraphunit.c (symtab_node::native_rtl_p): New function.
3190         (symtab_node::needed_p): Don't assert for early assembly output
3191         for __RTL functions.
3192         (cgraph_node::finalize_function): Set "force_output" for __RTL
3193         functions.
3194         (cgraph_node::analyze): Bail out early for __RTL functions.
3195         (analyze_functions): Update assertion to support __RTL functions.
3196         (cgraph_node::expand): Bail out early for __RTL functions.
3197         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
3198         __RTL functions.
3199         * function.h (struct function): Update comment for field
3200         "pass_startwith".
3201         * gimple-expr.c: Include "tree-pass.h".
3202         (gimple_has_body_p): Return false for __RTL functions.
3203         * Makefile.in (OBJS): Add run-rtl-passes.o.
3204         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
3205         accessor.
3206         (gcc::pass_manager::get_clean_slate): New accessor.
3207         * passes.c: Include "insn-addr.h".
3208         (should_skip_pass_p): Add logging.  Update logic for running
3209         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
3210         property-provider override so it is only done for gimple passes.
3211         Don't skip dfinit.
3212         (skip_pass): New function.
3213         (execute_one_pass): Call skip_pass when skipping passes.
3214         * read-md.c (md_reader::read_char): Support filtering
3215         the input to a subset of line numbers.
3216         (md_reader::md_reader): Initialize fields
3217         m_first_line and m_last_line.
3218         (md_reader::read_file_fragment): New function.
3219         * read-md.h (md_reader::read_file_fragment): New decl.
3220         (md_reader::m_first_line): New field.
3221         (md_reader::m_last_line): New field.
3222         * read-rtl-function.c (function_reader::create_function): Only
3223         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
3224         curr_properties.  Set DECL_INITIAL to a dummy block.
3225         (read_rtl_function_body_from_file_range): New function.
3226         * read-rtl-function.h (read_rtl_function_body_from_file_range):
3227         New decl.
3228         * run-rtl-passes.c: New file.
3229         * run-rtl-passes.h: New file.
3231 2017-01-24 Jeff Law  <law@redhat.com>
3233         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
3234         buffer size.
3236 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
3238         PR tree-optimization/79159
3239         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
3240         (record_nonwrapping_iv): Improve boundary using above function if no
3241         value range information.
3243 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
3244             Martin Jambor  <mjambor@suse.cz>
3246         * brig-builtins.def: New file.
3247         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
3248         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
3249         (DEF_HSAIL_SAT_BUILTIN): Likewise.
3250         (DEF_HSAIL_INTR_BUILTIN): Likewise.
3251         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
3252         * builtin-types.def (BT_INT8): New.
3253         (BT_INT16): Likewise.
3254         (BT_UINT8): Likewise.
3255         (BT_UINT16): Likewise.
3256         (BT_FN_ULONG): Likewise.
3257         (BT_FN_UINT_INT): Likewise.
3258         (BT_FN_UINT_ULONG): Likewise.
3259         (BT_FN_UINT_LONG): Likewise.
3260         (BT_FN_UINT_PTR): Likewise.
3261         (BT_FN_ULONG_PTR): Likewise.
3262         (BT_FN_INT8_FLOAT): Likewise.
3263         (BT_FN_INT16_FLOAT): Likewise.
3264         (BT_FN_UINT32_FLOAT): Likewise.
3265         (BT_FN_UINT16_FLOAT): Likewise.
3266         (BT_FN_UINT8_FLOAT): Likewise.
3267         (BT_FN_UINT64_FLOAT): Likewise.
3268         (BT_FN_UINT16_UINT32): Likewise.
3269         (BT_FN_UINT32_UINT16): Likewise.
3270         (BT_FN_UINT16_UINT16_UINT16): Likewise.
3271         (BT_FN_INT_PTR_INT): Likewise.
3272         (BT_FN_UINT_PTR_UINT): Likewise.
3273         (BT_FN_LONG_PTR_LONG): Likewise.
3274         (BT_FN_ULONG_PTR_ULONG): Likewise.
3275         (BT_FN_VOID_UINT64_UINT64): Likewise.
3276         (BT_FN_UINT8_UINT8_UINT8): Likewise.
3277         (BT_FN_INT8_INT8_INT8): Likewise.
3278         (BT_FN_INT16_INT16_INT16): Likewise.
3279         (BT_FN_INT_INT_INT): Likewise.
3280         (BT_FN_UINT_FLOAT_UINT): Likewise.
3281         (BT_FN_FLOAT_UINT_UINT): Likewise.
3282         (BT_FN_ULONG_UINT_UINT): Likewise.
3283         (BT_FN_ULONG_UINT_PTR): Likewise.
3284         (BT_FN_ULONG_ULONG_ULONG): Likewise.
3285         (BT_FN_UINT_UINT_UINT): Likewise.
3286         (BT_FN_VOID_UINT_PTR): Likewise.
3287         (BT_FN_UINT_UINT_PTR: Likewise.
3288         (BT_FN_UINT32_UINT64_PTR): Likewise.
3289         (BT_FN_INT_INT_UINT_UINT): Likewise.
3290         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
3291         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
3292         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
3293         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
3294         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
3295         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
3296         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
3297         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
3298         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
3299         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
3300         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
3301         * doc/frontends.texi: List BRIG FE.
3302         * doc/install.texi (Testing): Add BRIG tesring requirements.
3303         * doc/invoke.texi (Overall Options): Mention BRIG.
3304         * doc/standards.texi (Standards): Doucment BRIG HSA version.
3306 2017-01-24  Richard Biener  <rguenther@suse.de>
3308         PR translation/79208
3309         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
3311 2017-01-24  Martin Jambor  <mjambor@suse.cz>
3313         PR bootstrap/79198
3314         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
3315         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
3316         and known_contexts.
3318 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
3320         PR middle-end/79123
3321         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
3322         casts from signed to unsigned really don't have a range.
3324 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
3326         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
3327         GMP_RNDx for compatiblity.
3329 2017-01-24  Martin Liska  <mliska@suse.cz>
3331         PR bootstrap/79132
3332         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
3333         that would prevent us to call alloca with -1 as argument.
3335 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
3337         * dwarf2out.c (output_compilation_unit_header, output_file_names):
3338         Avoid -Wformat-security warning.
3340 2017-01-23  Andrew Pinski  <apinski@cavium.com>
3342         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
3343         cost table.
3345 2017-01-23  Martin Sebor  <msebor@redhat.com>
3347         PR middle-end/78703
3348         * gimple-ssa-sprintf.c (warn_level): New global.
3349         (format_integer): Use it here and throughout the rest of the file.
3350         Use the same switch to compute sign as base.
3351         (maybe_warn): New function.
3352         (format_directive): Factor out warnings into maybe_warn.
3353         Add debugging output.  Use warn_level.
3354         (add_bytes): Use warn_level.
3355         (pass_sprintf_length::compute_format_length): Add debugging output.
3356         (try_substitute_return_value): Same.
3357         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
3359         PR middle-end/78703
3360         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
3361         (struct fmtresult, format_integer, format_floating): Adjust.
3362         (fmtresult::fmtresult): Set max correctly in two argument ctor.
3363         (get_string_length, format_string,format_directive): Same.
3364         (pass_sprintf_length::compute_format_length): Same.
3365         (try_substitute_return_value): Simplify slightly.
3367         PR middle-end/78703
3368         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
3369         (fmtresult::operator+=): Outlined.
3370         (struct fmtresult): Add ctors.
3371         (struct conversion_spec): Rename...
3372         (struct directive): ...to this.  Add and remove data members.
3373         (directive::set_width, directive::set_precision): New functions.
3374         (format_percent): Use fmtresult ctor.
3375         (get_width_and_precision): Remove.
3376         (format_integer): Make naming changes.  Avoid computing width and
3377         precision.
3378         (format_floating): Same.  Adjust indentation.
3379         (format_character, format_none): New functions.
3380         (format_string): Moved character handling to format_character.
3381         (format_directive): Remove arguments, change return type.
3382         (parse_directive): New function.
3383         (pass_sprintf_length::compute_format_length): Move directive
3384         parsing to parse_directive.
3386 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
3388         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
3389         (assign_assembler_name_if_needed): ... this.
3390         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
3391         (assign_assembler_name_if_needed): ... this.
3392         (free_lang_data_in_cgraph): Adjust callers.
3393         * cgraphunit.c (cgraph_node::analyze): Likewise.
3394         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
3395         Likewise.
3397 2017-01-23  Richard Biener  <rguenther@suse.de>
3399         PR tree-optimization/79088
3400         PR tree-optimization/79188
3401         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
3402         resetting loop bounds after last path deletion.  Reset loop
3403         bounds of the target loop, make code match the comments.
3404         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
3405         Make sure loops need no fixups.
3407 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3409         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
3410         exponent support with double type for first argument.
3411         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
3412         type returned by __builtin_vec_extract_sig,
3413         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
3414         functions from "vector int" to "vector unsigned int" or from
3415         "vector long long int" to "vector unsigned long long int".
3416         Changed type returned by __builtin_vec_extract_exp,
3417         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
3418         functions from "vector int" to "vector unsigned int" or from
3419         "vector long long int" to "vector unsigned long long int".
3420         Changed return type of __builtin_vec_test_data_class,
3421         __builtin_vec_test_data_class_sp, and
3422         __builtin_vec_test_data_class_dp from "vector int" to
3423         "vector bool int" or from "vector long long int" to "vector bool
3424         long long int" and changed second argument type from "unsigned
3425         int" to "int".  Added new overloaded function forms "vector float
3426         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
3427         "vector float __builtin_vec_insert_exp_sp (vector float, vector
3428         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
3429         double, vector unsigned long long int)" and "vector double
3430         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
3431         long int)".  Changed return type of
3432         __builtin_scalar_test_data_class and
3433         __builtin_scalar_test_data_class_sp and
3434         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
3435         int" and changed second argument from "unsigned int" to "int".
3436         Changed type returned by __builtin_scalar_test_neg,
3437         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
3438         from "int" to "bool int".  Added new overloaded function form
3439         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
3440         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
3441         exponent double-precision with floating point first argument.
3442         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
3443         documentation of scalar_test_data_class, scalar_test_neg,
3444         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
3445         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
3446         vec_test_data_class built-in functions to reflect refinements in
3447         their type signatures.
3449 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
3451         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
3452         size of buf.
3453         (aarch64_elf_asm_destructor): Likewise.
3455 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
3457         PR rtl-optimization/78634
3458         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
3459         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
3460         * ifcvt.c (noce_try_cmove): Add missing cost check.
3462         PR rtl-optimization/71724
3463         * combine.c (if_then_else_cond): Look for situations where it is
3464         beneficial to undo the work of one of the recursive calls.
3466 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
3468         PR tree-optimization/70754
3469         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
3470         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
3471         combined stmt before it if not NULL.
3472         (combine_chains): Process refs reversely and compute dominance point
3473         for root ref.
3475 2017-01-23  Martin Liska  <mliska@suse.cz>
3477         PR tree-optimization/79196
3478         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
3479         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
3480         instead of memcmp.
3481         (strlen_optimize_stmt): Call the renamed function.
3483 2017-01-23  Michael Matz  <matz@suse.de>
3485         PR tree-optimization/78384
3486         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
3488 2017-01-23  Richard Biener  <rguenther@suse.de>
3490         PR tree-optimization/79186
3491         * tree-vrp.c (register_new_assert_for): Make sure we've seen
3492         both incoming edges before moving an assert.
3494 2017-01-23  Martin Jambor  <mjambor@suse.cz>
3496         * ipa-prop.c (load_from_param_1): Removed.
3497         (load_from_unmodified_param): Bits from load_from_param_1 put back
3498         here.
3499         (load_from_param): Removed.
3500         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
3501         with stmt.  Reverted back to use of load_from_unmodified_param.
3503 2017-01-23  Martin Jambor  <mjambor@suse.cz>
3505         PR ipa/79108
3506         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
3507         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
3508         field a pointer to garbage collected vector, mark lattices and
3509         ipcp_orig_node with GTY((skip)).
3510         (ipa_get_param_count): Adjust to descriptors being a pointer.
3511         (ipa_get_param): Likewise.
3512         (ipa_get_type): Likewise.
3513         (ipa_get_param_move_cost): Likewise.
3514         (ipa_set_param_used): Likewise.
3515         (ipa_get_controlled_uses): Likewise.
3516         (ipa_set_controlled_uses): Likewise.
3517         (ipa_is_param_used): Likewise.
3518         (ipa_node_params_t): Move into garbage collector.  New methods insert
3519         and remove.
3520         (ipa_node_params_sum): Annotate wth GTY(()).
3521         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
3522         garbage collected.
3523         (ipa_load_from_parm_agg): Adjust declaration.
3524         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
3525         * ipa-profile.c (ipa_profile): Likewise.
3526         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
3527         (ipa_populate_param_decls): Make descriptors parameter garbage
3528         collected.
3529         (ipa_dump_param): Adjust to descriptors being a pointer.
3530         (ipa_alloc_node_params): Likewise.
3531         (ipa_initialize_node_params): Likewise.
3532         (load_from_param_1): Make descriptors parameter garbage collected.
3533         (load_from_unmodified_param): Likewise.
3534         (load_from_param): Likewise.
3535         (ipa_load_from_parm_agg): Likewise.
3536         (ipa_node_params::~ipa_node_params): Removed.
3537         (ipa_free_all_node_params): Remove call to delete operator.
3538         (ipa_node_params_t::insert): New.
3539         (ipa_node_params_t::remove): Likewise.
3540         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
3541         copy known_csts and known_contexts vectors.
3542         (ipa_read_node_info): Adjust to descriptors being a pointer.
3543         (ipcp_modif_dom_walker): Make m_descriptors field garbage
3544         collected.
3545         (ipcp_transform_function): Make descriptors variable garbage
3546         collected.
3548 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
3550         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
3551         * config/i386/avx512dqintrin.h: Ditto.
3552         * config/i386/avx512fintrin.h: Ditto.
3553         * gcc/config/i386/i386.c: Handle new builtins.
3554         * config/i386/i386-builtin.def: Add new builtins.
3555         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
3556         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
3558 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
3559             Martin Liska  <mliska@suse.cz>
3561         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
3562         * asan.c (asan_expand_poison_ifn): Support stores and use
3563         appropriate ASAN report function.
3564         * internal-fn.c (expand_ASAN_POISON_USE): New function.
3565         * internal-fn.def (ASAN_POISON_USE): Declare.
3566         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
3567         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
3568         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
3569         ASAN_POISON calls w/o LHS.
3570         * tree-ssa.c (execute_update_addresses_taken): Create clobber
3571         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
3572         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
3573         * gimplify.c (asan_poison_variables): Add attribute
3574         use_after_scope_memory to variables that really needs to live
3575         in memory.
3576         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
3577         having the attribute.
3579 2017-01-23  Martin Liska  <mliska@suse.cz>
3581         * asan.c (create_asan_shadow_var): New function.
3582         (asan_expand_poison_ifn): Likewise.
3583         * asan.h (asan_expand_poison_ifn): New declaration.
3584         * internal-fn.c (expand_ASAN_POISON): Likewise.
3585         * internal-fn.def (ASAN_POISON): New builtin.
3586         * sanopt.c (pass_sanopt::execute): Expand
3587         asan_expand_poison_ifn.
3588         * tree-inline.c (copy_decl_for_dup_finish): Make function
3589         external.
3590         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
3591         * tree-ssa.c (is_asan_mark_p): New function.
3592         (execute_update_addresses_taken): Rewrite local variables
3593         (identified just by use-after-scope as addressable) into SSA.
3595 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
3597         * doc/install.texi (Specific): opensource.apple.com uses https
3598         now. Remove trailing slash.
3600 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
3602         * README.Portability: Remove note on an Irix compatibility issue.
3604 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
3606         * gcov.c (INCLUDE_ALGORITHM): Define.
3607         (INCLUDE_VECTOR): Define.
3608         No longer include <vector> and <algorithm> directly.
3610 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
3612         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
3613         to https.
3614         * doc/invoke.texi (Code Gen Options): Ditto.
3616 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
3618         PR lto/78407
3619         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
3621 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
3623         rtl-optimization/79125
3624         * cprop.c (local_cprop_pass): Handle cases where we make an
3625         unconditional trap.
3627 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
3629         PR target/61729
3630         PR target/77850
3631         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
3632         read from, for big endian.
3634 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
3636         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
3637         register pauth builtins for LP64 only.
3639 2017-01-20  Marek Polacek  <polacek@redhat.com>
3641         PR c/79152
3642         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
3643         non-case labels.
3645 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
3647         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
3648         of safelen status.
3649         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
3650         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
3651         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
3653 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3655         PR target/71270
3656         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
3657         in big-endian mode when they are not a single duplicated value.
3659 2017-01-20  Richard Biener  <rguenther@suse.de>
3661         * BASE-VER: Bump to 7.0.1.
3663 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
3665         * omp-low.c (omplow_simd_context): New struct.  Use it...
3666         (lower_rec_simd_input_clauses): ...here and...
3667         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
3668         references to idx, lane, max_vf, is_simt.
3670 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
3672         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
3673         mcpu=nps400.
3675 2017-01-20  Martin Jambor  <mjambor@suse.cz>
3677         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
3678         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
3679         gt-hsa-common.h.
3680         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
3681         (GTFILES): Rename hsa.c to hsa-common.c.
3682         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
3683         * hsa-dump.c: Likewise.
3684         * hsa-gen.c: Likewise.
3685         * hsa-regalloc.c: Likewise.
3686         * ipa-hsa.c: Likewise.
3687         * omp-expand.c: Likewise.
3688         * omp-low.c: Likewise.
3689         * toplev.c: Likewise.
3691 2017-01-20  Marek Polacek  <polacek@redhat.com>
3693         PR c/64279
3694         * doc/invoke.texi: Document -Wduplicated-branches.
3695         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
3696         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
3697         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
3698         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
3699         return 0 only when not OEP_LEXICOGRAPHIC.
3700         (fold_build_cleanup_point_expr): Use the expression
3701         location when building CLEANUP_POINT_EXPR.
3702         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
3703         * tree.c (add_expr): Handle error_mark_node.
3705 2017-01-20  Martin Liska  <mliska@suse.cz>
3707         PR lto/69188
3708         * tree-profile.c (init_ic_make_global_vars): Do not call
3709         finalize_decl.
3710         (gimple_init_gcov_profiler): Likewise.
3712 2017-01-20  Martin Liska  <mliska@suse.cz>
3714         PR ipa/71190
3715         * cgraph.h (maybe_create_reference): Remove argument and
3716         update comment.
3717         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
3718         argument.
3719         * ipa-cp.c (create_specialized_node): Likewise.
3720         * symtab.c (symtab_node::maybe_create_reference): Handle
3721         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
3723 2017-01-20  Martin Liska  <mliska@suse.cz>
3725         * read-rtl-function.c (function_reader::create_function): Use
3726         build_decl instread of build_decl_stat.
3728 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
3730         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
3731         * config/i386/avx512dqintrin.h: Ditto.
3732         * config/i386/avx512fintrin.h: Ditto.
3733         * config/i386/i386-builtin-types.def: Add new types.
3734         * gcc/config/i386/i386.c: Handle new types.
3735         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
3736         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
3737         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
3738         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
3739         (__builtin_ia32_kshiftridi): New.
3740         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
3742 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
3744         PR target/78875
3745         PR target/79140
3746         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
3747         define to rs6000_init_stack_protect_guard.
3748         (rs6000_init_stack_protect_guard): New function.
3750 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
3751             Yunqiang Su  <yunqiang.su@imgtec.com>
3753         * config.gcc (supported_defaults): Add madd4.
3754         (with_madd4): Add validation.
3755         (all_defaults): Add madd4.
3756         * config/mips/mips.opt (mmadd4): New option.
3757         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3758         mmadd4.
3759         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3760         __mips_no_madd4.
3761         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
3762         (ISA_HAS_FUSED_MADD4): Likewise.
3763         * gcc/doc/invoke.texi (-mmadd4): Document the new option.
3764         * gcc/doc/install.texi (--with-madd4): Document the new option.
3766 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3768         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
3769         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
3770         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
3771         (aarch64_init_pauth_hint_builtins): New.
3772         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
3773         (aarch64_expand_builtin): Expand new builtins.
3775 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3777         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
3778         * combine-stack-adj.c (no_unhandled_cfa): Handle
3779         REG_CFA_TOGGLE_RA_MANGLE.
3780         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
3781         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
3782         info for return address signing.
3783         (aarch64_expand_epilogue): Likewise.
3785 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3787         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
3788         * config/aarch64/aarch64-protos.h
3789         (aarch64_return_address_signing_enabled): New declaration.
3790         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
3791         New function.
3792         (aarch64_expand_prologue): Sign return address before it's pushed onto
3793         stack.
3794         (aarch64_expand_epilogue): Authenticate return address fetched from
3795         stack.
3796         (aarch64_override_options): Sanity check for ILP32 and ISA level.
3797         (aarch64_attributes): New function attributes for "sign-return-address".
3798         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
3799         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
3800         ("*do_return"): Generate combined instructions according to key index.
3801         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
3802         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
3803         iterators.
3804         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
3805         * config/aarch64/aarch64.opt (msign-return-address=): New.
3806         * doc/extend.texi (AArch64 Function Attributes): Documents
3807         "sign-return-address=".
3808         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
3810 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
3812         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
3813         overall option summary.
3815 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
3817         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
3818         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
3819         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
3820         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
3822 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
3824         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
3825         -mpower9-minmax by default for -mcpu=power9.
3826         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
3827         128-bit floating point.
3829 2017-01-20  Alan Modra  <amodra@gmail.com>
3831         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
3832         optimizing for size.
3834 2017-01-20  Alan Modra  <amodra@gmail.com>
3836         PR target/79144
3837         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
3838         for strcmp and strncmp from corresponding builtin decl.
3840 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
3842         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
3843         instead of i386/rtems-64.h.
3844         * config/i386/rtems-64.h: Remove.
3846 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
3848         PR target/78478
3849         Revert:
3850         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
3852         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
3854 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
3856         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
3857         Change int to HOST_WIDE_INT.
3858         * config/aarch64/aarch64-protos.h
3859         (aarch64_simd_gen_const_vector_dup): Likewise.
3860         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
3862 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
3864         * langhooks-def.h (lhd_type_for_size): New decl.
3865         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
3866         * langhooks.c (lhd_type_for_size): New function, taken from
3867         lto_type_for_size.
3869 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
3871         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
3872         define_bypass for CR latency.
3873         (power9-cracked-alu): Update bypass latency and remove power9-branch.
3874         (power9-alu2): Add define_bypass for CR latency.
3875         (power9-cmp): New.
3876         (power9-mul): Update insn latency.
3877         (power9-mul-compare): Update insn latency, bypass latency and remove
3878         power9-branch.
3880 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3882         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3883         Delete.
3884         * config/aarch64/aarch64.md
3885         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
3886         aarch64_nopcrelative_literal_loads.
3887         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3889 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
3891         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
3892         TARGET_LOONGSON_3A.
3893         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
3895 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
3897         PR target/78176
3898         * config.gcc (supported_defaults): Add lxc1-sxc1.
3899         (with_lxc1_sxc1): Add validation.
3900         (all_defaults): Add lxc1-sxc1.
3901         * config/mips/mips.opt (mlxc1-sxc1): New option.
3902         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3903         mlxc1-sxc1.
3904         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
3905         __mips_no_lxc1_sxc1.
3906         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
3907         * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
3908         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
3910 2017-01-19  Richard Biener  <rguenther@suse.de>
3912         PR tree-optimization/72488
3913         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
3914         sure to restore SSA info.
3915         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
3917 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
3919         PR rtl-optimization/79121
3920         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
3921         of the inner type when shifting an extended value.
3923 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
3925         PR lto/78407
3926         * symtab.c (symtab_node::equal_address_to): Fix comparing of
3927         interposable aliases.
3929 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
3931         PR target/78516
3932         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
3933         Use the evmergelohi instruction.
3934         (mov_si<mode>_e500_subreg4_2_le): Likewise.
3935         (mov_sitf_e500_subreg8_2_be): Likewise.
3936         (mov_sitf_e500_subreg12_2_le): Likewise.
3937         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
3938         (mov_si<mode>_e500_subreg4_2_be): Likewise.
3939         (mov_sitf_e500_subreg8_2_le): Likewise.
3940         (mov_sitf_e500_subreg12_2_be): Likewise.
3942 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3944         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
3945         attribute from vecsimple to vecperm.
3946         (altivec_vbpermq2): Likewise.
3948 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3950         PR target/79040
3951         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
3953 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3954         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
3955         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
3956         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
3957         case where N arg is SIZE_MAX.
3958         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
3959         (cmpstrsi): Add pattern.
3961 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3963         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3964         __builtin_vec_revb builtins.
3965         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
3966         built-in functions to support generation of the ISA 3.0 XXBR<x>
3967         vector byte reverse instructions.
3968         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
3969         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
3970         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
3971         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
3972         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
3973         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
3974         (P9V_BUILTIN_VEC_REVB): Likewise.
3975         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
3976         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
3977         (p9_xxbrq_v16qi): Likewise.
3978         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
3979         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
3980         (p9_xxbrh_v8hi): Likewise.
3981         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
3982         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
3983         vec_revb built-in functions.
3985 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
3987         PR rtl-optimization/78952
3988         * config/i386/i386.md (any_extract): New code iterator.
3989         (*insvqi_2): Use any_extract for source operand.
3990         (*insvqi_3): Use any_shiftrt for source operand.
3992 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
3994         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
3995         New function.
3996         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
3998 2017-01-18  Matthias Klose  <doko@ubuntu.com>
4000         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
4002 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4004         * config/rs6000/altivec.h (vec_bperm): Change #define.
4005         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
4006         (altivec_vbpermq2): New define_insn.
4007         (altivec_vbpermd): Likewise.
4008         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
4009         function interface.
4010         (VBPERMD): Likewise.
4011         (VBPERM): New polymorphic function interface.
4012         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
4013         Add entries for P9V_BUILTIN_VEC_VBPERM.
4014         * doc/extend.texi: Add interfaces for vec_bperm.
4016 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4018         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
4019         first letter of error messages.
4020         (s390_resolve_overloaded_builtin): Likewise.
4021         * config/s390/s390.c (s390_expand_builtin): Likewise.
4022         (s390_invalid_arg_for_unprototyped_fn): Likewise.
4023         (s390_valid_target_attribute_inner_p): Likewise.
4024         * config/s390/s390.md ("tabort"): Likewise.
4026 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
4028         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
4029         (ISA_AVOID_DIV_HILO): New macro.
4030         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
4031         (ISA_HAS_DDIV): Likewise.
4033 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4035         * doc/invoke.texi (fabi-version): Correct number of occurrences.
4037 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4039         * doc/invoke.texi (fabi-version): Spelling fix.
4041 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4043         PR c++/70182
4044         * doc/invoke.texi (fabi-version): Mention mangling fix for
4045         operator names.
4047 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
4049         PR c++/77489
4050         * doc/invoke.texi (fabi-version): Document discriminator mangling.
4052 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
4054         PR target/78875
4055         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
4056         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
4057         the new options.
4058         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
4059         flexible settings.
4060         (stack_protect_test): Ditto.
4061         * config/rs6000/rs6000.opt (mstack-protector-guard=,
4062         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
4063         options.
4064         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
4065         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
4066         -mstack-protector-guard-offset=.
4067         (RS/6000 and PowerPC Options): Ditto.
4069 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
4071         * config/i386/i386.h (MASK_CLASS_P): New define.
4072         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
4073         there are no registers from different register sets also when
4074         mask registers are used.  Update function comment.
4075         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
4076         to (*k/*r) and (*k/*km) alternatives.
4078 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
4080         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
4081         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
4082         (EH_RETURN_HANDLER_RTX): New define.
4083         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
4084         Force frame pointer in EH return functions.
4085         (aarch64_expand_epilogue): Add barrier for eh_return.
4086         (aarch64_final_eh_return_addr): Remove.
4087         (aarch64_eh_return_handler_rtx): New function.
4088         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
4089         Remove.
4090         (aarch64_eh_return_handler_rtx): New prototype.
4092 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4094         * config/rs6000/altivec.h (vec_rlmi): New #define.
4095         (vec_vrlnm): Likewise.
4096         (vec_rlnm): Likewise.
4097         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
4098         (UNSPEC_VRLNM): Likewise.
4099         (VIlong): New mode iterator.
4100         (altivec_vrl<VI_char>mi): New define_insn.
4101         (altivec_vrl<VI_char>nm): Likewise.
4102         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
4103         function entry.
4104         (VRLDNM): Likewise.
4105         (RLNM): New polymorphic function entry.
4106         (VRLWMI): New monomorphic function entry.
4107         (VRLDMI): Likewise.
4108         (RLMI): New polymorphic function entry.
4109         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
4110         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
4111         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
4112         vec_vrlnm.
4114 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4116         PR debug/78839
4117         * dwarf2out.c (field_byte_offset): Restore the
4118         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
4119         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
4120         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
4121         of build2 + fold.
4123 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4125         PR ada/67205
4126         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
4128 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4130         PR debug/71669
4131         * dwarf2out.c (add_data_member_location_attribute): For constant
4132         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
4133         instead of DW_AT_data_member_location, DW_AT_bit_offset and
4134         DW_AT_byte_size attributes.
4136 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4138         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
4139         after forcing to constant memory when the code model is medium.
4141 2017-01-17  Julia Koval  <julia.koval@intel.com>
4143         PR target/76731
4144         * config/i386/avx512fintrin.h
4145         (_mm512_i32gather_ps): Change __addr type to void const*.
4146         (_mm512_mask_i32gather_ps): Ditto.
4147         (_mm512_i32gather_pd): Ditto.
4148         (_mm512_mask_i32gather_pd): Ditto.
4149         (_mm512_i64gather_ps): Ditto.
4150         (_mm512_mask_i64gather_ps): Ditto.
4151         (_mm512_i64gather_pd): Ditto.
4152         (_mm512_mask_i64gather_pd): Ditto.
4153         (_mm512_i32gather_epi32): Ditto.
4154         (_mm512_mask_i32gather_epi32): Ditto.
4155         (_mm512_i32gather_epi64): Ditto.
4156         (_mm512_mask_i32gather_epi64): Ditto.
4157         (_mm512_i64gather_epi32): Ditto.
4158         (_mm512_mask_i64gather_epi32): Ditto.
4159         (_mm512_i64gather_epi64): Ditto.
4160         (_mm512_mask_i64gather_epi64): Ditto.
4161         (_mm512_i32scatter_ps): Change __addr type to void*.
4162         (_mm512_mask_i32scatter_ps): Ditto.
4163         (_mm512_i32scatter_pd): Ditto.
4164         (_mm512_mask_i32scatter_pd): Ditto.
4165         (_mm512_i64scatter_ps): Ditto.
4166         (_mm512_mask_i64scatter_ps): Ditto.
4167         (_mm512_i64scatter_pd): Ditto.
4168         (_mm512_mask_i64scatter_pd): Ditto.
4169         (_mm512_i32scatter_epi32): Ditto.
4170         (_mm512_mask_i32scatter_epi32): Ditto.
4171         (_mm512_i32scatter_epi64): Ditto.
4172         (_mm512_mask_i32scatter_epi64): Ditto.
4173         (_mm512_i64scatter_epi32): Ditto.
4174         (_mm512_mask_i64scatter_epi32): Ditto.
4175         (_mm512_i64scatter_epi64): Ditto.
4176         (_mm512_mask_i64scatter_epi64): Ditto.
4177         * config/i386/avx512pfintrin.h
4178         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
4179         (_mm512_mask_prefetch_i32gather_ps): Ditto.
4180         (_mm512_mask_prefetch_i64gather_pd): Ditto.
4181         (_mm512_mask_prefetch_i64gather_ps): Ditto.
4182         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
4183         (_mm512_prefetch_i32scatter_ps): Ditto.
4184         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
4185         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
4186         (_mm512_prefetch_i64scatter_pd): Ditto.
4187         (_mm512_prefetch_i64scatter_ps): Ditto.
4188         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
4189         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
4190         * config/i386/avx512vlintrin.h
4191         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
4192         (_mm_mmask_i32gather_ps): Ditto.
4193         (_mm256_mmask_i32gather_pd): Ditto.
4194         (_mm_mmask_i32gather_pd): Ditto.
4195         (_mm256_mmask_i64gather_ps): Ditto.
4196         (_mm_mmask_i64gather_ps): Ditto.
4197         (_mm256_mmask_i64gather_pd): Ditto.
4198         (_mm_mmask_i64gather_pd): Ditto.
4199         (_mm256_mmask_i32gather_epi32): Ditto.
4200         (_mm_mmask_i32gather_epi32): Ditto.
4201         (_mm256_mmask_i32gather_epi64): Ditto.
4202         (_mm_mmask_i32gather_epi64): Ditto.
4203         (_mm256_mmask_i64gather_epi32): Ditto.
4204         (_mm_mmask_i64gather_epi32): Ditto.
4205         (_mm256_mmask_i64gather_epi64): Ditto.
4206         (_mm_mmask_i64gather_epi64): Ditto.
4207         (_mm256_i32scatter_ps): Change __addr type to void*.
4208         (_mm256_mask_i32scatter_ps): Ditto.
4209         (_mm_i32scatter_ps): Ditto.
4210         (_mm_mask_i32scatter_ps): Ditto.
4211         (_mm256_i32scatter_pd): Ditto.
4212         (_mm256_mask_i32scatter_pd): Ditto.
4213         (_mm_i32scatter_pd): Ditto.
4214         (_mm_mask_i32scatter_pd): Ditto.
4215         (_mm256_i64scatter_ps): Ditto.
4216         (_mm256_mask_i64scatter_ps): Ditto.
4217         (_mm_i64scatter_ps): Ditto.
4218         (_mm_mask_i64scatter_ps): Ditto.
4219         (_mm256_i64scatter_pd): Ditto.
4220         (_mm256_mask_i64scatter_pd): Ditto.
4221         (_mm_i64scatter_pd): Ditto.
4222         (_mm_mask_i64scatter_pd): Ditto.
4223         (_mm256_i32scatter_epi32): Ditto.
4224         (_mm256_mask_i32scatter_epi32): Ditto.
4225         (_mm_i32scatter_epi32): Ditto.
4226         (_mm_mask_i32scatter_epi32): Ditto.
4227         (_mm256_i32scatter_epi64): Ditto.
4228         (_mm256_mask_i32scatter_epi64): Ditto.
4229         (_mm_i32scatter_epi64): Ditto.
4230         (_mm_mask_i32scatter_epi64): Ditto.
4231         (_mm256_i64scatter_epi32): Ditto.
4232         (_mm256_mask_i64scatter_epi32): Ditto.
4233         (_mm_i64scatter_epi32): Ditto.
4234         (_mm_mask_i64scatter_epi32): Ditto.
4235         (_mm256_i64scatter_epi64): Ditto.
4236         (_mm256_mask_i64scatter_epi64): Ditto.
4237         (_mm_i64scatter_epi64): Ditto.
4238         (_mm_mask_i64scatter_epi64): Ditto.
4239         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
4240         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
4241         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
4242         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
4243         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
4244         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
4245         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
4246         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
4247         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
4248         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
4249         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
4250         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
4251         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
4252         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
4253         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
4254         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
4255         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
4256         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
4257         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
4258         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
4259         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
4260         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
4261         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
4262         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
4263         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
4264         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
4265         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
4266         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
4267         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
4268         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
4269         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
4270         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
4271         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
4272         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
4273         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
4274         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
4275         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
4276         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
4277         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
4278         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
4279         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
4280         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
4281         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
4282         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
4283         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
4284         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
4285         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
4286         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
4287         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
4288         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
4289         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
4290         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
4291         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
4292         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
4293         definitions accordingly.
4295 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
4296             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
4298         PR target/79079
4299         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
4300         gen_lowpart.
4302 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
4304         PR target/79058
4305         * ira-conflicts.c (ira_build_conflicts): Update total conflict
4306         hard regs for inner regno.
4308 2017-01-17  Martin Liska  <mliska@suse.cz>
4310         PR ipa/71207
4311         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
4312         assumption and add comment.
4314 2017-01-17  Nathan Sidwell  <nathan@acm.org>
4316         * ipa-visibility.c (localize_node): New function, broken out of ...
4317         (function_and_variable_visibility): ... here. Call it.
4319 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
4321         PR middle-end/77445
4322         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4323         correctly set frequency of oudgoing edge.
4324         (duplicate_thread_path): Fix profile updating.
4326 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4328         PR other/79046
4329         * configure.ac: Add GCC_BASE_VER.
4330         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
4331         version from BASE-VER file.
4332         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
4333         (gcc.o): Depend on $(BASEVER).
4334         * common.opt (dumpfullversion): New option.
4335         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
4336         * doc/invoke.texi: Document -dumpfullversion.
4337         * doc/install.texi: Document --with-gcc-major-version-only.
4338         * configure: Regenerated.
4340 2017-01-17  Richard Biener  <rguenther@suse.de>
4342         PR tree-optimization/71433
4343         * tree-vrp.c (register_new_assert_for): Merge same asserts
4344         on all incoming edges.
4345         (process_assert_insertions_for): Handle insertions at the
4346         beginning of BBs.
4348 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
4350         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
4351         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
4353 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4355         PR target/78633
4356         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
4357         RTL sharing.
4359 2017-01-17  Alan Modra  <amodra@gmail.com>
4361         PR target/79066
4362         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
4363         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
4364         symbolic stack limit when pic.
4366 2017-01-16  Martin Sebor  <msebor@redhat.com>
4368         PR tree-optimization/78608
4369         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
4371 2017-01-16  Jeff Law  <law@redhat.com>
4373         Revert:
4374         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
4375         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
4376         for several include directories that may be relative to sysroot.
4377         * config/i386/x-mingw32 (gplus_includedir): Define.
4378         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
4379         (native_system_includedir): Likewise.
4380         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
4381         override if TARGET_SYSTEM_ROOT is defined.
4382         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
4384         PR tree-optimization/79090
4385         PR tree-optimization/33562
4386         PR tree-optimization/61912
4387         PR tree-optimization/77485
4388         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
4389         and computed trims into the dump file.
4391 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
4393         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
4395 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
4397         PR c/79089
4398         * gimplify.c (gimplify_init_constructor): If want_value and
4399         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
4400         fix.
4402         PR target/79080
4403         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
4404         sequence.  Formatting fixes.
4405         (doloop_optimize): Formatting fixes.
4407         PR driver/49726
4408         * gcc.c (debug_level_greater_than_spec_func): New function.
4409         (static_spec_functions): Add debug-level-gt spec function.
4410         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
4411         !g0.
4412         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4413         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4414         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
4415         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
4416         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
4417         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
4419 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
4421         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
4422         QImode fixups to general and mask registers only.
4424 2017-01-16  Carl Love  <cel@us.ibm.com>
4426         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
4427         for built-in functions
4428         vector signed char vec_nabs (vector signed char)
4429         vector signed short vec_nabs (vector signed short)
4430         vector signed int vec_nabs (vector signed int)
4431         vector signed long long vec_nabs (vector signed long long)
4432         vector float vec_nabs (vector float)
4433         vector double vec_nabs (vector double)
4434         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
4435         and NABS overload.
4436         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
4437         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
4438         * doc/extend.texi: Update the documentation file for the new built-in
4439         functions.
4441 2017-01-16  Martin Sebor  <msebor@redhat.com>
4443         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
4444         message.
4446 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4448         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
4449         UNSPEC_VSX__XXSPLTD to require special splat handling.
4451 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
4453         PR bootstrap/78616
4454         * system.h: Poison strndup.
4456 2017-01-16  Alan Modra  <amodra@gmail.com>
4458         PR target/79098
4459         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
4460         use a switch.
4462 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
4464         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
4466 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
4468         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
4469         call recog here.  Assert that INSN_CODE (insn) is non-negative.
4471 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
4473         PR target/72749
4474         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
4475         fallthrough.
4476         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
4477         in the currently scheduled RTL fragment.
4479 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
4481         PR rtl-optimization/78751
4482         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
4483         give up.
4485 2017-01-14  Jeff Law  <law@redhat.com>
4487         PR tree-optimization/79090
4488         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
4489         variable length stores.
4490         (compute_trims): Delete dead assignment to *trim_tail.
4491         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
4492         zero length.
4494 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
4496         PR rtl-optimization/78626
4497         PR rtl-optimization/78727
4498         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
4499         of a block, and split such blocks after everything else is finished.
4501 2017-01-14  Alan Modra  <amodra@gmail.com>
4503         PR target/72749
4504         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
4505         target legitimate_combined_insn.
4506         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
4507         (rs6000_legitimate_combined_insn): New function.
4508         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
4509         all uses.
4510         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
4511         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
4512         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
4514 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
4516         * doc/frontends.texi (G++ and GCC): Remove references to Java.
4518 2017-01-13  Jeff Law  <law@redhat.com>
4520         PR tree-optimization/33562
4521         PR tree-optimization/61912
4522         PR tree-optimization/77485
4523         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
4524         a statement.
4525         (delete_dead_assignment): Likewise.
4526         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
4527         statement to delete_dead_call and delete_dead_assignment.
4529 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
4531         PR c/78304
4532         * substring-locations.c (format_warning_va): Strengthen case 1 so
4533         that both endpoints of the substring must be within the format
4534         range for just the substring to be printed.
4536 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
4538         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
4539         * config/i386/i386.c (ix86_target_string): Add missing options
4540         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
4541         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
4542         flags_other and ix86_target_other to flags2_other.  Display unknown
4543         isa2 options.
4544         (ix86_valid_target_attribute_inner_p): Add missing options and
4545         reorder options by implied ISAs, as in ix86_target_string.
4547 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4549         * hash-table.h (hash_table::too_empty_p): New function.
4550         (hash_table::expand): Use it.
4551         (hash_table::traverse): Likewise.
4552         (hash_table::empty_slot): Use sizeof (value_type) instead of
4553         sizeof (PTR) to convert bytes to elements.  Shrink the table
4554         if the current size is excessive for the current number of
4555         elements.
4557 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4559         * ira-costs.c (record_reg_classes): Break from the inner loop
4560         early once alt_fail is known to be true.  Update outer loop
4561         handling accordingly.
4563 2017-01-13  Jeff Law  <law@redhat.com>
4565         * tree-ssa-dse.c (decrement_count): New function.
4566         (increment_start_addr, maybe_trim_memstar_call): Likewise.
4567         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
4568         when we know the partially dead statement is a mem* function.
4570         PR tree-optimization/61912
4571         PR tree-optimization/77485
4572         * tree-ssa-dse.c: Include expr.h.
4573         (maybe_trim_constructor_store): New function.
4574         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
4576         PR tree-optimization/33562
4577         PR tree-optimization/61912
4578         PR tree-optimization/77485
4579         * doc/invoke.texi: Document new dse-max-object-size param.
4580         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
4581         * tree-ssa-dse.c: Include params.h.
4582         (dse_store_status): New enum.
4583         (initialize_ao_ref_for_dse): New, partially extracted from
4584         dse_optimize_stmt.
4585         (valid_ao_ref_for_dse, normalize_ref): New.
4586         (setup_live_bytes_from_ref, compute_trims): Likewise.
4587         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
4588         (maybe_trim_partially_dead_store): Likewise.
4589         (maybe_trim_complex_store): Likewise.
4590         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
4591         Track what bytes live from the original store.  Return tri-state
4592         for dead, partially dead or live.
4593         (dse_dom_walker): Add constructor, destructor and new private members.
4594         (delete_dead_call, delete_dead_assignment): New extracted from
4595         dse_optimize_stmt.
4596         (dse_optimize_stmt): Make a member of dse_dom_walker.
4597         Use initialize_ao_ref_for_dse.
4599         PR tree-optimization/33562
4600         PR tree-optimization/61912
4601         PR tree-optimization/77485
4602         * sbitmap.h (bitmap_count_bits): Prototype.
4603         (bitmap_clear_range, bitmap_set_range): Likewise.
4604         * sbitmap.c (bitmap_clear_range): New function.
4605         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
4607 2017-01-13  Martin Liska  <mliska@suse.cz>
4609         PR ipa/79043
4610         * function.c (set_cfun): Add new argument force.
4611         * function.h (set_cfun): Likewise.
4612         * ipa-inline-transform.c (inline_call): Use the function when
4613         strict alising from is dropped for function we inline to.
4615 2017-01-13  Richard Biener  <rguenther@suse.de>
4617         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
4618         for dumping GIMPLE INTEGER_CSTs.
4620 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4622         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
4623         to 201112L since C++17.
4625 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
4627         PR sanitizer/78887
4628         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
4629         if -fsanitize=kernel-address is present.
4631 2017-01-13  Richard Biener  <rguenther@suse.de>
4633         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
4634         as _Literal ( type ) number in case usual suffixes do not
4635         preserve all information.
4637 2017-01-13  Richard Biener  <rguenther@suse.de>
4639         PR tree-optimization/77283
4640         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
4641         and ssa-iterators.h.
4642         (is_feasible_trace): Implement a cost model based on joiner
4643         PHI node uses.
4645 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4647         PR target/79004
4648         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
4649         char or short to __float128/_Float128 directly.
4651 2017-01-12  Martin Sebor  <msebor@redhat.com>
4653         to -Wformat-overflow.
4654         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
4655         (min_bytes_remaining): Same.
4656         (get_string_length): Same.
4657         (format_string): Same.
4658         (format_directive): Same.
4659         (add_bytes): Same.
4660         (pass_sprintf_length::handle_gimple_call): Same.
4662 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
4664         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
4665         info.nowrite calls with no lhs that can't throw.  Return bool
4666         whether gsi_remove has been called or not.
4667         (pass_sprintf_length::handle_gimple_call): Return bool whether
4668         try_substitute_return_value called gsi_remove.  Formatting fix.
4669         (pass_sprintf_length::execute): Don't use gsi_remove if
4670         handle_gimple_call returned true.
4672         PR bootstrap/79069
4673         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
4674         be removed due to side-effects, don't remove following barrier nor
4675         turn the successor edge into fallthru edge.
4677 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4679         PR target/79044
4680         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
4681         element-reversing loads and stores as not swappable.
4683 2017-01-12  Nathan Sidwell  <nathan@acm.org>
4684             Nicolai Stange  <nicstange@gmail.com>
4686         * combine.c (try_combine): Don't ignore result of overlap checking
4687         loop.  Combine overlap & asm check into single loop.
4689 2017-01-12  Richard Biener  <rguenther@suse.de>
4691         * tree-pretty-print.c (dump_generic_node): Provide -gimple
4692         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
4694 2017-01-12  Richard Biener  <rguenther@suse.de>
4696         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
4697         and TS_TARGET_OPTION directly derive from TS_BASE.
4698         * tree-core.h (tree_optimization_option): Derive from tree_base.
4699         (tree_target_option): Likewise.
4701 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
4703         * config/i386/i386.c (memory_address_length): Increase len
4704         only when rip_relative_addr_p returns false.
4706 2017-01-11  Julia Koval  <julia.koval@intel.com>
4708         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
4709         (OPTION_MASK_ISA_SGX_SET): New.
4710         (ix86_handle_option): Handle OPT_msgx.
4711         * config.gcc: Added sgxintrin.h.
4712         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
4713         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
4714         * config/i386/i386.c (ix86_target_string): Add -msgx.
4715         (PTA_SGX): New.
4716         (ix86_option_override_internal): Handle new options.
4717         (ix86_valid_target_attribute_inner_p): Add sgx.
4718         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
4719         * config/i386/i386.opt: Add msgx.
4720         * config/i386/sgxintrin.h: New file.
4721         * config/i386/x86intrin.h: Add sgxintrin.h.
4723 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
4725         PR c++/71537
4726         * fold-const.c (maybe_nonzero_address): Return 1 for function
4727         local objects.
4728         (tree_single_nonzero_warnv_p): Don't handle function local objects
4729         here.
4731         PR c++/72813
4732         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
4733         of c-header.
4735 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
4737         PR driver/78877
4738         * opts.c: Include "spellcheck.h"
4739         (struct string_fragment): New struct.
4740         (struct edit_distance_traits<const string_fragment &>): New
4741         struct.
4742         (get_closest_sanitizer_option): New function.
4743         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
4745 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
4747         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
4748         by 12.
4749         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
4750         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
4751         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
4752         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
4753         for initial die_offset if dwarf_split_debug_info.
4754         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
4755         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
4756         fields.
4757         (output_skeleton_debug_sections): Formatting fix.  Use
4758         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
4759         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
4761 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
4763         * config/arm/cortex-a53.md: Add bypasses for
4764         cortex_a53_r2f_cvt.
4765         (cortex_a53_r2f): Only use for transfers.
4766         (cortex_a53_f2r): Likewise.
4767         (cortex_a53_r2f_cvt): Add reservation for conversions.
4768         (cortex_a53_f2r_cvt): Likewise.
4770 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
4772         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
4773         to all inlined functions, change static to extern.
4775 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
4777         PR target/78253
4778         * config/arm/arm.c (legitimize_pic_address): Handle reference to
4779         weak symbol.
4780         (arm_assemble_integer): Likewise.
4782 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
4784         * config.gcc: Use new awk script to check CPU, FPU and architecture
4785         parameters for --with-... options.
4786         * config/arm/parsecpu.awk: New file
4787         * config/arm/arm-cpus.in: New file.
4788         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
4789         files.
4790         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
4791         files.
4792         * config/arm/t-arm: Update dependency rules.
4793         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
4794         of processing .def files.
4795         * config/arm/genopt.sh: Deleted.
4796         * config/arm/gentune.sh: Deleted.
4797         * config/arm/arm-cores.def: Deleted.
4798         * config/arm/arm-arches.def: Deleted.
4799         * config/arm/arm-fpus.def: Deleted.
4800         * config/arm/arm-tune.md: Regenerated.
4801         * config/arm/arm-tables.opt: Regenerated.
4802         * config/arm/arm-cpu.h: New generated file.
4803         * config/arm/arm-cpu-data.h: New generated file.
4804         * config/arm/arm-cpu-cdata.h: New generated file.
4806 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
4808         PR lto/79042
4809         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
4810         bit.
4811         (input_varpool_node): Unpack dynamically_initialized bit.
4813 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
4815         PR rtl-optimization/79032
4816         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
4817         the alignment of the adjusted memory reference against that of MODE,
4818         instead of the alignment of the original memory reference.
4820 2017-01-11  Martin Jambor  <mjambor@suse.cz>
4822         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
4823         test.
4824         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
4825         decorated functions.
4827 2017-01-11  Richard Biener  <rguenther@suse.de>
4829         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
4830         set range/nonnull info for PHI results.  Do not set it on
4831         stmts marked for removal.
4833 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
4835         * expr.c (store_field): In the bitfield case, fetch the return value
4836         from the registers before applying a single big-endian adjustment.
4837         Always do a final load for a BLKmode value not larger than a word.
4839 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
4841         PR c++/77949
4842         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4843         that we correctly handle column numbers greater than
4844         LINE_MAP_MAX_COLUMN_NUMBER.
4846 2017-01-10  Martin Sebor  <msebor@redhat.com>
4848         PR middle-end/78245
4849         * gimple-ssa-sprintf.c (get_destination_size): Call
4850         {init,fini}object_sizes.
4851         * tree-object-size.c (addr_object_size): Adjust.
4852         (pass_through_call): Adjust.
4853         (pass_object_sizes::execute): Adjust.
4854         * tree-object-size.h (fini_object_sizes): Declare.
4856 2017-01-10  Martin Sebor  <msebor@redhat.com>
4858         PR tree-optimization/78775
4859         * builtins.c (get_size_range): Move...
4860         * calls.c: ...to here.
4861         (alloc_max_size): Accept zero argument.
4862         (operand_signed_p): Remove.
4863         (maybe_warn_alloc_args_overflow): Call get_size_range.
4864         * calls.h (get_size_range): Declare.
4866 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
4868         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
4869         from TI's devices.csv file as of September 2016.
4870         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
4872 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
4874         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
4875         * doc/invoke.texi: Likewise.
4876         * doc/md.texi: Likewise.
4877         * doc/objc.texi: Likewise.
4879 2017-01-10  Joshua Conner  <joshconner@google.com>
4881         * config/arm/fuchsia-elf.h: New file.
4882         * config/fuchsia.h: New file.
4883         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
4884         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
4885         targets.
4886         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
4888 2016-01-10  Richard Biener  <rguenther@suse.de>
4890         PR tree-optimization/79034
4891         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4892         Propagate out degenerate PHIs in the joiner.
4894 2017-01-10  Martin Liska  <mliska@suse.cz>
4896         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
4897         (sort_congruence_classes_by_decl_uid): Likewise.
4898         (sort_congruence_class_groups_by_decl_uid): Likewise.
4899         (sem_item_optimizer::merge_classes): Sort class, groups in these
4900         classes and members in the groups by DECL_UID of declarations.
4901         This would make merge operations stable.
4903 2017-01-10  Martin Liska  <mliska@suse.cz>
4905         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
4906         usage of m_classes_vec.
4907         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
4908         (sem_item_optimizer::get_group_by_hash): Likewise.
4909         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4910         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
4911         (sem_item_optimizer::verify_classes): Likewise.
4912         (sem_item_optimizer::process_cong_reduction): Likewise.
4913         (sem_item_optimizer::dump_cong_classes): Likewise.
4914         (sem_item_optimizer::merge_classes): Likewise.
4915         * ipa-icf.h (congruence_class_hash): Rename from
4916         congruence_class_group_hash.  Remove declaration of m_classes_vec.
4918 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
4920         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
4921         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
4922         * config.gcc: Add avx512vpopcntdqintrin.h.
4923         * config/i386/avx512vpopcntdqintrin.h: New.
4924         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
4925         * config/i386/i386-builtin-types.def: Add new types.
4926         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
4927         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
4928         __builtin_ia32_vpopcountq_v8di_mask): New.
4929         * config/i386/i386-c.c (ix86_target_macros_internal): Define
4930         __AVX512VPOPCNTDQ__.
4931         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
4932         (PTA_AVX512VPOPCNTDQ): Define.
4933         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
4934         TARGET_AVX512VPOPCNTDQ_P): Define.
4935         * config/i386/i386.opt: Add mavx512vpopcntdq.
4936         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
4937         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
4939 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
4941         PR middle-end/77484
4942         * predict.def (PRED_CALL): Set to 67.
4944 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4946         * expr.c (store_field): In the bitfield case, if the value comes from
4947         a function call and is of an aggregate type returned in registers, do
4948         not modify the field mode; extract the value in all cases if the mode
4949         is BLKmode and the size is not larger than a word.
4951 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
4953         PR target/71017
4954         * config/i386/cpuid.h: Fix undefined behavior.
4956 2017-01-04  Jeff Law  <law@redhat.com>
4958         PR tree-optimization/79007
4959         PR tree-optimization/67955
4960         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
4961         conservative for pt.null when flag_non_call_exceptions is on.
4963 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
4965         PR translation/79019
4966         PR translation/79020
4967         * params.def (PARAM_INLINE_MIN_SPEEDUP,
4968         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
4969         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
4970         in descriptions.
4971         * config/avr/avr.opt (maccumulate-args): Likewise.
4972         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
4973         * common.opt (freport-bug): Likewise.
4974         * cif-code.def (CIF_FINAL_ERROR): Likewise.
4975         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
4976         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
4977         translatable string.
4978         * config/i386/i386.c (function_value_32): Likewise.
4979         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
4980         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
4981         Likewise.
4982         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
4983         * common/config/msp430/msp430-common.c (msp430_handle_option):
4984         Likewise.
4985         * symtab.c (symtab_node::verify_base): Likewise.
4986         * opts.c (set_debug_level): Likewise.
4987         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
4988         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4989         missing whitespace to translatable strings.
4990         * config/avr/avr.md (bswapsi2): Fix typo in comment.
4991         * config/sh/superh.h: Likewise.
4992         * config/i386/xopintrin.h: Likewise.
4993         * config/i386/znver1.md: Likewise.
4994         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
4995         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
4996         * double-int.h (struct double_int): Likewise.
4997         * double-int.c (div_and_round_double): Likewise.
4998         * wide-int.cc: Likewise.
4999         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
5000         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5001         * cfgcleanup.c (crossjumps_occured): Renamed to ...
5002         (crossjumps_occurred): ... this.
5003         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
5004         Adjust all uses.
5006         PR tree-optimization/78899
5007         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
5008         returning bool return struct loop *, NULL for failure and the new
5009         loop on success.
5010         (versionable_outer_loop_p): Don't version outer loop if it has
5011         dont_vectorized bit set.
5012         (tree_if_conversion): When versioning outer loop, ensure
5013         tree_if_conversion is performed also on the inner loop of the
5014         non-vectorizable outer loop copy.
5015         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
5016         LOOP_VECTORIZED in inner loop of the scalar outer loop and
5017         prevent vectorization of it.
5018         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
5019         the outer loop vectorization of the non-scalar version is attempted
5020         before vectorization of the inner loop in scalar version.  If
5021         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
5022         vectorization of its inner loop.
5023         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
5024         has 2 inner loops, rename also on edges from bb whose single pred
5025         is outer_loop->header.  Fix typo in function comment.
5027 2017-01-09  Martin Sebor  <msebor@redhat.com>
5029         PR bootstrap/79033
5030         * asan.c (asan_emit_stack_protection): Increase local buffer size
5031         to avoid snprintf truncation warning.
5033 2017-01-09  Andrew Pinski  <apinski@cavium.com>
5035         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
5036         to reference thunderx2t99 for the tuning structure
5037         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
5038         Rename to ...
5039         (thunderx2t99_extra_costs): This.
5040         * config/aarch64/aarch64-tune.md: Regenerate.
5041         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
5042         (vulcan_addrcost_table): This.
5043         (vulcan_regmove_cost): Rename to ...
5044         (thunderx2t99_regmove_cost): This.
5045         (vulcan_vector_cost): Rename to ...
5046         (thunderx2t99_vector_cost): this.
5047         (vulcan_branch_cost): Rename to ...
5048         (thunderx2t99_branch_cost): This.
5049         (vulcan_tunings): Rename to ...
5050         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
5051         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
5053 2017-01-09  Martin Jambor  <mjambor@suse.cz>
5055         PR ipa/78365
5056         PR ipa/78599
5057         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
5058         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
5059         (propagate_vr_accross_jump_function): Use the above function for all
5060         value range computations for pass-through jump functions and type
5061         converasion from explicit value range values.
5062         (ipcp_propagate_stage): Do not attempt to deduce types of formal
5063         parameters from TYPE_ARG_TYPES.
5064         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
5065         (ipa_write_node_info): Stream type of the actual argument.
5066         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
5068 2017-01-09  Martin Liska  <mliska@suse.cz>
5070         PR pch/78970
5071         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
5072         (lookup_compiler): Do not show error message with have_E.
5074 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
5076         PR tree-optimization/78938
5077         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
5078         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
5079         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
5080         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
5081         fixes.
5083 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5085         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
5086         is const0_rtx.
5088 2017-01-09  Richard Biener  <rguenther@suse.de>
5090         PR tree-optimization/78997
5091         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
5092         name condition properly.
5094 2017-01-09  Richard Biener  <rguenther@suse.de>
5096         PR debug/79000
5097         * dwarf2out.c (is_cxx): New overload with context.
5098         (is_naming_typedef_decl): Use it.
5100 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5102         * invoke.texi (Option Summary): Correct spacing in option lists
5103         and add line breaks to fix over-long lines.
5105 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5107         PR middle-end/17660
5109         * extend.texi (Common Variable Attributes): Add xref to GCC
5110         Internals manual to explain mode attribute keywords.
5112 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
5114         PR other/16519
5115         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
5116         and Preprocessor Options.
5117         (Options for Linking): Document -pthread here....
5118         (RS/6000 and PowerPC Options): ...not here.
5119         (Solaris 2 Options): ...or here.
5120         * doc/cppopts.texi: Document -pthread.
5122 2017-01-08  Martin Sebor  <msebor@redhat.com>
5124         PR middle-end/77708
5125         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
5126         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
5127         New member functions.
5128         (format_directive): Used them.
5129         (add_bytes): Same.
5130         (pass_sprintf_length::handle_gimple_call): Same.
5131         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
5132         to avoid truncation for any argument.
5133         (extract_affine_mul): Same.
5134         * tree.c (get_file_function_name): Same.
5136 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5138         PR middle-end/77484
5139         * predict.def (PRED_INDIR_CALL): Set to 86.
5141 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5143         PR preprocessor/54124
5144         * doc/cppopts.texi: Reformat -d subtable to list the full name
5145         of the options.  Add cross-reference to the docs for the general
5146         compiler -d options.
5147         * doc/invoke.texi (Developer Options): Add cross-reference to the
5148         preprocessor-specific -d option documentation.
5150 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5152         PR preprocessor/13498
5153         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
5154         redudant material, and reflect new command-line options.
5155         (System Headers): Likewise.
5157 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5159         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
5160         -isystem, and -idirafter.  Copy-edit.
5161         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
5162         default for -ftrack-macro-expansion.  Delete obsolete and
5163         badly-formatted implementation details about -fdebug-cpp output.
5164         * doc/cppwarnopts.texi: Copy-edit.
5166 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
5168         PR c++/72803
5169         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5170         that the transition from a max line width >= 1<<10 to narrower
5171         lines works correctly.
5173 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
5175         * doc/options.texi (PerFunction): New.
5176         * opt-functions.awk (switch_flags): Map both Optimization and
5177         PerFunction to CL_OPTIMIZATION.
5178         * opth-gen.awk: Test for PerFunction flag along with
5179         Optimization.
5180         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
5181         it only when the latter is present.  Skip those that don't in
5182         the hash function generator.
5183         * common.opt (fvar-tracking): Mark as PerFunction instead of
5184         Optimization.
5185         (fvar-tracking-assignments): Likewise.
5186         (fvar-tracking-assignments-toggle): Likewise.
5187         (fvar-tracking-uninit): Likewise.
5189 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
5191         PR translation/79018
5192         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
5193         the and store.
5195 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
5197         PR target/57583
5198         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
5199         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
5200         TARGET_LONG_JUMP_TABLE_OFFSETS.
5201         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
5202         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
5203         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
5204         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
5205         * config/m68k/m68k.md (tablejump expander): Likewise.
5206         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
5207         TARGET_LONG_JUMP_TABLE_OFFSETS.
5208         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
5209         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
5211 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5212             David Holsgrove <david.holsgrove@xilinx.com>
5214         * common/config/microblaze/microblaze-common.c
5215         (TARGET_EXCEPT_UNWIND_INFO): Remove.
5216         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
5217         New prototype.
5218         * config/microblaze/microblaze.c (microblaze_must_save_register)
5219         (microblaze_expand_epilogue, microblaze_return_addr): Handle
5220         calls_eh_return.
5221         (microblaze_eh_return): New function.
5222         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
5223         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
5224         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
5225         * config/microblaze/microblaze.md (eh_return): New pattern.
5227 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
5229         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
5230         GCC_DIAGNOSTIC_STRINGIFY): Define.
5232         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
5234 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5236         * config/arm/arm.md (<mcrr>): New.
5237         (<mrrc>): New.
5238         * config/arm/arm.c (arm_arch5te): New.
5239         (arm_option_override): Set arm_arch5te.
5240         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
5241         and mrrc2.
5242         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
5243         (arm_mcrr_qualifiers): ... this. New.
5244         (MRRC_QUALIFIERS): Define to...
5245         (arm_mrrc_qualifiers): ... this. New.
5246         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
5247         __arm_mrrc2): New.
5248         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
5249         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
5250         (MRRCI, mrrc, MRRC): New.
5251         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
5252         VUNSPEC_MRRC2): New.
5254 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5256         * config/arm/arm.md (<mcr>): New.
5257         (<mrc>): New.
5258         * config/arm/arm.c (arm_coproc_builtin_available): Add
5259         support for mcr, mrc, mcr2 and mrc2.
5260         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
5261         (arm_mcr_qualifiers): ... this. New.
5262         (MRC_QUALIFIERS): Define to ...
5263         (arm_mrc_qualifiers): ... this. New.
5264         (MCR_QUALIFIERS): Define to ...
5265         (arm_mcr_qualifiers): ... this. New.
5266         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
5267         __arm_mrc2): New.
5268         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
5269         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
5270         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
5271         VUNSPEC_MRC2): New.
5273 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5275         * config/arm/arm.md (*ldc): New.
5276         (*stc): New.
5277         (<ldc>): New.
5278         (<stc>): New.
5279         * config/arm/arm.c (arm_coproc_builtin_available): Add
5280         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
5281         (arm_coproc_ldc_stc_legitimate_address): New.
5282         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
5283         'qualifier_const_pointer'.
5284         (LDC_QUALIFIERS): Define to...
5285         (arm_ldc_qualifiers): ... this. New.
5286         (STC_QUALIFIERS): Define to...
5287         (arm_stc_qualifiers): ... this. New.
5288         * config/arm/arm-protos.h
5289         (arm_coproc_ldc_stc_legitimate_address): New.
5290         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
5291         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
5292         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
5293         stc2, stcl, stc2l): New.
5294         * config/arm/constraints.md (Uz): New.
5295         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
5296         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
5297         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
5298         VUNSPEC_STC2L): New.
5300 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5302         * config/arm/arm.md (<cdp>): New.
5303         * config/arm/arm.c (neon_const_bounds): Rename this ...
5304         (arm_const_bounds): ... this.
5305         (arm_coproc_builtin_available): New.
5306         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
5307         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
5308         (CDP_QUALIFIERS): Define to...
5309         (arm_cdp_qualifiers): ... this. New.
5310         (void_UP): Define.
5311         (arm_expand_builtin_args): Add case for 6 arguments.
5312         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
5313         (arm_const_bounds): ... this.
5314         (arm_coproc_builtin_available): New.
5315         * config/arm/arm_acle.h (__arm_cdp): New.
5316         (__arm_cdp2): New.
5317         * config/arm/arm_acle_builtins.def (cdp): New.
5318         (cdp2): New.
5319         * config/arm/iterators.md (CDPI,CDP,cdp): New.
5320         * config/arm/neon.md: Rename all 'neon_const_bounds' to
5321         'arm_const_bounds'.
5322         * config/arm/types.md (coproc): New.
5323         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
5324         * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
5325         * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
5326         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
5328 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5330         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
5331         (UBINOP_QUALIFIERS): New.
5332         (si_UP): Define.
5333         (acle_builtin_data): New. Change comment.
5334         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
5335         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
5336         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
5337         arm_acle_builtins.def.
5338         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
5339         (arm_init_acle_builtins): New.
5340         (CRC32_BUILTIN): Remove.
5341         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
5342         crc32cb, crc32ch and crc32cw.
5343         (arm_init_crc32_builtins): Remove.
5344         (arm_init_builtins): Use arm_init_acle_builtins rather
5345         than arm_init_crc32_builtins.
5346         (arm_expand_acle_builtin): New.
5347         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
5348         * config/arm/arm_acle_builtins.def: New.
5350 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5352         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
5353         (arm_builtin_datum): ... this.
5354         (arm_init_neon_builtin): Rename to ...
5355         (arm_init_builtin): ... this. Add a new parameters PREFIX
5356         and USE_SIG_IN_NAME.
5357         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
5358         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
5359         'arm_builtin_datum'.
5360         (arm_init_vfp_builtins): Likewise.
5361         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
5362         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
5363         (arm_expand_neon_args): Rename to ...
5364         (arm_expand_builtin_args): ... this. Rename builtin_arg
5365         enum values and differentiate between ARG_BUILTIN_MEMORY
5366         and ARG_BUILTIN_NEON_MEMORY.
5367         (arm_expand_neon_builtin_1): Rename to ...
5368         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
5369         values, arm_expand_builtin_args and add bool parameter NEON.
5370         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
5371         (arm_expand_vfp_builtin): Likewise.
5372         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
5374 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5376         PR middle-end/77484
5377         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
5378         * predict.c (tree_estimate_probability_bb): Reverse direction of
5379         polymorphic call predictor.
5381 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
5383         * passes.c (execute_one_pass): Split out pass-skipping logic into...
5384         (determine_pass_name_match): ...this new function and...
5385         (should_skip_pass_p): ...this new function.
5387 2017-01-06  Nathan Sidwell  <nathan@acm.org>
5389         * ipa-visibility.c (function_and_variable_visibility): Reformat
5390         comments and long lines.  Remove extrneous if.
5391         * symtab.c (symtab_node::make_decl_local): Fix code format.
5392         (symtab_node::set_section_for_node): Fix comment typo.
5394 2017-01-06  Martin Liska  <mliska@suse.cz>
5396         PR bootstrap/79003
5397         * lra-constraints.c: Rename invariant to lra_invariant.
5398         * predict.c (set_even_probabilities): Initialize e to NULL.
5400 2017-01-05  Martin Sebor  <msebor@redhat.com>
5402         PR tree-optimization/78910
5403         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
5404         (format_integer): Correct off-by-one error in the handling
5405         of precision with negative numbers in signed conversions..
5407 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5409         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
5411 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
5413         PR tree-optimization/71016
5414         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
5415         factor_out_conditional_conversion.  Formatting fix.
5416         (factor_out_conditional_conversion): Add cond_stmt argument.
5417         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
5418         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
5419         Formatting fix.
5421 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
5423         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
5424         read-rtl-function.o, and selftest-rtl.o.
5425         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
5426         (selftest::aarch64_test_loading_full_dump): New function.
5427         (selftest::aarch64_run_selftests): New function.
5428         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
5429         selftest::aarch64_run_selftests.
5430         * config/i386/i386.c
5431         (selftest::ix86_test_loading_dump_fragment_1): New function.
5432         (selftest::ix86_test_loading_call_insn): New function.
5433         (selftest::ix86_test_loading_full_dump): New function.
5434         (selftest::ix86_test_loading_unspec): New function.
5435         (selftest::ix86_run_selftests): Call the new functions.
5436         * emit-rtl.c (maybe_set_max_label_num): New function.
5437         * emit-rtl.h (maybe_set_max_label_num): New decl.
5438         * function.c (instantiate_decls): Guard call to
5439         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
5440         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
5441         "static".
5442         * gensupport.c (gen_reader::gen_reader): Pass "false"
5443         for new "compact" param of rtx_reader.
5444         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
5445         rather than an empty string for NULL strings.
5446         * read-md.c: Potentially include config.h rather than bconfig.h.
5447         Wrap include of errors.h with #ifdef GENERATOR_FILE.
5448         (have_error): New global, copied from errors.c.
5449         (md_reader::read_name): Rename to...
5450         (md_reader::read_name_1): ...this, adding "out_loc" param,
5451         and converting "missing name or number" to returning false, rather
5452         than failing.
5453         (md_reader::read_name): Reimplement in terms of read_name_1.
5454         (md_reader::read_name_or_nil): New function.
5455         (md_reader::read_string): Handle "(nil)" by returning NULL.
5456         (md_reader::md_reader): Add new param "compact".
5457         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
5458         (md_reader::read_file): New method.
5459         * read-md.h (md_reader::md_reader): Add new param "compact".
5460         (md_reader::read_file): New method.
5461         (md_reader::is_compact): New accessor.
5462         (md_reader::read_name): Convert return type from void to file_location.
5463         (md_reader::read_name_or_nil): New decl.
5464         (md_reader::read_name_1): New decl.
5465         (md_reader::m_compact): New field.
5466         (noop_reader::noop_reader): Pass "false" for new "compact" param
5467         of rtx_reader.
5468         (rtx_reader::rtx_reader): Add new "compact" param.
5469         (rtx_reader::read_rtx_operand): Make virtual and convert return
5470         type from void to rtx.
5471         (rtx_reader::read_until): New decl.
5472         (rtx_reader::handle_any_trailing_information): New virtual function.
5473         (rtx_reader::postprocess): New virtual function.
5474         (rtx_reader::finalize_string): New virtual function.
5475         (rtx_reader::m_in_call_function_usage): New field.
5476         (rtx_reader::m_reuse_rtx_by_id): New field.
5477         * read-rtl-function.c: New file.
5478         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
5479         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
5480         (selftest::verify_three_block_rtl_cfg): New decl.
5481         * read-rtl-function.h: New file.
5482         * read-rtl.c: Potentially include config.h rather than bconfig.h.
5483         For host, include function.h, memmodel.h, and emit-rtl.h.
5484         (one_time_initialization): New function.
5485         (struct compact_insn_name): New struct.
5486         (compact_insn_names): New array.
5487         (find_code): Handle insn codes in compact dumps.
5488         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
5489         (bind_subst_iter_and_attr): Likewise.
5490         (add_condition_to_string): Likewise.
5491         (add_condition_to_rtx): Likewise.
5492         (apply_attribute_uses): Likewise.
5493         (add_current_iterators): Likewise.
5494         (apply_iterators): Likewise.
5495         (initialize_iterators): Guard usage of apply_subst_iterator with
5496         #ifdef GENERATOR_FILE.
5497         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
5498         (md_reader::read_mapping): Likewise.
5499         (add_define_attr_for_define_subst): Likewise.
5500         (add_define_subst_attr): Likewise.
5501         (read_subst_mapping): Likewise.
5502         (check_code_iterator): Likewise.
5503         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
5504         logic to...
5505         (one_time_initialization): New function.
5506         (rtx_reader::read_until): New method.
5507         (read_flags): New function.
5508         (parse_reg_note_name): New function.
5509         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
5510         Handle reuse_rtx ids.
5511         Wrap iterator lookup within #ifdef GENERATOR_FILE.
5512         Add parsing support for RTL dumps, mirroring the special-cases in
5513         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
5514         values, and calling handle_any_trailing_information.
5515         (rtx_reader::read_rtx_operand): Convert return type from void
5516         to rtx, returning return_rtx.  Handle case 'e'.  Call
5517         finalize_string on XSTR and XTMPL fields.
5518         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
5519          "(nil)" values were omitted.  Call the postprocess vfunc on the
5520         return_rtx.
5521         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
5522         class ctor.  Initialize m_in_call_function_usage.  Call
5523         one_time_initialization.
5524         * rtl-tests.c (selftest::test_uncond_jump): Call
5525         set_new_first_and_last_insn.
5526         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
5527         * selftest-rtl.c: New file.
5528         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
5529         (selftest::get_insn_by_uid): New decl.
5530         * selftest-run-tests.c (selftest::run_tests): Call
5531         read_rtl_function_c_tests.
5532         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
5533         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
5534         dumps.
5536 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
5538         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
5539         operands in a special way.  Assert that pos+len <= mode precision.
5541 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
5543         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
5544         3 argument Alias with unlimited for the negative form.
5545         (fno-vect-cost-model): Removed.
5547 2017-01-05  Martin Liska  <mliska@suse.cz>
5549         * hsa-gen.c (gen_hsa_divmod): New function.
5550         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
5552 2017-01-05  Martin Liska  <mliska@suse.cz>
5554         PR pch/78970
5555         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
5556         header.
5558 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5560         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
5561         small constant length operands.
5563 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5565         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
5566         between loop iterations.
5568 2017-01-05  Martin Liska  <mliska@suse.cz>
5570         PR sanitizer/78815
5571         * gimplify.c (gimplify_decl_expr): Compare to
5572         asan_poisoned_variables instread of checking flags.
5573         (gimplify_target_expr): Likewise.
5574         (gimplify_expr): Likewise.
5575         (gimplify_function_tree): Conditionally initialize
5576         asan_poisoned_variables.
5578 2017-01-04  Jeff Law  <law@redhat.com>
5580         PR tree-optimizatin/78812
5581         * rtl.h (contains_mem_rtx_p): Prototype.
5582         * ifcvt.c (containts_mem_rtx_p): Move from here to...
5583         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
5584         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
5585         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
5586         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
5588 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5590         * input.c (assert_char_at_range): Default-initialize actual_range.
5592 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5594         * df-scan.c (df_ref_create_structure): Make regno unsigned,
5595         to match the caller.
5597 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5599         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
5600         insns after final jump in test to emit dummy move.
5602 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5604         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
5605         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
5607 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
5609         * multiple_target.c (create_dispatcher_calls): Init e_next.
5610         * tree-ssa-loop-split.c (split_loop): Init border.
5611         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
5612         scalar_type.
5614 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5616         PR target/71977
5617         PR target/70568
5618         PR target/78823
5619         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
5620         (altivec_register_operand): Do not return true if the operand
5621         contains a SUBREG mixing SImode and SFmode.
5622         (vsx_register_operand): Likewise.
5623         (vsx_reg_sfsubreg_ok): New predicate.
5624         (vfloat_operand): Do not return true if the operand contains a
5625         SUBREG mixing SImode and SFmode.
5626         (vint_operand): Likewise.
5627         (vlogical_operand): Likewise.
5628         (gpc_reg_operand): Likewise.
5629         (int_reg_operand): Likewise.
5630         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
5631         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
5632         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
5633         SImode and SFmode.
5634         (rs6000_emit_move_si_sf_subreg): New helper function.
5635         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
5636         fixup SUBREGs involving SImode and SFmode.
5637         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
5638         numbers for the new peephole2 optimization.
5639         (peephole2 for SFmode unions): New peephole2 to optimize cases in
5640         the GLIBC math library that do AND/IOR/XOR operations on single
5641         precision floating point.
5642         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
5643         target macros to say whether we need to avoid SUBREGs mixing
5644         SImode and SFmode.
5645         (TARGET_ALLOW_SF_SUBREG): Likewise.
5646         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
5647         (UNSPEC_SI_FROM_SF): Likewise.
5648         (iorxor): Change spacing.
5649         (and_ior_xor): New iterator for AND, IOR, and XOR.
5650         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
5651         (movdi_from_sf_zero_ext): Likewise.
5652         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
5653         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
5654         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
5655         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
5656         (fms<mode>4): Likewise.
5657         (fnma<mode>4): Likewise.
5658         (fnms<mode>4): Likewise.
5659         (nfma<mode>4): Likewise.
5660         (nfms<mode>4): Likewise.
5662 2017-01-04  Marek Polacek  <polacek@redhat.com>
5664         PR c++/64767
5665         * doc/invoke.texi: Document -Wpointer-compare.
5667 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5669         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
5670         RejectNegative.
5672         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
5673         descriptions for -gdwarf-5 and emit them as uleb128 instead of
5674         2-byte data.
5676 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5678         PR target/78056
5679         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
5680         documentation of the powerpc_popcntb_ok attribute.
5681         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5682         code to issue warning messages if a requested CPU configuration is
5683         not supported by the binary (assembler and loader) toolchain.
5684         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
5685         made to define a built-in function that has been disabled.
5686         (paired_init_builtins): Add assertion to prevent ICE if attempt is
5687         made to define a built-in function that has been disabled.
5688         (altivec_init_builtins): Add comment explaining why definition
5689         of the DST built-in functions is not preceded by an assertion
5690         check.  Add assertions to prevent ICE if attempts are made to
5691         define an altivec predicate or an abs* built-in function that has
5692         been disabled.
5693         (htm_init_builtins): Add comment explaining why definition of the
5694         htm built-in functions is not preceded by an assertion check.
5696 2017-01-04  Jeff Law  <law@redhat.com>
5698         PR tree-optimizatin/67955
5699         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
5700         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
5701         the points-to solution does not include pt_null.  Use DECL_PT_UID
5702         unconditionally.
5704 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
5706         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
5707         Use gen_int_mode instead of gen_lopwart for const_int operands.
5709 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5711         PR tree-optimization/71563
5712         * match.pd: Simplify X << Y into X if Y is known to be 0 or
5713         out of range value - has low bits known to be zero.
5715 2017-01-04  Alan Modra  <amodra@gmail.com>
5717         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
5718         * configure: Regenerate.
5719         * config.in: Regenerate.
5721 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
5723         PR bootstrap/77569
5724         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
5725         a substring of the message, but strcmp with the whole message.  Ifdef
5726         ENABLE_NLS, translate the message first using dgettext.
5728 2017-01-03  Jeff Law  <law@redhat.com>
5730         PR tree-optimizatin/78856
5731         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
5732         (mark_threaded_blocks): Remove code to truncate thread paths that
5733         cross multiple loop headers.  Instead invalidate the cached loop
5734         iteration information and handle case of a thread path walking
5735         into an irreducible region.
5737 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5739         PR target/78900
5740         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
5741         assertions.  Add support for doing the signbit if the IEEE 128-bit
5742         floating point value is in a GPR.
5743         * config/rs6000/rs6000.md (Fsignbit): Delete.
5744         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
5745         Update the length attribute if the value is in a GPR.
5746         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
5747         the sign or zero extension instruction, since the value is always 0/1.
5748         (signbit<mode>2_dm2): Delete using <Fsignbit>.
5750         PR target/78953
5751         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
5752         extracting SImode to a GPR register so that we can generate a
5753         store, limit the vector to be in a traditional Altivec register
5754         for the vextuwrx instruction.
5756 2017-01-03  Ian Lance Taylor  <iant@google.com>
5758         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
5760 2017-01-03  Martin Sebor  <msebor@redhat.com>
5762         PR tree-optimization/78696
5763         * gimple-ssa-sprintf.c (format_floating): Correct handling of
5764         precision.  Use MPFR for %f for greater fidelity.  Correct handling
5765         of %g.
5766         (pass_sprintf_length::compute_format_length): Set width and precision
5767         specified by asrerisk to void_node for vararg functions.
5768         (try_substitute_return_value): Adjust dump output.
5770 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
5772         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
5774 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
5776         * doc/invoke.texi (SPARC options): Document -mlra as the default.
5777         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
5778         -mlra/-mno-lra was passed to the compiler.
5780 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
5782         PR rtl-optimization/65618
5783         * emit-rtl.c (try_split): Move initialization of "before" and
5784         "after" to just before the call to emit_insn_after_setloc.
5786 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
5788         * doc/md.texi (Standard Names): Remove reference to Java frontend.
5790 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5792         * dwarf2out.c (gen_enumeration_type_die): When
5793         -gno-strict-dwarf, add a DW_AT_encoding attribute.
5795 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
5797         PR tree-optimization/78965
5798         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
5799         Change first argument from const call_info & to call_info &.  For %n
5800         set info.nowrite to false.
5802         PR middle-end/78901
5803         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
5804         possibly throwing calls.
5806         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
5807         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
5808         and fns handling, rather than in a separate case SSA_NAME.
5810 2017-01-02  Jeff Law  <law@redhat.com>
5812         * config/darwin-driver.c (darwin_driver_init): Const-correctness
5813         fixes for first_period and second_period variables.
5815 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
5817         PR target/78967
5818         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
5819         (*insvqi_1): New insn pattern.
5820         (*insvqi_1_mem_rex64): Ditto.
5821         (*insvqi_2): Ditto.
5822         (*insvqi_3): Rename from *insvqi.
5824         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
5826 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
5828         * doc/cfg.texi (Edges): Remove reference to Java.
5829         (Maintaining the CFG): Ditto.
5831 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5833         PR middle-end/77674
5834         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
5835         transparent aliases.
5837 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
5839         PR middle-end/77484
5840         * predict.def (PRED_CALL): Update hitrate.
5841         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
5842         * predict.c (tree_estimate_probability_bb): Split CALL predictor
5843         into direct/indirect/polymorphic variants.
5845 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
5847         Update copyright years.
5849         * gcc.c (process_command): Update copyright notice dates.
5850         * gcov-dump.c (print_version): Ditto.
5851         * gcov.c (print_version): Ditto.
5852         * gcov-tool.c (print_version): Ditto.
5853         * gengtype.c (create_file): Ditto.
5854         * doc/cpp.texi: Bump @copying's copyright year.
5855         * doc/cppinternals.texi: Ditto.
5856         * doc/gcc.texi: Ditto.
5857         * doc/gccint.texi: Ditto.
5858         * doc/gcov.texi: Ditto.
5859         * doc/install.texi: Ditto.
5860         * doc/invoke.texi: Ditto.
5862 Copyright (C) 2017 Free Software Foundation, Inc.
5864 Copying and distribution of this file, with or without modification,
5865 are permitted in any medium without royalty provided the copyright
5866 notice and this notice are preserved.