re PR c++/66487 (sanitizer/warnings for lifetime DSE)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
2
3         PR ipa/66487
4         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
5         use block_ultimate_origin
6         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
7         
8 2016-01-13  Sandra Loosemore <sandra@codesourcery.com>
9
10         * doc/invoke.texi (Submodel Options): Rename section to
11         "Machine-Dependent Options" to better reflect its content.
12         Rewrite introductory text to remove archaic CPU names.
13         Update references.
14
15 2016-01-13  Sandra Loosemore <sandra@codesourcery.com>
16
17         * doc/invoke.texi (Code Gen Options): Move section up in file,
18         before target-specific options.  Update menu and option summary
19         to reflect the new section ordering.
20
21 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
22
23         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24         (C++ Dialect Options): Add cross-reference to -std option.
25         * doc/standards.texi (C++ Language): Document C++14 support.
26
27 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
28
29         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
30         for pack/unpack functions for __ibm128.
31         (PACK_IF): Likewise.
32         (UNPACK_IF): Likewise.
33
34         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
35         support for __ibm128 pack/unpack functions.
36         (rs6000_invalid_builtin): Likewise.
37         (rs6000_init_builtins): Likewise.
38         (rs6000_opt_masks): Likewise.
39
40         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
41         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
42         functions
43         (RS6000_BTM_COMMON): Likewise.
44
45         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
46         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
47         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
48         128-bit floating point.  Add support for the double values to be
49         in Altivec registers for TF/IF packing and unpacking, but restrict
50         TD packing sub-fields to be FPR registers.  Don't allow overlapped
51         register support for packing.  Allow pack inputs to be memory
52         locations.  Don't build generator functions for unpack<mode>_dm
53         and unpack<mode>_nodm.
54         (unpack<mode>_dm): Likewise.
55         (unpack<mode>_nodm): Likewise.
56         (pack<mode>): Likewise.
57
58         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
59         built-in functions to pack/unpack explicit __ibm128 values.
60         (__builtin_unpack_ibm128): Likewise.
61
62         * doc/extend.texi (PowerPC Built-in Functions): Document
63         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
64
65 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
66
67         PR c/66208
68         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
69         Add new arg loc and pass it down as context.
70         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
71         to the location to use for the warning.
72         (check_function_arguments): New arg loc.  All callers changed.  Pass
73         it to check_function_nonnull.
74         * c-common.h (check_function_arguments): Adjust declaration.
75
76 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
77
78         PR tree-optimization/69156
79         * gimple.c (validate_type): Removed.
80         (gimple_builtin_call_types_compatible_p): Use
81         useless_type_conversion_p instead of validate_type.
82         * value-prof.c (gimple_stringop_fixed_value): Fold
83         icall_size to correct type.
84
85 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
86
87         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
88         effects.
89
90 2016-01-13  Richard Henderson  <rth@redhat.com>
91
92         PR tree-opt/68964
93         * target.def (builtin_tm_load, builtin_tm_store): Remove.
94         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
95         (ix86_builtin_tm_store): Remove.
96         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
97         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
98         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
99         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
100         * doc/tm.texi: Rebuild.
101
102         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
103         (BUILT_IN_TM_MEMCPY_RTWN): New.
104         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
105         fallback from vector to integer helpers.
106         (build_tm_load): Handle vector types directly, instead of
107         via target hook.
108         (build_tm_store): Likewise.
109         (expand_assign_tm): Prepare for register types not handled by
110         the above.  Copy them to memory and use memcpy.
111         * tree.c (tm_define_builtin): New.
112         (find_tm_vector_type): New.
113         (build_tm_vector_builtins): New.
114         (build_common_builtin_nodes): Call it.
115
116 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
117
118         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
119         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
120
121 2016-01-13  Tom de Vries  <tom@codesourcery.com>
122
123         PR tree-optimization/69169
124         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
125         handled_struct_type param.
126         (create_variable_info_for, intra_create_variable_infos): Call
127         create_variable_info_for_1 with extra arg.
128
129 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
130
131         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
132         and "armv8.1-a+crc" entries.
133
134 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
135
136         PR target/69228
137         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
138         Change first operand predicate from register_or_constm1_operand
139         to register_operand.
140         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
141         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
142         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
143         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
144         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
145         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
146         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
147         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
148         comparison with constm1_rtx from vec_prefetch_gen part.
149
150 2016-01-13  Richard Biener  <rguenther@suse.de>
151
152         PR tree-optimization/69013
153         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
154         Exchange assert for a test.
155
156 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
157
158         PR target/69247
159         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
160
161 2016-01-13  Richard Biener  <rguenther@suse.de>
162
163         PR tree-optimization/69242
164         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
165         assert with a check.
166
167 2016-01-13  Richard Biener  <rguenther@suse.de>
168
169         PR tree-optimization/69186
170         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
171         Properly guard vect_update_misalignment_for_peel call.
172
173 2016-01-12  Jeff Law  <law@redhat.com>
174
175         PR tree-optimization/pr67755
176         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
177         "need_profile_correction".
178         (thread_block_1): Initialize new field to false by default.  If we
179         have multiple thread paths through a common joiner to different
180         final targets, then set new field to true.
181         (compute_path_counts): Only do count adjustment when it's really
182         needed.
183
184 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
185
186         * doc/invoke.texi (Spec Files): Move section down in file, past
187         all command-line option descriptions.
188
189 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
190
191         PR middle-end/54809
192         * doc/gty.texi: Remove documentation of mark_hook.
193         * gengtype.c (struct write_types_data): Remove code to support
194         mark_hook attribute.
195         (walk_type): Likewise.
196         (write_func_for_structure): Likewise.
197
198 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
199
200         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
201         Directory Options, and -specs= to Overall Options.
202         (Overall Options): Adjust similarly.  Reorder to group related
203         options together.  Make -specs= cross-reference the spec file details.
204         (Directory Options): Adjust similarly.
205
206 2016-01-12  Jeff Law  <law@redhat.com>
207
208         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
209
210 2016-01-12  Olivier Hainque  <hainque@adacore.com>
211
212         * gcc.c (spec_undefvar_allowed): New global.
213         (process_command): Set to true when running for --version or --help,
214         alone or together.
215         (getenv_spec_function): When the variable is not defined, use the
216         variable name as the variable value if we're allowed not to issue
217         a fatal error.
218
219 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
220
221         PR tree-optimization/68911
222         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
223         information computed for expression "init + nit * step".
224
225 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
226
227         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
228         about name of GCC executable.  Remove deleted node from menu.
229         (Directory Options) <-B>: Remove cross-reference to deleted node.
230         (Target Options): Delete section.
231
232 2016-01-12  Christian Bruel  <christian.bruel@st.com>
233
234         PR target/69180
235         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
236         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
237
238 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
239
240         PR target/69198
241         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
242         aligned_mem is properly set for AVX512-VL floating point masked
243         stores.
244
245         PR target/69175
246         * ifcvt.c (cond_exec_process_if_block): When removing the last
247         insn from then_bb, remove also any possible barriers that follow it.
248
249 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
250
251         PR target/68456
252         PR target/69226
253         * config/i386/iamcu.h (SIZE_TYPE): New macro.
254         (PTRDIFF_TYPE): Likewise.
255         (WCHAR_TYPE): Likewise.
256         (WCHAR_TYPE_SIZE): Likewise.
257         (STDINT_LONG32): Likewise.
258
259 2016-01-12  Richard Biener  <rguenther@suse.de>
260
261         PR tree-optimization/69053
262         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
263         convert initial value for cond reductions.
264
265 2016-01-12  Richard Biener  <rguenther@suse.de>
266
267         PR tree-optimization/69007
268         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
269         widen_sum after dot_prod and sad.
270
271 2016-01-12  Richard Biener  <rguenther@suse.de>
272
273         PR tree-optimization/69168
274         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
275         pattern stmt SLP type.
276         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
277         end up unused so cope with that case.
278
279 2016-01-12  Richard Biener  <rguenther@suse.de>
280
281         PR tree-optimization/69157
282         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
283         stmts def type only during analyze phase.
284         (vectorizable_call): Likewise.
285         (vectorizable_simd_clone_call): Likewise.
286         (vectorizable_conversion): Likewise.
287         (vectorizable_assignment): Likewise.
288         (vectorizable_shift): Likewise.
289         (vectorizable_operation): Likewise.
290         (vectorizable_store): Likewise.
291         (vectorizable_load): Likewise.
292
293 2016-01-12  Richard Biener  <rguenther@suse.de>
294
295         PR tree-optimization/69174
296         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
297         space.
298         (vectorizable_load): Properly compute the number of loads needed
299         for permuted strided SLP loads and do not spuriously assign
300         to SLP_TREE_VEC_STMTS.
301
302 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
303
304         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
305         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
306         (MD_EXEC_PREFIX): Remove.
307         (MD_STARTFILE_PREFIX) Removee.
308         (FILE_NAME_ABSOLUTE_P): Remove.
309         (CPP_SPEC): Do not read macros from sys/version.h.
310         (LINK_COMMAND_SPEC): Remove.
311         (LOCAL_INCLUDE_DIR): Remove.
312         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
313         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
314         (POST_LINK_SPEC): Define to invoke stubify after linker
315         (LIBSTDCXX): Remove define
316         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
317         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
318         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
319         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
320         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
321         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
322         (i386_djgpp_asm_named_section): Add propotype of new procedure
323
324         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
325         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
326         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX in config/i386/djgpp.h).
327         (STANDARD_STARTFILE_PREFIX_2): Define identical to STANDARD_STARTFILE_PREFIX_1.
328         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
329         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal installation errors.
330         (MAX_OFILE_ALIGNMENT): Define to 128.
331         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
332
333         * config/i386/djgpp.c: New file. Add implementation of i386_djgpp_asm_named_section.
334
335         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
336
337         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
338         Add rule for building djgpp.o.
339
340 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
341
342         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
343         (rtx_is_swappable_p): Reductions are swappable.
344         (insn_is_swappable_p): V2DF reductions are swappable.
345
346 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
347
348         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
349         reloads for other unsupported memory operands.
350
351 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
352             Jim Wilson  <jim.wilson@linaro.org>
353
354         PR target/69194
355         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
356         copy_to_mode_reg instead of force_reg.
357
358 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
359
360         PR target/69225
361         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
362         TARGET_80387 is true.
363
364 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
365
366         PR target/69071
367         * lra-eliminations.c (move_plus_up): Only move plus up
368         if subreg of the constant can be simplified into constant
369         and use the simplified subreg of the constant instead of
370         the original constant.
371
372         * fold-const.c (fold_convertible_p): Don't return true
373         for conversion of VECTOR_TYPE to same sized integral type.
374         (fold_convert_loc): Fix up formatting.  Fold conversion of
375         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
376         instead of NOP_EXPR.
377
378         PR tree-optimization/69214
379         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
380         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
381         Formatting fix.
382
383         PR tree-optimization/69207
384         * tree-vect-slp.c (vect_get_constant_vectors): For
385         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
386         fold_convertible_p to vector_type's element type, and always
387         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
388
389 2016-01-11  Richard Biener  <rguenther@suse.de>
390
391         PR tree-optimization/69173
392         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
393         fixup the cycle if all stmts are in a pattern.
394
395 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
396
397         PR middle-end/68999
398         * alias.c (base_alias_check): Move check for addresses with
399         alignment ANDs before the call for compare_base_decls.
400         (memrefs_conflict_p): Return -1 for different decls
401         that went through alignment adjustments.
402
403 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
404
405         PR rtl-optimization/68796
406         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
407         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
408         and QImode comparisons against zero with CC_NZmode.
409         * config/aarch64/iterators.md (short_mask): New mode_attr.
410
411 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
412
413         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
414         (<avx512>_store<mode>_mask): Likewise.
415
416 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
417             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
418
419         PR rtl-optimization/68841
420         * ifcvt.c (struct noce_if_info): Add orig_x field.
421         (bbs_ok_for_cmove_arith): Add to_rename parameter.
422         Don't record conflicts on to_rename if it's present.
423         Allow memory destinations in sets.
424         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
425         blocks, passing orig_x to the checks.
426         (noce_process_if_block): Set if_info->orig_x appropriately.
427
428 2016-01-11  Tom de Vries  <tom@codesourcery.com>
429
430         PR tree-optimization/69069
431         * tree-parloops.c (create_parallel_loop): Add missing phi args.
432
433 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
434
435         PR rtl-optimization/68920
436         * config/i386/i386.c (ix86_option_override_internal): Restrict number
437         of conditional moves for  RTL if-conversion to 1 for
438         TARGET_ONE_IF_CONV_INSN.
439         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
440         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
441         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
442         parameter to restirct number of conditional moves for
443         RTL if-conversion.
444         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
445         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
446         conditionl moves.
447
448 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
449
450         PR bootstrap/69123
451         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
452         onepart vars.  Fix typo in comment.  Fix reversed condition in
453         unshare test.
454         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
455
456         PR bootstrap/69123
457         * var-tracking.c (dump_onepart_variable_differences): New.
458         (dataflow_set_different): If a detailed dump is requested,
459         delay early returns and dump differences between onepart
460         variables present before and after, and added variables.
461
462 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
463
464         PR target/69010
465         * expr.c (expand_expr_real_1): For boolean vector constants
466         with a scalar mode use const_scalar_mask_from_tree.
467         (const_scalar_mask_from_tree): New.
468         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
469         assigned to a mask type to handle constants.
470
471 2016-01-11  Martin Jambor  <mjambor@suse.cz>
472
473         PR ipa/69044
474         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
475         useless parameters if we cannot change function signature.
476
477 2016-01-11  Martin Jambor  <mjambor@suse.cz>
478
479         PR ipa/66616
480         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
481         flag.
482
483 2016-01-11  Tom de Vries  <tom@codesourcery.com>
484
485         PR tree-optimization/69109
486         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
487         latch with phi.
488
489 2016-01-11  Tom de Vries  <tom@codesourcery.com>
490
491         PR tree-optimization/69108
492         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
493         res is not used in a phi.
494
495 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
496
497         PR 67425
498         * common.opt (frandom-seed): Fix parameter name.
499         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
500
501 2016-01-11  Tom de Vries  <tom@codesourcery.com>
502
503         PR tree-optimization/69058
504         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
505         not supported.
506
507 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
508
509         * config/arc/arc.opt (mdiv-rem): Add period to the end.
510         (mcode-density): Likewise.
511
512 2016-01-10  Tom de Vries  <tom@codesourcery.com>
513
514         PR tree-optimization/69062
515         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
516         (parallelize_loops): Don't paralelize loop that has phi with address
517         arg.
518
519 2016-01-10  Tom de Vries  <tom@codesourcery.com>
520
521         PR tree-optimization/69039
522         * tree-parloops.c (try_create_reduction_list): Only allow single exit
523         phi for reduction.
524
525 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
526
527         PR middle-end/68743
528         * match.pd: Require target has function_c99_misc before doing
529         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
530         
531 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
532
533         * configure.ac (isl_options_set_schedule_serialize_sccs): Also 
534         use GMPINC.
535         * configure: Regenerate.
536
537 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
538
539         PR middle-end/50865
540         PR tree-optimization/69097
541         * fold-const.h (expr_not_equal_to): New prototype.
542         * fold-const.c: Include stringpool.h and tree-ssanames.h.
543         (expr_not_equal_to): New function.
544         * match.pd (X % -Y is the same as X % Y): Don't optimize
545         unless X is known not to be equal to minimum or Y is known
546         not to be equal to -1.
547         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
548         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
549         (simplify_stmt_using_ranges): Adjust caller.
550         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
551         substitute_and_fold.
552
553 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
554
555         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
556         w/o DECL_NAME.
557
558 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
559
560         PR tree-optimization/69167
561         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
562         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
563         ops[0] comparison.
564         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
565
566 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
567             Richard Biener  <rguenther@suse.de>
568
569         PR tree-optimization/68707
570         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
571         instances that can be handled via vect_load_lanes.
572
573 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
574
575         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
576         if we can't determine address equivalence.
577         * alias.c (compare_base_decl): Update for changed return value of
578         symtab_node::equal_address_to.
579
580 2016-01-08  Jason Merrill  <jason@redhat.com>
581
582         PR c++/68983
583         PR c++/67557
584         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
585         * expr.c (store_field): Not here.
586         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
587         call with TREE_ADDRESSABLE type.
588         * tree-cfg.c (verify_gimple_call): Adjust.
589
590 2016-01-08  Olivier Hainque  <hainque@adacore.com>
591
592         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
593         libc_internal.
594
595 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
596
597         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
598         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
599         (reduc_smin_v2sf): Rename to...
600         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
601         (reduc_splus_v2sf): Rename to...
602         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
603
604 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
605
606         PR tree-optimization/69162
607         * gimplify.c (gimplify_va_arg_expr): Encode original type of
608         valist argument in another argument.
609         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
610         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
611         to determine the va_list type, build a MEM_REF instead of
612         build_fold_indirect_ref.
613
614         PR tree-optimization/69172
615         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
616         gimple_build.
617
618 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
619
620         PR tree-optimization/67781
621         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
622         and cmpnop in two steps: first the ones not accessed in original
623         gimple expression in a endian independent way and then the ones not
624         accessed in the final result in an endian-specific way.
625
626 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
627
628         PR tree-optimization/69083
629         * tree-vect-slp.c (vect_get_constant_vectors): For
630         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
631         element type.  If op is fold_convertible_p to vector_type's element
632         type, use NOP_EXPR instead of VCE.
633
634 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
635
636         PR rtl-optimization/67778
637         PR rtl-optimization/68634
638         PR rtl-optimization/68909
639         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
640         block from the stack until done with it.  Remove a superfluous
641         bitmap set.  Remove a superfluous bitmap test.
642
643 2016-01-07  Martin Sebor  <msebor@redhat.com>
644
645         PR c/68966
646         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
647         constraint on the type of arguments.
648
649 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
650
651         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
652         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
653         unaligned_access on the gcc_options set.
654         * config/arm/arm.c (arm_option_override_internal): Use
655         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
656
657 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
658
659         PR target/69140
660         * config/i386/i386.c (ix86_frame_pointer_required): Enable
661         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
662
663 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
664
665         Revert
666         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
667
668         PR target/69140
669         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
670         depending on frame_pointer_needed before remaining integer and SSE
671         registers are saved.
672
673 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
674
675         PR 1078
676         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
677
678 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
679
680         PR target/69171
681         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
682         Use the "xBm" constraint.
683         (float<sseintvecmodelower><mode>2<mask_name><round_name):
684         Likewise.
685         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
686         (sse_cvtsi2ssq<round_name>): Likewise.
687         (sse_cvtss2si<round_name>): Likewise.
688         (sse_cvtss2siq<round_name>): Likewise.
689         (sse2_cvtsi2sdq<round_name>): Likewise.
690         (sse2_cvtsd2si<round_name>): Likewise.
691         (sse2_cvtsd2siq<round_name>): Likewise.
692         * config/i386/subst.md (round_nimm_scalar_predicate): New
693         predicate.
694
695 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
696
697         PR middle-end/67639
698         * varasm.c (make_decl_rtl): Mark invalid register vars as
699         DECL_EXTERNAL.
700
701         PR rtl-optimization/66206
702         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
703         All callers changed.
704
705 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
706
707         PR tree-optimization/69141
708         * tree-ssa-pre.c: Include langhooks.h.
709         (eliminate_dom_walker::before_dom_children): Use
710         lang_hooks.decl_printable_name instead of
711         cgraph_node::get ()->name ().
712
713         PR middle-end/68960
714         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
715         it and DECL_ALIGN too.
716
717 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
718
719         * config/mips/mips-ftypes.def: Sort to lexicographical order.
720
721 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
722
723         PR target/69140
724         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
725         depending on frame_pointer_needed before remaining integer and SSE
726         registers are saved.
727
728 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
729
730         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
731         mode iterator with VSX_M2.
732         (*p9_vecstore_<mode>): Likewise.
733         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
734         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
735         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
736         (define_split for VSX_LE128 stores): Likewise.
737         (define_peephole2 for TImode LE swaps): Likewise.
738         (define_split for VSX_LE128 post-reload stores): Likewise.
739
740 2016-01-06  Marek Polacek  <polacek@redhat.com>
741
742         PR sanitizer/69099
743         * convert.c (convert_to_integer_1): Adjust call to
744         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
745         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
746         EXPR instead of ARG.
747         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
748
749 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
750
751         PR 1078
752         * doc/extend.texi (RL78 Variable Attributes): New section.
753
754 2016-01-05  Marek Polacek  <polacek@redhat.com>
755
756         PR c/69104
757         * builtins.c (get_memmodel): Use expansion point location rather than
758         the input location.  Call warning_at rather than warning.
759         (expand_builtin_atomic_compare_exchange): Likewise.
760         (expand_builtin_atomic_load): Likewise.
761         (expand_builtin_atomic_store): Likewise.
762         (expand_builtin_atomic_clear): Likewise.
763
764 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
765
766         PR target/68991
767         * config/i386/i386.c (ix86_expand_vector_logical_operator):
768         Replace nonimmediate_operand with vector_operand.
769         * config/i386/predicates.md (vector_operand): New predicate.
770         (general_vector_operand): Replace nonimmediate_operand with
771         vector_operand.
772         * config/i386/sse.md: Replace nonimmediate_operand with
773         vector_operand and m constraint with Bm constraint on SSE
774         patterns with 16-byte memory operand.
775         * config/i386/subst.md (round_nimm_predicate): Replace
776         nonimmediate_operand with vector_operand.
777         (round_saeonly_nimm_predicate): Likewise.
778         (round_saeonly_nimm_scalar_predicate): New.
779
780 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
781
782         PR target/68991
783         * config/i386/constraints.md (Bm): New constraint.
784         * config/i386/predicates.md (vector_memory_operand): New
785         predicate.
786         * config/i386/sse.md: Replace xm with xBm in plusminus and
787         any_logic patterns.
788
789 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
790
791         PR 1078
792         * doc/extend.texi (V850 Function Attributes): New section.
793         (V850 Variable Attributes): New section.
794
795 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
796
797         PR 1078
798         * doc/extend.texi (MicroBlaze Function Attributes): Document
799         interrupt_handler and fast_interrupt attributes.
800
801 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
802
803         PR other/60465
804         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
805         for local symbolic operands.
806         * config/ia64/predicates.md (local_symbolic_operand64): New
807         predicate.
808
809 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
810
811         PR rtl-optimization/68651
812         * combine.c (combine_simplify_rtx): Canonicalize x + x into
813         x << 1.
814
815 2016-01-05  Nathan Sidwell  <nathan@acm.org>
816
817         * alias.c (compare_base_decls): Use symtab_node::get.
818
819 2016-01-05  Nick Clifton  <nickc@redhat.com>
820
821         PR target/68770
822         * ira-costs.c (copy_cost): Initialise the t_icode field of the
823         secondary_reload_info structure.
824
825         PR target/66655
826         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
827         decls if weak support is available.
828
829 2016-01-04  Martin Sebor  <msebor@redhat.com>
830
831         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
832
833 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
834
835         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
836         OPTION_MASK_P9_DFORM.
837
838         * config/rs6000/constraints.md (wo constraint): New constraint for
839         ISA 3.0 (power9).
840
841         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
842         for wo constraint.
843         (rs6000_init_hard_regno_mode_ok): Likewise.
844
845         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
846         wo constraint.
847
848         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
849         expanders not to have constraints.  Add support for ISA 3.0 xxperm
850         instruction.  Add support for fusing xxlor with xxperm.
851         (altivec_vperm_<mode>_internal): Likewise.
852         (altivec_vperm_v8hiv16qi): Likewise.
853         (altivec_vperm_<mode>v16q): Likewise.
854         (altivec_vperm_<mode>_uns): Likewise.
855         (vperm_v8hiv4si): Likewise.
856         (vperm_v16qiv8hi): Likewise.
857
858         * doc/md.texi (RS/6000 constraints): Document wo constraint.
859
860 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
861
862         Update copyright years.
863
864         * gcc.c (process_command): Update copyright notice dates.
865         * gcov-dump.c (print_version): Ditto.
866         * gcov.c (print_version): Ditto.
867         * gcov-tool.c (print_version): Ditto.
868         * gengtype.c (create_file): Ditto.
869         * doc/cpp.texi: Bump @copying's copyright year.
870         * doc/cppinternals.texi: Ditto.
871         * doc/gcc.texi: Ditto.
872         * doc/gccint.texi: Ditto.
873         * doc/gcov.texi: Ditto.
874         * doc/install.texi: Ditto.
875         * doc/invoke.texi: Ditto.
876
877 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
878
879         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
880         modes larger than TImode as TImode if NEON is not enabled.
881
882 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
883
884         PR target/69100
885         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
886         mode for %f0-%f31 only if TARGET_FPU.
887
888 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
889
890         PR target/69072
891         * config/sparc/sparc.c (scan_record_type): Take into account subfields
892         to compute the PACKED_P predicate.
893         (function_arg_record_value): Minor tweaks.
894
895 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
896
897         * doc/install.texi (--with-multilib-list): Describe the meaning of the
898         option for arm*-*-* targets.
899
900 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
901
902         * doc/extend.texi (Common Function Attributes): Move docs for
903         MSP430-specific attributes to....
904         (MSP430 Function Attributes): ...here.  Delete the redundant
905         entries and copy-edit the remaining text.
906         (MSP430 Variable Attributes): Use uniform format for index
907         entries and add a cross-reference to the corresponding function
908         attribute docs.
909
910 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
911
912         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
913         -finite-math typo.
914         (x86 Options): Likewise.
915
916 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
917
918         PR 1078
919
920         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
921         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
922         to corresponding attribute.
923
924 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
925
926         * doc/extend.texi (Common Function Attributes) <noplt>: Move
927         to correct alphabetization of table.  Copy-edit and correct
928         markup.
929         <stack_protect>: Likewise.
930         <target_clones>: Likewise.
931         <simd>: Likewise.
932         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
933         Correct punctuation.
934         (Code Gen Options) <-fno-plt>: Copy-edit.
935
936 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
937
938         PR target/68917
939         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
940         SI values.  Explicitly convert SI to DI and vice-versa.
941
942 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
943
944         PR tree-optimization/69070
945         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
946         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
947
948         PR sanitizer/69055
949         * ubsan.c (ubsan_instrument_float_cast): Call
950         initialize_sanitizer_builtins.
951
952         PR target/69015
953         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
954 \f
955 Copyright (C) 2016 Free Software Foundation, Inc.
956
957 Copying and distribution of this file, with or without modification,
958 are permitted in any medium without royalty provided the copyright
959 notice and this notice are preserved.